/* ============================================================
   ISEIG Theme — Modern Redesign 2025
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

*, *::before, *::after { box-sizing: border-box; }

:root {
    /* Brand colors */
    --blue:         #0448ef;
    --blue-dark:    #0339c4;
    --blue-light:   #e8eeff;
    --navy:         #1a2340;
    --navy-mid:     #232c50;
    --navy-dark:    #0f1628;
    --white:        #ffffff;

    /* Accent palette */
    --teal:         #0d9488;
    --teal-dark:    #0f766e;
    --orange:       #f97316;
    --orange-dark:  #ea6d09;
    --purple:       #7c3aed;
    --purple-dark:  #6d28d9;
    --green:        #16a34a;
    --green-dark:   #15803d;
    --coral:        #ef4444;

    /* Neutrals */
    --gray-50:      #f8f9fc;
    --gray-100:     #f1f3f8;
    --gray-200:     #e4e8f0;
    --gray-400:     #9aa3b8;
    --gray-600:     #4d5872;

    /* Semantic aliases */
    --text:         #1a2340;
    --text-light:   #5c677d;
    --bg-light:     var(--gray-50);
    --border:       var(--gray-200);

    /* Typography */
    --font:         'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Layout */
    --max-w:        1200px;
    --radius:       10px;
    --radius-sm:    6px;
    --radius-lg:    16px;
    --radius-xl:    24px;

    /* Shadows */
    --shadow-sm:    0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --shadow:       0 4px 20px rgba(0,0,0,.08), 0 1px 6px rgba(0,0,0,.04);
    --shadow-md:    0 8px 32px rgba(0,0,0,.10), 0 2px 10px rgba(0,0,0,.05);
    --shadow-lg:    0 20px 60px rgba(0,0,0,.12), 0 6px 20px rgba(0,0,0,.06);

    /* Easing */
    --ease: cubic-bezier(.4, 0, .2, 1);
}

/* ── Reset ─────────────────────────────────────────────────── */
body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; transition: color .2s var(--ease), opacity .2s var(--ease); }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0 0 1rem; line-height: 1.2; font-weight: 700; }

/* ── Header — white sticky top bar ─────────────────────────── */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow .3s var(--ease);
}
.site-header.scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,.10);
    border-bottom-color: transparent;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: .75rem 2rem;
    gap: 1.5rem;
}

/* Search */
.header-search {
    display: flex;
    align-items: center;
    gap: .5rem;
    border: 1.5px solid var(--border);
    padding: .4rem .85rem;
    border-radius: 50px;
    min-width: 190px;
    transition: border-color .2s var(--ease);
}
.header-search:focus-within { border-color: var(--blue); }
.header-search svg { color: var(--gray-400); flex-shrink: 0; }
.header-search input {
    border: none;
    outline: none;
    font-family: var(--font);
    font-size: .875rem;
    color: var(--text-light);
    width: 100%;
    background: transparent;
}

/* Branding */
.site-branding {
    display: flex;
    align-items: center;
    gap: .875rem;
    flex: 1;
    justify-content: center;
}
.brand-logo-link { display: flex; flex-shrink: 0; }
.brand-logo { height: 54px; width: auto; display: block; }
.brand-text { line-height: 1.25; }
.site-title {
    display: block;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -.02em;
    transition: color .2s;
}
.site-title:hover { color: var(--blue); }
.site-tagline {
    display: block;
    font-size: .72rem;
    color: var(--text-light);
    font-weight: 500;
    letter-spacing: .01em;
}

