/* =============================================
   ESOL Education — Handcrafted CSS
   Fonts: Quicksand (headings) · Hind Siliguri (body)
   Colors: Primary Blue · Vibrant Blue · Dark Navy
   ============================================= */

/* ── DESIGN TOKENS ──────────────────────────── */
:root {
    --primary-blue: #194685;
    --vibrant-blue: #0A0A9D;
    --dark-navy: #050540;
    --volt-yellow: #F5FB38;
    --success-green: #39FC6B;
    --bg-light: #F9FAFB;
    --bg-medium-blue: #4E5AB3;
    --text-dark: #2B2D42;
    --text-grey: #6B7280;
    --white: #ffffff;

    --font-heading: 'Quicksand', sans-serif;
    --font-body: 'Hind Siliguri', sans-serif;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-pill: 50px;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.10);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.18);

    --transition: 0.3s ease;
}

/* ── KEYFRAMES ──────────────────────────────── */
@keyframes slideInUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

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

@keyframes slideInLeft {
    from {
        transform: translateX(-60px);
        opacity: 0;
    }

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

@keyframes slideInRight {
    from {
        transform: translateX(60px);
        opacity: 0;
    }

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes bounceInLeft {
    0% {
        transform: translateX(-80px) scale(0.9);
        opacity: 0;
    }

    60% {
        transform: translateX(10px) scale(1.02);
        opacity: 1;
    }

    80% {
        transform: translateX(-5px) scale(0.99);
    }

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

/* ── RESET & BASE ───────────────────────────── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.75;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

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

h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-blue);
    line-height: 1.25;
}

/* ── CONTAINER ──────────────────────────────── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── SCROLL-REVEAL SYSTEM ───────────────────── */
.reveal {
    opacity: 0;
    visibility: hidden;
    will-change: transform, opacity;
}

.revealed {
    opacity: 1 !important;
    visibility: visible !important;
}

.revealed.ani-slideInUp {
    animation: slideInUp 0.65s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.revealed.ani-slideInLeft {
    animation: slideInLeft 0.65s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.revealed.ani-slideInRight {
    animation: slideInRight 0.65s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.revealed.ani-fadeIn {
    animation: fadeIn 0.8s ease forwards;
}

.revealed.ani-bounceInLeft {
    animation: bounceInLeft 0.8s ease forwards;
}

.delay-1 {
    animation-delay: 0.15s;
}

.delay-2 {
    animation-delay: 0.30s;
}

.delay-3 {
    animation-delay: 0.45s;
}

/* ── HEADER / NAV ───────────────────────────── */
/* ── TOP BAR ────────────────────────────────── */
.topbar {
    background-color: #F8F9FA;
    border-bottom: 1px solid #EAEAEA;
    padding: 8px 0;
    font-size: 0.9rem;
    font-family: var(--font-body);
}

.topbar-content {
    display: flex;
    justify-content: flex-end;
}

.topbar-right a {
    color: var(--primary-blue);
    margin-left: 20px;
    display: inline-flex;
    align-items: center;
    font-weight: 500;
}

.topbar-flag {
    width: 20px;
    margin-right: 6px;
}

.topbar-login i {
    margin-right: 6px;
    color: var(--vibrant-blue);
}

header {
    background: var(--white);
    padding: 18px 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    position: static;
    top: 0;
    z-index: 1000;
}

.nav-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 48px;
    width: auto;
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 4px;
}

nav ul li a {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-dark);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    transition: background var(--transition), color var(--transition);
    border-bottom: 3px solid transparent;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--vibrant-blue);
    border-bottom: 3px solid var(--vibrant-blue);
}

/* Make sure Contact Us inherits same nav styling as original */
nav ul li:last-child a {
    background: transparent;
    color: var(--text-dark) !important;
}

nav ul li:last-child a:hover {
    color: var(--vibrant-blue) !important;
}

.burger {
    display: none;
    cursor: pointer;
}

/* ── BUTTONS ────────────────────────────────── */
.btn-cta {
    display: inline-block;
    background: var(--vibrant-blue);
    color: var(--white) !important;
    padding: 14px 32px;
    border-radius: var(--radius-pill);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all var(--transition);
    border: none;
    cursor: pointer;
    letter-spacing: 0.3px;
}

.btn-cta:hover {
    background: var(--primary-blue);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(10, 10, 157, 0.3);
}

.btn-large {
    font-size: 1.15rem;
    padding: 18px 44px;
}

.btn-white {
    display: inline-block;
    background: var(--white);
    color: var(--primary-blue);
    padding: 10px 22px;
    border-radius: var(--radius-pill);
    font-family: var(--font-heading);
    font-weight: 700;
    text-decoration: none;
    transition: all var(--transition);
    letter-spacing: 0.3px;
}

.btn-white:hover {
    background: var(--volt-yellow);
    color: var(--dark-navy);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(245, 251, 56, 0.4);
}

/* ── HERO ───────────────────────────────────── */
.hero {
    padding: 70px 0 90px;
    background: #FFFFFF;
    color: var(--text-dark);
}

.hero .grid-2 {
    align-items: center;
    gap: 60px;
}

.hero-content {
    text-align: left;
}

.hero h1 {
    font-size: clamp(3.5rem, 6vw, 6rem);
    color: #0A0A9D;
    line-height: 1.05;
    font-weight: 900;
    margin-bottom: 28px;
}

.hero-list {
    list-style: none;
    margin-bottom: 44px;
}

.hero-list li {
    font-size: 1.15rem;
    font-weight: 500;
    margin-bottom: 14px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.red-dot {
    color: red;
    font-size: 1.2rem;
    margin-top: -2px;
    flex-shrink: 0;
}

.hero-image img {
    border-radius: var(--radius-lg);
    box-shadow: none;
    /* No shadow on image in original */
}

/* ── SECTION BASE ───────────────────────────── */
.section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    text-align: center;
    margin-bottom: 64px;
    color: var(--primary-blue);
    line-height: 1.25;
}

.bg-blue {
    background-color: #4A5BB2 !important;
    color: var(--white) !important;
}

.bg-blue .section-title {
    color: var(--white);
}

.bg-blue h3 {
    color: var(--white) !important;
}

.bg-blue .feature-list li {
    color: #f0f0f0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.bg-blue .feature-list i {
    color: var(--volt-yellow);
}

.bg-blue .btn-cta {
    background: #0A0A9D !important;
    color: var(--white) !important;
}

.bg-blue .btn-cta:hover {
    background: var(--white) !important;
    color: #0A0A9D !important;
}

.bg-vibrant {
    background-color: var(--vibrant-blue) !important;
    color: var(--white) !important;
}

.bg-vibrant .section-title {
    color: var(--white);
}

.bg-vibrant h2 {
    color: var(--white) !important;
}

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

.bg-light-gradient {
    background: linear-gradient(180deg, #F9FBFC 0%, #E8EDF2 100%);
}

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

/* ── GRIDS ──────────────────────────────────── */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
}

/* ── FEATURE ROWS (Why Choose Us) ───────────── */
.feature-row {
    margin-bottom: 100px;
}

.feature-row:last-child {
    margin-bottom: 0;
}

.text-block h3 {
    font-size: clamp(1.5rem, 2.5vw, 2.1rem);
    color: var(--primary-blue);
    margin-bottom: 24px;
    line-height: 1.3;
}

.image-block img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* Feature checklist */
.feature-list {
    list-style: none;
    margin-bottom: 8px;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    font-size: 1.05rem;
    color: var(--text-dark);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list i {
    color: var(--vibrant-blue);
    font-size: 1rem;
    margin-top: 4px;
    flex-shrink: 0;
}

/* ── ACCREDITATIONS BLOCK ───────────────────── */
.accreditations-block {
    text-align: center;
    padding: 20px 0;
}

.accreditations-block img {
    max-width: 100%;
    border-radius: var(--radius-md);
    margin: 0 auto;
}

.accreditations-block p {
    font-size: 1.1rem;
    max-width: 860px;
    margin: 32px auto 0;
    color: var(--text-grey);
    line-height: 1.75;
}

/* ── PRICING CARDS ──────────────────────────── */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.pricing-card {
    background: var(--vibrant-blue) !important;
    padding: 56px 36px 40px;
    border-radius: 24px;
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform var(--transition);
    box-shadow: none !important;
    display: flex;
    flex-direction: column;
}

.pricing-card h3 {
    color: var(--white);
    font-size: 1.8rem;
    margin-bottom: 24px;
}

.pricing-divider {
    width: 60px;
    margin: 0 auto 30px;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.4);
}

.pricing-card .price {
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 8px;
    font-family: var(--font-body);
}

.pricing-card .price-sub {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

.pricing-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    flex-grow: 1;
}

.pricing-list li {
    padding: 10px 0;
    font-size: 1.05rem;
    display: block;
    text-align: center;
}

.pricing-list li i {
    color: #4ade80;
    /* bright green matching the screenshot */
    font-size: 1.1rem;
    margin-right: 8px;
}

.btn-white-pill {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background: var(--white);
    color: var(--vibrant-blue);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 10px 16px;
    border-radius: 50px;
    text-decoration: none;
    transition: background 0.3s, color 0.3s;
    margin-top: 15px;
}

.btn-white-pill:hover {
    background: #39FC6B;
    /* Exact Elementor hover grape color */
    color: var(--vibrant-blue);
}

/* ── COURSE CARDS ───────────────────────────── */
.course-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

@media (min-width: 900px) {
    .certificate-span {
        grid-column: span 2;
    }
}

.course-card {
    background: transparent;
    border: none;
    box-shadow: none;
    transition: transform var(--transition);
}

.course-card:hover {
    transform: translateY(-5px);
}

.course-image-wrap {
    position: relative;
    width: 100%;
}

.course-image-wrap img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.course-badge {
    position: absolute;
    bottom: 0;
    left: 5%;
    width: 90%;
    background: var(--vibrant-blue);
    color: var(--white);
    padding: 6px 10px;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 700;
    font-family: var(--font-heading);
    border-radius: 6px 6px 0 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.card-content {
    padding: 24px 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card-content p {
    font-size: 1.05rem;
    color: var(--white);
    line-height: 1.5;
    margin-bottom: 20px;
}

.btn-course {
    display: inline-block;
    background: var(--vibrant-blue);
    color: var(--white);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 10px 24px;
    border-radius: 50px;
    text-decoration: none;
    transition: opacity 0.3s;
    text-transform: uppercase;
}

.btn-course:hover {
    opacity: 0.85;
}

/* ── TEACHER GRID ───────────────────────────── */
.teacher-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.teacher-grid a {
    display: block;
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}

.teacher-grid a:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.teacher-grid img {
    width: 100%;
    border-radius: var(--radius-md);
}

/* ── STEP LIST (SCQF) ───────────────────────── */
.step-list {
    list-style: none;
    text-align: left;
}

.step-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 0;
    font-size: 1.1rem;
    line-height: 1.6;
    border-bottom: 1px solid #E5E7EB;
}

.step-list li:last-child {
    border-bottom: none;
}

.step-list b {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    background: var(--vibrant-blue);
    color: var(--white);
    border-radius: 50%;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    flex-shrink: 0;
}

/* ── AFFILIATIONS GRID ──────────────────────── */
.affiliations-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 48px;
}

.affiliations-grid a {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: transform var(--transition);
}

.affiliations-grid a:hover {
    transform: scale(1.06);
}

.affiliations-grid img {
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.affiliations-grid a:nth-child(1) img {
    width: 420px;
    max-width: 100%;
}

.affiliations-grid a:nth-child(2) img {
    width: 380px;
    max-width: 100%;
    border-radius: 12px;
}

.affiliations-grid a:nth-child(3) img {
    width: 320px;
    max-width: 100%;
}

@media (max-width: 900px) {
    .affiliations-grid a:nth-child(1) img {
        width: 300px;
    }

    .affiliations-grid a:nth-child(2) img {
        width: 280px;
    }

    .affiliations-grid a:nth-child(3) img {
        width: 240px;
    }
}

@media (max-width: 768px) {

    .affiliations-grid a:nth-child(1) img,
    .affiliations-grid a:nth-child(2) img,
    .affiliations-grid a:nth-child(3) img {
        width: 100%;
        max-width: 250px;
    }
}

/* ── VIDEO WRAPPER ──────────────────────────── */
.video-container {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    display: block;
}

/* ── FOOTER ─────────────────────────────────── */
.footer {
    background: var(--vibrant-blue);
    color: var(--white);
    padding: 60px 0 40px;
    position: relative;
    overflow: hidden;
}

.footer-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 40px;
}

.footer-bottom-left {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-copy {
    font-size: 1rem;
    color: var(--white);
}

.footer-tagline {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.868);
    user-select: none;
    pointer-events: none;
}

.footer-bottom-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
}

.footer-bottom-right .btn-login {
    order: 1;
}

.footer-bottom-right .footer-links {
    order: 2;
}

.footer-links {
    display: flex;
    gap: 4px;
    align-items: center;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--white);
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    transition: color var(--transition);
}

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

.footer-links span {
    color: rgba(255, 255, 255, 0.4);
}

.btn-login {
    background: #FF0000;
    color: var(--white);
    padding: 12px 28px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 1.05rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform var(--transition);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.4);
}

