@font-face {
    font-family: 'Space Grotesk';
    src: url('../fonts/Space_Grotesk/SpaceGrotesk-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-display: swap;
    font-style: normal;
}

@font-face {
    font-family: 'Unbounded';
    src: url('../fonts/Unbounded/Unbounded-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-display: swap;
    font-style: normal;
}


:root {
    --primary: #0066FF;
    --primary-dark: #004dc2;
    --primary-glow: rgba(0, 102, 255, 0.2);
    --secondary: #7000FF;
    --dark: #0F172A;
    --light: #F8FAFC;
    --white: #FFFFFF;
    --text-main: #1E293B;
    --text-muted: #64748B;
    --border: rgba(0, 0, 0, 0.08);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 32px;
    --transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s, background-color 0.3s, box-shadow 0.3s;
    --container: 1240px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--text-main);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.branch-info a,
.footer-contact-item a {
    color: inherit;
    text-decoration: none;
}

.branch-info a:hover,
.footer-contact-item a:hover {
    color: var(--primary);
}

h1,
h2,
h3,
h4 {
    font-family: 'Unbounded', sans-serif;
    color: var(--dark);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

@media (max-width: 1100px) {
    .container {
        padding: 0 15px;
    }

    section {
        padding: 80px 0;
    }
}

.section-title {
    font-size: clamp(32px, 4.5vw, 48px);
    margin-bottom: 10px;
}

.section-subtitle {
    color: var(--text-muted);
    margin-top: 10px;
    font-size: clamp(15px, 1.5vw, 18px);
}

section {
    padding: 120px 0;
    position: relative;
}

/* ============ HEADER ============ */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s, background-color 0.4s;
    will-change: transform, padding, background-color;
    transform: translateZ(0);
}

header.scrolled {
    padding: 8px 0;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--border);
}

@media (min-width: 1025px) {
    header.scrolled {
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }
}

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

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
    filter: brightness(0) invert(1);
}

header.scrolled .logo-img {
    filter: none;
}

/* Support for light backgrounds (like Careers page) */
header.header-light:not(.scrolled) .logo-img {
    filter: none;
}

header.header-light:not(.scrolled) nav a {
    color: var(--dark);
    opacity: 0.7;
}

header.header-light:not(.scrolled) .selected-lang {
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--dark);
}

header.header-light:not(.scrolled) .menu-toggle span {
    background: var(--dark);
}

.header-cta {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 14px;
    font-family: 'Unbounded', sans-serif;
    transition: 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 10px 20px var(--primary-glow);
    white-space: nowrap;
}

@media (max-width: 1100px) {
    .header-cta {
        padding: 10px 20px;
        font-size: 13px;
    }
}

.header-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px var(--primary-glow);
    background: var(--primary-dark);
}

nav {
    display: flex;
    gap: 32px;
    align-items: center;
}

@media (max-width: 1200px) {
    nav {
        gap: 16px;
    }
}

@media (max-width: 1100px) {
    nav {
        gap: 12px;
    }

    nav a {
        font-size: 14px;
    }
}

nav a {
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    opacity: 0.8;
}

header.scrolled nav a {
    color: var(--text-main);
    opacity: 0.7;
}

nav a:hover {
    opacity: 1;
    color: var(--primary);
}

/* Language Switcher */
.lang-switcher {
    appearance: none;
    -webkit-appearance: none;
    padding: 10px 32px 10px 16px;
    border-radius: 100px;
    border: 1.5px solid var(--border);
    background: rgba(255, 255, 255, 0.8) url('data:image/svg+xml;utf8,<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="%230F172A" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M6 9l6 6 6-6"/></svg>') no-repeat right 12px center;
    font-family: 'Unbounded', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: var(--dark);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.lang-switcher:hover {
    border-color: var(--primary);
    color: var(--primary);
    background-image: url('data:image/svg+xml;utf8,<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="%230066FF" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M6 9l6 6 6-6"/></svg>');
    transform: translateY(-1px);
}

.lang-switcher:focus {
    outline: none;
    border-color: var(--primary);
}

/* Custom Lang Selector */
.custom-lang-selector {
    position: relative;
    z-index: 1002;
    cursor: pointer;
}

.standout-subgrid {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 100%;
}

.selected-lang {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: white;
    border: 1.5px solid var(--border);
    border-radius: 100px;
    font-weight: 700;
    font-size: 14px;
    transition: var(--transition);
}

.selected-lang:hover {
    border-color: var(--primary);
    transform: translateY(-1px);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: none;
    min-width: 130px;
}

.lang-dropdown.show {
    display: block;
    animation: fadeInDown 0.3s ease;
}

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

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

.lang-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    transition: 0.2s;
    color: var(--dark);
    font-weight: 600;
}

.lang-option:hover {
    background: var(--light);
    color: var(--primary);
}

.flag-icon {
    width: 20px;
    height: 14px;
    border-radius: 2px;
    object-fit: cover;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

@media (max-width: 900px) {
    .selected-lang {
        padding: 6px 12px;
        font-size: 13px;
    }

    .flag-icon {
        width: 18px;
        height: 12px;
    }
}

/* Mobile Menu Button */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    padding: 8px;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--dark);
    transition: 0.3s;
    border-radius: 2px;
}

