*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

body{
  font-family: Arial, sans-serif;
  overflow-x:hidden;
  background-image:url("bgimage.jpg");
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
}

/* ================= HEADER ================= */

.logo-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:10px 20px;
}

.logo-row img{
  height:100px;
}

.center-name{
  color:#fff;
  font-size:40px;
  font-weight:bold;
  text-align:center;
}

/* ================= MARQUEE ================= */
.news-marquee {
  width: 100%;
  overflow: hidden;
  background: #000;
  color: #fff;
  padding: 10px 0;
}

.news-track {
  display: inline-block;
  white-space: nowrap;
  animation: scroll 15s linear infinite;
}

@keyframes scroll {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}
.middle-marquee {
  height: 350px; /* तुम top-row में 350px दे रहे हो */
  overflow: hidden;
  background: rgba(255,255,255,0.1);
  color: #fff;
  padding: 10px;
  position: relative;
  font-size: 14px;
  font-weight: bold;
}

.marquee-box {
  position: relative;
  height: 100%;
}

.marquee-text {
  position: absolute;
  width: 100%;
  animation: scrollUp 12s linear infinite;
}

@keyframes scrollUp {
  0% {
    transform: translateY(100%);
  }
  100% {
    transform: translateY(-100%);
  }
}
/* ================= MENU ================= */

.menu{
  display:flex;
  justify-content:center;
  align-items:center;
  flex-wrap:wrap;
  gap:15px;
  background:#ff4b14;
  padding:10px;
}

.menu a,
.menu .dropbtn{
  color:#fff;
  text-decoration:none;
  padding:8px 12px;
}

.dropdown{
  position:relative;
}

.dropdown-content{
  display:none;
  position:absolute;
  top:100%;
  left:0;
  background:#ff4b14;
  min-width:160px;
  border-radius:10px;
}

.dropdown-content a{
  display:block;
  padding:8px;
}

.dropdown:hover .dropdown-content{
  display:block;
}

/* ================= HEADINGS ================= */

.heading-row{
  display:flex;
  justify-content:space-between;
  padding:10px 20px;
}

.heading-row h2{
  color:#fff;
}

/* ================= TOP ROW ================= */

.top-row{
  display:flex;
  gap:20px;
  padding:20px;
}

.mini-video-box,
.image-box,
.middle-marquee{
  flex:1;
  height:350px;
  border-radius:10px;
  overflow:hidden;
}

/* VIDEO */

.mini-video-box{
  background:#000;
}

.mini-video-box{
  width:100%;
  aspect-ratio:16/9;   /* ye line important hai */
  overflow:hidden;
  border:3px solid blueviolet;
  border-radius:8px;
  box-shadow:0 0 10px rgba(0,0,0,0.25);
}

