:root {
    --navy-dark: #0b2f5c;
    --navy: #123a6b;
    --blue-mid: #1f5da0;
    --blue-light: #4a8fd1;
    --white: #ffffff;
    --ink: #0b2f5c;
    --muted: #5b7797;
    --border: #dce6f0;
}
html {
    height: 100%;
}
* {
    box-sizing: border-box;
}
body {
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    color: var(--ink);
    background: var(--white);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
}

/* ===== TOP STRIP ===== */
.top-strip {
    background: var(--navy-dark);
    color: #fff;
    font-size: 13px;
    padding: 7px 0;
    flex: 0 0 auto;
}
.top-strip .inner {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 24px;
}
.top-strip span {
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0.9;
}

/* ===== HEADER ===== */
.header {
    background: linear-gradient(to bottom, #ffffff 0%, #e5f1ff 100%);
    padding: 5px 0;
    border-bottom: 1px solid var(--border);
    flex: 0 0 auto;
}
.header .inner {
    display: flex;
    align-items: center;
    gap: 20px;
}
.header img.emblem {
    height: 100px;
    width: 100px;
    object-fit: contain;
}
.header .divider {
    width: 1px;
    align-self: stretch;
    background: var(--border);
}
.header .titles h1 {
    font-size: 17px;
    color: var(--navy-dark);
    letter-spacing: 0.2px;
    margin-bottom: 3px;
    font-weight: 700;
    letter-spacing: 0.2px;
}
.header .titles p {
    font-size: 12px;
    color: var(--navy);
    line-height: 1.5;
    margin: 0;
    font-weight: 600;
    letter-spacing: 0.35px;
}
.header .right-emblem {
    margin-left: auto;
}
.header .right-emblem img {
    height: 100px;
}

.hero {
    position: relative;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    overflow: visible;
    padding: 28px 0;
}
.hero .bg-wrap {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}
.hero .bg-image {
    position: absolute;
    inset: 0%;
    width: 100%;
    height: 100%;
    object-fit: fill;
    will-change: transform;
}

.hero::before {
    /* blue gradient overlay */
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}
.hero::after {
    /* network dot pattern */
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image: radial-gradient(
        rgba(255, 255, 255, 0.16) 1px,
        transparent 1px
    );
    background-size: 32px 32px;
    opacity: 0.45;
}
.hero .container {
    position: relative;
    z-index: 2;
}

/* ---- Left text ---- */
.hero-text {
    color: #fff;
}
.hero-text h2 {
    font-size: 44px;
    line-height: 1.14;
    font-weight: 700;
    letter-spacing: 2px;
}
.hero-text h2 .accent {
    color: #7fc3ff;
    display: block;
}
.hero-text h3 {
    margin-top: 18px;
    font-size: 20px;
    font-weight: 500;
    color: #eaf3fb;
    letter-spacing: 0.8px;
}
.hero-text .rule {
    width: 56px;
    height: 3px;
    background: #4a8fd1;
    margin: 16px 0;
}
.hero-text p.desc {
    font-size: 14.5px;
    line-height: 1.7;
    color: #cfe0f2;
    max-width: 320px;
    letter-spacing: 0.6px;
}
.feature-row {
    display: flex;
    gap: 28px;
    margin-top: 34px;
    flex-wrap: wrap;
}
.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 9px;
    padding-right: 28px;
    border-right: 1px solid rgba(255, 255, 255, 0.25);
}
.feature:last-child {
    border-right: none;
    padding-right: 0;
}
.feature .circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(145deg, #2a8fc7, #1c6fa8);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.feature .circle i {
    font-size: 20px;
    color: #fff;
    line-height: 1;
}
.feature span {
    font-size: 13px;
    color: #eaf3fb;
    font-weight: 400;
    letter-spacing: 0.4px;
}

/* ---- Form card ---- */
.form-card {
    background: #fff;
    border-radius: 14px;
    padding: 34px 40px 22px;
    box-shadow: 0 0 10px rgba(0, 37, 94, 0.459);
    width: 100%;
}
.form-card .avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}
.form-card .avatar i {
    font-size: 26px;
    color: #fff;
    line-height: 1;
}
.form-card h3 {
    text-align: center;
    font-size: 22px;
    color: var(--navy-dark);
    font-weight: 700;
    letter-spacing: 0.5px;
}
.form-card .sub {
    text-align: center;
    font-size: 13px;
    color: var(--blue-mid);
    margin-top: 3px;
}
.form-card .title-rule {
    width: 46px;
    height: 3px;
    background: var(--blue-light);
    margin: 10px auto 15px;
    border-radius: 2px;
}

