*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
}

body{
    background:#eef2f7;
}

/* HEADER */

.header{
    background:linear-gradient(135deg,#5b1fa6,#00695c);
    color:white;
    padding:20px;
    text-align:center;
    box-shadow:0 3px 10px rgba(0,0,0,0.2);
}

.logo{
    width:130px;
    height:130px;
    background:white;
    border-radius:15px;
    padding:8px;
    object-fit:contain;
    box-shadow:0 5px 15px rgba(0,0,0,0.3);
}

.header h1{
    margin-top:15px;
    font-size:42px;
    font-weight:700;
}

.header h2{
    margin-top:5px;
    font-size:22px;
    font-weight:400;
}

/* NEWS BAR */

.news-section{
    display:flex;
    align-items:center;
    background:white;
    border-bottom:3px solid #5b1fa6;
}

.news-title{
    background:#d32f2f;
    color:white;
    padding:12px 20px;
    font-weight:bold;
    min-width:140px;
    text-align:center;
}

.news-section marquee{
    padding:12px;
    font-weight:600;
    color:#333;
}

/* HERO SECTION */

.hero{
    text-align:center;
    padding:50px 20px;
}

.hero h3{
    font-size:38px;
    color:#5b1fa6;
    margin-bottom:15px;
}

.hero p{
    font-size:18px;
    color:#555;
}

/* MENU CARDS */

.menu-grid{
    max-width:1200px;
    margin:auto;
    padding:20px;
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:25px;
}

.card{
    background:white;
    text-decoration:none;
    color:#333;
    padding:35px;
    border-radius:20px;
    text-align:center;
    box-shadow:0 5px 15px rgba(0,0,0,0.1);
    transition:.3s;
    font-size:35px;
}

.card:hover{
    transform:translateY(-8px);
    background:#5b1fa6;
    color:white;
}

.card span{
    display:block;
    margin-top:12px;
    font-size:18px;
    font-weight:600;
}

/* NOTICE BOARD */

.notice-board{
    max-width:1200px;
    margin:30px auto;
    background:white;
    border-radius:20px;
    padding:25px;
    box-shadow:0 5px 15px rgba(0,0,0,0.1);
}

.notice-board h3{
    color:#5b1fa6;
    margin-bottom:20px;
    font-size:24px;
}

.notice-board ul{
    list-style:none;
}

.notice-board li{
    padding:12px;
    border-bottom:1px solid #ddd;
    font-size:16px;
}

.notice-board li:last-child{
    border:none;
}

/* STATS SECTION */

.stats{
    max-width:1200px;
    margin:20px auto;
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:20px;
    padding:20px;
}

.stat-box{
    background:white;
    padding:25px;
    text-align:center;
    border-radius:20px;
    box-shadow:0 5px 15px rgba(0,0,0,0.1);
}

.stat-box h2{
    color:#5b1fa6;
    font-size:35px;
}

.stat-box p{
    margin-top:10px;
    color:#555;
}

/* FOOTER */

.footer{
    position:relative;
    background:#000;
    color:#fff;
    height:55px;
    display:flex;
    justify-content:center;
    align-items:center;
}

.footer-center{
    font-size:15px;
    font-weight:500;
}

.footer-right{
    position:absolute;
    right:20px;
    font-size:15px;
    font-weight:600;
}

#visitorCount{
    color:#FFD700;
    font-weight:700;
}

/* MOBILE */

@media(max-width:768px){

.header h1{
    font-size:28px;
}

.header h2{
    font-size:16px;
}

.hero h3{
    font-size:28px;
}

.logo{
    width:100px;
    height:100px;
}
}
@media(max-width:768px){

.header h1{
    font-size:28px;
}

.header h2{
    font-size:16px;
}

.hero h3{
    font-size:28px;
}

.logo{
    width:100px;
    height:100px;
}
}
/* BLINKING NEW */

