/* ==========================================================================
   STYLE-NU.CSS (Remake Base from Style-Mirai for Pondok Pesantren)
   ========================================================================== */

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* Jaga agar section title tidak tertutup navbar */
}

:root {
    --primary: #157347;       /* Hijau NU */
    --dark: #1e293b;          /* Deep Slate / Charcoal */
    --accent: #c5a021;        /* Emas Cemerlang */
    --text-gray: #64748b;     /* Muted Text */
    --primary-light: #f0fdf4; /* Light Green Background */
}

body { 
    font-family: 'Plus Jakarta Sans', sans-serif; 
    background-color: #ffffff;
    color: var(--dark);
    line-height: 1.6;
}

/* --- 1. Remake Navbar (Dibuat Lebih Tebal & Proporsional) --- */
.navbar-area {
    position: fixed;
    top: 25px;
    width: 92%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 100px;
    padding: 15px 40px; /* Padding ditingkatkan agar lebih tebal */
    z-index: 1000;
    border: 1px solid rgba(21, 115, 71, 0.08);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04); /* Menambah shadow halus */
    transition: 0.4s ease;
}

.navbar-brand { 
    font-weight: 800; 
    letter-spacing: -0.5px; 
    font-size: 1.4rem; /* Diperbesar sedikit */
    color: var(--primary) !important;
}

.nav-link { 
    font-weight: 700; 
    font-size: 0.9rem; /* Diperbesar dari 0.85rem */
    text-transform: uppercase; 
    color: var(--dark) !important;
    margin: 0 12px; /* Jarak antar menu diperlebar */
    letter-spacing: 0.5px;
    transition: 0.2s ease;
}

/* --- 2. Remake Hero Section (Simetris & Vertically Centered) --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center; /* Menjaga teks kiri dan gambar kanan sejajar vertikal */
    padding-top: 140px; /* Memberi ruang aman dari floating navbar */
    padding-bottom: 80px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
}

.hero-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-wrapper img {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    box-shadow: 20px 20px 60px rgba(21, 115, 71, 0.12); /* Shadow disesuaikan warna NU */
    object-fit: cover;
    width: 100%;
    max-width: 520px; /* Batasi lebar maksimal gambar agar seimbang */
    height: 450px; /* Set tinggi pasti agar bentuk organik konsisten */
}

/* --- 3. Perbaikan Kontras Teks Hero --- */
.hero-content h1 {
    color: var(--dark); /* DIUBAH KE DARK agar terlihat jelas di background putih/hijau muda */
    font-size: clamp(2.5rem, 4.5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 25px;
    letter-spacing: -1.5px;
}

/* Jika menggunakan span pembungkus warna hijau */
.hero-content h1 span.text-success, 
.hero-content h1 span.text-primary {
    color: var(--primary) !important; 
    display: inline; /* Biarkan mengalir natural atau block sesuai selera */
}

.hero-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 35px;
    max-width: 540px;
    color: var(--text-gray); /* Menggunakan text-gray agar tidak terlalu pekat */
}

/* --- Custom Nav Slider Dot --- */
.tns-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}
.tns-nav button {
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.4);
    border: none;
    margin: 0 5px;
    border-radius: 50%;
    transition: 0.3s;
}
.tns-nav button.tns-nav-active {
    background: var(--primary);
    width: 30px;
    border-radius: 10px;
}

/* Mengganti tulisan Kanji Jepang menjadi kaligrafi dekoratif transparan */
.kanji-bg {
    position: absolute;
    font-size: 16rem;
    font-weight: 900;
    color: rgba(21, 115, 71, 0.03);
    right: -2%;
    top: 10%;
    z-index: -1;
    user-select: none;
    font-family: serif;
    content: "العلم"; 
}

.hero-content p.text-muted {
    font-size: 1.1rem;
    max-width: 500px;
    color: var(--text-gray);
    border-left: 3px solid var(--primary);
    padding-left: 20px;
}

/* --- Abstract Decal Shapes --- */
.circle-accent {
    position: absolute;
    width: 400px;
    height: 400px;
    background: var(--primary);
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.08;
    top: -100px;
    left: -100px;
    z-index: -1;
}

/* --- Bento Card Layout (Program & Service) --- */
.bento-card, .program-card, .bento-blog-card {
    background: #f8fafc;
    border-radius: 24px;
    padding: 35px;
    height: auto !important; /* Diubah menjadi auto agar dinamis memeluk isi konten */
    display: block; /* Menggunakan block agar alur form vertical konsisten */
    transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid #e2e8f0;
}

.bento-card:hover, .program-card:hover, .bento-blog-card:hover {
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(21, 115, 71, 0.08);
    transform: translateY(-8px);
}

.bento-card.position-relative { cursor: pointer; }
.bento-card.position-relative:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    transform: translateY(-5px);
}

.icon-box, .icon-circle {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 24px;
}

/* --- Buttons --- */
.btn-dark-modern, .btn-nu {
    background: var(--primary);
    color: #fff;
    padding: 16px 38px;
    border-radius: 14px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: 0.3s ease;
    border: none;
}

