/* ==========================================================================
   AIAS PRO THEME - ACADEMIC PUBLISHER STYLE
   Inspired by Elsevier & Modern Research Platforms
   ========================================================================== */

:root {
    /* Color Palette - Elsevier Inspired */
    --color-primary: #003569; /* Deep Academic Blue */
    --color-primary-dark: #002244;
    --color-accent: #EB6500; /* Publisher Orange for CTAs */
    --color-accent-hover: #c45200;
    --color-text-main: #2d2d2d;
    --color-text-light: #595959;
    --color-bg-light: #f7f8fa;
    --color-border: #e1e1e1;
    --color-white: #ffffff;

    /* Spacing & Layout */
    --container-width: 1280px;
    --header-height: 80px;
    --border-radius: 4px; /* Sharp, professional corners */
    --shadow-subtle: 0 2px 8px rgba(0,0,0,0.05);
    --shadow-hover: 0 8px 24px rgba(0,0,0,0.12);

    /* Typography */
    --font-sans: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --font-serif: 'Georgia', serif;
}

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

body {
    font-family: var(--font-sans);
    color: var(--color-text-main);
    line-height: 1.6;
    background-color: var(--color-white);
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: all 0.2s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ==========================================================================
   Navigation Bar (Sticky & Responsive)
   ========================================================================== */
.navbar {
    background: var(--color-white);
    height: var(--header-height);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-subtle);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}
.nav-logo-container {
    background-color: #FFFFFF; /* The desired background color */
    display: inline-block;    /* Ensures the container only wraps the image */
    padding: 10px;            /* Optional: adds space around the image */
  }

/* Desktop Menu */
.nav-menu {
    display: flex;
    gap: 30px;
    height: 100%;
    align-items: center;
}

.nav-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-link {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text-main);
    padding: 0 5px;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.nav-link:hover, .nav-link.active {
    color: var(--color-accent);
}
/* Navigation Brand Styling */
.nav-brand {
    display: flex;
    align-items: center; /* Vertically centers the logo and text */
    gap: 12px;           /* Space between logo and text */
    text-decoration: none;
    font-weight: 800;    /* Bold text for AIAS */
    font-size: 1.5rem;   /* Adjust text size as needed */
    color: #002244;      /* Your brand dark blue */
}

.brand-logo {
    height: 35px;        /* FIXED HEIGHT: Prevents layout shift */
    width: auto;         /* Maintains aspect ratio */
    display: block;      /* Removes default inline-image spacing */
    object-fit: contain; /* Ensures logo fits within the box */
}

/* Optional: Mobile Responsiveness */
@media (max-width: 768px) {
    .brand-logo {
        height: 32px;    /* Slightly smaller on mobile */
    }
}

