/* Main CSS for SAJBI Journal Website - Executive Design */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Lato:wght@300;400;700&display=swap');

:root {
    /* Brand Colors - Sophisticated & Academic */
    --primary-color: #002147;
    /* Oxford Blue - Trust & Authority */
    --secondary-color: #dab03c;
    /* Antique Gold - Prestige */
    --accent-color: #005f73;
    /* Deep Teal - Modern Intellect */

    /* Neutral Tones */
    --bg-body: #fdfbf7;
    /* Warm White/Paper tint */
    --bg-light: #ffffff;
    --text-main: #1a1a1a;
    --text-muted: #4a4a4a;
    --border-subtle: #e0e0e0;

    /* Gradients */

    /* Shadows & Effects */
    --shadow-card: 0 5px 15px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 15px 30px rgba(0, 0, 0, 0.1);
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
    font-family: 'Lato', sans-serif;
    /* Clean, Readable Sans-Serif */
    color: var(--text-main);
    background-color: var(--bg-body);
    line-height: 1.8;
    font-size: 17px;
    /* Increased Base Font Size */
    overflow-x: hidden;
    /* Prevent horizontal scroll */
}

h1,
h2,
h3,
h4,
h5 {
    font-family: 'Cinzel', serif;
    /* Classic, Roman-inspired Serif */
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

/* --- Top Infobar --- */
.top-infobar {
    background-color: var(--primary-color);
    color: #fff;
    font-size: 0.9rem;
    padding: 8px 0;
    letter-spacing: 0.5px;
}

.top-infobar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.issn-tag {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 10px;
    font-size: 0.85rem;
}

/* --- Header & Navigation --- */
header {
    background-color: var(--bg-light);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-subtle);
}

.branding {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo-img {
    height: 70px;
    width: auto;
}

.brand-titles h1 {
    font-size: 2rem;
    margin: 0;
    line-height: 1;
    color: var(--primary-color);
}

.brand-titles p {
    font-size: 0.95rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 5px;
}

/* Navbar */
.navbar {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    font-weight: 600;
    font-size: 1rem;
    color: var(--primary-color);
    padding: 1.5rem 0;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    /* Align to bottom of header container if needed */
    left: 0;
    width: 0%;
    height: 3px;
    background-color: var(--secondary-color);
    transition: var(--transition-smooth);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Dropdown */
.nav-item {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-light);
    min-width: 240px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition-smooth);
    z-index: 999;
    border-top: 3px solid var(--secondary-color);
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: block;
    padding: 14px 20px;
    color: var(--text-main);
    font-size: 0.95rem;
    border-bottom: 1px solid #f5f5f5;
}

.dropdown-link:hover {
    background-color: #f9f9f9;
    color: var(--secondary-color);
    padding-left: 25px;
}

/* --- Hero Section --- */
/* Slideshow Background Layer */
.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;

    background-size: cover;
    background-position: center;

    animation: heroSlideshow 18s infinite ease-in-out;
}

