/* CSS Design System - Daim Trust & Foundation */

:root {
    --primary: #D32F2F;        /* Brand Crimson Red */
    --primary-hover: #B71C1C;
    --primary-tint: #FFEBEE;
    --dark: #121212;           /* Charcoal Dark */
    --dark-surface: #1E1E1E;
    --dark-surface-2: #2D2D2D;
    --light-bg: #FAFAFA;
    --text-dark: #212121;
    --text-muted: #666666;
    --text-white: #FFFFFF;
    --text-light-muted: #E0E0E0;
    --border-color: #E0E0E0;
    --font-en: 'Outfit', 'Inter', sans-serif;
    --font-ur: 'Noto Naskh Arabic', serif;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--light-bg);
    color: var(--text-dark);
    font-family: var(--font-en);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Urdu font family handling */
html[lang="ur"] body {
    font-family: var(--font-ur);
    line-height: 1.8;
}

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

ul {
    list-style: none;
}

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

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center { text-align: center; }
.text-white { color: var(--text-white) !important; }
.text-light { color: var(--text-light-muted) !important; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 2px solid transparent;
    font-family: inherit;
}

.btn-large {
    padding: 14px 36px;
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
}

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

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.3);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.2);
}

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

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

/* Top Bar Styling */
.top-bar {
    background-color: var(--dark);
    color: var(--text-white);
    font-size: 0.9rem;
    padding: 10px 0;
    border-bottom: 1px solid var(--dark-surface-2);
}

.top-bar-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.contact-info, .top-bar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-info span, .social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.contact-info span svg, .social-link svg {
    color: var(--primary);
}

.contact-info a:hover, .social-link a:hover {
    color: var(--primary);
}

.lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.lang-btn {
    font-weight: 500;
    opacity: 0.7;
}

.lang-btn.active {
    color: var(--primary);
    font-weight: 700;
    opacity: 1;
}

.divider {
    color: var(--dark-surface-2);
}

/* Header & Navigation Styling */
.main-header {
    background-color: var(--text-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
    transition: var(--transition-smooth);
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 80px;
    width: auto;
    max-width: 100%;
    display: block;
    object-fit: contain;
    transition: var(--transition-smooth);
}

@media (max-width: 1024px) {
    .logo-img {
        height: 68px;
    }
}

@media (max-width: 768px) {
    .logo-img {
        height: 56px;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 48px;
    }
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.1;
}

.logo-sub {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--primary);
}

/* RTL adjusts for Logo letter spacing */
html[dir="rtl"] .logo-sub {
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-menu ul {
    display: flex;
    gap: 24px;
}

.nav-menu a {
    font-weight: 700;
    font-size: 1.08rem;
    color: #121212; /* Prominent Dark Black */
    letter-spacing: 0.2px;
}

.nav-menu a:hover, .nav-menu a.active {
    color: var(--primary);
}

.nav-menu .nav-donate-btn {
    color: var(--text-white) !important;
}

.nav-menu .nav-donate-btn:hover {
    color: var(--text-white) !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 101;
}

.nav-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--dark);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 80px 0;
    background: linear-gradient(135deg, #FFF 0%, var(--primary-tint) 100%);
    overflow: hidden;
}

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

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

html[dir="rtl"] .hero-content {
    align-items: flex-start;
}

.hero-tag {
    background-color: var(--primary-tint);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.2;
    margin-bottom: 20px;
}

html[lang="ur"] .hero-title {
    font-size: 3.4rem;
    line-height: 1.4;
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 35px;
    max-width: 580px;
}

.hero-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-image-wrapper {
    position: relative;
    z-index: 1;
}

.hero-img {
    border-radius: 30px;
    box-shadow: var(--shadow-lg);
    border: 8px solid var(--text-white);
    position: relative;
    z-index: 2;
    transform: rotate(1deg);
    transition: var(--transition-smooth);
}

.hero-img:hover {
    transform: rotate(0deg) scale(1.02);
}

.hero-decoration-circle {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background-color: rgba(211, 47, 47, 0.08);
    bottom: -50px;
    right: -50px;
    z-index: 0;
}

/* Mission & Statistics Section */
.mission-section {
    padding: 80px 0;
    background-color: var(--text-white);
}

