/* =====================================================================
   JPP KPKPM — STYLE.CSS
   Reka bentuk semula profesional untuk laman web institusi.
   Struktur kelas asal dikekalkan supaya semua fail PHP terus berfungsi
   tanpa perubahan — hanya rupa & rasa (look & feel) dipertingkatkan.
   ===================================================================== */

/* =========================
   FONT
========================= */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

/* =========================
   DESIGN TOKENS
========================= */
:root {
    /* Warna jenama */
    --navy-950: #0b2540;
    --navy-900: #0f3358;
    --navy-800: #154273;
    --navy-700: #1b4f89;
    --navy-600: #1e5c9b;
    --navy-100: #e8f0fa;

    --gold-700: #a67623;
    --gold-600: #c89332;
    --gold-500: #dba949;
    --gold-100: #fdf3e0;

    --ink-900: #1a1d23;
    --ink-700: #333a44;
    --ink-500: #5b6470;
    --ink-300: #8a919c;
    --ink-100: #eef1f4;

    --surface: #ffffff;
    --bg: #f4f6f9;
    --border: #e3e7ed;

    --success-bg: #e4f6e8;
    --success-fg: #1e7e34;
    --success-bd: #b8e6c2;
    --danger-bg: #fdeaea;
    --danger-fg: #b02a2a;
    --danger-bd: #f3c1c1;
    --warn-bg: #fff3d6;
    --warn-fg: #a67623;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-pill: 999px;

    --shadow-sm: 0 1px 3px rgba(15, 30, 55, 0.08);
    --shadow-md: 0 6px 20px rgba(15, 30, 55, 0.09);
    --shadow-lg: 0 16px 40px rgba(15, 30, 55, 0.14);

    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --font-heading: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-body: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* =========================
   GLOBAL / RESET
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-body);
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg);
    color: var(--ink-700);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 10050;
    transform: translateY(-160%);
    background: #fff;
    color: var(--navy-900);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    text-decoration: none;
    box-shadow: var(--shadow-lg);
}
.skip-link:focus { transform: translateY(0); }

.institution-bar {
    background: #071b2f;
    color: rgba(255,255,255,.76);
    font-size: 11px;
    letter-spacing: .15px;
}
.institution-bar__inner {
    max-width: 1240px;
    min-height: 34px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.institution-bar i { color: var(--gold-500); margin-right: 6px; }
.institution-bar__status { color: #d7e9dd; }
main { display: block; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
}

::selection {
    background: var(--gold-600);
    color: #fff;
}

/* Consistent focus ring for accessibility across the whole site */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--gold-500);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Thin, tidy scrollbar (Webkit) */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: var(--ink-100);
}
::-webkit-scrollbar-thumb {
    background: var(--navy-700);
    border-radius: var(--radius-pill);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--navy-800);
}

/* =========================
   TOP NAVIGATION BAR
========================= */

header {
    background: linear-gradient(180deg, var(--navy-950) 0%, var(--navy-900) 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    height: 74px;
    position: sticky;
    top: 0;
    z-index: 500;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
    flex-wrap: wrap;
    gap: 10px;
}

.logo-container {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 6px 22px 6px 16px;
    clip-path: polygon(0 0, 100% 0, 88% 100%, 0% 100%);
    height: 100%;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.08);
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 24px;
    letter-spacing: -0.5px;
    color: var(--navy-900);
    margin-right: 10px;
}

.logo-sub {
    font-family: var(--font-heading);
    font-size: 8px;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: var(--ink-700);
    border-left: 2px solid var(--gold-600);
    padding-left: 8px;
    text-transform: uppercase;
}

nav ul {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
    gap: 2px;
}

nav ul li a {
    display: inline-block;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.2px;
    border-radius: var(--radius-sm);
    transition: background-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.2s var(--ease);
}

nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: #fff;
}

nav ul li a.active {
    background-color: var(--navy-600);
    color: #fff;
    font-weight: 600;
    box-shadow: inset 0 -2px 0 var(--gold-500);
}

.btn-portal {
    color: var(--gold-500) !important;
    font-weight: 700 !important;
}

/* =========================
   HERO BANNER SECTION
========================= */

.hero {
    background: linear-gradient(120deg, rgba(11, 37, 64, 0.82) 0%, rgba(11, 37, 64, 0.55) 55%, rgba(11, 37, 64, 0.35) 100%),
                url('https://user29516.na.imgto.link/public/20260904/1945cbc0-998e-4a39-8fa8-d3c847dec455.avif');
    background-size: cover;
    background-position: center;
    min-height: 500px;
    display: flex;
    align-items: center;
    padding: 40px 10%;
    color: #fff;
    position: relative;
}

