/* ===========================
   PAGE HERO BANNER
=========================== */

.page-hero {
    background: linear-gradient(135deg, #0f5132 0%, #198754 60%, #1a6b42 100%);
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
    text-align: center;
    color: #fff;
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,.12), transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: blur(60px);
}

.page-hero .breadcrumb {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
    color: rgba(255,255,255,.7);
    margin-bottom: 18px;
}

.page-hero .breadcrumb a {
    color: rgba(255,255,255,.7);
    transition: .3s;
}

.page-hero .breadcrumb a:hover { color: #fff; }

.page-hero .breadcrumb span { color: #FFD54F; }

.page-hero h1 {
    font-size: 54px;
    font-weight: 800;
    position: relative;
    z-index: 2;
    text-shadow: 0 4px 20px rgba(0,0,0,.2);
}

.page-hero p {
    font-size: 18px;
    color: rgba(255,255,255,.85);
    max-width: 600px;
    margin: 18px auto 0;
    position: relative;
    z-index: 2;
}

/* ===========================
   SECTION LABEL
=========================== */

.section-label {
    display: inline-block;
    background: #e7f7ed;
    color: #198754;
    padding: 7px 18px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 2px;
    margin-bottom: 14px;
}

.section-title {
    font-size: 40px;
    font-weight: 800;
    color: #111;
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-title span { color: #198754; }

.section-sub {
    color: #666;
    font-size: 17px;
    max-width: 580px;
    margin: 0 auto 50px;
}

/* ===========================
   ABOUT PAGE
=========================== */

.about-intro {
    padding: 90px 0;
}

.about-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.about-img-wrap {
    position: relative;
}

.about-img-wrap img {
    border-radius: 24px;
    width: 100%;
    object-fit: cover;
    box-shadow: 0 30px 70px rgba(0,0,0,.15);
}

.about-img-badge {
    position: absolute;
    bottom: -24px;
    right: -24px;
    background: #198754;
    color: #fff;
    padding: 22px 28px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(25,135,84,.35);
}

.about-img-badge h3 {
    font-size: 36px;
    font-weight: 800;
    line-height: 1;
}

.about-img-badge p {
    font-size: 13px;
    opacity: .85;
    margin-top: 4px;
}

.about-text h2 {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.about-text h2 span { color: #198754; }

.about-text p {
    color: #555;
    font-size: 16px;
    line-height: 1.9;
    margin-bottom: 18px;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 30px;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f0faf4;
    padding: 14px 18px;
    border-radius: 12px;
    font-weight: 600;
    color: #0f5132;
    font-size: 14px;
}

.about-feature i { color: #198754; font-size: 18px; }

/* Mission / Vision */

.mission-section {
    background: linear-gradient(135deg, #0f5132, #198754);
    padding: 90px 0;
    color: #fff;
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.mission-card {
    background: rgba(255,255,255,.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 22px;
    padding: 40px 30px;
    text-align: center;
    transition: .35s;
}

.mission-card:hover {
    background: rgba(255,255,255,.18);
    transform: translateY(-8px);
}

.mission-card .icon-wrap {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 22px;
    font-size: 30px;
}

.mission-card h3 {
    font-size: 22px;
    margin-bottom: 14px;
}

.mission-card p {
    color: rgba(255,255,255,.8);
    line-height: 1.8;
    font-size: 15px;
}

/* History Timeline */

.history-section {
    padding: 90px 0;
    background: #f8faf7;
}

.timeline {
    position: relative;
    max-width: 860px;
    margin: 50px auto 0;
    padding: 0 20px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #198754, #0f5132);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    justify-content: flex-end;
    padding-right: calc(50% + 44px);
    margin-bottom: 50px;
    position: relative;
}

.timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: calc(50% + 44px);
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 22px;
    transform: translateX(-50%);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #198754;
    border: 4px solid #f8faf7;
    box-shadow: 0 0 0 3px #198754;
    z-index: 2;
}

.timeline-card {
    background: #fff;
    border-radius: 18px;
    padding: 28px 30px;
    box-shadow: 0 10px 35px rgba(0,0,0,.08);
    width: 100%;
    transition: .3s;
}

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

.timeline-year {
    display: inline-block;
    background: #e7f7ed;
    color: #198754;
    font-weight: 700;
    font-size: 13px;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.timeline-card h4 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #111;
}

.timeline-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
}

/* Leadership */

.leadership-section {
    padding: 90px 0;
}

/* Leader boxes (board members) */
.leader-top-row,
.leader-mid-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.leader-box {
    background: #fff;
    border-radius: 16px;
    padding: 24px 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,.07);
    border-top: 4px solid #198754;
    transition: .3s;
}

.leader-box:hover { transform: translateY(-5px); }

.leader-box .leader-role {
    font-size: 12px;
    font-weight: 700;
    color: #198754;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.leader-box h4 {
    font-size: 16px;
    color: #111;
    margin-bottom: 6px;
    font-weight: 700;
}

.leader-box .leader-phone {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* Trustee table */
.trustee-table-wrap {
    overflow-x: auto;
    border-radius: 18px;
    box-shadow: 0 10px 35px rgba(0,0,0,.08);
    margin-top: 10px;
}

.trustee-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 400px;
}

.trustee-table thead tr {
    background: #0f5132;
    color: #fff;
}

.trustee-table th {
    padding: 14px 20px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-align: left;
}

.trustee-table td {
    padding: 14px 20px;
    font-size: 14px;
    color: #444;
    border-bottom: 1px solid #f0f0f0;
    text-align: left;
}

.trustee-table tr:last-child td { border-bottom: none; }

.trustee-table tr:nth-child(even) td { background: #f8faf7; }

.trustee-table tr:hover td { background: #e7f7ed; }

.trustee-table td:first-child { font-weight: 700; color: #198754; width: 60px; }

/* About gallery preview */
.about-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 40px;
}

.about-gallery-grid img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,.1);
    transition: .35s;
}

.about-gallery-grid img:hover { transform: scale(1.03); }

/* ===========================
   PROGRAMS PAGE
=========================== */

.programs-section {
    padding: 90px 0;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.program-card {
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,.08);
    transition: .35s;
}

.program-card:hover { transform: translateY(-10px); }

.program-card-top {
    background: linear-gradient(135deg, #0f5132, #198754);
    padding: 40px 30px;
    text-align: center;
    color: #fff;
}

.program-card-top i {
    font-size: 50px;
    margin-bottom: 16px;
    opacity: .9;
}

.program-card-top h3 {
    font-size: 22px;
    font-weight: 700;
}

.program-card-body {
    padding: 30px;
}

.program-card-body p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 15px;
}

.program-tag {
    display: inline-block;
    background: #e7f7ed;
    color: #198754;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin: 4px 4px 4px 0;
}

.program-enroll {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    color: #198754;
    font-weight: 700;
    font-size: 15px;
    transition: .3s;
}

.program-enroll:hover { gap: 14px; }

/* Madarasa highlight */

.madarasa-highlight {
    background: #f0faf4;
    padding: 90px 0;
}

.madarasa-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.madarasa-text h2 {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.madarasa-text h2 span { color: #198754; }

.madarasa-text p {
    color: #555;
    font-size: 16px;
    line-height: 1.9;
    margin-bottom: 18px;
}

.madarasa-list {
    list-style: none;
    margin: 24px 0;
}

.madarasa-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
    color: #444;
    font-size: 15px;
}

.madarasa-list li i {
    color: #198754;
    font-size: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.madarasa-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.m-stat {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,.07);
}

.m-stat h3 {
    font-size: 32px;
    color: #198754;
    font-weight: 800;
}

.m-stat p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

/* ===========================
   GALLERY PAGE
=========================== */

.gallery-section {
    padding: 90px 0;
}

.gallery-filter {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.filter-btn {
    padding: 10px 24px;
    border-radius: 30px;
    border: 2px solid #198754;
    background: transparent;
    color: #198754;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: .3s;
    font-family: 'Poppins', sans-serif;
}

.filter-btn:hover,
.filter-btn.active {
    background: #198754;
    color: #fff;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-item {
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, #0f5132, #198754);
    box-shadow: 0 10px 30px rgba(0,0,0,.1);
    cursor: pointer;
    transition: .35s;
}

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

.gallery-item.tall { grid-row: span 2; aspect-ratio: unset; }

.gallery-item.wide { grid-column: span 2; }

/* Gallery item real images */
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: .35s;
}

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

.gallery-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.6);
    gap: 12px;
}

.gallery-placeholder i { font-size: 48px; }

.gallery-placeholder span { font-size: 14px; font-weight: 500; }

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15,81,50,.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: .35s;
}

.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-overlay i {
    font-size: 36px;
    color: #fff;
}

/* Gallery "Share Your Moments" CTA */
.upload-cta {
    text-align: center;
    margin-top: 60px;
    padding: 50px;
    background: #f0faf4;
    border-radius: 24px;
}

/* Salah timings note box */
.timing-note {
    background: #e7f7ed;
    border-radius: 16px;
    padding: 24px 30px;
    margin-top: 30px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

/* ===========================
   CONTACT PAGE
=========================== */

.contact-section {
    padding: 90px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 60px;
    align-items: start;
}

.contact-info h2 {
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
}

.contact-info h2 span { color: #198754; }

.contact-info > p {
    color: #666;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 36px;
}

.contact-detail {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 28px;
}

.contact-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #e7f7ed;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #198754;
    flex-shrink: 0;
}

.contact-detail-text h4 {
    font-size: 16px;
    color: #111;
    margin-bottom: 4px;
}

.contact-detail-text p,
.contact-detail-text a {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
    transition: .3s;
}

.contact-detail-text a:hover { color: #198754; }

.contact-social {
    display: flex;
    gap: 12px;
    margin-top: 36px;
}

.contact-social a {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #198754;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: .3s;
}

.contact-social a:hover {
    background: #0f5132;
    transform: translateY(-4px);
}

/* Contact Form */

.contact-form-wrap {
    background: #fff;
    border-radius: 24px;
    padding: 50px 44px;
    box-shadow: 0 20px 60px rgba(0,0,0,.1);
}

.contact-form-wrap h3 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #111;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    color: #333;
    background: #fafafa;
    transition: .3s;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: #198754;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(25,135,84,.08);
}

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

.submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #198754, #0f5132);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: .35s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(25,135,84,.35);
}

/* Map */

.map-section {
    padding: 0 0 90px;
}

.map-wrap {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,.1);
    height: 420px;
    background: linear-gradient(135deg, #0f5132, #198754);
}

.map-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.map-overlay {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 20px;
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    box-shadow: 0 10px 30px rgba(0,0,0,.18);
    z-index: 2;
}

.map-overlay-text {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.map-overlay-text i {
    font-size: 22px;
    color: #198754;
    flex-shrink: 0;
}

.map-overlay-text p {
    font-size: 15px;
    font-weight: 600;
    color: #0f5132;
    margin: 0;
    line-height: 1.4;
}

.map-overlay a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #198754;
    color: #fff;
    padding: 11px 22px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 14px;
    transition: .3s;
    white-space: nowrap;
}

.map-overlay a:hover {
    background: #0f5132;
    transform: translateY(-2px);
}

/* ===========================
   SALAH TIMINGS PAGE
=========================== */

.timings-section {
    padding: 90px 0;
}

.timings-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.timings-text h2 {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.timings-text h2 span { color: #198754; }

.timings-text p {
    color: #555;
    font-size: 16px;
    line-height: 1.9;
}

.today-card {
    background: linear-gradient(135deg, #0f5132, #198754);
    border-radius: 24px;
    padding: 40px;
    color: #fff;
    box-shadow: 0 20px 60px rgba(15,81,50,.3);
}

.today-card h3 {
    font-size: 20px;
    margin-bottom: 6px;
    opacity: .85;
}

.today-card .date {
    font-size: 15px;
    opacity: .7;
    margin-bottom: 30px;
}

.today-prayers {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.today-prayer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255,255,255,.1);
    border-radius: 12px;
    padding: 14px 20px;
    transition: .3s;
}

.today-prayer:hover { background: rgba(255,255,255,.18); }

.today-prayer .name {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.today-prayer .name i { font-size: 18px; opacity: .8; }

.today-prayer .time {
    font-weight: 700;
    font-size: 17px;
    color: #FFD54F;
}

.weekly-table-wrap {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0,0,0,.08);
}

.weekly-table-wrap h3 {
    padding: 28px 36px;
    font-size: 22px;
    background: #f8faf7;
    border-bottom: 1px solid #eee;
}

.weekly-table {
    width: 100%;
    border-collapse: collapse;
}

.weekly-table th {
    background: #0f5132;
    color: #fff;
    padding: 16px 20px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
}

.weekly-table td {
    padding: 16px 20px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
    font-size: 15px;
    color: #444;
}

.weekly-table tr:last-child td { border-bottom: none; }

.weekly-table tr:nth-child(even) td { background: #f8faf7; }

.weekly-table tr:hover td { background: #e7f7ed; }

.weekly-table td:first-child {
    font-weight: 700;
    color: #0f5132;
    text-align: left;
    padding-left: 36px;
}

/* ===========================
   RESPONSIVE
=========================== */

/* --- Tablet (≤1100px) --- */
@media (max-width: 1100px) {

    .about-intro-grid,
    .madarasa-grid,
    .contact-grid,
    .timings-intro-grid { grid-template-columns: 1fr; }

    .leader-top-row,
    .leader-mid-row { grid-template-columns: repeat(3, 1fr); }

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

    .about-intro { padding: 70px 0; }

    .about-img-wrap { margin-bottom: 50px; }

    .about-img-badge {
        right: 16px;
        bottom: -20px;
        padding: 16px 22px;
    }

    .about-img-badge h3 { font-size: 28px; }

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

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

    .gallery-item.tall { grid-row: span 1; aspect-ratio: 4/3; }

    .gallery-item.wide { grid-column: span 1; }

    .timings-intro-grid { margin-bottom: 50px; }

    .page-hero { padding: 80px 0 60px; }

    .page-hero h1 { font-size: 44px; }

    .madarasa-grid { gap: 40px; }

    .contact-grid { gap: 40px; }

    .contact-form-wrap { padding: 40px 32px; }

    .weekly-table-wrap { overflow-x: auto; }
}

/* --- Mobile (≤768px) --- */
@media (max-width: 768px) {

    .page-hero { padding: 70px 0 50px; }

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

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

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

    .section-sub { font-size: 15px; }

    /* About board members */
    .leader-top-row,
    .leader-mid-row { grid-template-columns: 1fr; gap: 14px; }

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

    /* About */
    .about-intro { padding: 60px 0; }

    .about-text h2 { font-size: 30px; }

    .about-img-badge {
        position: static;
        display: inline-flex;
        align-items: center;
        gap: 14px;
        margin-top: 20px;
        border-radius: 14px;
        padding: 14px 20px;
        text-align: left;
    }

    .about-img-badge h3 { font-size: 24px; }

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

    /* Mission */
    .mission-section { padding: 60px 0; }

    .mission-grid,
    .leadership-grid,
    .programs-grid { grid-template-columns: 1fr; }

    .mission-card { padding: 30px 22px; }

    /* Timeline */
    .history-section { padding: 60px 0; }

    .timeline { padding: 0 10px; }

    .timeline::before { left: 16px; transform: none; }

    .timeline-item,
    .timeline-item:nth-child(even) {
        padding-right: 0;
        padding-left: 46px;
        justify-content: flex-start;
    }

    .timeline-dot {
        left: 7px;
        top: 22px;
        transform: none;
        border-color: #f8faf7;
    }

    .timeline-card { padding: 20px 18px; }

    /* Programs */
    .programs-section { padding: 60px 0; }

    .madarasa-highlight { padding: 60px 0; }

    .madarasa-text h2 { font-size: 30px; }

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

    /* Gallery */
    .gallery-section { padding: 60px 0; }

    .upload-cta { padding: 30px 18px; margin-top: 40px; border-radius: 18px; }

    .upload-cta h3 { font-size: 20px !important; }

    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

    .gallery-item.tall { grid-row: span 1; aspect-ratio: 4/3; }

    .gallery-item.wide { grid-column: span 1; }

    .gallery-filter { gap: 8px; }

    .filter-btn { padding: 8px 16px; font-size: 13px; }

    /* Contact */
    .contact-section { padding: 60px 0; }

    .contact-info h2 { font-size: 30px; }

    .contact-form-wrap { padding: 28px 20px; }

    .form-row { grid-template-columns: 1fr; }

    .map-section { padding: 0 0 60px; }

    .map-wrap { height: 320px; }

    .map-overlay {
        left: 12px;
        right: 12px;
        bottom: 12px;
        padding: 12px 14px;
        flex-direction: column;
        align-items: flex-start;
    }

    .map-overlay-text p { font-size: 14px; }

    .map-overlay a { width: 100%; justify-content: center; }

    /* Timings */
    .timings-section { padding: 60px 0; }

    .timings-text h2 { font-size: 30px; }

    .today-card { padding: 28px 22px; }

    .timing-note { padding: 18px 16px; gap: 10px; }

    .timing-note p { font-size: 14px !important; }

    /* Allow long prayer-time notes to wrap without overflowing */
    .today-prayer .time {
        font-size: 14px;
        text-align: right;
        white-space: normal;
        line-height: 1.4;
        max-width: 60%;
    }

    .weekly-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

    .weekly-table { min-width: 520px; }

    .weekly-table th,
    .weekly-table td { padding: 12px 10px; font-size: 13px; }

    .weekly-table td:first-child { padding-left: 14px; }
}

/* --- Small mobile (≤480px) --- */
@media (max-width: 480px) {

    .page-hero h1 { font-size: 28px; }

    .page-hero p { font-size: 14px; }

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

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

    .gallery-item.tall,
    .gallery-item.wide { grid-row: span 1; grid-column: span 1; aspect-ratio: 4/3; }

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

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

    .contact-form-wrap { padding: 22px 16px; }

    .today-card { padding: 22px 16px; }

    .today-prayer { padding: 12px 14px; }

    .today-prayer .time { font-size: 15px; }

    .timings-text h2 { font-size: 26px; }

    .mission-card .icon-wrap { width: 58px; height: 58px; font-size: 24px; }

    /* Today's prayer card — stack name/time rows neatly */
    .today-prayer .time {
        font-size: 13px;
        max-width: 55%;
    }

    .today-prayer .name { gap: 8px; font-size: 14px; }
}

/* --- Very small mobile (≤380px) --- */
@media (max-width: 380px) {

    .page-hero h1 { font-size: 25px; }

    .page-hero p { font-size: 13px; }

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

    .section-sub { font-size: 14px; }

    .about-text h2,
    .madarasa-text h2,
    .timings-text h2,
    .contact-info h2 { font-size: 26px; }

    .today-card { padding: 22px 14px; }

    .today-prayer { padding: 10px 12px; gap: 8px; }

    .today-prayer .time { max-width: 50%; font-size: 12.5px; }

    .mission-card { padding: 24px 18px; }

    .program-card-body { padding: 22px 18px; }

    .form-group input,
    .form-group textarea,
    .form-group select { padding: 12px 14px; font-size: 14px; }

    .map-wrap { height: 280px; }
}
