/* ===================================
   MASJID SHOHADA - PREMIUM ARABIC DESIGN
   Modern | Minimal | Elegant
   =================================== */

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

:root {
    /* Fonts - Updated to match design */
    /* Fonts - Updated to match design */
    --font-main: 'Outfit', sans-serif;
    --font-title: 'Fraunces', serif;
    /* New Font */
    --font-arabic: 'Noto Naskh Arabic', 'Adobe Arabic';
    --font-urdu: 'Jameel Noori Nastaleeq', 'Noto Nastaliq Urdu';

    /* Brand Primitives - Jamaat Islami / Al-Khidmat Style */
    --color-primary: #0062CC;
    /* Strong Blue */
    --color-primary-light: #3385d6;
    /* Lighter Blue */
    --color-accent: #4CAF50;
    /* Vibrant Green */
    --color-accent-hover: #388E3C;
    /* Darker Green for hover */
    --color-white: #ffffff;
    --color-off-white: #f8f9fa;
    --color-dark: #1a1a1a;
    --color-gray: #666666;
    --color-gray-light: #e0e0e0;

    /* Semantic Variables (Light Mode Default) */
    --bg-body: var(--color-off-white);
    --bg-card: var(--color-white);
    --bg-nav: rgba(255, 255, 255, 0.95);
    /* Increased opacity for better separation */
    --text-main: var(--color-dark);
    --text-muted: var(--color-gray);
    --text-on-primary: var(--color-white);
    --border-color: rgba(0, 0, 0, 0.08);
    --shadow-color: rgba(0, 0, 0, 0.08);

    /* Legacy variables mapping */
    --primary-dark: var(--color-primary);
    --primary-medium: var(--color-primary-light);
    --accent-gold: var(--color-accent);
    --dark-gray: var(--color-dark);
    --light-beige: var(--bg-card);
    --off-white: var(--bg-body);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;
    --radius-2xl: 48px;
    --radius-full: 9999px;

    /* Transitions */
    --transition: all 0.3s ease;
    --transition-fast: all 0.2s ease;

    /* Shadows */
    --shadow-sm: 0 2px 8px var(--shadow-color);
    --shadow-md: 0 4px 16px var(--shadow-color);
    --shadow-lg: 0 8px 32px var(--shadow-color);
    --shadow-xl: 0 16px 48px var(--shadow-color);
}

/* Dark Theme Overrides */
body.dark-theme {
    --bg-body: #0f172a;
    --bg-card: #1e293b;
    --bg-nav: rgba(30, 41, 59, 0.95);
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.08);
    --shadow-color: rgba(0, 0, 0, 0.3);

    /* Adjust brand colors for dark mode */
    --color-primary: #38bdf8;
    --color-primary-light: #7dd3fc;
    --color-accent: #4CAF50;
    /* Keep green vibrant */
    --primary-dark: var(--color-primary);
    --dark-gray: var(--text-main);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    line-height: 1.8;
    color: var(--text-main);
    background-color: var(--bg-body);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Soft Watermark Decoration */
body::before {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 60vw;
    max-width: 800px;
    max-height: 800px;
    background-image: url('../images/logo.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.03;
    pointer-events: none;
    z-index: -1;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.04em;
    color: var(--primary-dark);
}

body.dark-theme h1,
body.dark-theme h2,
body.dark-theme h3,
body.dark-theme h4,
body.dark-theme h5,
body.dark-theme h6 {
    color: var(--text-main);
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-lg);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ==================
   Navigation Bar - Minimal & Clean
   ================== */
/* ==================
   Navigation Bar - Floating Pill
   ================== */
.navbar {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    background: var(--bg-nav);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    box-shadow: 0 10px 30px var(--shadow-color);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    padding: 0.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-dark);
    letter-spacing: -0.01em;
}

body.dark-theme .nav-logo {
    color: var(--text-main);
}

.nav-logo .logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
    border-radius: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.85rem;
    position: relative;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: var(--color-accent);
    transition: var(--transition-fast);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary-dark);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 0.35rem;
    cursor: pointer;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
    transition: var(--transition-fast);
}

/* ==================
   Navigation Controls (Theme + Lang)
   ================== */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(17, 105, 142, 0.05);
    /* Very subtle background */
    padding: 0.3rem;
    border-radius: 50px;
    /* Pill shape */
    border: 1px solid rgba(17, 105, 142, 0.1);
    margin-left: 1rem;
}

