@font-face {
    font-family: 'Quranic';
    src: url('Quranic.ttf') format('truetype');
  
}
@font-face {
    font-family: 'Noori';
    src: url('Mehar.ttf') format('truetype');
  
}
:root {
            --primary: #0d5c3f;
            --primary-light: #1a7a52;
            --primary-dark: #094a32;
            --gold: #c9a84c;
            --gold-light: #e8d5a3;
            --gold-dark: #a88a3a;
            --cream: #faf7f2;
            --cream-dark: #f0ebe0;
            --dark: #1c1c2e;
            --text: #2c2c2c;
            --text-muted: #6b6b6b;
            --white: #ffffff;
            --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.08);
            --shadow-md: 0 6px 24px rgba(0, 0, 0, 0.12);
            --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.18);
            --radius-sm: 8px;
            --radius-md: 16px;
            --radius-lg: 24px;
            --radius-xl: 32px;
            --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            --transition-slow: 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            --font-urdu: 'Noori', serif;
            --font-arabic: 'Quranic', serif;
            --font-calligraphy: 'Aref Ruqaa', serif;
            --drawer-width: 50vw;
        }

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

        html {
            scroll-behavior: smooth;
            -webkit-tap-highlight-color: transparent;
            overflow-x: hidden;
            width: 100%;
        }

        body {
            font-family: var(--font-urdu);
            background: var(--cream);
            color: var(--text);
            line-height: 1.8;
            overflow-x: hidden;
            width: 100%;
            direction: rtl;
            font-size: 16px;
            position: relative;
        }

        body.no-scroll {
            overflow: hidden;
            height: 100%;
            width: 100%;
        }

        ::selection {
            background: var(--gold);
            color: var(--dark);
        }

        ::-webkit-scrollbar {
            width: 6px;
        }
        ::-webkit-scrollbar-track {
            background: var(--cream-dark);
        }
        ::-webkit-scrollbar-thumb {
            background: var(--primary);
            border-radius: 5px;
        }
        ::-webkit-scrollbar-thumb:hover {
            background: var(--primary-light);
        }

        .islamic-pattern-bg {
            position: relative;
            background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23c9a84c' stroke-opacity='0.15' stroke-width='1'%3E%3Cpath d='M40 0L80 40L40 80L0 40Z'/%3E%3Cpath d='M40 10L70 40L40 70L10 40Z'/%3E%3Ccircle cx='40' cy='40' r='5'/%3E%3Cpath d='M40 0L40 10M80 40L70 40M40 80L40 70M0 40L10 40'/%3E%3Cpath d='M20 20L60 20M20 20L20 60M60 60L20 60M60 60L60 20'/%3E%3C/g%3E%3C/svg%3E");
        }

        /* ===== MOBILE FIRST ===== */
        .header {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1000;
            background: rgba(255, 255, 255, 0.92);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-bottom: 2px solid rgba(201, 168, 76, 0.3);
            transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            padding: 0.4rem 0.8rem;
            width: 100%;
        }
        .header.scrolled {
            padding: 0.2rem 0.8rem;
            box-shadow: var(--shadow-md);
            background: rgba(255, 255, 255, 0.97);
        }
        .header-inner {
            max-width: 1300px;
            margin: 0 auto;
            display: flex;
            align-items: center;
            justify-content: space-between;
            min-width: 0;
        }
        .header-brand {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            cursor: pointer;
            text-decoration: none;
            min-width: 0;
        }
        .header-logo {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            object-fit: cover;
            border: 2px solid var(--gold);
            transition: transform 0.3s, box-shadow 0.3s;
            flex-shrink: 0;
            background: var(--primary);
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }
        .header-brand:hover .header-logo {
            transform: scale(1.08);
            box-shadow: 0 4px 20px rgba(201, 168, 76, 0.4);
        }
        .header-brand-text {
            display: flex;
            flex-direction: column;
            min-width: 0;
            overflow: hidden;
        }
        .header-brand-name {
            font-size: 0.9rem;
            font-weight: 700;
            color: var(--primary-dark);
            line-height: 1.4;
            letter-spacing: 0.3px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .header-brand-sub {
            font-size: 0.5rem;
            color: var(--gold-dark);
            font-weight: 500;
            letter-spacing: 1px;
            text-transform: uppercase;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .header-toggle {
            width: 38px;
            height: 38px;
            border-radius: 10px;
            background: var(--cream);
            border: 1.5px solid rgba(201, 168, 76, 0.4);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 4px;
            cursor: pointer;
            transition: all 0.3s;
            position: relative;
            z-index: 1002;
            flex-shrink: 0;
        }
        .header-toggle:hover {
            background: var(--gold-light);
            border-color: var(--gold);
        }
        .header-toggle span {
            width: 18px;
            height: 2px;
            background: var(--primary);
            border-radius: 2px;
            transition: all 0.3s;
        }
        .header-toggle.active span:nth-child(1) {
            transform: rotate(45deg) translate(4px, 4px);
        }
        .header-toggle.active span:nth-child(2) {
            opacity: 0;
            transform: translateX(-10px);
        }
        .header-toggle.active span:nth-child(3) {
            transform: rotate(-45deg) translate(4px, -4px);
        }

        /* Drawer */
        .drawer-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.5);
            z-index: 1001;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.4s;
        }
        .drawer-overlay.active {
            opacity: 1;
            pointer-events: auto;
        }
        .drawer {
            position: fixed;
            top: 0;
            bottom: 0;
            right: 0;
            width: var(--drawer-width);
            max-width: 480px;
            background: linear-gradient(180deg, #ffffff 0%, var(--cream) 100%);
            z-index: 1003;
            transform: translateX(100%);
            transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            box-shadow: -10px 0 50px rgba(0, 0, 0, 0.2);
            overflow-y: auto;
            overflow-x: hidden;
            display: flex;
            flex-direction: column;
            border-left: 3px solid var(--gold);
            -webkit-overflow-scrolling: touch;
            will-change: transform;
            min-width: 0;
        }
        .drawer.active {
            transform: translateX(0);
        }
        .drawer-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0.8rem 1rem;
            border-bottom: 2px solid rgba(201, 168, 76, 0.3);
            background: linear-gradient(135deg, var(--primary), var(--primary-dark));
            color: var(--white);
            flex-shrink: 0;
        }
        .drawer-header-title {
            font-size: 0.9rem;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            min-width: 0;
        }
        .drawer-header-title i {
            color: var(--gold-light);
            font-size: 1.1rem;
        }
        .drawer-close {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.15);
            border: 1px solid rgba(255, 255, 255, 0.3);
            color: var(--white);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1rem;
            transition: all 0.3s;
            flex-shrink: 0;
        }
        .drawer-close:hover {
            background: rgba(255, 255, 255, 0.3);
            transform: rotate(90deg);
        }
        .drawer-nav {
            padding: 0.5rem 0.8rem;
            flex: 1;
            min-width: 0;
        }
        .drawer-nav a {
            display: flex;
            align-items: center;
            gap: 0.7rem;
            padding: 0.65rem 0.8rem;
            border-radius: 10px;
            color: var(--text);
            text-decoration: none;
            font-size: 0.85rem;
            font-weight: 500;
            transition: all 0.3s;
            margin-bottom: 0.2rem;
            border: 1px solid transparent;
            position: relative;
            overflow: hidden;
            white-space: nowrap;
        }
        .drawer-nav a::before {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(135deg, var(--primary), var(--primary-light));
            opacity: 0;
            transition: opacity 0.3s;
            border-radius: 10px;
            z-index: -1;
        }
        .drawer-nav a:hover {
            color: var(--white);
            border-color: rgba(201, 168, 76, 0.4);
            box-shadow: var(--shadow-sm);
        }
        .drawer-nav a:hover::before {
            opacity: 1;
        }
        .drawer-nav a .nav-icon {
            font-size: 1rem;
            width: 28px;
            text-align: center;
            flex-shrink: 0;
            color: var(--primary);
            transition: color 0.3s;
        }
        .drawer-nav a:hover .nav-icon {
            color: var(--gold-light);
        }
        .drawer-footer {
            padding: 0.8rem 1rem;
            border-top: 2px solid rgba(201, 168, 76, 0.3);
            text-align: center;
            font-size: 0.7rem;
            color: var(--text-muted);
            background: rgba(201, 168, 76, 0.08);
            flex-shrink: 0;
        }
        .drawer-footer .arabic {
            font-family: var(--font-arabic);
            font-size: 1rem;
            color: var(--primary);
            margin-bottom: 0.2rem;
        }

        /* Hero */
        .hero {
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            position: relative;
            background: linear-gradient(135deg, #0d5c3f 0%, #094a32 30%, #063526 60%, #1c1c2e 100%);
            overflow: hidden;
            padding: 5rem 0.8rem 3rem;
            width: 100%;
        }
        .hero::before {
            content: '';
            position: absolute;
            inset: 0;
            background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23c9a84c' stroke-opacity='0.12' stroke-width='1.2'%3E%3Cpath d='M50 0L100 50L50 100L0 50Z'/%3E%3Cpath d='M50 15L85 50L50 85L15 50Z'/%3E%3Ccircle cx='50' cy='50' r='8'/%3E%3Cpath d='M50 0V15M100 50H85M50 100V85M0 50H15'/%3E%3C/g%3E%3C/svg%3E");
            pointer-events: none;
        }
        .hero::after {
            content: '';
            position: absolute;
            bottom: -60px;
            left: -60px;
            width: 300px;
            height: 300px;
            background: radial-gradient(circle, rgba(201, 168, 76, 0.15), transparent 70%);
            border-radius: 50%;
            pointer-events: none;
        }
        .hero-content {
            position: relative;
            z-index: 2;
            max-width: 850px;
            width: 100%;
        }
        .hero-badge {
            display: inline-block;
            background: rgba(201, 168, 76, 0.2);
            border: 1.5px solid rgba(201, 168, 76, 0.5);
            border-radius: 50px;
            padding: 0.3rem 1rem;
            color: var(--gold-light);
            font-size: 0.7rem;
            margin-bottom: 1.2rem;
            letter-spacing: 1px;
            animation: fadeInDown 1s ease-out;
        }
        .hero-title {
            font-size: 2rem;
            font-weight: 800;
            color: var(--white);
            line-height: 1.5;
            margin-bottom: 0.8rem;
            text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
            animation: fadeInUp 1s ease-out 0.2s both;
        }
        .hero-title .gold-text {
            color: var(--gold-light);
        }
        .hero-slogan {
            font-size: 0.9rem;
            color: rgba(255, 255, 255, 0.85);
            font-weight: 500;
            margin-bottom: 0.5rem;
            animation: fadeInUp 1s ease-out 0.4s both;
        }
        .hero-arabic {
            font-family: var(--font-arabic);
            font-size: 0.9rem;
            color: var(--gold-light);
            margin-bottom: 1.5rem;
            letter-spacing: 2px;
            animation: fadeInUp 1s ease-out 0.6s both;
        }
        .hero-buttons {
            display: flex;
            flex-direction: column;
            gap: 0.6rem;
            align-items: center;
            animation: fadeInUp 1s ease-out 0.8s both;
            width: 100%;
        }
        .btn {
            padding: 0.6rem 1.5rem;
            border-radius: 50px;
            font-family: var(--font-urdu);
            font-size: 0.8rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            border: 2px solid transparent;
            letter-spacing: 0.5px;
            position: relative;
            overflow: hidden;
            width: 100%;
            max-width: 260px;
        }
        .btn::after {
            content: '';
            position: absolute;
            inset: 0;
            background: rgba(255, 255, 255, 0.1);
            transform: scaleX(0);
            transform-origin: right;
            transition: transform 0.4s;
            border-radius: 50px;
        }
        .btn:hover::after {
            transform: scaleX(1);
        }
        .btn i {
            font-size: 0.8em;
        }
        .btn-primary {
            background: linear-gradient(135deg, var(--gold), var(--gold-dark));
            color: var(--dark);
            border-color: var(--gold);
            box-shadow: 0 4px 20px rgba(201, 168, 76, 0.4);
        }
        .btn-primary:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 30px rgba(201, 168, 76, 0.5);
        }
        .btn-secondary {
            background: rgba(255, 255, 255, 0.1);
            color: var(--white);
            border-color: rgba(255, 255, 255, 0.4);
            backdrop-filter: blur(10px);
        }
        .btn-secondary:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: translateY(-3px);
            border-color: rgba(255, 255, 255, 0.6);
        }
        .btn-outline {
            background: transparent;
            color: var(--gold-light);
            border-color: var(--gold);
        }
        .btn-outline:hover {
            background: var(--gold);
            color: var(--dark);
            transform: translateY(-3px);
        }

        /* Slider */
        .slider-section {
            padding: 0;
            background: var(--cream);
            position: relative;
            width: 100%;
            overflow: hidden;
        }
        .slider-container {
            max-width: 1300px;
            margin: 0 auto;
            position: relative;
            overflow: hidden;
            border-radius: 0 0 var(--radius-lg) var(--radius-lg);
            width: 100%;
        }
        .slider-track {
            display: flex;
            transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            min-width: 0;
        }
        .slider-slide {
            min-width: 100%;
            height: 200px;
            position: relative;
            overflow: hidden;
            flex-shrink: 0;
        }
        .slider-slide img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.7s;
            display: block;
        }
        .slider-slide:hover img {
            transform: scale(1.03);
        }
        .slider-slide::after {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.5) 100%);
        }
        .slider-arrow {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.9);
            border: 2px solid rgba(201, 168, 76, 0.5);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-size: 0.8rem;
            color: var(--primary);
            z-index: 5;
            transition: all 0.3s;
            box-shadow: var(--shadow-sm);
        }
        .slider-arrow:hover {
            background: var(--gold);
            color: var(--dark);
            transform: translateY(-50%) scale(1.1);
        }
        .slider-arrow.prev {
            right: 0.5rem;
        }
        .slider-arrow.next {
            left: 0.5rem;
        }

        /* Sections */
        .section {
            padding: 2.5rem 0.8rem;
            position: relative;
            width: 100%;
            min-width: 0;
        }
        .section-inner {
            max-width: 1200px;
            margin: 0 auto;
            width: 100%;
            min-width: 0;
        }
        .section-label {
            display: inline-block;
            font-size: 0.75rem;
            color: var(--gold-dark);
            font-weight: 600;
            letter-spacing: 1px;
            margin-bottom: 0.3rem;
        }
        .section-title {
            font-size: 1.4rem;
            font-weight: 700;
            color: var(--primary-dark);
            margin-bottom: 0.5rem;
            line-height: 1.5;
        }
        .section-divider {
            width: 60px;
            height: 3px;
            background: linear-gradient(90deg, var(--gold), var(--gold-dark));
            border-radius: 2px;
            margin-bottom: 1rem;
        }
        .section-desc {
            font-size: 0.85rem;
            color: var(--text-muted);
            max-width: 700px;
            line-height: 1.9;
            margin-bottom: 1.5rem;
        }

        /* About */
        .about-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 1.5rem;
            align-items: center;
            min-width: 0;
        }
        .about-image-wrapper {
            position: relative;
            border-radius: var(--radius-md);
            overflow: hidden;
            box-shadow: var(--shadow-md);
            border: 3px solid var(--gold);
            background: var(--cream-dark);
            min-width: 0;
        }
        .about-image-wrapper img {
            width: 100%;
            height: 220px;
            object-fit: cover;
            display: block;
            transition: transform 0.6s;
        }
        .about-image-wrapper:hover img {
            transform: scale(1.05);
        }
        .about-image-frame {
            position: absolute;
            inset: 10px;
            border: 2px solid rgba(201, 168, 76, 0.5);
            border-radius: calc(var(--radius-md) - 10px);
            pointer-events: none;
            z-index: 2;
        }
        .about-text {
            display: flex;
            flex-direction: column;
            gap: 0.8rem;
            min-width: 0;
        }
        .about-feature {
            display: flex;
            align-items: flex-start;
            gap: 0.7rem;
            padding: 0.8rem 0.9rem;
            background: var(--white);
            border-radius: var(--radius-sm);
            box-shadow: var(--shadow-sm);
            border-right: 4px solid var(--gold);
            transition: all 0.3s;
            min-width: 0;
        }
        .about-feature:hover {
            transform: translateX(-5px);
            box-shadow: var(--shadow-md);
            border-right-color: var(--primary);
        }
        .about-feature-icon {
            font-size: 1.2rem;
            flex-shrink: 0;
            margin-top: 0.2rem;
            color: var(--primary);
            width: 28px;
            text-align: center;
        }
        .about-feature-text {
            font-size: 0.8rem;
            color: var(--text);
            line-height: 1.8;
            min-width: 0;
        }
        .about-feature-text strong {
            color: var(--primary-dark);
            font-weight: 700;
        }

        /* Courses */
        .courses-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 0.8rem;
            min-width: 0;
        }
        .course-card {
            background: var(--white);
            border-radius: var(--radius-sm);
            padding: 1.2rem 1rem;
            box-shadow: var(--shadow-sm);
            border: 1.5px solid rgba(201, 168, 76, 0.25);
            text-align: center;
            transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            cursor: default;
            position: relative;
            overflow: hidden;
            opacity: 0;
            transform: translateY(30px);
            min-width: 0;
        }
        .course-card.visible {
            opacity: 1;
            transform: translateY(0);
            transition: opacity 0.6s ease, transform 0.6s ease;
        }
        .course-card::before {
            content: '';
            position: absolute;
            top: 0;
            right: 0;
            width: 100%;
            height: 3px;
            background: linear-gradient(90deg, var(--primary), var(--gold));
            transform: scaleX(0);
            transform-origin: right;
            transition: transform 0.5s;
        }
        .course-card:hover::before {
            transform: scaleX(1);
        }
        .course-card:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-lg);
            border-color: var(--gold);
        }
        .course-icon {
            width: 48px;
            height: 48px;
            margin: 0 auto 0.7rem;
            background: linear-gradient(135deg, var(--primary), var(--primary-light));
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
            color: var(--gold-light);
            border: 2px solid var(--gold);
            transition: transform 0.4s;
        }
        .course-card:hover .course-icon {
            transform: scale(1.1) rotate(5deg);
        }
        .course-name {
            font-size: 1rem;
            font-weight: 700;
            color: var(--primary-dark);
            margin-bottom: 0.3rem;
        }
        .course-desc {
            font-size: 0.75rem;
            color: var(--text-muted);
            line-height: 1.7;
            margin-bottom: 0.7rem;
        }
        .course-link {
            display: inline-block;
            padding: 0.4rem 1rem;
            background: var(--cream);
            border: 1.5px solid rgba(201, 168, 76, 0.5);
            border-radius: 50px;
            color: var(--primary);
            text-decoration: none;
            font-size: 0.75rem;
            font-weight: 600;
            transition: all 0.3s;
        }
        .course-link:hover {
            background: var(--primary);
            color: var(--white);
            border-color: var(--primary);
        }

        /* Stats */
        .stats-section {
            background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
            padding: 2.5rem 0.8rem;
            position: relative;
            overflow: hidden;
            width: 100%;
        }
        .stats-section::before {
            content: '';
            position: absolute;
            inset: 0;
            background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23c9a84c' stroke-opacity='0.1' stroke-width='1.5'%3E%3Cpath d='M50 0L100 50L50 100L0 50Z'/%3E%3Cpath d='M50 15L85 50L50 85L15 50Z'/%3E%3C/g%3E%3C/svg%3E");
            pointer-events: none;
        }
        .stats-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 0.8rem;
            max-width: 1100px;
            margin: 0 auto;
            position: relative;
            z-index: 2;
            min-width: 0;
        }
        .stat-item {
            text-align: center;
            padding: 1.2rem 0.8rem;
            background: rgba(255, 255, 255, 0.08);
            border-radius: var(--radius-sm);
            border: 1.5px solid rgba(201, 168, 76, 0.3);
            transition: all 0.4s;
            backdrop-filter: blur(5px);
            min-width: 0;
        }
        .stat-item:hover {
            background: rgba(255, 255, 255, 0.15);
            border-color: var(--gold);
            transform: translateY(-3px);
        }
        .stat-number {
            font-size: 1.6rem;
            font-weight: 800;
            color: var(--gold-light);
            margin-bottom: 0.2rem;
            line-height: 1.3;
        }
        .stat-label {
            font-size: 0.75rem;
            color: rgba(255, 255, 255, 0.8);
            font-weight: 500;
        }

        /* Founder */
        .founder-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 1.5rem;
            align-items: center;
            min-width: 0;
        }
        .founder-image-wrap {
            position: relative;
            border-radius: var(--radius-md);
            overflow: hidden;
            box-shadow: var(--shadow-md);
            border: 3px solid var(--gold);
            background: var(--cream-dark);
            min-width: 0;
        }
        .founder-image-wrap img {
            width: 100%;
            height: 250px;
            object-fit: cover;
            display: block;
            transition: transform 0.6s;
        }
        .founder-image-wrap:hover img {
            transform: scale(1.04);
        }
        .founder-frame-ornament {
            position: absolute;
            inset: 10px;
            border: 2px solid rgba(201, 168, 76, 0.6);
            border-radius: calc(var(--radius-md) - 10px);
            pointer-events: none;
            z-index: 2;
        }
        .founder-name {
            font-size: 1.3rem;
            font-weight: 700;
            color: var(--primary-dark);
            margin-bottom: 0.2rem;
        }
        .founder-title {
            font-size: 0.8rem;
            color: var(--gold-dark);
            font-weight: 600;
            margin-bottom: 1rem;
        }
        .founder-text {
            font-size: 0.8rem;
            color: var(--text);
            line-height: 1.9;
            margin-bottom: 0.7rem;
        }
        .founder-services {
            display: flex;
            flex-wrap: wrap;
            gap: 0.4rem;
            margin-top: 0.8rem;
            min-width: 0;
        }
        .founder-tag {
            padding: 0.3rem 0.8rem;
            background: var(--cream-dark);
            border-radius: 50px;
            font-size: 0.7rem;
            color: var(--primary);
            border: 1px solid rgba(201, 168, 76, 0.4);
            transition: all 0.3s;
            white-space: nowrap;
        }
        .founder-tag:hover {
            background: var(--gold-light);
            border-color: var(--gold);
        }
        .founder-tag i {
            margin-left: 0.3rem;
            color: var(--gold-dark);
        }

        /* Gallery */
        .gallery-section {
            background: var(--white);
            position: relative;
            overflow: hidden;
            width: 100%;
        }
        .gallery-section::before {
            content: '';
            position: absolute;
            inset: 0;
            background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23c9a84c' stroke-opacity='0.06' stroke-width='1'%3E%3Cpath d='M40 0L80 40L40 80L0 40Z'/%3E%3C/g%3E%3C/svg%3E");
            pointer-events: none;
            z-index: 0;
        }
        .gallery-section .section-inner {
            position: relative;
            z-index: 1;
        }
        .gallery-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 0.5rem;
            margin-top: 1rem;
            min-width: 0;
        }
        .gallery-item {
            position: relative;
            border-radius: var(--radius-sm);
            overflow: hidden;
            box-shadow: var(--shadow-sm);
            cursor: pointer;
            aspect-ratio: 4/3;
            transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                        box-shadow 0.4s ease;
            border: 2px solid rgba(201, 168, 76, 0.25);
            background: var(--cream-dark);
            min-width: 0;
        }
        .gallery-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.6s ease;
            display: block;
        }
        .gallery-item:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-lg);
            border-color: var(--gold);
        }
        .gallery-item:hover img {
            transform: scale(1.1);
        }
        .gallery-overlay {
            position: absolute;
            inset: 0;
            background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.75) 100%);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: flex-end;
            padding: 0.7rem;
            color: var(--white);
            opacity: 0;
            transition: opacity 0.4s ease;
            text-align: center;
        }
        .gallery-item:hover .gallery-overlay {
            opacity: 1;
        }
        .gallery-overlay i {
            font-size: 1.2rem;
            color: var(--gold-light);
            margin-bottom: 0.3rem;
            transition: transform 0.3s;
        }
        .gallery-item:hover .gallery-overlay i {
            transform: scale(1.2);
        }
        .gallery-overlay span {
            font-size: 0.65rem;
            font-weight: 500;
            letter-spacing: 0.3px;
        }

        /* Lightbox */
        .lightbox-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.95);
            z-index: 2000;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s ease;
            flex-direction: column;
        }
        .lightbox-overlay.active {
            opacity: 1;
            pointer-events: auto;
        }
        .lightbox-content {
            max-width: 90vw;
            max-height: 85vh;
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .lightbox-img {
            max-width: 100%;
            max-height: 85vh;
            object-fit: contain;
            border-radius: 8px;
            box-shadow: 0 0 50px rgba(201, 168, 76, 0.3);
        }
        .lightbox-close {
            position: absolute;
            top: 20px;
            left: 20px;
            background: rgba(255, 255, 255, 0.2);
            border: 2px solid rgba(201, 168, 76, 0.6);
            color: var(--gold-light);
            width: 40px;
            height: 40px;
            border-radius: 50%;
            cursor: pointer;
            font-size: 1.3rem;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s;
            z-index: 10;
        }
        .lightbox-close:hover {
            background: var(--gold);
            color: var(--dark);
            transform: rotate(90deg);
        }
        .lightbox-caption {
            color: var(--white);
            font-family: var(--font-urdu);
            font-size: 0.9rem;
            margin-top: 0.8rem;
            text-align: center;
            padding: 0.3rem 1rem;
        }
        .lightbox-nav {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(255, 255, 255, 0.2);
            border: 2px solid rgba(201, 168, 76, 0.6);
            color: var(--gold-light);
            width: 40px;
            height: 40px;
            border-radius: 50%;
            cursor: pointer;
            font-size: 1.2rem;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s;
            z-index: 10;
        }
        .lightbox-nav:hover {
            background: var(--gold);
            color: var(--dark);
        }
        .lightbox-prev {
            right: 20px;
        }
        .lightbox-next {
            left: 20px;
        }

        /* Donation */
        .donation-section {
            background: linear-gradient(135deg, #1a1a2e 0%, #1c1c3a 50%, #0d5c3f 100%);
            position: relative;
            overflow: hidden;
            width: 100%;
        }
        .donation-section::before {
            content: '';
            position: absolute;
            inset: 0;
            background-image: url("data:image/svg+xml,%3Csvg width='120' height='120' viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23c9a84c' stroke-opacity='0.1' stroke-width='1.5'%3E%3Cpath d='M60 0L120 60L60 120L0 60Z'/%3E%3Cpath d='M60 20L100 60L60 100L20 60Z'/%3E%3Ccircle cx='60' cy='60' r='12'/%3E%3C/g%3E%3C/svg%3E");
            pointer-events: none;
        }
        .donation-content {
            max-width: 800px;
            margin: 0 auto;
            text-align: center;
            position: relative;
            z-index: 2;
            width: 100%;
            min-width: 0;
        }
        .donation-title {
            font-size: 1.4rem;
            font-weight: 700;
            color: var(--white);
            margin-bottom: 0.5rem;
            line-height: 1.5;
        }
        .donation-desc {
            font-size: 0.8rem;
            color: rgba(255, 255, 255, 0.75);
            line-height: 1.9;
            margin-bottom: 1rem;
        }
        .donation-arabic {
            font-family: var(--font-arabic);
            font-size: 1.1rem;
            color: var(--gold-light);
            margin-bottom: 1.5rem;
            letter-spacing: 1.5px;
        }
        .donation-purposes {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 0.5rem;
            margin-bottom: 1.5rem;
            min-width: 0;
        }
        .donation-purpose {
            padding: 0.8rem 0.6rem;
            background: rgba(255, 255, 255, 0.06);
            border-radius: var(--radius-sm);
            border: 1.5px solid rgba(201, 168, 76, 0.3);
            color: var(--white);
            font-size: 0.7rem;
            transition: all 0.3s;
            cursor: default;
            min-width: 0;
        }
        .donation-purpose:hover {
            background: rgba(255, 255, 255, 0.12);
            border-color: var(--gold);
            transform: translateY(-3px);
        }
        .donation-purpose .purpose-icon {
            font-size: 1.2rem;
            display: block;
            margin-bottom: 0.3rem;
            color: var(--gold-light);
        }
        .btn-donate {
            padding: 0.8rem 2rem;
            background: linear-gradient(135deg, var(--gold), var(--gold-dark));
            color: var(--dark);
            font-size: 1rem;
            font-weight: 700;
            border-radius: 50px;
            border: 2px solid var(--gold);
            cursor: pointer;
            transition: all 0.4s;
            font-family: var(--font-urdu);
            box-shadow: 0 8px 30px rgba(201, 168, 76, 0.4);
            letter-spacing: 0.5px;
            white-space: nowrap;
        }
        .btn-donate:hover {
            transform: translateY(-5px) scale(1.03);
            box-shadow: 0 15px 40px rgba(201, 168, 76, 0.6);
        }
        .btn-donate i {
            margin-left: 0.4rem;
        }

        /* Contact */
        .contact-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 1rem;
            min-width: 0;
        }
        .contact-form-card {
            background: var(--white);
            border-radius: var(--radius-md);
            padding: 1.5rem;
            box-shadow: var(--shadow-md);
            border: 1.5px solid rgba(201, 168, 76, 0.3);
            min-width: 0;
        }
        .form-group {
            margin-bottom: 0.9rem;
            position: relative;
            min-width: 0;
        }
        .form-group label {
            display: block;
            font-size: 0.75rem;
            font-weight: 600;
            color: var(--primary-dark);
            margin-bottom: 0.3rem;
        }
        .form-group input,
        .form-group textarea,
        .form-group select {
            width: 100%;
            padding: 0.6rem 0.9rem;
            border: 2px solid #e0d8cc;
            border-radius: var(--radius-sm);
            font-family: var(--font-urdu);
            font-size: 0.8rem;
            transition: all 0.3s;
            background: var(--cream);
            color: var(--text);
            outline: none;
            min-width: 0;
        }
        .form-group input:focus,
        .form-group textarea:focus,
        .form-group select:focus {
            border-color: var(--gold);
            box-shadow: 0 0 0 4px rgba(201, 168, 76, 0.15);
            background: var(--white);
        }
        .form-group textarea {
            min-height: 90px;
            resize: vertical;
        }
        .form-group input::placeholder,
        .form-group textarea::placeholder {
            color: #b0a898;
        }
        .btn-submit {
            width: 100%;
            padding: 0.8rem;
            background: linear-gradient(135deg, var(--primary), var(--primary-light));
            color: var(--white);
            border: 2px solid var(--primary);
            border-radius: var(--radius-sm);
            font-family: var(--font-urdu);
            font-size: 0.85rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            letter-spacing: 0.5px;
        }
        .btn-submit:hover {
            background: var(--primary-dark);
            transform: translateY(-2px);
            box-shadow: var(--shadow-md);
        }
        .btn-submit i {
            margin-left: 0.4rem;
        }
        .contact-info-card {
            background: linear-gradient(135deg, var(--primary-dark), var(--primary));
            border-radius: var(--radius-md);
            padding: 1.5rem;
            color: var(--white);
            display: flex;
            flex-direction: column;
            gap: 1rem;
            position: relative;
            overflow: hidden;
            min-width: 0;
        }
        .contact-info-card::before {
            content: '';
            position: absolute;
            inset: 0;
            background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23c9a84c' stroke-opacity='0.08' stroke-width='1'%3E%3Cpath d='M40 0L80 40L40 80L0 40Z'/%3E%3C/g%3E%3C/svg%3E");
            pointer-events: none;
        }
        .contact-info-card h3 {
            font-size: 1.1rem;
            color: var(--gold-light);
            margin-bottom: 0.5rem;
            position: relative;
            z-index: 2;
        }
        .contact-detail {
            display: flex;
            align-items: flex-start;
            gap: 0.7rem;
            font-size: 0.75rem;
            line-height: 1.7;
            position: relative;
            z-index: 2;
            min-width: 0;
        }
        .contact-detail .detail-icon {
            font-size: 1rem;
            flex-shrink: 0;
            margin-top: 0.2rem;
            color: var(--gold-light);
            width: 24px;
            text-align: center;
        }
        .contact-detail .detail-text {
            color: rgba(255, 255, 255, 0.85);
            min-width: 0;
        }
        .map-placeholder {
            margin-top: auto;
            border-radius: var(--radius-sm);
            overflow: hidden;
            border: 2px solid rgba(201, 168, 76, 0.5);
            height: 140px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(255, 255, 255, 0.08);
            font-size: 1.2rem;
            color: var(--gold-light);
            position: relative;
            z-index: 2;
        }
        .map-placeholder .map-content {
            text-align: center;
        }
        .map-placeholder .map-content i {
            font-size: 2rem;
            display: block;
            margin-bottom: 0.3rem;
        }
        .map-placeholder .map-content span {
            font-size: 0.7rem;
            font-family: var(--font-urdu);
            color: rgba(255, 255, 255, 0.7);
        }

        /* Footer */
        .footer {
            background: linear-gradient(180deg, #1c1c2e 0%, #151528 100%);
            color: rgba(255, 255, 255, 0.8);
            position: relative;
            overflow: hidden;
            width: 100%;
        }
        .footer::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, var(--gold), var(--primary-light), var(--gold));
        }
        .footer-inner {
            max-width: 1200px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: 1fr;
            gap: 1.5rem;
            width: 100%;
            min-width: 0;
        }
        .footer-col h3 {
            color: var(--gold-light);
            font-size: 0.95rem;
            font-weight: 600;
            margin-bottom: 0.7rem;
        }
        .footer-col p {
            font-size: 0.75rem;
            line-height: 1.8;
            color: rgba(255, 255, 255, 0.7);
        }
        .footer-links {
            list-style: none;
            padding: 0;
        }
        .footer-links li {
            margin-bottom: 0.3rem;
        }
        .footer-links a {
            color: rgba(255, 255, 255, 0.7);
            text-decoration: none;
            font-size: 0.75rem;
            transition: all 0.3s;
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
        }
        .footer-links a:hover {
            color: var(--gold-light);
            transform: translateX(-5px);
        }
        .footer-links a i {
            font-size: 0.6rem;
            color: var(--gold);
        }
        .footer-social {
            display: flex;
            gap: 0.6rem;
            margin-top: 0.5rem;
        }
        .footer-social a {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.08);
            border: 1.5px solid rgba(201, 168, 76, 0.3);
            display: flex;
            align-items: center;
            justify-content: center;
            color: rgba(255, 255, 255, 0.7);
            text-decoration: none;
            font-size: 0.8rem;
            transition: all 0.3s;
        }
        .footer-social a:hover {
            background: var(--gold);
            color: var(--dark);
            border-color: var(--gold);
            transform: translateY(-3px);
        }
        .footer-bottom {
            max-width: 1200px;
            margin: 1.5rem auto 0;
            padding-top: 1rem;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            text-align: center;
            font-size: 0.7rem;
            color: rgba(255, 255, 255, 0.5);
            width: 100%;
        }
        .footer-bottom .arabic-quote {
            font-family: var(--font-arabic);
            font-size: 0.9rem;
            color: var(--gold-light);
            margin-bottom: 0.3rem;
        }

        /* Animation Classes */
        .fade-up {
            opacity: 0;
            transform: translateY(30px);
            transition: opacity 0.6s ease, transform 0.6s ease;
        }
        .fade-up.visible {
            opacity: 1;
            transform: translateY(0);
        }
        .fade-in {
            opacity: 0;
            transition: opacity 0.7s ease;
        }
        .fade-in.visible {
            opacity: 1;
        }
        .fade-left {
            opacity: 0;
            transform: translateX(-30px);
            transition: opacity 0.6s ease, transform 0.6s ease;
        }
        .fade-left.visible {
            opacity: 1;
            transform: translateX(0);
        }
        .fade-right {
            opacity: 0;
            transform: translateX(30px);
            transition: opacity 0.6s ease, transform 0.6s ease;
        }
        .fade-right.visible {
            opacity: 1;
            transform: translateX(0);
        }
        .scale-in {
            opacity: 0;
            transform: scale(0.85);
            transition: opacity 0.5s ease, transform 0.5s ease;
        }
        .scale-in.visible {
            opacity: 1;
            transform: scale(1);
        }

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

        /* ===== TABLET & DESKTOP ===== */
        @media (min-width: 768px) {
            .header {
                padding: 0.6rem 1.5rem;
            }
            .header.scrolled {
                padding: 0.3rem 1.5rem;
            }
            .header-logo {
                width: 48px;
                height: 48px;
            }
            .header-brand-name {
                font-size: 1.25rem;
                white-space: normal;
                overflow: visible;
                text-overflow: clip;
            }
            .header-brand-sub {
                font-size: 0.65rem;
                white-space: normal;
                overflow: visible;
                text-overflow: clip;
            }
            .header-toggle {
                width: 46px;
                height: 46px;
                gap: 5px;
            }
            .header-toggle span {
                width: 22px;
                height: 2.5px;
            }

            .hero {
                padding: 8rem 1.5rem 6rem;
            }
            .hero-badge {
                font-size: 0.9rem;
                padding: 0.5rem 1.5rem;
            }
            .hero-title {
                font-size: 3.5rem;
            }
            .hero-slogan {
                font-size: 1.3rem;
            }
            .hero-arabic {
                font-size: 1.2rem;
            }
            .hero-buttons {
                flex-direction: row;
                justify-content: center;
                gap: 1rem;
                width: auto;
            }
            .btn {
                width: auto;
                font-size: 1rem;
                padding: 0.9rem 2.2rem;
            }

            .slider-slide {
                height: 350px;
            }
            .slider-arrow {
                width: 50px;
                height: 50px;
                font-size: 1.2rem;
            }
            .slider-arrow.prev { right: 1.5rem; }
            .slider-arrow.next { left: 1.5rem; }

            .section {
                padding: 5rem 1.5rem;
            }
            .section-title {
                font-size: 2.5rem;
            }
            .section-label {
                font-size: 0.9rem;
            }
            .section-desc {
                font-size: 1.05rem;
            }

            .about-grid {
                grid-template-columns: 1fr 1fr;
                gap: 3rem;
            }
            .about-image-wrapper img {
                height: 400px;
            }
            .about-feature-icon {
                font-size: 1.5rem;
            }
            .about-feature-text {
                font-size: 0.95rem;
            }

            .courses-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 1.5rem;
            }
            .course-card {
                padding: 2rem 1.5rem;
            }
            .course-icon {
                width: 64px;
                height: 64px;
                font-size: 1.5rem;
            }
            .course-name {
                font-size: 1.15rem;
            }
            .course-desc {
                font-size: 0.85rem;
            }

            .stats-grid {
                grid-template-columns: repeat(4, 1fr);
                gap: 2rem;
            }
            .stat-number {
                font-size: 2.5rem;
            }
            .stat-label {
                font-size: 0.95rem;
            }

           
            .founder-image-wrap img {
                height: 450px;
            }
            .founder-name {
                font-size: 1.8rem;
            }

            .gallery-grid {
                grid-template-columns: repeat(3, 1fr);
                gap: 1.2rem;
            }
            .gallery-overlay span {
                font-size: 0.85rem;
            }
            .gallery-overlay i {
                font-size: 1.6rem;
            }

            .donation-title {
                font-size: 2.5rem;
            }
            .donation-purposes {
                grid-template-columns: repeat(4, 1fr);
                gap: 1rem;
            }
            .btn-donate {
                font-size: 1.2rem;
                padding: 1.1rem 3rem;
            }

            .contact-grid {
                grid-template-columns: 1.3fr 1fr;
                gap: 2rem;
            }
            .contact-form-card,
            .contact-info-card {
                padding: 2.5rem;
            }
            .map-placeholder {
                height: 180px;
            }

            .footer-inner {
                grid-template-columns: repeat(3, 1fr);
                gap: 2.5rem;
            }
            .footer-col h3 {
                font-size: 1.1rem;
            }
            .footer-col p,
            .footer-links a {
                font-size: 0.85rem;
            }
            .footer-social a {
                width: 38px;
                height: 38px;
                font-size: 0.95rem;
            }
        }

        @media (min-width: 1024px) {
            .courses-grid {
                grid-template-columns: repeat(4, 1fr);
            }
            .gallery-grid {
                grid-template-columns: repeat(4, 1fr);
            }
          
            .about-grid {
                gap: 4rem;
            }
        }