.btn-dark-modern:hover, .btn-nu:hover {
    background: #0e5a36;
    color: #fff;
    box-shadow: 0 10px 25px rgba(21, 115, 71, 0.25);
    transform: scale(1.02);
}

.btn-dark-modern.bg-primary {
    background-color: var(--primary) !important;
}

/* --- Section Typography & Layout --- */
.section-padding {
    padding: 120px 0;
}

.sc-title, .section-title { 
    font-weight: 800; 
    font-size: clamp(2.2rem, 5vw, 2.8rem); 
    margin-bottom: 50px;
    letter-spacing: -1px;
}

.sc-title span, .section-title span { 
    color: var(--primary) !important; 
}

/* --- Gallery Layout (Bento Adaptive Box) --- */
.gallery-item { 
    border-radius: 24px; 
    position: relative; 
    overflow: hidden; 
    height: 300px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}
.gallery-item img { 
    transition: transform 0.5s ease; 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}
.gallery-item:hover img { 
    transform: scale(1.08); 
}

/* --- Page: Service/Program Detail --- */
.detail-header {
    padding-top: 180px;
    padding-bottom: 80px;
    background: var(--primary-light);
}

.sticky-sidebar {
    position: sticky;
    top: 120px;
    z-index: 10;
}

.syllabus-item {
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
}

.syllabus-number {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    font-weight: 700;
}

.price-card {
    background: var(--dark);
    color: #fff;
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
}

/* --- Page: Admin Login Panel --- */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background-color: var(--dark);
}

.login-wrapper::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: url('../../../assets/uploads/hero-bg2.jpg'); 
    background-size: cover;
    background-position: center;
    filter: blur(8px) brightness(0.5);
    transform: scale(1.05);
    z-index: 1;
}

.login-box {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 50px;
    border-radius: 30px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
    width: 100%;
    max-width: 450px;
    z-index: 5;
    position: relative;
}

.login-box h2 {
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 15px;
    color: var(--dark);
}

.form-control-modern {
    background: #f1f5f9;
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 12px 18px; /* Lebih proporsional dan tidak terlalu renggang */
    transition: 0.3s ease;
    font-size: 0.95rem;
}

.form-control-modern:focus {
    background: #fff;
    border-color: var(--primary);
    box-shadow: none;
}

/* --- Back-End Admin Layout --- */
.admin-main {
    display: flex;
    min-height: 100vh;
    background: #f8fafc;
}

.admin-sidebar {
    width: 280px;
    background: var(--dark);
    padding: 40px 25px;
    position: fixed;
    height: 100vh;
    color: #fff;
}

.admin-content {
    flex: 1;
    margin-left: 280px;
    padding: 40px 50px;
    background: #f8fafc;
}

/* Mengunci baris kolom admin agar tidak stretch otomatis */
.admin-content .row {
    align-items: flex-start; 
}

/* Memberikan jarak antar tumpukan bento card di sisi admin panel */
.admin-content .col-lg-8 .bento-card {
    margin-bottom: 24px;
}

/* Mempercantik struktur label form di panel admin */
.admin-content label {
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    color: #475569;
    margin-bottom: 8px !important;
    font-weight: 700;
}

.sidebar-nav {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.sidebar-nav li a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    display: block;
    padding: 14px 18px;
    font-weight: 600;
    border-radius: 12px;
    transition: 0.3s ease;
}

.sidebar-nav li a:hover, .sidebar-nav li a.active {
    color: #fff;
    background: var(--primary);
    padding-left: 22px;
}

.stat-card {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.01);
}

/* --- Custom Admin Data Table --- */
.table-nahdlatul-ulum {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}

.table-nahdlatul-ulum thead th {
    background-color: #f8fafc;
    border-top: 1px solid #e2e8f0;
    border-bottom: 2px solid #e2e8f0;
    color: var(--dark);
    font-weight: 700;
    padding: 16px;
}

.table-nahdlatul-ulum tbody td {
    border-bottom: 1px solid #e2e8f0;
    padding: 16px;
    transition: 0.2s ease;
}

.table-nahdlatul-ulum td, .table-nahdlatul-ulum th {
    border-right: 1px solid #f1f5f9;
}

.table-nahdlatul-ulum td:last-child, .table-nahdlatul-ulum th:last-child {
    border-right: none;
}

.table-nahdlatul-ulum tbody tr:hover td {
    background-color: rgba(21, 115, 71, 0.03); 
}

/* --- Badge Status Kepegawaian / Kesiswaan --- */
.badge-status {
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-baru { background: #e0e7ff; color: #4338ca; }       
.status-pelatihan { background: #fef3c7; color: #92400e; }  
.status-wawancara { background: #fce7f3; color: #9d174d; }  
.status-coe { background: #d1fae5; color: #065f46; }        
.status-terbang { background: #dcfce7; color: #166534; border: 1px solid #22c55e; } 

#lokasi-pondok .btn-nu {
    background-color: var(--primary);
    border-radius: 14px;
    font-weight: 700;
    transition: all 0.3s ease;
}
#lokasi-pondok .btn-nu:hover {
    background-color: #0e5a36;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(21, 115, 71, 0.3);
}