* {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #eef3f2;
}

.top {
    position: relative;
}

article {
    padding-top: 6vw;
}

.text {
    position: absolute;
    top: 20%; /* Center vertically */
    left: 50%; /* Center horizontally */
    transform: translate(-50%, 90%); /* Adjust to center */
    color: white;
    opacity: 0; /* Start as invisible */
    transition: opacity 1s ease-in-out; /* fade-in effect */
}
.text h1{
    font-family: 'montserratExtraBold';
    font-size: 5vw;
    margin-bottom: 35px;
}
.text.show {
    opacity: 1; /* Fully visible */
}

.img-about {
    margin-top: 1vw;
}

.img-about img {
    display: block;
    width: 100%;
    height: auto;
    opacity: 0; /* Start invisible */
    transition: opacity 1s ease-in-out; /* Smooth fade-in effect */
}

.img-about img.show {
    opacity: 0.5; /* Fully visible */
}


.contents{
    position: relative;
    margin: 4vw;
}
.about h2{
    font-size: 2vw;
    margin-bottom: 5vw;
}
.about p{
    font-size: 1.5vw;
    margin-bottom: 3vw;
}

.mv {
    display: flex;
    justify-content: space-between; 
    gap: 20px; 
    margin-right: 3vw;
    margin-left: 3vw;
}
.mission, .vision {
    flex: 1; 
    padding: 2vw;
    border: 1px solid #ccc; 
    border-radius: 8px;
    background-color: #eef3f2;
    color: black;
    opacity: 0;
    transform: translateY(-50px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}
.mission.show, .vision.show {
    opacity: 1;
    transform: translateY(0);
}
.mission h2, .vision h2{
    font-size: 2vw;
    margin-bottom: 1vw;
}
.mission p, .vision p{
    font-size: 1.5vw;
}
.mission:hover{
    background-color: #073884;
    color: #eef3f2;
}
.vision:hover{
    background-color: #073884;
    color: #eef3f2;
}

.goal, .obj{
    margin-bottom: 2vw;
    margin-top: 2vw;
}
.goal, .obj h2{
    font-size: 2vw;
}
.goal, .obj p{
    font-size: 1.5vw;
}

.location{
    margin-bottom: 2vw;
    margin-top: 5vw;
}
.location h2{
    font-size: 2vw;
    margin-bottom: 1vw;
}
.location p{
    font-size: 1.5vw;
    margin-bottom: 2vw;
}
.location img{
    max-width: 80vw;
    border: 20px solid #073884;
}

.lifewYWCI{
    margin: 5vw;
}
.lifewYWCI h1 {
    margin-top: 12vw;
    margin-bottom: 3vw;
    font-family: 'montserratExtraBold';
    font-size: 3.5vw;
}
.lifewYWCI p {
    margin-left: 2vw;
    font-size: 1.6vw;
}

.carousel-container {
    position: relative;
    width: 80%;
    margin: 2rem auto;
    overflow: visible;
    padding-bottom: 50px;
}

.carousel {
    position: relative;
    padding: 20px 0;
}

.carousel-track {
    display: flex;
    position: relative;
    height: 400px;
    align-items: center;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.carousel-slide {
    position: absolute;
    width: auto;
    height: 100%;
    transition: all 0.5s ease;
    opacity: 0.7;
    transform-origin: center center;
    transform-style: preserve-3d;
}

.carousel-slide img {
    height: 100%;
    width: auto;
    max-width: none;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease;
}

.carousel-indicators {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.carousel-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(158, 156, 156, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.carousel-indicator.active {
    background: black;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.carousel-button:hover {
    background: rgba(255, 255, 255, 0.9);
}

.carousel-button.prev {
    left: 20px;
}

.carousel-button.next {
    right: 20px;
}

/* Responsive styles */
@media (max-width: 768px) {
    .carousel-container {
        width: 90%;
    }

    .carousel-track {
        height: 300px;
    }

    .carousel-button {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
}


@media (max-width: 768px) {
    .carousel-container {
        width: 95%;
    }
    
    .carousel-slide img {
        height: 250px;
    }
    
    .carousel-button {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    font-size: 20px;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.carousel-button:hover {
    background: #fff;
}

.carousel-button.prev {
    left: 20px;
}

.carousel-button.next {
    right: 20px;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    font-size: 24px;
    color: #333;
    z-index: 3;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.carousel-button:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 3px 15px rgba(0,0,0,0.2);
}

.carousel-button.prev {
    left: 20px;
}

.carousel-button.next {
    right: 20px;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    cursor: pointer;
    font-size: 20px;
    color: #333;
    z-index: 2;
    transition: all 0.3s ease;
}

.carousel-button:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
}

.carousel-button.prev {
    left: 0;
}

.carousel-button.next {
    right: 0;
}

@media (max-width: 768px) {
    .carousel-slide {
        flex: 0 0 calc(50% - 40px);
    }
    
    .carousel-slide.active {
        flex: 0 0 calc(60% - 40px);
    }
}

@media (max-width: 480px) {
    .carousel-slide {
        flex: 0 0 calc(80% - 40px);
    }
    
    .carousel-slide.active {
        flex: 0 0 calc(90% - 40px);
    }
}

/* Client Section Styles */
.clients {
    padding: 30px;
    margin-top: 0px;
}

.clients h1 {
    font-family: 'montserratExtraBold';
    font-size: 3.5vw;
    margin-bottom: 2vw;
    color: #333;
}

.logo-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    justify-items: center;
    align-items: center;
    padding: 20px;
}

.logo-item {
    width: 200px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 15px;
    background: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.3s ease;
}

.logo-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.logo-item:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.logo-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.logo-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Responsive design */
@media (max-width: 1200px) {
    .images {
        column-count: 3;
    }
}

@media (max-width: 800px) {
    .text {
        position: absolute;
        top: 20%; /* Center vertically */
        left: 50%; /* Center horizontally */
        transform: translate(-50%, 35%); /* Adjust to center */
        color: white;
        opacity: 0; /* Start as invisible */
        transition: opacity 1s ease-in-out; /* fade-in effect */
    }
    .text h1{
        font-family: 'montserratExtraBold';
        font-size: 5vw;
        margin-bottom: 35px;
    }

    .about h2{
        font-size: 3vw;
        margin: 5vw;
    }
    .about p{
        font-size: 2vw;
        margin: 3vw;
    }
    .mission h2, .vision h2{
        font-size: 3vw;
        margin-bottom: 1vw;
    }
    .mission p, .vision p{
        font-size: 2vw;
    }
    .mission:hover{
        background-color: #073884;
        color: #eef3f2;
    }
    .vision:hover{
        background-color: #073884;
        color: #eef3f2;
    }

    .goal, .obj{
        margin: 3vw;
    }
    .goal h2, .obj h2{
        font-size: 2.5vw;
    }
    .goal p, .obj p{
        font-size: 2vw;
    }
    
    .location{
        margin: 3vw;
    }
    .location h2{
        font-size: 2.5vw;
    }
    .location p{
        font-size: 2vw;
    }

    .lifewYWCI p {
        font-size: 2vw;
    }

    .clients{
        margin-top: 5vw;
    }

    .clients h1 {
        font-size: 7vw;
    }
    
    .logo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .logo-item {
        width: 150px;
        height: 85px;
    }
}

@media (max-width: 480px) {
    article {
        padding-top: 12vw;
    }

    .text h1 {
        transform: translate(-0%, -20%); /* Adjust to center */
        font-size: 8vw;
    }

    .about h2{
        font-size: 4.5vw;
        margin: 5vw;
    }
    .about p{
        font-size: 3.5vw;
        margin: 3vw;
    }
    .mission h2, .vision h2{
        font-size: 4.5vw;
        margin-bottom: 1vw;
    }
    .mission p, .vision p{
        font-size: 3.5vw;
    }
    .mission:hover{
        background-color: #073884;
        color: #eef3f2;
    }
    .vision:hover{
        background-color: #073884;
        color: #eef3f2;
    }

    .goal, .obj{
        margin: 3vw;
    }
    .goal h2, .obj h2{
        font-size: 4.5vw;
    }
    .goal p, .obj p{
        font-size: 3.5vw;
    }
    .obj p {
        margin-bottom: 10vw;
    }
    
    .location{
        margin: 3vw;
    }
    .location h2{
        font-size: 4.5vw;
    }
    .location p{
        font-size: 3.5vw;
    }

    .lifewYWCI p {
        font-size: 3.5vw;
    }

     /* Updated client section styles */
     .clients {
        padding: 0px;
        margin-top: 10vw;

    }
    .clients h1 {
        font-size: 7vw;
        margin-bottom: 4vw;
    }
    
    .logo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 10px;
        max-width: 100%;
    }
    .logo-item {
        width: 120px;
        height: 70px;
        padding: 5px;
        margin: 0;
    }

    .logo-item:hover {
        transform: scale(1.05);
    }

    .images {
        column-count: 2;
        padding: 10px;
        gap: 10px;
    }
}