.row-fields {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.row-fields .field {
    flex: 1 1 220px;
}

.field {
    margin-bottom: 16px;
}
.field label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--blue-mid);
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}
.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fbfdff;
    padding: 0 12px;
}
.input-wrap:focus-within {
    border-color: var(--blue-mid);
    box-shadow: 0 0 0 3px rgba(31, 93, 160, 0.12);
}
.input-wrap i {
    font-size: 16px;
    color: var(--navy-dark);
    flex-shrink: 0;
    line-height: 1;
}
.input-wrap input {
    border: none;
    outline: none;
    background: transparent;
    width: 100%;
    padding: 11px 10px;
    font-size: 14px;
    color: var(--ink);
}
.input-wrap input::placeholder {
    color: #9ab0c6;
}
.eye-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.eye-btn i {
    font-size: 16px;
    color: var(--navy-dark);
}
.forgot {
    text-align: right;
    font-size: 12.5px;
    color: var(--blue-mid);
    text-decoration: none;
    display: block;
    margin-top: -8px;
    margin-bottom: 16px;
    font-weight: 600;
}

.captcha-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}
.captcha-box {
    flex: 1;
    background: repeating-linear-gradient(
        45deg,
        #f5f8fb,
        #f5f8fb 6px,
        #eef3f8 6px,
        #eef3f8 12px
    );
    border: 1px dashed #b9cbdc;
    border-radius: 8px;
    text-align: center;
    padding: 11px 0;
    font-family: Georgia, serif;
    font-weight: 700;
    letter-spacing: 6px;
    font-size: 18px;
    color: var(--navy-dark);
    user-select: none;
}
.refresh {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--blue-mid);
    background: none;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    font-weight: 600;
}
.refresh i {
    font-size: 14px;
    color: var(--blue-mid);
}

.signin-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--navy), var(--navy-dark));
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 13px 0;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 4px;
    transition: filter 0.15s ease;
    letter-spacing: 0.4px;
}
.signin-btn:hover {
    filter: brightness(1.08);
}
.signin-btn i {
    font-size: 15px;
    color: #fff;
}

.form-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    font-size: 11px;
    color: var(--muted);
    flex-wrap: wrap;
    gap: 8px;
}
.form-footer span {
    display: flex;
    align-items: center;
    gap: 5px;
}
.form-footer i {
    font-size: 13px;
    color: var(--navy-dark);
}

/* ===== BOTTOM STRIP ===== */
.bottom-strip {
    background: var(--navy-dark);
    color: #dce8f5;
    text-align: center;
    font-size: 12.5px;
    padding: 12px 20px;
    flex: 0 0 auto;
}
.bottom-strip a {
    color: #9cc7f0;
    text-decoration: none;
}
.bottom-strip a:hover {
    text-decoration: underline;
}

.hero-stack {
    width: 100%;
}

.pdf-carousel-wrap {
    width: 100%;
    margin-bottom: 30px;
}

.pdf-carousel-panel {
    background: rgba(255, 255, 255, 0.052);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(1px);
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 16px;
    padding: 12px 14px 12px;
    box-shadow: 0 10px 30px rgba(0, 15, 40, 0.25);
}

.pdf-carousel-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.pdf-carousel-head i {
    font-size: 20px;
    color: #fff;
}
.pdf-carousel-head h4 {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.4px;
    margin: 0;
}
.pdf-carousel-head .tag {
    margin-left: auto;
    background: var(--navy-dark);
    border: 1px solid var(--navy-dark);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    padding: 4px 10px;
    border-radius: 999px;
}

/* ---- PDF card ---- */
.pdf-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    height: 100%;
    box-shadow: 0 6px 16px rgba(0, 20, 50, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}
