/* ========================================
   Greenwich Madina Trust
   Design: "Sacred Serenity"
   Refined elegance meets Islamic geometric tradition
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:ital,opsz,wght@0,6..96,400;0,6..96,500;0,6..96,600;0,6..96,700;1,6..96,400&family=Source+Sans+3:wght@300;400;500;600&family=Amiri:wght@400;700&display=swap');

/* ========== CSS VARIABLES ========== */
:root {
    /* Sacred Palette */
    --emerald: #0D5C4D;
    --emerald-deep: #083D33;
    --emerald-light: #1A7A67;
    --gold: #C4A962;
    --gold-bright: #D4BE7A;
    --gold-muted: #A08A4B;
    --cream: #FAF6F0;
    --cream-warm: #F5EFE6;
    --ivory: #FFFEF9;
    --charcoal: #2A2A2A;
    --slate: #4A4A4A;
    --stone: #7A7A7A;

    /* Semantic */
    --draft-bg: #FEF3C7;
    --draft-border: #D97706;
    --placeholder-bg: linear-gradient(135deg, #E8E4DC 0%, #D8D4CC 100%);

    /* Typography */
    --font-display: 'Bodoni Moda', 'Didot', 'Times New Roman', serif;
    --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-arabic: 'Amiri', serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2.5rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    --space-4xl: 8rem;

    /* Shadows */
    --shadow-soft: 0 4px 24px rgba(13, 92, 77, 0.08);
    --shadow-medium: 0 8px 40px rgba(13, 92, 77, 0.12);
    --shadow-elevated: 0 20px 60px rgba(13, 92, 77, 0.15);
    --shadow-gold: 0 4px 30px rgba(196, 169, 98, 0.3);

    /* Transitions */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration-fast: 250ms;
    --duration-normal: 500ms;
    --duration-slow: 800ms;

    /* Layout */
    --container-max: 1200px;
    --container-narrow: 800px;
    --header-height: 80px;
}

/* ========== RESET ========== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.75;
    color: var(--charcoal);
    background-color: var(--cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--cream-warm);
}

::-webkit-scrollbar-thumb {
    background: var(--emerald);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--emerald-light);
}

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

a {
    color: var(--emerald);
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-out-expo);
}

a:hover {
    color: var(--gold-muted);
}

ul, ol {
    list-style: none;
}

address {
    font-style: normal;
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.15;
    color: var(--charcoal);
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.75rem, 6vw, 4.5rem);
    font-weight: 400;
    letter-spacing: -0.03em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
}

p {
    max-width: 60ch;
}

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

.text-emerald {
    color: var(--emerald);
}

/* ========== LAYOUT ========== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.container-narrow {
    max-width: var(--container-narrow);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* ========== DECORATIVE ELEMENTS ========== */

/* 8-Pointed Star SVG Pattern */
.star-pattern {
    position: absolute;
    pointer-events: none;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cpath fill='%230D5C4D' d='M40 0l8.66 15.36L65.36 14.64 64.64 31.34 80 40l-15.36 8.66 1.36 16.7-16.7-1.36L40 80l-8.66-15.36-16.7 1.36 1.36-16.7L0 40l15.36-8.66-1.36-16.7 16.7 1.36L40 0z'/%3E%3C/svg%3E");
    background-size: 80px 80px;
}

/* Geometric Border Line */
.geo-line {
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--gold) 20%,
        var(--gold) 80%,
        transparent 100%
    );
    margin: var(--space-2xl) 0;
}

/* Diamond Separator */
.diamond-sep {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    margin: var(--space-xl) 0;
}

.diamond-sep::before,
.diamond-sep::after {
    content: '';
    height: 1px;
    width: 60px;
    background: var(--gold);
}

.diamond-sep span {
    width: 8px;
    height: 8px;
    background: var(--gold);
    transform: rotate(45deg);
}

/* Section Styling */
.section {
    padding: var(--space-4xl) 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-header h2 {
    margin-bottom: var(--space-sm);
}

.section-header p {
    color: var(--stone);
    font-size: 1.1rem;
    max-width: 50ch;
    margin: 0 auto;
}

.section-header .overline {
    display: block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-muted);
    margin-bottom: var(--space-sm);
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: 1rem 2rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.2) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform var(--duration-slow) var(--ease-out-expo);
}

.btn:hover::after {
    transform: translateX(100%);
}

.btn-primary {
    background: var(--emerald);
    color: var(--ivory);
    border-color: var(--emerald);
}

.btn-primary:hover {
    background: var(--emerald-deep);
    border-color: var(--emerald-deep);
    color: var(--ivory);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-gold {
    background: var(--gold);
    color: var(--charcoal);
    border-color: var(--gold);
}

.btn-gold:hover {
    background: var(--gold-bright);
    border-color: var(--gold-bright);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

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

.btn-outline:hover {
    background: var(--emerald);
    color: var(--ivory);
    transform: translateY(-2px);
}

.btn-outline-light {
    background: transparent;
    color: var(--ivory);
    border-color: rgba(255,255,255,0.4);
}

.btn-outline-light:hover {
    background: var(--ivory);
    color: var(--emerald);
    border-color: var(--ivory);
}

.btn-secondary {
    background: var(--charcoal);
    color: var(--ivory);
    border-color: var(--charcoal);
}

.btn-secondary:hover {
    background: var(--slate);
    border-color: var(--slate);
    color: var(--ivory);
    transform: translateY(-2px);
}

.button-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-sm {
    padding: 0.6rem 1.25rem;
    font-size: 0.75rem;
}

.btn-lg {
    padding: 1.25rem 2.5rem;
    font-size: 0.9rem;
}

.badge-coming-soon {
    display: inline-block;
    background: var(--gold);
    color: var(--charcoal);
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    vertical-align: middle;
    margin-left: 0.5rem;
}

/* ========== HEADER ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--cream);
    transition: all var(--duration-normal) var(--ease-out-expo);
}

.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--gold) 15%,
        var(--gold) 85%,
        transparent 100%
    );
}

.header.scrolled {
    background: rgba(250, 246, 240, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-soft);
}

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

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    text-decoration: none;
}

.logo-symbol {
    height: 55px;
    width: auto;
    /* Blend out white background */
    mix-blend-mode: multiply;
    transition: all var(--duration-normal) var(--ease-out-expo);
}

.logo:hover .logo-symbol {
    transform: scale(1.05) rotate(3deg);
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--emerald);
    letter-spacing: 0.02em;
    transition: color var(--duration-fast) var(--ease-out-expo);
}

.logo:hover .logo-text {
    color: var(--gold-muted);
}

/* Navigation */
.nav-list {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.nav-link {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--slate);
    padding: var(--space-xs) 0;
    position: relative;
    transition: color var(--duration-fast) var(--ease-out-expo);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width var(--duration-normal) var(--ease-out-expo);
}

.nav-link:hover,
.nav-link.active {
    color: var(--emerald);
}

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

/* Nav Social Links - hidden on desktop, shown in mobile menu */
.nav-social {
    display: none;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
    width: 44px;
    height: 44px;
    position: relative;
}

.hamburger {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--emerald);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: background var(--duration-fast);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--emerald);
    left: 0;
    transition: transform var(--duration-normal) var(--ease-out-expo);
}

.hamburger::before { top: -7px; }
.hamburger::after { bottom: -7px; }

/* Responsive Header */
@media (max-width: 960px) {
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--cream);
        padding: var(--space-xl);
        transform: translateY(-20px);
        opacity: 0;
        visibility: hidden;
        transition: all var(--duration-normal) var(--ease-out-expo);
        box-shadow: var(--shadow-medium);
        border-top: 1px solid var(--cream-warm);
    }

    .nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-list {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .nav-link {
        font-size: 0.95rem;
        padding: var(--space-sm) 0;
    }

    /* Social links in mobile menu */
    .nav-social {
        display: flex;
        justify-content: center;
        gap: var(--space-md);
        padding-top: var(--space-md);
        margin-top: var(--space-md);
        border-top: 1px solid var(--cream-warm);
    }

    .nav-social a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: var(--emerald);
        color: white;
        transition: all var(--duration-fast) var(--ease-out-expo);
    }

    .nav-social a:hover {
        background: var(--emerald-light);
        transform: scale(1.1);
    }

    .nav-social svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 600px) {
    .logo-symbol {
        height: 36px;
    }

    .logo-text {
        font-size: 1.25rem;
    }
}

/* ========== PRAYER TIMES BANNER ========== */
.prayer-banner {
    background: linear-gradient(135deg, var(--emerald-deep) 0%, var(--emerald) 50%, var(--emerald-light) 100%);
    padding: var(--space-md) 0;
    margin-top: var(--header-height);
    position: relative;
    overflow: hidden;
}

/* When hero-combined follows prayer-banner, remove its margin-top */
.prayer-banner + .hero-combined {
    margin-top: 0;
}

/* Event Notification Bar after hero-combined */
.event-notification-bar + .hero-combined {
    margin-top: 0;
}

/* ========== EVENT NOTIFICATION BAR ========== */
.event-notification-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    padding: var(--space-sm) var(--space-lg);
    background: linear-gradient(90deg, var(--gold) 0%, var(--gold-bright) 100%);
    color: var(--charcoal);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all var(--duration-fast) var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.event-notification-bar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.2) 50%, transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.event-notification-bar:hover::before {
    transform: translateX(100%);
}

.event-notification-bar:hover {
    background: linear-gradient(90deg, var(--gold-bright) 0%, var(--gold) 100%);
}

.event-notif-badge {
    display: inline-block;
    background: var(--emerald);
    color: var(--ivory);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.2em 0.6em;
    border-radius: 3px;
}

.event-notif-text {
    position: relative;
}

.event-notif-text strong {
    font-weight: 600;
}

.event-notif-arrow {
    display: flex;
    align-items: center;
    opacity: 0.7;
    transition: transform var(--duration-fast) ease, opacity var(--duration-fast) ease;
}

.event-notification-bar:hover .event-notif-arrow {
    transform: translate(3px, -3px);
    opacity: 1;
}

.prayer-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cpath fill='%23ffffff' fill-opacity='0.03' d='M30 0l8.66 15.36L55.36 14.64 54.64 31.34 70 40l-15.36 8.66 1.36 16.7-16.7-1.36L30 80l-8.66-15.36-16.7 1.36 1.36-16.7L-10 40l15.36-8.66-1.36-16.7 16.7 1.36L30 0z'/%3E%3C/svg%3E");
    background-size: 60px 60px;
    opacity: 0.5;
}

