/* SEDU Exam Design System - Based on ref/exam */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 72px;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 100;
    display: flex;
    align-items: center;
    padding: 0 40px;
}

a.logo, .logo {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, #00ff88, #00ccff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
    text-decoration: none;
}

a.logo:hover {
    text-decoration: none;
}

.nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-item {
    position: relative;
}

.nav-item > a, .nav-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s;
    padding: 12px 20px; /* Increased padding for easier hovering */
    display: inline-block;
    cursor: pointer;
    position: relative;
}

.nav-item > a:hover, .nav-link:hover {
    color: #00ff88;
}

/* Dropdown Styles */
.nav-item.dropdown {
    position: relative;
}

.nav-item.dropdown .nav-link::after {
    content: '▼';
    font-size: 10px;
    margin-left: 5px;
    transition: transform 0.3s;
}

.nav-item.dropdown.active .nav-link::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% - 8px); /* Overlap more to prevent gap */
    left: 0;
    min-width: 200px;
    background: rgba(20, 20, 20, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 8px 0;
    padding-top: 16px; /* Add top padding to create overlap zone */
    margin-top: 0;
    display: none;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    animation: dropdownFadeIn 0.2s ease-out;
}

/* Create larger hover zone for dropdown */
.nav-item.dropdown {
    position: relative;
}

/* Invisible extension below nav item */
.nav-item.dropdown::before {
    content: '';
    position: absolute;
    top: 80%; /* Start from inside the nav item */
    left: -20px;
    right: -20px;
    height: 40px;
    background: transparent;
    display: none;
    z-index: 999;
    pointer-events: auto;
}

.nav-item.dropdown:hover::before,
.nav-item.dropdown.active::before {
    display: block;
}

/* Also extend the dropdown menu hover area */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    right: 0;
    height: 30px;
    background: transparent;
    pointer-events: auto;
}

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

/* Remove hover effect - will be handled by JavaScript
.nav-item.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
} */

.dropdown-item {
    display: block;
    padding: 16px 28px; /* Increased padding for easier clicking */
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    white-space: nowrap;
    position: relative;
    cursor: pointer;
}

.dropdown-item:hover {
    background: rgba(0, 255, 136, 0.1);
    color: #00ff88;
    text-decoration: none;
}

/* Ensure full clickable area */
.dropdown-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

/* Fix for dropdown item clicks */
.dropdown-menu a {
    cursor: pointer;
    user-select: none;
}

/* Search Form */
.search-form-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 16px;
}

.search-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    padding: 8px 16px;
    color: #fff;
    font-size: 14px;
    width: 200px;
    transition: all 0.3s;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 255, 136, 0.5);
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.1);
    width: 250px;
}

.search-btn {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.search-btn:hover {
    background: rgba(0, 255, 136, 0.2);
    border-color: rgba(0, 255, 136, 0.3);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.3s;
}

.user-profile:hover {
    background: rgba(255, 255, 255, 0.1);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    font-weight: 600;
}

/* Main Container */
.main-container {
    padding-top: 120px;
    padding-bottom: 80px;
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 40px;
    padding-right: 40px;
}

/* Hero Section */
.hero-section {
    text-align: center;
    margin-bottom: 80px;
}

.main-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.6) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.highlight {
    background: linear-gradient(135deg, #00ff88, #00ccff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 40px;
}

/* Create Button */
.create-exam-btn {
    padding: 20px 48px;
    background: linear-gradient(135deg, #00ff88, #00ccff);
    border: none;
    border-radius: 16px;
    color: #000;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.create-exam-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    transition: left 0.3s;
}

.create-exam-btn:hover::before {
    left: 100%;
}

.create-exam-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 255, 136, 0.4);
}

/* Stats Section */
.stats-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 60px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
}

.stat-card {
    text-align: center;
    transition: all 0.3s;
}

.stat-card:hover .stat-icon {
    transform: scale(1.1);
}

.stat-icon {
    font-size: 32px;
    margin-bottom: 8px;
    transition: transform 0.3s;
}

