/*
Theme Name: EFLA Xaricdə Təhsil Mərkəzi
Theme URI: https://efla.az
Author: EFLA Development Team
Author URI: https://efla.az
Description: Professional study abroad center theme for EFLA - Azerbaijan's premier international education consultancy. Features multilingual support (AZ/RU/EN), dark mode, university management, and full application system.
Version: 1.6.2
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: efla-theme
Tags: education, multilingual, dark-mode, responsive, bootstrap
*/

/* ========================================
   CSS CUSTOM PROPERTIES — PREMIUM EDITION
   ======================================== */
:root {
    /* ── Core Brand — Navy & Gold ── */
    --efla-navy:          #07091C;
    --efla-navy-mid:      #0D1232;
    --efla-navy-light:    #17214A;
    --efla-navy-surface:  #1C2754;

    --efla-gold:          #C9A84C;
    --efla-gold-light:    #E2C97E;
    --efla-gold-pale:     #F5EDD5;
    --efla-gold-dim:      #8C6E2A;
    --efla-gold-glow:     rgba(201,168,76,.18);

    /* ── Legacy aliases — existing code uses these ── */
    --efla-blue:          #1B3FA6;
    --efla-blue-light:    #4A7FD4;
    --efla-blue-dark:     #0D1F6E;
    --efla-purple:        #4A2590;
    --efla-purple-light:  #6E45B8;
    --efla-amber:         #C9A84C;
    --efla-amber-light:   #E2C97E;
    --efla-emerald:       #0B8F62;
    --efla-emerald-light: #14B882;
    --efla-rose:          #B52E44;

    /* ── Light‑mode surfaces — warm linen base ── */
    --efla-bg:            #F6F4EF;
    --efla-bg-alt:        #FFFFFF;
    --efla-bg-warm:       #FBF9F4;
    --efla-bg-subtle:     #F0EDE6;

    /* ── Text ── */
    --efla-text:          #0A0C18;
    --efla-text-muted:    #565A6A;
    --efla-text-light:    #9298A6;

    /* ── Borders ── */
    --efla-border:        #DDD9CF;
    --efla-border-light:  #EDEAE2;
    --efla-border-gold:   rgba(201,168,76,.28);

    /* ── Elevation — slightly warmer shadow tint ── */
    --shadow-xs:  0 1px 2px rgba(8,9,24,.05);
    --shadow-sm:  0 2px 8px rgba(8,9,24,.07);
    --shadow-md:  0 6px 20px rgba(8,9,24,.10);
    --shadow-lg:  0 16px 48px rgba(8,9,24,.13);
    --shadow-xl:  0 28px 72px rgba(8,9,24,.17);
    --shadow-gold:0 8px 32px rgba(201,168,76,.26);

    /* ── Radii ── */
    --radius-xs:   2px;
    --radius-sm:   4px;
    --radius-md:   6px;
    --radius-lg:   10px;
    --radius-xl:   16px;
    --radius-2xl:  22px;
    --radius-full: 9999px;

    /* ── Typography ── */
    --font-sans:    'Noto Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    --font-display: 'Noto Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    --font-mono:    ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', monospace;

    /* ── Motion ── */
    --ease:            cubic-bezier(.22,.68,0,1.2);
    --ease-out:        cubic-bezier(.4,0,.2,1);
    --transition:      all 0.3s var(--ease-out);
    --transition-fast: all 0.15s var(--ease-out);
    --transition-slow: all 0.55s var(--ease-out);

    /* ── Layout ── */
    --navbar-height: 80px;
    --section-gap:   100px;
}

/* ========================================
   DARK MODE VARIABLES
   ======================================== */
[data-theme="dark"] {
    --efla-bg:          #07091C;
    --efla-bg-alt:      #0D1232;
    --efla-bg-warm:     #090C22;
    --efla-bg-subtle:   #111640;
    --efla-text:        #EEE9DE;
    --efla-text-muted:  #8F95A8;
    --efla-text-light:  #555E74;
    --efla-border:      #1E264A;
    --efla-border-light:#141A38;
    --shadow-md:  0 6px 20px rgba(0,0,0,.40);
    --shadow-lg:  0 16px 48px rgba(0,0,0,.52);
    --shadow-xl:  0 28px 72px rgba(0,0,0,.62);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-sans);
    background-color: var(--efla-bg);
    color: var(--efla-text);
    line-height: 1.65;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.18;
    color: var(--efla-text);
}

a { color: var(--efla-blue); text-decoration: none; transition: var(--transition-fast); }
a:hover { color: var(--efla-blue-light); }
img { max-width: 100%; height: auto; }
ul { list-style: none; padding: 0; margin: 0; }

/* ========================================
   UTILITY — GRADIENTS & TEXT
   ======================================== */
.text-gradient {
    background: linear-gradient(135deg, var(--efla-gold) 0%, var(--efla-gold-light) 60%, #fff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-animated {
    background: linear-gradient(270deg, #E2C97E, #C9A84C, #F5EDD5, #C9A84C);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer-gold 4s ease infinite;
}

@keyframes shimmer-gold {
    0%, 100% { background-position: 0% 50%; }
    50%       { background-position: 100% 50%; }
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--efla-navy) 0%, var(--efla-navy-light) 100%);
}

.bg-gradient-hero {
    background: linear-gradient(135deg, #07091C 0%, #0F1832 55%, #1A0F3A 100%);
}

/* ========================================
   LAYOUT HELPERS
   ======================================== */
.section-padding    { padding: var(--section-gap) 0; }
.section-padding-sm { padding: 60px 0; }

/* ── Section anatomy — gold rule + serif title ── */
.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.85rem, 3.8vw, 2.65rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.15;
    margin-bottom: 0.75rem;
    color: var(--efla-text);
}

/* Gold rule below section titles */
.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--efla-gold) 0%, transparent 100%);
    border-radius: 1px;
    margin-top: 0.85rem;
}

.text-center .section-title::after { margin-left: auto; margin-right: auto; }

.section-subtitle {
    font-size: 1rem;
    color: var(--efla-text-muted);
    max-width: 560px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

/* ── Eyebrow / badge-label ── */
.badge-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(201,168,76,.10);
    color: var(--efla-gold-dim);
    padding: 0.28rem 0.85rem;
    border-radius: var(--radius-xs);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.11em;
    margin-bottom: 1rem;
    border: 1px solid var(--efla-border-gold);
}

[data-theme="dark"] .badge-label {
    background: rgba(201,168,76,.08);
    color: var(--efla-gold-light);
    border-color: rgba(201,168,76,.18);
}

/* ========================================
   BUTTONS — Refined, premium
   ======================================== */
.btn-efla-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--efla-navy);
    color: var(--efla-gold-light);
    padding: 0.82rem 1.9rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-efla-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(201,168,76,.14) 0%, transparent 70%);
    opacity: 0;
    transition: var(--transition-fast);
}