.mission-box {
    max-width: 800px;
    margin: 0 auto 60px auto;
}

.section-title {
    font-size: 2.3rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 20px;
}

html[lang="ur"] .section-title {
    font-size: 2.5rem;
    line-height: 1.4;
}

.mission-text {
    font-size: 1.25rem;
    color: var(--text-muted);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-card {
    background-color: var(--light-bg);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    border-bottom: 4px solid var(--primary);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

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

.stat-num {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 10px;
    font-family: 'Outfit', sans-serif;
}

.stat-label {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* Services Section */
.services-section {
    padding: 100px 0;
    background-color: var(--light-bg);
}

.section-header {
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background-color: var(--text-white);
    padding: 40px 30px;
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-smooth);
}

html[dir="rtl"] .service-card::after {
    transform-origin: right;
}

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

.service-card:hover::after {
    transform: scaleX(1);
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.red-icon {
    background-color: var(--primary-tint);
    color: var(--primary);
}

.service-icon svg {
    width: 32px;
    height: 32px;
}

.service-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 15px;
}

.service-desc {
    color: var(--text-muted);
    font-size: 1rem;
}

/* How to Help / Involved Section */
.involved-section {
    padding: 100px 0;
    background-color: var(--dark);
    position: relative;
}

.involved-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.involved-card {
    background-color: var(--dark-surface);
    padding: 45px 35px;
    border-radius: 24px;
    border: 1px solid var(--dark-surface-2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-smooth);
}

.involved-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.involved-card.highlighted {
    background-color: var(--primary);
    border-color: var(--primary);
}

.involved-card.highlighted:hover {
    box-shadow: 0 10px 30px rgba(211, 47, 47, 0.4);
}

.involved-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 20px;
}

.involved-card-desc {
    color: var(--text-light-muted);
    margin-bottom: 40px;
    font-size: 1.05rem;
}

/* Unity Banner Block */
.unity-block {
    padding: 80px 0;
    background-color: var(--primary-tint);
    border-bottom: 1px solid var(--border-color);
}

.unity-block h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 15px;
}

.unity-quote {
    font-size: 1.3rem;
    font-weight: 600;
    font-style: italic;
    color: var(--text-dark);
}

/* Contact Section & Form Styling */
.contact-section {
    padding: 100px 0;
    background-color: var(--text-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}

.contact-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-item {
    display: flex;
    gap: 20px;
    align-items: center;
}

.info-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-tint);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-text h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 5px;
}

.info-text p {
    color: var(--text-muted);
}

.contact-form-wrapper {
    background-color: var(--light-bg);
    padding: 40px;
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
}

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

.form-group input, .form-group textarea, .form-group select {
    padding: 12px 18px;
    border-radius: 10px;
    border: 1.5px solid var(--border-color);
    background-color: var(--text-white);
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-dark);
    transition: var(--transition-smooth);
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.15);
}

/* Footer Styling */
.footer {
    background-color: #0c1322; /* Deep Navy Dark Blue */
    color: var(--text-white);
    padding: 80px 0 40px 0;
    border-top: 1px solid #1a2438;
}

.footer-grid-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 25px;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 8px;
    align-self: flex-start;
}

html[dir="rtl"] .footer-title {
    align-self: flex-start;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col ul a {
    color: var(--text-light-muted);
    font-size: 0.95rem;
}

.footer-col ul a:hover {
    color: var(--primary);
    padding-inline-start: 5px;
}

.footer-socials {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.footer-socials a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-light-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.footer-socials a:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--text-white);
    transform: translateY(-3px);
}

/* Newsletter styling matching Khushkhabri TV style */
.newsletter-form {
    display: flex;
    align-items: center;
    position: relative;
    margin-top: 15px;
}

.newsletter-form input {
    width: 100%;
    padding: 12px 50px 12px 16px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-white);
    font-size: 0.92rem;
    outline: none;
    transition: var(--transition-smooth);
}

html[dir="rtl"] .newsletter-form input {
    padding: 12px 16px 12px 50px;
}

.newsletter-form input:focus {
    border-color: var(--primary);
    background-color: rgba(255, 255, 255, 0.08);
}