.stat-value {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 4px;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* Subject Card */
.subject-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 32px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.subject-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #00ff88, #00ccff);
    transform: translateY(-100%);
    transition: transform 0.3s;
}

.subject-card:hover::after {
    transform: translateY(0);
}

.subject-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(0, 255, 136, 0.3);
}

.subject-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 24px;
}

.subject-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.subject-meta {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.subject-menu {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s;
    border-radius: 8px;
}

.subject-menu:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.05);
}

.subject-info {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-value {
    font-size: 24px;
    font-weight: 700;
}

.info-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ff88, #00ccff);
    border-radius: 100px;
    transition: width 0.3s;
}

.subject-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.action-btn {
    flex: 1;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.action-btn.primary {
    background: rgba(0, 255, 136, 0.1);
    border-color: rgba(0, 255, 136, 0.2);
    color: #00ff88;
}

.action-btn.primary:hover {
    background: rgba(0, 255, 136, 0.15);
    border-color: rgba(0, 255, 136, 0.3);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 40px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: 24px;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 24px;
    opacity: 0.3;
}

.empty-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
}

.empty-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    margin-bottom: 32px;
}

/* Floating Elements */
.floating-orb {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    pointer-events: none;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    background: radial-gradient(circle, #00ff88, transparent);
    top: -200px;
    right: -200px;
}

.orb-2 {
    background: radial-gradient(circle, #00ccff, transparent);
    bottom: -200px;
    left: -200px;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
}

/* Subject Grids */
.subjects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 24px;
}

/* Navigation item link style fix */
a.nav-item {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s;
    padding: 8px 16px;
    display: inline-block;
    cursor: pointer;
}

a.nav-item:hover {
    color: #00ff88;
    text-decoration: none;
}

/* Ensure links are clickable */
.nav a {
    position: relative;
    z-index: 1;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background: #fff;
    border-radius: 3px;
    transition: all 0.3s;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Utility Classes */
.desktop-only {
    display: flex;
}

.mobile-only {
    display: none;
}

/* Hide legacy Bootstrap navbar if it exists */
.navbar.navbar-expand-md,
.navbar.navbar-light {
    display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        padding: 0 20px;
        justify-content: space-between;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 72px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 72px);
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        gap: 0;
        padding: 20px;
        overflow-y: auto;
        transition: left 0.3s;
        z-index: 99;
    }

    .nav.active {
        left: 0;
    }

    .nav-item, .nav-item.dropdown {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-item > a, .nav-link {
        display: block;
        width: 100%;
        padding: 16px 0;
        font-size: 16px;
    }

    .dropdown-menu {
        position: static;
        max-height: 0;
        overflow: hidden;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
        border: none;
        padding: 0;
        margin: 0;
        transition: max-height 0.3s;
    }

    .nav-item.dropdown.active .dropdown-menu {
        max-height: 500px;
        padding: 8px 0;
    }

    .dropdown-item {
        padding: 12px 20px;
        font-size: 15px;
    }

    .search-form-container {
        width: 100%;
        margin: 16px 0;
        order: -1;
    }

    .search-input {
        width: 100%;
    }

    .search-input:focus {
        width: 100%;
    }

    .user-profile {
        margin-top: 20px;
        width: 100%;
        justify-content: center;
    }

    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: flex;
    }
    .main-container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .main-title {
        font-size: 36px;
    }

    .subjects-grid {
        grid-template-columns: 1fr;
    }

    .logo {
        font-size: 24px;
    }

    .floating-orb {
        width: 200px;
        height: 200px;
    }

    .stats-container {
        gap: 20px;
        padding: 20px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .stat-card {
        min-width: 80px;
    }

    .stat-icon {
        font-size: 24px;
        margin-bottom: 4px;
    }

    .stat-value {
        font-size: 20px;
    }

    .stat-label {
        font-size: 12px;
    }

    .subject-info {
        gap: 16px;
    }

    .header {
        padding: 0 20px;
    }
}

/* Tablet Styles */
@media (max-width: 1024px) and (min-width: 769px) {
    .nav {
        gap: 20px;
    }

    .nav-item > a, .nav-link {
        font-size: 14px;
        padding: 6px 12px;
    }

    .search-form-container {
        margin: 0 12px;
    }

    .search-input {
        width: 150px;
    }

    .search-input:focus {
        width: 200px;
    }

    .subjects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* App Launch Banner */
.app-launch-banner {
    position: relative;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1), rgba(0, 204, 255, 0.1));
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 20px;
    padding: 32px 40px;
    margin: 20px 40px;
    margin-top: 100px;
    overflow: hidden;
}

