/*
 * CLC public visual system
 * This file owns the public-facing brand layer. Administration keeps the
 * compact operational styles in site.css.
 */

:root {
    --navy-950: #061a31;
    --navy-900: #08294d;
    --navy-800: #0a3a6d;
    --blue-700: #0b57b8;
    --blue-600: #1464d2;
    --blue-100: #e7f0fc;
    --blue-50: #f1f6fb;
    --amber-500: #f2b544;
    --amber-600: #dfa02c;
    --ink-900: #10243d;
    --ink-700: #3b4d63;
    --ink-500: #6b7a8c;
    --line-strong: #bdcad9;
    --line: #dce4ed;
    --surface-muted: #f1f6fb;
    --radius-sm: .625rem;
    --radius: 1rem;
    --radius-lg: 1.5rem;
    --shadow-sm: 0 8px 24px rgba(6, 26, 49, .06);
    --shadow-md: 0 22px 54px rgba(6, 26, 49, .13);
    --shadow-lg: 0 34px 80px rgba(6, 26, 49, .2);
    --container: 82rem;
    --content: 58rem;
}

body {
    color: var(--ink-900);
    background: #fff;
    font-size: 1.025rem;
}

html[lang="ar"] body {
    line-height: 1.9;
}

.container {
    padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--navy-950);
    font-weight: 750;
    line-height: 1.18;
}

html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] h4,
html[lang="ar"] h5,
html[lang="ar"] h6 {
    font-weight: 700;
    line-height: 1.42;
}

h1 { font-size: clamp(2.45rem, 5vw, 4.65rem); }
h2 { font-size: clamp(1.95rem, 3.2vw, 3rem); }
h3 { font-size: clamp(1.12rem, 1.5vw, 1.3rem); }

/* Shell */
.utility-bar {
    min-height: 2.75rem;
    background: var(--navy-950);
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    color: #cbd8e7;
    font-size: .78rem;
    letter-spacing: .01em;
}

.utility-bar a {
    color: #fff;
    opacity: .88;
    transition: opacity .18s ease;
}

.utility-bar a:hover { opacity: 1; }

.site-header {
    position: sticky;
    inset-block-start: 0;
    z-index: 50;
    border: 0;
    border-bottom: 1px solid rgba(8, 41, 77, .1);
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 6px 22px rgba(6, 26, 49, .045);
}

.site-header .navbar {
    min-height: 7.25rem;
    padding-block: .75rem;
}

.brand {
    min-width: 24.75rem;
    gap: .9rem;
}

.brand-logos {
    position: static;
    display: flex;
    width: 9.15rem;
    height: 4.5rem;
    flex: 0 0 9.15rem;
    align-items: center;
    gap: .55rem;
}

.brand-logos img { position: static; }

.brand-logo-center {
    width: 4.25rem;
    height: 4.25rem;
    flex: 0 0 4.25rem;
}

.brand-logo-university {
    width: 4.25rem;
    height: 4.25rem;
    flex: 0 0 4.25rem;
    padding: 0;
    border: 0;
    box-shadow: none;
}

.brand-logo-divider {
    width: 1px;
    height: 3.25rem;
    flex: 0 0 1px;
    background: #dbe3ed;
}

.brand strong {
    color: var(--navy-950);
    font-size: 1.02rem;
    font-weight: 800;
}

.brand small {
    color: var(--blue-700);
    font-size: .8rem;
    font-weight: 650;
}

.navbar-collapse { gap: .6rem; min-width: 0; }

.navbar-gap { gap: 0 .35rem; }

@media (min-width: 1200px) {
    .site-header .navbar { min-height: 5.7rem; }
    .site-header .brand { min-width: 9.15rem; }
    .site-header .brand-copy { display: none; }
    .site-header .navbar-nav {
        flex-wrap: nowrap;
        min-width: 0;
        overflow-x: auto;
        scrollbar-width: thin;
    }
    .site-header .nav-link { white-space: nowrap; }
    .site-header .header-cta { flex-shrink: 0; }
}

.nav-link {
    padding: .9rem .55rem !important;
    color: #203852;
    font-size: .83rem;
    font-weight: 700;
}

html[lang="ar"] .nav-link { font-weight: 650; }

.nav-link::after {
    inset-inline: .55rem;
    inset-block-end: .38rem;
    height: 3px;
    border-radius: 99px;
    background: var(--blue-600);
}

