/* Student Service Center page — scoped styles (prefix: .ssc-)
   The same tokens as the other University unit pages: the site's brand blue
   (#0096db) and the Roboto Slab font from base.html. */

.ssc-page {
    --ssc-primary: #0096db;
    --ssc-primary-dark: #0987c2;
    --ssc-primary-deep: #075e87;
    --ssc-ink: #1e293b;
    --ssc-muted: #64748b;
    --ssc-line: #e2e8f0;
    --ssc-bg-soft: #f4f8fb;
    --ssc-tint: rgba(0, 150, 219, .12);
    --ssc-radius: 16px;
    --ssc-shadow: 0 10px 30px -12px rgba(2, 74, 110, .25);
    --ssc-shadow-hover: 0 18px 40px -16px rgba(2, 74, 110, .35);
    --ssc-space: clamp(48px, 7vw, 96px);
    /* the site's navbar sticks to the top once the page scrolls: a section
       reached through an anchor starts below it, not under it */
    --ssc-sticky-offset: 96px;
    color: var(--ssc-ink);
    overflow-x: hidden;
}

.ssc-page .container {
    max-width: 1200px;
}

.ssc-page [id] {
    scroll-margin-top: var(--ssc-sticky-offset);
}

.ssc-page a:focus-visible {
    outline: 3px solid var(--ssc-primary);
    outline-offset: 3px;
    border-radius: 6px;
}

.ssc-hero a:focus-visible,
.ssc-contact__desk a:focus-visible {
    outline-color: #fff;
}

.ssc-section {
    padding: var(--ssc-space) 0;
}

.ssc-section:nth-of-type(even) {
    background: var(--ssc-bg-soft);
}

.ssc-section__head {
    max-width: 780px;
    margin: 0 auto clamp(28px, 4vw, 44px);
    text-align: center;
    /* overrides the global `header { background-color: #5d5d5d }` from styles.css */
    background: transparent;
}

.ssc-section__title {
    font-size: clamp(26px, 3.4vw, 40px);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 12px;
    color: var(--ssc-ink);
}

.ssc-section__lead {
    color: var(--ssc-muted);
    font-size: clamp(15px, 1.6vw, 18px);
    line-height: 1.65;
    margin: 0;
}

/* the icon tiles of the cards */
.ssc-duty__icon,
.ssc-step__icon,
.ssc-contact__icon {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    font-size: 22px;
    color: #fff;
    background: linear-gradient(135deg, var(--ssc-primary), var(--ssc-primary-dark));
}

/* the white card the sections are built of */
.ssc-duty,
.ssc-step,
.ssc-motto,
.ssc-contact__online {
    background: #fff;
    border: 1px solid var(--ssc-line);
    border-radius: var(--ssc-radius);
    box-shadow: var(--ssc-shadow);
}

/* ---------- Buttons ---------- */
.ssc-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 24px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.2;
    text-decoration: none;
    border: 2px solid transparent;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
    cursor: pointer;
}

.ssc-btn:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.ssc-btn--primary {
    background: var(--ssc-primary);
    color: #fff;
    box-shadow: 0 8px 20px -8px rgba(0, 150, 219, .8);
}

.ssc-btn--primary:hover {
    background: var(--ssc-primary-dark);
    color: #fff;
}

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

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

/* on the blue call desk: white, the brand's deep blue for the text */
.ssc-btn--light {
    background: #fff;
    color: var(--ssc-primary-deep);
    box-shadow: 0 8px 20px -10px rgba(2, 40, 60, .6);
}

.ssc-btn--light:hover {
    background: #fff;
    color: var(--ssc-primary-deep);
}

/* ---------- Hero ---------- */
.ssc-hero {
    position: relative;
    color: #fff;
    padding: clamp(48px, 8vw, 104px) 0 clamp(44px, 7vw, 84px);
    background:
        radial-gradient(120% 120% at 85% 0%, rgba(255, 255, 255, .16), transparent 55%),
        linear-gradient(135deg, var(--ssc-primary) 0%, var(--ssc-primary-dark) 45%, var(--ssc-primary-deep) 100%);
    overflow: hidden;
}