.theme-btn,
.lang-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--primary-dark);
    transition: var(--transition-fast);
    padding: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lang-btn {
    font-family: var(--font-main);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    background: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.theme-btn:hover,
.lang-btn:hover {
    background: white;
    color: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

body.dark-theme .nav-controls {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-theme .theme-btn,
body.dark-theme .lang-btn {
    color: var(--color-accent);
}

body.dark-theme .lang-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

body.dark-theme .theme-btn:hover,
body.dark-theme .lang-btn:hover {
    background: var(--primary-dark);
    color: var(--color-accent);
}

/* ==================
   Hero Section - Card Style
   ================== */
.hero-section {
    position: relative;
    height: 85vh;
    /* Adjusted height */
    /* Spacing from top for Navbar Pill separation */
    margin-top: 110px;
    /* Navbar height + spacing */
    margin-left: 2rem;
    margin-right: 2rem;
    margin-bottom: 2rem;
    border-radius: var(--radius-xl);
    /* Rounded Card */
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.hero-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    background: var(--color-primary);
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(1.1);
    transition: opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1), transform 10s ease-out;
    z-index: 1;
    display: flex;
    /* Flexbox for centering */
    align-items: center;
    justify-content: center;
    text-align: center;
    /* Center align all text */
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    /* Image behind content */
    top: 0;
    left: 0;
    z-index: -1;
}

/* Slide Content */
.hero-slide-content {
    position: relative;
    z-index: 3;
    width: 80%;
    max-width: 1000px;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.hero-location-title {
    font-size: 1.5rem;
    font-weight: 400;
    font-family: var(--font-title);
    margin-top: -0.5rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 700px;
    opacity: 0.9;
}

/* Subtitle */
.hero-subtitle-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-accent);
    /* Green accent */
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.hero-title {
    font-family: var(--font-title);
    font-size: clamp(3rem, 7vw, 6rem);
    /* Larger, majestic font */
    font-weight: 300;
    /* Fraunces looks great lighter */
    margin-bottom: 0.5rem;
    color: white;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

/* Quranic Verse Section within Slide */
.hero-verse {
    margin-top: 1rem;
    animation: fadeInUp 1s ease-out 0.4s backwards;
    text-align: center;
}

.hero-verse-arabic {
    font-family: var(--font-arabic);
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    line-height: 1.6;
    color: white;
    margin-bottom: 1rem;
    font-weight: 400;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.hero-verse-english {
    font-family: var(--font-title);
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
    max-width: 800px;
}

.hero-btn {
    display: inline-block;
    padding: 1rem 3rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.8);
    color: var(--color-white);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: var(--transition);
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.6s forwards;
    margin-top: 2rem;
}

.hero-btn:hover {
    background: var(--color-white);
    color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Overlay & Common */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    /* Darker overlay for better text contrast */
    z-index: 2;
}

/* REMOVED: Old .hero-content, .hero-placeholder */


/* Hero Navigation Buttons */
.hero-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 4;
    pointer-events: none;
}

.hero-nav-btn {
    pointer-events: all;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: var(--color-accent);
    transform: scale(1.05);
}

/* Hero Dots - Bottom Center, Much Larger */
.hero-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1.5rem;
    /* Increased gap */
    z-index: 4;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-full);
    backdrop-filter: blur(5px);
}

.dot {
    width: 14px;
    /* Increased size */
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    /* Gray-ish/White translucent */
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.dot.active {
    background: var(--color-accent);
    /* Green/Yellow active */
    width: 14px;
    /* Keep uniform circle or slight expansion */
    transform: scale(1.3);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 10px var(--color-accent);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Prayer Time Countdown */
.prayer-countdown {
    position: absolute;
    bottom: 3rem;
    right: 3rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    padding: 1rem 1.75rem;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-lg);
    z-index: 4;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.prayer-countdown:hover {
    background: rgba(21, 125, 169, 0.95);
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.countdown-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.countdown-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.countdown-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    margin: 0;
    font-family: var(--font-title);
}

.countdown-prayer {
    font-size: 1rem;
    color: white;
    font-weight: 500;
    margin: 0;
    font-family: var(--font-title);
}

/* ==================
   Announcements Section
   ================== */
/* ==================
   Announcements Section
   ================== */
.announcements-section {
    padding: var(--spacing-xl) 0;
    background: var(--bg-body);
    /* Changed from off-white */
}

.announcements-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.announcement-poster {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    height: 600px;
}

.announcement-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.poster-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-medium) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.poster-placeholder::before {
    content: 'Poster';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(6rem, 15vw, 12rem);
    font-weight: 900;
    color: rgba(255, 255, 255, 0.03);
    letter-spacing: -0.05em;
    text-transform: uppercase;
    z-index: 1;
}

.poster-placeholder i {
    margin-bottom: 1rem;
    opacity: 0.15;
    z-index: 2;
    position: relative;
}

.poster-placeholder p {
    font-size: 1rem;
    opacity: 0.3;
    z-index: 2;
    position: relative;
}

.announcements-content h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
    font-weight: 800;
}