.pdf-card a {
    text-decoration: none;
}
.pdf-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 20, 50, 0.28);
}
.pdf-card .pdf-icon-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}
.pdf-card .pdf-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #fdeceb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.pdf-card .pdf-icon i {
    font-size: 18px;
    color: #d92d20;
}
.pdf-card .pdf-meta {
    font-size: 10.5px;
    color: var(--muted);
    line-height: 1.3;
}
.pdf-card .pdf-title {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--navy-dark);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* ---- Owl Carousel theming (govt / professional look) ---- */
.pdf-owl .owl-stage-outer {
    padding: 4px 2px 5px;
}
.pdf-owl .owl-nav {
    position: absolute;
    top: -60px;
    right: 70px;
    display: flex;
    gap: 8px;
}
.pdf-owl .owl-nav button.owl-prev,
.pdf-owl .owl-nav button.owl-next {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18) !important;
    border: 1px solid var(--navy-dark) !important;
    color: var(--navy-dark) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px !important;
    transition:
        background 0.15s ease,
        transform 0.15s ease;
}
.pdf-owl .owl-nav button.owl-prev:hover,
.pdf-owl .owl-nav button.owl-next:hover {
    background: var(--navy-dark) !important;
    color: #fff !important;
}
.pdf-owl .owl-nav button span {
    display: none;
}
.pdf-owl .owl-nav button.owl-prev::before,
.pdf-owl .owl-nav button.owl-next::before {
    font-family: "bootstrap-icons" !important;
    font-size: 15px;
}
.pdf-owl .owl-nav button.owl-prev::before {
    content: "\f284"; /* chevron-left */
}
.pdf-owl .owl-nav button.owl-next::before {
    content: "\f285"; /* chevron-right */
}

/* Relative wrapper so nav buttons can be absolutely positioned */
.pdf-owl-wrap {
    position: relative;
}

@media (min-width: 992px) and (max-height: 820px) {
    .hero {
        padding: 20px 0;
    }
    .hero-text h2 {
        font-size: 34px;
    }
    .hero-text h3 {
        font-size: 16px;
        margin-top: 12px;
    }
    .hero-text .rule {
        margin: 10px 0;
    }
    .hero-text p.desc {
        font-size: 13.5px;
    }
    .feature-row {
        margin-top: 22px;
        gap: 20px;
    }
    .feature .circle {
        width: 40px;
        height: 40px;
    }
    .feature .circle i {
        font-size: 16px;
    }
    .form-card {
        padding: 22px 30px 16px;
    }
    .form-card .avatar {
        width: 48px;
        height: 48px;
        margin-bottom: 8px;
    }
    .form-card h3 {
        font-size: 19px;
    }
    .field {
        margin-bottom: 11px;
    }
    .input-wrap input {
        padding: 8px 10px;
    }
    .signin-btn {
        padding: 11px 0;
    }
    .form-footer {
        margin-top: 10px;
        padding-top: 10px;
    }

    .pdf-carousel-panel {
        padding: 12px 16px 16px;
    }
    .pdf-carousel-wrap {
        margin-bottom: 16px;
    }
}

@media (max-width: 991.98px) {
    .hero {
        padding: 40px 0;
    }
    .hero .bg-image {
        object-fit: cover;
    }
    .hero-text h2 .accent {
        color: #fff;
    }
    .hero-text {
        text-align: center;
        margin-bottom: 32px;
    }
    .hero-text p.desc {
        max-width: 90%;
        text-align: center;
    }
    .hero-text .rule {
        margin-left: auto;
        margin-right: auto;
    }
    .feature-row {
        justify-content: center;
    }
    .form-card {
        max-width: 480px;
        margin: 0 auto;
    }
    .pdf-carousel-panel {
        padding: 10px 12px 12px;
    }
}
@media (max-width: 575.98px) {
    .hero-text h2 {
        font-size: 32px;
    }
    .form-card {
        padding: 26px 22px 18px;
    }
    .header .titles h1 {
        font-size: 12px;
        letter-spacing: normal;
    }
    .header .titles p {
        font-size: 10px;
        letter-spacing: normal;
    }
    .header .inner {
        gap: 10px;
    }
    .header img.emblem {
        height: 80px;
        width: 80px;
    }
    .header .right-emblem img {
        height: 80px;
    }
    .pdf-carousel-head h4 {
        font-size: 13.5px;
    }
}

@media (max-width: 450px) {
    .header img.emblem {
        height: 60px;
        width: 60px;
    }
    .header .right-emblem img {
        height: 60px;
    }
    .header .titles h1 {
        font-size: 11px;
    }
    .header .titles p {
        font-size: 9px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bg-image,
    .sunlight {
        animation: none !important;
    }
}
