/* ==========================================================================
   Public site — modern layer
   --------------------------------------------------------------------------
   Loaded last in web/layouts/master.blade.php so it overrides the bundled
   theme (default.css / style.css / responsive.css). Everything here is scoped
   to .sx-* class names introduced by the redesigned sections, so the older
   pages that still use the theme's markup are untouched.
   ========================================================================== */

:root {
    --sx-blue: #0169b6;
    --sx-blue-700: #014f8a;
    --sx-blue-800: #013f6e;
    --sx-blue-050: #eef6fd;
    --sx-green: #0db305;
    --sx-green-700: #0a8c04;
    --sx-ink: #14212e;
    --sx-ink-soft: #4a5c6f;
    --sx-ink-faint: #7c8b9b;
    --sx-line: #e3e9f0;
    --sx-canvas: #f6f9fc;
    --sx-radius: 14px;
    --sx-radius-lg: 22px;
    --sx-shadow: 0 2px 8px rgba(20, 33, 46, .06), 0 8px 24px rgba(20, 33, 46, .06);
    --sx-shadow-lg: 0 20px 48px rgba(1, 63, 110, .18);
    --sx-max: 1180px;
}

.sx {
    color: var(--sx-ink);
    font-size: 16px;
    line-height: 1.65;
}

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

.sx-wrap {
    width: 100%;
    max-width: var(--sx-max);
    margin-inline: auto;
    padding-inline: 1.25rem;
}

.sx h1, .sx h2, .sx h3, .sx h4 {
    color: var(--sx-ink);
    letter-spacing: -.02em;
    line-height: 1.2;
    margin: 0;
}

.sx p { margin: 0; }

/* --------------------------------------------------------------------------
   Section scaffolding
   -------------------------------------------------------------------------- */

.sx-section {
    padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.sx-section--tint { background: var(--sx-canvas); }

.sx-section__head {
    max-width: 46rem;
    margin: 0 auto clamp(2.25rem, 4vw, 3.25rem);
    text-align: center;
}

.sx-eyebrow {
    display: inline-block;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--sx-blue);
    background: var(--sx-blue-050);
    border-radius: 999px;
    padding: .375rem .875rem;
    margin-bottom: 1rem;
}

.sx-section__title {
    font-size: clamp(1.75rem, 3.4vw, 2.5rem);
    font-weight: 700;
}

.sx-section__lede {
    margin-top: .875rem;
    font-size: 1.0625rem;
    color: var(--sx-ink-soft);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.sx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .8125rem 1.5rem;
    font-size: .9375rem;
    font-weight: 600;
    line-height: 1.3;
    border-radius: 999px;
    border: 1.5px solid transparent;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .16s ease, border-color .16s ease, color .16s ease, transform .06s ease, box-shadow .16s ease;
}

.sx-btn:hover { text-decoration: none; transform: translateY(-1px); }
.sx-btn:active { transform: translateY(0); }

.sx-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 .2rem rgba(255, 255, 255, .5), 0 0 0 .35rem rgba(1, 105, 182, .45);
}

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

.sx-btn--primary:hover {
    background: var(--sx-green-700);
    border-color: var(--sx-green-700);
    color: #fff;
}

.sx-btn--ghost {
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .55);
    color: #fff;
}

.sx-btn--ghost:hover {
    background: rgba(255, 255, 255, .18);
    border-color: #fff;
    color: #fff;
}

.sx-btn--solid {
    background: var(--sx-blue);
    border-color: var(--sx-blue);
    color: #fff;
}

.sx-btn--solid:hover {
    background: var(--sx-blue-700);
    border-color: var(--sx-blue-700);
    color: #fff;
}

.sx-btn--quiet {
    background: transparent;
    border-color: var(--sx-line);
    color: var(--sx-ink);
}

.sx-btn--quiet:hover {
    border-color: var(--sx-blue);
    color: var(--sx-blue);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.sx-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(ellipse at 78% 8%, rgba(13, 179, 5, .30), transparent 52%),
        linear-gradient(145deg, var(--sx-blue) 0%, var(--sx-blue-700) 55%, var(--sx-blue-800) 100%);
}

.sx-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .13) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}

/* When a slider image is configured it becomes the backdrop, with a scrim so
   the text stays readable regardless of the uploaded photo. */
.sx-hero--photo { background: var(--sx-blue-800); }

.sx-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.sx-hero__scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgba(1, 63, 110, .93) 0%, rgba(1, 79, 138, .82) 45%, rgba(1, 63, 110, .58) 100%);
}

