/* ===== Theme tokens (keep consistent with other pages) ===== */
:root {
    --brand-blue: #eb161d;
    /* primary red */
    --deep-blue: #8b0c11;
    /* darker red for headings/gradients */
    --text-blue: #5e0b0f;
    --soft-blue: #ffecec;
    /* light red for panels */
    --ring: #e6ecf3;
    --muted: #6b7c95;
}

html,
body {
    background: #fff;
    color: #0f2238;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    padding-top: 35px;
}

/* ====== Header (Fixed) ====== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    border-bottom: 1px solid #eee;
    background: #fff;
}

.navbar {
    padding: .6rem 0;
}

.navbar-brand img {
    height: 38px;
    width: auto;
}

/* Navbar links */
.navbar-nav .nav-link {
    font-weight: 600;
    color: #111;
    padding: 0 .75rem;
    position: relative;
    transition: color .25s ease;
}

/* Active link + underline */
.navbar-nav .nav-link.active {
    color: var(--brand-blue) !important;
}

.navbar-nav .nav-link.active::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--brand-blue);
    border-radius: 2px;
}

/* Hover */
.navbar-nav .nav-link:hover {
    color: var(--brand-blue);
}

/* Toggler icon (ensure visible) */
.navbar-light .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0,0,0,.55)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Download Admit Card button */
.btn-login {
    background: var(--brand-blue);
    color: #fff;
    border-radius: .6rem;
    padding: .45rem 1.1rem;
    font-weight: 600;
    transition: background .25s ease, filter .25s ease;
}

.btn-login:hover {
    color: #fff;
    filter: brightness(.95);
}

.btn-login.active {
    background: var(--deep-blue);
    color: #fff !important;
}

/* Hide desktop button on mobile (we show a mobile version inside the collapsed menu) */
@media (max-width:768px) {
    .btn-login.d-lg-inline-block {
        display: none !important;
    }
}

/* Mobile menu spacing (stacked) */
@media (max-width:991.98px) {
    .navbar-nav .nav-link {
        padding: .6rem 0;
        display: block;
    }

    .navbar-nav .nav-link.active::after {
        display: none;
    }

    /* optional: no underline in stacked list */
}

/* ===== Hero ===== */
.subhero {
    background: linear-gradient(180deg, #eb161d 0%, #a60f15 100%);
    color: #fff;
    padding: 28px 12px;
}

.subhero .container {
    max-width: 1180px;
}

.hero-flex {
    display: flex;
    align-items: center;
    gap: 18px;
}

.subhero h1 {
    margin: 0;
    font-weight: 800;
    font-size: clamp(26px, 3.6vw, 42px);
    letter-spacing: .2px;
}

.badge-logo {
    width: clamp(56px, 7vw, 90px);
    height: auto;
    border-radius: 10px;
}

/* ===== Content shell ===== */
.syllabus {
    padding: 26px 16px 60px;
}

.sy-wrap {
    max-width: 1120px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    color: var(--brand-blue);
    font-weight: 900;
    font-size: clamp(22px, 2.6vw, 28px);
    letter-spacing: .3px;
    margin: 10px 0 14px;
}

/* ===== Pattern cards ===== */
.pattern-card {
    border: 1px solid var(--ring);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    margin: 14px 0 20px;
}

.pc-head {
    background: #fff5f5;
    border-bottom: 1px solid var(--ring);
    padding: 10px 14px;
    font-weight: 800;
    color: var(--brand-blue);
    font-size: 15.5px;
}

.table-wrap {
    overflow-x: auto;
}

.pattern-table {
    width: 100%;
    min-width: 720px;
    border-collapse: separate;
    border-spacing: 0;
}

.pattern-table th,
.pattern-table td {
    text-align: center;
    border: 1px solid #e4eaf2;
    padding: 10px 8px;
    background: #fff;
    font-size: 14.5px;
}

.pattern-table thead th {
    background: #ffe0e0;
    color: var(--deep-blue);
    font-weight: 800;
}

.note {
    font-size: 12.5px;
    color: #5e6f89;
    margin-top: 6px;
}

/* ===== Accordions ===== */
.sy-acc {
    border: 1px solid var(--ring);
    border-radius: 10px;
    background: #fff;
    margin: 12px 0;
    overflow: hidden;
}

.sy-acc summary {
    list-style: none;
    cursor: pointer;
    padding: 14px 16px;
    position: relative;
    user-select: none;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(180deg, #eb161d 0%, #a60f15 100%);
    border-bottom: 1px solid var(--ring);
}

.sy-acc summary::-webkit-details-marker {
    display: none;
}

.sy-acc summary:after {
    content: "▾";
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    color: #fff;
    font-weight: 900;
}

.sy-acc[open] summary:after {
    transform: translateY(-50%) rotate(0);
}

.sy-acc .body {
    padding: 14px 16px;
    color: #123a74;
    line-height: 1.6;
}

.sy-acc h4 {
    margin: 0 0 6px;
    font-size: 16px;
    color: var(--brand-blue);
    font-weight: 800;
}

.sy-acc ul {
    margin: 0 0 8px 18px;
}

.badge-tag {
    display: inline-block;
    background: #ffecec;
    border: 1px solid #f7c2c2;
    color: var(--brand-blue);
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 700;
    margin: 4px 6px 0 0;
}

@media (max-width:768px) {
    .sy-acc .grid-2 {
        grid-template-columns: 1fr;
    }
}

/* ===== Timeline ===== */
.sy-panel {
    border: 1px solid var(--ring);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .06);
    background: #fff;
    margin: 14px 12px;
}

.sy-flow {
    padding: 18px 20px 6px;
}

.sy-timeline {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sy-item {
    position: relative;
    display: grid;
    grid-template-columns: 84px 1fr;
    gap: 18px;
    padding: 18px 0;
}

.sy-item:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 42px;
    top: 82px;
    bottom: -6px;
    width: 2px;
    background: #e5eaf2;
}

.sy-icon {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e5eaf2;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .07);
    display: grid;
    place-items: center;
}

.sy-content {
    color: #102a56;
    line-height: 1.6;
}

.sy-content strong {
    color: var(--brand-blue);
}

.sy-meta {
    background: #ffecec;
    color: #273042;
    text-align: center;
    padding: 12px 14px;
    font-weight: 800;
    border-top: 1px solid #f4b9b9;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

/* responsive timeline */
@media (max-width:680px) {
    .sy-item {
        grid-template-columns: 64px 1fr;
        gap: 12px;
    }

    .sy-icon {
        width: 64px;
        height: 64px;
    }

    .sy-item:not(:last-child)::after {
        left: 32px;
        top: 64px;
    }
}

/* ===== Footer ===== */
.site-footer {
    background: linear-gradient(180deg, #a60f15 0%, #8b0c11 55%, #70090d 100%);
    color: #fff;
    padding: 18px 12px;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

.footer-wrap {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.site-footer p {
    margin: 4px 0;
    font-weight: 600;
    font-size: clamp(12px, 1.25vw, 18px);
}