/* ============================================
   TWO - Tanawal Welfare Organization
   Main Stylesheet — Neon Green Dark/Light Theme
   ============================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@500;600;700&family=Noto+Naskh+Arabic:wght@400;500;600;700&family=Noto+Nastaliq+Urdu:wght@400;500;600;700&family=Poppins:wght@300;400;500;600;700;800&family=Playfair+Display:wght@400;500;600;700&display=swap');

/* Local Urdu fonts: place .ttf files in /fonts/urdu and name them UrduPrimary.ttf and optionally UrduSecondary.ttf */
@font-face {
    font-family: 'UrduPrimary';
    src: local('UrduPrimary'), url('/fonts/urdu/UrduPrimary.ttf') format('truetype');
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'UrduSecondary';
    src: local('UrduSecondary'), url('/fonts/urdu/UrduSecondary.ttf') format('truetype');
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
}
/* Preferred site Urdu fonts (place these .ttf files in /fonts/urdu):
   - Aslam.ttf               -> used for Urdu headings
   - JameelNooriNastaleeq.ttf -> used for Urdu body / content
*/
@font-face {
    font-family: 'Aslam';
    src: local('Aslam'), url('/fonts/urdu/Aslam.ttf') format('truetype');
    font-weight: 400 800;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Nafees';
    src: local('Nafees'), url('/fonts/urdu/Nafees.ttf') format('truetype');
    font-weight: 300 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'AlQalam';
    src: local('AlQalam'), url('/fonts/urdu/AlQalam.ttf') format('truetype');
    font-weight: 300 700;
    font-style: normal;
    font-display: swap;
}

/* Attari: optional decorative Urdu display font (place Attari.ttf in /fonts/urdu) */
@font-face {
    font-family: 'Attari';
    src: local('Attari'), url('/fonts/urdu/Attari.ttf') format('truetype');
    font-weight: 400 800;
    font-style: normal;
    font-display: swap;
}

/* ============================================
   DARK THEME (Default)
   ============================================ */
:root,
[data-theme="dark"] {
    --primary: #00ff88;
    --primary-dark: #00cc6a;
    --primary-light: #33ffaa;
    --primary-rgb: 0, 255, 136;
    --secondary: #00cc6a;
    --secondary-dark: #009e52;
    --secondary-rgb: 0, 204, 106;

    --bg-body: #0a0e17;
    --bg-surface: #111827;
    --bg-card: #1a2332;
    --bg-card-hover: #1f2b3d;
    --bg-elevated: #0f1923;
    --bg-input: #1a2332;

    --text-primary: #e8f0fe;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-heading: #f1f5f9;

    --border: rgba(0, 255, 136, 0.12);
    --border-subtle: rgba(255,255,255,0.06);

    --dark: #0a0e17;
    --dark-light: #111827;
    --gray: #94a3b8;
    --gray-light: #111827;
    --white: #e8f0fe;

    --shadow: 0 4px 20px rgba(0,0,0,0.3);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.4);
    --shadow-glow: 0 0 20px rgba(0, 255, 136, 0.15);
    --shadow-glow-lg: 0 0 40px rgba(0, 255, 136, 0.2);
    --shadow-glow-btn: 0 0 25px rgba(0, 255, 136, 0.35), 0 0 50px rgba(0, 255, 136, 0.15);

    --transition: all 0.3s ease;
    --radius: 12px;

    --gradient-hero: linear-gradient(135deg, rgba(0,255,136,0.12) 0%, rgba(10,14,23,0.85) 50%, rgba(0,204,106,0.08) 100%);
    --gradient-primary: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
    --gradient-surface: linear-gradient(135deg, rgba(0,255,136,0.05) 0%, rgba(0,204,106,0.05) 100%);
    --gradient-dark: linear-gradient(135deg, #0a0e17 0%, #111827 100%);
}

/* ============================================
   LIGHT THEME
   ============================================ */
[data-theme="light"] {
    --primary: #059669;
    --primary-dark: #047857;
    --primary-light: #10b981;
    --primary-rgb: 5, 150, 105;
    --secondary: #047857;
    --secondary-dark: #065f46;
    --secondary-rgb: 4, 120, 87;

    --bg-body: #f8fafb;
    --bg-surface: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f0fdf4;
    --bg-elevated: #f0f9f4;
    --bg-input: #f8fafb;

    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --text-heading: #0f172a;

    --border: rgba(5, 150, 105, 0.15);
    --border-subtle: rgba(0,0,0,0.08);

    --dark: #0f172a;
    --dark-light: #1e293b;
    --gray: #475569;
    --gray-light: #f0f9f4;
    --white: #ffffff;

    --shadow: 0 4px 15px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
    --shadow-glow: 0 0 20px rgba(5, 150, 105, 0.1);
    --shadow-glow-lg: 0 0 40px rgba(5, 150, 105, 0.15);
    --shadow-glow-btn: 0 4px 15px rgba(5, 150, 105, 0.25);

    --gradient-hero: linear-gradient(135deg, rgba(5,150,105,0.06) 0%, rgba(248,250,251,0.9) 50%, rgba(4,120,87,0.04) 100%);
    --gradient-primary: linear-gradient(135deg, #059669 0%, #047857 100%);
    --gradient-surface: linear-gradient(135deg, rgba(5,150,105,0.03) 0%, rgba(4,120,87,0.03) 100%);
    --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-primary);
    background: var(--bg-body);
    line-height: 1.7;
    overflow-x: hidden;
    transition: background 0.4s ease, color 0.4s ease;
}

.interaction-notice {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: min(420px, calc(100vw - 32px));
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(10, 14, 23, 0.94);
    border: 1px solid rgba(var(--primary-rgb), 0.24);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(14px);
    color: #ffffff;
    opacity: 0;
    transform: translateY(18px);
    pointer-events: none;
    transition: opacity 0.28s ease, transform 0.28s ease;
    z-index: 1500;
}

[data-theme="light"] .interaction-notice {
    background: rgba(255, 255, 255, 0.96);
    color: var(--text-primary);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.16);
}

.interaction-notice.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.interaction-notice-badge {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--primary-rgb), 0.14);
    color: var(--primary);
    flex: 0 0 auto;
    font-size: 1rem;
}

.interaction-notice-copy {
    flex: 1;
}

.interaction-notice-copy strong {
    display: block;
    margin-bottom: 4px;
    color: inherit;
    font-size: 0.95rem;
    line-height: 1.4;
}

.interaction-notice-copy p {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.6;
    color: inherit;
    opacity: 0.84;
}

.interaction-notice-close {
    border: 0;
    border-radius: 999px;
    padding: 8px 14px;
    background: rgba(var(--primary-rgb), 0.12);
    color: inherit;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.interaction-notice-close:hover,
.interaction-notice-close:focus-visible {
    background: rgba(var(--primary-rgb), 0.2);
    outline: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-heading);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--text-heading);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(var(--primary-rgb), 0.5);
}

/* Ensure selected homepage section titles and their decorative line are centered */
.services-section .section-title,
.stats-section .section-title,
.highlight-section .section-title,
.team-section .section-title,
.gallery-section .section-title {
    text-align: center;
}
.services-section .section-title h2::after,
.stats-section .section-title h2::after,
.highlight-section .section-title h2::after,
.team-section .section-title h2::after,
.gallery-section .section-title h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-title p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 650px;
    margin: 20px auto 0;
}

/* ============================================
   BUTTONS — Neon Glow
   ============================================ */
.btn {
    display: inline-block;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--bg-body);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-btn);
    filter: brightness(1.1);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--bg-body);
    box-shadow: 0 0 15px rgba(var(--secondary-rgb), 0.2);
}

.btn-secondary:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(var(--secondary-rgb), 0.35);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--bg-body);
    box-shadow: var(--shadow-glow-btn);
}

.btn-outline-primary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: var(--bg-body);
    box-shadow: var(--shadow-glow);
}

/* Animated tooltips */
.tooltip-anchor {
    position: relative;
}

.tooltip-anchor::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translate(-50%, 8px) scale(0.96);
    background: rgba(10, 14, 23, 0.92);
    color: #ffffff;
    border: 1px solid rgba(var(--primary-rgb), 0.4);
    border-radius: 8px;
    padding: 7px 10px;
    font-size: 0.74rem;
    line-height: 1.3;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
    z-index: 1200;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}

.tooltip-anchor::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: calc(100% + 4px);
    width: 8px;
    height: 8px;
    background: rgba(10, 14, 23, 0.92);
    border-right: 1px solid rgba(var(--primary-rgb), 0.4);
    border-bottom: 1px solid rgba(var(--primary-rgb), 0.4);
    transform: translateX(-50%) rotate(45deg);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 1199;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.tooltip-anchor:hover::after,
.tooltip-anchor:hover::before,
.tooltip-anchor:focus-visible::after,
.tooltip-anchor:focus-visible::before {
    opacity: 1;
    visibility: visible;
}

.tooltip-anchor:hover::after,
.tooltip-anchor:focus-visible::after {
    transform: translate(-50%, 0) scale(1);
}

.top-bar .tooltip-anchor::after {
    top: calc(100% + 10px);
    bottom: auto;
    transform: translate(-50%, -8px) scale(0.96);
}

.top-bar .tooltip-anchor::before {
    top: calc(100% + 4px);
    bottom: auto;
    border-right: 0;
    border-bottom: 0;
    border-left: 1px solid rgba(var(--primary-rgb), 0.4);
    border-top: 1px solid rgba(var(--primary-rgb), 0.4);
    transform: translateX(-50%) rotate(45deg);
}

.top-bar .tooltip-anchor:hover::after,
.top-bar .tooltip-anchor:focus-visible::after {
    transform: translate(-50%, 0) scale(1);
}

@media (hover: none), (pointer: coarse) {
    .tooltip-anchor::after,
    .tooltip-anchor::before {
        display: none !important;
    }
}

/* ============================================
   TOP BAR
   ============================================ */
.top-bar {
    background: var(--bg-surface);
    color: var(--text-secondary);
    padding: 8px 0;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--border-subtle);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.top-bar-left {
    display: flex;
    gap: 25px;
    align-items: center;
}

.top-bar-left a {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-bar-left a:hover {
    color: var(--primary);
    text-shadow: 0 0 8px rgba(var(--primary-rgb), 0.4);
}

.top-bar-right {
    display: flex;
    gap: 12px;
    align-items: center;
}

.lang-switcher {
    display: inline-flex;
    align-items: center;
    margin-inline-end: 4px;
    direction: ltr;
}

.lang-switcher,
.topbar-theme-toggle {
    --topbar-toggle-width: 92px;
    --topbar-toggle-height: 44px;
}

.lang-pill {
    display: inline-flex;
    align-items: center;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    font: inherit;
    direction: ltr;
    width: var(--topbar-toggle-width);
    height: var(--topbar-toggle-height);
}

.lang-pill-code {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.35px;
    transition: var(--transition);
    user-select: none;
}

.lang-pill-track {
    width: 100%;
    height: 100%;
    border-radius: 999px;
    border: 1px solid rgba(var(--primary-rgb), 0.28);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(239, 245, 252, 0.8));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.52), 0 6px 18px rgba(11, 16, 38, 0.15);
    position: relative;
    overflow: hidden;
    direction: ltr;
    padding: 3px;
}