body.dark-theme .announcements-content h2 {
    color: var(--text-main);
}

.announcements-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.announcement-item {
    display: flex;
    gap: 1.5rem;
    padding-left: 2rem;
    border-left: 3px solid var(--color-accent);
    /* Use semantic var */
    transition: var(--transition);
    /* Smoother transition */
    opacity: 0;
    transform: translateX(-20px);
}

.announcement-item:hover {
    padding-left: 2.5rem;
    border-left-width: 3px;
    /* Keep width same to avoid shift, or animate carefully */
    border-left-color: var(--color-primary);
    /* Change color instead for effect */
    background: linear-gradient(to right, rgba(0, 0, 0, 0.02), transparent);
    /* Subtle highlight */
}

body.dark-theme .announcement-item:hover {
    background: linear-gradient(to right, rgba(255, 255, 255, 0.05), transparent);
}

.announcement-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-medium));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    box-shadow: var(--shadow-md);
}

.announcement-text h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
    font-weight: 600;
}

body.dark-theme .announcement-text h3 {
    color: var(--text-main);
}

.announcement-text p {
    color: var(--text-main);
    /* Changed from dark-gray */
    line-height: 1.7;
    font-size: 1rem;
}

body.dark-theme .announcement-text p {
    color: var(--text-muted);
}

/* ==================
   Prayer Times Section
   ================== */
/* ==================
   Prayer Times Section
   ================== */
.prayer-times-section {
    padding: var(--spacing-xl) 0;
    background: var(--bg-body);
    /* Changed from light-beige */
}

.section-title {
    text-align: center;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    color: var(--primary-dark);
    font-weight: 800;
}

body.dark-theme .section-title {
    color: var(--text-main);
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 3.5rem;
    font-weight: 400;
}

.prayer-times-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

.prayer-card {
    background: var(--bg-card);
    /* Changed from white */
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.prayer-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-accent);
}

.prayer-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-medium));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.prayer-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: var(--primary-dark);
    font-weight: 600;
}

body.dark-theme .prayer-card h3 {
    color: var(--text-main);
}

.prayer-time {
    font-size: 1.6rem;
    color: var(--text-main);
    /* Changed from dark-gray */
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* ==================
   Facilities Section
   ================== */
.facilities-section {
    padding: var(--spacing-xl) 0;
    background: var(--bg-body);
    /* Changed from off-white */
}

.facilities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.facility-card {
    background: var(--bg-card);
    /* Changed from light-beige */
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    border: 1px solid transparent;
}

.facility-card:hover {
    background: var(--bg-card);
    /* Ensure hover doesn't flash white */
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-accent);
}

.facility-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-medium));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.facility-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    color: var(--primary-dark);
    font-weight: 600;
}

body.dark-theme .facility-card h3 {
    color: var(--text-main);
}

.facility-card p {
    color: var(--text-main);
    /* Changed from dark-gray */
    line-height: 1.7;
    font-size: 1rem;
}

/* ==================
   Imam Section
   ================== */
/* ==================
   Imam Section - Compact & Sketch Style
   ================== */
/* ==================
   Imam Section - Vertical & Clean (Facilities Style)
   ================== */
/* ==================
   Imam Section - Landscape (Professional & Clean)
   ================== */
.imam-section {
    padding: var(--spacing-xl) 0;
    background: var(--bg-body);
}

.imam-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 3rem;
    max-width: 1000px;
    /* Increased width for landscape */
    margin: 0 auto;
    text-align: left;
    /* Left align text */
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: row;
    /* Horizontal Layout */
    align-items: center;
    gap: 3rem;
    /* Gap between image and text */
}

.imam-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-accent);
}

.imam-image-wrapper {
    width: 200px;
    /* Larger image */
    height: 200px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--bg-body);
    box-shadow: var(--shadow-md);
}

.imam-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.imam-content {
    flex-grow: 1;
}