.hero-section {
    background: var(--gradient-hero);
    background-size: cover;
    background-position: center;
    color: white;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

/* Special Hero Container to Center Content */
.hero-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content {
    max-width: 800px;
    /* Restored to original contained width */
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #fff;
    font-family: 'Cinzel', serif;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 2.5rem;
    border-left: 5px solid var(--secondary-color);
    padding-left: 2rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    backdrop-filter: blur(5px);
}

.btn-hero {
    display: inline-block;
    padding: 1.2rem 2.8rem;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1rem;
    border-radius: 2px;
}

.btn-hero:hover {
    background-color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-hero-outline {
    display: inline-block;
    padding: 1.2rem 2.8rem;
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1rem;
    margin-left: 1rem;
    border-radius: 2px;
}

.btn-hero-outline:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.hero-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: 0.3s;
}

.dot.active {
    background: #dab03c;
    transform: scale(1.4);
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center;
    transition: all 1s ease;
}

/* slides */
.hero-section.slide-0::before {
    background:
        linear-gradient(to right, rgba(0, 33, 71, 0.92), rgba(0, 33, 71, 0.75)),
        url("/images/img1.jpg");
}

.hero-section.slide-1::before {
    background:
        linear-gradient(to right, rgba(0, 33, 71, 0.92), rgba(0, 33, 71, 0.75)),
        url("/images/university.jpg");
}

.hero-section.slide-2::before {
    background:
        linear-gradient(to right, rgba(0, 33, 71, 0.92), rgba(0, 33, 71, 0.75)),
        url("/images/img3.jpg");
}

@keyframes heroSlideshow {

    0%,
    30% {
        background:
            linear-gradient(to right, rgba(0, 33, 71, 0.92), rgba(0, 33, 71, 0.75)),
            url("/images/Background_img.jpeg");
        background-size: cover;
        background-position: center;
    }

    33%,
    63% {
        background: linear-gradient(to right, rgba(0, 33, 71, 0.92), rgba(0, 33, 71, 0.75)),
            url("/images/university.jpg");
        background-size: cover;
        background-position: center;
    }

    66%,
    100% {
        background:
            linear-gradient(to right, rgba(0, 33, 71, 0.92), rgba(0, 33, 71, 0.75)),
            url("/images/university_2.jpg");
        background-size: cover;
        background-position: center;
    }
}

/* --- Stats Bar --- */
.stats-bar {
    background-color: white;
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--border-subtle);
    margin-top: -2rem;
    /* Overlap hero */
    position: relative;
    z-index: 5;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

/* Center Stats Bar Content as well */
.stats-bar .container {
    max-width: 1200px;
    margin: 0 auto;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item h3 {
    font-size: 2.8rem;
    color: var(--secondary-color);
    margin: 0;
    font-family: 'Cinzel', serif;
}

.stat-item p {
    font-size: 1rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: 1px;
}

/* --- Section Styling --- */
.section {
    padding: 6rem 0;
}

.section-grey {
    background-color: #f4f4f4;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
    position: relative;
}

.section-header h2 {
    font-size: 2.4rem;
    display: inline-block;
    padding-bottom: 1rem;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
    margin: 5px auto 0;
}

/* --- About Page Specifics --- */
.page-hero {
    background: linear-gradient(rgba(0, 33, 71, 0.85), rgba(0, 33, 71, 0.7)), url('https://images.unsplash.com/photo-1541339907198-e021fc2d97f5?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 8rem 0 4rem;
    text-align: center;
    margin-bottom: 4rem;
}

.page-hero h1 {
    font-size: 3.5rem;
    color: white;
    margin-bottom: 1.5rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    margin-bottom: 5rem;
}

.about-content h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.about-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--secondary-color);
    z-index: -1;
    border-radius: 4px;
}

/* --- Gallery Section --- */
.gallery-section {
    padding: 5rem 0;
    background-color: #fafafa;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    height: 250px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 1.2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 1.1rem;
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
}

/* --- Related Posts / Info Cards --- */
.related-posts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 2.5rem;
}

.info-card {
    background: white;
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.info-card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-5px);
}

.info-card-header {
    background-color: var(--primary-color);
    padding: 1.2rem;
    color: white;
}

.info-card-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-card-body {
    padding: 1.8rem;
}

.info-card-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 1rem;
}

.info-card-link:hover {
    text-decoration: underline;
}

/* --- Article Cards (List Style) --- */
.article-list-item {
    background: white;
    border: 1px solid var(--border-subtle);
    padding: 2.5rem;
    margin-bottom: 2rem;
    display: flex;
    gap: 2.5rem;
    transition: var(--transition-smooth);
    border-left: 5px solid transparent;
}

.article-list-item:hover {
    box-shadow: var(--shadow-hover);
    border-left-color: var(--secondary-color);
    transform: translateX(5px);
}

.article-date-box {
    background: #f0f0f0;
    padding: 15px;
    text-align: center;
    min-width: 90px;
    height: fit-content;
    border-radius: 4px;
}

.article-date-box .day {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    line-height: 1;
}

.article-date-box .month {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--text-muted);
}

.article-main {
    flex: 1;
}

.article-tag {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--accent-color);
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 0.8rem;
    display: inline-block;
}