.prayer-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-xl);
    position: relative;
    z-index: 1;
}

.prayer-banner-left {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.juma-times {
    display: flex;
    align-items: baseline;
    gap: var(--space-sm);
}

.juma-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
}

.juma-time {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--ivory);
}

.prayer-banner-date {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.8rem;
}

.hijri-date {
    font-family: var(--font-arabic);
    color: var(--gold-bright);
}

.gregorian-date {
    color: rgba(255,255,255,0.7);
}

.prayer-times-quick {
    display: flex;
    gap: var(--space-lg);
    align-items: start;
}

.prayer-times-labels {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding-right: var(--space-sm);
    border-right: 1px solid rgba(255,255,255,0.2);
    margin-right: var(--space-sm);
}

.row-label {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
}

.row-label:first-child {
    height: 1.2rem; /* Match prayer name height */
    line-height: 1.2rem;
}

.row-label:nth-child(2) {
    height: 1.5rem; /* Match jamaat time height */
    line-height: 1.5rem;
}

.row-label:nth-child(3) {
    height: 1.2rem; /* Match begins time height */
    line-height: 1.2rem;
    color: rgba(255,255,255,0.75);
}

.prayer-time-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 55px;
}

.prayer-name {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    height: 1.2rem;
    line-height: 1.2rem;
}

.jamaat-time {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--ivory);
    height: 1.5rem;
    line-height: 1.5rem;
}

.begins-time {
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255,255,255,0.75);
    height: 1.2rem;
    line-height: 1.2rem;
}

.prayer-banner-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
}

.social-icons-banner {
    display: flex;
    gap: var(--space-xs);
}

.social-icon-banner {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    background: rgba(255, 255, 255, 0.15);
    transition: all var(--duration-fast) var(--ease-out-expo);
}

.social-icon-banner:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.social-icon-banner svg {
    width: 16px;
    height: 16px;
}

@media (max-width: 900px) {
    .prayer-banner-content {
        flex-wrap: wrap;
        justify-content: center;
    }

    .prayer-banner-left {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

@media (max-width: 600px) {
    /* Keep logo on one line */
    .logo-symbol {
        height: 28px;
    }

    .logo-text {
        font-size: 1.1rem;
        white-space: nowrap;
    }

    .prayer-banner {
        padding: var(--space-sm) 0;
    }

    .prayer-banner-content {
        gap: var(--space-sm);
        justify-content: center;
    }

    /* Jummah left, dates right - same row */
    .prayer-banner-left {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .juma-times {
        font-size: 0.9rem;
    }

    .juma-time {
        font-size: 1.1rem;
    }

    .prayer-banner-date {
        font-size: 0.7rem;
        text-align: right;
        flex-direction: column;
        align-items: flex-end;
        gap: 0;
    }

    .prayer-times-quick {
        width: 100%;
        justify-content: flex-start;
        gap: 2px;
    }

    /* Keep labels visible on mobile - compact styling */
    .prayer-times-labels {
        display: flex;
        padding-right: 4px;
        margin-right: 4px;
        border-right: 1px solid rgba(255,255,255,0.15);
        min-width: 42px;
    }

    .row-label {
        font-size: 0.45rem;
        letter-spacing: 0.05em;
    }

    .row-label:first-child {
        height: 0.9rem;
        line-height: 0.9rem;
    }

    .row-label:nth-child(2) {
        height: 1rem;
        line-height: 1rem;
    }

    .row-label:nth-child(3) {
        height: 0.85rem;
        line-height: 0.85rem;
    }

    .prayer-time-item {
        min-width: auto;
        flex: 1;
        flex-direction: column;
        gap: 1px;
    }

    .prayer-name {
        font-size: 0.5rem;
        margin-bottom: 0;
        height: 0.9rem;
        line-height: 0.9rem;
    }

    .jamaat-time {
        font-size: 0.75rem;
        height: 1rem;
        line-height: 1rem;
    }

    .begins-time {
        font-size: 0.65rem;
        opacity: 0.85;
        height: 0.85rem;
        line-height: 0.85rem;
    }

    /* Hide Full Timetable button and social icons on mobile */
    .prayer-banner-right {
        display: none;
    }

    .social-icons-banner {
        display: none;
    }

    /* Hide Full Timetable button on pages where it's not wrapped in .prayer-banner-right */
    .prayer-banner-content > .btn {
        display: none;
    }
}

@media (max-width: 480px) {
    .juma-label {
        font-size: 0.6rem;
    }

    .juma-time {
        font-size: 0.95rem;
    }

    .row-label {
        font-size: 0.4rem;
    }

    .prayer-times-labels {
        min-width: 38px;
    }

    .prayer-name {
        font-size: 0.45rem;
    }

    .jamaat-time {
        font-size: 0.7rem;
    }

    .begins-time {
        font-size: 0.6rem;
    }

    /* Tighter banner on small screens */
    .prayer-banner {
        padding: var(--space-xs) 0;
    }

    .prayer-banner-content {
        gap: var(--space-xs);
    }
}

/* ========== HERO COMBINED SECTION ========== */
.hero-combined {
    padding: var(--space-3xl) 0;
    margin-top: var(--header-height);
    background:
        radial-gradient(circle at 20% 80%, rgba(196, 169, 98, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(13, 92, 77, 0.06) 0%, transparent 50%),
        linear-gradient(135deg, var(--cream) 0%, #f5f0e8 50%, var(--cream-warm) 100%);
    position: relative;
    overflow: hidden;
}

/* Decorative geometric pattern overlay */
.hero-combined::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40 0L40 80M0 40L80 40M20 20L60 60M60 20L20 60' stroke='%23c4a962' stroke-opacity='0.04' stroke-width='1' fill='none'/%3E%3Ccircle cx='40' cy='40' r='15' stroke='%23c4a962' stroke-opacity='0.03' fill='none'/%3E%3C/svg%3E");
    background-size: 80px 80px;
    animation: subtleFloat 30s ease-in-out infinite;
    pointer-events: none;
}

@keyframes subtleFloat {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(10px, -10px); }
}


/* Decorative accent line */
.hero-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: var(--space-2xl);
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-welcome {
    animation: fadeInUp 0.8s var(--ease-out-expo) both;
    position: relative;
}

/* Decorative vertical accent */
.hero-welcome::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--gold), var(--emerald), transparent);
    border-radius: 3px;
    opacity: 0.6;
}

.hero-welcome .welcome-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 400;
    color: var(--charcoal);
    line-height: 1.2;
    margin-bottom: var(--space-md);
    position: relative;
}

/* Gold accent under title */
.hero-welcome .welcome-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    margin-top: var(--space-md);
    border-radius: 2px;
}

.hero-welcome .welcome-mosque-name {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--gold-muted);
    font-weight: 500;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-md);
}

.hero-welcome .welcome-subtitle {
    font-size: 1.05rem;
    color: var(--slate);
    line-height: 1.75;
    margin-bottom: var(--space-xl);
    max-width: 40ch;
}

.hero-welcome .welcome-buttons {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* Compact Carousel */
.hero-carousel-compact {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(196, 169, 98, 0.1);
    animation: fadeInUp 0.8s 0.2s var(--ease-out-expo) both;
}

/* Decorative corner accents */
.hero-carousel-compact::before,
.hero-carousel-compact::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    border: 2px solid var(--gold);
    opacity: 0.4;
    z-index: 20;
    pointer-events: none;
}

.hero-carousel-compact::before {
    top: 12px;
    left: 12px;
    border-right: none;
    border-bottom: none;
}

.hero-carousel-compact::after {
    bottom: 12px;
    right: 12px;
    border-left: none;
    border-top: none;
}

/* Swiper carousel overrides */
.hero-carousel-compact.swiper {
    width: 100%;
    height: auto;
}

.hero-carousel-compact .swiper-wrapper {
    /* Swiper handles the layout */
}

