/* --- ACADEMIC THEME VARIABLES --- */
:root {
    --primary: #003366; /* University Navy */
    --primary-light: #1a4d80;
    --accent: #c5a059; /* Academic Gold */
    --accent-hover: #b08d48;
    --text-dark: #1f1f1f;
    --text-gray: #555555;
    --text-light: #888888;
    --bg-light: #f9f9f9;
    --bg-white: #ffffff;
    --border: #e0e0e0;
    --font-head: 'Merriweather', serif;
    --font-body: 'Inter', sans-serif;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
}

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

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-head);
    color: var(--primary);
    line-height: 1.2;
}

a {
    text-decoration: none;
    transition: 0.3s;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

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

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

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

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

/* 1. UTILITY BAR */
.utility-bar {
    background: #002244;
    color: #ccc;
    font-size: 0.8rem;
    padding: 0.5rem 0;
}

    .utility-bar a {
        color: #ccc;
        margin-right: 1.5rem;
    }

        .utility-bar a:hover {
            color: white;
        }

/* 2. HEADER (FIXED LAYOUT) */
.site-header {
    background: var(--bg-white);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-shrink: 0;
}

.logo-icon {
    font-size: 1.8rem;
    color: var(--primary);
}

.brand-text h1 {
    font-size: 1.2rem;
    margin: 0;
}

.brand-text p {
    font-size: 0.65rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.main-nav {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

    .main-nav ul {
        display: flex;
        gap: 1.5rem;
    }

    .main-nav a {
        font-weight: 500;
        color: var(--text-dark);
        font-size: 0.9rem;
    }

        .main-nav a:hover, .main-nav a.active {
            color: var(--primary);
            border-bottom: 2px solid var(--accent);
            padding-bottom: 2px;
        }

/* HEADER BUTTONS (Prevent Breaking) */
.header-cta {
    display: flex;
    gap: 0.8rem;
    flex-shrink: 0;
    align-items: center;
}

.btn-solid {
    background: var(--primary);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
}

    .btn-solid:hover {
        background: var(--primary-light);
    }

.btn-outline {
    border: 1px solid var(--border);
    color: var(--text-gray);
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    font-size: 0.9rem;
    white-space: nowrap;
}

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

/* 3. HERO */
.hero-section {
    background: url('https://images.unsplash.com/photo-1457369804613-52c61a468e7d?auto=format&fit=crop&q=80') center/cover;
    position: relative;
    padding: 8rem 0;
    color: white;
    text-align: center;
}

.overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 51, 102, 0.85);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.pill-label {
    background: rgba(255,255,255,0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 1.5rem;
}

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

.highlight {
    color: var(--accent);
    font-style: italic;
}

.lead {
    font-size: 1.2rem;
    color: #ddd;
    margin-bottom: 3rem;
}

.search-box-wrapper {
    background: rgba(255,255,255,0.1);
    padding: 1.5rem;
    border-radius: 8px;
    backdrop-filter: blur(5px);
}

.search-box {
    display: flex;
    gap: 0.5rem;
}

.filter-select {
    padding: 1rem;
    border: none;
    border-radius: 4px;
    background: #f0f0f0;
    color: #333;
    font-family: var(--font-body);
}

.search-box input {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
}

.search-box button {
    background: var(--accent);
    border: none;
    padding: 0 2rem;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    color: var(--primary);
}

    .search-box button:hover {
        background: var(--accent-hover);
    }

.popular-tags {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #ccc;
}

    .popular-tags a {
        color: white;
        text-decoration: underline;
        margin-left: 0.5rem;
        opacity: 0.8;
    }

        .popular-tags a:hover {
            opacity: 1;
        }

/* 4. STATS BAR */
.stats-bar {
    background: var(--bg-white);
    padding: 2rem 0;
    border-bottom: 1px solid var(--border);
}

.stat-item {
    text-align: center;
    border-right: 1px solid var(--border);
}

    .stat-item:last-child {
        border-right: none;
    }

    .stat-item .number {
        display: block;
        font-size: 2rem;
        font-weight: 700;
        color: var(--primary);
        font-family: var(--font-head);
    }

    .stat-item .label {
        font-size: 0.85rem;
        color: var(--text-gray);
        text-transform: uppercase;
        letter-spacing: 1px;
    }

/* [NEW] PROCESS & BLOG SECTIONS */
.section-process, .section-blog {
    padding: 6rem 0;
    background: #fff;
}

.process-step {
    padding: 2rem;
    border: 1px solid #eee;
    border-radius: 8px;
    text-align: center;
    transition: 0.3s;
}

    .process-step:hover {
        box-shadow: var(--shadow);
        border-color: var(--accent);
    }

.blog-card {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    transition: 0.3s;
}

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

.blog-img {
    background-color: #f0f0f0;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.blog-content {
    padding: 1.5rem;
}

/* 5. PROBLEM */
.section-problem {
    padding: 6rem 0;
    background: var(--bg-light);
}

.subhead {
    color: var(--accent);
    font-size: 0.8rem;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 1rem;
}

.divider-center {
    width: 60px;
    height: 3px;
    background: var(--primary);
    margin: 1.5rem auto 3rem;
}

.problem-card {
    background: white;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: 0.3s;
    text-align: center;
}

    .problem-card:hover {
        transform: translateY(-5px);
    }

.icon-box {
    width: 60px;
    height: 60px;
    background: #ffebeb;
    color: #d9534f;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1.5rem;
}

.warning {
    background: #ffebeb;
    color: #d9534f;
}

/* 6. FRAMEWORK (Accordion) */
.section-framework {
    padding: 6rem 0;
    background: var(--bg-white);
}

.split-layout {
    display: flex;
    gap: 4rem;
    align-items: flex-start;
}

.text-content {
    flex: 1;
}

.visual-content {
    flex: 1;
}

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

.acc-head {
    background: #fcfcfc;
    padding: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

.acc-body {
    padding: 1.5rem;
    display: none;
    background: white;
    border-top: 1px solid var(--border);
}

.accordion-item.open .acc-body {
    display: block;
}

.roadmap-card {
    background: var(--primary);
    color: white;
    padding: 2.5rem;
    border-radius: 12px;
    position: relative;
}

.card-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 1rem;
}

.status-badge {
    background: #28a745;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}

.progress-container {
    margin-bottom: 1.5rem;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.progress-bar {
    height: 6px;
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
}

.fill {
    height: 100%;
    background: var(--accent);
    border-radius: 3px;
}

.download-cta {
    background: rgba(255,255,255,0.1);
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

    .download-cta i {
        font-size: 1.5rem;
    }

.btn-sm {
    margin-left: auto;
    background: white;
    color: var(--primary);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
}

/* 7. METHODOLOGY & SUBPAGES */
.section-methodology {
    padding: 6rem 0;
    background: var(--bg-light);
}

.subtitle {
    color: var(--text-gray);
    max-width: 600px;
    margin: 1rem auto 3rem;
}

.method-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.method-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: 0.3s;
}

    .method-card:hover {
        transform: translateY(-5px);
    }

.card-media {
    height: 150px;
    position: relative;
}

.quant-bg {
    background: linear-gradient(135deg, #003366, #00509e);
}

.qual-bg {
    background: linear-gradient(135deg, #663399, #8550ba);
}

.mixed-bg {
    background: linear-gradient(135deg, #209c78, #34bf95);
}

.badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0,0,0,0.3);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 700;
}

.card-body {
    padding: 2rem;
}

.tool-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

    .tool-tags span {
        background: #f0f0f0;
        padding: 0.2rem 0.6rem;
        border-radius: 4px;
        font-size: 0.75rem;
        color: #555;
    }

.feature-bullets {
    margin: 1.5rem 0;
}

    .feature-bullets li {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
        color: var(--text-gray);
    }

    .feature-bullets i {
        color: #28a745;
        margin-right: 0.5rem;
    }

.btn-text {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
}

/* SUBPAGE: RESOURCES */
.sidebar-layout {
    display: flex;
    gap: 3rem;
    margin: 4rem 0;
    align-items: flex-start;
}

.sidebar-filter {
    width: 250px;
    flex-shrink: 0;
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.filter-group {
    margin-bottom: 1.5rem;
}

    .filter-group h4 {
        font-size: 0.9rem;
        margin-bottom: 0.8rem;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .filter-group label {
        display: block;
        margin-bottom: 0.5rem;
        font-size: 0.9rem;
        color: #555;
        cursor: pointer;
    }

.res-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    width: 100%;
}

.res-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    transition: 0.3s;
    position: relative;
}

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

.file-type {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: #888;
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 4px;
}

.res-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.icon-word {
    color: #2b579a;
}

.icon-pdf {
    color: #f40f02;
}

.icon-excel {
    color: #217346;
}

/* SUBPAGE: TOOLS */
.tool-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--border);
    transition: 0.3s;
}

    .tool-card:hover {
        border-color: var(--primary);
    }

.tool-logo {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    display: block;
}

/* SUBPAGE: COMMUNITY */
.forum-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.topic-list {
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
}

.topic-item {
    display: flex;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    gap: 1.5rem;
    align-items: center;
}

    .topic-item:last-child {
        border-bottom: none;
    }

.topic-votes {
    text-align: center;
    color: #777;
    width: 50px;
}

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

.topic-main h3 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.topic-meta {
    font-size: 0.85rem;
    color: #888;
}

    .topic-meta span {
        margin-right: 1rem;
    }

/* SUBPAGE: METHODOLOGY DETAIL */
.method-detail {
    background: white;
    padding: 3rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border-left: 5px solid var(--primary);
}

.method-steps {
    counter-reset: step;
    list-style: none;
    margin-top: 2rem;
}

    .method-steps li {
        position: relative;
        padding-left: 3rem;
        margin-bottom: 1.5rem;
    }

        .method-steps li::before {
            counter-increment: step;
            content: counter(step);
            position: absolute;
            left: 0;
            top: 0;
            width: 30px;
            height: 30px;
            background: var(--accent);
            color: white;
            text-align: center;
            line-height: 30px;
            border-radius: 50%;
            font-weight: 700;
        }

.page-hero {
    background: var(--primary);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

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

    .page-hero p {
        color: #ccddee;
        max-width: 600px;
        margin: 0 auto;
    }

/* 9. PREMIUM SERVICES */
.section-premium {
    padding: 4rem 0;
}

.premium-banner {
    background: var(--primary);
    border-radius: 12px;
    display: flex;
    overflow: hidden;
    color: white;
}

.premium-content {
    padding: 4rem;
    flex: 2;
}

.premium-image {
    flex: 1;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.gold-label {
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
    display: block;
}

.premium-content h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.premium-content p {
    color: #d0e0f0;
    margin-bottom: 2rem;
    max-width: 500px;
}

.check-list span {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.check-list i {
    color: var(--accent);
    margin-right: 0.5rem;
}

.btn-solid-gold {
    background: var(--accent);
    color: var(--primary);
    padding: 0.8rem 2rem;
    border-radius: 4px;
    font-weight: 700;
    display: inline-block;
    margin-top: 2rem;
}

    .btn-solid-gold:hover {
        background: white;
    }

.bg-icon {
    font-size: 10rem;
    opacity: 0.1;
    color: white;
}

.sim-graph {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    height: 150px;
    position: absolute;
}

.bar {
    width: 20px;
    background: rgba(255,255,255,0.3);
    border-radius: 4px 4px 0 0;
}

/* 11. FAQ & NEWSLETTER */
.section-faq {
    padding: 6rem 0;
    background: var(--bg-white);
}

.small-container {
    max-width: 800px;
}

.faq-wrapper details {
    margin-bottom: 1rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

.faq-wrapper summary {
    font-weight: 600;
    cursor: pointer;
    color: var(--primary);
}

.faq-wrapper p {
    margin-top: 0.5rem;
    color: #666;
    font-size: 0.95rem;
}

.section-newsletter {
    padding: 4rem 0;
    background: var(--bg-light);
}

.newsletter-box {
    background: white;
    border: 1px solid var(--border);
    padding: 3rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.news-form {
    display: flex;
    gap: 1rem;
    flex: 1;
}

    .news-form input {
        flex: 1;
        padding: 0.8rem;
        border: 1px solid #ccc;
        border-radius: 4px;
    }

    .news-form button {
        background: var(--text-dark);
        color: white;
        border: none;
        padding: 0 2rem;
        border-radius: 4px;
        cursor: pointer;
        font-weight: 700;
    }

/* 13. FOOTER */
.site-footer {
    background: #001a33;
    color: #aab;
    padding: 5rem 0 2rem;
    font-size: 0.9rem;
    margin-top: auto;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-brand {
    max-width: 300px;
}

    .footer-brand h2 {
        color: white;
        margin-bottom: 1rem;
    }

    .footer-brand p {
        margin-bottom: 1.5rem;
        line-height: 1.6;
    }

.social-links a {
    color: white;
    font-size: 1.2rem;
    margin-right: 1rem;
    opacity: 0.7;
}

    .social-links a:hover {
        opacity: 1;
        color: var(--accent);
    }

.footer-links h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    letter-spacing: 1px;
}

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

.footer-links a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.legal a {
    margin-left: 1.5rem;
    color: #778;
}

@media(max-width: 900px) {
    .grid-3, .grid-4, .split-layout {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .newsletter-box {
        flex-direction: column;
        text-align: center;
    }

    .news-form {
        width: 100%;
        flex-direction: column;
    }

    .premium-banner {
        flex-direction: column;
    }

    .premium-image {
        min-height: 200px;
    }

    .main-nav, .header-cta {
        display: none;
    }

    .resource-table-wrapper {
        overflow-x: auto;
    }

    .sidebar-layout {
        flex-direction: column;
    }

    .sidebar-filter {
        width: 100%;
    }
}
