/* =============================================
   Yayasan Daarul Fatih Al Haris - Main Stylesheet
   ============================================= */

/* Google Fonts loaded via <link> in header.php — do not use @import here (render-blocking) */

/* --- CSS Variables --- */
:root {
    --primary: #1B5E20;
    --primary-light: #2E7D32;
    --primary-dark: #0D3B12;
    --primary-50: #E8F5E9;
    --primary-100: #C8E6C9;
    --secondary: #D4A017;
    --secondary-light: #FFD54F;
    --secondary-dark: #B8860B;
    --accent: #E8F5E9;
    --dark: #1a1a2e;
    --dark-lighter: #16213e;
    --text-dark: #2d3436;
    --text-muted: #636e72;
    --text-light: #b2bec3;
    --bg-light: #f8f9fa;
    --bg-cream: #faf8f5;
    --white: #ffffff;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 60px rgba(0, 0, 0, 0.15);
    --gradient-primary: linear-gradient(135deg, #1B5E20 0%, #2E7D32 50%, #43A047 100%);
    --gradient-dark: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    --gradient-gold: linear-gradient(135deg, #D4A017 0%, #FFD54F 100%);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* --- Navbar --- */
.navbar-custom {
    background: transparent;
    padding: 16px 0;
    transition: var(--transition);
    z-index: 1050;
}

.navbar-custom.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
    padding: 8px 0;
}

.navbar-custom .navbar-brand {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--white);
    transition: var(--transition);
}

.navbar-custom.scrolled .navbar-brand {
    color: var(--primary);
}

.navbar-custom .nav-link {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 16px !important;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    position: relative;
}

.navbar-custom .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: var(--transition);
    transform: translateX(-50%);
}

.navbar-custom .nav-link:hover::after,
.navbar-custom .nav-link.active::after {
    width: 60%;
}

.navbar-custom.scrolled .nav-link {
    color: var(--text-dark);
}

.navbar-custom .nav-link:hover {
    color: var(--secondary);
}

.navbar-custom.scrolled .nav-link:hover {
    color: var(--primary);
}

.navbar-custom .navbar-toggler {
    border: none;
    color: var(--white);
    padding: 4px 8px;
}

.navbar-custom.scrolled .navbar-toggler {
    color: var(--primary);
}

.navbar-custom .dropdown-menu {
    border: none;
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-md);
    padding: 8px;
    margin-top: 8px;
}

.navbar-custom .dropdown-item {
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.navbar-custom .dropdown-item:hover {
    background: var(--primary-50);
    color: var(--primary);
}

.navbar-custom .btn-donasi {
    background: var(--gradient-gold);
    color: var(--dark) !important;
    font-weight: 600;
    padding: 10px 24px !important;
    border-radius: var(--radius-xl) !important;
    border: none;
    box-shadow: 0 4px 15px rgba(212, 160, 23, 0.3);
}

.navbar-custom .btn-donasi:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 160, 23, 0.5);
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient-primary);
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.05)" d="M0,96L48,112C96,128,192,160,288,176C384,192,480,192,576,170.7C672,149,768,107,864,101.3C960,96,1056,128,1152,149.3C1248,171,1344,181,1392,186.7L1440,192L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"/></svg>') no-repeat bottom;
    background-size: cover;
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin-bottom: 30px;
}

.hero-content .btn-hero {
    padding: 14px 36px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-xl);
    transition: var(--transition);
    margin-right: 12px;
    margin-bottom: 12px;
}

.btn-hero-primary {
    background: var(--white);
    color: var(--primary);
    border: none;
}

.btn-hero-primary:hover {
    background: var(--secondary-light);
    color: var(--dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-hero-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn-hero-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border-color: var(--white);
}

.hero-decoration {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    z-index: 1;
}

.hero-deco-1 {
    top: -50px;
    right: -50px;
    width: 400px;
    height: 400px;
}

.hero-deco-2 {
    bottom: -80px;
    left: -80px;
    width: 350px;
    height: 350px;
}

.hero-deco-3 {
    top: 50%;
    right: 15%;
    width: 200px;
    height: 200px;
}

/* Hero Carousel */
.hero-section #heroCarousel,
.hero-section .carousel-inner,
.hero-section .carousel-item {
    height: 100%;
}

.hero-section .carousel-item {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
}

/* Better Overlay that lets the image show gracefully but keeps text readable */
.hero-section .carousel-item .hero-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(13, 59, 18, 0.7) 0%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 1;
}

/* Fallback for slides without images */
.hero-section .carousel-item.no-bg {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.hero-section .carousel-item.no-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    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='%23ffffff' fill-opacity='0.05'%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");
    z-index: 0;
}

