/*
 * Admissions design system, shared by the homepage and the global
 * `<x-home.navbar>` topbar/navbar (included on every public "home" page).
 * Change --brand-blue / --brand-gold below to re-theme the whole thing.
 */
:root {
    --brand-blue: #2c5ead;
    --brand-blue-dark: #1b3e73;
    --brand-blue-rgb: 44, 94, 173;
    --brand-gold: #d4af37;
    --brand-gold-dark: #b8912b;
    --brand-gold-rgb: 212, 175, 55;
}

.adm-page {
    font-family: "Poppins", sans-serif;
    color: #1f2937;
}

.adm-page h1,
.adm-page h2,
.adm-page h3,
.adm-page h4,
.adm-page h5,
.adm-page h6 {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
}

/* Topbar (global) */
.adm-topbar {
    background: var(--brand-blue-dark);
    color: #fff;
    font-size: 0.82rem;
    padding: 0.45rem 0;
    font-family: "Poppins", sans-serif;
}
.adm-topbar a {
    color: #fff;
    text-decoration: none;
}
.adm-topbar a:hover {
    color: var(--brand-gold);
}
.adm-topbar-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    margin-left: 0.4rem;
}
.adm-topbar-icons a:hover {
    background: var(--brand-gold);
    color: var(--brand-blue-dark);
}

/* Sticky navbar (global) */
.adm-navbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: #fff;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.08);
    padding: 0.6rem 0;
    font-family: "Poppins", sans-serif;
}
.adm-brand-title {
    font-weight: 700;
    color: var(--brand-blue);
    font-size: 0.95rem;
    line-height: 1.25;
    margin-bottom: 0;
}
.adm-brand-subtitle {
    font-size: 0.7rem;
    color: #6b7280;
    letter-spacing: 0.02em;
}
.adm-nav-link {
    font-weight: 500;
    color: #1f2937 !important;
    padding: 0.5rem 0.9rem !important;
}
.adm-nav-link.active,
.adm-nav-link:hover {
    color: var(--brand-blue) !important;
}
.adm-btn-register {
    background: var(--brand-gold);
    border-color: var(--brand-gold);
    color: var(--brand-blue-dark);
    font-weight: 600;
}
.adm-btn-register:hover {
    background: var(--brand-gold-dark);
    border-color: var(--brand-gold-dark);
    color: #fff;
}

/* Hero */
.adm-hero {
    position: relative;
    min-height: 560px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
}
.adm-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(15, 23, 42, 0.55) 0%,
        rgba(var(--brand-blue-rgb), 0.8) 90%,
        rgba(var(--brand-blue-rgb), 0.95) 100%
    );
}
.adm-hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
}
.adm-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(var(--brand-gold-rgb), 0.15);
    border: 1px solid var(--brand-gold);
    color: var(--brand-gold);
    border-radius: 50rem;
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}
.adm-stat-bar {
    position: relative;
    margin-top: -3.5rem;
    z-index: 5;
}
.adm-stat-item {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
    padding: 1.5rem 1rem;
    text-align: center;
    height: 100%;
}
.adm-stat-number {
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--brand-blue);
}
.adm-stat-label {
    font-size: 0.82rem;
    color: #6b7280;
}

/* Sections */
.adm-section {
    padding: 4.5rem 0 4rem;
}
.adm-section-alt {
    background: #f7f9fc;
}
.adm-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--brand-blue);
    margin-bottom: 0.5rem;
}
.adm-eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand-gold);
    display: inline-block;
}