/* Mobile Nav Overlay */
@media (max-width: 900px) {
    .container {
        padding: 0 20px;
    }

    header {
        padding: 12px 0;
    }

    .header-wrapper {
        background: transparent;
        padding: 6px 14px 6px 16px;
        border-radius: 100px;
        border: 1px solid transparent;
        margin: 0 5px;
        transition: var(--transition);
    }

    header.scrolled .header-wrapper {
        background: rgba(255, 255, 255, 0.95);
        /* backdrop-filter removed for mobile perf */
        border-color: rgba(0, 0, 0, 0.1);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    }

    .logo-img {
        height: 36px;
        margin-top: 0;
        transition: var(--transition);
    }

    header .header-cta {
        display: none !important;
    }

    .lang-switcher {
        padding: 6px 24px 6px 12px;
        font-size: 13px;
        height: 36px;
        margin-right: 5px;
    }

    .menu-toggle {
        display: flex;
        width: 44px;
        height: 44px;
        background: rgba(255, 255, 255, 0.15);
        /* backdrop-filter removed for mobile perf */
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 12px;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 6px;
        padding: 0;
        transition: 0.3s;
        z-index: 1001;
    }

    header.scrolled .menu-toggle {
        background: var(--dark);
        border-color: var(--dark);
    }

    .menu-toggle span {
        width: 22px;
        background: white;
        height: 2px;
        border-radius: 10px;
        transition: 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
    }

    .menu-toggle.active {
        background: transparent;
    }

    .menu-toggle.active span {
        background: var(--dark);
    }

    nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        gap: 0;
        transform: translateX(100%);
        visibility: hidden;
        transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.5s;
        padding: 100px 30px 40px;
        z-index: 1000;
        overflow-y: auto;
    }

    nav.active {
        transform: translateX(0);
        visibility: visible;
    }

    .standout-subgrid {
        grid-template-columns: 1fr !important;
    }

    nav.active {
        right: 0;
    }

    nav a {
        font-size: 24px;
        font-weight: 800;
        opacity: 1;
        border-bottom: 1px solid var(--border);
        width: 100%;
        padding: 20px 0;
        color: var(--dark);
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    nav a::after {
        content: '→';
        font-size: 18px;
        color: var(--primary);
        opacity: 0.4;
        transition: 0.3s;
    }

    nav a:hover::after {
        opacity: 1;
        transform: translateX(4px);
    }

    .menu-toggle.active span:nth-child(1) {
        transform: translateY(2px) rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(-20px);
    }

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-5px) rotate(-45deg);
    }
}

/* ============ HERO SECTION ============ */
.hero {
    position: relative;
    height: 100vh;
    height: 100dvh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #000;
    padding: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    opacity: 0;
    transition: opacity 3s ease-in-out;
    transform: scale(1.05);
    filter: saturate(1.1) brightness(0.7) contrast(1.1);
    z-index: 1;
    will-change: opacity, transform;
    backface-visibility: hidden;
}

.hero-slide.active {
    opacity: 1;
    z-index: 3;
    animation: kenburns 20s ease-in-out infinite;
}

.hero-slide.last-active {
    opacity: 1;
    z-index: 2;
    animation: kenburns 20s ease-in-out infinite;
}

@keyframes kenburns {
    0% {
        transform: scale(1.05);
    }

    50% {
        transform: scale(1.12);
    }

    100% {
        transform: scale(1.05);
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    /* Ultra-smooth multi-stop gradient for a natural feel */
    background: linear-gradient(to right,
            rgba(0, 0, 0, 0.8) 0%,
            rgba(0, 0, 0, 0.6) 25%,
            rgba(0, 0, 0, 0.3) 50%,
            rgba(0, 0, 0, 0.1) 75%,
            transparent 100%);
    z-index: 3;
    pointer-events: none;
}

.hero-glow {
    position: absolute;
    width: 40vw;
    height: 40vw;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    z-index: 2;
    pointer-events: none;
    will-change: filter;
}

.hero-glow-1 {
    top: -15%;
    left: -15%;
    background: var(--primary);
}

.hero-glow-2 {
    bottom: -15%;
    right: -15%;
    background: var(--secondary);
}

.hero-wrapper {
    position: relative;
    z-index: 10;
    max-width: 900px;
    width: 100%;
}

.hero-badge {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 40px;
    animation: textReveal 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero-badge-text {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hero-badge-line {
    height: 1.5px;
    width: 60px;
    background: linear-gradient(to right, var(--primary), transparent);
}

.hero-title {
    font-size: clamp(42px, 5.2vw, 78px);
    font-weight: 950;
    line-height: 0.92;
    margin-bottom: 30px;
    color: #FFFFFF;
    letter-spacing: -0.05em;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-title span {
    display: inline-block;
    animation: textReveal 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes textReveal {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.gradient-text {
    background: linear-gradient(135deg, #FFF 0%, #00D1FF 50%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: gradientMove 6s linear infinite;
}

@keyframes gradientMove {
    0% {
        background-position: 0% center;
    }

    50% {
        background-position: 100% center;
    }

    100% {
        background-position: 0% center;
    }
}

.hero-subtitle {
    font-size: clamp(17px, 1.3vw, 22px);
    color: rgba(255, 255, 255, 0.6);
    max-width: 650px;
    margin-bottom: 50px;
    line-height: 1.6;
    font-weight: 500;
    animation: textReveal 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s both;
}

.hero-actions {
    display: flex;
    gap: 24px;
    animation: textReveal 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.6s both;
}

.btn-outline {
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    color: #FFFFFF;
    font-weight: 700;
    transition: var(--transition);
}

.btn-outline:hover {
    background: #FFFFFF;
    color: #0F172A;
    border-color: #FFFFFF;
    box-shadow: 0 15px 35px rgba(255, 255, 255, 0.2);
}

.btn-hiring {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    color: #FFFFFF !important;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    animation: pulseHiring 3s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-hiring::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: var(--transition);
}

.btn-hiring:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    color: #FFFFFF !important;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.15) !important;
}

.btn-hiring:hover::before {
    opacity: 1;
}

@keyframes pulseHiring {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.2);
    }

    50% {
        box-shadow: 0 0 0 12px rgba(255, 255, 255, 0);
    }
}


/* Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.mouse {
    width: 26px;
    height: 44px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.wheel {
    width: 4px;
    height: 8px;
    background: #FFFFFF;
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(15px);
    }
}

/* Responsive Hero */
@media (max-width: 1024px) {
    .hero-wrapper {
        max-width: 100%;
        padding: 0 40px;
    }
}

@media (max-width: 900px) {
    .hero {
        padding-top: 80px;
    }

    .hero-wrapper {
        padding: 0 24px;
    }

    .hero-title {
        font-size: 48px;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
    }
}

/* ============ COURSES ============ */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 60px;
}

@media (max-width: 1240px) {
    .courses-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
    }
}

@media (max-width: 900px) {
    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.course-card {
    background: white;
    border: 1px solid var(--border);
    padding: 40px;
    border-radius: var(--radius-lg);
    transition: 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 40px 80px rgba(0, 102, 255, 0.08);
}

.course-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: 0.4s ease;
}

.course-card:hover::after {
    transform: scaleX(1);
}

.course-card.standout {
    grid-column: 1 / -1;
    background: var(--dark);
    color: white;
    flex-direction: row;
    gap: 60px;
    align-items: center;
}

.course-card.standout h3 {
    color: white;
    font-size: 32px;
}

.course-card.standout .tag {
    background: #00D1FF;
    color: var(--dark);
}

.tag {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 800;
    font-family: 'Unbounded', sans-serif;
    text-transform: uppercase;
    margin-bottom: 20px;
    background: var(--light);
    color: var(--primary);
}

@media (max-width: 900px) {
    .course-card.standout {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
    }
}

/* ============ TEACHERS CAROUSEL (CLEAN) ============ */
.teachers-section {
    padding: 120px 0;
    background: var(--light);
}

.teachers-carousel-container {
    position: relative;
    margin-top: 60px;
}

.teachers-track {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: 1fr;
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 20px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

@media (min-width: 1025px) {
    .teachers-track {
        grid-template-rows: repeat(2, 1fr);
        grid-auto-columns: calc((100% - 72px) / 4);
    }
}

@media (max-width: 900px) {
    .teachers-track {
        display: flex;
        flex-direction: column;
        gap: 0;
        overflow-x: visible;
    }

    .teachers-featured-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        margin-bottom: 15px;
    }

    .teachers-others-slider {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: calc((100% - 20px) / 2.2);
        gap: 15px;
        overflow-x: auto;
        padding: 10px 0;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .teachers-others-slider::-webkit-scrollbar {
        display: none;
    }

    .teacher-card {
        scroll-snap-align: start;
        min-width: 140px;
        border-radius: 20px;
    }

    .teacher-img-wrap {
        height: 180px;
    }

    .teacher-footer {
        padding: 12px 10px;
    }

    .teacher-footer h4 {
        font-size: 14px;
    }

    .teacher-footer p {
        font-size: 9px;
    }

    .carousel-btn {
        display: none !important;
    }
}

.teachers-track::-webkit-scrollbar {
    display: none;
}

.result-item {
    flex: 0 0 320px;
    height: 450px;
    background: white;
    border-radius: 20px;
    margin-right: 15px;
    display: flex;
    padding: 10px;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

@media (max-width: 600px) {
    .result-item {
        flex: 0 0 180px;
        height: 260px;
        margin-right: 10px;
        border-radius: 12px;
    }
}

.teacher-card {
    will-change: transform, box-shadow;
    transform: translateZ(0);
    background: white;
    border-radius: 32px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    cursor: pointer;
}

.teacher-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.08);
    border-color: var(--primary);
}

.teacher-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 40px 80px rgba(0, 102, 255, 0.12);
    border-color: var(--primary);
}

.teacher-img-wrap {
    height: 340px;
    overflow: hidden;
    background: #f8fafc;
    position: relative;
}

.teacher-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    filter: contrast(1.02) saturate(1.05) brightness(0.95);
}

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