.hero-content {
    max-width: 620px;
    animation: heroRise 0.8s var(--ease) both;
}
.eyebrow, .section-kicker {
    font-size: 11px;
    letter-spacing: 1.8px;
    font-weight: 800;
    color: var(--gold-500);
    text-transform: uppercase;
}
.eyebrow { margin-bottom: 14px; display: flex; align-items: center; gap: 9px; }
.eyebrow span { width: 28px; height: 2px; background: var(--gold-500); }

@keyframes heroRise {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-content h2 {
    font-size: 13px;
    letter-spacing: 3px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--gold-500);
    text-transform: uppercase;
}

.hero-content h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 26px;
    line-height: 1.35;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.btn-misi {
    background: linear-gradient(135deg, var(--gold-600), var(--gold-700));
    color: #fff;
    border: none;
    padding: 13px 32px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.3px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(200, 147, 50, 0.35);
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.hero-actions a { text-decoration: none; }
.btn-hero-secondary {
    color: #fff;
    border: 1px solid rgba(255,255,255,.75);
    padding: 12px 22px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 700;
    background: rgba(7, 27, 47, .2);
    transition: background .2s var(--ease), border-color .2s var(--ease);
}
.btn-hero-secondary:hover { background: rgba(255,255,255,.14); border-color: #fff; }

.service-ribbon { background: var(--surface); border-bottom: 1px solid var(--border); }
.service-ribbon__inner {
    max-width: 1080px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 0 24px;
}
.service-ribbon a {
    min-height: 104px;
    display: flex;
    align-items: center;
    gap: 13px;
    text-decoration: none;
    color: var(--ink-700);
    padding: 18px 22px;
    border-right: 1px solid var(--border);
    transition: background .2s var(--ease), color .2s var(--ease);
}
.service-ribbon a:first-child { border-left: 1px solid var(--border); }
.service-ribbon a > i:first-child { color: var(--gold-600); font-size: 19px; }
.service-ribbon span { display: grid; gap: 2px; flex: 1; }
.service-ribbon strong { font-family: var(--font-heading); font-size: 13px; color: var(--navy-800); }
.service-ribbon small { color: var(--ink-500); font-size: 11px; }
.service-ribbon a > i:last-child { font-size: 11px; color: var(--ink-300); }
.service-ribbon a:hover { background: var(--navy-100); color: var(--navy-800); }

.btn-misi:hover {
    background: linear-gradient(135deg, var(--gold-700), #8f611c);
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(200, 147, 50, 0.42);
}

.btn-misi:active {
    transform: translateY(0);
}

/* =========================
   CONTAINER & SECTION TITLES
========================= */

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 56px 24px;
    text-align: center;
}
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; text-align: left; }
.section-heading--center { justify-content: center; text-align: center; }
.section-kicker { margin-bottom: 5px; color: var(--navy-600); }
.section-title { margin-bottom: 0; }
.section-title::after { left: 0; transform: none; }
.section-heading--center .section-title::after { left: 50%; transform: translateX(-50%); }
.text-link { color: var(--navy-700); text-decoration: none; font-size: 12px; font-weight: 700; white-space: nowrap; }
.text-link:hover { color: var(--gold-700); }

.section-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--ink-900);
    position: relative;
    display: inline-block;
    padding-bottom: 14px;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 56px;
    height: 3px;
    border-radius: var(--radius-pill);
    background: linear-gradient(90deg, var(--navy-600), var(--gold-600));
}

/* =========================
   CARDS GRID (Buletin)
========================= */

.cards-grid {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 34px;
}