.lang-pill-thumb {
    position: static;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: transparent;
    border: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    justify-items: center;
    gap: 6px;
    box-shadow: none;
    transition: none;
}

.lang-pill.is-ur .lang-pill-thumb {
    transform: none;
}

.lang-pill-flag {
    position: relative;
    display: block;
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 50%;
    line-height: 1;
    opacity: 0.38;
    filter: grayscale(0.12) saturate(0.42) brightness(0.84);
    transform: scale(0.84);
    transform-origin: center;
    transition: opacity 0.22s ease, filter 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.lang-pill.is-en .lang-pill-flag-en,
.lang-pill.is-ur .lang-pill-flag-ur {
    opacity: 1;
    filter: none;
    transform: scale(1);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.92), 0 6px 14px rgba(11, 16, 38, 0.18);
}

.lang-pill:hover .lang-pill-track {
    border-color: rgba(var(--primary-rgb), 0.52);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 8px 20px rgba(var(--primary-rgb), 0.16);
}

.top-bar-right a,
.top-bar-right .topbar-theme-toggle {
    color: var(--text-secondary);
    font-size: 1rem;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    border: 1px solid var(--border-subtle);
}

.top-bar-right a:hover,
.top-bar-right .topbar-theme-toggle:hover {
    background: var(--primary);
    color: var(--bg-body);
    border-color: var(--primary);
    box-shadow: 0 0 12px rgba(var(--primary-rgb), 0.4);
}

.top-bar-right .topbar-theme-toggle {
    margin: 0;
    width: auto;
    height: auto;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    font-size: 0.95rem;
}

.top-bar-right .topbar-theme-toggle:hover,
.top-bar-right .topbar-theme-toggle:focus-visible {
    background: transparent;
    color: var(--text-secondary);
    border-color: transparent;
    box-shadow: none;
}

.theme-pill-track {
    width: var(--topbar-toggle-width);
    height: var(--topbar-toggle-height);
    border-radius: 999px;
    border: 1px solid rgba(var(--primary-rgb), 0.28);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(239, 245, 252, 0.8));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.52), 0 6px 18px rgba(11, 16, 38, 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px;
}

.theme-pill-thumb {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    justify-items: center;
    gap: 6px;
}

.theme-pill-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.52);
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.18);
    opacity: 0.42;
    filter: saturate(0.5) brightness(0.88);
    transform: scale(0.84);
    transition: opacity 0.22s ease, filter 0.22s ease, transform 0.22s ease, color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.topbar-theme-toggle:hover .theme-pill-track,
.topbar-theme-toggle:focus-visible .theme-pill-track {
    border-color: rgba(var(--primary-rgb), 0.52);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 8px 20px rgba(var(--primary-rgb), 0.16);
}

[data-theme="dark"] .topbar-theme-toggle .theme-pill-icon-dark {
    opacity: 1;
    filter: none;
    transform: scale(1);
    color: #f8fafc;
    background: linear-gradient(145deg, #0f172a, #1e293b);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.92), 0 6px 14px rgba(11, 16, 38, 0.18);
}

[data-theme="light"] .topbar-theme-toggle .theme-pill-icon-light {
    opacity: 1;
    filter: none;
    transform: scale(1);
    color: #b45309;
    background: linear-gradient(145deg, #fde68a, #fbbf24);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.92), 0 6px 14px rgba(11, 16, 38, 0.14);
}

.phone-ltr {
    direction: ltr;
    unicode-bidi: isolate;
    display: inline-block;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    background: var(--bg-surface);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0;
    border-bottom: 1px solid var(--border-subtle);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
}

.navbar-brand img {
    height: 55px;
    width: auto;
}

.navbar-brand .org-name {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--primary);
    line-height: 1.2;
    text-shadow: 0 0 15px rgba(var(--primary-rgb), 0.3);
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    gap: 5px;
    align-items: center;
    margin-left: auto;
}

.nav-menu li {
    position: relative;
}

.nav-link-row {
    display: block;
}

.submenu-toggle {
    display: none;
}

.nav-menu li a {
    display: block;
    padding: 20px 15px;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: 15px;
    height: 2px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition);
    box-shadow: 0 0 8px rgba(var(--primary-rgb), 0.5);
}

.nav-menu li a:hover::after,
.nav-menu li a.active::after {
    transform: scaleX(1);
}

.nav-menu li a:hover,
.nav-menu li a.active {
    color: var(--primary);
    text-shadow: 0 0 10px rgba(var(--primary-rgb), 0.3);
}

/* Dropdown */
.nav-menu li .dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--bg-card);
    box-shadow: var(--shadow-lg);
    border-radius: 0 0 var(--radius) var(--radius);
    border: 1px solid var(--border-subtle);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
}

.nav-menu li:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu li .dropdown li a {
    padding: 10px 20px;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-secondary);
}

.nav-menu li .dropdown li a::after {
    display: none;
}

.nav-menu li .dropdown li a:hover {
    background: rgba(var(--primary-rgb), 0.08);
    color: var(--primary);
    padding-left: 25px;
}

.donate-btn {
    background: var(--gradient-primary) !important;
    color: var(--bg-body) !important;
    border-radius: 50px !important;
    padding: 10px 25px !important;
    margin-left: 10px;
    box-shadow: var(--shadow-glow) !important;
    font-weight: 600 !important;
}

.donate-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-glow-btn) !important;
    filter: brightness(1.1);
}

.donate-btn::after {
    display: none !important;
}

/* Theme Toggle Button */
.theme-toggle {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition);
    margin-left: 10px;
    flex-shrink: 0;
}

.theme-toggle:hover {
    background: var(--primary);
    color: var(--bg-body);
    box-shadow: var(--shadow-glow);
}

.theme-toggle .fa-sun { display: none; }
.theme-toggle .fa-moon { display: inline; }

[data-theme="light"] .theme-toggle .fa-sun { display: inline; }
[data-theme="light"] .theme-toggle .fa-moon { display: none; }

.topbar-theme-toggle .fa-sun,
.topbar-theme-toggle .fa-moon,
[data-theme="light"] .topbar-theme-toggle .fa-sun,
[data-theme="light"] .topbar-theme-toggle .fa-moon {
    display: inline-flex;
}

.lang-ur body,
.lang-ur input,
.lang-ur textarea,
.lang-ur select,
.lang-ur button {
    font-family: 'Noto Naskh Arabic', 'Poppins', sans-serif;
}

.lang-ur h1,
.lang-ur h2,
.lang-ur h3,
.lang-ur h4,
.lang-ur h5,
.lang-ur h6 {
    font-family: 'Noto Naskh Arabic', 'Playfair Display', serif;
}

.lang-ur .nav-menu li a {
    text-transform: none;
    letter-spacing: 0;
}

.lang-ur .nav-menu {
    margin-left: 0;
    margin-right: auto;
}

.lang-ur .donate-btn {
    margin-left: 0 !important;
    margin-right: 10px;
}

.lang-ur .navbar .container {
    direction: rtl;
}

.lang-ur .hero-actions,
.lang-ur .detail-actions,
.lang-ur .stack-actions {
    flex-direction: row-reverse;
}

.lang-ur .top-bar .container {
    direction: ltr;
}

.lang-ur .top-bar,
.lang-ur .top-bar a,
.lang-ur .top-bar button,
.lang-ur .top-bar .lang-pill-code {
    font-family: 'Poppins', sans-serif;
}

.lang-ur .top-bar-left,
.lang-ur .top-bar-right {
    flex-direction: row;
}

.lang-ur .breadcrumb {
    flex-direction: row;
}

.lang-ur .hero-metric strong,
.lang-ur .stat-number {
    direction: ltr;
    unicode-bidi: isolate;
}

.lang-ur .slide-content,
.lang-ur .hero-panel,
.lang-ur .welcome-content,
.lang-ur .chairman-content,
.lang-ur .detail-copy,
.lang-ur .contact-form-wrapper,
.lang-ur .donation-form-intro,
.lang-ur .section-title,
.lang-ur .legal-panel,
.lang-ur .legal-content,
.lang-ur .overview-copy,
.lang-ur .entity-card-main {
    text-align: right;
}

/* Apply uploaded Urdu font to Urdu pages */
.lang-ur body {
    /* Body/content in Urdu uses Nafees with fallbacks */
    font-family: 'Nafees', 'UrduPrimary', 'Poppins', sans-serif;
}

.lang-ur h1,
.lang-ur h2,
.lang-ur h3,
.lang-ur h4,
.lang-ur h5,
.lang-ur h6 {
    /* Headings in Urdu use Aslam font */
    font-family: 'Aslam', 'UrduPrimary', 'Playfair Display', serif;
    font-weight: 700;
}

/* Override Urdu right-alignment for specific homepage sections: center titles and decorative line */
.lang-ur .services-section .section-title,
.lang-ur .stats-section .section-title,
.lang-ur .highlight-section .section-title,
.lang-ur .team-section .section-title,
.lang-ur .gallery-section .section-title,
.lang-ur .events-section .section-title {
    text-align: center;
}
.lang-ur .services-section .section-title h2::after,
.lang-ur .stats-section .section-title h2::after,
.lang-ur .highlight-section .section-title h2::after,
.lang-ur .team-section .section-title h2::after,
.lang-ur .gallery-section .section-title h2::after,
.lang-ur .events-section .section-title h2::after {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
}

.lang-ur .footer-col,
.lang-ur .footer-col h3,
.lang-ur .footer-col p,
.lang-ur .footer-col ul,
.lang-ur .footer-col li,
.lang-ur .footer-col a {
    text-align: right;
}

.lang-ur .footer-grid {
    direction: rtl;
}

.lang-ur .footer-col h3::after {
    left: auto;
    right: 0;
}

.lang-ur .footer-col ul li a,
.lang-ur .footer-col .contact-info li {
    flex-direction: row !important;
    direction: rtl;
    justify-content: flex-end !important;
    text-align: right;
}