/* Header right — social + actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}
.header-login {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .85rem;
    font-weight: 600;
    color: var(--text);
    transition: color .2s;
}
.header-login:hover { color: var(--blue); }
.social-links {
    display: flex;
    align-items: center;
    gap: .4rem;
}
.social-links a {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--gray-600);
    background: var(--gray-100);
    transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.social-links a svg { width: 15px; height: 15px; fill: currentColor; }
.social-links a:hover {
    background: var(--navy);
    color: var(--white);
    transform: translateY(-1px);
}

/* ── Navigation — medium-blue bar ───────────────────────────── */
.site-nav {
    background: #2563eb;
    position: relative;
    z-index: 100;
    border-top: 3px solid transparent;
    border-image: linear-gradient(90deg, var(--blue) 0%, var(--teal) 35%, var(--orange) 65%, var(--purple) 100%) 1;
}
.site-nav > ul {
    display: flex;
    justify-content: center;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 2rem;
    gap: 0;
    flex-wrap: wrap;
}
.site-nav li { position: relative; }
.site-nav > ul > li > a {
    display: block;
    padding: .8rem 1.1rem;
    font-size: .825rem;
    font-weight: 600;
    color: rgba(255,255,255,.78);
    letter-spacing: .02em;
    text-transform: uppercase;
    font-size: .75rem;
    transition: color .2s, background .2s;
    position: relative;
}
.site-nav > ul > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    right: 50%;
    height: 2px;
    background: var(--blue);
    transition: left .25s var(--ease), right .25s var(--ease);
}
.site-nav > ul > li > a:hover,
.site-nav > ul > li > a.active {
    color: var(--white);
    background: rgba(255,255,255,.15);
}
.site-nav > ul > li > a:hover::after,
.site-nav > ul > li > a.active::after {
    left: 1.1rem;
    right: 1.1rem;
}

/* Sub-menu */
.site-nav .sub-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    background: var(--white);
    min-width: 230px;
    display: none;
    flex-direction: column;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    overflow: hidden;
    z-index: 101;
}
.site-nav .has-children:hover > .sub-menu { display: flex; }
.site-nav .sub-menu li { width: 100%; }
.site-nav .sub-menu a {
    display: block;
    padding: .7rem 1.1rem;
    font-size: .82rem;
    font-weight: 500;
    color: var(--text);
    text-transform: none;
    letter-spacing: 0;
    border-bottom: 1px solid var(--gray-100);
    transition: background .15s, color .15s;
}
.site-nav .sub-menu a::after { display: none; }
.site-nav .sub-menu a:hover {
    background: var(--blue-light);
    color: var(--blue);
}
.site-nav .sub-menu li:last-child a { border-bottom: none; }

/* ── Hero — full-width centered ─────────────────────────────── */
.hero {
    position: relative;
    min-height: 88vh;
    max-height: 860px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background:
        url('../images/hero-students.jpg') center / cover no-repeat,
        linear-gradient(135deg, #0f1628 0%, #1e2b60 50%, #2a1f6e 100%);
    z-index: 0;
}
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(15, 22, 40, .62) 0%,
        rgba(15, 22, 40, .78) 100%
    );
}
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 2rem 2rem;
    color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}
.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.22);
    color: rgba(255,255,255,.92);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: .4rem 1.1rem;
    border-radius: 50px;
}
.hero-content h1 {
    font-size: clamp(2.25rem, 5.5vw, 4rem);
    font-weight: 900;
    color: var(--white);
    line-height: 1.08;
    margin: 0;
    letter-spacing: -.02em;
}
.hero-content p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255,255,255,.82);
    margin: 0;
    line-height: 1.6;
    max-width: 580px;
}
.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: .5rem;
}
.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .85rem 2rem;
    background: var(--blue);
    color: var(--white);
    font-family: var(--font);
    font-size: .9rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    border-radius: var(--radius);
    transition: background .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
    box-shadow: 0 4px 20px rgba(4,72,239,.4);
    letter-spacing: -.01em;
}
.btn-hero:hover {
    background: var(--blue-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(4,72,239,.45);
}
.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .85rem 2rem;
    background: rgba(255,255,255,.12);
    backdrop-filter: blur(8px);
    color: var(--white);
    font-family: var(--font);
    font-size: .9rem;
    font-weight: 600;
    border: 1.5px solid rgba(255,255,255,.30);
    border-radius: var(--radius);
    transition: background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn-ghost:hover {
    background: rgba(255,255,255,.20);
    border-color: rgba(255,255,255,.50);
    color: var(--white);
    transform: translateY(-2px);
}

/* Legacy hero-overlay compatibility */
.hero-overlay {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 2rem;
    color: var(--white);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    text-align: center;
    align-items: center;
}
.hero-overlay h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 900;
    color: var(--white);
    line-height: 1.1;
    margin: 0;
}
.hero-overlay p {
    font-size: 1.1rem;
    color: rgba(255,255,255,.82);
    margin: 0;
}