.card {
    background: var(--surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    width: 300px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    text-align: left;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.card-body {
    padding: 16px 18px 18px;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--ink-900);
    line-height: 1.4;
}

.card-date {
    font-size: 11px;
    color: var(--ink-300);
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.card-date::before {
    content: "\f073";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--gold-600);
}

/* =========================
   PORTAL BUTTONS GRID
========================= */

.portal-grid {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.portal-btn {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-700);
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s var(--ease);
    width: 220px;
}

.portal-btn:hover {
    border-color: var(--navy-600);
    color: var(--navy-700);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.portal-btn i {
    font-size: 18px;
    color: var(--gold-600);
    background: var(--gold-100);
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.portal-btn:hover i {
    background: var(--navy-600);
    color: #fff;
}

/* =========================
   FOOTER
========================= */

footer {
    background: linear-gradient(180deg, #232323 0%, #1b1b1b 100%);
    color: var(--ink-300);
    padding: 48px 10% 24px;
    font-size: 13px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
    max-width: 1080px;
    margin: 0 auto;
    text-align: left;
    justify-items: start;
}

.footer-col {
    width: 100%;
    text-align: left;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.3px;
    position: relative;
    padding-bottom: 10px;
    text-align: left;
}

.footer-col h4::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 32px;
    height: 2px;
    background: var(--gold-600);
}

.footer-col ul {
    list-style: none;
    text-align: left;
}

.footer-col ul li {
    margin-bottom: 10px;
    text-align: left;
}

.footer-col ul li a {
    color: var(--ink-300);
    text-decoration: none;
    font-size: 12.5px;
    transition: color 0.2s var(--ease), padding-left 0.2s var(--ease);
}

.footer-col ul li a:hover {
    color: var(--gold-500);
    padding-left: 3px;
}

.footer-col p {
    text-align: left;
    font-size: 12.5px;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: var(--ink-300);
}

.footer-col p i {
    color: var(--gold-600);
    margin-top: 2px;
    width: 14px;
    text-align: center;
}

.copyright {
    text-align: center;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 11px;
    color: var(--ink-500);
}

@media (max-width: 720px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 28px;
        text-align: left;
        justify-items: start;
    }
}

/* =========================
   SPLASH SCREEN
========================= */

#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

#splash-video {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    top: 0;
    left: 0;
}

.splash-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(11,37,64,0.55), rgba(0,0,0,0.65));
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

.splash-content {
    animation: splashFade 1.4s ease forwards;
}

.splash-logo {
    font-family: var(--font-heading);
    font-size: 90px;
    font-weight: 800;
    letter-spacing: 10px;
    margin-bottom: 10px;
}

.splash-content p {
    font-size: 14px;
    letter-spacing: 5px;
    font-weight: 500;
}

#skip-intro,
#skip-splash {
    position: absolute;
    bottom: 30px;
    right: 40px;
    z-index: 10000;
    padding: 11px 22px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-pill);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: 0.3s var(--ease);
}

#skip-intro:hover,
#skip-splash:hover {
    background: #fff;
    color: var(--navy-900);
    border-color: #fff;
}

@keyframes splashFade {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

#splash-screen.hide,
#splash-screen.splash-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

#main-content {
    opacity: 1;
}

/* =========================
   PAGE HEADER (halaman dalaman)
========================= */

.page-header {
    background: linear-gradient(120deg, rgba(11, 37, 64, 0.88), rgba(21, 66, 115, 0.75)),
                url('https://user29516.na.imgto.link/public/20260904/1945cbc0-998e-4a39-8fa8-d3c847dec455.avif');
    background-size: cover;
    background-position: center;
    padding: 64px 10%;
    color: #fff;
    text-align: center;
}

.page-header h1 {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 0.2px;
}

.page-header p {
    font-size: 14px;
    opacity: 0.92;
    max-width: 560px;
    margin: 0 auto;
}

/* =========================
   TENTANG KAMI
========================= */

.about-block {
    max-width: 820px;
    margin: 0 auto 34px;
    text-align: left;
    background: var(--surface);
    padding: 28px 32px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.about-block h3 {
    color: var(--navy-700);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-block h3::before {
    content: "";
    width: 5px;
    height: 18px;
    background: var(--gold-600);
    border-radius: var(--radius-pill);
    display: inline-block;
}

.about-block p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--ink-500);
    margin-bottom: 12px;
}

.value-grid {
    display: flex;
    justify-content: center;
    gap: 22px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.value-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 26px 22px;
    width: 210px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.value-card i {
    font-size: 24px;
    color: #fff;
    background: linear-gradient(135deg, var(--gold-600), var(--gold-700));
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    margin-bottom: 14px;
}

.value-card h4 {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--ink-900);
    margin-bottom: 8px;
}

.value-card p {
    font-size: 12.5px;
    color: var(--ink-500);
    line-height: 1.6;
}

/* =========================
   AHLI JAWATANKUASA
========================= */

.committee-grid {
    display: flex;
    justify-content: center;
    gap: 26px;
    flex-wrap: wrap;
}