.sx-hero__inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
    padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}

.sx-hero h1,
.sx-hero h2,
.sx-hero h3 { color: #fff; }

.sx-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .8125rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
    padding: .4375rem 1rem;
    margin-bottom: 1.5rem;
}

.sx-hero__title {
    font-size: clamp(2rem, 4.6vw, 3.375rem);
    font-weight: 700;
    line-height: 1.14;
    margin-bottom: 1.125rem;
}

.sx-hero__lede {
    font-size: clamp(1rem, 1.4vw, 1.1875rem);
    line-height: 1.7;
    color: rgba(255, 255, 255, .88);
    max-width: 46ch;
    margin-bottom: 2rem;
}

.sx-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .875rem;
}

/* Logo medallion on the right of the hero. */
.sx-hero__aside {
    display: flex;
    justify-content: center;
}

.sx-hero__medallion {
    width: min(300px, 72vw);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .09);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 50%;
    padding: 2.5rem;
    backdrop-filter: blur(2px);
}

.sx-hero__medallion img {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 26px rgba(0, 0, 0, .3));
}

/* Stat ribbon along the bottom of the hero. */
.sx-hero__stats {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1px;
    background: rgba(255, 255, 255, .16);
    border-top: 1px solid rgba(255, 255, 255, .16);
}

.sx-hero__stat {
    padding: 1.375rem 1.25rem;
    text-align: center;
    background: rgba(1, 63, 110, .28);
}

.sx-hero__stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.15;
    color: #fff;
}

.sx-hero__stat-label {
    display: block;
    font-size: .8125rem;
    color: rgba(255, 255, 255, .74);
    margin-top: .1875rem;
}

/* --------------------------------------------------------------------------
   Quick-link cards
   -------------------------------------------------------------------------- */

.sx-grid {
    display: grid;
    gap: 1.5rem;
}

.sx-grid--3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.sx-grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.sx-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--sx-line);
    border-radius: var(--sx-radius);
    padding: 1.75rem;
    text-decoration: none;
    color: inherit;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

a.sx-card:hover {
    border-color: transparent;
    box-shadow: var(--sx-shadow);
    transform: translateY(-3px);
    text-decoration: none;
    color: inherit;
}

.sx-card__icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--sx-blue-050);
    color: var(--sx-blue);
    font-size: 1.25rem;
    margin-bottom: 1.125rem;
}

.sx-card__icon--green {
    background: rgba(13, 179, 5, .1);
    color: var(--sx-green-700);
}

.sx-card__title {
    font-size: 1.0625rem;
    font-weight: 700;
    margin-bottom: .4375rem;
}

.sx-card__text {
    font-size: .9375rem;
    color: var(--sx-ink-soft);
    margin: 0;
}

.sx-card__more {
    margin-top: 1.125rem;
    font-size: .875rem;
    font-weight: 600;
    color: var(--sx-blue);
}

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */

.sx-about {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: clamp(2rem, 5vw, 3.5rem);
    align-items: center;
}

.sx-about__media {
    position: relative;
    border-radius: var(--sx-radius-lg);
    overflow: hidden;
    box-shadow: var(--sx-shadow);
    background: #fff;
}

.sx-about__media img {
    display: block;
    width: 100%;
    height: auto;
}

.sx-about__body p { color: var(--sx-ink-soft); }

.sx-about__body > p + p { margin-top: .875rem; }

.sx-pillars {
    list-style: none;
    margin: 2rem 0 0;
    padding: 0;
    display: grid;
    gap: 1.125rem;
}

.sx-pillar {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.sx-pillar__icon {
    flex: none;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(13, 179, 5, .1);
    color: var(--sx-green-700);
}

.sx-pillar__title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: .25rem;
}

.sx-pillar__text {
    font-size: .9375rem;
    color: var(--sx-ink-soft);
}

/* --------------------------------------------------------------------------
   News
   -------------------------------------------------------------------------- */

.sx-news-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--sx-line);
    border-radius: var(--sx-radius);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    height: 100%;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.sx-news-card:hover {
    border-color: transparent;
    box-shadow: var(--sx-shadow);
    transform: translateY(-3px);
    text-decoration: none;
    color: inherit;
}

.sx-news-card__media {
    aspect-ratio: 16 / 10;
    background: var(--sx-blue-050);
    overflow: hidden;
}

.sx-news-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.sx-news-card:hover .sx-news-card__media img { transform: scale(1.04); }