.teacher-footer {
    padding: 24px;
    text-align: center;
    background: white;
    border-top: 1px solid #f1f5f9;
}

.teacher-footer h4 {
    font-size: 20px;
    margin-bottom: 6px;
    color: #1e293b;
    font-weight: 800;
}

.teacher-footer p {
    color: var(--primary);
    font-size: 10px;
    font-weight: 800;
    font-family: 'Unbounded', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Information Overlay on hover */
.teacher-hover-content {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px;
    color: white;
    opacity: 0;
    transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease;
    z-index: 5;
    text-align: center;
    backdrop-filter: blur(8px);
}

.teacher-card:hover .teacher-hover-content {
    opacity: 1;
}

.teacher-hover-content h3 {
    font-size: 14px;
    margin-bottom: 12px;
    color: var(--primary);
    text-transform: uppercase;
    font-weight: 800;
}

.teacher-hover-content p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-more-info {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: white;
    padding: 10px 20px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    margin: 0 auto;
}

/* --- CAROUSEL BUTTONS --- */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: background-color 0.3s, color 0.3s, border-color 0.3s, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s;
    cursor: pointer;
    color: #1e293b;
}

.carousel-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 15px 35px var(--primary-glow);
}

.prev-btn {
    left: -28px;
}

.next-btn {
    right: -28px;
}

@media (max-width: 1200px) {
    .prev-btn {
        left: 10px;
    }

    .next-btn {
        right: 10px;
    }
}

/* --- TEACHER DETAIL MODAL --- */
.teacher-modal {
    z-index: 2000;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transform: translateZ(0);
    will-change: transform, background-color;
    transition: background-color 0.3s, box-shadow 0.3s, transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px;
}

.teacher-modal.active {
    opacity: 1;
    visibility: visible;
}

.teacher-modal-content {
    background: white;
    width: 100%;
    max-width: 900px;
    border-radius: 40px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    transform: scale(0.9) translateY(40px);
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.6s, box-shadow 0.6s;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.2);
    position: relative;
}

.teacher-modal.active .teacher-modal-content {
    transform: scale(1) translateY(0);
}

.t-modal-img {
    height: 600px;
    background: #f1f5f9;
    overflow: hidden;
}