.lang-ur .footer-col ul li {
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

.lang-ur .footer-col ul li a {
    width: 100%;
    justify-content: flex-end !important;
}

.lang-ur .footer-col .contact-info li {
    width: 100%;
}

.lang-ur .footer-col .contact-info li i,
.lang-ur .footer-col ul li a i {
    margin-inline-start: 0;
    margin-inline-end: 0;
}

.lang-ur .footer-col ul li a:hover {
    padding-left: 0;
    padding-right: 5px;
}

.lang-ur .footer-social {
    justify-content: flex-end;
}

/* Footer RTL hard-fix */
.lang-ur .footer .footer-col ul {
    padding-inline-start: 0;
}

.lang-ur .footer .footer-col ul li.footer-nav-item {
    display: flex !important;
    justify-content: flex-end !important;
    width: 100%;
}

.lang-ur .footer .footer-col ul li.footer-nav-item .footer-nav-link {
    display: inline-flex !important;
    direction: rtl !important;
    align-items: center;
    justify-content: flex-end !important;
    text-align: right !important;
    gap: 8px;
    width: auto !important;
}

.lang-ur .footer .footer-col ul.contact-info li.footer-contact-item {
    display: flex !important;
    direction: rtl !important;
    flex-direction: row !important;
    justify-content: flex-end !important;
    align-items: flex-start;
    width: 100%;
}

.lang-ur .footer .footer-col ul.contact-info li.footer-contact-item .footer-contact-text,
.lang-ur .footer .footer-col ul.contact-info li.footer-contact-item .footer-contact-link {
    text-align: right !important;
}

.lang-ur .footer .footer-col ul.contact-info li.footer-contact-item .footer-contact-link {
    display: inline-block;
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    background: none;
    border: none;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
    box-shadow: 0 0 6px rgba(var(--primary-rgb), 0.3);
}

/* ============================================
   HERO SLIDER
   ============================================ */
.hero-slider {
    position: relative;
    height: 88vh;
    min-height: 620px;
    overflow: hidden;
    background: var(--bg-body);
    --hero-move-x: 0px;
    --hero-move-y: 0px;
    --hero-cursor-x: 50%;
    --hero-cursor-y: 50%;
}

.hero-slider::before,
.hero-slider::after {
    content: '';
    position: absolute;
    z-index: 0;
    pointer-events: none;
}

.hero-slider::before {
    inset: 0;
    background:
        radial-gradient(circle at var(--hero-cursor-x) var(--hero-cursor-y), rgba(var(--primary-rgb), 0.28), transparent 45%),
        linear-gradient(115deg, rgba(0, 0, 0, 0.4) 12%, rgba(0, 0, 0, 0.08) 52%, rgba(var(--primary-rgb), 0.2) 100%);
}

.hero-slider::after {
    width: 380px;
    height: 380px;
    right: -90px;
    top: -130px;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(var(--primary-rgb), 0.28), rgba(var(--primary-rgb), 0));
    filter: blur(4px);
    animation: heroOrbFloat 7s ease-in-out infinite;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.85s ease, visibility 0.85s ease;
    z-index: 1;
    pointer-events: none;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
    pointer-events: auto;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05) translate3d(var(--hero-move-x), var(--hero-move-y), 0);
    transition: transform 0.9s ease, filter 0.9s ease;
    filter: saturate(1.05) contrast(1.03);
}

.slide.active img {
    transform: scale(1.12) translate3d(var(--hero-move-x), var(--hero-move-y), 0);
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(120deg, rgba(10,14,23,0.76) 0%, rgba(10,14,23,0.48) 46%, rgba(10,14,23,0.3) 100%),
        radial-gradient(circle at 82% 20%, rgba(var(--primary-rgb), 0.22), transparent 48%);
    display: flex;
    align-items: stretch;
}

.hero-shell {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    align-items: end;
    gap: clamp(24px, 3vw, 48px);
    padding: clamp(120px, 16vh, 170px) 0 clamp(112px, 14vh, 136px);
}

.slide-content {
    text-align: left;
    color: var(--white);
    max-width: 700px;
    animation: fadeInUp 0.9s ease;
}

.slide-content h1 {
    font-size: clamp(2.2rem, 4.2vw, 4.2rem);
    color: var(--primary);
    margin-bottom: 18px;
    text-shadow: 0 0 30px rgba(var(--primary-rgb), 0.45);
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

/* Urdu hero heading: green glowing color */
.lang-ur .slide-content h1 {
    /* keep same look for Urdu headings */
    color: var(--primary);
    text-shadow: 0 0 18px rgba(var(--primary-rgb), 0.45);
    font-family: 'Aslam', 'Poppins', sans-serif;
    font-weight: 700;
}

@media (min-width: 769px) {
    .lang-en .slide-content h1 {
        font-size: calc(clamp(2.2rem, 4.2vw, 4.2rem) - 4pt);
    }
}

.hero-copy {
    font-size: calc(1.05rem + 2pt);
    line-height: 1.8;
    margin-bottom: 30px;
    color: rgba(255,255,255,0.88);
    max-width: 620px;
}

/* Slightly larger hero copy for Urdu */
.lang-ur .hero-copy {
    font-size: calc(1.05rem + 2pt);
}

.hero-actions {
    align-items: center;
}

.hero-actions .btn {
    min-width: 190px;
    text-align: center;
}

.slide-content .btn-outline {
    border-color: rgba(255,255,255,0.55);
    color: #ffffff;
    backdrop-filter: blur(5px);
}

.slide-content .btn-outline:hover {
    border-color: var(--primary);
    background: rgba(var(--primary-rgb), 0.95);
    color: var(--bg-body);
    box-shadow: var(--shadow-glow-btn);
}

.hero-panel {
    width: 100%;
    max-width: 390px;
    justify-self: end;
    background: rgba(10,14,23,0.56);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 22px;
    padding: 24px 24px 22px;
    box-shadow: 0 22px 65px rgba(0,0,0,0.38);
    backdrop-filter: blur(12px);
    animation: heroPanelFloat 5s ease-in-out infinite;
}

[data-theme="light"] .hero-panel {
    background: rgba(255,255,255,0.74);
    border-color: rgba(5,150,105,0.25);
    box-shadow: 0 18px 45px rgba(15,23,42,0.16);
}

.hero-panel-label {
    font-size: calc(0.76rem + 2pt);
    text-transform: uppercase;
    letter-spacing: 1.6px;
    color: rgba(255,255,255,0.76);
    margin-bottom: 6px;
}

[data-theme="light"] .hero-panel-label {
    color: rgba(15,23,42,0.66);
}

.hero-panel h3 {
    font-size: 1.45rem;
    margin-bottom: 16px;
    color: #ffffff;
}

[data-theme="light"] .hero-panel h3 {
    color: #0f172a;
}

.hero-metrics {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hero-metric {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.07);
}

[data-theme="light"] .hero-metric {
    border-color: rgba(5,150,105,0.2);
    background: rgba(248,250,252,0.8);
}

.hero-metric i {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(var(--primary-rgb), 0.2);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.hero-metric strong {
    display: block;
    font-size: 1.08rem;
    line-height: 1.2;
    color: #ffffff;
}

[data-theme="light"] .hero-metric strong {
    color: #0f172a;
}

.hero-metric span {
    display: block;
    font-size: calc(0.82rem + 2pt);
    color: rgba(255,255,255,0.75);
}

[data-theme="light"] .hero-metric span {
    color: #475569;
}

.hero-panel-foot {
    margin-top: 14px;
    font-size: calc(0.86rem + 2pt);
    color: rgba(255,255,255,0.78);
    line-height: 1.6;
}

[data-theme="light"] .hero-panel-foot {
    color: #475569;
}

.slider-controls {
    position: absolute;
    left: 0;
    bottom: 20px;
    width: 100%;
    z-index: 12;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    padding: 0 24px;
}

.slider-arrows {
    display: flex;
    gap: 10px;
    direction: ltr;
}

.slider-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.slider-nav .dot {
    width: 24px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255,255,255,0.38);
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.slider-nav .dot.active {
    background: var(--primary);
    width: 44px;
    box-shadow: 0 0 12px rgba(var(--primary-rgb), 0.55);
}

.slider-arrows button {
    background: rgba(var(--primary-rgb), 0.15);
    border: 1px solid rgba(var(--primary-rgb), 0.3);
    color: var(--primary);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.05rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.slider-arrows button:hover {
    background: var(--primary);
    color: var(--bg-body);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.slider-toggle {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.24);
    background: rgba(10,14,23,0.44);
    color: #ffffff;
    cursor: pointer;
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: var(--transition);
    backdrop-filter: blur(8px);
}

.slider-toggle:hover {
    border-color: rgba(var(--primary-rgb), 0.5);
    color: var(--primary);
}

[data-theme="light"] .slider-toggle {
    background: rgba(248,250,252,0.78);
    color: #0f172a;
    border-color: rgba(5,150,105,0.25);
}

.slider-progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 11;
    height: 4px;
    background: rgba(255,255,255,0.14);
}

[data-theme="light"] .slider-progress {
    background: rgba(15,23,42,0.08);
}

.slider-progress-bar {
    display: block;
    width: 100%;
    height: 100%;
    transform-origin: left center;
    transform: scaleX(0);
    background: var(--gradient-primary);
}

.hero-slider.is-progress-running .slider-progress-bar {
    animation: sliderProgress 5s linear forwards;
}

.hero-slider.autoplay-paused .slider-progress-bar {
    animation: none;
    transform: scaleX(0);
}

@keyframes heroOrbFloat {
    0%, 100% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(-12px, 16px, 0);
    }
}

@keyframes heroPanelFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes sliderProgress {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-slider::after,
    .hero-panel,
    .hero-slider.is-progress-running .slider-progress-bar {
        animation: none !important;
    }

    .slide,
    .slide img {
        transition: none !important;
    }
}

/* ============================================
   PAGE BANNER
   ============================================ */
.page-banner {
    background: var(--bg-surface);
    padding: 100px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.page-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: rgba(var(--primary-rgb), 0.04);
    border-radius: 50%;
    filter: blur(60px);
}

.page-banner::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: rgba(var(--secondary-rgb), 0.03);
    border-radius: 50%;
    filter: blur(40px);
}

.page-banner h1 {
    font-size: 2.8rem;
    color: var(--text-heading);
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

.breadcrumb a {
    color: var(--primary);
    text-shadow: 0 0 8px rgba(var(--primary-rgb), 0.3);
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: var(--text-muted);
}

/* ============================================
   ABOUT / WELCOME SECTION
   ============================================ */
.welcome-section {
    padding: 80px 0;
    background: var(--bg-body);
}

.welcome-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.welcome-image {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.welcome-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.welcome-image:hover img {
    transform: scale(1.05);
}

.welcome-image .experience-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: var(--gradient-primary);
    color: var(--bg-body);
    padding: 15px 25px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow-glow);
}

.welcome-image .experience-badge h3 {
    font-size: calc(2rem - 6pt);
    color: var(--bg-body);
    line-height: 1;
}

/* Use Attari for the badge when site is Urdu; fall back to Nafees then system */
.lang-ur .welcome-image .experience-badge h3 {
    font-family: 'Attari', 'Nafees', 'Aslam', serif;
}

/* English-only: make the badge heading an additional 6pt smaller */
.lang-en .welcome-image .experience-badge h3 {
    font-size: calc(2rem - 12pt);
}

.welcome-image .experience-badge p {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--bg-body);
}

.welcome-content h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--primary);
    text-shadow: 0 0 20px rgba(var(--primary-rgb), 0.2);
}

.welcome-content p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-size: 0.98rem;
}

.welcome-content .btn {
    margin-top: 15px;
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services-section {
    background: var(--bg-surface);
    padding: 80px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    border: 1px solid var(--border-subtle);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-glow-lg);
    border-color: var(--border);
}

.service-card .card-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.service-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .card-image img {
    transform: scale(1.1);
}

.service-card .card-icon {
    position: absolute;
    bottom: -25px;
    left: 30px;
    width: 55px;
    height: 55px;
    background: var(--gradient-primary);
    color: var(--bg-body);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    z-index: 2;
    box-shadow: var(--shadow-glow);
}

.service-card .card-body {
    padding: 40px 30px 30px;
}

.service-card .card-body h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--text-heading);
}

.service-card .card-body h3 a:hover {
    color: var(--primary);
    text-shadow: 0 0 10px rgba(var(--primary-rgb), 0.3);
}

