/* ============================================================
 * Post Matric Scholarship — Main Stylesheet
 * Premium Blue Theme — Modern, responsive with dark mode
 * ============================================================ */

/* ===================== CUSTOM PROPERTIES ===================== */
:root {
    --primary: #2563EB;
    --primary-hover: #1D4ED8;
    --primary-light: #3b82f6;
    --primary-50: rgba(37, 99, 235, 0.08);
    --primary-100: rgba(37, 99, 235, 0.15);
    --accent: #F59E0B;
    --accent-hover: #D97706;
    --accent-light: #FBBF24;
    --accent-50: rgba(245, 158, 11, 0.08);
    
    --text-primary: #111827;
    --text-secondary: #6B7280;
    --text-muted: #9CA3AF;
    --text-inverse: #ffffff;
    
    --bg-body: #F8FAFC;
    --bg-surface: #ffffff;
    --bg-surface-hover: #f1f5f9;
    --bg-muted: #F1F5F9;
    --bg-dark: #0f172a;
    
    --border: #E5E7EB;
    --border-light: #F3F4F6;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.08), 0 4px 6px rgba(0,0,0,0.04);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.1), 0 10px 10px rgba(0,0,0,0.04);
    
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;
    
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-display: 'Outfit', 'Inter', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    
    --transition: 0.2s ease;
    --transition-slow: 0.3s ease;
    
    --success: #059669;
    --warning: #d97706;
    --danger: #dc2626;
    --info: #0284c7;
    
    --header-height: 68px;
}

/* Dark Mode */
[data-bs-theme="dark"] {
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-inverse: #0f172a;
    --bg-body: #0b1120;
    --bg-surface: #151f32;
    --bg-surface-hover: #1e2d47;
    --bg-muted: #131c2e;
    --bg-dark: #060c18;
    --border: #1e2d47;
    --border-light: #151f32;
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --primary-light: #60a5fa;
    --primary-50: rgba(59, 130, 246, 0.1);
    --primary-100: rgba(59, 130, 246, 0.18);
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
    --shadow: 0 1px 3px rgba(0,0,0,0.5);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.45);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.4), 0 4px 6px rgba(0,0,0,0.2);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.5), 0 10px 10px rgba(0,0,0,0.25);
}

/* ===================== RESET & BASE ===================== */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden; /* Prevent horizontal scroll / right-side space */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
}

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

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

img { max-width: 100%; height: auto; }

/* ===================== SKIP LINK ===================== */
.skip-to-content {
    position: absolute;
    top: -100%;
    left: 16px;
    background: var(--primary);
    color: white;
    padding: 8px 16px;
    border-radius: var(--radius);
    z-index: 9999;
    font-size: 14px;
}

.skip-to-content:focus {
    top: 16px;
    color: white;
}

/* ===================== ANNOUNCEMENT BAR ===================== */
.announcement-bar {
    background: #2563EB;
    color: white;
    font-size: 13px;
    padding: 8px 0;
    position: relative;
    z-index: 1030;
    overflow: hidden;
}

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

.announcement-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.announcement-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255,255,255,0.2);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.announcement-marquee {
    flex: 1;
    overflow: hidden;
    margin: 0 16px;
    mask-image: linear-gradient(90deg, transparent 0%, black 5%, black 95%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 5%, black 95%, transparent 100%);
}

.announcement-marquee-inner {
    display: inline-block;
    white-space: nowrap;
    animation: marquee 30s linear infinite;
    font-weight: 500;
}

@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.announcement-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.announcement-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: all var(--transition);
}

.announcement-link:hover {
    background: rgba(255,255,255,0.25);
    color: white;
}

.announcement-text span {
    font-weight: 500;
}

.announcement-close {
    background: rgba(255,255,255,0.15);
    border: none;
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--transition);
    font-size: 14px;
    flex-shrink: 0;
}

.announcement-close:hover { background: rgba(255,255,255,0.3); }

/* ===================== HEADER ===================== */
.site-header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.6);
    position: sticky;
    top: 0;
    z-index: 1020;
    transition: all var(--transition);
}

.site-header.scrolled {
    box-shadow: 0 1px 20px rgba(0,0,0,0.08);
    background: rgba(255, 255, 255, 0.95);
}

.site-header .navbar {
    padding: 10px 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.navbar-brand .logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #2563EB, #1D4ED8);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.navbar-brand .logo-text {
    display: flex;
    flex-direction: column;
}

.navbar-brand .logo-name {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.navbar-brand .logo-tagline {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.navbar-nav .nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 8px 14px !important;
    border-radius: var(--radius);
    transition: all var(--transition);
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary);
    background: var(--primary-50);
}

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

.navbar-nav .dropdown-toggle::after {
    display: inline-block;
    margin-left: 4px;
    vertical-align: middle;
    border-top: 4px solid;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
    opacity: 0.5;
}

.dropdown-menu {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 8px;
    background: var(--bg-surface);
    margin-top: 8px;
    min-width: 200px;
    animation: dropdownFade 0.2s ease;
}

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

.dropdown-item {
    font-size: 14px;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    transition: all var(--transition);
}

.dropdown-item:hover {
    background: var(--primary-50);
    color: var(--primary);
    transform: translateX(2px);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 8px;
}

.header-action-btn {
    background: none;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 18px;
    transition: all var(--transition);
}

.header-action-btn:hover {
    background: var(--bg-muted);
    color: var(--primary);
}

