  :root {
    --green: #157a3a;
    --green-dark: #0f5c2b;
    --green-deep: #083d1b;
    --ink: #323333;
    --gray-800: #4c4c4d;
    --gray-600: #656666;
    --gray-400: #7d7f80;
    --border: #cacbcc;
    --light: #f8f9fa;
    --light-2: #e3e4e6;
    --light-3: #cacbcc;
    --focus: #036796;
    --radius: .75rem;
    --container: 1320px;
  }

  * { box-sizing: border-box; }

  html { scroll-behavior: smooth; }

  body {
    margin: 0;
    font-family: "Sofia Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--ink);
    background: #fff;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
  }

  img { max-width: 100%; display: block; }
  a { color: inherit; text-decoration: none; }
  button { font: inherit; cursor: pointer; }
  h1, h2, h3, h4, p { margin: 0; }

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

  .arrow-link {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    color: var(--green);
    font-weight: 600;
    line-height: 1.2;
    transition: color .2s ease;
  }
  .arrow-link:hover { color: var(--green-dark); }
  .arrow-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    color: var(--green);
    transition: transform .2s ease;
  }
  .arrow-link:hover .arrow-icon { transform: translateX(4px); }

  .visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  :focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 3px;
    border-radius: 4px;
  }

  /* Utility bar */
  .utility-bar {
    background: #2b2c2c;
    color: #cacbcc;
    font-size: .875rem;
  }
  .utility-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 40px;
    gap: 1rem;
  }
  .util-univ { color: #cacbcc; }
  .util-univ:hover { color: #fff; }
  .util-nav { display: flex; align-items: center; gap: 1.5rem; }
  .util-nav a { color: #cacbcc; padding: .25rem 0; }
  .util-nav a:hover { color: #fff; }

  /* Header */
  .site-header {
    background: var(--light);
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(0,0,0,.04);
  }
  .header-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    min-height: 92px;
  }
  .brand { display: flex; align-items: center; flex-shrink: 0; }
  .brand img { height: 64px; width: auto; }

  .menu-toggle {
    display: none;
    margin-left: auto;
    background: none;
    border: 1px solid var(--border);
    border-radius: .375rem;
    width: 46px;
    height: 42px;
    color: var(--ink);
    font-size: 1.1rem;
  }

  .main-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-left: auto;
  }
  .main-menu {
    display: flex;
    align-items: center;
    gap: .25rem;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .main-menu > li { position: relative; }
  .main-menu > li > a {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .75rem 1rem;
    font-weight: 600;
    color: var(--ink);
    border-radius: .375rem;
  }
  .main-menu > li > a:hover { color: var(--green); }
  .main-menu > li > a .fa-chevron-down {
    font-size: .6rem;
    opacity: .7;
    transition: transform .2s ease;
  }
  .main-menu > li:hover > a .fa-chevron-down { transform: rotate(180deg); }

  .dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 230px;
    background: #fff;
    border-radius: .5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,.14);
    padding: .5rem 0;
    list-style: none;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all .2s ease;
    z-index: 20;
  }
  .main-menu > li:hover .dropdown,
  .main-menu > li:focus-within .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .dropdown a {
    display: block;
    padding: .65rem 1.25rem;
    color: var(--ink);
    font-weight: 500;
    font-size: .95rem;
  }
  .dropdown a:hover { background: var(--light); color: var(--green); }

  .main-menu > li.has-mega { position: static; }
  .main-menu > li.has-mega > a { position: relative; }
  .main-menu > li.has-mega > a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 2rem;
  }

  .mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    width: min(1120px, calc(100vw - 48px));
    max-height: calc(100vh - 170px);
    max-height: calc(100dvh - 170px);
    overflow-y: auto;
    transform: translate(-50%, 8px);
    background: #fff;
    border-radius: .75rem;
    box-shadow: 0 24px 60px rgba(0,0,0,.18);
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
    z-index: 20;
  }
  .main-menu > li.has-mega:hover > .mega-menu,
  .main-menu > li.has-mega:focus-within > .mega-menu,
  .main-menu > li.has-mega.open > .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
  }
  .mega-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.75rem 2rem;
  }
  .mega-group { min-width: 0; }
  .mega-title {
    display: block;
    font-size: .95rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: .5rem;
    padding-bottom: .45rem;
    border-bottom: 1px solid #ececec;
  }
  a.mega-title:hover { color: var(--green); }
  .mega-link,
  .mega-sublist a {
    display: block;
    font-size: .88rem;
    line-height: 1.35;
    color: var(--gray-800);
    padding: .24rem 0;
  }
  .mega-link:hover,
  .mega-sublist a:hover { color: var(--green); }
  .mega-group.span-2 { grid-column: span 2; }
  .mega-sublist {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 1rem;
  }

  .mega-menu--formations { width: min(960px, calc(100vw - 48px)); }
  .mega-grid--formations { grid-template-columns: 1.15fr 1fr; }
  .faculty-list { display: flex; flex-direction: column; gap: .55rem; }
  .faculty-link {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    padding: .6rem .75rem;
    border: 1px solid #ececec;
    border-radius: .5rem;
    transition: border-color .2s ease, background .2s ease;
  }
  .faculty-link:hover { border-color: var(--green); background: #f5fbf7; }
  .faculty-code { font-weight: 800; color: var(--green); letter-spacing: .04em; }
  .faculty-name { font-size: .8rem; line-height: 1.35; color: var(--gray-600); }

  .search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--light-2);
    color: var(--ink);
    font-size: .95rem;
    transition: background .2s ease, color .2s ease;
  }
  .search-btn:hover { background: var(--green); color: #fff; }

  .search-overlay {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(8, 61, 27, .62);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s ease, visibility .25s ease;
  }
  .search-overlay.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .search-close {
    position: absolute;
    top: 24px;
    right: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.4);
    background: rgba(255,255,255,.08);
    color: #fff;
    font-size: 1.1rem;
    transition: background .2s ease, border-color .2s ease;
  }
  .search-close:hover { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.7); }
  .search-form {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: min(860px, 100%);
    padding: .5rem 0 1rem;
    border-bottom: 2px solid rgba(255,255,255,.75);
  }
  .search-form input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: none;
    background: transparent;
    color: #fff;
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-weight: 600;
    padding: .25rem 0;
  }
  .search-form input::placeholder { color: rgba(255,255,255,.55); }
  .search-form input::-webkit-search-cancel-button { filter: invert(1); }
  .search-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.4);
    background: rgba(255,255,255,.08);
    color: #fff;
    font-size: 1.1rem;
    transition: background .2s ease, border-color .2s ease;
  }
  .search-submit:hover { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.7); }

  /* Hero */
  .hero { position: relative; }
  .hero-main {
    background: linear-gradient(100deg, var(--green) 0%, var(--green-dark) 55%, var(--green-deep) 100%);
    position: relative;
    overflow: hidden;
    padding: 7rem 0 8.5rem;
  }
  .hero-main::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
      repeating-linear-gradient(45deg, rgba(255,255,255,.05) 0 2px, transparent 2px 22px),
      radial-gradient(circle at 80% 20%, rgba(255,255,255,.10), transparent 45%);
    pointer-events: none;
  }
  .hero-heading {
    position: relative;
    z-index: 1;
    color: #fff;
    max-width: 62%;
    font-size: clamp(2rem, 3.6vw, 3.4rem);
    line-height: 1.16;
    letter-spacing: -.01em;
  }
  .hero-heading span { font-weight: 400; }
  .hero-heading strong { font-weight: 800; }

  .hero-tabs-wrap {
    position: relative;
    z-index: 2;
    margin-top: -2.5rem;
  }
  .hero-tabs {
    display: flex;
    border-radius: .375rem;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(0,0,0,.12);
  }
  .hero-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: .2rem;
    padding: 1.35rem 2rem;
    color: var(--ink);
    background: var(--light);
    transition: filter .2s ease;
  }
  .hero-tab:nth-child(2) { background: var(--light-2); }
  .hero-tab:nth-child(3) { background: var(--light-3); }
  .hero-tab:hover { filter: brightness(.96); }
  .hero-tab-title {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
  }
  .hero-tab-sub { font-size: .9rem; color: var(--gray-800); }
  .hero-tab:hover .hero-tab-title { text-decoration: underline; text-underline-offset: 3px; }

  /* Featured news */
  .news-section { padding: 5rem 0; }
  .featured-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,.12);
  }
  .featured-media {
    position: relative;
    overflow: hidden;
    background: var(--light-2);
    min-height: 340px;
  }
  .featured-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .9s ease-in-out;
  }
  .featured-card:hover .featured-media img { transform: scale(1.06); }
  .featured-body {
    padding: clamp(1.75rem, 4vw, 3rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .featured-body h2 {
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    line-height: 1.22;
    font-weight: 700;
    margin-bottom: .9rem;
  }
  .featured-meta {
    color: var(--gray-600);
    font-size: .95rem;
    margin-bottom: 1rem;
  }
  .featured-excerpt {
    color: var(--gray-800);
    font-size: 1.02rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
  }
  .featured-cta { align-self: flex-start; }

  /* Stats */
  .stats-section {
    padding: 5rem 0;
    background-color: #fff;
    background-image:
      linear-gradient(to right, rgba(0,0,0,.045) 1px, transparent 1px),
      linear-gradient(to bottom, rgba(0,0,0,.045) 1px, transparent 1px);
    background-size: 54px 54px;
    position: relative;
  }
  .stats-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,0) 55%);
    pointer-events: none;
  }
  .stats-inner { position: relative; z-index: 1; }
  .section-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
    margin-bottom: 3rem;
  }
  .section-head h2 {
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    font-weight: 700;
  }
  .stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
  }
  .stat {
    text-align: center;
    padding: 1rem 2rem;
  }
  .stat + .stat { border-left: 1px solid var(--gray-400); }
  .stat-number {
    color: var(--green);
    font-weight: 800;
    font-size: clamp(2.6rem, 5vw, 4.5rem);
    line-height: 1;
    letter-spacing: -.02em;
    white-space: nowrap;
  }
  .stat-number sup {
    color: var(--green);
    font-size: .42em;
    top: -.9em;
    margin: 0 .12em;
    position: relative;
    vertical-align: baseline;
  }
  .stat-text {
    margin: 1.25rem auto 0;
    max-width: 280px;
    font-size: 1.08rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--ink);
  }

  /* Program slider */
  .programs-section {
    background: linear-gradient(90deg, var(--green) 0%, var(--green-dark) 55%, var(--green-deep) 100%);
    padding: 4.5rem 0;
    color: #fff;
  }
  .programs-section h2 {
    max-width: 900px;
    margin: 0 auto 3rem;
    text-align: center;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    font-weight: 700;
    line-height: 1.25;
  }
  .program-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: .5rem;
    scrollbar-width: none;
  }
  .program-track::-webkit-scrollbar { display: none; }
  .program-card {
    position: relative;
    flex: 0 0 240px;
    aspect-ratio: 4 / 5;
    border-radius: .5rem;
    overflow: hidden;
    background: #2b2b2b;
    scroll-snap-align: start;
    isolation: isolate;
  }
  .program-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease-in-out;
  }
  .program-card:hover img { transform: scale(1.12); }
  .program-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 20%, rgba(0,0,0,.35) 60%, rgba(0,0,0,.82) 100%);
  }
  .program-card h3 {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 1rem;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
  }
  .program-card:hover h3 { text-decoration: underline; text-underline-offset: 2px; }
  .slider-nav {
    display: flex;
    gap: .5rem;
    margin-top: 1.75rem;
  }
  .slider-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.7);
    background: transparent;
    color: #fff;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .2s ease, color .2s ease;
  }
  .slider-btn:hover { background: #fff; color: var(--green); }

  /* Video */
  .video-section {
    position: relative;
    min-height: 440px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-color: #1a1a1a;
  }
  .video-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.48);
  }
  .video-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(1.5rem, 5vw, 4rem);
    text-align: right;
    padding: 5rem 24px;
  }
  .video-content h2 {
    color: #fff;
    font-size: clamp(1.6rem, 3.2vw, 2.4rem);
    font-weight: 700;
    max-width: 520px;
    line-height: 1.2;
  }
  .play-btn {
    width: 104px;
    height: 104px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.85);
    background: rgba(255,255,255,.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background .2s ease, transform .2s ease;
  }
  .play-btn:hover { background: var(--green); transform: scale(1.05); }
  .play-btn .triangle {
    width: 0;
    height: 0;
    border-top: 18px solid transparent;
    border-bottom: 18px solid transparent;
    border-left: 28px solid #fff;
    margin-left: 8px;
  }

  .video-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
  }
  .video-modal[hidden] { display: none; }
  .video-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.85);
  }
  .video-modal-body {
    position: relative;
    width: min(960px, 100%);
    z-index: 1;
  }
  .video-embed {
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: .5rem;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,.5);
  }
  .video-embed iframe { width: 100%; height: 100%; border: 0; }
  .video-close {
    position: absolute;
    top: -48px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    padding: .25rem .5rem;
  }

  /* Community / CTA */
  .community-section { padding: 5rem 0; }
  .community-section .section-head hr {
    width: 100%;
    border: 0;
    border-top: 1px solid #dedede;
    margin-bottom: .5rem;
  }
  .community-grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: start;
  }
  .cta-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem 2rem;
  }
  .cta-item .arrow-link { font-size: 1.15rem; }
  .cta-item .cta-text {
    margin-top: .85rem;
    color: var(--gray-800);
    font-size: .98rem;
    line-height: 1.6;
  }
  .student-card {
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,.13);
  }
  .student-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
  }
  .student-card-body { padding: 1.75rem 2rem 2rem; }
  .student-card-body h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: .3rem;
  }
  .student-card-body h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-600);
    margin-bottom: 1rem;
  }
  .student-card-body p {
    color: var(--gray-800);
    font-size: .98rem;
    line-height: 1.6;
  }

  /* Footer */
  .site-footer {
    margin-top: 3rem;
    background: var(--ink);
    color: #cacbcc;
  }
  .footer-main {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 2.5rem;
    padding-top: 4rem;
    padding-bottom: 3rem;
  }
  .footer-brand img { width: 210px; }
  .footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  .footer-col h4 {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
  }
  .footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .footer-col li { margin-bottom: .55rem; }
  .footer-col a {
    color: #cacbcc;
    font-size: .95rem;
    transition: color .2s ease;
  }
  .footer-col a:hover { color: #fff; text-decoration: underline; }
  .footer-col a .fa-arrow-up-right-from-square { font-size: .7rem; margin-left: .25rem; }

  .socials {
    display: flex;
    gap: .35rem;
    margin-bottom: 1.25rem;
  }
  .socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: .375rem;
    color: #cacbcc;
    font-size: 1.15rem;
    transition: background .2s ease, color .2s ease;
  }
  .socials a:hover { background: rgba(255,255,255,.1); color: #fff; }
  .footer-address {
    font-style: normal;
    font-size: .93rem;
    line-height: 1.7;
  }
  .footer-address a { text-decoration: underline; }
  .footer-address a:hover { color: #fff; }

  .footer-bottom {
    border-top: 1px solid rgba(255,255,255,.12);
    padding: 1.1rem 0;
    text-align: center;
    font-size: .88rem;
    color: #b5b6b7;
  }
  .footer-bottom a { text-decoration: underline; }
  .footer-bottom a:hover { color: #fff; }

  /* Responsive */
  @media (min-width: 1200px) {
    .program-card { flex-basis: calc((100% - 100px) / 6); }
  }
  @media (min-width: 992px) and (max-width: 1199.98px) {
    .program-card { flex-basis: calc((100% - 60px) / 4); }
  }

  @media (max-width: 1099.98px) {
    .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
    .main-nav {
      display: none;
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      flex-direction: column;
      align-items: stretch;
      gap: 0;
      background: #fff;
      padding: 1rem 24px 1.5rem;
      box-shadow: 0 16px 30px rgba(0,0,0,.15);
      margin-left: 0;
      max-height: calc(100vh - 120px);
      max-height: calc(100dvh - 120px);
      overflow-y: auto;
    }
    .main-nav.open { display: flex; }
    .main-menu { flex-direction: column; align-items: stretch; }
    .main-menu > li > a { justify-content: space-between; padding: .8rem 0; }
    .dropdown {
      position: static;
      opacity: 1;
      visibility: visible;
      transform: none;
      box-shadow: none;
      padding: 0 0 .5rem 1rem;
      display: none;
    }
    .main-menu > li:hover .dropdown,
    .main-menu > li:focus-within .dropdown { display: block; }
    .main-menu > li.has-mega { position: relative; }
    .main-menu > li.has-mega > a::after { display: none; }
    .mega-menu,
    .mega-menu--formations {
      position: static;
      width: 100%;
      max-height: none;
      overflow: visible;
      transform: none;
      opacity: 1;
      visibility: visible;
      box-shadow: none;
      border-radius: 0;
      padding: 0 0 1rem 1rem;
      display: none;
    }
    .main-menu > li.has-mega.open > .mega-menu { display: block; }
    .main-menu > li.has-mega.open > .mega-menu,
    .main-menu > li.has-mega:hover > .mega-menu,
    .main-menu > li.has-mega:focus-within > .mega-menu { transform: none; }
    .mega-grid,
    .mega-grid--formations { grid-template-columns: 1fr; gap: 1.25rem; }
    .mega-group.span-2 { grid-column: auto; }
    .mega-sublist { grid-template-columns: 1fr; }
    .main-menu,
    .search-btn { flex-shrink: 0; }
    .search-btn { margin-top: 1rem; }
    .header-inner { min-height: 78px; }
    .hero-heading { max-width: 100%; }
    .community-grid { grid-template-columns: 1fr; }
    .footer-main { grid-template-columns: 1fr; }
    .footer-brand { text-align: center; }
    .footer-brand img { margin: 0 auto; }
  }

  @media (max-width: 767.98px) {
    .util-univ, .util-nav { display: none; }
    .utility-inner { justify-content: center; min-height: 34px; }
    .utility-inner::before {
      content: "Université de Datcha";
      font-size: .82rem;
    }
    .hero-main { padding: 4.5rem 0 7rem; }
    .hero-tabs { flex-direction: column; }
    .hero-tab { padding: 1.1rem 1.5rem; }
    .featured-card { grid-template-columns: 1fr; }
    .featured-media { min-height: 0; aspect-ratio: 16 / 9; }
    .stats-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .stat + .stat { border-left: 0; }
    .video-content { flex-direction: column; text-align: center; }
    .cta-list { grid-template-columns: 1fr; }
    .footer-links { grid-template-columns: 1fr; }
  }

  @media (max-width: 575.98px) {
    .brand img { height: 48px; }
    .container { padding: 0 18px; }
    .news-section, .stats-section, .community-section { padding: 3.5rem 0; }
    .programs-section { padding: 3.5rem 0; }
    .stat { padding: 0 1rem; }
    .search-form input { font-size: 1.35rem; }
    .search-close { top: 16px; right: 16px; }
  }

  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
  }

  /* ============================================================
     Inner pages
     ============================================================ */
  .inner-main { overflow: hidden; }

  .page-hero {
    position: relative;
    overflow: hidden;
    padding: 4.5rem 0 4rem;
    color: #fff;
    background: linear-gradient(100deg, var(--green) 0%, var(--green-dark) 58%, var(--green-deep) 100%);
  }
  .page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
      repeating-linear-gradient(45deg, rgba(255,255,255,.05) 0 2px, transparent 2px 22px),
      radial-gradient(circle at 86% 18%, rgba(255,255,255,.12), transparent 42%);
    pointer-events: none;
  }
  .page-hero .container { position: relative; z-index: 1; }
  .page-hero-inner { max-width: 860px; }
  .page-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    margin-bottom: 1rem;
    color: rgba(255,255,255,.82);
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
  }
  .page-eyebrow::before {
    content: "";
    width: 30px;
    height: 2px;
    background: #fff;
    opacity: .75;
  }
  .page-hero h1 {
    max-width: 920px;
    font-size: clamp(2rem, 4.2vw, 3.35rem);
    line-height: 1.12;
    letter-spacing: -.015em;
    font-weight: 800;
  }
  .page-hero p {
    max-width: 720px;
    margin-top: 1.1rem;
    color: rgba(255,255,255,.88);
    font-size: clamp(1rem, 1.8vw, 1.18rem);
    line-height: 1.65;
  }
  .breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .55rem;
    margin-top: 1.7rem;
    color: rgba(255,255,255,.7);
    font-size: .9rem;
  }
  .breadcrumb a { color: rgba(255,255,255,.9); }
  .breadcrumb a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
  .breadcrumb i { font-size: .55rem; opacity: .7; }

  .page-section { padding: 4.5rem 0; }
  .page-section--tight { padding: 3.25rem 0; }
  .page-section--light { background: var(--light); }
  .page-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: clamp(2.5rem, 6vw, 5rem);
    align-items: start;
  }
  .page-content { min-width: 0; }
  .page-content > * + * { margin-top: 1.15rem; }
  .page-content h2 {
    margin-top: 2.4rem;
    font-size: clamp(1.45rem, 2.5vw, 2rem);
    line-height: 1.25;
  }
  .page-content > h2:first-child { margin-top: 0; }
  .page-content h3 {
    margin-top: 1.85rem;
    font-size: 1.2rem;
    line-height: 1.35;
  }
  .page-content p,
  .page-content li {
    color: var(--gray-800);
    font-size: 1.02rem;
    line-height: 1.72;
  }
  .page-content ul,
  .page-content ol { margin: 1rem 0 0; padding-left: 1.35rem; }
  .page-content li + li { margin-top: .45rem; }
  .page-content a { color: var(--green); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
  .page-content a:hover { color: var(--green-dark); }
  .page-content strong { color: var(--ink); }
  .lead {
    color: var(--gray-800);
    font-size: clamp(1.08rem, 1.8vw, 1.24rem);
    line-height: 1.65;
  }

  .page-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
  }
  .page-card {
    display: flex;
    flex-direction: column;
    gap: .7rem;
    min-height: 100%;
    padding: 1.6rem;
    background: #fff;
    border: 1px solid #e4e5e6;
    border-radius: .7rem;
    box-shadow: 0 6px 18px rgba(0,0,0,.055);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  }
  .page-card:hover {
    transform: translateY(-3px);
    border-color: var(--green);
    box-shadow: 0 12px 28px rgba(0,0,0,.1);
  }
  .page-card .card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: .15rem;
    border-radius: .5rem;
    background: #e9f5ee;
    color: var(--green);
  }
  .page-card h3 { font-size: 1.12rem; line-height: 1.3; }
  .page-card p { color: var(--gray-600); font-size: .96rem; line-height: 1.6; }
  .page-card .card-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-top: auto;
    padding-top: .35rem;
    color: var(--green);
    font-size: .92rem;
    font-weight: 700;
  }
  .page-card:hover .card-link { color: var(--green-dark); }
  .page-card .card-link i { font-size: .75rem; transition: transform .2s ease; }
  .page-card:hover .card-link i { transform: translateX(3px); }

  .info-card {
    padding: 1.5rem;
    border-radius: .7rem;
    background: #f3faf6;
    border: 1px solid #cee8d8;
  }
  .info-card h2,
  .info-card h3 {
    margin: 0 0 .85rem;
    font-size: 1.1rem;
    line-height: 1.3;
  }
  .info-card p { color: var(--gray-800); font-size: .94rem; line-height: 1.65; }
  .info-card .btn { margin-top: 1rem; }
  .info-card--dark {
    color: #fff;
    background: linear-gradient(135deg, var(--green-dark), var(--green-deep));
    border-color: transparent;
  }
  .info-card--dark h2,
  .info-card--dark h3 { color: #fff; }
  .info-card--dark p { color: rgba(255,255,255,.82); }

  .fact-list { margin: 0; }
  .fact-list > div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .72rem 0;
    border-bottom: 1px solid rgba(0,0,0,.09);
  }
  .fact-list > div:last-child { border-bottom: 0; }
  .fact-list dt { color: var(--gray-600); font-size: .92rem; }
  .fact-list dd { margin: 0; color: var(--ink); font-size: .92rem; font-weight: 700; text-align: right; }

  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    min-height: 46px;
    padding: .65rem 1.15rem;
    border: 1px solid transparent;
    border-radius: .4rem;
    background: var(--green);
    color: #fff;
    font-weight: 700;
    font-size: .95rem;
    line-height: 1.2;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
  }
  .btn:hover { background: var(--green-dark); color: #fff; }
  .btn--outline { background: transparent; border-color: var(--green); color: var(--green); }
  .btn--outline:hover { background: var(--green); color: #fff; }
  .btn--light { background: #fff; color: var(--green-dark); }
  .btn--light:hover { background: #eaf5ee; color: var(--green-deep); }
  .btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

  .timeline { position: relative; margin: 1.5rem 0 0; padding: 0; list-style: none; }
  .timeline::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: #d8e9df;
  }
  .timeline li { position: relative; padding: 0 0 1.35rem 2.5rem; }
  .timeline li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 6px;
    width: 14px;
    height: 14px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 1px var(--green);
  }
  .timeline time { display: block; margin-bottom: .2rem; color: var(--green); font-size: .82rem; font-weight: 800; letter-spacing: .04em; }
  .timeline strong { display: block; margin-bottom: .2rem; font-size: 1rem; }
  .timeline p { color: var(--gray-600); font-size: .94rem; line-height: 1.6; }

  .table-wrap { width: 100%; overflow-x: auto; margin-top: 1.3rem; border: 1px solid #e2e3e4; border-radius: .6rem; }
  .data-table { width: 100%; border-collapse: collapse; background: #fff; font-size: .94rem; }
  .data-table th,
  .data-table td { padding: .8rem .95rem; text-align: left; border-bottom: 1px solid #e8e9ea; vertical-align: top; }
  .data-table th { background: #f2f8f4; color: var(--green-deep); font-size: .82rem; letter-spacing: .03em; text-transform: uppercase; }
  .data-table tr:last-child td { border-bottom: 0; }
  .data-table td { color: var(--gray-800); }

  .gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
  }
  .gallery-grid figure { margin: 0; overflow: hidden; border-radius: .65rem; background: #fff; border: 1px solid #e4e5e6; }
  .gallery-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .45s ease; }
  .gallery-grid figure:hover img { transform: scale(1.04); }
  .gallery-grid figcaption { padding: .8rem .9rem; color: var(--gray-600); font-size: .88rem; line-height: 1.45; }

  .event-list,
  .job-list { display: flex; flex-direction: column; gap: .85rem; margin-top: 1.4rem; }
  .event-item,
  .job-item {
    display: grid;
    grid-template-columns: 88px 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    background: #fff;
    border: 1px solid #e2e3e4;
    border-radius: .6rem;
  }
  .event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 70px;
    border-radius: .45rem;
    background: #e9f5ee;
    color: var(--green-dark);
    line-height: 1;
  }
  .event-date strong { font-size: 1.55rem; }
  .event-date span { margin-top: .25rem; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
  .event-item h3,
  .job-item h3 { font-size: 1rem; line-height: 1.35; }
  .event-item p,
  .job-item p { margin-top: .25rem; color: var(--gray-600); font-size: .9rem; }
  .event-item .btn,
  .job-item .btn { white-space: nowrap; }
  .job-item { grid-template-columns: 1fr auto; }

  .callout {
    margin-top: 1.5rem;
    padding: 1.25rem 1.35rem;
    border-left: 4px solid var(--green);
    border-radius: 0 .5rem .5rem 0;
    background: #f3faf6;
    color: var(--gray-800);
    font-size: .97rem;
    line-height: 1.65;
  }
  .callout strong { color: var(--green-deep); }

  .tag {
    display: inline-flex;
    align-items: center;
    padding: .24rem .55rem;
    border-radius: 100px;
    background: #e9f5ee;
    color: var(--green-dark);
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .02em;
  }

  .faq-list { display: flex; flex-direction: column; gap: .7rem; margin-top: 1.4rem; }
  .faq-list details { border: 1px solid #e2e3e4; border-radius: .55rem; background: #fff; }
  .faq-list summary {
    cursor: pointer;
    padding: 1rem 1.15rem;
    color: var(--ink);
    font-weight: 700;
    list-style-position: inside;
  }
  .faq-list details[open] summary { color: var(--green-dark); border-bottom: 1px solid #e8e9ea; }
  .faq-list details p { padding: 1rem 1.15rem; color: var(--gray-800); font-size: .96rem; line-height: 1.65; }

  .page-cta {
    position: relative;
    overflow: hidden;
    margin-top: 3rem;
    padding: clamp(1.75rem, 4vw, 2.75rem);
    border-radius: .8rem;
    color: #fff;
    background: linear-gradient(110deg, var(--green-dark), var(--green-deep));
  }
  .page-cta h2 { margin: 0 0 .55rem; color: #fff; font-size: clamp(1.35rem, 2.5vw, 1.85rem); }
  .page-cta p { max-width: 670px; color: rgba(255,255,255,.84); font-size: .98rem; line-height: 1.65; }

  .sidebar { display: flex; flex-direction: column; gap: 1rem; }
  .sticky-sidebar { position: sticky; top: 110px; }

  @media (max-width: 991.98px) {
    .page-layout { grid-template-columns: 1fr; }
    .sticky-sidebar { position: static; }
    .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }
  @media (max-width: 767.98px) {
    .page-hero { padding: 3.25rem 0 3rem; }
    .page-section { padding: 3.5rem 0; }
    .event-item { grid-template-columns: 70px 1fr; }
    .event-item .btn { grid-column: 1 / -1; justify-self: start; }
    .job-item { grid-template-columns: 1fr; }
    .job-item .btn { justify-self: start; }
  }
  @media (max-width: 575.98px) {
    .gallery-grid { grid-template-columns: 1fr; }
    .page-card { padding: 1.35rem; }
  }