/* Carousel: split panel, copy on one side, visual on the other */
.adm-carousel {
    padding: 3.5rem 0 3rem;
}
.adm-carousel-frame {
    position: relative;
    background: #fff;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}
.adm-carousel .carousel-item {
    transition: transform 0.5s ease-in-out;
}
.adm-carousel-panel {
    min-height: 420px;
}
.adm-carousel-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    padding: 2.75rem 2.5rem;
}
.adm-carousel-badge {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 0.5rem;
    background: rgba(var(--brand-gold-rgb), 0.14);
    border: 1px solid rgba(var(--brand-gold-rgb), 0.5);
    color: var(--brand-gold-dark);
    border-radius: 50rem;
    padding: 0.35rem 0.9rem;
    margin-bottom: 1rem;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.adm-carousel-title {
    font-size: clamp(1.4rem, 2.4vw, 2rem);
    color: #111c2e;
    margin-bottom: 0.75rem;
}
.adm-carousel-desc {
    color: #4b5563;
    margin-bottom: 1.5rem;
}
.adm-carousel-visual {
    position: relative;
    height: 100%;
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(var(--brand-blue-rgb), 0.06);
    border-left: 1px solid rgba(var(--brand-blue-rgb), 0.12);
}
.adm-carousel-visual img {
    max-width: 100%;
    max-height: 340px;
    object-fit: contain;
}

/* Carousel prev/next controls */
.adm-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 6;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(var(--brand-blue-rgb), 0.25);
    background: #fff;
    color: var(--brand-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.14);
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.adm-carousel-nav:hover {
    background: var(--brand-blue);
    border-color: var(--brand-blue);
    color: #fff;
}
.adm-carousel-nav:focus-visible {
    outline: 2px solid var(--brand-blue);
    outline-offset: 2px;
}
.adm-carousel-nav-prev {
    left: 0.5rem;
}
.adm-carousel-nav-next {
    right: 0.5rem;
}

/* Carousel indicators: even progress segments instead of dots */
.adm-carousel-indicators {
    position: static;
    margin: 0;
    padding: 1rem 1.25rem;
    display: flex;
    flex-wrap: nowrap;
    gap: 0.4rem;
    background: #fff;
    border-top: 1px solid #e6e9ef;
}
.adm-carousel-indicators [data-bs-target] {
    flex: 1 1 auto;
    width: auto;
    height: 5px;
    margin: 0;
    border: 0;
    border-radius: 50rem;
    background: rgba(var(--brand-blue-rgb), 0.18);
    opacity: 1;
    transition: background-color 0.25s;
}
.adm-carousel-indicators [data-bs-target]:hover {
    background: rgba(var(--brand-blue-rgb), 0.45);
}
.adm-carousel-indicators [data-bs-target].active {
    background: var(--brand-blue);
}
.adm-carousel-indicators [data-bs-target]:focus-visible {
    outline: 2px solid var(--brand-blue);
    outline-offset: 2px;
}

@media (max-width: 991.98px) {
    .adm-carousel {
        padding: 2.5rem 0 2rem;
    }
    .adm-carousel-panel {
        min-height: 0;
    }
    .adm-carousel-copy {
        order: 2;
        padding: 1.75rem 1.5rem 1.5rem;
    }
    .adm-carousel-visual {
        min-height: 200px;
        border-left: 0;
        border-bottom: 1px solid rgba(var(--brand-blue-rgb), 0.12);
    }
    .adm-carousel-visual img {
        max-height: 200px;
    }
    .adm-carousel-nav {
        top: auto;
        bottom: 4.75rem;
        transform: none;
        width: 36px;
        height: 36px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .adm-carousel .carousel-item {
        transition: none;
    }
}

/* Steps */
.adm-step-card {
    text-align: center;
    padding: 1.5rem 1rem;
    height: 100%;
}
.adm-step-number {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--brand-blue);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin: 0 auto 0.75rem;
}
.adm-step-icon {
    font-size: 1.8rem;
    color: var(--brand-gold-dark);
    margin-bottom: 0.5rem;
    display: block;
}

/* Timeline */
.adm-nav-pills .nav-link {
    color: var(--brand-blue);
    font-weight: 600;
    border-radius: 50rem;
}
.adm-nav-pills .nav-link.active {
    background: var(--brand-blue);
    color: #fff;
}
.adm-timeline {
    position: relative;
    padding-left: 2.75rem;
    list-style: none;
    margin: 0;
}
.adm-timeline::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: rgba(var(--brand-blue-rgb), 0.2);
}
.adm-timeline-item {
    position: relative;
    padding-bottom: 1.75rem;
}
.adm-timeline-item:last-child {
    padding-bottom: 0;
}
.adm-timeline-badge {
    position: absolute;
    left: -2.75rem;
    top: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--brand-blue);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
}
.adm-timeline-date {
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--brand-gold-dark);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.adm-accordion-button:not(.collapsed) {
    background: rgba(var(--brand-blue-rgb), 0.08);
    color: var(--brand-blue);
}