.committee-card {
    background: var(--surface);
    width: 210px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    text-align: center;
    padding-bottom: 18px;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.committee-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.committee-card img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    background: var(--ink-100);
}

.committee-card h4 {
    font-size: 13.5px;
    font-weight: 700;
    margin: 16px 0 4px;
    color: var(--ink-900);
}

.committee-card span {
    font-size: 11.5px;
    color: var(--navy-600);
    font-weight: 700;
    letter-spacing: 0.2px;
}

.committee-category {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--ink-900);
    margin: 40px 0 22px;
    text-align: left;
    border-left: 4px solid var(--gold-600);
    padding-left: 12px;
    max-width: 1080px;
    margin-left: auto;
    margin-right: auto;
}

/* =========================
   PROGRAM / AKTIVITI KEBAJIKAN
========================= */

.program-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: left;
    max-width: 870px;
    margin: 0 auto;
}

.program-item {
    display: flex;
    background: var(--surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.program-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.program-date {
    background: linear-gradient(160deg, var(--navy-700), var(--navy-900));
    color: #fff;
    min-width: 96px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    padding: 12px;
    text-align: center;
}

.program-date .day {
    font-family: var(--font-heading);
    font-size: 24px;
    line-height: 1;
}

.program-date .month {
    font-size: 11px;
    letter-spacing: 1.5px;
    margin-top: 4px;
    text-transform: uppercase;
    color: var(--gold-500);
}

.program-info {
    padding: 18px 22px;
    flex: 1;
}

.program-info h4 {
    font-size: 15.5px;
    font-weight: 700;
    color: var(--ink-900);
    margin-bottom: 6px;
}

.program-info p {
    font-size: 13px;
    color: var(--ink-500);
    line-height: 1.6;
}

.program-tag {
    display: inline-block;
    margin-top: 10px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.2px;
    color: var(--gold-700);
    background: var(--gold-100);
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    text-transform: uppercase;
}

/* =========================
   GALERI
========================= */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 18px;
}

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    position: relative;
}

.gallery-item::after {
    content: "\f00e";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    background: rgba(11, 37, 64, 0);
    opacity: 0;
    transition: all 0.3s var(--ease);
}

.gallery-item:hover::after {
    background: rgba(11, 37, 64, 0.45);
    opacity: 1;
}

.gallery-item img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s var(--ease);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

#lightbox {
    position: fixed;
    inset: 0;
    background: rgba(11, 15, 22, 0.92);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    padding: 30px;
}

#lightbox.open {
    display: flex;
    animation: fadeIn 0.25s var(--ease);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

#lightbox img {
    max-width: 90%;
    max-height: 85vh;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
}

#lightbox-close {
    position: absolute;
    top: 25px;
    right: 35px;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    transition: background 0.2s var(--ease);
}

#lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* =========================
   HUBUNGI KAMI
========================= */

.contact-wrap {
    display: flex;
    gap: 34px;
    max-width: 940px;
    margin: 0 auto;
    text-align: left;
    flex-wrap: wrap;
}

.contact-info, .contact-form-box {
    flex: 1;
    min-width: 280px;
    background: var(--surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    padding: 28px;
}

.contact-info h4,
.contact-form-box h4 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--ink-900);
    margin-bottom: 18px;
}

.contact-info p {
    font-size: 13.5px;
    color: var(--ink-500);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-info i {
    color: #fff;
    background: linear-gradient(135deg, var(--navy-600), var(--navy-800));
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    font-size: 13px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ink-700);
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border);
    background: #fbfcfe;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-family: inherit;
    color: var(--ink-900);
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: #c7cfda;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--navy-600);
    background: #fff;
    box-shadow: 0 0 0 3px var(--navy-100);
}

.form-group textarea {
    resize: vertical;
    min-height: 110px;
}

.btn-submit {
    background: linear-gradient(135deg, var(--navy-600), var(--navy-800));
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 13.5px;
    letter-spacing: 0.2px;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(21, 66, 115, 0.3);
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}

.btn-submit:hover {
    background: linear-gradient(135deg, var(--navy-700), var(--navy-950));
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(21, 66, 115, 0.38);
}

.btn-submit:active {
    transform: translateY(0);
}