.btn-efla-primary:hover {
    background: var(--efla-navy-light);
    color: var(--efla-gold-light);
    border-color: var(--efla-border-gold);
    box-shadow: var(--shadow-gold);
    transform: translateY(-2px);
}

.btn-efla-primary:hover::after { opacity: 1; }

.btn-efla-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: rgba(255,255,255,.72);
    padding: 0.82rem 1.9rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: 1px solid rgba(201,168,76,.35);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-efla-outline:hover {
    background: rgba(201,168,76,.08);
    border-color: rgba(201,168,76,.65);
    color: var(--efla-gold-light);
    transform: translateY(-1px);
}

.btn-efla-amber {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--efla-gold);
    color: var(--efla-navy);
    padding: 0.82rem 1.9rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    box-shadow: 0 4px 22px rgba(201,168,76,.32);
}

.btn-efla-amber:hover {
    background: var(--efla-gold-light);
    color: var(--efla-navy);
    box-shadow: var(--shadow-gold);
    transform: translateY(-2px);
}

/* ========================================
   CARDS — Premium layered surface
   ======================================== */
.efla-card {
    background: var(--efla-bg-alt);
    border-radius: var(--radius-lg);
    border: 1px solid var(--efla-border);
    padding: 1.75rem;
    transition: var(--transition);
    box-shadow: var(--shadow-xs);
    position: relative;
    overflow: hidden;
}

/* Gold top accent — appears on hover */
.efla-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--efla-gold) 0%, var(--efla-gold-light) 60%, transparent 100%);
    opacity: 0;
    transition: var(--transition-fast);
}

.efla-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--efla-border-gold);
}

.efla-card:hover::before { opacity: 1; }

/* ========================================
   NAVBAR
   ======================================== */
#efla-navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    height: var(--navbar-height);
    background: transparent;
    transition: background 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

#efla-navbar.scrolled {
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 var(--efla-border), var(--shadow-sm);
}

[data-theme="dark"] #efla-navbar.scrolled {
    background: rgba(7,9,28,.94);
    box-shadow: 0 1px 0 var(--efla-border), var(--shadow-md);
}

/* ========================================
   HERO SECTION
   ======================================== */
.efla-hero {
    min-height: 100vh;
    background: #07091C;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Rich ambient light — avoids flat gradient */
.efla-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 90% at 70% 40%, rgba(26,15,58,.85), transparent),
        radial-gradient(ellipse 60% 70% at 10% 80%, rgba(14,36,112,.6), transparent);
    pointer-events: none;
}

/* Fine cross‑hatch texture */
.efla-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cpath d='M0 40L40 0' stroke='%23ffffff' stroke-opacity='.025' stroke-width='1'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

/* ── Hero typography ── */
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: #EEE9DE;
}

/* ── Floating stat cards ── */
.hero-float-card {
    position: absolute;
    background: rgba(13,18,50,.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(201,168,76,.22);
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    box-shadow: 0 20px 60px rgba(0,0,0,.4), inset 0 1px 0 rgba(201,168,76,.12);
    min-width: 120px;
    text-align: center;
    animation: floatCard 5s ease-in-out infinite;
}

.hero-float-card:nth-child(2) { animation-delay: -1.7s; }
.hero-float-card:nth-child(3) { animation-delay: -3.3s; }

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

.float-num {
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--efla-gold);
    font-variant-numeric: tabular-nums;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.float-label {
    font-size: 0.72rem;
    color: rgba(238,233,222,.55);
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ── Hero partner strip ── */
.logos-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(238,233,222,.35);
    font-weight: 600;
    margin-bottom: 0.85rem;
}

/* ========================================
   STATS BAND
   ======================================== */
.stats-section {
    background: var(--efla-navy);
    color: #fff;
    padding: 52px 0;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(201,168,76,.06) 0%, transparent 60%);
    pointer-events: none;
}

.stat-item {
    text-align: center;
    padding: 1rem 1.5rem;
    position: relative;
}

/* Vertical dividers */
.stat-item + .stat-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    bottom: 20%;
    width: 1px;
    background: rgba(201,168,76,.18);
}

.stat-number {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 900;
    display: block;
    line-height: 1;
    margin-bottom: 0.4rem;
    color: var(--efla-gold);
    font-variant-numeric: tabular-nums;
    font-family: var(--font-display);
}

.stat-label {
    font-size: 0.8rem;
    color: rgba(238,233,222,.5);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
}

/* ========================================
   COUNTRY CARDS
   ======================================== */
.country-card {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    height: 200px;
    cursor: pointer;
    transition: var(--transition);
}

.country-card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: var(--shadow-xl), 0 0 0 1px var(--efla-border-gold);
}

.country-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s var(--ease-out);
}

.country-card:hover .country-card-bg { transform: scale(1.06); }

.country-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(7,9,28,.85) 0%, rgba(7,9,28,.1) 55%);
}

.country-card-content {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 1.25rem;
    color: #fff;
}

.country-flag { font-size: 2rem; line-height: 1; margin-bottom: 0.4rem; display: block; }

/* Gold hairline bottom border on hover */
.country-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--efla-gold) 0%, var(--efla-gold-light) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease-out);
}

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

/* ========================================
   PROGRAM CARDS (HORIZONTAL SCROLL)
   ======================================== */
.programs-scroll-container {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    padding: 0.5rem 0 1.5rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--efla-border-gold) transparent;
}

.programs-scroll-container::-webkit-scrollbar { height: 4px; }
.programs-scroll-container::-webkit-scrollbar-track { background: transparent; }
.programs-scroll-container::-webkit-scrollbar-thumb { background: var(--efla-border-gold); border-radius: 2px; }

.program-card {
    flex: 0 0 300px;
    scroll-snap-align: start;
    background: var(--efla-bg-alt);
    border-radius: var(--radius-xl);
    border: 1px solid var(--efla-border);
    overflow: hidden;
    transition: var(--transition);
}

.program-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--efla-border-gold);
    transform: translateY(-3px);
}

.program-card-header {
    background: var(--efla-navy);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
}

.program-card-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 100% at 100% 0%, rgba(201,168,76,.12), transparent);
}

.program-card-logo {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    background: rgba(255,255,255,.12);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.program-card-logo img { width: 100%; height: 100%; object-fit: contain; }
.program-card-body { padding: 1.25rem; }

/* ========================================
   SERVICES / WHY EFLA
   ======================================== */
.feature-icon-box {
    width: 58px;
    height: 58px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.feature-icon-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,.15) 0%, transparent 100%);
}

.service-card {
    background: var(--efla-bg-alt);
    border-radius: var(--radius-xl);
    padding: 2rem;
    border: 1px solid var(--efla-border);
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
}

