/* ==================== RESET & VARIABLES ==================== */
:root {
    --primary: #082f55;
    --primary-dark: #07345e;
    --primary-light: #0b4f8a;
    --secondary: #e5a823;
    --secondary-light: #f0c040;
    --secondary-dark: #c98c12;
    --navy: #082f55;
    --blue: #0b4f8a;
    --blue-dark: #07345e;
    --gold: #e5a823;
    --gold-dark: #c98c12;
    --gold-light: #f0c040;
    --dark: #3d4756;
    --gray: #6b7689;
    --gray-light: #f6f8fb;
    --light: #f6f8fb;
    --green-bg: #f6f8fb;
    --white: #ffffff;
    --border: #e3e9ef;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 25px rgba(19, 49, 82, 0.08);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s ease;
    --font-arabic: 'Amiri', serif;
    --font-body: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: #3d4756;
    background: var(--white);
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border: none;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    justify-content: center;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(26, 107, 82, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

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

.btn-block {
    width: 100%;
}

/* ==================== SECTION HEADER ==================== */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-tag {
    display: inline-block;
    background: var(--green-bg);
    color: var(--primary);
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.section-divider {
    width: 60px;
    height: 4px;
    background: var(--secondary);
    border-radius: 2px;
    margin: 0 auto;
}

/* ==================== NAVBAR ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    z-index: 1000;
    box-shadow: var(--shadow);
    transition: var(--transition);
    padding: 10px 0;
}

.navbar.scrolled {
    padding: 5px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    font-size: 32px;
    color: var(--primary);
}

.logo-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    display: block;
}

.logo-subtitle {
    font-size: 11px;
    color: var(--gray);
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 5px;
}

.nav-link {
    text-decoration: none;
    color: var(--dark);
    font-size: 14px;
    font-weight: 500;
    padding: 10px 16px;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--primary);
    background: var(--green-bg);
}

.nav-link.active {
    color: var(--primary);
    background: var(--green-bg);
    font-weight: 600;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--dark);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ==================== HERO ==================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, #07345e 0%, #082f55 50%, #07345e 100%);
    text-align: center;
    overflow: hidden;
    padding-top: 70px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(201, 168, 76, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(42, 139, 111, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(201, 168, 76, 0.1) 0%, transparent 50%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' 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");
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
    color: var(--white);
}

.hero-arabic {
    font-family: var(--font-arabic);
    font-size: 28px;
    color: var(--secondary-light);
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

.hero-tagline {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 35px;
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.4s forwards;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.6s forwards;
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 3;
}

.hero-wave svg {
    display: block;
    width: 100%;
    height: 100px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== INFO BAR ==================== */
.info-bar {
    background: var(--white);
    padding: 30px 0;
    border-bottom: 1px solid #eee;
}

.info-bar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--green-bg);
    border-radius: var(--radius);
    transition: var(--transition);
}

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

.info-item i {
    font-size: 24px;
    color: var(--primary);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 50%;
    flex-shrink: 0;
}

.info-item div {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 12px;
    color: var(--gray);
}

.info-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--dark);
}

/* ==================== PROFIL ==================== */
.profil {
    background: var(--gray-light);
    padding: 80px 0;
}

.profil-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 60px;
}

.profil-img-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
}

.profil-img-actual {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.profil-img-placeholder i {
    font-size: 120px;
    color: rgba(255, 255, 255, 0.3);
}

.profil-content h3 {
    font-size: 26px;
    color: var(--dark);
    margin-bottom: 15px;
}

.profil-content p {
    color: #555;
    margin-bottom: 15px;
    font-size: 15px;
    line-height: 1.8;
}

.profil-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 25px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.feature-item i {
    font-size: 28px;
    color: var(--secondary);
}

.feature-item h4 {
    font-size: 24px;
    color: var(--primary);
    font-weight: 700;
}

.feature-item p {
    font-size: 13px;
    color: var(--gray);
    margin: 0;
}

.visi-misi {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 30px;
}

.visi, .misi {
    background: var(--white);
    padding: 35px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border-top: 4px solid var(--primary);
}

.misi {
    border-top-color: var(--secondary);
}

.visi-icon {
    width: 60px;
    height: 60px;
    background: var(--green-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.visi-icon i {
    font-size: 28px;
    color: var(--primary);
}

.visi h3, .misi h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--dark);
}

.visi p {
    color: #555;
    font-size: 15px;
    line-height: 1.8;
    font-style: italic;
}

.misi ul {
    list-style: none;
}

.misi ul li {
    padding: 8px 0 8px 30px;
    position: relative;
    color: #555;
    font-size: 15px;
}

.misi ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 8px;
    color: var(--secondary);
}

/* ==================== MOTTO & TOKOH PENDIRI ==================== */
.motto-pendiri-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.motto-box, .pendiri-box {
    background: var(--white);
    padding: 35px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.motto-box {
    border-top: 4px solid var(--secondary);
    text-align: center;
}

.pendiri-box {
    border-top: 4px solid var(--primary);
}

.motto-icon, .pendiri-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background: var(--green-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pendiri-icon {
    margin: 0 0 15px 0;
}

.motto-icon i, .pendiri-icon i {
    font-size: 28px;
    color: var(--primary);
}

.motto-box h3, .pendiri-box h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--dark);
}

.motto-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    font-style: italic;
}

.pendiri-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pendiri-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    background: var(--green-bg);
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 500;
    color: var(--dark);
}

.pendiri-item i {
    color: var(--secondary);
    font-size: 18px;
}

@media (max-width: 768px) {
    .motto-pendiri-section {
        grid-template-columns: 1fr;
    }
}

/* ==================== JADWAL SHOLAT ==================== */
.jadwal-sholat {
    background: var(--white);
    padding: 80px 0;
}

.sholat-controls {
    text-align: center;
    margin-bottom: 30px;
}

