@font-face {
    font-family: 'Sora';
    src: url('/static/fonts/Sora/Sora-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 800; /* Supports the variable font weights */
    font-style: normal;
}

:root {
    --primary-blue: #1a4b8c;
    --primary-light: #2a5ba0;
    --secondary-green: #2e7d32;
    --accent-gold: #b8860b;
    --accent-yellow: #ffc107;
    
    /* Glassmorphism 2.0 Tokens */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    
    /* Premium Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    --shadow-lg: 0 20px 50px -12px rgba(0,0,0,0.15);
    --shadow-premium: 0 25px 50px -12px rgba(0,0,0,0.25);
    
    --transition-premium: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}
body {
    font-family: 'Sora', sans-serif;
    color: #4a5568;
    background-color: #f8fafc;
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100vw;
}
h1, h2, h3, h4, h5, .navbar-brand {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    color: #1a202c;
    letter-spacing: -0.04em;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    text-decoration: none;
}


/* Premium Headings Styling */
h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; line-height: 1.1; margin-bottom: 1.25rem; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; margin-bottom: 1rem; }
h3 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 600; margin-bottom: 0.8rem; }
.text-primary { color: var(--primary-blue) !important; }
.text-success { color: var(--secondary-green) !important; }
.text-warning { color: var(--accent-gold) !important; }
.bg-primary { background-color: var(--primary-blue) !important; color: white; }
/* Utilities */
.transition { transition: all 0.3s ease; }
.transition-premium { transition: var(--transition-premium); }
.hover-primary:hover { color: var(--primary-blue) !important; }
.hover-white:hover { color: #ffffff !important; }
.hover-warning:hover { color: var(--accent-gold) !important; }
.text-sm-custom { font-size: 0.85rem; }
.opacity-75 { opacity: 0.75; }
.opacity-10 { opacity: 0.1; }

.backdrop-blur { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.glass-pill {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 0.5rem 1.25rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: var(--shadow-sm);
}

/* Scroll Reveals */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-premium);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
.reveal-left { transform: translateX(-30px); }
.reveal-right { transform: translateX(30px); }
.reveal-scale { transform: scale(0.95); }

.z-index-2 { z-index: 2 !important; }

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }

