/* Custom Properties */
:root {
    --primary: #04493F;
    --primary-light: #0A6B5D;
    --accent: #D4AF37;
    --accent-hover: #B8860B;
    --bg-main: #F8FAFC;
    --bg-card: #FFFFFF;
    --text-main: #1E293B;
    --text-muted: #475569;
    --text-inverse: #FFFFFF;
    --border-color: #E2E8F0;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base HTML */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Nastaliq Urdu', serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 2.2;
    overflow-x: hidden;
    font-size: 18px;
}

/* LTR En-text Support */
.en-text {
    font-family: 'Inter', sans-serif;
    direction: ltr;
    display: inline-block;
}

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

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

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

.text-center {
    text-align: center;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 2rem;
}

.mt-5 {
    margin-top: 4rem;
}

.position-relative {
    position: relative;
}

/* Grid System */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Buttons */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 0.6rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: var(--accent);
    color: var(--text-inverse);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--text-inverse);
    border: 2px solid var(--text-inverse);
}

.btn-secondary:hover {
    background: var(--text-inverse);
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-large {
    font-size: 1.2rem;
    padding: 0.8rem 2.5rem;
}

/* Header & Nav */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
}

.blur-effect {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-sm);
}

.brand h1 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: -5px;
}

.badge {
    font-size: 1rem;
    background: var(--primary-light);
    color: white;
    padding: 0 0.5rem;
    border-radius: 4px;
    vertical-align: middle;
}

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

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: bold;
    transition: var(--transition);
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('./assets/Banner.JPG') center/cover no-repeat;
    color: var(--text-inverse);
    padding-top: 100px;
    /* Increased padding to prevent header overlap */
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.5;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.bismillah {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
    font-weight: 800;
    text-shadow: 0 4px 15px rgba(255, 255, 255, 1), 0 0 5px rgba(255, 255, 255, 0.8);
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    color: var(--primary);
    font-weight: 800;
    text-shadow: 0 4px 20px rgba(255, 255, 255, 1), 0 0 10px rgba(255, 255, 255, 0.8);
}

