@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:wght@400;500;600;700;800&display=swap');

:root {
    /* Legacy Definitions (Preserved for backwards compatibility) */
    --primary-color: #FF6600;
    /* Nikkapala Orange */
    --primary-dark: #D44C0E;
    --primary-light: #FF8F5E;
    --accent-color: #FFB38A;
    --bg-white: #FCF9F7;
    --bg-light: #F5F1EE;
    --text-dark: #2D2D2D;
    --text-muted: #6B6B6B;
    --glass-bg: rgba(255, 255, 255, 0.45);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.2);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --shadow: 0 10px 30px rgba(45, 45, 45, 0.05);
    --border-radius: 16px;

    /* New Engineering Context Blueprint (Fluid Typography & 8px Grid Base) */
    --font-size-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
    --font-size-heading-1: clamp(2rem, 1.5rem + 2.5vw, 3.5rem);
    --font-size-heading-2: clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem);

    --space-1: 0.5rem;
    /* 8px */
    --space-2: 1rem;
    /* 16px */
    --space-3: 1.5rem;
    /* 24px */
    --space-4: 2rem;
    /* 32px */
    --space-6: 3rem;
    /* 48px */
    --space-8: 4rem;
    /* 64px */

    --layout-max-width: 1200px;

    /* Nikkapala Dynamic Brand Colors */
    --primary-orange: #f26a15;
    --orange-soft: #fff7f2;
    --orange-shadow: rgba(242, 106, 21, 0.25);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Strict Box-Sizing ensuring padding scales cleanly */
}

body {
    -webkit-font-smoothing: antialiased;
    /* Precision font rendering */
    -moz-osx-font-smoothing: grayscale;
    font-family: 'EB Garamond', serif;
    font-size: var(--font-size-base);
    /* Using fluid typography base */
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'EB Garamond', serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

/* --- Layout Components --- */

.container {
    width: 100%;
    max-width: 1200px;
    /* Lebar maksimal untuk desktop */
    margin: 0 auto;
    padding: 0;
    /* Memberi sedikit jarak aman di pinggir */
    box-sizing: border-box;
    /* SANGAT PENTING: Agar padding tidak menambah lebar */
}

.section {
    padding: 80px 0;
}

.back-to-site {
    color: #000000;
    /* Warna gelap agar kontras */
    font-weight: 1000;
    /* Membuat teks jadi tebal/bold */
    font-size: 16px;
    /* Memperbesar ukuran font */
    text-decoration: none;
    /* Menghilangkan garis bawah agar bersih */
    display: inline-flex;
    /* Menyejajarkan ikon dan teks dengan rapi */
    align-items: center;
    gap: 8px;
    /* Memberi jarak antara ikon dan teks */
}

.back-to-site:hover {
    color: #000000;
    /* Warna lebih hitam saat disentuh kursor */
    text-decoration: underline;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    font-family: 'EB Garamond', serif;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 10px 20px rgba(242, 101, 34, 0.2);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--primary-color);
    color: var(--primary-color);
}

#nav-login-btn {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

/* --- Navigation --- */

header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    height: 80px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.logo {
    position: relative;
    z-index: 1001;
    /* Tambahkan min-width agar kontainer logo tersedia bagi img absolute */
    min-width: 150px;
    height: 100%;
    display: flex;
    align-items: center;
}

/* HAPUS blok .logo img di baris 176, dan gunakan satu blok solid ini: */
.logo img {
    height: 120px;
    /* Ukuran tetap besar */
    width: auto;
    position: absolute;

    /* 1. Menurunkan logo: Ubah dari -15px menjadi -5px atau 0px */
    top: -5px;

    /* 2. Menggeser ke kiri: Gunakan nilai negatif */
    left: -20px;

    display: block;
    transition: var(--transition);
    filter: drop-shadow(0px 4px 8px rgba(0, 0, 0, 0.1));
}

/* Sesuaikan juga saat di-scroll agar tetap sinkron */
header.scrolled .logo img {
    height: 80px;
    top: -5px;
    /* Sedikit turun saat scroll */
    left: -20px;
    /* Tetap agak ke kiri saat scroll */
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
    max-width: var(--layout-max-width);
    margin: 0 auto;
    padding: 0 var(--space-4);
}

.nav-menu {
    margin-left: auto;
    display: flex;
    gap: clamp(24px, 4vw, 48px);
    /* Fluid spacing for all 16:9 ratios */
    align-items: center;
}

.logo img {
    height: 80px;
    width: auto;
}

@media (max-width: 480px) {
    .logo-title {
        font-size: 1.2rem !important;
    }

    .logo-subtitle {
        font-size: 0.65rem !important;
        max-width: 150px;
        line-height: 1.1;
    }
}

.nav-link {
    font-weight: 600;
    font-size: clamp(0.9rem, 1vw, 1rem);
    /* Scales between 14px and 18px */
    font-family: 'EB Garamond', serif;
    color: var(--text-dark);
    position: relative;
    padding-block: var(--space-1);
    white-space: nowrap;
    /* Prevent line-break on small screens */
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link:active {
    transform: scale(0.95);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
    border-radius: 2px;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 15px;
    /* Subtle indicator dot/line */
}

.hamburger {
    display: none;
    /* No longer needed - nav always visible */
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: var(--transition);
}

.mobile-menu {
    position: fixed;
    top: 90px;
    right: -100%;
    width: 280px;
    height: calc(100vh - 90px);
    background: white;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.05);
    transition: 0.4s;
    padding: 40px 20px;
    z-index: 999;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu .nav-menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 25px;
}

