/* Homepage (front-page.php and template-parts/home/). */
/* -------------------------------------------------------------
   Homepage Specific Styles (Scoped & Zero External Dependencies)
   ------------------------------------------------------------- */
.wsms-home-wrap {
    color: var(--wsms-text, #0f172a);
    overflow-x: hidden;
}

/* Hero Slider */
.wsms-hero-slider {
    position: relative;
    height: 82vh;
    min-height: 580px;
    max-height: 800px;
    overflow: hidden;
    background: #090d16;
}
.wsms-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 1.2s ease-out;
    transform: scale(1.05);
    display: flex;
    align-items: center;
    justify-content: center;
}
.wsms-slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}
.wsms-slide__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.88) contrast(1.05);
}
.wsms-slide__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.78) 0%, rgba(15, 23, 42, 0.4) 48%, rgba(15, 23, 42, 0.1) 85%);
}
.wsms-slide__content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    padding: 0 2rem;
    color: #ffffff;
    text-align: left;
}
.wsms-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 1rem;
    background: rgba(79, 70, 229, 0.3);
    border: 1px solid rgba(165, 180, 252, 0.5);
    color: #e0e7ff;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.2rem;
    backdrop-filter: blur(10px);
}
.wsms-slide__title {
    font-size: clamp(2.2rem, 4vw, 3.8rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    color: #ffffff;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
}
.wsms-slide__lead {
    font-size: clamp(1.05rem, 1.3vw, 1.3rem);
    line-height: 1.6;
    color: #e2e8f0;
    max-width: 700px;
    margin-bottom: 2.2rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}
.wsms-slide__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}
.wsms-btn-primary {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    color: #ffffff !important;
    font-weight: 700;
    padding: 0.85rem 1.8rem;
    border-radius: 9999px;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.wsms-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(79, 70, 229, 0.5);
}
.wsms-btn-glass {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #ffffff !important;
    font-weight: 600;
    padding: 0.85rem 1.8rem;
    border-radius: 9999px;
    text-decoration: none;
    backdrop-filter: blur(10px);
    transition: all 0.2s;
}
.wsms-btn-glass:hover {
    background: rgba(255, 255, 255, 0.28);
    border-color: rgba(255, 255, 255, 0.7);
}

/* Slider Controls */
.wsms-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: all 0.2s;
}
.wsms-slider-arrow:hover {
    background: #4f46e5;
    border-color: #4f46e5;
}
.wsms-slider-arrow.prev { left: 24px; }
.wsms-slider-arrow.next { right: 24px; }
.wsms-slider-dots {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    gap: 8px;
}
.wsms-dot {
    width: 32px;
    height: 5px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s;
}
.wsms-dot.active {
    background: #6366f1;
    width: 52px;
}

/* Quick Strip */
.wsms-quick-strip {
    margin-top: -3.5rem;
    position: relative;
    z-index: 30;
    margin-bottom: 4rem;
}
.wsms-quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}
.wsms-quick-card {
    background: #ffffff;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 16px 36px -8px rgba(15, 23, 42, 0.1);
    border: 1px solid rgba(226, 232, 240, 0.9);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}
.wsms-quick-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -8px rgba(79, 70, 229, 0.16);
}
.wsms-quick-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.85rem;
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    color: #4f46e5;
    border: 1px solid rgba(99, 102, 241, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

/* Section Header */
.wsms-sec-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 3rem auto;
}
.wsms-sec-tag {
    color: #4f46e5;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
    display: inline-block;
}
.wsms-sec-title {
    font-size: clamp(1.8rem, 2.8vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.85rem;
    color: #0f172a;
}
.wsms-sec-desc {
    color: #64748b;
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Courses Grid */
.wsms-courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3.5rem;
}
.wsms-course-card {
    background: #ffffff;
    border-radius: 1.25rem;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.06);
    transition: transform 0.25s, box-shadow 0.25s;
    display: flex;
    flex-direction: column;
}
.wsms-course-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -8px rgba(79, 70, 229, 0.12);
}
.wsms-course-img {
    height: 190px;
    width: 100%;
    object-fit: cover;
}
.wsms-course-body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.wsms-course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
}
.wsms-course-dept {
    color: #4f46e5;
    background: #eef2ff;
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
}
.wsms-course-grade {
    color: #64748b;
}
.wsms-course-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: #0f172a;
}
.wsms-course-desc {
    color: #64748b;
    font-size: 0.92rem;
    line-height: 1.55;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}