/* Gold bar sweeps from left on hover */
.service-card::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--efla-gold) 0%, var(--efla-gold-light) 100%);
    transition: width 0.4s var(--ease-out);
}

.service-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-5px);
    border-color: var(--efla-border-gold);
}

.service-card:hover::before { width: 100%; }

/* ========================================
   HOW IT WORKS
   ======================================== */
.step-card {
    position: relative;
    text-align: center;
    padding: 2rem 1.5rem;
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--efla-navy);
    color: var(--efla-gold-light);
    font-size: 1.35rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    box-shadow: 0 8px 28px rgba(7,9,28,.3), inset 0 1px 0 rgba(201,168,76,.18);
    border: 1px solid rgba(201,168,76,.2);
    font-variant-numeric: tabular-nums;
}

/* ========================================
   TESTIMONIALS
   ======================================== */
.testimonial-card {
    background: var(--efla-bg-alt);
    border-radius: var(--radius-2xl);
    padding: 2.25rem;
    border: 1px solid var(--efla-border);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 0.5rem;
    left: 1.25rem;
    font-size: 6rem;
    font-weight: 900;
    color: var(--efla-gold);
    opacity: 0.12;
    line-height: 1;
    font-family: Georgia, serif;
    pointer-events: none;
}

.testimonial-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--efla-border-gold);
    transform: translateY(-3px);
}

.testimonial-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--efla-border-gold);
}

/* ========================================
   CTA BANNER
   ======================================== */
.cta-banner {
    background: var(--efla-navy);
    padding: 88px 0;
    position: relative;
    overflow: hidden;
    color: #fff;
}

.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 90% at 0% 50%, rgba(201,168,76,.08), transparent),
        radial-gradient(ellipse 50% 70% at 100% 50%, rgba(74,37,144,.5), transparent);
    pointer-events: none;
}

/* Fine diagonal lines */
.cta-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='50' height='50' viewBox='0 0 50 50' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 50L50 0' stroke='%23ffffff' stroke-opacity='.018' stroke-width='1'/%3E%3C/svg%3E");
    pointer-events: none;
}

/* ========================================
   FOOTER
   ======================================== */
.efla-footer {
    background: var(--efla-navy);
    color: rgba(238,233,222,.5);
    padding: 72px 0 0;
    position: relative;
}

.efla-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--efla-border-gold) 50%, transparent 100%);
}

.efla-footer-brand { color: #EEE9DE; font-size: 1.45rem; font-weight: 800; margin-bottom: 1rem; }

.efla-footer h5 {
    color: rgba(238,233,222,.7);
    font-weight: 600;
    margin-bottom: 1.25rem;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: var(--font-sans);
}

.efla-footer a {
    color: rgba(238,233,222,.48);
    transition: var(--transition-fast);
    font-size: 0.88rem;
}

.efla-footer a:hover { color: var(--efla-gold-light); }
.efla-footer-links li { margin-bottom: 0.65rem; }

.footer-bottom {
    border-top: 1px solid rgba(201,168,76,.1);
    padding: 1.5rem 0;
    margin-top: 3.5rem;
}



/* ========================================
   EMBLEM.AZ SIGNATURE CREDIT
   ======================================== */
.emblem-credit-showcase {
    position: relative;
    margin-top: 3.5rem;
    padding: 0 0 0.25rem;
}

.emblem-credit-card {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    width: 100%;
    min-height: 108px;
    padding: 1.25rem 1.35rem;
    border-radius: 24px;
    border: 1px solid rgba(201,168,76,.26);
    background:
        linear-gradient(135deg, rgba(255,255,255,.075), rgba(255,255,255,.025)),
        radial-gradient(circle at 12% 25%, rgba(201,168,76,.26), transparent 34%),
        radial-gradient(circle at 92% 20%, rgba(59,130,246,.18), transparent 36%),
        rgba(10,15,31,.78);
    box-shadow: 0 24px 80px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.08);
    text-decoration: none !important;
    color: #F8FAFC !important;
    transform: translateZ(0);
}

.emblem-credit-card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(115deg, transparent 0%, rgba(255,255,255,.12) 38%, transparent 52%),
        repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 72px);
    opacity: .72;
    transform: translateX(-18%);
    transition: transform .7s ease, opacity .35s ease;
}

.emblem-credit-card:hover::before {
    transform: translateX(8%);
    opacity: 1;
}

.emblem-credit-glow {
    position: absolute;
    width: 220px;
    height: 220px;
    right: -82px;
    top: -96px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(201,168,76,.32), transparent 68%);
    pointer-events: none;
}

.emblem-credit-icon {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    color: #0B1020;
    background: linear-gradient(135deg, #F7E7A4, #C9A84C 52%, #B8860B);
    box-shadow: 0 12px 28px rgba(201,168,76,.24);
    font-size: 1.5rem;
}

.emblem-credit-copy {
    display: grid;
    gap: .2rem;
    min-width: 0;
    flex: 1 1 auto;
}

.emblem-credit-kicker {
    color: rgba(238,233,222,.66);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.emblem-credit-brand {
    color: #FFFFFF;
    font-size: clamp(1.8rem, 4vw, 3.15rem);
    line-height: 1;
    letter-spacing: -.04em;
    font-weight: 900;
    font-family: var(--font-display) !important;
    text-shadow: 0 10px 34px rgba(0,0,0,.28);
}

.emblem-credit-brand span {
    color: var(--efla-gold-light);
}

.emblem-credit-line {
    color: rgba(238,233,222,.72);
    font-size: .92rem;
    line-height: 1.55;
}

.emblem-credit-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    flex: 0 0 auto;
    padding: .82rem 1rem;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
    color: #F8FAFC;
    font-weight: 800;
    font-size: .82rem;
    letter-spacing: .02em;
    transition: transform .25s ease, background .25s ease, border-color .25s ease;
}

.emblem-credit-card:hover .emblem-credit-action {
    transform: translateY(-2px);
    background: rgba(201,168,76,.18);
    border-color: rgba(201,168,76,.34);
}

.emblem-credit-card:focus-visible {
    outline: 3px solid rgba(201,168,76,.7);
    outline-offset: 4px;
}

@media (max-width: 767.98px) {
    .emblem-credit-card {
        align-items: flex-start;
        flex-direction: column;
        min-height: auto;
        padding: 1.15rem;
        border-radius: 20px;
    }
    .emblem-credit-action {
        width: 100%;
    }
}

/* ========================================
   WHATSAPP FLOAT BUTTON
   ======================================== */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 54px;
    height: 54px;
    background: #22C55E;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.45rem;
    box-shadow: 0 8px 28px rgba(34,197,94,.38);
    z-index: 999;
    transition: var(--transition);
    text-decoration: none;
    animation: pulse-wa 2.8s ease-in-out infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-2px);
    color: #fff;
    box-shadow: 0 14px 40px rgba(34,197,94,.52);
    animation-play-state: paused;
}

