/* Public Results Lookup — Examination Section (mockup layout) */

.rl-page {
    --rl-navy: #0a2a66;
    --rl-navy-deep: #071f4d;
    --rl-blue: #1a56db;
    --rl-blue-bright: #2563eb;
    --rl-blue-soft: #e8f0fe;
    --rl-border: #c9d8f0;
    --rl-muted: #64748b;
    --rl-ink: #0f172a;
    --rl-gold: #f5c518;
    --rl-panel: #f3f7fd;
    margin: 0;
    min-height: 100vh;
    font-family: Poppins, system-ui, sans-serif;
    color: var(--rl-ink);
    background: var(--rl-panel);
    display: flex;
    flex-direction: column;
}

.rl-hero {
    position: relative;
    overflow: hidden;
    background: var(--rl-navy-deep);
    color: #fff;
}

.rl-campus {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: url("/Image/alumni-campus-bg.png") right center / cover no-repeat;
}

.rl-wash {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(105deg,
            rgba(7, 31, 77, 0.97) 0%,
            rgba(10, 42, 102, 0.94) 32%,
            rgba(10, 42, 102, 0.72) 52%,
            rgba(10, 42, 102, 0.38) 72%,
            rgba(10, 42, 102, 0.18) 100%);
}

.rl-top,
.rl-main,
.rl-wave {
    position: relative;
    z-index: 2;
}

.rl-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.15rem clamp(1rem, 3vw, 2.5rem) 0.35rem;
}

.rl-brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.rl-crest {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: #fff;
    padding: 3px;
    object-fit: contain;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.rl-college {
    font-weight: 700;
    font-size: 1.08rem;
    letter-spacing: 0.01em;
}

.rl-place {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.88;
    margin-top: 0.1rem;
}

.rl-motto {
    font-size: 0.78rem;
    opacity: 0.82;
    margin-top: 0.1rem;
}

.rl-lead {
    font-family: "Great Vibes", "Cormorant Garamond", Georgia, serif;
    font-size: clamp(1.35rem, 2.4vw, 1.85rem);
    font-weight: 400;
    color: #dbeafe;
    white-space: nowrap;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.rl-main {
    display: grid;
    grid-template-columns: minmax(260px, 1.05fr) minmax(320px, 480px);
    gap: clamp(1rem, 3vw, 2.5rem);
    align-items: start;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0.75rem clamp(1rem, 3vw, 2rem) 2.5rem;
    width: 100%;
}

.rl-aside {
    color: #fff;
    padding: 1rem 0.25rem 0.5rem;
}

.rl-aside-kicker {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0 0 0.55rem;
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 600;
    opacity: 0.95;
}

.rl-kicker-bar {
    width: 28px;
    height: 4px;
    border-radius: 2px;
    background: var(--rl-gold);
    flex-shrink: 0;
}

.rl-aside h1 {
    margin: 0 0 0.85rem;
    font-size: clamp(1.85rem, 3.4vw, 2.55rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.rl-aside h1 span {
    color: var(--rl-gold);
}

.rl-aside-copy {
    margin: 0 0 1.35rem;
    max-width: 28rem;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.94rem;
    line-height: 1.55;
}

.rl-aside-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.85rem;
}

.rl-aside-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.rl-aside-list strong {
    display: block;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.2;
}

.rl-aside-list div span {
    display: block;
    font-size: 0.78rem;
    opacity: 0.78;
    font-weight: 400;
}

.rl-ico {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.28);
    flex-shrink: 0;
}

.rl-aside-script {
    margin: 1.85rem 0 0;
    font-family: "Great Vibes", "Cormorant Garamond", Georgia, serif;
    font-size: clamp(1.45rem, 2.5vw, 1.85rem);
    font-weight: 400;
    opacity: 0.95;
    color: #fff;
}

.rl-card-wrap {
    padding-top: 1.75rem;
}

.rl-card {
    position: relative;
    background: #fff;
    border-radius: 22px;
    padding: 2.15rem 1.45rem 1.15rem;
    box-shadow: 0 28px 64px rgba(4, 20, 50, 0.32);
}

.rl-card-badge {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translate(-50%, -50%);
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(145deg, #2563eb, #0a2a66);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 12px 26px rgba(37, 99, 235, 0.45);
    border: 3px solid #fff;
}

.rl-badge-a {
    position: absolute;
    right: 6px;
    bottom: 8px;
    font-size: 0.55rem;
    font-weight: 800;
    line-height: 1;
    background: var(--rl-gold);
    color: #0a2a66;
    padding: 1px 3px;
    border-radius: 3px;
}

.rl-badge-cap {
    position: absolute;
    right: 7px;
    top: 7px;
    font-size: 0.55rem;
    opacity: 0.95;
}

.rl-card-title {
    margin: 0.4rem 0 0.3rem;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--rl-navy);
}

.rl-card-sub {
    margin: 0 0 1.2rem;
    text-align: center;
    color: var(--rl-muted);
    font-size: 0.9rem;
}

.rl-form {
    display: grid;
    gap: 0.95rem;
}

.rl-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
}

.rl-field label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.4rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #334155;
}

