/* ═══════════════════════════════════════════════════════════════
   GLOBAL PAGE HERO — Premium Design (All Pages)
   Applies to every .page-hero across the entire site
═══════════════════════════════════════════════════════════════ */

/* 
========================================
⚡ PERFORMANCE MODE: DISABLE ALL ANIMATIONS ⚡
========================================
*/
/* 1. Stop all animations instantly, but run exactly once in 0.01s to keep 'forwards' logic intact for modals */
*:not(.fa-spin):not(.fa-spinner):not(.spinner) {
    animation-duration: 0.01s !important;
    animation-iteration-count: 1 !important;
}

/* 2. Disable all CSS transitions (hover effects snap instantly) */
*, *::before, *::after {
    transition-duration: 0.01s !important;
    scroll-behavior: auto !important;
}

/* 3. Force all scroll-reveal elements to show immediately so we don't wait for JS IntersectionObserver */
.reveal, .reveal-init {
    opacity: 1 !important;
    transform: none !important;
}

/* 4. Hide extreme GPU-costly decorative blobs completely */
.page-hero::before, .page-hero::after, 
.mc-hero::before, .mc-hero::after,
.shape-circle, .shape-square {
    display: none !important;
}

.page-hero {
    background: linear-gradient(135deg, #0B0F19 0%, #1A1A2E 40%, #16213E 100%) !important;
    padding: 30px 0 120px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
}

/* Animated blob circles */
.page-hero::before {
    content: '';
    position: absolute;
    width: 420px;
    height: 420px;
    top: -130px;
    right: -80px;
    background: rgba(255, 255, 255, .07);
    border-radius: 50%;
    animation: heroBlob 10s ease-in-out infinite;
    pointer-events: none;
}

.page-hero::after {
    content: '';
    position: absolute;
    width: 260px;
    height: 260px;
    bottom: -80px;
    left: -60px;
    background: rgba(255, 255, 255, .05);
    border-radius: 50%;
    animation: heroBlob 13s ease-in-out reverse infinite;
    pointer-events: none;
}

@keyframes heroBlob {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
    }

    50% {
        transform: scale(1.12) rotate(10deg);
    }
}

/* Container inside hero */
.page-hero .container {
    position: relative;
    z-index: 3;
}

/* Hero badge */
.hero-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: rgba(255, 255, 255, .18) !important;
    border: 1px solid rgba(255, 255, 255, .38) !important;
    border-radius: 100px !important;
    padding: 7px 22px !important;
    font-size: .72rem !important;
    font-weight: 800 !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    color: white !important;
    margin-bottom: 16px !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .08) !important;
}

.hero-badge i {
    font-size: .82rem;
}

/* Heading */
.page-hero h1 {
    font-size: 2.4rem;
    font-weight: 900;
    margin: 0 0 14px;
    position: relative;
    z-index: 3;
    color: white !important;
    text-shadow: 0 4px 20px rgba(0, 0, 0, .12);
    letter-spacing: -.5px;
    line-height: 1.2;
}

/* Subtitle */
.page-hero p {
    font-size: 1rem;
    color: rgba(255, 255, 255, .88) !important;
    margin: 0 auto;
    max-width: 520px;
    position: relative;
    z-index: 3;
    line-height: 1.7;
}

/* Decorative shapes */
.shape-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    z-index: 1;
    pointer-events: none;
}

.shape-square {
    position: absolute;
    background: rgba(255, 255, 255, .08);
    border-radius: 20px;
    transform: rotate(45deg);
    z-index: 1;
    pointer-events: none;
}

/* Search box inside hero */
.page-hero .search-input-wrapper {
    box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
    border-radius: 100px;
    overflow: hidden;
}

