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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #163b2a;
    background-color: #f2fbf6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: linear-gradient(135deg, #1b6b3f 0%, #2f8a4f 100%);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

/* Hamburger Menu Button */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1000;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background-color: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

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

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

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.nav-menu a:hover {
    opacity: 0.8;
}

/* Hero Section */
.hero {
    position: relative;
    color: #f7fff9;
    padding: 4rem 0;
    text-align: center;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Slideshow Container */
.slideshow-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: none;
    transition: opacity 1s ease-in-out;
}

.slide:nth-child(1) { animation: slide1 60s infinite; }
.slide:nth-child(2) { animation: slide2 60s infinite; }
.slide:nth-child(3) { animation: slide3 60s infinite; }
.slide:nth-child(4) { animation: slide4 60s infinite; }
.slide:nth-child(5) { animation: slide5 60s infinite; }

@keyframes slide1 {
    0% { opacity: 0; }
    2% { opacity: 0.85; }
    18% { opacity: 0.85; }
    20% { opacity: 0; }
    100% { opacity: 0; }
}

@keyframes slide2 {
    0% { opacity: 0; }
    20% { opacity: 0; }
    22% { opacity: 0.85; }
    38% { opacity: 0.85; }
    40% { opacity: 0; }
    100% { opacity: 0; }
}

@keyframes slide3 {
    0% { opacity: 0; }
    40% { opacity: 0; }
    42% { opacity: 0.85; }
    58% { opacity: 0.85; }
    60% { opacity: 0; }
    100% { opacity: 0; }
}

@keyframes slide4 {
    0% { opacity: 0; }
    60% { opacity: 0; }
    62% { opacity: 0.85; }
    78% { opacity: 0.85; }
    80% { opacity: 0; }
    100% { opacity: 0; }
}

@keyframes slide5 {
    0% { opacity: 0; }
    80% { opacity: 0; }
    82% { opacity: 0.85; }
    98% { opacity: 0.85; }
    100% { opacity: 0; }
}

/* Hero Overlay */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(27, 107, 63, 0.45);
    z-index: 2;
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 3;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.tagline {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

.mission {
    padding: 2rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.mission h2 {
    margin-bottom: 1rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

/* Announcements */
.announcements {
    padding: 3rem 0;
    background: white;
}

.announcements h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #1b6b3f;
}

.announcements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.announcement-card {
    background: #f9f9f9;
    padding: 1.5rem;
    border-left: 4px solid #667eea;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.announcement-card {
    background: #f9fff6;
    padding: 1.5rem;
    border-left: 4px solid #4caf50;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}
.announcement-card h3 {
    color: #1b6b3f;
    margin-bottom: 0.5rem;
}
/* =============================================
   PRAYER TIMES — Premium Live API Section
   ============================================= */
.prayer-times {
    padding: 5rem 0 4rem;
    background: linear-gradient(160deg, #0f3d22 0%, #1b6b3f 40%, #145c35 70%, #0a2e18 100%);
    position: relative;
    overflow: hidden;
}

/* Decorative background pattern */
.prayer-times::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(255,255,255,0.04) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,0.04) 0%, transparent 50%);
    pointer-events: none;
}

/* -- Section Header -- */
.pt-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.pt-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.pt-date-row {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 0.8rem;
}

.pt-date-badge {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50px;
    padding: 0.4rem 1.1rem;
    color: #e0ffe8;
    font-size: 0.9rem;
    font-weight: 500;
}

.pt-date-badge.hijri {
    background: rgba(255, 215, 0, 0.12);
    border-color: rgba(255, 215, 0, 0.25);
    color: #ffd700;
}

.pt-date-icon {
    font-size: 1rem;
}

/* -- API Status -- */
.pt-api-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.08);
    border-radius: 50px;
    padding: 0.3rem 0.9rem;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.7);
    margin-top: 0.3rem;
}

.pt-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffc107;
    animation: pulse-dot 1.5s infinite;
}

