:root {
    --primary-color: #8dc63f;
    --secondary-color: #0d6db7;
    --background-color: #FFFFFF;
    --text-color-1: #000000;
    --nav-background-color: #EEEEEE;
    --footer-background-color: #424242;
    --text-color-2: #7a7979;
}

* {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #FFFFFF;
}

input:focus {
    outline: none;
}

/* NAVBAR STYLES STARTS HERE  */

header {
    max-width: 1470px;
    width: 100%;
    margin: 0 auto;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.first_nav {
    background-color: #EEEEEE;
    height: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 60px;
    transition: top 0.3s ease;
    position: relative;
    z-index: 1001;
    cursor: pointer;
}

.CountryFlag img {
    width: 30px;
    height: 30px;
    cursor: pointer;
}

.CountryFlag {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 30px;
    gap: 25px;
}

.CountryFlag h5 {
    margin-top: 5px;
    font-size: 12px;
    font-weight: 500;
    color: #515050;
}

select {
    background-color: #ffffff;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 4px 10px;
    border: none;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

select:focus {
    outline: none;
}

.second_nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 60px;
    box-shadow: 0px 3px 3px rgba(0, 0, 0, 0.1);
    transition: top 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    /* width: 100%; */
    z-index: 1000;
    background-color: white;
}

.second_nav.fixed {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.nav-spacer {
    height: 0;
}

.logo img {
    margin-left: 20px;
    width: 180px;
    cursor: pointer;
}

.nav_items {
    display: flex;
    flex-basis: auto;
    align-items: center;
    gap: 20px;
}

.nav_items ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 10px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-color-2);
}

.nav_items ul li {
    position: relative;
    padding-bottom: 3px;
    color: var(--text-color-2);
    cursor: pointer;
}

.nav_items ul li a {
    text-decoration: none;
    color: inherit;
    display: inline-block;
}

.nav_items ul li::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background: var(--primary-color);
    transition: 0.3s ease;
}

.nav_items ul li:hover::after {
    width: 100%;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Hamburger Styles */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--secondary-color);
    transition: 0.3s;
}

button.nav_btn1 {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 10px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
}

.nav_btn1:hover,
.nav_btn2:hover {
    background-color: var(--primary-color);
}

button.nav_btn2 {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 10px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
}

/* NAVBAR STYLES ENDS HERE  */

/* HERO SECTION STYLES STARTS HERE */

.hero_section {
    max-width: 1470px;
    background-image: url(./images/hero_bg.png);
    background-size: contain;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    margin: 40px 70px;
    animation: fadeIn 2s ease-in-out;
}

.hero_text {
    padding: 20px;
    /* width: 50%; */
    /* margin-bottom: 120px; */
}

.hero_heading1 {
    font-size: 2rem;
    font-weight: 600;
}

.hero_heading2 {
    font-size: 2rem;
    font-weight: 600;
    text-align: start;
    letter-spacing: normal;
    margin-top: 10px;
}

.hero_heading1 span {
    color: #8dc63f;
}

.hero_heading3 {
    font-size: 1.5rem;
    font-weight: 600;
    text-align: start;
    letter-spacing: normal;
}

.hero_heading3 span {
    color: #0d6db7;
}

