/* =========================
   RESET & GLOBAL
========================= */
/* =========================
   WHATSAPP FLOAT FIX
========================= */
.wa-float {
    position: fixed;
    bottom: 20px;
    right: 20px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    background: #25D366;
    color: #fff;

    padding: 10px 16px;
    border-radius: 50px;

    font-size: 14px;
    font-weight: 500;

    text-decoration: none;
    white-space: nowrap;

    box-shadow: 0 6px 15px rgba(0,0,0,0.2);

    z-index: 999;
    transition: all 0.3s ease;
}

/* ICON */
.wa-float i {
    font-size: 18px;
    line-height: 1;
}

/* TEXT */
.wa-float span {
    font-size: 14px;
    line-height: 1;
}

/* HOVER */
.wa-float:hover {
    background: #1ebe5d;
    transform: translateY(-2px);
}

/* =========================
   MOBILE VERSION
========================= */
@media (max-width: 768px) {
    .wa-float {
        padding: 12px;
        border-radius: 50%;
    }

    .wa-float span {
        display: none;
    }

    .wa-float i {
        font-size: 20px;
    }
}


.footer {
    background: #0f172a;
    color: #e2e8f0;
    padding: 40px 20px 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 30px;
    max-width: 1100px;
    margin: auto;
}

.footer h3, .footer h4 {
    margin-bottom: 10px;
    color: #fff;
}

.footer p {
    font-size: 14px;
    line-height: 1.6;
}

.footer ul {
    list-style: none;
    padding: 0;
}

.footer ul li {
    margin-bottom: 8px;
}

.footer a {
    color: #cbd5f5;
    text-decoration: none;
    transition: 0.2s;
}

.footer a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    border-top: 1px solid #1e293b;
    padding-top: 15px;
    font-size: 14px;
}

.footer-action {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-footer {
    display: inline-block;
    padding: 10px 15px;
    background: #4f46e5;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    text-align: center;
    transition: 0.2s;
}

.btn-footer:hover {
    background: #4338ca;
    transform: translateY(-2px);
}

.btn-footer.secondary {
    background: #22c55e;
}

.btn-footer.secondary:hover {
    background: #16a34a;
}



body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    background: #f5f6fa;
    line-height: 1.6;
    letter-spacing: 0.3px;
}

h1, h2, h3 {
    font-weight: 600;
}

p {
    font-weight: 400;
}

/* =========================
   NAVBAR
========================= */
nav {
    background: #2c3e50;
    padding: 15px;
}

nav a {
    color: white;
    margin-right: 15px;
    text-decoration: none;
}

/* =========================
   HERO SLIDER
========================= */
.hero-slider {
    position: relative;
    height: 90vh;
    overflow: hidden;
    color: white;
}

.slides {
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    background-size: cover;
    background-position: center;

    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;

    transition: opacity 1s ease, transform 1s ease;
}

.slide.active {
    opacity: 1;
    transform: scale(1.05);
}

/* overlay */
.overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.7));
}

/* content */
.content {
    position: relative;
    z-index: 2;
    color: white;
}

/* text animation */
.title {
    font-size: 48px;
    transform: translateY(40px);
    opacity: 0;
    transition: 1s;
}

.subtitle {
    margin-top: 10px;
    transform: translateY(40px);
    opacity: 0;
    transition: 1s 0.3s;
}

.slide.active .title,
.slide.active .subtitle {
    transform: translateY(0);
    opacity: 1;
}

/* NAV BUTTON */
.nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    border: none;
    color: white;
    font-size: 30px;
    padding: 10px 15px;
    cursor: pointer;
}

.prev { left: 20px; }
.next { right: 20px; }

/* DOTS */
.dots {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
}

.dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 5px;
    background: white;
    border-radius: 50%;
    opacity: 0.5;
    cursor: pointer;
}

.dot.active {
    opacity: 1;
    background: #03a54c;
}

/* =========================
   SECTION
========================= */
.section {
    padding: 40px 20px;
}

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

/* =========================
   GRID
========================= */
.grid,
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 20px;
}

.grid-galeri {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 10px;
}

/* =========================
   CARD
========================= */
.card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

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

.card-body {
    padding: 15px;
}

.card-body h3 {
    margin-bottom: 10px;
}

/* =========================
   FEATURE
========================= */
.feature {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

/* =========================
   BUTTON
========================= */
.btn {
    background: #e74c3c;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
}

.btn-small {
    display: inline-block;
    margin-top: 10px;
    background: #3498db;
    color: white;
    padding: 6px 12px;
    border-radius: 5px;
    text-decoration: none;
}

/* =========================
   GALERI
========================= */
.galeri-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 5px;
    transition: 0.4s;
}