.hero-section .carousel-item .container {
    position: relative;
    z-index: 2;
}

/* Dynamic Animations on active slide */
.hero-section .carousel-item.active .hero-content h1 {
    animation: slideUpFade 0.8s ease-out forwards 0.2s;
    opacity: 0;
}

.hero-section .carousel-item.active .hero-content p {
    animation: slideUpFade 0.8s ease-out forwards 0.4s;
    opacity: 0;
}

.hero-section .carousel-item.active .btn-hero {
    animation: slideUpFade 0.8s ease-out forwards 0.6s;
    opacity: 0;
}

.hero-section .carousel-item.active .bi-moon-stars {
    animation: fadeInZoom 1s ease-out forwards 0.4s;
    opacity: 0;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInZoom {
    from {
        opacity: 0;
        transform: scale(0.8) rotate(-10deg);
    }

    to {
        opacity: 1;
        transform: scale(1) rotate(0);
    }
}

/* Indicators */
.hero-section .carousel-indicators {
    z-index: 5;
    margin-bottom: 30px;
}

.hero-section .carousel-indicators button {
    width: 30px;
    height: 4px;
    border-radius: 2px;
    border: none;
    background: rgba(255, 255, 255, 0.4);
    margin: 0 6px;
    transition: all 0.4s ease;
}

.hero-section .carousel-indicators button.active {
    background: var(--secondary);
    width: 45px;
}

/* Controls */
.hero-section .carousel-control-prev,
.hero-section .carousel-control-next {
    z-index: 5;
    width: 60px;
    opacity: 0.7;
    transition: var(--transition);
}

.hero-section .carousel-control-prev:hover,
.hero-section .carousel-control-next:hover {
    opacity: 1;
}

.hero-section .carousel-fade .carousel-item {
    transition: opacity 0.8s ease-in-out;
}

/* --- Section Styles --- */
.section {
    padding: 80px 0;
}

.section-light {
    background: var(--white);
}

.section-cream {
    background: var(--bg-cream);
}

.section-accent {
    background: var(--primary-50);
}

.section-dark {
    background: var(--gradient-dark);
    color: var(--white);
}

.section-green {
    background: var(--gradient-primary);
    color: var(--white);
}

.section-title {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.section-dark .section-title,
.section-green .section-title {
    color: var(--white);
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto 50px;
}

.section-dark .section-subtitle,
.section-green .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.section-badge {
    display: inline-block;
    background: var(--primary-50);
    color: var(--primary);
    padding: 6px 20px;
    border-radius: var(--radius-xl);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.section-dark .section-badge,
.section-green .section-badge {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
}

/* --- Cards --- */
.card-modern {
    background: var(--white);
    border: none;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
}

.card-modern:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.card-modern .card-img-top {
    height: 220px;
    object-fit: cover;
    transition: var(--transition);
}

.card-modern:hover .card-img-top {
    transform: scale(1.05);
}

.card-modern .card-img-wrapper {
    overflow: hidden;
    position: relative;
}

.card-modern .card-img-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.1));
}

.card-modern .card-body {
    padding: 24px;
}

.card-modern .card-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--text-dark);
    line-height: 1.4;
}

.card-modern .card-title a {
    color: inherit;
}

.card-modern .card-title a:hover {
    color: var(--primary);
}

.card-modern .card-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.card-modern .card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.82rem;
    color: var(--text-light);
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.card-modern .card-meta i {
    font-size: 0.9rem;
}

.card-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    background: var(--primary);
    color: var(--white);
    padding: 4px 14px;
    border-radius: var(--radius-xl);
    font-size: 0.78rem;
    font-weight: 600;
}

/* --- Program Card --- */
.program-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid transparent;
    height: 100%;
}

.program-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-100);
}

.program-card .program-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--white);
    transition: var(--transition);
}

.program-card:hover .program-icon {
    border-radius: 50%;
    transform: rotate(5deg) scale(1.05);
}

.program-card h5 {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.program-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

/* --- Donasi/Campaign Card --- */
.campaign-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
}

.campaign-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

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

.campaign-card .campaign-body {
    padding: 24px;
}

.campaign-card h5 {
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
}

.campaign-card h5 a {
    color: var(--text-dark);
}

.campaign-card h5 a:hover {
    color: var(--primary);
}

.campaign-progress {
    margin: 16px 0;
}

.campaign-progress .progress {
    height: 10px;
    border-radius: 10px;
    background: #e9ecef;
    overflow: hidden;
}

.campaign-progress .progress-bar {
    background: var(--gradient-primary);
    border-radius: 10px;
    transition: width 1.5s ease;
    position: relative;
}

.campaign-progress .progress-bar.animated::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 30px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4));
    animation: progressShine 2s infinite;
}

