/* ================= GOOGLE FONT & RESET ================= */

html{
    scroll-behavior: smooth;
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    font-family: 'Poppins', sans-serif;
}

/* ================= HERO SECTION ================= */

.hero{
    width: 100%;
    min-height: 100vh;

    background:
    linear-gradient(rgba(0,0,50,0.65), rgba(0,0,50,0.65)),
    url('../images/college-banner.jpeg');

    background-size: cover;
    background-position: center;

    color: white;
    padding: 0 8%;
}

/* ================= NAVBAR ================= */

.navbar{
    width: 100vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(2, 6, 53, 0.936);
    padding: 10px 8%;
    box-sizing: border-box;
    position: relative;
    left: 50%;
    right: 50%;
    
    margin-left: -50vw;
    margin-right: -50vw;
}

/* Logo */

.logo{
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img{
    width: 60px;
    height: 60px;
    object-fit: contain;
    background: white;
    border-radius: 50%;
    padding: 5px;
}

.logo-text h2{
    font-size: 24px;
    font-weight: 600;
}

.logo-text p{
    font-size: 13px;
    color: #ddd;
}

/* Navigation */

.nav-links{
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a{
    text-decoration: none;
    color: white;
    font-size: 15px;
    font-weight: 500;
    transition: 0.3s;
}

.nav-links a:hover{
    color: #ffd166;
}

/* Apply Button */

.apply-btn{
    text-decoration: none;
    background: #ffd166;
    color: #000;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    transition: 0.3s;
}

.apply-btn:hover{
    background: white;
}

/* ================= HERO CONTENT ================= */

.hero-content{
    
    margin-top: 120px;
}

.hero-content h1{
    font-size: 50px;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 25px;
}

.hero-content p{
    font-size: 18px;
    line-height: 1.8;
    color: #f1f1f1;
    margin-bottom: 35px;
}

/* Hero Buttons */

.hero-buttons{
    display: flex;
    gap: 20px;
}

.primary-btn,
.secondary-btn{
    text-decoration: none;
    padding: 14px 30px;
    border-radius: 30px;
    font-weight: 600;
    transition: 0.3s;
}

/* Primary Button */

.primary-btn{
    background: #ffd166;
    color: black;
}

.primary-btn:hover{
    background: white;
}

/* Secondary Button */

.secondary-btn{
    border: 2px solid white;
    color: white;
}

.secondary-btn:hover{
    background: white;
    color: black;
}
.hero-content h3{
    font-size: 24px;
    font-weight: 400;
    color: #ffd166;
    margin-bottom: 20px;
}

/* ================= ABOUT SECTION ================= */

.about{
    padding: 100px 8%;
    background: #f8f9fc;
}

/* Section Title */

.section-title{
    text-align: center;
    margin-bottom: 70px;
}

.section-title h2{
    font-size: 42px;
    color: #0a1f44;
    margin-bottom: 15px;
}

.section-title p{
    color: #666;
    font-size: 17px;
    max-width: 700px;
    margin: auto;
    line-height: 1.8;
}

/* About Container */

.about-container{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    margin-bottom: 80px;
}

/* About Text */

.about-text{
    flex: 1;
}

.about-text h3{
    font-size: 32px;
    color: #0a1f44;
    margin-bottom: 20px;
}

.about-text p{
    font-size: 16px;
    line-height: 1.9;
    color: #555;
    margin-bottom: 20px;
}

/* Mission Vision */

.mission-vision{
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.mission-box{
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.mission-box h4{
    color: #0a1f44;
    margin-bottom: 12px;
    font-size: 20px;
}

/* About Image */

.about-image{
    flex: 1;
}

.about-image img{
    width: 100%;
    border-radius: 20px;
    object-fit: cover;
}

/* Trustee Section */

.trustee-section{
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 30px;
}

.trustee-card{
    background: white;
    text-align: center;
    padding: 30px 20px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: 0.3s;
}

.trustee-card:hover{
    transform: translateY(-8px);
}

.trustee-card img{
    width: 240px;
    height: 280px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
}

.trustee-card h3{
    color: #0a1f44;
    margin-bottom: 8px;
}

.trustee-card p{
    color: #777;
}

/* ================= COURSES SECTION ================= */

.courses{
    padding: 100px 8%;
    background: white;
}

/* Course Container */

.course-container{
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

/* Course Card */

.course-card{
    max-width: 500px;
    background: #f8f9fc;
    padding: 40px;
    border-radius: 20px;

    box-shadow: 0 5px 25px rgba(0,0,0,0.08);

    transition: 0.3s;
}

.course-card:hover{
    transform: translateY(-10px);
}

/* Course Icon */

.course-icon{
    font-size: 50px;
    margin-bottom: 20px;
}

/* Course Title */

.course-card h3{
    font-size: 30px;
    color: #0a1f44;
    margin-bottom: 20px;
}

/* Course Description */

.course-card p{
    color: #555;
    line-height: 1.9;
    margin-bottom: 25px;
}

/* Course Details */

.course-card ul{
    margin-bottom: 30px;
}

.course-card ul li{
    list-style: none;
    margin-bottom: 12px;
    color: #333;
    font-weight: 500;
}

/* Course Button */

.course-btn{
    display: inline-block;

    text-decoration: none;

    background: #0a1f44;
    color: white;

    padding: 14px 28px;

    border-radius: 30px;

    transition: 0.3s;
}

.course-btn:hover{
    background: #ffd166;
    color: black;
}

/* ================= FACILITIES SECTION ================= */

.facilities{
    padding: 100px 8%;
    background: #f8f9fc;
}

/* Facility Container */

.facility-container{
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 30px;
    margin-top: 50px;
}
.facilities{
    padding: 100px 8%;
    background: #f8f9fc;
}

.facility-wrapper{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    margin-top: 50px;
}

.facility-list{
    flex: 1;
}

.facility-list ul{
    list-style: none;
}

.facility-list ul li{
    font-size: 20px;
    margin-bottom: 20px;
    color: #333;
    font-weight: 500;
}

.facility-images{
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.facility-images img{
    width: 90%;
    height: 300px;
    object-fit: fill;
    border-radius: 20px;
}

/* Facility Card 

.facility-card{
    background: white;

    border-radius: 18px;

    overflow: hidden;

    box-shadow: 0 5px 20px rgba(0,0,0,0.08);

    transition: 0.3s;
}

.facility-card:hover{
    transform: translateY(-10px);
}

/* Facility Image

.facility-card img{
    width: 100%;
    height: 230px;
    object-fit: cover;
}

/* Facility Content 

.facility-content{
    padding: 25px;
}

.facility-content h3{
    font-size: 24px;
    color: #0a1f44;
    margin-bottom: 15px;
}

.facility-content p{
    color: #666;
    line-height: 1.8;
}
*/
/* ================= GALLERY SECTION ================= */

.gallery{
    padding: 100px 8%;
    background: white;
}

/* Gallery Container */

.gallery-container{
    display: grid;

    grid-template-columns: repeat(3,1fr);

    gap: 25px;

    margin-top: 50px;
}

/* Gallery Item */

.gallery-item{
    overflow: hidden;

    border-radius: 18px;

    position: relative;
}

/* Gallery Image */

.gallery-item img{
    width: 100%;
    height: 280px;

    object-fit: cover;

    transition: 0.5s;
}

/* Hover Effect */

.gallery-item:hover img{
    transform: scale(1.08);
}

/* ================= CONTACT SECTION ================= */

.contact{
    padding: 100px 8%;
    background: #f8f9fc;
}

/* Contact Container */

.contact-container{
    display: flex;
    gap: 50px;
    margin-top: 50px;
}

/* Contact Info */

.contact-info{
    flex: 1;
}

.contact-info h3{
    font-size: 32px;
    color: #0a1f44;
    margin-bottom: 20px;
}

.contact-info p{
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* Info Box */

.info-box{
    margin-bottom: 25px;
}

.info-box strong{
    display: block;
    margin-bottom: 8px;
    color: #0a1f44;
}

/* Contact Form */

.contact-form{
    flex: 1;
}

/* Form */

.contact-form form{
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Inputs */

.contact-form input,
.contact-form textarea{
    width: 100%;

    padding: 16px;

    border: none;

    border-radius: 12px;

    background: white;

    box-shadow: 0 5px 15px rgba(0,0,0,0.05);

    font-family: 'Poppins', sans-serif;
}

/* Button */

.contact-form button{
    width: fit-content;

    padding: 14px 30px;

    border: none;

    border-radius: 30px;

    background: #0a1f44;

    color: white;

    font-weight: 600;

    cursor: pointer;

    transition: 0.3s;
}

.contact-form button:hover{
    background: #ffd166;
    color: black;
}

/* Google Map */

.map-container{
    margin-top: 60px;
}

.map-container iframe{
    width: 100%;
    height: 400px;

    border: none;

    border-radius: 20px;
}

/* ================= FOOTER SECTION ================= */

.footer{
    background: #0a1f44;
    color: white;

    padding-top: 80px;
}

/* Footer Container */

.footer-container{
    display: grid;

    grid-template-columns: repeat(3,1fr);

    gap: 40px;

    padding: 0 8% 50px;
}

/* Footer Box */

.footer-box h3{
    margin-bottom: 20px;

    font-size: 24px;
}

.footer-box p{
    color: #d1d1d1;

    line-height: 1.8;

    margin-bottom: 12px;
}

/* Footer Links */

.footer-box ul{
    list-style: none;
}

.footer-box ul li{
    margin-bottom: 12px;
}

.footer-box ul li a{
    text-decoration: none;

    color: #d1d1d1;

    transition: 0.3s;
}

.footer-box ul li a:hover{
    color: #ffd166;
}

/* Bottom Footer */

.footer-bottom{
    text-align: center;

    border-top: 1px solid rgba(255,255,255,0.1);

    padding: 20px;

    color: #ccc;
}

/* ================= RESPONSIVE DESIGN ================= */

@media(max-width: 992px){

    /* Navbar */

    .navbar{
        flex-direction: column;
        gap: 20px;
    }

    .nav-links{
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Hero */

    .hero-content{
        margin-top: 80px;
    }

    .hero-content h1{
        font-size: 45px;
    }

    /* About */

    .about-container{
        flex-direction: column;
    }

    .mission-vision{
        flex-direction: column;
    }

    /* Trustee */

    .trustee-section{
        grid-template-columns: repeat(2,1fr);
    }

    /* Facilities */

    .facility-container{
        grid-template-columns: repeat(2,1fr);
    }

    /* Gallery */

    .gallery-container{
        grid-template-columns: repeat(2,1fr);
    }

    /* Contact */

    .contact-container{
        flex-direction: column;
    }

    /* Footer */

    .footer-container{
        grid-template-columns: repeat(2,1fr);
    }

}

/* ================= MOBILE RESPONSIVE ================= */

@media(max-width: 768px){

    /* Hero */

    .hero{
        padding: 0 5%;
    }

    .hero-content h1{
        font-size: 36px;
    }

    .hero-content h3{
        font-size: 20px;
    }

    .hero-content p{
        font-size: 16px;
    }

    .hero-buttons{
        flex-direction: column;
        align-items: flex-start;
    }

    /* Navbar */

    .navbar{
        text-align: center;
    }

    .logo{
        flex-direction: column;
    }

    .nav-links{
        flex-direction: column;
    }

    /* Section Title */

    .section-title h2{
        font-size: 32px;
    }

    /* Trustee */

    .trustee-section{
        grid-template-columns: 1fr;
    }

    /* Facilities */

    .facility-container{
        grid-template-columns: 1fr;
    }

    /* Gallery */

    .gallery-container{
        grid-template-columns: 1fr;
    }

    /* Footer */

    .footer-container{
        grid-template-columns: 1fr;
    }

    /* Course */

    .course-card{
        padding: 30px 20px;
    }

    .course-card h3{
        font-size: 24px;
    }

}


/* ================= STICKY NAVBAR ================= */

.sticky{
    position: sticky;
    top: 0;

    background: rgba(10,31,68,0.95);

    padding: 15px 8%;

    z-index: 1000;
}

/* ================= SCROLL ANIMATION ================= */

section{
    opacity: 1;
    transform: translateY(0);
    transition: 0.8s;
}
section.show{
    opacity: 1;

    transform: translateY(0);
}


/* ================= CUSTOM SCROLLBAR ================= */

::-webkit-scrollbar{
    width: 10px;
}

::-webkit-scrollbar-track{
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb{
    background: #0a1f44;
    border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover{
    background: #ffd166;
}


/* ================= TEXT SELECTION ================= */

::selection{
    background: #ffd166;
    color: black;
}
section{
    overflow: hidden;
}
/* ================= IMAGE HOVER EFFECT ================= */

.facility-card img,
.gallery-item img,
.about-image img{
    transition: 0.5s;
}

.facility-card:hover img,
.about-image:hover img{
    transform: scale(1.05);
}

html{
    scroll-behavior: smooth;
}
/* ================= FACILITY MOBILE RESPONSIVE ================= */

@media(max-width: 768px){

    .facility-wrapper{
        flex-direction: column;
        gap: 30px;
    }

    .facility-list{
        width: 100%;
    }

    .facility-list ul li{
        font-size: 18px;
        margin-bottom: 15px;
    }

    .facility-images{
        width: 100%;
    }

    .facility-images img{
        height: 220px;
    }

}