/*=========================
Google Font
==========================*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
}

body{
    background:#f5f5f5;
}

/*=========================
TOP BAR
==========================*/

.top-bar{
    background:#08244a;
    color:#fff;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:10px 6%;
    font-size:14px;
}

.top-bar .left span{
    margin-right:25px;
}

.top-bar i{
    color:#ffbf00;
    margin-right:6px;
}

.top-bar .right a{
    color:#fff;
    text-decoration:none;
    margin-right:20px;
}

.top-bar .right i{
    color:#fff;
    margin-left:15px;
    cursor:pointer;
    transition:.3s;
}

.top-bar .right i:hover{
    color:#ffc107;
}

/*=========================
HEADER
==========================*/

header{
    background:#fff;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:18px 6%;
    box-shadow:0 3px 10px rgba(0,0,0,.08);
}

.logo{
    display:flex;
    align-items:center;
}

.logo img{
    width:70px;
    margin-right:12px;
}

.logo h2{
    color:#0b2c57;
    font-size:32px;
    font-weight:800;
    line-height:30px;
}

.logo h3{
    color:#0b2c57;
    font-size:22px;
    font-weight:700;
}

nav ul{
    display:flex;
    list-style:none;
}

nav ul li{
    margin:0 15px;
}

nav ul li a{
    text-decoration:none;
    color:#222;
    font-weight:600;
    transition:.3s;
}

nav ul li a:hover,
nav ul li a.active{
    color:#ffb400;
}

.admission-btn{
    text-decoration:none;
    background:#ffc107;
    color:#111;
    padding:12px 22px;
    border-radius:6px;
    font-weight:700;
    transition:.3s;
}

.admission-btn:hover{
    background:#e8a800;
}

/*=========================
HERO
==========================*/

.hero{
    height:650px;
    background:url("images/school.jpg") center center/cover no-repeat;
    position:relative;
}

.overlay{
    width:100%;
    height:100%;
    background:rgba(0,28,60,.55);
    display:flex;
    align-items:center;
}

.content{
    width:50%;
    margin-left:7%;
    color:#fff;
}

.content h4{
    color:#ffc107;
    font-size:22px;
    margin-bottom:15px;
}

.content h1{
    font-size:70px;
    line-height:75px;
    margin-bottom:25px;
    font-weight:800;
}

.content p{
    font-size:20px;
    line-height:34px;
    margin-bottom:35px;
}

.buttons{
    display:flex;
    gap:20px;
}

.btn1,
.btn2{
    text-decoration:none;
    padding:16px 30px;
    border-radius:6px;
    font-size:17px;
    font-weight:700;
}

.btn1{
    background:#ffc107;
    color:#111;
}

.btn2{
    border:2px solid #fff;
    color:#fff;
}

.btn1:hover{
    background:#e0a600;
}

.btn2:hover{
    background:#fff;
    color:#000;
}

/*=========================
Responsive
==========================*/

@media(max-width:992px){

header{
    flex-direction:column;
}

nav ul{
    flex-wrap:wrap;
    justify-content:center;
    margin:20px 0;
}

.content{
    width:90%;
}

.content h1{
    font-size:45px;
    line-height:55px;
}

.hero{
    height:500px;
}

.top-bar{
    flex-direction:column;
    gap:10px;
}

}

/*=========================
FEATURES
=========================*/

.features{
    width:88%;
    margin:60px auto;
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:25px;
}

.features .box{
    background:#fff;
    text-align:center;
    padding:35px 20px;
    border-radius:10px;
    box-shadow:0 5px 18px rgba(0,0,0,.1);
    transition:.3s;
}

.features .box:hover{
    transform:translateY(-10px);
}

.features i{
    font-size:45px;
    color:#ffb400;
    margin-bottom:20px;
}

.features h3{
    margin-bottom:15px;
    color:#0b2c57;
}

.features p{
    color:#666;
    line-height:26px;
}

/*=========================
ABOUT
=========================*/

.about{
    width:88%;
    margin:80px auto;
    display:flex;
    gap:60px;
    align-items:center;
}

.about-image{
    flex:1;
}

.about-image img{
    width:100%;
    border-radius:12px;
    box-shadow:0 8px 20px rgba(0,0,0,.15);
}

.about-content{
    flex:1;
}

.about-content h5{
    color:#ffb400;
    margin-bottom:12px;
    font-size:18px;
}

.about-content h2{
    color:#0b2c57;
    font-size:38px;
    margin-bottom:20px;
}

.about-content p{
    color:#555;
    line-height:30px;
    margin-bottom:25px;
}

.about-content ul{
    list-style:none;
    margin-bottom:30px;
}