.rl-field label i {
    color: var(--rl-blue);
    width: 1rem;
    text-align: center;
}

.rl-input,
.rl-select {
    width: 100%;
    height: 54px;
    border-radius: 13px;
    border: 1.5px solid var(--rl-border);
    background: #fff;
    padding: 0 0.95rem;
    font-size: 0.95rem;
    color: var(--rl-ink);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
    outline: none;
}

.rl-input::placeholder {
    color: #94a3b8;
}

.rl-input:focus,
.rl-select:focus {
    border-color: var(--rl-blue);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.16);
}

.rl-field-exam {
    margin-top: 0.1rem;
}

.rl-select-wrap {
    position: relative;
}

.rl-select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 2.5rem;
    cursor: pointer;
    font-weight: 500;
}

.rl-select-caret {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    pointer-events: none;
    font-size: 0.8rem;
}

.rl-submit {
    height: 54px;
    border: 0;
    border-radius: 13px;
    background: linear-gradient(135deg, #2563eb, #0a2a66);
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.38);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    width: 100%;
}

.rl-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(37, 99, 235, 0.45);
    color: #fff;
}

.rl-secure {
    margin: 1rem -1.45rem -1.15rem;
    padding: 0.85rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    background: var(--rl-blue-soft);
    border-radius: 0 0 22px 22px;
    color: #334155;
    font-size: 0.78rem;
    text-align: center;
}

.rl-secure i {
    color: var(--rl-blue);
    flex-shrink: 0;
}

.rl-sheet {
    padding: 1.25rem 1.35rem 1.35rem;
}

.rl-results {
    position: relative;
    z-index: 2;
    max-width: 1120px;
    width: 100%;
    margin: 0 auto 1.5rem;
    padding: 0 clamp(1rem, 3vw, 2rem);
}