.t-modal-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 5%;
    filter: brightness(0.9) contrast(1.05) saturate(1.05);
    transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.t-modal-info {
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.t-modal-close {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
    z-index: 10;
}

.t-modal-close:hover {
    background: var(--primary);
    color: white;
    transform: rotate(90deg);
}

.t-modal-tag {
    display: inline-block;
    padding: 8px 16px;
    background: var(--light);
    color: var(--primary);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 800;
    font-family: 'Unbounded', sans-serif;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.t-modal-info h2 {
    font-size: 48px;
    margin-bottom: 10px;
}

.t-modal-position {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.t-modal-bio {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-main);
    margin-bottom: 40px;
    padding-left: 20px;
    border-left: 3px solid var(--primary);
}

.t-modal-extra {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.extra-item h5 {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 5px;
}

.extra-item p {
    font-weight: 700;
    font-size: 15px;
}

.message-modal-content {
    display: block !important;
    grid-template-columns: none !important;
    max-width: 500px !important;
    padding: 60px 40px !important;
    text-align: center;
}



@media (max-width: 900px) {
    .teacher-modal-content {
        grid-template-columns: 1fr;
        max-height: 95vh;
        width: 95%;
        border-radius: 30px;
        overflow-y: auto;
    }

    .t-modal-img {
        height: 300px;
    }

    .t-modal-info {
        padding: 30px 20px;
    }

    .t-modal-info h2 {
        font-size: 28px;
    }

    .t-modal-position {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .t-modal-bio {
        font-size: 14px;
        margin-bottom: 30px;
    }

    .t-modal-extra {
        gap: 15px;
    }

    .extra-item p {
        font-size: 13px;
    }

    .t-modal-close {
        top: 15px;
        right: 15px;
        width: 36px;
        height: 36px;
        background: white;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
}

/* ============ GALLERY ============ */
.gallery-section {
    padding: 120px 0;
    background: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 240px;
    gap: 20px;
    margin-top: 50px;
}

.gallery-item {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border);
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.5s, border-color 0.5s;
    background: #f1f5f9;
    will-change: transform, box-shadow;
    transform: translateZ(0);
}

/* Bento Grid Variations */
.gallery-item.wide {
    grid-column: span 2;
}

.gallery-item.tall {
    grid-row: span 2;
}

.gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.4s ease;
    filter: brightness(0.95) contrast(1.05) saturate(1.05);
    will-change: transform;
    content-visibility: auto;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 102, 255, 0.6), transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-overlay i {
    color: white;
    transform: scale(0.5);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0, 102, 255, 0.15);
    border-color: var(--primary);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-overlay i {
    transform: scale(1.2);
}

@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
    }
}

@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 250px;
        gap: 16px;
    }

    .gallery-item.wide,
    .gallery-item.tall,
    .gallery-item.large {
        grid-column: span 1;
        grid-row: span 1;
    }
}

/* ============ BRANCHES SECTION ============ */
.branches-section {
    padding: 120px 0;
}

.branches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
    margin-top: 60px;
}

.branch-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    transition: border-color 0.4s, transform 0.4s, box-shadow 0.4s;
}

.branch-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.branch-card h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--dark);
}

.branch-info {
    display: grid;
    gap: 16px;
    color: var(--text-muted);
    font-size: 15px;
}

.branch-info div {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 42px;
    border-radius: 100px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s, background-color 0.4s, color 0.4s;
    border: none;
    font-family: 'Unbounded', sans-serif;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 15px 35px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 45px var(--primary-glow);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.6s;
    z-index: -1;
}

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

.benefit-card.standout {
    grid-column: 1 / -1;
    display: flex;
    gap: 60px;
    align-items: center;
    text-align: left;
}

@media (max-width: 900px) {
    .benefit-card.standout {
        grid-column: 1 / -1;
    }
}

@media (max-width: 900px) {
    .benefit-card {
        padding: 24px;
    }

    .benefit-card.standout {
        flex-direction: column;
        align-items: flex-start;
        gap: 40px;
    }

    .benefit-card.standout>div {
        width: 100%;
    }
}

.btn-outline {
    background: rgba(0, 102, 255, 0.03);
    border: 1.5px solid var(--primary);
    color: var(--primary);
    font-weight: 700;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 25px var(--primary-glow);
}

.map-placeholder {
    height: 180px;
    background: var(--light);
    border-radius: 18px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
}

.map-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("https://www.google.com/maps/vt/pb=!1m4!1m3!1i14!2i13072!3i7447!2m3!1e0!2sm!3i601006520!3m17!2sen!3sus!5e1105!12m4!1e68!2m2!1sset!2sRoadmap!12m3!1e37!2m1!1ssmartmaps!12m4!1e92!2m2!1ssp!2s1!4m59!1e1!2b0!2shz!3si1!4m52!2m16!1e41!2m2!1ssvn!2s1!2m2!1sspt!2s1!2m2!1sp!2s1!2m2!1sit!2s1!2m2!1si!2s1!2m2!1ss!2s1!2m2!1sf!2s1!3m27!2m3!1e0!2sm!3i601006520!3m17!2sen!3sus!5e1105!12m4!1e68!2m2!1sset!2sRoadmap!12m3!1e37!2m1!1ssmartmaps!12m4!1e92!2m2!1ssp!2s1!4e0!5m4!1e4!8m2!1sen!2sus!10b1!16b1!17b1!18b1!19b1!20b1!24b1!25b1!26b1!27b1!30b1!31b1!32b1!33b1!34b1!35b1!36b1!37b1!38b1!39b1!41b1!42b1!43b1!44b1!45b1!46b1!47b1!48b1!49b1!50b1!51b1!52b1!55b1!56b1!58b1!59b1!60b1!62b1!63b1!64b1!65b1!66b1!67b1!68b1!69b1!71b1!72b1!73b1!74b1!75b1");
    background-size: cover;
    background-position: center;
    opacity: 0.6;
    filter: saturate(0.5) contrast(1.1);
}

.map-icon-pin {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--primary);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 8px rgba(0, 102, 255, 0.1);
    animation: pulse-pin 2s infinite;
}

