/* =====================================================
   SCOPUSQ1 THEME — PRESTIGE ACADEMIC PUBLISHING
   Final Optimized Version (Fast & Professional)
   ===================================================== */

/* ========================
   1. DESIGN TOKENS (Variables)
   ======================== */
:root {
    /* Colors */
    --q1-navy:        #0d1b2a;
    --q1-gold:        #c9974a;
    --q1-cream:       #fdf8f0;
    --q1-light:       #f5f3ef;
    --q1-white:       #ffffff;
    --q1-text:        #2c2c2c;
    --q1-muted:       #7a7265;
    --q1-border:      #e8e0d0;
    
    /* State Colors */
    --q1-success:     #27ae60;
    --q1-danger:      #e74c3c;
    --q1-info:        #3498db;

    /* Opacity / Light */
    --q1-navy-light:  rgba(13,27,42,0.05);
    --q1-navy-medium: rgba(13,27,42,0.1);
    --q1-gold-light:  rgba(201,151,74,0.1);

    /* Spacing & Borders */
    --q1-radius:      0.75rem;
    --q1-radius-lg:   1.25rem;
    --q1-border-width: 1px;
    
    /* Shadows */
    --q1-shadow-sm:   0 2px 8px rgba(13,27,42,0.06);
    --q1-shadow-md:   0 4px 20px rgba(13,27,42,0.1);
    --q1-shadow-lg:   0 8px 30px rgba(13,27,42,0.15);
    --q1-shadow-hover: 0 12px 40px rgba(201,151,74,0.25);

    /* Transitions */
    --q1-trans:       all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ========================
   2. RESET & BASE
   ======================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Outfit', system-ui, -apple-system, sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--q1-text);
    background-color: var(--q1-cream);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: var(--q1-trans); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* Typography */
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: 'Crimson Pro', Georgia, serif;
    color: var(--q1-navy);
    line-height: 1.25;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

h1, .h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2, .h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3, .h3 { font-size: 1.5rem; }
h4, .h4 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }

/* Container Override (Bootstrap) */
.container { max-width: 1200px; }

/* =====================================================
   UPDATE CSS: STATIC HEADER & CLEAN NAV
   ===================================================== */

/* --- 1. Top Bar (Solid Navy) --- */
.q1-top-solid {
    background-color: var(--q1-navy);
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.q1-top-solid a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: 0.3s;
}
.q1-top-solid a:hover {
    color: #fff;
}

/* --- 2. Home Header (Static Hero) --- */
.q1-hero-static {
    position: relative;
    background-color: var(--q1-navy); /* Fallback color */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 400px; /* Tinggi statis yang proporsional */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.q1-hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(13, 27, 42, 0.7); /* Overlay gelap agar kontras */
    z-index: 1;
}

.q1-hero-title {
    font-family: 'Crimson Pro', serif;
    font-size: 3.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
}
.q1-hero-subtitle {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--q1-gold);
    margin-top: 1rem;
}

/* --- 3. Inner Header (White Clean) --- */
.q1-header-inner {
    background-color: #fff;
}

.q1-inner-logo {
    max-height: 80px; /* Logo lebih kecil di halaman dalam agar elegan */
    width: auto;
}

.q1-inner-title {
    font-family: 'Crimson Pro', serif;
    font-size: 2rem;
    color: var(--q1-navy);
    margin: 0;
}

/* --- 4. Navigation (Clean Block, No Floating) --- */
.q1-clean-nav {
    background-color: #fff;
    border-bottom: 1px solid #e9ecef;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    padding: 0.8rem 0;
    z-index: 1000;
}

.q1-clean-nav .nav-link {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #495057;
    padding: 0.5rem 1.2rem !important;
    position: relative;
    transition: 0.3s;
}

.q1-clean-nav .nav-link:hover,
.q1-clean-nav .nav-link.active {
    color: var(--q1-navy);
}

/* Garis bawah animasi */
.q1-clean-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--q1-gold);
    transition: width 0.3s ease;
}

.q1-clean-nav .nav-link:hover::after,
.q1-clean-nav .nav-link.active::after {
    width: 100%;
}

