* {
    margin: 0;
    padding: 0;
}

body {
    background-color: #eef3f2;
    padding-top: 7vw;
}

.top {
    position: relative;
}

.text {
    position: absolute;
    top: 20%; /* Center vertically */
    left: 50%; /* Center horizontally */
    transform: translate(-95%, -20%); /* Adjust to center */
    color: white;
    font-size: 1.8vw; /* Make text size responsive based on viewport width */
    line-height: 1.2;
    opacity: 0; /* Start as invisible */
    transition: opacity 1s ease-in-out; /* fade-in effect */
}
.text h1{
    font-family: 'montserratExtraBold';
    font-size: 3.2vw;
    margin-bottom: 35px;
}
.text p {
    font-family: 'montserratRegular';
    font-size: 1.8vw; /* Slightly smaller h2 font size */
    margin-bottom: 10px;
}
.text button {
    border: white;
    border-style: solid;
    border-radius: 30px;
    background-color: #073884;
    cursor: pointer;
    display: inline-block;
    font-size: 1.8vw;
    padding: 1vw 3vw;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.4s, color 0.4s, border-color 0.4s;
}
.text button a {
    text-decoration: none;
    color: white;
    font-family: 'montserratSemiBold';
}
.text button:hover {
    border-color: #073884;
    background-color: white;
    color: #073884;
}
.text button:hover a {
    color: #073884;
}
.text.show {
    opacity: 1; /* Fully visible */
}

section .YWCI h1{
    font-family: 'montserratExtraBold';
    margin: 3vw;
    font-size: 3vw;
}

.home-img {
    margin-top:  1vw;
}
.home-img img {
    display: block;
    width: 100%;
    height: auto;
    opacity: 0; /* Start image as invisible */
    transition: opacity 1s ease-in-out; /* Smooth fade-in effect */
}
.home-img img.show {
    opacity: 1; /* Fully visible */
}

.home-mobile{
    display: none;
}

section .YWCI h2{
    font-family: 'montserratBold';
    margin-top: 5vw;
    font-size: 3vw;
}

.logo-carousel {
    width: 100%;
    background: white;
    margin: 3vw 0;
    overflow: hidden;
    position: relative;
}
.logo-container {
    display: flex;
    width: fit-content;
    height: 100%;
    animation: scroll 30s linear infinite;
}
.logo-slide {
    display: flex;
    width: 100%;
    gap: 30px;
    justify-content: space-around;
    align-items: center;
}
.logo-slide img {
    height: 5vw;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}
.logo-slide img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-20%); 
    }
}

.columns {
    box-sizing: border-box;
    margin-top: 3vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3vw;
}
.row {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    flex-wrap: wrap;
    width: 100%;
}
.column {
    width: 30%;
    height: auto;
    padding: 15px;
    margin: 10px;
    margin-bottom: 3vw;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(-50px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}
.column:hover {
    transform: translateY(-10px);
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.15);
}
.column h2 {
    font-family: 'montserratBold';
    font-size: 3vh;
}
.column p {
    margin-top: 15px;
    font-family: 'montserratRegular';
    font-size: 2.3vh;
}
.column img {
    width: 40%;
    margin-top: 2vw;
}
.column.show{
    opacity: 1;
    transform: translateY(0);
}

.about-section {
    background-color: #0047AB;
    position: relative;
    padding: 80px 0;
}
  
.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
  
.about-image {
    flex: 0 0 50%;
    padding-right: 40px;
}
  
.about-image img {
    max-width: 100%;
    height: auto;
}
  
.about-content-wrapper {
    flex: 0 0 50%;
    padding: 40px;
    position: relative;
    z-index: 1;
}
  
.about-content {
    color: #fff;
}
  
.about-content h1 {
    font-size: 36px;
    margin-bottom: 20px;
}
  
.about-content p {
    font-size: 14px;
    margin-right: 20px;
    line-height: 1.5;
    margin-bottom: 20px;
}
  
.read-more-btn {
    display: inline-block;
    background-color: #fff;
    color: #073884;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    transition: background-color 0.3s ease;
}
  
.read-more-btn:hover {
    background-color: rgba(255, 255, 0, 0.795);
    color: #073884;
}