.header-cta {
    min-width: 7.5rem;
    margin-inline-start: .35rem;
    white-space: nowrap;
}

.navbar-toggler {
    border-color: #aebdce;
    border-radius: .75rem;
}

/* Controls */
.btn {
    min-height: 3rem;
    padding: .72rem 1.35rem;
    border-radius: .65rem;
    font-size: .94rem;
    font-weight: 800;
    text-decoration: none;
    box-shadow: none;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease,
        border-color .18s ease, color .18s ease;
}

html[lang="ar"] .btn { font-weight: 700; }

.btn:hover {
    transform: translateY(-2px);
}

.btn-lg {
    min-height: 3.5rem;
    padding-inline: 1.7rem;
}

.btn-primary {
    background: var(--blue-600);
    border-color: var(--blue-600);
    box-shadow: 0 10px 24px rgba(20, 100, 210, .2);
}

.btn-primary:hover,
.btn-primary:focus {
    background: #0b55b9;
    border-color: #0b55b9;
    box-shadow: 0 14px 30px rgba(20, 100, 210, .28);
}

.btn-warning {
    background: var(--amber-500);
    border-color: var(--amber-500);
    color: var(--navy-950);
    box-shadow: 0 10px 28px rgba(242, 181, 68, .2);
}

.btn-warning:hover,
.btn-warning:focus {
    background: var(--amber-600);
    border-color: var(--amber-600);
    color: var(--navy-950);
    box-shadow: 0 14px 32px rgba(242, 181, 68, .3);
}

.btn-outline-primary {
    border-color: #8fb4e4;
    color: var(--blue-700);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background: var(--navy-950);
    border-color: var(--navy-950);
    color: #fff;
}

/* First viewport */
.hero {
    position: relative;
    min-height: 41rem;
    display: block;
    overflow: hidden;
    background:
        radial-gradient(circle at 14% 20%, rgba(20, 100, 210, .22), transparent 25rem),
        var(--navy-950);
    border-bottom: 2px solid var(--amber-500);
}

.hero::before,
.page-hero::before,
.program-hero::before,
.cta-band::before {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(30deg, transparent 48.7%, rgba(255, 255, 255, .045) 49%, rgba(255, 255, 255, .045) 50%, transparent 50.3%),
        linear-gradient(150deg, transparent 48.7%, rgba(255, 255, 255, .035) 49%, rgba(255, 255, 255, .035) 50%, transparent 50.3%);
    background-size: 11rem 7rem;
    content: "";
    opacity: .42;
    pointer-events: none;
}

.hero::after {
    position: absolute;
    inset-inline-start: auto;
    inset-inline-end: -8rem;
    inset-block-start: auto;
    inset-block-end: -10rem;
    width: 30rem;
    height: 18rem;
    border: 2px solid var(--amber-500);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 2;
    min-height: 41rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(32rem, 1fr);
    align-items: center;
    gap: clamp(3rem, 6vw, 6.5rem);
    padding-block: clamp(3.25rem, 6vw, 5.75rem);
}

.hero-panel {
    width: auto;
    padding: 0;
    color: #fff;
}

.hero-panel h1 {
    max-width: 18ch;
    margin: 0 0 1.4rem;
    color: #fff;
    font-size: clamp(2.75rem, 3.55vw, 3.9rem);
    font-weight: 800;
    line-height: 1.08;
    text-wrap: balance;
}

html[lang="ar"] .hero-panel h1 {
    max-width: 18ch;
    font-size: clamp(2.7rem, 3.35vw, 3.75rem);
    font-weight: 700;
    line-height: 1.42;
}

.hero-panel h1::after {
    width: 4.5rem;
    height: 4px;
    display: block;
    margin-top: 1.4rem;
    border-radius: 99px;
    background: var(--amber-500);
    content: "";
}

.hero-panel p {
    max-width: 45ch;
    margin-bottom: 2rem;
    color: #d9e6f4;
    font-size: 1.1rem;
    line-height: 1.9;
}

.hero-actions { gap: .85rem; }

.hero-actions .btn-outline-light {
    background: transparent;
    border-color: rgba(255, 255, 255, .65);
}

.hero-actions .btn-outline-light:hover,
.hero-actions .btn-outline-light:focus {
    background: #fff;
    border-color: #fff;
    color: var(--navy-950);
}

.hero-visual {
    position: relative;
    min-width: 0;
    padding: .75rem;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 1.9rem;
    background: rgba(255, 255, 255, .055);
    box-shadow: var(--shadow-lg);
}

