/* ============================================================
   RJMC — Syllabus Page Styles  v3.0
   Matches: style.css · Red · Teal · Deep palette
   Fonts: Playfair Display (display) · DM Sans (body)
   ============================================================ */

:root {
    --red: #DB1A1A;
    --red-dark: #b31212;
    --red-deeper: #8c0d0d;
    --red-pale: #fde8e8;
    --red-ghost: #fff0f0;
    --teal: #8CC7C4;
    --teal-dark: #6aadaa;
    --teal-light: #b0dbd9;
    --teal-pale: #e6f5f4;
    --deep: #2C687B;
    --deep-dark: #1f4e5f;
    --deep-deeper: #163745;
    --deep-light: #3d849a;
    --deep-pale: #dbedf2;
    --off-white: #FFF6F6;
    --white: #ffffff;
    --text-dark: #1a1a2e;
    --text-body: #3d4a52;
    --text-muted: #7a8c94;
    --gray-50: #f9fafa;
    --gray-100: #f0f3f4;
    --gray-200: #dde4e7;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-pill: 50px;
    --shadow-xs: 0 1px 4px rgba(44,104,123,.07);
    --shadow-sm: 0 4px 16px rgba(44,104,123,.10);
    --shadow-md: 0 12px 40px rgba(44,104,123,.15);
    --shadow-lg: 0 24px 72px rgba(44,104,123,.20);
    --shadow-red: 0 8px 32px rgba(219,26,26,.25);
    --ease: cubic-bezier(.4,0,.2,1);
    --ease-spring: cubic-bezier(.34,1.56,.64,1);
}

.sec-pad {
    padding: 96px 0;
}

/* ══════════════════════════════════════════════════════════
   § 1 — MINI HERO  (mirrors ourmission.aspx)
══════════════════════════════════════════════════════════ */
.sy-mini-hero {
    position: relative;
    background-image: linear-gradient(145deg, rgba(22,55,69,.95) 0%, rgba(44,104,123,.88) 55%, rgba(140,199,196,.30) 100%), url('../images/rjmc-mini-banner.png');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    min-height: 310px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.sy-hero-geo {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.sy-hero-geo--1 {
    top: -70px;
    right: -70px;
    width: 340px;
    height: 340px;
    border: 1.5px solid rgba(140,199,196,.12);
    animation: syGeoSpin 24s linear infinite;
}

.sy-hero-geo--2 {
    bottom: -90px;
    left: 8%;
    width: 240px;
    height: 240px;
    border: 1px solid rgba(219,26,26,.08);
    animation: syGeoSpin 36s linear infinite reverse;
}

.sy-hero-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(140,199,196,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(140,199,196,.04) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}

@keyframes syGeoSpin {
    to {
        transform: rotate(360deg);
    }
}

.sy-hero-inner {
    position: relative;
    z-index: 2;
    padding: 68px 0 60px;
}

.sy-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

    .sy-breadcrumb a {
        font-size: 11.5px;
        font-weight: 600;
        letter-spacing: 1.2px;
        text-transform: uppercase;
        color: rgba(140,199,196,.65) !important;
        transition: color .25s;
    }

        .sy-breadcrumb a:hover {
            color: var(--teal) !important;
        }

    .sy-breadcrumb .bc-sep {
        font-size: 11px;
        color: rgba(255,255,255,.22);
    }

    .sy-breadcrumb .bc-current {
        font-size: 11.5px;
        font-weight: 600;
        letter-spacing: 1.2px;
        text-transform: uppercase;
        color: rgba(255,255,255,.40);
    }

.sy-hero-title-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 22px;
}

.sy-hero-accent {
    display: inline-block;
    width: 5px;
    height: 56px;
    background: linear-gradient(180deg, var(--red) 0%, var(--red-dark) 100%);
    border-radius: 4px;
    flex-shrink: 0;
    box-shadow: 0 0 20px rgba(219,26,26,.35);
}

.sy-hero-h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.15;
    letter-spacing: -.3px;
    margin: 0 0 6px;
}

    .sy-hero-h1 em {
        font-style: italic;
        color: var(--teal);
    }