@keyframes progressShine {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.campaign-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 0.85rem;
}

.campaign-stats .amount {
    color: var(--primary);
    font-weight: 700;
}

.campaign-stats .percentage {
    color: var(--text-muted);
}

.campaign-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* --- Muhasabah Card --- */
.muhasabah-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    height: 100%;
}

.muhasabah-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

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

.muhasabah-card .muhasabah-body {
    padding: 24px;
}

.muhasabah-card h5 {
    font-family: var(--font-serif);
    font-weight: 600;
    margin-bottom: 8px;
}

.muhasabah-card .sumber {
    color: var(--secondary-dark);
    font-size: 0.85rem;
    font-weight: 600;
}

.muhasabah-card .quote-text {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--primary-dark);
    font-size: 1rem;
    line-height: 1.6;
    border-left: 3px solid var(--secondary);
    padding-left: 16px;
    margin: 12px 0;
}

.muhasabah-placeholder {
    height: 200px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.3);
}

/* --- Stats Counter --- */
.stats-section {
    background: var(--gradient-primary);
    padding: 60px 0;
}

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-item .stat-number {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-item .stat-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    font-weight: 500;
}

/* --- Breadcrumb --- */
.page-header {
    background: var(--gradient-primary);
    padding: 140px 0 60px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    transform: translate(100px, -100px);
}

.page-header h1 {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
}

.page-header .breadcrumb {
    background: none;
    padding: 0;
    margin: 0;
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.page-header .breadcrumb-item a:hover {
    color: var(--white);
}

.page-header .breadcrumb-item.active {
    color: var(--secondary-light);
}

.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

/* --- Buttons --- */
.btn-primary-custom {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    padding: 12px 28px;
    border-radius: var(--radius-xl);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(27, 94, 32, 0.3);
    color: var(--white);
}

.btn-outline-custom {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 10px 26px;
    border-radius: var(--radius-xl);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.btn-outline-custom:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-gold {
    background: var(--gradient-gold);
    color: var(--dark);
    border: none;
    padding: 14px 32px;
    border-radius: var(--radius-xl);
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(212, 160, 23, 0.3);
}

.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 160, 23, 0.5);
    color: var(--dark);
}

/* --- CTA Section --- */
.cta-section {
    background: var(--gradient-primary);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '﷽';
    position: absolute;
    font-size: 15rem;
    color: rgba(255, 255, 255, 0.03);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: serif;
    white-space: nowrap;
}

.cta-section h2 {
    font-family: var(--font-serif);
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

/* --- Footer --- */
.footer {
    background: var(--gradient-dark);
    color: rgba(255, 255, 255, 0.7);
    padding-top: 60px;
}

.footer h5 {
    color: var(--white);
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer p,
.footer li {
    font-size: 0.9rem;
    line-height: 2;
}

.footer a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer a:hover {
    color: var(--secondary-light);
    padding-left: 4px;
}

.footer .footer-logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--white);
    font-weight: 700;
    margin-bottom: 16px;
}

.footer .footer-social a {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    margin-right: 8px;
    font-size: 1rem;
    transition: var(--transition);
}

.footer .footer-social a:hover {
    background: var(--primary);
    transform: translateY(-3px);
    padding-left: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    margin-top: 40px;
    text-align: center;
    font-size: 0.85rem;
}

/* --- Donasi Detail Page --- */
.donasi-detail .campaign-banner {
    border-radius: var(--radius-lg);
    overflow: hidden;
    max-height: 450px;
    object-fit: cover;
    width: 100%;
}

.donasi-detail .donasi-info-box {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 100px;
}

.donasi-detail .progress {
    height: 14px;
    border-radius: 14px;
}

.donasi-detail .dana-info {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
}

.donasi-detail .dana-terkumpul {
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 700;
}

.donasi-detail .dana-target {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.donatur-list .donatur-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.donatur-list .donatur-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-50);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.donatur-list .donatur-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.donatur-list .donatur-amount {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
}

.donatur-list .donatur-time {
    color: var(--text-light);
    font-size: 0.78rem;
}

/* --- Form Styles --- */
.form-modern .form-control,
.form-modern .form-select {
    border: 2px solid #e9ecef;
    border-radius: var(--radius-md);
    padding: 12px 16px;
    font-size: 0.95rem;
    transition: var(--transition);
    background: var(--white);
}

.form-modern .form-control:focus,
.form-modern .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(27, 94, 32, 0.1);
}

.form-modern .form-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.form-modern textarea.form-control {
    min-height: 120px;
}

/* --- Contact Section --- */
.contact-info-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 16px;
    align-items: flex-start;
    transition: var(--transition);
    height: 100%;
}