.newsletter-form button {
    position: absolute;
    inset-inline-end: 5px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: var(--primary);
    border: none;
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.newsletter-form button:hover {
    background-color: var(--primary-hover);
    transform: scale(1.05);
}

.footer-bottom-flex {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 20px;
}

.copyright {
    font-size: 0.95rem;
    color: var(--text-light-muted);
}

.developed-by {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Hero Slider Styles */
.hero-slider-section {
    position: relative;
    width: 100%;
    height: 650px;
    overflow: hidden;
}

.hero-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 1;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    color: var(--text-white);
    max-width: 800px;
}

/* Make slider overlay text highly prominent on open layout */
.slide-content .hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-white) !important;
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.9), 0 2px 5px rgba(0, 0, 0, 0.7);
}

.slide-content .hero-desc {
    font-size: 1.15rem;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 35px;
    color: var(--text-white) !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9), 0 1px 4px rgba(0, 0, 0, 0.7);
    max-width: 650px;
}

.slide-content .hero-tag {
    background-color: var(--primary);
    color: var(--text-white);
    font-size: 0.88rem;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 20px;
    display: inline-block;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .slide-content .hero-title {
        font-size: 2.2rem;
    }
    .slide-content .hero-desc {
        font-size: 1rem;
    }
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(18, 18, 18, 0.4);
    color: var(--text-white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2.2rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.slider-arrow:hover {
    background: var(--primary);
}

.slider-arrow.prev { left: 25px; }
.slider-arrow.next { right: 25px; }

html[dir="rtl"] .slider-arrow.prev { left: auto; right: 25px; }
html[dir="rtl"] .slider-arrow.next { right: auto; left: 25px; }

.slider-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.dot.active {
    background: var(--primary);
    transform: scale(1.2);
}

/* Quick Donation */
.donation-amount-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.amount-btn {
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 700;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: transparent;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition-smooth);
    font-family: inherit;
}

.amount-btn:hover, .amount-btn.active {
    border-color: var(--primary);
    color: var(--primary);
    background-color: var(--primary-tint);
}

/* Impact Gallery */
.gallery-masonry {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    height: 260px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 18, 18, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: 2;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    color: var(--text-white);
    font-size: 1.25rem;
    font-weight: 700;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 5px;
}

/* Animation */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.mock-map-marker {
    animation: bounce 2s infinite;
}


/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
    animation: fadeIn 0.3s forwards;
}

.modal-content {
    background-color: var(--text-white);
    padding: 40px;
    border-radius: 24px;
    width: 100%;
    max-width: 600px;
    box-shadow: var(--shadow-lg);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: var(--transition-smooth);
}

.modal.active .modal-content {
    transform: scale(1);
    animation: scaleIn 0.3s 0.1s forwards cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition-smooth);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

html[dir="rtl"] .modal-close {
    right: auto;
    left: 20px;
}

.modal-close:hover {
    background-color: var(--light-bg);
    color: var(--primary);
}

.modal-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 10px;
    padding-inline-end: 25px;
}

.modal-subtitle {
    color: var(--text-muted);
    margin-bottom: 25px;
    font-size: 1rem;
}

