:root {
    --primary: #5d5cff;
    --primary-light: #7c7bff;
    --primary-ultra-light: #eef2ff;
    --secondary: #10b981;
    --secondary-light: #34d399;
    --secondary-ultra-light: #ecfdf5;
    --accent: #f59e0b;
    --text-dark: #1e293b;
    --text-main: #475569;
    --text-light: #94a3b8;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.5);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

h1, h2, h3, h4, .logo-text {
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-white);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Layout Utils --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-fluid {
    width: 100%;
    padding: 0 10px;
}

.section-padding {
    padding: 80px 0;
}

/* --- Promo Bar --- */
.promo-bar {
    background: linear-gradient(90deg, #1e3a8a, #3b82f6);
    color: white;
    padding: 8px 0;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
}

.promo-bar p {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.enroll-btn {
    background: #fbbf24;
    color: #000;
    padding: 4px 15px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    transition: var(--transition);
}

.enroll-btn:hover {
    background: #f59e0b;
}

/* --- Header --- */
header {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

/* Header Dropdown Styles */
.dropdown-p {
    position: relative;
    display: flex;
    align-items: center;
}
.dropdown-menu-p {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 12px;
    padding: 10px 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: 0.3s;
    z-index: 1000;
    border: 1px solid rgba(0,0,0,0.05);
    list-style: none;
}
.dropdown-p:hover .dropdown-menu-p {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-menu-p li {
    width: 100%;
}
.dropdown-menu-p li a {
    padding: 10px 20px !important;
    display: block !important;
    color: #1a202c !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: 0.2s;
    border: none !important;
}
.dropdown-menu-p li a:hover {
    background: #f8fafc;
    color: var(--primary) !important;
    padding-left: 25px !important;
}

header.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

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

.logo-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

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

.logo-name {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1;
}

.logo-tagline {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-light);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
    position: relative;
}

.nav-links a.active {
    color: var(--primary);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
    border-radius: 10px;
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.icon-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-main);
    cursor: pointer;
    transition: var(--transition);
}

.icon-btn:hover {
    color: var(--primary);
}

.btn-login {
    background: transparent;
    color: var(--text-dark);
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
}

.btn-signup {
    background: var(--primary);
    color: white;
    padding: 10px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(93, 92, 255, 0.2);
}

.btn-signup:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(93, 92, 255, 0.3);
}

/* --- Hero Section --- */
.hero {
    padding: 60px 0;
    background: radial-gradient(circle at top right, rgba(93, 92, 255, 0.05), transparent 40%),
                radial-gradient(circle at bottom left, rgba(16, 185, 129, 0.05), transparent 40%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.hero-tag {
    display: inline-block;
    padding: 6px 12px;
    background: var(--primary-ultra-light);
    color: var(--primary);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 56px;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    font-size: 18px;
    color: var(--text-main);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-features {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.hero-feature-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    font-size: 13px;
    font-weight: 600;
}

.hero-feature-pill i {
    color: var(--secondary);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 16px;
    border: 1px solid #f1f5f9;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.stat-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    display: block;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 13px;
    color: var(--text-light);
    font-weight: 600;
}

/* --- Hero Visual --- */
.hero-visual {
    position: relative;
    width: 100%;
}

.banner-wrapper {
    width: 100%;
    max-width: 100%; /* Removing 1200px limit */
    margin: 0 auto;
    padding: 0 2%; /* Almost full screen width */
}

.banner-slider {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    width: 100%;
    height: 380px; /* Reduced from 450px */
}

@media (max-width: 1024px) {
    .banner-slider {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .banner-slider {
        height: 200px;
        border-radius: 16px;
    }
}

/* --- Hero Flex Layout --- */
.hero-flex-container {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Center vertically for better balance */
    gap: 60px;
    margin-top: 20px;
    text-align: left;
}

.hero-left {
    flex: 1; /* 50% area */
    display: flex;
    justify-content: center;
}

.hero-content {
    text-align: center;
    width: 100%;
}

.hero-right {
    flex: 1; /* 50% area */
    background: white;
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.03);
}

.hero-title {
    font-size: 64px;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.1;
    margin-bottom: 32px;
}

.hero-title span {
    color: var(--primary);
}

.hero-description {
    font-size: 18px;
    color: var(--text-main);
    line-height: 1.6;
    margin-bottom: 32px;
    max-width: 540px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.hero-stats-compact {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 40px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.stat-card-mini {
    background: white;
    padding: 12px 8px;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
    text-align: center;
}

.stat-card-mini .stat-value {
    display: block;
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 2px;
}

.stat-card-mini .stat-label {
    font-size: 11px;
    color: var(--text-main);
    font-weight: 600;
    white-space: nowrap;
}

.hero-description-compact {
    font-size: 12px;
    color: var(--text-main);
    line-height: 1.5;
    text-align: center;
}

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

.vacancy-header h3 {
    font-size: 20px;
    color: var(--text-dark);
    font-weight: 700;
}

.view-all-link {
    font-size: 14px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
}

.vacancy-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.vacancy-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #f8faff;
    border-radius: 16px;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid transparent;
}

.vacancy-item:hover {
    background: white;
    transform: translateY(-2px);
    border-color: var(--primary-light);
    box-shadow: 0 10px 25px rgba(93, 92, 255, 0.1);
}

.vac-info h4 {
    font-size: 15px;
    color: var(--text-dark);
    margin-bottom: 6px;
    font-weight: 700;
}

.vac-info p {
    font-size: 13px;
    color: var(--text-main);
}

.top-vacancies {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
    height: fit-content;
}

.hero-premium-section {
    padding: 60px 0;
    background: #fff;
    overflow: hidden;
}

.container-premium {
    max-width: 1750px;
    margin: 0 auto;
    padding: 0 10px;
}

.hero-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
}

.hero-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-tag-p {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #f0f4ff;
    color: #4f46e5;
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 25px;
}

.hero-left h1 {
    font-size: 56px;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 900;
    color: #1e293b;
}

.hero-left h1 span {
    color: #4f46e5;
    display: block;
}

.hero-left p.subtext {
    font-size: 16px;
    color: #64748b;
    line-height: 1.6;
    margin: 0 auto 35px;
    max-width: 500px;
}

/* Feature Grid */
.feature-grid-p {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    width: 100%;
}

.feature-item-p {
    background: #fff;
    border: 1px solid #f1f5f9;
    padding: 15px 20px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.f-icon-p {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.f-icon-smart { background: #eef2ff; color: #4f46e5; }
.f-icon-price { background: #fff1f2; color: #e11d48; }
.f-icon-trust { background: #f0fdf4; color: #16a34a; }

.f-info-p h5 { margin: 0; font-size: 15px; font-weight: 800; color: #1e293b; }
.f-info-p p { margin: 0; font-size: 11px; color: #64748b; }

/* CTA Button */
.btn-get-started-p {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff;
    padding: 16px 32px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.3);
    margin-bottom: 50px;
    transition: all 0.3s;
}

.btn-get-started-p:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(79, 70, 229, 0.4);
}

/* Stats Row */
.stats-row-p {
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 20px;
    padding: 25px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    width: 100%;
}

.stat-item-p {
    text-align: center;
}

.stat-icon-p {
    width: 32px;
    height: 32px;
    background: #f8fafc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    color: #6366f1;
}

.stat-item-p h4 { margin: 0; font-size: 18px; font-weight: 800; color: #4f46e5; }
.stat-item-p p { margin: 0; font-size: 11px; color: #94a3b8; font-weight: 600; }

/* Right Section - Vacancies */
.hero-right {
    flex: 0.9;
}

.vac-card-wrapper {
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 24px;
    padding: 25px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.04);
}

.vac-card-header-p {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.vac-title-p {
    display: flex;
    align-items: center;
    gap: 12px;
}

.vac-title-p .icon-box {
    width: 40px;
    height: 40px;
    background: #6366f1;
    color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vac-title-p h3 { margin: 0; font-size: 20px; font-weight: 800; color: #1e293b; }
.vac-title-p p { margin: 2px 0 0; font-size: 12px; color: #64748b; }

.view-all-p {
    font-size: 13px;
    font-weight: 700;
    color: #4f46e5;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.vac-item-p {
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 18px;
    padding: 15px;
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    transition: all 0.3s;
}

.vac-item-p:hover {
    border-color: #6366f1;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.vac-logo-p {
    text-align: center;
    width: 70px;
}

.logo-circle {
    width: 60px;
    height: 60px;
    background: #fff;
    border-radius: 50%;
    padding: 2px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin: 0 auto 5px;
    overflow: hidden;
}

.logo-circle img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

.logo-circle .placeholder {
    width: 100%; height: 100%; background: #f8fafc; display: flex; align-items: center; justify-content: center; color: #6366f1;
}

.vac-logo-p span { font-size: 10px; font-weight: 700; color: #64748b; display: block; }

.vac-info-p {
    flex: 1;
}

.vac-info-p h4 { margin: 0 0 4px; font-size: 15px; font-weight: 800; color: #1e293b; }

.dept-p {
    display: inline-block;
    background: #eef2ff;
    color: #4f46e5;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    margin-bottom: 10px;
}

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

.info-row-p div {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    max-width: 180px;
}

.info-row-p label { color: #94a3b8; }
.info-row-p span { font-weight: 700; color: #1e293b; }
.info-row-p .date-val { color: #f59e0b; }

.vac-actions-p {
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
    min-width: 110px;
}

.btn-apply-p {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff;
    padding: 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-details-p {
    background: #fff;
    color: #6366f1;
    border: 1px solid #e2e8f0;
    padding: 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.view-all-vacancies:hover {
    background: #e2e8f0;
}

.vac-badge {
    background: #eef2ff;
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
}

@media (max-width: 991px) {
    .hero-flex-container {
        flex-direction: column;
        text-align: center;
    }
    .hero-left, .hero-right {
        width: 100%;
    }
}

.hero-banner-img {
    width: 100%;
    height: 100%;
    object-fit: fill; /* User requested stretch and fill */
    display: block;
    transition: transform 0.5s ease;
}

.hero-pill-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.btn-get-started {
    background: #ff3333; /* Bright red as in screenshot */
    color: white;
    padding: 18px 48px;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
    box-shadow: 0 10px 20px rgba(255, 51, 51, 0.3);
}

.btn-get-started:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255, 51, 51, 0.4);
    background: #e62e2e;
}

.floating-card {
    position: absolute;
    background: white;
    padding: 15px 20px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10;
    animation: float 3s infinite ease-in-out;
}

.floating-card i {
    font-size: 20px;
    color: var(--primary);
}

.floating-card span {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
}

.floating-card.c1 {
    top: 20%;
    left: -40px;
}

.floating-card.c2 {
    bottom: 20%;
    right: -20px;
    animation-delay: 1.5s;
}

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

/* --- Top News Section --- */
.news-dashboard {
    background: white;
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-header h3 {
    font-size: 20px;
    font-weight: 800;
}

.live-tag {
    background: #f0fdf4;
    color: #16a34a;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
}

.live-dot {
    width: 6px;
    height: 6px;
    background: #16a34a;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

.news-content-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
}

.featured-news-card {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.featured-news-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.featured-news-info {
    padding: 20px 0;
}

.featured-news-info h4 {
    font-size: 18px;
    margin-bottom: 10px;
}

.news-meta {
    font-size: 12px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 15px;
}

.side-news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.side-news-item {
    display: flex;
    gap: 15px;
    align-items: center;
    cursor: pointer;
}

.side-news-img {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
}

.side-news-info h5 {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 5px;
}

.view-all-btn {
    margin-top: 10px;
    padding: 12px;
    background: var(--primary-ultra-light);
    color: var(--primary);
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.view-all-btn:hover {
    background: var(--primary);
    color: white;
}

/* --- Features Section --- */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 15px;
}

.section-title p {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
}

.feature-card {
    background: white;
    padding: 25px;
    border-radius: 24px;
    border: 1px solid #f1f5f9;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.feature-icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 24px;
}

.feature-card.blue .feature-icon-wrapper { background: #eff6ff; color: #3b82f6; }
.feature-card.green .feature-icon-wrapper { background: #f0fdf4; color: #10b981; }
.feature-card.purple .feature-icon-wrapper { background: #f5f3ff; color: #8b5cf6; }

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-main);
    margin-bottom: 24px;
}

.feature-illustration {
    width: 100%;
    height: 120px;
    object-fit: contain;
    margin-top: auto;
    padding-top: 20px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover .feature-illustration {
    transform: scale(1.15);
}

.explore-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
}

/* --- Banner Section --- */
.cta-banner {
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    border-radius: 30px;
    padding: 60px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    right: -50px;
    top: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.cta-content h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.cta-content p {
    opacity: 0.9;
}

.subscribe-form {
    background: white;
    padding: 8px;
    border-radius: 16px;
    display: flex;
    width: 100%;
    max-width: 450px;
}

.subscribe-form input {
    flex: 1;
    border: none;
    padding: 0 20px;
    outline: none;
    font-size: 14px;
}

.subscribe-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
}

/* --- Categories Section --- */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.category-item {
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.category-item:hover {
    transform: translateY(-5px);
}

.category-icon {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
    margin-left: auto;
    margin-right: auto;
    border: 1px solid #f1f5f9;
}

.category-item span {
    font-size: 12px;
    font-weight: 600;
}

/* --- Quiz Section --- */
.quiz-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: start;
}

.leaderboard-card {
    background: white;
    border-radius: 24px;
    padding: 0;
    display: flex;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(0,0,0,0.05);
}

.leaderboard-content {
    flex: 1;
}

.leaderboard-list {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.leader-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.leader-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.leader-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.leader-score {
    font-weight: 700;
    color: var(--primary);
}

.trophy-visual {
    width: 200px;
}

.trophy-visual img {
    width: 100%;
}

.featured-quiz-card {
    background: white;
    border-radius: 24px;
    border: 1px solid #f1f5f9;
    padding: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quiz-info h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.quiz-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.quiz-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-light);
}

.start-quiz-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
}

/* --- Footer --- */
footer {
    background: #f8fafc;
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    margin-bottom: 24px;
}

.footer-desc {
    font-size: 14px;
    color: var(--text-main);
    margin-bottom: 24px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 36px;
    height: 36px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--primary);
    color: white;
}

.footer-links h4 {
    margin-bottom: 24px;
    font-size: 16px;
}

.footer-links ul {
    list-style: none;
}

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

.footer-links a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 14px;
    transition: var(--transition);
}

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

.footer-bottom {
    border-top: 1px solid #e2e8f0;
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-light);
}

@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero p { margin-left: auto; margin-right: auto; }
    .hero-stats { grid-template-columns: repeat(2, 1fr); max-width: 600px; margin: 0 auto; }
    .hero-actions { justify-content: center; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .floating-card { display: none; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .menu-toggle { display: block; }
    .hero h1 { font-size: 40px; }
    .news-content-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .quiz-grid { grid-template-columns: 1fr; }
    .cta-banner { flex-direction: column; text-align: center; gap: 30px; padding: 40px 20px; }
    .cta-content h2 { font-size: 24px; }
    .categories-grid { grid-template-columns: repeat(3, 1fr); }
    .section-padding { padding: 60px 0; }
}

@media (min-width: 769px) {
    .menu-toggle { display: none; }
}

/* --- Challenge Section --- */
.challenge-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
    position: relative;
    overflow: hidden;
}

.challenge-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(93, 92, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.challenge-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.challenge-info-card {
    padding-right: 40px;
}

.challenge-tag {
    display: inline-block;
    padding: 6px 16px;
    background: white;
    color: var(--primary);
    font-weight: 800;
    font-size: 12px;
    border-radius: 50px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.challenge-info-card h2 {
    font-size: 42px;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.1;
    margin-bottom: 20px;
}

.challenge-info-card h2 span {
    color: var(--primary);
    position: relative;
}

.challenge-info-card p {
    font-size: 16px;
    color: var(--text-main);
    margin-bottom: 30px;
}

.challenge-stats {
    display: flex;
    gap: 40px;
}

.c-stat {
    display: flex;
    flex-direction: column;
}

.c-val {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-dark);
}

.c-lab {
    font-size: 13px;
    color: var(--text-light);
    font-weight: 600;
}

.leaderboard-card-premium {
    background: white;
    padding: 30px;
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(0,0,0,0.05);
}

.lb-tabs-premium {
    display: flex;
    background: #f1f5f9;
    padding: 5px;
    border-radius: 12px;
    margin-bottom: 24px;
    gap: 5px;
}

.lb-tab-p {
    flex: 1;
    padding: 10px;
    border: none;
    background: transparent;
    font-weight: 700;
    font-size: 14px;
    color: var(--text-main);
    cursor: pointer;
    border-radius: 10px;
    transition: var(--transition);
}

.lb-tab-p.active {
    background: white;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.lb-tab-p.archive-tab {
    background: var(--primary-ultra-light);
    color: var(--primary);
}

.lb-row-p {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    border-radius: 16px;
    margin-bottom: 10px;
    transition: var(--transition);
}

.lb-row-p:hover {
    background: #f8fafc;
    transform: translateX(5px);
}

.rank-1 { background: #fffbeb; border: 1px solid #fde68a; }
.rank-2 { background: #f8fafc; border: 1px solid #e2e8f0; }
.rank-3 { background: #fff7ed; border: 1px solid #ffedd5; }

.lb-rank-p {
    font-size: 24px;
    width: 30px;
    text-align: center;
}

.lb-avatar-p {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid white;
    box-shadow: var(--shadow-sm);
}

.lb-info-p {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.lb-name-p {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 15px;
}

.lb-score-p {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 600;
}

.lb-crown-p {
    color: #f59e0b;
    font-size: 18px;
    opacity: 0;
}

.rank-1 .lb-crown-p { opacity: 1; }

.lb-footer-p {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
    font-size: 12px;
    color: var(--text-light);
    text-align: center;
}

@media (max-width: 991px) {
    .challenge-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .challenge-info-card {
        padding-right: 0;
        text-align: center;
    }
    .challenge-stats {
        justify-content: center;
    }
}