.hero-carousel-compact .swiper-slide {
    height: auto;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide-compact {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Islamic geometric pattern overlay */
.carousel-slide-compact::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M50 10L90 50L50 90L10 50Z' stroke='%23ffffff' stroke-opacity='0.06' stroke-width='1' fill='none'/%3E%3Cpath d='M50 25L75 50L50 75L25 50Z' stroke='%23ffffff' stroke-opacity='0.04' stroke-width='1' fill='none'/%3E%3Ccircle cx='50' cy='50' r='20' stroke='%23ffffff' stroke-opacity='0.03' fill='none'/%3E%3C/svg%3E");
    background-size: 100px 100px;
    opacity: 0.8;
}

.slide-content-compact {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: var(--space-2xl);
    animation: fadeInUp 0.6s ease-out;
}

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

.slide-badge {
    display: inline-block;
    background: var(--gold);
    color: var(--charcoal);
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: var(--space-lg);
    box-shadow: 0 4px 15px rgba(196, 169, 98, 0.3);
}

.slide-title-compact {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 400;
    color: white;
    margin-bottom: var(--space-md);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.slide-description-compact {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: var(--space-xl);
    line-height: 1.6;
    max-width: 32ch;
    margin-left: auto;
    margin-right: auto;
}

/* Special styling for Quran Shareef slide */
.slide-quran-shareef {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%) !important;
}

/* Special styling for Madrassah slide */
.slide-madrassah {
    background: linear-gradient(135deg, var(--emerald-light) 0%, var(--emerald) 100%);
}

.slide-quran-shareef::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 70%, rgba(196, 169, 98, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(196, 169, 98, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.slide-quran-shareef .slide-badge {
    background: linear-gradient(135deg, var(--gold) 0%, #e6c56c 100%);
    animation: subtlePulse 3s ease-in-out infinite;
}

@keyframes subtlePulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(196, 169, 98, 0.3); }
    50% { box-shadow: 0 4px 25px rgba(196, 169, 98, 0.5); }
}

.slide-quran-shareef .quran-icon {
    display: block;
    margin: 0 auto var(--space-md);
    width: 50px;
    height: 50px;
    opacity: 0.9;
}

.slide-quran-shareef .slide-title-compact {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
}

.slide-time-highlight {
    display: inline-block;
    background: rgba(196, 169, 98, 0.2);
    border: 1px solid rgba(196, 169, 98, 0.4);
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--gold);
    margin-bottom: var(--space-md);
    letter-spacing: 0.05em;
}

.btn-light {
    display: inline-block;
    background: white;
    color: var(--charcoal);
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-light:hover {
    background: var(--gold);
    color: var(--charcoal);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* YouTube Spotlight Slide - Card Layout */
.carousel-slide-youtube {
    overflow: hidden;
    background: linear-gradient(135deg, var(--emerald) 0%, var(--emerald-deep) 100%);
}

.carousel-slide-youtube .youtube-slide-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
    height: 100%;
    gap: var(--space-md);
}

.carousel-slide-youtube .slide-badge {
    flex-shrink: 0;
}

.carousel-slide-youtube .youtube-slide-thumb-wrapper {
    position: relative;
    width: 100%;
    max-width: 480px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.carousel-slide-youtube .youtube-slide-thumb {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.carousel-slide-youtube .youtube-slide-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    background: rgba(255, 0, 0, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.carousel-slide-youtube .youtube-slide-play-btn:hover {
    background: #ff0000;
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 6px 30px rgba(255, 0, 0, 0.4);
}

.carousel-slide-youtube .youtube-slide-play-btn svg {
    width: 28px;
    height: 28px;
    margin-left: 3px;
}

.carousel-slide-youtube .youtube-slide-description {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    text-align: center;
    margin: 0;
}

.carousel-slide-youtube .youtube-slide-title {
    font-family: var(--font-display);
    font-size: clamp(1rem, 2.5vw, 1.35rem);
    font-weight: 400;
    color: var(--ivory);
    text-align: center;
    line-height: 1.3;
    margin: 0;
}

/* YouTube Slide Mobile */
@media (max-width: 600px) {
    .carousel-slide-youtube .youtube-slide-content {
        padding: var(--space-md);
        gap: var(--space-sm);
    }

    .carousel-slide-youtube .youtube-slide-play-btn {
        width: 48px;
        height: 48px;
    }

    .carousel-slide-youtube .youtube-slide-play-btn svg {
        width: 22px;
        height: 22px;
    }

    .carousel-slide-youtube .youtube-slide-description {
        font-size: 0.85rem;
    }

    .carousel-slide-youtube .youtube-slide-title {
        font-size: 0.95rem;
    }

    .carousel-slide-youtube .slide-badge {
        font-size: 0.65rem;
        padding: 4px 10px;
    }
}

/* Swiper Navigation Buttons */
.hero-carousel-compact .swiper-button-prev,
.hero-carousel-compact .swiper-button-next {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.hero-carousel-compact .swiper-button-prev::after,
.hero-carousel-compact .swiper-button-next::after {
    font-size: 14px;
    font-weight: bold;
    color: white;
}

.hero-carousel-compact .swiper-button-prev:hover,
.hero-carousel-compact .swiper-button-next:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Swiper Pagination (dots) */
.hero-carousel-compact .swiper-pagination {
    bottom: var(--space-md);
}

.hero-carousel-compact .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.4);
    opacity: 1;
    transition: all 0.3s ease;
}

.hero-carousel-compact .swiper-pagination-bullet:hover {
    background: rgba(255, 255, 255, 0.7);
}

.hero-carousel-compact .swiper-pagination-bullet-active {
    background: white;
    transform: scale(1.2);
}

/* Hero Responsive */
@media (max-width: 1100px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 960px) {
    .hero-combined {
        padding: var(--space-2xl) 0;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

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

    .hero-welcome::before {
        display: none;
    }

    .hero-welcome .welcome-title::after {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-welcome .welcome-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-welcome .welcome-buttons {
        justify-content: center;
    }

    .hero-carousel-compact .swiper-slide {
        min-height: 420px;
    }

    /* Compact slide content for mobile - ensure all content fits */
    .slide-content-compact {
        padding: var(--space-md);
    }

    .slide-badge {
        margin-bottom: var(--space-xs);
        font-size: 0.65rem;
        padding: 0.3rem 0.8rem;
    }

    .slide-title-compact {
        margin-bottom: var(--space-xs);
    }

    .slide-time-highlight {
        margin-bottom: var(--space-xs);
        padding: 0.35rem 0.9rem;
        font-size: 0.85rem;
    }

    .slide-description-compact {
        margin-bottom: var(--space-sm);
        font-size: 0.875rem;
        line-height: 1.4;
    }

    .slide-content-compact .btn {
        padding: 0.6rem 1.25rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .hero-carousel-compact .swiper-slide {
        min-height: 400px;
    }

    .hero-carousel-compact .swiper-button-prev,
    .hero-carousel-compact .swiper-button-next {
        display: none;
    }

    .slide-content-compact {
        padding: var(--space-sm) var(--space-md);
    }

    .slide-badge {
        margin-bottom: 6px;
        font-size: 0.6rem;
    }

    .slide-title-compact {
        font-size: clamp(1.35rem, 5vw, 1.6rem);
        margin-bottom: 6px;
    }

    .slide-time-highlight {
        margin-bottom: 6px;
        padding: 0.3rem 0.75rem;
        font-size: 0.8rem;
    }

    .slide-description-compact {
        margin-bottom: 10px;
        font-size: 0.8rem;
        line-height: 1.35;
    }

    .slide-content-compact .btn {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }

    .hero-carousel-compact::before,
    .hero-carousel-compact::after {
        width: 25px;
        height: 25px;
    }
}

/* Very small screens - ensure content always fits */
@media (max-width: 360px) {
    .hero-carousel-compact .swiper-slide {
        min-height: 380px;
    }

    .slide-content-compact {
        padding: var(--space-xs) var(--space-sm);
    }

    .slide-title-compact {
        font-size: 1.25rem;
    }

    .slide-time-highlight {
        font-size: 0.75rem;
        padding: 0.25rem 0.6rem;
    }

    .slide-description-compact {
        font-size: 0.75rem;
        margin-bottom: 8px;
    }

    .slide-content-compact .btn {
        padding: 0.45rem 0.9rem;
        font-size: 0.7rem;
    }
}

/* ========== LIVE STREAM SECTION ========== */
.live-stream-section {
    padding: var(--space-3xl) 0;
    padding-top: calc(var(--space-3xl) + 60px);
    background: var(--emerald-deep);
    color: var(--ivory);
}

.live-stream-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-3xl);
    align-items: center;
}

.live-stream-info h2 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    margin-bottom: var(--space-md);
    color: var(--ivory);
}

.live-stream-info p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

@media (max-width: 800px) {
    .live-stream-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .live-stream-info {
        text-align: center;
    }
}

/* ========== WELCOME SECTION ========== */
.welcome-section {
    padding: var(--space-3xl) 0;
    background: var(--cream);
}

.welcome-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-3xl);
    align-items: center;
}

.welcome-text {
    animation: fadeInUp 1s var(--ease-out-expo) both;
}

.welcome-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 400;
    color: var(--charcoal);
    line-height: 1.2;
    margin-bottom: var(--space-lg);
}

.welcome-subtitle {
    font-size: 1.15rem;
    color: var(--slate);
    line-height: 1.7;
    margin-bottom: var(--space-xl);
}

.welcome-buttons {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* Live Stream Container */
.live-stream-container {
    animation: fadeInUp 1s 0.2s var(--ease-out-expo) both;
}

.live-stream-wrapper {
    position: relative;
    background: var(--charcoal);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.live-stream-wrapper iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
}

.live-indicator {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    z-index: 10;
    display: none;
    align-items: center;
    gap: 6px;
    background: #dc2626;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.live-indicator.active {
    display: flex;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.stream-caption {
    text-align: center;
    margin-top: var(--space-md);
}

.channel-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--gold);
    text-decoration: none;
    transition: color 0.2s ease;
}

.channel-link:hover {
    color: var(--gold-light);
}

.channel-link svg {
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.channel-link:hover svg {
    opacity: 1;
}

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

@media (max-width: 960px) {
    .welcome-section {
        padding: var(--space-2xl) 0;
    }

    .welcome-content {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

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

    .welcome-buttons {
        justify-content: center;
    }
}

/* ========== ANNOUNCEMENT ========== */
.announcement {
    padding: var(--space-2xl) 0;
    background: var(--cream-warm);
}

.announcement-card {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    padding: var(--space-xl) var(--space-2xl);
    background: var(--ivory);
    border: 1px solid rgba(196, 169, 98, 0.3);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.announcement-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--gold) 0%, var(--gold-muted) 100%);
}

.announcement-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cream);
    border: 2px solid var(--gold);
    border-radius: 50%;
}

.announcement-icon svg {
    width: 32px;
    height: 32px;
    color: var(--emerald);
}

.announcement-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
    color: var(--charcoal);
}

.announcement-times {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--emerald);
    margin-bottom: var(--space-xs);
}

.announcement-note {
    font-size: 0.9rem;
    color: var(--stone);
}

@media (max-width: 600px) {
    .announcement-card {
        flex-direction: column;
        text-align: center;
        padding: var(--space-xl);
    }

    .announcement-card::before {
        width: 100%;
        height: 4px;
        bottom: auto;
    }
}

/* ========== PRAYER TIMES GRID ========== */
.prayer-times-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--space-lg);
}

.prayer-card {
    background: var(--ivory);
    padding: var(--space-xl);
    text-align: center;
    border: 1px solid rgba(196, 169, 98, 0.2);
    transition: all var(--duration-normal) var(--ease-out-expo);
}

.prayer-card:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow-soft);
    transform: translateY(-2px);
}

.prayer-card-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--emerald) 0%, var(--emerald-deep) 100%);
    border: 2px solid var(--gold);
    border-radius: 50%;
}

.prayer-card-icon svg {
    width: 32px;
    height: 32px;
    color: var(--gold);
}

.prayer-card h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--charcoal);
    margin-bottom: var(--space-sm);
}

.prayer-card-time {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--emerald);
    margin-bottom: var(--space-xs);
}

.prayer-card-note {
    font-size: 0.85rem;
    color: var(--stone);
    margin: 0;
}

@media (max-width: 1000px) {
    .prayer-times-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .prayer-times-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .prayer-card {
        padding: var(--space-lg);
    }

    .prayer-card-icon {
        width: 48px;
        height: 48px;
    }

    .prayer-card-icon svg {
        width: 24px;
        height: 24px;
    }

    .prayer-card-time {
        font-size: 1.25rem;
    }
}

/* ========== EDUCATION & PROGRAMS SECTION ========== */
.education-section {
    padding: var(--space-4xl) 0;
    background: linear-gradient(180deg, var(--cream) 0%, var(--cream-warm) 100%);
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    align-items: stretch;
}