.pt-status-dot.live { background: #4caf50; animation: none; }
.pt-status-dot.error { background: #f44336; animation: none; }

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* -- Countdown -- */
.pt-countdown-wrapper {
    margin-bottom: 2.5rem;
}

.pt-countdown-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.05));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.1);
}

.pt-countdown-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 0.3rem;
}

.pt-countdown-prayer {
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffd700;
    margin-bottom: 1.2rem;
    text-shadow: 0 0 20px rgba(255,215,0,0.4);
}

.pt-countdown-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.pt-timer-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(0,0,0,0.25);
    border-radius: 12px;
    padding: 0.6rem 1rem;
    min-width: 64px;
}

.pt-timer-block span {
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.pt-timer-block small {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
}

.pt-timer-sep {
    font-size: 1.8rem;
    font-weight: 800;
    color: rgba(255,255,255,0.4);
    margin-top: -8px;
}

.pt-countdown-iqama {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
}

/* -- Prayer Cards -- */
.pt-cards-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.pt-card {
    background: rgba(255,255,255,0.07);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pt-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: transparent;
    transition: background 0.3s;
}

.pt-card:hover {
    background: rgba(255,255,255,0.12);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.pt-card.active-prayer {
    background: linear-gradient(135deg, rgba(76,175,80,0.3), rgba(27,107,63,0.3));
    border-color: rgba(76,175,80,0.5);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(76,175,80,0.25), 0 0 0 1px rgba(76,175,80,0.3);
}

.pt-card.active-prayer::before {
    background: linear-gradient(90deg, #4caf50, #81c784);
}

.pt-card.next-prayer {
    border-color: rgba(255, 215, 0, 0.4);
}

.pt-card.next-prayer::before {
    background: linear-gradient(90deg, #ffd700, #ffc107);
}

.pt-card-icon {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.pt-card-name {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 0.5rem;
}

.pt-card-time {
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.4rem;
    line-height: 1;
}

.pt-card-iqama-label {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.1rem;
}

.pt-card-iqama {
    font-size: 0.88rem;
    color: #ffd700;
    font-weight: 600;
}

.pt-active-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: #4caf50;
    color: white;
    font-size: 0.55rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 6px;
    border-radius: 50px;
}

/* Skeleton loaders */
.pt-card.skeleton {
    pointer-events: none;
}

.sk-line {
    background: rgba(255,255,255,0.08);
    border-radius: 6px;
    margin: 0.5rem auto;
    animation: shimmer 1.5s infinite ease-in-out;
}

.sk-name { width: 60%; height: 12px; }
.sk-time { width: 80%; height: 24px; }
.sk-iqama { width: 50%; height: 10px; }

@keyframes shimmer {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

/* -- Jumu'ah Banner -- */
.pt-jumuah-banner {
    background: linear-gradient(135deg, rgba(255,215,0,0.15), rgba(255,193,7,0.08));
    border: 1px solid rgba(255,215,0,0.3);
    border-radius: 14px;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
    color: #ffd700;
}

.pt-jumuah-icon { font-size: 1.8rem; }

.pt-jumuah-banner strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.pt-jumuah-banner p {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.75);
    margin: 0;
}

/* -- Ramadan Notice -- */
.ramadan-notice {
    background: linear-gradient(135deg, rgba(255,193,7,0.15), rgba(255,152,0,0.08));
    border: 1px solid rgba(255,193,7,0.35);
    border-radius: 14px;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.85);
}

.ramadan-notice span { font-size: 1.5rem; }
.ramadan-notice p { margin: 0; }
.ramadan-notice a {
    color: #ffd700;
    font-weight: 600;
    text-decoration: none;
}
.ramadan-notice a:hover { text-decoration: underline; }

/* -- API Credit -- */
.pt-credit {
    text-align: center;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.35);
    margin-top: 1rem;
}

.pt-credit a {
    color: rgba(255,255,255,0.55);
    text-decoration: none;
}
.pt-credit a:hover { color: #ffd700; }

/* =============================================
   RAMADAN SECTION — Premium
   ============================================= */
.ramadan {
    padding: 5rem 0;
    background: linear-gradient(160deg, #1a0a2e 0%, #2d1250 40%, #1a0a2e 100%);
    position: relative;
    overflow: hidden;
}

.ramadan::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 50% 50%, rgba(255,215,0,0.04) 0%, transparent 70%);
    pointer-events: none;
}

.ramadan-header {
    text-align: center;
    margin-bottom: 2rem;
}

.ramadan h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

.ramadan-subtitle {
    color: rgba(255,215,0,0.8);
    font-size: 1rem;
    font-weight: 500;
}

.ramadan-info-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.ramadan-info-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 50px;
    padding: 0.4rem 1rem;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.75);
}