/* Buttons & Forms */
.btn {
    font-weight: 600;
    letter-spacing: 0.3px;
    border-radius: 16px;
    transition: all 0.3s ease;
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.form-control { border-color: #e2e8f0; box-shadow: none !important; }
.form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(26, 75, 140, 0.1) !important;
}

.btn-primary { 
    background-color: var(--primary-blue); 
    border-color: var(--primary-blue); 
}
.btn-primary:hover {
    background-color: #123666;
    border-color: #123666;
}
.btn-success { background-color: var(--secondary-green); border-color: var(--secondary-green); color: white; }
.btn-success:hover { color: white; background-color: #235e25; border-color: #235e25; }

.btn-warning { background-color: var(--accent-gold); border-color: var(--accent-gold); color: white; }
.btn-warning:hover { color: white; background-color: #9c7209; border-color: #9c7209; }

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

/* Social Login Styles */
.btn-google {
    background-color: #ffffff;
    color: #444;
    border: 1px solid #dadce0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 10px 16px;
    font-size: 1rem;
    font-weight: 500;
    width: 100%;
    margin-bottom: 1rem;
}

.btn-google:hover {
    background-color: #f8f9fa;
    border-color: #d2d4d7;
    box-shadow: 0 1px 3px rgba(60,64,67, 0.3), 0 4px 8px 3px rgba(60,64,67, 0.15);
}

.btn-google img {
    width: 20px;
    height: 20px;
}

.social-separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 600;
}

.social-separator::before,
.social-separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e2e8f0;
}

.social-separator:not(:empty)::before {
    margin-right: .75em;
}

.social-separator:not(:empty)::after {
    margin-left: .75em;
}

/* Premium Action Buttons - Trapezoidal & Sharp Utility */
.btn-premium {
    position: relative;
    border: none;
    border-radius: 0;
    padding: 0.6rem 1.75rem;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
    cursor: pointer;
}

.btn-premium-primary {
    background: var(--primary-blue);
    clip-path: polygon(0% 0%, 100% 0%, 92% 100%, 0% 100%);
    box-shadow: 0 4px 15px rgba(26, 75, 140, 0.3);
}

.btn-premium-success {
    background: var(--secondary-green);
    clip-path: polygon(0% 0%, 100% 0%, 92% 100%, 0% 100%);
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
}

.btn-premium-warning {
    background: #ffc107;
    color: #111 !important;
    clip-path: polygon(0% 0%, 100% 0%, 92% 100%, 0% 100%);
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.btn-premium-warning:hover {
    background: #e0a800;
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.4);
    clip-path: polygon(0% 0%, 96% 0%, 100% 100%, 0% 100%);
}

.btn-premium-outline {
    background: transparent;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}

.btn-premium:hover {
    transform: translateY(-3px) scale(1.05);
    color: white;
}

.btn-premium-primary:hover {
    background: #143d74;
    box-shadow: 0 8px 25px rgba(26, 75, 140, 0.4);
    clip-path: polygon(0% 0%, 96% 0%, 100% 100%, 0% 100%);
}

.btn-premium-success:hover {
    background: #236326;
    box-shadow: 0 8px 25px rgba(46, 125, 50, 0.4);
    clip-path: polygon(0% 0%, 96% 0%, 100% 100%, 0% 100%);
}

.btn-premium i {
    transition: transform 0.3s ease;
}

.btn-premium:hover i {
    transform: translateX(4px) scale(1.2);
}

/* Navbar aesthetic */
.glass-header {
    position: relative;
    background: transparent !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.glass-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: -1;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.sticky-top {
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}


.navbar {
    padding-top: 1rem;
    padding-bottom: 1rem;
}
.logo-main { letter-spacing: -0.5px; }

/* Mega Menu Styles */
.nav-item.dropdown.dropdown-mega {
    position: static;
}

.dropdown-menu.mega-menu-content {
    width: 100%;
    left: 0;
    right: 0;
    margin-top: 0;
    padding: 2rem;
    border-radius: 0 0 24px 24px !important;
    border-top: 1px solid rgba(0,0,0,0.05) !important;
}

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

.mega-menu-title {
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(26, 75, 140, 0.1);
    display: block;
}

.mega-menu-item {
    display: block;
    padding: 0.4rem 0;
    color: #4a5568;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border-radius: 8px;
}

.mega-menu-item:hover {
    color: var(--primary-blue);
    padding-left: 8px;
    background: rgba(26, 75, 140, 0.03);
}

.dropdown-menu {
    border: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08) !important;
    border-radius: 16px !important;
    padding: 0.5rem;
}

.dropdown-item {
    border-radius: 16px;
    transition: all 0.2s ease;
    font-weight: 500;
    color: #4a5568;
}
.dropdown-item:hover {
    background-color: rgba(26, 75, 140, 0.04);
    color: var(--primary-blue);
    transform: translateX(4px);
}

/* Premium Card & Search Discovery System */
.premium-card {
    background: white;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 16px;
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    text-decoration: none !important;
}

.premium-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px -10px rgba(0,0,0,0.1);
    border-color: rgba(26, 75, 140, 0.2);
}

.premium-card .card-icon-wrapper {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 1.25rem;
    font-size: 1.75rem;
    background: rgba(26, 75, 140, 0.05);
    color: #1a4b8c;
    transition: all 0.3s ease;
}

.premium-card:hover .card-icon-wrapper {
    background: #1a4b8c;
    color: white;
    transform: scale(1.1) rotate(-5deg);
}

.premium-card .card-title {
    font-weight: 800;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #1a202c;
    line-height: 1.3;
}

.premium-card .card-description {
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    line-height: 1.5;
}

.premium-card .card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(0,0,0,0.04);
}

/* Premium Search UI */
.premium-search-hero {
    padding: 5rem 0;
    background: linear-gradient(135deg, #1a4b8c 0%, #0d2e5c 100%);
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 4rem;
    color: white;
}

.premium-search-hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('https://www.transparenttextures.com/patterns/cubes.png');
    opacity: 0.05;
    pointer-events: none;
}

