* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #FFFFFF;
    color: #1A1A1A;
    line-height: 1.6;
}

/* Army Green Navigation Bar */
.navbar {
    background: #4B5320;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
}

.logo h1 {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo p {
    color: #E8EDD5;
    font-size: 0.7rem;
}

.nav-tabs {
    display: flex;
    list-style: none;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.nav-tabs li a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
}

.nav-tabs li a:hover {
    background: #3A4216;
}

.nav-tabs li a.active {
    background: #2E3512;
}

/* Main Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 60vh;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #E8EDD5 0%, #C5D1A5 100%);
    padding: 3rem;
    border-radius: 16px;
    text-align: center;
    margin-bottom: 2rem;
}

.hero h1 {
    color: #4B5320;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    color: #333;
}

/* About Section */
.about-section {
    background: #FAFAFA;
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    border-left: 4px solid #4B5320;
}

.about-section h2 {
    color: #4B5320;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* Updates Section - Full Width Horizontal Layout */
.updates-section {
    margin-bottom: 2rem;
}

.updates-section h2 {
    color: #4B5320;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    text-align: left;
}

.updates-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Horizontal Card Layout - Full Width */
.update-card {
    display: flex;
    gap: 1.5rem;
    background: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
}

.update-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.12);
}

/* Left side - Image */
.update-image-wrapper {
    flex: 0 0 220px;
    width: 220px;
    overflow: hidden;
}