/* --- Responsive Mobile --- */
@media (max-width: 991px) {
    .q1-hero-static {
        height: 250px; /* Tinggi banner di HP */
    }
    
    .q1-hero-title {
        font-size: 1.8rem;
    }

    .q1-clean-nav {
        background: #fff;
        box-shadow: none;
        border-bottom: none;
    }
    
    .q1-clean-nav .nav-link {
        border-bottom: 1px solid #f8f9fa;
        padding: 1rem !important;
    }
    
    .q1-clean-nav .nav-link::after {
        display: none; /* Hilangkan garis bawah animasi di menu HP */
    }
}
/* ========================
   4. FOOTER (Clean Light)
   ======================== */
.q1-footer-light {
    background-color: #f8f9fa;
    color: #495057;
    padding: 4rem 0 2rem;
    border-top: 1px solid #e9ecef;
    margin-top: 4rem;
}

.q1-footer-light h5, .q1-footer-light h6 {
    color: var(--q1-navy);
    font-family: 'Crimson Pro', serif;
    margin-bottom: 1.5rem;
}

.q1-footer-indexing {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.q1-footer-indexing span {
    background: #fff;
    border: 1px solid #dee2e6;
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    border-radius: 4px;
    font-weight: 600;
    color: var(--q1-navy);
    transition: 0.2s;
}

.q1-footer-indexing span:hover {
    border-color: var(--q1-gold);
    color: var(--q1-gold);
}

.q1-social-link {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 50%;
    color: var(--q1-text);
    margin-right: 0.5rem;
}

.q1-social-link:hover {
    background: var(--q1-gold);
    border-color: var(--q1-gold);
    color: #fff;
}

/* ========================
   5. HOMEPAGE COMPONENTS
   ======================== */

/* Cover Card */
.q1-cover-card {
    background: var(--q1-white);
    border: var(--q1-border-width) solid var(--q1-border);
    border-radius: var(--q1-radius-lg);
    overflow: hidden;
    box-shadow: var(--q1-shadow-sm);
    transition: var(--q1-trans);
}
.q1-cover-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--q1-shadow-md);
}
.q1-cover-header {
    background: var(--q1-navy);
    color: #fff;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    padding: 0.6rem;
    text-align: center;
    letter-spacing: 0.05em;
}
.q1-cover-body {
    background: var(--q1-light);
    padding: 1rem;
    text-align: center;
    font-family: 'Crimson Pro', serif;
    font-weight: 600;
    color: var(--q1-navy);
}

/* Stats Card */
.q1-stats-card {
    background: var(--q1-white);
    border: var(--q1-border-width) solid var(--q1-border);
    border-radius: var(--q1-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--q1-shadow-sm);
    margin-bottom: 1.5rem;
}
.q1-stats-header {
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--q1-navy);
    border-bottom: 2px solid var(--q1-gold);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}
.q1-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    border-bottom: 1px solid #f0f0f0;
}
.q1-stat-row:last-child { border-bottom: none; }
.q1-stat-label { font-size: 0.9rem; color: var(--q1-muted); }
.q1-stat-value { font-weight: 700; color: var(--q1-navy); }
.text-accent { color: var(--q1-gold); }

/* About & Indexing */
.q1-section-title {
    font-family: 'Crimson Pro', serif;
    color: var(--q1-navy);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}
.q1-section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--q1-gold);
    margin-top: 0.5rem;
}
.q1-indexing-area {
    background: rgba(201, 151, 74, 0.05);
    border: 1px dashed var(--q1-gold);
    border-radius: var(--q1-radius);
    padding: 1.5rem;
    text-align: center;
    margin-top: 2rem;
}
.q1-indexing-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--q1-muted);
    margin-bottom: 1rem;
}

/* CTA Buttons */
.q1-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: var(--q1-gold);
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    padding: 1.2rem;
    border-radius: var(--q1-radius-lg);
    border: none;
    box-shadow: 0 4px 15px rgba(201, 151, 74, 0.4);
    transition: var(--q1-trans);
}
.q1-submit-btn:hover {
    background: #b8854c;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(201, 151, 74, 0.6);
}

/* Sidebar Widgets */
.q1-sidebar-widgets .pkp_block {
    background: #fff;
    border: 1px solid var(--q1-border);
    border-radius: var(--q1-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--q1-shadow-sm);
}
.q1-sidebar-widgets .pkp_block h2 {
    font-size: 1.1rem;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    color: var(--q1-navy);
}
.q1-sidebar-widgets .pkp_block li {
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed #f0f0f0;
    font-size: 0.9rem;
}
.q1-sidebar-widgets .pkp_block li:last-child { border: none; }