.education-card {
    display: block;
    background: var(--ivory);
    border: 1px solid transparent;
    padding: var(--space-2xl) var(--space-xl);
    text-align: center;
    text-decoration: none;
    transition: all var(--duration-normal) var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.education-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--gold);
    opacity: 0;
    transition: all var(--duration-normal) var(--ease-out-expo);
}

.education-card:hover {
    border-color: rgba(196, 169, 98, 0.3);
    box-shadow: var(--shadow-medium);
    transform: translateY(-4px);
}

.education-card:hover::before {
    opacity: 1;
    width: 60px;
}

.education-card.featured {
    display: flex;
    gap: var(--space-xl);
    padding: var(--space-2xl);
    background: linear-gradient(135deg, var(--ivory) 0%, var(--cream) 100%);
    border: 2px solid var(--gold);
    height: 100%;
}

.education-card-icon {
    width: 80px;
    height: 80px;
    min-width: 80px;
    margin: 0 auto var(--space-lg);
    border: 2px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--emerald) 0%, var(--emerald-deep) 100%);
    transition: all var(--duration-normal) var(--ease-out-expo);
}

.education-card-icon svg {
    width: 36px;
    height: 36px;
    color: var(--gold);
    transition: color var(--duration-normal) var(--ease-out-expo);
}

.education-card:hover .education-card-icon {
    background: var(--gold);
    border-color: var(--gold);
}

.education-card:hover .education-card-icon svg {
    color: var(--ivory);
}

.education-card-icon.small {
    width: 48px;
    height: 48px;
    min-width: 48px;
    margin-bottom: var(--space-md);
    background: var(--cream);
    border-color: rgba(196, 169, 98, 0.4);
}

.education-card-icon.small svg {
    width: 24px;
    height: 24px;
    color: var(--emerald);
}

.education-card-content {
    flex: 1;
}

.education-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--emerald-deep);
    margin-bottom: var(--space-xs);
}

.education-card h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--charcoal);
    margin-bottom: var(--space-xs);
}

.education-schedule {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gold-muted);
    margin-bottom: var(--space-sm);
}

.education-card p {
    color: var(--slate);
    line-height: 1.6;
    margin-bottom: var(--space-sm);
}

.education-list {
    list-style: none;
    margin: var(--space-md) 0 var(--space-lg);
    padding: 0;
}

.education-list li {
    position: relative;
    padding-left: var(--space-lg);
    margin-bottom: var(--space-sm);
    color: var(--slate);
    font-size: 0.95rem;
}

.education-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
}

.education-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.education-sidebar .education-card {
    padding: var(--space-lg);
}

.education-sidebar .education-card p:last-child {
    margin-bottom: 0;
}

@media (max-width: 900px) {
    .education-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* Beliefs & Traditions Banner */
.beliefs-banner {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    margin-top: var(--space-xl);
    padding: var(--space-lg) var(--space-xl);
    background: linear-gradient(135deg, var(--emerald-deep) 0%, var(--emerald) 100%);
    border-radius: 8px;
    text-decoration: none;
    color: white;
    transition: all var(--duration-normal) var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.beliefs-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0l8.66 15.36L55.36 14.64 54.64 31.34 70 40l-15.36 8.66 1.36 16.7-16.7-1.36L30 80l-8.66-15.36-16.7 1.36 1.36-16.7L-10 40l15.36-8.66-1.36-16.7 16.7 1.36L30 0z' fill='%23ffffff' fill-opacity='0.03'/%3E%3C/svg%3E");
    background-size: 60px 60px;
}

.beliefs-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(13, 92, 77, 0.3);
}

.beliefs-banner-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.beliefs-banner-icon svg {
    width: 28px;
    height: 28px;
    color: var(--gold-bright);
}

.beliefs-banner-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.beliefs-banner-title {
    display: block;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.beliefs-banner-text {
    display: block;
    font-size: 0.9rem;
    opacity: 0.9;
}

.beliefs-banner-arrow {
    position: relative;
    z-index: 1;
    opacity: 0.7;
    transition: all var(--duration-fast) ease;
}

.beliefs-banner:hover .beliefs-banner-arrow {
    opacity: 1;
    transform: translateX(4px);
}

@media (max-width: 600px) {
    .beliefs-banner {
        flex-direction: column;
        text-align: center;
        padding: var(--space-lg);
    }

    .beliefs-banner-arrow {
        display: none;
    }
}

/* ========== SERVICES / QUICK LINKS ========== */
.quick-links {
    padding: var(--space-4xl) 0;
    background: var(--cream);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    max-width: 960px;
    margin: 0 auto;
}

.service-card {
    background: var(--ivory);
    padding: var(--space-2xl) var(--space-xl);
    text-align: center;
    border: 1px solid transparent;
    transition: all var(--duration-normal) var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--gold);
    opacity: 0;
    transition: all var(--duration-normal) var(--ease-out-expo);
}

.service-card:hover {
    border-color: rgba(196, 169, 98, 0.3);
    box-shadow: var(--shadow-medium);
    transform: translateY(-4px);
}

.service-card:hover::before {
    opacity: 1;
    width: 60px;
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-lg);
    border: 2px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--duration-normal) var(--ease-out-expo);
}

.service-icon svg {
    width: 36px;
    height: 36px;
    color: var(--gold);
    transition: all var(--duration-normal) var(--ease-out-expo);
}

.service-card:hover .service-icon {
    background: var(--gold);
    border-color: var(--gold);
}

.service-card:hover .service-icon svg {
    color: var(--ivory);
}

.service-card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: var(--space-sm);
    color: var(--charcoal);
}

.service-card p {
    font-size: 0.9rem;
    color: var(--stone);
    margin: 0 auto;
}

@media (max-width: 960px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* ========== VIDEOS SECTION ========== */
.latest-videos {
    padding: var(--space-4xl) 0;
    background: var(--emerald-deep);
    position: relative;
    overflow: hidden;
}

.latest-videos::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cpath fill='%23ffffff' fill-opacity='0.02' d='M40 0l10 17.32L67.32 16l-1.32 20L86.6 40 66 44l1.32 20L50 62.68 40 80l-10-17.32L12.68 64l1.32-20L-6.6 40 14 36l-1.32-20L30 17.32 40 0z'/%3E%3C/svg%3E");
    background-size: 80px 80px;
}

.latest-videos .section-header h2,
.latest-videos .section-header p {
    color: var(--ivory);
}

.latest-videos .section-header .overline {
    color: var(--gold-bright);
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    position: relative;
    z-index: 1;
}

.video-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    overflow: hidden;
    transition: all var(--duration-normal) var(--ease-out-expo);
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    border-color: rgba(196, 169, 98, 0.4);
}

.video-thumbnail {
    aspect-ratio: 16/9;
    background: var(--placeholder-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.placeholder-thumbnail {
    background: linear-gradient(135deg, #3a3a3a 0%, #2a2a2a 100%);
}

.placeholder-thumbnail::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cpath fill='%23ffffff' fill-opacity='0.05' d='M30 0l8 14-14-1 1 17-15-8 8 15-17-1 1 14L-8 42l16 8-8 15 17-1-1 14 14-8-8 15 17-1-1-14 15 8-8-15 17 1-1-14-15 8 8-15-17 1 1-17-14 8z'/%3E%3C/svg%3E");
    background-size: 60px 60px;
}

.placeholder-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    background: rgba(0,0,0,0.5);
    padding: var(--space-xs) var(--space-md);
    position: relative;
    z-index: 1;
}

.play-button {
    position: absolute;
    width: 60px;
    height: 60px;
    background: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.9;
    transition: all var(--duration-normal) var(--ease-out-expo);
}

.play-button::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 18px solid var(--charcoal);
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    margin-left: 4px;
}

.video-card:hover .play-button {
    transform: scale(1.1);
    opacity: 1;
}

.video-info {
    padding: var(--space-lg);
}

.video-info h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--ivory);
    margin-bottom: var(--space-xs);
}

.video-meta {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

.section-cta {
    text-align: center;
    margin-top: var(--space-2xl);
    position: relative;
    z-index: 1;
}

@media (max-width: 960px) {
    .videos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* ========== SOCIAL FEED ========== */
.social-feed {
    padding: var(--space-4xl) 0;
    background: var(--cream);
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
}

.social-card {
    background: var(--ivory);
    border: 1px solid rgba(0,0,0,0.05);
    padding: var(--space-xl);
    transition: all var(--duration-normal) var(--ease-out-expo);
}

.social-card:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-2px);
}

.social-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: white;
}

.social-icon.facebook {
    background: #1877f2;
}

.social-icon.instagram {
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-label {
    font-weight: 600;
    color: var(--charcoal);
}

.social-content {
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: var(--space-lg);
}

.placeholder-content {
    background: var(--cream-warm);
    padding: var(--space-xl);
    border: 1px dashed var(--stone);
}

.placeholder-content .placeholder-label {
    display: block;
    margin-bottom: var(--space-sm);
    background: none;
    color: var(--stone);
}

.placeholder-content p {
    font-size: 0.9rem;
    color: var(--stone);
    margin: 0 auto;
}

.social-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--emerald);
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
}

.social-link:hover {
    color: var(--gold-muted);
}

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

/* ========== LOCATION ========== */
.location {
    padding: var(--space-4xl) 0;
    background: var(--cream-warm);
}

.location-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-3xl);
    align-items: center;
}

.location-info h2 {
    margin-bottom: var(--space-xl);
}

.location-info address {
    margin-bottom: var(--space-lg);
    line-height: 1.8;
}

.location-info address p {
    margin-bottom: var(--space-xs);
}

.location-email {
    margin-bottom: var(--space-xl);
}

.location-email a {
    font-weight: 500;
}

.location-map {
    background: var(--ivory);
    padding: var(--space-sm);
    box-shadow: var(--shadow-soft);
}

.location-map iframe {
    display: block;
}

@media (max-width: 800px) {
    .location-content {
        grid-template-columns: 1fr;
    }

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

/* ========== FOOTER ========== */
.footer {
    background: var(--charcoal);
    color: rgba(255,255,255,0.7);
    padding: var(--space-4xl) 0 var(--space-xl);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-3xl);
    margin-bottom: var(--space-3xl);
}

.footer-section h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--ivory);
    margin-bottom: var(--space-lg);
}

.footer-section p {
    max-width: 35ch;
    line-height: 1.7;
}

.charity-number {
    font-size: 0.85rem;
    color: var(--gold);
    margin-top: var(--space-md);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    transition: color var(--duration-fast) var(--ease-out-expo);
}

