html, body {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Cairo', serif;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* making the image take the entire page */
.container {
    min-height: 60%;
    width: 100%;
    margin: 0;
    padding: 0;
    color: white;
    background-image: url('../assets/background.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    text-align: center;
}

/* navigation bar  */

.nav{
    width: 80%;
    margin-top: 1%;
    padding-top: 0;
    margin-right: 10%;
    margin-bottom: 5%;
}

.nav ul{
    display: flex;
    justify-content: space-between;
    justify-content: flex-end; 
    width: 100%;
}

.nav ul li {
    list-style: none;
    display: inline;
    padding: 0 3%;
}

.nav ul li a {
    text-decoration: none;
    color: white;
    font-size: 1.5vw;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav ul li a:hover {
    color: #FFD700;
}


.title {
    font-size: 4.5vw;
    margin: 0;
    font-weight: 600;
}

.mini-title {
    font-size: 2vw;
    width: 75%;
    margin: 0;
    padding-bottom: 20px;
    border-bottom: solid 3px white;
    border-radius: 2px;
    font-weight: 600;
}

.parag, .yellow-parag {
    font-size: 1.8vw;
    width: 75%;
    margin: 2% 0 0 0;
    line-height: 3.5rem;
}

.yellow-parag {
    color: #FFD700;
    line-height: 3.5rem;
}

.btn {
    font-weight: bolder;
    border-radius: 100px;
    margin-top: 2%;
    padding: 10px 35px;
    font-size: 1.5vw;
    color: black;
    cursor: pointer;
    transition: transform 0.1s ease;
    margin-top: 5%;
    background: #fff;
    margin-bottom: 15%;

}

.btn:active {
    transform: scale(0.95);
}

@media screen and (max-width: 780px) {
    .title {
        font-size: 3rem;
    }

    .mini-title, .parag, .yellow-parag {
        font-size: 1.5rem;
        width: 90%;
    }

    .btn {
        font-size: 1.2rem;
        margin-bottom: 15%;
    }
}

@media screen and (max-width: 1024px){
    .nav{
        height: 10%;
    }
    .nav ul li a{
        font-size: 2vw;
    }
}


@media screen and (max-width: 480px) {
    
    .title {
        font-size: 1.5rem;
        /* padding-top: 15%; */
    }

    .mini-title{
        font-size: 0.7rem;
        width: 95%;
    }

    .parag, .yellow-parag {
        font-size: 0.9rem;
        width: 100%;
    }

    .btn {
        font-size: 1rem;
        padding-bottom: 10%;
    }

    .nav ul li a{
        font-size: 2.8vw;
    }
}

/* About Us Section */
.about {
    display: flex;
    justify-content: space-between;
    background-color: #6b4218;
    width: 100%;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    min-height: 60%;
}

.about_left, .about_right {
    width: 50%;
    padding: 20px;
    box-sizing: border-box;
}

.about_left{
     position: relative;
    display: inline-block;
    /* background: linear-gradient(to top, #000000, #6b4218); */
    /* min-width: fit-content; */ 
}

.about_right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.about_title, .vision_title {
    font-size: 3vw;
    margin-top: 10%;
    color: white;
}

.about_parag, .vision_parag {
    font-weight: 600;
    font-size: 1.5vw;
    color: white;
    line-height: 3rem;
    text-wrap: nowrap;
    /* width: 100%; */
}

/* Handling the about image */
.about_img{
    /* width: 100%;
    height: auto; */
    width: 100%;
    height: 90%;
    object-fit: cover;
    padding-top: 40px;
    position: relative;
    left: 10%;
    margin: 0;
}

.img_text{
    position: absolute;
    top: 30%;
    left: 55%;
    transform: translate(-50%, -50%);
    text-align: center;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    font-size: 3vw;
    color: white;
    margin: 0;
    padding: 0;
    line-height: 5.5rem;
    text-wrap: nowrap;
    min-width: 500px;
}

/* Adjust for mobile responsiveness */
@media screen and (max-width: 768px) {
    .about_left, .about_right {
        width: 100%;
        padding: 10px; /* Reduce padding for smaller screens */
    }

    .about_title, .vision_title {
        font-size: 2rem;
    }

    .about_parag, .vision_parag {
        font-size: 1.2rem;
    }

    /* Adjust image responsiveness */
    .about_img {
        width: 90%;
        height: auto;
        object-fit: cover;
        /* position: relative; */
    }

    /* Adjust text on image */
    .img_text {
        position: absolute;
        top: 40%; /* Centers vertically */
        left: 50%; /* Centers horizontally */
        transform: translate(-50%, -50%);
        text-align: center;
        text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5); /* Shadow for better contrast */
        font-size: 2.5vw;
        color: white;
        padding: 0;
        line-height: 1.5;
        width: 90%; /* Ensures the text doesn't overflow on smaller screens */
    }
}



@media screen and (max-width: 768px) {
    .img_text {
        font-size: 1.8rem; /* Adjust font size for smaller screens */
        width: 90%; /* Keep text within bounds */
    }

    .about_title, .vision_title {
        font-size: 2.5rem;
        padding-right: 5%;
        position: relative;
        top: -25%;
    }

    .about_parag, .vision_parag {
        font-size: 1.2rem;
        line-height: 30px;
        padding-right: 5%;
        position: relative;
        top: -25%;
    }

    .about_img {
        width: 80%;
        /* height: auto; */
        object-fit: cover;
        padding-top: 20px;
        position: relative;
        left: 10%;
        border-radius: 30px;
        height: 80%;
        margin-bottom: 0;
        padding-bottom: 0;
}
}

@media screen and (max-width: 480px) {
    .img_text {
        font-size: 1.2rem; /* Further adjust font size for very small screens */
    }
}

@media screen and (max-width: 480px) {
    .about_title, .vision_title {
        font-size: 1.8rem;
        padding-right: 5%;
        position: relative;
        top: -20%;
    }

    .about_parag, .vision_parag {
        font-size: 0.8rem;
        line-height: 28px;
        padding-right: 5%;
        position: relative;
        top: -20%;
    }

    .img_text {
        font-size: 1.2rem;
        padding-bottom: 10%;
        line-height: 30px;
    }

    .about_img {
        width: 80%;
        /* height: auto; */
        object-fit: cover;
        padding-top: 20px;
        position: relative;
        left: 10%;
        border-radius: 30px;
        height: 80%;
        margin-bottom: 0;
        padding-bottom: 0;
    }
}


/* Plan Section */
.study-plan {
    background-color: #e4dfd5;
    padding: 20px;
}

.plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 0 0 10%;
}

.plan-title {
    margin: 0;
    text-align: end;
    padding: 80px 50px 30px;
    font-size: 4vw;
}

.plan {
    max-width: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 65px;
    transform: skew(20deg);
    border: 2px solid #a46526;
    text-align: center;
    text-wrap: nowrap;
    margin-bottom: 50px;
    font-weight: 600;
    text-align: center;
}

.icon {
    height: 60px;
    margin-left: 40px;
}

@media screen and (max-width: 1024px) {
    .plan-title {
        font-size: 3rem;
        padding-right: 0;
    }

    .plan {
        max-width: 130px;
        height: 65px;
        font-size: medium;
    }

    .icon {
        height: 50px;
    }
    .plans {
        /* padding-left: 40%; */
        margin-left: 10%;
    }
}

@media screen and (max-width: 820px) {
    
    .plans {
        padding-left: 30%;
    }

}

@media screen and (max-width: 768px) {
    .plan-title {
        font-size: 2.5rem;
        padding-right: 10%;
    }

    .plan {
        max-width: 130px;
        height: 65px;
        font-size: medium;
    }

    .icon {
        height: 50px;

    }
    .plans {
        padding-left: 30%;
    }

}

@media screen and (max-width: 480px) {
    .plan-title {
        font-size: 1.5rem;
        padding-right: 25%;
    }

    .plan {
        max-width: 130px;
        height: 65px;
        font-size: medium;
    }

    .icon {
        height: 50px;
    }
    .plans {
        padding-left: 20%;
    }
}

/* Contacts Section */
.contacts {
    background-color: #6b4218;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding: 50px 80px 20px;
}

.contact-title {
    font-size: x-large;
    margin: 0;
    padding: 0;
}

.contact-ways {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.con-icon {
    height: 30px;
    padding-left: 10px;
}

@media screen and (max-width: 768px) {
    .contacts {
        padding: 20px;
    }

    .contact-title {
        font-size: large;
    }
}