@keyframes pulse-pin {
    0% {
        box-shadow: 0 0 0 0px rgba(0, 102, 255, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(0, 102, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0px rgba(0, 102, 255, 0);
    }
}

/* ============ RESULTS LOUPE ============ */
.results-section {
    padding: 120px 0;
    overflow: hidden;
    background: var(--light);
}

.results-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.results-scroll-wrap {
    position: relative;
    grid-column: 1 / -1;
    width: 100%;
}

.results-scroll-row {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 10px 0 20px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.results-scroll-row::-webkit-scrollbar {
    display: none;
}


@media (min-width: 1025px) {
    .results-carousel-container {
        position: relative;
        width: 100%;
    }

    .results-container {
        display: grid;
        grid-auto-flow: column;
        grid-template-rows: repeat(2, 380px);
        grid-auto-columns: calc((100% - 72px) / 4);
        width: 100%;
        overflow-x: auto;
        gap: 24px;
        scroll-behavior: smooth;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding: 10px 0 30px;
    }

    .results-container::-webkit-scrollbar {
        display: none;
    }

    .results-container .result-item {
        width: 100%;
        flex: none;
        scroll-snap-align: center;
    }
}

.result-item {
    border-radius: 20px;
    overflow: hidden;
    border: 1.5px solid var(--border);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    background: #fff;
    transition: border-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 380px;
    /* Restoring standard height */
    cursor: pointer;
}

.result-item:hover {
    border-color: var(--primary);
}

.result-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    padding: 5px;
    background: #fff;
    transition: none;
}

/* --- Result Score Badge (Floating Glass Pill) --- */
.result-score-badge {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 10px 24px;
    border-radius: 100px;
    font-size: 32px;
    font-weight: 950;
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0, 102, 255, 0.4);
    font-family: 'Unbounded', sans-serif;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    /* backdrop-filter: blur(12px); */
    line-height: 1;
    overflow: hidden;
}

/* Shine Animation */
.result-score-badge::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    /* animation: badge-shine 3s infinite; */
    animation: none;
}

@keyframes badge-shine {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

.result-score-badge::before {
    content: 'IELTS';
    font-size: 10px;
    font-weight: 800;
    margin-right: 10px;
    opacity: 0.8;
    letter-spacing: 0.1em;
}

/* Hide IELTS prefix on Desktop specifically */
@media (min-width: 1025px) {
    .result-score-badge::before {
        display: none;
    }
}

.result-score-badge span {
    display: block;
    margin-bottom: 5px;
}

/* --- Results: Tablets (601px–1024px) --- */
@media (max-width: 1024px) {
    .results-carousel-container .carousel-btn {
        display: none !important;
    }

    .results-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        align-items: start;
    }
}

@media (max-width: 900px) {
    .results-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .result-item {
        height: auto;
        aspect-ratio: 3 / 4;
        padding: 0;
        border: 4px solid white;
        background: #fff;
        border-radius: 20px;
    }

    .result-item img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: contain;
        background: #fff;
    }

    .result-score-badge {
        bottom: 12px;
        left: 12px;
        padding: 8px 20px;
        font-size: 28px;
        border: 1.5px solid rgba(255, 255, 255, 0.2);
    }

    .result-score-badge::before {
        font-size: 9px;
        margin-right: 8px;
    }
}

/* --- Results: Large phones (≤768px) — 2 columns --- */
@media (max-width: 768px) {
    .results-container {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .result-item {
        aspect-ratio: 3 / 4;
        border: 3px solid white;
        border-radius: 16px;
    }

    .result-score-badge {
        bottom: 10px;
        left: 10px;
        padding: 6px 16px;
        font-size: 24px;
    }

    .result-score-badge::before {
        font-size: 8px;
        margin-right: 6px;
    }
}

/* --- Results: Standard phones (≤480px) --- */
@media (max-width: 480px) {
    .results-container {
        gap: 10px;
    }

    .result-item {
        border: 2px solid white;
        border-radius: 12px;
    }

    .result-score-badge {
        bottom: 8px;
        left: 8px;
        padding: 5px 14px;
        font-size: 20px;
    }

    .result-score-badge::before {
        display: none;
        /* Hide 'IELTS' label on very small screens to save space */
    }
}

/* --- Results: Small phones (≤375px) --- */
@media (max-width: 375px) {
    .result-score-badge {
        bottom: 6px;
        left: 6px;
        padding: 4px 12px;
        font-size: 18px;
    }
}


/* ============ FOOTER ============ */
footer {
    background: #0F172A;
    color: white;
    padding: 100px 0 0;
    position: relative;
    overflow: hidden;
}

/* Decorative gradient in footer */
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

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

.footer-col h4 {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

.footer-about p {
    font-size: 15px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 30px;
    max-width: 320px;
}

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

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

.footer-links a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 15px;
    transition: 0.3s;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.footer-contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    line-height: 1.5;
}

.footer-contact-item i {
    color: var(--primary);
    flex-shrink: 0;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    transition: 0.3s;
}

.social-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 102, 255, 0.3);
}

.footer-bottom {
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 50px;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* .reveal animation removed — elements always visible */
.reveal {
    opacity: 1;
    transform: none;
}

.reveal.active {
    opacity: 1;
    transform: none;
}

@media (max-width: 768px) {
    .carousel-btn {
        display: none;
    }
}

/* ============ ADVANTAGES (WHY US) ============ */
.benefits-section {
    background: var(--white);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 60px;
}

@media (max-width: 1100px) {
    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

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

@media (max-width: 1024px) {
    .benefit-card {
        padding: 30px;
    }

    .course-card {
        padding: 24px;
    }
}

.benefit-card {
    padding: 48px;
    border-radius: var(--radius-lg);
    background: var(--light);
    border: 1px solid var(--border);
    transition: 0.4s;
}

.benefit-card:hover {
    transform: translateY(-10px);
    background: white;
    border-color: var(--primary);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.05);
}

.benefit-icon {
    width: 64px;
    height: 64px;
    background: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border);
}

.benefit-card h3 {
    font-size: 24px;
    margin-bottom: 16px;
    font-weight: 700;
}

.benefit-card p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.7;
}