.about-content ul li{
    margin:12px 0;
    font-size:17px;
}

.read-btn{
    background:#0b2c57;
    color:#fff;
    text-decoration:none;
    padding:14px 30px;
    border-radius:6px;
    font-weight:600;
}

.read-btn:hover{
    background:#ffb400;
    color:#000;
}

/*=========================
Responsive
=========================*/

@media(max-width:992px){

.features{
grid-template-columns:1fr 1fr;
}

.about{
flex-direction:column;
}

}

@media(max-width:600px){

.features{
grid-template-columns:1fr;
}

.about-content h2{
font-size:30px;
}

}

/*=========================
PRINCIPAL
=========================*/

.principal{
width:88%;
margin:80px auto;
display:flex;
gap:50px;
align-items:center;
}

.principal-img{
flex:1;
}

.principal-img img{
width:100%;
border-radius:10px;
box-shadow:0 8px 20px rgba(0,0,0,.15);
}

.principal-content{
flex:1;
}

.principal-content h5{
color:#ffb400;
margin-bottom:10px;
}

.principal-content h2{
font-size:38px;
color:#0b2c57;
margin-bottom:20px;
}

.principal-content p{
line-height:30px;
color:#555;
margin-bottom:20px;
}

.principal-content h4{
color:#0b2c57;
margin-top:20px;
}

.principal-content span{
color:#888;
}

/*=========================
ACADEMICS
=========================*/

.academics{
padding:80px 6%;
background:#f8f9fa;
}

.title{
text-align:center;
margin-bottom:50px;
}

.title h5{
color:#ffb400;
margin-bottom:10px;
}

.title h2{
font-size:40px;
color:#0b2c57;
}

.academic-box{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:30px;
}

.card{
background:#fff;
padding:40px 25px;
text-align:center;
border-radius:10px;
box-shadow:0 5px 18px rgba(0,0,0,.1);
transition:.3s;
}

.card:hover{
transform:translateY(-10px);
}

.card i{
font-size:50px;
color:#ffb400;
margin-bottom:20px;
}

.card h3{
color:#0b2c57;
margin-bottom:15px;
}

.card p{
color:#666;
line-height:28px;
}

/*=========================
Responsive
=========================*/

@media(max-width:992px){

.principal{
flex-direction:column;
}

.academic-box{
grid-template-columns:1fr;
}

}

/*=========================
NOTICE
=========================*/

.notice-section{
width:90%;
margin:80px auto;
display:grid;
grid-template-columns:1fr 1fr;
gap:40px;
}

.notice-box,
.news-box{

background:#fff;
padding:30px;
border-radius:10px;
box-shadow:0 5px 18px rgba(0,0,0,.1);

}

.notice-box h2,
.news-box h2{

margin-bottom:20px;
color:#0b2c57;

}

.notice-box marquee p{

padding:10px 0;
font-size:17px;

}

.news-box ul{

list-style:none;

}

.news-box li{

padding:14px 0;
border-bottom:1px solid #ddd;
font-size:17px;

}

/*=========================
GALLERY
=========================*/

.gallery{
    padding: 80px 6%;
    background: #f7f7f7;
    margin-top: 150px;   /* Gallery ko niche lane ke liye */
}

.gallery-title{
    text-align: center;
    margin-bottom: 40px;
}

.gallery-title h5{
    color: #ffb400;
}

.gallery-title h2{
    font-size: 40px;
    color: #0b2c57;
}

.gallery-grid{
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 20px;
    align-items: start;
}

.gallery-grid img{
    width: 100%;
    height: 280px;
    object-fit: cover;
    object-position: top;
    border-radius: 10px;
    transition: .4s;
    cursor: pointer;
}

.gallery-grid img:hover{
    transform: scale(1.05);
}

/*=========================
Responsive
=========================*/

@media (max-width:992px){

    .notice-section{
        grid-template-columns:1fr;
    }

    .gallery-grid{
        grid-template-columns:repeat(2,1fr);
    }

}

@media (max-width:600px){

    .gallery-grid{
        grid-template-columns:1fr;
    }

}

/*=========================
CONTACT
=========================*/

.contact{
width:90%;
margin:80px auto;
display:grid;
grid-template-columns:1fr 1fr;
gap:40px;
}

.contact-info h5{
color:#ffb400;
margin-bottom:10px;
}

.contact-info h2{
font-size:38px;
color:#0b2c57;
margin-bottom:25px;
}

.contact-info p{
margin:18px 0;
font-size:18px;
color:#555;
}

.contact-info i{
color:#ffb400;
margin-right:10px;
}

.contact-form form{
display:flex;
flex-direction:column;
}

