:root {
    --polycc-navy: #0b2447;
    --polycc-blue: #174ea6;
    --polycc-teal: #0f766e;
    --polycc-cyan: #0891b2;
    --polycc-ink: #172033;
    --polycc-muted: #64748b;
    --polycc-line: #dce5ef;
    --polycc-surface: #ffffff;
    --polycc-bg: #f3f7fb;
    --polycc-radius: 20px;
    --polycc-shadow: 0 20px 55px rgba(11, 36, 71, .11);
}

* { box-sizing: border-box; }

body {
    color: var(--polycc-ink);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    background:
        radial-gradient(circle at 8% 12%, rgba(8, 145, 178, .10), transparent 24rem),
        radial-gradient(circle at 92% 78%, rgba(23, 78, 166, .08), transparent 28rem),
        var(--polycc-bg) !important;
}

body > header {
    background: rgba(255, 255, 255, .94) !important;
    border-bottom: 1px solid rgba(220, 229, 239, .9);
    box-shadow: 0 6px 25px rgba(11, 36, 71, .06) !important;
    backdrop-filter: blur(12px);
}

.header-logo { max-height: 60px !important; width: auto; }
body > header h6 { color: var(--polycc-navy); letter-spacing: .06em; }
body > header p { color: var(--polycc-muted) !important; letter-spacing: .025em; }

.main-frame,
.info-card,
.portal-card {
    border: 1px solid rgba(220, 229, 239, .85) !important;
    border-radius: var(--polycc-radius) !important;
    background: rgba(255, 255, 255, .98) !important;
    box-shadow: var(--polycc-shadow) !important;
}

.main-frame { min-height: 510px; }
.main-frame .carousel { position: relative; }
.main-frame .carousel::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(145deg, rgba(11, 36, 71, .08), rgba(11, 36, 71, .42));
}
.carousel-indicators { z-index: 2; }
.carousel-indicators [data-bs-target] { width: 24px; height: 4px; border: 0; border-radius: 10px; }

.portal-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .42rem .75rem;
    margin-bottom: 1rem;
    color: var(--polycc-blue);
    background: #edf4ff;
    border: 1px solid #d9e8ff;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.portal-title { color: var(--polycc-navy) !important; line-height: 1.25; letter-spacing: -.02em; }
.portal-subtitle { color: var(--polycc-muted) !important; }
.portal-divider { width: 64px !important; height: 3px; margin: 1.25rem auto 1.75rem !important; border: 0; border-radius: 10px; background: linear-gradient(90deg, var(--polycc-blue), var(--polycc-cyan)); opacity: 1; }

