/* Root Variables */
:root {
    --primary-color: #e31e24;
    --primary-dark: #b71c1c;
    --secondary-color: #ff5252;
    --accent-color: #ff8a80;
    --text-color: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --light-bg: #fff5f5;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

html,
body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
    max-width: 100%;
}

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

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

ul {
    list-style: none;
}

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

section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 30px;
}

.section-title h2 {
    font-size: 40px;
    color: var(--primary-dark);
    position: relative;
    padding-bottom: 5px;
    margin-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0; /* Default to left */
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* If not left-aligned, center it */
.section-title:not(.text-left) h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.text-left {
    text-align: left !important;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(227, 30, 36, 0.3);
}

/* Header */
.header {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05); /* Subtle border instead of heavy shadow */
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo a {
    display: flex;
    align-items: center;
}

.logo img {
    height: 70px;
    width: auto;
    transition: var(--transition);
}

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

.nav-list {
    display: flex;
    gap: 35px;
    align-items: center; /* Align button with links */
}

.nav-list a {
    font-weight: 500;
    color: var(--text-color);
    font-size: 1rem;
    position: relative;
    display: flex;
    align-items: center;
}

.nav-list li a.nav-donate-btn {
    color: #ffffff !important;
    padding: 10px 25px !important;
    font-size: 0.95rem !important;
    border-radius: 50px;
    transition: var(--transition);
}

.nav-list li a.nav-donate-btn::after {
    display: none;
}

.nav-list li a.nav-donate-btn:hover {
    transform: scale(1.05);
    color: #ffffff !important;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

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

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

/* Hero Section & Slider */
.hero {
    height: 90vh;
    position: relative;
    overflow: hidden;
    margin-top: 0;
    padding: 0; /* Remove default section padding */
}

.hero-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.1); /* Default scale for zoom-out effect */
}

.slide.active {
    opacity: 1;
    z-index: 1;
    transform: scale(1); /* Zoom in to normal scale */
    transition: opacity 1.2s ease-in-out, transform 8s linear;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.7));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    color: var(--white);
    text-align: center;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    transform: translateY(50px);
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0;
}

.slide.active .hero-content {
    transform: translateY(0);
    opacity: 1;
}

.hero-content h1 {
    font-size: 50px;
    margin-bottom: 25px;
    font-weight: 800;
    line-height: 1;
    text-shadow: 2px 2px 15px rgba(0,0,0,0.6);
    letter-spacing: -1px;
}

.hero-content p {
    font-size: 1.4rem;
    margin-bottom: 45px;
    text-shadow: 1px 1px 8px rgba(0,0,0,0.6);
    font-weight: 400;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Slider Controls */
.slider-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.dot.active {
    background: var(--primary-color);
    width: 35px;
    border-radius: 20px;
    border-color: rgba(255,255,255,0.5);
}

.slider-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 50px;
    transform: translateY(-50%);
    z-index: 10;
    pointer-events: none;
}

.nav-btn {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.3);
    pointer-events: auto;
    font-size: 1.2rem;
}

.nav-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.1);
}

/* Vision & Mission Section */
.vision-mission {
    padding: 100px 0;
    background: var(--white);
}

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

.vm-card {
    padding: 50px;
    background: var(--white);
    border-radius: 25px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.vm-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--primary-color);
    transition: var(--transition);
}

.vm-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(227, 30, 36, 0.1);
}

.vm-card:hover::before {
    width: 10px;
}

.vm-icon-box {
    width: 70px;
    height: 70px;
    background: var(--light-bg);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 10px;
    transition: var(--transition);
}

.vm-card:hover .vm-icon-box {
    background: var(--primary-color);
    color: var(--white);
    transform: rotateY(180deg);
}

.vm-card h3 {
    font-size: 2rem;
    color: var(--primary-dark);
    margin: 0;
}

.vm-card p {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
}

.vm-bg-icon {
    position: absolute;
    bottom: -20px;
    right: -20px;
    font-size: 12rem;
    color: var(--primary-color);
    opacity: 0.03;
    transition: var(--transition);
}

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

/* Service Rows (Alternating) */
.services-rows {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.service-row {
    display: flex;
    align-items: center;
    gap: 60px;
}

.service-row:nth-child(even) {
    flex-direction: row-reverse;
}

.service-row-content {
    flex: 1.5;
}

.service-row-content h2 {
    color: var(--primary-dark);
    margin-bottom: 20px;
    font-size: 2.2rem;
}

.service-row-img {
    flex: 1;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.service-row-img img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    transition: var(--transition);
}

.service-row:hover .service-row-img img {
    transform: scale(1.05);
}

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

.service-row-content h3 {
    font-size: 2.2rem;
    color: var(--primary-dark);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.service-row-content h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
}

.service-row-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 30px;
}

