@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-light: #f4f7f5;
    --bg-card: #ffffff;
    --border-color: rgba(0, 0, 0, 0.08);
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --primary: #198754; /* Green */
    --primary-hover: #146c43;
    --primary-glow: rgba(25, 135, 84, 0.15);
    --primary-gradient: linear-gradient(135deg, #198754 0%, #0f5132 100%);
    --accent-mint: #d1e7dd;
    --accent-mint-text: #0f5132;
    --accent-gold: #ffc107;
    --accent-gold-grad: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
    --accent-emerald: #10b981;
    
    --sd-color: #f97316;
    --smp-color: #0dcaf0;
    --sma-color: #6f42c1;
    --pt-color: #8b5cf6;
    --umum-color: #ec4899;
    
    --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-light);
    color: var(--text-primary);
    font-family: var(--font-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button, input, select, textarea {
    font-family: inherit;
}

/* Navbar */
.navbar {
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
}

.nav-brand img {
    height: 42px;
    width: auto;
    object-fit: contain;
    border-radius: 8px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
}

.nav-link {
    font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition);
    font-size: 0.95rem;
}

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

.btn {
    padding: 0.65rem 1.4rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--primary-gradient);
    color: #fff;
    box-shadow: 0 4px 10px rgba(25, 135, 84, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(25, 135, 84, 0.35);
    background: var(--primary-hover);
}

.btn-secondary {
    background: #ffffff;
    color: var(--primary);
    border: 1.5px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--accent-mint);
    color: var(--accent-mint-text);
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #bd2130 100%);
    color: #fff;
}

.btn-danger:hover {
    transform: translateY(-2px);
}

/* Container */
.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
    flex-grow: 1;
}

/* Footer */
.footer {
    background: #0f5132; /* Deep forest green */
    border-top: 2px solid #198754;
    padding: 3rem 2rem 2rem 2rem;
    color: #ffffff;
    font-size: 0.9rem;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2.5rem;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
}

.footer-logo img {
    height: 45px;
    border-radius: 8px;
}

.footer-heading {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-heading::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent-gold);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link-item {
    color: rgba(255, 255, 255, 0.75);
    transition: var(--transition);
}

.footer-link-item:hover {
    color: var(--accent-gold);
    padding-left: 5px;
}

.social-row {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--accent-gold);
    color: #0f5132;
    transform: translateY(-2px);
}

/* Landing Page (Puspresnas inspired) */

/* Carousel Hero Slider */
.carousel-container {
    width: 100%;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 3rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    aspect-ratio: 2.3/1;
    background: #000;
}

@media (max-width: 768px) {
    .carousel-container {
        aspect-ratio: 1.5/1;
    }
}

.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 3rem;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 81, 50, 0.95) 0%, rgba(25, 135, 84, 0.5) 50%, rgba(0,0,0,0) 100%);
    z-index: 1;
}

.carousel-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    color: #ffffff;
}

.carousel-badge {
    background: var(--accent-gold-grad);
    color: #000;
    padding: 0.35rem 0.85rem;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.carousel-title {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .carousel-title {
        font-size: 1.75rem;
    }
}

.carousel-subtitle {
    font-size: 1.05rem;
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 1.75rem;
}

.carousel-dots {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 3;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition);
}

.carousel-dot.active {
    background: #ffffff;
    width: 24px;
    border-radius: 10px;
}

/* Ajang Talenta (Jenjang Row) */
.ajang-section {
    text-align: center;
    margin-bottom: 4rem;
}

.ajang-heading {
    font-size: 1.85rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.ajang-sub {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 2.5rem;
}

.ajang-row {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.ajang-circle-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    width: 150px;
}

.ajang-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem;
    border: 3px solid transparent;
    transition: var(--transition);
}

.ajang-circle-card:hover .ajang-circle {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(25, 135, 84, 0.15);
}

.ajang-circle-card.sd:hover .ajang-circle { border-color: var(--sd-color); }
.ajang-circle-card.smp:hover .ajang-circle { border-color: var(--smp-color); }
.ajang-circle-card.sma:hover .ajang-circle { border-color: var(--sma-color); }
.ajang-circle-card.pt:hover .ajang-circle { border-color: var(--pt-color); }
.ajang-circle-card.umum:hover .ajang-circle { border-color: var(--umum-color); }

.ajang-lbl {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
}