.blink{
    background:red;
    color:white;
    padding:3px 8px;
    border-radius:5px;
    font-weight:bold;
    animation: blink 1s infinite;
}

@keyframes blink{
    0%{
        opacity:1;
    }

    50%{
        opacity:0;
    }

    100%{
        opacity:1;
    }
}
.upload-card{
  max-width: 500px;
  margin: 40px auto;
  background: white;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  text-align: center;
}

.upload-card h3{
  margin-bottom: 20px;
  color: #5b1fa6;
}

.upload-card select,
.upload-card input{
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.upload-card button{
  width: 100%;
  padding: 12px;
  background: #5b1fa6;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
}

.upload-card button:hover{
  background: #431a7a;
}

#status{
  margin-top: 10px;
  font-weight: bold;
}
.table-container {
  width: 95%;
  margin: 20px auto;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  border-radius: 8px;
  overflow: hidden;
}

th, td {
  padding: 12px;
  text-align: center;
  border-bottom: 1px solid #ddd;
}

th {
  background: #1e88e5;
  color: white;
  font-weight: 600;
}

tr:hover {
  background: #f5f5f5;
}

a {
  text-decoration: none;
  color: #1e88e5;
  font-weight: bold;
}
/* ===== CENTRE SLIDER ===== */

/* ===== CENTRE SLIDER ===== */

.centre-slider{
    padding:40px 20px;
    background:#f5f7fb;
}

.centre-slider h2{
    text-align:center;
    margin-bottom:25px;
    color:#003366;
    font-size:30px;
}

.slider{
    width:100%;
    overflow:hidden;
    position:relative;
    padding:20px 0;
}

.slide-track{
    display:flex;
    gap:20px;
    width:max-content;
    animation:scroll 30s linear infinite;
}

.slide-track:hover{
    animation-play-state:paused;
}

.slide-track img{
    width:220px;
    height:220px;
    object-fit:contain;
    background:#fff;
    border-radius:12px;
    padding:5px;
    flex-shrink:0;
    box-shadow:0 5px 15px rgba(0,0,0,.2);
    transition:0.5s;
    cursor:pointer;
}
.slide-track img:hover{
    transform:scale(1.18);
    box-shadow:0 15px 35px rgba(0,0,0,.35);
    z-index:9999;
    position:relative;
}

@keyframes scroll{
    from{
        transform:translateX(0%);
    }

    to{
        transform:translateX(-50%);
    }
}

/* ================= TOPPER WRAPPER FIX ================= */
.topper-board-wrapper{
  display:flex;
  gap:20px;
  max-width:1200px;
  margin:30px auto;
  padding:0 10px;
  align-items:flex-start; /* 🔥 FIX: collapse issue solve */
}

/* ================= TOPPER BOX ================= */
.topper-board{
  flex:1;
  background:white;
  border-radius:12px;
  padding:20px;
  box-shadow:0 5px 15px rgba(0,0,0,0.1);
  min-height:300px; /* 🔥 IMPORTANT: container gayab nahi hoga */
}

/* ================= TABLE ONLY FIX ================= */
table{
  width:100%;
  border-collapse:collapse;
  background:white;
  table-layout:fixed; /* 🔥 FIX: proper alignment */
}

/* header */
th{
  background:#2563eb;
  color:white;
  padding:10px;
  font-size:14px;
}

/* cells */
td{
  text-align:center;
  padding:10px;
  border-bottom:1px solid #ddd;
  font-size:14px;
  word-wrap:break-word;
}

/* hover */
tr:hover{
  background:#f3f4f6;
}

/* ================= EMPTY STATE ================= */
tbody:empty::after{
  content:"Loading...";
  display:block;
  text-align:center;
  padding:15px;
  color:#888;
}

/* ================= MOBILE FIX ================= */
@media(max-width:768px){
  .topper-board-wrapper{
    flex-direction:column;
  }

  th, td{
    font-size:12px;
    padding:8px;
  }
}