:root {
    --primary-color: #000000;
    --secondary-color: #f5f5dc;
    /* Beige */
    --accent-color: #d4af37;
    /* Gold-ish */
    --text-color: #333;
    --white: #ffffff;
    --font-main: 'Tajawal', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--white);
    color: var(--text-color);
    overflow-x: hidden;
    direction: rtl;
    padding-top: 60px;
    /* Space for fixed navbar */
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 10px 0;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links li a:hover {
    color: var(--accent-color);
}

.nav-donate {
    background-color: var(--primary-color);
    color: var(--white) !important;
    padding: 8px 20px;
    border-radius: 20px;
    transition: background 0.3s !important;
}

.nav-donate:hover {
    background-color: var(--accent-color) !important;
}

.nav-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Header Section */
header {
    height: 100vh;
    background-color: var(--secondary-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 20px;
    margin-top: -60px;
    /* Counteract body padding */
}

.quran-verse {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    line-height: 1.8;
    max-width: 800px;
}

.logo-container img {
    max-width: 300px;
    width: 100%;
    height: auto;
    margin-bottom: 2rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    animation: bounce 2s infinite;
    cursor: pointer;
}

.scroll-indicator i {
    font-size: 2rem;
    color: var(--primary-color);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* Animations - Disabled per user request */
.fade-in-section {
    /* opacity: 0; */
}

.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-up {
    animation: fadeInUp 1s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section General */
section {
    padding: 80px 20px;
}

.section-title {
    text-align: start;
    font-size: 2.5rem;
    margin-bottom: 50px;
    position: relative;
    color: var(--primary-color);
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    margin: 10px 0 0 0;
    position: absolute;
    left: 0;
}

/* RTL Support for Title Underline (Default Side) */
html[dir="rtl"] .section-title::after {
    left: auto;
    right: 0;
}

/* Alternating Style: Center for Even Sections (Big Typography) */
section:nth-of-type(even) .section-title {
    text-align: center;
    width: 100%;
    margin: 0 auto 30px auto;
    padding: 0;
    background-color: transparent;
    color: #d6d6d6;
    /* Light gray, visible on white */
    font-size: 4.5rem;
    /* Very large */
    font-weight: 800;
    /* Bold */
    border: none;
    box-shadow: none;
    border-radius: 0;
    letter-spacing: -1px;
}

section:nth-of-type(even) .section-title::after {
    display: none;
}

/* Goals Section */
.goals-container {
    max-width: 1200px;
    margin: 0 auto;
}

.goal-item {
    display: flex;
    align-items: center;
    margin-bottom: 60px;
    gap: 40px;
}

.goal-item:nth-child(even) {
    flex-direction: row-reverse;
}

.goal-content {
    flex: 1;
}

.goal-content h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.goal-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
}

.goal-image {
    flex: 1;
}

.goal-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.goal-image img:hover {
    transform: scale(1.02);
}

/* Members Section */
.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.member-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid #eee;
}

.member-card:hover {
    transform: translateY(-10px);
}

.member-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background-color: #ddd;
}

.member-info {
    padding: 20px;
}

.member-info h3 {
    margin-bottom: 5px;
    color: var(--primary-color);
}

.member-info p {
    color: #777;
    font-size: 0.9rem;
}

/* Prayer Times Section */
.prayer-section {
    background-color: var(--secondary-color);
    text-align: center;
}

.prayer-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.date-picker {
    margin-bottom: 30px;
}

.date-picker input {
    padding: 10px;
    font-size: 1.1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: var(--font-main);
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.prayer-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
    /* Force scroll on small screens */
}

.prayer-table th,
.prayer-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.prayer-table th {
    background-color: #f9f9f9;
    color: var(--primary-color);
}

/* Donation Section */
.donation-container {
    display: flex;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
    gap: 50px;
}

.donation-form,
.bank-details {
    flex: 1;
    min-width: 300px;
}

.donation-form input,
.donation-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-main);
}

.btn-donate {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-donate:hover {
    background-color: #333;
}

.bank-details {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #eee;
}

.bank-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.bank-label {
    font-weight: bold;
    color: #555;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 50px 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
    justify-content: space-between;
}

.footer-info,
.footer-map {
    flex: 1;
    min-width: 300px;
}

.footer-info h3 {
    margin-bottom: 20px;
    color: var(--accent-color);
}

.footer-info p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.footer-map iframe {
    width: 100%;
    height: 250px;
    border: 0;
    border-radius: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .goal-item {
        flex-direction: column !important;
        text-align: center;
    }

    .section-title {
        font-size: 2rem;
    }

    .quran-verse {
        font-size: 1.1rem;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* GiveBrite Button */
.btn-givebrite {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px;
    background: linear-gradient(45deg, #d4af37, #f1c40f);
    color: #fff !important;
    font-weight: bold;
    font-size: 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    transition: all 0.3s ease;
    animation: pulse-attention 2s infinite;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-givebrite:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6);
    background: linear-gradient(45deg, #c5a028, #f39c12);
}

.btn-givebrite i {
    font-size: 1.1em;
}

@keyframes pulse-attention {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(212, 175, 55, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
    }
}

/* OR Separator */
.separator-or {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    color: #888;
}

.separator-or::before,
.separator-or::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #ddd;
}

.separator-or span {
    padding: 0 10px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
}