.service-card .card-body p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.service-card .card-body .read-more {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.service-card .card-body .read-more:hover {
    gap: 10px;
    text-shadow: 0 0 8px rgba(var(--primary-rgb), 0.3);
}

.lang-ur .service-card .card-body .read-more {
    flex-direction: row;
}

.lang-ur .service-card .card-body .read-more i {
    transform: scaleX(-1);
}

body[data-page="home"] .services-section .service-card .card-icon {
    display: none;
}

body[data-page="home"] .services-section .service-card .card-body {
    padding-top: 30px;
}

/* ============================================
   CHAIRMAN SECTION
   ============================================ */
.chairman-section {
    padding: 80px 0;
    background: var(--bg-body);
}

.chairman-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: center;
}

.chairman-image {
    position: relative;
}

.chairman-image img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    width: 100%;
    border: 1px solid var(--border);
}

.chairman-image::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    width: 100px;
    height: 100px;
    border-top: 4px solid var(--primary);
    border-left: 4px solid var(--primary);
    border-radius: 10px 0 0 0;
    z-index: -1;
    box-shadow: -3px -3px 15px rgba(var(--primary-rgb), 0.2);
}

.chairman-content h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: var(--text-heading);
}

.chairman-content .chairman-name {
    color: var(--primary);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 20px;
    display: block;
    text-shadow: 0 0 10px rgba(var(--primary-rgb), 0.2);
}

.chairman-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.chairman-note {
    position: relative;
    margin: 8px 0 0 !important;
    padding: 22px 24px 108px;
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(var(--primary-rgb), 0.08), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(var(--primary-rgb), 0.16);
    border-inline-start: 3px solid rgba(var(--primary-rgb), 0.48);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12);
}

.chairman-message-script {
    position: relative;
    margin: 0 !important;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    color: var(--text-heading) !important;
    font-family: 'Caveat', 'Poppins', cursive;
    font-size: clamp(1.4rem, 1.95vw, 1.75rem) !important;
    line-height: 1.42;
    letter-spacing: 0.2px;
}

.lang-en .chairman-message-script {
    font-size: calc(clamp(1.4rem, 1.95vw, 1.75rem) - 4pt) !important;
}

.chairman-note::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 16px;
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    line-height: 1;
    color: rgba(var(--primary-rgb), 0.2);
}

.chairman-signoff {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
    position: absolute;
    right: 18px;
    bottom: 12px;
    z-index: 2;
}

.chairman-signature {
    width: min(100%, 204px);
    height: auto;
    display: block;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.12));
    transform: rotate(-7deg);
    transform-origin: right bottom;
}

.chairman-signature-dark {
    display: none;
}

[data-theme="dark"] .chairman-signature-light {
    display: none;
}

[data-theme="dark"] .chairman-signature-dark {
    display: block;
}

.lang-ur .chairman-message-script {
    font-family: 'AlQalam', 'Noto Nastaliq Urdu', 'Noto Naskh Arabic', serif;
    font-size: clamp(1.02rem, 1.42vw, 1.28rem) !important;
    line-height: 1.82;
    letter-spacing: 0;
}

.lang-ur .chairman-note::before {
    left: auto;
    right: 16px;
}

.lang-ur .chairman-signoff {
    left: 16px;
    right: auto;
    align-items: flex-start;
}

.lang-ur .chairman-signature {
    transform-origin: left bottom;
}

/* ============================================
   EVENTS SECTION
   ============================================ */
.events-section {
    padding: 80px 0;
    background: var(--bg-surface);
    position: relative;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    align-items: stretch;
}

/* Homepage: 3 columns, 2 rows layout for recent/upcoming events */
.home-events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: stretch;
}

@media (max-width: 1024px) {
    .home-events-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .home-events-grid {
        grid-template-columns: 1fr;
    }
}

.event-card {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    min-height: 100%;
    background:
        radial-gradient(circle at top right, rgba(var(--primary-rgb), 0.14), transparent 42%),
        linear-gradient(180deg, rgba(255,255,255,0.02), transparent 100%),
        var(--bg-card);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    border: 1px solid rgba(var(--primary-rgb), 0.14);
    isolation: isolate;
}

.event-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.08), transparent 28%, transparent 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.event-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(var(--primary-rgb), 0.12);
    border-color: rgba(var(--primary-rgb), 0.26);
}

.event-card:hover::before {
    opacity: 1;
}


/* Header with inline date pill */
.event-card .event-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.event-card .event-date-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(var(--primary-rgb), 0.09);
    border: 1px solid rgba(var(--primary-rgb), 0.12);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.event-card .event-info {
    display: grid;
    grid-template-rows: auto auto auto 1fr auto;
    gap: 14px;
    padding: 22px;
    padding-bottom: 64px;
    min-width: 0;
}

.event-card .event-info .event-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(var(--primary-rgb), 0.09);
    border: 1px solid rgba(var(--primary-rgb), 0.12);
    color: var(--primary-light);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.event-card .event-info h3 {
    font-size: calc(0.95rem + 1pt);
    margin: 0;
    line-height: 1.45;
    min-height: calc(1.45em * 2);
    color: var(--primary);
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    text-shadow: 0 0 12px rgba(var(--primary-rgb), 0.35);
}

.event-card .event-info h3 a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: inherit;
    font-weight: inherit;
}

.event-card .event-info h3 a:hover {
    color: var(--primary);
    text-shadow: 0 0 8px rgba(var(--primary-rgb), 0.3);
}

.event-card .event-info .event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.event-card .event-info .event-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.02);
}

.event-card .event-info .event-meta span i {
    color: var(--primary);
}

.event-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.event-card-link:focus {
    outline: 3px solid rgba(var(--primary-rgb), 0.14);
    outline-offset: 4px;
}

.event-card:hover .event-card-link {
    transform: translateY(-6px);
}

.event-cta {
    position: absolute;
    right: 18px;
    bottom: 18px;
    padding: 4px 8px;
    background: transparent;
    border: none;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.95rem;
    text-shadow: 0 0 12px rgba(var(--primary-rgb), 0.35);
}

.event-card .event-info p {
    margin: 0;
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.75;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-card .event-info .event-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--primary);
}

.event-card .event-info .event-cta i {
    transition: transform 0.3s ease;
}

.event-card:hover .event-info .event-cta i {
    transform: translateX(5px);
}

/* Events on white background */
.events-section-light {
    position: relative;
    background:
        radial-gradient(circle at top center, rgba(var(--primary-rgb), 0.08), transparent 32%),
        linear-gradient(180deg, rgba(255,255,255,0.01), transparent 18%),
        var(--bg-body);
}

.events-section-light::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(var(--primary-rgb), 0.035) 100%);
    opacity: 0.55;
    pointer-events: none;
}

.events-section-light .container {
    position: relative;
    z-index: 1;
}

.events-section-light .section-title h2,
.events-section-light .section-title p {
    color: var(--text-heading);
}

.events-section .section-title h2 {
    color: var(--text-heading);
}

.events-section .section-title h2::after {
    background: var(--gradient-primary);
}

.events-section .section-title p {
    color: var(--text-secondary);
}

/* ============================================
   GALLERY SECTION
   ============================================ */
.gallery-section {
    padding: 80px 0;
    background: var(--bg-body);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
    border: 1px solid var(--border-subtle);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item .gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(var(--primary-rgb), 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: #ffffff;
    font-size: 2rem;
    text-shadow: 0 0 15px rgba(var(--primary-rgb), 0.5);
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: var(--radius);
    box-shadow: 0 0 40px rgba(var(--primary-rgb), 0.2);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--primary);
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 10;
    text-shadow: 0 0 10px rgba(var(--primary-rgb), 0.5);
}

/* ============================================
   TEAM / EXECUTIVE MEMBERS
   ============================================ */
.team-section {
    padding: 80px 0;
    background: var(--bg-surface);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.team-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-subtle);
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-glow-lg);
    border-color: var(--border);
}

.team-card .member-image {
    height: 280px;
    overflow: hidden;
    position: relative;
}

.team-card .member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.5s ease;
}

.team-card:hover .member-image img {
    transform: scale(1.05);
}

.team-card .member-social {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 30px 10px 10px;
    display: flex;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    transition: var(--transition);
}

.team-card:hover .member-social {
    opacity: 1;
}

.team-card .member-social a {
    width: 35px;
    height: 35px;
    background: var(--primary);
    color: var(--bg-body);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    box-shadow: 0 0 10px rgba(var(--primary-rgb), 0.4);
}

.team-card .member-social a:hover {
    background: var(--secondary);
    box-shadow: 0 0 10px rgba(var(--secondary-rgb), 0.4);
}

.team-card .member-info {
    padding: 20px 15px;
}

.team-card .member-info h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--text-heading);
}

.team-card .member-info h3 a:hover {
    color: var(--primary);
    text-shadow: 0 0 8px rgba(var(--primary-rgb), 0.3);
}

.team-card .member-info .position {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 8px rgba(var(--primary-rgb), 0.2);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    background: var(--bg-surface);
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: rgba(var(--primary-rgb), 0.04);
    border-radius: 50%;
    filter: blur(60px);
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: rgba(var(--secondary-rgb), 0.03);
    border-radius: 50%;
    filter: blur(40px);
}

.cta-section h2 {
    color: var(--text-heading);
    font-size: 2rem;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.cta-section .btn {
    position: relative;
    z-index: 1;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-section {
    padding: 80px 0;
    background: var(--bg-body);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-form-wrapper {
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-subtle);
}

.contact-form-wrapper h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--text-heading);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    transition: var(--transition);
    background: var(--bg-input);
    color: var(--text-primary);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15), 0 0 15px rgba(var(--primary-rgb), 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-info-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-subtle);
}

.contact-info-card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-glow);
    border-color: var(--border);
}

.contact-info-card .icon {
    width: 55px;
    height: 55px;
    background: var(--gradient-primary);
    color: var(--bg-body);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: var(--shadow-glow);
}

.contact-info-card h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    font-family: 'Poppins', sans-serif;
    color: var(--text-heading);
}

.contact-info-card p,
.contact-info-card a {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.contact-info-card a:hover {
    color: var(--primary);
    text-shadow: 0 0 8px rgba(var(--primary-rgb), 0.3);
}

/* ============================================
   DONATE PAGE
   ============================================ */
.donate-section {
    padding-top: 30px;
}

.donation-card {
    position: relative;
    overflow: hidden;
}

.donation-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(var(--primary-rgb), 0.18), transparent 48%);
    pointer-events: none;
}

.donation-form-intro,
.donate-form,
.donation-feedback {
    position: relative;
    z-index: 1;
}

.donation-form-intro {
    margin-bottom: 24px;
}

.donation-form-intro h3 {
    margin: 8px 0 12px;
    color: var(--text-heading);
}

.donation-form-intro p {
    color: var(--text-secondary);
}

.amount-field-row {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(180px, 0.8fr);
    gap: 18px;
    align-items: start;
}

.amount-input-shell {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    background: var(--bg-input);
    overflow: hidden;
    transition: var(--transition);
}

.amount-input-shell:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15), 0 0 15px rgba(var(--primary-rgb), 0.1);
}

.currency-prefix {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 74px;
    padding: 0 16px;
    background: rgba(var(--primary-rgb), 0.12);
    color: var(--primary-light);
    font-weight: 600;
    border-right: 1px solid var(--border-subtle);
}

.amount-input-shell input {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none !important;
}