.ramadan-info-icon { font-size: 1rem; }

/* Loading spinner */
.ramadan-loading {
    text-align: center;
    padding: 3rem;
    color: rgba(255,255,255,0.5);
}

.ramadan-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255,255,255,0.1);
    border-top-color: #ffd700;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Ramadan Table */
.ramadan-table-wrapper {
    overflow-x: auto;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.ramadan-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
    background: rgba(255,255,255,0.04);
}

.ramadan-table thead tr {
    background: linear-gradient(135deg, rgba(255,215,0,0.2), rgba(255,193,7,0.1));
}

.ramadan-table th {
    padding: 1rem 0.8rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #ffd700;
    border-bottom: 1px solid rgba(255,215,0,0.2);
    text-align: center;
    white-space: nowrap;
}

.ramadan-table td {
    padding: 0.85rem 0.8rem;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    text-align: center;
}

.ramadan-table tbody tr:hover {
    background: rgba(255,255,255,0.05);
}

.ramadan-table tbody tr.ramadan-today {
    background: linear-gradient(135deg, rgba(255,215,0,0.15), rgba(255,193,7,0.08));
    border-left: 3px solid #ffd700;
}

.ramadan-table tbody tr.ramadan-today td {
    color: #ffffff;
    font-weight: 600;
}

.ramadan-today-tag {
    background: #ffd700;
    color: #1a0a2e;
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 50px;
    margin-left: 4px;
    vertical-align: middle;
}