/* ── Section wrapper ────────────────────────────────────────── */
.section-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 2rem;
}
.section-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--navy);
    margin-bottom: .5rem;
    letter-spacing: -.02em;
}
.section-title + .section-subtitle,
.section-subtitle {
    font-size: 1rem;
    color: var(--text-light);
    margin: 0 0 2.5rem;
}
.section-label {
    display: inline-block;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: .5rem;
}

/* ── Highlights / Stats strip ───────────────────────────────── */
.highlights {
    background: linear-gradient(135deg, #1a2340 0%, #3b1f8c 40%, #0d6f6b 100%);
    padding: 3.5rem 0;
    position: relative;
    overflow: hidden;
}
.highlights::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='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    position: relative;
    z-index: 1;
}
.highlight-item {
    text-align: center;
    padding: 1.5rem 2rem;
    color: var(--white);
    position: relative;
}
.highlight-item + .highlight-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    bottom: 20%;
    width: 1px;
    background: rgba(255,255,255,.12);
}
.highlight-number {
    display: block;
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1;
    color: var(--white);
    letter-spacing: -.04em;
    margin-bottom: .3rem;
}
.highlight-item:nth-child(1) .highlight-number { color: #fbbf24; }
.highlight-item:nth-child(2) .highlight-number { color: #34d399; }
.highlight-item:nth-child(3) .highlight-number { color: #fb923c; }
.highlight-item:nth-child(4) .highlight-number { color: #a78bfa; }
.highlight-label {
    display: block;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: rgba(255,255,255,.55);
    margin-bottom: .6rem;
}
.highlight-item p {
    font-size: .87rem;
    color: rgba(255,255,255,.65);
    margin: 0;
    line-height: 1.5;
}

/* ── Formations home section ────────────────────────────────── */
.formations-home {
    padding: 5rem 0;
    background: var(--white);
}
.formations-home-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-top: 2.5rem;
}
.fh-card {
    display: flex;
    flex-direction: column;
    gap: .6rem;
    padding: 2rem 1.75rem 1.75rem;
    border-radius: var(--radius-lg);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease);
    color: inherit;
}
.fh-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.fh-card--blue   { background: #dbeafe; border: 1.5px solid #93c5fd; }
.fh-card--teal   { background: #ccfbf1; border: 1.5px solid #5eead4; }
.fh-card--purple { background: #ede9fe; border: 1.5px solid #c4b5fd; }
.fh-card--gold   { background: #fef3c7; border: 1.5px solid #fcd34d; }
.fh-card:hover.fh-card--blue   { border-color: var(--blue); }
.fh-card:hover.fh-card--teal   { border-color: var(--teal); }
.fh-card:hover.fh-card--purple { border-color: var(--purple); }
.fh-card:hover.fh-card--gold   { border-color: #d97706; }
.fh-card-eyebrow {
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: .15rem;
}
.fh-card--blue   .fh-card-eyebrow { color: var(--blue); }
.fh-card--teal   .fh-card-eyebrow { color: var(--teal); }
.fh-card--purple .fh-card-eyebrow { color: var(--purple); }
.fh-card--gold   .fh-card-eyebrow { color: #b45309; }
.fh-card h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--navy);
    margin: 0;
    line-height: 1.2;
}
.fh-card p {
    font-size: .875rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.6;
    flex: 1;
}
.fh-card-count {
    font-size: .78rem;
    font-weight: 700;
    color: var(--text-light);
    margin-top: .25rem;
}
.fh-card-arrow {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
    margin-top: .25rem;
    transition: transform .2s var(--ease);
}
.fh-card:hover .fh-card-arrow { transform: translateX(4px); }

/* ── Strengths section ──────────────────────────────────────── */
.strengths {
    padding: 5rem 0;
    background: var(--gray-50);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.strengths-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}
.strength-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.strength-item:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}
.strength-item:nth-child(1) { border-left: 4px solid var(--blue);   }
.strength-item:nth-child(2) { border-left: 4px solid var(--teal);   }
.strength-item:nth-child(3) { border-left: 4px solid var(--orange); }
.strength-item:nth-child(4) { border-left: 4px solid var(--purple); }
.strength-item:nth-child(5) { border-left: 4px solid var(--green);  }
.strength-item:nth-child(6) { border-left: 4px solid var(--coral);  }
.strength-item:nth-child(1):hover { border-color: var(--blue);   }
.strength-item:nth-child(2):hover { border-color: var(--teal);   }
.strength-item:nth-child(3):hover { border-color: var(--orange); }
.strength-item:nth-child(4):hover { border-color: var(--purple); }
.strength-item:nth-child(5):hover { border-color: var(--green);  }
.strength-item:nth-child(6):hover { border-color: var(--coral);  }
.strength-icon {
    font-size: 1.5rem;
    line-height: 1;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: var(--blue-light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: .1rem;
}
.strength-item:nth-child(1) .strength-icon { background: #dbeafe; }
.strength-item:nth-child(2) .strength-icon { background: #ccfbf1; }
.strength-item:nth-child(3) .strength-icon { background: #ffedd5; }
.strength-item:nth-child(4) .strength-icon { background: #ede9fe; }
.strength-item:nth-child(5) .strength-icon { background: #dcfce7; }
.strength-item:nth-child(6) .strength-icon { background: #fee2e2; }
.strength-item strong {
    display: block;
    font-size: .95rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: .3rem;
}
.strength-item p {
    font-size: .85rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.55;
}

/* ── Distance Learning banner ───────────────────────────────── */
.distance-learning {
    padding: 5rem 0;
    background: linear-gradient(135deg, #4c1d95 0%, #0f766e 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}
.distance-learning::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(255,255,255,.025);
}
.distance-learning-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}
.distance-text h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1rem;
    letter-spacing: -.02em;
}
.distance-text p {
    color: rgba(255,255,255,.75);
    margin: 0 0 .75rem;
    font-size: 1rem;
}
.distance-text .btn-outline {
    margin-top: 1.25rem;
    display: inline-block;
    background: rgba(255,255,255,.10);
    border: 1.5px solid rgba(255,255,255,.35);
    color: var(--white);
    padding: .7rem 1.75rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: .875rem;
    transition: background .2s, border-color .2s, transform .2s;
}
.distance-text .btn-outline:hover {
    background: rgba(255,255,255,.18);
    border-color: rgba(255,255,255,.6);
    color: var(--white);
    transform: translateY(-2px);
}
.distance-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    border: 2px solid rgba(255,255,255,.18);
    flex-shrink: 0;
    text-align: center;
    gap: .1rem;
}
.badge-year {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255,255,255,.55);
}
.badge-number {
    font-size: 2.75rem;
    font-weight: 900;
    color: var(--white);
    line-height: 1;
    letter-spacing: -.04em;
}

/* ── Admissions info ────────────────────────────────────────── */
.admissions-info {
    padding: 5rem 0;
    background: var(--white);
}
.admissions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}
.admissions-card {
    background: var(--gray-50);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem 1.75rem;
    transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.admissions-card:hover {
    border-color: var(--blue);
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}
.admissions-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: .75rem;
    padding-bottom: .75rem;
    border-bottom: 2px solid var(--border);
}
.admissions-card p {
    font-size: .9rem;
    color: var(--text-light);
    margin: 0 0 1.25rem;
    line-height: 1.65;
}
.admissions-card .btn-outline { font-size: .85rem; }

/* ── Latest posts (home) ────────────────────────────────────── */
.latest-posts {
    padding: 5rem 0;
    background: var(--gray-50);
    border-top: 1px solid var(--border);
}
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}
.post-card {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
    display: flex;
    flex-direction: column;
}
.post-card:hover {
    border-color: transparent;
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}
.post-card-thumb {
    display: block;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--bg-light);
    flex-shrink: 0;
}
.post-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s var(--ease);
}
.post-card:hover .post-card-thumb img {
    transform: scale(1.05);
}
.post-card-body {
    padding: 1.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}
.post-card-date {
    font-size: .75rem;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.post-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.35;
    transition: color .2s;
}
.post-card-title:hover { color: var(--blue); }
.post-card-excerpt {
    font-size: .875rem;
    color: var(--text-light);
    flex: 1;
    line-height: 1.65;
}
.post-card-more {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    margin-top: .75rem;
    font-size: .82rem;
    font-weight: 700;
    color: var(--blue);
    transition: gap .2s var(--ease);
}
.post-card-more:hover { color: var(--blue-dark); gap: .55rem; }

/* ── Post listing page ──────────────────────────────────────── */
.posts-page { padding: 4rem 0; }
.post-list-full {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

/* ── Contact CTA strip ──────────────────────────────────────── */
.contact-cta {
    background: linear-gradient(135deg, #ea580c 0%, #dc2626 100%);
    padding: 4.5rem 0;
}
.contact-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
    flex-wrap: wrap;
}
.contact-cta h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: .5rem;
    letter-spacing: -.02em;
}
.contact-cta p {
    color: rgba(255,255,255,.8);
    margin: 0;
    font-size: .95rem;
    max-width: 520px;
}
.contact-cta-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    flex-shrink: 0;
}
.btn-outline-white {
    display: inline-flex;
    align-items: center;
    padding: .75rem 1.75rem;
    background: transparent;
    border: 2px solid rgba(255,255,255,.55);
    color: var(--white);
    font-family: var(--font);
    font-size: .875rem;
    font-weight: 600;
    border-radius: var(--radius);
    transition: background .2s, border-color .2s, transform .2s;
}
.btn-outline-white:hover {
    background: rgba(255,255,255,.15);
    border-color: rgba(255,255,255,.9);
    color: var(--white);
    transform: translateY(-2px);
}

/* ── Breadcrumb ─────────────────────────────────────────────── */
.breadcrumb {
    background: var(--gray-50);
    border-bottom: 1px solid var(--border);
    padding: .875rem 0;
}
.breadcrumb .section-inner {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .82rem;
    color: var(--text-light);
    flex-wrap: wrap;
}
.breadcrumb a {
    color: var(--text-light);
    transition: color .2s;
}
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb span { color: var(--navy); font-weight: 600; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .65rem 1.5rem;
    font-family: var(--font);
    font-size: .875rem;
    font-weight: 600;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all .2s var(--ease);
    border: 2px solid transparent;
    letter-spacing: -.01em;
}
.btn-primary {
    background: var(--blue);
    color: var(--white);
    border-color: var(--blue);
    box-shadow: 0 4px 14px rgba(4,72,239,.25);
}
.btn-primary:hover {
    background: var(--blue-dark);
    border-color: var(--blue-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(4,72,239,.35);
}
.btn-outline {
    background: transparent;
    color: var(--navy);
    border-color: var(--gray-200);
}
.btn-outline:hover {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
    transform: translateY(-1px);
}

/* ── Single post / page ─────────────────────────────────────── */
.post-single, .page-single { padding: 4rem 0; }
.article-header {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}
.article-header h1 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    color: var(--navy);
    margin-bottom: .75rem;
    letter-spacing: -.025em;
    line-height: 1.15;
}
.article-meta {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
    font-size: .82rem;
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 1rem;
}
.post-terms { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .75rem; }
.post-terms li a {
    background: var(--blue-light);
    color: var(--blue);
    padding: .25rem .8rem;
    border-radius: 50px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .02em;
    transition: background .2s, color .2s;
}
.post-terms li a:hover { background: var(--blue); color: var(--white); }
.lang-switcher { display: flex; gap: .5rem; margin-top: .75rem; }
.lang-switcher li a {
    border: 2px solid var(--navy);
    color: var(--navy);
    padding: .2rem .65rem;
    border-radius: var(--radius-sm);
    font-size: .72rem;
    font-weight: 700;
    transition: background .2s, color .2s;
}
.lang-switcher li a:hover { background: var(--navy); color: var(--white); }
.post-content {
    font-size: 1.05rem;
    line-height: 1.85;
    /*max-width: 780px;*/
    color: var(--text);
}
.post-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
    margin-top: 2.5rem;
    letter-spacing: -.02em;
}
.post-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--navy);
    margin-top: 2rem;
}
.post-content p { margin: 0 0 1.25rem; }
.post-content a { color: var(--blue); }
.post-content a:hover { color: var(--blue-dark); }
.post-content img { border-radius: var(--radius); margin: 1.5rem 0; }
.post-content ul, .post-content ol {
    padding-left: 1.5rem;
    margin: 0 0 1.25rem;
}
.post-content li { margin-bottom: .4rem; }
.post-content blockquote {
    border-left: 3px solid var(--blue);
    margin: 1.5rem 0;
    padding: .75rem 1.5rem;
    background: var(--blue-light);
    border-radius: 0 var(--radius) var(--radius) 0;
    color: var(--navy-mid);
    font-style: italic;
}

/* ── 404 error page ─────────────────────────────────────────── */
.error-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 62vh;
    text-align: center;
    padding: 4rem 2rem;
    gap: 1.5rem;
}
.error-page h1 {
    font-size: 9rem;
    font-weight: 900;
    color: var(--blue);
    line-height: 1;
    margin: 0;
    letter-spacing: -.04em;
    background: linear-gradient(135deg, var(--blue) 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.error-page p { font-size: 1.2rem; color: var(--text-light); margin: 0; }

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
    background: var(--navy-dark);
    color: rgba(255,255,255,.6);
    padding: 5rem 0 0;
    margin-top: 5rem;
    font-size: .875rem;
}
.footer-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem 4rem;
}
.footer-logo-link {
    display: inline-flex;
    margin-bottom: 1rem;
    background: rgba(255,255,255,.06);
    border-radius: var(--radius);
    padding: 6px 10px;
    transition: background .2s;
}
.footer-logo-link:hover { background: rgba(255,255,255,.10); }
.footer-logo { height: 58px; width: auto; display: block; }
.footer-brand p {
    margin: 0 0 1.5rem;
    line-height: 1.7;
    color: rgba(255,255,255,.55);
    font-size: .875rem;
}
.footer-social { display: flex; gap: .5rem; flex-wrap: wrap; }
.footer-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.06);
    color: rgba(255,255,255,.55);
    border-radius: 8px;
    transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.footer-social a svg { width: 15px; height: 15px; fill: currentColor; }
