#blur.active
{
    filter: blur(10px);
    pointer-events: none;
    user-select: none;
}

#popup
{
    position: fixed;
    top: 40%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 600px;
    padding: 50px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.30);
    background: white;
    z-index: 20;
    visibility: hidden;
    opacity: 0;
    transition: all 0.4s ease-in;
}

.modal
{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.modal h2
{
    font-size: 25px;
    margin-bottom: 15px;
    color: var(--nav-color);
}

.modal p
{
    margin-bottom: 30px;
}

#popup.active
{
    top: 50%;
    visibility: visible;
    opacity: 1;
}

#popup a
{
    padding: 10px 15px;
    border-radius: 5px;
    background: var(--nav-hover);
    color: var(--text-color);
    margin-right: 30px;
    transition: all 0.4s ease-in-out;
    animation: btnanimate 1.8s ease-out forwards;
}

#popup a:hover
{
    background: var(--nav-color);
}

/* HERO SECTION */
.hero .text-section
{
    position: relative;
    width: 50%;
    left: 2%;
}

.hero .text-section h1
{
    font-size: 3rem;
    font-weight: 800;
    color: var(--nav-color);
}


.hero .text-section h1 span
{
    color: var(--nav-hover);
}

.hero .text-section .typewriter
{
    position: relative;
}

.hero .text-section .typewriter::after
{
    content: "!";
    position: absolute;
    color: var(--nav-color);
    right: 0;
    background-color: var(--bg-color);
    width: 100%;
    animation: typing 5s alternate infinite;
}

@keyframes typing
{
    to
    {
        width: 0%;
    }
}

.hero .text-section h3
{
    font-size: 2rem;
    margin-bottom: 10px;
    animation: text-in 1.2s ease-out forwards;
}

.hero .text-section p
{
    width: 90%;
    font-size: 18px;
    margin-bottom: 30px;
    animation: text-in 1.4s ease-out forwards;
}

/* Animation */
@keyframes text-in {
    from {
        transform: translateX(-100vw); /* Start off-screen right */
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.ctaction
{
    display: flex;
    width: 80%;
    align-items: center;
}

.ctaction a
{
    padding: 10px 15px;
    border-radius: 5px;
    background: var(--nav-hover);
    color: var(--text-color);
    margin-right: 30px;
    transition: all 0.4s ease-in-out;
    animation: btnanimate 1.8s ease-out forwards;
}

.ctaction a:hover
{
    background: var(--nav-color);
}

@keyframes btnanimate {
    from
    {
        opacity: 0;
    }
    to
    {
       opacity: 1;
    }
}

.hero .circle_container {
    position: relative;
    width: 50vw; /* Responsive width */
    height: 50vw; /* Keep aspect ratio */
    max-width: 500px;
    max-height: 500px;
    right: 12%;
}

.hero .circle_container .circle {
    position: absolute;
    border-radius: 50%;
    border: 6px solid white;
    box-shadow: -4px 8px 15px rgba(0, 0, 0, 0.3);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    animation: slide-in 1.2s ease-out forwards;
}

/* Large Circle */
.hero .circle_container .large {
    width: 100%;
    height: 100%;
    background-image: url('../img/LOMHS/Service_Healthcare\ Access\ and\ Reproductive\ Health.jpeg');
    background-size: cover;
    top: 0;
    left: 10%;
    animation-delay: 0.2s;
}

/* Small Circle */
.hero .circle_container .small {
    width: 30%; /* Scales with parent */
    height: 30%;
    background-image: url('../img/LOMHS/Services_Agroforestry.jpg');
    background-size: cover;
    bottom: 10%;
    left: 5%;
    animation-delay: 0.4s;
}

/* Medium Circle */
.hero .circle_container .medium {
    width: 50%;
    height: 50%;
    background-image: url('../img/LOMHS/Services_Conservation.jpg');
    background-size: cover;
    top: 5%;
    right: -25%;
    animation-delay: 0.3s;
}

/* Animation */
@keyframes slide-in {
    from {
        transform: translateX(100vw); /* Start off-screen right */
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}


/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero .circle_container {
        width: 80vw;
        height: 80vw;
    }

    .hero .circle_container .small {
        width: 25%;
        height: 25%;
        bottom: 15%;
        left: -8%;
    }

    .hero .circle_container .medium {
        width: 40%;
        height: 40%;
        right: -10%;
    }
}

@media (max-width: 1300px)
{
    .hero .text-section
    {
        left: 2%;
    }
}

@media (max-width: 1190px)
{
    .hero .text-section h1
    {
        font-size: 2.5rem;
    }
    .hero .text-section h3
    {
        font-size: 1.6rem;
    }
    .hero .text-section p
    {
        font-size: 16px;
    }
    .hero .text-section
    {
        left: 6%;
    }
}

@media (max-width: 1160px)
{
    .hero .text-section h1
    {
        font-size: 2rem;
    }
    .hero .text-section h3
    {
        font-size: 1.2rem;
        width: 70%;
    }
    .hero .text-section p
    {
        width: 80%;
        font-size: 15px;
    }
}

@media (max-width: 1090px)
{
    section.hero
    {
        display: flex;
        flex-direction: column-reverse;
        justify-content: center;
        align-items: center;
        text-align: center;
    }
    .hero .text-section
    {
        left: 0;
        width: 90%;
        margin-bottom: 50px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .hero .text-section h1
    {
        font-size: 2rem;
    }
    .hero .text-section .typewriter::after
    {
        width: 0;
    }
    .hero .text-section h3
    {
        font-size: 1.3rem;
    }
    .ctaction
    {
        justify-content: center;
    }
    .hero .circle_container
    {
        right: 0;
        margin-top: 85px;
        margin-bottom: 20px;
    }
    .hero .circle_container .large
    {
        left: 0;
    }
    .hero .circle_container .small
    {
        left: -5%;
    }
}

@media (max-width: 700px)
{
    #popup
    {
        width: 450px;
    }
}

@media (max-width: 500px)
{
    .hero .text-section
    {
        width: 100%;
    }
    .hero .text-section h1
    {
        font-size: 1.5rem;
    }
    .hero .text-section h3
    {
        width: 90%;
        font-size: 1rem;
    }
    .hero .text-section p
    {
        font-size: 14px;
        margin-bottom: 20px;
        padding: 8px 10px;
    }
    .ctaction
    {
        width: 100%;
        flex-direction: column;
        gap: 20px;
        justify-content: space-around;
    }
    .ctaction a
    {
        margin-right: 0px;
        font-size: 15px;
    }
    #popup
    {
        width: 300px;
    }
    .modal h2
    {
        font-size: 20px;
    }
    .modal p
    {
        font-size: 13px;
    }
    #popup a
    {
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        width: 100%;
    }
}

/* ABOUT SECTION */
.about
{
    background: var(--nav-color);
    padding: 90px 0;
    position: relative;
    display: block;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about .container
{
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about .container .info
{
    justify-content: center;
    align-items: center;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.about .container .info h2
{
    position: relative;
    font-weight: bold;
    margin-bottom: 0;
    font-size: 3rem;
    line-height: 1.2;
    margin-top: 0;
    color: var(--text-color);
}

.about .container .row
{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-right: -15px;
    margin-left: -15px;
    margin-bottom: 50px;
}

.about .container .row .details 
{
    padding-right: 15px;
    padding-left: 15px;
    position: relative;
    width: 400px;
    opacity: 0; /* Initially hidden */
    transform: translateY(50px); /* Move slightly down */
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.about .container .row .details.visible 
{
    opacity: 1;
    transform: translateY(0);
}

.about .container .row .details .box
{
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    margin-top: 55px;
    border-radius: 5px;
}

.about .container .row .details .box .img_bx
{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 90px;
    min-width: 90px;
    height: 90px;
    padding: 10px;
    margin-bottom: -45px;
    position: relative;
}

.about .container .row .details .box .img_bx::before,
.about .container .row .details .box .img_bx::after
{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background-color: var(--nav-hover);
    transition: all 0.3s;
}

.about .container .row .details .box .img_bx svg
{
    fill: white;
    max-width: 50px;
    max-height: 50px;
    position: relative;
    z-index: 3;
    transition: all 0.3s ease-in-out;
}

.about .container .row .details .box .details_bx
{
    padding: 75px 20px 20px 20px;
    text-align: center;
    font-weight: 400;
    font-size: 1rem;
    min-height: 350px;
    border: 3px solid var(--nav-hover);
    border-radius: 10px;
}

.about .container .row .details .box .details_bx h5
{
    font-weight: bold;
    text-transform: uppercase;
    font-size: 1.25rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    color: var(--text-color);
}

.about .container .row .details .box .details_bx p
{
    margin-top: 0;
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-end: 0px;
    color: var(--text-color);
}

.about .container a
{
    position: absolute;
    bottom: 50px;
    padding: 10px 15px;
    background: var(--nav-hover);
    color: var(--text-color);
    border-radius: 5px;
}

@media (max-width: 400px)
{
    .about .container .row .details .box .details_bx
    {
        max-width: 310px;
    }
}

/* SERVICES */
.services
{
    padding: 90px 0;
    position: relative;
    display: block;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.services .title-container h2
{
    position: relative;
    font-weight: bold;
    margin-bottom: 0;
    text-transform: uppercase;
    font-size: 3rem;
    line-height: 1.2;
    color: var(--nav-color);
}

@media (max-width: 450px)
{
    .services .title-container h2
    {
        font-size: 2.4rem;
    }
}

.services .title-container h2 span
{
    color: var(--nav-hover);
}

.services .row
{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    margin-bottom: 30px;
}

.services .row .details
{
    position: relative;
    width: 350px;
    height: 250px;
    margin: 10px;
    overflow: hidden;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 
    0 5px 10px rgba(0, 0, 0, 0.3);
    background: var(--nav-hover);
}

.services .row .details img
{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.services .row .details .content
{
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    background: var(--nav-hover);
    transition: all 0.3s ease-in;
}

.services .row .details:hover .content
{
    opacity: 0.8;
}

.services .row .details .content h2
{
    color: white;
    opacity: 1;
    width: 90%;
}

.services a
{
    position: absolute;
    bottom: 50px;
    padding: 10px 50px;
    background: var(--nav-color);
    color: var(--text-color);
    border-radius: 5px;
    transition: all 0.3s ease-in;
}

.services a:hover
{
    background: var(--nav-hover);
}

@media (max-width: 550px)
{
    .services .row .details
    {
        width: 320px;
    }
}

/* MEET THE TEAM */
.team
{
    padding: 90px 0;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}


.animate
{
    opacity: 0;
    transition: all 1s ease;
}

.zoomIn
{
    animation: zoomIn 1s forwards;
}

@keyframes zoomIn
{
    from
    { 
        transform: scale(0.8); opacity: 0;
    }
    to
    {
        transform: scale(1); opacity: 1;
    }
}

.team .content
{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.team .title-container
{
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    justify-content: center;
}

.team .title-container h1
{
    position: relative;
    font-weight: bold;
    margin-bottom: 0;
    text-transform: uppercase;
    font-size: 3rem;
    line-height: 1.2;
    color: var(--nav-color);
}

.team .title-container p
{
    position: relative;
    color: black;
    margin-bottom: 30px;
}

@media (max-width: 450px)
{
    .team .title-container h1
    {
        font-size: 2.4rem;
    }
    .team .title-container p
    {
        font-size: 15px;
        width: 80%;
        margin-bottom: 10px;
    }
}

.team .title-container h1 span
{
    color: var(--nav-hover);
}

.contain
{
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
    padding: 2rem 0;
}

@media (max-width:1150px)
{
    .contain
    {
        gap: 30px;
    }
}
  
.team-card
{
    position: relative;
    width: 250px;
    height: 300px;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}
  
.team-card img
{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
  
.team-card .overlay
{
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: rgba(20, 74, 0, 0.8); /* Customize color */
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: height 0.3s ease;
    overflow: hidden;
    padding: 1rem;
    text-align: center;
}

.team-card:hover .overlay
{
    height: 50%;
}
  
.team-card .overlay h3
{
    margin: 0;
    margin-bottom: 5px;
    font-size: 1.2rem;
}
  
.team-card .overlay p
{
    margin: 0.5rem 0;
    font-size: 0.9rem;
}
  
.social-icons
{
    margin-top: 0.5rem;
    display: flex;
    gap: 12px;
}
  
.social-icons a
{
    width: 40px;
    height: 40px;
    background: var(--nav-hover);
    transition: transform 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
}
  
.social-icons a:hover
{
    transform: scale(1.1);
}

.social-icons a svg
{
    object-fit: contain;
    width: 30px;
    height: 30px;
    fill: var(--text-color);
}
  
  /* Responsive */
@media (max-width: 768px)
{
    .contain
    {
      flex-direction: column;
      align-items: center;
    }
  
    .team-card
    {
      width: 90%;
      max-width: 350px;
    }
}

.team .content .bottom_btn
{
    position: relative;
    padding: 10px 50px;
    background: var(--nav-hover);
    color: var(--text-color);
    border-radius: 5px;
    margin-top: 30px;
}


/* TESTIMONIALS */
.testimonials
{
    padding: 90px 0;
    position: relative;
    display: block;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--nav-color);
    margin-bottom: 10px;
}

.testimonials .heading

{
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-bottom: 45px;
}

.testimonials .heading h2
{
    position: relative;
    font-weight: bold;
    margin-bottom: 0;
    font-size: 3rem;
    line-height: 1.2;
    color: var(--text-color);
}

.testimonials .heading h2::before
{
    content: "";
    position: absolute;
    bottom: -15px;
    left: 50%;
    width: 60px;
    height: 7px;
    border-radius: 10px;
    transform: translate(-50%);
    background-color: var(--nav-hover);
}


/* Carousel Container */
.testimonials .carousel-container {
    width: 90%;
    max-width: 800px;
    max-height: 600px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Carousel */
.testimonials .carousel-container .carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

/* Individual Slide */
.testimonials .carousel-container .carousel-item {
    min-width: 100%;
    text-align: center;
    padding: 40px;
    background: white;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.testimonials .carousel-container .carousel-item img
{
    max-width: 100px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 20px;
    object-fit: cover;
}

.testimonials .carousel-container .carousel-item h2
{
    margin-bottom: 10px;
    font-size: 1.7rem;
    color: var(--nav-color);
}

.testimonials .carousel-container .carousel-item p
{
    width: 90%;
}

/* Pagination Container */
.testimonials .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
    gap: 10px;
}

/* Dots */
.testimonials .pagination .dot {
    width: 10px;
    height: 10px;
    background-color: var(--text-color);
    border-radius: 50%;
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Active Dot */
.testimonials .pagination .dot.active {
    width: 30px;
    height: 10px;
    background-color: var(--nav-hover);
    border-radius: 5px;
}

@media (max-width: 600px)
{
    .testimonials .heading
    {
        margin-bottom: 20px;
    }
    .testimonials .heading h2
    {
        font-size: 2.5rem;
    }
}

@media (max-width: 500px)
{
    .testimonials .heading h2
    {
        font-size: 2rem;
    }
}

/* SUPPORT */
.support
{
    background-color: var(--nav-color);
    display: flex;
    align-items: center;
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    min-height: 70vh;
}

.support .row
{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
    height: 100%;
}

.support .row .img
{
    flex: 0 0 50%;
    max-width: 50%;
}

.support .row .img img
{
    width: 100%;
    height: 100%;
    object-fit: cover;
    vertical-align: middle;
    margin-left: 3%;
}

.support .row .info
{
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    animation: row-in 1.4s ease-out forwards;
    position: relative;
    left: 3%;
}

/* Animation */
@keyframes row-in {
    from {
        transform: translateX(100vw); /* Start off-screen right */
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.support .row .info .box
{
    padding-left: 15px;
}

.support .row .info .box h2
{
    font-weight: bold;
    font-size: 2.5rem;
    position: relative;
    padding: 10px;
    color: var(--text-color);
}

.support .row .info .box h2::before
{
    content: "";
    position: absolute;
    top: 0;
    left: 10px;
    width: 40px;
    height: 7px;
    border-radius: 10px;
    background-color: var(--nav-hover);
}

.support .row .info .box p
{
    margin-top: 10px;
    margin-bottom: 1rem;
    position: relative;
    left: 10px;
    color: var(--text-color);
}

.support .row .info .box .btns
{
    display: flex;
    gap: 20px;
    position: relative;
    left: 10px;
}

.support .row .info .box .btns a
{
    padding: 10px 35px;
    background-color: var(--nav-hover);
    border: 1px solid var(--nav-hover);
    color: var(--text-color);
    margin-top: 25px;
    border-radius: 5px;
}

@media (max-width: 1120px)
{
    .support
    {
        background: rgba(0, 0, 0, 0.746)
        url(../img/2copy.jpg);
        background-attachment: fixed;
        background-blend-mode: overlay;
        background-size: cover;
        overflow-x: hidden;
    }
    .support .row .info .box h2::before
    {
        display: none;
    }
    .support .row
    {
        flex-direction: column;
        position: relative;
        justify-content: center;
    }
    .support .row .img
    {
        max-width: 100%;
    }
    .support .row .img img
    {
        display: none;
    }
    .support .row .info
    {
        position: relative;
        flex: 100%;
        max-width: 90%;
        left: 0;
        text-align: center;
    }
    .support .row .info .box
    {
        padding-left: 0;
    }
    .support .row .info .box h2::before
    {
        left: 50%;
    }
    .support .row .info .box .btns
    {
        justify-content: center;
    }
    .support .row .info .box p
    {
        left: 0;
    }
}

@media (max-width:950px)
{
    .testimonials .carousel-container .carousel-item h2
    {
        font-size: 1.4rem;
    }
    .testimonials .carousel-container .carousel-item p
    {
        font-size: 15px;
        width: 95%;
    }
    .testimonials .heading h2::before
    {
        bottom: -5px;
        height: 5px;
    }
}

@media (max-width:550px)
{
    .testimonials .carousel-container .carousel-item h2
    {
        font-size: 1.2rem;
    }
    .testimonials .carousel-container .carousel-item p
    {
        font-size: 12px;
    }
    .support .row .info .box .btns
    {
        left: 0;
        justify-content: center;
        align-items: center;
    }
}