.city-selector {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.city-selector label {
    font-weight: 600;
    color: var(--dark);
}

.city-selector select {
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--dark);
    background: var(--white);
    cursor: pointer;
    transition: var(--transition);
    outline: none;
}

.city-selector select:focus {
    border-color: var(--primary);
}

.sholat-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.sholat-card {
    background: var(--white);
    border: 2px solid #eee;
    border-radius: var(--radius);
    padding: 25px 15px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

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

.sholat-card.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-color: var(--primary);
    color: var(--white);
}

.sholat-card.active .sholat-icon,
.sholat-card.active .sholat-time {
    color: var(--white);
}

.sholat-card.active .sholat-name {
    color: var(--secondary-light);
}

.sholat-icon {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 12px;
}

.sholat-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
}

.sholat-time {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
}

.sholat-time .time-period {
    font-size: 13px;
    opacity: 0.7;
}

.sholat-card.next-prayer {
    border-color: var(--secondary);
    background: var(--green-bg);
}

.sholat-card.next-prayer::after {
    content: 'Berikutnya';
    position: absolute;
    top: 8px;
    right: -30px;
    background: var(--secondary);
    color: var(--dark);
    font-size: 10px;
    font-weight: 700;
    padding: 4px 30px;
    transform: rotate(45deg);
}

.sholat-note {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--green-bg);
    padding: 15px 20px;
    border-radius: var(--radius);
    color: #555;
    font-size: 14px;
}

.sholat-note i {
    color: var(--primary);
    font-size: 20px;
    flex-shrink: 0;
}

/* ==================== KAJIAN ==================== */
.kajian {
    background: var(--gray-light);
    padding: 80px 0;
}

.kajian-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.kajian-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.kajian-banner {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 48px;
    position: relative;
    overflow: hidden;
}

.kajian-banner.has-image {
    height: auto;
    min-height: 0;
}

.kajian-banner img {
    width: 100%;
    height: auto;
    display: block;
}

.kajian-banner.has-image::after {
    display: none;
}

.kajian-banner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
}

.kajian-body {
    padding: 20px;
}

.kajian-day {
    display: inline-block;
    background: var(--green-bg);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}

.kajian-body h4 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--dark);
}

.kajian-body p {
    font-size: 14px;
    color: #555;
    margin-bottom: 12px;
}

.kajian-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 12px;
    border-top: 1px solid #eee;
}

.kajian-meta span {
    font-size: 13px;
    color: var(--gray);
}

.kajian-meta i {
    color: var(--primary);
    margin-right: 6px;
    width: 16px;
}

/* ==================== KIBLAT ==================== */
.kiblat {
    background: var(--white);
    padding: 80px 0;
}

.kiblat-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.kiblat-compass {
    display: flex;
    justify-content: center;
}

.compass-ring {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--white) 0%, var(--gray-light) 100%);
    border: 8px solid var(--primary);
    position: relative;
    box-shadow: var(--shadow-lg), inset 0 0 20px rgba(0,0,0,0.05);
}

.compass-direction {
    position: absolute;
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
}

.compass-direction.n { top: 10px; left: 50%; transform: translateX(-50%); color: #e74c3c; }
.compass-direction.s { bottom: 10px; left: 50%; transform: translateX(-50%); }
.compass-direction.e { right: 10px; top: 50%; transform: translateY(-50%); }
.compass-direction.w { left: 10px; top: 50%; transform: translateY(-50%); }

.compass-needle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 140px;
    transform-origin: center bottom;
    transform: translate(-50%, -100%) rotate(295deg);
    transition: transform 1s ease;
}

.needle-arrow {
    width: 0;
    height: 0;
    border-left: 18px solid transparent;
    border-right: 18px solid transparent;
    border-bottom: 80px solid var(--secondary);
    margin-left: -14px;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.2));
}

.needle-label {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary);
    color: var(--dark);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 50px;
    white-space: nowrap;
}

.compass-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    background: var(--primary);
    border-radius: 50%;
    z-index: 5;
    box-shadow: 0 0 0 4px var(--white);
}

.kiblat-info h3 {
    font-size: 26px;
    margin-bottom: 12px;
    color: var(--dark);
}

.kiblat-info p {
    color: #555;
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.8;
}

.kiblat-result {
    background: var(--green-bg);
    border-radius: var(--radius);
    padding: 20px;
    margin-top: 20px;
}

.result-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.result-row:last-child {
    border-bottom: none;
}

.result-label {
    color: var(--gray);
    font-size: 14px;
}

.result-label i {
    color: var(--primary);
    margin-right: 6px;
}

.result-value {
    font-weight: 600;
    color: var(--dark);
    font-size: 15px;
}

.kiblat-error {
    background: #fee;
    color: #c0392b;
    padding: 15px;
    border-radius: var(--radius);
    margin-top: 20px;
    font-size: 14px;
}

/* ==================== DONASI ==================== */
.donasi {
    background: linear-gradient(180deg, var(--gray-light) 0%, var(--white) 100%);
    padding: 80px 0;
}

.donasi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 50px;
}

.donasi-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

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

.donasi-header {
    margin-bottom: 20px;
}

.donasi-header i {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 12px;
}

.donasi-header h3 {
    font-size: 20px;
    color: var(--dark);
}

.donasi-card p {
    color: #555;
    font-size: 14px;
    margin-bottom: 20px;
    min-height: 42px;
}

.donasi-progress {
    margin-bottom: 20px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 13px;
}

.progress-info strong {
    color: var(--primary);
}

.progress-bar {
    height: 10px;
    background: #eee;
    border-radius: 50px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 50px;
    transition: width 1s ease;
}

.rekening-box {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 35px;
    box-shadow: var(--shadow);
}

.rekening-box h3 {
    text-align: center;
    font-size: 22px;
    margin-bottom: 25px;
    color: var(--dark);
}