@keyframes pulse-wa {
    0%, 100% { box-shadow: 0 8px 28px rgba(34,197,94,.38); }
    50%       { box-shadow: 0 8px 38px rgba(34,197,94,.55), 0 0 0 8px rgba(34,197,94,.1); }
}

/* ========================================
   LANGUAGE SWITCHER
   ======================================== */
.lang-switcher { display: flex; gap: 0.2rem; align-items: center; }

.lang-switcher a,
.lang-switcher .lang-btn {
    padding: 0.22rem 0.55rem;
    border-radius: var(--radius-xs);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    color: rgba(255,255,255,.6);
    transition: var(--transition-fast);
    text-decoration: none;
    letter-spacing: 0.05em;
    border: 1px solid transparent;
    line-height: 1.4;
    cursor: pointer;
    background: none;
}

.lang-switcher a:hover,
.lang-switcher a.active,
.lang-switcher .lang-btn:hover,
.lang-switcher .lang-btn.active {
    background: var(--efla-gold);
    color: var(--efla-navy);
    border-color: transparent;
}

#efla-navbar.scrolled .lang-switcher a,
#efla-navbar.scrolled .lang-switcher .lang-btn { color: var(--efla-text-muted); }

#efla-navbar.scrolled .lang-switcher a:hover,
#efla-navbar.scrolled .lang-switcher a.active,
#efla-navbar.scrolled .lang-switcher .lang-btn:hover,
#efla-navbar.scrolled .lang-switcher .lang-btn.active {
    background: var(--efla-gold);
    color: var(--efla-navy);
}

.offcanvas .lang-switcher { gap: 0.5rem; }

.offcanvas .lang-switcher a,
.offcanvas .lang-switcher .lang-btn {
    color: var(--efla-text-muted);
    border: 1px solid var(--efla-border);
    padding: 0.38rem 0.75rem;
    font-size: 0.78rem;
}

.offcanvas .lang-switcher a:hover,
.offcanvas .lang-switcher a.active,
.offcanvas .lang-switcher .lang-btn:hover,
.offcanvas .lang-switcher .lang-btn.active {
    background: var(--efla-gold);
    color: var(--efla-navy);
    border-color: transparent;
}

/* ========================================
   DARK MODE TOGGLE
   ======================================== */
.dark-mode-toggle {
    background: var(--efla-border);
    border: none;
    width: 42px;
    height: 22px;
    border-radius: var(--radius-full);
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.dark-mode-toggle::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    top: 3px;
    left: 3px;
    transition: var(--transition-fast);
    box-shadow: 0 1px 4px rgba(0,0,0,.2);
}

[data-theme="dark"] .dark-mode-toggle { background: var(--efla-gold-dim); }
[data-theme="dark"] .dark-mode-toggle::after { transform: translateX(20px); }

/* ========================================
   APPLICATION FORM — MULTI STEP
   ======================================== */
.apply-form-wrapper { max-width: 800px; margin: 0 auto; }

.form-steps-nav {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2.5rem;
    position: relative;
}

.form-steps-nav::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 10%; right: 10%;
    height: 1px;
    background: var(--efla-border);
    z-index: 0;
}

.form-step-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 1;
    flex: 1;
}

.form-step-bubble {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--efla-bg-subtle);
    color: var(--efla-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.88rem;
    transition: var(--transition);
    border: 1px solid var(--efla-border);
}

.form-step-nav-item.active .form-step-bubble,
.form-step-nav-item.completed .form-step-bubble {
    background: var(--efla-navy);
    border-color: var(--efla-border-gold);
    color: var(--efla-gold-light);
}

.form-step-label { font-size: 0.72rem; color: var(--efla-text-muted); font-weight: 600; text-align: center; }
.form-step-nav-item.active .form-step-label { color: var(--efla-navy); }
.form-step { display: none; }
.form-step.active { display: block; animation: fadeInUp 0.3s var(--ease-out); }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ========================================
   UNIVERSITY CARDS
   ======================================== */
.university-card {
    background: var(--efla-bg-alt);
    border-radius: var(--radius-xl);
    border: 1px solid var(--efla-border);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.university-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-5px);
    border-color: var(--efla-border-gold);
}

.university-card-header {
    height: 140px;
    background: var(--efla-navy);
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 1rem;
    overflow: hidden;
}

.university-card-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 80% at 100% 0%, rgba(201,168,76,.14), transparent);
}

.university-logo-overlay {
    width: 68px;
    height: 68px;
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,.95);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 2px solid rgba(201,168,76,.25);
    margin-top: auto;
    position: relative;
}

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

/* ========================================
   PAGE HERO (inner pages)
   ======================================== */
.page-hero {
    padding: calc(var(--navbar-height) + 3.5rem) 0 3.5rem;
    background: var(--efla-navy);
    position: relative;
    overflow: hidden;
    color: #fff;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 90% at 80% 30%, rgba(74,37,144,.5), transparent),
        radial-gradient(ellipse 50% 60% at 10% 80%, rgba(14,32,110,.55), transparent);
    pointer-events: none;
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(201,168,76,.3) 50%, transparent 100%);
}

/* ========================================
   BG SECTION ALT
   ======================================== */
.bg-section-alt { background: var(--efla-bg-subtle); }

/* ========================================
   GLASS CARD (hero overlay)
   ======================================== */
.glass-card {
    background: rgba(13,18,50,.72);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(201,168,76,.2);
    box-shadow: 0 16px 48px rgba(0,0,0,.3), inset 0 1px 0 rgba(201,168,76,.1);
}

/* ========================================
   SCROLL INDICATOR
   ======================================== */
.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    color: rgba(238,233,222,.4);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    animation: fadeInUp 1s ease 1.5s both;
}

.scroll-indicator::after {
    content: '';
    display: block;
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(201,168,76,.5), transparent);
    animation: scrollLine 1.8s ease-in-out infinite;
}

@keyframes scrollLine {
    0%, 100% { transform: scaleY(0); transform-origin: top; opacity: 0; }
    50%       { transform: scaleY(1); transform-origin: top; opacity: 1; }
}


    height: 100%;
    object-fit: contain;
    padding: 5px;
}

.university-card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.university-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.university-badge {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    font-weight: 600;
}

/* ========================================
   ACCORDION (PROGRAMS)
   ======================================== */
