:root {
    --brand-navy: #0F2C59;
    --brand-navy-dark: #0A1E3D;
    --brand-navy-light: #1A3F75;
    
    /* Logo Green Palette */
    --brand-green: #2BA245;
    --brand-green-hover: #218336;
    --brand-green-light: #F0FDF4;
    
    /* Mapped legacy aliases for seamless theme replacement */
    --brand-gold: #2BA245;
    --brand-gold-hover: #218336;
    --brand-gold-light: #F0FDF4;
    --primary-yellow: #2BA245;
    --primary-yellow-hover: #218336;
    
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --text-dark: #0f172a;
    --text-muted: #475569;
    --border-color: #cbd5e1;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    position: relative;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.container, .container-fluid {
    overflow-x: hidden;
}

@media (max-width: 767.98px) {
    .row {
        margin-left: -0.5rem !important;
        margin-right: -0.5rem !important;
    }
    .row > * {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
    .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

/* Light Navigation Bar with Logo Image Only */
.nav-bar {
    background-color: var(--bg-white);
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(15, 44, 89, 0.04);
}

.nav-bar .logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.nav-bar .logo img {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.nav-link-custom {
    color: var(--text-dark) !important;
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    padding: 0.5rem 0.85rem !important;
    border-radius: 6px;
    background: transparent;
    transition: all 0.2s;
}

.nav-link-custom:hover,
.nav-link-custom.active {
    color: var(--brand-green) !important;
    background: var(--brand-green-light);
    font-weight: 600;
}

.navbar-toggler {
    border: 1px solid rgba(0,0,0,0.1) !important;
    border-radius: 6px;
    padding: 0.35rem 0.65rem;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        background: #ffffff;
        padding: 1rem;
        border-radius: 8px;
        box-shadow: 0 10px 25px rgba(0,0,0,0.08);
        border: 1px solid var(--border-color);
        margin-top: 0.5rem !important;
    }
    .navbar-nav .nav-item {
        margin-bottom: 0.25rem;
    }
}

.nav-bar .icon-link {
    color: var(--brand-navy);
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s;
    text-decoration: none;
}

.nav-bar .icon-link:hover {
    color: var(--brand-green);
}

/* Buttons */
.btn-primary-yellow,
.btn-brand-gold,
.btn-brand-green {
    background-color: var(--brand-green);
    color: #ffffff;
    font-weight: 600;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
}

.btn-primary-yellow:hover,
.btn-brand-gold:hover,
.btn-brand-green:hover {
    background-color: var(--brand-green-hover);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(43, 162, 69, 0.35);
}

.btn-brand-navy {
    background-color: var(--brand-navy);
    color: #ffffff;
    font-weight: 600;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
}

.btn-brand-navy:hover {
    background-color: var(--brand-navy-dark);
    color: var(--brand-green);
}

.btn-outline-dark {
    border: 1px solid var(--brand-navy);
    color: var(--brand-navy);
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    border-radius: 4px;
    background: transparent;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-outline-dark:hover {
    background-color: var(--brand-navy);
    color: #ffffff;
}

/* Hero Section */
.hero-section {
    padding: 4.5rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
    border-bottom: 1px solid var(--border-color);
}

.hero-label {
    color: var(--brand-green);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--brand-navy);
}

.hero-text {
    font-size: 0.98rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.hero-icon {
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.hero-icon:hover {
    transform: scale(1.04);
}

.hero-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Section Styles */
.section-label {
    color: var(--brand-green);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--brand-navy);
}

/* Journal Cards */
.content-card {
    background: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(15, 44, 89, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(15, 44, 89, 0.12);
    border-color: var(--brand-green);
}

.content-card img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    background: #ffffff;
    padding: 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.content-card .card-body {
    padding: 1.5rem;
    background: #ffffff;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.content-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--brand-navy);
    margin-bottom: 0.5rem;
}

.content-card .issn {
    color: var(--brand-green);
    font-size: 0.8rem;
    font-weight: 600;
}

.content-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.content-card .card-links {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

.content-card .card-links a {
    font-size: 0.8rem;
    text-decoration: none;
    font-weight: 600;
}

/* 1.5:1 Aspect Ratio Book Cards */
.book-card {
    background: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(15, 44, 89, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
    display: flex;
    flex-direction: row;
}

@media (max-width: 576px) {
    .book-card {
        flex-direction: column;
    }
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(15, 44, 89, 0.12);
    border-color: var(--brand-green);
}

.book-cover-wrapper {
    background: #f8fafc;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid var(--border-color);
    flex-shrink: 0;
}

@media (max-width: 576px) {
    .book-cover-wrapper {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
}

/* 1.5:1 ratio (Height = 1.5 * Width) */
.book-cover-img {
    width: 160px;
    height: 240px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 6px 18px rgba(15, 44, 89, 0.18);
    transition: transform 0.25s ease;
}

.book-card:hover .book-cover-img {
    transform: scale(1.04);
}

.book-card .card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.book-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--brand-navy);
    margin-bottom: 0.5rem;
}

.book-card .authors {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
}

.book-card .isbn {
    color: var(--brand-green);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.book-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.book-card .card-links {
    margin-top: auto;
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

/* Content Sections */
.content-section {
    padding: 4.5rem 0;
}

.content-section.alt-bg {
    background-color: var(--bg-white);
}

.content-section p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.8;
}

/* Feature Box */
.feature-box {
    background: var(--bg-white);
    border-radius: 8px;
    padding: 2.25rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(15, 44, 89, 0.05);
    transition: border-color 0.2s;
}

.feature-box:hover {
    border-color: var(--brand-green);
}

/* Newsletter Box */
.newsletter-box {
    background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-navy-dark) 100%);
    border-left: 6px solid var(--brand-green);
    border-radius: 8px;
    padding: 2.5rem;
    color: #ffffff;
}

.newsletter-box h3,
.newsletter-box p {
    color: #ffffff !important;
}

.form-control-custom {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    padding: 0.75rem 1rem;
    border-radius: 4px;
    font-size: 0.875rem;
}

.form-control-custom:focus {
    border-color: var(--brand-green);
    box-shadow: 0 0 0 0.2rem rgba(43, 162, 69, 0.25);
    outline: none;
}

/* High Contrast Footer with White Box Behind Logo */
.main-footer {
    background-color: var(--brand-navy-dark);
    color: #e2e8f0;
    padding: 3.5rem 0 1.5rem;
    border-top: 4px solid var(--brand-green);
}

.main-footer h6 {
    color: #ffffff !important;
}

.main-footer p, 
.main-footer small, 
.main-footer .text-muted {
    color: #cbd5e1 !important;
}

.footer-logo {
    display: inline-block;
    background: #ffffff;
    padding: 8px 16px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.footer-logo img {
    height: 42px;
    width: auto;
    object-fit: contain;
    display: block;
}

.footer-links a {
    color: #e2e8f0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-links a:hover {
    color: var(--brand-green);
}

/* Badges */
.badge-yellow,
.badge-green {
    background: var(--brand-green);
    color: #ffffff;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.4rem;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        padding: 3rem 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.5rem;
    }
}