.alert-success {
    background: var(--success-bg);
    color: var(--success-fg);
    border: 1px solid var(--success-bd);
    padding: 13px 18px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    margin-bottom: 22px;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success::before {
    content: "\f058";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 15px;
}

.alert-error {
    background: var(--danger-bg);
    color: var(--danger-fg);
    border: 1px solid var(--danger-bd);
    padding: 13px 18px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    margin-bottom: 22px;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-error::before {
    content: "\f06a";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 15px;
}

/* =========================
   PENGURUSAN ACARA
========================= */

.event-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    text-align: left;
    max-width: 870px;
    margin: 0 auto 22px;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    transition: box-shadow 0.3s var(--ease);
}

.event-card:hover {
    box-shadow: var(--shadow-md);
}

.event-card img {
    width: 270px;
    height: 100%;
    min-height: 190px;
    object-fit: cover;
}

.event-body {
    padding: 20px 24px;
    flex: 1;
    min-width: 220px;
}

.event-body h4 {
    font-size: 17px;
    font-weight: 700;
    color: var(--ink-900);
    margin-bottom: 10px;
}

.event-meta {
    font-size: 12px;
    color: var(--ink-300);
    margin-bottom: 12px;
    font-weight: 600;
}

.event-meta span {
    margin-right: 16px;
    display: inline-flex;
    align-items: center;
}

.event-meta i {
    color: var(--navy-600);
    margin-right: 5px;
}

.event-body p.desc {
    font-size: 13.5px;
    color: var(--ink-500);
    line-height: 1.7;
    margin-bottom: 14px;
}

.btn-daftar-acara {
    background: linear-gradient(135deg, var(--gold-600), var(--gold-700));
    color: #fff;
    border: none;
    padding: 9px 22px;
    border-radius: var(--radius-pill);
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(200, 147, 50, 0.3);
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.btn-daftar-acara:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 18px rgba(200, 147, 50, 0.38);
}

.registration-form {
    display: none;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed var(--border);
}

.registration-form.open {
    display: block;
    animation: fadeIn 0.3s var(--ease);
}

.no-events {
    font-size: 13.5px;
    color: var(--ink-300);
    text-align: center;
    padding: 26px;
    background: var(--surface);
    border: 1px dashed var(--border);
    border-radius: var(--radius-md);
    max-width: 870px;
    margin: 0 auto;
}

/* =========================
   ADMIN PANEL
========================= */

.admin-topbar {
    background: linear-gradient(180deg, var(--navy-950) 0%, var(--navy-900) 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    height: 68px;
    flex-wrap: wrap;
    position: sticky;
    top: 0;
    z-index: 500;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
    gap: 10px;
}

.admin-nav {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.admin-nav a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    padding: 9px 15px;
    font-size: 12.5px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.admin-nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.admin-nav a.admin-logout {
    color: #ffb4b4;
}

.admin-nav a.admin-logout:hover {
    background-color: var(--danger-fg);
    color: #fff;
}

.admin-main {
    max-width: 1140px;
    margin: 0 auto;
    padding: 36px 24px 60px;
    min-height: calc(100vh - 68px - 70px);
}

.admin-footer {
    text-align: center;
    padding: 22px;
    font-size: 11.5px;
    color: var(--ink-300);
    border-top: 1px solid var(--border);
    margin-top: 20px;
    background: var(--surface);
}

/* Stat cards */

.stat-cards {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 34px;
}

.stat-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    padding: 24px;
    flex: 1;
    min-width: 170px;
    text-align: center;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.stat-card i {
    font-size: 20px;
    color: #fff;
    background: linear-gradient(135deg, var(--navy-600), var(--navy-800));
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 12px;
}

.stat-card-alert i {
    background: linear-gradient(135deg, var(--gold-600), var(--gold-700));
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 30px;
    font-weight: 700;
    color: var(--ink-900);
}

.stat-label {
    font-size: 12px;
    color: var(--ink-300);
    margin-top: 4px;
    font-weight: 500;
}

.admin-quick-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

/* Panels */

.admin-panel {
    background: var(--surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    padding: 26px;
    margin-bottom: 28px;
    text-align: left;
}

.admin-panel-title {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--ink-900);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.admin-panel-title i {
    color: #fff;
    background: linear-gradient(135deg, var(--gold-600), var(--gold-700));
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    font-size: 13px;
}

.admin-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (max-width: 600px) {
    .admin-form-grid {
        grid-template-columns: 1fr;
    }
}

/* Tables */

.table-scroll {
    overflow-x: auto;
    border-radius: var(--radius-sm);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.admin-table th {
    background: var(--ink-100);
    text-align: left;
    padding: 12px 14px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--ink-500);
    font-weight: 700;
    border-bottom: 2px solid var(--border);
}

.admin-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--ink-100);
    color: var(--ink-700);
    vertical-align: top;
}

.admin-table tbody tr {
    transition: background 0.15s var(--ease);
}

.admin-table tbody tr:hover {
    background: #f8fafc;
}

.complaint-text-cell {
    max-width: 280px;
    font-size: 12.5px;
    color: var(--ink-500);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-fg), #8f2121);
    color: #fff;
    border: none;
    padding: 7px 16px;
    border-radius: var(--radius-pill);
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.btn-danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(176, 42, 42, 0.3);
}

/* Status badges / select */

.status-form {
    display: inline-block;
}

.status-badge {
    border: none;
    border-radius: var(--radius-pill);
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.2px;
}

.status-baharu {
    background: var(--danger-bg);
    color: var(--danger-fg);
}

.status-dalam-semakan {
    background: var(--warn-bg);
    color: var(--warn-fg);
}

.status-selesai {
    background: var(--success-bg);
    color: var(--success-fg);
}

/* Filter bar */

.admin-filter-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.admin-filter-bar a {
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-500);
    background: var(--ink-100);
    padding: 7px 16px;
    border-radius: var(--radius-pill);
    transition: all 0.2s var(--ease);
}

