html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: black;
    font-family: Arial, sans-serif;
    text-align: justify;
}

.red-btn {
    background-color: #e5351e;
    /* bright red */
    color: white;
    font-weight: 600;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.red-btn:hover {
    background-color: #e5351e;
    /* darker red on hover */
    transform: translateY(-2px);
}

.red-btn:active {
    background-color: #e5351e;
    transform: translateY(0);
}


/* HEADER */

header {
    background-color: white;
    padding: 20px 35px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.contact-info {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.social-buttons a {
    text-decoration: none;
    color: white;
    padding: 6px 10px;
    border-radius: 50%;
    margin-left: 5px;
    transition: 0.3s;
}

.social-buttons a:hover {
    transform: translateY(-3px);
}

.insta {
    background: linear-gradient(45deg, #feda75, #d62976, #962fbf, #4f5bd5);
}

.fb {
    background-color: #1877f2;
}

.twitter {
    background-color: #1da1f2;
}

.linkedin {
    background-color: #0077b5;
}

.youtube {
    background-color: #e70707;
}


/* SECOND HEADER SECTION */

.logo-header {
    background-color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.logo-header img {
    height: 80px;
}

.logo-header b {
    font-size: 28px;
    color: black;
}


/* NAVBAR */

.topnav {
    background-color:#e5351e;
    overflow: visible;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding-left: 20px;
}

.topnav a,
.dropbtn {
    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 17px;
    border: none;
    background: none;
    cursor: pointer;
    font-weight: 600;
}

.topnav a:hover,
.dropbtn:hover {
    background-color: black;
}


/*
Main dropdown */

.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    background-color:#e5351e;
    color: white;
    padding: 10px 18px;
    border: none;
    cursor: pointer;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #292424;
    min-width: 220px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.dropdown:hover .dropdown-content {
    display: block;
}


/* Sub-dropdown */

.sub-dropdown {
    position: relative;
}

.sub-dropdown-content {
    display: none;
    position: absolute;
    left: 100%;
    /* moves to the right side */
    top: 0;
    background-color: #292424;
    min-width: 200px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
}

.sub-dropdown:hover .sub-dropdown-content {
    display: block;
}


/* Styling links */

.dropdown-content a,
.sub-dropdown-content a {
    color: white;
    padding: 10px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover,
.sub-dropdown-content a:hover {
    background-color: skyblue;
}


/* Style the navigation menu */

.navbar {
    width: 100%;
    background-color: #555;
    overflow: auto;
}


/* Navigation links */

.navbar a {
    float: left;
    padding: 12px;
    color: white;
    text-decoration: none;
    font-size: 17px;
    width: 25%;
    /* Four equal-width links. If you have two links, use 50%, and 33.33% for three links, etc.. */
    text-align: center;
    /* If you want the text to be centered */
}


/* Add a background color on mouse-over */

.navbar a:hover {
    background-color: #000;
}


/* Style the current/active link */

.navbar a.active {
    background-color: #04AA6D;
}



@media screen and (max-width: 500px) {
    .navbar a {
        float: none;
        display: block;
        width: 100%;
        text-align: left;
    
    }
}
.TOP2{
    text-align: center;
}
.TOP2 h1{
    margin-right: 12px;
    width: fit-content;
    color: #555;
    font-size: 28px;
    justify-content: space-around;
}
.TOP2 .dropbtn{
    width: fit-content;
    background-color:#555;
    font-size: 14px;
}
.TOP2 .dropbtn:hover{
    width: fit-content;
    background-color:#e5351e;
    font-size: 14px;
}
.TOP3 {
    display: flex;
}
.TOP3 .left img {
    display: flex;
    width: 320px;
    margin-left: 129px;
}
.TOP3 .right h1 {
    display: flex;
   font-size: 40px;
   color:black;
   margin-left: 50px;
   margin-top: 50px;
}
.TOP3 .right p {
    display: flex;
   font-size: 18px;
   color:black;
   margin-left: 50px;
   margin-bottom: 30px;
}
.bt1 {
    background-color: #e5351e;
    border-radius: 2px;
    color: white;
    margin-left: 210px;
    margin-bottom: 100px;
    font-size: 15px;
}

.TOP4 h1{
    margin-left: 520px;
    color: #e5351e;
    font-size: 40px;
}
.outreach-section {
            padding: 60px 0;
            text-align: center;
        }
        .section-title {
            font-family: 'Anton', sans-serif;
            font-size: 3rem;
            color: #d9232d;
            margin-bottom: 20px;
            letter-spacing: 2px;
        }

        .title-separator {
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 40px;
        }

        .title-separator::before,
        .title-separator::after {
            content: '';
            flex-grow: 1;
            height: 1px;
            background-color: #ddd;
            max-width: 50px;
        }

        .separator-icon {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            margin: 0 15px;
            background: url('https://upload.wikimedia.org/wikipedia/commons/d/df/Sustainable_Development_Goals.svg') no-repeat center center;
            background-size: cover;
        }


        .stat-box {
            padding: 30px 15px;
            color: white;
            border-radius: 8px;
            margin-bottom: 20px;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        }

        .stat-box .counter {
            font-size: 2.8rem;
            font-weight: 700;
        }

        .stat-box .stat-label {
            font-size: 0.9rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 1px;
            margin: 0;
        }
        .bg-dist { background-color: #e63980; }
        .bg-villages { background-color: #3b5998; }
        .bg-tribal { background-color: #5c6bc0; }
        .bg-household { background-color: #333333; }
        .bg-youths { background-color: #ff0000; }
        .bg-women { background-color: #29b6f6; }

        .bg-household {
            width: 160px;
             margin-left: 7px;
        }
        .bg-youths{
            width: 160px;
            margin-left: 16px;
        }
        .bg-women{
            width: 160px;
            margin-left: 25px;
             height: 150px;
        }
        .bg-tribal{
            width: 160px;
            margin-left: 3px;
            height: 150px;
        }
.gallery-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    /* centers all images */
    gap: 20px;
    /* spacing between images */
    padding: 20px;
}


/* Individual Item */

.gallery-item {
    border: 1px solid #ccc;
    width: 22%;
    /* 4 images per row on large screens */
    border-radius: 8px;
    overflow: hidden;
    background: white;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    border-color: #777;
    transform: scale(1.03);
}


/* Image */

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}


/* Description */

.desc {
    padding: 10px;
    text-align: center;
    font-size: 14px;
    color: #333;
}
.interventions {
  text-align: center;
  padding: 60px 0;
}

.interventions h2 {
  font-size: 36px;
  letter-spacing: 2px;
  font-weight: 700;
  margin-bottom: 40px;
}

.image-container {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

.card {
  text-align: center;
  transition: transform 0.6s ease, box-shadow 0.6s ease;
}

.card img {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  transition: transform 1s ease-in-out;
}

.card:hover img {
  transform: scale(1.1);
}

.card h3 {
  margin-top: 20px;
  font-size: 20px;
  color: #333;
  font-weight: 600;
}

.container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  padding: 40px;
}

.box {
  flex: 1 1 45%;
  min-width: 300px;
  border-left: 2px solid #ddd;
  padding: 20px;
}

h2 {
  font-size: 2em;
  margin-bottom: 10px;
  font-weight: 700;
}

.red {
  color: #e60000;
}

.underline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.icon {
  width: 25px;
}

.underline hr {
  flex: 1;
  border: 1px solid #d33;
  height: 0;
}

.news-list p {
  font-size: 1em;
  color: #000;
  margin-bottom: 15px;
  line-height: 1.4;
  border-bottom: 1px solid #eee;
  padding-bottom: 8px;
}

.new {
  color: #00bcd4;
  font-weight: bold;
  margin-right: 8px;
}

.about-img {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 15px;
}

.read-btn {
  background: #000;
  color:white;
  border: none;
  padding: 10px 25px;
  border-radius: 25px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
}

.read-btn:hover {
  background: #e60000;
}
.news-container {
  height: 400px; 
  width: 500px;
  overflow: hidden;
  position: relative;
  color: #000;
  border-radius: 1px;
}

.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
  height: 400px; 
  animation: scrollUp 15s linear infinite; 
}

.news-item {
  line-height: 40px;
  border-bottom: 1px solid #050404;
  padding: 0 10px;
} 
.box p {
    color: #000;
}
/* award Section */
.awards-section .yra-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: start;
    gap: 40px;
}

.awards-section .yra-box {
    flex: 1 1 45%;
    text-align: center;
}

.awards-section img {
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.last1 {
    position: relative;
    padding: 20px 50px;
    background: #e70909;
}

.last {
    position: relative;
    padding: 20px 50px;
    background: #000;
}

/* Javascript Testimonals Paragraph */
.nav-link {
            text-decoration: none;
            display: inline-block;
            padding: 10px 20px;
            margin: 0 8px;
            border-radius: 8px;
            transition: background-color 0.3s, opacity 0.3s;
            font-weight: 600;
        }

        .nav-link:hover {
            opacity: 0.8;
        }

        /* Specific styling for the custom previous/next look */
        #prevBtn {
            background-color: #e5e7eb; /* Light Gray */
            color: #1f2937; /* Dark text */
        }

        #nextBtn {
            background-color: #04AA6D; /* Green */
            color: white;
        }

        /* Styling for the small, round buttons */
        .round {
            border-radius: 50%;
            padding: 8px 14px;
            font-size: 1.25rem; /* Larger glyphs */
            line-height: 1;
        }

        /* Initial state: hide all paragraphs except the first (handled by JS) */
        .content-paragraph {
            display: none;
            min-height: 150px; /* Ensures container doesn't collapse */
        }
        .max-w-xl{
            width: 600px;
        }
  
  
  
        /* 
        Awards and geographical section
  */
  /* User's custom styles */
  .awards-section .yra-wrapper {
            /* This flex container enables the side-by-side layout on large screens */
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            align-items: start;
            gap: 40px;
            padding: 20px;
        }

        .awards-section .yra-box {
            /* KEY CHANGE: Changed from fixed percentage (48%) to flex: 1. 
               This ensures both boxes take up equal space and forces the side-by-side layout aggressively. */
            flex: 1; 
            min-width: 300px; /* Ensures the box has a minimum size before stacking */
            text-align: center;
            /* Removed max-width to allow full space usage */
        }
        
        /* Ensures the whole carousel setup is visually appealing */
        .carousel {
            background-color: #fff;
            padding: 20px 0;
            border-radius: 12px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        }

        .awards-section img {
            border-radius: 10px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
            
            /* KEY CHANGE: Images now take up 100% of their parent box width to scale down correctly */
            width: 100%; 
            height: auto;
            max-width: 440px; /* Keeps image from becoming too large on huge screens */

            /* Replace the missing local files with placeholders */
            min-height: 280px;
            object-fit: cover;
        }
        /* Modernized Title Styling */
        .section-heading {
            font-size: 40px;
            font-weight: 900;
            text-transform: uppercase;
            margin-bottom: 25px;
            line-height: 1.1;
        }
        
        /* --- INFINITE MARQUEE STYLES --- */
        
        /* Animation for the container (the red div) */
        @keyframes pulse-shadow {
            0% { box-shadow: 0 0 0 rgba(255, 255, 255, 0.1); }
            50% { box-shadow: 0 0 20px rgba(255, 255, 255, 0.4); }
            100% { box-shadow: 0 0 0 rgba(255, 255, 255, 0.1); }
        }
        
        /* Keyframes for the continuous scrolling animation */
        @keyframes marquee {
            0% { transform: translateX(0); }
            /* Translate by -50% because the track contains two sets of logos */
            100% { transform: translateX(-50%); } 
        }
        
        /* Container for the 10 images with red background and pulse animation */
        .image-footer-container {
            background-color: #e70707; /* Red background as requested */
            padding: 40px; /* Adjusted padding for full-width scroll */
            animation: pulse-shadow 4s infinite ease-in-out; /* Apply pulse animation */
            margin-top: 40px;
            width: 100%;
            overflow: hidden; /* Crucial to hide the duplicated images */
        }
        
        /* The scrolling track element */
        .patners-track {
            display: flex;
            width: 200%; /* Must be double the width to hold two sets of logos side by side */
            animation: marquee 30s linear infinite; /* 30s speed, continuous, linear movement */
        }

        /* Image styling inside the track */
        .patners-track img {
            flex-shrink: 0; /* Prevents logos from shrinking below their calculated width */
            /* Since there are 10 logos, each takes 1/10th of the visible track width */
            width: 10%; 
            height: auto;
            object-fit: contain;
            max-height: 120px; 
            padding: 10px;
            background-color: #fff;
            border-radius: 8px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            transition: none; /* Ensure no transitions interfere with the scrolling animation */
            cursor: default;
        }

        /* --- END INFINITE MARQUEE STYLES --- */
        .last {
            position: relative;
            padding: 60px 8%;
            background: #000;
            color: #fff;
            text-align: center;
        }

        /* Mobile Responsiveness: Stacks on small screens for main content */
        @media (max-width: 768px) {
            .awards-section .yra-box {
                flex-basis: 100%;
                max-width: 100%;
            }
            .patners-track img {
                width: 25%; /* Show 4 logos at once on smaller screens */
            }
        }
                    /* FOOTER SECTION */

                    /* ==================================== */
/* === FOOTER STYLES (Isolate from provided code) === */
/* ==================================== */
.main-footer-container {
    background-color: #2c2c2c;
    color: #ffffff;
    padding: 40px 20px 0 20px;
    margin-top: 40px; /* Important for spacing after the main content */
}
.footer-columns {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    border-bottom: 1px solid #444;
    padding-bottom: 30px;
}
.footer-column {
    flex: 1;
    min-width: 250px;
    padding: 0 20px 20px 0;
}
.footer-column h3 {
    text-transform: uppercase;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 15px;
    color: #ffffff;
    border-bottom: 2px solid #e30713; /* Red underline for heading */
    display: inline-block;
    padding-bottom: 5px;
}
.footer-column span {
    font-weight: 700;
    color: #f0f0f0;
    display: block;
    margin-top: 10px;
    margin-bottom: 5px;
}
.footer-column p {
    margin: 0 0 10px 0;
    font-size: 14px;
    line-height: 1.6;
    color: #c9c9c9;
}
.footer-column a {
    color: #c9c9c9;
    text-decoration: none;
    transition: color 0.3s;
}
.footer-column a:hover {
    color: #e30713; /* Highlight link on hover */
    text-decoration: none;
}
.newsletter-form input[type="email"] {
    width: calc(100% - 18px); 
    max-width: 250px;
    padding: 10px;
    border: 1px solid #444;
    background-color: #333;
    color: white;
    margin-bottom: 10px;
    border-radius: 4px;
}
.subscribe-btn {
    background-color: #d9534f;
    color: #fff;
    padding: 10px 18px;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: bold;
    border-radius: 4px;
    transition: background-color 0.3s;
}
.subscribe-btn:hover {
    background-color: #c9302c;
}
.quick-links ul {
    list-style: none;
    padding: 0;
    margin-top: 5px;
}
.quick-links li {
    margin-bottom: 5px;
}
#div3 {
    padding-right: 0;
}
.footer-bottom {
    background-color: #1e1e1e;
    color: #999;
    padding: 15px 20px;
    font-size: 13px;
    text-align: center;
}
.footer-bottom p {
    margin: 0;
}

/* FOOTER RESPONSIVE STYLES */
@media (max-width: 900px) {
    .footer-columns {
        flex-direction: column;
        align-items: center;
    }
    .footer-column {
        min-width: 90%;
        max-width: 450px;
        padding-right: 0;
        text-align: center;
    }
    .footer-column h3 {
        margin-left: auto;
        margin-right: auto;
    }
    .newsletter-form input {
        max-width: 80%;
    }
    .footer-column p, .footer-column a, .footer-column span {
        text-align: center; /* Center text content in mobile view */
    }
}
