/* ===== Theme Tokens (mirrors RasberryPi kiosk) ===== */
:root {
    --bg: #f4efe3;
    --bg-soft: #faf6ec;
    --panel: #fbf8f1;
    --panel-strong: #ffffff;
    --panel-tomorrow: #eee7d5;

    --primary: #0e5c36;
    --primary-dark: #0a3f25;
    --primary-soft: rgba(14, 92, 54, 0.08);

    --accent: #c9a05a;
    --accent-soft: #e8c994;
    --accent-bg: rgba(201, 160, 90, 0.15);

    --text: #1f2933;
    --text-dim: #6b7480;
    --text-muted: #8a8f99;

    --border: rgba(14, 92, 54, 0.18);
    --border-soft: rgba(14, 92, 54, 0.08);
    --shadow: 0 4px 14px rgba(20, 40, 30, 0.08);
    --shadow-lg: 0 6px 22px rgba(20, 40, 30, 0.12);
    --danger: #c0392b;

    --serif: 'Lora', 'Playfair Display', 'Georgia', serif;
    --sans: 'Roboto', 'Segoe UI', system-ui, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--sans);
    font-weight: 300;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background:
        url('../images/bg-pattern.svg'),
        radial-gradient(ellipse at 0% 0%, #ede4cf 0%, transparent 60%),
        radial-gradient(ellipse at 100% 100%, #ece2c8 0%, transparent 55%),
        var(--bg);
    background-size: 320px 320px, auto, auto, auto;
    background-attachment: fixed;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

ul {
    list-style: none;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.arabic {
    font-family: 'Amiri', 'Scheherazade New', 'Noto Naskh Arabic', serif;
    direction: rtl;
    line-height: 1.7;
}

/* ===== Header / Navigation ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--panel-strong);
    box-shadow: var(--shadow);
    border-bottom: 2px solid var(--border-soft);
    transition: box-shadow 0.3s;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 120px;
}

.logo img {
    height: 110px;
    width: auto;
    filter: brightness(0) saturate(100%) invert(24%) sepia(36%) saturate(1456%) hue-rotate(118deg) brightness(94%) contrast(92%);
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: var(--text-dim);
    transition: color 0.3s;
}

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

.nav-donate {
    background: var(--primary);
    color: var(--panel-strong) !important;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 700;
    transition: background 0.3s;
}

.nav-donate:hover {
    background: var(--primary-dark);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--primary-dark);
    border-radius: 2px;
    transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* ===== Branding Font ===== */
.brand-name {
    font-family: var(--serif);
    font-weight: 700;
    letter-spacing: 1px;
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 60px 24px;
}

.hero h1 {
    font-family: var(--serif);
    font-size: 52px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 300;
    margin-bottom: 36px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Hero Arabic Greeting ===== */
.hero-arabic {
    font-family: 'Amiri', serif;
    font-size: 32px;
    color: var(--accent-soft);
    margin-bottom: 16px;
    font-weight: 400;
    letter-spacing: 2px;
    direction: rtl;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 14px 32px;
    border-radius: 6px;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(14, 92, 54, 0.35);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.85);
}

.btn-outline:hover {
    background: var(--accent);
    color: var(--primary-dark);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.btn-small {
    padding: 10px 24px;
    font-size: 12px;
    background: var(--primary);
    color: #fff;
}

.btn-small:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-large {
    padding: 18px 48px;
    font-size: 14px;
}

/* ===== Sections ===== */
.section {
    padding: 80px 0;
}

.section-title {
    font-family: var(--serif);
    font-size: 38px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
    color: var(--primary-dark);
}

.section-title::after {
    content: '';
    display: block;
    width: 64px;
    height: 3px;
    background: var(--accent);
    margin: 14px auto 36px;
    border-radius: 2px;
}

.section-title-light {
    color: #fff;
}

.section-title-light::after {
    background: var(--accent-soft);
}

/* ===== About ===== */
.about {
    background: var(--bg-soft);
}

.about-content {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    margin-bottom: 20px;
    font-size: 17px;
    line-height: 1.85;
    color: var(--text);
}

.about-with-image {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 17px;
    line-height: 1.85;
    color: var(--text);
}

.about-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-soft);
}

/* ===== Gallery ===== */
.gallery {
    background: transparent;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-soft);
}

.gallery-item img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* ===== Upcoming Events ===== */
.events {
    background: transparent;
}

.events-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.event-card {
    display: flex;
    align-items: flex-start;
    gap: 28px;
    background: var(--panel);
    border-radius: 12px;
    padding: 32px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-soft);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.event-date {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    background: var(--primary);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--accent-soft);
}