.sy-hero-tagline {
    font-family: 'DM Sans', sans-serif;
    font-size: 13.5px;
    font-weight: 400;
    letter-spacing: .5px;
    color: rgba(255,255,255,.50);
    margin: 0;
}

.sy-hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sy-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .5px;
    color: rgba(255,255,255,.70);
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.12);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    backdrop-filter: blur(6px);
    transition: all .25s var(--ease);
}

    .sy-pill i {
        color: var(--teal);
        font-size: 12px;
    }

    .sy-pill:hover {
        background: rgba(140,199,196,.15);
        border-color: rgba(140,199,196,.30);
        color: #fff;
    }

/* ══════════════════════════════════════════════════════════
   § 2 — SHARED HEADING HELPERS
══════════════════════════════════════════════════════════ */
.sy-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--red);
    background: var(--red-ghost);
    border: 1px solid rgba(219,26,26,.20);
    padding: 6px 16px 6px 12px;
    border-radius: var(--radius-pill);
    margin-bottom: 14px;
}

.sy-chip-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--red);
    flex-shrink: 0;
}

.sy-sec-heading {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.22;
    margin-bottom: 12px;
}

    .sy-sec-heading em {
        font-style: italic;
        color: var(--red);
    }

.sy-divider {
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, var(--deep), var(--teal));
    border-radius: 3px;
    margin-bottom: 0;
}

/* ══════════════════════════════════════════════════════════
   § 3 — SYLLABUS SECTION
══════════════════════════════════════════════════════════ */
.sy-section {
    background: var(--off-white);
}

.sy-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 28px;
}

.sy-count-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--deep);
    background: var(--deep-pale);
    border: 1px solid rgba(44,104,123,.20);
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    white-space: nowrap;
}

    .sy-count-badge span {
        font-family: 'Playfair Display', serif;
        font-size: 1.15rem;
        font-weight: 700;
        color: var(--red);
        line-height: 1;
    }

/* Toolbar */
.sy-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 14px 20px;
    box-shadow: var(--shadow-xs);
    margin-bottom: 28px;
}

.sy-search-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 220px;
}

    .sy-search-wrap i {
        color: var(--text-muted);
        font-size: 15px;
        flex-shrink: 0;
    }

    .sy-search-wrap input {
        border: none;
        outline: none;
        font-family: 'DM Sans', sans-serif;
        font-size: 14px;
        color: var(--text-dark);
        background: transparent;
        width: 100%;
    }

        .sy-search-wrap input::placeholder {
            color: var(--text-muted);
        }

.sy-toolbar-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--red);
    background: var(--red-ghost);
    border: 1px solid rgba(219,26,26,.18);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    white-space: nowrap;
}

    .sy-toolbar-tag i {
        color: var(--red);
    }

/* Info note */
.sy-note {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-left: 4px solid var(--red);
    border-radius: var(--radius-md);
    padding: 18px 22px;
    margin-bottom: 48px;
    box-shadow: var(--shadow-xs);
}

.sy-note-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    background: var(--red-ghost);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--red);
    font-size: 16px;
}

.sy-note p {
    font-size: 13.5px;
    color: var(--text-body);
    line-height: 1.65;
}

    .sy-note p strong {
        color: var(--deep);
    }

/* ── No results state ── */
.sy-no-results {
    display: none;
    text-align: center;
    padding: 60px 20px;
    background: var(--white);
    border: 1px dashed var(--gray-200);
    border-radius: var(--radius-md);
    margin-top: 20px;
}

    .sy-no-results.show {
        display: block;
    }

    .sy-no-results i {
        font-size: 42px;
        color: var(--teal);
        margin-bottom: 12px;
    }

    .sy-no-results h4 {
        font-family: 'Playfair Display', serif;
        font-size: 1.3rem;
        color: var(--text-dark);
        margin-bottom: 6px;
    }

    .sy-no-results p {
        font-size: 13.5px;
        color: var(--text-muted);
    }