.rekening-box h3 i {
    color: var(--primary);
}

.rekening-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.rekening-item {
    background: var(--green-bg);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    position: relative;
}

.bank-name {
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 8px;
}

.bank-number {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
    letter-spacing: 1px;
}

.bank-holder {
    font-size: 13px;
    color: #555;
    margin-bottom: 12px;
}

.btn-copy {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-body);
}

.btn-copy:hover {
    background: var(--primary-dark);
}

.btn-copy.copied {
    background: #27ae60;
}

.rekening-note {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff9e6;
    padding: 15px 20px;
    border-radius: var(--radius);
    color: #555;
    font-size: 14px;
}

.rekening-note i {
    color: var(--secondary);
    font-size: 20px;
    flex-shrink: 0;
}

/* ==================== GALERI ==================== */
.galeri {
    background: var(--gray-light);
    padding: 80px 0;
}

.galeri-filter {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--white);
    border: 2px solid #e0e0e0;
    padding: 8px 20px;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--dark);
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.galeri-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.galeri-item {
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    position: relative;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 48px;
    transition: var(--transition);
}

.galeri-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
}

.galeri-item:hover::before {
    opacity: 1;
}

.galeri-item .galeri-label {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    padding: 10px 15px;
    background: rgba(0,0,0,0.7);
    color: var(--white);
    font-size: 13px;
    font-weight: 500;
    transition: bottom 0.3s ease;
    z-index: 2;
}

.galeri-item:hover .galeri-label {
    bottom: 0;
}

/* ==================== QUOTE SECTION ==================== */
.quote-section {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    padding: 70px 0;
}

.quote-card {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.quote-icon {
    font-size: 36px;
    color: var(--secondary);
    margin-bottom: 20px;
    opacity: 0.5;
}

.quote-arabic {
    font-family: var(--font-arabic);
    font-size: 32px;
    color: var(--secondary-light);
    margin-bottom: 20px;
    direction: rtl;
    line-height: 2;
}

.quote-translation {
    color: var(--white);
    font-size: 18px;
    margin-bottom: 15px;
    line-height: 1.7;
    font-style: italic;
}

.quote-source {
    color: var(--secondary-light);
    font-size: 14px;
    font-weight: 600;
}

/* ==================== KONTAK ==================== */
.kontak {
    background: var(--white);
    padding: 80px 0;
}

.kontak-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    margin-bottom: 40px;
}

.kontak-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.kontak-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.kontak-icon {
    width: 50px;
    height: 50px;
    background: var(--green-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.kontak-icon i {
    font-size: 20px;
    color: var(--primary);
}

.kontak-item h4 {
    font-size: 16px;
    margin-bottom: 4px;
}

.kontak-item p {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.social-link {
    width: 42px;
    height: 42px;
    background: var(--green-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.kontak-form {
    background: var(--gray-light);
    border-radius: var(--radius-lg);
    padding: 35px;
}

.kontak-form h3 {
    font-size: 22px;
    margin-bottom: 20px;
    color: var(--dark);
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--dark);
    background: var(--white);
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 107, 82, 0.1);
}

.form-group textarea {
    resize: vertical;
}

.form-success {
    background: var(--green-bg);
    padding: 15px;
    border-radius: var(--radius);
    margin-top: 15px;
    text-align: center;
    color: var(--primary);
}

.form-success i {
    font-size: 32px;
    margin-bottom: 8px;
}

.map-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--navy);
    color: rgba(255,255,255,0.85);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 30px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.footer-logo i {
    font-size: 28px;
    color: var(--secondary);
}

.footer-logo span {
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
}

.footer-col p {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 15px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--white);
    transition: var(--transition);
}

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

.footer-col h4 {
    color: var(--white);
    font-size: 16px;
    margin-bottom: 15px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    margin-bottom: 12px;
}

.footer-contact li i {
    color: var(--secondary);
    margin-top: 4px;
    flex-shrink: 0;
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

.footer-bottom i {
    color: #e74c3c;
}

.footer-stats {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 25px 0 10px;
    text-align: center;
}

.footer-stats-title {
    color: var(--gold, #e5a823);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 18px;
    letter-spacing: 0.3px;
}

.footer-stats-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.footer-stat-item {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 12px 22px;
    min-width: 130px;
    transition: var(--transition);
}

.footer-stat-item:hover {
    background: rgba(229,168,35,0.12);
    border-color: rgba(229,168,35,0.4);
}

.footer-stat-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--white, #fff);
    font-family: var(--font-heading);
    line-height: 1.2;
}

.footer-stat-label {
    font-size: 12px;
    color: rgba(255,255,255,0.65);
    margin-top: 3px;
}

/* ==================== MODAL ==================== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal {
    background: var(--white);
    border-radius: var(--radius-lg);
    max-width: 500px;
    width: 100%;
    padding: 35px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--gray);
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--dark);
    transform: rotate(90deg);
}

.modal-header {
    text-align: center;
    margin-bottom: 25px;
}

.modal-header i {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 10px;
}

.modal-header h3 {
    font-size: 22px;
    color: var(--dark);
}

.modal-header h3 span {
    color: var(--primary);
}

.nominal-quick {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.nominal-btn {
    flex: 1;
    min-width: 80px;
    padding: 10px;
    background: var(--green-bg);
    border: 2px solid transparent;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    color: var(--primary);
}

.nominal-btn:hover {
    border-color: var(--primary);
}

.nominal-btn.active {
    background: var(--primary);
    color: var(--white);
}

/* ==================== SCROLL TOP ==================== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-lg);
}

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

.scroll-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* ==================== NOTIFICATION ==================== */
.notification {
    position: fixed;
    top: 100px;
    right: 30px;
    background: var(--white);
    padding: 15px 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 3000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    border-left: 4px solid #27ae60;
}

.notification.show {
    transform: translateX(0);
}

.notification i {
    color: #27ae60;
    font-size: 20px;
}

.notification span {
    font-size: 14px;
    font-weight: 500;
    color: var(--dark);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 992px) {
    .hero-title { font-size: 42px; }
    .hero-arabic { font-size: 22px; }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        gap: 5px;
        transform: translateY(-200%);
        transition: transform 0.3s ease;
        box-shadow: var(--shadow-lg);
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    .hamburger { display: flex; }

    .info-bar-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .profil-grid {
        grid-template-columns: 1fr;
    }

    .visi-misi {
        grid-template-columns: 1fr;
    }

    .sholat-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .donasi-grid {
        grid-template-columns: 1fr;
    }

    .rekening-grid {
        grid-template-columns: 1fr;
    }

    .kiblat-content {
        grid-template-columns: 1fr;
    }

    .kontak-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hero-title { font-size: 32px; }
    .hero-arabic { font-size: 18px; }
    .hero-tagline { font-size: 14px; }

    .section-title { font-size: 24px; }

    .info-bar-grid {
        grid-template-columns: 1fr;
    }

    .sholat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .galeri-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .compass-ring {
        width: 240px;
        height: 240px;
    }

    .compass-needle {
        height: 110px;
    }

    .quote-arabic { font-size: 24px; }
    .quote-translation { font-size: 15px; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 26px; }
    .hero-buttons { flex-direction: column; }
    .hero-buttons .btn { width: 100%; }

    .sholat-grid {
        grid-template-columns: 1fr;
    }

    .galeri-grid {
        grid-template-columns: 1fr;
    }

    .profil-features {
        grid-template-columns: 1fr;
    }

    .section-title { font-size: 20px; }

    .nominal-btn {
        min-width: 70px;
        font-size: 11px;
    }
}

/* ==================== NAVBAR DROPDOWN ==================== */
.nav-item-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 220px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 1001;
    list-style: none;
}

.nav-item-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 10px 15px;
    color: var(--dark);
    text-decoration: none;
    font-size: 14px;
    border-radius: 8px;
    transition: var(--transition);
}

