:root {
    /* warna */
    /* primary - deeper emerald green */
    --bs-primary: #117843;
    --bs-primary-rgb: 17, 120, 67;

    /* info - gold */
    --bs-info: #d3af5e;
    --bs-info-rgb: 211, 175, 94;

    /* font */
    --bs-body-font-family: 'Poppins', sans-serif;
    --font-heading: 'Aref Ruqaa', serif;
}

body {
    background-color: #fcfcfc;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23117843' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: var(--font-heading) !important;
}

.dropdown-item:active {
    background-color: #1fb16d !important;
    color: white !important;
}

/* ────────────────────────────────────────────
   Hover animations
───────────────────────────────────────────── */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(17, 120, 67, 0.15) !important;
}
.btn {
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(17, 120, 67, 0.2) !important;
}

/* ────────────────────────────────────────────
   Mosque Vibe Styles
───────────────────────────────────────────── */
.arch-top {
    border-top-left-radius: 50% !important;
    border-top-right-radius: 50% !important;
}

.mosque-pattern-bg {
    background-color: rgba(17, 120, 67, 0.05);
    background-image: url("data:image/svg+xml,%3Csvg width='52' height='26' viewBox='0 0 52 26' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23117843' fill-opacity='0.1'%3E%3Cpath d='M10 10c0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6h2c0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4v2c-3.314 0-6-2.686-6-6 0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6zm25.464-1.95l8.486 8.486-1.414 1.414-8.486-8.486 1.414-1.414z' /%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.card-mosque {
    border: 1px solid var(--bs-info) !important;
    position: relative;
    overflow: hidden;
}

.card-mosque::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background-color: var(--bs-info);
}

.text-gold {
    color: var(--bs-info) !important;
}

/* ────────────────────────────────────────────
   Prayer time card — active shalat highlight
───────────────────────────────────────────── */
.prayer-active {
    background: linear-gradient(135deg, #117843, #1fb16d) !important;
    color: white !important;
    transform: translateY(-6px) scale(1.04) !important;
    box-shadow: 0 12px 28px rgba(17, 120, 67, 0.35) !important;
    border-color: #1fb16d !important;
}
.prayer-active h6,
.prayer-active span,
.prayer-active small {
    color: white !important;
}
.prayer-active .border {
    border-color: rgba(255,255,255,0.4) !important;
    background: rgba(255,255,255,0.15) !important;
}
.prayer-active i {
    color: #d3af5e !important;
}

/* ────────────────────────────────────────────
   Hero section fade-in
───────────────────────────────────────────── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(30px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes floatMasjid {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-12px); }
}

.hero-text { animation: fadeInLeft 0.9s ease both; }
.hero-img  { animation: fadeInRight 0.9s ease 0.2s both; }
.hero-badge { animation: fadeInUp 0.6s ease both; }
.float-img  { animation: floatMasjid 4s ease-in-out infinite; }

/* ────────────────────────────────────────────
   Navbar active link
───────────────────────────────────────────── */
.nav-link {
    transition: color 0.2s ease, background 0.2s ease !important;
}

/* ────────────────────────────────────────────
   Section divider ornament
───────────────────────────────────────────── */
.section-ornament {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    margin: 0 auto 1.2rem;
}
.section-ornament::before,
.section-ornament::after {
    content: '';
    flex: 1; max-width: 60px;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--bs-info));
}
.section-ornament::after {
    background: linear-gradient(to left, transparent, var(--bs-info));
}

/* ────────────────────────────────────────────
   Counter number animation
───────────────────────────────────────────── */
.count-up {
    font-variant-numeric: tabular-nums;
}

/* ────────────────────────────────────────────
   Smooth scroll
───────────────────────────────────────────── */
html { scroll-behavior: smooth; }