.rl-sheet-hd {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.rl-table-wrap {
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.res-table {
    width: 100%;
    min-width: 780px;
    margin: 0;
    table-layout: fixed;
    border-collapse: collapse;
}

.res-table--single {
    min-width: 520px;
}

.res-table--single .col-mark {
    width: 110px;
}

.res-table th,
.res-table td {
    vertical-align: middle !important;
    padding: 0.55rem 0.45rem !important;
    font-size: 0.8rem;
}

.res-table thead th {
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
    text-align: center;
    background: #f1f5f9 !important;
    color: #1e293b;
}

.res-table .col-num {
    width: 44px;
    text-align: center;
}

.res-table .col-code {
    width: 128px;
    text-align: left;
    word-break: break-word;
    font-variant-numeric: tabular-nums;
}

.res-table .col-course {
    text-align: left;
    line-height: 1.35;
}

.res-table thead .col-code,
.res-table thead .col-course {
    text-align: left;
}

.res-table .col-mark {
    width: 72px;
    text-align: center;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.rl-wave {
    margin-top: -1px;
    line-height: 0;
}

.rl-wave svg {
    display: block;
    width: 100%;
    height: 72px;
}

.rl-features {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    max-width: 1120px;
    width: 100%;
    margin: 0 auto;
    padding: 0.35rem clamp(1rem, 3vw, 2rem) 1.75rem;
    background: var(--rl-panel);
}

.rl-feat {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    background: #fff;
    border-radius: 16px;
    padding: 0.95rem 1rem;
    box-shadow: 0 8px 22px rgba(15, 40, 90, 0.08);
    border: 1px solid rgba(199, 215, 240, 0.65);
}

.rl-feat strong {
    display: block;
    font-size: 0.86rem;
    color: var(--rl-navy);
}

.rl-feat span:last-child {
    display: block;
    font-size: 0.74rem;
    color: var(--rl-muted);
    line-height: 1.35;
}

.rl-feat-ico {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    font-size: 0.95rem;
}

.rl-feat-ico.is-green { background: #16a34a; }
.rl-feat-ico.is-purple { background: #7c3aed; }
.rl-feat-ico.is-yellow { background: #eab308; color: #1e293b; }
.rl-feat-ico.is-pink { background: #ec4899; }

.rl-footer {
    margin-top: auto;
    padding: 0.75rem clamp(0.85rem, 2.5vw, 1.75rem);
    background: #071a42;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.74rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.rl-footer-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem 0.65rem;
    max-width: 1280px;
    margin: 0 auto;
    text-align: center;
    line-height: 1.4;
}

.rl-footer a {
    color: #fff;
    text-decoration: none;
}

.rl-footer a:hover {
    text-decoration: underline;
}

.rl-footer-loc,
.rl-footer-right,
.rl-footer-credit {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
}

.rl-footer-credit strong {
    font-weight: 600;
    color: #fff;
}

.rl-footer-loc i,
.rl-footer-right i {
    color: #93c5fd;
}

.rl-footer-sep {
    opacity: 0.45;
}

.rl-footer-links {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.45rem;
    align-items: center;
    justify-content: center;
}

.rl-social {
    display: inline-flex;
    gap: 0.35rem;
    align-items: center;
}

.rl-social a {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    transition: background 0.15s ease;
}

.rl-social a:hover {
    background: rgba(255, 255, 255, 0.22);
    text-decoration: none;
}

@media (max-width: 1020px) {
    .rl-features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .rl-main {
        grid-template-columns: 1fr;
        max-width: 560px;
    }

    .rl-aside {
        text-align: center;
        padding: 0.5rem 0 0;
    }

    .rl-aside-kicker {
        justify-content: center;
    }

    .rl-aside-list {
        justify-items: center;
        text-align: left;
    }

    .rl-aside-copy {
        margin-left: auto;
        margin-right: auto;
    }

    .rl-lead { display: none; }
}

@media (max-width: 640px) {
    .rl-row-2 {
        grid-template-columns: 1fr;
    }

    .rl-top {
        padding: 1rem 1rem 0.25rem;
    }

    .rl-crest {
        width: 54px;
        height: 54px;
    }

    .rl-college {
        font-size: 0.95rem;
    }

    .rl-input,
    .rl-select,
    .rl-submit {
        height: 52px;
    }

    .rl-features {
        grid-template-columns: 1fr;
        max-width: 560px;
    }

    .rl-secure {
        margin-left: -1.1rem;
        margin-right: -1.1rem;
        flex-direction: column;
    }

    .rl-card {
        padding-left: 1.1rem;
        padding-right: 1.1rem;
    }

    .rl-footer-loc,
    .rl-footer-right,
    .rl-footer-credit {
        white-space: normal;
    }

    .rl-footer-sep {
        display: none;
    }
}