.contact-form input,
.contact-form textarea{
padding:15px;
margin-bottom:20px;
border:1px solid #ddd;
border-radius:6px;
font-size:16px;
}

.contact-form button{
background:#0b2c57;
color:#fff;
padding:15px;
border:none;
border-radius:6px;
font-size:18px;
cursor:pointer;
transition:.3s;
}

.contact-form button:hover{
background:#ffb400;
color:#000;
}

/*=========================
MAP
=========================*/

.map{
    width: 70%;
    margin: 40px auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.map iframe{
    width: 100%;
    height: 180px;
    border: 0;
}

/*=========================
FOOTER
=========================*/

footer{
background:#08244a;
color:#fff;
padding:60px 8%;
display:grid;
grid-template-columns:repeat(3,1fr);
gap:40px;
}

.footer-box h3{
margin-bottom:20px;
}

.footer-box p{
line-height:28px;
}

.footer-box a{
display:block;
color:#ddd;
text-decoration:none;
margin:10px 0;
transition:.3s;
}

.footer-box a:hover{
color:#ffb400;
}

.copyright{
background:#061a35;
color:#fff;
text-align:center;
padding:18px;
font-size:15px;
}

/*=========================
Responsive
=========================*/

@media(max-width:992px){

.contact{
grid-template-columns:1fr;
}

footer{
grid-template-columns:1fr;
text-align:center;
}

}

/*=========================
WELCOME
=========================*/

.welcome{
padding:70px 8%;
text-align:center;
background:#fff;
}

.welcome h5{
color:#ffb400;
margin-bottom:10px;
}

.welcome h2{
font-size:40px;
color:#0b2c57;
margin-bottom:20px;
}

.welcome p{
max-width:900px;
margin:auto;
line-height:30px;
color:#555;
}

/*=========================
ADMISSION OPEN
=========================*/

.admission-open{
background:#0b2c57;
color:#fff;
text-align:center;
padding:50px 20px;
}

.admission-open h2{
font-size:38px;
margin-bottom:15px;
}

.admission-open a{
display:inline-block;
margin-top:20px;
padding:14px 30px;
background:#ffc107;
color:#000;
text-decoration:none;
border-radius:6px;
font-weight:bold;
}

/*=========================
EVENTS
=========================*/

.events{
padding:70px 8%;
background:#f8f8f8;
}

.events h2{
text-align:center;
margin-bottom:35px;
color:#0b2c57;
}

.event-box{
display:grid;
grid-template-columns:repeat(4,1fr);
gap:20px;
}

.event-box div{
background:#fff;
padding:25px;
border-radius:10px;
text-align:center;
box-shadow:0 5px 15px rgba(0,0,0,.1);
}

/*=========================
QUICK LINKS
=========================*/

.quick-links{
padding:70px 8%;
background:#fff;
text-align:center;
}

.quick-links h2{
text-align:center;
margin-bottom:30px;
color:#0b2c57;
}

.quick-grid{
display:grid;
grid-template-columns:repeat(4,1fr);
gap:20px;
justify-content: center;
display: flex;
}

.quick-grid a{
display:block;
background:#0b2c57;
color:#fff;
padding:18px;
text-align:center;
text-decoration:none;
border-radius:8px;
font-weight:600;
}

.quick-grid a:hover{
background:#ffb400;
color:#000;
}

/*=========================
PTM
=========================*/

.ptm{
padding:60px;
text-align:center;
background:#fff8e1;
}

.ptm h2{
color:#0b2c57;
margin-bottom:15px;
}

@media(max-width:992px){

.event-box,
.quick-grid{
grid-template-columns:1fr 1fr;
}

}

@media(max-width:600px){

.event-box,
.quick-grid{
grid-template-columns:1fr;
}

}


.section-title{
text-align:center;
margin-bottom:40px;
}

.section-title h5{
color:#ffb400;
}

.section-title h2{
font-size:38px;
color:#0b2c57;
}

.history,
.affiliation,
.why,
.infrastructure,
.rules,
.timing,
.achievement{
width:90%;
margin:80px auto;
}

.history p{
text-align:center;
line-height:30px;
color:#555;
max-width:900px;
margin:auto;
}

.aff-grid,
.why-grid,
.infra-grid,
.ach-grid{
display:grid;
grid-template-columns:repeat(4,1fr);
gap:20px;
}

.aff-grid div,
.why-grid div,
.infra-card,
.ach-grid div{
background:#fff;
padding:25px;
text-align:center;
border-radius:10px;
box-shadow:0 5px 15px rgba(0,0,0,.1);
}

.rules ul{
list-style:none;
}

.rules li{
padding:15px;
margin:10px 0;
background:#fff;
border-left:5px solid #ffc107;
box-shadow:0 3px 10px rgba(0,0,0,.08);
}

.timing table{
width:100%;
border-collapse:collapse;
background:#fff;
}

.timing th,
.timing td{
border:1px solid #ddd;
padding:15px;
}

.timing th{
background:#0b2c57;
color:#fff;
}

@media(max-width:992px){

.aff-grid,
.why-grid,
.infra-grid,
.ach-grid{
grid-template-columns:1fr 1fr;
}

}

@media(max-width:600px){

.aff-grid,
.why-grid,
.infra-grid,
.ach-grid{
grid-template-columns:1fr;
}

}


.inquiry,
.admission-form,
.portal,
.admin-panel{
width:90%;
margin:80px auto;
}

.inquiry form,
.admission-form form{
display:flex;
flex-direction:column;
gap:15px;
}

.inquiry input,
.inquiry select,
.inquiry textarea,
.admission-form input,
.admission-form select,
.admission-form textarea{
padding:14px;
border:1px solid #ddd;
border-radius:6px;
font-size:16px;
}

.inquiry button,
.admission-form button,
.portal button{
padding:14px;
background:#0b2c57;
color:#fff;
border:none;
border-radius:6px;
cursor:pointer;
font-size:16px;
}

.form-buttons{
display:flex;
gap:15px;
flex-wrap:wrap;
}

.portal-box{
max-width:450px;
margin:auto;
background:#fff;
padding:30px;
border-radius:10px;
box-shadow:0 5px 15px rgba(0,0,0,.1);
display:flex;
flex-direction:column;
gap:15px;
}

.portal-box input{
padding:14px;
border:1px solid #ddd;
border-radius:6px;
}

.portal-box a{
text-decoration:none;
color:#0b2c57;
}

.admin-grid{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:20px;
}

.admin-grid div{
background:#fff;
padding:25px;
text-align:center;
border-radius:10px;
box-shadow:0 5px 15px rgba(0,0,0,.1);
font-weight:600;
}

@media(max-width:992px){
.admin-grid{
grid-template-columns:1fr 1fr;
}
}

@media(max-width:600px){
.admin-grid{
grid-template-columns:1fr;
}
}

/*========== COUNTER ==========*/

.counter{
width:90%;
margin:70px auto;
display:grid;
grid-template-columns:repeat(4,1fr);
gap:20px;
}

.counter-box{
background:#0b2c57;
color:#fff;
padding:35px;
text-align:center;
border-radius:10px;
}

.counter-box h2{
font-size:42px;
margin-bottom:10px;
color:#ffc107;
}

/*========== FACILITIES ==========*/

.facilities{
width:90%;
margin:80px auto;
}

.facility-grid{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:20px;
}

.facility-card{
background:#fff;
padding:25px;
border-radius:10px;
box-shadow:0 5px 15px rgba(0,0,0,.1);
}

.facility-card h3{
color:#0b2c57;
margin-bottom:12px;
}

/*========== TOPPERS ==========*/

.toppers{
width:90%;
margin:80px auto;
}

.toppers table{
width:100%;
border-collapse:collapse;
background:#fff;
}

.toppers th,
.toppers td{
padding:15px;
border:1px solid #ddd;
text-align:center;
}

.toppers th{
background:#0b2c57;
color:#fff;
}

/*========== DOWNLOADS ==========*/

.downloads{
width:90%;
margin:80px auto;
}

.download-grid{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:20px;
}

.download-grid a{
display:block;
padding:18px;
background:#0b2c57;
color:#fff;
text-decoration:none;
text-align:center;
border-radius:8px;
font-weight:600;
}

.download-grid a:hover{
background:#ffc107;
color:#000;
}

/*========== RESPONSIVE ==========*/

@media(max-width:992px){

.counter,
.facility-grid,
.download-grid{
grid-template-columns:1fr 1fr;
}

}

@media(max-width:600px){

.counter,
.facility-grid,
.download-grid{
grid-template-columns:1fr;
}

}



/*=========================
AFFILIATION
=========================*/

.affiliation{
    padding: 80px 6%;
    background: #ffffff;
    margin-bottom: 150px;   /* Gallery ko niche karega */
}

.section-title{
    text-align: center;
    margin-bottom: 40px;
}

.section-title h5{
    color: #ffb400;
}

.section-title h2{
    font-size: 40px;
    color: #0b2c57;
}

.aff-grid{
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 25px;
}

.aff-grid div{
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.aff-grid h3{
    color: #0b2c57;
    margin-bottom: 10px;
}

.aff-grid p{
    color: #555;
}

@media(max-width:768px){
    .aff-grid{
        grid-template-columns: 1fr;
    }
}