.galeri-item:hover img {
    transform: scale(1.1);
}

.galeri-card .galeri-overlay {
    pointer-events: none;
}

/* =========================
   CTA
========================= */
.cta {
    background: #3f8ca3;
    color: white;
    text-align: center;
    padding: 50px 20px;
}

/* =========================
   ANIMATION
========================= */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: 0.8s;
}

.fade-in.show {
    opacity: 1;
    transform: translateY(0);
}

/* =========================
   RESPONSIVE
========================= */
@media(max-width:768px){

    .grid,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .grid-galeri {
        grid-template-columns: repeat(2,1fr);
    }

    .title {
        font-size: 28px;
    }
}

/* ROOT */
:root {
    --primary: #046b2b;
    --bg: #f8fafc;
    --dark: #0f172a;
}

/* LAYOUT */
.admin {
    display: flex;
    min-height: 100vh;
    background: var(--bg);
}

/* SIDEBAR */
.sidebar {
    width: 240px;
    background: var(--dark);
    color: white;
    padding: 20px;
    transition: 0.3s;
}

.sidebar a {
    display: block;
    color: #cbd5e1;
    padding: 10px;
    border-radius: 8px;
    text-decoration: none;
    margin-bottom: 8px;
}

.sidebar a:hover {
    background: #1e293b;
    color: white;
}

/* MAIN */
.main {
    flex: 1;
    padding: 20px;
}

/* TOPBAR */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.menu-btn {
    display: none;
    font-size: 20px;
    background: none;
    border: none;
}

/* USER */
.user {
    background: white;
    padding: 8px 15px;
    border-radius: 10px;
}

/* STATS */
.stats {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 20px;
}

.card-stat {
    background: white;
    padding: 20px;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
}

.card-stat h3 {
    font-size: 28px;
}

/* CARD */
.card {
    background: white;
    padding: 20px;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
}

/* GRID */
.grid-2 {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

/* MOBILE */
@media(max-width:768px){

    .sidebar {
        position: fixed;
        left: -260px;
        top: 0;
        height: 100%;
        z-index: 999;
    }

    .sidebar.show {
        left: 0;
    }

    .menu-btn {
        display: block;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }
}
/* HEADER SIDEBAR */
.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.collapse-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 16px;
}

/* MENU */
.sidebar a {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar .icon {
    font-size: 18px;
}

/* COLLAPSE MODE */
.sidebar.collapsed {
    width: 70px;
}

.sidebar.collapsed .text {
    display: none;
}

.sidebar.collapsed .logo {
    display: none;
}

/* MAIN SHIFT */
.main {
    transition: 0.3s;
}

.sidebar.collapsed ~ .main {
    margin-left: 70px;
}

/* RESPONSIVE FIX */
@media(max-width:768px){
    .sidebar.collapsed {
        width: 240px;
    }
}

/* GRID GALERI */
.grid-galeri {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* CARD */
.galeri-card {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    cursor: pointer;
}

/* IMAGE */
.galeri-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: 0.4s;
}

/* OVERLAY */
.galeri-card .galeri-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    color: white;

    display: flex;
    flex-direction: column;
    justify-content: end;

    padding: 15px;

    opacity: 0;
    transition: 0.3s;
}

/* HOVER EFFECT */
.galeri-card:hover img {
    transform: scale(1.1);
}

.galeri-card:hover .overlay {
    opacity: 1;
}

/* RESPONSIVE */
@media(max-width:1024px){
    .grid-galeri {
        grid-template-columns: repeat(3,1fr);
    }
}

@media(max-width:768px){
    .grid-galeri {
        grid-template-columns: repeat(2,1fr);
    }
}

@media(max-width:500px){
    .grid-galeri {
        grid-template-columns: 1fr;
    }
}
.galeri-card {
    position: relative;
    overflow: hidden;
}
.galeri-card img {
    width: 100%;
    height: 220px; /* penting */
    object-fit: cover;
    display: block;
}
.galeri-card .galeri-overlay {
    position: absolute;
    bottom: 0;   /* ❗ ubah dari inset */
    left: 0;
    right: 0;

    background: rgba(0,0,0,0.6);
    color: white;

    padding: 10px;

    opacity: 0;
    transition: 0.3s;
}
.galeri-card:hover .overlay {
    opacity: 1;
}
/* LIGHTBOX BACKDROP */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0,0,0,0.9);

    justify-content: center;
    align-items: center;
}

/* IMAGE */
.lightbox-img {
    max-width: 90%;
    max-height: 80%;
    border-radius: 10px;
    animation: zoomIn 0.3s ease;
}

/* CLOSE BUTTON */
.lightbox .close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

/* ANIMATION */
@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}