.mobile-login-btn {
    width: 100%;
    margin-bottom: 20px;
}

/* --- Hero Section --- */



.hero-left {
    padding: 0;
    text-align: center;
    animation: fadeInUp 1s ease-out;
    margin-top: 4rem;
    /* Geser ke bawah sedikit agar tidak dekat logo */
}

.hero-right {
    position: relative;
    width: auto;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInUp 0.8s ease-out;
}

.hero-right img {
    max-height: 300px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

/* Desktop Transformation (Breakpoint Scale-Up) */
@media (min-width: 992px) {
    .hero-split {
        flex-direction: column;
        /* Keep vertical even on desktop */
        text-align: center;
    }

    .hero-left {
        padding-right: 0;
        text-align: center;
    }
}

.hero:hover .hero-right img {
    transform: scale(1.05);
}

/* Definitions consolidated below */

/* Hero section styling refinement */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('assets/bg hal1.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding-top: 80px;
    overflow: hidden;
}

/* Master Hero Layout (Vertical Centered) */
.hero-split {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 80vh;
    gap: 40px;
    text-align: center;
}

.hero-left,
.hero-right {
    flex: none;
    /* No longer expansion-based for vertical layout */
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}



.hero .container {
    position: relative;
    z-index: 2;
}

/* Styling untuk Teks dan Logo agar menonjol di atas latar belakang oranye */
.hero-left {
    transform: translateY(-30%);
    /* Geser ke atas 20% */
    padding: 0;
    text-align: center;
}

/* Untuk Judul Utama NIKKAPALA - Premium 3D Silver Embossed Aluminum */
.hero-title {
    font-family: 'EB Garamond', serif;
    font-size: clamp(3rem, 12vw, 7rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 6px;
    margin-bottom: 0.5rem;
    line-height: 1;
    position: relative;

    /* Brushed Aluminum Metallic Gradient - light-to-dark silver bands */
    background: linear-gradient(180deg,
            #ffffff 0%,
            #ffffff 25%,
            #f8f8f8 40%,
            #ffffff 55%,
            #e8e8e8 75%,
            #ffffff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;

    /* Layered drop-shadows create the deep 3D embossed effect */
    filter:
        drop-shadow(0px 1px 0px rgba(255, 255, 255, 1)) drop-shadow(1px 2px 0px rgba(0, 0, 0, 0.45)) drop-shadow(2px 4px 0px rgba(0, 0, 0, 0.38)) drop-shadow(4px 7px 10px rgba(0, 0, 0, 0.55)) drop-shadow(0px 0px 40px rgba(255, 255, 255, 0.35));

    animation: silverTitleGlow 5s ease-in-out infinite;
}

/* Untuk Subtitle BERANI DAN BANGGA */
.hero-subtitle {
    font-family: 'EB Garamond', serif;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    font-size: clamp(1rem, 5vw, 2.2rem);
    margin-bottom: 0;
    overflow: hidden;
    /* Penting: Mencegah kilau keluar jalur */
}

/* --- BAGIAN 1: BERANI D (Warna Gelap & Mengkilap/Kinclong) --- */
.shinny-dark {
    color: #1a1a1a;
    /* Hitam arang agar elegan di atas orange background */
    letter-spacing: 5px;
    position: relative;
    /* Wajib: Sebagai acuan untuk pseudoelemen kilau */
    display: inline-block;
    /* Wajib: Agar pseudoelemen bisa diposisikan tepat di atas teks */
}

/* Pseudoelemen ::after: Menciptakan "Lapisan Cahaya" di Atas Teks Hitam */
.shinny-dark::after {
    content: '';
    /* Wajib untuk pseudoelemen */
    position: absolute;
    top: 0;
    left: -100%;
    /* Mulai dari luar kiri teks */
    width: 200%;
    /* Lebih lebar dari teks agar sapuannya halus */
    height: 100%;

    /* --- TEKNIK GRADASI KILAU (SHINE GRADIENT) --- */
    /* Membuat gradasi cahaya putih miring di atas teks hitam */
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0) 0%,
            /* Transparan */
            rgba(255, 255, 255, 0) 40%,
            /* Transparan */
            rgba(255, 255, 255, 0.4) 50%,
            /* Cahaya Putih Lembut (Kinclong) */
            rgba(255, 255, 255, 0.6) 55%,
            /* Cahaya Putih Terang (Puncak Kilau) */
            rgba(255, 255, 255, 0.4) 60%,
            /* Cahaya Putih Lembut (Kinclong) */
            rgba(255, 255, 255, 0) 70%,
            /* Transparan */
            rgba(255, 255, 255, 0) 100%
            /* Transparan */
        );

    /* --- Trik CSS: Kliping Cahaya ke Dalam Teks --- */
    -webkit-background-clip: text;
    background-clip: text;

    /* Menjaga teks hitam di bawahnya tetap terlihat */
    -webkit-text-fill-color: transparent;
    color: transparent;

    /* --- ANIMASI: Menjalankan Sapuan Cahaya --- */
    /* panggil animasi 'shineSweep' yang didefinisikan di bawah */
    animation: shineSweep 4s ease-in-out infinite;

    /* Sedikit blur pada cahaya agar lebih alami */
    filter: blur(0.5px);
}

/* --- ANIMASI KEYFRAMES: Mendefinisikan Gerakan Kilau --- */
@keyframes shineSweep {
    0% {
        transform: translateX(-100%);
        /* Cahaya di luar kiri */
    }

    10% {
        transform: translateX(100%);
        /* Cahaya menyapu cepat melintasi teks */
    }

    100% {
        transform: translateX(100%);
        /* Cahaya diam di luar kanan untuk memberikan jeda */
    }
}


/* --- BAGIAN 2: AN BANGGA (Warna Orange Metalik) --- */
/* (Tetap menggunakan CSS dari langkah sebelumnya) */
.text-orange-metallic {
    letter-spacing: 5px;

    /* --- Teknik Gradasi Metalik --- */
    background: linear-gradient(135deg,
            #bf8e3a 0%,
            /* Emas tua */
            #ffcf8a 25%,
            /* Kilau emas terang */
            #ff6600 50%,
            /* Orange NIKKAPALA utama */
            #bf8e3a 75%,
            /* Emas tua */
            #bf8e3a 100%
            /* Emas tua */
        );

    /* Trik CSS: Kliping warna background ke dalam teks */
    -webkit-background-clip: text;
    background-clip: text;

    /* Jadikan teks transparan agar warna background gradasi di bawahnya terlihat */
    -webkit-text-fill-color: transparent;
    color: transparent;

    /* Menambahkan dimensi agar metaliknya lebih terasa */
    text-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

/* --- Pengaturan Responsif Khusus Mobile --- */
@media (max-width: 480px) {
    .hero-subtitle {
        font-size: 1rem !important;
        letter-spacing: 4px !important;
    }

    .hero-subtitle span {
        white-space: nowrap;
        /* Mencegah kata-kata terpisah di HP */
    }

    .hero-title {
        font-size: 2.5rem !important;
    }
}

/* Menargetkan logo di dalam hero-right - 3D Silver Metallic Effect */
.hero-right img {
    max-width: 100%;
    max-height: 250px;
    height: auto;
    display: block;
    margin: 0 auto;
    position: relative;
    z-index: 5;

    /* Turn the logo into a metallic silver color */
    filter:
        brightness(0) invert(0.9) sepia(0.1) saturate(0.2)
        /* Layered shadows to match the 3D text depth */
        drop-shadow(0px 1px 0px rgba(255, 255, 255, 0.9)) drop-shadow(1px 2px 0px rgba(0, 0, 0, 0.45)) drop-shadow(2px 4px 8px rgba(0, 0, 0, 0.6)) drop-shadow(0px 0px 30px rgba(255, 255, 255, 0.15));

    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: silverLogoPulse 6s ease-in-out infinite;
}

/* Pulsing effect for the silver logo to simulate light reflecting */
@keyframes silverLogoPulse {

    0%,
    100% {
        transform: scale(1) translateY(0);
        filter: brightness(0) invert(0.9) sepia(0.1) saturate(0.2) drop-shadow(0px 1px 0px rgba(255, 255, 255, 0.9)) drop-shadow(1px 2px 0px rgba(0, 0, 0, 0.45)) drop-shadow(2px 4px 8px rgba(0, 0, 0, 0.6));
    }

    50% {
        transform: scale(1.05) translateY(-5px);
        filter: brightness(0) invert(1) sepia(0.1) saturate(0.1) drop-shadow(0px 1px 0px rgba(255, 255, 255, 1)) drop-shadow(1px 3px 0px rgba(0, 0, 0, 0.45)) drop-shadow(3px 6px 12px rgba(0, 0, 0, 0.7));
    }
}

.hero-subtitle {
    font-size: 2rem;
    letter-spacing: 1px;
    margin-bottom: 0;
}

/* ===== PREMIUM SILVER METALLIC SUBTITLE ===== */
.shiny-white {
    display: inline-block;
    position: relative;
    overflow: hidden;
    letter-spacing: 7px;

    /* Silver metallic gradient — mimics polished aluminum banding */
    background: linear-gradient(180deg,
            #ffffff 0%,
            #ffffff 50%,
            #f2f2f2 75%,
            #ffffff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;

    /* Layered 3D drop-shadows for depth */
    filter:
        drop-shadow(0px 1px 0px rgba(255, 255, 255, 1)) drop-shadow(1px 2px 0px rgba(0, 0, 0, 0.5)) drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.55)) drop-shadow(0px 0px 20px rgba(255, 255, 255, 0.3));
}

/* Animated silver shine sweep across the subtitle */
.shiny-white::after {
    content: '';
    position: absolute;
    top: -5%;
    left: -120%;
    width: 55%;
    height: 110%;
    background: linear-gradient(105deg,
            transparent 0%,
            rgba(255, 255, 255, 0) 35%,
            rgba(255, 255, 255, 0.55) 50%,
            rgba(255, 255, 255, 0) 65%,
            transparent 100%);
    animation: silverShineSweep 5s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
    border-radius: 50%;
}



/* ===== SILVER 3D KEYFRAME ANIMATIONS ===== */

/* Pulsing glow on the main NIKKAPALA title */
@keyframes silverTitleGlow {

    0%,
    100% {
        filter:
            drop-shadow(0px 1px 0px rgba(255, 255, 255, 0.95)) drop-shadow(1px 2px 0px rgba(0, 0, 0, 0.45)) drop-shadow(2px 4px 0px rgba(0, 0, 0, 0.38)) drop-shadow(4px 7px 10px rgba(0, 0, 0, 0.55)) drop-shadow(0px 0px 25px rgba(210, 210, 210, 0.2));
    }

    50% {
        filter:
            drop-shadow(0px 1px 0px rgba(255, 255, 255, 1)) drop-shadow(1px 2px 0px rgba(0, 0, 0, 0.45)) drop-shadow(2px 4px 0px rgba(0, 0, 0, 0.38)) drop-shadow(4px 7px 10px rgba(0, 0, 0, 0.55)) drop-shadow(0px 0px 50px rgba(230, 230, 230, 0.55));
    }
}

/* Sweeping shine across the subtitle silver text */
@keyframes silverShineSweep {
    0% {
        left: -120%;
        opacity: 0;
    }

    8% {
        opacity: 1;
    }

    45% {
        left: 160%;
        opacity: 0.9;
    }

    46% {
        opacity: 0;
    }

    100% {
        left: 160%;
        opacity: 0;
    }
}

/* New Animations */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
        /* Dikurangi dari 30px agar tidak terlalu jauh naiknya */
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}