.hero-visual::after {
    position: absolute;
    inset-inline-start: -1.5rem;
    inset-block-end: -1.5rem;
    z-index: -1;
    width: 8rem;
    height: 8rem;
    border-inline-start: 4px solid var(--amber-500);
    border-block-end: 4px solid var(--amber-500);
    border-radius: 0 0 0 1.5rem;
    content: "";
}

html[dir="rtl"] .hero-visual::after {
    border-inline-start: 0;
    border-inline-end: 4px solid var(--amber-500);
    border-radius: 0 0 1.5rem 0;
}

.hero-video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 1.35rem;
    background: var(--navy-950);
    object-fit: contain;
}

.hero-video:focus-visible { outline: 3px solid var(--amber-500); }

/* Homepage rhythm */
.section {
    padding-block: clamp(5rem, 8vw, 7.5rem);
}

.section-tint {
    background:
        radial-gradient(circle at 10% 15%, rgba(20, 100, 210, .07), transparent 24rem),
        var(--surface-muted);
}

.eyebrow {
    position: relative;
    padding-inline-start: 2.4rem;
    color: var(--blue-700);
    font-size: .78rem;
    font-weight: 850;
    letter-spacing: .035em;
    text-transform: none;
}

.eyebrow::before {
    position: absolute;
    inset-inline-start: 0;
    inset-block-start: 50%;
    width: 1.8rem;
    height: 3px;
    border-radius: 99px;
    background: var(--amber-500);
    content: "";
    transform: translateY(-50%);
}

.diploma-intro-section {
    position: relative;
    background: #fff;
}

.diploma-intro-section .row { align-items: center !important; }

.diploma-intro-section h2 {
    max-width: 13ch;
    margin: .75rem 0 1.3rem;
}

.diploma-intro-section .lead {
    max-width: 54rem;
    margin: 0;
    color: var(--ink-700);
    font-size: 1.08rem;
    line-height: 2.1;
}

