:root {
    --brand-blue: #eb161d;
    /* primary red */
    --deep-blue: #8b0c11;
    /* darker red */
    --text-blue: #5e0b0f;
    /* dark red text */
    --soft-blue: #ffecec;
    /* light red background */
    --ring: #e6ecf3;
    --muted: #6b7c95;
}

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

/* ====== 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;
    position: relative;
}

.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 */
.papers {
    padding: 26px 16px 60px;
}

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

.section-title {
    color: var(--brand-blue);
    font-weight: 900;
    font-size: clamp(20px, 2.4vw, 26px);
    letter-spacing: .3px;
    margin: 8px 0 10px;
}

.note {
    color: #5f7392;
    font-size: 13.5px;
    margin-bottom: 18px;
}

/* List items */
.doc-item {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 14px;
    padding: 16px 6px;
    border-bottom: 1px dashed var(--ring);
}

.doc-icon {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: var(--soft-blue);
    border: 1px solid var(--ring);
}

.doc-icon svg {
    width: 40px;
    height: 40px;
}

.doc-title {
    font-weight: 800;
    color: var(--brand-blue);
    margin-bottom: 2px;
}

.doc-sub {
    color: #51627c;
    font-size: 13.5px;
}

.linkline a {
    display: inline-block;
    margin-right: 14px;
    margin-top: 6px;
    color: var(--brand-blue);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
}

.linkline a:hover {
    text-decoration: underline;
}

@media (max-width:620px) {
    .doc-item {
        grid-template-columns: 56px 1fr;
    }

    .doc-icon {
        width: 56px;
        height: 56px;
        border-radius: 12px;
    }
}

/* Footer */
.site-footer {
    width: 100%;
    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;
    letter-spacing: .2px;
    font-size: clamp(12px, 1.25vw, 18px);
}