.currency-toggle {
    display: inline-grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 6px;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
}

.currency-option {
    border: none;
    background: transparent;
    color: var(--text-secondary);
    padding: 12px 16px;
    border-radius: 10px;
    font-weight: 700;
    letter-spacing: 0.4px;
    cursor: pointer;
    transition: var(--transition);
}

.currency-option:hover {
    color: var(--text-primary);
    background: rgba(var(--primary-rgb), 0.08);
}

.currency-option.active {
    background: var(--gradient-primary);
    color: var(--bg-body);
    box-shadow: var(--shadow-glow);
}

.currency-helper {
    margin-top: 10px;
    font-size: 0.86rem;
    color: var(--text-muted);
}

.donation-submit {
    width: 100%;
    justify-content: center;
    margin-top: 6px;
}

.donation-feedback {
    margin-top: 20px;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 16px;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(var(--primary-rgb), 0.22);
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.14), rgba(var(--primary-rgb), 0.06));
}

.donation-feedback[hidden] {
    display: none;
}

.donation-feedback-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--primary-rgb), 0.18);
    color: var(--primary);
    font-size: 1.1rem;
}

.donation-feedback-copy h4 {
    margin-bottom: 6px;
    color: var(--text-heading);
}

.donation-feedback-copy p {
    margin: 0;
    color: var(--text-secondary);
}

.donation-spotlight {
    background: linear-gradient(180deg, rgba(var(--primary-rgb), 0.16) 0%, rgba(var(--primary-rgb), 0.05) 100%), var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 28px;
    box-shadow: var(--shadow);
}

.donation-spotlight h3 {
    margin: 8px 0 12px;
    color: var(--text-heading);
}

.donation-spotlight p {
    color: var(--text-secondary);
}

.donation-spotlight .secure-points {
    margin-top: 18px;
}

.policy-links-card {
    align-items: flex-start;
}

.policy-link-list {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.policy-link-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    background: rgba(var(--primary-rgb), 0.06);
    color: var(--text-secondary);
    transition: var(--transition);
}

.policy-link-list a::after {
    content: '\f054';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--primary);
    font-size: 0.75rem;
}

.policy-link-list a:hover {
    color: var(--primary);
    border-color: var(--border);
    transform: translateX(3px);
}

.legal-inline-links {
    margin-top: 18px;
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.8;
}

.legal-inline-links a {
    color: var(--primary);
}

/* ============================================
   LEGAL PAGES
   ============================================ */
.legal-page {
    background: linear-gradient(180deg, rgba(var(--primary-rgb), 0.06) 0%, transparent 220px), var(--bg-body);
}

.legal-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}

.legal-sidebar {
    position: sticky;
    top: 110px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.legal-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.legal-panel,
.legal-intro-card,
.legal-section-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.legal-panel {
    padding: 26px;
}

.legal-panel h2,
.legal-panel h3,
.legal-section-card h2,
.legal-highlight-card h3,
.legal-note-strong h3 {
    color: var(--text-heading);
}

.legal-panel p,
.legal-intro-card p,
.legal-section-card p,
.legal-highlight-card p,
.legal-note p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.legal-meta {
    display: grid;
    gap: 10px;
    margin-top: 18px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.legal-toc {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.legal-toc a {
    display: block;
    color: var(--text-secondary);
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(var(--primary-rgb), 0.05);
    border: 1px solid transparent;
    transition: var(--transition);
}

.legal-toc a:hover {
    color: var(--primary);
    border-color: var(--border);
    transform: translateX(3px);
}

.legal-contact-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.legal-contact-list li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: var(--text-secondary);
}

.legal-contact-list li i {
    color: var(--primary);
    margin-top: 4px;
}

.legal-contact-list li a,
.legal-contact-list li span {
    color: var(--text-secondary);
}

.legal-contact-list li a:hover {
    color: var(--primary);
}

.legal-highlight-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.legal-highlight-card {
    padding: 22px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(var(--primary-rgb), 0.12) 0%, rgba(var(--primary-rgb), 0.04) 100%);
    box-shadow: var(--shadow);
}

.legal-highlight-card h3 {
    font-size: 1.05rem;
    margin-bottom: 10px;
}

.legal-intro-card,
.legal-section-card {
    padding: 30px;
}

.legal-intro-card p + p,
.legal-section-card p + p {
    margin-top: 14px;
}

.legal-section-heading {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 22px;
}

.legal-section-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: var(--bg-body);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    letter-spacing: 0.08em;
    flex-shrink: 0;
    box-shadow: var(--shadow-glow);
}

.legal-kicker {
    margin-bottom: 6px;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primary);
}

.legal-section-heading h2 {
    font-size: 1.55rem;
}

.legal-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.legal-list li {
    position: relative;
    padding-left: 26px;
    color: var(--text-secondary);
    line-height: 1.75;
}

.legal-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 10px rgba(var(--primary-rgb), 0.35);
}

.legal-note {
    margin-top: 20px;
    padding: 18px 20px;
    border-left: 3px solid var(--primary);
    border-radius: 12px;
    background: rgba(var(--primary-rgb), 0.08);
}

.legal-note-strong {
    padding: 26px 30px;
}

.legal-note-strong h3 {
    margin-bottom: 10px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--bg-surface);
    color: var(--text-secondary);
    padding: 60px 0 0;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-subtle);
}

.footer-col h3 {
    color: var(--text-heading);
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--gradient-primary);
    box-shadow: 0 0 8px rgba(var(--primary-rgb), 0.4);
}

.footer-col p {
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-col ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
    text-shadow: 0 0 8px rgba(var(--primary-rgb), 0.3);
}

.footer-col ul li a i {
    color: var(--primary);
    font-size: 0.7rem;
}

.footer-col .contact-info li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.footer-col .contact-info li i {
    color: var(--primary);
    margin-top: 3px;
    text-shadow: 0 0 6px rgba(var(--primary-rgb), 0.3);
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: var(--transition);
    border: 1px solid var(--border);
}

.footer-social a:hover {
    background: var(--primary);
    color: var(--bg-body);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ============================================
   STATS SECTION
   ============================================ */
.stats-section {
    padding: 60px 0;
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item {
    color: var(--text-primary);
}

.stat-item i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--primary);
    filter: drop-shadow(0 0 8px rgba(var(--primary-rgb), 0.4));
}

.stat-item {
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
}

.stat-item i {
    font-size: 2.5rem;
    margin: 0;
    color: var(--primary);
    filter: drop-shadow(0 0 8px rgba(var(--primary-rgb), 0.4));
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--primary);
    margin: 0;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
    text-shadow: 0 0 15px rgba(var(--primary-rgb), 0.3);
}

.stat-item h3.is-counting {
    animation: counterPop 0.72s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes counterPop {
    0% {
        opacity: 0.2;
        filter: blur(8px);
        transform: translateY(12px) scale(0.9);
    }
    60% {
        opacity: 1;
        filter: blur(0);
        transform: translateY(-2px) scale(1.04);
    }
    100% {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0) scale(1);
    }
}

.stat-item p {
    font-size: 0.9rem;
    opacity: 0.85;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
}

/* Urdu-specific: increase the third line (label) size by ~2pt */
.lang-ur .stat-item p {
    font-size: calc(0.9rem + 2pt);
}

/* ============================================
   SERVICE DETAIL PAGE
   ============================================ */
.service-detail {
    padding: 80px 0;
    background: var(--bg-body);
}

.service-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.service-detail-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary);
    text-shadow: 0 0 15px rgba(var(--primary-rgb), 0.2);
}

.service-detail-content p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.service-detail-content ul {
    margin: 15px 0;
}

.service-detail-content ul li {
    padding: 8px 0;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.service-detail-content ul li i {
    color: var(--primary);
    text-shadow: 0 0 6px rgba(var(--primary-rgb), 0.3);
}

.service-detail-image img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

/* ============================================
   YOUTUBE SECTION
   ============================================ */
.youtube-section {
    padding: 60px 0;
    background: var(--bg-surface);
    text-align: center;
    border-top: 1px solid var(--border-subtle);
}

.youtube-section h2 {
    color: var(--text-heading);
    margin-bottom: 25px;
}

.youtube-section .btn {
    background: #FF0000;
    color: #ffffff;
}

.youtube-section .btn:hover {
    background: #cc0000;
    box-shadow: 0 0 20px rgba(255,0,0,0.3);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--gradient-primary);
    color: var(--bg-body);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: var(--transition);
    box-shadow: var(--shadow-glow);
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow-btn);
}

.back-to-top.show {
    display: flex;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .hero-slider {
        height: auto;
        min-height: 700px;
    }

    .hero-shell {
        grid-template-columns: 1fr;
        align-items: center;
        padding: 130px 0 140px;
    }

    .hero-panel {
        max-width: 520px;
        justify-self: start;
    }

    .slider-controls {
        padding: 0 20px 12px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .legal-layout {
        grid-template-columns: 1fr;
    }
    .legal-sidebar {
        position: static;
    }
    .legal-highlight-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 20px;
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: block;
        padding: 6px 0;
    }

    .lang-pill {
        gap: 6px;
    }

    .lang-pill-code {
        font-size: 0.95rem;
    }

    .lang-switcher,
    .topbar-theme-toggle {
        --topbar-toggle-width: 84px;
        --topbar-toggle-height: 40px;
    }

    .lang-pill-thumb {
        gap: 4px;
    }

    .lang-pill.is-ur .lang-pill-thumb {
        transform: none;
    }

    .lang-pill-flag {
        width: 28px;
        height: 28px;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -300px;
        width: 280px;
        height: 100vh;
        background: var(--bg-surface);
        flex-direction: column;
        padding: 80px 20px 20px;
        box-shadow: var(--shadow-lg);
        transition: var(--transition);
        z-index: 999;
        overflow-y: auto;
        gap: 0;
        border-left: 1px solid var(--border);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu li a {
        padding: 12px 15px;
        border-bottom: 1px solid var(--border-subtle);
        color: var(--text-primary);
    }

    .nav-menu li a::after {
        display: none;
    }

    .nav-menu li .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        display: none;
        background: var(--bg-elevated);
        border-radius: 0;
        border: none;
    }

    .nav-menu li:hover .dropdown {
        display: block;
    }

    .donate-btn {
        margin: 15px 0 0 0;
        text-align: center;
    }

    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.6);
        z-index: 998;
        display: none;
        backdrop-filter: blur(4px);
    }

    .menu-overlay.active {
        display: flex;
    }

    .hero-slider {
        height: auto;
        min-height: 640px;
    }

    .hero-shell {
        padding: 110px 0 126px;
        gap: 20px;
    }

    .slide-content h1 {
        font-size: clamp(1.9rem, 9vw, 2.6rem);
    }

    .hero-copy {
        font-size: 0.95rem;
        margin-bottom: 24px;
    }

    .hero-panel {
        padding: 20px;
        border-radius: 18px;
        max-width: none;
    }

    .hero-metric {
        padding: 10px 11px;
    }

    .hero-actions .btn {
        min-width: 0;
        width: 100%;
    }

    .slider-controls {
        display: flex;
        justify-content: center;
        gap: 10px;
        padding: 0 14px 10px;
    }

    .slider-nav .dot {
        width: 18px;
        height: 7px;
    }

    .slider-nav .dot.active {
        width: 32px;
    }

    .welcome-grid,
    .chairman-grid,
    .contact-grid,
    .service-detail-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .events-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .page-banner h1 {
        font-size: 2rem;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .legal-highlight-grid {
        grid-template-columns: 1fr;
    }

    .legal-panel,
    .legal-intro-card,
    .legal-section-card,
    .legal-note-strong {
        padding: 22px;
    }

    .legal-section-heading {
        flex-direction: column;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .hero-slider {
        min-height: 600px;
    }

    .hero-shell {
        padding: 100px 0 118px;
    }

    .slider-arrows button {
        width: 40px;
        height: 40px;
    }

    .hero-metric strong {
        font-size: 1rem;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .event-card {
        grid-template-columns: 1fr;
        border-radius: 20px;
    }

    .event-card .event-info {
        padding: 18px;
    }
}

/* ============================================
   TEAM DETAIL PAGE
   ============================================ */
.team-detail {
    padding: 80px 0;
    background: var(--bg-body);
}

.team-detail-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 50px;
    align-items: start;
}

.team-detail-sidebar {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    text-align: center;
    border: 1px solid var(--border-subtle);
}

.team-detail-sidebar .member-photo {
    width: 100%;
    height: 350px;
    object-fit: cover;
    object-position: top;
}

.team-detail-sidebar .member-meta {
    padding: 25px 20px;
}

.team-detail-sidebar .member-meta h2 {
    font-size: 1.4rem;
    color: var(--text-heading);
    margin-bottom: 5px;
}

.team-detail-sidebar .member-meta .position {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    display: block;
    margin-bottom: 15px;
    text-shadow: 0 0 8px rgba(var(--primary-rgb), 0.2);
}

.team-detail-sidebar .member-social-links {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.team-detail-sidebar .member-social-links a {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    color: var(--bg-body);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--transition);
    box-shadow: var(--shadow-glow);
}

.team-detail-sidebar .member-social-links a:hover {
    filter: brightness(1.2);
    transform: translateY(-2px);
}

.team-detail-content h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 20px;
    text-shadow: 0 0 15px rgba(var(--primary-rgb), 0.2);
}