.clarification-card {
    position: relative;
    padding: clamp(2rem, 4vw, 3rem);
    overflow: hidden;
    background: var(--navy-950);
    border: 0;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.clarification-card::after {
    position: absolute;
    inset-inline-end: -4rem;
    inset-block-end: -4rem;
    width: 11rem;
    height: 11rem;
    border: 1px solid rgba(242, 181, 68, .4);
    border-radius: 50%;
    content: "";
}

.clarification-card h3 {
    position: relative;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    color: #fff;
    font-size: 1.35rem;
}

.clarification-card h3::after {
    position: absolute;
    inset-inline-start: 0;
    inset-block-end: 0;
    width: 3rem;
    height: 3px;
    background: var(--amber-500);
    content: "";
}

.clarification-card li {
    position: relative;
    z-index: 1;
    color: #dce7f3;
    line-height: 1.9;
}

.clarification-card li::before { color: var(--amber-500); }

.center-stats {
    position: relative;
    overflow: hidden;
    padding-block: clamp(4.5rem, 7vw, 6.5rem);
    color: #fff;
    background:
        radial-gradient(circle at 12% 20%, rgba(20, 100, 210, .48), transparent 34%),
        linear-gradient(135deg, #061a31 0%, #0a2f58 100%);
}

.center-stats::after {
    position: absolute;
    inset-inline-end: -7rem;
    inset-block-start: -10rem;
    width: 25rem;
    height: 25rem;
    border: 1px solid rgba(242, 181, 68, .25);
    border-radius: 50%;
    content: "";
}

.center-stats .container { position: relative; z-index: 1; }

.center-stats-heading {
    margin-bottom: clamp(2rem, 4vw, 3.25rem);
    text-align: center;
}

.center-stats-heading h2 {
    margin-bottom: .65rem;
    color: #fff;
}

.center-stats-heading p {
    margin: 0;
    color: #c4d3e4;
}

.stat-card {
    position: relative;
    min-height: 11.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 1.65rem 1rem;
    text-align: center;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 1.15rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

.stat-card::before {
    position: absolute;
    inset-block-start: 0;
    width: 3.5rem;
    height: 3px;
    background: var(--amber-500);
    content: "";
}

.stat-card strong {
    color: #fff;
    font-size: clamp(2.75rem, 4vw, 4rem);
    font-weight: 800;
    line-height: 1;
    direction: ltr;
    font-variant-numeric: tabular-nums;
}

.stat-card > span {
    margin-top: 1rem;
    color: #dce7f3;
    font-size: .96rem;
    font-weight: 700;
    line-height: 1.6;
}

.section-heading {
    align-items: end;
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-heading h2 {
    margin: .65rem 0 0;
}

.text-link {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    color: var(--blue-700);
    font-size: .9rem;
    font-weight: 800;
    text-decoration: none;
    border-bottom: 2px solid rgba(20, 100, 210, .25);
}

.text-link:hover { border-color: var(--blue-600); }

.program-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(8, 41, 77, .11);
    border-radius: 1.15rem;
    box-shadow: 0 12px 34px rgba(6, 26, 49, .075);
}

.program-card::after {
    position: absolute;
    inset-inline-start: 0;
    inset-block-start: 0;
    width: 4px;
    height: 0;
    background: var(--amber-500);
    content: "";
    transition: height .24s ease;
}

.program-card:hover {
    border-color: rgba(20, 100, 210, .28);
    transform: translateY(-7px);
    box-shadow: 0 24px 56px rgba(6, 26, 49, .14);
}

.program-card:hover::after { height: 100%; }

.program-card > img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform .45s ease;
}

.program-card:hover > img { transform: scale(1.035); }

.program-card-body {
    min-height: 11.5rem;
    padding: 1.5rem;
}

.program-card h3 {
    min-height: 4.6rem;
    margin: 0;
    color: var(--navy-950);
    font-size: 1.17rem;
    line-height: 1.55;
}

.program-card-action {
    margin-top: auto;
    padding-top: 1.15rem;
    border-top: 1px solid #e5ebf2;
}

.program-card-action a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    width: 100%;
}

.program-card-action svg {
    width: 1.05rem;
    height: 1.05rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

html[dir="ltr"] .program-card-action svg { transform: scaleX(-1); }

.short-programs-section .program-card { box-shadow: none; }

.director-section { overflow: hidden; }

.director-section .row {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: center;
    gap: clamp(2rem, 4vw, 4rem);
    margin: 0;
}

.director-section .row > * {
    width: auto;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
}

@media (max-width: 991.98px) {
    .director-section .row { grid-template-columns: minmax(0, 1fr); }
}

.director-section h2 {
    margin: .7rem 0 1.25rem;
}

.director-section .lead {
    color: var(--ink-700);
    line-height: 2;
    overflow-wrap: anywhere;
}

.feature-photo {
    min-height: 31rem;
    border: .65rem solid #fff;
    border-radius: 1.75rem;
    box-shadow: var(--shadow-lg);
}

.activity-card {
    border: 0;
    border-radius: 1.1rem;
    box-shadow: 0 12px 34px rgba(6, 26, 49, .08);
}

.activity-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 50px rgba(6, 26, 49, .14);
}

.activity-card img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.activity-card > div { padding: 1.55rem; }

.activity-card time {
    color: var(--blue-700);
    font-weight: 750;
}

.activity-card h3 { line-height: 1.55; }

.faq-section .col-lg-5 {
    padding-inline-end: clamp(2rem, 5vw, 5rem);
}

.faq-section h2 { margin: .75rem 0 1rem; }

.accordion details {
    margin-bottom: .8rem;
    border-color: #d3deea;
    border-radius: .85rem;
    box-shadow: 0 5px 16px rgba(6, 26, 49, .035);
}

.accordion summary {
    position: relative;
    padding: 1.2rem 1.35rem;
    padding-inline-end: 3.5rem;
    list-style: none;
    font-weight: 750;
}

.accordion summary::-webkit-details-marker { display: none; }

.accordion summary::after {
    position: absolute;
    inset-inline-end: 1.35rem;
    inset-block-start: 50%;
    width: .65rem;
    height: .65rem;
    border-inline-end: 2px solid var(--blue-700);
    border-block-end: 2px solid var(--blue-700);
    content: "";
    transform: translateY(-65%) rotate(45deg);
    transition: transform .2s ease;
}

.accordion details[open] summary::after { transform: translateY(-30%) rotate(225deg); }

.accordion details[open] { border-color: #9cbbe1; }

.accordion details p {
    padding: 0 1.35rem 1.35rem;
    color: var(--ink-700);
}

.cta-band {
    position: relative;
    overflow: hidden;
    padding: clamp(3.5rem, 6vw, 5rem) 0;
    background: var(--navy-950);
}

.cta-band .container { position: relative; z-index: 1; }

.cta-band h2 { font-size: clamp(1.9rem, 3vw, 2.8rem); }

.cta-band p {
    margin-top: .55rem;
    color: #cbd8e7;
}

/* Interior pages */
.page-hero,
.program-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 15% 25%, rgba(20, 100, 210, .24), transparent 24rem),
        var(--navy-950);
    border: 0;
    border-bottom: 2px solid var(--amber-500);
}