.wsms-course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
    font-size: 0.85rem;
}

/* Features Grid */
.wsms-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.75rem;
}
.wsms-feature-box {
    background: #ffffff;
    border-radius: 1.25rem;
    padding: 2rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    transition: all 0.2s;
}
.wsms-feature-box:hover {
    border-color: #6366f1;
    box-shadow: 0 12px 30px rgba(99, 102, 241, 0.12);
}
.wsms-feat-icon {
    width: 52px;
    height: 52px;
    border-radius: 1rem;
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.3);
}

/* Stats Counter Band */
.wsms-stats-band {
    background: #0f172a;
    color: #ffffff;
    padding: 4.5rem 0;
    position: relative;
    overflow: hidden;
}
.wsms-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}
.wsms-stat-num {
    font-size: clamp(2.5rem, 4vw, 3.8rem);
    font-weight: 800;
    color: #818cf8;
    line-height: 1;
    margin-bottom: 0.5rem;
    font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
}
.wsms-stat-lbl {
    font-size: 0.95rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}

/* Admission Steps */
.wsms-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}
.wsms-step-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.75rem;
    position: relative;
}
.wsms-step-badge {
    display: inline-block;
    background: #4f46e5;
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    text-align: center;
    line-height: 32px;
    font-weight: 800;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* CTA Portal Banner */
.wsms-portal-banner {
    background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%);
    border-radius: 1.5rem;
    padding: 3.5rem 2.5rem;
    color: #ffffff;
    margin: 4rem auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    box-shadow: 0 25px 50px -12px rgba(30, 27, 75, 0.5);
    border: 1px solid rgba(99, 102, 241, 0.25);
}

