/* Local IBM Plex Sans Arabic font faces */
@font-face {
    font-family: 'IBM Plex Sans Arabic';
    src: url('fonts/ibm/IBMPlexSansArabic-Thin.ttf') format('truetype');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IBM Plex Sans Arabic';
    src: url('fonts/ibm/IBMPlexSansArabic-ExtraLight.ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IBM Plex Sans Arabic';
    src: url('fonts/ibm/IBMPlexSansArabic-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IBM Plex Sans Arabic';
    src: url('fonts/ibm/IBMPlexSansArabic-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IBM Plex Sans Arabic';
    src: url('fonts/ibm/IBMPlexSansArabic-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IBM Plex Sans Arabic';
    src: url('fonts/ibm/IBMPlexSansArabic-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IBM Plex Sans Arabic';
    src: url('fonts/ibm/IBMPlexSansArabic-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary: #066058;
    /* deep teal green */
    --secondary: #C39843;
    /* warm gold */
    --text: #0f172a;
    /* slate-900 */
    --muted: #475569;
    /* slate-600 */
    --bg: #ffffff;
    --bg-soft: #f6f7f9;
    --card: #ffffff;
    --border: #e5e7eb;
    --shadow: 0 10px 25px rgba(2, 44, 40, 0.08);
    --radius: 16px;
    --radius-sm: 12px;
    --radius-lg: 22px;
    /* --container: 1200px; */
    --container: 1390px;
    --primary-light: rgb(6, 96, 88, 0.1);
    --secondary-light: rgb(195, 152, 67, 0.1);
}

* {
    box-sizing: border-box;
}


body {
    margin: 0;
    font-family: 'IBM Plex Sans Arabic', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.ti {
    /* line-height: 1.7; */
    font-size: 1.2em;
}

/* Layout */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 20px;
}

/* Navbar login button */
.navbar .nav-links .nav-login {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: var(--radius-md, 10px);
    background: var(--primary, #066058);
    color: #fff;
    border: 1px solid color-mix(in oklab, var(--primary, #066058) 70%, black);
    font-weight: 600;
    text-decoration: none;
    transition: transform .15s ease, filter .2s ease, background .2s ease;
}

    .navbar .nav-links .nav-login:hover {
        filter: brightness(1.06);
        transform: translateY(-1px);
    }

/* Mobile dropdown refinements */
@media (max-width: 768px) {
    .navbar .nav-links.open .nav-login {
        width: 100%;
        justify-content: center;
        padding: 12px 16px;
        margin-top: 4px;
    }

    /* Ensure touch-friendly hit areas */
    .navbar .nav-links.open a:not(.nav-login) {
        width: 100%;
        padding: 12px 10px;
        border-radius: var(--radius-sm, 8px);
    }
}





section {
    padding: 72px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-eyebrow {
    color: var(--secondary);
    font-weight: 600;
    letter-spacing: 0.02em;
    /* margin-bottom: 0px; */
}

.section-title {
    font-size: clamp(24px, 3.4vw, 36px);
    margin: 0px 0 10px;
}

.section-subtitle {
    color: var(--muted);
    max-width: 720px;
    margin: 0 auto;
}

.pres-name {
    margin: 0px 0 10px;
}

/* Navbar */
.navbar {
    /* position: sticky; */
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: saturate(180%) blur(10px);
    background: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* height: 64px; */
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--primary);
    font-size: 20px;
}

    .brand .logo {
        height: 60px;
    }

.nav-links {
    display: flex;
    gap: .5rem;
    align-items: center;
}

    .nav-links a {
        color: var(--text);
        text-decoration: none;
        padding: 8px 12px;
        border-radius: 10px;
        font-weight: 500;
    }

        .nav-links a:hover {
            background: var(--bg-soft);
        }

.navbar {
    /* position: sticky; */
    top: 14px;
    /* float slightly below the top edge */
    z-index: 1000;
    background: transparent;
    /* card itself will have background */
    border-bottom: 0;
    padding: 6px 15px;
    /* breathing room for the floating card */
}

.nav-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(2, 44, 40, 0.10);
    backdrop-filter: saturate(180%) blur(10px);
}

.menu-toggle {
    display: none;
    border: none;
    background: transparent;
    font-size: 22px;
}

/* Hero */
.hero {
    position: relative;
    /* overflow: hidden; */
    /* background: linear-gradient(135deg, #f3faf9 0%, #ffffff 60%); */
}

.art_1 {
    position: absolute;
    top: calc(0.25rem * 20);
    left: calc(0.25rem * 20);
    border-radius: calc(infinity * 1px);
    filter: blur(100px);
    width: calc(0.25rem * 72);
    height: calc(0.25rem * 72);
    background-color: color-mix(in oklab, var(--primary) 15%, transparent);
}

.art_2 {
    position: absolute;
    bottom: calc(0.25rem * -22);
    right: calc(0.25rem * -15);
    border-radius: calc(infinity * 1px);
    filter: blur(64px);
    width: calc(0.25rem * 115);
    height: calc(0.25rem * 115);
    background-color: color-mix(in oklab, var(--secondary) 10%, transparent);
    z-index: -1;
}

.m-0 {
    margin: 0;
}

.hero .container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
    /* padding-top: 48px; */
    padding-top: 5rem;
    /* padding-bottom: 48px; */
}

.hero-badge {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    background: #e8f4f3;
    color: var(--primary);
    padding: 8px 2rem;
    border-radius: 999px;
    font-weight: 600;
}

.hero h1 {
    font-size: clamp(28px, 4.8vw, 48px);
    line-height: 1.2;
    margin: 12px 0;
}

.hero p {
    color: var(--muted);
    font-size: 18px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    padding: .5rem 2rem;
    border-radius: 50px;
    transition: transform .06s ease, box-shadow .2s;
    border: 1px solid transparent;
    font-family: 'IBM Plex Sans Arabic';
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: var(--shadow);
}

    .btn-primary:hover {
        transform: translateY(-1px);
    }

.btn-secondary {
    background: #fff;
    color: var(--primary);
    border-color: var(--primary);
}

/* Small button size for inline actions */
.btn-sm { padding: .35rem 1rem; font-size: .95rem; }

/* Align the join button nicely under description */
.event-actions { display: flex; justify-content: flex-start; gap: 8px; margin-top: 10px; }

.hero-art {
    position: relative;
    min-height: 360px;
    display: grid;
    place-items: center;
    perspective: 900px;
}

    /* 3D tilt group and layers */
    .hero-art .tilt-group {
        position: absolute;
        inset: 0;
        display: grid;
        place-items: center;
        transform-style: preserve-3d;
    }

    .hero-art .layer {
        position: absolute;
        transform-style: preserve-3d;
        will-change: transform;
    }

    /* Dots pattern */
    .hero-art .dots {
        inset: 10% 6%;
        /* border-radius: 24px; */
        border-radius: 50%;
        background-image: radial-gradient(rgba(6, 96, 88, .18) 1.6px, transparent 1.6px);
        background-size: 18px 18px;
        filter: saturate(120%);
    }

    /* Concentric rings */
    .hero-art .ring {
        width: 360px;
        height: 360px;
        border-radius: 50%;
        border: 2px dashed rgba(6, 96, 88, .25);
    }

    .hero-art .ring-1 {
        width: 420px;
        height: 420px;
        border-color: rgba(6, 96, 88, .18);
    }

    .hero-art .ring-2 {
        width: 300px;
        height: 300px;
        border-color: rgba(195, 152, 67, .25);
        backdrop-filter: blur(0.5px);
    }

    /* Glow */
    .hero-art .glow {
        width: 520px;
        height: 520px;
        border-radius: 999px;
        background: radial-gradient(closest-side, rgba(6, 96, 88, .25), transparent 80%);
        filter: blur(8px);
        z-index: 0;
    }

    /* Main image sizing */
    .hero-art .hero-img {
        display: block;
        width: 100%;
        max-width: 520px;
        height: auto;
        object-fit: contain;
        z-index: 2;
        border-radius: 20px;
        box-shadow: none;
        filter: none;
        /* border-bottom removed */
        transform-style: preserve-3d;
        transform-origin: 50% 85%;
        /* pivot from near the bottom for a "look-at" feel */
        backface-visibility: hidden;
        will-change: transform;
        transition: transform .12s ease-out;
    }

    /* Figure wrapper to hold the lighting shelf */
    .hero-art .hero-figure {
        position: relative;
        display: grid;
        place-items: center;
    }

    /* Lighting shelf / light bar under image */
    .hero-art .light-bar {
        position: absolute;
        z-index: 1;
        bottom: -8px;
        /* slightly closer to the image */
        width: 100%;
        /* extend beyond the image width, but subtler */
        max-width: 620px;
        /* prevent excessive growth on large screens */
        height: 12px;
        /* smaller profile */
        border-radius: 999px;
        /* dark primary teal lighting shelf */
        background: radial-gradient(ellipse at center, rgba(6, 96, 88, 0.38) 0%, rgba(6, 96, 88, 0.30) 28%, rgba(6, 96, 88, 0.16) 56%, rgba(6, 96, 88, 0.05) 82%, transparent 90%);
        filter: blur(4px) saturate(120%);
        box-shadow: 0 8px 20px rgba(6, 96, 88, 0.18), 0 3px 8px rgba(6, 96, 88, 0.12);
        opacity: .6;
    }

        /* A brighter core for the light bar */
        .hero-art .light-bar::before {
            content: '';
            position: absolute;
            inset: 2px 12%;
            border-radius: 999px;
            background: linear-gradient(90deg, transparent, rgba(6, 96, 88, 0.35), rgba(255, 255, 255, 0.65), rgba(6, 96, 88, 0.35), transparent);
            filter: blur(1.5px);
            opacity: .4;
        }


        /* subtle outer halo */
        .hero-art .light-bar::after {
            content: '';
            position: absolute;
            inset: -4px 18%;
            border-radius: 999px;
            background: radial-gradient(ellipse at center, rgba(6, 96, 88, 0.18), transparent 70%);
            filter: blur(5px);
            opacity: .5;
        }


.hero-card {
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: grid;
    gap: 14px;
}

.stat {
    display: flex;
    align-items: center;
    gap: 12px;
}

    .stat i {
        width: 40px;
        height: 40px;
        display: grid;
        place-items: center;
        border-radius: 12px;
        background: #f0fdfa;
        color: var(--primary);
    }

.shape {
    position: absolute;
    inset-inline-start: -120px;
    inset-block-end: -120px;
    width: 320px;
    height: 320px;
    background: radial-gradient(closest-side, rgba(6, 96, 88, .12), transparent 70%);
    filter: blur(6px);
}

/* Idle bob animation */
@keyframes bob {
    0% {
        transform: translateZ(0px) translateY(0px);
    }

    50% {
        transform: translateZ(18px) translateY(-6px);
    }

    100% {
        transform: translateZ(0px) translateY(0px);
    }
}

.hero-art .hero-img.bobbing {
    animation: bob 6s ease-in-out infinite;
}

/* President */
.president {
    position: relative;
    /* background: var(--bg-soft); */
}

.president-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 28px;
    /* align-items: center; */
}

.avatar {
    width: 100%;
    max-width: 280px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: var(--shadow);
    border: 0px solid #fff;
}

.quote {
    border-inline-start: 4px solid var(--secondary);
    padding-inline-start: 14px;
    color: var(--muted);
    font-style: italic;
}

.video-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.content_wrap {
    min-height: calc(100vh - 303px);
}

/* About */
.about {
    /* background: var(--bg-soft); */
    background: linear-gradient(180deg, #f7fbfa, #ffffff);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 22px;
}

    .card h3 {
        margin: 0 0 8px;
    }

    .card p {
        margin: 0;
        color: var(--muted);
    }

/* Graduates Office */
.office {
    background: linear-gradient(180deg, #ffffff, #f7fbfa);
}

.office-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 20px;
}

/* Headings with icons (About section) */
.title-with-icon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

    .title-with-icon .icon {
        width: 28px;
        height: 28px;
        display: grid;
        place-items: center;
        border-radius: 8px;
        background: #e8f4f3;
        color: var(--primary);
        font-size: 14px;
        box-shadow: var(--shadow);
    }

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 20px;
}

.service-card {
    padding: 22px;
    border-radius: var(--radius);
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: block;
    /* make anchor fill the card */
    color: inherit;
    /* keep text color */
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: transform .18s ease, box-shadow .25s ease, border-color .25s ease, background-color .25s ease;
}

    /* glossy sweep on hover */
    .service-card::after {
        content: '';
        position: absolute;
        inset: -20% -60% -20% -60%;
        background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%);
        transform: translateX(-100%);
        pointer-events: none;
        transition: transform .7s ease;
    }

    .service-card:hover {
        transform: translateY(-4px) scale(1.015);
        box-shadow: 0 18px 40px rgba(2, 44, 40, 0.12);
        border-color: color-mix(in oklab, var(--secondary) 30%, var(--border));
    }

        .service-card:hover::after {
            transform: translateX(100%);
        }

    .service-card:focus-visible {
        outline: none;
        transform: translateY(-2px);
        box-shadow: 0 0 0 3px color-mix(in oklab, var(--secondary) 35%, transparent), 0 18px 40px rgba(2, 44, 40, 0.12);
    }

.service-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    /* background: #ecfeff; */
    background: var(--primary-light);
    background: var(--secondary-light);
    color: var(--secondary);
    margin-bottom: 12px;
    transition: transform .2s ease, background .25s ease, color .25s ease;
}

    .service-icon svg {
        height: 20px;
        width: 20px;
    }

.service-card:hover .service-icon {
    transform: translateY(-2px) scale(1.06);
    background: var(--primary-light);
    color: var(--primary);
}

.service-card h3 {
    transition: color .2s ease;
}

.service-card:hover h3 {
    color: color-mix(in oklab, var(--text) 75%, var(--primary));
}

.service-card h3 {
    margin: 0 0 5px;
}

p {
    margin-top: 0;
}

/* Alumni */
.alumni-toolbar {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

/* News */
.news {
    /* background: var(--bg-soft); */
    background: #f7fbfa;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.news-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    background: var(--card);
    overflow: hidden;
    display: grid;
    grid-template-rows: 230px 1fr;
}

    .news-card img {
        width: 100%;
        height: 230px;
        object-fit: cover;
    }

.news-body {
    padding: 16px;
    display: grid;
    gap: 8px;
}

.news-title {
    margin: 0;
    font-size: 18px;
}

.news-excerpt {
    margin: 0;
    color: var(--muted);
}

.news-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 6px;
}

    .news-meta .date {
        color: var(--muted);
        font-size: 13px;
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

    .news-meta .read-more {
        color: var(--primary);
        font-weight: 600;
        text-decoration: none;
    }

.section-btn-center {
    text-align: center;
    margin-top: 24px;
}

.tag {
    display: inline-block;
    background: #e8f4f3;
    color: var(--primary);
    border: 1px solid var(--border);
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    width: fit-content;
}

.search {
    position: relative;
    width: min(420px, 100%);
}

    .search input {
        width: 100%;
        padding: 12px 44px 12px 14px;
        border: 1px solid var(--border);
        border-radius: 12px;
        background: #fff;
    }

    .search i {
        position: absolute;
        inset-inline-end: 12px;
        inset-block: 0;
        display: grid;
        place-items: center;
        color: var(--muted);
    }

.alumni {
    /* background: var(--bg-soft); */
    background: #f7fbfa;
}

    .alumni .section-header {
        display: grid;
        grid-template-columns: 1fr auto;
        /* title block on the right, buttons on the left (RTL-aware) */
        align-items: end;
        /* gap: 12px 16px; */
        text-align: right;
        /* border-bottom: 1px solid var(--border); */
        /* padding-bottom: 12px; */
        margin-bottom: 24px;
    }

        /* Place the actions column on the left and align it nicely */
        .alumni .section-header > .section-actions {
            grid-column: 2;
            grid-row: 1 / span 2;
            display: inline-flex;
            gap: 10px;
            align-items: center;
        }

@media (max-width: 640px) {
    .alumni .section-header {
        grid-template-columns: 1fr;
        /* stack on small screens */
        align-items: start;
    }

        .alumni .section-header > .section-actions {
            grid-column: 1;
            grid-row: auto;
            justify-self: end;
            /* left in RTL */
            margin-top: 8px;
        }
}

.alumni-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.alumni-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    background: var(--card);
    overflow: hidden;
    display: grid;
    grid-template-rows: 250px 1fr;
    cursor: pointer;
    position: relative;
    transition: transform .18s ease, box-shadow .25s ease, border-color .25s ease, background-color .25s ease;
}

    .alumni-card img {
        width: 100%;
        height: 250px;
        object-fit: cover;
    }

.alumni-body {
    padding: 16px;
}

.alumni-name {
    font-weight: 700;
    margin: 0 0 4px;
}

.alumni-role {
    color: var(--muted);
    margin: 0 0 8px;
    font-size: 14px;
}

.alumni-quote {
    color: var(--muted);
    font-style: italic;
    margin: 0;
}

/* Alumni card hover/focus animation */
.alumni-card::after {
    content: '';
    position: absolute;
    inset: -20% -60% -20% -60%;
    background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%);
    transform: translateX(-100%);
    pointer-events: none;
    transition: transform .7s ease;
}

.alumni-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 18px 40px rgba(2, 44, 40, 0.12);
    border-color: color-mix(in oklab, var(--secondary) 30%, var(--border));
}

    .alumni-card:hover::after {
        transform: translateX(100%);
    }

.alumni-card:focus-visible {
    outline: none;
    transform: translateY(-2px);
    box-shadow: 0 0 0 3px color-mix(in oklab, var(--secondary) 35%, transparent), 0 18px 40px rgba(2, 44, 40, 0.12);
}

/* Events */
.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.event-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: var(--shadow);
    padding: 18px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    align-items: start;
}

.date-badge {
    width: 64px;
    aspect-ratio: 1/1;
    border-radius: 14px;
    background: #f8fafc;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    text-align: center;
}

    .date-badge > div { display: grid; place-items: center; line-height: 1.1; }

    .date-badge strong {
        color: var(--primary);
        font-size: 18px;
    }

    .date-badge span {
        color: var(--muted);
        font-size: 12px;
    }

/* Newsletter */
.newsletter {
    background: linear-gradient(180deg, #f7fbfa, #ffffff);
}

.newsletter-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--card);
    box-shadow: var(--shadow);
    padding: 24px;
    display: grid;
    gap: 12px;
}