.nav-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary);
    color: white !important;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition);
    border: none;
    white-space: nowrap;
}

.nav-cta-btn:hover {
    background: var(--primary-hover);
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

/* ===================== SEARCH OVERLAY ===================== */
.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    align-items: flex-start;
    padding-top: 120px;
}

.search-overlay.active { display: flex; }

.search-input-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    padding: 16px 24px;
    box-shadow: var(--shadow-xl);
}

.search-input-wrap > i { font-size: 20px; color: var(--text-muted); }

.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 18px;
    background: transparent;
    color: var(--text-primary);
    font-family: var(--font-sans);
}

.search-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
}

.search-suggestions {
    background: var(--bg-surface);
    border-radius: var(--radius);
    margin-top: 8px;
    max-height: 300px;
    overflow-y: auto;
    display: none;
}

.search-suggestion-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    cursor: pointer;
    transition: background var(--transition);
}

.search-suggestion-item:hover { background: var(--bg-muted); }

/* ===================== HERO SECTION ===================== */
.hero-section {
    background: linear-gradient(160deg, #1e3a8a 0%, #1D4ED8 30%, #2563EB 55%, #3b82f6 80%, #1e40af 100%);
    color: white;
    padding: 72px 0 56px;
    position: relative;
    overflow: hidden;
}

/* Dot pattern overlay — subtle */
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 1.5px 1.5px, rgba(255, 255, 255, 0.07) 1.5px, transparent 0);
    background-size: 30px 30px;
    z-index: 1;
    pointer-events: none;
}

/* Floating orb — top right */
.hero-section::after {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 55%;
    height: 130%;
    background: radial-gradient(ellipse at center, rgba(96, 165, 250, 0.15) 0%, rgba(37, 99, 235, 0.08) 40%, transparent 70%);
    animation: heroOrb 18s infinite ease-in-out;
    z-index: 1;
    pointer-events: none;
}

@keyframes heroOrb {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.8; }
    33% { transform: translate(-20px, 15px) scale(1.05); opacity: 1; }
    66% { transform: translate(10px, -10px) scale(0.95); opacity: 0.7; }
}

/* Additional floating shapes */
.hero-shape {
    position: absolute;
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
}
.hero-shape-1 {
    width: 200px; height: 200px;
    background: rgba(96, 165, 250, 0.08);
    bottom: -40px; left: 10%;
    filter: blur(40px);
    animation: floatShape 20s ease-in-out infinite;
}
.hero-shape-2 {
    width: 150px; height: 150px;
    background: rgba(245, 158, 11, 0.06);
    top: 20%; right: 20%;
    filter: blur(30px);
    animation: floatShape 15s ease-in-out infinite reverse;
}
@keyframes floatShape {
    0%, 100% { transform: translate(0,0); }
    50% { transform: translate(15px, -15px); }
}

.hero-section > .container {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    letter-spacing: 0.03em;
    margin-bottom: 20px;
    backdrop-filter: blur(8px);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 5vw, 46px);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
    color: #ffffff !important;
}

.hero-title .highlight {
    background: linear-gradient(135deg, #93c5fd 0%, #bfdbfe 40%, #dbeafe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 16px;
    color: rgba(219, 234, 254, 0.9);
    max-width: 540px;
    margin-bottom: 28px;
    line-height: 1.7;
}

.hero-search {
    max-width: 520px;
}

.hero-search .input-group {
    background: rgba(255,255,255,0.95);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color var(--transition), box-shadow var(--transition);
    box-shadow: 0 4px 24px rgba(0,0,0,0.1);
}

.hero-search .input-group:focus-within {
    border-color: rgba(245, 158, 11, 0.5);
    box-shadow: 0 4px 24px rgba(0,0,0,0.1), 0 0 0 3px rgba(245, 158, 11, 0.12);
}

.hero-search .form-control {
    background: transparent;
    border: none;
    color: #111827;
    padding: 14px 20px;
    font-size: 15px;
}

.hero-search .form-control::placeholder { color: #9CA3AF; }

.hero-search .btn {
    background: linear-gradient(135deg, #2563EB, #1D4ED8);
    border: none;
    padding: 14px 24px;
    color: white;
    font-weight: 700;
    transition: all var(--transition);
    font-size: 14px;
}

.hero-search .btn:hover {
    background: linear-gradient(135deg, #1D4ED8, #1e40af);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
    color: white;
}

/* Hero Quick Action Cards */
.quick-action-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 16px;
    padding: 22px 18px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 2;
}
.quick-action-card .qa-icon {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #FBBF24;
    margin-bottom: 4px;
}
.quick-action-card .qa-title {
    font-size: 14px;
    font-weight: 700;
    color: white;
}
.quick-action-card .qa-subtitle {
    font-size: 11px;
    color: rgba(219, 234, 254, 0.7);
    font-weight: 400;
}
.quick-action-card:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.3);
    transform: translateY(-4px);
    color: white;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 32px;
    margin-top: 40px;
}

.hero-stat {
    text-align: center;
    position: relative;
}

.hero-stat + .hero-stat::before {
    content: '';
    position: absolute;
    left: -16px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 32px;
    background: rgba(147, 197, 253, 0.25);
}

.hero-stat-value {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
}

.hero-stat-label {
    font-size: 13px;
    color: rgba(191, 219, 254, 0.8);
    margin-top: 2px;
}

/* ===================== SECTION STYLES ===================== */
.section {
    padding: 64px 0;
}

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

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    background: var(--primary-50);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(24px, 4vw, 34px);
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.section-desc {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.section-header-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 28px;
    gap: 12px;
}

.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: all var(--transition);
}
.view-all-link:hover {
    gap: 8px;
    color: var(--primary-hover);
}