.imam-name {
    font-family: var(--font-title);
    font-size: 2.5rem;
    /* Larger font */
    font-weight: 800;
    /* Bold like section title */
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

/* Dark Mode Override for Name */
body.dark-theme .imam-name {
    color: var(--text-main);
}

.imam-role-label {
    color: var(--color-accent);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.imam-credentials {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

/* Dark Mode Override for Credentials */
body.dark-theme .imam-credentials {
    color: #cbd5e1;
    /* Lighter gray for dark mode */
}

.imam-description {
    color: var(--text-main);
    line-height: 1.8;
    margin-bottom: 2rem;
    font-size: 1.05rem;
    opacity: 0.9;
}

/* Dark Mode Override for Description */
body.dark-theme .imam-description {
    color: #e2e8f0;
    /* Very light gray for readability */
    opacity: 1;
}

.imam-socials {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    /* Align left */
}

.imam-socials a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--bg-body);
    /* Subtle background */
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 1.2rem;
}

/* Dark Mode for Socials */
body.dark-theme .imam-socials a {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

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

/* Responsive adjustments for Imam Card */
@media (max-width: 768px) {
    .imam-card {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
        gap: 1.5rem;
    }

    .imam-image-wrapper {
        width: 150px;
        height: 150px;
        margin-bottom: 0;
        /* Reset margin */
    }

    .imam-socials {
        justify-content: center;
    }
}

/* ==================
   Administration Section
   ================== */
.admin-section {
    padding: var(--spacing-xl) 0;
    background: var(--bg-body);
    /* Changed from off-white */
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.admin-card {
    background: var(--bg-card);
    /* Changed from white */
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid transparent;
}

.admin-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-accent);
}

.admin-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 98, 204, 0.1);
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
}

body.dark-theme .admin-icon {
    background: rgba(56, 189, 248, 0.1);
    color: var(--color-primary);
}

.admin-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

body.dark-theme .admin-card h3 {
    color: var(--text-main);
}

.admin-role {
    color: var(--color-accent);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.admin-card p:last-child {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 1024px) {
    .admin-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .admin-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================
   Contact Section
   ================== */
.contact-section {
    padding: var(--spacing-xl) 0;
    background: var(--bg-body);
    /* Changed from light-beige */
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
}

.contact-form-wrapper {
    background: var(--bg-card);
    /* Changed from white */
    padding: 3rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 1.75rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
    font-weight: 500;
    font-size: 0.95rem;
}

body.dark-theme .form-group label {
    color: var(--text-main);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.9rem 1.25rem;
    border: 1px solid var(--border-color);
    /* Changed from gray-light */
    border-radius: var(--radius-md);
    font-family: var(--font-main);
    font-size: 1rem;
    color: var(--text-main);
    /* Changed from near-black */
    transition: var(--transition-fast);
    background: var(--bg-body);
    /* Changed from off-white */
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(80, 216, 144, 0.1);
    background: var(--bg-card);
    /* Changed from white */
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    width: 100%;
    padding: 1.1rem 2rem;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-medium));
    color: white;
    border: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--primary-medium), var(--primary-green));
}

.submit-btn i {
    font-size: 1.1rem;
}

.contact-info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-info-card {
    background: var(--bg-card);
    /* Changed from white */
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition-fast);
}

.contact-info-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.contact-info-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-medium));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.contact-info-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: var(--primary-dark);
    font-weight: 600;
}

body.dark-theme .contact-info-card h3 {
    color: var(--text-main);
}

.contact-info-card p {
    color: var(--text-muted);
    /* Changed from dark-gray */
    line-height: 1.7;
    font-size: 1rem;
}

.contact-info-card a {
    color: var(--text-muted);
    /* Changed from dark-gray */
    transition: var(--transition-fast);
}

.contact-info-card a:hover {
    color: var(--color-accent);
}

/* ==================
   Map Section
   ================== */
/* ==================
   Map Section
   ================== */
.map-section {
    padding: var(--spacing-xl) 0 0 0;
    background: var(--bg-body);
    /* Changed from off-white */
}

.map-wrapper {
    margin-top: 3rem;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.map-wrapper iframe {
    width: 100%;
    height: 500px;
    border: 0;
    display: block;
}

/* ==================
   Footer
   ================== */
.footer {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-medium) 100%);
    color: white;
    padding: var(--spacing-xl) 0 2rem;
    margin-top: var(--spacing-xl);
}

body.dark-theme .footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: white;
    font-weight: 700;
}

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--color-accent);
    /* Changed for better contrast */
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.95rem;
}