.hero-desc {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    font-weight: 700;
    color: var(--text-main);
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.9);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Sections General */
section {
    padding: 6rem 0;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

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

/* Stats Section */
.stats-section {
    background: var(--bg-card);
}

.stat-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: var(--bg-main);
    border-radius: 16px;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.icon-circle {
    width: 70px;
    height: 70px;
    background: rgba(4, 73, 63, 0.05);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1rem;
    transition: var(--transition);
}

.stat-card:hover .icon-circle {
    background: var(--primary);
    color: var(--text-inverse);
}

.stat-card h4 {
    font-family: 'Inter', sans-serif;
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-card p {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: bold;
}

/* Support Section */
.light-bg {
    background: var(--bg-main);
}

.expenses-text {
    font-size: 1.4rem;
    line-height: 2.4;
    color: var(--text-main);
    margin-top: 2rem;
}

.expenses-subtext {
    font-size: 1.1rem;
    color: var(--primary-light);
    margin-bottom: 2rem;
}

.support-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

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

.card-title {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.tag {
    background: rgba(212, 175, 55, 0.15);
    color: var(--accent-hover);
    padding: 0.3rem 1rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.zakat-highlight {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--text-inverse);
    border: none;
}

.zakat-highlight .card-title {
    color: var(--accent);
}

.zakat-highlight p {
    color: rgba(255, 255, 255, 0.9);
}

/* Bank Accounts Section */
.accounts-section {
    background: var(--bg-card);
}

.accounts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.account-card {
    background: var(--bg-main);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    text-align: right;
    transition: var(--transition);
}

.account-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.bank-logo {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 0.2rem 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.account-card h5 {
    font-size: 1.3rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.acc-title {
    font-weight: bold;
    color: var(--primary-light);
}

.branch {
    font-family: 'Inter', sans-serif;
    direction: ltr;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.iban-box {
    background: rgba(4, 73, 63, 0.05);
    border: 1px dashed var(--primary-light);
    border-radius: 8px;
    padding: 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.iban-box:hover {
    background: rgba(4, 73, 63, 0.1);
}

.iban-box span {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.95rem;
}

.copy-btn {
    background: var(--primary);
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}

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

/* Footer */
.footer {
    background: var(--primary);
    color: rgba(255, 255, 255, 0.8);
    padding: 4rem 0 2rem;
}

.footer-title {
    color: white;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.director {
    font-size: 1.2rem;
    color: var(--accent);
}

.contact-link {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    transition: var(--transition);
}

.contact-link:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
}

/* Toast */
.toast {
    visibility: hidden;
    min-width: 250px;
    background-color: var(--primary-light);
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 16px;
    position: fixed;
    z-index: 2000;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    font-size: 1.1rem;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transition: opacity 0.5s, visibility 0.5s;
}

.toast.show {
    visibility: visible;
    opacity: 1;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

.delay-5 {
    transition-delay: 0.5s;
}

.delay-6 {
    transition-delay: 0.6s;
}

/* New specific styles */
.grid-2 {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

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

.urdu-text-large {
    font-size: 1.25rem;
    line-height: 2.2;
    color: var(--text-main);
    text-align: justify;
}

.rounded-image {
    width: 100%;
    border-radius: 16px;
    object-fit: cover;
}

.shadow-lg {
    box-shadow: var(--shadow-lg);
}

.image-caption,
.gallery-caption {
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0 0 16px 16px;
    font-size: 1.1rem;
    margin-top: -5px;
    position: relative;
    z-index: 2;
}

.gallery-item {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.quote-box {
    background: white;
    border-right: 5px solid var(--accent);
    padding: 2rem;
    border-radius: 8px 16px 16px 8px;
    font-size: 1.2rem;
    box-shadow: var(--shadow-sm);
}

/* Accordion */
.accordion {
    width: 100%;
}

.accordion-item {
    margin-bottom: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    text-align: right;
    padding: 1.2rem 1.5rem;
    background: var(--bg-card);
    border: none;
    font-family: 'Noto Nastaliq Urdu', serif;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-header::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 1rem;
    transition: var(--transition);
}

.accordion-header.active {
    background: var(--primary);
    color: white;
}

.accordion-header.active::after {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: white;
    padding: 0 1.5rem;
}

.accordion-content p {
    padding: 1.5rem 0;
    font-size: 1.15rem;
    border-top: 1px solid var(--border-color);
}

/* Audit Section */
.audit-section {
    padding-bottom: 8rem;
}

.audit-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--bg-card);
    padding: 2.5rem 1.5rem;
    border-radius: 16px;
    text-decoration: none;
    color: var(--text-main);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

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

.audit-icon {
    font-size: 3.5rem;
    color: #e25555;
    /* PDF Red color */
    margin-bottom: 1rem;
    transition: var(--transition);
}

.audit-card:hover .audit-icon {
    transform: scale(1.1);
}

.audit-card h4 {
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.audit-link {
    font-size: 0.95rem;
    color: var(--accent-hover);
    font-weight: 600;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.audit-card:hover .audit-link {
    color: var(--accent);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .brand h1 {
        font-size: 1.4rem;
    }

    .subtitle {
        font-size: 0.8rem;
    }

    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }

    .bismillah {
        font-size: 1.5rem;
    }

    .hero-desc {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn-large {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .flex-center {
        flex-direction: column;
        gap: 0.5rem;
    }

    .stats-section .grid-3 {
        grid-template-columns: 1fr 1fr;
    }

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

    section {
        padding: 4rem 0;
    }

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

@media (max-width: 480px) {
    .stats-section .grid-3 {
        grid-template-columns: 1fr;
    }

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

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

    .stat-card h4 {
        font-size: 2rem;
    }

    .hero {
        padding-top: 120px;
        /* Extra padding for very small screens */
    }
}