.team-detail-content p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-size: 0.95rem;
    line-height: 1.8;
}

.team-detail-content .contact-label {
    font-weight: 600;
    color: var(--text-heading);
    margin-top: 20px;
    margin-bottom: 5px;
}

/* ============================================
   EVENT DETAIL PAGE
   ============================================ */
.event-detail {
    padding: 80px 0;
    background: var(--bg-body);
}

.event-detail-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 50px;
    align-items: start;
}

.event-detail-content h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 20px;
    text-shadow: 0 0 15px rgba(var(--primary-rgb), 0.2);
}

.event-detail-content p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-size: 0.95rem;
    line-height: 1.8;
}

.event-detail-content .event-featured-image {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    border: 1px solid var(--border-subtle);
}

.event-detail-sidebar {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 30px;
    border: 1px solid var(--border-subtle);
}

.event-detail-sidebar h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--text-heading);
    border-bottom: 2px solid var(--primary);
    padding-bottom: 10px;
}

.event-detail-sidebar .detail-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.event-detail-sidebar .detail-item i {
    color: var(--primary);
    margin-top: 4px;
    min-width: 18px;
    text-shadow: 0 0 6px rgba(var(--primary-rgb), 0.3);
}

.event-detail-sidebar .detail-item strong {
    color: var(--text-heading);
}

@media (max-width: 768px) {
    .team-detail-grid {
        grid-template-columns: 1fr;
    }

    .team-detail-sidebar {
        max-width: 350px;
        margin: 0 auto;
    }

    .event-detail-grid {
        grid-template-columns: 1fr;
    }

    .event-detail-sidebar {
        order: -1;
    }
}

/* ============================================
   NEON GLOW UTILITIES
   ============================================ */
.glow-text {
    text-shadow: 0 0 10px rgba(var(--primary-rgb), 0.5), 0 0 20px rgba(var(--primary-rgb), 0.3);
}

.glow-border {
    border: 1px solid var(--primary);
    box-shadow: 0 0 10px rgba(var(--primary-rgb), 0.2), inset 0 0 10px rgba(var(--primary-rgb), 0.05);
}

/* Smooth theme transition for all elements */
*, *::before, *::after {
    transition-property: background-color, border-color, color, box-shadow;
    transition-duration: 0.3s;
    transition-timing-function: ease;
}

/* Exclude transform and opacity transitions from global override */
a, .btn, .service-card, .team-card, .event-card, .contact-info-card, .gallery-item img,
.slider-arrows button, .top-bar-right a, .footer-social a, .back-to-top,
.welcome-image img, .team-card .member-image img, .service-card .card-image img {
    transition: var(--transition);
}

/* Animated background decorations */
.neon-bg-decoration {
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.03;
    pointer-events: none;
    z-index: -1;
}

.neon-bg-decoration.top-right {
    top: -100px;
    right: -100px;
    background: var(--primary);
}

.neon-bg-decoration.bottom-left {
    bottom: -100px;
    left: -100px;
    background: var(--secondary);
}

/* ============================================
   CMS / AUTH / DYNAMIC DETAIL STYLES
   ============================================ */
code {
    font-family: "Consolas", "Courier New", monospace;
    background: rgba(var(--primary-rgb), 0.12);
    color: var(--primary-light);
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.9em;
}

.btn-small {
    padding: 9px 18px;
    font-size: 0.8rem;
    letter-spacing: 0.4px;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.82rem;
    color: var(--primary);
    margin-bottom: 12px;
}

.banner-lead {
    max-width: 720px;
    margin: 18px auto 0;
    color: var(--text-secondary);
}

.centered-actions {
    text-align: center;
    margin-top: 40px;
}

.hero-actions,
.stack-actions,
.detail-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.nav-meta {
    display: flex;
    align-items: center;
    gap: 14px;
}

.nav-user {
    font-size: 0.9rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.split-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-body {
    padding-top: 30px;
}

.feature-icon {
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary);
    font-size: 3rem;
}

.highlight-section {
    background: var(--gradient-surface);
}

.auth-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 28px;
    align-items: start;
}

.auth-shell {
    max-width: 1120px;
}

.auth-card,
.dashboard-panel,
.empty-state {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: var(--shadow);
}

.auth-card {
    padding: 34px;
}

.auth-card-emphasis {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(var(--primary-rgb), 0.14), transparent 32%),
        linear-gradient(135deg, rgba(var(--primary-rgb), 0.06), rgba(255,255,255,0)),
        var(--bg-card);
}

.auth-card-emphasis::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(120deg, rgba(var(--primary-rgb), 0.12), transparent 26%, transparent 72%, rgba(var(--primary-rgb), 0.08));
    opacity: 0.7;
}

.auth-card-emphasis > * {
    position: relative;
    z-index: 1;
}

.auth-card h2,
.auth-card h3 {
    margin-bottom: 14px;
}

.auth-card p {
    color: var(--text-secondary);
    margin-bottom: 18px;
}

.auth-header {
    max-width: 760px;
    margin-bottom: 26px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.auth-split {
    display: grid;
    grid-template-columns: minmax(320px, 0.95fr) minmax(280px, 1.05fr);
    gap: 22px;
    align-items: stretch;
}

.auth-form-panel,
.auth-guard {
    background: rgba(9, 14, 25, 0.34);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 24px;
    backdrop-filter: blur(12px);
}

.auth-form-panel {
    box-shadow: var(--shadow);
}

.auth-form-centered {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
}

.auth-form-centered .form-group {
    text-align: left;
}

.auth-form-centered .btn {
    display: inline-flex;
    justify-content: center;
    margin: 6px auto 0;
}

.auth-guard {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-guard h3 {
    margin-bottom: 12px;
}

.auth-guard p {
    margin-bottom: 16px;
}

.secure-points {
    display: grid;
    gap: 12px;
    color: var(--text-secondary);
}

.secure-points li {
    position: relative;
    padding-left: 22px;
}

.secure-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 12px rgba(var(--primary-rgb), 0.55);
}

.auth-credentials {
    background: linear-gradient(180deg, rgba(var(--primary-rgb), 0.08) 0%, rgba(0,0,0,0) 100%), var(--bg-card);
}

.credential-item {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-subtle);
}

.credential-item:last-of-type {
    border-bottom: none;
}

.muted-note {
    margin-top: 18px;
    font-size: 0.92rem;
}

.dashboard-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
}

.dashboard-tab {
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 12px 18px;
    border-radius: 999px;
    cursor: pointer;
}

.dashboard-tab:hover,
.dashboard-tab.active {
    background: var(--gradient-primary);
    color: var(--bg-body);
    box-shadow: var(--shadow-glow);
}

.dashboard-panel {
    padding: 28px;
}

.dashboard-summary {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.summary-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 18px;
}

.summary-card span {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-size: 0.88rem;
}

.summary-card strong {
    font-size: 1.35rem;
    color: var(--text-heading);
}

.overview-copy p {
    color: var(--text-secondary);
    margin-top: 14px;
}

.dashboard-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.95fr);
    gap: 24px;
    align-items: start;
}

.entity-list {
    display: grid;
    gap: 16px;
}

.entity-card {
    display: grid;
    gap: 16px;
    padding: 18px;
    border-radius: 18px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
}

.entity-card-main {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
}

.entity-card-main h4 {
    margin-bottom: 8px;
}

.entity-card-main p {
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.entity-thumb {
    width: 88px;
    height: 88px;
    border-radius: 18px;
    overflow: hidden;
    background: var(--bg-body);
}

.entity-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.entity-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.entity-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(var(--primary-rgb), 0.12);
    color: var(--primary-light);
    font-size: 0.8rem;
}

.entity-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.editor-form {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 22px;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 20px;
}

.panel-header.small h3 {
    font-size: 1.45rem;
}

.panel-header p {
    color: var(--text-secondary);
    margin-top: 6px;
}

.dashboard-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.form-group select,
.form-group input,
.form-group textarea {
    width: 100%;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr);
    gap: 34px;
    align-items: start;
}

.detail-media img {
    width: 100%;
    border-radius: 24px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
}

.detail-copy {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 30px;
}

.detail-type {
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1.8px;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0;
}

.detail-meta span {
    background: rgba(var(--primary-rgb), 0.12);
    color: var(--primary-light);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
}

.detail-lead {
    font-size: 1.08rem;
    color: var(--text-primary);
    margin-bottom: 18px;
}

.detail-copy p {
    color: var(--text-secondary);
    margin-bottom: 14px;
}

.empty-state {
    padding: 42px;
    text-align: center;
}

.empty-state p {
    color: var(--text-secondary);
    max-width: 620px;
    margin: 12px auto 0;
}

.gallery-item {
    border: none;
    background: transparent;
    width: 100%;
    padding: 0;
    cursor: pointer;
    text-align: left;
}