/* the Center's emblem in two rings; from 992px only: on a narrower hero it
   would sit behind the text. It stands still. */
.ssc-hero__emblem {
    display: none;
    position: absolute;
    right: max(24px, calc((100% - 1200px) / 2));
    top: 50%;
    width: min(32%, 360px);
    aspect-ratio: 1;
    transform: translateY(-50%);
    pointer-events: none;
}

.ssc-hero__ring {
    position: absolute;
    border-radius: 50%;
}

.ssc-hero__ring--outer {
    inset: 0;
    border: 1.5px dashed rgba(255, 255, 255, .22);
}

.ssc-hero__ring--inner {
    inset: 14%;
    background: rgba(255, 255, 255, .1);
    border: 2px solid rgba(255, 255, 255, .35);
}

.ssc-hero__logo {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 38%;
    height: auto;
    transform: translate(-50%, -50%);
    filter: drop-shadow(0 14px 24px rgba(2, 40, 60, .35));
}

.ssc-hero__inner {
    position: relative;
    z-index: 1;
}

.ssc-breadcrumb .breadcrumb {
    background: transparent;
    padding: 0;
    font-size: 14px;
    flex-wrap: wrap;
}

.ssc-breadcrumb .breadcrumb-item,
.ssc-breadcrumb .breadcrumb-item a,
.ssc-breadcrumb .breadcrumb-item.active {
    color: rgba(255, 255, 255, .85);
}

.ssc-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, .55);
}

.ssc-hero__eyebrow {
    text-transform: uppercase;
    letter-spacing: .16em;
    font-size: 13px;
    font-weight: 600;
    opacity: .85;
    margin: 18px 0 10px;
}

.ssc-hero__title {
    max-width: 680px;
    font-size: clamp(30px, 5vw, 54px);
    font-weight: 800;
    line-height: 1.12;
    margin: 0 0 20px;
    color: #fff;
}

.ssc-hero__lead {
    color: rgba(255, 255, 255, .92);
    font-size: clamp(15px, 1.6vw, 18px);
    line-height: 1.7;
    max-width: 640px;
    margin: 0 0 28px;
}

.ssc-hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* ---------- Quick facts ---------- */
.ssc-facts {
    background: var(--ssc-primary-deep);
    padding: 0;
}

.ssc-facts__grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.ssc-fact {
    padding: 26px 18px;
    text-align: center;
    color: #fff;
    border-left: 1px solid rgba(255, 255, 255, .14);
}

.ssc-fact:first-child {
    border-left: none;
}

.ssc-fact__value {
    display: block;
    font-size: clamp(24px, 3.2vw, 36px);
    font-weight: 800;
    line-height: 1.1;
}

.ssc-fact__label {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.45;
    color: rgba(255, 255, 255, .8);
}

/* ---------- Section links ---------- */
.ssc-jumpnav {
    background: #fff;
    border-bottom: 1px solid var(--ssc-line);
}

.ssc-jumpnav__list {
    list-style: none;
    margin: 0;
    padding: 14px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.ssc-jumpnav__list a {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--ssc-ink);
    text-decoration: none;
    transition: background .15s ease, color .15s ease;
}

.ssc-jumpnav__list a:hover {
    color: var(--ssc-primary-deep);
    background: var(--ssc-tint);
}

/* ---------- The student's path ---------- */
.ssc-path {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.ssc-step {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
}

.ssc-step__label {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--ssc-ink);
}

/* ---------- Guiding principle ---------- */
.ssc-motto {
    display: flex;
    align-items: center;
    gap: clamp(18px, 3vw, 32px);
    max-width: 960px;
    margin: clamp(28px, 4vw, 44px) auto 0;
    padding: clamp(24px, 4vw, 40px);
    border-left: 5px solid var(--ssc-primary);
}

.ssc-motto__logo {
    flex: none;
    width: 96px;
    height: auto;
}

/* the card's name in small capitals above the text */
.ssc-motto__title {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ssc-primary-deep);
}

.ssc-motto__text {
    margin: 0;
    font-size: clamp(17px, 2vw, 21px);
    font-weight: 600;
    line-height: 1.6;
    color: var(--ssc-ink);
}