.bank-details-box, .wallet-details-box {
    background-color: var(--light-bg);
    padding: 25px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.bank-details-box h4, .wallet-details-box h4 {
    color: var(--primary);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.bank-details-box p {
    font-size: 1.05rem;
    margin-bottom: 8px;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 8px;
}

.bank-details-box p:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.wallet-flex {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.wallet-item {
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    color: var(--text-white);
    font-size: 1.1rem;
}

.card-easypaisa {
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
    box-shadow: 0 4px 10px rgba(76, 175, 80, 0.2);
}

.card-jazzcash {
    background: linear-gradient(135deg, #FF9800 0%, #EF6C00 100%);
    box-shadow: 0 4px 10px rgba(255, 152, 0, 0.2);
}

.modal-note {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 25px;
    background-color: var(--primary-tint);
    padding: 12px 18px;
    border-radius: 10px;
    border-inline-start: 4px solid var(--primary);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

/* Success Checkmark Anim */
.success-checkmark-wrapper {
    margin: 20px auto;
    width: 80px;
    height: 80px;
}

.checkmark {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: block;
    stroke-width: 2;
    stroke: #4CAF50;
    stroke-miterlimit: 10;
    box-shadow: inset 0px 0px 0px #4CAF50;
    animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
}

.checkmark__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke: #4CAF50;
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark__check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
    100% { stroke-dashoffset: 0; }
}

@keyframes scale {
    0%, 100% { transform: none; }
    50% { transform: scale3d(1.1, 1.1, 1); }
}

@keyframes fill {
    100% { box-shadow: inset 0px 0px 0px 40px rgba(76, 175, 80, 0.1); }
}

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

@keyframes scaleIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Volunteers photo wrapper */
.volunteer-photo-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px auto;
    border: 3px solid var(--primary-tint);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.volunteer-photo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 12%;
}

.service-card:hover .volunteer-photo-wrapper {
    border-color: var(--primary);
    transform: scale(1.05);
}

/* Modern Volunteers Section (Daim Foundation Style - Light Theme) */
.mission-volunteers-section {
    color: var(--text-dark);
}

.mission-vol-card {
    background-color: var(--text-white);
    border-radius: 24px;
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    border: 1.5px solid var(--border-color);
}

.vol-card-img-wrapper {
    width: 100%;
    height: 280px;
    overflow: hidden;
    background-color: var(--light-bg);
}

.vol-card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 12%;
    transition: var(--transition-smooth);
}

.mission-vol-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-tint);
    transform: translateY(-5px);
}

.mission-vol-card:hover .vol-card-img-wrapper img {
    transform: scale(1.03);
}

.vol-card-info {
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--text-white);
    border-top: 1px solid var(--border-color);
}

.vol-card-info h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 5px;
}

.vol-card-info p {
    font-size: 0.88rem;
    color: var(--primary);
    font-weight: 600;
}

.vol-card-action {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--primary);
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.vol-card-action:hover {
    background-color: var(--primary-hover);
    color: var(--text-white);
    transform: rotate(15deg) scale(1.05);
}

/* Volunteers grid 4-columns layout */
.volunteers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* Sermon Section Styles */
.sermon-section {
    background-color: var(--dark);
    padding: 100px 0;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid var(--dark-surface-2);
}

.sermon-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.sermon-graphics {
    position: relative;
}

.sermon-graphic-wrapper {
    position: relative;
    width: 100%;
    height: 420px;
}

.sermon-img-card.pastor-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 280px;
    height: 330px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    z-index: 1;
    border: 4px solid var(--dark-surface-2);
}

html[dir="rtl"] .sermon-img-card.pastor-card {
    left: auto;
    right: 0;
}