.page-hero {
    padding: clamp(4.25rem, 7vw, 6.5rem) 0;
}

.page-hero .container {
    position: relative;
    z-index: 1;
    text-align: start;
}

.page-hero h1,
.page-hero p,
.page-hero .eyebrow,
.program-hero h1,
.program-hero p,
.program-hero .eyebrow,
.program-hero .fee {
    color: #fff;
}

.page-hero h1 {
    max-width: 16ch;
    margin: 0 0 1rem;
    font-size: clamp(2.7rem, 5vw, 4.25rem);
}

.page-hero h1::after,
.program-hero h1::after {
    width: 4rem;
    height: 4px;
    display: block;
    margin-top: 1rem;
    border-radius: 99px;
    background: var(--amber-500);
    content: "";
}

.page-hero p {
    max-width: 48rem;
    margin: 0;
    margin-inline: 0;
    color: #d4e0ed;
    line-height: 1.9;
}

.page-hero .eyebrow { margin-bottom: .85rem; color: #bcd5f4; }

.form-page-hero {
    padding: clamp(2.75rem, 4vw, 4rem) 0;
}

.form-page-hero h1 {
    font-size: clamp(2.35rem, 4vw, 3.35rem);
}

.filter-links {
    justify-content: flex-start;
    gap: .7rem;
    margin-top: 2rem;
}

.filter-links a {
    padding: .65rem 1.1rem;
    border-color: rgba(255, 255, 255, .32);
    background: rgba(255, 255, 255, .07);
    color: #fff;
}

.filter-links a:hover,
.filter-links a:focus {
    background: var(--amber-500);
    border-color: var(--amber-500);
    color: var(--navy-950);
}

.program-hero {
    padding: clamp(3.5rem, 5vw, 5rem) 0;
}

.program-hero .container,
.program-hero .row { position: relative; z-index: 1; }

.program-hero-copy h1 {
    max-width: 13ch;
    margin: .85rem 0 1.2rem;
    font-size: clamp(2.65rem, 4.3vw, 3.9rem);
}

.program-hero .lead {
    max-width: 40rem;
    color: #d4e0ed;
    font-size: 1.08rem;
    line-height: 1.9;
}

.program-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-top: 1.75rem;
}

.program-hero .fee {
    order: 1;
    padding-inline-end: 1rem;
    font-size: 1.25rem;
}

.program-hero-actions .btn {
    order: 2;
}

.program-hero .promotion-note {
    order: 3;
    flex-basis: 100%;
    background: rgba(242, 181, 68, .12);
    border-color: rgba(242, 181, 68, .55);
    color: #ffe3a7;
}

.program-hero-visual > img {
    aspect-ratio: 16 / 10;
    border: .55rem solid rgba(255, 255, 255, .12);
    border-radius: 1.65rem;
    box-shadow: var(--shadow-lg);
}

.program-image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    gap: 1rem;
    margin: 0;
}

.program-image-gallery img {
    width: 100%;
    aspect-ratio: 16 / 10;
    border: 0;
    border-radius: 1rem;
    object-fit: cover;
    box-shadow: var(--shadow-sm);
}