/* ---- Sections added by the 2026-09-17 rebuild (real-data homepage) ---- */
.wsms-hero-single { height: 70vh; min-height: 520px; max-height: 720px; }
.wsms-card-title { font-size: 1.1rem; font-weight: 700; margin: 0 0 0.35rem; color: var(--wsms-text, #0f172a); }
.wsms-card-title a { color: inherit; text-decoration: none; }
.wsms-card-title a:hover { text-decoration: underline; }
.wsms-card-meta { font-size: 0.92rem; color: #475569; margin: 0; line-height: 1.55; }
.wsms-sec-more { text-align: center; margin: 2.5rem 0 0; }
.wsms-class-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.wsms-home-classes, .wsms-home-staff, .wsms-home-admissions, .wsms-home-news { padding: 5rem 0; }
.wsms-home-staff { background: #f8fafc; }

.wsms-staff-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}
.wsms-staff-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.75rem 1.25rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}
.wsms-staff-card__initials {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--wsms-primary, #4f46e5);
    color: #ffffff;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
}
.wsms-staff-card__name { font-weight: 700; color: #0f172a; }
.wsms-staff-card__role { font-size: 0.9rem; color: #475569; }

.wsms-steps-grid { list-style: none; padding: 0; margin: 0; }
.wsms-portal-banner__copy { max-width: 600px; }
.wsms-portal-banner__title { font-size: clamp(1.6rem, 2.4vw, 2.2rem); font-weight: 800; margin: 0 0 0.5rem; color: #ffffff; }
.wsms-portal-banner__text { color: #cbd5e1; font-size: 1.05rem; margin: 0; }

@media (max-width: 600px) {
    .wsms-hero-single { min-height: 460px; }
    .wsms-home-classes, .wsms-home-staff, .wsms-home-admissions, .wsms-home-news { padding: 3.5rem 0; }
}

/* Inner page hero and prose (page-academics.php). */
.wsms-page-hero { background: linear-gradient(135deg, #020617 0%, #0f172a 60%, #1e1b4b 100%); color: #ffffff; padding: 4rem 0 3.5rem; }
.wsms-page-hero__title { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; margin: 0; color: #ffffff; }
.wsms-page-hero__lead { color: #cbd5e1; font-size: 1.1rem; max-width: 680px; margin: 1rem 0 0; }
.wsms-prose { max-width: 760px; }
.wsms-public-page .entry-content > :first-child { margin-top: 0; }
.wsms-public-page .entry-content > :last-child { margin-bottom: 0; }
.wsms-contact-card { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1rem; padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--wsms-border, rgba(255,255,255,.14)); border-radius: var(--wsms-radius, 1rem); background: var(--wsms-surface, #0b1220); box-shadow: var(--wsms-shadow, none); }
.wsms-contact-card p { margin: 0; color: var(--wsms-text-muted, rgba(248,250,252,.62)); }
.wsms-contact-card strong { display: inline-block; margin-bottom: .35rem; color: var(--wsms-text, #f8fafc); }
.wsms-contact-card a { color: var(--wsms-primary, #818cf8); }
.wsms-life-hero { min-height: min(68vh, 44rem); position: relative; display: grid; overflow: hidden; background: #0f172a; }
.wsms-life-hero > img { width: 100%; height: 100%; min-height: min(68vh, 44rem); object-fit: cover; object-position: center; grid-area: 1 / 1; }
.wsms-life-hero__overlay { grid-area: 1 / 1; display: flex; align-items: end; padding: clamp(3rem, 8vw, 7rem) 0; color: #fff; background: linear-gradient(90deg, rgba(2,6,23,.82), rgba(2,6,23,.35) 58%, rgba(2,6,23,.08)); }
.wsms-life-hero h1 { max-width: 13ch; margin: .5rem 0; color: #fff; font-size: clamp(2.7rem, 6vw, 5.5rem); line-height: .98; }
.wsms-life-hero p { max-width: 35rem; margin: 0; color: #e2e8f0; font-size: clamp(1.05rem, 2vw, 1.3rem); }
.wsms-life-feature { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(16rem, .85fr); align-items: center; gap: clamp(1.5rem, 5vw, 5rem); }
.wsms-life-feature--reverse { grid-template-columns: minmax(16rem, .85fr) minmax(0, 1.15fr); }
.wsms-life-feature--reverse img { order: 2; }
.wsms-life-feature img { width: 100%; min-height: 19rem; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--wsms-radius-lg, 1.5rem); box-shadow: var(--wsms-shadow); }
.wsms-life-feature h2 { margin: .5rem 0 1rem; font-size: clamp(1.8rem, 3vw, 3rem); color: var(--wsms-text, #f8fafc); }
.wsms-life-feature p { color: var(--wsms-text-muted, rgba(248,250,252,.62)); line-height: 1.7; }
@media (max-width: 700px) { .wsms-life-hero__overlay { background: linear-gradient(0deg, rgba(2,6,23,.9), rgba(2,6,23,.15)); } .wsms-life-feature, .wsms-life-feature--reverse { grid-template-columns: 1fr; } .wsms-life-feature--reverse img { order: 0; } }
.wsms-grade-scale { background: #f8fafc; padding: 5rem 0; }
.wsms-grade-scale .wsms-table-wrap { max-width: 640px; margin: 0 auto; }
.wsms-page-cta { padding-bottom: 4rem; }

/* Same fix as design.css for the old .wsms-home-hero: no .wsms-main padding
   above the full-bleed hero or below the last band. */
.wsms-main:has(> :is(.wsms-home-wrap, .wsms-academics-page):first-child) { padding-block: 0; }
.wsms-home-wrap > .wsms-container:last-child .wsms-portal-banner { margin-bottom: 4rem; }