/* ===================== DIRECT SCHOLARSHIP PORTAL ACCESS ===================== */
.portal-access-section {
    padding: 64px 0;
    background: var(--bg-body);
}

.portal-access-section .section-title {
    text-align: center;
    margin-bottom: 8px;
}

.portal-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}
.portal-divider::before,
.portal-divider::after {
    content: '';
    width: 60px;
    height: 1px;
    background: var(--border);
    border-style: dashed;
}

.portal-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    height: 100%;
}

.portal-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-100);
}

.portal-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.portal-card-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

/* Icon color themes */
.portal-icon-blue { background: #EFF6FF; color: #2563EB; }
.portal-icon-green { background: #ECFDF5; color: #059669; }
.portal-icon-amber { background: #FEF3C7; color: #D97706; }
.portal-icon-purple { background: #F3E8FF; color: #7C3AED; }
.portal-icon-red { background: #FEE2E2; color: #DC2626; }
.portal-icon-teal { background: #E0F2FE; color: #0284C7; }
.portal-icon-orange { background: #FFF7ED; color: #EA580C; }
.portal-icon-indigo { background: #EEF2FF; color: #4F46E5; }

/* ===================== STATE-WISE SCHOLARSHIPS ===================== */
.state-section {
    padding: 48px 0;
    background: var(--bg-muted);
}

.state-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.state-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition);
    white-space: nowrap;
}

.state-chip:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.state-chip .state-flag {
    font-size: 16px;
}

.state-chip-viewall {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    font-weight: 600;
}
.state-chip-viewall:hover {
    background: var(--primary-hover);
    color: white;
    border-color: var(--primary-hover);
}

/* ===================== CONTENT CARDS ===================== */
.content-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-slow);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.content-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-100);
}

.content-card .card-thumb {
    aspect-ratio: 16/9;
    overflow: hidden;
    position: relative;
}

.content-card .card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.content-card:hover .card-thumb img {
    transform: scale(1.05);
}

.content-card .card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.content-card .card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.content-card .card-category {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    margin-bottom: 8px;
}

.content-card .card-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

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

.content-card .card-excerpt {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 16px;
    flex: 1;
}

.content-card .card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--text-muted);
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
}

.content-card .card-meta i { margin-right: 3px; }

/* ===================== SCHOLARSHIP CARDS ===================== */
.scholarship-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all var(--transition-slow);
    position: relative;
    overflow: hidden;
}

.scholarship-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), #3b82f6);
}

.scholarship-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.scholarship-card .sc-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    margin-bottom: 12px;
}

.scholarship-card .sc-status.open { background: rgba(5, 150, 105, 0.1); color: var(--success); }
.scholarship-card .sc-status.closed { background: rgba(220, 38, 38, 0.1); color: var(--danger); }
.scholarship-card .sc-status.upcoming { background: rgba(217, 119, 6, 0.1); color: var(--warning); }

.scholarship-card .sc-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
}

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

.scholarship-card .sc-title a:hover { color: var(--primary); }

.scholarship-card .sc-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 16px;
}

.scholarship-card .sc-info-item {
    font-size: 13px;
    color: var(--text-secondary);
}

.scholarship-card .sc-info-item strong {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 2px;
    font-weight: 600;
}

.scholarship-card .sc-actions {
    display: flex;
    gap: 8px;
}

/* Latest Scholarship List Card (compact) */
.scholarship-list-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.scholarship-list-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-100);
}
.scholarship-list-card .slc-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.4;
}
.scholarship-list-card .slc-title a {
    color: inherit;
    text-decoration: none;
}
.scholarship-list-card .slc-title a:hover { color: var(--primary); }
.scholarship-list-card .slc-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
}
.scholarship-list-card .slc-meta span {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
.scholarship-list-card .slc-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.btn-apply-sm {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--accent);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: all var(--transition);
    border: none;
}
.btn-apply-sm:hover {
    background: var(--accent-hover);
    color: white;
    transform: translateY(-1px);
}

/* ===================== IMPORTANT GUIDES LIST ===================== */
.guide-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.guide-list li {
    border-bottom: 1px solid var(--border-light);
}
.guide-list li:last-child { border-bottom: none; }
.guide-list-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition);
}
.guide-list-link:hover {
    color: var(--primary);
    padding-left: 6px;
}
.guide-list-link i {
    color: var(--primary);
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* ===================== FAQ SECTION ===================== */
.faq-section {
    padding: 64px 0;
    background: var(--bg-body);
}

.faq-item {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 12px;
    overflow: hidden;
    transition: all var(--transition);
}

.faq-item:hover {
    border-color: var(--primary-100);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    padding: 18px 24px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: left;
    cursor: pointer;
    transition: all var(--transition);
    font-family: var(--font-sans);
    gap: 12px;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-question .faq-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary-50);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--primary);
    transition: all var(--transition);
}