.benefit-extra {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.extra-tag {
    background: white;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid var(--border);
    color: var(--primary);
}

/* ============ FLOATING CHAT ============ */
.floating-chat {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 1000;
    width: 70px;
    height: 70px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 15px 40px var(--primary-glow);
    transition: 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    text-decoration: none;
}

.floating-chat:hover {
    transform: scale(1.12);
    box-shadow: 0 20px 50px var(--primary-glow);
    background: var(--primary-dark);
}

.floating-chat i {
    width: 32px;
    height: 32px;
}

@media (max-width: 1024px) {
    .floating-chat {
        bottom: 20px;
        right: 20px;
        width: 60px;
        height: 60px;
    }

    .branches-grid {
        gap: 20px;
    }

    /* Clean Mobile Grid */
    .teachers-mobile-layout {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        /* 3 columns for tablet (e.g. iPad) */
        gap: 20px;
        width: 100%;
    }

    @media (max-width: 900px) {
        .teachers-mobile-layout {
            grid-template-columns: 1fr 1fr;
            /* 2 columns for large phones */
            gap: 15px;
        }
    }

    @media (max-width: 480px) {
        .teachers-mobile-layout {
            grid-template-columns: 1fr 1fr;
            /* 2 columns for small phones as requested */
            gap: 12px;
        }
    }

    .teacher-card {
        will-change: transform, box-shadow;
        transform: translateZ(0);
        border-radius: 20px;
        background: white;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    }

    .teacher-img-wrap {
        height: auto;
        aspect-ratio: 3/4;
        border-radius: 0;
    }

    .teacher-footer {
        padding: 15px 10px;
    }

    .teacher-footer h4 {
        font-size: 15px;
        color: #1e293b;
    }

    .teacher-footer p {
        font-size: 10px !important;
        font-weight: 800;
        font-family: 'Unbounded', sans-serif;
        color: var(--primary);
    }

    .teacher-hover-content {
        display: none !important;
    }

    .carousel-btn {
        display: none !important;
    }
}

@media (min-width: 1025px) {
    .teachers-mobile-grid {
        display: flex;
        gap: 24px;
    }

    .teachers-scroll-wrap {
        display: flex;
        width: 100%;
    }

    .teachers-scroll-row {
        display: flex;
        gap: 24px;
        overflow: visible;
    }

    .scroll-hint {
        display: none;
    }
}

/* ============ CONTACT SECTION V2 ============ */
.contact-card-v2 {
    background: #0F172A;
    border-radius: 40px;
    padding: 80px;
    display: flex;
    gap: 80px;
    align-items: center;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0, 102, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-card-v2::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.2) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.contact-info {
    flex: 1;
    position: relative;
    z-index: 1;
}

.contact-title {
    font-family: 'Unbounded', sans-serif;
    font-size: clamp(36px, 6vw, 64px);
    color: white;
    line-height: 1.0;
    font-weight: 900;
    margin-bottom: 24px;
    letter-spacing: -0.04em;
}

.contact-title span {
    background: linear-gradient(135deg, #0066FF 0%, #00D1FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-p {
    font-size: 18px;
    opacity: 0.6;
    max-width: 400px;
    line-height: 1.6;
}

.contact-form-wrap {
    flex: 1;
    background: rgba(255, 255, 255, 0.04);
    padding: 48px;
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 1;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    overflow: hidden;
}

.contact-form-wrap::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 70% 30%, rgba(0, 102, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 12px;
    color: var(--primary);
    opacity: 1;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    color: white;
    font-size: 15px;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    appearance: none;
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%230066FF' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    padding-right: 50px;
    cursor: pointer;
}

.form-group select option {
    background: #0F172A;
    color: white;
    padding: 12px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    box-shadow: 0 0 0 5px rgba(0, 102, 255, 0.2);
    transform: scale(1.01);
}

@media (max-width: 1024px) {
    .contact-card-v2 {
        flex-direction: column;
        padding: 60px 40px;
        gap: 60px;
        text-align: center;
    }

    .contact-title {
        font-size: 44px;
    }

    .contact-p {
        margin: 0 auto;
    }

    .contact-form-wrap {
        width: 100%;
        padding: 40px 30px;
    }
}

@media (max-width: 900px) {
    .contact-card-v2 {
        padding: 40px 24px;
        gap: 40px;
        border-radius: 20px;
    }

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

    .contact-p {
        font-size: 16px;
    }

    .contact-form-wrap {
        padding: 30px 20px;
        border-radius: 16px;
    }

    .form-group input {
        padding: 14px 18px;
        font-size: 15px;
        border-radius: 12px;
    }

    .form-group {
        margin-bottom: 18px;
    }
}

@media (max-width: 600px) {
    .contact-card-v2 {
        padding: 30px 16px;
        gap: 30px;
        border-radius: 16px;
    }

    .contact-title {
        font-size: 28px;
    }

    .contact-p {
        font-size: 15px;
        max-width: 100%;
    }

    .contact-form-wrap {
        padding: 24px 16px;
        border-radius: 14px;
    }

    .form-group input {
        padding: 12px 14px;
        font-size: 14px;
    }

    .form-group label {
        font-size: 10px;
        margin-bottom: 8px;
    }

    .form-group {
        margin-bottom: 14px;
    }
}

@media (max-width: 480px) {
    .contact-card-v2 {
        padding: 24px 14px;
        gap: 24px;
        border-radius: 14px;
    }

    .contact-title {
        font-size: 24px;
    }

    .contact-form-wrap {
        padding: 20px 12px;
        border-radius: 12px;
    }

    .form-group input {
        padding: 12px;
    }
}

@media (max-width: 375px) {
    .contact-card-v2 {
        padding: 20px 12px;
        gap: 20px;
        border-radius: 12px;
    }

    .contact-title {
        font-size: 22px;
        margin-bottom: 16px;
    }

    .contact-p {
        font-size: 14px;
    }

    .contact-form-wrap {
        padding: 16px 10px;
    }

    .form-group input {
        padding: 10px 12px;
        font-size: 14px;
    }
}

@media (max-width: 320px) {
    .contact-card-v2 {
        padding: 16px 10px;
    }

    .contact-title {
        font-size: 20px;
    }

    .form-group input {
        padding: 10px;
        font-size: 13px;
    }
}

/* ============ LIGHTBOX ============ */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(15px);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.lightbox.active .lightbox-content img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 40px;
    right: 40px;
    color: white;
    cursor: pointer;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    z-index: 10;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--primary);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    cursor: pointer;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox-nav:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.lb-prev {
    left: 40px;
}

.lb-next {
    right: 40px;
}

@media (max-width: 768px) {
    .lightbox-nav {
        width: 44px;
        height: 44px;
    }

    .lb-prev {
        left: 10px;
    }

    .lb-next {
        right: 10px;
    }

    .lightbox-close {
        top: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
}

/* ============ SCROLL ANCHORING (sticky header offset) ============ */
section[id],
[id] {
    scroll-margin-top: 90px;
}



.bg-accent-blob {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.06;
    pointer-events: none;
    z-index: -1;
    transform: translate3d(0, 0, 0);
}

@media (max-width: 900px) {
    .bg-accent-blob {
        filter: none;
        opacity: 0.03;
        border: 1px solid rgba(0, 0, 0, 0.05);
        opacity: 0.04;
    }

}

.blob-1 {
    top: 10%;
    left: -10%;
    background: #0066FF;
}

.blob-2 {
    bottom: 10%;
    right: -10%;
    background: #EC4899;
}

.blob-3 {
    top: 40%;
    right: -5%;
    background: #10B981;
}

/* ============ CAREERS PAGE ============ */

/* --- Hero Section --- */
.careers-hero-section {
    height: 100vh;
    height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 0;
    background: var(--white);
}

.careers-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.careers-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
}

.careers-orb-1 {
    width: 500px;
    height: 500px;
    background: var(--primary);
    top: -10%;
    right: -5%;
    animation: careers-float-1 12s ease-in-out infinite;
}

.careers-orb-2 {
    width: 400px;
    height: 400px;
    background: #00D1FF;
    bottom: -10%;
    left: -5%;
    animation: careers-float-2 15s ease-in-out infinite;
}

.careers-orb-3 {
    width: 300px;
    height: 300px;
    background: #AF52DE;
    top: 40%;
    left: 50%;
    transform: translateX(-50%);
    animation: careers-float-3 10s ease-in-out infinite;
}

@keyframes careers-float-1 {

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

    50% {
        transform: translate(-60px, 40px) scale(1.2);
    }
}

@keyframes careers-float-2 {

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

    50% {
        transform: translate(50px, -30px) scale(1.15);
    }
}

@keyframes careers-float-3 {

    0%,
    100% {
        transform: translateX(-50%) scale(1);
        opacity: 0.1;
    }

    50% {
        transform: translateX(-50%) scale(1.3);
        opacity: 0.2;
    }
}

.careers-hero-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.careers-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.2em;
    color: var(--primary);
    background: rgba(0, 102, 255, 0.06);
    border: 1px solid rgba(0, 102, 255, 0.12);
    padding: 10px 24px;
    border-radius: 100px;
    margin-bottom: 32px;
    font-family: 'Unbounded', sans-serif;
    text-transform: uppercase;
    animation: badge-pulse 3s ease-in-out infinite;
}