.program-gallery-strip {
    padding-block: 1.25rem;
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.content-prose { max-width: 51rem; }

.content-prose h2 {
    position: relative;
    margin-bottom: 1.1rem;
    padding-bottom: .7rem;
    font-size: 1.55rem;
}

.content-prose h2::after {
    position: absolute;
    inset-inline-start: 0;
    inset-block-end: 0;
    width: 3rem;
    height: 3px;
    background: var(--amber-500);
    content: "";
}

.content-prose p,
.content-prose li {
    color: var(--ink-700);
    font-size: 1.04rem;
    line-height: 2;
}

.content-prose li::marker { color: var(--amber-600); }

.info-panel {
    padding: clamp(1.75rem, 4vw, 2.6rem);
    background: linear-gradient(145deg, #f4f8fd, #eaf2fb);
    border: 1px solid #cbdcf0;
    border-radius: var(--radius-lg);
}

.info-panel h2 {
    margin-bottom: 1.2rem;
    font-size: 1.45rem;
}

.brochure-card {
    padding: .85rem;
    border: 0;
    border-radius: 1.2rem;
    box-shadow: 0 14px 34px rgba(6, 26, 49, .09);
    transition: transform .2s ease, box-shadow .2s ease;
}

.brochure-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 50px rgba(6, 26, 49, .15);
}

.brochure-card img { border-radius: .85rem; }

.brochure-card h3 {
    min-height: 3.75rem;
    padding-inline: .35rem;
    line-height: 1.55;
}

.activity-gallery-card {
    border: 0;
    border-radius: 1.5rem;
    box-shadow: 0 18px 50px rgba(6, 26, 49, .1);
}

.activity-gallery-copy {
    padding: clamp(1.75rem, 4vw, 2.5rem);
}

.activity-gallery-copy h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); }

.activity-gallery-grid {
    gap: .75rem;
    padding: 0 1rem 1rem;
}

.activity-gallery-grid a { border-radius: .85rem; }
.activity-gallery-grid img { height: 15rem; }

.faq-contact-callout,
.form-note {
    border: 0;
    border-inline-start: 4px solid var(--amber-500);
    border-radius: 1rem;
    background: var(--blue-50);
}

.contact-artwork { border-radius: 1rem; }

.empty-state {
    border-color: #9fb2c8;
    border-radius: 1rem;
    background: var(--blue-50);
}

/* Public forms */
.page-hero + .section,
.page-hero + .section.section-tint {
    background:
        radial-gradient(circle at 8% 12%, rgba(20, 100, 210, .07), transparent 24rem),
        var(--surface-muted);
}

.form-layout {
    grid-template-columns: minmax(0, 1fr) 19rem;
    gap: 2.25rem;
}

.form-card {
    padding: clamp(1.5rem, 4vw, 3rem);
    border: 1px solid rgba(8, 41, 77, .09);
    border-radius: 1.35rem;
    box-shadow: 0 22px 60px rgba(6, 26, 49, .1);
}

.form-card .row {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 1.6rem;
}

.form-section {
    margin-bottom: 2.6rem;
    padding-bottom: 2.6rem;
}

.form-section-title {
    position: relative;
    margin-bottom: 1.8rem;
    padding-bottom: .8rem;
    color: var(--navy-950);
    font-size: 1.35rem;
}

.form-section-title::after {
    position: absolute;
    inset-inline-start: 0;
    inset-block-end: 0;
    width: 3rem;
    height: 3px;
    background: var(--amber-500);
    content: "";
}

.form-label,
.form-card legend {
    color: #173450;
    font-size: .92rem;
    font-weight: 750;
}

.form-control,
.form-select {
    min-height: 3.5rem;
    padding: .82rem 1rem;
    border-color: #b9c7d7;
    border-radius: .7rem;
    font-size: .95rem;
}

