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

/* Base styles for all devices */
:root {
    /* Define your variables */
    --primary-color: #485fc7;
    --text-color: #333;
    --heading-color: #222;
}

body {
    font-family: 'Poppins', sans-serif;
}

/* General responsive rules */
img {
    max-width: 100%;
    height: auto;
}

/* Specific image responsive rules */
.logo img {
    max-height: 50px;
    width: auto;
}

.banner-img img,
.hero-img img {
    width: 100%;
    object-fit: cover;
}

.cause-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.blog-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.team-item img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

@media screen and (max-width: 768px) {
    .logo img {
        max-height: 40px;
    }

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

    .blog-item img {
        height: 200px;
    }

    .team-item img {
        height: 300px;
    }
}

@media screen and (max-width: 480px) {
    .logo img {
        max-height: 35px;
    }

    .cause-item img,
    .blog-item img {
        height: 200px;
    }

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

/* Container width control */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ================================= 
   DESKTOP STYLES (1024px and above)
   ================================= */
@media screen and (min-width: 1024px) {

    /* Typography */
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    h3 {
        font-size: 2rem;
    }

    p {
        font-size: 1.1rem;
    }

    /* Spacing */
    .section {
        padding: 100px 0;
    }

    /* Grid System */
    .columns {
        display: flex;
        margin: -15px;
    }

    .column {
        padding: 15px;
    }

    .is-12 {
        width: 100%;
    }

    .is-6 {
        width: 50%;
    }

    .is-4 {
        width: 33.333%;
    }

    .is-3 {
        width: 25%;
    }
}

/* ================================= 
   TABLET STYLES (768px to 1023px)
   ================================= */
@media screen and (max-width: 1023px) {

    /* Typography */
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.75rem;
    }

    p {
        font-size: 1rem;
    }

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

    /* Navigation adjustments */
    .navbar-menu {
        padding: 10px 0;
    }

    /* Grid adjustments */
    .is-4-tablet {
        width: 50%;
    }
}

/* ================================= 
   MOBILE STYLES (up to 767px)
   ================================= */
@media screen and (max-width: 767px) {

    /* Typography */
    h1 {
        font-size: 2rem;
        line-height: 1.4;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    p {
        font-size: 1rem;
    }

    /* Spacing */
    .section {
        padding: 60px 0;
    }

    /* Stack columns on mobile */
    .columns {
        flex-direction: column;
    }

    .column {
        width: 100% !important;
        /* Override all column widths */
        margin-bottom: 20px;
    }

    /* Button adjustments */
    .btn {
        width: 100%;
        text-align: center;
        padding: 12px 20px;
    }

    /* Navigation adjustments */
    .navbar-brand {
        padding: 10px 0;
    }

    /* Center align text */
    .has-text-centered-mobile {
        text-align: center !important;
    }

    /* Adjust margins */
    .mb-5 {
        margin-bottom: 2rem !important;
    }
}

/* ================================= 
   SMALL MOBILE STYLES (up to 479px)
   ================================= */
@media screen and (max-width: 479px) {

    /* Typography */
    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    /* Spacing */
    .section {
        padding: 40px 0;
    }

    /* Reduce padding */
    .container {
        padding: 0 10px;
    }

    /* Smaller buttons */
    .btn {
        padding: 10px 15px;
        font-size: 14px;
    }
}

/* ================================= 
   COMPONENT-SPECIFIC RESPONSIVE STYLES
   ================================= */

/* Hero/Slider Section */
.slider {
    padding: 120px 0;
}

@media screen and (max-width: 768px) {
    .slider {
        padding: 60px 0;
        text-align: center;
    }
}

/* Cards/Cause Items */
.cause-item {
    margin-bottom: 30px;
    transition: transform 0.3s ease;
}

@media screen and (max-width: 768px) {
    .cause-item img {
        height: 200px;
        object-fit: cover;
    }
}

/* Counter Section */
.counter-stat {
    font-size: 3rem;
}

@media screen and (max-width: 768px) {
    .counter-stat {
        font-size: 2rem;
    }

    .counter-item-2 {
        margin-bottom: 30px;
    }
}

/* Video Section */
.video-block iframe {
    width: 100%;
    height: 400px;
}

@media screen and (max-width: 768px) {
    .video-block iframe {
        height: 300px;
    }
}

@media screen and (max-width: 480px) {
    .video-block iframe {
        height: 200px;
    }
}

/* Form Elements */
@media screen and (max-width: 768px) {

    input,
    textarea {
        font-size: 16px !important;
        /* Prevents zoom on iOS */
    }

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

/* Helper Classes */
@media screen and (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }

    .show-mobile {
        display: block !important;
    }

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

    .full-width-mobile {
        width: 100% !important;
    }

    .no-padding-mobile {
        padding: 0 !important;
    }

    .small-padding-mobile {
        padding: 10px !important;
    }
}

/* End of file */