.update-image {
    width: 100%;
    height: 100%;
    min-height: 180px;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Right side - Content - WIDENED */
.update-content {
    flex: 1;
    padding: 1.25rem 1.5rem 1.25rem 0;
}

.update-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.update-badge.news { background: #E3F2FD; color: #1565C0; }
.update-badge.announcement { background: #E8EDD5; color: #4B5320; }
.update-badge.achievement { background: #E8F5E9; color: #2E7D32; }
.update-badge.event { background: #FFF3E0; color: #E65100; }

.update-card h3 {
    color: #4B5320;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.update-card p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.update-card small {
    color: #999;
    font-size: 0.75rem;
    display: block;
}

/* No image fallback */
.update-card.no-image .update-content {
    padding-left: 1.5rem;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .update-card {
        flex-direction: column;
    }
    
    .update-image-wrapper {
        flex: 0 0 auto;
        width: 100%;
        height: 200px;
    }
    
    .update-content {
        padding: 1rem;
    }
}


/* Right side - Content */
.update-content {
    flex: 1;
    padding: 1.25rem 1.25rem 1.25rem 0;
}

.update-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.update-badge.news { background: #E3F2FD; color: #1565C0; }
.update-badge.announcement { background: #E8EDD5; color: #4B5320; }
.update-badge.achievement { background: #E8F5E9; color: #2E7D32; }
.update-badge.event { background: #FFF3E0; color: #E65100; }

.update-card h3 {
    color: #4B5320;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.update-card p {
    color: #555;
    line-height: 1.5;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.update-card small {
    color: #999;
    font-size: 0.7rem;
    display: block;
}

/* No image fallback */
.update-card.no-image .update-content {
    padding-left: 1.25rem;
}

.update-card-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 1rem;
    float: left;
}
/* Mobile responsive */
@media (max-width: 768px) {
    .update-card {
        flex-direction: column;
    }
    
    .update-image-wrapper {
        flex: 0 0 auto;
        width: 100%;
        height: 200px;
    }
    
    .update-content {
        padding: 1rem;
    }
}
/* Admin update card image */
.update-card-image {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 1rem;
    float: left;
}

/* Update Badges */
.update-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.update-badge.news { background: #E3F2FD; color: #1565C0; }
.update-badge.announcement { background: #E8EDD5; color: #4B5320; }
.update-badge.achievement { background: #E8F5E9; color: #2E7D32; }
.update-badge.event { background: #FFF3E0; color: #E65100; }

/* Goals Grid */
.goals {
    margin-bottom: 2rem;
}

.goals h2 {
    color: #4B5320;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.5rem;
}

.goals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.goal-card {
    background: #E8EDD5;
    padding: 1.5rem;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.goal-card:hover {
    transform: translateY(-5px);
}

.goal-card h3 {
    color: #4B5320;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.goal-card p {
    color: #555;
    font-size: 0.9rem;
}

/* Journals Grid */
.latest-journals, .journals-grid-full {
    margin-bottom: 2rem;
}

.latest-journals h2, .page-header h1 {
    color: #4B5320;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.journals-grid, .journals-grid-full {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.journal-card, .journal-card-full {
    background: #FAFAFA;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #EEE;
}

.journal-card:hover, .journal-card-full:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.journal-card h3, .journal-card-full h3 {
    color: #4B5320;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.journal-card h3 a, .journal-card-full h3 a {
    color: #4B5320;
    text-decoration: none;
}

.journal-meta, .journal-meta-full {
    color: #666;
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Buttons */
.btn, .btn-sm, .btn-search, .btn-download, .btn-cite {
    display: inline-block;
    background: #4B5320;
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.3s;
    font-size: 0.85rem;
    border: none;
    cursor: pointer;
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
}

.btn-pdf {
    background: #2E7D32;
}

.btn-pdf:hover {
    background: #1B5E20;
}

.btn-google {
    background: #1565C0;
}

.btn-google:hover {
    background: #0D47A1;
}

.btn-outline {
    background: transparent;
    border: 2px solid #4B5320;
    color: #4B5320;
}

.btn-outline:hover {
    background: #4B5320;
    color: white;
}

.btn-search {
    background: #3A4216;
    width: 100%;
}

.btn-reset {
    display: inline-block;
    background: #757575;
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.85rem;
}

.btn-submit, .btn-download, .btn-cite {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

.btn-download {
    background: #2E7D32;
}

.btn-cite {
    background: #1565C0;
}

/* Search Section */
.search-section {
    background: #F5F5F5;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.search-section h3 {
    margin-bottom: 1rem;
    color: #4B5320;
}

.search-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.search-field label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 500;
    font-size: 0.85rem;
}

.search-field select, .search-field input {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid #DDD;
    border-radius: 8px;
    font-family: inherit;
}

.results-count {
    margin-bottom: 1.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #EEE;
}

/* Journal Detail Page */
.journal-detail-container {
    max-width: 900px;
    margin: 0 auto;
}

.journal-detail-header {
    margin-bottom: 1.5rem;
}

.back-link {
    color: #4B5320;
    text-decoration: none;
    font-size: 0.9rem;
}

.journal-detail-header h1 {
    color: #4B5320;
    font-size: 1.8rem;
    margin-top: 0.5rem;
}

.journal-detail-meta {
    background: #F5F5F5;
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.meta-item {
    font-size: 0.9rem;
}

.journal-detail-abstract {
    margin-bottom: 1.5rem;
}

.journal-detail-abstract h3, .journal-detail-keywords h3, .citation-section h3 {
    color: #4B5320;
    margin-bottom: 0.75rem;
}

.keywords-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.keyword-tag {
    background: #E8EDD5;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #4B5320;
}

.journal-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1.5rem 0;
}

.citation-section {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #EEE;
}

.citation-box {
    background: #F5F5F5;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    overflow-x: auto;
}

/* Video Conference */
.video-conference-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.jitsi-meet-container {
    background: #1A1A1A;
    border-radius: 12px;
    overflow: hidden;
}

.jitsi-iframe {
    width: 100%;
    height: 500px;
    border: none;
}

.conference-info {
    background: #F5F5F5;
    padding: 1.5rem;
    border-radius: 12px;
}

.info-card {
    margin-top: 1rem;
}

.info-card ul {
    margin-top: 0.5rem;
    padding-left: 1.5rem;
}

/* Forms */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: #FAFAFA;
    padding: 2rem;
    border-radius: 16px;
}

.registration-form .form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #DDD;
    border-radius: 8px;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.alert-success {
    background: #E8F5E9;
    color: #2E7D32;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.alert-error {
    background: #FFEBEE;
    color: #C62828;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    background: #E8EDD5;
    padding: 2rem;
    text-align: center;
    margin-top: 3rem;
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
}

.footer p {
    color: #4B5320;
    font-size: 0.85rem;
}

/* No PDF notice */
.no-pdf-notice {
    background: #FFF3E0;
    padding: 1rem;
    border-radius: 8px;
    color: #E65100;
    border-left: 4px solid #FF9800;
}


/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .container {
        padding: 1rem;
    }
    
    .video-conference-container {
        grid-template-columns: 1fr;
    }
    
    .search-grid {
        grid-template-columns: 1fr;
    }
    
    .update-image {
        max-height: 200px;
    }
}