.faq-item.active .faq-question .faq-icon {
    background: var(--primary);
    color: white;
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-answer-inner {
    padding: 0 24px 18px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

/* ===================== NEWSLETTER SECTION ===================== */
.newsletter-section {
    background: linear-gradient(135deg, #2563EB, #1D4ED8);
    border-radius: var(--radius-xl);
    padding: 40px;
    color: white;
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(255,255,255,0.05) 1px, transparent 0);
    background-size: 20px 20px;
    pointer-events: none;
}

.newsletter-section > * { position: relative; z-index: 1; }

.newsletter-title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 8px;
    color: white;
}

.newsletter-desc {
    font-size: 14px;
    color: rgba(219, 234, 254, 0.85);
    margin-bottom: 20px;
    line-height: 1.6;
}

.newsletter-form .input-group {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius);
    overflow: hidden;
}

.newsletter-form .form-control {
    background: transparent;
    border: none;
    color: white;
    padding: 12px 16px;
    font-size: 14px;
}

.newsletter-form .form-control::placeholder { color: rgba(219, 234, 254, 0.6); }

.newsletter-form .btn {
    background: white;
    color: #2563EB;
    border: none;
    padding: 12px 24px;
    font-weight: 700;
    font-size: 14px;
    transition: all var(--transition);
}

.newsletter-form .btn:hover {
    background: #F1F5F9;
    color: #1D4ED8;
}

.newsletter-hint {
    font-size: 12px;
    color: rgba(191, 219, 254, 0.6);
    margin-top: 10px;
}

.newsletter-illustration {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    opacity: 0.15;
}

/* ===================== CTA SECTION ===================== */
.cta-section {
    background: linear-gradient(160deg, #1e3a8a 0%, #1D4ED8 30%, #2563EB 60%, #3b82f6 85%, #1e40af 100%);
    color: white;
    position: relative;
    overflow: hidden;
}
.cta-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 2px 2px, rgba(255, 255, 255, 0.04) 1.5px, transparent 0);
    background-size: 24px 24px;
    z-index: 1;
    pointer-events: none;
}
.cta-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    z-index: 1;
    pointer-events: none;
}
.cta-orb-1 {
    width: 300px; height: 300px;
    background: rgba(96, 165, 250, 0.15);
    top: -80px; left: -60px;
    animation: ctaOrb1 12s ease-in-out infinite;
}
.cta-orb-2 {
    width: 250px; height: 250px;
    background: rgba(245, 158, 11, 0.06);
    bottom: -60px; right: -40px;
    animation: ctaOrb2 15s ease-in-out infinite;
}
@keyframes ctaOrb1 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, 20px); }
}
@keyframes ctaOrb2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-20px, -15px); }
}
.cta-badge {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #FBBF24;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.2);
    padding: 6px 16px;
    border-radius: 9999px;
    margin-bottom: 20px;
}
.cta-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 16px;
    font-family: var(--font-display);
    color: #ffffff !important;
    letter-spacing: -0.02em;
}
.cta-desc {
    font-size: 17px;
    color: rgba(191, 219, 254, 0.85);
    margin-bottom: 32px;
    line-height: 1.7;
}
.cta-btn-primary {
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.cta-btn-primary:hover {
    background: linear-gradient(135deg, #FBBF24, #F59E0B);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.35);
}
.cta-btn-outline {
    background: transparent;
    color: rgba(219, 234, 254, 0.9);
    border: 1.5px solid rgba(147, 197, 253, 0.3);
    padding: 12px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s ease;
    backdrop-filter: blur(8px);
}
.cta-btn-outline:hover {
    background: rgba(147, 197, 253, 0.1);
    border-color: rgba(147, 197, 253, 0.5);
    color: white;
    transform: translateY(-2px);
}

/* ===================== BREADCRUMBS ===================== */
.breadcrumb-nav {
    padding: 16px 0;
    background: var(--bg-muted);
    border-bottom: 1px solid var(--border);
}

.breadcrumb {
    margin: 0;
    padding: 0;
    font-size: 13px;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: '›';
    color: var(--text-muted);
}

.breadcrumb-item a { color: var(--text-secondary); }
.breadcrumb-item a:hover { color: var(--primary); }
.breadcrumb-item.active { color: var(--text-muted); }

/* ===================== BUTTONS ===================== */
.btn-primary-custom {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 14px;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-primary-custom:hover {
    background: var(--primary-hover);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-accent {
    background: var(--accent);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 14px;
    transition: all var(--transition);
}

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

.btn-outline-custom {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary);
    padding: 10px 20px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 14px;
    transition: all var(--transition);
}

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

/* ===================== TABLE OF CONTENTS ===================== */
.table-of-contents {
    background: var(--bg-muted);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-bottom: 24px;
}

/* Collapsible TOC title — acts as toggle button */
.toc-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    gap: 8px;
}

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

/* Toggle icon */
.toc-toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary-50);
    color: var(--primary);
    font-size: 13px;
    font-style: normal;
    flex-shrink: 0;
    transition: transform var(--transition), background var(--transition);
    line-height: 1;
}

.table-of-contents.toc-open .toc-toggle-icon {
    transform: rotate(180deg);
    background: var(--primary-100);
}

/* Collapsible wrapper — smooth slide animation */
.toc-body {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.35s ease, opacity 0.3s ease, margin-top 0.3s ease;
    opacity: 0;
    margin-top: 0;
}

.table-of-contents.toc-open .toc-body {
    max-height: 2000px;   /* large enough for any TOC */
    opacity: 1;
    margin-top: 12px;
}

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

.toc-list li {
    margin-bottom: 6px;
}