/* About Section */
.about {
    padding: 3rem 0;
    background: white;
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Slideshow Container About */
.slideshow-container-about {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide-about {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide-about:nth-child(1) { animation: slideAbout1 72s infinite; }
.slide-about:nth-child(2) { animation: slideAbout2 72s infinite; }
.slide-about:nth-child(3) { animation: slideAbout3 72s infinite; }
.slide-about:nth-child(4) { animation: slideAbout4 72s infinite; }
.slide-about:nth-child(5) { animation: slideAbout5 72s infinite; }
.slide-about:nth-child(6) { animation: slideAbout6 72s infinite; }

@keyframes slideAbout1 {
    0% { opacity: 0; }
    1.4% { opacity: 0.85; }
    13% { opacity: 0.85; }
    14.4% { opacity: 0; }
    100% { opacity: 0; }
}

@keyframes slideAbout2 {
    0% { opacity: 0; }
    14.4% { opacity: 0; }
    15.8% { opacity: 0.85; }
    27.4% { opacity: 0.85; }
    28.8% { opacity: 0; }
    100% { opacity: 0; }
}

@keyframes slideAbout3 {
    0% { opacity: 0; }
    28.8% { opacity: 0; }
    30.2% { opacity: 0.85; }
    41.8% { opacity: 0.85; }
    43.2% { opacity: 0; }
    100% { opacity: 0; }
}

@keyframes slideAbout4 {
    0% { opacity: 0; }
    43.2% { opacity: 0; }
    44.6% { opacity: 0.85; }
    56.2% { opacity: 0.85; }
    57.6% { opacity: 0; }
    100% { opacity: 0; }
}

@keyframes slideAbout5 {
    0% { opacity: 0; }
    57.6% { opacity: 0; }
    59% { opacity: 0.85; }
    70.6% { opacity: 0.85; }
    72% { opacity: 0; }
    100% { opacity: 0; }
}

@keyframes slideAbout6 {
    0% { opacity: 0; }
    72% { opacity: 0; }
    73.4% { opacity: 0.85; }
    85% { opacity: 0.85; }
    86.4% { opacity: 0; }
    100% { opacity: 0; }
}

/* About Overlay */
.about-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(27, 107, 63, 0.65);
    z-index: 2;
}

/* About Content */
.about-content {
    position: relative;
    z-index: 3;
}

.about h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #f9f9f9;
}

.about-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.about-item {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.about-item h3 {
    color: #2e7d32;
    margin-bottom: 1rem;
}

/* Events */
.events {
    padding: 3rem 0;
    background: #f4f4f4;
}

.events h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #1b6b3f;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.event-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.event-card:hover {
    transform: translateY(-5px);
}

.event-card-header {
    background: linear-gradient(135deg, #4caf50 0%, #2e7d32 100%);
    color: white;
    padding: 1.5rem;
}

.event-card-body {
    padding: 1.5rem;
}

.event-date {
    font-weight: bold;
    color: #2e7d32;
}

/* Khutbah */
.khutbah {
    padding: 3rem 0;
    background: white;
}

.khutbah h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #1b6b3f;
}

.khutbah-info {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

/* Donations */
.donations {
    padding: 3rem 0;
    background: white;
}

.donations h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #1b6b3f;
}

.donation-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.donation-card {
    background: linear-gradient(135deg, #f2fbf6 0%, #d8efe0 100%);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.donation-card:hover {
    transform: translateY(-5px);
}

.donation-card h3 {
    color: #1b6b3f;
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, #4caf50 0%, #2e7d32 100%);
    color: white;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.close {
    color: #aaa;
    float: right;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s;
}

/* Map container */
.map-container {
    margin-top: 1rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Footer styling (green theme) */
.footer {
    background: linear-gradient(135deg, #1b6b3f 0%, #2f8a4f 100%);
    color: white;
    text-align: center;
    padding: 2rem;
}
.footer p {
    margin-bottom: 0.25rem;
}

/* Donation modal small tweaks */
.donation-modal-content h2 {
    margin-bottom: 0.5rem;
    color: #154827;
}
.donation-account p {
    margin: 0.4rem 0;
}
.donation-note {
    margin-top: 0.8rem;
    color: #2f6e40;
}

.btn-secondary {
    padding: 0.4rem 0.6rem;
    border-radius: 4px;
    border: 1px solid rgba(0,0,0,0.06);
    background: #e6f4ea;
    color: #154827;
    cursor: pointer;
}

.close:hover {
    color: black;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 5px rgba(102, 126, 234, 0.3);
}

/* Contact */
.contact {
    padding: 3rem 0;
    background: #f4f4f4;
}

.contact h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #1e3c72;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.contact-info {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    height: fit-content;
}

.contact-info h3 {
    color: #1e3c72;
    margin-bottom: 1.5rem;
}

.contact-info p {
    margin-bottom: 1rem;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}



/* Social Media */
.social-media {
    margin-top: 2rem;
    text-align: center;
}

.social-media h3 {
    color: #1e3c72;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.social-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.social-link.facebook {
    background: linear-gradient(135deg, #4267B2 0%, #385a9e 100%);
}

.social-link.twitter {
    background: linear-gradient(135deg, #1DA1F2 0%, #1a8cd8 100%);
}

.social-link.youtube {
    background: linear-gradient(135deg, #FF0000 0%, #cc0000 100%);
}

.social-link.instagram {
    background: linear-gradient(135deg, #E4405F 0%, #fd1d1d 100%);
}

/* Floating Donation Widget */
.floating-donation-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #1b6b3f 0%, #2f8a4f 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    font-weight: bold;
    animation: pulse 2s infinite;
}

.floating-donation-widget:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
    padding: 15px 25px;
}

.widget-icon {
    font-size: 1.5rem;
    animation: bounce 1s infinite;
}

.widget-text {
    font-size: 1rem;
    white-space: nowrap;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(102, 126, 234, 0.8);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* Mobile responsive for widget */
@media (max-width: 768px) {
    .floating-donation-widget {
        bottom: 20px;
        right: 20px;
        padding: 12px 15px;
    }

    .widget-text {
        font-size: 0.9rem;
    }

    .widget-icon {
        font-size: 1.3rem;
    }
}

/* Responsive - Tablet and Mobile */
@media (max-width: 768px) {
    /* Navigation */
    .navbar {
        padding: 1rem 0;
    }

    .navbar .container {
        flex-wrap: wrap;
        position: relative;
    }

    .logo {
        font-size: 1.1rem;
        flex: 1;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background: linear-gradient(135deg, #1b6b3f 0%, #2f8a4f 100%);
        position: absolute;
        top: 60px;
        left: 0;
        padding: 1rem 0;
        gap: 0;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-menu a {
        display: block;
        padding: 1rem;
        font-size: 1rem;
    }

    /* Hero Section */
    .hero {
        min-height: 500px;
        padding: 3rem 0;
    }

    .hero h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
        line-height: 1.3;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    }

    .tagline {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
        text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    }

    .mission {
        padding: 1.5rem;
        margin-top: 1.5rem;
        backdrop-filter: blur(5px);
    }

    .mission h2 {
        font-size: 1.4rem;
        margin-bottom: 0.75rem;
    }

    .mission p {
        font-size: 1rem;
        line-height: 1.5;
    }

    /* About Section */
    .about {
        min-height: 500px;
        padding: 3rem 0;
    }

    .about h2 {
        font-size: 1.7rem;
        margin-bottom: 1.5rem;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    }

    .about-items {
        gap: 1.5rem;
    }

    .about-item {
        padding: 1.2rem;
        backdrop-filter: blur(5px);
    }

    .about-item h3 {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }

    .about-item p {
        font-size: 1rem;
        line-height: 1.5;
    }

    /* Announcements */
    .announcements {
        padding: 2rem 0;
    }

    .announcements h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .announcements-grid {
        gap: 1rem;
    }

    .announcement-card {
        padding: 1rem;
    }

    /* Prayer Times */
    .prayer-times {
        padding: 3rem 0;
    }

    .pt-header h2 {
        font-size: 1.7rem;
    }

    .pt-cards-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }

    .pt-card-time {
        font-size: 1.1rem;
    }

    .pt-timer-block span {
        font-size: 1.6rem;
    }

    .pt-timer-block {
        min-width: 52px;
    }

    .pt-countdown-prayer {
        font-size: 1.5rem;
    }

    /* Ramadan Table */
    .ramadan {
        padding: 3rem 0;
    }

    .ramadan h2 {
        font-size: 1.7rem;
    }

    .ramadan-table th,
    .ramadan-table td {
        padding: 0.7rem 0.5rem;
        font-size: 0.82rem;
    }

    /* Events */
    .events {
        padding: 2rem 0;
    }

    .events h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .events-grid {
        gap: 1rem;
    }

    .event-card-header {
        padding: 1rem;
    }

    .event-card-body {
        padding: 1rem;
    }

    /* Khutbah */
    .khutbah {
        padding: 2rem 0;
    }

    .khutbah h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .khutbah-info {
        padding: 1.5rem;
    }

    /* Ramadan */
    .ramadan {
        padding: 2rem 0;
    }

    /* Donations */
    .donations {
        padding: 2rem 0;
    }

    .donations h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .donation-types {
        gap: 1rem;
    }

    .donation-card {
        padding: 1.5rem;
    }

    .donation-card h3 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }

    /* Contact */
    .contact {
        padding: 2rem 0;
    }

    .contact h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-info {
        padding: 1.5rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .social-links {
        gap: 1rem;
    }

    .social-link {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    /* Map */
    .map-container {
        height: 250px;
    }

    /* Footer */
    .footer {
        padding: 1.5rem;
    }

    .footer p {
        font-size: 0.95rem;
    }

    /* Modal */
    .modal-content {
        width: 95%;
        margin: 20% auto;
        padding: 1.5rem;
    }

    .close {
        font-size: 1.8rem;
    }

    /* Form */
    .form-group input,
    .form-group textarea {
        padding: 0.6rem;
        font-size: 1rem;
    }

    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.95rem;
    }

    .container {
        padding: 0 15px;
    }
}

/* Extra Small Devices (max 480px) */
@media (max-width: 480px) {
    .logo {
        font-size: 0.95rem;
        line-height: 1.3;
    }

    .menu-toggle span {
        width: 25px;
    }

    .hero {
        min-height: 450px;
        padding: 2rem 0;
    }

    .hero h1 {
        font-size: 1.6rem;
        margin-bottom: 0.8rem;
        line-height: 1.3;
    }

    .tagline {
        font-size: 1rem;
        margin-bottom: 1.2rem;
    }

    .mission {
        padding: 1.2rem;
        margin-top: 1rem;
    }

    .mission h2 {
        font-size: 1.2rem;
    }

    .mission p {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .about {
        min-height: 450px;
        padding: 2rem 0;
    }

    .about h2 {
        font-size: 1.5rem;
        margin-bottom: 1.2rem;
    }

    .about-items {
        gap: 1rem;
    }

    .about-item {
        padding: 1rem;
    }

    .about-item h3 {
        font-size: 1.1rem;
    }

    .about-item p {
        font-size: 0.95rem;
    }

    h2 {
        font-size: 1.5rem !important;
    }

    .announcements h2,
    .prayer-times h2,
    .events h2,
    .khutbah h2,
    .ramadan h2,
    .donations h2,
    .contact h2 {
        font-size: 1.5rem;
        margin-bottom: 1.2rem;
    }

    /* Prayer Cards - stack to 2 columns on small mobile */
    .pt-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }

    /* Make Fajr card span full width since it's the first */
    .pt-card:first-child {
        grid-column: 1 / -1;
    }

    .pt-card {
        padding: 1rem 0.8rem;
    }

    .pt-card-time {
        font-size: 1.05rem;
    }

    .pt-card-name {
        font-size: 0.75rem;
    }

    .pt-card-iqama {
        font-size: 0.8rem;
    }

    .pt-timer-block {
        min-width: 46px;
        padding: 0.5rem 0.7rem;
    }

    .pt-timer-block span {
        font-size: 1.4rem;
    }

    .pt-countdown-prayer {
        font-size: 1.3rem;
    }

    .ramadan-table th,
    .ramadan-table td {
        padding: 0.6rem 0.4rem;
        font-size: 0.8rem;
    }

    .event-card-header {
        padding: 1rem;
    }

    .event-card-body {
        padding: 1rem;
    }

    .donation-card {
        padding: 1.2rem;
    }

    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .floating-donation-widget {
        bottom: 15px;
        right: 15px;
        padding: 10px 12px;
        font-size: 0.85rem;
    }

    .widget-icon {
        font-size: 1.2rem;
    }

    .widget-text {
        font-size: 0.8rem;
    }

    .modal-content {
        margin: 30% auto;
    }

    .container {
        padding: 0 12px;
    }

    .contact-form,
    .contact-info {
        padding: 1rem;
    }

    .map-container {
        height: 200px;
    }

    .footer {
        padding: 1.2rem;
    }

    .footer p {
        font-size: 0.9rem;
    }

    .btn {
        padding: 0.7rem 1.3rem;
        font-size: 0.95rem;
    }
}