@keyframes pulseLogo {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* Reveal Animations */
.reveal-hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal-active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Sejarah Section --- */

.sejarah-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.sejarah-text h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.sejarah-image img {
    border-radius: var(--border-radius);
    box-shadow: 20px 20px 0 var(--primary-light);
}

/* --- Berita Section --- */

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
}

/* New News Layout Utility */
.news-header {
    max-width: 800px;
    margin: 0 auto 30px;
    text-align: center;
}

.news-header h2 {
    font-size: 1.4rem;
    /* Font lebih kecil */
    color: var(--primary-color);
    letter-spacing: 1px;
    font-weight: 800;
}

/* --- Detailed Pertamina Grid Layout --- */
.pertamina-grid-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    /* gap-4 */
    margin-top: 30px;
}

@media (min-width: 1024px) {
    .pertamina-grid-wrapper {
        grid-template-columns: 1fr 1fr;
        /* layout: large card | 2x2 grid */
    }
}

.pertamina-large-col {
    width: 100%;
}

.pertamina-small-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 640px) {
    .pertamina-small-col {
        grid-template-columns: 1fr;
    }
}

.p-card {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    /* rounded-lg */
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    display: block;
    background: #000;
}

.p-card-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.p-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    /* bg-black/50 */
    transition: opacity 0.3s ease;
    z-index: 1;
}