.footer-links a:hover {
    color: var(--gold);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.social-links a {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
}

.social-links a:hover {
    color: var(--gold);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85rem;
}

.footer-bottom a {
    color: rgba(255,255,255,0.5);
}

.footer-bottom a:hover {
    color: var(--gold);
}

@media (max-width: 800px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-section p {
        max-width: 100%;
    }

    .footer-links,
    .social-links {
        align-items: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
}

/* ========== PAGE HEADERS ========== */
.page-header {
    padding: var(--space-4xl) 0 var(--space-3xl);
    margin-top: var(--header-height);
    background: var(--cream-warm);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cpath fill='%230D5C4D' fill-opacity='0.02' d='M50 0l12.5 22.17L87.5 21.13l-.87 25.04L112.5 50l-25.87 3.83.87 25.04-24.63-1.04L50 100l-12.5-22.17-24.63 1.04.87-25.04L-12.5 50l25.87-3.83-.87-25.04 24.63 1.04L50 0z'/%3E%3C/svg%3E");
    background-size: 100px 100px;
}

.page-header h1 {
    position: relative;
    margin-bottom: var(--space-md);
}

.page-header p {
    position: relative;
    color: var(--stone);
    font-size: 1.1rem;
    max-width: 50ch;
    margin: 0 auto;
}

/* ========== FORMS ========== */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: var(--space-xs);
    color: var(--charcoal);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: var(--space-md);
    font-family: var(--font-body);
    font-size: 1rem;
    border: 1px solid var(--cream-warm);
    background: var(--ivory);
    color: var(--charcoal);
    transition: all var(--duration-fast) var(--ease-out-expo);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(196, 169, 98, 0.15);
}

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

/* ========== DRAFT CONTENT MARKERS ========== */
.draft-content {
    position: relative;
    background: var(--draft-bg);
    border: 2px dashed var(--draft-border);
    padding: var(--space-lg);
}

.draft-content::before {
    content: '⚠️ DRAFT - NEEDS APPROVAL';
    position: absolute;
    top: 0;
    left: var(--space-md);
    transform: translateY(-50%);
    background: var(--draft-border);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: var(--space-xs) var(--space-sm);
}

/* ========== PLACEHOLDER CARDS ========== */
.placeholder-card {
    position: relative;
}

.placeholder-card::after {
    content: 'PLACEHOLDER';
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--emerald);
    background: rgba(255,255,255,0.9);
    padding: 2px 6px;
    border: 1px solid var(--emerald);
}

/* ========== PRAYER TIMES PAGE ========== */
.prayer-times-widget {
    max-width: 900px;
    margin: 0 auto;
    padding: var(--space-3xl);
    background: var(--ivory);
    box-shadow: var(--shadow-elevated);
    position: relative;
}

.prayer-times-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--emerald) 0%, var(--gold) 50%, var(--emerald) 100%);
}

/* Timetable Wrapper - with sticky header support */
.timetable-wrapper {
    overflow-x: auto;
    overflow-y: auto;
    max-height: 600px;
    border: 1px solid rgba(196, 169, 98, 0.3);
    border-radius: 8px;
    background: var(--ivory);
    position: relative;
}

.prayer-times-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 900px;
}

.prayer-times-table th,
.prayer-times-table td {
    padding: var(--space-sm) var(--space-xs);
    text-align: center;
    border-bottom: 1px solid var(--cream-warm);
    white-space: nowrap;
}

/* Sticky Header - both rows */
.prayer-times-table thead {
    position: sticky;
    top: 0;
    z-index: 20;
}

.prayer-times-table thead tr {
    background: linear-gradient(180deg, var(--emerald) 0%, var(--emerald-deep) 100%);
}

.prayer-times-table th {
    color: white;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    background: var(--emerald-deep);
}

/* Main header row - prayer names with icons */
.header-main th {
    padding: var(--space-md) var(--space-xs);
    background: linear-gradient(180deg, var(--emerald) 0%, var(--emerald-deep) 100%);
    border-bottom: none;
}

/* Sub header row - Begins/Jama'at labels */
.header-sub th {
    padding: var(--space-xs) var(--space-xs);
    font-size: 0.65rem;
    font-weight: 400;
    opacity: 0.9;
    background: var(--emerald-deep);
    border-bottom: 3px solid var(--gold);
}

.header-sub .col-begins {
    color: rgba(255, 255, 255, 0.7);
}

.header-sub .col-jamaat {
    color: var(--gold-bright);
    font-weight: 600;
}

/* Prayer header with icon */
.prayer-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.prayer-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prayer-icon svg {
    width: 20px;
    height: 20px;
    color: var(--gold);
}

.prayer-name {
    font-size: 0.7rem;
}

/* Column groups */
.col-prayer-group {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.col-prayer-single {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

/* Date and Day columns */
.sticky-col {
    background: var(--ivory);
}

.sticky-col-2 {
    background: var(--ivory);
}

/* Header columns */
thead .sticky-col,
thead .sticky-col-2 {
    background: var(--emerald-deep);
}

/* Column widths */
.col-date {
    width: 55px;
    min-width: 55px;
    font-weight: 600;
}

td.col-day {
    width: 40px;
    min-width: 40px;
    font-size: 0.75rem;
    color: var(--stone);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.col-begins,
.col-jamaat,
.col-sunrise,
.col-maghrib {
    width: 60px;
    min-width: 60px;
}

/* Body Styling */
.prayer-times-table td {
    font-family: var(--font-display);
    font-size: 0.9rem;
    color: var(--charcoal);
    vertical-align: middle;
}

.prayer-times-table tbody tr {
    transition: background-color 0.2s ease;
}

.prayer-times-table tbody tr:nth-child(even) {
    background: rgba(250, 246, 240, 0.5);
}

.prayer-times-table tbody tr:nth-child(even) .sticky-col,
.prayer-times-table tbody tr:nth-child(even) .sticky-col-2 {
    background: rgba(250, 246, 240, 1);
}

.prayer-times-table tbody tr:hover {
    background: rgba(196, 169, 98, 0.1);
}

.prayer-times-table tbody tr:hover .sticky-col,
.prayer-times-table tbody tr:hover .sticky-col-2 {
    background: rgba(250, 243, 220, 1);
}

/* Begins column - lighter/muted */
td.col-begins {
    color: var(--stone);
    font-size: 0.85rem;
}

/* Jama'at column - emphasized */
td.col-jamaat {
    color: var(--emerald);
    font-weight: 600;
    font-size: 0.95rem;
}

/* Sunrise and Maghrib - single time columns */
td.col-sunrise,
td.col-maghrib {
    color: var(--charcoal);
    font-size: 0.9rem;
}

/* Visual separator between prayer groups */
td.col-sunrise,
td.col-maghrib,
.col-begins:nth-of-type(odd) {
    border-left: 1px solid var(--cream-warm);
}

/* Today's Row Highlight */
.today-row {
    background: linear-gradient(90deg, rgba(196, 169, 98, 0.2) 0%, rgba(196, 169, 98, 0.3) 50%, rgba(196, 169, 98, 0.2) 100%) !important;
}

.today-row td {
    border-top: 2px solid var(--gold);
    border-bottom: 2px solid var(--gold);
}

.today-row .sticky-col {
    background: rgba(250, 243, 220, 1) !important;
    border-left: 3px solid var(--gold);
}

.today-row .sticky-col-2 {
    background: rgba(250, 243, 220, 1) !important;
}

.today-row td:last-child {
    border-right: 3px solid var(--gold);
}

.today-row td.col-jamaat {
    color: var(--emerald-deep);
}

.today-label {
    display: block;
    font-size: 0.6rem;
    font-family: var(--font-body);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--gold-muted);
    margin-top: 1px;
}

/* Timetable Footer */
.timetable-footer {
    margin-top: var(--space-lg);
    padding: var(--space-md) var(--space-lg);
    background: var(--cream-warm);
    border-radius: 6px;
    text-align: center;
}

.timetable-footer p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--slate);
}

/* Responsive adjustments */
@media (max-width: 800px) {
    .timetable-wrapper {
        max-height: 500px;
    }

    .prayer-times-table {
        min-width: 800px;
    }

    .prayer-times-table th,
    .prayer-times-table td {
        padding: var(--space-xs);
    }

    .prayer-icon {
        width: 18px;
        height: 18px;
    }

    .prayer-icon svg {
        width: 16px;
        height: 16px;
    }

    .prayer-name {
        font-size: 0.6rem;
    }

    td.col-begins {
        font-size: 0.75rem;
    }

    td.col-jamaat {
        font-size: 0.85rem;
    }
}

/* ========== FAQ SECTION ========== */
.faq-section {
    padding: var(--space-4xl) 0;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--cream-warm);
}

.faq-question {
    width: 100%;
    padding: var(--space-lg) 0;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-md);
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--charcoal);
    transition: color var(--duration-fast) var(--ease-out-expo);
}

.faq-question:hover {
    color: var(--emerald);
}

.faq-icon {
    width: 24px;
    height: 24px;
    position: relative;
    flex-shrink: 0;
}

.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    background: var(--gold);
    transition: transform var(--duration-normal) var(--ease-out-expo);
}

.faq-icon::before {
    width: 100%;
    height: 2px;
    top: 50%;
    transform: translateY(-50%);
}

.faq-icon::after {
    width: 2px;
    height: 100%;
    left: 50%;
    transform: translateX(-50%);
}

.faq-item.active .faq-icon::after {
    transform: translateX(-50%) rotate(90deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--duration-normal) var(--ease-out-expo);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-content {
    padding-bottom: var(--space-xl);
    color: var(--slate);
    line-height: 1.8;
}

/* ========== EVENTS PAGE ========== */
.events-section {
    padding: var(--space-4xl) 0;
}

.event-card {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: var(--space-xl);
    padding: var(--space-xl);
    background: var(--ivory);
    margin-bottom: var(--space-lg);
    border-left: 3px solid var(--gold);
    transition: all var(--duration-normal) var(--ease-out-expo);
}

.event-card:hover {
    box-shadow: var(--shadow-medium);
    transform: translateX(4px);
}

.event-date {
    text-align: center;
    padding: var(--space-md);
    background: var(--cream);
}

.event-day {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    color: var(--emerald);
    line-height: 1;
}

.event-month {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--stone);
}

.event-details h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
}