.dropdown-menu li a:hover {
    background: var(--green-bg);
    color: var(--primary);
}

@media (max-width: 992px) {
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        min-width: auto;
        padding-left: 15px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-item-dropdown:hover .dropdown-menu,
    .nav-item-dropdown.active .dropdown-menu {
        max-height: 300px;
    }

    .dropdown-menu li a {
        font-size: 13px;
        padding: 8px 12px;
    }
}

/* ==================== PAGE HEADER ==================== */
.page-header {
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #07345e 0%, #082f55 50%, #07345e 100%);
    position: relative;
    overflow: hidden;
    padding-top: 70px;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(201, 168, 76, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(42, 139, 111, 0.2) 0%, transparent 50%);
}

.page-header-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' 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");
}

.page-header-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    padding: 0 20px;
}

.page-header-content h1 {
    font-size: 38px;
    margin-bottom: 12px;
    font-weight: 700;
}

.page-header-content h1 i {
    color: var(--secondary-light);
    margin-right: 10px;
}

.page-header-content p {
    font-size: 16px;
    color: rgba(255,255,255,0.85);
}

/* ==================== LIGHTBOX (GALERI) ==================== */
.lightbox {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    z-index: 2500;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox.active {
    display: flex;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 36px;
    cursor: pointer;
    z-index: 10;
}

.lightbox-content {
    text-align: center;
    max-width: 640px;
    width: 92%;
}

.lightbox-image {
    width: 100%;
    max-width: 600px;
    min-height: 200px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: rgba(255,255,255,0.5);
    font-size: 64px;
    overflow: hidden;
}

.lightbox-image img {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    display: block;
    border-radius: var(--radius-lg);
}

.lightbox-title {
    color: var(--white);
    font-size: 22px;
    margin-bottom: 10px;
}

.lightbox-caption {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.lightbox-share {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.lightbox-share span {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

/* ==================== SHARE BUTTONS ==================== */
.share-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 16px;
}

.share-btn[data-platform="whatsapp"] { background: #25d366; }
.share-btn[data-platform="facebook"] { background: #1877f2; }
.share-btn[data-platform="twitter"]  { background: #1da1f2; }
.share-btn[data-platform="telegram"] { background: #0088cc; }
.share-btn[data-platform="copy"]     { background: var(--primary); }

.share-btn:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.artikel-modal-share,
.khutbah-modal-actions .khutbah-share {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.artikel-modal-share span,
.khutbah-share span {
    font-size: 14px;
    color: var(--gray);
    font-weight: 600;
}

/* ==================== GALERI SHARE ICON ==================== */
.galeri-item-share {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    opacity: 0;
    transition: var(--transition);
}

.galeri-item:hover .galeri-item-share {
    opacity: 1;
}

.galeri-item-share button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.9);
    color: var(--primary);
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition);
    margin-bottom: 5px;
    display: block;
}

.galeri-item-share button:hover {
    background: var(--white);
    transform: scale(1.1);
}

/* ==================== ARTIKEL PAGE ==================== */
.artikel-page {
    padding: 60px 0;
    background: var(--gray-light);
    min-height: 50vh;
}

.artikel-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
}

.artikel-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 8px 18px;
    border: 2px solid #e0e0e0;
    background: var(--white);
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--dark);
}

.filter-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box i {
    position: absolute;
    left: 15px;
    color: var(--gray);
    font-size: 14px;
}

.search-box input {
    padding: 10px 15px 10px 40px;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 14px;
    width: 250px;
    outline: none;
    transition: var(--transition);
}

.search-box input:focus {
    border-color: var(--primary);
}

.artikel-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.artikel-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

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

.artikel-card-banner {
    height: auto;
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    font-size: 48px;
    position: relative;
    overflow: hidden;
}

.artikel-card-banner img {
    width: 100%;
    height: auto;
    display: block;
}

.artikel-card-banner .artikel-cat-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255,255,255,0.9);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.artikel-card-body {
    padding: 20px;
}

.artikel-card-cat {
    display: inline-block;
    color: #fff;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.artikel-detail-image {
    width: 100%;
    line-height: 0;
}

.artikel-detail-image img {
    width: 100%;
    height: auto;
    display: block;
}

.artikel-card-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: var(--gray);
    margin-bottom: 10px;
}