/*------------- PHONE VIEW --------------*/
@media (max-width: 700px) {
    * {
        margin: 0;
        padding: 0;
    }

    body{
        padding-top: 3vw;
    }

    .top {
        position: relative;
    }

    .top .text{
        position: absolute;
        transform: translate(-50%, -15%);
        color: white;
        width: 100%;
        opacity: 0; /* Start as invisible */
        transition: opacity 1s ease-in-out; /* fade-in */
    }
    .top .text h1{
        font-family: 'montserratExtraBold';
        font-size: 8vw;
    }
    .top .text p{
        font-family: 'montserratRegular';
        font-size: 4vw; 
        margin-bottom: 0px;
    }
    .top .text button {
        margin-top: 3vw;
        border-radius: 30px;
        background-color: white;
        cursor: pointer;
        display: inline-block;
        font-size: 3vw;
        padding: 2.5vw 4vw;
        text-align: center;
        text-decoration: none;
        transition: background-color 0.4s, color 0.4s, border-color 0.4s;
    }
    .top .text button a {
        text-decoration: none;
        color: #073884;
        font-family: 'montserratSemiBold';
    }
    .top .text button:hover {
        border-color: #073884;
        background-color: white;
        color: #073884;
    }
    .top .text button:hover a {
        color: #073884;
    }
    .top .text.show {
        opacity: 1; /* Fully visible */
    }

    .home-img {
        display: none;
    }

    .home-mobile{
        margin-top: 7vw;
        display: block;
    }
    .home-mobile img{
        width: 100%;
        height: auto;
        opacity: 0; /* Start as invisible */
        transition: opacity 1s ease-in-out; /* fade-in effect */
    }
    .home-mobile img.show{
        opacity: 1; /* Fully visible */
    }

    section .YWCI h2{
        font-size: 5vw;
        color: #073884;
    }

    .logo-carousel {
        width: 100%;
        background: white;
        padding: 2vw 0;
        margin: 6vw 0;
        overflow: hidden;
        position: relative;
    }
    .logo-slide img {
        height: 10vw;
    }

    section .YWCI h1{
        font-size: 5vw;
        color: #073884;
    }

    .columns {
        box-sizing: border-box;
        margin-top: 3vw;
        display: flex;
        flex-direction: column;
        align-items: center; /* Centers the cards horizontally */
        gap: 2vw; /* Adds space between the cards */
    }
    .row {
        display: flex;
        flex-direction: column;
        align-items: center; /* Ensures cards stay centered */
        width: 100%;
    }
    .column {
        width: 80%; /* Adjusts the card width */
        max-width: 80vw; 
        height: auto;
        background-color: white;
        color: black;
        border-radius: 10px;
        box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
        padding: 10px;
        text-align: center;
        margin-bottom: 20px;
        transform: translateY(-50px);
        transition: opacity 1s ease-out, transform 1s ease-out;
    }
    .column img {
        max-width: 30%;
        margin: 10% 0; 
    }
    .column h2 {
        font-size: 5vw; 
    }
    .column p {
        margin-top: 15px;
        font-size: 3.4vw; 
    }

    .logo {
        width: 100%;
        overflow: hidden;
        background-color: #073884;
    }
    
    @keyframes scroll {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(-30%);
        }
    }

    .about-container {
        flex-direction: column;
    }
    
    .about-image {
        flex: 0 0 auto;
        margin-bottom: 10px;
    }
    
    .about-content-wrapper {
        flex: 0 0 auto;
        width: 100%;
    }
}

/*------------- TABLET VIEW --------------*/
@media (max-width: 940px) {
    * {
        margin: 0;
        padding: 0;
    }

    .top {
        position: relative;
    }

    /* Text inside picture */
    .text {
        position: absolute;
        top: 20%; 
        left: 50%; 
        transform: translate(-100%, -20%);
        color: white;
        padding: 0px 10px;
        margin: 2px;
        line-height: 1.2;
        opacity: 0; /* Start as invisible */
        transition: opacity 1s ease-in-out; /* fade-in effect */ 
    }
    .text h1{
        font-family: 'montserratExtraBold';
        margin-bottom: 10px;
        font-size: 3.7vw;
    }
    .text p {
        font-family: 'montserratRegular';
        font-size: 2vw; 
        margin-bottom: 10px;
        color: white;
    }
    .text button {
        border: white;
        border-style: solid;
        border-radius: 30px;
        background-color: #073884;
        cursor: pointer;
        display: inline-block;
        font-size: 1.8vw;
        padding: 1vw 3vw;
        text-align: center;
        text-decoration: none;
        transition: background-color 0.4s, color 0.4s, border-color 0.4s;
    }
    .text button a {
        text-decoration: none;
        color: white;
        font-family: 'montserratSemiBold';
    }
    .text button:hover {
        border-color: #073884;
        background-color: white;
        color: #073884;
    }
    .text button:hover a {
        color: #073884;
    }
    .text.show {
        opacity: 1; /* Fully visible */
    }

    .home-img {
        margin-top: 4vw;
    }

    /* Picture for the top part */
    .home-img img {
        display: block;
        width: 100%;
        height: auto;
        opacity: 0; /* Start as invisible */
        transition: opacity 1s ease-in-out; /* fade-in effect */
    }

    .home-img img.show {
        opacity: 1; /* Fully visible */
    }

    .about-container {
        flex-direction: column;
    }    
    .about-image {
        justify-items: center;
        flex: 0 0 auto;
        padding-right: 0;
        margin-bottom: 40px;
    }
    .about-content-wrapper {
        flex: 0 0 auto;
        width: 100%;
    }
    .about-content {
        margin-right: 5vw;
        margin-left: 5vw;
    }
}