.event-time {
    font-size: 0.9rem;
    color: var(--gold-muted);
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.event-description {
    color: var(--slate);
    font-size: 0.95rem;
}

@media (max-width: 600px) {
    .event-card {
        grid-template-columns: 1fr;
    }

    .event-date {
        display: flex;
        gap: var(--space-sm);
        justify-content: flex-start;
        align-items: baseline;
    }
}

/* ========== UTILITY CLASSES ========== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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

/* ========== DOWNLOADS GRID ========== */
.downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.download-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--ivory);
    border: 1px solid transparent;
    text-decoration: none;
    transition: all var(--duration-normal) var(--ease-out-expo);
}

.download-card:hover {
    border-color: rgba(196, 169, 98, 0.3);
    box-shadow: var(--shadow-soft);
    transform: translateY(-2px);
}

.download-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cream-warm);
    border-radius: 8px;
    color: var(--emerald);
    transition: all var(--duration-normal) var(--ease-out-expo);
}

.download-card:hover .download-icon {
    background: var(--gold);
    color: var(--ivory);
}

.download-info h4 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--charcoal);
    margin: 0 0 var(--space-xs);
}

.download-info p {
    font-size: 0.9rem;
    color: var(--stone);
    margin: 0;
}

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

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.animate-fadeIn {
    animation: fadeIn 0.8s var(--ease-out-expo) both;
}

.animate-slideInUp {
    animation: slideInUp 0.8s var(--ease-out-expo) both;
}

.animate-scaleIn {
    animation: scaleIn 0.6s var(--ease-out-expo) both;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }
.animate-delay-5 { animation-delay: 0.5s; }

/* ========== INNER PAGE HERO ========== */
.page-hero {
    padding: var(--space-3xl) 0 var(--space-2xl);
    background: linear-gradient(135deg, var(--cream) 0%, var(--cream-warm) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40 0L40 80M0 40L80 40M20 20L60 60M60 20L20 60' stroke='%23c4a962' stroke-opacity='0.04' stroke-width='1' fill='none'/%3E%3Ccircle cx='40' cy='40' r='15' stroke='%23c4a962' stroke-opacity='0.03' fill='none'/%3E%3C/svg%3E");
    background-size: 80px 80px;
    pointer-events: none;
}

.page-hero h1 {
    position: relative;
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 400;
    margin-bottom: var(--space-md);
    color: var(--charcoal);
}

.page-hero h1::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-bright));
    margin: var(--space-md) auto 0;
    border-radius: 2px;
}

.page-hero p {
    position: relative;
    font-size: 1.15rem;
    color: var(--slate);
    max-width: 50ch;
    margin: 0 auto;
}

/* ========== CONTENT SECTION ========== */
.content-section {
    padding: var(--space-3xl) 0;
    background: var(--cream);
}

.content-section.alt-bg {
    background: linear-gradient(180deg, var(--cream-warm) 0%, var(--cream) 100%);
}

.intro-text {
    max-width: 800px;
    margin: 0 auto var(--space-2xl);
    text-align: center;
    font-size: 1.1rem;
    color: var(--slate);
    line-height: 1.8;
}

.intro-text a {
    color: var(--emerald);
    font-weight: 500;
}

.intro-text a:hover {
    color: var(--gold-muted);
}

/* ========== SERVICE DETAIL CARDS ========== */
.services-detail-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-2xl);
}

.service-detail-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--space-xl);
    padding: var(--space-2xl);
    background: var(--ivory);
    border: 1px solid rgba(196, 169, 98, 0.2);
    border-radius: 12px;
    transition: all var(--duration-normal) var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.service-detail-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--gold) 0%, var(--emerald) 100%);
    opacity: 0;
    transition: opacity var(--duration-normal) var(--ease-out-expo);
}

.service-detail-card:hover {
    border-color: rgba(196, 169, 98, 0.4);
    box-shadow: var(--shadow-medium);
    transform: translateY(-2px);
}

.service-detail-card:hover::before {
    opacity: 1;
}

.service-detail-icon {
    width: 80px;
    height: 80px;
    min-width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--emerald) 0%, var(--emerald-deep) 100%);
    border: 2px solid var(--gold);
    border-radius: 50%;
    font-size: 2rem;
    transition: all var(--duration-normal) var(--ease-out-expo);
}

.service-detail-icon svg {
    width: 36px;
    height: 36px;
    stroke: var(--gold);
}

.service-detail-card:hover .service-detail-icon {
    transform: scale(1.05);
    box-shadow: var(--shadow-gold);
}

.service-detail-content {
    flex: 1;
}

.service-detail-content h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--emerald-deep);
    margin-bottom: var(--space-sm);
}

.service-detail-content .service-schedule {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gold-muted);
    margin-bottom: var(--space-md);
}

.location-info {
    background: var(--cream-warm);
    padding: var(--space-md) var(--space-lg);
    border-left: 3px solid var(--gold);
    margin: var(--space-md) 0;
    line-height: 1.7;
}

.location-info strong {
    color: var(--charcoal);
}

.directions-link {
    display: inline-block;
    margin-left: var(--space-sm);
    font-size: 0.9rem;
    color: var(--emerald);
    text-decoration: none;
    font-weight: 500;
}

.directions-link:hover {
    text-decoration: underline;
}

.service-detail-content p {
    color: var(--slate);
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.service-detail-content ul,
.service-detail-content ol {
    margin: var(--space-md) 0 var(--space-lg);
    padding-left: var(--space-lg);
}

.service-detail-content li {
    position: relative;
    padding-left: var(--space-md);
    margin-bottom: var(--space-sm);
    color: var(--slate);
    line-height: 1.6;
}

.service-detail-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 6px;
    height: 6px;
    background: var(--gold);
    border-radius: 50%;
}

.service-detail-content ol {
    list-style: decimal;
}

.service-detail-content ol li::before {
    display: none;
}

.service-note {
    font-size: 0.9rem;
    font-style: italic;
    color: var(--stone);
    padding: var(--space-md);
    background: var(--cream-warm);
    border-left: 3px solid var(--gold);
    margin: var(--space-lg) 0;
}

/* Schedule Table - compact time listings */
.schedule-table {
    width: auto;
    margin: var(--space-sm) 0 var(--space-md);
    border-collapse: collapse;
}

.schedule-table td {
    padding: var(--space-xs) var(--space-md) var(--space-xs) 0;
    font-size: 0.9rem;
    color: var(--slate);
}

.schedule-table td:first-child {
    font-weight: 500;
    color: var(--charcoal);
}

.schedule-table td:last-child {
    color: var(--gold-muted);
    font-weight: 600;
    padding-right: 0;
}

@media (max-width: 768px) {
    .service-detail-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .service-detail-icon {
        margin: 0 auto var(--space-lg);
    }

    .service-detail-content ul,
    .service-detail-content ol {
        text-align: left;
    }

    .schedule-table {
        text-align: left;
    }
}

/* ========== BELIEFS CARDS ========== */
.beliefs-card {
    background: var(--ivory);
    border: 1px solid rgba(196, 169, 98, 0.2);
    border-radius: 12px;
    margin-bottom: var(--space-xl);
    transition: all var(--duration-normal) var(--ease-out-expo);
    overflow: hidden;
}

.beliefs-card:hover {
    border-color: rgba(196, 169, 98, 0.4);
    box-shadow: var(--shadow-medium);
}

.beliefs-card-header {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-xl) var(--space-2xl);
    background: linear-gradient(135deg, rgba(13, 92, 77, 0.03) 0%, rgba(196, 169, 98, 0.05) 100%);
    border-bottom: 1px solid rgba(196, 169, 98, 0.15);
}

.beliefs-card-icon {
    width: 64px;
    height: 64px;
    min-width: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--emerald) 0%, var(--emerald-deep) 100%);
    border: 2px solid var(--gold);
    border-radius: 50%;
}

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

.beliefs-card-header h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--emerald-deep);
    margin: 0;
}

.beliefs-card-content {
    padding: var(--space-xl) var(--space-2xl) var(--space-2xl);
}

.beliefs-card-content p {
    color: var(--slate);
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.beliefs-card-content h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--emerald-deep);
    margin: var(--space-lg) 0 var(--space-sm);
}

.beliefs-card-content ul {
    margin: var(--space-sm) 0 var(--space-md);
    padding-left: var(--space-lg);
}

.beliefs-card-content li {
    position: relative;
    padding-left: var(--space-md);
    margin-bottom: var(--space-sm);
    color: var(--slate);
    line-height: 1.6;
}

.beliefs-card-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 6px;
    height: 6px;
    background: var(--gold);
    border-radius: 50%;
}

@media (max-width: 768px) {
    .beliefs-card-header {
        padding: var(--space-lg);
        gap: var(--space-md);
    }

    .beliefs-card-icon {
        width: 48px;
        height: 48px;
        min-width: 48px;
    }

    .beliefs-card-icon svg {
        width: 24px;
        height: 24px;
    }

    .beliefs-card-header h3 {
        font-size: 1.25rem;
    }

    .beliefs-card-content {
        padding: var(--space-lg);
    }
}

/* ========== CTA BOX ========== */
.cta-box {
    background: linear-gradient(135deg, var(--emerald) 0%, var(--emerald-deep) 100%);
    padding: var(--space-2xl);
    border-radius: 12px;
    text-align: center;
    color: var(--ivory);
    margin-top: var(--space-2xl);
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M50 10L90 50L50 90L10 50Z' stroke='%23ffffff' stroke-opacity='0.06' stroke-width='1' fill='none'/%3E%3C/svg%3E");
    background-size: 100px 100px;
    pointer-events: none;
}

.cta-box h3,
.cta-box h2 {
    position: relative;
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--ivory);
    margin-bottom: var(--space-sm);
}

.cta-box p {
    position: relative;
    color: rgba(255, 255, 255, 0.9);
    max-width: 50ch;
    margin: 0 auto var(--space-lg);
}

.cta-box .btn {
    position: relative;
}

.cta-box .btn-outline {
    color: var(--ivory);
    border-color: rgba(255, 255, 255, 0.5);
}

.cta-box .btn-outline:hover {
    background: var(--ivory);
    color: var(--emerald);
    border-color: var(--ivory);
}

.cta-box.large {
    padding: var(--space-3xl) var(--space-2xl);
}

.cta-box.large h2 {
    font-size: 2rem;
}

.cta-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
}

/* ========== QUICK LINKS GRID ========== */
.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.quick-link-card {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--ivory);
    border: 1px solid rgba(196, 169, 98, 0.2);
    border-radius: 8px;
    text-decoration: none;
    transition: all var(--duration-normal) var(--ease-out-expo);
}

.quick-link-card:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow-soft);
    transform: translateY(-2px);
}

.quick-link-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    color: var(--gold);
}

