/* ======== GLOBAL RESET & FONTS ======== */
html {
    scroll-behavior: smooth;
}
body {
    font-family: "Inter", sans-serif;
    background-color: #fffafc;
    color: #333;
}
h1,
h2,
h3,
h4 {
    font-family: "Playfair Display", serif;
}

/* ======== NAVBAR ======== */
header {
    background-color: #f7cac9;
    padding: 20px;
    text-align: center;
    border-radius: 10px;
    margin-bottom: 30px;
}
.logo {
    max-height: 80px;
    margin-bottom: 10px;
}
header p {
    font-size: 1.2rem;
    font-style: italic;
    color: #555;
}

/* ======== ADMIN MOBILE NAVBAR ======== */
.admin-mobile-navbar {
    background-color: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    z-index: 1030;
}

/* ======== CARD ======== */
.card-img-top {
    height: 200px;
    object-fit: cover;
    border-radius: 0.5rem 0.5rem 0 0;
}
.deskripsi {
    max-height: 80px;
    overflow: hidden;
    position: relative;
}
.deskripsi.expanded {
    max-height: none;
}
.fade-overlay {
    height: 2rem;
    background: linear-gradient(to top, white, transparent);
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    pointer-events: none;
}

/* ======== SCROLL SECTION OFFSET ======== */
#about,
#katalog {
    scroll-margin-top: 80px;
}

/* ======== ABOUT SECTION ======== */
section#about {
    background-color: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.05);
}

/* ======== GALERI GAMBAR ======== */
.img-fixed {
    height: 250px;
    object-fit: cover;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
    border-radius: 6px;
}
.img-fixed:hover {
    transform: scale(1.05);
}

/* ======== SCROLL WRAPPER ======== */
.scroll-wrapper {
    overflow-x: auto;
    padding-bottom: 1rem;
}
.scroll-wrapper::-webkit-scrollbar {
    height: 8px;
}
.scroll-wrapper::-webkit-scrollbar-thumb {
    background-color: #dcdcdc;
    border-radius: 4px;
}
.scroll-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

/* ======== WHATSAPP FLOAT ======== */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: white;
    padding: 10px 18px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 15px;
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}
.whatsapp-float:hover {
    background-color: #1ebe5d;
    transform: scale(1.05);
}
.whatsapp-float i {
    font-size: 1.2rem;
    margin-right: 8px;
}

/* ======== FOOTER ======== */
footer {
    background-color: #f7cac9; /* champagne */
    padding: 20px;
    text-align: center;
    margin-top: 60px;
    border-radius: 10px;
    font-size: 0.95rem;
}
footer a {
    text-decoration: none;
    color: #444;
    margin: 0 10px;
}
footer a:hover {
    color: #b76e79; /* rose gold */
}

/* ======== ALERT BOX ======== */
.alert {
    font-size: 1rem;
    border-radius: 6px;
}

/* ======== DROPDOWN CUSTOM BUTTON ======== */
.navbar .dropdown .btn-outline-primary {
    background-color: #b76e79; /* rose gold */
    color: #fff;
    border: none;
    font-weight: 500;
}
.navbar .dropdown .btn-outline-primary:hover {
    background-color: #a35b66;
    color: white;
}
.dropdown-menu {
    border-radius: 8px;
    animation: fadeDown 0.3s ease-in-out;
    background-color: #fffafc;
}
/* Nav link styling */
.navbar-nav .nav-link {
    transition: all 0.3s ease;
}
.navbar-nav .nav-link:hover {
    color: #b76e79; /* rose gold hover */
}

/* Tombol Login (outline) */
.btn-outline-primary {
    border-color: #b76e79;
    color: #b76e79;
    background-color: transparent;
}
.btn-outline-primary:hover {
    background-color: #b76e79;
    color: white;
}

/* Tombol Daftar (filled pink) */
.btn-daftar {
    background-color: #f7cac9;
    color: white;
    transition: all 0.3s ease;
}
.btn-daftar:hover {
    background-color: #f2b8b7;
    color: white;
}

/* Dropdown styling */
.dropdown-menu {
    border-radius: 8px;
    animation: fadeDown 0.3s ease-in-out;
    background-color: #fffafc;
}
.dropdown-item:hover {
    background-color: #f1e3d3;
}

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.dropdown-item i {
    margin-right: 6px;
}
.dropdown-item.text-danger {
    font-weight: 500;
}

/* ======== RESPONSIVE ======== */
@media (max-width: 991.98px) {
    .offcanvas-end {
        width: 280px;
    }
    .btn-sidebar-toggle {
        padding: 6px 10px;
    }
}
@media (max-width: 576px) {
    .card-img-top {
        height: 140px;
    }
    .card-title {
        font-size: 1rem;
    }
    .card-body p,
    .card-body .btn {
        font-size: 0.9rem;
    }
    .img-fixed {
        height: 150px;
    }
    form {
        padding: 15px;
    }
}