.admin-filter-bar a:hover {
    background: var(--navy-100);
    color: var(--navy-700);
}

.admin-filter-bar a.filter-active {
    background: linear-gradient(135deg, var(--navy-600), var(--navy-800));
    color: #fff;
}

/* Login box */

.admin-login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 20% 20%, rgba(30, 92, 155, 0.35), transparent 45%),
        radial-gradient(circle at 85% 80%, rgba(200, 147, 50, 0.25), transparent 45%),
        linear-gradient(160deg, var(--navy-950), var(--navy-900) 55%, #0a1d33 100%);
    padding: 24px;
}

.admin-login-box {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 42px 36px 34px;
    width: 100%;
    max-width: 400px;
    position: relative;
    overflow: hidden;
    animation: heroRise 0.5s var(--ease) both;
}

.admin-login-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--navy-600), var(--gold-600));
}

.admin-login-box h3 {
    font-family: var(--font-heading) !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: var(--ink-900) !important;
}

.admin-login-box .logo-container {
    clip-path: none;
    box-shadow: none;
    background: none;
    justify-content: center;
    padding: 0;
}

.admin-login-box .logo-text {
    color: var(--navy-800);
}

.admin-login-box a {
    transition: color 0.2s var(--ease);
}

.admin-login-box a:hover {
    color: var(--navy-700) !important;
}

/* Admin link in public footer */

.admin-footer-link {
    color: var(--ink-500);
    text-decoration: none;
    font-size: 10.5px;
    margin-left: 12px;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    padding-left: 12px;
    transition: color 0.2s var(--ease);
}

.admin-footer-link:hover {
    color: var(--gold-500);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 960px) {
    header {
        height: auto;
        padding: 14px 5%;
        justify-content: center;
        text-align: center;
    }

    .logo-container {
        clip-path: none;
        border-radius: var(--radius-sm);
    }

    nav ul {
        justify-content: center;
    }

    .hero {
        text-align: center;
        justify-content: center;
        padding: 50px 6%;
    }

    .hero-content {
        margin: 0 auto;
    }

    .event-card {
        flex-direction: column;
    }

    .event-card img {
        width: 100%;
        height: 200px;
    }
}

@media (max-width: 600px) {
    .institution-bar__inner { justify-content: center; text-align: center; padding: 8px 5%; }
    .institution-bar__status { display: none; }
    .hero { min-height: 460px; }
    .hero-actions { justify-content: center; }
    .service-ribbon__inner { grid-template-columns: 1fr; padding: 0; }
    .service-ribbon a, .service-ribbon a:first-child { border-left: 0; border-right: 0; border-bottom: 1px solid var(--border); min-height: 78px; }
    .section-heading { align-items: flex-start; flex-direction: column; }
    .section-heading--center { align-items: center; }
    .hero-content h1 {
        font-size: 24px;
    }

    .section-title {
        font-size: 19px;
    }

    .page-header h1 {
        font-size: 24px;
    }

    .card, .value-card, .committee-card {
        width: 100%;
        max-width: 320px;
    }

    .admin-login-box {
        padding: 32px 24px 26px;
    }
}