.toc-list li a {
    font-size: 14px;
    color: var(--text-secondary);
    display: block;
    padding: 4px 0;
    border-left: 2px solid transparent;
    padding-left: 12px;
    transition: all var(--transition);
}

.toc-list li a:hover {
    color: var(--primary);
    border-color: var(--primary);
}

.toc-list li.toc-sub { padding-left: 16px; }
.toc-list li.toc-sub a { font-size: 13px; }

/* ===================== ARTICLE CONTENT ===================== */
.article-content {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-primary);
}

.article-content h2 {
    font-size: 26px;
    margin-top: 40px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border);
}

.article-content h3 {
    font-size: 22px;
    margin-top: 32px;
    margin-bottom: 12px;
}

.article-content p { margin-bottom: 16px; }

.article-content ul, .article-content ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.article-content li { margin-bottom: 8px; }

.article-content blockquote {
    border-left: 4px solid var(--primary);
    background: var(--primary-50);
    padding: 16px 20px;
    margin: 24px 0;
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
}

.article-content img {
    border-radius: var(--radius);
    margin: 16px 0;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    border-radius: var(--radius);
    overflow: hidden;
}

.article-content table th {
    background: var(--primary);
    color: white;
    padding: 12px 16px;
    font-weight: 600;
    font-size: 14px;
}

.article-content table td {
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.article-content table tr:nth-child(even) td {
    background: var(--bg-muted);
    color: var(--text-primary);
}

.article-content table td,
.article-content table th {
    color: inherit;
}

.article-content table tr td {
    color: var(--text-primary);
}

/* ===================== ARTICLE SHARE BUTTONS ===================== */
.article-share-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    color: white;
    text-decoration: none;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.article-share-btn:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 6px 18px rgba(0,0,0,0.2);
    color: white;
}

.share-facebook  { background: #1877F2; }
.share-twitter   { background: #000000; }
.share-whatsapp  { background: #25D366; }
.share-telegram  { background: #229ED9; }
.share-copy      { background: var(--text-muted); }

/* ===================== SIDEBAR WIDGETS ===================== */
.sidebar-widget {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
}

.sidebar-widget .widget-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ===================== GUIDE CARDS (for guide pages) ===================== */
.guide-card {
    display: block;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    text-decoration: none;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}
.guide-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--guide-color);
    opacity: 0;
    transition: opacity 0.3s;
}
.guide-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: color-mix(in srgb, var(--guide-color) 30%, transparent);
}
.guide-card:hover::before { opacity: 1; }
.guide-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: color-mix(in srgb, var(--guide-color) 12%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--guide-color);
    margin-bottom: 16px;
}
.guide-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}
.guide-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}
.guide-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--guide-color);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.guide-card:hover .guide-link i { transform: translateX(4px); }
.guide-link i { transition: transform 0.2s; }