/* ── UTILITY ────────────────────────────────── */
.mt-4 {
    margin-top: 2rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mt-8 {
    margin-top: 4rem;
}

.gap-sm {
    gap: 16px;
}

/* ── RESPONSIVE ─────────────────────────────── */
@media (max-width: 1100px) {
    .grid-2 {
        gap: 48px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 992px) {

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

    .teacher-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .section {
        padding: 80px 0;
    }
}

@media (max-width: 768px) {

    /* Stack all 2-col grids */
    .grid-2,
    .card-grid,
    .course-grid {
        grid-template-columns: 1fr;
    }

    /* Feature rows — image always below text on mobile */
    .feature-row .image-block {
        order: 2;
    }

    .feature-row .text-block {
        order: 1;
    }

    /* Mobile nav */
    .burger {
        display: flex;
        align-items: center;
        padding: 8px;
    }

    nav ul {
        display: none !important;
    }

    nav ul.nav-active {
        display: flex !important;
        flex-direction: column;
        position: fixed;
        top: 82px;
        left: 0;
        width: 100%;
        background: var(--white);
        padding: 32px 24px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
        gap: 8px;
        z-index: 999;
    }

    nav ul.nav-active li {
        margin: 0;
    }

    nav ul li:last-child a {
        display: inline-block;
    }

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

    .affiliations-grid {
        gap: 32px;
    }

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

    .footer-brand {
        grid-column: auto;
    }

    .hero {
        padding: 80px 0;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        margin-bottom: 40px;
    }

    .feature-row {
        margin-bottom: 64px;
    }
}

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

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

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

    .section-title {
        font-size: 1.7rem;
    }

    .hero h1 {
        font-size: 1.9rem;
    }

    .btn-large {
        font-size: 1rem;
        padding: 16px 32px;
    }

    .info-card {
        padding: 40px 24px;
    }

    .affiliations-grid img {
        max-height: 70px;
        max-width: 130px;
    }

    .need-help-section .grid-2 {
        gap: 0;
    }
}

/* ── NEED HELP SECTION ───────────────────────── */
.need-help-section {
    background: var(--primary-blue);
    color: var(--white);
    overflow: hidden;
    padding-bottom: 0 !important;
}

.need-help-section .grid-2 {
    align-items: flex-end;
}

.need-help-text h2 {
    color: var(--white);
}

.need-help-text p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    max-width: 480px;
}