.p-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 24px;
    /* p-6 */
    color: white;
    z-index: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    /* space-y-3 approx */
    transition: all 0.3s ease;
}

.p-card:hover .p-card-img {
    transform: scale(1.05);
    /* group-hover:scale-105 */
}

.p-card:hover .p-card-overlay {
    opacity: 0.8;
    /* adjust for depth */
}

.p-card:hover .p-card-content {
    transform: translateY(-10px);
    /* group-hover:translate-y-[-10px] */
}

.p-tag {
    text-transform: uppercase;
    font-weight: 600;
    opacity: 1;
    transition: opacity 0.3s;
}

.p-title {
    font-weight: 600;
    line-height: normal;
    margin: 0;
    transition: all 0.3s;
}

.large .p-tag {
    font-size: 0.875rem;
    /* text-sm */
}

.large .p-title {
    font-size: 1.5rem;
    /* text-2xl */
}

.small .p-tag {
    font-size: 0.75rem;
    /* text-xs */
}

.small .p-title {
    font-size: 1rem;
    /* text-base */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.p-time {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    /* text-xs */
    opacity: 1;
    transition: opacity 0.3s;
}

.small .p-time {
    font-size: 10px;
}

.p-card:hover .p-tag,
.p-card:hover .p-time {
    opacity: 0.8;
}

.p-card:hover .p-title {
    transform: translateY(-2px);
}

/* Container Utama List */
.news-list {
    display: flex;
    flex-direction: column;
    max-width: 800px;
    margin: 0 auto;
}

/* Item List Artikel */
.news-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: inherit;
    transition: background 0.3s;
}

.news-item:hover {
    background-color: #fafafa;
}

/* Bagian Teks (Kiri) */
.news-text {
    flex: 1;
    padding-right: 15px;
}

.news-list .news-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #222;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-meta {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 600;
}

.news-category {
    color: #e63946;
    /* Merah aksen portal berita */
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-dot {
    margin: 0 8px;
    color: #ccc;
}

.news-date {
    color: #888;
    font-weight: 400;
}

/* Bagian Gambar (Kanan) */
.news-img-wrapper {
    width: 100px;
    height: 100px;
    min-width: 100px;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background-color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-img-content {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-placeholder-icon {
    position: absolute;
    color: #bbb;
    font-size: 2rem;
    z-index: 0;
}

/* Floating Action Button (SuperAdmin) */
.fab-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #222;
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    z-index: 1000;
    transition: transform 0.2s;
}

.fab-button:hover {
    transform: scale(1.05);
    background-color: #e63946;
}

/* --- Dashboard Styles --- */

/* 1. Container Utama */
.dashboard-body {
    position: relative;
    min-height: 100vh;
    background-color: #000;
    /* Warna dasar hitam agar gambar lebih pekat */
    overflow-x: hidden;
}

/* 2. Latar Belakang Foto (Dibuat Jelas) */
.dashboard-body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background-image: url('assets/bg dash.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    /* Menaikkan Opacity agar gambar terlihat jelas */
    opacity: 0.8;

    /* Menghapus filter grayscale agar warna asli foto keluar */
    filter: none;

    z-index: -1;
    pointer-events: none;
}

.dash-card,
.table-container,
.dash-header {
    padding: 100px 0 50px;
    /* Memberikan ruang agar kartu terlihat mengapung */
    background: transparent !important;
    position: relative;
    overflow: hidden;
}

/* Container Profil yang diubah menjadi Kartu Digital */
.dash-profile {
    position: relative;
    max-width: 600px;
    /* Ukuran proporsional kartu */
    margin: 0 auto;
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 25px;

    /* Glassmorphism Effect */
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);

    /* Border & Shadow */
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);

    /* Efek 3D Halus */
    transform: perspective(1000px) rotateX(5deg);
    transition: transform 0.5s ease;
}