.footer-social a:hover {
    background: var(--blue);
    color: var(--white);
    transform: translateY(-2px);
}
.footer-col h4 {
    font-size: .7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .12em;
    margin-bottom: 1.25rem;
}
.footer-col:nth-child(2) h4 { color: #34d399; }
.footer-col:nth-child(3) h4 { color: #fb923c; }
.footer-col:nth-child(4) h4 { color: #a78bfa; }
.footer-col ul { display: flex; flex-direction: column; gap: .6rem; }
.footer-col li { color: rgba(255,255,255,.5); font-size: .875rem; }
.footer-col a {
    color: rgba(255,255,255,.55);
    transition: color .2s, padding-left .2s;
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.07);
    margin-top: 4rem;
    padding: 1.5rem 2rem;
    text-align: center;
    font-size: .8rem;
    color: rgba(255,255,255,.35);
    max-width: var(--max-w);
    margin-left: auto;
    margin-right: auto;
}
.footer-visits {
    font-size: .75rem;
    color: rgba(255,255,255,.35);
    margin: .3rem 0 0;
}
.footer-visits span { font-weight: 700; color: rgba(255,255,255,.55); }

/* ── Contact page ───────────────────────────────────────────── */
.contact-page { padding: 4rem 0; }
.contact-layout {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 3rem;
    align-items: start;
    margin-top: 2.5rem;
}
.contact-info { display: flex; flex-direction: column; gap: 1.25rem; }

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    background: #22c55e;
    color: var(--white);
    padding: .7rem 1.35rem;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: .9rem;
    transition: background .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
    box-shadow: 0 4px 16px rgba(34,197,94,.25);
}
.btn-whatsapp:hover {
    background: #16a34a;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34,197,94,.35);
}
.btn-whatsapp--large {
    padding: .9rem 1.6rem;
    font-size: 1rem;
    border-radius: var(--radius);
    justify-content: center;
}
.contact-wa-note { margin: 0; font-size: .8rem; color: var(--text-light); }
.contact-info-cards { display: flex; flex-direction: column; gap: .85rem; }
.contact-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: var(--gray-50);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.2rem;
    transition: border-color .2s, box-shadow .2s;
}
.contact-card:hover { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-light); }
.contact-card-icon {
    font-size: 1.3rem;
    line-height: 1;
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    background: var(--blue-light);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
}
.contact-card strong {
    display: block;
    font-size: .82rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: .2rem;
}
.contact-card p { margin: 0; font-size: .875rem; color: var(--text-light); }
.contact-card a { color: var(--blue); }
.contact-card a:hover { color: var(--blue-dark); }

