/* =========================================
   1. RESET & GLOBAL
========================================= */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f5f5f5; /* Dibuat lebih clean */
    color: #333;
    animation: fadeIn 0.8s ease-in-out;
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Container utama desktop */
.header, 
.announcement-bar,
.running-text-container, 
.menu-bar-top, 
.wrapper, 
footer {
    width: 85%;
    margin: 0 auto;  
    
}

/* =========================================
   2. HEADER
========================================= */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 25px;
    background-color: #800000;
    color: white;
    border-bottom: 4px solid #8B4513;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    width: 70px;
}

.judul h1 {
    margin: 0;
    font-size: 22px;
}

.judul p {
    margin: 3px 0 0;
    font-size: 13px;
    opacity: 0.9;
}

/* Widget */
.islamic-widget {
    background: rgba(255,255,255,0.15);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    text-align: right;
}

.islamic-widget strong {
    color: #ffd700;
}

/* =========================================
   3. NAVIGASI
========================================= */
.menu-bar-top {
    display: flex;
    justify-content: center;
    background: white;
    border-bottom: 1px solid #ddd;
}

.menu-bar-top a {
    padding: 15px 18px;
    text-decoration: none;
    color: #5D4037;
    font-weight: 600;
    font-size: 13px;
    transition: 0.3s;
}

.menu-bar-top a:hover {
    background: #8B4513;
    color: white;
}
.admin-badge {
    background: linear-gradient(45deg, #ffd700, #ffcc00);
    color: #800000;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.logout-btn {
    background: #800000;
    color: white;
    padding: 2px 6px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 10px;
}

.logout-btn:hover {
    background: #a00000;
}


/* =========================================
   4. ANNOUNCEMENT
========================================= */
.announcement-bar {
    background: linear-gradient(to right, #FFD700, #FFC107);
    color: #800000;
    padding: 8px 0;
    font-weight: bold;
    font-size: 14px;
    border-bottom: 2px solid #b8860b;
    margin-bottom: 5px;
}

.scrolling-text {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 25s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* =========================================
   5. WRAPPER & CONTENT
========================================= */
.wrapper {
    background: white;
    border-radius: 12px;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.info {
    padding: 25px;
}

.info h2 {
    color: #4B3832;
    border-bottom: 2px solid #DEB887;
    padding-bottom: 8px;
    font-size: 20px;
}

/* =========================================
   6. SLIDER & GAMBAR
========================================= */
.slider-container,
.berita-slider {
    border-radius: 10px;
    overflow: hidden;
}

.slide img,
.berita-slide img,
.carousel-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

/* =========================================
   7. CARD PROGRAM
========================================= */
.card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border: 1px solid #eee;
}
/* CARD PROGRAM */
.program-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.program-card:hover {
    transform: translateY(-4px);
}

/* SLIDER */
.program-slider {
    position: relative;
    overflow: hidden;
}

.program-wrapper {
    display: flex;
    transition: transform 0.6s ease-in-out;
}

.program-slide {
    min-width: 100%;
}

.program-slide img {
    width: 100%;
    height: 380px;
    object-fit: cover;
}

/* BUTTON */
.program-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.4);
    border: none;
    color: white;
    padding: 10px 14px;
    cursor: pointer;
    border-radius: 50%;
    font-size: 18px;
}

.program-btn:hover {
    background: rgba(0,0,0,0.7);
}

.program-btn.prev { left: 15px; }
.program-btn.next { right: 15px; }

/* BODY */
.program-body {
    padding: 20px;
}

.program-body h5 {
    font-weight: bold;
    margin-bottom: 10px;
    color: #800000;
}

.program-body p {
    font-size: 0.9rem;
    color: #555;
}

/* BUTTON RAB */
.btn-rab {
    display: block;
    margin-top: 15px;
    padding: 10px;
    text-align: center;
    background: #800000;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    transition: 0.3s;
}

.btn-rab:hover {
    background: #a00000;
}

.donasi-section {
    background: #ffffff;
    padding: 25px;
    margin: 40px 0;
}

.donasi-container {
    max-width: 1000px;
    margin: 0 auto;
}


/* =========================================
   8. FOOTER
========================================= */
footer {
    background: #800000;
    color: white;
    text-align: center;
    padding: 15px;
    margin-top: 30px;
}

/* =========================================
  /* =========================================
   9. MOBILE RESPONSIVE
========================================= */

.hamburger {
    display: none;
}

@media (max-width: 768px) {

    .header,
    .announcement-bar,
    .running-text-container,
    .menu-bar-top,
    .wrapper,
    footer {
        width: 100%;
        margin: 0 auto;
    }

    body {
        background: #f9f9f9;
    }

    .header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        padding: 15px;
    }

    .header-left {
        flex-direction: column;
    }

    .logo {
        width: 55px;
    }

    .judul h1 {
        font-size: 18px;
    }

    .judul p {
        font-size: 12px;
    }

    .menu-bar-top {
        justify-content: flex-end;
        padding: 15px 18px;
        position: relative;
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        width: 28px;
        cursor: pointer;
    }

    .hamburger span {
        height: 3px;
        background: #800000;
        margin: 4px 0;
        border-radius: 3px;
    }

    .menu-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        right: 10px;
        width: 220px;
        background: white;
        border-radius: 8px;
        box-shadow: 0 8px 20px rgba(0,0,0,0.15);
        max-height: 80vh;
        overflow-y: auto;
        z-index: 9999;
        transition: all 0.4s ease;
    }
    .menu-links.active {
    display: flex;
}


    .menu-links a {
    position: relative;
    text-decoration: none;
    color: #333;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

.menu-links a:hover {
    color: #0a7cff;
    transform: translateY(-3px);
}

.menu-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background: #0a7cff;
    transition: width 0.3s ease;
}

.menu-links a:hover::after {
    width: 100%;
}

    .info {
        padding: 15px;
    }

    .slide img,
    .berita-slide img,
    .carousel-item img {
        height: 200px;
    }

    table {
        font-size: 11px;
    }

    iframe {
        height: 250px !important;
    }

}