.cursor {
    font-weight: 600;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.hero_p1 {
    font-size: 1rem;
    text-align: start;
    letter-spacing: normal;
    font-weight: normal;
    margin-bottom: 10px;
}

.hero_p2 {
    font-size: 1rem;
    text-align: start;
    letter-spacing: normal;
    font-weight: normal;
    margin-bottom: 10px;
}

.hero_btn button {
    font-size: 1rem;
    color: #000;
    background-color: transparent;
    padding: 16px 32px;
    border: none;
    cursor: pointer;
    font-weight: lighter;
    border: 1px solid black;
}

.hero_image {
    align-items: center;
}

.hero_image img {
    max-width: 500px;
    height: auto;
}

/* HERO SECTION STYLES ENDS HERE */

/* DONATION SECTION STYLES STARTS HERE */

.donation_section {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1470px;
    height: auto;
    background-color: #F0FCDB;
    gap: 20px;
    padding: 20px;
    margin: 0px 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.donation_section1 {
    display: flex;
}

.donation_section2 {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.donation {
    flex: 1 1 150px;
    width: 180px;
    text-align: center;
    background-color: #fff;
    color: #232323;
    height: 50px;
    padding: 0px 18px;
    border-radius: 7px;
    cursor: pointer;
    white-space: nowrap;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    font-size: 14px;
}

.donation:hover {
    animation: hover 0.2s ease-in forwards;
}

@keyframes hover {
    0% {
        background-color: #fff;
        color: #232323;
    }

    100% {
        background-color: #464646;
        color: #fff;
        transform: scale(1.10);
    }
}

.donation_input {
    height: 3.5rem;
    width: 100%;
    padding: 10px;
    border: 1px solid black;
}

.donation_btn1 {
    width: 50%;
    height: 3.5rem;
    font-size: 12px;
    color: white;
    background-color: #424242;
    border: none;
    border-radius: 5px 0px 0px 5px;
    text-align: center;
}

.donation_btn2 {
    height: 3.5rem;
    width: 100%;
    padding: 10px;
    background-color: white;
    border: 1px solid black;
}

.donation_btn3 {
    width: 40%;
    height: 3.5rem;
    border-radius: 0px 5px 5px 0px;
    font-size: 1rem;
    color: white;
    background-color: #424242;
    border: none;
    text-align: center;
}

.donation_btn9 {
    flex: 1 1 100px;
    width: 140px;
    text-align: center;
    background-color: #8dc63f;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50px;
    padding: 0px 18px;
    border-radius: 7px;
    cursor: pointer;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 500;
}

.donation_btn9:hover {
    animation: donation 0.2s ease-in forwards;
}

@keyframes donation {
    0% {
        background-color: #8dc63f;
        color: #fff;
    }

    100% {
        background-color: #7bb934;
        color: #fff;
        transform: scale(1.10);
    }
}

#mainCarousel {
    max-width: 1470px;
    width: 100%;
}

.carousel {
    /* margin-top: 20px;
    width: 100%; */
    padding: 20px;
}

.saylani_works {
    display: flex;
    /* justify-content: center; */
    align-items: center;
    flex-direction: column;
    gap: 30px;
    max-width: 1470px;
    width: 100%;
    height: auto;
}

.Doing {
    text-align: center;
    padding: 10px 20px;
    margin-left: 10px;
}

.saylani_works_boxes {
    display: grid;
    gap: 20px;
    padding: 40px;
    width: 100%;
    max-width: 1470px;
    margin: 0 auto;
}

.boxes {
    background-color: rgba(182, 239, 73, .2);
    padding: 20px;
    text-align: center;
    border-radius: 7px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: box-shadow 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.boxes:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.boxes p {
    margin-top: 10px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.professional_services {
    /* max-width: 1470px;
    margin: 40px auto; */
    padding: 0 40px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.pro_services_boxes {
    width: 100%;
    height: 350px;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.pro_services_boxes:hover {
    transform: scale(1.05);
}

.daily_food {
    background-image: url('./images/daily_food.jpg');
}

.vocational_students {
    background-image: url('./images/vocat_stud.jpg');
}

.it_students {
    background-image: url('./images/it_stud.jpg');
}

.daily_food_text,
.vocational_students_text,
.it_students_text {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 20px;
    text-align: center;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.3);
}

.pro_services_boxes h4 {
    color: #fff;
    text-align: center;
    font-size: 20px;
    margin-top: 10px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}

.pro_services_boxes button {
    background-color: #8dc63f;
    color: white;
    border: none;
    border-radius: 9px;
    padding: 10px 90px;
    white-space: nowrap;
    margin-top: auto;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.pro_services_boxes button:hover {
    background-color: #76a835;
}

.hepatitis_section {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    /* align-items: flex-start; */
    gap: 50px;
    max-width: 1470px;
    margin: 50px 60px;
    padding: 20px;
}

.CurvePhoto {
    position: relative;
    background: url('./images/curve_img.jpg') no-repeat center / cover;
    height: 435px;
    width: 100%;
    max-width: 600px;
    border-radius: 40px;
    overflow: hidden;
}

.CurvePhoto p {
    position: absolute;
    top: 0;
    left: 0;
    background-color: #8dc63f;
    color: white;
    padding: 20px 30px;
    margin: 0;
    width: 50%;
    font-size: 28px;
    height: 200px;
    border-top-left-radius: 40px;
    text-align: start;
}

.projects_list {
    margin-bottom: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.project_item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.project_item img {
    background-color: #EEEEEE;
    border-radius: 10px;
    padding: 20px;
    width: 80px;
    height: auto;
}

.project_text h4 {
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 5px 0;
    color: var(--secondary-color);
}

.project_text p {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.2;
}

.counting_section {
    background-color: #0d6db7;
    padding: 100px 0px;
    margin: 0px 50px;
    position: relative;
    display: flex;
    justify-content: center;
}

.counting_section::before {
    content: " ";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('./assets/footer.png') no-repeat center / cover;
    opacity: .2;
    z-index: 1;
}

.counting_boxes {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.stat_box {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 150px;
}

.circle {
    height: 120px;
    width: 120px;
    border-radius: 50%;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.circle img {
    height: 50px;
    width: auto;
}

.stat_box ul {
    color: white;
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.stat_box li:first-child {
    font-size: 24px;
    font-weight: bold;
}

.counting_boxes {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    padding-top: 90px;
}

.testimonals_section {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1470px;
    width: 100%;
    padding: 60px 0;
}

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

.testimonals_heading p {
    color: #8dc63f;
}

.testimonals_heading h4 {
    font-size: 2rem;
    font-weight: 600;
}

.testimonal-wrapper {
    max-width: 1470px;
    overflow: hidden;
    margin: 0 20px;
}

.testimonal-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonal_card {
    min-width: 100%;
    background-color: #eeeeee;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 30px;
    box-sizing: border-box;
}

.testimonal_card img {
    border-radius: 50%;
    margin-bottom: 20px;
    object-fit: cover;
}

.testimonal_card h2 {
    color: #0d6db7;
    font-size: 1.2rem;
    margin: 10px 0;
}

.testimonal_card .designation {
    font-weight: bold;
    margin-bottom: 15px;
}

.testimonal_card .quote {
    text-align: center;
    line-height: 1.6;
    color: #555;
}

.testimonals_btn {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.nav-btn {
    padding: 10px 15px;
    border-radius: 7px;
    border: 1px solid #ccc;
    cursor: pointer;
    background: white;
    font-size: 20px;
    transition: 0.3s;
}

.active-btn {
    background-color: #8dc63f;
    color: white;
    border: none;
}

.badge-date {
    position: absolute;
    top: 10px;
    right: 0;
    background-color: #2196f3;
    color: white;
    padding: 3px 12px;
    font-size: 12px;
    z-index: 5;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.badge-date::after {
    content: "";
    position: absolute;
    bottom: -10px;
    right: 0;
    border-width: 5px;
    border-style: solid;
    border-color: #558b2f transparent transparent #558b2f;
}

.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background-color: #000;
}

.card-video-thumb {
    width: 100%;
    height: 100%;
    object-of-obj: cover;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(13, 109, 183, 0.9);
    color: white;
    width: 50px;
    height: 35px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    pointer-events: none;
}

.News {
    text-align: center;
}

.MediaUpdates {
    margin-bottom: 20px;
    text-align: center;
}

.responsive {
    margin: 0 auto;
    max-width: 1470px;
    width: 100%;
}


.news-card {
    background: #EEEEEE;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: transform 0.3s ease;
}

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

.news-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
}

.news-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-date {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background-color: #8dc63f;
    color: white;
    padding: 4px 12px;
    border-radius: 5px;
    font-size: 12px;
}

.news-content {
    padding: 15px;
    position: relative;
}

.news-content p {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 30px;
    line-height: 1.4;
}

.news-arrow {
    background: #fff;
    padding: 5px;
    border-radius: 10%;
    position: absolute;
    bottom: 10px;
    right: 15px;
}

.news-arrow i {
    height: 35px;
    width: auto;
    cursor: pointer;
}

.saylani_guide_section {
    background-image: url(./images/input_bg.png);
    background-position: top;
    background-repeat: no-repeat;
    background-size: cover;
    margin: 0px 10px;
    padding: 50px;
    text-align: center;
    background-color: #0d6db7;
}

.saylani_guide {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: white;
    gap: 5px;
}

.saylani_guide input {
    width: 50%;
    height: 50px;
    outline: none;
    border: 1px solid #fff;
    padding: 20px;
    background-color: transparent;
    border-radius: 5px;
}

.saylani_guide input::placeholder {
    color: white;
    font-size: 16px;
}

.saylani_guide button {
    width: 50%;
    height: 50px;
    border: 1px solid white;
    background-color: white;
    color: black;
    border-radius: 5px;
}

.social_icons i {
    font-size: 30px;
    transition: transform 0.3s, color 0.3s;
    cursor: pointer;
}

.ri-facebook-box-fill {
    color: #1877F2;
}

.ri-youtube-fill {
    color: #FF0000;
}

.ri-whatsapp-line,
.ri-whatsapp-fill {
    color: #25D366;
}

.ri-instagram-line {
    color: #E4405F;
}

.social_icons i:hover {
    transform: scale(1.2);
    filter: brightness(1.2);
}

.footer_section {
    margin-top: 10px;
    background-color: #515050;
    position: relative;
    overflow: hidden;
    padding: 60px 5%;
    gap: 50px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    z-index: 1;
}

.footer_section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('./images/footer.png');
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0.15;
    mix-blend-mode: screen;
    pointer-events: none;
    z-index: -1;
}

/* Headings Alignment Fix */
.About,
.Explore,
.Contact1 {
    display: flex;
    flex-direction: column;
    color: white;
}

.footer_section h2 {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding: 0;
    margin-top: 0;
}

.footer_section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer_section ul li {
    color: #ffffff;
    opacity: 0.85;
    font-size: 14px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: opacity 0.3s;
}

.footer_section ul li:hover {
    opacity: 1;
    color: #8dc63f;
}

/* Social Section Adjustments */
.social_section {
    max-width: 300px;
}

.social_section img {
    width: 240px;
    height: auto;
    margin-bottom: 20px;
}

.social_icons {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
}

/* Mobile Screen logic */
@media (max-width: 992px) {
    .first_nav {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .nav_items {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease-in-out;
        box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    .nav_items.open {
        max-height: 500px;
        align-items: flex-start;
        padding: 20px 0;
    }

    .nav_items ul {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .nav_btns {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin: 0px 0px 0px 25px;
    }

    .hero_image img {
        max-width: 400px !important;
    }

    .CurvePhoto {
        width: 400px !important;
        height: auto;
    }

    .CurvePhoto p {
        font-size: 1.2rem !important;
    }
}

@media (max-width: 820px) {
    .hero_image img {
        max-width: 300px !important;
        height: auto;
    }
}

@media (max-width: 780px) {
    .hero_image img {
        max-width: 300px !important;
    }

    .CurvePhoto {
        width: 300px !important;
        height: 400px !important;
    }

    .CurvePhoto p {
        font-size: 0.9rem !important;
    }

    .footer_section {
        gap: 30px !important;
    }

    .hero_text {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .hero_heading1,
    .hero_heading2 {
        font-size: 1.8rem !important;
    }

    .hero_heading3 {
        font-size: 1.2rem !important;
    }

    .hero_p1,
    .hero_p2 {
        font-size: 1rem !important;
    }

    .hero_btn button {
        font-size: 1rem !important;
        padding: 10px 20px !important;
    }

    .pro_services_boxes button {
        padding: 8px 70px;
        margin-top: auto;
        font-size: 14px;
    }

    .social_section img {
        width: 160px;
        height: auto;
        margin-bottom: 15px;
    }
}

@media (max-width: 580px) {
    .hero_image img {
        display: none !important;
    }

    .CurvePhoto {
        width: 450px !important;
        height: 400px !important;
    }

    .footer_section {
        gap: 30px !important;
    }

    .footer_section {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .second_nav {
        padding: 0;
        height: 10vh;
    }

    .logo img {
        margin-left: 10px;
    }

    .hamburger {
        margin-right: 20px;
    }

    .hero_image {
        display: none;
    }

    .hero_text {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .hero_heading1 {
        font-size: 1.6rem !important;
    }

    .hero_heading2 {
        font-size: 1.6rem !important;
    }

    .hero_heading3 {
        font-size: 1rem !important;
    }

    .hero_p1,
    .hero_p2 {
        font-size: 0.7rem !important;
    }

    .hero_btn button {
        font-size: 0.8rem !important;
        padding: 8px 16px !important;
    }

    .saylani_guide input,
    .saylani_guide button {
        width: 100% !important;
    }

    footer {
        flex-direction: column;
    }
}

@media (min-width: 1025px) {
    .saylani_works_boxes {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (max-width: 1024px) and (min-width: 601px) {
    .saylani_works_boxes {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .professional_services {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .professional_services {
        grid-template-columns: repeat(1, 1fr);
    }

    .pro_services_boxes button {
        padding: 10px 40px;
        width: 80%;
    }

    .CurvePhoto p {
        font-size: 1rem !important;
    }

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