.efla-accordion .accordion-item {
    background: var(--efla-bg-alt);
    border: 1px solid var(--efla-border);
    border-radius: var(--radius-lg);
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.efla-accordion .accordion-button {
    background: var(--efla-bg-alt);
    color: var(--efla-text);
    font-weight: 600;
    padding: 1rem 1.25rem;
}

.efla-accordion .accordion-button:not(.collapsed) {
    background: rgba(30,64,175,.05);
    color: var(--efla-blue);
    box-shadow: none;
}

.efla-accordion .accordion-button:focus {
    box-shadow: none;
    border-color: var(--efla-blue-light);
}

.efla-accordion .accordion-body {
    background: var(--efla-bg-alt);
    color: var(--efla-text-muted);
}

/* ========================================
   FORMS
   ======================================== */
.efla-form-control {
    background: var(--efla-bg-alt);
    border: 1px solid var(--efla-border);
    border-radius: var(--radius-md);
    color: var(--efla-text);
    padding: 0.65rem 1rem;
    width: 100%;
    font-size: 0.95rem;
    transition: var(--transition-fast);
    outline: none;
    font-family: var(--font-sans);
}

.efla-form-control:focus {
    border-color: var(--efla-blue);
    box-shadow: 0 0 0 3px rgba(30,64,175,.1);
    background: var(--efla-bg-alt);
    color: var(--efla-text);
}

.efla-form-label {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--efla-text);
    margin-bottom: 0.4rem;
}

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

/* ========================================
   ALERTS & NOTICES
   ======================================== */
.efla-alert {
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9rem;
}

.efla-alert-success {
    background: rgba(16,185,129,.1);
    border: 1px solid rgba(16,185,129,.3);
    color: var(--efla-emerald);
}

.efla-alert-error {
    background: rgba(244,63,94,.1);
    border: 1px solid rgba(244,63,94,.3);
    color: var(--efla-rose);
}

/* ========================================
   FILTERS BAR
   ======================================== */
.filters-bar {
    background: var(--efla-bg-alt);
    border: 1px solid var(--efla-border);
    border-radius: var(--radius-xl);
    padding: 1.25rem;
    margin-bottom: 2rem;
}

.filter-btn {
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--efla-border);
    background: transparent;
    color: var(--efla-text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--efla-blue);
    border-color: var(--efla-blue);
    color: #fff;
}

/* ========================================
   PAGE HERO (INNER PAGES)
   ======================================== */
.page-hero {
    background: linear-gradient(135deg, var(--efla-blue-dark) 0%, var(--efla-purple) 100%);
    padding: 120px 0 60px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23fff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='15'/%3E%3C/g%3E%3C/svg%3E");
}

/* ========================================
   BREADCRUMB
   ======================================== */
.efla-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: rgba(255,255,255,.7);
    margin-bottom: 1rem;
}

.efla-breadcrumb a {
    color: rgba(255,255,255,.7);
}

.efla-breadcrumb a:hover {
    color: #fff;
}

.efla-breadcrumb .separator {
    color: rgba(255,255,255,.4);
}

/* ========================================
   PAGINATION
   ======================================== */
.efla-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.efla-pagination a,
.efla-pagination span {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    border: 1px solid var(--efla-border);
    color: var(--efla-text);
    transition: var(--transition-fast);
}

.efla-pagination a:hover,
.efla-pagination span.current {
    background: var(--efla-blue);
    border-color: var(--efla-blue);
    color: #fff;
}

/* ========================================
   PARTNERS STRIP
   ======================================== */
.partners-strip {
    overflow: hidden;
    position: relative;
    padding: 1rem 0;
}

.partners-track {
    display: flex;
    gap: 3rem;
    animation: scroll-partners 30s linear infinite;
    width: max-content;
}

.partners-track:hover {
    animation-play-state: paused;
}

@keyframes scroll-partners {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.partner-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
    opacity: 0.5;
    filter: grayscale(100%);
    transition: var(--transition);
    flex-shrink: 0;
}

.partner-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact-info-card {
    background: var(--efla-bg-alt);
    border-radius: var(--radius-xl);
    border: 1px solid var(--efla-border);
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: var(--transition);
}

.contact-info-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--efla-blue-light);
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* ========================================
   404 PAGE
   ======================================== */