/* ---------- Duties ---------- */
.ssc-duties {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.ssc-duty {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 30px 26px;
    transition: transform .18s ease, box-shadow .18s ease;
}

.ssc-duty:hover {
    transform: translateY(-4px);
    box-shadow: var(--ssc-shadow-hover);
}

.ssc-duty__icon {
    align-self: flex-start;
    margin-bottom: 18px;
}

/* the number in the corner, as the other unit pages carry theirs */
.ssc-duty__num {
    position: absolute;
    top: 20px;
    right: 22px;
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
    color: rgba(0, 150, 219, .2);
}

.ssc-duty__title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.35;
}

.ssc-duty__text {
    color: var(--ssc-muted);
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

/* ---------- Photos ---------- */
.ssc-photos {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

/* one frame size for both photos; they stand still */
.ssc-photo {
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border: 1px solid var(--ssc-line);
    border-radius: var(--ssc-radius);
    box-shadow: var(--ssc-shadow);
    background: var(--ssc-line);
    transition: border-color .18s ease, box-shadow .18s ease;
}

/* as the flyers of the Step Into the Future page: the frame lights up, nothing moves */
.ssc-photo:hover {
    border-color: var(--ssc-primary);
    box-shadow: var(--ssc-shadow-hover);
}

.ssc-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------- Contacts ---------- */
.ssc-contact {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 1040px;
    margin: 0 auto;
}

.ssc-contact__desk {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: clamp(28px, 4vw, 40px) 24px;
    text-align: center;
    color: #fff;
    border-radius: var(--ssc-radius);
    background: linear-gradient(135deg, var(--ssc-primary), var(--ssc-primary-deep));
    box-shadow: var(--ssc-shadow);
}

.ssc-contact__icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    font-size: 26px;
    background: rgba(255, 255, 255, .16);
}

.ssc-contact__title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
}

.ssc-contact__ext {
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, .9);
}

.ssc-contact__online {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: clamp(24px, 4vw, 36px);
}

.ssc-contact__subtitle {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--ssc-ink);
}

.ssc-howto {
    margin: 0 0 24px;
    padding-left: 22px;
    color: var(--ssc-ink);
    font-size: 15px;
    line-height: 1.6;
}

.ssc-howto li + li {
    margin-top: 8px;
}

.ssc-howto li::marker {
    font-weight: 700;
    color: var(--ssc-primary-dark);
}

/* ---------- Columns ---------- */
@media (min-width: 768px) {
    .ssc-duties,
    .ssc-photos {
        grid-template-columns: repeat(2, 1fr);
    }

    .ssc-path {
        grid-template-columns: repeat(5, 1fr);
    }

    .ssc-step {
        flex-direction: column;
        text-align: center;
        padding: 24px 14px;
    }

    .ssc-step__label {
        font-size: 15px;
    }
}

@media (min-width: 992px) {
    .ssc-hero__emblem {
        display: block;
    }

    /* the text keeps clear of the emblem on the narrower desktops */
    .ssc-hero__title,
    .ssc-hero__lead {
        max-width: min(640px, 60%);
    }

    /* the call desk beside the steps */
    .ssc-contact {
        grid-template-columns: 340px minmax(0, 1fr);
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 575px) {
    .ssc-facts__grid {
        grid-template-columns: 1fr;
    }

    .ssc-fact {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, .14);
        padding: 20px 16px;
    }

    .ssc-fact:first-child {
        border-top: none;
    }

    .ssc-motto {
        flex-direction: column;
        align-items: flex-start;
    }

    .ssc-motto__logo {
        width: 72px;
    }

    .ssc-duty {
        padding: 26px 20px;
    }

    .ssc-duty__num {
        right: 18px;
        font-size: 24px;
    }

    .ssc-jumpnav__list a {
        padding: 8px 14px;
        font-size: 14px;
    }
}

@media (max-width: 400px) {
    .ssc-page .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .ssc-btn {
        width: 100%;
        justify-content: center;
    }

    .ssc-hero__cta {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ssc-btn,
    .ssc-duty,
    .ssc-photo {
        transition: none;
    }

    .ssc-btn:hover,
    .ssc-duty:hover {
        transform: none;
    }
}