.form-control:hover,
.form-select:hover { border-color: #829bb7; }

.form-control:focus,
.form-select:focus {
    border-color: var(--blue-600);
    box-shadow: 0 0 0 .25rem rgba(20, 100, 210, .13);
}

.upload-field {
    padding: 2rem;
    border: 2px dashed #8fb4e4;
    border-radius: 1rem;
    background: #f3f8fe;
}

.form-check {
    border-color: #d2dce7;
    border-radius: .8rem;
    background: #f8fafc;
}

.form-submit {
    margin-top: 2rem;
    padding-top: .5rem;
}

.form-submit .btn-primary {
    background: var(--blue-600);
    border-color: var(--blue-600);
    color: #fff;
    box-shadow: 0 12px 26px rgba(20, 100, 210, .22);
}

.form-submit .btn-primary:hover,
.form-submit .btn-primary:focus {
    background: #0b55b9;
    border-color: #0b55b9;
    color: #fff;
}

.form-aside { gap: 1rem; }

.guide-panel {
    position: relative;
    overflow: hidden;
    padding: 1.75rem;
    border: 0;
    border-radius: 1.15rem;
    background: var(--navy-950);
    box-shadow: 0 18px 44px rgba(6, 26, 49, .16);
}

.guide-panel h2 {
    position: relative;
    margin-bottom: 1.25rem;
    padding-bottom: .8rem;
    color: #fff;
    font-size: 1.2rem;
}

.guide-panel h2::after {
    position: absolute;
    inset-inline-start: 0;
    inset-block-end: 0;
    width: 2.5rem;
    height: 3px;
    background: var(--amber-500);
    content: "";
}

.guide-panel ol,
.guide-panel ul {
    color: #d4e0ed;
    line-height: 1.85;
}

.guide-panel li::marker {
    color: var(--amber-500);
    font-weight: 800;
}

.evaluation-question {
    border-color: #d0dbe7;
    border-radius: 1rem;
    background: #f7fafd;
}

.rating-row label {
    border-radius: .65rem;
    transition: background-color .16s ease, border-color .16s ease;
}

.rating-row label:has(input:checked) {
    border-color: var(--blue-600);
    background: var(--blue-100);
}

.confirmation-mark { box-shadow: 0 0 0 .65rem rgba(20, 120, 59, .08); }

/* Footer */
.site-footer {
    position: relative;
    overflow: hidden;
    background: #041426;
}

.site-footer::before {
    position: absolute;
    inset-inline-end: -9rem;
    inset-block-start: -9rem;
    width: 24rem;
    height: 24rem;
    border: 1px solid rgba(242, 181, 68, .2);
    border-radius: 50%;
    content: "";
}

.site-footer .container {
    position: relative;
    padding-top: 5rem !important;
    padding-bottom: 2.25rem !important;
}

.footer-university-logo {
    width: 5rem;
    height: 5rem;
    padding: .3rem;
    background: #fff;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .18);
}

.site-footer h2 { font-size: 1.55rem; }

.site-footer h3 {
    position: relative;
    padding-bottom: .8rem;
}

.site-footer h3::after {
    position: absolute;
    inset-inline-start: 0;
    inset-block-end: 0;
    width: 2rem;
    height: 2px;
    background: var(--amber-500);
    content: "";
}

.site-footer a { transition: color .16s ease, transform .16s ease; }

.site-footer a:hover {
    color: var(--amber-500);
    transform: translateX(-2px);
}

html[dir="ltr"] .site-footer a:hover { transform: translateX(2px); }

.university-site-link {
    width: fit-content;
    margin-top: 1.15rem !important;
    padding-bottom: .2rem;
    color: #fff !important;
    font-weight: 750;
    border-bottom: 1px solid rgba(242, 181, 68, .55);
}

.footer-contact address { line-height: 1.9; }

.footer-socials {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem;
    margin-top: 1.15rem;
}

.footer-socials a {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin: 0;
    padding: .55rem .65rem;
    background: rgba(255, 255, 255, .055);
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: .65rem;
}

.footer-socials a:hover {
    background: rgba(255, 255, 255, .1);
    transform: translateY(-2px);
}

html[dir="ltr"] .footer-socials a:hover { transform: translateY(-2px); }

.social-mark {
    width: 1.7rem;
    height: 1.7rem;
    display: inline-grid;
    place-items: center;
    flex: 0 0 1.7rem;
    color: var(--navy-950);
    background: var(--amber-500);
    border-radius: 50%;
    font-family: Arial, sans-serif;
    font-size: .8rem;
    font-weight: 800;
}

.footer-bottom { border-top-color: rgba(255, 255, 255, .12); }

@media (max-width: 1399px) {
    .brand { min-width: 9.15rem; }
    .brand-copy { display: none; }
    .nav-link { padding-inline: .48rem !important; font-size: .79rem; }
    .header-cta { min-width: 6.75rem; }
}

@media (max-width: 1199px) {
    .site-header .navbar { min-height: 5.7rem; }
    .brand-copy { display: flex; }

    .navbar-collapse {
        max-height: calc(100vh - 8rem);
        gap: .25rem;
        padding: 1.25rem 0 .5rem;
        overflow-y: auto;
        border-top: 1px solid var(--line);
    }

    .navbar-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .1rem .75rem;
    }

    .nav-link {
        padding: .72rem .4rem !important;
        font-size: .9rem;
    }

    .header-cta {
        width: 100%;
        margin: .75rem 0 0;
    }

    .hero-inner {
        grid-template-columns: minmax(0, .9fr) minmax(25rem, 1.1fr);
        gap: 3rem;
    }

    .hero-panel h1 { font-size: clamp(2.65rem, 4.5vw, 3.45rem); }
    .form-layout { grid-template-columns: minmax(0, 1fr) 17rem; }
}