.dash-profile:hover {
    transform: perspective(1000px) rotateX(0deg) translateY(-5px);
}

/* Watermark Logo Nikkapala di Dalam Kartu (Mirip Hologram KTP) */
.dash-profile::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 35%;
    aspect-ratio: 1 / 1;
    background: url('assets/Logo Nikk.PNG') center/contain no-repeat;
    opacity: 0.1;
    /* Sangat tipis sebagai watermark */
    filter: brightness(0) invert(1);
    z-index: -1;
    pointer-events: none;
}

/* Elemen Foto Profil */
.profile-img-container {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    /* Kotak sedikit tirus agar lebih modern */
    border: 3px solid #ffffff;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

/* Info Teks di Dalam Kartu */
.profile-info {
    flex: 1;
}

.profile-info h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.member-id {
    display: inline-block;
    background: var(--primary-color);
    /* Oranye Nikkapala */
    color: white;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(255, 102, 0, 0.3);
}

.notification-banner {
    background: #fff3e0;
    border-left: 5px solid var(--primary-color);
    padding: 15px 25px;
    margin: 30px 0;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-content p {
    font-weight: 500;
}

/* Container Utama untuk Card Grid */
.dash-grid-new {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    width: 100%;
    padding: 20px;
}

/* Styling Card agar Terlihat Jelas */
.dash-card {
    /* Memberikan latar belakang putih yang cukup tebal agar konten terbaca */
    background: rgba(255, 255, 255, 0.85) !important;

    /* Efek Blur untuk memisahkan detail foto latar belakang */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);

    /* Frame kartu agar lebih tegas */
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;

    padding: 40px 25px;
    text-align: center;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    /* Shadow yang dalam agar kartu terlihat "mengapung" (Efek 3D) */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);

    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

/* Garis Aksen Oranye di Bagian Atas Kartu */
.dash-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: #FF6600;
    /* Warna Oranye Nikkapala */
}

/* Efek Hover: Kartu membesar dan shadow lebih tajam */
.dash-card:hover {
    transform: translateY(-12px) scale(1.03);
    background: rgba(255, 255, 255, 1) !important;
    /* Menjadi putih solid saat disentuh */
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

/* Warna Ikon dan Teks agar Sangat Jelas */
.card-icon {
    font-size: 3.5rem;
    color: #FF6600;
    /* Warna Oranye agar kontras dengan putih */
    margin-bottom: 20px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.dash-card h3 {
    color: #222 !important;
    /* Hitam pekat agar terbaca */
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
}

.dash-footer {
    background: white;
    padding: 20px 0;
    position: fixed;
    bottom: 0;
    width: 100%;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05);
}

.dash-nav {
    display: flex;
    justify-content: space-around;
}

.dash-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
}

.dash-nav-item i {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.dash-nav-item.active {
    color: var(--primary-color);
}

/* --- Forum & Data Table --- */

/* Controls styling with solid white theme */
.forum-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    background: #FFFFFF;
    padding: 25px;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* Soft border for precision */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.search-wrapper {
    flex: 2;
    /* Search takes more space */
    min-width: 280px;
    position: relative;
}

.search-wrapper i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #888888;
    font-size: 0.9rem;
}

.search-wrapper input {
    width: 100%;
    padding: 14px 20px 14px 50px;
    border-radius: 14px;
    border: 1px solid #E0E0E0;
    background: #F9F9F9;
    color: #2D2D2D;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-wrapper input::placeholder {
    color: #AAAAAA;
}

.search-wrapper input:focus {
    background: #FFFFFF;
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(255, 102, 0, 0.1);
}

.filter-wrapper {
    flex: 1;
    /* Filter takes remaining space */
    display: flex;
    gap: 12px;
    min-width: 280px;
}

.filter-wrapper select {
    flex: 1;
    /* Equal width for both selects */
    padding: 14px 20px;
    border-radius: 14px;
    border: 1px solid #E0E0E0;
    background: #F9F9F9;
    color: #2D2D2D;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
    appearance: none;
    /* Remove default arrow */
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23888888'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 14px;
    padding-right: 40px;
}

.filter-wrapper select option {
    background: #FFFFFF;
    color: #2D2D2D;
    padding: 10px;
}

.filter-wrapper select:focus {
    background: #FFFFFF;
    border-color: var(--primary-color);
}

/* Mobile adjustments for controls */
@media (max-width: 600px) {
    .forum-controls {
        padding: 15px;
        gap: 15px;
    }

    .filter-wrapper {
        flex-direction: row;
        /* Keep side by side unless very small */
        width: 100%;
    }

    .search-wrapper {
        width: 100%;
    }
}

@media (max-width: 400px) {
    .filter-wrapper {
        flex-direction: column;
        /* Stack on tiny screens */
    }
}