/* Contact form */
.contact-form-wrap h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 1.5rem;
    letter-spacing: -.02em;
}
.form-errors {
    background: #fef2f2;
    border: 1.5px solid #fca5a5;
    border-radius: var(--radius);
    padding: .875rem 1rem;
    margin-bottom: 1.25rem;
}
.form-errors ul { padding-left: 1.25rem; margin: 0; list-style: disc; }
.form-errors li { font-size: .875rem; color: #b91c1c; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.form-group { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1rem; }
.form-group label {
    font-size: .82rem;
    font-weight: 600;
    color: var(--navy);
    letter-spacing: .01em;
}
.form-group .req { color: var(--blue); }
.form-group input,
.form-group textarea,
.form-group select {
    font-family: var(--font);
    font-size: .9rem;
    color: var(--text);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: .6rem .9rem;
    outline: none;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
    background: var(--white);
    width: 100%;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px var(--blue-light);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.btn-submit {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: var(--blue);
    color: var(--white);
    font-family: var(--font);
    font-size: .9rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    padding: .8rem 2rem;
    border-radius: var(--radius);
    transition: background .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
    box-shadow: 0 4px 16px rgba(4,72,239,.25);
}
.btn-submit:hover {
    background: var(--blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(4,72,239,.35);
}

/* Contact success */
.contact-success {
    text-align: center;
    padding: 4rem 2rem;
    max-width: 520px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
.contact-success-icon {
    width: 68px;
    height: 68px;
    background: #dcfce7;
    color: #16a34a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
}
.contact-success h2 {
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--navy);
    margin: 0;
    letter-spacing: -.02em;
}
.contact-success p { color: var(--text-light); margin: 0; }
.contact-success-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: .5rem;
}

/* ── Hamburger button ───────────────────────────────────────── */
.nav-toggle {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--radius-sm);
    cursor: pointer;
    padding: 4px;
    margin-left: auto;
    flex-shrink: 0;
    transition: background .2s;
}
.nav-toggle:hover { background: rgba(255,255,255,.15); }
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: transform .3s var(--ease), opacity .3s var(--ease);
    transform-origin: center;
}
.site-nav.is-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-nav.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-nav.is-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 769px) {
    .nav-toggle { display: none; }
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .footer-inner { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}

@media (max-width: 960px) {
    .header-search { display: none; }
    .hero { min-height: 70vh; }
    .distance-learning-inner { grid-template-columns: 1fr; gap: 2rem; }
    .distance-badge { width: 130px; height: 130px; margin: 0 auto; }
    .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex !important; }
    .site-nav {
        position: relative;
        display: flex;
        align-items: center;
        padding: 0 1rem;
        min-height: 50px;
    }
    .site-nav > ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--navy);
        padding: .5rem 0;
        box-shadow: 0 12px 32px rgba(0,0,0,.3);
        z-index: 200;
        justify-content: flex-start;
        gap: 0;
        max-height: calc(100dvh - 110px);
        overflow-y: auto;
        border-top: 1px solid rgba(255,255,255,.06);
    }
    .site-nav.is-open > ul { display: flex; }
    .site-nav > ul > li { width: 100%; }
    .site-nav > ul > li > a {
        padding: .875rem 1.25rem;
        border-bottom: 1px solid rgba(255,255,255,.05);
        display: flex;
        align-items: center;
        justify-content: space-between;
        text-transform: none;
        font-size: .9rem;
    }
    .site-nav > ul > li > a::after { display: none; }
    .site-nav .sub-menu {
        position: static;
        display: none;
        box-shadow: none;
        background: rgba(0,0,0,.2);
        min-width: 0;
        padding: 0;
        border: none;
        border-radius: 0;
    }
    .site-nav .has-children.is-open > .sub-menu { display: flex; }
    .site-nav .has-children.is-open > a .chevron { transform: rotate(180deg); }
    .site-nav .sub-menu a {
        padding-left: 2.25rem;
        color: rgba(255,255,255,.7);
        background: transparent;
        border-radius: 0;
    }
    .site-nav .sub-menu a:hover {
        background: rgba(255,255,255,.07);
        color: var(--white);
    }
    .site-nav .has-children:hover > .sub-menu { display: none; }
    .site-nav .has-children.is-open > .sub-menu { display: flex; }
    .contact-cta-inner { flex-direction: column; }
}