.contact-info-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.contact-info-card .icon-box {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    background: var(--primary-50);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-info-card h6 {
    font-weight: 700;
    margin-bottom: 4px;
}

.contact-info-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* --- FAQ --- */
.faq-section .accordion-item {
    border: none;
    margin-bottom: 12px;
    border-radius: var(--radius-md) !important;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.faq-section .accordion-button {
    font-weight: 600;
    font-size: 1rem;
    padding: 20px 24px;
    background: var(--white);
    color: var(--text-dark);
    border-radius: var(--radius-md) !important;
}

.faq-section .accordion-button:not(.collapsed) {
    background: var(--primary-50);
    color: var(--primary);
    box-shadow: none;
}

.faq-section .accordion-button:focus {
    box-shadow: none;
}

.faq-section .accordion-body {
    padding: 0 24px 20px;
    color: var(--text-muted);
    line-height: 1.8;
}

/* --- Galeri --- */
.galeri-grid .galeri-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
}

.galeri-grid .galeri-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

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

.galeri-grid .galeri-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(27, 94, 32, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.galeri-grid .galeri-item:hover .galeri-overlay {
    opacity: 1;
}

.galeri-grid .galeri-overlay i {
    color: var(--white);
    font-size: 2rem;
}

/* --- Pengurus --- */
.pengurus-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: center;
}

.pengurus-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

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

.pengurus-card .pengurus-placeholder {
    height: 280px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.3);
}

.pengurus-card .pengurus-info {
    padding: 20px;
}

.pengurus-card h5 {
    font-weight: 700;
    margin-bottom: 4px;
}

.pengurus-card p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* --- Pagination --- */
.pagination-modern .page-link {
    border: none;
    color: var(--text-dark);
    padding: 10px 16px;
    border-radius: var(--radius-sm) !important;
    margin: 0 4px;
    font-weight: 500;
    transition: var(--transition);
}

.pagination-modern .page-link:hover {
    background: var(--primary-50);
    color: var(--primary);
}

.pagination-modern .page-item.active .page-link {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(27, 94, 32, 0.3);
}

/* --- Scroll to Top --- */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1040;
    border: none;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* --- WhatsApp Float --- */
.wa-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 1040;
}

.wa-float a {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #25D366;
    color: var(--white);
    padding: 12px 20px;
    border-radius: var(--radius-xl);
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 18px rgba(37, 211, 102, 0.3);
    transition: var(--transition);
}

.wa-float a:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    color: var(--white);
}

.wa-float i {
    font-size: 1.3rem;
}

/* --- Content Styles --- */
.content-area {
    line-height: 1.9;
}

.content-area h2,
.content-area h3 {
    font-family: var(--font-serif);
    color: var(--text-dark);
    margin-top: 30px;
    margin-bottom: 16px;
}

.content-area ul,
.content-area ol {
    padding-left: 20px;
}

.content-area li {
    margin-bottom: 8px;
}

.content-area img {
    border-radius: var(--radius-md);
    margin: 20px 0;
}

.content-area blockquote {
    border-left: 4px solid var(--primary);
    padding: 20px;
    background: var(--primary-50);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: 20px 0;
    font-style: italic;
}

/* --- Image Placeholder --- */
.img-placeholder {
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 3rem;
}

/* --- Alert --- */
.alert-success-custom {
    background: #d4edda;
    color: #155724;
    border: none;
    border-radius: var(--radius-md);
    padding: 16px 24px;
    font-weight: 500;
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* --- Responsive --- */
@media (max-width: 991.98px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .page-header {
        padding: 120px 0 40px;
    }

    .navbar-custom .navbar-collapse {
        background: var(--white);
        border-radius: var(--radius-md);
        padding: 16px;
        margin-top: 8px;
        box-shadow: var(--shadow-lg);
    }

    .navbar-custom .nav-link {
        color: var(--text-dark) !important;
    }

    .navbar-custom .btn-donasi {
        margin-top: 8px;
        display: inline-block;
    }

    .stat-item .stat-number {
        font-size: 2.2rem;
    }

    .cta-section h2 {
        font-size: 2rem;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        min-height: 80vh;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    .footer {
        text-align: center;
    }

    .wa-float a span {
        display: none;
    }

    .wa-float a {
        padding: 14px;
        border-radius: 50%;
    }

    .donasi-detail .donasi-info-box {
        position: static;
        margin-top: 30px;
    }
}

@media (max-width: 575.98px) {
    .hero-content h1 {
        font-size: 1.7rem;
    }

    .stat-item .stat-number {
        font-size: 1.8rem;
    }

    .page-header h1 {
        font-size: 1.5rem;
    }

    .page-header {
        padding: 100px 0 30px;
    }
}

/* --- Loading placeholder for images --- */
.img-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}