.artikel-card-meta i {
    margin-right: 4px;
}

.artikel-card-body h3 {
    font-size: 17px;
    margin-bottom: 10px;
    color: var(--dark);
    line-height: 1.4;
}

.artikel-card-body p {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

.artikel-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #eee;
}

.artikel-card-author {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--gray);
}

.author-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--green-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 12px;
}

.read-more {
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.read-more:hover {
    color: var(--primary-dark);
}

/* Pagination */
.pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 35px;
}

.page-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    border: 2px solid #e0e0e0;
    background: var(--white);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--dark);
    transition: var(--transition);
}

.page-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.page-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

/* Sidebar */
.artikel-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-widget {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 25px;
    box-shadow: var(--shadow);
}

.sidebar-widget h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--dark);
    border-bottom: 2px solid var(--green-bg);
    padding-bottom: 10px;
}

.sidebar-widget h3 i {
    color: var(--secondary);
    margin-right: 6px;
}

.popular-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.popular-item {
    display: flex;
    gap: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.popular-item:hover h4 {
    color: var(--primary);
}

.popular-thumb {
    width: 60px;
    height: 60px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    font-size: 20px;
    flex-shrink: 0;
}

.popular-info h4 {
    font-size: 13px;
    color: var(--dark);
    margin-bottom: 4px;
    transition: var(--transition);
    line-height: 1.3;
}

.popular-info span {
    font-size: 11px;
    color: var(--gray);
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: var(--gray-light);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--dark);
    font-size: 14px;
    transition: var(--transition);
}

.cat-item:hover {
    background: var(--green-bg);
    color: var(--primary);
}

.cat-count {
    background: var(--primary);
    color: var(--white);
    padding: 2px 10px;
    border-radius: 50px;
    font-size: 12px;
}

.sidebar-cta {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    text-align: center;
    color: var(--white);
}

.sidebar-cta i {
    font-size: 40px;
    margin-bottom: 10px;
    color: var(--secondary-light);
}

.sidebar-cta h3 {
    color: var(--white);
    border: none;
}

.sidebar-cta p {
    font-size: 14px;
    margin-bottom: 15px;
    color: rgba(255,255,255,0.9);
}

.btn-sm {
    padding: 10px 24px;
    font-size: 13px;
}

/* Artikel Modal */
.artikel-modal {
    max-width: 700px;
}

.artikel-modal-body {
    padding: 10px 0;
}

.artikel-modal-body .am-banner {
    height: 200px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    font-size: 56px;
    margin-bottom: 20px;
}

.artikel-modal-body .am-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 15px;
}

.artikel-modal-body .am-meta i {
    margin-right: 4px;
}

.artikel-modal-body h2 {
    font-size: 24px;
    color: var(--dark);
    margin-bottom: 15px;
    line-height: 1.4;
}

.artikel-modal-body .am-content {
    font-size: 15px;
    color: #444;
    line-height: 1.8;
}

.artikel-modal-body .am-content p {
    margin-bottom: 15px;
}

.artikel-modal-body .am-content h4 {
    font-size: 18px;
    color: var(--primary);
    margin: 20px 0 10px;
}

.artikel-modal-body .am-content .arabic-text {
    font-family: var(--font-arabic);
    font-size: 22px;
    color: var(--primary-dark);
    text-align: center;
    margin: 15px 0;
    direction: rtl;
}

.artikel-modal-share {
    border-top: 2px solid var(--gray-light);
    padding-top: 20px;
    margin-top: 20px;
}

/* ==================== KEPENGURUSAN PAGE ==================== */
.kepengurusan-page {
    padding: 60px 0;
    background: var(--gray-light);
    min-height: 50vh;
}

.org-top {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.org-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid var(--primary);
}

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

.org-card-head {
    min-width: 300px;
    border-top-color: var(--secondary);
}

.org-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: var(--white);
    font-size: 36px;
}

.org-card-head .org-avatar {
    width: 100px;
    height: 100px;
    font-size: 44px;
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
}

.org-card h3 {
    font-size: 20px;
    color: var(--dark);
    margin-bottom: 5px;
}

.org-card h4 {
    font-size: 16px;
    color: var(--dark);
    margin-bottom: 5px;
}

.org-role {
    display: inline-block;
    background: var(--green-bg);
    color: var(--primary);
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}

.org-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 10px;
}

.bidang-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.bidang-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 25px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.bidang-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--gray-light);
}

.bidang-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius);
    background: var(--green-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 22px;
    flex-shrink: 0;
}

.bidang-header h4 {
    font-size: 16px;
    color: var(--dark);
}

.bidang-koordinator {
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 10px;
}

.bidang-koordinator strong {
    color: var(--dark);
}

.bidang-tugas {
    font-size: 13px;
    color: #555;
}

.anggota-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.anggota-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.anggota-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--green-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    color: var(--primary);
    font-size: 26px;
}

.anggota-card h4 {
    font-size: 14px;
    color: var(--dark);
    margin-bottom: 3px;
}

.anggota-role {
    font-size: 12px;
    color: var(--gray);
}

/* ==================== KRITIK & SARAN PAGE ==================== */
.kritik-saran-page {
    padding: 60px 0;
    background: var(--gray-light);
    min-height: 50vh;
}