.app-launch-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.1) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

.banner-content {
    position: relative;
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

.banner-icon {
    font-size: 48px;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.banner-text {
    flex: 1;
    min-width: 250px;
}

.banner-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.banner-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
}

.banner-action {
    flex: 1;
    min-width: 300px;
}

.email-form {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.email-input {
    flex: 1;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 15px;
    transition: all 0.3s;
}

.email-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.email-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 255, 136, 0.5);
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.1);
}

.notify-btn {
    padding: 14px 28px;
    background: linear-gradient(135deg, #00ff88, #00ccff);
    border: none;
    border-radius: 12px;
    color: #000;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.notify-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 255, 136, 0.4);
}

.notify-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.banner-note {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.banner-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.5);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Success Message */
.success-message {
    display: none;
    text-align: center;
    padding: 20px;
}

.success-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.success-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.success-text {
    color: rgba(255, 255, 255, 0.7);
}

/* Banner Responsive */
@media (max-width: 768px) {
    .app-launch-banner {
        margin: 20px;
        margin-top: 80px;
        padding: 24px 20px;
    }

    .banner-content {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }

    .banner-text {
        min-width: auto;
    }

    .banner-action {
        width: 100%;
        min-width: auto;
    }

    .email-form {
        flex-direction: column;
    }

    .banner-close {
        top: 12px;
        right: 12px;
    }
}

/* Mega Menu Styles */
.mega-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.mega-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mega-menu {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 1200px;
    max-height: 80vh;
    background: rgba(20, 20, 20, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    overflow: hidden;
    z-index: 201;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.mega-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.mega-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mega-menu-title {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, #00ff88, #00ccff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mega-menu-close {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mega-menu-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.mega-menu-content {
    padding: 40px;
    overflow-y: auto;
    max-height: calc(80vh - 120px);
}

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 24px;
}

.category-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 32px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.category-card:hover::before {
    opacity: 1;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.2);
    border-color: rgba(0, 255, 136, 0.3);
}

.category-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.category-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.category-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

/* Subjects Grid */
.subjects-search {
    margin-bottom: 32px;
}

.subjects-search-input {
    width: 100%;
    max-width: 500px;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    color: #fff;
    font-size: 16px;
    transition: all 0.3s;
}

.subjects-search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.subjects-search-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 255, 136, 0.5);
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.1);
}

.mega-menu .subjects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.subject-item {
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s;
    text-align: center;
}

.subject-item:hover {
    background: rgba(0, 255, 136, 0.1);
    border-color: rgba(0, 255, 136, 0.3);
    color: #00ff88;
    transform: translateY(-2px);
}

.subject-item.hidden {
    display: none;
}

.no-subjects {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 16px;
    padding: 40px;
}

/* Responsive */
@media (max-width: 768px) {
    .mega-menu {
        width: 95%;
        max-height: 90vh;
    }

    .mega-menu-header {
        padding: 24px;
    }

    .mega-menu-title {
        font-size: 24px;
    }

    .mega-menu-content {
        padding: 24px;
        max-height: calc(90vh - 100px);
    }

    .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 16px;
    }

    .category-card {
        padding: 24px 16px;
    }

    .mega-menu .subjects-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 8px;
    }

    .subject-item {
        padding: 12px 16px;
        font-size: 14px;
    }
}