/* Table styling - Modern Separated Rows */
.table-container {
    background: transparent;
    border: none;
    box-shadow: none;
    overflow: visible;
    margin-bottom: 50px;
}

.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 15px;
    /* Space between rows */
    text-align: left;
    background: transparent;
}

.data-table th {
    background: transparent;
    color: #1a1a1a;
    padding: 10px 20px;
    font-family: 'EB Garamond', serif;
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: none;
    text-shadow: none;
}

.data-table tbody tr {
    background: #FFFFFF;
    border: 1px solid #E0E0E0;
    /* Matches search input border */
    border-radius: 14px;
    /* Matches search input rounding */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.data-table tbody tr:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 12px 25px rgba(255, 102, 0, 0.15);
    border-color: var(--primary-color);
}

.data-table td {
    padding: 20px;
    border: none;
    border-top: 1px solid #E0E0E0;
    border-bottom: 1px solid #E0E0E0;
    font-size: 0.95rem;
    color: #2D2D2D;
    vertical-align: middle;
}

/* Ensure border radiuses are applied to first and last columns */
.data-table tbody td:first-child {
    border-left: 1px solid #E0E0E0;
    border-top-left-radius: 14px;
    border-bottom-left-radius: 14px;
}

.data-table tbody td:last-child {
    border-right: 1px solid #E0E0E0;
    border-top-right-radius: 14px;
    border-bottom-right-radius: 14px;
}

.data-table tbody tr:hover td {
    border-top-color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.data-table tbody tr:hover td:first-child {
    border-left-color: var(--primary-color);
}

.data-table tbody tr:hover td:last-child {
    border-right-color: var(--primary-color);
}

.member-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    pointer-events: none;
    /* Let the row handle the click */
}

/* Specific styling for data columns */
.data-table td:nth-child(4) {
    /* Nia Nikk */
    font-family: 'EB Garamond', serif;
    font-weight: 700;
    color: var(--primary-color);
}

/* --- Responsive Table (Stacking for All Devices) --- */
@media screen and (max-width: 900px) {
    .table-container {
        background: transparent;
        box-shadow: none;
        border: none;
        overflow: visible;
    }

    .data-table,
    .data-table thead,
    .data-table tbody,
    .data-table th,
    .data-table td,
    .data-table tr {
        display: block;
    }

    /* Hide table headers on mobile */
    .data-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .data-table tr {
        background: #FFFFFF;
        margin-bottom: 20px;
        border-radius: 14px;
        padding: 15px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
        border: 1px solid #E0E0E0;
    }

    .data-table td {
        border: none;
        position: relative;
        padding-left: 45% !important;
        text-align: right;
        min-height: 45px;
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }

    .data-table td::before {
        position: absolute;
        left: 20px;
        width: 40%;
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: 800;
        font-family: 'EB Garamond', serif;
        font-size: 0.75rem;
        text-transform: uppercase;
        color: #888;
        content: attr(data-label);
    }

    .data-table tr:hover td {
        background: transparent;
    }
}

/* Status Badges refinement */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.status-hidup {
    background: rgba(76, 175, 80, 0.1);
    color: #2E7D32;
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.status-hidup::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #4CAF50;
    border-radius: 50%;
    box-shadow: 0 0 10px #4CAF50;
}

.status-wafat {
    background: rgba(0, 0, 0, 0.05);
    color: #616161;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.status-wafat::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #757575;
    border-radius: 50%;
}

/* Pagination refinement */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 30px;
}

.page-btn {
    padding: 10px 18px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-btn:hover:not(:disabled) {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 102, 0, 0.3);
}

.page-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(255, 102, 0, 0.3);
}

.page-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.page-info {
    font-size: 0.95rem;
    color: white;
    font-weight: 500;
    margin: 0 15px;
    opacity: 0.9;
}

/* --- Digital ID Card --- */

.id-card-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    padding: 40px 20px;
}

.id-card-container {
    width: 680px;
    /* ISO 7810 Ratio: 85.6mm equivalent */
    height: 428px;
    /* ISO 7810 Ratio: 53.98mm equivalent */
    background: linear-gradient(135deg, #FF6600 0%, #E65C00 100%);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    color: white;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

/* Background Logo Watermark */
.id-card-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 320px;
    height: 320px;
    background: url('assets/Logo Nikk.PNG') center/contain no-repeat;
    opacity: 0.15;
    filter: brightness(0) invert(1);
    pointer-events: none;
    z-index: 1;
}

/* High-Tech Blueprint Pattern Overlay */
.blueprint-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.08) 1.5px, transparent 1.5px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1.5px, transparent 1.5px),
        radial-gradient(circle at center, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
    background-size: 30px 30px, 30px 30px, 100% 100%;
    pointer-events: none;
    z-index: 2;
}

.id-card-container::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.glass-card {
    width: 92%;
    height: 88%;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    z-index: 3;
    padding: 25px;
    display: flex;
    position: relative;
}

/* Internal Glow */
.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.15), transparent);
    border-radius: 20px 20px 0 0;
    pointer-events: none;
}

.id-info-item {
    margin-bottom: 15px;
}

.id-info-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-dark);
    font-weight: 700;
    letter-spacing: 1.5px;
    opacity: 0.6;
    margin-bottom: 4px;
    display: block;
}

.id-info-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.id-info-value.nia-nikk {
    font-family: 'EB Garamond', serif;
    font-size: 1.5rem;
    color: var(--primary-color);
    letter-spacing: 2px;
}