.kritik-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
    padding: 30px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.intro-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background: var(--green-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.intro-icon i {
    font-size: 28px;
    color: var(--primary);
}

.kritik-intro p {
    font-size: 15px;
    color: #555;
    line-height: 1.8;
}

.kritik-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
    margin-bottom: 50px;
}

.kritik-form-wrapper {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 35px;
    box-shadow: var(--shadow);
}

.kritik-form-wrapper h3 {
    font-size: 20px;
    margin-bottom: 25px;
    color: var(--dark);
}

.kritik-form-wrapper h3 i {
    color: var(--primary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.required {
    color: #e74c3c;
}

.char-counter {
    text-align: right;
    font-size: 12px;
    color: var(--gray);
    margin-top: 4px;
}

.char-counter.warning {
    color: #e67e22;
}

.char-counter.danger {
    color: #e74c3c;
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--primary);
}

.kritik-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.kritik-stat-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 25px;
    text-align: center;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary);
}

.stat-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 10px;
    background: var(--green-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon i {
    font-size: 22px;
    color: var(--primary);
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--dark);
}

.stat-label {
    font-size: 13px;
    color: var(--gray);
}

.kritik-info-box {
    background: var(--white);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
}

.kritik-info-box h4 {
    font-size: 16px;
    margin-bottom: 12px;
    color: var(--dark);
}

.kritik-info-box h4 i {
    color: var(--secondary);
}

.kritik-info-box ul {
    list-style: none;
}

.kritik-info-box ul li {
    padding: 6px 0;
    font-size: 13px;
    color: #555;
    padding-left: 20px;
    position: relative;
}

.kritik-info-box ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--primary);
    font-size: 11px;
}

.kritik-contact-box {
    background: linear-gradient(135deg, #25d366, #128c7e);
    border-radius: var(--radius);
    padding: 25px;
    text-align: center;
    color: var(--white);
}

.kritik-contact-box h4 {
    color: var(--white);
    font-size: 16px;
    margin-bottom: 8px;
}

.kritik-contact-box p {
    font-size: 13px;
    margin-bottom: 15px;
    color: rgba(255,255,255,0.9);
}

.btn-wa {
    background: var(--white);
    color: #128c7e;
}

.btn-wa:hover {
    background: #f0f0f0;
    color: #128c7e;
}

/* Testimoni */
.testimoni-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.testimoni-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 25px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary);
}

.testimoni-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.testimoni-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--green-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 18px;
}

.testimoni-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
}

.testimoni-date {
    font-size: 12px;
    color: var(--gray);
}

.testimoni-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 10px;
}