.gallery-overlay {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.gallery-overlay span {
    font-size: 0.92rem;
    font-weight: 500;
}

.lightbox-caption {
    margin-top: 14px;
    color: var(--white);
    text-align: center;
}

@media (max-width: 1200px) {
    .dashboard-summary {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .auth-grid,
    .dashboard-layout,
    .detail-layout,
    .split-grid {
        grid-template-columns: 1fr;
    }

    .amount-field-row {
        grid-template-columns: 1fr;
    }

    .auth-split {
        grid-template-columns: 1fr;
    }

    .dashboard-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nav-meta {
        display: none;
    }
}

@media (max-width: 767px) {
    .dashboard-form-grid,
    .dashboard-summary {
        grid-template-columns: 1fr;
    }

    .auth-card,
    .dashboard-panel,
    .detail-copy,
    .editor-form {
        padding: 22px;
    }

    .auth-form-panel,
    .auth-guard {
        padding: 20px;
    }

    .entity-card-main {
        grid-template-columns: 1fr;
    }

    .entity-thumb {
        width: 100%;
        height: 180px;
    }

    .hero-actions,
    .stack-actions,
    .detail-actions,
    .panel-header,
    .credential-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .currency-toggle {
        width: 100%;
    }

.donation-feedback {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   FINAL RTL FOOTER OVERRIDES
   ============================================ */
html[dir="rtl"] #site-footer .footer-grid {
    direction: rtl !important;
}

html[dir="rtl"] #site-footer .footer-col,
html[dir="rtl"] #site-footer .footer-col h3,
html[dir="rtl"] #site-footer .footer-col p,
html[dir="rtl"] #site-footer .footer-col a,
html[dir="rtl"] #site-footer .footer-col li {
    text-align: right !important;
}

html[dir="rtl"] #site-footer .footer-col h3::after {
    left: auto !important;
    right: 0 !important;
}

html[dir="rtl"] #site-footer .footer-col ul {
    list-style: none;
    margin: 0;
    padding-inline-start: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
}

html[dir="rtl"] #site-footer .footer-col ul li.footer-nav-item {
    width: 100%;
    display: flex !important;
    justify-content: flex-end !important;
}

html[dir="rtl"] #site-footer .footer-col ul li.footer-nav-item .footer-nav-link {
    margin-inline-start: auto !important;
    margin-inline-end: 0 !important;
    display: inline-flex !important;
    width: auto !important;
    direction: rtl !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px;
    text-align: right !important;
}

html[dir="rtl"] #site-footer .footer-col ul li.footer-nav-item .footer-nav-link i {
    order: 0;
}

html[dir="rtl"] #site-footer .footer-col ul.contact-info li.footer-contact-item {
    width: 100%;
    display: flex !important;
    direction: rtl !important;
    flex-direction: row !important;
    justify-content: flex-end !important;
    align-items: flex-start !important;
    gap: 10px;
}

html[dir="rtl"] #site-footer .footer-col ul.contact-info li.footer-contact-item .footer-contact-text,
html[dir="rtl"] #site-footer .footer-col ul.contact-info li.footer-contact-item .footer-contact-link {
    text-align: right !important;
}

html[dir="rtl"] #site-footer .footer-col ul.contact-info li.footer-contact-item .footer-contact-link {
    display: inline-block !important;
}

/* ============================================
   SITE FOOTER V3 (REBUILT)
   ============================================ */
.site-footer-v3 {
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 44px 0 0;
}

.site-footer-v3 .sfv3-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) repeat(2, minmax(0, 1fr)) minmax(0, 1.2fr);
    gap: 26px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border-subtle);
}

.site-footer-v3 .sfv3-col {
    min-width: 0;
}

.site-footer-v3 .sfv3-brand-mark {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.site-footer-v3 .sfv3-brand-logo {
    display: block;
    width: 135px;
    height: 135px;
    object-fit: contain;
    filter: drop-shadow(0 0 12px rgba(var(--primary-rgb), 0.28));
}

.site-footer-v3 .sfv3-title {
    display: inline-block;
    position: relative;
    color: var(--text-heading);
    font-size: 1.22rem;
    font-weight: 700;
    margin-bottom: 14px;
    padding-bottom: 8px;
}

.site-footer-v3 .sfv3-brand-name {
    margin-bottom: 0;
    color: var(--primary);
    text-shadow: 0 0 16px rgba(var(--primary-rgb), 0.28);
}

.site-footer-v3 .sfv3-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 42px;
    height: 2px;
    background: var(--gradient-primary);
}

.site-footer-v3 .sfv3-about-copy {
    line-height: 1.78;
    margin-bottom: 14px;
}

.site-footer-v3 .sfv3-social {
    display: flex;
    gap: 10px;
}

.site-footer-v3 .sfv3-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.site-footer-v3 .sfv3-list,
.site-footer-v3 .sfv3-contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.site-footer-v3 .sfv3-item,
.site-footer-v3 .sfv3-contact-item {
    margin: 0;
}

.site-footer-v3 .sfv3-link {
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
    color: var(--text-secondary);
}

.site-footer-v3 .sfv3-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: var(--text-secondary);
    width: 100%;
}

.site-footer-v3 .sfv3-link {
    text-decoration: none;
}

.site-footer-v3 .sfv3-link:hover,
.site-footer-v3 .sfv3-contact-item a:hover {
    color: var(--primary);
}

.site-footer-v3 .sfv3-link i,
.site-footer-v3 .sfv3-contact-item i {
    color: var(--primary);
    margin-top: 4px;
    min-width: 12px;
}

.site-footer-v3 .sfv3-contact-item a,
.site-footer-v3 .sfv3-contact-item span {
    color: inherit;
}

.site-footer-v3 .sfv3-contact-item > i {
    flex: 0 0 auto;
}

.site-footer-v3 .sfv3-contact-item > a,
.site-footer-v3 .sfv3-contact-item > span {
    display: block;
    max-width: calc(100% - 22px);
}

.site-footer-v3 .sfv3-contact-item > a {
    direction: ltr;
    unicode-bidi: plaintext;
}

.site-footer-v3 .sfv3-collapse-toggle {
    width: 100%;
    padding: 0;
    margin: 0 0 14px 0;
    border: 0;
    background: transparent;
    color: inherit;
    display: block;
    text-align: inherit;
    pointer-events: none;
}

.site-footer-v3 .sfv3-collapse-toggle i {
    display: none;
}

.site-footer-v3 .sfv3-body {
    display: block;
}

.site-footer-v3 .sfv3-bottom {
    padding: 16px 0;
    text-align: center;
    font-size: 0.86rem;
    color: var(--text-muted);
}

html[dir="rtl"] .site-footer-v3 .sfv3-grid {
    direction: rtl;
}

html[dir="rtl"] .site-footer-v3 .sfv3-col,
html[dir="rtl"] .site-footer-v3 .sfv3-about-copy,
html[dir="rtl"] .site-footer-v3 .sfv3-title {
    text-align: right;
}

html[dir="rtl"] .site-footer-v3 .sfv3-brand-mark {
    width: 100%;
    align-items: flex-start;
    margin-inline-start: auto;
}

html[dir="rtl"] .site-footer-v3 .sfv3-brand-logo {
    align-self: flex-start;
    margin-left: auto;
    margin-right: 0;
}

html[dir="rtl"] .site-footer-v3 .sfv3-brand-name {
    display: block;
    width: 100%;
    text-align: right;
}

html[dir="rtl"] .site-footer-v3 .sfv3-collapsible .sfv3-title {
    color: var(--primary);
    font-family: 'Aslam', 'UrduPrimary', 'Playfair Display', serif;
    text-shadow: 0 0 16px rgba(var(--primary-rgb), 0.28);
}

html[dir="rtl"] .site-footer-v3 .sfv3-title::after {
    left: auto;
    right: 0;
}

html[dir="rtl"] .site-footer-v3 .sfv3-social {
    justify-content: flex-end;
}

html[dir="rtl"] .site-footer-v3 .sfv3-list,
html[dir="rtl"] .site-footer-v3 .sfv3-contact-list {
    align-items: flex-end;
}

html[dir="rtl"] .site-footer-v3 .sfv3-link,
html[dir="rtl"] .site-footer-v3 .sfv3-contact-item {
    direction: rtl;
    justify-content: flex-end;
    text-align: right;
}

html[dir="rtl"] .site-footer-v3 .sfv3-link i.fa-angle-right {
    transform: scaleX(-1);
}

html[dir="rtl"] .site-footer-v3 .sfv3-contact-item {
    justify-content: flex-start;
}

html[dir="rtl"] .site-footer-v3 .sfv3-contact-item > a,
html[dir="rtl"] .site-footer-v3 .sfv3-contact-item > span {
    margin-inline-start: 0;
    margin-inline-end: 0;
    text-align: right;
}

html[lang="en"] .site-footer-v3 .sfv3-title {
    font-size: 1.14rem;
}

html[lang="en"] .site-footer-v3 .sfv3-about-copy,
html[lang="en"] .site-footer-v3 .sfv3-link,
html[lang="en"] .site-footer-v3 .sfv3-contact-item,
html[lang="en"] .site-footer-v3 .sfv3-bottom {
    font-size: 0.92rem;
}

@media (max-width: 1100px) {
    .site-footer-v3 .sfv3-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 22px;
    }

    .site-footer-v3 .sfv3-about {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .site-footer-v3 {
        padding-top: 26px;
    }

    .site-footer-v3 .sfv3-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        padding-bottom: 18px;
    }

    .site-footer-v3 .sfv3-about {
        border: 1px solid var(--border-subtle);
        border-radius: 14px;
        padding: 14px;
    }

    .site-footer-v3 .sfv3-about-copy {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin-bottom: 12px;
    }

    .site-footer-v3 .sfv3-collapsible {
        border: 1px solid var(--border-subtle);
        border-radius: 14px;
        background: var(--bg-card);
    }

    .site-footer-v3 .sfv3-collapse-toggle {
        pointer-events: auto;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 13px 14px;
        margin: 0;
        cursor: pointer;
    }

    .site-footer-v3 .sfv3-collapse-toggle .sfv3-title {
        margin: 0;
    }

    .site-footer-v3 .sfv3-collapse-toggle i {
        display: inline-block;
        font-size: 0.9rem;
        color: var(--primary);
        transition: transform 0.2s ease;
    }

    .site-footer-v3 .sfv3-collapsible .sfv3-body {
        display: none;
        padding: 0 14px 12px;
    }

    .site-footer-v3 .sfv3-collapsible.is-open .sfv3-body {
        display: block;
    }

    .site-footer-v3 .sfv3-collapsible.is-open .sfv3-collapse-toggle i {
        transform: rotate(180deg);
    }
}

/* ============================================
   MOBILE UX REFINEMENTS (GLOBAL)
   ============================================ */