.newsletter form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

.newsletter input[type=email] {
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.note {
    color: var(--muted);
    font-size: 12px;
}

/* Footer */
footer {
    background: var(--primary);
    color: #e6fffb;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr repeat(3, 1fr);
    gap: 20px;
    padding: 36px 0;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-links a {
    display: block;
    color: #e6fffb;
    text-decoration: none;
    margin: 6px 0;
    opacity: .9;
}

    .footer-links a:hover {
        opacity: 1;
    }

.socials {
    display: flex;
    gap: 10px;
}

    .socials a {
        width: 36px;
        height: 36px;
        display: grid;
        place-items: center;
        background: rgba(255, 255, 255, 0.12);
        border-radius: 10px;
        color: #fff;
        text-decoration: none;
    }

.subfooter {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 0 24px;
    color: #c7fff6;
    font-size: 14px;
}

/* Utilities */
.muted {
    color: var(--muted);
}

.hidden {
    display: none !important;
}

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

.center {
    text-align: center;
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: grid;
    place-items: center;
    padding: 24px;
    z-index: 2000;
}

.modal-content {
    width: min(960px, 100%);
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

    .modal-content iframe {
        width: 100%;
        aspect-ratio: 16/9;
        display: block;
    }

.modal-close {
    position: absolute;
    inset-inline-start: 8px;
    inset-block-start: 8px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    cursor: pointer;
}

/* Alumni modal (independent styling to avoid conflicting with any video modal) */
.alumni-modal {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    z-index: 2100;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px) saturate(120%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .28s ease, visibility .28s ease, backdrop-filter .28s ease;
}

    .alumni-modal.open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }


    .alumni-modal .modal-panel {
        width: min(720px, 96vw);
        background: #fff;
        border: 1px solid var(--border);
        border-radius: 20px;
        box-shadow: 0 24px 60px rgba(2, 44, 40, 0.18);
        overflow: hidden;
        display: block;
        transform: translateY(12px) scale(0.98);
        opacity: 0;
        will-change: transform, opacity;
        transition: transform .34s cubic-bezier(.22, .61, .36, 1), opacity .25s ease;
    }

    .alumni-modal.open .modal-panel {
        transform: translateY(0) scale(1);
        opacity: 1;
    }

    .alumni-modal .modal-header {
        position: relative;
        height: 180px;
        background: radial-gradient(1200px 180px at 50% 100%, color-mix(in oklab, var(--primary) 16%, transparent), transparent), linear-gradient(135deg, color-mix(in oklab, var(--primary) 18%, white), color-mix(in oklab, var(--secondary) 18%, white));
    }

    .alumni-modal .avatar-wrap {
        position: absolute;
        left: 50%;
        bottom: -56px;
        transform: translateX(-50%);
        width: 120px;
        height: 120px;
        border-radius: 50%;
        box-shadow: 0 12px 28px rgba(2, 44, 40, 0.18);
    }

    .alumni-modal .avatar-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
        border: 4px solid #fff;
    }

    .alumni-modal .modal-body {
        padding: 72px 22px 22px 22px;
        /* account for avatar overlap */
        display: grid;
        gap: 10px;
        text-align: center;
    }

    .alumni-modal .modal-title {
        margin: 0;
        font-size: clamp(20px, 2.6vw, 26px);
    }

    .alumni-modal .modal-role {
        margin: 0 0 10px;
        color: var(--muted);
    }

    .alumni-modal .modal-story {
        margin: 6px 0 0;
        color: var(--text);
        line-height: 1.9;
    }

    .alumni-modal .close-btn {
        position: absolute;
        inset-inline-end: 10px;
        inset-block-start: 10px;
        display: inline-grid;
        place-items: center;
        width: 40px;
        height: 40px;
        border-radius: 12px;
        border: 1px solid var(--border);
        background: rgba(255, 255, 255, 0.85);
        color: var(--text);
        cursor: pointer;
        transition: transform .15s ease, filter .2s ease;
    }

        .alumni-modal .close-btn:hover {
            transform: translateY(-1px);
            filter: brightness(1.04);
        }

        .alumni-modal .close-btn:focus-visible {
            outline: 3px solid color-mix(in oklab, var(--secondary) 35%, transparent);
        }

@media (max-width: 820px) {
    .alumni-modal .modal-panel {
        grid-template-columns: 1fr;
    }

    .alumni-modal .modal-media {
        min-height: 220px;
    }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {

    .alumni-modal,
    .alumni-modal .modal-panel {
        transition: none !important;
    }
}

/* Reveal on scroll */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: .5s ease;
}

    .reveal.in {
        opacity: 1;
        transform: translateY(0);
    }

.bg-transparent {
        background: transparent !important;
}
/* Page header for inner pages */
.page-header {
    position: relative;
    padding: 9rem 0 1rem;
    /*background: linear-gradient(180deg, #f7fbfa, #ffffff);
    overflow: hidden;*/
}

.page-header .container {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 28px;
    align-items: center;
}

.page-header .header-copy .page-title {
    margin:  0px;
    font-size: clamp(28px, 4.2vw, 44px);
}

.page-header .header-copy .subtitle {
    color: var(--muted);
    margin: 0 0 14px;
}
.w-100 {
    max-width: 100%;
}

.page-header .breadcrumbs {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    color: var(--muted);
}

    .page-header .breadcrumbs a {
        color: var(--primary);
        text-decoration: none;
        font-weight: 600;
    }

    .page-header .breadcrumbs .sep {
        opacity: .6;
    }

.page-header .header-art {
    position: relative;
    min-height: 180px;
}

    .page-header .header-art .ring {
        position: absolute;
        inset: 0;
        margin: auto;
        width: 260px;
        height: 260px;
        border-radius: 50%;
        border: 2px dashed rgba(6, 96, 88, .2);
        transform: translateZ(0);
    }

    .page-header .header-art .ring-1 {
        width: 320px;
        height: 320px;
        border-color: rgba(195, 152, 67, .25);
        filter: blur(.2px);
    }

    /*.page-header .header-art .glow {
        position: absolute;
        inset: 0;
        margin: auto;
        width: 440px;
        height: 440px;
        border-radius: 50%;
        background: radial-gradient(closest-side, rgba(6,96,88,.18), transparent 70%);
        filter: blur(8px);
        z-index: -1;
    }*/



/* Contact page */
.contact {
    background: linear-gradient(180deg, #ffffff, #f7fbfa);
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 20px;
}

.contact-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 22px;
}

.contact-card--with-art {
    position: relative;
    overflow: hidden;
}

.contact-pattern {
    position: absolute;
    inset-inline-start: -40px; /* left in RTL */
    inset-block-start: -40px; /* top */
    /*width: 240px;*/
    /*height: 240px;*/
    opacity: .6;
    /*transform: rotate(-8deg);*/
    /*filter: saturate(115%);*/
    pointer-events: none;
}

.contact-illustration {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -30px;
    width: 100%;
    height: auto;
    /* opacity: .22; */
    pointer-events: none;
}

.contact-card--with-art .contact-content {
    position: relative;
    z-index: 1;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0 0 14px;
    display: grid;
    gap: 10px;
}

    .contact-list li {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .contact-list i {
        width: 36px;
        height: 36px;
        display: grid;
        place-items: center;
        border-radius: 10px;
        background: var(--secondary-light);
        color: var(--secondary);
    }

    .contact-list a {
        color: var(--text);
        text-decoration: none;
        font-weight: 600;
    }

.contact-note {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #f9fafb;
    color: var(--muted);
}

.form-field {
    display: grid;
    gap: 6px;
    margin-bottom: 12px;
}

    .form-field label {
        font-weight: 600;
    }

    .form-field input,
    .form-field textarea {
        width: 100%;
        padding: 12px 14px;
        border: 1px solid var(--border);
        border-radius: 12px;
        background: #fff;
        font-family: inherit;
        font-size: 16px;
    }

    .form-field textarea {
        resize: vertical;
    }

.field-note {
    font-size: 12px;
    color: var(--muted);
    min-height: 16px;
}

.has-error input,
.has-error textarea {
    border-color: color-mix(in oklab, #ef4444 60%, var(--border));
    box-shadow: 0 0 0 3px color-mix(in oklab, #ef4444 20%, transparent);
}

.has-error .field-note {
    color: #b91c1c;
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}



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

.btn-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

    .btn-dropdown-toggle .ti-chevron-down {
        font-size: 0.9em;
        transition: transform .2s ease;
    }

.btn-dropdown.open .btn-dropdown-toggle .ti-chevron-down {
    transform: rotate(180deg);
}

.btn-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: 0 12px 28px rgba(2, 44, 40, 0.15);
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
    z-index: 100;
}

.btn-dropdown.open .btn-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.btn-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    color: var(--text);
    text-decoration: none;
    border-radius: 8px;
    transition: background .15s ease, color .15s ease;
    white-space: nowrap;
}

    .btn-dropdown-item:hover {
        background: var(--bg-soft);
        color: var(--primary);
    }

    .btn-dropdown-item i {
        font-size: 1.1em;
        color: var(--secondary);
    }

    .btn-dropdown-item:hover i {
        color: var(--primary);
    }

/* Make dropdown left-aligned for RTL */
@media (max-width: 640px) {
    .btn-dropdown-menu {
        right: auto;
        left: 0;
        min-width: 200px;
    }
}

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

@media (max-width: 820px) {
    .page-header {
        padding: 130px 0 0;
    }
    .page-header .container { grid-template-columns: 1fr; }
}

/* Responsive */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
    }

    .hero-art {
        min-height: 320px;
    }

    .president-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .avatar {
        margin-inline: auto;
    }

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

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

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

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

@media (max-width: 640px) {
    .nav-links {
        display: none;
        position: absolute;
        inset-inline: 10px;
        /* align within card borders */
        inset-block-start: calc(100% + 8px);
        /* drop just below the card */
        background: #fff;
        border: 1px solid var(--border);
        border-radius: 12px;
        box-shadow: 0 16px 36px rgba(2, 44, 40, 0.10);
        padding: 10px 14px 12px;
        flex-direction: column;
        gap: 6px;
        z-index: 1001;
    }

        .nav-links.open {
            display: flex;
        }

    .menu-toggle {
        display: inline-grid;
    }

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

    .services-grid,
    .office-grid,
    .alumni-grid,
    .events-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }

    section {
        padding: 56px 0;
    }

    .hero-art .hero-img {
        max-width: 440px;
    }

    .page-header .breadcrumbs { font-size: 13px; }
    .art_2 {
        right: calc(0.25rem * -45);
    }
    .contact-illustration {
        opacity: .22;
    }
    .footer-grid {
        grid-template-columns: repeat(1, 1fr);
    }
    .hero-art .ring-1 {
        width: 350px;
        height: 350px;
    }
    .hero-art .glow {
        width: 320px;
        height: 320px;
    }
    .alumni .section-header > .section-actions {
        align-items: flex-start;
        flex-direction: column;
        width: 100%;
    }
    .alumni-modal {
        padding: 12px;
        align-items: end; /* allow panel to anchor near bottom if needed */
    }

        .alumni-modal .modal-panel {
            width: 100%;
            max-width: 560px;
            max-height: calc(100dvh - 24px);
            /* fallbacks for browsers not supporting dvh */
            max-height: calc(100vh - 24px);
            border-radius: 16px;
            overflow: hidden;
            display: grid;
            grid-template-rows: auto 1fr; /* header then scrollable body */
        }

        .alumni-modal .modal-header {
            height: 140px;
        }

        .alumni-modal .avatar-wrap {
            width: 96px;
            height: 96px;
            bottom: -48px;
        }

        .alumni-modal .modal-body {
            padding: 64px 16px 16px 16px; /* account for smaller avatar */
            overflow: auto;
            -webkit-overflow-scrolling: touch;
        }

        .alumni-modal .close-btn {
            width: 44px;
            height: 44px;
            border-radius: 14px;
            background: rgba(255, 255, 255, 0.95);
        }
}

/* Reduce motion accessibility */
@media (prefers-reduced-motion: reduce) {

    .hero-art .layer,
    .hero-art .hero-img {
        transition: none !important;
        animation: none !important;
        transform: none !important;
    }
}

