* {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box; /* Better spacing control */
}

.header {
    min-height: 100vh;
    width: 100%;
    background-image: linear-gradient(rgba(4, 9, 30, 0.7), rgba(4, 9, 30, 0.7)), url(images/5453427.png);
    background-position: center;
    background-size: cover;
    position: relative;
    overflow: hidden;
}

/* Navigation */

nav {
    display: flex;
    padding: 2% 4%;
    justify-content: space-between;
    align-items: center;
    
}

nav img {
    width: 135px;
}

.nav-links {
    flex: 1;
    text-align: right; /* Align links to the right */
}

.nav-links ul {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
}
@media (max-width: 700px) {
    .nav-links {
        display: none; 
        flex-direction: column; 
        position: absolute;
        top: 0px; 
        background: rgba(4, 9, 30, 0.7); 
        right: 1%;
        width: 100%; 
        z-index: 1; 
    }

    .nav-links ul {
        display: grid;
        position: absolute;
        padding-top:2vh; 
        padding-left: 45vw;
    }

    .nav-links ul li {
        list-style: none;
        display: block;
        padding: 8px 12px;
        text-align: left; 
    }

    .nav-links.active {
        display: flex; 
    }

    .full-page.active {
        background-color: rgb(178, 0, 0); 
        color: rgb(0, 0, 0); 
    }

    .menu-icon {
        display: block; 
        color: #fff; 
        font-size: 22px; 
    }
}

.nav-links ul li {
    list-style: none;
    display: inline-block;
    padding: 8px 12px;
    position: relative;
}

.nav-links ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 13px;
}

.nav-links ul li::after {
    content: '';
    width: 0%;
    height: 2px;
    background: #f44336;
    display: block;
    margin: auto;
    transition: .5s;    
}

.nav-links ul li:hover::after {
    width: 100%;
}

nav .fa {
    display: none; /* Hide menu icon initially */
}