/* Faculties grid */
.adm-faculty-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border: 1px solid #e6e9ef;
    border-radius: 1rem;
    padding: 1.5rem;
    height: 100%;
    transition:
        box-shadow 0.25s,
        transform 0.25s,
        border-color 0.25s;
}
.adm-faculty-card:hover {
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.1);
    transform: translateY(-3px);
    border-color: var(--brand-blue);
    color: inherit;
}
.adm-faculty-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(var(--brand-blue-rgb), 0.1);
    color: var(--brand-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Registration flow */
.adm-flow-card {
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid #e6e9ef;
    height: 100%;
}
.adm-flow-header {
    padding: 1.25rem 1.5rem;
    color: #fff;
}
.adm-flow-header.stage-1 {
    background: linear-gradient(
        135deg,
        var(--brand-blue),
        var(--brand-blue-dark)
    );
}
.adm-flow-header.stage-2 {
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-gold));
}
.adm-flow-header.stage-3 {
    background: linear-gradient(
        135deg,
        var(--brand-gold),
        var(--brand-gold-dark)
    );
}
.adm-flow-body {
    padding: 1.5rem;
    background: #fff;
}
.adm-flow-step {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.adm-flow-step:last-child {
    margin-bottom: 0;
}
.adm-flow-step-num {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f1f5f9;
    color: var(--brand-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 700;
}

/* Announcements */
.adm-announcement-card {
    border: 1px solid #e6e9ef;
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: box-shadow 0.2s;
}
.adm-announcement-card:hover {
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}
.adm-badge-pinned {
    background: var(--brand-gold);
    color: var(--brand-blue-dark);
}
.adm-badge-category {
    background: rgba(var(--brand-blue-rgb), 0.1);
    color: var(--brand-blue);
}

/* CTA banner */
.adm-cta-banner {
    background: linear-gradient(
        135deg,
        var(--brand-blue),
        var(--brand-blue-dark)
    );
    color: #fff;
    padding: 3.5rem 1.5rem;
    text-align: center;
}

/* Footer */
.adm-footer {
    background: #111c2e;
    color: rgba(255, 255, 255, 0.75);
    padding: 3.5rem 0 0;
}
.adm-footer a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
}
.adm-footer a:hover {
    color: var(--brand-gold);
}
.adm-footer h6 {
    color: #fff;
    font-weight: 600;
    margin-bottom: 1rem;
}
.adm-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2.5rem;
    padding: 1rem 0;
    font-size: 0.82rem;
}
.adm-footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    margin-right: 0.5rem;
}
.adm-footer-social a:hover {
    background: var(--brand-gold);
    color: var(--brand-blue-dark);
}
.adm-cta {
    display: flex;
    align-items: center;
    gap: .9rem;
    height: 100%;
    padding: 1rem 1.15rem;
    border-radius: 1rem;
    color: #fff;
    text-decoration: none;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .25);
    backdrop-filter: blur(8px);
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.adm-cta:hover {
    color: #fff;
    background: rgba(255, 255, 255, .22);
    border-color: rgba(var(--brand-gold-rgb), .6);
    transform: translateY(-3px);
}
.adm-cta:hover .adm-cta-icon {
    background: rgba(var(--brand-gold-rgb), .3);
}

.adm-cta-icon {
    flex: none;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    font-size: 1.25rem;
    border-radius: .75rem;
    background: rgba(255, 255, 255, .18);
}
.adm-cta-title { font-weight: 600; line-height: 1.2; }
.adm-cta-sub   { font-size: .8rem; opacity: .75; margin-top: .15rem; }

.adm-cta-arrow { margin-left: auto; transition: transform .2s ease; }
.adm-cta:hover .adm-cta-arrow { transform: translateX(4px); }

/* Primary variant: follows the site secondary color, same as .adm-btn-register */
.adm-cta--primary {
    background: var(--brand-gold);
    color: #fff;
    border-color: var(--brand-gold);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
    padding: 1.15rem 1.35rem;
}
.adm-cta--primary:hover {
    background: var(--brand-gold-dark);
    border-color: var(--brand-gold-dark);
    color: #fff;
    box-shadow: 0 14px 36px rgba(0, 0, 0, .3);
}
.adm-cta--primary .adm-cta-icon {
    background: rgba(255, 255, 255, .28);
}
.adm-cta--primary:hover .adm-cta-icon {
    background: rgba(255, 255, 255, .28);
}
.adm-cta--primary .adm-cta-sub { color: inherit; opacity: .85; }