/* ========================================
   COMPREHENSIVE RESPONSIVE ENHANCEMENTS
   ======================================== */

/* Mobile First Approach - General Improvements */
@media (max-width: 575px) {

    /* Container padding adjustments */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Hero Section */
    .header-hero-content {
        padding: 1rem 0.5rem;
        margin-top: 30px;
    }

    .header-hero-content .header-title {
        font-size: 1.5rem !important;
        line-height: 1.3;
        padding: 0 10px;
    }

    .header-hero-content .text {
        font-size: 0.9rem;
        line-height: 1.5;
        padding: 0 10px;
    }

    .header-hero-image img {
        max-width: 80%;
        height: auto;
    }

    /* Section Spacing */
    .pt-70 {
        padding-top: 40px !important;
    }

    .pb-100 {
        padding-bottom: 50px !important;
    }

    /* About Section */
    .about-area .row {
        margin: 0;
    }

    .about-image img {
        max-width: 90%;
        margin: 0 auto;
        margin-top: 20px;
        display: block;
    }

    .about-content {
        padding: 0 10px;
    }

    /* Testimonials */
    .single-testimonial {
        padding: 20px 15px;
    }

    .testimonial-text .text {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    /* Single line for testimonials */
    #testimonialSlider .single-testimonial {
        width: 100% !important;
        margin: 0 auto !important;
        padding: 20px 15px !important;
    }

    /* Footer */
    .footer-area {
        padding-top: 150px !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .footer-area .container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .footer-widget {
        padding-top: 50px !important;
        padding-bottom: 50px !important;
    }

    .subscribe-area {
        padding: 20px 5px;
        /* Reduced side padding */
    }

    .topic-text {
        font-size: 1.3rem !important;
        display: block !important;
        margin: 0 auto 1.5rem auto !important;
        text-align: center;
        width: fit-content;
    }

    .right-side .button {
        display: block !important;
        text-align: center;
        margin: 15px auto !important;
    }

    .right-side .button input[type="button"] {
        margin-left: 0 !important;
    }

    .input-box input,
    .message-box textarea {
        font-size: 14px;
        text-align: center;
        /* Better centering for mobile */
    }

    .subscribe-area .content .right-side {
        width: 100% !important;
        margin-left: 0 !important;
        padding: 0 !important;
    }
}

/* Tablet Devices */
@media (min-width: 576px) and (max-width: 991px) {
    .header-hero-content .header-title {
        font-size: 2rem !important;
    }

    .section-capsule {
        padding: 0.7rem 2.5rem !important;
    }

    .section-capsule h1 {
        font-size: 1.4rem !important;
    }

    .about-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .stats-container {
        flex-wrap: wrap;
        justify-content: center;
    }

    .single-stat {
        width: 45%;
        min-width: 250px;
    }

    .single-stat h2 {
        font-size: 3rem;
    }
}

/* Large Tablets and Small Desktops */
@media (min-width: 992px) and (max-width: 1199px) {
    .header-hero-content .header-title {
        font-size: 2.5rem;
    }

    .section-capsule h1 {
        font-size: 1.45rem !important;
    }

    .about-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Extra Small Devices - Additional Fixes */
@media (max-width: 375px) {
    .header-hero-content .header-title {
        font-size: 1.3rem !important;
    }

    .section-capsule {
        padding: 0.6rem 1.5rem !important;
        min-width: auto;
    }

    .section-capsule h1 {
        font-size: 1.2rem !important;
    }

    .single-stat h2 {
        font-size: 2rem !important;
    }

    .about-card {
        padding: 1rem;
    }

    .card-icon {
        width: 50px;
        height: 50px;
    }

    .card-icon img {
        max-width: 28px;
    }
}

/* Landscape Mobile Devices */
@media (max-height: 500px) and (orientation: landscape) {
    .header-hero-content {
        padding-top: 80px;
    }

    .header-hero-image {
        padding-top: 20px;
    }

    .pt-70 {
        padding-top: 30px !important;
    }
}

/* Ensure all images are responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Prevent horizontal overflow */
body,
html {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Make buttons more touch-friendly on mobile */
@media (max-width: 767px) {

    .btn-donate,
    .quote,
    .main-btn,
    button {
        min-height: 44px;
        padding: 12px 24px;
        font-size: 15px;
    }
}

/* Improved text readability on small screens */
@media (max-width: 575px) {
    p {
        font-size: 15px;
        line-height: 1.6;
    }

    h1 {
        font-size: 1.8rem;
        line-height: 1.2;
    }

    h2 {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    h3 {
        font-size: 1.3rem;
    }

    h4 {
        font-size: 1.1rem;
    }
}

/* Fix for section capsule on very small screens */
@media (max-width: 480px) {
    .section-capsule {
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Stats Container Responsiveness */
@media (max-width: 1199px) {
    .stats-container {
        gap: 20px;
        padding: 20px;
    }

    .single-stat {
        width: 100%;
        max-width: 300px;
        margin: 10px auto;
    }
}

/* Service Cards Responsive */
@media (max-width: 767px) {
    .card-body {
        padding: 20px 15px;
    }

    .service-img {
        height: 150px;
    }
}

/* Footer Responsive Improvements */
@media (max-width: 1199px) {
    .footer-widget .row>div {
        margin-bottom: 30px;
    }

    .footer-about,
    .footer-link,
    .footer-contact {
        text-align: center;
    }

    .footer-about .social {
        justify-content: center;
    }
}

/* Fix for Business Partners alignment */
.partnears {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 30px;
    padding: 20px;
}

.partnears img {
    max-width: 120px;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}



/* ========================================
   SECTION HEADINGS STYLING
   ======================================== */
.section-capsule {
    display: inline-block;
    background: linear-gradient(90deg, #8e2de2, #4a00e0);
    border-radius: 50px;
    padding: 10px 40px;
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.4);
    margin-bottom: 30px;
    text-align: center;
}

.section-capsule h2 {
    color: #ffffff !important;
    margin: 0;
    text-transform: capitalize;
    font-weight: 700;
}



/* Responsive Headings */
@media (max-width: 768px) {
    .section-capsule {
        padding: 0.6rem 1rem !important;
    }

    .section-capsule h1,
    .section-capsule h2 {
        font-size: 1.15rem !important;
    }

    h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {

    .section-capsule h1,
    .section-capsule h2 {
        font-size: 1rem !important;
    }
}


/* ========================================
   SERVICES CARD 100% MATCH
   ======================================== */
/* Ensure Section Background is Dark for Glassmorphism to work */
.serv {
    padding: 40px 0;
}

.service-items {
    padding: 0 15px;
}

.card {
    margin: 10px 0;
}

.sTitle {
    font-size: 1.2rem !important;
}

/* Clients Section */
#ourclients,
#ourBP {
    padding: 40px 0;
}

.client-body,
.bp-body {
    padding: 0 15px;
}