.testimoni-badge.kritik { background: #fee; color: #c0392b; }
.testimoni-badge.saran { background: #e8f6ef; color: #27ae60; }
.testimoni-badge.apresiasi { background: #fef9e7; color: #f39c12; }
.testimoni-badge.laporan { background: #eaf2f8; color: #2980b9; }
.testimoni-badge.permohonan { background: #f5eef8; color: #8e44ad; }

.testimoni-text {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
}

.testimoni-status {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #eee;
    font-size: 12px;
    color: var(--gray);
}

.testimoni-status .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-dot.resolved { background: #27ae60; }
.status-dot.processing { background: #f39c12; }

/* ==================== JADWAL JUMAT PAGE ==================== */
.jumat-info {
    background: var(--white);
    padding: 40px 0;
    border-bottom: 1px solid #eee;
}

.jumat-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.jumat-info-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--green-bg);
    border-radius: var(--radius);
}

.jumat-info-card i {
    font-size: 28px;
    color: var(--primary);
    flex-shrink: 0;
}

.jumat-info-card h4 {
    font-size: 14px;
    color: var(--dark);
    margin-bottom: 3px;
}

.jumat-info-card p {
    font-size: 14px;
    color: #555;
}

.jadwal-jumat {
    padding: 60px 0;
    background: var(--gray-light);
    min-height: 50vh;
}

.bulan-selector {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.bulan-btn {
    padding: 10px 24px;
    border: 2px solid #e0e0e0;
    background: var(--white);
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--dark);
}

.bulan-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.bulan-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.jumat-table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.jumat-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    min-width: 700px;
}

.jumat-table thead {
    background: var(--primary);
}

.jumat-table thead th {
    padding: 15px;
    text-align: left;
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
}

.jumat-table tbody tr {
    border-bottom: 1px solid #eee;
    transition: var(--transition);
}

.jumat-table tbody tr:hover {
    background: var(--green-bg);
}

.jumat-table tbody tr.today {
    background: #fff9e6;
}

.jumat-table tbody tr.today td:first-child {
    position: relative;
}

.jumat-table tbody tr.today td:first-child::before {
    content: 'Hari ini';
    position: absolute;
    top: 2px;
    right: 4px;
    background: var(--secondary);
    color: var(--dark);
    font-size: 9px;
    padding: 2px 8px;
    border-radius: 50px;
    font-weight: 700;
}

.jumat-table td {
    padding: 14px 15px;
    font-size: 14px;
    color: var(--dark);
}

.jumat-table .khatib-name {
    font-weight: 600;
}

.jumat-table .tema {
    color: #555;
}

.btn-khutbah {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border: none;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
    margin-right: 5px;
}

.btn-view {
    background: var(--green-bg);
    color: var(--primary);
}

.btn-view:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-download {
    background: var(--primary);
    color: var(--white);
}

.btn-download:hover {
    background: var(--primary-dark);
}

.btn-download:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.jumat-note {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff9e6;
    padding: 15px 20px;
    border-radius: var(--radius);
    margin-top: 25px;
    color: #555;
    font-size: 14px;
}

.jumat-note i {
    color: var(--secondary);
    font-size: 20px;
    flex-shrink: 0;
}

/* Khutbah Modal */
.khutbah-modal {
    max-width: 750px;
}

.khutbah-modal-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--gray-light);
}

.khutbah-modal-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 12px;
    background: var(--green-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.khutbah-modal-icon i {
    font-size: 28px;
    color: var(--primary);
}

.khutbah-modal-info {
    font-size: 14px;
    color: var(--gray);
    margin-top: 5px;
}

.khutbah-modal-body {
    font-size: 15px;
    color: #444;
    line-height: 1.9;
    max-height: 400px;
    overflow-y: auto;
    padding: 0 5px;
}

.khutbah-modal-body h4 {
    color: var(--primary);
    margin: 20px 0 10px;
    font-size: 17px;
}

.khutbah-modal-body .arabic {
    font-family: var(--font-arabic);
    font-size: 24px;
    color: var(--primary-dark);
    text-align: center;
    margin: 15px 0;
    direction: rtl;
    line-height: 2;
}

.khutbah-modal-body .translation {
    font-style: italic;
    color: #666;
    text-align: center;
    margin-bottom: 15px;
}

.khutbah-modal-body p {
    margin-bottom: 12px;
}

.khutbah-modal-body ol,
.khutbah-modal-body ul {
    margin: 10px 0 15px 20px;
}

.khutbah-modal-body ol li,
.khutbah-modal-body ul li {
    margin-bottom: 6px;
}

/* ==================== KHUTBAH PDF VIEWER ==================== */
.khutbah-pdf-viewer {
    margin: 0 -5px;
}

.khutbah-pdf-viewer iframe {
    display: block;
    background: #f5f5f5;
}

.khutbah-pdf-hint {
    text-align: center;
    font-size: 12px;
    color: var(--gray);
    margin-top: 10px;
    padding: 8px;
    background: var(--gray-light, #f8f9fa);
    border-radius: 8px;
}

/* ==================== KHUTBAH ARABIC TEXT ==================== */
.khutbah-para-arabic {
    font-family: var(--font-arabic), 'Amiri', serif;
    font-size: 22px;
    line-height: 2.2;
    color: var(--primary-dark, #07345e);
    text-align: right;
    direction: rtl;
    margin-bottom: 18px;
    padding: 12px 16px;
    background: rgba(8, 47, 85, 0.03);
    border-right: 3px solid var(--gold, #e5a823);
    border-radius: 8px;
}

.khutbah-para-normal {
    font-size: 15px;
    line-height: 1.9;
    color: #444;
    margin-bottom: 12px;
    text-align: justify;
}

.khutbah-text-rtl {
    direction: rtl;
}

.khutbah-modal-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid var(--gray-light);
    flex-wrap: wrap;
    gap: 15px;
}

.khutbah-text-preview {
    line-height: 1.9;
    font-size: 15px;
    color: #444;
}

.khutbah-text-collapsed,
.khutbah-text-full {
    white-space: pre-wrap;
    word-wrap: break-word;
    padding: 0 5px;
}

.khutbah-expand-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.khutbah-file-preview {
    text-align: center;
}

.khutbah-file-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--green-bg, #f6f8fb);
    border: 2px solid #e0e6f0;
    border-radius: 12px;
    padding: 20px;
    text-align: left;
}

.khutbah-file-icon {
    font-size: 48px;
    color: var(--primary, #082f55);
    flex-shrink: 0;
}

.khutbah-file-details h4 {
    color: var(--primary, #082f55);
    margin: 0 0 6px 0;
    font-size: 16px;
    word-break: break-word;
}

.khutbah-file-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    font-size: 13px;
    color: var(--gray);
    flex-wrap: wrap;
}

.khutbah-file-badge {
    display: inline-block;
    background: var(--secondary, #e5a823);
    color: #fff;
    padding: 2px 10px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
}

.khutbah-file-hint {
    margin-top: 14px;
    color: var(--gray);
    font-size: 14px;
}

.khutbah-download-count {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--gray);
    background: var(--green-bg, #f6f8fb);
    padding: 6px 14px;
    border-radius: 20px;
}

.khutbah-download-count i {
    color: var(--secondary, #e5a823);
}

/* ==================== RESPONSIVE - NEW PAGES ==================== */
@media (max-width: 992px) {
    .artikel-layout {
        grid-template-columns: 1fr;
    }

    .org-row {
        grid-template-columns: 1fr;
    }

    .kritik-grid {
        grid-template-columns: 1fr;
    }

    .jumat-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .nav-menu {
        max-height: 70vh;
        overflow-y: auto;
    }
}

@media (max-width: 768px) {
    .page-header-content h1 {
        font-size: 26px;
    }

    .artikel-list {
        grid-template-columns: 1fr;
    }

    .search-box input {
        width: 100%;
    }

    .artikel-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .testimoni-list {
        grid-template-columns: 1fr;
    }

    .jumat-info-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .khutbah-modal-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .khutbah-modal-actions .btn {
        width: 100%;
    }

    .khutbah-download-count {
        align-self: center;
    }

    .khutbah-file-card {
        flex-direction: column;
        text-align: center;
    }

    .khutbah-share {
        justify-content: center;
    }

    .khutbah-pdf-viewer iframe {
        height: 350px;
    }

    .khutbah-para-arabic {
        font-size: 18px;
        line-height: 2;
        padding: 10px 12px;
    }

    .khutbah-modal-body {
        max-height: 350px;
    }
}

/* ==================== WELCOME ANIMATION ==================== */
.welcome-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(8, 47, 85, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: welcomeFadeIn 0.5s ease forwards;
}

.welcome-overlay.hide {
    animation: welcomeFadeOut 0.6s ease forwards;
}

@keyframes welcomeFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes welcomeFadeOut {
    from { opacity: 1; transform: scale(1); }
    to { opacity: 0; transform: scale(1.1); }
}

.welcome-card {
    position: relative;
    width: 90%;
    max-width: 480px;
    background: linear-gradient(135deg, #082f55 0%, #0b4f8a 50%, #07345e 100%);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
    animation: welcomeSlideUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}

@keyframes welcomeSlideUp {
    from { transform: translateY(60px) scale(0.9); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.welcome-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(229, 168, 35, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(229, 168, 35, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(11, 79, 138, 0.3) 0%, transparent 60%);
    pointer-events: none;
}

.welcome-pattern::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23e5a823' fill-opacity='0.04'%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");
}

.welcome-content {
    position: relative;
    z-index: 2;
    padding: 45px 30px;
    text-align: center;
}

.welcome-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: rgba(229, 168, 35, 0.15);
    border: 2px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: welcomeIconPulse 2s ease infinite;
}

.welcome-icon i {
    font-size: 36px;
    color: var(--gold);
}

@keyframes welcomeIconPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(229, 168, 35, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(229, 168, 35, 0); }
}

.welcome-arabic {
    font-family: var(--font-arabic);
    font-size: 22px;
    color: var(--gold-light);
    margin-bottom: 18px;
    direction: rtl;
    line-height: 1.8;
    animation: welcomeTextFade 0.8s ease 0.5s both;
}

.welcome-title {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    animation: welcomeTextFade 0.8s ease 0.7s both;
}

.welcome-subtitle {
    font-size: 18px;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 4px;
    animation: welcomeTextFade 0.8s ease 0.9s both;
}

.welcome-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 20px;
    animation: welcomeTextFade 0.8s ease 1.1s both;
}

.welcome-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 20px 0;
    animation: welcomeTextFade 0.8s ease 1.3s both;
}

.welcome-divider span {
    height: 1px;
    width: 50px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.welcome-divider i {
    font-size: 14px;
    color: var(--gold);
}

.welcome-quote {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    font-style: italic;
    margin-bottom: 25px;
    animation: welcomeTextFade 0.8s ease 1.5s both;
}

.welcome-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 36px;
    background: var(--gold);
    color: var(--navy);
    border: none;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: welcomeTextFade 0.8s ease 1.7s both;
}

.welcome-btn:hover {
    background: var(--gold-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(229, 168, 35, 0.3);
}

@keyframes welcomeTextFade {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
    .welcome-content { padding: 35px 20px; }
    .welcome-arabic { font-size: 18px; }
    .welcome-title { font-size: 22px; }
    .welcome-subtitle { font-size: 15px; }
}

/* ==================== MOBILE OPTIMIZATION ==================== */

/* Prevent horizontal scroll on all devices */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

/* Hero uses small viewport height on mobile (fixes browser chrome issue) */
@media (max-width: 768px) {
    .hero {
        min-height: 100svh;
        min-height: 100vh;
        padding-top: 60px;
        padding-bottom: 40px;
    }
}

/* Navbar logo: smaller text on mobile */
@media (max-width: 480px) {
    .nav-container { padding: 0 12px; }
    .logo-icon { font-size: 26px; }
    .logo-title { font-size: 14px; }
    .logo-subtitle { font-size: 9px; }
    .nav-logo { gap: 8px; }
}

/* Mobile nav menu: better scroll & spacing */
@media (max-width: 992px) {
    .nav-menu {
        top: 60px;
        padding: 15px 20px 25px;
        max-height: calc(100vh - 60px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-link {
        padding: 12px 14px;
        font-size: 15px;
        display: block;
        border-radius: 8px;
    }

    .dropdown-menu {
        padding-left: 18px;
        margin-top: 2px;
    }

    .dropdown-menu li a {
        padding: 10px 14px;
        font-size: 14px;
    }
}

/* Section padding: comfortable on mobile */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    section {
        padding: 40px 0;
    }

    .section-header {
        margin-bottom: 30px;
    }
}

/* Footer stats: wrap nicely on small screens */
@media (max-width: 480px) {
    .footer-stats-grid {
        gap: 8px;
    }
    .footer-stat-item {
        min-width: 0;
        flex: 1 1 calc(50% - 8px);
        padding: 10px 8px;
    }
    .footer-stat-value { font-size: 18px; }
    .footer-stat-label { font-size: 10px; }
}

/* Buttons: full-width tap targets on mobile */
@media (max-width: 480px) {
    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }
    .btn-block { width: 100%; }
}

/* Images: never overflow */
img {
    max-width: 100%;
    height: auto;
}

/* Tables: ensure scrollable wrapper */
.table-wrapper,
.data-table-wrapper,
.jumat-table-wrapper {
    -webkit-overflow-scrolling: touch;
}

/* Page header: shorter on mobile */
@media (max-width: 768px) {
    .page-header {
        min-height: 200px;
        padding: 60px 0 30px;
    }
    .page-header-content h1 {
        font-size: 22px;
    }
    .page-header-content p {
        font-size: 13px;
    }
}

/* Form inputs: prevent zoom on iOS (font-size >= 16px) */
@media (max-width: 768px) {
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    input[type="password"],
    input[type="search"],
    select,
    textarea {
        font-size: 16px !important;
    }
}

/* Modal: full-screen on mobile */
@media (max-width: 480px) {
    .modal-overlay {
        padding: 10px;
    }
    .modal {
        max-width: 100% !important;
        max-height: 90vh;
        overflow-y: auto;
    }
}

/* Donasi & ZIS: stack on mobile */
@media (max-width: 480px) {
    .rekening-card,
    .donasi-card {
        padding: 16px;
    }
}

/* Scroll-to-top button: reposition on mobile */
@media (max-width: 480px) {
    .scroll-top {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
        font-size: 16px;
    }
}

/* Map iframe: proper height on mobile */
@media (max-width: 768px) {
    .map-container iframe {
        height: 250px;
    }
}

/* Kepengurusan cards: single column on small mobile */
@media (max-width: 480px) {
    .org-card {
        min-width: 0 !important;
        width: 100%;
    }
}

