*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

html,body{
  width:100%;
  height:100%;
  font-family:Poppins,sans-serif;
  overflow:hidden;
    overflow-y:auto;
}

/*=================================== */
/* ================= FIXED HEADER & FOOTER LAYOUT ================= */


/* Fixed Header */


/* Fixed Navbar under header */


/* Fixed Footer (Quick Links Section) */
.quick-links{
  position:fixed;
  bottom:0;
  left:0;
  width:100%;
  z-index:1000;
}

/* Scrollable Middle Section */
.main-content{
  position:fixed;
  top:233px;  /* header + navbar height */
  bottom:65px; /* quick-links height */
  left:0;
  right:0;
  overflow-y:auto;
  padding:0px 0;
}





/*=====================================*/

body{
  display:flex;
  flex-direction:column;
  min-height:100vh;
}
/* ================= TOP BAR ================= */
.top-marquee{
  background:#2c2d79;
  padding:10px;
}
.top-marquee a{
  color:#fff;
  font-size:16px;
  font-weight:600;
    text-decoration:none;   /* ✅ REMOVE UNDERLINE */

}

/* ================= HEADER ================= */
.header-main{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:14px 40px;
  background:#fff;
}

/* LEFT HEADER */
.left-header{
  display:flex;
  align-items:center;
  gap:18px;
}

.main-logo{
  height:120px;
}

.school-name{
  text-align:center;
  font-family:Roboto,sans-serif;
  text-transform:uppercase;
}

.school-name h1{
  font-size:30px;
  font-weight:750;
  line-height:36px;
  text-align: center;
    color: #000000;
    font-family: "Roboto", Sans-serif;
    text-transform: uppercase;
}

.school-name h2{
  font-size:20px;
  font-weight:800;
  line-height:26px;
}

/* RIGHT HEADER */
.right-header{
  display:flex;
  align-items:center;
  gap:16px;
  flex-wrap:nowrap;              /* ðŸ”‘ prevent wrapping */
}

/* HEADER LOGOS */
.right-header img{
  height:85px;
  object-fit:contain;
  white-space:nowrap;
}

/* LOGIN BUTTON */
.login-btn{
  background:#2c2d79;
  color:#fff;
  padding:10px 22px;
  text-decoration:none;
  font-weight:600;
  border-radius:4px;
  white-space:nowrap;
}

/* BURGER */
.menu-toggle{
  display:none;
  background:none;
  border:none;
  font-size:26px;
  cursor:pointer;
}

/* ================= MENU DESKTOP ================= */

.navbar{
  background:#f5f5f5;
  position:relative;
  z-index:1000;
}

.menu{
  display:flex;
  list-style:none;
  padding:0 15px;
  flex-wrap:nowrap;
  overflow:visible;
  white-space:nowrap;
}


.menu>li{
  position:relative;
}

.menu>li>a{
  font-size:14px;
  font-weight:600;
  padding:10px 12px;
  display:block;
  color:#000;
  line-height: 24px;
  text-decoration:none;
}
.menu>li>a:hover{
  background:#222;
  color:#fff;
}



/* ARROWS */

/* ARROWS - UPDATED FIX */
.menu>li.dropdown>a::after {
  content: " \25BC"; /* Unicode for ▼ */
  font-size: 11px;
}

.submenu li.dropdown>a::after {
  content: " \003E"; /* Unicode for > */
  float: right;
}

/* SUBMENU DESKTOP */
.submenu{
  display:none;
  position:absolute;
  top:100%;
  left:0;
  min-width:220px;
  background:#fff;
  z-index:9999;
  box-shadow:0 4px 12px rgba(0,0,0,.2);
}

.menu>li:hover>.submenu{
  display:block;
}
.submenu li{
  position:relative;
}
.submenu .submenu{
  top:0;
  left:100%;
}
.submenu li:hover>.submenu{
  display:block;
}

.submenu a{
  display:block;
  padding:8px 14px;
  font-size:14px;
  font-weight:400;
  color:#012237;
  line-height: 24px;
  border-bottom: 1px solid #f1f1f1;
  text-decoration:none;
}
.submenu a:hover{
  background:#222;
  color:#fff;
}

.menu,.submenu,.submenu ul{
  list-style:none;
}

/* ================= SLIDER ================= */


.slider{
  width:100%;
  height:calc(100vh - 300px);   /* safe desktop fill */
  min-height:520px;            /* prevents white gap */
  position:relative;
  overflow:hidden;
}

.slider img{
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:0;
  transition:opacity 1s ease-in-out;
}