/* ========================
   6. ARTICLE COMPONENTS
   ======================== */

/* Article Summary (List) */
.q1-article-summary {
    background: #fff;
    border: 1px solid var(--q1-border);
    border-radius: var(--q1-radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--q1-shadow-sm);
    transition: var(--q1-trans);
    border-left: 3px solid transparent;
}
.q1-article-summary:hover {
    border-left-color: var(--q1-gold);
    box-shadow: var(--q1-shadow-md);
}
.q1-article-summary h3 {
    font-family: 'Crimson Pro', serif;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}
.q1-article-summary h3 a { color: var(--q1-navy); }
.q1-article-summary h3 a:hover { color: var(--q1-gold); }

/* Article Details (Full Page) */
.q1-article-detail { padding: 2rem 0; }
.q1-article-detail h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}
.q1-article-content {
    text-align: justify;
    font-size: 1.1rem;
    line-height: 1.9;
    color: #333;
}

/* Author Section */
.author-card {
    background: var(--q1-light);
    border-left: 4px solid var(--q1-navy);
    padding: 1rem;
    border-radius: 0 var(--q1-radius) var(--q1-radius) 0;
    margin-bottom: 0.5rem;
}

/* ========================
   7. UI ELEMENTS (Forms, Buttons, Alerts)
   ======================== */

/* Buttons */
.btn-primary {
    background-color: var(--q1-gold);
    border: none;
    color: #fff;
    font-weight: 600;
}
.btn-primary:hover {
    background-color: #b8854c;
    color: #fff;
}
.btn-outline-primary {
    color: var(--q1-navy);
    border-color: var(--q1-navy);
}
.btn-outline-primary:hover {
    background-color: var(--q1-navy);
    color: #fff;
}

/* Forms */
.form-control, .q1-form-control {
    border: 1px solid var(--q1-border);
    border-radius: var(--q1-radius);
    padding: 0.8rem 1rem;
}
.form-control:focus {
    border-color: var(--q1-gold);
    box-shadow: 0 0 0 3px var(--q1-gold-light);
}
.q1-form-card {
    background: #fff;
    padding: 2rem;
    border-radius: var(--q1-radius-lg);
    box-shadow: var(--q1-shadow-md);
    border-top: 4px solid var(--q1-gold);
}

/* Alerts */
.alert {
    border-left: 4px solid;
    border-radius: var(--q1-radius);
    padding: 1rem 1.5rem;
}
.alert-success { background: rgba(39,174,96,0.1); border-color: var(--q1-success); color: var(--q1-success); }
.alert-danger { background: rgba(231,76,60,0.1); border-color: var(--q1-danger); color: var(--q1-danger); }

/* Badges */
.badge {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
}

/* ========================
   8. UTILITY CLASSES
   ======================== */
.text-muted { color: var(--q1-muted) !important; }
.text-white { color: #fff !important; }
.text-gold { color: var(--q1-gold) !important; }
.text-navy { color: var(--q1-navy) !important; }
.text-center { text-align: center; }
.text-justify { text-align: justify; }

.mt-4 { margin-top: 1.5rem; }
.mb-4 { margin-bottom: 1.5rem; }
.py-4 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.gap-3 { gap: 1rem; }

.font-serif { font-family: 'Crimson Pro', serif; }
.sticky-top { position: sticky; top: 100px; z-index: 10; }

/* ========================
   9. RESPONSIVE MEDIA QUERIES
   ======================== */
@media (max-width: 991px) {
    /* Navigation Mobile */
    .q1-main-nav {
        background: #fff; /* Solid white on mobile */
        box-shadow: none;
        border-bottom: 1px solid #eee;
    }
    .q1-nav-link {
        border-radius: 0;
        padding: 1rem !important;
        border-bottom: 1px solid #f8f9fa;
    }
    .q1-nav-link::after { display: none; }
    
    /* Header */
    .q1-header-logo { max-height: 90px; }
    
    /* Layout */
    .sticky-top { position: static; }
    .q1-home-hero { padding: 2rem 0; }
    .q1-indexing-area { padding: 1rem; }
}

@media (max-width: 576px) {
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    .q1-submit-btn { font-size: 0.9rem; padding: 1rem; }
    .q1-section-title { font-size: 1.5rem; }
}