.footer-col h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-col h3 i {
    margin-right: 0;
}

.footer-col p {
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.footer-logo {
    width: 15rem;
    /* Adjust size as needed */
    height: auto;
    margin-bottom: 1rem;
    display: block;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.75);
    transition: var(--transition-fast);
    font-size: 0.9rem;
}

.footer-col a:hover {
    color: var(--accent-gold);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.footer-contact i {
    color: white;
    margin-top: 0.3rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    color: white;
}

.social-links a:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-primary);
    /* Contrast text on gold/accent */
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-top: 2rem;
}

.footer-bottom i {
    color: var(--color-accent);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ==================
   WhatsApp Float
   ================== */
/* ==================
   WhatsApp Float
   ================== */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    /* Moved to right */
    left: auto;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    box-shadow: var(--shadow-xl);
    z-index: 999;
    transition: var(--transition-fast);
}

.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.4);
}

/* ==================
   Scroll to Top
   ================== */
.scroll-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--white);
    border: 1px solid var(--accent-gold);
    border-radius: 50%;
    color: var(--primary-dark);
    font-size: 1.3rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
    z-index: 998;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--primary-dark);
    color: var(--white);
    border-color: #50D890;
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* ==================
   Animations
   ================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ==================
   Responsive Design
   ================== */

/* Large Desktop */
@media (max-width: 1400px) {
    .hero-content {
        left: 6%;
    }
}

/* Tablet */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }

    .nav-container {
        padding: 1rem 1.5rem;
    }

    .hero-title {
        font-size: clamp(2rem, 5vw, 3.5rem);
    }

    .hero-verse-arabic {
        font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    }

    .announcements-wrapper,
    .imam-card {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

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

    .prayer-times-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .facilities-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .imam-content {
        padding: 3rem 2rem;
    }

    .prayer-countdown {
        padding: 1.15rem 1.75rem;
        gap: 1.15rem;
    }

    .countdown-icon {
        width: 45px;
        height: 45px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --spacing-lg: 3rem;
        --spacing-xl: 4rem;
    }

    .nav-menu {
        position: fixed;
        top: 72px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 72px);
        background: rgba(255, 255, 255, 0.99);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        padding: 3rem 2rem;
        gap: 2rem;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
    }

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

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .hero-content {
        left: 5%;
        width: 90%;
    }

    .hero-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
        margin-bottom: 1.5rem;
    }

    .hero-verse-arabic {
        font-size: clamp(1.1rem, 4vw, 1.4rem);
        margin-bottom: 1rem;
    }

    .hero-verse-urdu {
        font-size: clamp(0.95rem, 3.5vw, 1.2rem);
    }

    .hero-verse-english {
        font-size: clamp(0.9rem, 3vw, 1.05rem);
    }

    .hero-dots {
        bottom: 7.5rem;
        /* Moved up to clear countdown */
        left: 50%;
        transform: translateX(-50%);
        right: auto;
        padding: 0.75rem;
    }

    .prayer-countdown {
        bottom: 2rem;
        left: 50%;
        width: 90%;
        /* Ensure it fits on small screens */
        justify-content: center;
        right: auto;
        transform: translateX(-50%);
        padding: 1rem;
        gap: 1rem;
    }

    /* Move WhatsApp to Left on Mobile too */
    .whatsapp-float {
        left: 20px;
        right: auto;
        bottom: 20px;
    }

    .countdown-icon {
        width: 42px;
        height: 42px;
        font-size: 1.3rem;
    }

    .countdown-label {
        font-size: 0.75rem;
    }

    .countdown-prayer {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2.5rem;
    }

    .announcements-wrapper {
        gap: 2rem;
    }

    .prayer-times-grid,
    .facilities-grid,
    .admin-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 54px;
        height: 54px;
        font-size: 1.7rem;
    }

    .scroll-top {
        bottom: 85px;
        right: 20px;
        width: 44px;
        height: 44px;
    }

    .hero-nav-btn {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }

    .announcement-item {
        flex-direction: column;
        gap: 1rem;
        padding-left: 1.5rem;
    }

    .imam-specialties ul {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        padding: 2rem 1.5rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero-placeholder::before {
        font-size: clamp(4rem, 15vw, 8rem);
    }

    .hero-content {
        left: 4%;
    }

    .prayer-card,
    .facility-card,
    .admin-card {
        padding: 2rem 1.5rem;
    }

    .navbar {
        width: 95%;
    }

    .nav-container {
        padding: 0.75rem 1.5rem;
    }
}