.careers-title {
    font-size: clamp(24px, 5vw, 48px);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 16px;
    font-family: 'Unbounded', sans-serif;
    color: var(--dark);
    word-break: break-word;
    hyphens: auto;
}

@media (max-width: 330px) {
    .careers-title {
        font-size: 22px;
    }

    .header-wrapper {
        padding: 0 5px;
    }

    .logo-img {
        height: 40px;
    }
}

.careers-title-accent {
    background: linear-gradient(135deg, #0066FF 0%, #00D1FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.careers-subtitle {
    font-size: clamp(14px, 1.5vw, 17px);
    color: var(--text-muted);
    max-width: 480px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

.careers-cta {
    font-size: 14px;
    padding: 14px 28px;
}

/* --- Perks --- */
.careers-perks-section {
    padding: 60px 0;
    background: #f8fafc;
}

.careers-perks-header {
    text-align: center;
    margin-bottom: 40px;
}

.careers-perks-header h2 {
    font-size: clamp(22px, 3vw, 32px);
    margin-top: 10px;
}

.careers-perks-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.careers-perk-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px 20px;
    transition: 0.3s ease;
}

.careers-perk-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0, 102, 255, 0.05);
}

.perk-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    background: #f1f5f9;
}

.careers-perk-card h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
    font-family: 'Unbounded', sans-serif;
}

.careers-perk-card p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* --- Team --- */
.careers-team-section {
    padding: 60px 0;
    background: var(--white);
}

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

.careers-team-img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: 20px;
}

.careers-team-content h3 {
    font-size: clamp(20px, 2.5vw, 28px);
    margin-bottom: 16px;
    font-family: 'Unbounded', sans-serif;
}

.careers-team-content p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 12px;
}