.premium-search-wrapper {
    max-width: 850px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.premium-search-box {
    position: relative;
    background: white;
    padding: 8px;
    border-radius: 100px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
}

.premium-search-input {
    flex-grow: 1;
    border: none;
    padding: 1rem 1.5rem 1rem 3.5rem;
    font-size: 1.15rem;
    border-radius: 100px;
    outline: none !important;
}

.premium-search-box .inner-icon {
    position: absolute;
    left: 1.8rem;
    color: #94a3b8;
    font-size: 1.25rem;
}

.premium-search-btn {
    background: #1a4b8c;
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 100px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.premium-search-btn:hover {
    background: #0d2e5c;
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Mobile Navigation Sweetener */
@media (max-width: 991px) {
    .offcanvas-body {
        padding: 1.5rem !important;
    }
    
    .mobile-dashboard-section {
        margin-bottom: 2rem;
    }
    
    .mobile-category-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.75rem 1rem;
        background: rgba(26, 75, 140, 0.05);
        border-radius: 12px;
        margin-bottom: 1rem;
        font-weight: 700;
        font-size: 0.85rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .theme-primary { color: #1a4b8c; background: rgba(26, 75, 140, 0.08) !important; border-left: 4px solid #1a4b8c; }
    .theme-secondary { color: #2e7d32; background: rgba(46, 125, 50, 0.08) !important; border-left: 4px solid #2e7d32; }
    .theme-exams { color: #996515; background: rgba(153, 101, 21, 0.08) !important; border-left: 4px solid #996515; }
    .theme-years { color: #4a5568; background: rgba(74, 85, 104, 0.08) !important; border-left: 4px solid #4a5568; }

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

    .mobile-list-nav {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .mobile-nav-chip {
        display: block;
        padding: 0.6rem;
        background: white;
        border: 1px solid rgba(0,0,0,0.05);
        border-radius: 10px;
        text-align: center;
        font-size: 0.8rem;
        color: #4a5568;
        text-decoration: none;
        transition: all 0.2s ease;
    }

    .mobile-nav-chip:active {
        background: #f8fafc;
        transform: scale(0.95);
    }
}

/* Sidebar uniform styling */
.sidebar {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.02);
    margin-bottom: 2rem;
    border: 1px solid #f1f5f9;
}

/* Premium Card Interactions */
.document-card, .program-card, .institution-card-large, .tag-card, .wp-post-card, .feature-card, .document-list-item {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0,0,0,0.04);
    background: #ffffff;
}

.document-card::before, .program-card::before, .tag-card::before, .wp-post-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-green));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.document-card:hover::before, .program-card:hover::before, .tag-card:hover::before, .wp-post-card:hover::before {
    opacity: 1;
}

/* Icon Micro Animations */
.document-card:hover .document-icon i, .feature-card:hover .feature-icon i {
    transform: scale(1.15) rotate(3deg);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: var(--secondary-green);
}
.document-icon i, .feature-icon i {
    transition: all 0.3s ease;
}

/* Stretched Link & Card Interactions */
.document-card, .institution-card, .tag-card, .wp-post-card, .document-list-item {
    position: relative;
    cursor: pointer;
}

/* Ensure secondary buttons and tags sit ABOVE the stretched link */
.document-card .btn-premium-success, 
.document-card .tag-cloud a, 
.document-card .tag-badge,
.document-list-item .btn-premium-success,
.tag-card .tag-count {
    position: relative;
    z-index: 5;
}

.stretched-link::after {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: 1;
    content: "";
}

.document-card:hover, .tag-card:hover, .institution-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 45px rgba(0,0,0,0.08);
}


/* Premium Soft Tint Badges */
.badge.bg-primary { background: rgba(26, 75, 140, 0.1) !important; color: var(--primary-blue) !important; border: 1px solid rgba(26, 75, 140, 0.2); }
.badge.bg-danger { background: rgba(220, 53, 69, 0.1) !important; color: #dc3545 !important; border: 1px solid rgba(220, 53, 69, 0.2); }
.badge.bg-success { background: rgba(40, 167, 69, 0.1) !important; color: #28a745 !important; border: 1px solid rgba(40, 167, 69, 0.2); }
.badge.bg-warning { background: rgba(255, 193, 7, 0.15) !important; color: #b78a05 !important; border: 1px solid rgba(255, 193, 7, 0.2); }
.badge.bg-secondary { background: rgba(108, 117, 125, 0.1) !important; color: #495057 !important; border: 1px solid rgba(108, 117, 125, 0.2); }
.badge.bg-info { background: rgba(23, 162, 184, 0.1) !important; color: #17a2b8 !important; border: 1px solid rgba(23, 162, 184, 0.2); }

.badge-active { background: rgba(46, 125, 50, 0.1) !important; color: var(--secondary-green) !important; border: 1px solid rgba(46, 125, 50, 0.2); padding: 0.25rem 0.6rem; border-radius: 12px; font-weight: 700; font-size: 0.75rem; }
.badge-pending { background: rgba(234, 182, 56, 0.15) !important; color: #c49629 !important; border: 1px solid rgba(234, 182, 56, 0.2); padding: 0.25rem 0.6rem; border-radius: 12px; font-weight: 700; font-size: 0.75rem; }

.badge { box-shadow: none !important; font-weight: 600; letter-spacing: 0.2px; }

/* Footer */
footer {
    background-color: #111;
    color: #ddd;
    padding-top: 4rem;
    padding-bottom: 2rem;
}
footer h5 { color: white; margin-bottom: 1.5rem; }
footer a { color: #aaa; text-decoration: none; transition: 0.3s; }
footer a:hover { color: var(--primary-blue); }
.social-icons a { margin-right: 15px; font-size: 1.2rem; }

/* Premium Card Configurations */
.card { 
    transition: all 0.3s ease; 
    border: 1px solid #f1f5f9; 
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02); 
    background-color: #ffffff;
}
.card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 15px 35px rgba(0,0,0,0.08); 
    border-color: #e2e8f0;
}

/* Video Player Styling */
.video-preview-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    margin: 2rem 0;
    border: 1px solid rgba(255,255,255,0.1);
}

.video-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: all 0.5s ease;
}

.video-preview-wrapper:hover .video-placeholder {
    opacity: 1;
    transform: scale(1.02);
}

.play-icon-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90px;
    height: 90px;
    background: rgba(26, 75, 140, 0.85);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 5px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.play-icon-overlay:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--secondary-green);
    box-shadow: 0 0 40px rgba(46, 125, 50, 0.6);
    border-color: rgba(255, 255, 255, 0.5);
}

.play-icon-overlay i {
    margin-left: 8px;
}


/* ============================================================ 
   Cinematic Hero & Metadata
   ============================================================ */
.document-hero {
    background: linear-gradient(135deg, rgba(1, 4, 9, 0.92), rgba(0, 31, 34, 0.94)), 
                url('/static/images/hero-bg.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 5rem 0;
    margin-bottom: 2rem;
    position: relative;
    border-bottom: 6px solid var(--secondary-green);
    overflow: hidden;
}

.document-hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(67, 97, 238, 0.15), transparent 50%);
    pointer-events: none;
}

.file-icon-responsive {
    font-size: clamp(4rem, 8vw, 8rem);
    opacity: 0.9;
    transition: transform 0.3s ease;
}

.document-hero:hover .file-icon-responsive {
    transform: scale(1.05) rotate(5deg);
}

.metadata-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.metadata-card {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    transition: all 0.3s ease;
}

.metadata-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
    border-color: rgba(26, 75, 140, 0.1);
}

.stat-badge {
    background: rgba(255, 255, 255, 0.08); /* Slightly more transparent */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.6rem 1.25rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-right: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.stat-badge:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

@media (max-width: 768px) {
    .document-hero {
        padding: 3rem 0;
        text-align: center;
    }
    .metadata-grid {
        grid-template-columns: 1fr;
    }
}


/* ============================================================ 
   Premium UI System — Extensions
   ============================================================ */

/* ── tag-pill (Standardized) ────────────────────────────── */
.tag-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.9rem;
    background: #f1f5ff;
    color: #4361ee;
    border: 1px solid #c7d4fb;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    transition: all 0.25s ease;
    text-decoration: none !important;
}
.tag-pill:hover {
    background: #4361ee;
    color: #fff !important;
    border-color: #4361ee;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.2);
}

/* ── premium-section-card (For Sidebars/Lists) ──────────── */
.premium-section-card {
    background: #fff;
    border: 1px solid #e8edf5;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
}
.premium-section-card:hover {
    box-shadow: 0 8px 30px rgba(67, 97, 238, 0.06);
    border-color: #d1d9e8;
}

.section-card-title {
    font-size: 1rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.section-card-title i {
    color: #4361ee;
    font-size: 1.1rem;
}

/* ── WhatsApp Join Widget ───────────────────────────────── */
.whatsapp-widget {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border: none;
    color: #fff !important;
}
.whatsapp-widget .section-card-title, 
.whatsapp-widget .section-card-title i {
    color: #fff;
}
.btn-whatsapp-join {
    background: #fff;
    color: #128C7E;
    font-weight: 800;
    border-radius: 12px;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none !important;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.btn-whatsapp-join:hover {
    background: #f8fafc;
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* WhatsApp Pulse */
@keyframes wa-pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}
.pulse-wa {
    animation: wa-pulse 2s infinite;
}

/* ── Global Shadows/Framer ──────────────────────────────── */
.shadow-premium { box-shadow: 0 10px 30px rgba(0,0,0,0.06) !important; }
.transition-smooth { transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); }