@media (max-width: 640px) {
    .header-top { padding: .65rem 1rem; }
    .site-title { font-size: 1rem; }
    .hero { min-height: 75vh; max-height: none; }
    .hero-content h1 { font-size: 2rem; }
    .highlights-grid { grid-template-columns: repeat(2, 1fr); }
    .highlight-item + .highlight-item::before { display: none; }
    .highlight-item { padding: 1.5rem; }
    .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
    .section-inner { padding: 0 1.25rem; }
    .post-grid, .post-list-full { grid-template-columns: 1fr; }
    .post-single, .page-single { padding: 2rem 0; }
    .formations-home { padding: 3.5rem 0; }
    .strengths { padding: 3.5rem 0; }
    .admissions-info { padding: 3.5rem 0; }
    .distance-learning { padding: 3.5rem 0; }
    .latest-posts { padding: 3.5rem 0; }
    .contact-cta { padding: 3rem 0; }
    .form-row { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .btn-hero,
    .hero-actions .btn-ghost { text-align: center; justify-content: center; }
}

/* ── Pagination ─────────────────────────────────────────────────────────── */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 2.5rem 0 1rem;
    flex-wrap: wrap;
}

.pagination-pages {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: .25rem;
}

.pagination-pages a,
.pagination-pages .pagination-current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 .5rem;
    border-radius: 6px;
    font-size: .9rem;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid var(--border, #ddd);
    color: var(--text, #333);
    transition: background .15s, color .15s;
}

.pagination-pages a:hover {
    background: var(--blue, #1a56db);
    color: #fff;
    border-color: var(--blue, #1a56db);
}

.pagination-pages .pagination-current {
    background: var(--blue, #1a56db);
    color: #fff;
    border-color: var(--blue, #1a56db);
}

.pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    padding: 0 .25rem;
    color: var(--text-light, #888);
    font-size: .9rem;
}

.pagination-prev,
.pagination-next {
    font-size: .9rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--blue, #1a56db);
    padding: .4rem .75rem;
    border-radius: 6px;
    border: 1px solid var(--border, #ddd);
    transition: background .15s, color .15s;
}

.pagination-prev:hover,
.pagination-next:hover {
    background: var(--blue, #1a56db);
    color: #fff;
    border-color: var(--blue, #1a56db);
}

.pagination-disabled {
    opacity: .4;
    cursor: default;
    pointer-events: none;
}