.careers-team-stats {
    display: flex;
    gap: 24px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.careers-stat h4 {
    font-size: 24px;
    font-weight: 900;
    color: var(--primary);
    font-family: 'Unbounded', sans-serif;
}

.careers-stat p {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
}

/* --- Compact Form --- */
.careers-apply-section {
    padding: 60px 0;
    background: #f8fafc;
}

/* --- Premium Compact Form --- */
.careers-apply-section {
    padding: 80px 0;
    background: linear-gradient(to bottom, #ffffff, #f8fafc);
}

/* --- Careers Form Card (Premium Dark Style) --- */
.careers-form-card {
    max-width: 640px;
    margin: 0 auto;
    background: #0F172A;
    border-radius: 40px;
    padding: 60px;
    box-shadow: 0 40px 100px rgba(0, 102, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: formAppear 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.careers-form-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 70% 30%, rgba(0, 102, 255, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

@keyframes formAppear {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.careers-form-card:hover {
    border-color: rgba(0, 102, 255, 0.3);
    box-shadow: 0 40px 100px rgba(0, 102, 255, 0.2);
}

.careers-form-header-small {
    text-align: center;
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
}

.careers-form-header-small h2 {
    font-family: 'Unbounded', sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: white;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.careers-form-header-small p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 15px;
}

.careers-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.careers-form-card .form-group {
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.careers-form-card .form-group label {
    display: block;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
    color: var(--primary);
}

.careers-form-card .form-group input,
.careers-form-card .form-group select {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    font-size: 14px;
    color: white;
    transition: all 0.3s ease;
    outline: none;
}

.careers-form-card .form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230066FF' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.careers-form-card .form-group input::placeholder {
    color: rgba(255, 255, 255, 0.3);
    font-size: 13px;
}

.careers-form-card .btn-primary {
    width: 100%;
    padding: 18px;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 10px;
    font-family: 'Unbounded', sans-serif;
    position: relative;
    z-index: 1;
}

.btn-compact {
    padding: 14px 24px;
    font-family: 'Unbounded', sans-serif;
    font-size: 13px;
    font-weight: 700;
    width: 100%;
    border-radius: 12px;
    margin-top: 8px;
    background: linear-gradient(135deg, var(--primary) 0%, #0052cc 100%);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.2);
}

.btn-compact:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.3);
    filter: brightness(1.1);
}

.btn-compact:active {
    transform: translateY(0);
}

.careers-form-footer-simple {
    margin-top: 24px;
    padding-top: 24px;
    display: flex;
    justify-content: center;
    gap: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 1;
}

.careers-form-footer-simple .f-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.careers-form-footer-simple .f-item i {
    color: #10B981;
    filter: drop-shadow(0 0 5px rgba(16, 185, 129, 0.3));
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .careers-perks-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .careers-team-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .careers-team-img {
        height: 320px;
    }
}

@media (max-width: 900px) {
    .careers-hero-section {
        padding: 0;
    }

    .careers-form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .careers-perks-grid {
        grid-template-columns: 1fr;
    }

    .careers-mobile-container {
        padding: 0 15px !important;
    }

    .careers-form-card {
        padding: 30px 18px;
    }
}

@media (max-width: 480px) {
    .careers-hero-section {
        padding: 80px 15px 30px;
    }

    .careers-form-card {
        padding: 24px 15px;
        border-radius: 16px;
    }

    .careers-form-header-small h2 {
        font-size: 22px;
    }

    .careers-form-footer-simple {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .careers-team-stats {
        flex-wrap: wrap;
    }

    .careers-stat {
        flex: 0 0 45%;
    }
}

@media (max-width: 330px) {
    .careers-mobile-container {
        padding: 0 10px !important;
    }

    .careers-form-card {
        padding: 24px 12px;
        border-radius: 16px;
        width: calc(100% - 4px);
        margin: 0 auto;
    }

    .careers-title {
        font-size: 22px;
    }

    .careers-form-header-small h2 {
        font-size: 19px;
    }

    .careers-form-footer-simple {
        gap: 8px;
    }

    .careers-form-footer-simple .f-item {
        font-size: 10px;
    }
}

/* --- Hiring Banner (Main Page) --- */
.hiring-banner-section {
    padding: 40px 0 100px;
    background: #ffffff;
}

.hiring-banner-card {
    background: #0F172A;
    border-radius: 32px;
    padding: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 102, 255, 0.15);
}

.hiring-banner-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.hiring-badge {
    display: inline-block;
    background: rgba(0, 102, 255, 0.1);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 102, 255, 0.2);
    font-family: 'Unbounded', sans-serif;
}

.hiring-banner-content h2 {
    font-family: 'Unbounded', sans-serif;
    font-size: clamp(24px, 4vw, 40px);
    color: white;
    margin-bottom: 12px;
    line-height: 1.1;
}

.hiring-banner-content p {
    font-size: 16px;
    opacity: 0.6;
    max-width: 500px;
}

@media (max-width: 900px) {
    .hiring-banner-card {
        flex-direction: column;
        text-align: center;
        padding: 40px 30px;
    }

    .hiring-banner-content p {
        margin: 0 auto;
    }
}

/* ============ GLOBAL MOBILE ADAPTATION ============ */
@media (max-width: 900px) {

    /* General Spacing */
    section {
        padding: 70px 0 !important;
    }

    .container {
        padding: 0 20px;
    }

    /* Typography */
    h2 {
        font-size: 32px !important;
        line-height: 1.2 !important;
    }

    h3 {
        font-size: 22px !important;
    }

    p {
        font-size: 15px !important;
    }

    /* Hero Enhancements */
    .hero {
        padding-top: 100px !important;
        height: 100vh !important;
        height: 100dvh !important;
        min-height: -webkit-fill-available;
        padding-bottom: 40px !important;
        display: flex;
        flex-direction: column;
        justify-content: center;
        box-sizing: border-box;
    }

    .hero-wrapper {
        padding: 0 !important;
        margin-top: -20px;
        /* Slight nudge up for better visual centering */
    }

    .hero-badge {
        margin-bottom: 20px !important;
    }

    .hero-title {
        font-size: clamp(28px, 8vw, 42px) !important;
        margin-bottom: 15px !important;
    }

    .hero-subtitle {
        font-size: 15px !important;
        margin-bottom: 25px !important;
        max-width: 100%;
    }

    .hero-actions {
        flex-direction: column;
        gap: 12px !important;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    /* Component Adjustments */
    .benefit-card,
    .course-card,
    .result-card,
    .branch-card {
        padding: 24px !important;
    }

    /* Grid Layouts */
    .benefits-grid,
    .courses-grid,
    .branches-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        margin-top: 30px !important;
    }

    .careers-hero-section {
        height: 100vh !important;
        height: 100dvh !important;
        min-height: -webkit-fill-available;
        padding: 0 !important;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    /* Ensure left alignment works cleanly on small screens */
    div[style*="text-align: left"] {
        margin-bottom: 30px !important;
    }

    /* Hide desktop scroll indicator on mobile to save space */
    .hero-scroll-indicator {
        display: none;
    }
}

#resultsShowMoreWrap {
    display: none;
}

@media (max-width: 1024px) {
    #resultsShowMoreWrap {
        display: block;
    }
}

/* --- Performance Patch for Desktop Results --- */
@media (min-width: 1025px) {
    .result-score-badge {
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }

    .result-score-badge::after {
        animation: badge-shine 3s infinite !important;
    }
}