/* ======================================================
   GLOBAL STYLES
   - Body, Container, Links
====================================================== */
body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    background-color: #f8f9fa;
    color: #333;
    margin: 0;
    padding: 0;
    padding-top: 70px; /* Jarak untuk navbar di atas */
}

a {
    color: #0d6efd;
    text-decoration: none;
    transition: 0.3s ease;
}

a:hover {
    text-decoration: underline;
}

.container {
    width: 100%;
    max-width: 1700px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ======================================================
   NAVBAR
====================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: linear-gradient(90deg, #1a1a1a, #222);
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
    z-index: 9999;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: 14px 18px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    transition: 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    background: #ff6600;
    color: #fff;
}

/* Dropdown */
.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 200px;
    list-style: none;
    padding: 6px 0;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease;
}

.nav-item:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-menu li a {
    display: block;
    padding: 10px 15px;
    font-size: 13px;
    color: #333;
}

.sub-menu li a:hover {
    background: #f1f3f5;
}

/* ======================================================
   HERO HEADER (dibawah navbar)
====================================================== */
.header-hero {
    position: relative;
    margin-top: 0px; /* Jarak aman dibawah navbar */
    width: 100%;
    height: 40vh;
    background-size: cover;
    background-position: center;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    overflow: hidden;
    z-index: 998;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.6), rgba(0,0,0,0.2));
    z-index: 1;
    display: flex;
    align-items: center;
}

.header-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-logo img {
    height: 90px;
    margin-bottom: 20px;
}

/* ======================================================
   HERO TEXT CONTAINER
====================================================== */
.hero-text-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* agar card muncul di atas */
    flex-wrap: wrap;
    width: 100%;
    gap: 20px;
}

/* ================= HERO LEFT ================= */
.hero-text-left {
    flex: 1;
    min-width: 400px;
    bottom: 0px;               /* Jarak dari bawah hero */
    left: 0px;                /* Jarak dari kanan hero */
   
    background: rgba(0,0,0,0.5); /* card transparan */
    padding: 5px 5px;
    border-radius: 0px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    color: #fff;
}

.hero-text-left h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.hero-tagline {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 20px;
    text-shadow: 1px 1px 6px rgba(0,0,0,0.5);
}

/* ================= INFO BOX DI BAWAH ================= */

/* ================= HERO RIGHT ================= */
/* ================= HERO RIGHT - POSISI BAWAH KANAN ================= */
/* ================= HERO RIGHT - POSISI BAWAH KANAN ================= */
.hero-text-right {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    
    position: absolute;         /* Posisi relatif terhadap header */
    bottom: 0px;               /* Jarak dari bawah hero */
    right: 0px;                /* Jarak dari kanan hero */
    max-width: 500px;           /* Lebar maksimal */
    background: rgba(251, 249, 249, 0.5); /* Card transparan */
    padding: 5px 5px;
    border-radius: 0px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    color: #fff;
    font-size: 0.50rem;
    text-align: center;
}

.hero-text-right h2 {
    font-size: 1.5rem;
    font-weight: 500;
    margin: 0;
    text-shadow: 1px 1px 6px rgba(0,0,0,0.6);
}

/* ================= INFO BOX - POSISI BAWAH KIRI ================= */
.info-box {
    position: absolute;           /* Posisi relatif terhadap hero */
    bottom: 0px;                 /* Jarak dari bawah hero */
    left: 0px;                   /* Jarak dari kiri hero */
    display: flex;
    gap: 20px;
    background: rgba(110, 70, 1, 0.5);  /* Card transparan */
    padding: 10px 15px;
    border-radius: 0px;
    color: #fff;
    font-size: 0.80rem;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    z-index: 5;
}

/* Styling tanggal & counter */
.info-date,
.info-counter {
    margin: 0;
}

/* ================= INFO BOX - BAWAH KIRI ================= */
.info-left {
    position: absolute;           /* Posisi relatif terhadap hero */
    bottom: 0px;                 /* Jarak dari bawah hero */
    left: 0px;                   /* Jarak dari kiri hero */
    display: flex;
    gap: 20px;
    background: rgba(0,0,0,0.5);  /* Card transparan */
    padding: 10px 15px;
    border-radius: 0px;
    color: #fff;
    font-size: 0.80rem;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    z-index: 5;
}

/* Styling tanggal & counter */
.info-date,
.info-counter {
    margin: 0;
}

/* ======================================================
   MAIN CONTENT
====================================================== */
.main-content {
    padding: 30px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.home-layout {
    display: grid;
    grid-template-columns: 1fr 2.5fr 1fr;
    gap: 20px;
}

.sidebar-left,
.sidebar-right,
.content-main {
    background: #fff;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* ======================================================
   FORM STYLES
====================================================== */
.form-label {
    font-weight: 600;
    font-size: 14px;
}

.form-control,
.form-select {
    border-radius: 6px;
    border: 1px solid #dcdde1;
    padding: 8px 12px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
}

/* ======================================================
   FOOTER
====================================================== */
footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 25px 0;
    text-align: center;
    margin-top: 40px;
    font-size: 14px;
}

/* ======================================================
   RESPONSIVE
====================================================== */
@media (max-width: 992px) {
    body { padding-top: 70px; } /* Navbar tetap di atas */
    .header-hero { height: 150px; }
    .nav-menu { flex-direction: column; background: #1a1a1a; width: 100%; }
    .nav-link { width: 100%; border-top: 1px solid rgba(255,255,255,0.1); }
    .sub-menu { position: static; display: none; opacity: 1; visibility: visible; transform: none; box-shadow: none; }
    .nav-item:hover > .sub-menu { display: block; }
    .home-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .hero-text-container { flex-direction: column; text-align: center; }
    .hero-text-right { text-align: center; margin-top: 15px; }
    .hero-text-left h1 { font-size: 2.2rem; }
    .hero-text-right h2 { font-size: 1.2rem; }
}

/* =============================== */
.galeri-section {
    margin-bottom:50px;
}

.galeri-grid {
    display:flex;
    flex-wrap:wrap;
    gap:20px;
}

.galeri-item {
    text-align:center;
}

.galeri-item img {
    width:190px;   /* 5 cm */
    height:190px;  /* 5 cm */
    object-fit:cover;
    border-radius:10px;
    box-shadow:0 4px 12px rgba(0,0,0,0.1);
    transition:0.3s ease;
}

.galeri-item img:hover {
    transform:scale(1.05);
}

.galeri-item small {
    display:block;
    margin-top:8px;
    font-size:13px;
    color:#555;
}

/* ===== LAYOUT ===== */


/* ===== BERITA ===== */

.content img {
    width:190px;
    height:190px;
    object-fit:cover;
    border-radius:8px;
}

.news-title { 
    font-size:20px; 
    font-weight:600; 
    margin-bottom:5px;
}

.news-meta { 
    font-size:13px; 
    color:#777; 
    margin-bottom:10px; 
}

.news-excerpt { 
    font-size:14px; 
    text-align:justify; 
    line-height:1.8; 
}