.article-title {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.article-title a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.article-meta {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 1.2rem;
}

.article-actions {
    display: flex;
    gap: 1.2rem;
    margin-top: 1.2rem;
}

.btn-small {
    font-size: 0.95rem;
    padding: 8px 20px;
    border: 1px solid var(--border-subtle);
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-small:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* --- Footer --- */
footer {
    background-color: #030b2c;
    color: #c5c6c7;
    padding-top: 2rem;
    font-size: 1rem;

}

.footer-contact {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.88rem;
    line-height: 1.6;
}

.footer-icon-wrap {
    width: 32px;
    height: 32px;
    background: rgba(218, 176, 60, 0.12);
    border: 1px solid rgba(218, 176, 60, 0.25);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.footer-icon-wrap i {
    color: #dab03c;
    font-size: 0.85rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 4rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand h2 {
    color: #fff;
    margin-bottom: 0.8rem;
}

.footer-brand p {
    color: #888;
}

.footer-heading {
    color: #fff;
    font-family: 'Cinzel', serif;
    margin-bottom: 1.8rem;
    font-size: 1.25rem;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    gap: 12px;
    margin-bottom: 1.2rem;
}

.copyright-bar {
    padding: 2rem 0;
    text-align: center;
    background: #010425;
    color: #666;
    font-size: 0.9rem;
}

/* Container Utility - FULL WIDTH OVERRIDE */
.container {

    margin: 0 auto;
    padding: 0 40px;
    /* Minimal padding for edge clearance */
}

/* --- Layout: Sidebar + Main Content - FULL WIDTH --- */
.page-container {
    display: grid;
    grid-template-columns: 350px 1fr;
    /* Fixed sidebar, fluid main */
    gap: 4rem;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 40px;
    align-items: start;
}

/* Sidebar Styles */
.sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: white;
    border: 1px solid var(--border-subtle);
    padding: 2rem;
    margin-bottom: 2.5rem;
    border-radius: 4px;
    box-shadow: var(--shadow-card);
}

.sidebar-widget h3 {
    font-size: 1.4rem;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.8rem;
    margin-bottom: 1.2rem;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    border-bottom: 1px solid #f0f0f0;
}

.sidebar-menu li:last-child {
    border-bottom: none;
}

.sidebar-menu a {
    display: block;
    padding: 1rem 0;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.05rem;
}

.sidebar-menu a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.sidebar-menu a i {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Featured Research (Redesigned for Main Column) */
.featured-research-main {
    background: white;
    border: 1px solid var(--border-subtle);
    padding: 3rem;
    border-radius: 4px;
    margin-bottom: 4rem;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    border-top: 4px solid var(--primary-color);
}

.featured-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1.2rem;
}

.featured-label {
    background: var(--primary-color);
    color: white;
    padding: 6px 15px;
    border-radius: 2px;
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}

.featured-title {
    font-size: 2.2rem;
    /* Larger for full width */
    line-height: 1.3;
    margin-bottom: 1.2rem;
}

.featured-title a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.featured-abstract {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-style: italic;
    background: #f9f9f9;
    padding: 2rem;
    border-left: 4px solid var(--secondary-color);
}

/* Why Publish Section */
.publish-benefits {
    background-color: white;
    padding: 3rem;
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    margin-bottom: 4rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    /* Adjusted for width */
    gap: 4rem;
    margin-top: 2.5rem;
}

.benefit-item {
    text-align: center;
}

.benefit-icon {
    width: 70px;
    height: 70px;
    background: rgba(0, 33, 71, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
    color: var(--primary-color);
    font-size: 1.8rem;
    transition: var(--transition-smooth);
}

.benefit-item:hover .benefit-icon {
    background: var(--primary-color);
    color: white;
    transform: rotateY(180deg);
}

.benefit-item h4 {
    font-size: 1.15rem;
    margin-bottom: 0.8rem;
}

.benefit-item p {
    font-size: 1rem;
    color: var(--text-muted);
}

/* --- Editorial Board - Org Chart Card Style --- */
.board-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    gap: 3rem;
}

.board-card {
    background: white;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--shadow-card);
    text-align: center;
    transition: var(--transition-smooth);
    width: 350px;
    position: relative;
}

.board-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--secondary-color);
}

/* Connector Lines for Hierarchy Effect */
.board-level {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    position: relative;
    width: 100%;
}

.board-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    text-transform: none;
    letter-spacing: 1px;
}

.board-card h4 {
    font-size: 1.1rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
}

.board-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* List style for multiple members in one card */
.board-list {
    text-align: left;
    padding-left: 1rem;
    margin-top: 1rem;
}

.board-list li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    list-style: none;
    /* Removed default bullets */
    position: relative;
    padding-left: 1.5rem;
}

.board-list li::before {
    content: '•';
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -5px;
}



/* Mobile menu styles */
.mobile-menu-toggle {
    display: none;
}

.navbar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 33, 71, 0.45);
    backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.navbar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Responsive */
