:root {
    --primary: #059669;
    --primary-dark: #064e3b;
    --accent: #fbbf24;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: #f8fafc;
    color: #1f2937;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.05;
    /* Menambah kesan estetik tanpa mengganggu teks */
    z-index: -1;
    pointer-events: none;
}

.arabic {
    font-family: 'Noto Sans Arabic', serif;
    line-height: 2.2;
    direction: rtl;
}

.glass {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.nav-link.active {
    color: var(--primary);
    font-weight: 700;
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.content-section {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.content-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.card-premium {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-premium:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Accordion Custom */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.accordion-item.active .accordion-content {
    max-height: 1000px;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

/* Banner Hikmah Animation */
.fade-wisdom {
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
}

.fade-wisdom.hidden-wisdom {
    opacity: 0;
    transform: translateY(5px);
}

/* Prayer Widget Real-time States */
@keyframes adhan-pulse {
    0% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.4); border-color: rgba(251, 191, 36, 0.8); }
    50% { box-shadow: 0 0 20px 5px rgba(251, 191, 36, 0.6); border-color: rgba(251, 191, 36, 1); }
    100% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.4); border-color: rgba(251, 191, 36, 0.8); }
}

@keyframes istiqaamah-glow {
    0% { background: rgba(5, 150, 105, 0.1); }
    50% { background: rgba(5, 150, 105, 0.3); }
    100% { background: rgba(5, 150, 105, 0.1); }
}

.prayer-adhan {
    animation: adhan-pulse 2s infinite ease-in-out !important;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(180, 83, 9, 0.3)) !important;
    color: #fbbf24 !important;
}

.prayer-istiqaamah {
    animation: istiqaamah-glow 3s infinite ease-in-out !important;
    background: rgba(5, 150, 105, 0.2) !important;
    border-color: rgba(5, 150, 105, 0.5) !important;
}

@keyframes pulse-slow {
    0%, 100% { opacity: 0.3; transform: scale(0.9); }
    50% { opacity: 0.8; transform: scale(1); }
}

.animate-pulse-slow {
    animation: pulse-slow 4s infinite ease-in-out;
}

/* PRINT STYLES */
@media print {
    @page { size: landscape; margin: 0; }
    body { background: white !important; }
    body::before, nav, footer, .no-print, .content-section:not(.active) {
        display: none !important;
    }
    .content-section.active {
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    main { padding: 0 !important; margin: 0 !important; max-width: none !important; }
    .glass { display: none !important; }
    
    #certificate {
        width: 100vw !important;
        height: 100vh !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: white !important;
    }
    
    #certificate > div {
        width: 100% !important;
        max-width: none !important;
        height: 100% !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }
}