.event-day {
    font-family: var(--serif);
    font-size: 26px;
    font-weight: 700;
    line-height: 1;
}

.event-month {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.95;
}

.event-details h3 {
    font-family: var(--serif);
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 4px;
}

.event-time {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 10px;
}

.event-details p {
    font-size: 15px;
    color: var(--text-dim);
    line-height: 1.7;
}

.events-empty {
    text-align: center;
    padding: 48px 24px;
    background: var(--panel);
    border-radius: 12px;
    border: 2px dashed var(--border);
}

.events-empty p {
    font-size: 16px;
    color: var(--text-dim);
    font-weight: 400;
}

/* ===== Welcome Banner ===== */
.welcome-banner {
    background: var(--bg-soft);
    text-align: center;
}

.welcome-banner-content {
    max-width: 700px;
    margin: 0 auto;
}

.welcome-arabic {
    font-family: 'Amiri', serif;
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 12px;
    direction: rtl;
    font-weight: 400;
}

.welcome-banner h2 {
    font-family: var(--serif);
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 16px;
}

.welcome-banner-content > p:last-child {
    font-size: 17px;
    color: var(--text);
    line-height: 1.85;
}

/* ===== Prayer Times Section ===== */
.prayer-times-hero {
    padding: 140px 0 60px;
    background:
        radial-gradient(ellipse at 0% 0%, rgba(14, 92, 54, 0.06) 0%, transparent 55%),
        radial-gradient(ellipse at 100% 100%, rgba(201, 160, 90, 0.10) 0%, transparent 55%),
        var(--bg-soft);
    border-bottom: 1px solid var(--border-soft);
}

.prayer-times-hero .section-title {
    color: var(--primary-dark);
}

.salah-widget {
    max-width: 1100px;
    margin: 0 auto;
    background: var(--panel);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-soft);
}

.salah-widget-header {
    background: var(--primary-dark);
    color: var(--accent-soft);
    padding: 20px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.salah-widget-header .title {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 16px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 600;
    color: #fff;
}

.salah-widget-header .icon-pill {
    width: 40px;
    height: 40px;
    background: var(--accent-bg);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-soft);
}

.salah-widget-header .icon-pill svg {
    width: 22px;
    height: 22px;
}

.salah-widget-clock {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.3;
}

.salah-widget-clock .time {
    font-family: var(--serif);
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.salah-widget-clock .hijri {
    font-size: 13px;
    color: var(--accent-soft);
    letter-spacing: 0.05em;
}

.salah-widget-clock .greg {
    font-size: 12px;
    color: rgba(232, 201, 148, 0.75);
    letter-spacing: 0.04em;
}

.next-badge {
    display: block;
    width: max-content;
    max-width: 100%;
    margin: 6px auto 0;
    background: var(--primary);
    color: #fff;
    padding: 3px 12px;
    border-radius: 999px;
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    font-variant-numeric: tabular-nums;
    line-height: 1.5;
    white-space: nowrap;
    transition: background-color 0.3s, color 0.3s;
}

.next-badge.imminent {
    background: var(--accent);
    color: var(--primary-dark);
    animation: badge-pulse 1s ease-in-out infinite;
}

@keyframes badge-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

.salah-table {
    display: grid;
    grid-template-rows: auto repeat(6, auto);
}

.salah-table .row {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    align-items: center;
    padding: 14px 28px;
    border-bottom: 1px solid var(--border-soft);
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}

.salah-table .row:last-child {
    border-bottom: none;
}

.salah-table .row.head {
    font-size: 20px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-dim);
    background: transparent;
    font-weight: 700;
    padding: 14px 28px;
}

.salah-table .row.head .name,
.salah-table .row.head .azan,
.salah-table .row.head .iqamah,
.salah-table .row.head .tomorrow {
    font-size: 20px;
    font-weight: 700;
}

.salah-table .row.head .tomorrow {
    background: var(--panel-tomorrow);
    padding: 8px 0;
    border-radius: 6px 6px 0 0;
    color: var(--primary-dark);
}

.salah-table .row .name {
    display: flex;
    align-items: baseline;
    gap: 12px;
    color: var(--text);
}

.salah-table .row .name .prayer-en {
    font-family: var(--serif);
    font-weight: 700;
    font-size: 22px;
    color: var(--primary-dark);
}

.salah-table .row .name .prayer-ar {
    font-family: 'Amiri', 'Scheherazade New', 'Noto Naskh Arabic', serif;
    font-size: 20px;
    color: var(--primary);
    direction: rtl;
}

.salah-table .row .azan,
.salah-table .row .iqamah,
.salah-table .row .tomorrow {
    text-align: center;
    color: var(--text);
    font-size: 22px;
    font-weight: 600;
}