@media (max-width: 1024px) {
    .mobile-menu-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 1.8rem;
        color: var(--primary-color);
        cursor: pointer;
        padding: 0.5rem;
        z-index: 1002;
        transition: var(--transition-smooth);
        margin-left: auto;
    }

    .mobile-menu-toggle:hover {
        color: var(--secondary-color);
    }

    .mobile-menu-toggle.active {
        color: #ff4d4d;
    }

    .navbar {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background-color: var(--primary-color);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
        z-index: 1001;
        transition: right 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        padding: 6rem 2rem 3rem;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        overflow-y: auto;
    }

    .navbar.active {
        right: 0;
    }

    .nav-links {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .nav-link {
        color: rgba(255, 255, 255, 0.85);
        padding: 0.8rem 0;
        display: block;
        font-size: 1.05rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        text-transform: uppercase;
        width: 100%;
    }

    .nav-link::after {
        display: none;
    }

    .nav-link:hover,
    .nav-link.active,
    .nav-link.submenu-active {
        color: var(--secondary-color);
        padding-left: 5px;
    }

    /* Submenus on mobile (accordions) */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-top: none;
        max-height: 0;
        overflow: hidden;
        background: rgba(255, 255, 255, 0.03);
        transition: max-height 0.3s ease-out;
        padding: 0;
        width: 100%;
        min-width: unset;
        border-left: 2px solid var(--secondary-color);
        margin-top: 0.2rem;
    }

    .dropdown-menu.open {
        max-height: 500px;
    }

    .dropdown-link {
        padding: 0.8rem 1.2rem;
        color: rgba(255, 255, 255, 0.7);
        font-size: 0.95rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    }

    .dropdown-link:hover {
        background-color: rgba(255, 255, 255, 0.05);
        color: var(--secondary-color);
        padding-left: 1.5rem;
    }

    .header-inner {
        padding: 0.8rem 0;
    }

    .nav-link i {
        float: right;
        margin-top: 0.3rem;
        transition: transform 0.3s;
    }

    .nav-link.submenu-active i {
        transform: rotate(180deg);
    }
}

@media (max-width: 900px) {
    .page-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }

    .container {
        padding: 0 1rem;
    }

    .sidebar {
        position: static;
        order: 2;
    }

    .sidebar-widget {
        margin-bottom: 1.5rem;
    }

    /* Header inner stays row for mobile burger toggle align */
    .header-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0;
    }

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

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }

    .article-list-item {
        flex-direction: column !important;
        gap: 1.5rem !important;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .about-image {
        margin: 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Extra Mobile Adjustments */
@media (max-width: 768px) {
    footer .container {
        padding-left: 2.2rem !important;
        padding-right: 2.2rem !important;
    }

    .logo-img {
        height: 50px;
    }

    .brand-titles p {
        font-size: 0.75rem;
        letter-spacing: 0.5px;
    }

    .branding {
        gap: 0.8rem;
    }

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

    .hero-title br {
        display: none;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        padding: 1rem;
    }

    .hero-section {
        padding: 4rem 0;
    }

    .hero-actions {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        align-items: center;
    }

    .btn-hero,
    .btn-hero-outline {
        width: 100%;
        max-width: 320px;
        text-align: center;
        margin-left: 0 !important;
        padding: 1rem 1.5rem;
    }
}

@media (max-width: 600px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .stat-item h3 {
        font-size: 2.2rem;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .brand-titles p {
        font-size: 0.65rem;
        max-width: 200px;
        line-height: 1.3;
    }

    .book-wrapper {
        width: 200px !important;
        height: 285px !important;
    }

    .book-cover {
        width: 100% !important;
        height: 100% !important;
    }
}

/* --- News Grid & Cards --- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.news-card {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-card);
    transition: var(--transition-smooth);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--secondary-color);
}

.news-card-top {
    height: 250px;

    overflow: hidden;
    position: relative;
}

.news-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: var(--transition-smooth);
}

.news-card:hover .news-image {
    transform: scale(1.05);
}

.news-card-body {
    padding: 1.8rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.news-date {
    color: var(--text-muted);
    font-weight: 500;
}

.news-date i {
    color: var(--secondary-color);
    margin-right: 5px;
}

.news-badge {
    background: rgba(0, 33, 71, 0.08);
    color: var(--primary-color);
    padding: 3px 10px;
    border-radius: 3px;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.news-title {
    font-family: 'Cinzel', serif;
    font-size: 1.25rem;
    line-height: 1.4;
    margin: 0;
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.8em;
}

.news-title a {
    color: var(--primary-color);
    text-decoration: none;
}

.news-title a:hover {
    color: var(--secondary-color);
}

.news-excerpt {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-footer {
    padding: 1.2rem 1.8rem 1.8rem;
    border-top: 1px solid var(--border-subtle);
    background: #fafafa;
}

.btn-read-full {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: var(--transition-smooth);
}

.btn-read-full:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.btn-more-news {
    display: inline-block;
    padding: 0.8rem 2.5rem;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    border-radius: 4px;
    background: transparent;
    transition: var(--transition-smooth);
    cursor: pointer;
    text-decoration: none;
}

.btn-more-news:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}