/* ══════════════════════════════════════════════════════════
   § 4 — STREAM GROUPS
══════════════════════════════════════════════════════════ */
.stream-group {
    margin-bottom: 56px;
}

    .stream-group:last-of-type {
        margin-bottom: 0;
    }

    .stream-group.hidden {
        display: none;
    }

.stream-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--gray-200);
    position: relative;
}

    .stream-header::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 0;
        width: 70px;
        height: 2px;
        background: linear-gradient(90deg, var(--red), var(--teal));
        border-radius: 2px;
    }

.stream-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
    color: #fff;
}

    .stream-icon.sci {
        background: linear-gradient(135deg, var(--deep), var(--deep-light));
    }

    .stream-icon.soc {
        background: linear-gradient(135deg, var(--red), var(--red-dark));
    }

    .stream-icon.arts {
        background: linear-gradient(135deg, var(--deep-light), var(--teal));
    }

    .stream-icon.lang {
        background: linear-gradient(135deg, var(--red-dark), var(--red-deeper));
    }

    .stream-icon.res {
        background: linear-gradient(135deg, var(--deep-deeper), var(--deep));
    }

.stream-meta {
    flex: 1;
}

.stream-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
}

    .stream-title em {
        font-style: italic;
        color: var(--red);
        font-size: 0.9em;
    }

.stream-sub {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.stream-count {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--deep);
    background: var(--deep-pale);
    border: 1px solid rgba(44,104,123,.18);
    padding: 5px 13px;
    border-radius: var(--radius-pill);
    white-space: nowrap;
}

/* ══════════════════════════════════════════════════════════
   § 5 — SUBJECT CARDS
══════════════════════════════════════════════════════════ */
.subjects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 22px;
}

.subject-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-xs);
    transition: all .35s var(--ease);
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
    position: relative;
}

    .subject-card.hidden {
        display: none;
    }

    .subject-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, var(--red), var(--teal));
        transform: scaleX(0);
        transform-origin: left;
        transition: transform .35s var(--ease);
        z-index: 3;
    }

    .subject-card:hover {
        transform: translateY(-6px);
        box-shadow: var(--shadow-md);
        border-color: var(--teal);
    }

        .subject-card:hover::before {
            transform: scaleX(1);
        }

/* Subject image header */
.subject-img-wrap {
    position: relative;
    height: 140px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--deep), var(--deep-light));
}

    .subject-img-wrap img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .55s var(--ease);
    }

.subject-card:hover .subject-img-wrap img {
    transform: scale(1.08);
}

.subject-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(22,55,69,.78) 0%, rgba(22,55,69,.20) 60%, transparent 100%);
}

.subject-tag-float {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #fff;
    background: rgba(219,26,26,.92);
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    backdrop-filter: blur(4px);
}

.subject-card-body {
    padding: 20px 20px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.subject-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--teal-pale);
    border: 1px solid rgba(140,199,196,.40);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--deep);
    transition: transform .35s var(--ease-spring), background .3s, color .3s;
    flex-shrink: 0;
    margin-top: -42px;
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow-sm);
}

.subject-card:hover .subject-icon {
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    color: #fff;
    border-color: var(--red);
    transform: scale(1.1) rotate(-6deg);
}

.subject-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.35;
}

.subject-tag {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* Card footer */
.subject-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--gray-200);
    padding: 12px 20px;
    background: var(--gray-50);
    transition: background .3s;
}

.subject-card:hover .subject-card-footer {
    background: var(--red-ghost);
}

.subject-dl-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

    .subject-dl-label i {
        font-size: 13px;
        color: var(--red);
    }

.subject-dl-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: var(--deep) !important;
    transition: color .25s, gap .25s;
}

    .subject-dl-btn i {
        font-size: 13px;
        transition: transform .25s var(--ease);
    }