.form-label { color: #34445d !important; font-weight: 700 !important; }
.form-control, .form-select, .input-group-text {
    min-height: 48px;
    border-color: var(--polycc-line);
    border-radius: 12px;
}
.input-group .input-group-text { padding-inline: 1rem; color: var(--polycc-blue); background: #f7faff !important; }
.input-group .form-control { border-left: 0; }
.form-control:focus, .form-select:focus {
    border-color: #73a7ef;
    box-shadow: 0 0 0 .24rem rgba(23, 78, 166, .12);
}

.btn { border-radius: 11px; font-weight: 700; transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { border-color: var(--polycc-blue); background: linear-gradient(135deg, var(--polycc-blue), #2468ca); box-shadow: 0 10px 22px rgba(23, 78, 166, .2); }
.btn-success { border-color: var(--polycc-teal); background: var(--polycc-teal); }
.btn-lg { min-height: 52px; font-size: 1rem; }

.alert { border-radius: 14px !important; }
.cd-box:not(:nth-child(even)) { min-width: 54px; padding: .55rem .35rem; border-radius: 10px; background: rgba(255, 255, 255, .75); }
.countdown-flip { align-items: flex-start; perspective: 700px; }
.countdown-panel { background: transparent !important; box-shadow: none !important; }
.landing-page #countdownContainer { transform: translateY(-16px); }
.countdown-flip .cd-box:not(.flip-separator) { min-width: 72px; padding: 0; background: transparent; }
.countdown-flip .flip-number {
    position: relative;
    display: grid;
    height: 68px;
    margin-bottom: .35rem !important;
    place-items: center;
    overflow: hidden;
    color: #fff;
    border: 1px solid #1e293b;
    border-radius: 9px;
    background: linear-gradient(to bottom, #343b45 0%, #292f37 49%, #20252c 50%, #30363f 100%);
    box-shadow: 0 7px 14px rgba(15, 23, 42, .28), inset 0 1px rgba(255, 255, 255, .12);
    font-size: 2.15rem;
    font-variant-numeric: tabular-nums;
    letter-spacing: .08em;
    line-height: 1;
    text-shadow: 0 2px 2px rgba(0, 0, 0, .55);
    transform-origin: center;
}
.countdown-flip .flip-number::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 50%;
    left: 0;
    height: 1px;
    background: rgba(0, 0, 0, .7);
    box-shadow: 0 1px rgba(255, 255, 255, .08);
}
.countdown-flip .flip-number.is-flipping { animation: flip-countdown .55s cubic-bezier(.3, .7, .4, 1); }
.countdown-flip .cd-box small { color: #64748b !important; font-size: .7rem; font-weight: 800 !important; letter-spacing: .06em; text-transform: uppercase; }
.countdown-flip .flip-separator { min-width: 10px; padding-top: 15px; color: #64748b; }
.countdown-flip .flip-separator h3 { font-size: 1.75rem; }
@keyframes flip-countdown {
    0% { transform: rotateX(0deg); filter: brightness(1); }
    45% { transform: rotateX(-88deg); filter: brightness(.72); }
    55% { transform: rotateX(72deg); filter: brightness(.82); }
    100% { transform: rotateX(0deg); filter: brightness(1); }
}

.status-banner {
    position: relative;
    overflow: hidden;
    border: 0 !important;
    border-radius: var(--polycc-radius) !important;
    box-shadow: 0 18px 40px rgba(11, 36, 71, .15) !important;
}
.glow-success { background: linear-gradient(135deg, #087b61, #12a47f) !important; animation: none !important; }
.glow-danger { background: linear-gradient(135deg, #b42336, #dc4151) !important; animation: none !important; }
.status-banner::after {
    content: "";
    position: absolute;
    z-index: 1;
    top: -70%;
    bottom: -70%;
    left: -35%;
    width: 18%;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .42), transparent);
    transform: skewX(-18deg);
    animation: status-shine 3.2s ease-in-out infinite;
}
.status-banner > * { position: relative; z-index: 2; }
@keyframes status-shine {
    0%, 18% { left: -35%; opacity: 0; }
    28% { opacity: 1; }
    62% { left: 118%; opacity: .85; }
    72%, 100% { left: 118%; opacity: 0; }
}
.status-banner h1 { font-size: clamp(1.65rem, 4vw, 2.2rem) !important; letter-spacing: .02em !important; }
.info-table th { color: var(--polycc-muted) !important; }
.offer-box { border: 1px solid var(--polycc-line) !important; border-left: 5px solid var(--polycc-teal) !important; border-radius: 16px !important; box-shadow: 0 8px 24px rgba(11, 36, 71, .06); }
.interview-details { border-left-color: var(--polycc-teal) !important; border-radius: 12px !important; background: #f3faf8 !important; }
.details-panel { padding: 0; border: 0; background: transparent; box-shadow: none; }
.details-heading { border-bottom: 0; }
.deadline-countdown {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .38rem .7rem;
    color: #8a5a00;
    border: 1px solid #f0d58e;
    border-radius: 999px;
    background: #fff8df;
    font-size: .78rem;
    font-weight: 800;
}
.info-section-list { display: grid; gap: 1rem; }
.info-section-card {
    position: relative;
    display: block;
    padding: 1.25rem 1.25rem 1.1rem 3.5rem;
    margin-bottom: 1rem;
    overflow: hidden;
    border: 1px solid var(--section-border, #b8d9d1);
    border-left: 6px solid var(--section-color, #0f766e);
    border-radius: 14px;
    background: var(--section-bg, #fff) !important;
    box-shadow: 0 5px 14px rgba(20, 40, 76, .07);
}
.info-section-a { --section-color: #0f766e; --section-soft: #dff4ef; --section-border: #9bd0c5; --section-bg: #f8fffd; }
.info-section-b { --section-color: #3155a4; --section-soft: #e3edff; --section-border: #b5c9ed; --section-bg: #f8faff; }
.info-section-c { --section-color: #9a6b08; --section-soft: #fff1c7; --section-border: #e7c86e; --section-bg: #fffdf7; }
.info-section-d { --section-color: #7c3f98; --section-soft: #f3e5f8; --section-border: #d2aee2; --section-bg: #fdf9ff; }
.info-section-badge {
    position: absolute;
    top: 1rem;
    left: .9rem;
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    color: var(--section-color);
    border-radius: 9px;
    background: var(--section-soft);
    font-weight: 900;
}
.info-section-body > :first-child { margin-top: 0 !important; }
.info-section-body > :last-child { margin-bottom: 0 !important; }
.info-section-body table { max-width: 100%; }
.info-section-body img { max-width: 100%; height: auto; }

.admin-shell { max-width: 1040px !important; }
.admin-hero { padding: 1.5rem; border: 1px solid #dbe8f6; border-radius: var(--polycc-radius); background: linear-gradient(135deg, #fff, #f0f7ff); box-shadow: 0 12px 35px rgba(11, 36, 71, .07); }
.admin-hero h3 { color: var(--polycc-navy) !important; }
.program-card { border: 1px solid var(--polycc-line) !important; border-radius: 16px !important; box-shadow: 0 10px 30px rgba(11, 36, 71, .07) !important; }
.program-header { border: 0 !important; background: linear-gradient(135deg, var(--polycc-navy), #153e70) !important; }
.program-header:hover { background: linear-gradient(135deg, #102f59, #1a4b82) !important; }
.program-header .badge { color: #dff8ff; background: rgba(8, 145, 178, .28) !important; border: 1px solid rgba(173, 229, 241, .25); }
.program-card .card-body { padding: clamp(1.25rem, 3vw, 2rem) !important; }

/* Bootstrap Datepicker */
.datepicker-dropdown {
    z-index: 1080 !important;
    padding: .7rem;
    border: 1px solid #dbe4f0;
    border-radius: 16px;
    box-shadow: 0 18px 45px rgba(20, 40, 76, .18);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
}
.datepicker-dropdown::before,
.datepicker-dropdown::after { display: none; }
.datepicker table { width: 300px; border-collapse: separate; border-spacing: 3px; }
.datepicker table tr th { height: 36px; color: #64748b; font-size: .76rem; font-weight: 800; }
.datepicker table tr th.datepicker-switch { color: #14284c; font-size: .95rem; }
.datepicker table tr th.prev,
.datepicker table tr th.next { color: #273c75; border-radius: 9px; }
.datepicker table tr th.prev:hover,
.datepicker table tr th.next:hover,
.datepicker table tr th.datepicker-switch:hover { background: #edf3ff; }
.datepicker table tr td.day,
.datepicker table tr td span { width: 38px; height: 38px; border-radius: 10px; line-height: 38px; color: #334155; }
.datepicker table tr td.day:hover,
.datepicker table tr td span:hover { background: #edf3ff; }
.datepicker table tr td.today,
.datepicker table tr td.today:hover { color: #8b6508; background: #fff6d9; border: 1px solid #d4a017; }
.datepicker table tr td.active,
.datepicker table tr td.active:hover,
.datepicker table tr td span.active,
.datepicker table tr td span.active:hover { color: #fff !important; background: #273c75 !important; text-shadow: none; box-shadow: 0 6px 14px rgba(39, 60, 117, .25); }
.datepicker table tr td.old,
.datepicker table tr td.new,
.datepicker table tr td.disabled { color: #cbd5e1; }
.datepicker .clear { padding-top: .65rem; color: #273c75; font-size: .78rem; font-weight: 800; }

.bg-custom-footer { padding-block: .8rem !important; background: var(--polycc-navy) !important; border-top: 3px solid var(--polycc-cyan); }

/* Halaman semakan utama muat dalam satu viewport desktop */
.landing-page {
    height: 100vh;
    min-height: 0 !important;
    overflow: hidden;
}
.landing-page > main {
    min-height: 0;
    padding: 1.25rem 0 .65rem;
}
.landing-page .main-frame,
.landing-page .main-frame > .row {
    height: min(570px, calc(100vh - 285px));
    min-height: 470px;
}
.landing-page .main-frame > .row > [class*="col-"] { min-height: 0; overflow: hidden; }
.landing-page .main-frame > .row > .col-md-6:first-child { width: 34%; }
.landing-page .main-frame > .row > .col-md-6:last-child { width: 66%; }
.landing-page .main-frame .carousel,
.landing-page .main-frame .carousel-inner,
.landing-page .main-frame .carousel-item { height: 100% !important; }
.landing-page .main-frame .carousel-item img { height: 100% !important; object-fit: cover; }
.landing-page .main-frame .carousel-item img.portrait-visual { object-position: center center; }
.landing-page .support-note { margin-top: .65rem !important; padding-block: .45rem; }
.landing-page > footer { flex: 0 0 auto; }

@media (max-width: 767.98px) {
    .landing-page { height: auto; min-height: 100vh !important; overflow: auto; }
    .landing-page #countdownContainer { transform: none; }
    .landing-page .main-frame,
    .landing-page .main-frame > .row { height: auto; min-height: 0; }
    .landing-page .main-frame > .row > .col-md-6:last-child { width: 100%; }
    body > header { margin-bottom: 1rem !important; }
    .header-logo { max-width: 260px; max-height: 50px !important; }
    .main-frame { min-height: auto; }
    .main-frame .card-body { padding: 2rem 1.25rem !important; }
    .info-card { padding: 1.15rem !important; }
    .info-table, .info-table tbody, .info-table tr, .info-table th, .info-table td { display: block; width: 100% !important; }
    .info-table th { padding-bottom: .15rem !important; }
    .info-table td { padding-top: .15rem !important; }
    .program-header { align-items: flex-start !important; }
    .program-header .badge { display: none; }
    .program-card .text-end { display: grid; gap: .65rem; }
    .program-card .text-end .btn { width: 100%; margin: 0 !important; }
    .info-section-card { padding: 3.25rem 1rem 1rem; text-align: left; }
    .info-section-badge { top: .8rem; left: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* Paparan utama berasaskan susun atur portal rasmi */
.portal-header {
    min-height: 92px;
    margin: 0 0 0 !important;
    padding: 0 !important;
    border-top: 2px solid #e8edf5;
    border-bottom: 4px solid #d4a017 !important;
}
.portal-header-inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.portal-brand { display: flex; align-items: center; min-width: 0; }
.portal-brand .header-logo { width: 165px; max-width: 28vw; height: auto; object-fit: contain; }
.brand-separator { width: 1px; height: 44px; margin: 0 18px; background: #cbd5e1; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.25; }
.brand-copy strong { color: #14284c; font-size: .98rem; }
.brand-copy small { margin-top: .28rem; color: var(--polycc-muted); font-size: .78rem; }
.header-chip { flex: 0 0 auto; padding: .62rem 1.15rem; color: #fff; background: #273c75; border: 2px solid #d4a017; border-radius: 999px; font-size: .75rem; font-weight: 800; letter-spacing: .025em; box-shadow: 0 5px 15px rgba(39, 60, 117, .15); }
.header-chip i { margin-right: .45rem; color: #ffd76a; }

body > main { padding: 3.25rem 0 2rem; }
body > main > .container > .row > [class*="col-"] { width: min(950px, 100%); }
.main-frame { min-height: 570px; border: 0 !important; border-radius: 20px !important; overflow: hidden; box-shadow: 0 22px 48px rgba(20, 40, 76, .16) !important; }
.main-frame > .row { min-height: 570px; }
.main-frame > .row > .col-md-6:first-child { width: 42%; }
.main-frame > .row > .col-md-6:last-child { width: 58%; }
.main-frame .card-body { padding: 3rem 2.25rem !important; }
.main-frame .carousel::after { background: linear-gradient(180deg, rgba(20, 40, 76, .12), rgba(20, 40, 76, .55)); z-index: 1; }
.main-frame .carousel-item { position: relative; }
.visual-caption { position: absolute; z-index: 3; top: 44%; left: 1.5rem; right: 1.5rem; display: flex; flex-direction: column; color: #fff; text-align: center; text-shadow: 0 2px 8px rgba(0,0,0,.65); }
.visual-caption strong { font-size: 1.12rem; }
.visual-caption span { margin-top: .35rem; font-size: .82rem; }

.form-hero { padding: 1.65rem 1.4rem; color: #fff; border-radius: 16px; background: linear-gradient(135deg, #1f3b73, #3155a4); box-shadow: 0 12px 28px rgba(39, 60, 117, .2); }
.form-hero-icon { margin-bottom: .75rem; color: #ffd76a; font-size: 1.5rem; }
.form-hero h4 { margin: 0 0 .45rem; color: #fff; font-size: 1.05rem; font-weight: 800; line-height: 1.22; text-transform: uppercase; }
.form-hero p { margin: 0; color: #dbe6ff; font-size: .78rem; }
.main-frame .form-label { font-size: .88rem; }
.main-frame .input-group { border: 1px solid #cbd5e1; border-radius: 12px; overflow: hidden; }
.main-frame .input-group:focus-within { border-color: #3155a4; box-shadow: 0 0 0 .22rem rgba(49, 85, 164, .12); }
.main-frame .input-group-text, .main-frame .form-control { border: 0 !important; box-shadow: none !important; font-size: .92rem; }
.form-hint { margin-top: .55rem; color: #68768e; font-size: .72rem; }
.form-hint i { margin-right: .35rem; color: #d4a017; }
.main-frame .btn-primary { min-height: 58px; border: 0; background: linear-gradient(100deg, #273c75, #4169b2); box-shadow: 0 10px 22px rgba(39, 60, 117, .22); text-transform: uppercase; }
.main-frame .btn-primary:hover { background: linear-gradient(100deg, #1d2e5b, #345798); }
.support-note { max-width: 760px; margin-inline: auto; padding: .85rem 1rem; border-top: 1px solid #d9e1ec; }
.support-note a { color: #273c75; }
.bg-custom-footer { border-top-color: #d4a017 !important; background: linear-gradient(90deg, #14284c, #273c75) !important; }

@media (max-width: 767.98px) {
    .portal-header-inner { min-height: 78px; padding-block: .65rem; }
    .portal-brand .header-logo { width: 130px; max-width: 42vw; }
    .brand-separator { height: 36px; margin-inline: 12px; }
    .brand-copy strong { font-size: .68rem; }
    .brand-copy small { font-size: .62rem; }
    .header-chip { display: none; }
    body > main { padding-top: 1.5rem; }
    .main-frame, .main-frame > .row { min-height: auto; }
    .main-frame > .row > .col-md-6:last-child { width: 100%; }
    .main-frame .card-body { padding: 1.5rem !important; }
    .form-hero { padding: 1.35rem 1rem; }
    .support-note { margin-top: 1rem !important; }
}