.quick-link-icon svg {
    width: 100%;
    height: 100%;
}

.quick-link-content h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--emerald-deep);
    margin-bottom: var(--space-xs);
}

.quick-link-content p {
    font-size: 0.9rem;
    color: var(--charcoal-light);
    margin: 0;
}

/* ========== FAQ CATEGORY STYLING ========== */
.faq-category {
    margin-bottom: var(--space-2xl);
}

.faq-category h2,
.faq-category h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--emerald-deep);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--gold);
}

.faq-item {
    background: var(--ivory);
    border: 1px solid rgba(196, 169, 98, 0.2);
    border-radius: 8px;
    margin-bottom: var(--space-md);
    overflow: hidden;
    transition: all var(--duration-normal) var(--ease-out-expo);
}

.faq-item:hover {
    border-color: rgba(196, 169, 98, 0.4);
}

.faq-item.active {
    border-color: var(--gold);
    box-shadow: var(--shadow-soft);
}

.faq-question {
    width: 100%;
    padding: var(--space-lg) var(--space-xl);
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-md);
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--charcoal);
    transition: all var(--duration-fast) var(--ease-out-expo);
}

.faq-question:hover {
    color: var(--emerald);
    background: rgba(196, 169, 98, 0.05);
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--gold);
    transition: transform var(--duration-normal) var(--ease-out-expo);
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--duration-normal) var(--ease-out-expo);
}

.faq-item.active .faq-answer {
    max-height: 2000px;
}

.faq-answer > *:first-child {
    padding-top: var(--space-lg);
}

.faq-answer > *:last-child {
    margin-bottom: 0;
    padding-bottom: var(--space-lg);
}

.faq-answer p,
.faq-answer ul,
.faq-answer ol,
.faq-answer address {
    padding: 0 var(--space-xl);
    color: var(--slate);
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.faq-answer h4 {
    padding: var(--space-md) var(--space-xl) var(--space-sm);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--emerald);
}

.faq-answer ul {
    padding-left: calc(var(--space-xl) + var(--space-lg));
}

.faq-answer ul li {
    position: relative;
    margin-bottom: var(--space-xs);
}

.faq-answer ul li::before {
    content: '';
    position: absolute;
    left: calc(-1 * var(--space-md));
    top: 0.65em;
    width: 6px;
    height: 6px;
    background: var(--gold);
    border-radius: 50%;
}

.faq-answer ol {
    padding-left: calc(var(--space-xl) + var(--space-lg));
    list-style: decimal;
}

.faq-answer a {
    color: var(--emerald);
    font-weight: 500;
}

.faq-answer a:hover {
    color: var(--gold-muted);
}

.faq-answer blockquote {
    margin: var(--space-md) var(--space-xl);
    padding: var(--space-md) var(--space-lg);
    background: var(--cream-warm);
    border-left: 4px solid var(--gold);
    font-style: italic;
    color: var(--charcoal);
    line-height: 1.7;
}

.faq-answer blockquote em {
    display: block;
    margin-top: var(--space-sm);
    font-style: normal;
    font-size: 0.9rem;
    color: var(--stone);
}

/* ========== NIKAH REGISTRATION FORM ========== */
.nikah-form-section {
    background: linear-gradient(135deg, var(--cream) 0%, var(--ivory) 100%);
    border: 2px solid var(--gold);
    border-radius: 12px;
}

.nikah-form-section .service-detail-content.full-width {
    width: 100%;
    max-width: 100%;
}

.nikah-form-section h2 {
    color: var(--emerald);
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: var(--space-md);
    text-align: center;
}

.form-intro {
    text-align: center;
    color: var(--slate);
    margin-bottom: var(--space-2xl);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.nikah-form {
    max-width: 900px;
    margin: 0 auto;
}

.form-fieldset {
    border: 1px solid rgba(196, 169, 98, 0.3);
    border-radius: 8px;
    padding: var(--space-xl);
    margin-bottom: var(--space-xl);
    background: white;
}

.form-fieldset legend {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--emerald);
    padding: 0 var(--space-md);
    margin-left: -var(--space-sm);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

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

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 500;
    color: var(--charcoal);
    margin-bottom: var(--space-xs);
    font-size: 0.9rem;
}

.form-group .required {
    color: #dc3545;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: var(--space-sm) var(--space-md);
    border: 1px solid var(--stone);
    border-radius: 6px;
    font-size: 1rem;
    font-family: var(--font-body);
    transition: all var(--duration-fast) ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(196, 169, 98, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--stone);
}

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

.checkbox-group {
    margin-bottom: var(--space-md);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--emerald);
}

.form-actions {
    text-align: center;
    padding-top: var(--space-xl);
}

.form-actions .btn-lg {
    padding: var(--space-md) var(--space-3xl);
    font-size: 1.1rem;
}

.form-note {
    margin-top: var(--space-md);
    color: var(--slate);
    font-size: 0.9rem;
}

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

    .form-fieldset {
        padding: var(--space-lg);
    }

    .nikah-form-section h2 {
        font-size: 1.5rem;
    }
}

/* ========== CONTACT PAGE ========== */
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-3xl);
    align-items: start;
}

.contact-form-container h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    color: var(--emerald-deep);
    margin-bottom: var(--space-xl);
}

.contact-form {
    background: var(--ivory);
    padding: var(--space-2xl);
    border-radius: 12px;
    border: 1px solid rgba(196, 169, 98, 0.2);
    box-shadow: var(--shadow-soft);
}

.contact-form .form-group {
    margin-bottom: var(--space-lg);
}

.contact-form label {
    display: block;
    font-weight: 500;
    color: var(--charcoal);
    margin-bottom: var(--space-xs);
}

.contact-form .required {
    color: #dc3545;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    border: 1px solid var(--stone);
    border-radius: 6px;
    font-size: 1rem;
    font-family: var(--font-body);
    transition: all var(--duration-fast) ease;
    background: white;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(196, 169, 98, 0.2);
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-form .form-note {
    font-size: 0.85rem;
    color: var(--stone);
    margin-bottom: var(--space-lg);
}

.contact-form .btn-block {
    width: 100%;
    padding: var(--space-md);
    font-size: 1rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.contact-card {
    background: var(--ivory);
    padding: var(--space-xl);
    border-radius: 12px;
    border: 1px solid rgba(196, 169, 98, 0.2);
    transition: all var(--duration-normal) var(--ease-out-expo);
}

.contact-card:hover {
    border-color: rgba(196, 169, 98, 0.4);
    box-shadow: var(--shadow-soft);
}

.contact-card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--emerald-deep);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--gold);
}

.contact-card address {
    font-style: normal;
    color: var(--slate);
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.contact-card p {
    color: var(--slate);
    margin-bottom: var(--space-sm);
}

.contact-card .btn {
    margin-top: var(--space-sm);
}

.contact-card .email-link {
    display: block;
    color: var(--emerald);
    font-weight: 500;
    font-size: 1rem;
    word-break: break-all;
}

.contact-card .email-link:hover {
    color: var(--gold-muted);
}

.contact-card .highlight-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--emerald);
    margin-bottom: var(--space-xs);
}

.contact-card .location-label {
    font-size: 0.9rem;
    color: var(--charcoal-light);
    margin-bottom: var(--space-md);
}

.location-note {
    font-size: 0.85rem;
    color: var(--charcoal-light);
    font-style: italic;
}

.social-links-vertical {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.social-links-vertical a {
    color: var(--emerald);
    font-weight: 500;
    transition: color var(--duration-fast) ease;
}

.social-links-vertical a:hover {
    color: var(--gold-muted);
}

/* Map Section */
.map-section {
    padding: var(--space-3xl) 0;
    background: var(--cream-warm);
}

.map-section h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--emerald-deep);
    text-align: center;
    margin-bottom: var(--space-xl);
}

.map-container {
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--gold);
    box-shadow: var(--shadow-medium);
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 400px;
}

/* Placeholder notice */
.placeholder-notice {
    font-size: 0.9rem;
}

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
}

/* ========== LEGAL / PRIVACY CONTENT ========== */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--ivory);
    padding: var(--space-2xl) var(--space-3xl);
    border-radius: 12px;
    border: 1px solid rgba(196, 169, 98, 0.2);
}

.legal-content .last-updated {
    font-size: 0.9rem;
    color: var(--stone);
    margin-bottom: var(--space-2xl);
    font-style: italic;
}

.legal-content h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--emerald-deep);
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-xs);
    border-bottom: 2px solid var(--gold);
}

.legal-content h2:first-of-type {
    margin-top: 0;
}

.legal-content h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--emerald);
    margin-top: var(--space-xl);
    margin-bottom: var(--space-sm);
}

.legal-content p {
    color: var(--slate);
    margin-bottom: var(--space-md);
    line-height: 1.8;
}

.legal-content ul,
.legal-content ol {
    margin: var(--space-md) 0 var(--space-lg);
    padding-left: var(--space-xl);
}

.legal-content li {
    color: var(--slate);
    margin-bottom: var(--space-sm);
    line-height: 1.7;
}

.legal-content a {
    color: var(--emerald);
    font-weight: 500;
}

.legal-content a:hover {
    color: var(--gold-muted);
}

.legal-content address {
    font-style: normal;
    background: var(--cream-warm);
    padding: var(--space-lg);
    border-radius: 8px;
    border-left: 4px solid var(--gold);
}

.legal-content address p {
    margin-bottom: var(--space-xs);
}

@media (max-width: 768px) {
    .legal-content {
        padding: var(--space-xl);
    }
}

/* ========== PRAYER TIMES PAGE ========== */
.timetable-section {
    padding-top: var(--space-xl);
}

.timetable-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.month-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-sm);
}

.month-nav h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--emerald-deep);
    min-width: 220px;
    margin: 0;
}

.month-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 2px solid var(--gold);
    border-radius: 50%;
    background: var(--ivory);
    color: var(--emerald);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out-expo);
}

.month-nav-btn:hover {
    background: var(--emerald);
    border-color: var(--emerald);
    color: var(--ivory);
}

.month-nav-btn:active {
    transform: scale(0.95);
}

.month-nav-btn svg {
    width: 20px;
    height: 20px;
}

.jummah-note {
    font-size: 0.95rem;
    color: var(--slate);
    margin: 0 auto;
    text-align: center;
}

.jummah-note strong {
    color: var(--emerald);
    font-weight: 600;
}

.pdf-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    margin-top: var(--space-md);
    font-size: 0.9rem;
}

.pdf-link svg {
    flex-shrink: 0;
}