.salah-table .row .iqamah {
    font-weight: 700;
    color: var(--primary);
}

.salah-table .row .tomorrow {
    background: var(--panel-tomorrow);
    color: var(--primary-dark);
    padding: 10px 0;
    margin: -10px 0;
    font-weight: 700;
}

.salah-table .row.dim {
    background: rgba(14, 92, 54, 0.025);
}
.salah-table .row.dim .name .prayer-en {
    font-size: 16px;
    color: var(--text-dim);
}
.salah-table .row.dim .name .prayer-ar {
    font-size: 15px;
    color: var(--text-dim);
}
.salah-table .row.dim .azan,
.salah-table .row.dim .iqamah,
.salah-table .row.dim .tomorrow {
    color: var(--text-dim);
    font-weight: 500;
    font-size: 16px;
}

.salah-table .row.next {
    background: linear-gradient(90deg, rgba(14, 92, 54, 0.1), transparent 70%);
    border-left: 5px solid var(--primary);
    padding-left: 23px;
}

.salah-table .row.next .name .prayer-en,
.salah-table .row.next .name .prayer-ar,
.salah-table .row.next .azan,
.salah-table .row.next .iqamah {
    color: var(--primary-dark);
    font-weight: 700;
}

/* Jumma cards */
.jumma {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 20px 28px 28px;
}

.jumma .card {
    background: var(--accent-bg);
    border: 1px solid var(--border-soft);
    border-radius: 10px;
    padding: 16px 20px;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 16px;
}

.jumma .card .mosque-icon {
    width: 46px;
    height: 46px;
    color: var(--primary);
}

.jumma .card .mosque-icon svg {
    width: 100%;
    height: 100%;
}

.jumma .card .body {
    text-align: left;
}

.jumma .card .label {
    font-size: 11px;
    color: var(--primary);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 700;
}

.jumma .card .times {
    font-family: var(--serif);
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-dark);
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
    margin-top: 2px;
}

.jumma .card .times small {
    font-size: 10px;
    color: var(--primary);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    display: block;
    font-weight: 600;
    margin-top: 2px;
}

.salah-error {
    padding: 32px 28px;
    text-align: center;
    color: var(--danger);
    font-size: 15px;
}

/* ===== Services ===== */
.services {
    background: var(--bg-soft);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.service-card {
    background: var(--panel-strong);
    border-radius: 12px;
    padding: 40px 32px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-soft);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    font-size: 42px;
    margin-bottom: 20px;
    color: var(--primary);
}

.service-card h3 {
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--primary-dark);
}

.service-card p {
    font-size: 15px;
    color: var(--text-dim);
    margin-bottom: 24px;
    line-height: 1.7;
}

/* ===== Donate ===== */
.donate {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    text-align: center;
    color: #fff;
}

.donate-content p {
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto 36px;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 300;
}

/* ===== Footer ===== */
.footer {
    background: var(--primary-dark);
    color: rgba(232, 201, 148, 0.75);
    padding-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(232, 201, 148, 0.18);
}

.footer-logo {
    height: 80px;
    margin-bottom: 16px;
    width: auto;
    background: var(--panel-strong);
    padding: 8px 12px;
    border-radius: 8px;
}

.footer-about p {
    font-size: 14px;
    line-height: 1.7;
}

.footer h4 {
    color: var(--accent-soft);
    font-family: var(--serif);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 0.05em;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: 14px;
    color: rgba(232, 201, 148, 0.75);
    transition: color 0.3s;
}

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

.footer-contact p {
    font-size: 14px;
    margin-bottom: 10px;
}

.footer-contact a {
    color: var(--accent-soft);
}

.footer-contact a:hover {
    text-decoration: underline;
}

