/* Vidhyamath OJS Journal Style Sheet */
/* Primary Color Scheme: Deep blue with gold accents - conveying knowledge and prestige */

:root {
    --primary-color: #1a365d;       /* Deep blue */
    --secondary-color: #d4af37;     /* Gold */
    --accent-color: #e53e3e;        /* Red for highlights */
    --light-color: #f7fafc;         /* Off-white */
    --dark-color: #2d3748;          /* Dark gray */
    --text-color: #4a5568;          /* Gray for body text */
    --link-color: #3182ce;          /* Blue for links */
}

/* Base Styles */
body {
    font-family: 'Latin Modern Roman', 'Times New Roman', serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
    margin: 0;
    padding: 0;
}

/* Mathematical typography enhancements */
.math, .mathml {
    font-family: 'Latin Modern Math', 'Cambria Math', serif;
}

/* Header Styles */
.header {
    background-color: var(--primary-color);
    color: white;
    padding: 1.5rem 0;
    border-bottom: 4px solid var(--secondary-color);
}

.header a {
    color: white;
    text-decoration: none;
}

.journal-title {
    font-family: 'Palatino Linotype', 'Book Antiqua', serif;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: center;
}

.journal-subtitle {
    font-size: 1.2rem;
    text-align: center;
    font-style: italic;
    opacity: 0.9;
}

/* Navigation */
.navbar {
    background-color: var(--dark-color);
    padding: 0.8rem 0;
}

.navbar ul {
    list-style: none;
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.navbar li {
    margin: 0 1.5rem;
}

.navbar a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.3rem 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s;
}

.navbar a:hover {
    border-bottom-color: var(--secondary-color);
}

/* Content Area */
.main-content {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

/* Article Styles */
.article-title {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 0.5rem;
}

.article-meta {
    color: var(--dark-color);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.article-author {
    font-weight: 600;
}

.article-abstract {
    background-color: var(--light-color);
    padding: 1.2rem;
    border-left: 4px solid var(--secondary-color);
    margin: 1.5rem 0;
}

.abstract-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

/* Mathematical sections */
.theorem, .proof, .definition {
    margin: 1.2rem 0;
    padding: 1rem;
    border-radius: 4px;
}

.theorem {
    background-color: #ebf8ff;
    border-left: 4px solid var(--link-color);
}

.proof {
    background-color: #f0fff4;
    border-left: 4px solid #38a169;
}

.definition {
    background-color: #fffaf0;
    border-left: 4px solid #dd6b20;
}

.theorem-title, .proof-title, .definition-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Tables and Figures */
table {
    border-collapse: collapse;
    width: 100%;
    margin: 1.5rem 0;
    font-size: 0.95rem;
}

th, td {
    border: 1px solid #e2e8f0;
    padding: 0.6rem 1rem;
    text-align: left;
}

th {
    background-color: var(--primary-color);
    color: white;
}

.figure {
    margin: 1.5rem 0;
    text-align: center;
}

.figure img {
    max-width: 100%;
    height: auto;
}

.figure-caption {
    font-size: 0.9rem;
    margin-top: 0.5rem;
    color: var(--dark-color);
}

/* References */
.references {
    margin: 2rem 0;
}

.references-title {
    font-size: 1.3rem;
    color: var(--primary-color);
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.reference {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    text-indent: -1.5rem;
    font-size: 0.95rem;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
    text-align: center;
    font-size: 0.9rem;
}

.footer a {
    color: var(--secondary-color);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar ul {
        flex-direction: column;
        align-items: center;
    }
    
    .navbar li {
        margin: 0.5rem 0;
    }
    
    .journal-title {
        font-size: 1.8rem;
    }
    
    .journal-subtitle {
        font-size: 1rem;
    }
}

/* OJS Specific Components */
.ojs_issue_toc {
    margin: 2rem 0;
}

.ojs_issue_toc_title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.ojs_article {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.ojs_article:last-child {
    border-bottom: none;
}

/* Search and Sidebar */
.sidebar {
    background-color: var(--light-color);
    padding: 1.5rem;
    border-radius: 4px;
    margin-bottom: 2rem;
}

.sidebar_title {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 0.5rem;
}

.search_form input[type="text"] {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.search_form input[type="submit"] {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
}

.search_form input[type="submit"]:hover {
    background-color: var(--dark-color);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.pagination a {
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    margin: 0 0.2rem;
    border-radius: 4px;
}

.pagination a:hover {
    background-color: var(--light-color);
}

.pagination .current {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}