.slider img.current{
  opacity:1;
}

/* ================= SOCIAL ================= */
#icon_wrapper{
  position:fixed;
  right:0;
  top:40%;
  z-index:9999;
}
.awesome-social{
  width:48px;
  height:48px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  font-size:24px;
}
.facebook{background:#3b5998;}
.youtube{background:#bb0000;}
.instagram{
  background:linear-gradient(45deg,#f09433,#dc2743,#bc1888);
}

/* ================= QUICK LINKS ================= */
.quick-links{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  height:65px;
}

.box{
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:15px;
  font-weight:600;
  font-style:italic;
  color:#fff;
  text-decoration:none;
}

.notice{background:#E1A101;}
.fee{background:#1B609B;}
.events{background:#279412;}
.birthday{background:#A00104;}

/* ================= MOBILE ================= */
@media(max-width:768px){

  .header-main{
    flex-direction:column;
    padding:12px;
    text-align:center;
  }

  .left-header{
    flex-direction:column;
  }

  .main-logo{
    height:70px;
  }

  .right-header{
    width:100%;
    justify-content:space-between;
    margin-top:10px;
  }

  .right-header img{
    display:none;
  }

  .menu-toggle{
    display:block;
  }

  .navbar{
    display:none;
  }
  .navbar.open{
    display:block;
  }

  .menu{
    flex-direction:column;
    padding:0;
  }

  .menu>li>a{
    font-size:14px;
    border-bottom:1px solid #ddd;
  }

  .submenu{
    position:static;
    display:none;
    box-shadow:none;
  }
  .submenu.open{
    display:block;
  }
  .submenu .submenu{
    padding-left:15px;
  }

  .slider{
    height:350px;
    max-height:none;
    min-height:unset;
  }

  .quick-links{
    grid-template-columns:1fr 1fr;
    height:auto;
	margin-top:auto;
  }

  #icon_wrapper{
    display:none;
  }
}

.header-logos{
  display:flex;
  align-items:center;
  gap:12px;
  white-space:nowrap;
}

/* ================= FLASH POPUP ================= */
.popup-overlay{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background:rgba(0,0,0,0.65);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:99999;
}

.popup-box{
  background:#fff;
  padding:12px;
  max-width:620px;
  width:90%;
  border-radius:8px;
  position:relative;
  animation:popupFade .4s ease;
}

.popup-box img{
  width:100%;
  border-radius:6px;
}

.popup-title{
  text-align:center;
  margin-top:8px;
  font-weight:600;
}

.popup-close{
  position:absolute;
  top:-12px;
  right:-12px;
  background:#d32f2f;
  color:#fff;
  border:none;
  width:32px;
  height:32px;
  border-radius:50%;
  font-size:18px;
  cursor:pointer;
}

@keyframes popupFade{
  from{opacity:0;transform:scale(.9);}
  to{opacity:1;transform:scale(1);}
}

/* MOBILE SAFE */
@media(max-width:768px){
  .popup-box{
    max-width:90%;
  }
}

/* FORCE SINGLE LINE MENU TEXT */
.menu a,
.submenu a{
  white-space: nowrap;
}

/* CONTROL SUBMENU WIDTH */
.submenu{
  min-width: 260px;
}

.page-section{
    padding:60px 40px;
    background:#2c2d79;
    min-height:100vh;
}

.page-title{
    text-align:center;
    color:#fff;
    margin-bottom:40px;
}

.staff-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:25px;
}

.staff-card{
    background:#fff;
    padding:20px;
    text-align:center;
    border-radius:8px;
}

.staff-card img{
    width:150px;
    height:180px;
    object-fit:cover;
    margin-bottom:15px;
}

.btn-view{
    display:inline-block;
    margin-top:10px;
    padding:8px 15px;
    background:#2c2d79;
    color:#fff;
    text-decoration:none;
    border-radius:4px;
}


.page-section{
  background:#2e2e8b;
  padding:60px 0;
}

.page-box{
  width:70%;
  margin:auto;
  background:#f2f2f2;
  padding:40px;
  border-radius:12px;
}

.page-title{
  font-size:28px;
  font-style:italic;
  margin-bottom:20px;
}

.motto{
  text-align:center;
  margin:20px 0;
}

.page-box h3{
  font-size:22px;
  margin-top:30px;
  font-style:italic;
}

.inner-page{
  background:#2f2f85;
  padding:60px 0;
  min-height:500px;
}

.content-box{
  background:#fff;
  max-width:1000px;
  margin:0 auto;
  padding:40px;
  border-radius:10px;
}

.content-box h2{
  margin-bottom:20px;
}


/* ================= SCHOOL PROFILE PAGE ================= */

.profile-wrapper{
    background:#2e2e85;
    padding:60px 0;
    flex:1;   /* 🔥 This fixes white space */
}

.profile-box{
    width:62%;
    margin:auto;
    background:#f3f3f3;
    padding:50px;
    border-radius:12px;
}

.profile-box2{
    width:48%;
    margin:auto;
    background:#f3f3f3;
    padding:50px;
    border-radius:12px;
}

/* Title */
.profile-title{
    font-family:"Roboto", Sans-serif;
    font-size:28px;
    font-weight:700;
    color:#000;
    text-decoration:underline;
    margin-bottom:30px;
}

/* Motto */
.motto-section{
    text-align:center;
    margin-bottom:30px;
}

.motto-section h4{
    font-family:"Roboto", Sans-serif;
    font-size:18px;
    font-weight:600;
    margin-bottom:8px;
}

.motto-section h3{
    font-family:"Roboto", Sans-serif;
    font-size:22px;
    font-weight:600;
    	line-height: 32px;
    margin-bottom: 20px;
}

.motto-hindi{
    font-family:"Roboto", Sans-serif;
    font-size:18px;
    font-weight:600;
	line-height: 32px;
    margin-bottom: 20px;
}

/* Main Paragraph */
.profile-content{
    color:#000000;
    font-family:"Roboto", Sans-serif;
font-size:19px;
    font-weight:700;
    text-align: justify;

	line-height: 32px;
    margin-bottom: 20px;
}

.profile-content1{
    color:#000000;
    font-family:"Roboto", Sans-serif;
font-size:19px;
    font-weight:700;
	    text-align: justify;

	line-height: 32px;
	margin-top: 20px;
    margin-bottom: 20px;
}

/* Section headings */
.section-heading{
    font-family:"Roboto", Sans-serif;
    font-size:24px;
    font-weight:600;
    color:#000;
    text-decoration:underline;
    margin-top:20px;
    margin-bottom:15px;
}

.section-title h1{
    font-family:"Roboto", Sans-serif;
    font-size:20px;
    font-weight:600;
    	line-height: 32px;
    margin-bottom: 20px;
}

/* Responsive */
@media(max-width:768px){
    .profile-box{
        width:90%;
        padding:25px;
    }
}

/* ================= CONTACT PAGE ================= */

.contact-box{
    padding:40px;
}

.contact-grid{
    display:flex;
    gap:40px;
    align-items:flex-start;
}

.contact-map{
    flex:1;
}

.contact-info{
    flex:1;
}

.contact-title{
    font-family:"Roboto", Sans-serif;
    font-size:28px;
    font-weight:700;
    color:#2c2d79;
    margin-bottom:15px;
}

.contact-text{
    color:#000;
    font-family:"Roboto", Sans-serif;
    font-size:18px;
    font-weight:400;
    margin-bottom:15px;
}

.contact-label{
    color:#000;
    font-family:"Roboto", Sans-serif;
    font-size:18px;
    font-weight:400;
    margin-bottom:15px;
}

/* Mobile */
@media(max-width:768px){
    .contact-grid{
        flex-direction:column;
    }
}

/* ================= NOTICE BOARD ================= */

.notice-box{
    max-width:950px;
}

/* Scroll inside middle only */
.notice-scroll{
    max-height:420px;
    overflow-y:auto;
    scroll-behavior:smooth;
}

/* Hide ugly scrollbar (optional) */
.notice-scroll::-webkit-scrollbar{
    width:6px;
}
.notice-scroll::-webkit-scrollbar-thumb{
    background:#999;
    border-radius:10px;
}

/* Header badge */
.notice-badge{
    background:#e1a101;
    padding:8px 14px;
    color:#fff;
    font-weight:600;
    display:inline-block;
    margin-bottom:15px;
}

/* Row */
.notice-row{
    display:flex;
    align-items:center;
    padding:10px 0;
    border-bottom:1px dashed #999;
    font-family:"Roboto", Sans-serif;
    font-size:18px;
}

/* Columns */
.notice-no{
    width:40px;
	color:#0d2a6b;
	  font-weight:600;
}

.notice-date{
    width:160px;
    font-weight:600;
	color:#0d2a6b;
	margin-right:30px;
}

.notice-title{
    flex:1;
}

.notice-title a{
    text-decoration:none;
    color:#0d2a6b;
	font-weight:600;
}

.notice-title a:hover{
    text-decoration:underline;
}

/* Download icon */
.notice-download{
    width:40px;
    text-align:center;
    font-size:18px;
	font-weight:600;
}

/* Blink NEW */
.blink-new{
    color:red;
    font-size:15px;
	font-weight:600;
    margin-left:10px;
    animation: blink 1s infinite;
}

@keyframes blink{
    0%{opacity:1;}
    50%{opacity:0;}
    100%{opacity:1;}
}

/* Pagination */
.pagination{
    margin-top:20px;
    text-align:center;
}

.pagination a{
    display:inline-block;
    padding:6px 12px;
    margin:0 4px;
    background:#eee;
    text-decoration:none;
    color:#0d2a6b;
    border-radius:4px;
	font-weight:600;
}

.pagination a.active{
    background:#2c2d79;
    color:#fff;
	font-weight:600;
}
/* ================= STUDY MATERIAL PAGE ================= */

.inner-page{
    background:#2f2f85;
    padding:60px 0;
    min-height:calc(100vh - 220px);
}

.study-wrapper{
    width:60%;
    margin:0 auto;
    background:#f2f2f2;
    border-radius:12px;
    display:flex;
    overflow:hidden;
}

/* LEFT PANEL */
.study-left{
    width:20%;
    background:#e6e6e6;
    padding:20px;
}

.study-left h3{
    text-align:center;
    margin-bottom:20px;
		font-size:20px;
	font-weight:400;
}

.left-menu button{
    width:100%;
    padding:10px;
    background:#ddd;
    border:none;
    cursor:pointer;
}

.left-menu button.active{
    background:#cfcfcf;
    font-weight:600;
}

/* RIGHT PANEL */
.study-right{
    width:75%;
    padding:30px;
}

.study-right h2{
    text-align:center;
	font-size:32px;
	font-weight:400;
    margin-bottom:20px;
}

/* TABLE */
.study-table{
    width:100%;
    border-collapse:collapse;
}

.study-table th{
    background:#dcdcdc;
    padding:10px;
    text-align:left;
}

.study-table td{
    padding:12px 10px;
    border-bottom:1px solid #ccc;
}

.study-table tr:nth-child(even){
    background:#efefef;
}

.download-cell{
    text-align:center;
}

.download-cell i{
    font-size:18px;
    color:#2c2d79;
}


.pagination{
    margin-top:25px;
    text-align:center;
}

.page-btn{
    display:inline-block;
    padding:6px 12px;
    margin:3px;
    background:#f1f1f1;
    color:#000;
    text-decoration:none;
    border-radius:4px;
    font-size:14px;
}

.page-btn:hover{
    background:#2c2d79;
    color:#fff;
}

.page-btn.active{
    background:#2c2d79;
    color:#fff;
    font-weight:600;
}

.blink-new{
    color:red;
    font-weight:700;
    margin-left:8px;
    animation:blink 1s infinite;
}

@keyframes blink{
    0%{opacity:1;}
    50%{opacity:0;}
    100%{opacity:1;}
}


.faculty-wrapper1{
    width:61%;
    margin:40px auto;
    background:#f2f2f2;
    padding:30px;
    border-radius:8px;
}

.faculty-title1{
    text-align:center;
    font-size:28px;
    background:#ddd;
    padding:10px;
    margin-bottom:30px;
}


.subcat-grid{
    display:grid;
    grid-template-columns: repeat(4,1fr);
    gap:20px;
}

.subcat-box{
    background:#fff;
    border:3px solid #3b3b8f;
	transition: background 0.3s, border 0.3s, border-radius 0.3s, box-shadow 0.3s;
    padding:30px 10px;
    text-align:center;
    font-weight:600;
    text-decoration:none;
    color:#000;
    
	

}

.subcat-box:hover{
    background:#f7f7f7;
    transform:translateY(-3px);
}





.faculty-wrapper {
    background:#2e3192;
    padding:40px 0;
}

.faculty-box {
    width:70%;
    margin:auto;
    display:flex;
    background:#f5f5f5;
    border-radius:6px;
    overflow:hidden;
}

.faculty-left {
    width:25%;
    background:#ffff;
    padding:7px;
    font-size:22px;
    font-weight:bold;
}

.faculty-right {
    width:75%;
    padding:20px;
}

.faculty-header {
margin: 0px 0px 0px 0px;
    padding: 10px 10px 10px 10px;
    background-color: #EEEEEE;
    border-radius: 5px 5px 5px 5px;

}

.faculty-header h2 {
    margin:0;
}

.faculty-link {
    display:inline-block;
    margin-top:10px;
    padding:8px 15px;
    background:#ddd;
    text-decoration:none;
}

.faculty-grid-scroll {
    max-height:500px;
    overflow-y:auto;
    margin-top:20px;
}

.faculty-grid-header {
    display:grid;
    grid-template-columns: 100px 1fr 1fr 100px 1fr 1fr;
    background:#2e3192;
    color:#fff;
    padding:10px;
    font-weight:bold;
}

.faculty-row {
    display:grid;
    grid-template-columns: 100px 1fr 1fr 100px 1fr 1fr;
    align-items:center;
    padding:15px 10px;
    border-bottom:1px solid #ddd;
}

.faculty-photo img {
    width:80px;
    height:100px;
    object-fit:cover;
}

.facultyPopup {
    width:60%;
}


.faculty-title {
    margin: 0px;
    padding: 10px 10px 10px 10px;
    background-color: #EEEEEE;
    border-radius: 5px;
    color: #000000;
    font-family: "Roboto", Sans-serif;
    font-size: 22px;
    font-weight: 500;
    text-transform: uppercase;
	text-align:center;
}

.academic-btn {
    width: 100%;
    color: #000000;
    font-family: "Roboto", Sans-serif;
    font-size: 15px;
    font-weight: 400;
    text-transform: capitalize;
    line-height: 20px;
    padding: 10px;
    border-bottom: 1px solid #ddd;
    text-decoration: none;
    display: block;
}

.academic-btn:hover {
    background-color: #f5f5f5;
}


.staff-left-panel {
    border-style: solid;
    border-width: 1px;
    border-color: #DDDDDD;
    transition: background 0.3s, border 0.3s, border-radius 0.3s, box-shadow 0.3s;
    margin: 10px;
    padding: 0;
    background: #fff;
	    height: 100%;

}

.staff-left-title {
    margin: 0;
    padding: 10px;
    background-color: #F5F5F5;
    border-radius: 0;
    color: #000000;
    font-family: "Roboto", sans-serif;
    font-size: 22px;
    font-weight: 500;
    text-transform: uppercase;
	    padding-bottom: 12px;
	text-align:center;
}

.staff-academic-btn {
    width: 100%;
    border-bottom: 1px solid #ddd;
    padding: 10px;
    text-decoration: none;
    display: block;
	text-align:center;

    color: #000000;
    font-family: "Roboto", sans-serif;
    font-size: 15px;
    font-weight: 400;
    text-transform: capitalize;
    line-height: 20px;
}

.staff-academic-btn:hover {
    background: #f2f2f2;
}

.staff-right-title {
    margin: 0;
    padding: 10px;
    background-color: #EEEEEE;
    border-radius: 5px;
    color: #000000;
    font-family: "Roboto", sans-serif;
    font-size: 22px;
    font-weight: 500;
    text-transform: uppercase;
}

/* ============================= */
/* STAFF GRID POPUP (ISOLATED)  */
/* ============================= */

.staff-grid-page .sg-popup {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
}

.staff-grid-page .sg-popup-content {
    background: #fff;
    width: 50%;
    margin: 5% auto;
    padding: 20px;
    border-radius: 6px;
    position: relative;
    display: flex;
    gap: 20px;
}

.staff-grid-page .sg-popup img {
    width: 250px;
    height: auto;
}

.staff-grid-page .sg-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 22px;
    cursor: pointer;
}




/* ================= STAFF GRID POPUP CONTENT ================= */

.staff-grid-page .sg-popup-content {
    background: #fff;
    width: 50%;
    margin: 5% auto;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
    height: 455px;
}

/* LEFT SIDE IMAGE */
.staff-grid-page .sg-popup-left {
    float: left;
    width: 40%;
    padding: 0px 15px;
    height: 455px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.staff-grid-page .sg-popup-left img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* RIGHT SIDE CONTENT */
.staff-grid-page .sg-popup-right {
    float: left;
    width: 50%;
    padding: 34px 15px;
    height: 100%;
    overflow: auto;
	    text-align: justify;

}

/* CLEAR FIX */
.staff-grid-page .sg-popup-content::after {
    content: "";
    display: block;
    clear: both;
}

/* CLOSE BUTTON */
.staff-grid-page .sg-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 22px;
    cursor: pointer;
}


.staff-grid-page .sg-popup-right p {
    line-height: 24px;
    margin-bottom: 10px;
}