/* ========== EVENT SPOTLIGHT SECTION ========== */
.event-spotlight {
    padding: var(--space-2xl) 0;
    background: linear-gradient(135deg, var(--emerald) 0%, var(--emerald-deep) 100%);
    position: relative;
    overflow: hidden;
}

.event-spotlight::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M50 10L90 50L50 90L10 50Z' stroke='%23ffffff' stroke-opacity='0.05' stroke-width='1' fill='none'/%3E%3C/svg%3E");
    background-size: 80px 80px;
    pointer-events: none;
}

.spotlight-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
    position: relative;
}

.spotlight-text {
    color: var(--ivory);
}

.spotlight-badge {
    display: inline-block;
    background: var(--gold);
    color: var(--charcoal);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: var(--space-xs) var(--space-md);
    border-radius: 4px;
    margin-bottom: var(--space-md);
}

.spotlight-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 500;
    color: var(--ivory);
    margin-bottom: var(--space-sm);
    line-height: 1.2;
}

.spotlight-date {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--gold-bright);
    margin-bottom: var(--space-md);
}

.spotlight-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

.spotlight-details {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.spotlight-detail {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
}

.spotlight-detail svg {
    color: var(--gold);
    flex-shrink: 0;
}

.spotlight-poster {
    display: flex;
    justify-content: center;
}

.poster-frame {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 3px solid var(--gold);
    max-width: 350px;
    background: var(--cream);
}

.poster-frame img {
    display: block;
    width: 100%;
    height: auto;
}

.poster-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-3xl);
    color: var(--stone);
    gap: var(--space-md);
    min-height: 400px;
}

.poster-placeholder svg {
    opacity: 0.5;
}

.poster-placeholder span {
    font-size: 0.9rem;
}

/* Light variant - cream background */
.event-spotlight.light {
    background: linear-gradient(180deg, var(--cream) 0%, var(--cream-warm) 100%);
}

.event-spotlight.light::before {
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M50 10L90 50L50 90L10 50Z' stroke='%23c4a962' stroke-opacity='0.08' stroke-width='1' fill='none'/%3E%3C/svg%3E");
}

.event-spotlight.light .spotlight-text {
    color: var(--charcoal);
}

.event-spotlight.light .spotlight-badge {
    background: var(--emerald);
    color: var(--ivory);
}

.event-spotlight.light .spotlight-title {
    color: var(--emerald-deep);
}

.event-spotlight.light .spotlight-date {
    color: var(--gold-muted);
}

.event-spotlight.light .spotlight-description {
    color: var(--slate);
}

.event-spotlight.light .spotlight-detail {
    color: var(--slate);
}

.event-spotlight.light .spotlight-detail svg {
    color: var(--emerald);
}

.event-spotlight.light .poster-frame {
    border-color: var(--emerald);
    box-shadow: var(--shadow-medium);
}

@media (max-width: 900px) {
    .spotlight-content {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
        text-align: center;
    }

    .spotlight-details {
        justify-content: center;
    }

    .spotlight-poster {
        order: -1;
    }

    .poster-frame {
        max-width: 280px;
    }
}

/* ========== MEDIA SECTION (YouTube + Instagram) ========== */
.media-section {
    padding: var(--space-3xl) 0;
    background: linear-gradient(180deg, var(--cream-warm) 0%, var(--cream) 100%);
}

.media-subsection {
    margin-bottom: var(--space-2xl);
}

.media-subsection:last-child {
    margin-bottom: 0;
}

.media-subsection-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.media-subsection-header h3 {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 500;
    margin: 0;
    color: var(--charcoal);
}

.media-link {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--emerald);
    font-weight: 500;
    font-size: var(--text-sm);
    text-decoration: none;
    transition: all var(--duration-fast) ease;
}

.media-link:hover {
    color: var(--emerald-deep);
    gap: var(--space-sm);
}

/* YouTube within Media Section */
#youtube-section {
    /* No padding, handled by media-subsection */
}

.youtube-live-container {
    margin-bottom: var(--space-xl);
}

.live-stream-card {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    color: white;
    max-width: 800px;
    margin: 0 auto;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    background: rgba(255, 255, 255, 0.2);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: var(--text-sm);
    margin-bottom: var(--space-md);
}

.live-dot {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.live-stream-link {
    display: block;
    width: 100%;
    color: white;
    text-decoration: none;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
}

.live-thumbnail {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: var(--space-md);
}

.live-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.live-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    transition: background var(--duration-fast) ease;
}

.live-play-overlay svg {
    width: 64px;
    height: 64px;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.live-stream-link:hover .live-play-overlay {
    background: rgba(0, 0, 0, 0.5);
}

.live-title {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    margin: 0;
}

.youtube-videos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.youtube-video-card {
    display: block;
    text-decoration: none;
    text-align: left;
    color: var(--charcoal);
    background: white;
    border: none;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all var(--duration-normal) var(--ease-out-expo);
    cursor: pointer;
    width: 100%;
}

.youtube-video-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.video-thumbnail {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-normal) var(--ease-out-expo);
}

.youtube-video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.video-play-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity var(--duration-fast) ease;
}

.video-play-icon svg {
    width: 48px;
    height: 48px;
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.youtube-video-card:hover .video-play-icon {
    opacity: 1;
}

.video-title {
    padding: var(--space-md);
    font-size: var(--text-sm);
    font-weight: 500;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.btn-youtube {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: #FF0000;
    color: white;
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-full);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--duration-fast) var(--ease-out-expo);
}

.btn-youtube:hover {
    background: #cc0000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3);
}

.youtube-error {
    text-align: center;
    color: var(--slate);
    padding: var(--space-xl);
}

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

@media (max-width: 640px) {
    .youtube-videos-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .live-play-overlay svg {
        width: 48px;
        height: 48px;
    }
}

/* Video Lightbox */
.video-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
}

.video-lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
}

.video-lightbox-content {
    position: relative;
    width: 100%;
    max-width: 1000px;
    animation: lightboxFadeIn 0.3s ease-out;
}

@keyframes lightboxFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.video-lightbox-close {
    position: absolute;
    top: -48px;
    right: 0;
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: var(--space-sm);
    opacity: 0.7;
    transition: opacity var(--duration-fast) ease;
}

.video-lightbox-close:hover {
    opacity: 1;
}

.video-lightbox-player {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: black;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.video-lightbox-player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-lightbox-title {
    color: white;
    font-family: var(--font-display);
    font-size: var(--text-lg);
    margin: var(--space-md) 0 0 0;
    text-align: center;
}

@media (max-width: 640px) {
    .video-lightbox {
        padding: var(--space-sm);
    }

    .video-lightbox-close {
        top: -40px;
    }

    .video-lightbox-title {
        font-size: var(--text-base);
    }
}

/* ========== FACEBOOK FEED SECTION ========== */
.latest-updates {
    padding: var(--space-3xl) 0;
    background: linear-gradient(180deg, var(--cream) 0%, var(--cream-warm) 100%);
}

.facebook-feed-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.facebook-feed-container {
    display: flex;
    justify-content: center;
}

.facebook-feed-container iframe {
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
    max-width: 100%;
}

.facebook-feed-cta {
    text-align: center;
}

.facebook-feed-cta > p {
    font-size: 1.1rem;
    color: var(--slate);
    margin-bottom: var(--space-xl);
    line-height: 1.6;
}

.social-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    max-width: 250px;
    margin: 0 auto;
}

.btn-facebook,
.btn-instagram {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--duration-fast) var(--ease-out-expo);
}

.btn-facebook {
    background: #1877f2;
    color: white;
}

.btn-facebook:hover {
    background: #166fe5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.4);
}

.btn-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
}

.btn-instagram:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(225, 48, 108, 0.4);
}

.btn-facebook svg,
.btn-instagram svg {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .facebook-feed-wrapper {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .facebook-feed-container iframe {
        width: 100% !important;
        max-width: 400px;
    }

    .facebook-feed-cta {
        order: -1;
    }
}

/* ========== INSTAGRAM FEED SECTION ========== */
.instagram-feed-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-medium);
    overflow: hidden;
}

.instagram-feed-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg) var(--space-xl);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.instagram-profile {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.instagram-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--emerald) 0%, var(--emerald-deep) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
}

.instagram-avatar svg {
    width: 32px;
    height: 32px;
}

.instagram-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.instagram-info h3 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--charcoal);
    margin: 0;
}

.instagram-info p {
    font-size: 0.9rem;
    color: var(--slate);
    margin: 0;
}

.btn-instagram-follow {
    background: var(--emerald);
    color: white;
    padding: var(--space-sm) var(--space-lg);
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all var(--duration-fast) var(--ease-out-expo);
}

.btn-instagram-follow:hover {
    background: var(--emerald-deep);
    transform: translateY(-1px);
}

.social-icons-header {
    display: flex;
    gap: var(--space-sm);
}

.social-icon-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--slate);
    background: var(--cream);
    transition: all var(--duration-fast) var(--ease-out-expo);
}

.social-icon-link:hover {
    transform: translateY(-2px);
}

.social-icon-link svg {
    width: 20px;
    height: 20px;
}

/* Instagram gradient on hover */
.social-icon-link[aria-label="Instagram"]:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: white;
}

/* Facebook blue on hover */
.social-icon-link[aria-label="Facebook"]:hover {
    background: #1877f2;
    color: white;
}

/* YouTube red on hover */
.social-icon-link[aria-label="YouTube"]:hover {
    background: #ff0000;
    color: white;
}

.instagram-feed-container {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
}

.instagram-feed-container .instagram-media {
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    min-width: auto !important;
}

.instagram-feed-cta {
    padding: var(--space-xl);
    text-align: center;
    background: var(--cream);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.instagram-feed-cta > p {
    font-size: 1rem;
    color: var(--slate);
    margin-bottom: var(--space-lg);
    line-height: 1.6;
}

.instagram-feed-cta .social-buttons {
    flex-direction: row;
    justify-content: center;
    max-width: none;
}

@media (max-width: 768px) {
    .instagram-feed-wrapper {
        border-radius: 0;
        margin: 0 calc(-1 * var(--space-lg));
    }

    .instagram-feed-header {
        padding: var(--space-md);
    }

    .instagram-avatar {
        width: 44px;
        height: 44px;
    }

    .instagram-avatar svg {
        width: 24px;
        height: 24px;
    }

    .instagram-info h3 {
        font-size: 0.9rem;
    }

    .instagram-feed-cta .social-buttons {
        flex-direction: column;
    }
}