.mini-video-box video{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* IMAGE SLIDER */

.image-box{
  position:relative;
  width:100%;
  aspect-ratio:16/9;   /* sabse important line */
  background:#fff;
  overflow:hidden;
  border-radius:8px;
}

.image-box img{
  position:absolute;
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:0;
  transition:opacity 1s ease;
}

.image-box img.active{
  opacity:1;
}


/* ================= ABOUT ================= */

.about-text-box{
  margin:20px;
  padding:20px;
  background:#f1f1f1;
  border-radius:10px;
  border:3px solid #ff5722;
}

/* ================= MOBILE RESPONSIVE ================= */

@media(max-width:768px){

  .logo-row{
    flex-direction:column;
    gap:10px;
  }

  .logo-row img{
    height:60px;
  }

  .center-name{
    font-size:22px;
  }

  .menu{
    flex-direction:column;
  }

  .menu a,
  .menu .dropbtn{
    display:block;
    width:100%;
    text-align:center;
  }

  .heading-row{
    flex-direction:column;
    gap:5px;
    text-align:center;
  }

  .top-row{
    flex-direction:column;
  }

  .mini-video-box,
  .image-box,
  .middle-marquee{
    width:100%;
    height:220px;
  }

  .about-text-box{
    margin:10px;
  }

}
/* About Text box Properties end */

/* Course Page Extra CSS */
.course-section{
  padding: 30px;
}

.course-section h2{
  text-align: center;
  font-size: 42px;   /* 100px se change */
  color: rgb(207, 193, 219);
  margin-bottom: 30px;
}

.course-box{
  background: white;
  padding: 20px;
  margin-bottom: 20px;
  border-left: 6px solid blueviolet;
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
}

.course-box h3{
  margin: 0 0 10px;
  color: #333;
}

.course-box p{
  margin: 5px 0;
  font-size: 16px;
}
.course-section{
  padding: 20px;
}

.course-row{
  display:flex;
  flex-direction:column;   /* ye line add karo */
  gap:20px;
}

.course-col{
  flex: 1;
}

.course-title{
  margin-bottom: 10px;
  color: #a7e1e9;
}

.course-table{
  width: 100%;
  border-collapse: collapse;
}

.course-table th
{border: 1px solid #256607;
  padding: 10px;
  background-color: #ccc;
  color: #010207;
}
.course-table td{
  border: 1px solid #256607;
  padding: 10px;
  background-color: #ccc;
  color: #0e40e2;
}

.course-table th{
  background: #f2f2f2;
}
/* Mobile Responsive */
@media(max-width:768px){
  .course-row{
    flex-direction: column;
  }
}
@media(max-width:768px){
  .course-section h2{
    font-size:28px;
  }
}
/* result Section started */
.result-section{
  min-height:calc(100vh - 150px);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
}

/* Result Box */
.result-box{
  width:90%;
  max-width:400px;
  margin:40px auto;
  padding:35px;
  background:#ffffff;
  border-radius:15px;
  box-shadow:0 15px 35px rgba(0,0,0,0.3);
  text-align:center;
  animation:fadeIn 1s ease;
}

.result-box h2{
  margin-bottom:20px;
  color:#2a5298;
  font-size:22px;
}

.result-box select,
.result-box input{
  width:100%;
  padding:12px;
  margin-bottom:15px;
  border:1px solid #ccc;
  border-radius:8px;
  font-size:15px;
  transition:0.3s;
}

.result-box select:focus,
.result-box input:focus{
  border-color:#2a5298;
  box-shadow:0 0 8px rgba(42,82,152,0.4);
  outline:none;
}

.result-box button{
  width:100%;
  padding:12px;
  background:linear-gradient(45deg,#7b2ff7,#9c27b0);
  border:none;
  border-radius:8px;
  color:#fff;
  font-size:16px;
  cursor:pointer;
  transition:0.3s;
}

.result-box button:hover{
  transform:scale(1.03);
  box-shadow:0 10px 20px rgba(0,0,0,0.3);
}

/* ===== MOBILE FIX ===== */
@media(max-width:768px){

  .result-box{
    width:95%;
    margin:25px auto;
    padding:25px;
  }

  .result-box h2{
    font-size:20px;
  }

}
@media(max-width:768px){
  .dropdown:hover .dropdown-content{
    display:none;
  }

  .dropdown:focus-within .dropdown-content{
    display:block;
  }
}
/* ================= ANIMATION ================= */

@keyframes fadeIn{
  from{
    opacity:0;
    transform:translateY(20px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}

#msg{
  margin-top: 10px;
  color: red;
}
.marksheet-box{
    width:80%;
    max-width:700px;
    margin:30px auto;
    background:#fff;
    padding:20px;
    border:4px solid black;
}

.marksheet-table{
    width:100%;
    border-collapse:collapse;
    border:2px solid black;
    table-layout:fixed;   /* column fix karega */
}

.marksheet-table td{
    border:2px solid black;
    padding:10px;
    font-size:16px;
    word-wrap:break-word;  /* text bahar nahi jayega */
}

.label{
    width:40%;
    font-weight:bold;
    background:#e6e6e6;
}
/* result Section end*/
  
/* gallery Section started */
.folder{
  font-size: 20px;
  padding: 15px;
  background: #2c3e50;
  color: white;
  width: 250px;
  cursor: pointer;
  border-radius: 8px;
  margin-bottom: 15px;
}

.folder:hover{
  background: #34495e;
}

.folder-box{
  width: 260px;
  cursor: pointer;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: 0.3s;
  margin-bottom: 20px;
}

.folder-box:hover{
  transform: scale(1.05);
}

.folder-thumb{
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.folder-title{
  background: #2c3e50;
  color: white;
  padding: 10px;
  text-align: center;
  font-weight: bold;
}

.gallery-grid{
  display: none;
  grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  gap: 15px;
}

.gallery-grid img{
  width: 100%;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

.gallery-grid img:hover{
  transform: scale(1.05);
}

/* Modal */
.modal{
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 999;
}

.modal-content{
  display: block;
  margin: auto;
  max-width: 90%;
  max-height: 90%;
  margin-top: 5%;
}

.close{
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}

/* Arrows */
.nav{
  position: absolute;
  top: 50%;
  font-size: 50px;
  color: white;
  cursor: pointer;
}

.left{ left: 20px; }
.right{ right: 20px; }
/* ===== GALLERY MOBILE FIX ===== */
@media(max-width:768px){

  .folder{
    width:100%;
    text-align:center;
  }

  .folder-box{
    width:95%;
    margin:15px auto;
  }

  .gallery-grid{
    grid-template-columns: repeat(2, 1fr);
    gap:10px;
  }

  .gallery-grid img{
    width:100%;
    height:auto;
  }

  .modal-content{
    max-width:95%;
    max-height:80%;
  }

}

/* gallery Section end */

/* Contact Section started */

/* Header */
.header{
  background:#222;
  color:#fff;
  text-align:center;
  padding:5px 5px;
}
/* ===== CONTACT SECTION ===== */

.contact-container{
  width:90%;
  margin:40px auto;
  display:flex;
  justify-content:space-between;
  gap:30px;
  flex-wrap:wrap;
}

.contact-info,
.contact-form{
  flex:1;
  min-width:280px;
  background:#f9f9f9;
  padding:25px;
  border-radius:10px;
  box-shadow:0 0 10px rgba(0,0,0,0.08);
}

.contact-form input,
.contact-form textarea{
  width:100%;
  padding:10px;
  margin:10px 0;
  border:1px solid #ccc;
  border-radius:5px;
}

.contact-form button{
  background:#004aad;
  color:white;
  padding:10px 20px;
  border:none;
  border-radius:5px;
  cursor:pointer;
}

.contact-form button:hover{
  background:#002f6c;
}

/* ===== MOBILE FIX ===== */
@media(max-width:768px){

  .contact-container{
    flex-direction:column;
  }

  .contact-info,
  .contact-form{
    width:100%;
  }

}

/* Footer */
.footer{
  text-align:center;
  padding:15px;
  background:#222;
  color:white;
  font-size:14px;
}
*{
  box-sizing: border-box;
}

/* ===== FINAL MOBILE RESPONSIVE FIX ===== */
@media(max-width:768px){

  .logo-row{
    flex-direction: column;
    text-align:center;
    gap:10px;
  }

  .logo-row img{
    height:60px;
  }

  .center-name{
    font-size:20px;
  }

  .heading-row{
    flex-direction: column;
    text-align:center;
    gap:5px;
  }

  .top-row{
    flex-direction: column;
    align-items:center;
    gap:15px;
  }

  .mini-video-box,
.middle-marquee{
  width:100%;
  height:220px;
}

.image-box{
  width:100%;
  aspect-ratio:16/9;
}

  .about-text-box{
    margin:10px;
  }

}