/* Split News & Announcement Layout */
.news-layout {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

@media (max-width: 900px) {
    .news-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.block-title {
    font-size: 1.45rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    position: relative;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.block-title::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--primary);
}

/* Featured News Card */
.featured-news-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.03);
    transition: var(--transition);
}

.featured-news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}

.featured-img-box {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #f0f0f0;
}

.featured-img-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.featured-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.75rem;
    border-radius: 4px;
}

.featured-news-body {
    padding: 1.75rem;
}

.news-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.news-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.news-snippet {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Announcement (Kabar) Cards Stack */
.announcement-stack {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.announcement-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    gap: 1.25rem;
    align-items: center;
    transition: var(--transition);
}

.announcement-card:hover {
    border-color: var(--accent-mint);
    background: #fafdfb;
}

.date-badge {
    min-width: 65px;
    height: 65px;
    border-radius: 10px;
    background: var(--accent-mint);
    color: var(--accent-mint-text);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.date-badge .day { font-size: 1.4rem; line-height: 1; }
.date-badge .month { font-size: 0.7rem; text-transform: uppercase; }

.announcement-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
}

/* Stats Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 3rem 0;
}

.stat-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 6px 15px rgba(0,0,0,0.02);
}

.stat-number {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Card Box */
.card-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.75rem;
    margin-bottom: 1.75rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.card-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
}

/* Auth Cards */
.auth-wrapper {
    max-width: 480px;
    width: 100%;
    margin: 4rem auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    display: block;
    margin: 0 auto 1rem auto;
    height: 75px;
    object-fit: contain;
    border-radius: 12px;
}

.auth-title {
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    background: #fdfdfd;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.auth-link {
    color: var(--primary);
    font-weight: 700;
}

.auth-link:hover {
    text-decoration: underline;
}

/* Alerts */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
}

.alert-success {
    background: #d1e7dd;
    border: 1px solid #a3cfbb;
    color: #0f5132;
}

.alert-danger {
    background: #f8d7da;
    border: 1px solid #f5c2c7;
    color: #842029;
}

.alert-info {
    background: #cff4fc;
    border: 1px solid #b6effb;
    color: #055160;
}

.alert-warning {
    background: #fff3cd;
    border: 1px solid #ffecb5;
    color: #664d03;
}

/* Dashboard Styles */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 2rem;
}