.page-hero .search-btn {
    background: linear-gradient(90deg, #FF1493, #FF69B4);
}

.page-hero .search-icon {
    color: #FF69B4;
}

.page-hero .search-input:focus {
    border-color: #FF69B4;
}

/* Bottom wave divider */
.page-hero .hero-wave {
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    z-index: 2;
    line-height: 0;
}

.page-hero .hero-wave svg {
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .page-hero {
        padding: 60px 0 60px;
    }

    .page-hero h1 {
        font-size: 1.75rem;
    }

    .page-hero p {
        font-size: .9rem;
    }
}

/* ─── Admin Content Overlap ─── */
.admin-overlap {
    margin-top: -100px !important;
    position: relative;
    z-index: 10;
    background: transparent !important;
}

/* ─── Glass Card ─── */
.glass-card {
    background: var(--card-bg, rgba(255, 255, 255, .97));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color, rgba(255, 255, 255, .6));
    border-radius: 28px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .06);
    padding: 36px;
    margin-bottom: 30px;
}

/* Status badge (published/draft etc.) */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 13px;
    border-radius: 100px;
    font-size: .73rem;
    font-weight: 700;
}

.status-published {
    background: #dcfce7;
    color: #15803d;
}

.status-draft {
    background: #f1f5f9;
    color: #64748b;
}

.status-archived {
    background: #fef9c3;
    color: #92400e;
}

/* =========================================================================
   STUDENT HEADER (Dashboard, Profile, etc.)
   ========================================================================= */
.student-header {
    background: var(--student-header-bg, #fff);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border-bottom: 1px solid var(--student-border, #f1f5f9);
    transition: all 0.3s ease;
}

.student-logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.dashboard-icon-box {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--student-primary, #FF69B4), var(--student-secondary, #FF1493));
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(255, 105, 180, 0.3);
}

.dashboard-c-text {
    display: flex;
    flex-direction: column;
}

.dashboard-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.dashboard-subtitle {
    font-size: 0.65rem;
    color: #64748b;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.student-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.student-nav .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    color: #64748b;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    border-radius: 100px;
    transition: all 0.25s ease;
}

.student-nav .nav-link i {
    font-size: 0.95rem;
}

.student-nav .nav-link:hover {
    color: var(--student-primary, #FF69B4);
    background: #fdf2f8;
}

.student-nav .nav-link.active {
    color: var(--student-primary, #FF69B4);
    background: #fdf2f8;
    font-weight: 700;
}

.student-profile-area {
    display: flex;
    align-items: center;
    gap: 16px;
}

.notif-bell-wrapper {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.notif-bell-wrapper:hover {
    background: #f1f5f9;
    color: var(--student-primary, #FF69B4);
}

.notif-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #ef4444;
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

.user-dropdown-wrapper {
    position: relative;
}

.user-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 16px 6px 6px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-pill:hover {
    background: #f1f5f9;
    border-color: #e2e8f0;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
}

/* Dropdowns */
.notif-dropdown,
.user-dropdown {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    border: 1px solid #f1f5f9;
    width: 340px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
}

.notif-dropdown.show,
.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown {
    width: 260px;
    padding: 12px;
}

.notif-header {
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 800;
    color: #1e293b;
    font-size: 0.95rem;
}

.notif-item {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid #f8fafc;
    text-decoration: none;
    transition: background 0.2s;
}

.notif-item:hover {
    background: #fdf2f8;
}

.notif-item.unread {
    background: #f8fafc;
}

.notif-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.notif-content {
    flex: 1;
}

.notif-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 3px;
}

.notif-message {
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.4;
    margin-bottom: 5px;
}

.notif-time {
    font-size: 0.65rem;
    color: #94a3b8;
    font-weight: 600;
}

.notif-footer {
    padding: 12px;
    text-align: center;
    border-top: 1px solid #f1f5f9;
}

.notif-footer a {
    font-size: 0.8rem;
    color: var(--student-primary, #FF69B4);
    font-weight: 700;
    text-decoration: none;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    color: #475569;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.2s;
}

.dropdown-item i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
    color: #94a3b8;
}

.dropdown-item:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.dropdown-item:hover i {
    color: var(--student-primary, #FF69B4);
}

.dropdown-item.logout {
    color: #ef4444;
}

.dropdown-item.logout:hover {
    background: #fef2f2;
    color: #ef4444;
}

.dropdown-item.logout i {
    color: #ef4444;
}

@media (max-width: 991px) {
    .student-nav {
        display: none;
    }
}