/* CSS Variables Setup */
:root {
    --bg-main: #0a0a0f;
    /* Black / Deep Dark */
    --bg-secondary: #13141f;
    --bg-tertiary: #1c1d2e;

    --bg-light-main: #ffffff;
    /* White Theme */
    --bg-light-secondary: #f4f6f8;
    --bg-light-tertiary: #e2e8f0;

    --primary-blue: #007BFF;
    --neon-blue: #00d2ff;

    --text-main: #fcfcfc;
    --text-muted: #a0a0b8;

    --text-dark: #0f172a;
    --text-dark-muted: #475569;

    --accent-green: #00e676;
    --accent-red: #ff3d00;

    --glow-shadow: 0 0 15px rgba(0, 123, 255, 0.4);
    --transition-speed: 0.3s;
}

html {
    scroll-behavior: smooth;
}

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

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

/* Global Utilities */
.m-blue {
    color: var(--neon-blue);
}

.m-white {
    color: inherit;
}

.highlight {
    color: var(--primary-blue);
    display: inline-block;
}

.dark .highlight {
    text-shadow: var(--glow-shadow);
}

.text-green {
    color: var(--accent-green);
}

.text-red {
    color: var(--accent-red);
}

.text-center {
    text-align: center;
}

.mt-5 {
    margin-top: 50px !important;
}

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

ul {
    list-style: none;
}

h1,
h2,
h3,
h4 {
    font-weight: 800;
}

.section-title {
    font-size: 36px;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.p-0 {
    padding: 0 !important;
}

/* Theme Classes (Alternating Backgrounds) */
.dark {
    background-color: var(--bg-main);
    color: var(--text-main);
}

.light {
    background-color: var(--bg-light-main);
    color: var(--text-dark);
}

.light .m-white {
    color: var(--text-dark);
}

.dark .m-white {
    color: var(--text-main);
}

/* Sticky Header (Transparent to Solid) */
header {
    background: transparent;
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 50px;
    z-index: 1000;
    transition: all 0.4s ease;
}

header.scrolled {
    background: rgba(10, 10, 15, 0.95);
    padding: 15px 50px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

header .logo {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 2px;
}

header nav ul {
    display: flex;
    gap: 30px;
    align-items: center;
}

header nav ul li a {
    font-size: 16px;
    font-weight: 600;
    transition: color var(--transition-speed);
    color: #fff;
}

header nav ul li a:hover {
    color: var(--neon-blue);
}

header nav ul li a.active {
    color: var(--neon-blue);
    position: relative;
}

header nav ul li a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--neon-blue);
    box-shadow: 0 0 10px var(--neon-blue);
    border-radius: 2px;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-blue), var(--neon-blue));
    color: #fff;
    padding: 10px 25px;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--glow-shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(0, 210, 255, 0.6);
}

.btn-secondary {
    background: transparent;
    color: inherit;
    border: 1px solid currentColor;
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: var(--text-muted);
    color: var(--bg-main);
    border-color: transparent;
}

.mobile-menu {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: white;
}

/* Custom Language Switcher */
.custom-lang-switcher {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1001;
}

.lang-dropdown-container {
    position: relative;
    min-width: 140px;
}

.lang-selected {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: var(--text-main);
}

.lang-selected:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--neon-blue);
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.2);
}

.lang-selected img {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
}

.lang-selected i.fa-chevron-down {
    font-size: 10px;
    margin-left: auto;
    transition: transform 0.3s ease;
}

.lang-dropdown-container.active .lang-selected i.fa-chevron-down {
    transform: rotate(180deg);
}

.lang-options {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 100%;
    background: var(--bg-secondary);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    list-style: none;
    padding: 5px;
}

.lang-dropdown-container.active .lang-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    border-radius: 8px;
    color: var(--text-muted);
}

.lang-option:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--neon-blue);
}

.lang-option.active {
    background: rgba(0, 210, 255, 0.1);
    color: var(--neon-blue);
    font-weight: 600;
}

.lang-option img {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
}