@media (max-width: 768px) {
    .container {
        padding: 0 14px;
    }

    .section-padding,
    .services-section,
    .events-section,
    .gallery-section,
    .team-section,
    .contact-section,
    .stats-section,
    .welcome-section,
    .chairman-section {
        padding: 46px 0 !important;
    }

    .section-title {
        margin-bottom: 24px;
    }

    .section-title h2 {
        font-size: 1.55rem !important;
    }

    .section-title p {
        font-size: 0.9rem;
        line-height: 1.65;
    }

    .page-banner {
        padding: 76px 0 34px;
    }

    .page-banner h1 {
        font-size: 1.72rem !important;
        margin-bottom: 10px;
    }

    .banner-lead {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .hero-slider {
        min-height: 520px !important;
    }

    .hero-shell {
        padding: 88px 0 84px !important;
        gap: 16px !important;
    }

    .hero-panel {
        display: none;
    }

    .slide-content h1 {
        font-size: clamp(1.45rem, 7vw, 2rem) !important;
        margin-bottom: 10px;
    }

    .hero-copy {
        font-size: 0.9rem !important;
        line-height: 1.62;
        margin-bottom: 16px !important;
    }

    /* Mobile-only: center hero heading and copy, add 10px side padding */
    .slide-content {
        text-align: center !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .slide-content h1,
    .slide-content .hero-copy {
        text-align: center !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .hero-actions .btn {
        padding: 10px 8px;
        font-size: 0.82rem;
    }

    .slider-controls {
        padding: 0 10px 8px !important;
        gap: 8px;
    }

    .slider-arrows button {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }

    .slider-toggle {
        font-size: 0.74rem;
        padding: 8px 12px;
    }

    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }

    .services-grid:not(.split-grid) .service-card .card-image {
        height: 120px;
    }

    .services-grid:not(.split-grid) .service-card .card-icon {
        display: none;
    }

    .services-grid:not(.split-grid) .service-card .card-body {
        padding: 12px 10px 12px;
    }

    .services-grid:not(.split-grid) .service-card .card-body h3 {
        font-size: 0.92rem;
        margin-bottom: 6px;
        line-height: 1.35;
    }

    .services-grid:not(.split-grid) .service-card .card-body p {
        display: none;
    }

    .services-grid:not(.split-grid) .service-card .card-body .read-more {
        font-size: 0.78rem;
    }

    .events-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    .event-card {
        border-radius: 18px;
    }

    .event-card .event-date {
        gap: 10px;
        padding: 12px 14px;
    }

    .event-card .event-date .month,
    .event-card .event-date .year {
        font-size: 0.72rem;
    }

    .event-card .event-date .day {
        font-size: 1.8rem;
    }

    .event-card .event-info {
        gap: 12px;
        padding: 16px 14px;
    }

    .event-card .event-info .event-kicker {
        font-size: 0.66rem;
        letter-spacing: 0.12em;
        padding: 6px 10px;
    }

    .event-card .event-info h3 {
        font-size: 0.98rem;
        min-height: calc(1.45em * 2);
    }

    .event-card .event-info .event-meta {
        gap: 8px;
    }

    .event-card .event-info .event-meta span {
        width: 100%;
        font-size: 0.78rem;
        padding: 7px 10px;
    }

    .event-card .event-info p {
        font-size: 0.84rem;
        line-height: 1.55;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .event-card .event-info .event-cta {
        font-size: 0.82rem;
        gap: 8px;
    }

    .team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }

    .team-card .member-image {
        height: 148px;
    }

    .team-card .member-social {
        display: none !important;
    }

    .team-card .member-info {
        padding: 10px 8px;
    }

    .team-card .member-info h3 {
        font-size: 0.9rem;
        line-height: 1.35;
        margin-bottom: 3px;
    }

    .team-card .member-info .position {
        font-size: 0.72rem;
        letter-spacing: 0;
        text-transform: none;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }

    .gallery-item {
        border-radius: 10px;
        aspect-ratio: 1 / 1;
    }

    .gallery-overlay span {
        font-size: 0.76rem;
        line-height: 1.25;
        padding: 0 4px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .welcome-grid,
    .chairman-grid,
    .contact-grid,
    .detail-layout,
    .team-detail-grid,
    .event-detail-grid,
    .service-detail-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .welcome-image img,
    .chairman-image img,
    .detail-media img,
    .team-detail-sidebar .member-photo {
        max-height: 260px;
        object-fit: cover;
    }

    .contact-form-wrapper,
    .detail-copy,
    .team-detail-content,
    .event-detail-content {
        padding: 18px !important;
        border-radius: 14px;
    }

    .contact-info-cards {
        gap: 12px;
    }

    .contact-info-card {
        padding: 14px;
        gap: 12px;
    }

    .contact-info-card .icon {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }

    .contact-info-card h4 {
        font-size: 0.95rem;
    }

    .contact-info-card p,
    .contact-info-card a {
        font-size: 0.84rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 16px 10px;
    }

    .stat-item h3 {
        font-size: 1.65rem;
    }

    .stat-item p {
        font-size: 0.78rem;
        letter-spacing: 0.4px;
    }
}

@media (max-width: 520px) {
    .team-grid,
    .services-grid,
    .gallery-grid,
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .hero-actions {
        grid-template-columns: 1fr;
    }

    .top-bar .container {
        gap: 8px;
    }

    .top-bar-left {
        gap: 10px;
        width: 100%;
        justify-content: space-between;
        font-size: 0.76rem;
    }

    .top-bar-right {
        width: 100%;
        justify-content: space-between;
    }
}

/* ============================================
   MOBILE NAV POPUP + MOBILE THEME TOGGLE
   ============================================ */
.nav-menu-top {
    display: none;
}

.mobile-donate-btn {
    display: none;
}

@media (max-width: 991px) {
    .nav-meta {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .navbar {
        z-index: 1200;
    }

    .navbar-brand .org-name {
        display: none;
    }

    .navbar .container {
        gap: 10px;
    }

    .navbar-brand {
        min-width: 0;
        flex: 1 1 auto;
    }

    .nav-meta {
        display: flex !important;
        order: 2;
        align-items: center;
        gap: 8px;
        margin-inline-start: auto;
    }

    .nav-meta .nav-user {
        display: none !important;
    }

    .menu-toggle {
        order: 3;
    }

    .menu-overlay {
        position: fixed;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px 16px;
        overflow-y: auto;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        z-index: 1400;
        background: rgba(8, 14, 24, 0.44);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        transition: opacity 0.24s ease, visibility 0.24s ease;
    }

    .menu-overlay.active {
        display: flex;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .menu-overlay > .nav-menu {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
        width: min(calc(100vw - 32px), 340px);
        height: auto;
        max-height: min(78dvh, 560px);
        margin: 0;
        padding: 12px;
        gap: 6px;
        border: 1px solid var(--border);
        border-radius: 16px;
        border-left: 1px solid var(--border);
        background: var(--bg-surface);
        box-shadow: 0 24px 58px rgba(0, 0, 0, 0.32);
        overflow-x: hidden;
        overflow-y: auto;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(16px) scale(0.96);
        transform-origin: center center;
        transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease, visibility 0.2s ease;
        z-index: 1250;
    }

    .menu-overlay > .nav-menu.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0) scale(1);
    }

    .nav-menu-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        width: 100%;
        padding: 0 0 8px;
        border-bottom: 1px solid var(--border-subtle);
    }

    .lang-ur .nav-menu-top {
        flex-direction: row-reverse;
    }

    .nav-popup-title {
        font-size: 0.92rem;
        font-weight: 700;
        letter-spacing: 0.1px;
        color: var(--text-primary);
    }

    .menu-close {
        width: 34px;
        height: 34px;
        border-radius: 50%;
        border: 1px solid var(--border);
        background: var(--bg-card);
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        flex: 0 0 auto;
        transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
    }

    .menu-close span {
        position: absolute;
        width: 14px;
        height: 2px;
        border-radius: 999px;
        background: var(--text-primary);
        transition: background 0.22s ease;
    }

    .menu-close span:first-child {
        transform: rotate(45deg);
    }

    .menu-close span:last-child {
        transform: rotate(-45deg);
    }

    .menu-close:hover {
        transform: rotate(90deg) scale(1.04);
        background: rgba(var(--primary-rgb), 0.13);
        border-color: rgba(var(--primary-rgb), 0.45);
        box-shadow: 0 10px 22px rgba(var(--primary-rgb), 0.26);
    }

    .menu-close:hover span {
        background: var(--primary);
    }

    .menu-close:active {
        transform: rotate(90deg) scale(0.95);
    }

    .nav-menu > li {
        width: 100%;
    }

    .nav-link-row {
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .nav-link-row > a {
        flex: 1 1 auto;
        min-width: 0;
    }

    .submenu-toggle {
        width: 30px;
        height: 30px;
        border: 1px solid var(--border-subtle);
        border-radius: 10px;
        background: var(--bg-card);
        color: var(--text-secondary);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        flex: 0 0 auto;
        transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    }

    .submenu-toggle i {
        font-size: 0.74rem;
    }

    .nav-menu > li.submenu-open > .nav-link-row .submenu-toggle {
        color: var(--primary);
        border-color: rgba(var(--primary-rgb), 0.4);
        background: rgba(var(--primary-rgb), 0.1);
        transform: rotate(180deg);
    }

    .nav-menu li a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 8px 10px;
        border: 1px solid var(--border-subtle);
        border-radius: 10px;
        background: var(--bg-card);
        color: var(--text-primary);
        text-transform: none;
        letter-spacing: 0.1px;
        font-size: 0.79rem;
        line-height: 1.25;
    }

    .nav-menu li a::after {
        display: none;
    }

    .nav-menu > li > .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        min-width: 0;
        margin-top: 6px;
        padding: 6px 0 0 8px;
        border: 0;
        border-radius: 0;
        border-inline-start: 2px solid rgba(var(--primary-rgb), 0.24);
        box-shadow: none;
        background: transparent;
        max-height: none;
        overflow: visible;
    }

    .nav-menu > li.submenu-open > .dropdown {
        display: block;
    }

    .lang-ur .nav-menu > li > .dropdown {
        padding: 6px 8px 0 0;
    }

    .nav-menu > li:hover > .dropdown {
        display: none;
    }

    .nav-menu > li.submenu-open:hover > .dropdown {
        display: block;
    }

    .nav-menu > li > .dropdown li a {
        padding: 7px 9px;
        border: 0;
        border-radius: 8px;
        background: rgba(var(--primary-rgb), 0.06);
        color: var(--text-secondary);
        font-size: 0.74rem;
        margin-bottom: 4px;
    }

    .nav-menu > li > .dropdown li a:hover {
        padding-left: 9px;
        padding-right: 9px;
        background: rgba(var(--primary-rgb), 0.14);
        color: var(--primary);
    }

    .nav-menu .donate-menu-item {
        display: none;
    }

    .nav-menu .donate-btn {
        margin: 4px 0 0 0 !important;
        width: 100%;
        justify-content: center;
        text-align: center;
        border-radius: 12px !important;
    }

    .mobile-donate-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 42px;
        padding: 10px 25px !important;
        border-radius: 50px !important;
        background: var(--gradient-primary) !important;
        color: var(--bg-body) !important;
        box-shadow: var(--shadow-glow) !important;
        font-weight: 600 !important;
        font-size: 0.95rem;
        letter-spacing: 1px;
        text-transform: uppercase;
        line-height: 1;
        white-space: nowrap;
    }

    .mobile-donate-btn:hover {
        transform: translateY(-1px);
        box-shadow: var(--shadow-glow-btn) !important;
        filter: brightness(1.1);
    }

    body.menu-open #page-root,
    body.menu-open #site-footer {
        filter: blur(2px);
    }

    body.menu-open .top-bar,
    body.menu-open .navbar .container > .navbar-brand,
    body.menu-open .navbar .container > .nav-meta,
    body.menu-open .navbar .container > .menu-toggle {
        filter: blur(2px);
        opacity: 0.45;
        transition: filter 0.2s ease, opacity 0.2s ease;
    }
}