/* Dropdown Menu */
.dropdown {
    position: absolute;
    top: var(--header-height);
    left: -20px;
    background: var(--color-white);
    width: 260px;
    min-width: 220px; /* Make slightly wider for longer text */
    border: 1px solid var(--color-border);
    border-top: 3px solid var(--color-accent);
    box-shadow: var(--shadow-hover);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

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

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

.dropdown a {
    display: block;
    padding: 10px 20px;
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.dropdown li a {
    font-size: 0.9rem; /* Slightly smaller font for density */
    padding: 10px 20px;
}

.dropdown a:hover {
    background: var(--color-bg-light);
    color: var(--color-primary);
    padding-left: 25px; /* Subtle slide effect */
}

/* Divider for the Journal Menu */
.dropdown .divider {
    height: 1px;
    background-color: #eee;
    margin: 5px 0;
}

/* Mobile Toggle */
.menu-toggle {
    display: none;
    cursor: pointer;
    color: var(--color-primary);
}

/* Mobile Menu Scroll Fix */
/* Since you have many items now, the mobile menu needs to be scrollable */
@media (max-width: 900px) {
    .nav-menu {
        max-height: 80vh; /* Limit height */
        overflow-y: auto; /* Allow scrolling if menu is too long */
        padding-bottom: 20px;
    }
}
/* ==========================================================================
   Hero Section (Elsevier Style)
   ========================================================================== */
.hero {
    position: relative;
    background-image: linear-gradient(rgba(0,53,105,0.85), rgba(0,34,68,0.9)), url('images/joshua-sortino-LqKhnDzSF-8-unsplash.jpg');
    background-size: cover;
    background-position: center;
    height: 600px;
    display: flex;
    align-items: center;
    color: var(--color-white);
}

.hero-content {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.hero-tagline {
    background: var(--color-accent);
    display: inline-block;
    padding: 5px 15px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    border-radius: 2px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 25px;
    max-width: 800px;
}

.hero p {
    font-size: 1.25rem;
    max-width: 600px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.btn-group {
    display: flex;
    gap: 15px;
}
.btn-group-center {
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: all 0.3s;
}

.btn-primary {
    background: var(--color-accent);
    color: var(--color-white);
}

.btn-primary:hover {
    background: var(--color-accent-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--color-white);
    color: var(--color-white);
}
.btn-secondary_border {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-white);
}
.btn-secondary:hover {
    background: var(--color-white);
    color: var(--color-primary);
}

/* ==========================================================================
   Content Sections
   ========================================================================== */
.section {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--color-bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.section-header p {
    color: var(--color-text-light);
    font-size: 1.1rem;
}

/* Cards (Journal Highlights) */
.grid-3 {
    display: grid;
    /* OLD: minmax(350px, 1fr) <- This caused the break on mobile
       NEW: minmax(280px, 1fr) <- This fits on iPhone SE and small Androids 
    */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0px 20px;
    width: 100%; /* Ensures grid doesn't overflow parent */
}
.grid-3-extra-padding {
    padding: 20px 20px;
}

.card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.card-image {
    height: 200px;
    background-color: #ddd;
    background-size: cover;
    background-position: center;
}

.card-content {
    padding: 30px;
}

.card-content h3 {
    color: var(--color-primary);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.card-link {
    color: var(--color-accent);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 15px;
}
/* Safety Net: Forcing a single column on strictly mobile devices 
   to ensure cards stack perfectly vertically.
*/
@media (max-width: 768px) {
    .grid-3 {
        grid-template-columns: 1fr; /* Force 1 column stack */
        gap: 20px; /* Slightly tighter gap on mobile */
        padding: 0 15px; /* Less side padding on mobile */
    }
    
    .info-card {
        padding: 20px; /* Reduce internal card padding on mobile to save space */
    }
}

/* Inner Page Specifics (Authors/Editors/Reviewers) */
.page-header {
    background: var(--color-bg-light);
    padding: 60px 0;
    border-bottom: 1px solid var(--color-border);
}

.page-container {
    max-width: 900px; /* Reading width */
    margin: 0 auto;
    padding: 60px 20px;
}

.accordion-item {
    border: 1px solid var(--color-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.accordion-header {
    background: var(--color-white);
    padding: 20px;
    cursor: pointer;
    font-weight: 600;
    color: var(--color-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-header:hover {
    background: #f9f9f9;
}

.accordion-content {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s;
    background: #fff;
    color: var(--color-text-light);
}

.accordion-item.open .accordion-content {
    padding: 20px;
    max-height: 1000px; /* Arbitrary large height */
    border-top: 1px solid var(--color-border);
}

/* Footer */
.main-footer {
    background: #1a1a1a;
    color: #fff;
    padding: 60px 0 20px;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: var(--container-width);
    margin: 0 auto 40px;
    padding: 0 20px;
}

.footer-col h4 {
    color: var(--color-white);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a {
    color: #999;
    font-size: 0.9rem;
}

.footer-col a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 20px;
    color: #666;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column; /* Stacks items vertically */
    align-items: flex-start; /* Aligns them to the left (change to 'center' if you prefer) */
    gap: 10px;              /* Adds space between Copyright and Links */
    padding-top: 10px;      /* Optional: subtle breathing room */
    border-top: 1px solid rgba(255,255,255,0.1); /* Optional: distinct separator */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .menu-toggle { display: block; }
    
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: var(--color-white);
        flex-direction: column;
        height: auto;
        padding: 20px;
        box-shadow: var(--shadow-hover);
        display: none; /* Hidden by default on mobile */
    }

    .nav-menu.active { display: flex; }
    
    .nav-item { width: 100%; flex-direction: column; align-items: flex-start; height: auto; }
    .nav-link { padding: 15px 0; width: 100%; justify-content: space-between;}
    
    .dropdown {
        position: static;
        width: 100%;
        box-shadow: none;
        border: none;
        border-left: 2px solid var(--color-border);
        margin-left: 10px;
        display: none; /* JS will toggle this */
        opacity: 1;
        visibility: visible;
        transform: none;
    }
    
    .nav-item.mobile-open .dropdown { display: block; }
    
    .hero h1 { font-size: 2.2rem; }
    .hero { height: auto; padding: 100px 0; }
    .btn-group { flex-direction: column; }
    .btn { width: 100%; justify-content: center; }
}

/* ==========================================================================
   Additions for Editor Page (Sophisticated Layouts)
   ========================================================================== */

/* Split Layout (Text + Sidebar Box) */
.split-layout {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.split-content {
    flex: 2;
}

.split-content h2{
    font-size: 1.2rem;
    color: var(--color-primary);
    margin-bottom: 10px;
    font-weight: 500;
}

.split-content h1{
    font-size: 2.0rem;
    color: var(--color-primary);
    margin-bottom: 10px;
    font-weight: 500;
}
.split-box {
    flex: 1;
}

.lead-text {
    font-size: 1.15rem;
    color: var(--color-text-main);
    margin-bottom: 20px;
    font-weight: 400;
}

.heading-underline {
    position: relative;
    display: inline-block;
    margin-bottom: 30px;
    font-size: 2.0rem;
}

.heading-underline::after {
    content: '';
    display: block;
    width: 220px;
    height: 4px;
    background: var(--color-accent);
    margin-top: 10px;
}
.heading-underline-involve::after {
    width: 270px;
}
.heading-underline-consulting::after {
    width: 185px;
}
.heading-underline-editor::after {
    width: 265px;
}

/* Highlight Box (Onboarding) */
.highlight-box {
    background: #eef2f6; /* Very light blue/grey */
    border-left: 4px solid var(--color-primary);
    padding: 30px;
    border-radius: 0 8px 8px 0;
}

.highlight-box h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: var(--color-primary);
    font-size: 1.2rem;
}

/* Info Cards (Responsibilities) */
.info-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow-subtle);
    border: 1px solid var(--color-border);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.icon-wrapper {
    width: 50px;
    height: 50px;
    background: #f0f7ff;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 20px;
}

.info-card h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
}

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

/* Timeline (Workflow) */
.timeline {
    max-width: 800px;
    margin: 40px auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    width: 2px;
    background: #e1e1e1;
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 40px;
}

.timeline-marker {
    position: absolute;
    left: 0;
    top: 0;
    width: 42px;
    height: 42px;
    background: var(--color-white);
    border: 2px solid var(--color-accent);
    color: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    z-index: 2;
}

.timeline-content h3 {
    color: var(--color-primary);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.timeline-content p {
    color: var(--color-text-light);
}

/* BG Dark Utility */
.bg-primary-dark {
    background-color: var(--color-primary);
    color: white;
}

.text-white { color: white !important; }
.text-center { text-align: center; }


/* Responsive adjustments for new elements */
@media (max-width: 768px) {
    .split-layout {
        flex-direction: column;
        gap: 30px;
    }
    
    .timeline::before {
        left: 15px;
    }
    .timeline-marker {
        width: 32px;
        height: 32px;
        left: 0;
    }
    .timeline-item {
        padding-left: 50px;
    }
}

/* ==========================================================================
   FIX: Section Header Alignment on Mobile/Tablet
   ========================================================================== */

/* The threshold is set to 1024px. 
   Below this width, the layout switches from "Side-by-Side" to "Top-to-Bottom".
*/
@media (max-width: 1024px) {
    
    /* 1. Reset the container to block mode (vertical stacking) */
    .section .nav-container {
        display: block; 
        height: auto;
        padding: 0 20px;
    }

    /* 2. Ensure the header takes full width and centers itself */
    .section-header {
        width: 100%;
        text-align: center;
        margin-bottom: 40px; /* Add space between text and grid */
        margin-left: auto;
        margin-right: auto;
    }

    /* 3. Ensure the text inside doesn't get squashed */
    .section-header h2 {
        margin-top: 0;
    }
    
    .section-header p {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
}

/* ==========================================================================
   Editorial Board Profile Styles
   ========================================================================== */

/* Large Card (Editor-in-Chief) */
.profile-card-large {
    display: flex;
    gap: 40px;
    align-items: center;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 30px;
    box-shadow: var(--shadow-subtle);
}

.profile-image-large {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    border: 4px solid #f0f7ff;
}

.profile-details h3 {
    font-size: 1.8rem;
    color: var(--color-primary);
    margin-bottom: 5px;
}

.profile-details .role {
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 5px;
}

.profile-details .university {
    color: var(--color-text-light);
    font-style: italic;
    margin-bottom: 15px;
}

.text-link {
    color: var(--color-primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
}

/* Standard Grid for Associate Editors */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.profile-card {
    background: white;
    padding: 30px 20px;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    text-align: center;
    transition: transform 0.3s;
}

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

.profile-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    margin: 0 auto 20px;
    border: 3px solid #f0f7ff;
}

.profile-card h3 {
    font-size: 1.1rem;
    color: var(--color-text-main);
    margin-bottom: 5px;
}

.profile-card .university {
    font-size: 0.9rem;
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 5px;
}

.profile-card .specialty {
    font-size: 0.85rem;
    color: var(--color-text-light);
}

/* Responsive for Editorial Board */
@media (max-width: 768px) {
    .profile-card-large {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-image-large {
        width: 150px;
        height: 150px;
    }
}

/* ==========================================================================
   UPDATED: Editorial Board & Stepper Logic
   ========================================================================== */

/* 1. New Hero Header (Fixed Spacing & Background) */
.hero-board {
    position: relative;
    /* Updated Gradient: Stronger dark overlay on the left for text readability */
    background-image: linear-gradient(to right, rgba(0,34,68,0.95) 0%, rgba(0,34,68,0.7) 60%, rgba(0,34,68,0.4) 100%), url('images/giammarco-boscaro-zeH-ljawHtg-unsplash.jpg?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    padding: 80px 0; /* More vertical breathing room */
    color: white;
    
    /* Flex settings to vertically center the content box within the hero */
    display: flex;
    align-items: center;

    min-height: auto; /* Allow it to shrink based on content */
}

.hero-board-content {
    max-width: var(--container-width); /* Align with main grid */
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    
    /* KEY CHANGES: Left Alignment */
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Aligns items to the left */
    text-align: left;        /* Aligns text to the left */
    gap: 15px; 
}

/* Replaces .pill-label */
.hero-subheading {
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
    
    /* The color of the previous pill-label */
    color: var(--color-accent); 
    
    /* Optional: Add a small decorative line next to it for "Sophisticated" feel */
    display: flex;
    align-items: center;
    gap: 15px;
}

.hero-subheading::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background-color: var(--color-accent);
    opacity: 0.7;
}

.hero-board h1 {
    font-size: 4rem; /* Larger, more impactful */
    line-height: 1.1;
    margin: 0;
    font-weight: 800;
}

.hero-board p {
    font-size: 1.3rem;
    opacity: 0.9;
    margin: 0;
    line-height: 1.6;
    max-width: 700px; /* Limit line length for readability */
    font-weight: 300;
}

/* Mobile Responsiveness for the new Header */
@media (max-width: 768px) {
    .hero-board {
        padding: 100px 0;
    }
    
    .hero-board h1 {
        font-size: 2.8rem;
    }
    
    .hero-board p {
        font-size: 1.1rem;
    }
}

/* 2. Interactive Board Layout (The Stepper) */
.board-layout {
    display: flex;
    gap: 50px;
    min-height: 600px; /* Ensure height for aesthetics */
}

/* Left Sidebar (The Stepper) */
.board-stepper {
    flex: 1;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stepper-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--color-text-light);
    letter-spacing: 1px;
    margin-bottom: 20px;
    padding-left: 15px;
}

.stepper-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: transparent;
    border: none;
    text-align: left;
    padding: 15px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.stepper-item:hover {
    background: #f0f4f8;
}

.stepper-item.active {
    background: white;
    box-shadow: var(--shadow-subtle);
    border-left: 3px solid var(--color-accent);
}

.step-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    transition: background 0.2s;
}

.stepper-item.active .step-indicator {
    background: var(--color-accent);
    transform: scale(1.2);
}

.step-text {
    display: flex;
    flex-direction: column;
}

.step-role {
    font-size: 0.8rem;
    color: var(--color-text-light);
    font-weight: 600;
}

.step-name {
    font-size: 1rem;
    color: var(--color-primary);
    font-weight: 700;
}

/* Right Content Area (Dynamic Display) */
.board-display {
    flex: 2;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 40px;
    box-shadow: var(--shadow-hover);
    position: relative;
}

.profile-detail {
    display: none; /* Hidden by default */
    animation: fadeIn 0.4s ease-out;
}

.profile-detail.active {
    display: block; /* Show active */
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.detail-header {
    display: flex;
    gap: 25px;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.detail-image {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 4px solid #f7f8fa;
    flex-shrink: 0;
}

.detail-header h2 {
    font-size: 1.8rem;
    color: var(--color-primary);
    margin-bottom: 5px;
}

.detail-uni {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--color-text-light);
    font-size: 1.1rem;
}

.detail-body h2 {
    color: var(--color-primary);
    margin-bottom: 5px;
    font-size: 1.5rem;
}

.detail-body h4 {
    color: var(--color-primary);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.detail-body p {
    font-size: 1.05rem;
    color: var(--color-text-main);
    margin-bottom: 25px;
    line-height: 1.7;
}

.detail-stats {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.stat-box {
    background: #f0f7ff;
    color: var(--color-primary);
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.9rem;
}

/* Responsive Logic for Stepper */
@media (max-width: 900px) {
    .board-layout {
        flex-direction: column;
    }

    .board-stepper {
        max-width: 100%;
        flex-direction: row; /* Turn vertical list into horizontal scroll on tablet */
        overflow-x: auto;
        padding-bottom: 10px;
        gap: 10px;
    }

    .stepper-item {
        min-width: 250px; /* Force cards to have width for scrolling */
        background: white;
        border: 1px solid var(--color-border);
    }
    
    .stepper-item.active {
        border-left: 1px solid var(--color-border); /* Reset left border */
        border-bottom: 3px solid var(--color-accent); /* Use bottom border for active */
    }
}

@media (max-width: 600px) {
    .hero-board h1 { font-size: 2.5rem; }
    
    .detail-header {
        flex-direction: column;
        text-align: center;
    }
    
    .stepper-item {
        min-width: 200px;
    }
}
/* ==========================================================================
   FIX: Mobile Dropdown Spacing
   ========================================================================== */

@media (max-width: 768px) {
    /* 1. Target the links inside the dropdown menu specifically on mobile */
    .dropdown a {
        /* Reduce padding from 12px to 8px top/bottom */
        padding: 8px 20px 8px 30px !important; 
        
        /* Optional: Make font slightly smaller for better fit */
        font-size: 0.9rem;
        
        /* Ensure border doesn't add bulk */
        border-bottom: 1px solid #eee; 
    }

    /* 2. Optional: Reduce the parent menu item padding slightly too */
    .nav-link {
        padding: 12px 0; /* Reduced from 15px */
    }
    
    /* 3. Ensure the dropdown container doesn't have extra margin */
    .dropdown {
        margin-top: 0;
        border-left: 2px solid var(--color-border);
    }
}

/* ==========================================================================
   UPDATED: Author Page Specific Styles
   ========================================================================== */

/* 1. Stats Grid (Intro) */
.stats-grid {
    text-align: center;
}

.stat-card {
    padding: 20px;
}

.stat-icon {
    width: 40px;
    height: 40px;
    color: var(--color-accent);
    margin-bottom: 15px;
}

.stat-card h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

/* 2. Numbered Stepper (Overrides generic stepper) */
.step-indicator-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e1e1e1;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    transition: all 0.2s;
}

.stepper-item.active .step-indicator-num {
    background: var(--color-accent);
    color: white;
}

/* 3. Detail Header Simple (No Image) */
.detail-header-simple {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.icon-box {
    width: 50px;
    height: 50px;
    background: #f0f7ff;
    color: var(--color-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-header-simple h2 {
    margin: 0;
    font-size: 1.8rem;
    color: var(--color-primary);
}

/* 4. Checklists & Alerts */
.checklist {
    list-style: none;
    padding: 0;
}

.checklist li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 1rem;
}

.checklist li i {
    color: var(--color-accent-green, #28a745); /* Fallback green */
    width: 18px;
}

.info-alert {
    background: #fff8e1; /* Light yellow */
    border-left: 4px solid #ffc107;
    padding: 15px;
    margin-top: 20px;
    border-radius: 0 4px 4px 0;
    font-size: 0.95rem;
    color: #555;
}

/* 5. Resource Cards */
.resource-card {
    display: block;
    background: white;
    border: 1px solid var(--color-border);
    padding: 30px;
    border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
}

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

.res-icon {
    width: 40px;
    height: 40px;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.resource-card h3 {
    color: var(--color-text-main);
    margin-bottom: 10px;
}

.resource-card p {
    color: var(--color-text-light);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.link-text {
    color: var(--color-accent);
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 6. Mini Grid for Text */
.grid-2-mini {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 15px;
}

@media (max-width: 600px) {
    .grid-2-mini {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   UPDATED: Compact Spacing
   ========================================================================== */

/* Shrink Standard Section Padding */
.section {
    /* Reduced from 80px to 50px */
    padding: 70px 0 !important;
}

/* ==========================================================================
   STYLE GUIDE PAGE STYLES
   ========================================================================== */

/* 1. Sidebar Navigation */
.sidebar-nav-wrapper {
    flex: 1; /* Takes 1 part of the grid */
    position: relative; /* Context for sticky */
}

.sidebar-nav {
    background: #f7f8fa;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    position: sticky;
    top: 100px; /* Stays 100px from top when scrolling */
}

.sidebar-nav h3 {
    font-size: 1rem;
    text-transform: uppercase;
    color: var(--color-text-light);
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.sidebar-link {
    display: block;
    padding: 10px 0;
    color: var(--color-text-main);
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.sidebar-link:hover, .sidebar-link.active {
    color: var(--color-accent);
    font-weight: 600;
    border-bottom-color: var(--color-accent);
}

/* 2. Content Area */
.style-content {
    flex: 3; /* Takes 3 parts of the grid (wider) */
}

.guide-section {
    margin-bottom: 30px;
    scroll-margin-top: 100px; /* Offset for sticky header */
}

.guide-section h2 {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.guide-section h3 {
    font-size: 1.4rem;
    color: var(--color-text-main);
    margin-top: 20px;
    margin-bottom: 10px;
}

.divider {
    border: 0;
    border-top: 1px solid #eee;
    margin: 30px 0;
}

/* 3. Code Blocks & Tables */
.code-block {
    background: #2d2d2d;
    color: #eee;
    padding: 20px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 15px 0;
    overflow-x: auto;
}

.code-example {
    background: #f0f7ff;
    padding: 20px;
    border-left: 4px solid var(--color-primary);
    margin: 15px 0;
    font-style: italic;
}

.style-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
}

.style-table th, .style-table td {
    border: 1px solid #e1e1e1;
    padding: 12px 15px;
    text-align: left;
}

.style-table th {
    background: #f7f8fa;
    color: var(--color-primary);
    font-weight: 600;
}

/* Responsive Fix */
@media (max-width: 900px) {
    .split-layout {
        flex-direction: column-reverse; /* Put content first, nav bottom on mobile */
    }
    
    .sidebar-nav-wrapper {
        display: none; /* Optional: Hide sidebar on mobile if desired */
    }
}

/* ==========================================================================
   VOLUNTEER FORM STYLES
   ========================================================================== */

.form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 50px;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-subtle);
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.form-header h2 {
    color: var(--color-primary);
    font-size: 2rem;
    margin-bottom: 10px;
}

.form-header p {
    color: var(--color-text-light);
}

/* Section Titles */
.form-section-title {
    font-size: 1.1rem;
    color: var(--color-primary);
    border-bottom: 2px solid #f0f7ff;
    padding-bottom: 10px;
    margin-top: 30px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Grid Layout for Inputs */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.full-width {
    grid-column: 1 / -1;
}

/* Input Styling */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-main);
}

.form-group input, 
.form-group select, 
.form-group textarea {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    border-color: var(--color-accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(235, 101, 0, 0.1); /* Accent glow */
}

.form-hint {
    font-size: 0.8rem;
    color: #888;
}

/* Checkbox Grid */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background 0.2s;
}

.checkbox-item:hover {
    background: #f7f8fa;
}

/* Actions */
.form-actions {
    margin-top: 40px;
    text-align: center;
}

.btn-lg {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 40px;
}

.success-icon {
    color: #28a745;
    margin-bottom: 20px;
}

.success-icon svg {
    width: 64px;
    height: 64px;
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .form-wrapper {
        padding: 20px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .checkbox-grid {
        grid-template-columns: 1fr 1fr;
    }
}
/* ==========================================================================
   JOURNAL INDEX STYLES
   ========================================================================== */

/* 1. Stats Bar (Mini) */
.stat-card-mini {
    text-align: center;
    padding: 10px;
    background: #f7f8fa;
    border-radius: 8px;
    border: 1px solid var(--color-border);
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--color-text-light);
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.stat-value {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-primary);
}

/* 2. Journal Cover Visual Card */
.journal-cover-card {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
}

.cover-visual {
    background: var(--color-primary);
    color: white;
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem; /* For the math equation */
    position: relative;
}

.vol-tag {
    position: absolute;
    bottom: 10px;
    right: 15px;
    font-size: 0.8rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cover-content {
    padding: 30px;
}

.cover-content h3 {
    color: var(--color-primary);
    margin-bottom: 10px;
    font-size: 1.2rem;
    font-weight: 500;
}

.cover-content p {
    color: var(--color-text-light);
    font-size: 0.95rem;
    margin-bottom: 20px;
}


/* ==========================================================================
   UPDATED: Grid Layout for Stats
   ========================================================================== */

/* 1. The Container: Force 4 Columns by default (Desktop) */
.grid-4 {
    display: grid;
    /* This forces exactly 4 equal columns. 
       Unlike auto-fit, it won't wrap prematurely on laptops. */
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px;
    width: 100%;
}

/* 2. Tablet Responsiveness (Portrait Tablets / Small Laptops) */
@media (max-width: 900px) {
    .grid-4 {
        /* Switch to a clean 2x2 grid */
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 3. Mobile Responsiveness (Phones) */
@media (max-width: 600px) {
    .grid-4 {
        /* Stack them vertically for easy reading */
        grid-template-columns: 1fr;
    }
    
    /* Optional: Tweaking the card internals for very small screens */
    .stat-card-mini {
        padding: 15px; /* Save space */
    }
    
    .stat-value {
        font-size: 0.95rem; /* Prevent text overflow */
    }
}

/* ==========================================================================
   UPDATED: Tighter Vertical Spacing (Compact Mode)
   ========================================================================== */

/* 1. Reduce standard section padding (Top/Bottom) */
.section {
    padding: 30px 0 !important; /* Reduced from 50px/80px */
}

/* 2. Reduce Hero/Header padding */
.hero-board, .hero {
    padding: 60px 0 !important; /* Reduced from 120px */
}

/* 3. Reduce the gap between a Section Title and its Content */
.section-header {
    margin-bottom: 30px !important; /* Reduced from 60px */
}

/* 4. Optional: Remove extra margin from the bottom of grids */
.grid-3, .grid-4, .split-layout {
    margin-bottom: 0 !important;
}
/* ==========================================================================
   JOURNAL ISSUE TEMPLATE STYLES
   ========================================================================== */

/* 1. Issue Hero */
.issue-hero {
    background: #f7f8fa;
    padding: 40px 0;
    border-bottom: 1px solid var(--color-border);
    background-image: linear-gradient(to right, rgba(0,34,68,0.95) 0%, rgba(0,34,68,0.85) 60%, rgba(0,34,68,0.6) 100%), url('images/dan-cristian-padureț-unsplash.avif'); 
    background-size: cover; 
    background-position: center; 
    color: white;
}

.issue-header-grid {
    display: flex;
    align-items: center;
    gap: 50px;
}

.issue-info {
    flex: 2;
}

.issue-cover-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
}

.issue-tag {
    background: var(--color-accent);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    display: inline-block;
}

.issue-meta-line {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-text-light);
    font-size: 0.95rem;
    margin-bottom: 20px;
    font-weight: 500;
}

.divider-dot {
    color: #ccc;
}

.editor-note {
    font-style: italic;
    color: #555;
    border-left: 3px solid var(--color-primary);
    padding-left: 15px;
    margin-top: 20px;
}

/* Cover Art Placeholder */
.issue-cover-art {
    width: 200px;
    height: 280px;
    background-color: #ddd;
    background-size: cover;
    background-position: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-radius: 4px;
    position: relative;
}

.cover-overlay {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    text-align: center;
}

.aias-badge {
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 5px 10px;
    font-size: 0.8rem;
    font-weight: 700;
}

/* 2. Article List */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 0; /* Remove gap, handle via padding/border */
}

.article-card {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 30px;
    transition: box-shadow 0.2s;
}

.article-card:hover {
    box-shadow: var(--shadow-hover);
    border-color: var(--color-primary);
}

.article-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--color-text-light);
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.article-type {
    color: var(--color-accent);
    font-weight: 700;
}

.article-title {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 8px;
    line-height: 1.3;
}

.article-authors {
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 15px;
}

.article-abstract {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

.article-actions {
    display: flex;
    gap: 15px;
    border-top: 1px solid #f0f0f0;
    padding-top: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .issue-header-grid {
        flex-direction: column-reverse;
        text-align: center;
    }
    
    .issue-info {
        text-align: left;
    }
    
    .issue-cover-art {
        width: 160px;
        height: 220px;
    }
}
/* ==========================================================================
   FIX: Content Stacking
   ========================================================================== */

/* The .nav-container uses 'display: flex' for the Navbar.
   We must override this for the main content sections so elements 
   stack (Header on Top, Content on Bottom) instead of sitting side-by-side.
*/
.section .nav-container {
    display: block !important;
}

/* ==========================================================================
   JOURNAL SPLIT LAYOUT (Sidebar Below Hero)
   ========================================================================== */

/* 1. Main Wrapper */
.journal-layout {
    display: grid;
    /* Left Sidebar (250px) | Content (Auto) | Right Sidebar (250px) */
    grid-template-columns: 250px 1fr 250px; 
    min-height: 800px;
    background: #fff;
    max-width: 1400px; /* Cap width for large screens */
    margin: 0 auto;
    border-top: 1px solid var(--color-border);
}

/* 2. The Sticky Sidebar */
.journal-sidebar {
    background: #f7f8fa;
    border-right: 1px solid var(--color-border);
    position: sticky;
    top: 80px;
    height: calc(100vh - 80px);
    overflow-y: auto;
}

/* Collapsed State */
.journal-sidebar.collapsed {
    width: 60px;
}

/* 3. Sidebar Internals */
.sidebar-header {
    padding: 15px;
    border-bottom: 1px solid #e1e1e1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f7f8fa;
    position: sticky;
    top: 0;
    z-index: 10;
}

.sidebar-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-primary);
    white-space: nowrap;
    overflow: hidden;
    transition: opacity 0.2s;
}

.journal-sidebar.collapsed .sidebar-title {
    opacity: 0;
    width: 0;
}

.sidebar-scroll {
    padding: 15px;
}

.year-group {
    margin-bottom: 20px;
}

.year-label {
    font-size: 0.75rem;
    color: #999;
    margin-bottom: 8px;
    padding-left: 8px;
    white-space: nowrap;
}

.journal-sidebar.collapsed .year-label {
    display: none;
}

/* Issue Links */
.issue-link {
    display: flex;
    padding: 10px;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    margin-bottom: 2px;
    transition: background 0.2s;
    white-space: nowrap;
    overflow: hidden;
}

.issue-link:hover {
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.issue-link.active {
    background: var(--color-primary);
    color: white;
}

.journal-sidebar.collapsed .issue-link-content {
    display: none;
}

/* Dot Indicator for Collapsed Mode */
.journal-sidebar.collapsed .issue-link::before {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccc;
    margin: 5px auto;
}

.journal-sidebar.collapsed .issue-link.active::before {
    background: var(--color-accent);
}

.journal-sidebar.collapsed .issue-link:hover::before {
    background: var(--color-primary);
}

/* 4. Main Content Area */
.journal-main-content {
    padding: 40px;
    border-right: 1px solid var(--color-border); /* Separator for right sidebar */
    min-width: 0;
}

/* This ensures the articles align with the Hero above, even though the sidebar is flush left */
.journal-main-content .nav-container {
    max-width: 1000px; /* Optimal reading width */
    margin: 0 auto;    /* Center the articles in the remaining space */
    padding: 0 40px;   /* Add breathing room */
}

/* 4. NEW: Right Sidebar (Tools) */
.journal-tools-sidebar {
    padding: 30px 20px;
    background: #fff;
    position: sticky;
    top: 80px;
    height: fit-content; /* Only takes as much height as needed */
}

/* Tool Widgets */
.tool-widget {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.tool-widget:last-child {
    border-bottom: none;
}

.tool-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 10px;
    transition: transform 0.2s;
}

.btn-submit {
    background: var(--color-primary);
    color: white;
}
.btn-submit:hover { background: var(--color-accent); color: white; }

.btn-alerts {
    background: #0077b5; /* LinkedIn Blue style for "Professional" feel */
    color: white;
}

.issn-box {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #666;
}

.issn-label {
    font-weight: 700;
    color: #333;
    display: block;
    margin-bottom: 4px;
}

/* 5. NEW: Tabs Styling */
.journal-tabs {
    display: flex;
    gap: 30px;
    border-bottom: 2px solid #eee;
    margin-bottom: 30px;
}

.tab-link {
    padding-bottom: 10px;
    font-weight: 600;
    color: #999;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color 0.2s;
    margin-bottom: -2px; /* Sits on the line */
}

.tab-link.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

.tab-link:hover {
    color: var(--color-primary);
}

/* Responsive: Collapse sidebars on tablet/mobile */
@media (max-width: 1200px) {
    .journal-layout {
        /* Switch to 2 columns: Sidebar (Left) | Content (Right) */
        grid-template-columns: 250px 1fr;
    }

    .journal-main-content {
        border-right: none; /* Remove border since tools are moving */
    }

    /* FIX #1: Don't hide the Tools sidebar. Move it to the bottom! */
    .journal-tools-sidebar {
        display: block;      /* Ensure it's visible */
        grid-column: 1 / -1; /* Span across full width */
        border-top: 1px solid var(--color-border);
        padding: 40px;
        background: #fafafa;
        
        /* Arrange widgets horizontally to save vertical space */
        display: flex;
        flex-wrap: wrap;
        gap: 30px;
    }
    
    .tool-widget {
        flex: 1;
        min-width: 250px;
        border-bottom: none; /* Remove separator lines */
    }
}


/* 5. Mobile Responsiveness */
@media (max-width: 900px) {
    .journal-layout {
        display: block; /* Stack everything vertically */
    }

    /* 1. Archive Sidebar (Top) */
    .journal-sidebar {
        width: 100%;
        height: auto;
        position: relative;
        top: 0;
        border-right: none;
        border-bottom: 1px solid var(--color-border);
        overflow-y: hidden; /* Disable vertical scroll */
    }
    
    .sidebar-scroll {
        /* Turn it into a horizontal scroll strip for easy thumb access */
        display: flex;
        overflow-x: auto; 
        padding-bottom: 15px;
    }
    
    .year-group {
        display: flex;
        gap: 10px;
        margin-right: 20px;
    }

    /* 2. Main Content (Middle) */
    .journal-main-content {
        /* FIX #2: Reduce padding for iPhone */
        padding: 30px 20px; /* Reduced from 40px to 20px */
        border-right: none;
    }
    
    .journal-main-content .nav-container {
        padding: 0; /* Remove extra internal padding */
    }

    /* 3. Tools Sidebar (Bottom) */
    .journal-tools-sidebar {
        display: block; /* Stack vertically on phone */
    }
    
    .tool-widget {
        width: 100%;
        margin-bottom: 20px;
    }
}
/* ==========================================================================
   UPDATED: Article List Design (Screenshot Match)
   ========================================================================== */
.journal-item {
    display: flex;
    gap: 15px;
    padding: 25px 0;
    border-bottom: 1px solid #eee; /* Light divider line */
    align-items: flex-start;
}

/* Checkbox Column */
.ji-checkbox {
    padding-top: 5px;
}

/* Content Column */
.ji-content {
    flex-grow: 1;
}

/* Title */
.ji-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 6px 0;
    line-height: 1.4;
}

.ji-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.ji-title a:hover {
    color: var(--color-primary);
}

/* Authors */
.ji-authors {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 6px;
}

/* Metadata (Year, DOI) */
.ji-meta {
    font-size: 0.9rem;
    color: #444;
    margin-bottom: 12px;
}

.ji-doi {
    margin-left: 10px;
    color: #666;
}

.ji-doi a {
    color: #0056b3; /* Standard link blue */
    text-decoration: none;
}

.ji-doi a:hover { text-decoration: underline; }

/* Action Bar (Icons) */
.ji-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.85rem;
    align-items: center;
}

.ji-action-link {
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-weight: 500;
    font-family: inherit;
    transition: opacity 0.2s;
}

.ji-action-link:hover { opacity: 0.8; }

.icon-sm {
    width: 16px;
    height: 16px;
}

/* Specific Colors from Screenshot */
.btn-abstract { color: #337ab7; } /* Blue */
.btn-html { color: #d9a300; }     /* Gold/Mustard */
.btn-pdf { color: #d9534f; }      /* Red */
.btn-cited { color: #5bc0de; cursor: default; } /* Teal */

/* Expanded Abstract */
.ji-abstract-hidden {
    margin-top: 15px;
    background: #f8f9fa;
    padding: 15px;
    border-left: 3px solid #337ab7;
    border-radius: 4px;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   UPDATED: Card Style for Article List
   ========================================================================== */

/* This restores the 'Card' look (Boxed, Shadow) instead of just lines */
.journal-item-card {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 8px; /* Rounded corners */
    padding: 30px;      /* Internal spacing */
    margin-bottom: 20px; /* Space between cards */
    transition: transform 0.2s, box-shadow 0.2s;
    display: block; /* Ensure it takes full width */
}

.journal-item-card:hover {
    box-shadow: var(--shadow-hover);
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

/* Author Links Styling */
.auth-link {
    color: #666;
    text-decoration: none;
    border-bottom: 1px dotted #999;
    transition: color 0.2s;
}

.auth-link:hover {
    color: var(--color-primary);
    border-bottom-style: solid;
}

/* Ensure actions don't wrap weirdly */
.ji-actions {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f9f9f9;
}

/* ==========================================================================
   GET INVOLVED PAGE STYLES
   ========================================================================== */

/* 1. Action Cards (The 3 Pillars) */
.action-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
    height: 100%; /* Ensure equal height in grid */
    display: flex;
    flex-direction: column;
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    border-color: var(--color-primary);
}

.action-card .card-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 30px;
}

/* 2. Floating Icons on Cards */
.icon-circle {
    width: 50px;
    height: 50px;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 34, 68, 0.2);
}

/* 3. Small Checklist inside cards */
.checklist-small {
    list-style: none;
    padding: 0;
    margin: 20px 0 30px 0;
    font-size: 0.9rem;
    color: #555;
    flex-grow: 1; /* Pushes button to bottom */
}

.checklist-small li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.checklist-small i {
    color: var(--color-accent);
}

/* 4. Full Width Buttons */
.full-width {
    width: 100%;
    text-align: center;
    display: block;
}

/* 5. Outline Button Style (if not already defined) */
.btn-outline {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

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

/* ==========================================================================
   DONATE PAGE STYLES
   ========================================================================== */

/* 1. Layout Wrapper */
.donation-wrapper {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

/* 2. Left Column: The Pitch */
.donate-pitch {
    flex: 1;
    padding-top: 80px; /* Align visually with widget body */
}
.donate-pitch h3 {
    font-size: 2rem;      /* Larger size */
    font-weight: 800;     /* Extra bold */
    color: #002244;       /* Brand color */
    margin-bottom: 20px;
}

.impact-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.impact-list li {
    display: flex;
    align-items: center;  /* Vertically centers items */
    gap: 15px;            /* Adds space between icon and text */
    margin-bottom: 25px;
}

/* Ensure the text block stays tidy */
.impact-list li div:last-child {
    display: flex;
    flex-direction: column; /* Stack Title and Desc vertically */
}

.impact-icon {
    width: 48px;
    height: 48px;
    background: #e6f0fa;
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
/* Button Icon Alignment */
#donateBtn {
    display: flex;           /* Flexbox for button content */
    align-items: center;     /* Vertically center text & icon */
    justify-content: center; /* Horizontally center content */
    gap: 10px;               /* Space between text and lock icon */
}
/* 3. Right Column: The Widget */
.donate-widget {
    flex: 0 0 450px; /* Fixed width for the form */
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15); /* Strong lift effect */
    border: 1px solid rgba(0,0,0,0.05);
    overflow: hidden;
}

/* Widget Header (Tabs) */
.widget-header {
    display: flex;
    background: #f7f9fc;
    border-bottom: 1px solid #eee;
}

.give-freq {
    flex: 1;
    border: none;
    background: none;
    padding: 20px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}

.give-freq:hover { background: #eee; }

.give-freq.active {
    background: white;
    color: var(--color-primary);
    border-top: 3px solid var(--color-primary);
}

.badge-sm {
    background: var(--color-accent);
    color: white;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 5px;
    text-transform: uppercase;
}

/* Widget Body */
.widget-body {
    padding: 30px;
}

.label-text {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 15px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Amount Grid */
.amount-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.amt-btn {
    border: 2px solid #eee;
    background: white;
    padding: 15px 0;
    border-radius: 6px;
    font-weight: 700;
    color: #555;
    cursor: pointer;
    transition: all 0.2s;
}

.amt-btn:hover { border-color: var(--color-primary); }

.amt-btn.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

/* Custom Input */
.custom-amt-wrapper {
    position: relative;
    grid-column: span 2; /* Span remaining space if 3-col grid isn't full, but here we might want it separate */
    grid-column: 1 / -1; /* Full width row */
}

.currency-symbol {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    font-weight: 700;
}

.custom-amt-input {
    width: 100%;
    padding: 12px 12px 12px 30px;
    border: 2px solid #eee;
    border-radius: 6px;
    font-size: 1rem;
    outline: none;
}

.custom-amt-input:focus { border-color: var(--color-primary); }

/* Impact Preview */
.impact-preview {
    background: #f0f7ff;
    border-radius: 6px;
    padding: 15px;
    color: #444;
    font-size: 0.9rem;
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 25px;
}

.impact-preview i { color: var(--color-primary); }

/* Payment Footer */
.payment-methods {
    margin-top: 15px;
    text-align: center;
    font-size: 0.8rem;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* FAQ Styling */
.faq-item h4 {
    margin-bottom: 10px;
    color: var(--color-primary);
}

.faq-item p {
    color: #666;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 900px) {
    .donation-wrapper {
        flex-direction: column-reverse; /* Put widget ON TOP of pitch on mobile */
        gap: 40px;
    }

    .donate-widget {
        width: 100%;
        flex: auto;
    }

    .section {
        margin-top: 0 !important; /* Reset overlap on mobile */
    }
}

/* ==========================================================================
   PARTNERSHIPS PAGE STYLES
   ========================================================================== */

/* 1. Benefit Cards (Grid) */
.benefit-card {
    background: #f8f9fa;
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-color: #eee;
    transform: translateY(-5px);
}

.benefit-card .icon-box {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0px auto;
    color: var(--color-primary);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.benefit-card h3 {
    margin-bottom: 15px;
    color: var(--color-primary);
}

/* 2. Partner Models (Alternating Layout) */
.partner-model {
    display: flex;
    align-items: stretch;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 60px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.partner-model.reverse {
    flex-direction: row-reverse;
}

.partner-model .pm-content {
    flex: 1;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pm-content h3{
    font-size: 1.1rem;
    margin-bottom: 5px;
    font-weight: 500;
}
.partner-model .pm-image {
    flex: 1;
    background-size: cover;
    background-position: center;
    min-height: 400px;
}

.pm-tag {
    display: inline-block;
    background: #e6f0fa;
    color: var(--color-primary);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
    width: fit-content;
}

/* 3. Form Styling */
.partner-form-box {
    background: #f7f9fc;
    padding: 40px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #444;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    transition: border 0.2s;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    border-color: var(--color-primary);
    outline: none;
}

/* Contact Card (Left of form) */
.contact-card {
    margin-top: 40px;
    padding: 30px;
    background: #f8f9fa; /* Slightly different grey */
    border-left: 4px solid var(--color-accent);
    border-radius: 4px;
}

.contact-form-title {
    font-size: 1.3rem; 
    font-weight: 600; 
    text-align: center; 
    margin-bottom: 15px;
    color: var(--color-primary);
}

.cc-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.cc-row:last-child { margin-bottom: 0; }

.cc-row i {
    color: var(--color-primary);
}

/* 4. Responsive */
@media (max-width: 900px) {
    .partner-model {
        flex-direction: column !important; /* Stack both normal and reverse */
    }
    
    .partner-model .pm-image {
        min-height: 250px;
    }
    
    .partner-model .pm-content {
        padding: 40px 30px;
    }

    .hero-content {
        padding: 0 20px;
    }
}

/* ==========================================================================
   VOLUNTEER PAGE STYLES
   ========================================================================== */

/* 1. Feature Icons (Intro) */
.feature-box {
    text-align: center;
    padding: 20px;
}

.feature-icon {
    width: 40px;
    height: 40px;
    color: var(--color-primary);
}

/* 2. Role Cards Grid */
.volunteer-roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.role-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.role-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

/* Image Header for Card */
.role-header {
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.role-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 34, 68, 0.7); /* AIAS Blue Overlay */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.role-overlay i {
    width: 32px;
    height: 32px;
    margin-bottom: 10px;
    color: var(--color-accent);
}

.role-overlay h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
}

/* Card Body */
.role-body {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.role-body p {
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* 3. Step Process (Visual List) */
.step-process {
    margin-top: 40px;
}

.step {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.step-num {
    width: 40px;
    height: 40px;
    background: var(--color-primary);
    color: white;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.step strong {
    display: block;
    margin-bottom: 5px;
    color: var(--color-primary);
    font-size: 1.1rem;
}

.step span {
    color: #666;
}
/* ==========================================================================
   ACADEMY PAGE STYLES
   ========================================================================== */

/* 1. Program Spotlight (Summer Camp) */
.program-spotlight {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    display: flex;
    align-items: stretch;
}

.spotlight-image {
    flex: 1;
    background-size: cover;
    background-position: center;
    min-height: 400px;
    position: relative;
}

.spotlight-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--color-accent);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.spotlight-content {
    flex: 1;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.program-type {
    display: block;
    color: var(--color-primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.program-dates {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    margin-top: 10px;
    font-size: 0.95rem;
}

.checklist-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.checklist-columns li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: #444;
}

.checklist-columns i {
    color: var(--color-accent);
}

.spotlight-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: auto;
}

.btn-text {
    text-decoration: none;
    color: #666;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s;
}

.btn-text:hover { color: var(--color-primary); }

/* 2. Course Catalog Cards */
.course-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-color: #ddd;
}

.course-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.course-code {
    font-weight: 700;
    color: #555;
    font-size: 0.9rem;
    background: rgba(255,255,255,0.6);
    padding: 4px 8px;
    border-radius: 4px;
}

.course-icon {
    width: 24px;
    height: 24px;
    color: var(--color-primary);
}

.course-body {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.course-body h4 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    color: var(--color-primary);
}

.course-body p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.course-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: #888;
}

.course-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 3. Responsive Adjustments */
@media (max-width: 900px) {
    .program-spotlight {
        flex-direction: column;
    }

    .spotlight-image {
        min-height: 250px;
    }
    
    .spotlight-content {
        padding: 30px;
    }
    
    .checklist-columns {
        grid-template-columns: 1fr; /* Single column checklist on phone */
    }
}

/* ==========================================================================
   SUMMER PROGRAM PAGE STYLES
   ========================================================================== */

/* 1. Hero Buttons */
.btn-outline-white {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.8);
    color: white;
    padding: 15px 35px;
    font-size: 1.1rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

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

/* 2. Mini Stats Strip */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-mini {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.stat-mini i {
    opacity: 0.8;
    width: 28px;
    height: 28px;
}

.stat-mini strong {
    font-size: 1.2rem;
    display: block;
}

.stat-mini span {
    font-size: 0.85rem;
    opacity: 0.8;
    text-transform: uppercase;
}

/* 3. Curriculum Grid */
.curriculum-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.topic-card {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #eee;
    transition: transform 0.3s ease;
}

.topic-card:hover {
    transform: translateY(-5px);
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-color: var(--color-accent);
}

.topic-icon {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    margin-bottom: 5px;
}

/* 4. Timeline (Day in the Life) */
.timeline {
    position: relative;
    border-left: 2px solid #ddd;
    margin-left: 20px;
    padding-left: 30px;
    margin-top: 40px;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -37px; /* Align dot on the line */
    top: 5px;
    width: 12px;
    height: 12px;
    background: var(--color-primary);
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 0 2px var(--color-primary);
}

.timeline-item .time {
    font-weight: 700;
    color: var(--color-accent);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.timeline-item .event strong {
    display: block;
    font-size: 1.1rem;
    color: #333;
}

.timeline-item .event span {
    color: #666;
}

/* 5. Image Stack (Visual Interest) */
.image-stack {
    position: relative;
    height: 400px;
    width: 100%;
}

.image-stack img {
    position: absolute;
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    object-fit: cover;
}

.img-1 {
    width: 70%;
    height: 300px;
    top: 0;
    left: 0;
    z-index: 1;
}

.img-2 {
    width: 60%;
    height: 250px;
    bottom: 0;
    right: 0;
    z-index: 2;
    border: 4px solid white;
}

/* 6. CTA Box */
.cta-box {
    background: var(--color-primary);
    color: white;
    border-radius: 12px;
    padding: 60px;
    background-image: linear-gradient(135deg, var(--color-primary) 0%, #003366 100%);
    text-align: center;
}

.deadlines {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 30px 0;
}

.d-item {
    display: flex;
    flex-direction: column;
}

.d-label {
    font-size: 0.8rem;
    opacity: 0.8;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.d-date {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-accent);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Responsive */
@media (max-width: 900px) {
    .grid-4 {
        grid-template-columns: 1fr 1fr;
    }
    
    .image-stack {
        display: none; /* Hide complex image stack on mobile */
    }
    
    .cta-buttons {
        flex-direction: column;
    }
}

/* ==========================================================================
   COURSES PAGE STYLES
   ========================================================================== */

/* 1. Filter Bar */
.filter-bar-wrapper {
    background: white;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 80px; /* Below Navbar */
    z-index: 90;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.filter-bar {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    overflow-x: auto; /* Scroll on mobile */
}

.filter-label {
    font-weight: 700;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 10px;
    white-space: nowrap;
}

.filter-btn {
    background: #f0f2f5;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #666;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.filter-btn:hover {
    background: #e4e6eb;
    color: #333;
}

.filter-btn.active {
    background: var(--color-primary);
    color: white;
}

/* 2. Detailed Course Grid */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.course-card-detailed {
    background: white;
    border-radius: 12px;
    border: 1px solid #eee;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

.course-card-detailed:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: #ddd;
}

/* Card Image */
.ccd-image {
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.ccd-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--color-accent);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
}

.ccd-badge.self-paced {
    background: #28a745; /* Green for self-paced */
}

/* Card Content */
.ccd-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.ccd-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.ccd-code {
    font-size: 0.8rem;
    color: #888;
    font-weight: 600;
}

.ccd-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffc107; /* Star Color */
}

.ccd-content h3 {
    margin: 0 0 10px 0;
    font-size: 1.25rem;
    color: var(--color-primary);
}

.ccd-content p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
    flex-grow: 1;
}

/* Meta Info (Weeks, Level) */
.ccd-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 20px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #555;
    font-weight: 500;
}

.meta-item i {
    width: 16px;
    height: 16px;
    color: var(--color-primary);
}

/* Footer (Instructor + Button) */
.ccd-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.instructor {
    display: flex;
    align-items: center;
    gap: 10px;
}

.instructor img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.instructor span {
    font-size: 0.85rem;
    color: #444;
    font-weight: 600;
}

.btn-sm-primary {
    background: rgba(0, 34, 68, 0.1);
    color: var(--color-primary);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
}

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

/* Responsive */
@media (max-width: 768px) {
    .filter-bar {
        padding-bottom: 5px; /* Adjust for scrollbar */
    }
}
/* ==========================================================================
   CONSULTING PAGE STYLES
   ========================================================================== */

/* 1. Intro Floating Stats */
.stat-card-floating {
    background: white;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    border-radius: 12px;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    border-top: 4px solid var(--color-primary);
}

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

.scf-num {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 5px;
}

.scf-label {
    font-size: 0.85rem;
    color: #666;
    text-transform: uppercase;
    font-weight: 600;
}

.scf-divider {
    width: 1px;
    height: 50px;
    background: #eee;
}

/* 2. Consulting Services Grid */
.consulting-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: flex-start; /* Align tops */
}

.consult-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 40px 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.consult-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}

/* Featured Card (Center) */
.consult-card.featured {
    border: 2px solid var(--color-primary);
    transform: scale(1.05);
    z-index: 2;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.consult-card.featured:hover {
    transform: scale(1.05) translateY(-5px);
}

.cc-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-accent);
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 12px;
}

/* Card Internals */
.cc-icon {
    width: 50px;
    height: 50px;
    background: #f0f7ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.consult-card h3 {
    margin: 0;
    font-size: 1.4rem;
    color: var(--color-primary);
}

.cc-subtitle {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 15px;
    text-transform: uppercase;
}

.cc-desc {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

.cc-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    flex-grow: 1; /* Pushes button down */
}

.cc-list li {
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: #444;
    padding-left: 20px;
    position: relative;
}

.cc-list li::before {
    content: '•';
    color: var(--color-primary);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.btn-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.2s;
}

.btn-link:hover {
    gap: 10px;
}

/* 3. Testimonials */
.testimonial-slider {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.testimonial-card {
    background: #fcfcfc;
    padding: 40px;
    border-left: 4px solid var(--color-accent);
    border-radius: 0 8px 8px 0;
}

.quote-icon {
    color: #e0e0e0;
    margin-bottom: 15px;
}

.quote-text {
    font-size: 1.1rem;
    font-style: italic;
    color: #555;
    margin-bottom: 25px;
    line-height: 1.6;
}

.quote-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.quote-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.quote-author strong {
    display: block;
    color: var(--color-primary);
}

.quote-author span {
    font-size: 0.85rem;
    color: #888;
}

/* Responsive */
@media (max-width: 900px) {
    .consult-card.featured {
        transform: scale(1); /* Reset scale on mobile */
    }
    
    .testimonial-slider {
        grid-template-columns: 1fr;
    }
    
    .stat-card-floating {
        flex-direction: column;
        gap: 20px;
    }
    
    .scf-divider {
        width: 100%;
        height: 1px;
    }
}
/* ==========================================================================
   NEWS PAGE STYLES
   ========================================================================== */

/* 1. News Hero (Magazine Style) */
.news-hero {
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    color: white;
}

.hero-news-content {
    max-width: 800px;
}

.news-badge-lg {
    background: var(--color-accent);
    color: white;
    padding: 6px 12px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-excerpt {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 20px;
    line-height: 1.6;
}

.hero-meta {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
}

.hero-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 2. Filter Bar */
.news-filter-bar {
    background: white;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 80px; /* Adjust based on navbar height */
    z-index: 90;
    padding: 15px 0;
}

.filter-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
}

.n-filter {
    background: transparent;
    border: none;
    padding: 8px 16px;
    color: #666;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border-radius: 20px;
    transition: all 0.2s;
    white-space: nowrap;
}

.n-filter:hover { background: #f0f2f5; color: #333; }
.n-filter.active { background: #333; color: white; }

/* 3. News Layout (Grid + Sidebar) */
.news-layout {
    display: grid;
    grid-template-columns: 1fr 300px; /* Feed | Sidebar */
    gap: 40px;
}

/* 4. News Feed Cards */
.news-feed {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.news-card {
    display: flex;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #eee;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

/* Standard Article Image */
.nc-image {
    width: 240px;
    background-size: cover;
    background-position: center;
    position: relative;
    flex-shrink: 0;
}

.nc-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255,255,255,0.9);
    color: #333;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.nc-body {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.nc-meta {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 8px;
    text-transform: uppercase;
    font-weight: 600;
}

.nc-body h3 {
    margin: 0 0 10px 0;
    font-size: 1.3rem;
    line-height: 1.3;
}

.nc-body h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.nc-body h3 a:hover { color: var(--color-primary); }

.nc-body p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nc-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Event Card Specifics */
.nc-date-box {
    width: 100px;
    background: #f7f9fc;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-right: 1px solid #eee;
    flex-shrink: 0;
    padding: 10px;
}

.ndb-month {
    font-size: 1rem;
    color: var(--color-primary);
    font-weight: 700;
    text-transform: uppercase;
}

.ndb-day {
    font-size: 2.2rem;
    font-weight: 700;
    color: #333;
    line-height: 1;
}

.nc-category-text {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--color-accent);
    font-weight: 700;
    margin-bottom: 5px;
    display: block;
}

.event-details {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: #555;
}

.event-details span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 5. Sidebar Widgets */
.news-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-widget {
    background: white;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.sidebar-widget.bg-blue {
    background: #002244;
    color: white;
    border: none;
}

.sidebar-widget h4 {
    margin: 0 0 15px 0;
    font-size: 1.1rem;
}

/* Search Box */
.search-box {
    position: relative;
}

.search-box i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.search-box input {
    width: 100%;
    padding: 10px 10px 10px 35px;
    border: 1px solid #ddd;
    border-radius: 4px;
    outline: none;
}

/* Subscribe Form */
.sidebar-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-form input {
    padding: 10px;
    border-radius: 4px;
    border: none;
}

.sidebar-form button {
    background: var(--color-accent);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
}

/* Contact Links */
.contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333;
    text-decoration: none;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.contact-link:hover { color: var(--color-primary); }
.contact-link:last-child { border-bottom: none; }

/* Responsive */
@media (max-width: 900px) {
    .news-layout {
        grid-template-columns: 1fr; /* Stack Sidebar below */
    }
    
    .news-card {
        flex-direction: column;
    }
    
    .nc-image {
        width: 100%;
        height: 200px;
    }
    
    .nc-date-box {
        width: 100%;
        flex-direction: row;
        gap: 10px;
        height: auto;
        padding: 15px;
        border-right: none;
        border-bottom: 1px solid #eee;
        justify-content: flex-start;
    }
    
    .ndb-day { font-size: 1.5rem; }
}

/* ==========================================================================
   CONTACT PAGE STYLES
   ========================================================================== */

/* 1. Department Cards */
.contact-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #eee;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-color: var(--color-primary);
}

.cc-header {
    margin-bottom: 15px;
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;   
    gap: 8px;
}

.cc-header i {
    width: 32px;
    height: 32px;
    margin-bottom: 10px;
}

.cc-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.contact-card p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.cc-link {
    color: var(--color-accent);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border 0.2s;
}

.cc-link:hover {
    border-bottom-color: var(--color-accent);
}

/* 2. Split Form Layout */
.contact-split {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 60px;
}

/* Form Styles */
.aias-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
    font-size: 0.9rem;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

/* 3. Info Side (Right) */
.contact-info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-card {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    border-left: 4px solid var(--color-primary);
}

.info-card h3 {
    margin: 0 0 15px 0;
    color: var(--color-primary);
}

.info-card address {
    font-style: normal;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.info-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 20px 0;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: #555;
}

.info-row i {
    color: var(--color-primary);
    width: 18px;
}

.info-image {
    height: 250px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
}

/* 4. FAQ Accordion */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item-toggle {
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
}

.faq-btn {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    text-align: left;
}

.faq-btn:hover {
    background: #f9f9f9;
}

.faq-content {
    display: none; /* Hidden by default */
    padding: 0 20px 20px 20px;
    color: #666;
    line-height: 1.6;
    border-top: 1px solid #f0f0f0;
}

/* Open State (Toggled via JS) */
.faq-item-toggle.open .faq-content {
    display: block;
}

.faq-item-toggle.open .faq-btn i {
    transform: rotate(180deg);
}

.faq-item-toggle.open .faq-btn {
    color: var(--color-primary);
}

/* Responsive */
@media (max-width: 900px) {
    .contact-split {
        grid-template-columns: 1fr; /* Stack form and info */
    }
    
    .form-row {
        grid-template-columns: 1fr; /* Stack name inputs */
    }
    
    .info-image {
        display: none; /* Hide decorative image on mobile to save space */
    }
}
/* ==========================================================================
   LEGAL PAGE STYLES
   ========================================================================== */

/* 1. Hero Section (Clean/Minimal) */
.legal-hero {
    background: #f8f9fa;
    padding: 80px 0 60px 0;
    border-bottom: 1px solid #e0e0e0;
}

.legal-hero-content h1 {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 15px;
}

.legal-hero-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 400;
    max-width: 600px;
    margin-bottom: 20px;
}

.legal-meta {
    font-size: 0.9rem;
    color: #888;
    display: flex;
    align-items: center;
    gap: 8px;
}
.legal-meta span {
    display: inline-flex;  /* Keeps them on the same line */
    align-items: center;   /* Vertically centers icon with text */
    gap: 8px;              /* Space between clock and text */
    color: rgba(255, 255, 255, 0.85);
}

/* Section Title Alignment (Icon + H2) */
.legal-title-group h2{
    color: var(--color-primary);
}

.legal-title-group {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}
/* Override existing styles to prevent layout bugs */
.legal-title-group .section-icon {
    margin-bottom: 0;      /* Remove bottom margin so it sits next to text */
    flex-shrink: 0;        /* Prevent icon from squishing */
}

/* 2. Grid Layout */
.legal-wrapper {
    padding-top: 60px;
}

.legal-grid {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 60px;
    position: relative;
}

/* 3. Sticky Sidebar */
.legal-sidebar {
    position: relative;
}

#legalNav {
    position: sticky;
    top: 100px; /* Sticks below header */
    display: flex;
    flex-direction: column;
    border-left: 2px solid #eee;
}

.nav-label {
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    color: #999;
    margin-bottom: 15px;
    padding-left: 20px;
}

.legal-nav-link {
    text-decoration: none;
    color: #666;
    padding: 10px 0 10px 20px;
    font-size: 0.95rem;
    border-left: 2px solid transparent;
    margin-left: -2px; /* Overlap border */
    transition: all 0.2s;
}

.legal-nav-link:hover {
    color: var(--color-primary);
    background: linear-gradient(to right, #f9f9f9, transparent);
}

.legal-nav-link.active {
    color: var(--color-primary);
    border-left-color: var(--color-primary);
    font-weight: 600;
}

.sidebar-contact {
    margin-top: 40px;
    padding: 20px;
    background: #f0f7ff;
    border-radius: 8px;
    margin-left: 20px;
}

.sidebar-contact i {
    color: var(--color-accent);
    margin-bottom: 10px;
}

.sidebar-contact p {
    font-size: 0.85rem;
    margin-bottom: 10px;
    color: #555;
}

.sidebar-contact a {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
}

/* 4. Content Typography */
.legal-content {
    max-width: 800px; /* Optimization for reading line-length */
}

.legal-section {
    margin-bottom: 60px;
    scroll-margin-top: 100px; /* Fix for sticky header overlap */
}

.section-icon {
    width: 40px;
    height: 40px;
    background: #eef2f6;
    color: var(--color-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.legal-section h2 {
    font-size: 2rem;
    color: #222;
    margin-bottom: 20px;
}

.intro-p {
    font-size: 1.1rem;
    color: #444;
    line-height: 1.6;
    margin-bottom: 30px;
}

.legal-section h3 {
    font-size: 1.25rem;
    color: var(--color-primary);
    margin-top: 30px;
    margin-bottom: 15px;
}

.legal-section p, 
.legal-section ul {
    color: #555;
    line-height: 1.7;
    margin-bottom: 15px;
}

.legal-section ul {
    padding-left: 20px;
}

.legal-section li {
    margin-bottom: 10px;
}

.legal-divider {
    border: 0;
    height: 1px;
    background: #eee;
    margin: 60px 0;
}

/* Cookie Box */
.cookie-box {
    background: #fafafa;
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 15px;
}

.cookie-box h4 {
    margin: 0 0 5px 0;
    color: #333;
}

.cookie-box p {
    margin: 0;
    font-size: 0.9rem;
}

/* 5. Responsive */
@media (max-width: 900px) {
    .legal-grid {
        grid-template-columns: 1fr;
    }
    
    .legal-sidebar {
        display: none; /* Hide sidebar on mobile for simplicity */
        /* Alternatively, could be a top scroll menu like news page */
    }
}
/* ==========================================================================
   MISSION PAGE STYLES
   ========================================================================== */

/* 1. Manifesto Hero */
.mission-hero {
    position: relative;
    height: 30vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.hero-bg-image {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    animation: slowZoom 20s infinite alternate; /* Subtle movement */
}

@keyframes slowZoom {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

.hero-overlay-gradient {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: radial-gradient(circle at center, rgba(0,34,68,0.7) 0%, rgba(0,34,68,0.9) 100%);
    z-index: 2;
}

.mission-hero-inner {
    position: relative;
    z-index: 3;
    max-width: 900px;
    margin: 0 auto;
}

.mission-label {
    display: inline-block;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
    backdrop-filter: blur(5px);
}

.manifesto-title {
    font-size: 2.8rem;
    line-height: 1.3;
    font-weight: 300; /* Elegant thin weight */
}

.manifesto-title strong {
    font-weight: 700;
}

/* 2. Mission/Vision Split Layout */
.vision-split {
    display: flex;
    align-items: stretch;
    margin-bottom: 80px;
    min-height: 400px;
}

.vision-split.reverse {
    flex-direction: row-reverse;
}

.vs-content {
    flex: 1;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: white;
}

.vs-image {
    flex: 1;
    background-size: cover;
    background-position: center;
    min-height: 300px;
    border-radius: 8px; /* Slight rounding for modern feel */
}

.vs-icon {
    width: 60px;
    height: 60px;
    background: #f0f7ff;
    border-radius: 50%;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.vs-content h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: #222;
}

.vs-content .lead-text {
    font-size: 1.25rem;
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1.4;
}

.vs-content p {
    color: #666;
    line-height: 1.7;
    font-size: 1.05rem;
}

/* 3. Core Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.value-card {
    background: white;
    padding: 40px 30px;
    border-radius: 8px;
    border: 1px solid #eee;
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
}

.vc-number {
    font-size: 4rem;
    font-weight: 900;
    color: #f3f4f6;
    position: absolute;
    top: -10px;
    right: 10px;
    z-index: 1;
}

.value-card h3 {
    position: relative;
    z-index: 2;
    margin-bottom: 15px;
    color: var(--color-primary);
    font-size: 1.5rem;
}

.value-card p {
    position: relative;
    z-index: 2;
    color: #666;
    line-height: 1.6;
}

/* 4. CTA Strip */
.cta-strip {
    position: relative;
    padding: 100px 0;
    text-align: center;
    color: white;
}

.cta-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.cta-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 34, 68, 0.85);
    z-index: 2;
}

.cta-strip-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    margin: 0 auto;
}

.cta-strip-content h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

/* Responsive */
@media (max-width: 900px) {
    .manifesto-title {
        font-size: 2rem;
    }
    
    .vision-split {
        flex-direction: column !important; /* Stack both normal and reverse */
        margin-bottom: 40px;
    }
    
    .vs-image {
        min-height: 250px;
        order: -1; /* Image always on top on mobile */
    }
    
    .vs-content {
        padding: 40px 20px;
    }
}

/* ==========================================================================
   ARCHIVES PAGE STYLES
   ========================================================================== */

/* 1. Hero Section */
.archive-hero {
    background-color: #002244; /* Dark Blue */
    padding: 40px 0;
    position: relative;
    overflow: hidden;
    color: white;
}

.archive-bg-pattern {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: radial-gradient(circle at 10% 20%, rgba(255,255,255,0.05) 0%, transparent 20%),
                      radial-gradient(circle at 90% 80%, rgba(255,255,255,0.05) 0%, transparent 20%);
    pointer-events: none;
}

.archive-header-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.archive-badge {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    display: inline-block;
}

.big-search-box {
    margin-top: 30px;
    position: relative;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.big-search-box input {
    width: 100%;
    padding: 18px 20px 18px 50px;
    border-radius: 8px;
    border: none;
    font-size: 1.1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.big-search-box input:focus {
    outline: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.search-btn {
    position: absolute;
    right: 8px;
    top: 8px;
    bottom: 8px;
    background: var(--color-primary);
    color: white;
    border: none;
    padding: 0 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.search-btn:hover { background: var(--color-accent); }

/* 2. Layout (Sidebar + Results) */
.archive-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    margin-top: 40px;
}

/* Sidebar Filters */
.archive-sidebar {
    background: white;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #eee;
    height: fit-content;
}

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

.reset-link {
    background: none;
    border: none;
    color: var(--color-accent);
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: underline;
}

.filter-section {
    margin-bottom: 25px;
}

.filter-section h4 {
    font-size: 0.95rem;
    margin-bottom: 15px;
    color: #444;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #555;
    cursor: pointer;
}

.checkbox-row input {
    accent-color: var(--color-primary);
}

.count {
    margin-left: auto;
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.75rem;
    color: #888;
}

#typeSelect {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* 3. Results Area */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #666;
}

.sort-wrapper select {
    border: none;
    background: transparent;
    font-weight: 600;
    color: #333;
    cursor: pointer;
}

.results-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Result Card */
.archive-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 25px;
    transition: all 0.2s ease;
}

.archive-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.ac-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.8rem;
}

.ac-type {
    background: #eef2f6;
    color: var(--color-primary);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.ac-date { color: #888; }

.ac-title {
    font-size: 1.25rem;
    margin: 0 0 8px 0;
}

.ac-title a {
    color: #222;
    text-decoration: none;
}

.ac-title a:hover { color: var(--color-primary); }

.ac-authors {
    color: #555;
    font-size: 0.95rem;
    margin-bottom: 15px;
    font-style: italic;
}

.ac-abstract {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Truncate to 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ac-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f9f9f9;
    padding-top: 15px;
}

.ac-topic {
    font-size: 0.85rem;
    color: #888;
    display: flex;
    align-items: center;
    gap: 5px;
}

.ac-actions {
    display: flex;
    gap: 10px;
}

.btn-icon {
    color: #888;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background 0.2s;
}

.btn-icon:hover { background: #f0f0f0; color: #333; }

.btn-pdf {
    color: #d9534f;
    background: rgba(217, 83, 79, 0.1);
}

.btn-pdf:hover { background: rgba(217, 83, 79, 0.2); color: #d9534f; }

/* 4. Skeleton Loading */
.skeleton-card {
    height: 200px;
    background: #eee;
    margin-bottom: 20px;
    border-radius: 8px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 0.8; }
    100% { opacity: 0.6; }
}

/* Empty State */
.empty-archive {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px;
    text-align: center;
    color: #888;
}

.empty-archive h3 { margin: 20px 0 10px 0; color: #333; }

/* Responsive */
@media (max-width: 900px) {
    .archive-layout {
        grid-template-columns: 1fr;
    }
    
    .archive-sidebar {
        order: -1; /* Put filters on top or make collapsible */
        display: none; /* Hide on mobile for simplicity, or add toggle button */
    }
}
/* ==========================================================================
   UPDATED FOOTER STYLES
   ========================================================================== */

.site-footer {
    background-color: #0b1120; /* Deep Navy (matches screenshot) */
    color: #94a3b8;            /* Soft slate text */
    padding: 80px 0 40px 0;
    font-family: 'Inter', sans-serif; /* Ensure clean font */
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: auto;
}

/* --- Top Section (Grid) --- */
.footer-top {
    display: grid;
    /* 1st column is 2x wider than the others to hold the bio */
    grid-template-columns: 2fr 1fr 1fr 1fr; 
    gap: 60px;
    margin-bottom: 40px;
}

/* Brand Column */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    margin-bottom: 20px;
}

.brand-desc {
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 30px;
    max-width: 320px; /* Limits width so lines don't get too long */
}

/* Social Icons */
.social-row {
    display: flex;
    gap: 12px;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.social-btn:hover {
    background: transparent;
    border-color: rgba(255,255,255,0.3);
    color: var(--color-accent, #007bff);
    transform: translateY(-2px);
}

.social-btn svg {
    width: 18px;
    height: 18px;
}

/* Navigation Columns */
.footer-heading {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 25px;
    white-space: nowrap; /* Prevents "College Mathematics" from wrapping */
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 14px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

/* --- Bottom Section (Legal) --- */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between; /* Pushes content to edges */
    align-items: center;
    font-size: 0.85rem;
}

.legal-nav {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.legal-nav a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s;
}

.legal-nav a:hover {
    color: white;
}

.dot {
    color: rgba(255,255,255,0.1);
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
    .footer-top {
        grid-template-columns: 1fr 1fr; /* 2x2 Grid on Tablet */
        gap: 25px;
    }
    
    .brand-desc {
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .footer-top {
        display: flex;
        flex-direction: column; /* Stack vertically on Phone */
        gap: 25px;
    }

    .footer-heading {
        margin-bottom: 15px;
        white-space: normal; /* Allow wrapping on very small screens */
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* MODAL STYLES */
.modal-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 34, 68, 0.6); /* Brand color dim */
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 8px;
    width: 90%;
    max-width: 450px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    position: relative;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-icon-box {
    width: 60px; height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
}

/* Success State */
.modal-success .modal-icon-box { background: #d4edda; color: #155724; }
.modal-success h3 { color: #155724; margin-bottom: 10px; }

/* Error State */
.modal-error .modal-icon-box { background: #f8d7da; color: #721c24; }
.modal-error h3 { color: #721c24; margin-bottom: 10px; }

.modal-btn {
    margin-top: 20px;
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

.modal-success .modal-btn { background: #155724; color: white; }
.modal-error .modal-btn { background: #721c24; color: white; }

.vs-header {
    display: flex;          /* Places items in a row */
    align-items: center;    /* Vertically centers the text with the icon */
    gap: 16px;              /* Adds space between the icon and the title */
    margin-bottom: 20px;    /* Adds space below the whole header group */
}

/* We need to override existing margins to ensure perfect centering */
.vs-header .vs-icon {
    margin-bottom: 0;       /* Removes old spacing */
    flex-shrink: 0;         /* Prevents icon from squishing on small screens */
}

.vs-header h2 {
    margin: 0;              /* Removes default browser margin from H2 */
    line-height: 1;         /* Ensures text height matches icon better */
    color: var(--color-primary);
}

/* Mobile Navigation UX Improvements */
@media (max-width: 768px) {
    
    /* Rotate the chevron when the menu is open */
    .nav-item.has-dropdown.active > .nav-link svg {
        transform: rotate(180deg);
        transition: transform 0.2s ease;
    }

    /* Ensure the chevron has enough space */
    .nav-link svg {
        margin-left: auto; /* Pushes icon to the far right for easier tapping */
    }
}
/* =========================================
   FIX: Mobile Dropdown Visibility
   ========================================= */
@media (max-width: 768px) {
    /* 1. Force the dropdown to show when the parent has the 'active' class */
    .nav-item.active .dropdown {
        display: block !important; /* Overrides default hiding */
        opacity: 1 !important;
        visibility: visible !important;
        
        /* Layout fixes so it flows naturally in the list */
        position: static; 
        box-shadow: none;
        padding-left: 20px; /* Indent submenu items */
        background: transparent;
        width: 100%;
    }

    /* 2. Fix colors if they are white-on-white */
    .nav-item.active .dropdown li a {
        color: #002244; /* Dark blue text */
        padding: 10px 0;
        border-bottom: 1px solid #eee;
    }
    
    /* 3. Hide the submenu initially (ensure it toggles correctly) */
    .dropdown {
        display: none; 
    }
}

/* =========================================
   FIX: Footer Layout Stacking
   ========================================= */
.site-footer .nav-container {
    display: flex;
    flex-direction: column; /* Forces Top and Bottom to stack vertically */
    gap: 5px;              /* Adds cleaner spacing between the main content and copyright */
}

/* Optional: Ensure footer-top uses full width */
.footer-top {
    width: 100%;
}