/* ===================== FOOTER ===================== */
.site-footer {
    background: linear-gradient(180deg, #0f172a 0%, #0c1222 60%, #080e1a 100%);
    color: #94a3b8;
    position: relative;
}

/* Subtle grid pattern on footer */
.site-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

.site-footer > * {
    position: relative;
    z-index: 1;
}

[data-bs-theme="dark"] .site-footer {
    background: linear-gradient(180deg, #08041a 0%, #050310 100%);
}

.footer-top {
    padding: 56px 0 36px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.footer-brand .logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #2563EB, #1D4ED8);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.footer-brand .logo-name {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    color: #f1f5f9;
}

.footer-about {
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 20px;
    color: #94a3b8;
}

.footer-social-section {
    margin-top: 8px;
}

.footer-follow-title {
    font-size: 13px;
    font-weight: 700;
    color: #f1f5f9;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
}

.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

.social-link {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    transition: all 0.25s ease;
    text-decoration: none;
    flex-shrink: 0;
}

/* Per-platform brand colors */
.social-link.social-whatsapp  { background: #25D366; }
.social-link.social-telegram  { background: #229ED9; }
.social-link.social-twitter   { background: #000000; }
.social-link.social-youtube   { background: #FF0000; }
.social-link.social-facebook  { background: #1877F2; }
.social-link.social-instagram { background: radial-gradient(circle at 30% 110%, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }

.social-link:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.35);
    color: white;
}

.footer-title {
    font-size: 14px;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

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

.footer-links a {
    font-size: 13px;
    color: #94a3b8;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-links a:hover {
    color: white;
    padding-left: 4px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 10px;
}
.footer-contact-item i {
    color: var(--primary-light);
    margin-top: 2px;
    flex-shrink: 0;
}
.footer-contact-item a {
    color: #94a3b8;
}
.footer-contact-item a:hover { color: white; }

.footer-newsletter-text {
    font-size: 13px;
    margin-bottom: 16px;
}

.footer-newsletter .input-group {
    border-radius: var(--radius);
    overflow: hidden;
}

.footer-newsletter .form-control {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    padding: 12px 16px;
    font-size: 14px;
}

.footer-newsletter .form-control::placeholder { color: #64748b; }

.footer-newsletter .btn {
    background: var(--primary);
    border: none;
    padding: 12px 20px;
}

.footer-newsletter .btn:hover { background: var(--primary-hover); }

.footer-hint {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-top: 8px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 20px 0;
    font-size: 13px;
}

.footer-bottom-links {
    display: flex;
    gap: 16px;
}

.footer-bottom-links a {
    color: #64748b;
    font-size: 13px;
}

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

/* ===================== SCROLL TO TOP ===================== */
.scroll-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-slow);
    box-shadow: var(--shadow-md);
    z-index: 1000;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

/* ===================== COOKIE BANNER ===================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    padding: 16px 0;
    z-index: 1050;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.1);
}

/* ===================== PAGINATION ===================== */
.pagination .page-link {
    border-radius: var(--radius-sm);
    margin: 0 2px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    border-color: var(--border);
}

.pagination .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 991px) {
    .hero-section { padding: 48px 0 40px; }
    .hero-stats { gap: 20px; }
    .section { padding: 48px 0; }
    .navbar-brand .logo-tagline { display: none; }
    .announcement-link { display: none; }
    .announcement-marquee { margin: 0 12px; }
    .portal-access-section { padding: 48px 0; }
    .newsletter-section { padding: 28px; }
    .newsletter-illustration { display: none; }
    .nav-cta-btn { margin-top: 8px; }
}

@media (max-width: 767px) {
    .portal-card { padding: 18px 10px; }
    .portal-card-icon { width: 48px; height: 48px; font-size: 20px; }
    .portal-card-title { font-size: 12px; }
    .state-chips { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
    .state-chip { flex-shrink: 0; }
}

@media (max-width: 575px) {
    .hero-stats { gap: 16px; flex-wrap: wrap; }
    .hero-stat-value { font-size: 22px; }
    .footer-bottom-links { flex-wrap: wrap; gap: 8px; }
    .hero-stat + .hero-stat::before { display: none; }
    .announcement-badge span { display: none; }
    .announcement-badge { padding: 3px 6px; }
    .cta-title { font-size: 24px; }
}

/* ===================== COMPACT NAVBAR (768px–991px) ===================== */
/* Chrome Desktop Site mode: navbar has 7+ items that overflow at ~960px.
   This compacts all navbar elements to fit within the viewport width. */
@media (min-width: 768px) and (max-width: 991px) {

    /* Logo: smaller to save space */
    .navbar-brand .logo-icon {
        width: 32px;
        height: 32px;
        font-size: 16px;
        border-radius: 8px;
    }
    .navbar-brand .logo-name {
        font-size: 13px;
    }
    /* Logo tagline hidden — saves ~220px */
    .navbar-brand .logo-tagline {
        display: none !important;
    }

    /* Nav links: smaller font + tighter padding */
    .navbar-nav .nav-link {
        font-size: 11px !important;
        padding: 4px 7px !important;
    }

    /* Header action buttons: smaller */
    .header-actions {
        gap: 2px;
        margin-left: 4px;
    }
    .header-action-btn {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }

    /* "Apply Online" CTA button: compact */
    .nav-cta-btn {
        padding: 5px 10px !important;
        font-size: 11px !important;
    }

    /* Navbar vertical padding: reduce */
    .site-header .navbar {
        padding: 6px 0;
    }
}

/* ===================== DESKTOP LAYOUT ===================== */
/* Chrome Mobile "Desktop Site" uses varying viewport widths (~960-980px depending on device).
   Using min-width: 768px safely covers all Desktop Site scenarios while
   keeping normal mobile (390px viewport) completely unaffected. */
@media (min-width: 768px) {

    /* ---- Bootstrap Container: use lg width ---- */
    .container,
    .container-lg,
    .container-md,
    .container-sm {
        max-width: 960px;
    }

    /* ---- Bootstrap Grid: col-lg-* columns ----
       Bootstrap normally applies these at @media (min-width: 992px).
       We apply them at 980px to support Chrome Desktop Site mode.
       !important needed to override Bootstrap's default full-width stacking. */
    .col-lg        { flex: 1 0 0% !important; }
    .col-lg-auto   { flex: 0 0 auto !important; width: auto !important; }
    .col-lg-1      { flex: 0 0 auto !important; width: 8.33333% !important; }
    .col-lg-2      { flex: 0 0 auto !important; width: 16.66667% !important; }
    .col-lg-3      { flex: 0 0 auto !important; width: 25% !important; }
    .col-lg-4      { flex: 0 0 auto !important; width: 33.33333% !important; }
    .col-lg-5      { flex: 0 0 auto !important; width: 41.66667% !important; }
    .col-lg-6      { flex: 0 0 auto !important; width: 50% !important; }
    .col-lg-7      { flex: 0 0 auto !important; width: 58.33333% !important; }
    .col-lg-8      { flex: 0 0 auto !important; width: 66.66667% !important; }
    .col-lg-9      { flex: 0 0 auto !important; width: 75% !important; }
    .col-lg-10     { flex: 0 0 auto !important; width: 83.33333% !important; }
    .col-lg-11     { flex: 0 0 auto !important; width: 91.66667% !important; }
    .col-lg-12     { flex: 0 0 auto !important; width: 100% !important; }

    /* ---- Bootstrap row-cols-lg-* ---- */
    .row-cols-lg-1 > * { flex: 0 0 auto !important; width: 100% !important; }
    .row-cols-lg-2 > * { flex: 0 0 auto !important; width: 50% !important; }
    .row-cols-lg-3 > * { flex: 0 0 auto !important; width: 33.33333% !important; }
    .row-cols-lg-4 > * { flex: 0 0 auto !important; width: 25% !important; }
    .row-cols-lg-5 > * { flex: 0 0 auto !important; width: 20% !important; }
    .row-cols-lg-6 > * { flex: 0 0 auto !important; width: 16.66667% !important; }

    /* ---- Bootstrap offset-lg-* ---- */
    .offset-lg-0  { margin-left: 0; }
    .offset-lg-1  { margin-left: 8.33333%; }
    .offset-lg-2  { margin-left: 16.66667%; }
    .offset-lg-3  { margin-left: 25%; }
    .offset-lg-4  { margin-left: 33.33333%; }

    /* ---- Bootstrap order-lg-* ---- */
    .order-lg-first { order: -1; }
    .order-lg-last  { order: 6; }
    .order-lg-0  { order: 0; }
    .order-lg-1  { order: 1; }
    .order-lg-2  { order: 2; }
    .order-lg-3  { order: 3; }

    /* ---- Bootstrap Display utilities: d-lg-* ---- */
    .d-lg-none          { display: none !important; }
    .d-lg-inline        { display: inline !important; }
    .d-lg-inline-block  { display: inline-block !important; }
    .d-lg-block         { display: block !important; }
    .d-lg-grid          { display: grid !important; }
    .d-lg-flex          { display: flex !important; }
    .d-lg-inline-flex   { display: inline-flex !important; }

    /* ---- Bootstrap Flex utilities: flex-lg-* ---- */
    .flex-lg-row            { flex-direction: row !important; }
    .flex-lg-column         { flex-direction: column !important; }
    .flex-lg-wrap           { flex-wrap: wrap !important; }
    .flex-lg-nowrap         { flex-wrap: nowrap !important; }
    .justify-content-lg-start   { justify-content: flex-start !important; }
    .justify-content-lg-end     { justify-content: flex-end !important; }
    .justify-content-lg-center  { justify-content: center !important; }
    .justify-content-lg-between { justify-content: space-between !important; }
    .align-items-lg-start   { align-items: flex-start !important; }
    .align-items-lg-end     { align-items: flex-end !important; }
    .align-items-lg-center  { align-items: center !important; }

    /* ---- Bootstrap Spacing utilities: *-lg-* ---- */
    .ms-lg-auto { margin-left: auto !important; }
    .me-lg-auto { margin-right: auto !important; }
    .mt-lg-0    { margin-top: 0 !important; }
    .mb-lg-0    { margin-bottom: 0 !important; }
    .mt-lg-4    { margin-top: 1.5rem !important; }
    .mb-lg-4    { margin-bottom: 1.5rem !important; }
    .pt-lg-0    { padding-top: 0 !important; }
    .pb-lg-0    { padding-bottom: 0 !important; }

    /* ---- Bootstrap Text alignment: text-lg-* ---- */
    .text-lg-start  { text-align: left !important; }
    .text-lg-center { text-align: center !important; }
    .text-lg-end    { text-align: right !important; }

    /* ---- Bootstrap Float utilities ---- */
    .float-lg-start { float: left !important; }
    .float-lg-end   { float: right !important; }
    .float-lg-none  { float: none !important; }

    /* ---- Bootstrap Navbar: force desktop layout ----
       Bootstrap's navbar-expand-lg requires viewport ≥992px internally.
       These overrides make it behave as desktop at 980px (Chrome Desktop Site). */
    .navbar-expand-lg {
        flex-wrap: nowrap;
        justify-content: flex-start;
    }
    .navbar-expand-lg .navbar-toggler {
        display: none;
    }
    .navbar-expand-lg .navbar-collapse {
        display: flex !important;
        flex-basis: auto;
        flex-grow: 1;
        align-items: center;
    }
    .navbar-expand-lg .navbar-nav {
        flex-direction: row;
        align-items: center;
    }
    .navbar-expand-lg .navbar-nav .dropdown-menu {
        position: absolute;
    }
    .navbar-expand-lg .navbar-nav .nav-link {
        padding-right: 0.5rem;
        padding-left: 0.5rem;
    }
    .navbar-expand-lg .ms-auto {
        margin-left: auto !important;
    }

    /* ---- Site-specific: restore desktop styles ---- */
    .navbar-brand .logo-tagline { display: block; }
    .announcement-link          { display: inline-flex; }
    .announcement-marquee       { margin: 0 16px; }
    .nav-cta-btn                { margin-top: 0; }

    /* Hero section desktop padding */
    .hero-section { padding: 72px 0 56px; }
    .hero-stats   { gap: 32px; margin-top: 40px; }

    /* Sections desktop spacing */
    .section              { padding: 64px 0; }
    .portal-access-section { padding: 64px 0; }

    /* Newsletter desktop layout */
    .newsletter-section      { padding: 40px; }
    .newsletter-illustration { display: flex; }
}

/* ===================== LARGE DESKTOP (1200px+) ===================== */
/* Real desktop browsers: wider container and more spacious hero */
@media (min-width: 1200px) {
    .container {
        max-width: 1320px;
    }
    .hero-section {
        padding: 80px 0 64px;
    }
}

/* ===================== ANIMATIONS ===================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===================== COMPREHENSIVE DARK MODE OVERRIDES ===================== */
[data-bs-theme="dark"] .site-header {
    background: rgba(21, 31, 50, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom-color: var(--border);
}

[data-bs-theme="dark"] .site-header.scrolled {
    background: rgba(21, 31, 50, 0.95);
}

[data-bs-theme="dark"] .navbar-toggler {
    border-color: var(--border);
}

[data-bs-theme="dark"] .navbar-toggler-icon {
    filter: invert(1) grayscale(100%) brightness(200%);
}

[data-bs-theme="dark"] .announcement-bar {
    background: #1D4ED8;
}

[data-bs-theme="dark"] .hero-section {
    background: linear-gradient(160deg, #0c1e4a 0%, #162d6b 30%, #1D4ED8 55%, #2563EB 80%, #1e3a8a 100%);
}

[data-bs-theme="dark"] .hero-search .input-group {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.12);
}

[data-bs-theme="dark"] .hero-search .form-control {
    color: #e2e8f0;
}

[data-bs-theme="dark"] .hero-search .form-control::placeholder {
    color: rgba(148, 163, 184, 0.6);
}

[data-bs-theme="dark"] .quick-action-card {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.06);
}

[data-bs-theme="dark"] .portal-card {
    background: var(--bg-surface);
    border-color: var(--border);
}

[data-bs-theme="dark"] .state-chip {
    background: var(--bg-surface);
    border-color: var(--border);
    color: var(--text-secondary);
}

[data-bs-theme="dark"] .scholarship-card {
    background: var(--bg-surface);
    border-color: var(--border);
}

[data-bs-theme="dark"] .guide-card {
    background: var(--bg-surface);
    border-color: var(--border);
}

[data-bs-theme="dark"] .content-card {
    background: var(--bg-surface);
    border-color: var(--border);
}

[data-bs-theme="dark"] .content-card .card-title a {
    color: var(--text-primary);
}

[data-bs-theme="dark"] .sidebar-widget {
    background: var(--bg-surface);
    border-color: var(--border);
}

[data-bs-theme="dark"] .table-of-contents {
    background: var(--bg-muted);
    border-color: var(--border);
}

[data-bs-theme="dark"] .article-content table th {
    background: #1e40af;
}

[data-bs-theme="dark"] .article-content table td {
    border-bottom-color: var(--border);
}

[data-bs-theme="dark"] .article-content table tr:nth-child(even) td {
    background: var(--bg-muted);
}

[data-bs-theme="dark"] .article-content blockquote {
    background: rgba(59, 130, 246, 0.08);
    border-left-color: var(--primary);
}

[data-bs-theme="dark"] .breadcrumb-nav {
    background: var(--bg-muted);
    border-bottom-color: var(--border);
}

[data-bs-theme="dark"] .pagination .page-link {
    background: var(--bg-surface);
    border-color: var(--border);
    color: var(--text-secondary);
}

[data-bs-theme="dark"] .pagination .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

[data-bs-theme="dark"] .cookie-banner {
    background: var(--bg-surface);
    border-top-color: var(--border);
    box-shadow: 0 -4px 12px rgba(0,0,0,0.3);
}

[data-bs-theme="dark"] .scroll-top {
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

[data-bs-theme="dark"] .section-label {
    background: rgba(59, 130, 246, 0.12);
    color: #60a5fa;
}

[data-bs-theme="dark"] .dropdown-menu {
    background: var(--bg-surface);
    border-color: var(--border);
    box-shadow: var(--shadow-xl);
}

[data-bs-theme="dark"] .dropdown-item {
    color: var(--text-secondary);
}

[data-bs-theme="dark"] .dropdown-item:hover {
    background: var(--primary-50);
    color: var(--primary-light);
}

[data-bs-theme="dark"] .search-overlay {
    background: rgba(0,0,0,0.85);
}

[data-bs-theme="dark"] .search-input-wrap {
    background: var(--bg-surface);
    border: 1px solid var(--border);
}

[data-bs-theme="dark"] .search-suggestions {
    background: var(--bg-surface);
    border: 1px solid var(--border);
}

[data-bs-theme="dark"] .search-suggestion-item:hover {
    background: var(--bg-muted);
}

/* Dark mode CTA */
[data-bs-theme="dark"] .cta-section {
    background: linear-gradient(160deg, #0c1e4a 0%, #132a5e 25%, #1D4ED8 50%, #2563EB 75%, #1e3a8a 100%);
}

[data-bs-theme="dark"] .faq-item {
    background: var(--bg-surface);
    border-color: var(--border);
}

[data-bs-theme="dark"] .faq-question {
    color: var(--text-primary);
}

[data-bs-theme="dark"] .newsletter-section {
    background: linear-gradient(135deg, #1D4ED8, #1e3a8a);
}

[data-bs-theme="dark"] .footer-newsletter .form-control {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.06);
}

[data-bs-theme="dark"] .portal-icon-blue { background: rgba(37, 99, 235, 0.15); }
[data-bs-theme="dark"] .portal-icon-green { background: rgba(5, 150, 105, 0.15); }
[data-bs-theme="dark"] .portal-icon-amber { background: rgba(217, 119, 6, 0.15); }
[data-bs-theme="dark"] .portal-icon-purple { background: rgba(124, 58, 237, 0.15); }
[data-bs-theme="dark"] .portal-icon-red { background: rgba(220, 38, 38, 0.15); }
[data-bs-theme="dark"] .portal-icon-teal { background: rgba(2, 132, 199, 0.15); }
[data-bs-theme="dark"] .portal-icon-orange { background: rgba(234, 88, 12, 0.15); }
[data-bs-theme="dark"] .portal-icon-indigo { background: rgba(79, 70, 229, 0.15); }

/* Nav CTA dark mode */
[data-bs-theme="dark"] .nav-cta-btn {
    background: var(--primary-light);
}
[data-bs-theme="dark"] .nav-cta-btn:hover {
    background: var(--primary);
}