.need-help-image img {
    border-radius: 0;
    box-shadow: none;
    display: block;
    width: 100%;
}

/* ── HERO — always visible (in viewport on load) ── */
.hero .reveal {
    opacity: 1 !important;
    visibility: visible !important;
}

/* But animate them once JS fires .revealed */
.hero .revealed.ani-slideInUp {
    animation: slideInUp 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.hero .revealed.ani-slideInLeft {
    animation: slideInLeft 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.hero .revealed.ani-bounceInLeft {
    animation: bounceInLeft 0.8s ease both;
}

.hero .revealed.ani-fadeIn {
    animation: fadeIn 0.9s ease both;
}

/* ── COURSE CARD LEVEL BADGE ────────────────── */
.course-card {
    position: relative;
}

/* ── SCQF STEPS VISUAL ENHANCEMENT ─────────── */
.step-list li a {
    color: var(--vibrant-blue);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.step-list li a:hover {
    color: var(--primary-blue);
}

/* ── PRICING SECTION TITLE ──────────────────── */
.bg-blue .section-title {
    color: var(--white);
}

/* ── SMOOTH BORDER FEATURE ROWS ─────────────── */
.feature-row+.feature-row {
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
}

/* ── SCROLLBAR THIN ─────────────────────────── */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--vibrant-blue);
}

/* ── RESTORED BACKGROUND UTILITIES ───────────────────────────── */
.bg-blue {
    background-color: #5466A8 !important;
    /* Soft slate blue matching original course cards */
    color: var(--white) !important;
}

.bg-blue .section-title {
    color: var(--white) !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.bg-blue p,
.bg-blue h2,
.bg-blue h3 {
    color: var(--white) !important;
}

.bg-vibrant {
    background-color: var(--vibrant-blue) !important;
    color: var(--white) !important;
}

.bg-vibrant .section-title {
    color: var(--white) !important;
}

.bg-vibrant p,
.bg-vibrant h2,
.bg-vibrant h3 {
    color: var(--white) !important;
}

.bg-light {
    background-color: #F9FAFB !important;
}

.bg-light .section-title {
    color: var(--vibrant-blue) !important;
}

.bg-light-gradient {
    background: linear-gradient(180deg, #F9FBFC 0%, #E8EDF2 100%);
}

/* ── AFFILIATIONS GRID ───────────────────────────── */
.affiliations-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px;
    flex-wrap: nowrap;
    margin-top: 50px;
    padding-bottom: 60px;
}

/* LEB — 500x500 image with padding. Control by width — displayed ~280px wide */
.affiliations-grid a:nth-child(1) {
    max-width: 280px;
}

.affiliations-grid a:nth-child(1) img {
    width: 100%;
    height: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
    filter: brightness(1.04);
    /* Forces the off-white background to pure white to blend seamlessly */
    display: block;
}

/* Otago Polytechnic — portrait blue card, displayed prominently */
.affiliations-grid a:nth-child(2) img {
    height: 400px;
    width: 330px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Fife College — 500x500 image with padding. Control by width */
.affiliations-grid a:nth-child(3) {
    max-width: 260px;
}

.affiliations-grid a:nth-child(3) img {
    width: 100%;
    height: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
    filter: brightness(1.04);
    /* Forces the off-white background to pure white to blend seamlessly */
    display: block;
}

.affiliations-grid a {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.affiliations-grid a:hover {
    transform: translateY(-4px);
}

/* Dropdown styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Language selector dropdown — clear, readable styles */
.lang-dropdown-content {
    top: 100%;
    right: 0;
    left: auto;
    min-width: 160px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    padding: 6px 0;
}

.lang-dropdown-content a {
    display: flex !important;
    align-items: center;
    gap: 8px;
    padding: 10px 16px !important;
    color: #1a1a2e !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    background: transparent;
    margin-left: 0 !important;
    white-space: nowrap;
}

.lang-dropdown-content a:hover {
    background-color: #f0f4ff !important;
    color: var(--primary-blue) !important;
}

.lang-dropdown-content .topbar-flag {
    width: 20px;
    height: auto;
    flex-shrink: 0;
}

/* ── GOOGLE TRANSLATE — hide default widget & banner ── */
#google_translate_element {
    display: none !important;
}

.goog-te-banner-frame,
.skiptranslate iframe {
    display: none !important;
    visibility: hidden !important;
}

body {
    top: 0 !important;
}

.goog-te-gadget {
    visibility: hidden;
    pointer-events: none;
}