@media (max-width: 900px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

.student-card {
    background: var(--primary-gradient);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    box-shadow: 0 6px 20px rgba(25, 135, 84, 0.15);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.profile-settings-btn {
    transition: var(--transition);
}

.profile-settings-btn:hover {
    transform: rotate(45deg);
    background: rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
}

.student-card::before {
    content: "";
    position: absolute;
    right: -20px;
    bottom: -20px;
    font-size: 8rem;
    opacity: 0.08;
    font-weight: 800;
}

.student-card.sd::before { content: "SD"; }
.student-card.smp::before { content: "SMP"; }
.student-card.sma::before { content: "SMA"; }

.student-info h2 {
    font-size: 1.85rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.student-info p {
    opacity: 0.9;
    font-size: 0.95rem;
}

.student-points {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.student-points .points-val {
    font-size: 1.65rem;
    font-weight: 800;
}

.student-points .points-lbl {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    opacity: 0.9;
}

.exam-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.exam-item {
    background: #fdfdfd;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.exam-item:hover {
    border-color: var(--accent-mint);
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.exam-meta {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.exam-subject-badge {
    align-self: flex-start;
    padding: 0.3rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 800;
    background: var(--accent-mint);
    color: var(--accent-mint-text);
    border: 1px solid rgba(25, 135, 84, 0.2);
}

.exam-title-text {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-primary);
}

.exam-duration {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1.25rem;
}

.exam-meta-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
}

/* Sidebar Leaderboard */
.rank-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.rank-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    background: #fdfdfd;
    border: 1px solid var(--border-color);
}

.rank-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.rank-number {
    width: 26px;
    height: 26px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--text-secondary);
}

.rank-item:nth-child(1) .rank-number { background: #ffc107; color: #000; }
.rank-item:nth-child(2) .rank-number { background: #cbd5e1; color: #000; }
.rank-item:nth-child(3) .rank-number { background: #fd7e14; color: #fff; }

.rank-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.rank-school {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.rank-pts {
    font-weight: 800;
    color: var(--primary);
    font-size: 0.9rem;
}

/* Exam Room UI */
.exam-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
}

@media (max-width: 900px) {
    .exam-layout {
        grid-template-columns: 1fr;
    }
}

.exam-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 1.25rem 1.75rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.timer-box {
    background: #f8d7da;
    border: 1px solid #f5c2c7;
    color: #842029;
    padding: 0.55rem 1.2rem;
    border-radius: 8px;
    font-weight: 800;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.question-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.question-number {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}

.question-text {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.options-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.option-wrapper {
    position: relative;
}

.option-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.option-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.4rem;
    background: #fafafa;
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.option-badge {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--text-primary);
    transition: var(--transition);
}

.option-input:checked + .option-label {
    background: var(--accent-mint);
    border-color: var(--primary);
    color: var(--accent-mint-text);
}

.option-input:checked + .option-label .option-badge {
    background: var(--primary);
    color: #ffffff;
}

.option-label:hover {
    background: #f1f5f2;
    border-color: rgba(0, 0, 0, 0.15);
}

/* Exam Sidebar Navigator */
.nav-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
}

.nav-btn {
    aspect-ratio: 1;
    border-radius: 8px;
    border: 1.5px solid var(--border-color);
    background: #fdfdfd;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    cursor: pointer;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-btn:hover {
    border-color: var(--primary);
    background: #f5fcf7;
}

.nav-btn.answered {
    background: var(--accent-mint);
    border-color: var(--primary);
    color: var(--accent-mint-text);
}

.nav-btn.active {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Result Page */
.result-card {
    max-width: 600px;
    margin: 3rem auto;
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.result-badge {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.score-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 auto 2rem auto;
    box-shadow: 0 8px 20px rgba(25, 135, 84, 0.25);
    color: #ffffff;
}

.score-num {
    font-size: 3.25rem;
    font-weight: 800;
    line-height: 1;
}

.score-lbl {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
    font-weight: 600;
}

/* Leaderboard Page Tabs */
.leaderboard-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.tab-btn {
    padding: 0.75rem 2.25rem;
    border-radius: 8px;
    font-weight: 800;
    border: 1.5px solid var(--border-color);
    background: #ffffff;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn.active, .tab-btn:hover {
    background: var(--primary-gradient);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(25, 135, 84, 0.2);
}

.leaderboard-panel {
    display: none;
}

.leaderboard-panel.active {
    display: block;
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.leaderboard-table th {
    background: #fafafa;
    padding: 1.1rem;
    text-align: left;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    border-bottom: 1.5px solid var(--border-color);
    font-weight: 700;
}

.leaderboard-table td {
    padding: 1.1rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
}

.leaderboard-table tr:hover {
    background: #fafdfb;
}

.leaderboard-table tr:last-child td {
    border-bottom: none;
}

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

.carousel-mascot {
    display: flex;
}

@media (max-width: 768px) {
    .carousel-container {
        aspect-ratio: auto !important;
        height: 480px !important;
    }
    
    .carousel-slide {
        padding: 1.5rem !important;
    }
    
    .carousel-slide > div {
        grid-template-columns: 1fr !important;
        height: 100% !important;
        align-items: flex-start !important;
        gap: 1rem !important;
    }
    
    .carousel-content {
        max-width: 100% !important;
        text-align: center !important;
    }
    
    .carousel-content div {
        justify-content: center !important;
    }
    
    .carousel-mascot {
        position: absolute !important;
        bottom: 10px !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        height: 140px !important;
        width: auto !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-end !important;
        align-items: center !important;
    }
    
    .carousel-mascot img {
        height: 120px !important;
        width: auto !important;
    }
    
    /* Radial glow positioning on mobile */
    .carousel-mascot > div[style*="radial-gradient"] {
        width: 160px !important;
        height: 160px !important;
        bottom: 5% !important;
    }
    
    /* Shadow circle positioning on mobile */
    .carousel-mascot > div[style*="background: rgba"] {
        width: 100px !important;
        bottom: 10px !important;
    }
}

@keyframes shadow-float {
    0% { transform: scale(1); opacity: 0.8; filter: blur(4px); }
    50% { transform: scale(0.85); opacity: 0.45; filter: blur(6px); }
    100% { transform: scale(1); opacity: 0.8; filter: blur(4px); }
}

/* Responsive Navbar Toggle Styling */
.nav-toggle {
    display: none !important;
}

@media (max-width: 768px) {
    /* Navbar Mobile */
    .navbar {
        padding: 0.75rem 1rem !important;
    }
    
    .nav-brand {
        font-size: 1.15rem !important;
        gap: 0.5rem !important;
    }
    
    .nav-brand img {
        height: 34px !important;
    }

    .nav-toggle {
        display: block !important;
        font-size: 1.35rem !important;
    }
    
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        border-bottom: 2px solid var(--border-color);
        padding: 1.25rem 1rem;
        gap: 1rem;
        box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }
    
    .nav-links.show {
        display: flex;
    }
    
    .nav-links li {
        width: 100%;
        text-align: center;
    }
    
    .nav-links .btn {
        width: 100%;
    }

    /* Container */
    .container {
        padding: 1.25rem 1rem !important;
    }
    
    /* Hero Carousel on Mobile / Android */
    .carousel-container {
        aspect-ratio: auto !important;
        height: auto !important;
        min-height: 520px;
        border-radius: 16px !important;
        margin-bottom: 2.5rem !important;
    }
    
    .carousel-slide {
        padding: 2rem 1.25rem 3rem 1.25rem !important;
        min-height: 520px;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
    }
    
    .carousel-slide > div {
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        align-items: center !important;
        height: 100% !important;
        gap: 1.5rem !important;
        text-align: center !important;
    }
    
    .carousel-content {
        max-width: 100% !important;
        text-align: center !important;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .carousel-title {
        font-size: 1.55rem !important;
        line-height: 1.25 !important;
        margin-bottom: 0.6rem !important;
    }
    
    .carousel-subtitle {
        font-size: 0.85rem !important;
        line-height: 1.5 !important;
        margin-bottom: 1.25rem !important;
        max-width: 95% !important;
    }

    .carousel-content > div:last-child {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: 280px !important;
        gap: 0.6rem !important;
    }

    .carousel-content .btn {
        width: 100% !important;
        font-size: 0.85rem !important;
        padding: 0.65rem 1rem !important;
    }
    
    .carousel-mascot {
        position: relative !important;
        transform: none !important;
        left: auto !important;
        bottom: auto !important;
        height: 150px !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        margin-top: 0.5rem;
    }
    
    .carousel-mascot img {
        max-height: 130px !important;
        height: auto !important;
        width: auto !important;
    }
    
    /* Radial glow positioning on mobile */
    .carousel-mascot > div[style*="radial-gradient"] {
        width: 140px !important;
        height: 140px !important;
        bottom: 0 !important;
    }
    
    /* Shadow circle positioning on mobile */
    .carousel-mascot > div[style*="background: rgba"] {
        width: 90px !important;
        bottom: 5px !important;
    }

    .carousel-dots {
        bottom: 0.6rem !important;
    }
    
    /* Ajang Row scaling on Mobile */
    .ajang-heading {
        font-size: 1.5rem !important;
    }

    .ajang-sub {
        font-size: 0.85rem !important;
        margin-bottom: 1.5rem !important;
    }

    .ajang-row {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 0.75rem !important;
    }
    
    .ajang-circle-card {
        width: 95px !important;
    }
    
    .ajang-circle {
        width: 70px !important;
        height: 70px !important;
    }

    .ajang-circle i {
        font-size: 2rem !important;
    }

    .ajang-lbl {
        font-size: 0.75rem !important;
    }

    /* News Layout on Mobile */
    .news-layout {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    /* Stats Grid stack */
    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    /* Student Card Stack */
    .student-card {
        flex-direction: column;
        gap: 1.25rem;
        align-items: stretch !important;
        text-align: center;
        padding: 1.5rem 1rem !important;
    }
    
    .student-card > div {
        flex-direction: column;
        text-align: center;
    }
    
    .student-points {
        width: 100%;
    }
    
    /* Video Grid responsive adjustments */
    .video-grid, .video-layout {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    /* Exam list card mobile stack */
    .exam-item {
        flex-direction: column;
        align-items: stretch;
        gap: 1.25rem;
        padding: 1.25rem;
    }

    .exam-item > div:last-child {
        text-align: left;
    }

    .exam-item .btn {
        width: 100%;
    }

    /* Leaderboard tabs mobile adjustments */
    .leaderboard-tabs {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .tab-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
        flex: 1;
        min-width: 120px;
        text-align: center;
    }

    /* Auth Wrapper on Mobile */
    .auth-wrapper {
        padding: 1.75rem 1.25rem !important;
        margin: 1rem auto !important;
    }
}

/* Default Video Grid class */
.video-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
    margin-top: 1.5rem;
    align-items: center;
}