/* Service Cards (Keeping for other pages if needed) */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* About Summary */
.about-summary {
    display: flex;
    align-items: center;
    gap: 50px;
    background: var(--light-bg);
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary-dark);
}

.about-img img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.about-grid {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-img, .about-text {
    flex: 1;
}

/* Gallery Teaser */
.gallery-teaser-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.gallery-item {
    height: 250px;
    border-radius: 10px;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Contact Section */
.contact-home {
    background: var(--light-bg);
    padding: 100px 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    align-items: flex-start;
}

.info-icon {
    width: 55px;
    height: 55px;
    background: var(--white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.info-item:hover .info-icon {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-5px);
}

.info-text h4 {
    color: var(--primary-dark);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.contact-form-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--primary-dark);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border-radius: 10px;
    border: 1px solid #eee;
    background: #fdfdfd;
    transition: var(--transition);
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(227, 30, 36, 0.05);
}

.reg-details {
    margin-top: 40px;
    background: #1a1a1a;
    color: white;
    padding: 30px;
    border-radius: 15px;
}

.reg-details h4 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* Gallery Page & Filter */
.gallery-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    background: var(--white);
    border: 1px solid #eee;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(227, 30, 36, 0.2);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.gallery-item-card {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

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

.gallery-img-box {
    height: 300px;
    overflow: hidden;
    position: relative;
}

.gallery-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item-card:hover .gallery-img-box img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(227, 30, 36, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

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

.gallery-overlay i {
    color: white;
    font-size: 2rem;
}

.gallery-info {
    padding: 20px;
    background: white;
    text-align: center;
}

.gallery-info h4 {
    margin: 0;
    color: var(--primary-dark);
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 70vh;
    position: relative;
}

.lightbox-img {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 10px;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-close:hover {
    color: var(--primary-color);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 50px;
    pointer-events: none;
}

.lb-btn {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.1);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
    transition: var(--transition);
}

.lb-btn:hover {
    background: var(--primary-color);
}

.lightbox-thumbs {
    position: absolute;
    bottom: 30px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 0 20px;
    overflow-x: auto;
}

.thumb-item {
    width: 80px;
    height: 60px;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.5;
    transition: var(--transition);
    border: 2px solid transparent;
}

.thumb-item.active {
    opacity: 1;
    border-color: var(--primary-color);
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.footer {
    background: #1a1a1a;
    color: var(--white);
    padding: 70px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h3 {
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-color);
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

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

.footer-col.contact p {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    line-height: 1.6;
}

.footer-col.contact p i {
    width: 20px;
    color: var(--primary-color);
    text-align: center;
    margin-top: 5px;
}

.footer-col.contact p a:hover {
    color: var(--primary-color);
}

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

/* Scroll To Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
}

.scroll-to-top:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Donation Popup */
.donation-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    padding: 20px;
}

.donation-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.donation-popup-content {
    background: var(--white);
    width: 100%;
    max-width: 400px;
    border-radius: 20px;
    padding: 30px;
    position: relative;
    text-align: center;
    transform: translateY(30px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.donation-popup-overlay.active .donation-popup-content {
    transform: translateY(0) scale(1);
}

.donation-popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #888;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
}

.donation-popup-close:hover {
    color: var(--primary-color);
}

.donation-popup-body h3 {
    color: var(--primary-dark);
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.donation-popup-body p {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.popup-image {
    margin-bottom: 25px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.popup-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.popup-donate-btn {
    width: 100%;
    padding: 12px;
    font-size: 1.1rem;
    display: block;
    text-align: center;
}

/* Modern Mobile Menu (Astra Style) */
@media (max-width: 992px) {
    .header {
        background: #ffffff !important;
        padding: 20px 0 !important; /* Increased space back as requested */
        box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    }

    .container { padding: 0 15px; }

    .header-wrapper {
        padding: 0 !important; /* Remove internal padding */
    }
    
    .logo img {
        height: 60px !important; /* Smaller logo for mobile */
        max-width: 100%;
        filter: none !important; /* Original logo colors */
    }

    .nav-list {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        height: auto;
        background: var(--white);
        display: flex !important;
        flex-direction: column;
        padding: 20px 0;
        z-index: 999;
        transform: translateY(-10px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        border-top: 1px solid #eee;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    }

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

    .nav-list li {
        width: 100%;
        margin: 0;
        border-bottom: 1px solid #f9f9f9;
        padding: 0 25px;
    }

    .nav-list li a {
        display: block;
        padding: 15px 0;
        font-size: 1.1rem;
        font-weight: 500;
        color: #333; /* Professional dark color */
        width: 100%;
        transition: 0.3s ease;
    }

    .nav-list li.donate-li {
        border-bottom: none;
        padding-top: 10px;
    }

    .nav-donate-btn {
        color: #ffffff !important;
        text-align: center;
        display: block !important;
        padding: 12px !important;
        margin-top: 10px;
    }

    /* Mobile Toggle Button (Red box with white lines) */
    .nav-mobile-toggle {
        width: 40px;
        height: 40px;
        background: var(--primary-color);
        border-radius: 4px;
        cursor: pointer;
        z-index: 1100;
        position: relative; /* Base for absolute spans */
    }

    .nav-mobile-toggle span {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 22px;
        height: 2px; /* Slightly thinner */
        background: #ffffff !important;
        transition: all 0.3s ease;
        border-radius: 1px;
        transform-origin: center; /* Ensure rotation is from center */
    }

    /* Initial Hamburger State */
    .nav-mobile-toggle span:nth-child(1) { transform: translate(-50%, -50%) translateY(-6px); }
    .nav-mobile-toggle span:nth-child(2) { transform: translate(-50%, -50%); opacity: 1; }
    .nav-mobile-toggle span:nth-child(3) { transform: translate(-50%, -50%) translateY(6px); }

    /* Small 'X' Transformation */
    .nav-mobile-toggle.open span {
        width: 16px; /* Smaller X */
    }
    .nav-mobile-toggle.open span:nth-child(1) {
        transform: translate(-50%, -50%) rotate(45deg);
    }
    .nav-mobile-toggle.open span:nth-child(2) {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0);
    }
    .nav-mobile-toggle.open span:nth-child(3) {
        transform: translate(-50%, -50%) rotate(-45deg);
    }

    .header-wrapper {
        justify-content: space-between;
    }

    .about-grid {
        flex-direction: column;
        gap: 40px;
    }

    .contact-wrapper,
    .donation-wrapper,
    .donation-card {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }
    
    .bank-side, .qr-side {
        padding: 30px !important;
        border-right: none !important;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .bank-side {
        text-align: center;
    }

    .bank-side h3,
    .bank-side .detail-row p {
        justify-content: center;
    }

    .bank-side > div:last-child {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center;
    }

    .service-row, 
    .service-row:nth-child(even) {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .service-row-img img {
        height: 350px;
    }

    .service-row-content h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .section-title.text-left {
        text-align: center !important;
    }

    .section-title.text-left h2::after {
        left: 50% !important;
        transform: translateX(-50%) !important;
    }

    /* Keep About page & Home page About section titles left-aligned on mobile */
    .about-full .section-title.text-left,
    .about-summary .section-title.text-left {
        text-align: left !important;
    }
    .about-full .section-title.text-left h2::after,
    .about-summary .section-title.text-left h2::after {
        left: 0 !important;
        transform: none !important;
    }
}

@media (max-width: 768px) {
    section { padding: 60px 0; }
    
    .section-title h2 { font-size: 2rem; }
    
    .hero-content h1 { font-size: 2.5rem; }
    .hero-content p { font-size: 1rem; }

    .vision-mission-grid,
    .gallery-grid,
    .mission-vision-grid,
    .vm-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .mobile-center {
        text-align: center !important;
    }

    .mobile-center h2::after {
        left: 50% !important;
        transform: translateX(-50%) !important;
    }

    .vm-card {
        padding: 20px; /* More space for content */
        width: 100%;
    }

    .vm-card h3 {
        font-size: 1.6rem; /* Smaller heading */
    }

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

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

    .lightbox-nav {
        padding: 0 20px;
    }

    .lb-btn {
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 576px) {
    .hero { height: 75vh; }
    .hero-content h1 { 
        font-size: 35px; 
        margin-bottom: 15px;
        line-height: 1.2;
    }
    .hero-content p { 
        font-size: 1rem; 
        margin-bottom: 30px;
        line-height: 1.6;
    }
    
    .hero-btns {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }

    .hero-btns .btn {
        width: 100%;
        max-width: 250px;
        padding: 15px 20px;
        border-radius: 50px !important; /* Ensure they are rounded buttons, not circles */
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .contact-form-card {
        padding: 25px;
    }

    .info-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }

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

    .lightbox-thumbs {
        display: none;
    }

    .slider-nav {
        padding: 0 10px;
    }

    .prev-slide, .next-slide {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
}