.sx-news-card__body {
    padding: 1.375rem 1.5rem 1.625rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.sx-news-card__date {
    font-size: .8125rem;
    color: var(--sx-ink-faint);
    margin-bottom: .5rem;
}

.sx-news-card__title {
    font-size: 1.0625rem;
    font-weight: 700;
    margin-bottom: .5rem;
}

.sx-news-card__excerpt {
    font-size: .9375rem;
    color: var(--sx-ink-soft);
    margin: 0;
}

/* --------------------------------------------------------------------------
   Gallery strip
   -------------------------------------------------------------------------- */

.sx-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.sx-gallery__item {
    display: block;
    aspect-ratio: 4 / 3;
    border-radius: var(--sx-radius);
    overflow: hidden;
    background: var(--sx-blue-050);
}

.sx-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.sx-gallery__item:hover img { transform: scale(1.05); }

/* --------------------------------------------------------------------------
   Closing call to action
   -------------------------------------------------------------------------- */

.sx-cta {
    position: relative;
    overflow: hidden;
    border-radius: var(--sx-radius-lg);
    padding: clamp(2.5rem, 5vw, 3.75rem);
    color: #fff;
    background:
        radial-gradient(circle at 88% 18%, rgba(13, 179, 5, .32), transparent 55%),
        linear-gradient(135deg, var(--sx-blue) 0%, var(--sx-blue-800) 100%);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.75rem;
    box-shadow: var(--sx-shadow-lg);
}

.sx-cta h2 { color: #fff; font-size: clamp(1.5rem, 2.8vw, 2rem); font-weight: 700; }
.sx-cta p { color: rgba(255, 255, 255, .85); margin-top: .625rem; max-width: 52ch; }
.sx-cta__actions { display: flex; flex-wrap: wrap; gap: .875rem; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
    .sx-hero__inner { grid-template-columns: 1fr; }
    .sx-hero__aside { display: none; }
}

@media (max-width: 575.98px) {
    .sx-hero__actions .sx-btn,
    .sx-cta__actions .sx-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .sx-btn,
    .sx-card,
    .sx-news-card,
    .sx-news-card__media img,
    .sx-gallery__item img {
        transition: none;
    }
    .sx-btn:hover,
    a.sx-card:hover,
    .sx-news-card:hover { transform: none; }
}

/* ==========================================================================
   Bundled-theme accent overrides
   --------------------------------------------------------------------------
   The purchased theme ships a coral accent (#ff7350) and a teal header/footer
   (#125875) that clash with the school's blue/green. These rules re-point the
   accents at the brand palette without touching the theme's own stylesheets,
   so the vendor files stay upgradable.
   ========================================================================== */

.header-top.second-header,
footer.footer-bg {
    background-color: var(--sx-blue-800) !important;
}

.header-social span a,
.footer-social a {
    color: rgba(255, 255, 255, .85);
    transition: color .16s ease;
}

.header-social span a:hover,
.footer-social a:hover {
    color: #fff;
}

/* Primary navigation */
.main-menu ul li a { color: var(--sx-ink); font-weight: 500; }
.main-menu ul li.current > a,
.main-menu ul li a:hover { color: var(--sx-blue) !important; }

.main-menu ul li.current > a::before,
.main-menu ul li a::before { background: var(--sx-blue) !important; }

/* Admission button in the header */
.second-header-btn .btn,
.header-cta .btn {
    background: var(--sx-green) !important;
    border-color: var(--sx-green) !important;
    color: #fff !important;
}

.second-header-btn .btn:hover,
.header-cta .btn:hover {
    background: var(--sx-green-700) !important;
    border-color: var(--sx-green-700) !important;
}

/* Back-to-top control */
#scrollUp {
    background: var(--sx-blue) !important;
    border-radius: 10px;
}

#scrollUp:hover { background: var(--sx-blue-700) !important; }

/* Generic theme buttons used on the inner pages */
.btn.ss-btn,
.theme-btn {
    background: var(--sx-green) !important;
    border-color: var(--sx-green) !important;
}

.btn.ss-btn:hover,
.theme-btn:hover {
    background: var(--sx-green-700) !important;
    border-color: var(--sx-green-700) !important;
}

/* The theme paints a slanted coral block over the top bar via a ::before
   pseudo-element; re-point it at the brand green so it reads as an accent. */
.header-top.second-header::before {
    background: var(--sx-green) !important;
}

/* Top-bar contact text sits on the dark bar, so force legible colours. */
.header-top.second-header .header-cta,
.header-top.second-header .header-cta a,
.header-top.second-header .header-cta strong {
    color: #fff !important;
}