/* Explicit Tab Bar Language Selector */
.lang-tab-group {
    display: flex;
    gap: 5px;
    background: rgba(255, 255, 255, 0.05);
    padding: 5px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.lang-tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.lang-tab-btn:hover {
    background: rgba(0, 210, 255, 0.1);
    color: white;
}

.lang-tab-btn.active {
    background: var(--primary-blue);
    color: white;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
}

/* Hide Google Translate White Auto-Bar and Tooltips */
body > .skiptranslate,
iframe.goog-te-banner-frame.skiptranslate,
.goog-te-banner-frame {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

body {
    top: 0px !important;
    position: static !important;
}

#goog-gt-tt, 
.goog-te-balloon-frame {
    display: none !important;
}

.goog-text-highlight {
    background-color: transparent !important;
    box-shadow: none !important;
}

/* Flyers Section Styles */
.flyers-slider-wrapper {
    position: relative;
    padding: 20px 0;
}

.flyers-grid {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 20px 5px;
    scroll-behavior: smooth;
}

.flyers-grid::-webkit-scrollbar {
    display: none;
}

.flyer-card {
    flex: 0 0 300px;
    background: var(--bg-secondary);
    border-radius: 20px;
    overflow: hidden;
    scroll-snap-align: start;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.flyer-card:hover {
    transform: translateY(-12px);
    border-color: var(--neon-blue);
    box-shadow: 0 15px 40px rgba(0, 210, 255, 0.2);
}

.flyer-img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    cursor: zoom-in;
    transition: transform 0.5s ease;
}

.flyer-card:hover .flyer-img {
    transform: scale(1.05);
}

.flyer-info {
    padding: 20px;
    text-align: center;
    background: #13141f;
}

.flyer-info h4 {
    margin-bottom: 8px;
    font-size: 1.1rem;
    color: #fff;
}

.flyer-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.flyers-nav {
    width: 50px !important;
    height: 50px !important;
    background: rgba(0, 123, 255, 0.8) !important;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    border-radius: 50%;
    z-index: 20;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.3s;
    cursor: pointer;
}

.flyers-nav:hover {
    background: var(--primary-blue) !important;
    transform: translateY(-50%) scale(1.1) !important;
}

.flyers-nav.prev {
    left: -25px;
}

.flyers-nav.next {
    right: -25px;
}

@media (max-width: 768px) {
    .flyer-card {
        flex: 0 0 280px;
    }
    .flyer-img {
        height: 380px;
    }
    .flyers-nav {
        display: none !important;
    }
}

/* Global Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.show {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

/* Floating Actions */
.float-wa {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: white;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 35px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    z-index: 1500;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.float-wa:hover {
    transform: scale(1.15) rotate(10deg);
    box-shadow: 0 5px 25px rgba(37, 211, 102, 0.6);
}

.animate-pulse {
    animation: WA_Pulse 2s infinite;
}

@keyframes WA_Pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Gallery Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
    animation: fadeIn 0.3s;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 50px;
    color: white;
    cursor: pointer;
    transition: 0.3s;
}

.lightbox-close:hover {
    color: var(--accent-red);
    transform: scale(1.1);
}

/* View Management (Tabs handling) */
.page-section {
    display: none;
}

.page-section.active {
    display: block;
    animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.scroll-section {
    padding-top: 100px;
    padding-bottom: 100px;
    scroll-margin-top: 60px;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Home Section (Fullscreen Hero Slider) */
.hero {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slider {
    display: flex;
    width: max-content;
    height: 100%;
    transition: transform 1s ease-in-out;
}

.slide {
    width: 100vw;
    height: 100vh;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 10;
    pointer-events: auto;
}

.hero-content h1 {
    font-size: 5rem;
    margin-bottom: 15px;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 24px;
    padding: 20px;
    cursor: pointer;
    border-radius: 50%;
    backdrop-filter: blur(5px);
    transition: 0.3s;
    z-index: 10;
}

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

.slider-btn.prev {
    left: 30px;
}

.slider-btn.next {
    right: 30px;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    height: 300px;
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    cursor: zoom-in;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.gallery-item:hover {
    transform: scale(1.03) !important;
    box-shadow: 0 15px 30px rgba(0, 123, 255, 0.3);
}

/* Feedback & Top Achievers */
.feedback-grid {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 20px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    justify-content: flex-start;
}

.feedback-grid::-webkit-scrollbar {
    display: none;
}

.feedback-card {
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 15px;
    flex: 0 0 350px;
    scroll-snap-align: center;
    text-align: center;
    transition: transform var(--transition-speed);
}

.feedback-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-blue);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.achiever-card {
    background: linear-gradient(145deg, var(--bg-secondary), var(--bg-tertiary));
    padding: 30px 20px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(0, 123, 255, 0.1);
    transition: transform 0.3s;
}

.achiever-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--glow-shadow);
    border-color: var(--primary-blue);
}

.achiever-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--neon-blue);
    margin-bottom: 15px;
}

.achiever-card h4 {
    font-size: 22px;
    margin-bottom: 5px;
    color: white;
}

.achiever-card .school {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.achiever-card .index {
    font-size: 13px;
    color: var(--text-muted);
    font-family: monospace;
}

.result-badge {
    display: inline-block;
    background: rgba(0, 230, 118, 0.1);
    color: var(--accent-green);
    padding: 5px 15px;
    border-radius: 30px;
    font-weight: 800;
    font-size: 18px;
    margin: 10px 0;
    border: 1px solid rgba(0, 230, 118, 0.2)
}

/* Year Tabs */
.year-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.year-tab {
    padding: 10px 30px;
    border-radius: 30px;
    border: 2px solid var(--primary-blue);
    background: transparent;
    color: var(--text-dark);
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    font-size: 16px;
}

.year-tab.active,
.year-tab:hover {
    background: var(--primary-blue);
    color: white;
    box-shadow: var(--glow-shadow);
}

.achievers-content {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.achievers-content.active {
    display: block;
}

/* About Section Refactored */
.section-subtitle {
    font-size: 28px;
    margin-bottom: 25px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 50px;
}

@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.teacher-details-col {
    background: var(--bg-light-secondary);
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.teacher-details-col h3 {
    font-size: 32px;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.teacher-details-col ul {
    margin: 15px 0 25px 30px;
    list-style-type: square;
    color: var(--text-dark-muted);
    font-size: 18px;
}

.teacher-details-col .bio {
    font-style: italic;
    color: var(--text-dark-muted);
    border-left: 4px solid var(--primary-blue);
    padding-left: 20px;
    font-size: 17px;
    line-height: 1.6;
}

.teacher-photo-col img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border: 5px solid white;
    transform: rotate(3deg);
    transition: 0.4s;
}

.teacher-photo-col img:hover {
    transform: rotate(0deg) scale(1.02);
}

/* Class Institutes Grid popup */
.institutes-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.institute-card {
    background: white;
    border: 1px solid var(--bg-light-tertiary);
    padding: 30px 15px;
    border-radius: 20px;
    width: 200px;
    text-align: center;
    position: relative;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
}

.institute-card:hover {
    box-shadow: 0 15px 30px rgba(0, 123, 255, 0.15);
    border-color: var(--primary-blue);
    transform: translateY(-8px);
}

.institute-icon {
    font-size: 35px;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.institute-card h4 {
    color: var(--text-dark);
    font-size: 22px;
    margin-bottom: 5px;
}

.institute-card p {
    color: var(--text-dark-muted);
    font-size: 15px;
}

/* Hover Timetable Popup */
.institute-timetable {
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: white;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid #eee;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
    z-index: 100;
    min-width: 250px;
    pointer-events: none;
}

.institute-card:hover .institute-timetable {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.institute-timetable::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -10px;
    border-width: 10px;
    border-style: solid;
    border-color: white transparent transparent transparent;
}

.institute-timetable table {
    width: 100%;
    font-size: 14px;
    text-align: left;
    color: var(--text-dark);
    border-collapse: collapse;
}

.institute-timetable th {
    background: #f4f6f8;
    color: var(--primary-blue);
    padding: 8px;
    border-bottom: 2px solid #ddd;
}

.institute-timetable td {
    padding: 8px;
    border-bottom: 1px solid #eee;
}

.institute-timetable tr:last-child td {
    border-bottom: none;
}

/* Contact Section (Social Icons Highlight) */
.contact-desc {
    max-width: 600px;
    margin: 0 auto 40px;
    font-size: 18px;
    color: var(--text-muted);
}

.social-circles-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.social-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    color: white;
    transition: transform 0.3s, background 0.3s;
}

.social-circle:hover {
    transform: translateY(-8px);
}

.social-circle.fb { background: #1877F2; }
.social-circle.yt { background: #FF0000; }
.social-circle.wa { background: #25D366; }
.social-circle.tt { background: #000000; }
.social-circle.em { background: #EA4335; }

.highlight-wa {
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.4);
    animation: pulse-wa 2s infinite;
}

@keyframes pulse-wa {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Minimized Footer */
.mini-footer {
    background: #050510;
    padding: 30px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-content-mini {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.mini-nav {
    display: flex;
    gap: 20px;
}

.mini-nav a {
    color: var(--text-muted);
    font-size: 14px;
    transition: 0.3s;
}

.mini-nav a:hover {
    color: var(--neon-blue);
}

.copyright {
    margin-top: 20px;
    font-size: 13px;
    color: var(--text-muted);
}

/* Auth Section Styles */
.auth-section-bg {
    background: radial-gradient(circle at top right, #13141f, #0a0a0f);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.auth-container {
    display: flex;
    justify-content: center;
}

.auth-box {
    background: #13141f;
    padding: 50px;
    border-radius: 20px;
    width: 100%;
    max-width: 480px;
    border: 1px solid rgba(255,255,255,0.05);
}

.auth-box h2 {
    font-size: 32px;
    margin-bottom: 30px;
    text-align: center;
}

.auth-divider {
    text-align: center;
    position: relative;
    margin: 20px 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(255,255,255,0.1);
}

.auth-divider span {
    background: #13141f;
    padding: 0 15px;
    position: relative;
    color: var(--text-muted);
    font-size: 12px;
}

.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

#auth-form input, #auth-form select {
    width: 100%;
    padding: 14px 20px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    color: white;
    margin-bottom: 15px;
    outline: none;
    transition: 0.3s;
}

#auth-form input:focus {
    border-color: var(--neon-blue);
    background: rgba(255,255,255,0.08);
}

.btn-primary.block {
    width: 100%;
    font-size: 16px;
    padding: 14px;
}

.auth-switch {
    text-align: center;
    margin-top: 25px;
    color: var(--text-muted);
}

.auth-switch a {
    color: var(--neon-blue);
    font-weight: 600;
}

/* Panel / Dashboard */
.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-top: 100px;
}

.dash-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.dash-tab {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 12px 25px;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.dash-tab.active {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    box-shadow: var(--glow-shadow);
}

.dash-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.dash-content.active {
    display: block;
}

.profile-card {
    background: #13141f;
    padding: 40px;
    border-radius: 20px;
    display: flex;
    gap: 40px;
    align-items: center;
    border: 1px solid rgba(255,255,255,0.05);
}

@media (max-width: 600px) {
    .profile-card { flex-direction: column; text-align: center; }
}

.profile-photo-wrap {
    position: relative;
    width: 150px;
    height: 150px;
}

.profile-photo-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--neon-blue);
}

.photo-upload-btn {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: var(--primary-blue);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 3px solid #13141f;
    transition: 0.3s;
}

.profile-info h3 { font-size: 28px; margin-bottom: 10px; }

.profile-badge {
    background: rgba(0, 210, 255, 0.1);
    color: var(--neon-blue);
    padding: 4px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
}

.profile-details {
    margin-top: 25px;
    display: grid;
    gap: 12px;
}

.detail-row {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    color: var(--text-muted);
    flex-wrap: wrap;
    margin-bottom: 5px;
}

.detail-row i { color: var(--neon-blue); width: 20px; }

/* Exam Portal Styles */
.panel-view { display: none; }
.panel-view.active { display: block; animation: fadeIn 0.4s; }

.grade-grid, .term-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.grade-card, .term-card {
    background: #1c1d2e;
    border: 1px solid rgba(255,255,255,0.05);
    padding: 25px 15px;
    border-radius: 15px;
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    text-align: center;
}

.grade-card:hover, .term-card:hover {
    background: var(--primary-blue);
    transform: translateY(-5px);
    box-shadow: var(--glow-shadow);
}

.exam-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1c1d2e;
    padding: 20px 30px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.timer {
    font-size: 20px;
    font-weight: 800;
    color: var(--neon-blue);
}

.timer.warning { color: var(--accent-red); animation: shake 0.5s infinite; }

@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(2px); }
    50% { transform: translateX(-2px); }
    75% { transform: translateX(2px); }
    100% { transform: translateX(0); }
}

/* Question Box */
.question-box {
    background: #13141f;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 20px;
    border-left: 5px solid var(--primary-blue);
}

.question-box h4 { margin-bottom: 20px; font-size: 18px; }

.options-list { display: grid; gap: 10px; }

.option-item {
    background: rgba(255,255,255,0.03);
    padding: 15px 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 15px;
}

.option-item:hover { background: rgba(255,255,255,0.08); }

.option-item input { width: 18px; height: 18px; }

/* Results */
.center-content {
    display: flex;
    justify-content: center;
    padding: 50px 0;
}

.result-card {
    background: #13141f;
    padding: 50px;
    border-radius: 30px;
    text-align: center;
    max-width: 500px;
    width: 100%;
}

.score-circle {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: conic-gradient(var(--neon-blue) 0%, rgba(255,255,255,0.05) 0%);
    margin: 30px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.score-circle::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    background: #13141f;
    border-radius: 50%;
}

.score-circle span {
    position: relative;
    z-index: 10;
    font-size: 40px;
    font-weight: 800;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
}

.stat { font-size: 18px; }

/* Responsive Adjustments */
@media (max-width: 768px) {
    header { padding: 15px 25px; }
    header.scrolled { padding: 10px 25px; }
    .hero-content h1 { font-size: 3rem; }
    .section-title { font-size: 28px; }
    .mobile-menu { display: block; }
    header nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #0a0a0f;
        flex-direction: column;
        padding: 30px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        gap: 20px;
        z-index: 1000;
        animation: fadeIn 0.3s ease;
    }
    header nav.show ul {
        display: flex;
    }
    header nav ul li { width: 100%; text-align: center; }
    header nav ul li a { display: block; width: 100%; padding: 10px 0; }
    header .custom-lang-switcher { margin-left: 0 !important; margin-top: 15px; width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
    .hero-content h1 { font-size: 2.2rem; }
    .auth-box { padding: 30px 20px; }
    .result-card { padding: 30px 15px !important; border-radius: 20px; }
    .score-circle { width: 140px; height: 140px; }
    .score-circle::after { width: 115px; height: 115px; }
    .score-circle span { font-size: 2.5rem; }
}

/* --- New Dashboard & Exam Layout Modifications --- */

/* Sidebar Layout */
.dashboard-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.dash-sidebar {
    width: 250px;
    background: #13141f;
    padding: 30px 20px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 150px);
    position: sticky;
    top: 20px;
}

.dash-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dash-tab {
    width: 100%;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 12px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 12px 15px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.dash-tab:hover {
    background: rgba(255,255,255,0.05);
    color: white;
}

.dash-tab.active {
    background: var(--primary-blue);
    color: white;
    box-shadow: 0 5px 15px rgba(0,123,255,0.3);
}

.dash-main {
    flex: 1;
    min-width: 0; 
}

@media (max-width: 900px) {
    .dashboard-layout {
        flex-direction: column;
        padding-top: 20px;
        gap: 20px;
    }
    .dash-sidebar {
        width: 100%;
        min-height: auto;
        position: static;
        padding: 15px;
        background: #13141f;
        border-radius: 15px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    .panel-header { display: none; }
    .lang-tab-group { width: 100%; margin-bottom: 15px !important; }
    .dash-menu {
        flex-direction: row;
        width: 100%;
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 5px;
    }
    .dash-menu::-webkit-scrollbar { display: none; }
    .dash-tab {
        flex: 1;
        justify-content: center;
        white-space: nowrap;
        padding: 10px;
        font-size: 0.85rem;
    }
    .logout-btn { 
        width: 100% !important; 
        margin-top: 15px !important; 
        padding: 10px !important;
        font-size: 0.9rem;
    }
    .dash-main {
        padding: 0;
    }
    .dash-content {
        padding: 20px !important;
    }
}

/* Split Profile Layout */
.split-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.profile-info-side {
    flex: 1;
}

.profile-photo-side {
    padding-left: 40px;
    border-left: 1px dashed rgba(255,255,255,0.1);
}

.profile-photo-wrap.large {
    width: 200px;
    height: 200px;
}

@media (max-width: 768px) {
    .split-layout {
        flex-direction: column-reverse;
        text-align: center;
    }
    .profile-photo-side {
        padding-left: 0;
        border-left: none;
        margin-bottom: 30px;
    }
}

/* Exam Flow New Layouts */
.exam-workspace.flex-layout {
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

.exam-nav-sidebar {
    width: 240px;
    background: #13141f;
    padding: 20px;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.05);
    position: sticky;
    top: 20px;
}

.question-nav {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
    gap: 10px;
}

.nav-btn {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.nav-btn.active {
    background: var(--neon-blue);
    border-color: var(--neon-blue);
    box-shadow: 0 0 10px rgba(0,210,255,0.4);
}

.nav-btn.answered {
    background: #2ecc71;
    border-color: #2ecc71;
}

.nav-btn:hover {
    background: rgba(255,255,255,0.15);
}

.exam-main-area {
    flex: 1;
    min-width: 0;
}

.exam-header.sticky-timer {
    position: sticky;
    top: 10px;
    z-index: 50;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

.paginated-questions .question-box {
    display: none;
    animation: fadeIn 0.3s ease;
}

.paginated-questions .question-box.active {
    display: block;
}

@media (max-width: 800px) {
    .exam-workspace.flex-layout {
        flex-direction: column;
    }
    .exam-nav-sidebar {
        width: 100%;
        position: static;
        order: -1;
    }
}

/* detailed results block */
.detailed-results-list::-webkit-scrollbar {
    width: 8px;
}

.detailed-results-list::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.02);
}

.detailed-results-list::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
}

.answer-review-item {
    padding: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.answer-review-item:last-child {
    border-bottom: none;
}

.text-success { color: #2ecc71; }
.text-danger { color: #e74c3c; }
.text-neon { color: var(--neon-blue); }

/* --- Fullscreen Exam Portal --- */
.fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-main);
    z-index: 9999;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.exam-nav-sidebar {
    background: #13141f;
    position: absolute;
    left: 0;
    top: 80px;
    bottom: 0;
    width: 260px;
    padding: 20px;
    overflow-y: auto;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 10;
}

.exam-content-area {
    margin-left: 260px;
    padding: 20px 0;
    display: flex;
    flex: 1;
    position: relative;
    width: auto;
}

@media (max-width: 992px) {
    .exam-nav-sidebar {
        position: static;
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    .exam-content-area {
        margin-left: 0;
        flex-direction: column;
    }
    .side-nav-arrow {
        position: static !important;
        transform: none !important;
        width: 100% !important;
        height: 60px;
        font-size: 2rem !important;
    }
}

.exam-workspace-full {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.exam-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: #13141f;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    position: sticky;
    top: 0;
    z-index: 100;
}

.back-btn-master {
    background: rgba(255,255,255,0.05);
    border: none;
    color: var(--text-muted);
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
}

.back-btn-master:hover {
    color: white;
    background: rgba(255,255,255,0.1);
}

.large-timer {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--neon-blue);
    display: flex;
    align-items: center;
    gap: 15px;
}

.exam-content-area {
    display: flex;
    flex: 1;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.side-nav-arrow {
    width: 80px;
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.2);
    font-size: 4rem;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.side-nav-arrow:hover {
    color: var(--neon-blue);
    background: rgba(0, 210, 255, 0.05);
}

.exam-main-center {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 768px) {
    .large-timer { font-size: 1.8rem; }
    .exam-top-bar { padding: 15px 20px; }
    .side-nav-arrow { font-size: 2.5rem; width: 50px; }
    .exam-main-center { padding: 20px; }
    .flyers-grid {
        padding: 20px 15px;
    }
    .flyer-card {
        flex: 0 0 calc(100vw - 60px);
    }
}

/* Hide Google Translate Banner and Popups */
.goog-te-banner-frame.skiptranslate, 
.goog-te-gadget-icon {
    display: none !important;
}
body {
    top: 0px !important; 
}
#goog-gt-tt, .goog-te-balloon-frame {
    display: none !important;
}
.goog-text-highlight {
    background: none !important;
    box-shadow: none !important;
}