.footer-hours p {
    font-size: 14px;
    margin-bottom: 8px;
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    color: rgba(232, 201, 148, 0.55);
}

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

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 100px;
        left: 0;
        right: 0;
        background: var(--panel-strong);
        box-shadow: var(--shadow-lg);
        padding: 24px;
        transform: translateY(-120%);
        opacity: 0;
        transition: transform 0.3s, opacity 0.3s;
        z-index: 999;
    }

    .nav.open {
        transform: translateY(0);
        opacity: 1;
    }

    .nav-list {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
        text-align: center;
    }

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

    .hero {
        min-height: 480px;
    }

    .hero h1 {
        font-size: 34px;
    }

    .hero p {
        font-size: 17px;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 28px;
    }

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

    .about-with-image {
        grid-template-columns: 1fr;
    }

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

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

    .gallery-item img {
        height: 250px;
    }

    .event-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
        padding: 24px;
    }

    .hero-arabic {
        font-size: 24px;
    }

    .welcome-arabic {
        font-size: 28px;
    }

    .welcome-banner h2 {
        font-size: 26px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    /* Salah widget — collapse to a 3-column layout (drop tomorrow column) */
    .salah-table .row {
        grid-template-columns: 1.4fr 1fr 1fr;
        padding: 6px 14px;
    }
    .salah-table .row.head {
        padding: 8px 14px;
        letter-spacing: 0.12em;
    }
    .salah-table .row.head .name,
    .salah-table .row.head .azan,
    .salah-table .row.head .iqamah,
    .salah-table .row.head .tomorrow {
        font-size: 12px;
    }
    .salah-table .row .tomorrow,
    .salah-table .row.head .tomorrow {
        display: none;
    }
    .salah-table .row .name .prayer-en {
        font-size: 18px;
    }
    .salah-table .row .name .prayer-ar {
        font-size: 16px;
    }
    .salah-table .row .azan,
    .salah-table .row .iqamah {
        font-size: 18px;
    }
    .salah-widget-header {
        padding: 10px 14px;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 4px;
    }
    .salah-widget-header .title {
        font-size: 12px;
    }
    .salah-widget-header .icon-pill {
        width: 28px;
        height: 28px;
    }
    .salah-widget-header .icon-pill svg {
        width: 16px;
        height: 16px;
    }
    .salah-widget-clock {
        align-items: center;
        line-height: 1.15;
    }
    .salah-widget-clock .time {
        font-size: 18px;
    }
    .salah-widget-clock .hijri,
    .salah-widget-clock .greg {
        font-size: 11px;
    }
    .jumma {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 8px;
        padding: 12px 10px 14px;
    }
    .jumma .card {
        grid-template-columns: minmax(0, 1fr);
        padding: 10px 12px;
        gap: 4px;
        border-radius: 8px;
        text-align: center;
        justify-items: center;
    }
    .jumma .card .mosque-icon {
        display: none;
    }
    .jumma .card .body {
        text-align: center;
        min-width: 0;
    }
    .jumma .card .label {
        font-size: 9px;
        letter-spacing: 0.12em;
    }
    .jumma .card .times {
        font-size: 18px;
    }
    .jumma .card .times small {
        font-size: 8px;
        margin-top: 2px;
    }
    .next-badge {
        font-size: 10px;
        padding: 2px 10px;
    }
    .prayer-times-hero {
        padding-top: 130px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 28px;
    }

    .hero p {
        font-size: 15px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 12px;
    }

    .service-card {
        padding: 28px 20px;
    }

    .salah-table .row .name {
        flex-direction: column;
        gap: 2px;
        align-items: flex-start;
    }
    .salah-table .row .name .prayer-ar {
        font-size: 14px;
    }
}

/* ===== Page Specific: Service Detail ===== */
.page-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: 160px 0 60px;
    text-align: center;
    color: #fff;
}

.page-header h1 {
    font-family: var(--serif);
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #fff;
}

.page-header p {
    font-size: 18px;
    color: var(--accent-soft);
    font-weight: 300;
}

.page-content {
    padding: 60px 0;
}

.page-content .container {
    max-width: 800px;
}

.page-content p {
    font-size: 17px;
    line-height: 1.9;
    color: var(--text);
    margin-bottom: 20px;
}

.page-content .back-link {
    display: inline-block;
    margin-top: 20px;
    color: var(--primary);
    font-weight: 600;
}

.page-content .back-link:hover {
    text-decoration: underline;
}

/* ===== Activities Page ===== */
.activity-block {
    margin-bottom: 60px;
}

.activity-block h3 {
    font-family: var(--serif);
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 16px;
}

.activity-block p {
    font-size: 16px;
    line-height: 1.85;
    color: var(--text);
    margin-bottom: 12px;
}

.activity-block h4 {
    font-family: var(--serif);
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin-top: 24px;
    margin-bottom: 12px;
}

.activity-block ul {
    list-style: disc;
    padding-left: 24px;
}

.activity-block ul li {
    font-size: 16px;
    color: var(--text);
    margin-bottom: 8px;
    line-height: 1.7;
}

/* ===== Contact Page ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.contact-info-block {
    margin-bottom: 28px;
}

.contact-info-block h3 {
    font-family: var(--serif);
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.contact-info-block p {
    font-size: 16px;
    color: var(--text);
    line-height: 1.7;
}

.contact-info-block a {
    color: var(--primary);
}

.contact-info-block a:hover {
    text-decoration: underline;
}

.contact-map {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-soft);
}

.contact-map iframe {
    width: 100%;
    height: 400px;
    border: none;
}

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

    .page-header {
        padding: 120px 0 40px;
    }

    .page-header h1 {
        font-size: 30px;
    }
}