.page-404 {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.error-404-number {
    font-size: clamp(5rem, 20vw, 12rem);
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, var(--efla-blue) 0%, var(--efla-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   LOADING SPINNER
   ======================================== */
.efla-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--efla-border);
    border-top-color: var(--efla-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 991.98px) {
    .section-padding { padding: 60px 0; }
    .efla-hero { min-height: auto; padding: 120px 0 80px; }
}

@media (max-width: 767.98px) {
    :root { --navbar-height: 60px; }
    .section-padding { padding: 50px 0; }
    .form-steps-nav { gap: 0.5rem; }
    .form-step-label { display: none; }
    .whatsapp-float { bottom: 1.5rem; right: 1.5rem; }
    .stat-number { font-size: 2rem; }
}

@media (max-width: 575.98px) {
    .section-padding { padding: 40px 0; }
    .btn-efla-primary, .btn-efla-outline, .btn-efla-amber {
        padding: 0.65rem 1.25rem;
        font-size: 0.875rem;
    }
}

/* ===== Premium single university refresh ===== */
.efla-uni-page{padding:calc(var(--navbar-height,84px) + 32px) 0 72px;background:#f5f7fb}
.efla-uni-shell{max-width:1380px}
.efla-uni-breadcrumb{display:flex;gap:10px;flex-wrap:wrap;font-size:14px;color:#6b7280;margin-bottom:22px}
.efla-uni-breadcrumb a{color:#4f46e5;text-decoration:none;font-weight:600}
.efla-uni-grid{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:28px;align-items:start}
.efla-uni-main,.efla-uni-sidebar{min-width:0}
.efla-uni-hero-card{position:relative;overflow:hidden;border-radius:32px;min-height:420px;background:#111827;box-shadow:0 28px 80px rgba(15,23,42,.14)}
.efla-uni-hero-media{position:absolute;inset:0;background:#1f2937 center/cover no-repeat;transform:scale(1.03)}
.efla-uni-hero-overlay{position:absolute;inset:0;background:linear-gradient(90deg,rgba(10,15,30,.82) 0%,rgba(20,24,40,.62) 42%,rgba(43,18,99,.44) 100%)}
.efla-uni-hero-inner{position:relative;z-index:2;display:flex;justify-content:space-between;gap:28px;align-items:flex-end;padding:36px;min-height:420px}
.efla-uni-brand{display:flex;gap:22px;align-items:flex-end;max-width:760px}
.efla-uni-logo-wrap{width:118px;height:118px;border-radius:28px;background:rgba(255,255,255,.96);display:flex;align-items:center;justify-content:center;overflow:hidden;box-shadow:0 18px 44px rgba(0,0,0,.22);flex:0 0 118px}
.efla-uni-logo-wrap img{width:100%;height:100%;object-fit:contain;padding:18px}.efla-uni-logo-wrap span{font-size:34px;font-weight:900;color:#1d4ed8}
.efla-uni-copy h1{margin:0 0 14px;color:#fff;font-size:clamp(32px,4vw,56px);line-height:1.02;font-weight:900;letter-spacing:-.03em}
.efla-uni-copy p{margin:0 0 18px;color:rgba(255,255,255,.92);font-size:17px;line-height:1.7;max-width:680px}
.efla-uni-chips{display:flex;gap:10px;flex-wrap:wrap}.efla-uni-chip{display:inline-flex;gap:8px;align-items:center;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.18);backdrop-filter:blur(8px);color:#fff;padding:10px 14px;border-radius:999px;font-size:14px;font-weight:700}
.efla-uni-hero-actions{display:flex;flex-direction:column;gap:12px;min-width:240px}.efla-btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;border-radius:18px;padding:16px 20px;text-decoration:none;font-weight:800;transition:.2s ease}.efla-btn-primary{background:linear-gradient(135deg,#4f46e5 0%,#7c3aed 100%);color:#fff;box-shadow:0 18px 40px rgba(79,70,229,.28)}.efla-btn-primary:hover{color:#fff;transform:translateY(-1px)}.efla-btn-ghost{background:rgba(255,255,255,.96);color:#111827;border:1px solid rgba(255,255,255,.5)}.efla-btn-ghost:hover{color:#111827;background:#fff}
.efla-uni-section,.efla-side-card{background:#fff;border:1px solid #e6eaf2;border-radius:28px;box-shadow:0 16px 48px rgba(15,23,42,.06)}
.efla-uni-section{padding:28px;margin-top:22px}.efla-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.efla-section-heading h2{margin:0;font-size:28px;line-height:1.1;font-weight:900;color:#0f172a}.efla-badge{display:inline-flex;align-items:center;justify-content:center;min-width:42px;height:42px;padding:0 12px;border-radius:999px;background:#eef2ff;color:#4338ca;font-weight:800}
.efla-info-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.efla-info-card{padding:18px;border-radius:22px;background:#f8fafc;border:1px solid #e8edf4}.efla-info-card span{display:block;font-size:12px;line-height:1.4;text-transform:uppercase;letter-spacing:.06em;color:#64748b;margin-bottom:10px;font-weight:700}.efla-info-card strong{display:block;color:#0f172a;font-size:20px;line-height:1.35;font-weight:850}
.efla-prose{color:#334155;font-size:17px;line-height:1.85}.efla-feature-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.efla-feature-item{display:flex;gap:12px;align-items:flex-start;padding:18px;border-radius:20px;background:#f8fafc;border:1px solid #e8edf4;color:#0f172a;font-weight:650}.efla-feature-item i{color:#16a34a;font-size:18px;margin-top:2px}
.efla-two-col{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.efla-stack{display:flex;flex-direction:column;gap:18px}.efla-soft-card{padding:20px;border-radius:22px;background:#f8fafc;border:1px solid #e8edf4}.efla-soft-card h3{font-size:19px;font-weight:850;margin:0 0 12px;color:#0f172a}.efla-soft-card p{margin:0;color:#475569;line-height:1.75}.efla-bullets{margin:0;padding-left:18px;color:#334155;line-height:1.9}
.efla-program-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.efla-program-card{padding:22px;border-radius:22px;background:#fff;border:1px solid #e8edf4;box-shadow:0 10px 30px rgba(15,23,42,.04)}.efla-program-card h3{font-size:21px;line-height:1.35;font-weight:850;margin:0 0 10px;color:#0f172a}.efla-program-meta{font-size:13px;font-weight:700;color:#4f46e5;margin-bottom:10px}.efla-program-card p{margin:0;color:#475569;line-height:1.7}
.efla-gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.efla-gallery-item{overflow:hidden;border-radius:22px;background:#e2e8f0;aspect-ratio:1.2}.efla-gallery-item img{width:100%;height:100%;object-fit:cover;display:block}
.efla-faq-list{display:flex;flex-direction:column;gap:12px}.efla-faq-item{padding:18px 20px;border-radius:20px;background:#f8fafc;border:1px solid #e8edf4}.efla-faq-item summary{cursor:pointer;font-weight:850;color:#0f172a}.efla-faq-item div{padding-top:12px;color:#475569;line-height:1.75}
.efla-uni-sidebar{position:sticky;top:calc(var(--navbar-height,84px) + 18px);display:flex;flex-direction:column;gap:18px}.efla-side-card{padding:24px}.efla-side-card h3{font-size:22px;font-weight:900;margin:0 0 12px;color:#0f172a}.efla-side-card p{margin:0 0 14px;color:#475569;line-height:1.75}.efla-cta-card{background:linear-gradient(180deg,#ffffff 0%,#f5f3ff 100%);border-color:#ddd6fe}.efla-score-pill{display:inline-flex;align-items:center;justify-content:center;padding:12px 16px;border-radius:999px;background:#eef2ff;color:#4338ca;font-weight:900;margin-bottom:8px}.efla-source-link{display:inline-flex;align-items:center;gap:8px;color:#4338ca;text-decoration:none;font-weight:800}.efla-side-list,.efla-related-list{display:flex;flex-direction:column;gap:12px}.efla-side-list div{display:flex;justify-content:space-between;gap:12px;padding-bottom:12px;border-bottom:1px solid #e8edf4}.efla-side-list div:last-child{padding-bottom:0;border-bottom:0}.efla-side-list span{color:#64748b;font-size:14px}.efla-side-list strong{color:#0f172a;text-align:right}.efla-related-list a{display:block;padding:12px 14px;border-radius:16px;background:#f8fafc;border:1px solid #e8edf4;text-decoration:none;color:#0f172a;font-weight:700}.efla-related-list a:hover{background:#eef2ff;color:#4338ca}
@media (max-width: 1199px){.efla-uni-grid{grid-template-columns:1fr}.efla-uni-sidebar{position:static}.efla-info-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width: 767px){.efla-uni-page{padding-top:calc(var(--navbar-height,84px) + 18px)}.efla-uni-hero-inner,.efla-uni-brand{flex-direction:column;align-items:flex-start}.efla-uni-hero-card,.efla-uni-hero-inner{min-height:auto}.efla-uni-hero-inner{padding:22px}.efla-uni-logo-wrap{width:92px;height:92px;flex-basis:92px}.efla-uni-copy h1{font-size:32px}.efla-info-grid,.efla-feature-list,.efla-two-col,.efla-program-grid,.efla-gallery-grid{grid-template-columns:1fr}.efla-section-heading h2{font-size:24px}}

/* ========================================
   RUSSIA & UZBEKISTAN SPOTLIGHT SECTION
   ======================================== */
.spotlight-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
    position: relative;
    overflow: hidden;
}

.spotlight-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 80% at 15% 50%, rgba(30,64,175,.22) 0%, transparent 70%),
        radial-gradient(ellipse 50% 70% at 85% 50%, rgba(124,58,237,.18) 0%, transparent 70%);
    pointer-events: none;
}

.spotlight-card {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.1);
    backdrop-filter: blur(4px);
    transition: transform .3s ease, box-shadow .3s ease;
}
.spotlight-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 40px 80px rgba(0,0,0,.35);
}

.spotlight-card--russia {
    background: linear-gradient(160deg, rgba(210,39,30,.12) 0%, rgba(31,95,191,.18) 100%);
}
.spotlight-card--uzbekistan {
    background: linear-gradient(160deg, rgba(0,153,181,.14) 0%, rgba(30,181,58,.16) 100%);
}

.spotlight-card__header {
    padding: 2rem 2rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.spotlight-card__flag {
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 0.75rem;
}

.spotlight-card__badge {
    display: inline-block;
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.spotlight-card--russia .spotlight-card__badge {
    background: rgba(210,39,30,.25);
    color: #fca5a5;
    border: 1px solid rgba(210,39,30,.4);
}
.spotlight-card--uzbekistan .spotlight-card__badge {
    background: rgba(16,185,129,.2);
    color: #6ee7b7;
    border: 1px solid rgba(16,185,129,.35);
}

.spotlight-card__title {
    font-size: 1.4rem;
    font-weight: 900;
    color: #fff;
    margin: 0 0 0.5rem;
    line-height: 1.25;
}

.spotlight-card__desc {
    font-size: 0.9rem;
    line-height: 1.75;
    color: rgba(255,255,255,.72);
    margin: 0;
}

.spotlight-card__body {
    padding: 1.5rem 2rem 2rem;
}

.spotlight-feat-list {
    list-style: none;
    margin: 0 0 1.25rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}
.spotlight-feat-list li {
    font-size: 0.88rem;
    color: rgba(255,255,255,.85);
    line-height: 1.5;
}

.spotlight-degrees {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}
.spotlight-degree-pill {
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.15);
    font-size: 0.82rem;
    font-weight: 700;
    color: #fff;
}

.spotlight-medical-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
    margin-bottom: 1.25rem;
}
.spotlight-med-pill {
    padding: 0.65rem 0.5rem;
    border-radius: 14px;
    background: rgba(16,185,129,.15);
    border: 1px solid rgba(16,185,129,.25);
    text-align: center;
    font-size: 0.82rem;
    font-weight: 700;
    color: #6ee7b7;
    line-height: 1.4;
}

.spotlight-cta-strip {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,.08);
}

.spotlight-phone-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1.1rem;
    border-radius: 12px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.12);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background .2s;
}
.spotlight-phone-link:hover {
    background: rgba(255,255,255,.14);
    color: #fff;
}
.spotlight-phone-link i {
    font-size: 1.05rem;
    flex-shrink: 0;
}

.spotlight-wa-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.85rem 1.2rem;
    border-radius: 12px;
    background: #25d366;
    color: #fff;
    font-weight: 800;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background .2s, transform .2s;
}
.spotlight-wa-btn:hover {
    background: #1fbc59;
    color: #fff;
    transform: scale(1.02);
}

/* Spotlight header strip */
.spotlight-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}
.spotlight-header__supertitle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1.1rem;
    border-radius: 999px;
    background: rgba(245,158,11,.15);
    border: 1px solid rgba(245,158,11,.3);
    color: #fcd34d;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1rem;
}
.spotlight-header__title {
    font-size: clamp(1.75rem, 4vw, 2.6rem);
    font-weight: 900;
    color: #fff;
    margin: 0 0 0.75rem;
    line-height: 1.15;
}
.spotlight-header__sub {
    font-size: 1.05rem;
    color: rgba(255,255,255,.7);
    margin: 0;
}

/* Address strip */
.spotlight-address-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    margin-top: 3rem;
    padding: 1.25rem 1.5rem;
    border-radius: 18px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    position: relative;
    z-index: 1;
}
.spotlight-address-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.88rem;
    color: rgba(255,255,255,.8);
}
.spotlight-address-item i {
    color: #fcd34d;
    font-size: 1rem;
    flex-shrink: 0;
}
.spotlight-address-item a {
    color: inherit;
    text-decoration: none;
}
.spotlight-address-item a:hover {
    color: #fcd34d;
}

@media (max-width: 767px) {
    .spotlight-card__header,
    .spotlight-card__body {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
    .spotlight-medical-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .spotlight-address-strip {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}

/* Mobile header language switcher and enriched offcanvas links */
.mobile-header-controls {
    flex-shrink: 0;
}

.mobile-header-lang .lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 0.12rem;
    padding: 0.12rem;
    border-radius: 999px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.08);
}

.mobile-header-lang .lang-switcher a,
.mobile-header-lang .lang-switcher .lang-btn {
    min-width: 28px;
    padding: 0.18rem 0.42rem;
    font-size: 0.66rem;
    line-height: 1.25;
    text-align: center;
    border-radius: 999px;
    color: rgba(255,255,255,.72);
}

#efla-navbar.scrolled .mobile-header-lang .lang-switcher {
    background: rgba(15,23,42,.04);
    border-color: var(--efla-border-light);
}

.mobile-menu-footer-links {
    border-color: var(--efla-border-light) !important;
}

.mobile-footer-link-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem 0.7rem;
}

.mobile-footer-link-grid a {
    display: flex;
    align-items: center;
    min-height: 38px;
    padding: 0.52rem 0.7rem;
    border-radius: var(--radius-sm);
    background: var(--efla-bg-alt);
    border: 1px solid var(--efla-border-light);
    color: var(--efla-text);
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 600;
    transition: var(--transition-fast);
}

.mobile-footer-link-grid a:hover {
    color: var(--efla-blue);
    border-color: rgba(30,64,175,.25);
    transform: translateY(-1px);
}

.mobile-footer-link-grid-services a {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--efla-text-muted);
}

@media (max-width: 380px) {
    .mobile-header-lang .lang-switcher a,
    .mobile-header-lang .lang-switcher .lang-btn {
        min-width: 24px;
        padding: 0.15rem 0.32rem;
        font-size: 0.6rem;
    }

    .mobile-footer-link-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   EFLA fixes: language dropdown + service detail pages
   ======================================== */
.lang-switcher.dropdown { position: relative; }
.lang-current {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    min-width: 58px;
    justify-content: center;
    padding: .32rem .65rem;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.92);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .06em;
    line-height: 1.2;
    cursor: pointer;
    transition: var(--transition-fast);
}
.lang-current:hover,
.lang-current:focus { background: var(--efla-gold); color: var(--efla-navy); border-color: var(--efla-gold); }
.lang-dropdown-menu {
    min-width: 178px;
    padding: .45rem;
    border: 1px solid var(--efla-border);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    background: var(--efla-surface);
}
.lang-dropdown-menu .dropdown-item.lang-btn {
    display: flex;
    align-items: center;
    gap: .65rem;
    width: 100%;
    border: 0;
    border-radius: 12px;
    padding: .55rem .65rem;
    background: transparent;
    color: var(--efla-text);
    text-align: left;
    font-size: .88rem;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
}
.lang-dropdown-menu .dropdown-item.lang-btn .lang-code {
    width: 34px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: var(--efla-bg-soft);
    color: var(--efla-primary);
    font-size: .72rem;
    font-weight: 900;
}
.lang-dropdown-menu .dropdown-item.lang-btn:hover,
.lang-dropdown-menu .dropdown-item.lang-btn.active {
    background: rgba(251,191,36,.16);
    color: var(--efla-navy);
}
.lang-dropdown-menu .dropdown-item.lang-btn.active .lang-code {
    background: var(--efla-gold);
    color: var(--efla-navy);
}
#efla-navbar.scrolled .lang-current { color: var(--efla-text); border-color: var(--efla-border); background: var(--efla-surface); }
.mobile-header-lang .lang-current { min-width: 50px; padding: .28rem .52rem; }

.service-detail-image { height: 420px; object-fit: cover; background: var(--efla-bg-soft); }
.service-number-badge {
    position: absolute;
    top: 18px;
    left: 18px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 900;
    font-size: 1.05rem;
    box-shadow: var(--shadow-lg);
}
.service-feature-box {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    background: var(--efla-bg-soft);
    color: var(--efla-text);
    border: 1px solid var(--efla-border);
}
.service-check { font-weight: 900; font-size: 1.05rem; line-height: 1.2; }
.service-legal-note { color: var(--efla-text-muted); background: var(--efla-surface); }
.service-legal-note strong { color: var(--efla-text); }
.service-side-list { display: grid; gap: .45rem; }
.service-side-list a {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .72rem .8rem;
    border-radius: 14px;
    color: var(--efla-text-muted);
    background: var(--efla-bg-soft);
    border: 1px solid var(--efla-border);
    text-decoration: none;
    font-weight: 700;
}
.service-side-list a span {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--efla-surface);
    color: var(--efla-primary);
    font-size: .75rem;
    font-weight: 900;
}
.service-side-list a:hover,
.service-side-list a.active {
    background: rgba(30,64,175,.10);
    color: var(--efla-primary);
    border-color: rgba(30,64,175,.22);
}
@media (max-width: 991.98px) {
    .service-detail-image { height: 300px; }
}


/* ========================================
   MULTILINGUAL TYPOGRAPHY FIX — AZ/RU/EN/TR/KZ
   ======================================== */
html, body, button, input, select, textarea, .navbar, .dropdown-menu {
    font-family: var(--font-sans) !important;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.hero-title, .section-title, .efla-section-heading h2,
.program-title, .country-title, .service-detail-title,
.efla-page-title, .efla-footer-brand {
    font-family: var(--font-display) !important;
    letter-spacing: -0.018em;
    font-weight: 800;
}

:lang(ru) h1, :lang(ru) h2, :lang(ru) h3,
:lang(kk) h1, :lang(kk) h2, :lang(kk) h3,
[data-lang="ru"] h1, [data-lang="ru"] h2, [data-lang="ru"] h3,
[data-lang="kk"] h1, [data-lang="kk"] h2, [data-lang="kk"] h3 {
    letter-spacing: -0.01em;
    font-weight: 800;
}

:lang(kk) .text-gradient,
:lang(ru) .text-gradient,
[data-lang="kk"] .text-gradient,
[data-lang="ru"] .text-gradient {
    line-height: 1.12;
}

.lang-current, .lang-btn, .btn-efla-primary, .btn-efla-secondary, .program-card, .university-card {
    font-family: var(--font-sans) !important;
}

/* Legal pages and sitemap */
.legal-hero {
    margin-top: var(--navbar-height, 80px);
    background: linear-gradient(135deg, #0F172A 0%, #1E3A8A 60%, #0F172A 100%);
}
.legal-page .card {
    background: var(--efla-card-bg, #fff);
    color: var(--efla-text, #0f172a);
}
.legal-page .text-muted {
    color: var(--efla-muted, #64748b) !important;
}
.sitemap-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sitemap-list li + li {
    border-top: 1px solid var(--efla-border, rgba(148, 163, 184, .24));
}
.sitemap-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .85rem 0;
    color: var(--efla-text, #0f172a);
    font-weight: 700;
    text-decoration: none;
}
.sitemap-list a::after {
    content: "→";
    color: var(--efla-blue, #2563eb);
    transition: transform .2s ease;
}
.sitemap-list a:hover::after {
    transform: translateX(4px);
}
[data-theme="dark"] .legal-page,
body.dark-mode .legal-page {
    background: #0F172A !important;
}
[data-theme="dark"] .legal-page .card,
body.dark-mode .legal-page .card {
    background: #111827;
    color: #F8FAFC;
    border: 1px solid rgba(148, 163, 184, .18) !important;
}
[data-theme="dark"] .legal-page .text-muted,
body.dark-mode .legal-page .text-muted {
    color: #CBD5E1 !important;
}
[data-theme="dark"] .sitemap-list a,
body.dark-mode .sitemap-list a {
    color: #F8FAFC;
}

/* EFLA University program/faculty popup title color fix */
.efla-university-profile .efla-program-modal h1,
.efla-university-profile .efla-program-modal h2,
.efla-university-profile .efla-program-modal h3,
.efla-university-profile .efla-program-modal .modal-title,
.efla-university-profile .efla-program-modal .program-title,
.efla-university-profile .efla-program-modal .faculty-title,
.efla-university-profile .efla-program-popup h1,
.efla-university-profile .efla-program-popup h2,
.efla-university-profile .efla-program-popup h3,
.efla-university-profile .efla-program-popup .modal-title,
.efla-university-profile .efla-program-popup .program-title,
.efla-university-profile .efla-program-popup .faculty-title,
.efla-program-modal h1,
.efla-program-modal h2,
.efla-program-modal h3,
.efla-program-popup h1,
.efla-program-popup h2,
.efla-program-popup h3 {
    color: #0f172a !important;
    opacity: 1 !important;
    text-shadow: none !important;
}

.efla-university-profile .efla-program-modal .program-eyebrow,
.efla-university-profile .efla-program-modal .faculty-eyebrow,
.efla-university-profile .efla-program-popup .program-eyebrow,
.efla-university-profile .efla-program-popup .faculty-eyebrow,
.efla-program-modal .program-eyebrow,
.efla-program-modal .faculty-eyebrow,
.efla-program-popup .program-eyebrow,
.efla-program-popup .faculty-eyebrow {
    color: #0f172a !important;
    opacity: 1 !important;
}