.subject-card:hover .subject-dl-btn {
    color: var(--red) !important;
}

    .subject-card:hover .subject-dl-btn i {
        transform: translateY(2px);
    }

/* ══════════════════════════════════════════════════════════
   § 6 — BOTTOM SIDE PANEL
══════════════════════════════════════════════════════════ */
.sy-side-panel {
    background: linear-gradient(155deg, var(--deep-deeper) 0%, var(--deep) 100%);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    color: var(--white);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-top: 64px;
}

    .sy-side-panel::before {
        content: '';
        position: absolute;
        top: -60px;
        right: -60px;
        width: 240px;
        height: 240px;
        border-radius: 50%;
        border: 1.5px solid rgba(140,199,196,.12);
    }

    .sy-side-panel::after {
        content: '';
        position: absolute;
        bottom: -40px;
        left: -40px;
        width: 160px;
        height: 160px;
        border-radius: 50%;
        border: 1px solid rgba(219,26,26,.10);
    }

.ssp-label {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--teal-light);
    margin-bottom: 12px;
    display: block;
}

.ssp-heading {
    font-family: 'Playfair Display', serif;
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.25;
    margin-bottom: 18px;
}

    .ssp-heading em {
        font-style: italic;
        color: var(--teal);
    }

.ssp-divider {
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--red), var(--teal));
    margin-bottom: 22px;
    border-radius: 2px;
}

.ssp-list {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
}

    .ssp-list li {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        padding: 11px 0;
        border-bottom: 1px solid rgba(255,255,255,.07);
        font-size: 13.5px;
        color: rgba(255,255,255,.72);
        line-height: 1.55;
    }

        .ssp-list li:last-child {
            border-bottom: none;
        }

.ssp-icon {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    background: rgba(140,199,196,.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--teal-light);
    font-size: 12px;
    margin-top: 2px;
}

.btn-ssp {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
    color: #fff !important;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    padding: 12px 26px;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-red);
    transition: all .3s var(--ease);
    position: relative;
    z-index: 1;
    margin-right: 10px;
    margin-bottom: 10px;
}

    .btn-ssp:hover {
        transform: translateY(-2px);
        box-shadow: 0 14px 40px rgba(219,26,26,.45);
    }

.btn-ssp--outline {
    background: transparent;
    border: 1.5px solid rgba(140,199,196,.40);
    color: var(--teal-light) !important;
    box-shadow: none;
}

    .btn-ssp--outline:hover {
        background: rgba(140,199,196,.10);
        border-color: var(--teal);
        color: #fff !important;
        box-shadow: none;
    }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════ */
@media (max-width: 1199px) {
    .subjects-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

@media (max-width: 991px) {
    .sy-mini-hero {
        background-attachment: scroll;
        min-height: 260px;
    }

    .sy-hero-h1 {
        font-size: 2.2rem;
    }

    .sy-sec-heading {
        font-size: 2rem;
    }

    .subjects-grid {
        grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    }

    .sy-side-panel {
        padding: 38px 28px;
    }
}

@media (max-width: 767px) {
    .sec-pad {
        padding: 68px 0;
    }

    .sy-hero-inner {
        padding: 54px 0 46px;
    }

    .sy-sec-heading {
        font-size: 1.8rem;
    }

    .subjects-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .sy-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .stream-header {
        flex-wrap: wrap;
    }

    .stream-count {
        margin-left: 66px;
    }

    .subject-img-wrap {
        height: 110px;
    }

    .subject-name {
        font-size: 0.98rem;
    }
}

@media (max-width: 480px) {
    .sy-hero-h1 {
        font-size: 1.85rem;
    }

    .sy-hero-accent {
        height: 42px;
    }

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

    .sy-hero-pills {
        gap: 6px;
    }

    .sy-pill {
        font-size: 10.5px;
        padding: 5px 11px;
    }

    .ssp-heading {
        font-size: 1.5rem;
    }

    .btn-ssp {
        width: 100%;
        justify-content: center;
        margin-right: 0;
    }
}