/* Side Profile & QR */
.id-card-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.id-photo-box {
    width: 100px;
    height: 125px;
    background: #eee;
    border-radius: 4px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.id-photo-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.id-qr-box {
    width: 35px;
    height: 35px;
    background: white;
    padding: 1px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.id-qr-box img {
    width: 5%;
    height: 5%;
}

/* Card Action Buttons */
.card-actions {
    margin-top: 40px;
    display: flex;
    gap: 15px;
}

/* Glassmorphism Effect */
.glass-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    pointer-events: none;
}

/* --- Responsive --- */

@media (max-width: 992px) {
    .sejarah-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .sejarah-image {
        order: -1;
    }

    .sejarah-image img {
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: flex !important;
        /* Always visible on all devices */
        gap: 12px;
    }

    .nav-link {
        font-size: 0.75rem;
    }

    .btn.btn-outline {
        font-size: 0.7rem;
        padding: 6px 12px;
    }

    .hamburger {
        display: none !important;
        /* Hamburger permanently hidden */
    }

    .logo img {
        height: 60px;
    }

    header {
        padding: var(--space-1) 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .dash-profile {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 600px) {

    html,
    body {
        width: 100% !important;
        overflow-x: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .container {
        padding-left: 0 !important;
        padding-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }

    .section {
        padding: 40px 0 !important;
        width: 100% !important;
    }

    .nav-container {
        padding: 0 10px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .hero {
        width: 100% !important;
        margin: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .hero-split {
        width: 100% !important;
        padding: 0 15px !important;
    }

    .logo-text {
        margin-left: 5px !important;
    }

    .logo-title {
        font-size: 0.85rem !important;
    }

    .logo-subtitle {
        font-size: 0.65rem !important;
        max-width: 140px;
    }

    #contact-link {
        display: block !important;
        width: 60px !important;
        line-height: 1.1 !important;
        text-align: center !important;
        white-space: normal !important;
        font-size: 0.7rem !important;
    }

    .logo img {
        margin: 5px !important;
        height: 60px !important;
    }

    footer {
        width: 100% !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .pertamina-grid-wrapper {
        padding: 0 10px !important;
        justify-items: center;
        grid-template-columns: 1fr !important;
        /* Stack large and small col groups */
    }

    .pertamina-small-col {
        grid-template-columns: 1fr 1fr !important;
        /* Keep 2 items side-by-side */
        gap: 10px !important;
        width: 100%;
    }

    .p-card-content {
        padding: 12px !important;
        /* Compact padding on mobile */
        gap: 6px !important;
    }

    .p-title {
        font-size: 0.9rem !important;
    }

    .large .p-title {
        font-size: 1.2rem !important;
    }

    .news-header {
        text-align: center !important;
        margin-bottom: 20px !important;
    }

    .news-item {
        flex-direction: row;
        justify-content: space-between;
        padding: 15px 10px !important;
    }
}

/* Styling tombol navigasi agar kecil dan estetik di pojok */
.small-nav {
    font-size: 0.8rem !important;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.9);
    /* Putih bersih */
    color: #333 !important;
    border-radius: 50px;
    /* Bentuk kapsul */
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.small-nav:hover {
    background: var(--primary-color);
    /* Berubah oranye saat hover */
    color: white !important;
    transform: translateY(-2px);
}

.small-nav i {
    font-size: 0.85rem;
}

/* --- Premium Section Divider --- */
.section-divider {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 1px;
    margin: 80px auto;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 102, 0, 0.1) 20%,
            var(--primary-color) 50%,
            rgba(255, 102, 0, 0.1) 80%,
            transparent 100%);
    opacity: 0.4;
}

.section-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--primary-color), 0 0 30px var(--primary-color);
}

.section-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 15px;
    background: radial-gradient(circle, rgba(255, 102, 0, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

/* ============================================
   DASHBOARD SHARED STYLES
   Digunakan oleh dashboard.html & admin_dashboard.html
   ============================================ */

.dashboard-page {
    --primary-orange: #f26a15;
    --orange-shadow: rgba(242, 106, 21, 0.3);
    --bg-color: #f8f9fa;
}

.dashboard-page * {
    box-sizing: border-box;
    font-family: 'EB Garamond', serif;
}

.dashboard-page body,
body.dashboard-page {
    background-color: #f8f9fa;
    min-height: 100vh;
}

.dashboard-page .app-wrapper {
    width: 100%;
    margin: 0 auto;
    background-color: #ffffff;
    min-height: 100vh;
    position: relative;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.dashboard-page .header-hero {
    height: 50vh;
    min-height: 350px;
    background-image: url('assets/bg%20dash.jpeg');
    background-size: cover;
    background-position: center;
    position: relative;
}

@media (max-width: 768px) {
    .dashboard-page .header-hero {
        height: 250px;
    }
}

.dashboard-page .user-tag {
    background: linear-gradient(135deg, var(--primary-orange), #ff8c00);
    color: white;
    padding: 15px 25px;
    border-radius: 24px;
    margin: -60px auto 0 auto;
    width: 85%;
    max-width: 650px;
    position: relative;
    z-index: 10;
    box-shadow: 0 12px 35px var(--orange-shadow), 0 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 25px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.dashboard-page .profile-box {
    width: 90px;
    height: 90px;
    min-width: 90px;
    border: 3px solid #FFD700;
    border-radius: 18px;
    background: white;
    padding: 3px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.dashboard-page .profile-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.dashboard-page .user-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
    flex: 1;
}

.dashboard-page .greetings {
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    margin-bottom: 0px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.dashboard-page .user-name {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    margin-top: -2px;
}

.dashboard-page .verified-icon {
    font-size: 18px;
    color: #ffd700;
    margin-left: 8px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.dashboard-page .user-id {
    font-size: 14px;
    opacity: 0.95;
    font-family: monospace;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.dashboard-page .user-motto {
    font-size: 13.5px;
    font-weight: 500;
    font-style: italic;
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 5px 12px;
    border-radius: 8px;
    margin-top: 5px;
    display: inline-block;
    align-self: flex-start;
}

@media (max-width: 600px) {
    .dashboard-page .user-tag {
        flex-direction: row;
        width: 92%;
        padding: 15px;
        gap: 15px;
        border-radius: 20px;
        margin-top: -50px;
    }

    .dashboard-page .profile-box {
        width: 70px;
        height: 70px;
        min-width: 70px;
        border-radius: 14px;
        border-width: 2px;
    }

    .dashboard-page .profile-box img {
        border-radius: 10px;
    }

    .dashboard-page .greetings {
        font-size: 10px;
        margin-bottom: 0px;
    }

    .dashboard-page .user-name {
        font-size: 18px;
    }

    .dashboard-page .user-id {
        font-size: 12px;
        font-weight: bold;
    }

    .dashboard-page .user-motto {
        font-size: 11px;
        padding: 4px 10px;
        margin-top: 3px;
    }

    .dashboard-page .icon-wrapper {
        border-width: 1px !important;
    }
}

.dashboard-page .grid-container-wrapper {
    position: relative;
    width: 100%;
    flex: 1;
}

.dashboard-page .watermark {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

.dashboard-page .grid-menu {
    position: relative;
    z-index: 5;
    padding: 30px 5% 60px 5%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    column-gap: 30px;
    row-gap: 50px;
    width: 100%;
    max-width: 1100px;
    /* Dipersempit sedikit agar pas 4 item */
    margin: 0 auto;
}

.dashboard-page .grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 15px;
    width: 240px;
    /* Diperkecil dari 280px agar bisa muat 4 per baris */
}

@media (max-width: 768px) {
    .dashboard-page .grid-menu {
        padding: 40px 5%;
        column-gap: 20px;
        row-gap: 30px;
    }

    .dashboard-page .grid-item {
        width: calc(50% - 10px);
        padding: 10px;
    }

    .dashboard-page .icon-wrapper {
        width: 70px;
        height: 70px;
        border-width: 1px !important;
        border-color: #f0f0f0 !important;
        margin-bottom: 8px;
    }

    .dashboard-page .grid-title {
        font-size: 12px;
    }
}

.dashboard-page .grid-item:hover {
    transform: scale(1.1);
}

.dashboard-page .grid-item:active {
    transform: scale(0.95);
}

.dashboard-page .icon-wrapper {
    width: 85px;
    height: 85px;
    border-radius: 24px;
    background: #ffffff;
    border: 100px solid #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.dashboard-page .grid-item:hover .icon-wrapper {
    box-shadow: 0 12px 24px rgba(242, 106, 21, 0.2);
    border-color: rgba(242, 106, 21, 0.3);
}

/* Fix for all Font Awesome icons in dashboard */
.dashboard-page i[class^="fa-"],
.dashboard-page i[class*=" fa-"] {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Solid", "Font Awesome 6 Brands", sans-serif !important;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    font-weight: 900;
    /* Default to solid */
}

/* Brands specific weight */
.dashboard-page i.fa-brands {
    font-weight: 400 !important;
}

.dashboard-page .icon-wrapper i {
    font-size: 30px;
    color: var(--primary-orange);
    transition: all 0.3s ease;
}

.dashboard-page .grid-title {
    font-size: 14px;
    color: #333;
    text-align: center;
    font-weight: 600;
    line-height: 1.4;
}

.dashboard-page .logout-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    max-width: 650px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    padding: 10px 0 20px;
}

.dashboard-page .home-btn-bottom {
    background: var(--primary-orange);
    color: white;
    padding: 14px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.6);
    transition: all 0.3s ease;
    flex: 1;
    position: relative;
    z-index: 10;
}

.dashboard-page .home-btn-bottom:hover {
    transform: translateY(-3px);
    filter: brightness(1.1);
    box-shadow: 0 8px 20px var(--orange-shadow);
}

.dashboard-page .logout-btn-bottom {
    background: #e74c3c;
    color: white;
    padding: 14px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.6);
    transition: all 0.3s ease;
    flex: 1;
    position: relative;
    z-index: 10;
}

.dashboard-page .logout-btn-bottom:hover {
    transform: translateY(-3px);
    background: #c0392b;
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.7);
}

/* --- Global Toast Notifications --- */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: #ffffff;
    color: #333;
    padding: 12px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    pointer-events: auto;
    animation: toastSlideIn 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transition: all 0.5s ease;
    border-left: 5px solid var(--primary-color);
}

.toast.success {
    border-left-color: #10b981;
}

.toast.error {
    border-left-color: #ef4444;
}

.toast.warning {
    border-left-color: #f59e0b;
}

.toast.info {
    border-left-color: #3b82f6;
}

@keyframes toastSlideIn {
    from {
        transform: translateX(100%) scale(0.5);
        opacity: 0;
    }

    to {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}