/* ===== Reset ===== */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial, Helvetica, sans-serif;
}

html{
    scroll-behavior:smooth;
    scroll-padding-top:100px;
}

.facilities{
    background-image: url("facilities.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    padding: 80px 20px;
}
body{
    background:#98f0e1;
    color:#140808;
}

section[id]{
    scroll-margin-top:100px;
}

/* ===== Header ===== */

header{
    width:100%;
    background:#b30000;
    color:rgb(230, 229, 235);
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:15px 8%;
    position:sticky;
    top:0;
    z-index:1000;
}

.logo h2{
    font-size:30px;
    letter-spacing:2px;
}

.logo img{
    display:block;
    height:60px;
    width:auto;
}

nav{
    display:flex;
    gap:25px;
}

nav a{
    color:white;
    text-decoration:none;
    font-size:18px;
    transition:.3s;
}

nav a:hover{
    color:yellow;
}

/* ===== Mobile Menu ===== */

#menu{
    display:none;
}

.menu-btn{
    display:none;
    font-size:28px;
    cursor:pointer;
}

/* ===== Hero ===== */

.hero{
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
    width: 100%;
    display:flex;
    justify-content:center;
    align-items:center;
}

.hero-text{
    background: rgba(0,0,0,0.5);
    padding:40px;
    border-radius:12px;
    text-align:center;
    color:#fff;
    width:70%;
}

.hero-text h1{
    font-size:60px;
    margin-bottom:20px;
}

.hero-text p{
    font-size:24px;
    margin-bottom:25px;
}

.btn{
    background:#ff3b3b;
    color:#fff;
    padding:12px 30px;
    border-radius:5px;
    text-decoration:none;
}
.btn:hover{
    background:#990000;
}

/* ===== Sections ===== */

section{
    padding:70px 8%;
}

section h2{
    text-align:center;
    font-size:40px;
    margin-bottom:30px;
    color:#f77878;
}

/* ===== About ===== */

.about p{
    max-width:900px;
    margin:auto;
    text-align:center;
    line-height:1.8;
    font-size:18px;
}

/* ===== Cards ===== */

.cards{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:25px;
}

.card{
    background:rgb(221, 164, 164);
    padding:25px;
    border-radius:10px;
    text-align:center;
    box-shadow:0 5px 15px rgba(0,0,0,.1);
    transition:.3s;
}
.library-card{
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
                url("library.jpg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    color: white;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,.2);
    transition: .3s;
}

.library-card:hover{
    transform: translateY(-8px);
}
.lab-card:hover{
    transform: translateY(-8px);
}
.card:hover{
    transform:translateY(-8px);
}

.card img{
    width:100%;
    border-radius:10px;
}

.card i{
    font-size:50px;
    color:#b30000;
    margin-bottom:20px;
}

.card h3{
    margin:15px 0;
}

.contact-wrap{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:30px;
    align-items:start;
}

.contact-info{
    background:rgba(255,255,255,.55);
    padding:30px;
    border-radius:10px;
    box-shadow:0 5px 15px rgba(0,0,0,.08);
    text-align:center;
}

.contact-info h3{
    margin-bottom:15px;
    font-size:28px;
    color:#b30000;
}

.contact-info p{
    margin:10px 0;
    font-size:18px;
    line-height:1.6;
}

/* ===== Contact ===== */

.contact form{
    max-width:600px;
    margin:auto;
    display:flex;
    flex-direction:column;
    gap:20px;
}

.contact input,
.contact textarea{
    padding:15px;
    border:1px solid #ccc;
    border-radius:5px;
    font-size:16px;
}

.contact textarea{
    height:150px;
    resize:none;
}

.contact button{
    background:#b30000;
    color:white;
    border:none;
    padding:15px;
    font-size:18px;
    cursor:pointer;
    border-radius:5px;
}

.contact button:hover{
    background:#8a0000;
}

/* ===== Footer ===== */

.site-footer{
    background:linear-gradient(180deg, #0a2b66 0%, #07214d 100%);
    color:#f7f7f7;
    padding:70px 8% 30px;
}

.footer-grid{
    display:grid;
    grid-template-columns:1.2fr 1fr 1fr;
    gap:40px;
    align-items:start;
}

.footer-brand img{
    width:150px;
    height:auto;
    display:block;
    margin-bottom:18px;
}

.footer-brand p,
.footer-links a,
.footer-contact p,
.footer-note,
.footer-subscribe p{
    color:rgba(255,255,255,.78);
    line-height:1.7;
}

.footer-title{
    font-size:28px;
    margin-bottom:22px;
    color:#ffffff;
}

.footer-links{
    display:flex;
    flex-direction:column;
    gap:12px;
}

.footer-links a{
    text-decoration:none;
    transition:.3s;
}

.footer-links a:hover{
    color:#f3c56b;
}

.footer-contact{
    display:flex;
    flex-direction:column;
    gap:16px;
}

.footer-contact p{
    display:flex;
    gap:12px;
    align-items:flex-start;
}

.footer-contact i{
    color:#f3c56b;
    margin-top:4px;
}

.footer-subscribe-form{
    display:flex;
    margin-top:18px;
    max-width:380px;
}

.footer-subscribe-form input{
    flex:1;
    border:none;
    padding:16px 18px;
    font-size:16px;
    outline:none;
}

.footer-subscribe-form button{
    width:58px;
    border:none;
    background:#d7ae61;
    color:#fff;
    font-size:18px;
    cursor:pointer;
}

.footer-bottom{
    margin-top:42px;
    padding-top:18px;
    border-top:1px solid rgba(255,255,255,.18);
    text-align:center;
    color:rgba(255,255,255,.65);
}

/* ===== Responsive ===== */

@media(max-width:768px){

.menu-btn{
    display:block;
}

nav{
    position:absolute;
    top:70px;
    left:-100%;
    width:100%;
    background:#b30000;
    flex-direction:column;
    text-align:center;
    transition:.4s;
    padding:20px 0;
}

nav a{
    display:block;
    padding:15px;
}

#menu:checked~nav{
    left:0;
}

.hero{
    height:70vh;
}

.hero-text{
    width:90%;
}

.hero-text h1{
    font-size:32px;
}

.hero-text p{
    font-size:18px;
}

.logo h2{
    font-size:22px;
}

section{
    padding:50px 5%;
}

section h2{
    font-size:30px;
}

.footer-grid{
    grid-template-columns:1fr;
    gap:28px;
}

.site-footer{
    padding:55px 5% 24px;
}

.footer-title{
    font-size:24px;
}

.footer-subscribe-form{
    max-width:100%;
}

.contact-info h3{
    font-size:24px;
}

}