/* Text box */
.text-box {
    width: 90%;
    color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.sub-header.text-box h1 {
    font-size: 70px;
    
}

.text-box p {
    margin: 20px 0 40px;
    font-size: 14px;
    color: #fff;
}

.hero-btn {
    display: inline-block;
    text-decoration: none;
    color: #fff;
    border: 1px solid #fff;
    padding: 12px 34px;
    font-size: 13px;
    background: transparent;
    position: relative;
    cursor: pointer;
    transition: 1s;
}

.hero-btn:hover {
    border: 1px solid #f44336;
    background: #f44336;
}

/* Responsive adjustments */
@media(max-width: 700px) {    
    nav .fa {
        display: block; 
        color: #fff;
        margin: 10px;
        font-size: 22px;
        cursor: pointer; 
    }
    
    .text-box h1 {
        font-size: 20px; /* Adjust text size for mobile */
    }
}

/*---------- details --------*/
.details {
    width: 80%;
    margin: auto;
    text-align: center;
    padding-top: 100px;
}

h1 {
    font-size: 36px;
    font-weight: 600;
}

p {
    color: #494848;
    font-size: 14px;
    font-weight: bolder;
    line-height: 22px;
    padding: 10px;
}
.row {
    margin-top: 5%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;  
}

.row-details {
    margin-top: 2%;
    display: flex;
    flex-grow: inherit;    /* Enables flexbox layout */
    flex-direction: row; /* Ensures the items are aligned in a row (default) */
    justify-content: space-between; /* Optional: Distributes space between boxes */
    padding: 10px;
}

.row-details .row-details-box {
    width: 45%;  /* Adjust the width as needed */
    background-color: #fff3f3;
    padding: 20px 12px;
    flex-basis: 31%;
    border-radius: 10px;
    text-align: center;
    box-sizing: border-box;
    transition: .5s;
}

.row-details-box:hover{
    box-shadow: 0 0 20px 0px rgba(0, 0, 0, 0.2);
}

.details-col {
    flex-basis: 31%;
    background: #fff3f3;
    border-radius: 10px;
    margin-bottom: 5%;
    padding: 20px 12px;
    box-sizing: border-box;
    transition: .5s;
}

h3 {
    text-align: center;
    font-weight: 600;
    margin: 10px 0;
}

.details-col:hover {
    box-shadow: 0 0 20px 0px rgba(0, 0, 0, 0.2);
}

@media (max-width: 700px) {
    .row {
        flex-direction: column; /* Stack details on mobile */
    }
    
    .details-col {
        flex-basis: 100%; /* Full width for mobile */
        margin-bottom: 20px; /* Add margin for spacing */
    }
}

/*---------------- campus ----------------*/
.campus {
    width: 80%;
    margin: auto;
    text-align: center;
    padding-top: 10px;
}

.campus-col {
    flex-basis: 32%;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    border-radius: 10px; /* Keep rounded corners */
}

.campus-col img {
    width: 100%;
    height: auto; /* Maintain aspect ratio */
    border-radius: 10px; /* Apply rounded corners to the images */
    object-fit: cover; /* Ensure the image covers the container */
}

.layer {
    background: transparent;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    position: absolute;
    transition: .5s;
}


.layer h3 {
    width: 100%;
    font-weight: 500;
    color: #fff;
    font-size: 26px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    position: absolute;
    opacity: 0;
    transition: .5s;
}

.layer:hover h3 {
    bottom: 49%;
    opacity: 1;
}

/*-------------- Facilities ----------------*/
.facility {
    width: 80%;
    margin: auto;
    text-align: center;
    padding-top: 100px;
}

.facility-col {
    flex-basis: 31%;
    border-radius: 10px;
    margin-bottom: 5%;
    text-align: center;
}

.facility-col img {
    width: 100%;
    border-radius: 10px;
}

.facility-col p {
    padding: 0;
}

.facility-col h3 {
    margin-top: 16px;
    margin-bottom: 15px;
    text-align: center;
}

/*---------------- testimonials ------------------*/
.testimonials {
    width: 80%;
    margin: auto;
    padding-top: 100px;
    text-align: center;
}

.testimonial-col {
    flex-basis: 40%;
    border-radius: 20px;
    margin-bottom: 5%;
    text-align: center;
    background: #fff3f3;
    padding: 25px;
    display: flex;
    transition: .5s;
}

.testimonial-col:hover {
    box-shadow: 0 0 20px 0px rgba(0, 0, 0, 0.2);
}

.testimonial-col img {
    height: 40px;
    margin-left: 5px;
    margin-right: 30px;
    border-radius: 50%;
}

.testimonial-col p {
    padding: 0;
}

.testimonial-col h3 {
    margin-top: 15px;
    text-align: left;
}

.testimonial-col .fa {
    color: #f44336;
}

@media(max-width: 700px) {
    .testimonial-col {
        flex-basis: 100%; /* Full width for mobile */
        margin-bottom: 20px; /* Add spacing between testimonials */
    }
    
    .testimonial-col img {
        margin-left: 0px;
        margin-right: 15px;
    }
}

/*-------- Call To Action ----------*/
.cta {
    margin: 100px auto;
    width: 80%;
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url(images/463603.png);
    background-position: center;
    background-size: cover;
    border-radius: 10px;
    text-align: center;
    padding: 100px 0;
}

.cta h1 {
    color: #fff;
    margin-bottom: auto; 
    padding: 0; 
}

@media(max-width: 700px) {
    .cta {
        padding: 50px 0; /* Reduce padding for mobile */
    }
    
    .cta h1 {
        font-size: 24px;
    }
}
/*-------------- Footer ---------------*/
.footer {
    width: 100%;
    text-align: center;
    padding: 30px 0;
}

.footer h4 {
    margin-bottom: 45px;
    margin-top: 20px;
    font-weight: bolder;    
}
.icons{
    text-align: center;
}
.icons .fa {
    color: #1f4dc0;
    margin: 0 13px;
    cursor: pointer;
    padding: 18px 0;
}

.fa-heart-o {
    color: #f44336;
}

/* Sub-header */
.sub-header {
    min-height: 55vh;
    width: 100%;
    background-image: linear-gradient(rgba(24, 32, 66, 0.7), rgba(4, 9, 30, 0.7)), url(images/463603.png);
    overflow: hidden;
}

/*-----------container-----------*/
.container h4{
    margin: 20px;
    text-align: center;
    font-family: 'Times New Roman', Times, serif;
}