.sermon-img-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.sermon-styled-card.pray-card {
    position: absolute;
    bottom: 0;
    inset-inline-end: 20px;
    width: 280px;
    height: 280px;
    background-color: var(--dark-surface);
    border-radius: 24px;
    border: 3px solid #00B0FF;
    box-shadow: 0 0 20px rgba(0, 176, 255, 0.35);
    z-index: 2;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-logo {
    font-size: 0.72rem;
    color: var(--text-light-muted);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.card-title-main {
    font-size: 1.65rem;
    font-weight: 800;
    color: #4CAF50;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.card-flag-line {
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, #4CAF50 50%, #fff 50%);
    margin: 8px 0;
    border-radius: 2px;
}

.card-sub-text {
    font-size: 0.82rem;
    color: var(--text-light-muted);
    line-height: 1.4;
}

.sermon-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.sermon-badge {
    background-color: rgba(0, 176, 255, 0.1);
    color: #00B0FF;
    padding: 6px 18px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.88rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    border: 1px solid rgba(0, 176, 255, 0.3);
    letter-spacing: 1px;
}

.sermon-section-title {
    font-size: 2.7rem;
    font-weight: 800;
    color: var(--text-white);
    line-height: 1.2;
    margin-bottom: 20px;
}

html[lang="ur"] .sermon-section-title {
    font-size: 2.8rem;
    line-height: 1.4;
}

.sermon-desc {
    font-size: 1.1rem;
    color: var(--text-light-muted);
    margin-bottom: 30px;
    max-width: 620px;
}

.sermon-timings {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 35px;
    border-inline-start: 3px solid #00B0FF;
    padding-inline-start: 20px;
}

.timing-item p {
    font-size: 1.05rem;
    color: var(--text-white);
}

.timing-item strong {
    color: #00B0FF;
}

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

@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.8rem;
    }
    .sermon-section-title {
        font-size: 2.2rem;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .volunteers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .involved-grid {
        grid-template-columns: 1fr;
    }
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .footer-grid-layout {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    .founder-grid {
        grid-template-columns: 1fr !important;
        gap: 40px;
        text-align: center;
    }
    .founder-info {
        align-items: center !important;
    }
    .gallery-masonry {
        grid-template-columns: repeat(2, 1fr);
    }
    .team-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Stack top bar items cleanly on mobile viewports */
    .top-bar {
        padding: 6px 0;
    }
    
    .top-bar-flex {
        flex-direction: column;
        justify-content: center;
        gap: 6px;
        text-align: center;
    }
    
    .top-bar .contact-info {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
        font-size: 0.82rem;
    }
    
    .top-bar-right {
        justify-content: center;
        gap: 12px;
        font-size: 0.82rem;
    }

    .main-header {
        padding: 8px 0;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001; /* Stay on top of mobile menu */
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        z-index: 999;
        background-color: var(--text-white);
        flex-direction: column;
        justify-content: center;
        padding: 80px 20px;
        gap: 30px;
        box-shadow: var(--shadow-lg);
        transition: var(--transition-smooth);
        overflow-y: auto;
    }

    html[dir="rtl"] .nav-menu {
        left: auto;
        right: -100%;
    }

    .nav-menu.active {
        left: 0;
    }

    html[dir="rtl"] .nav-menu.active {
        right: 0;
    }

    .nav-menu ul {
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-content {
        align-items: center;
    }

    html[dir="rtl"] .hero-content {
        align-items: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-image-wrapper {
        order: -1;
    }

    .sermon-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .sermon-info {
        align-items: center;
    }

    .sermon-graphic-wrapper {
        width: 320px;
        margin: 0 auto;
        height: 380px;
    }

    .sermon-img-card.pastor-card {
        width: 220px;
        height: 260px;
    }

    .sermon-styled-card.pray-card {
        width: 220px;
        height: 220px;
        padding: 15px;
    }

    .card-title-main {
        font-size: 1.3rem;
    }

    .sermon-timings {
        border-inline-start: none;
        padding-inline-start: 0;
        text-align: center;
    }

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

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

    .team-grid-4 {
        grid-template-columns: 1fr;
    }

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

    .modal-content {
        padding: 30px 20px;
    }

    .wallet-flex {
        grid-template-columns: 1fr;
    }

    /* Slider Arrows are hidden on mobile to avoid overlapping */
    .slider-arrow {
        display: none !important;
    }

    .gallery-masonry {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .gallery-item {
        height: 200px;
    }

    /* Footer Responsive Grid */
    .footer {
        padding: 50px 0 30px 0;
    }

    .footer-grid-layout {
        grid-template-columns: 1fr !important;
        gap: 40px;
        text-align: center;
    }
    
    .footer-col {
        align-items: center !important;
        text-align: center !important;
    }

    .footer-col ul {
        align-items: center !important;
        padding: 0 !important;
    }
    
    .logo-area {
        justify-content: center !important;
    }

    .footer-socials {
        justify-content: center !important;
    }

    .footer-title {
        align-self: center !important;
    }
    
    .newsletter-form {
        max-width: 400px;
        margin: 15px auto 0 auto;
        width: 100%;
    }
    
    .footer-bottom-flex {
        padding-top: 15px;
    }
}

/* Page Header Banner with Background Image */
.page-header-banner {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 150px 0;
    color: var(--text-white);
    text-align: center;
    border-bottom: 4px solid var(--primary);
}

.page-header-banner h1 {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
}

.page-header-banner p {
    font-size: 1.25rem;
    max-width: 750px;
    margin: 0 auto;
    color: #E0E0E0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .page-header-banner {
        padding: 90px 0;
    }
    .page-header-banner h1 {
        font-size: 2.4rem;
    }
    .page-header-banner p {
        font-size: 1.05rem;
    }
}