@media (max-width: 991px) {
    .hero { min-height: auto; }

    .hero-inner {
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 3rem;
        padding-block: 4.5rem;
    }

    .hero-panel { max-width: 42rem; }
    .hero-panel h1 { max-width: 13ch; }
    .hero-visual { max-width: 45rem; }

    .form-layout { grid-template-columns: 1fr; }

    .form-aside {
        position: static;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    body { font-size: 1rem; }
    .utility-bar { min-height: 2.5rem; }
    .site-header .navbar { min-height: 5.5rem; }
    .brand-logos { width: 7.15rem; height: 3.25rem; flex-basis: 7.15rem; gap: .4rem; }
    .brand-logo-center,
    .brand-logo-university { width: 3.15rem; height: 3.15rem; flex-basis: 3.15rem; }
    .brand-logo-divider { height: 2.4rem; }

    .hero::after { display: none; }

    .hero-inner {
        gap: 2.5rem;
        padding-block: 3.75rem;
    }

    .hero-panel h1,
    html[lang="ar"] .hero-panel h1 {
        max-width: 17ch;
        margin-bottom: 1.1rem;
        font-size: clamp(2.45rem, 11vw, 3.3rem);
        line-height: 1.35;
    }

    .hero-panel h1::after { margin-top: 1rem; }
    .hero-panel p { font-size: 1rem; }
    .hero-visual { padding: .45rem; border-radius: 1.3rem; }
    .hero-video { border-radius: 1rem; }
    .hero-visual::after { display: none; }

    .section { padding-block: 4.5rem; }
    .section-heading { align-items: flex-start; }
    .center-stats { padding-block: 4rem; }
    .stat-card { min-height: 9.5rem; }

    .feature-photo { min-height: 23rem; border-width: .4rem; }

    .page-hero { padding-block: 4rem; }
    .page-hero h1 { font-size: clamp(2.4rem, 10vw, 3.2rem); }

    .program-hero { padding-block: 3.75rem; }
    .program-hero-copy h1 { font-size: clamp(2.4rem, 10vw, 3.35rem); }
    .program-hero-actions { align-items: stretch; flex-direction: column; }
    .program-hero-actions .btn { width: 100%; }
    .program-hero .fee { padding: 0; }

    .form-card { padding: 1.25rem; border-radius: 1rem; }
    .form-aside { grid-template-columns: 1fr; }
    .guide-panel { padding: 1.5rem; }
    .upload-field { padding: 1.35rem; }
    .activity-gallery-grid img { height: 11rem; }

    .cta-band .container {
        align-items: stretch !important;
        gap: 1.75rem;
    }

    .cta-band .btn { margin-top: 1.5rem; width: 100%; }
}

@media (max-width: 479px) {
    .brand-copy { display: none; }
    .navbar-nav { gap: 0 .5rem; }
    .nav-link { font-size: .84rem; }
    .hero-actions { align-items: stretch; flex-direction: column; }
    .hero-actions .btn { width: 100%; }
    .program-card-body { min-height: 0; }
    .program-card h3 { min-height: 0; }
    .footer-socials { grid-template-columns: 1fr; }
    .activity-gallery-grid { grid-template-columns: 1fr; }
    .activity-gallery-grid img { height: auto; aspect-ratio: 4 / 3; }
}

@media (prefers-reduced-motion: reduce) {
    .program-card:hover,
    .activity-card:hover,
    .brochure-card:hover,
    .btn:hover { transform: none; }

    .program-card:hover > img { transform: none; }
}
/* Managed content keeps its geometry at both reading directions and narrow widths. */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    margin-top: 1.75rem;
}
.photo-grid a { display: block; overflow: hidden; border-radius: 1rem; background: #eef2f5; }
.photo-grid img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.managed-section-image { display: block; max-width: 100%; max-height: 42rem; object-fit: contain; margin: 1.5rem auto; border-radius: 1rem; }
.managed-section .content-prose { max-width: 75ch; }
.footer-center-logo { width: 6rem; height: 6rem; object-fit: contain; margin-inline-start: .75rem; margin-block-end: 1rem; }
.footer-center-logo-original { clip-path: ellipse(45.1% 45.2% at 50% 51%); }
@media (max-width: 767.98px) { .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; } }
@media (max-width: 399.98px) { .photo-grid { grid-template-columns: minmax(0, 1fr); } }
