* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Arial, sans-serif;
}

body {
  line-height: 1.6;
  background-color: #f8f9fa;
  color: #333;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* Top header */
.top-header {
  background: #ffffff;
  padding: 20px 0;
  border-bottom: 2px solid #8b0000;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.school-logo img {
  width: 90px;
}

.school-name h1 {
  margin: 0;
  font-size: 30px;
  color: #8b0000;
  font-weight: bold;
}

.school-name p {
  margin: 5px 0 0;
  font-size: 14px;
  color: #555;
}

/* ===== NOTIFICATION BAR ===== */
.notification-bar {
  display: flex;
  align-items: center;
  background: #8b0000;
  color: #fff;
  padding: 8px 8%;
  font-size: 14px;
}

.notification-label {
  font-weight: bold;
  margin-right: 15px;
  white-space: nowrap;
}

/* NAVBAR */
nav {
  background: linear-gradient(90deg, #8b0000, #a52a2a);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

/* Wrapper */
.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8%;
  width: 100%;
}

/* Logo */
.logo-left {
  display: block;
}

/* Menu */
.menu {
  display: flex;
  justify-content: space-evenly; /* spreads across full width */
  align-items: center; /* vertical center */
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Menu items */
.menu li {
  position: relative;
}

/* Menu links */
.menu li a {
  display: block;
  padding: 18px 0;
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  /* text-align: center; */
  /* transition: 0.3s; */
}

/* Hover underline effect */
.menu li a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  background: #fff;
  bottom: 10px;
  left: 0;
  transition: 0.3s;
}

.menu li a:hover::after {
  width: 100%;
}

/* ===== DROPDOWN ===== */
.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 200px;
  max-height: 300px;
  border-radius: 6px;
  padding: 8px 0;
  display: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  overflow: scroll;
}

.submenu.active {
  display: block;
}

.submenu li {
  width: 100%;
}

.submenu li a {
  padding: 10px 18px;
  color: #333;
  font-size: 14px;
}

.submenu li a:hover {
  background: #f5f5f5;
  color: #8b0000;
}

/* ===== Carousel Container ===== */
#carouselExampleIndicators {
  width: 100%;
  max-height: 85vh;
  overflow: hidden;
}

/* ===== Carousel Images ===== */
.carousel-item img {
  width: 100%;
  height: 85vh; /* Control banner height */
  object-fit: cover; /* Prevent distortion */
}

/* ===== Optional Dark Overlay ===== */
.carousel-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.35); /* Adjust darkness */
  z-index: 1;
}

/* Make image stay above overlay */
.carousel-item img {
  position: relative;
  z-index: 0;
}

/* ===== Control Buttons Styling ===== */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(139, 0, 0, 0.8);
  border-radius: 50%;
  padding: 20px;
}

/* ===== Smooth Transition ===== */
.carousel-item {
  transition: transform 1s ease-in-out;
}

#hero {
  background: url("images/school.jpg") no-repeat center center/cover;
  color: white;
  text-align: center;
  height: 80vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 120px 20px;
  position: relative;
}

#hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* background: rgba(139, 0, 0, 0.6); */
}

#hero h1,
#hero p {
  position: relative;
  z-index: 2;
}

#hero h1 {
  font-size: 40px;
  margin-bottom: 10px;
}

#hero p {
  font-size: 20px;
}

section {
  padding: 60px 10%;
  text-align: center;
}

section h2 {
  font-size: 30px;
  margin-bottom: 20px;
  color: #8b0000;
}

#about p {
  max-width: 900px;
  margin: auto;
  font-size: 17px;
}

#about-section {
  padding: 60px 10%;
  background: #f9f9f9;
}

.about-container {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.about-box {
  flex: 1;
  min-width: 300px;
  background: #ffffff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.about-box h2 {
  color: #8b0000;
  margin-bottom: 15px;
}

.updates-box {
  flex: 1;
  min-width: 300px;
  background: #ffffff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}
.mission-list {
  list-style: none;
  padding: 0;
  text-align: left;
}

.uniform-list {
  list-style: none;
  padding: 0;
  text-align: left;
}

.uniform-list li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 12px;
  line-height: 1.6;
  font-size: 15px;
  text-align: left;
}

/* Red Circle Bullet */
.uniform-list li::before {
  content: "●";
  position: absolute;
  left: 0;
  color: #8b0000;
  font-size: 14px;
  top: 3px;
}

.notification-modal .modal-content {
  height: 420px;
  display: flex;
  justify-content: center;
}

/* Tabs */
.tab-buttons {
  display: flex;
  margin-bottom: 15px;
}

.tab-btn {
  flex: 1;
  padding: 10px;
  border: none;
  background: #ddd;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s;
}

.tab-btn.active {
  background: #8b0000;
  color: #fff;
}

.tab-btn:hover {
  background: #a52a2a;
  color: #fff;
}

#myBtn {
  background: #8b0000;
  color: #fff;
  padding: 10px 22px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  margin-top: 15px;
  transition: all 0.3s ease;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.tab-panel ul {
  padding-left: 15px;
}

.tab-panel li {
  margin-bottom: 10px;
}
#more {
  display: none;
}

#gallery .images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

#gallery .images img {
  width: 100%;
  border-radius: 8px;
  transition: 0.3s;
}

#gallery .images img:hover {
  transform: scale(1.05);
}

#contact p {
  font-size: 16px;
  margin: 8px 0;
}

.contact-container {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.contact-box {
  flex: 1;
  min-width: 280px;
  background: #ffffff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  text-align: left;
}

.contact-box h3 {
  color: #8b0000;
  margin-bottom: 10px;
  border-bottom: 2px solid #8b0000;
  padding-bottom: 5px;
}

footer {
  background: #222;
  color: #fff;
  text-align: center;
  padding: 20px 10px;
  font-size: 14px;
}

footer p {
  margin: 5px 0;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  background: #8b0000;
  color: #fff;
  border-radius: 4px;
  transition: 0.3s;
}

.btn-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-top: 20px;
}

.btn:hover {
  background: #a52a2a;
}

/* ===== PRINCIPAL MESSAGE SECTION ===== */
.principal-message {
  padding: 60px 10%;
  background: #f9f9f9;
}

.message-container {
  display: flex;
  align-items: center;
  gap: 50px;
  background: #ffffff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* Principal Image */
.principal-image img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%; /* Makes circular */
  border: 6px solid #8b0000;
}

/* Message Content */
.message-content h2 {
  color: #8b0000;
  margin-bottom: 20px;
  font-size: 26px;
}

.message-content p {
  font-size: 15px;
  line-height: 1.7;
  color: #444;
  margin-bottom: 15px;
}

/* Principal Info */
.principal-info {
  margin-top: 20px;
}

.principal-info h3 {
  margin: 0;
  color: #000;
}

.principal-info span {
  font-size: 14px;
  color: #777;
}

/* ===== SCHOOL PROFILE SECTION ===== */
.school-profile {
  padding: 60px 8%;
  background: #f5f5f5;
}

.profile-box {
  background: #ffffff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  max-width: 1100px;
  margin: auto;
}

/* Headings */
.profile-box h2 {
  text-align: center;
  color: #8b0000;
  font-size: 30px;
  margin-bottom: 10px;
}

.profile-box h3 {
  text-align: center;
  color: #555;
  font-weight: 500;
  margin-bottom: 30px;
}

/* Content */
.profile-content {
  max-width: 1100px;
  margin: 0 auto 40px auto;
  padding: 0 20px;
}

.profile-content p {
  font-size: 15px;
  line-height: 1.8;
  color: #444;
  margin-bottom: 20px;
}

.profile-content strong {
  color: #000;
}

.education-section {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 20px;
}

.education-section h2 {
  text-align: center;
  margin-bottom: 30px;
  color: #8b0000;
  font-size: 28px;
}

.table-container {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  overflow: hidden;
}

thead {
  background: linear-gradient(90deg, #8b0000, #a52a2a);
  color: white;
}

th,
td {
  padding: 18px;
  text-align: left;
  vertical-align: top;
  font-size: 15px;
  line-height: 1.6;
}

th {
  font-size: 16px;
}

tbody tr:nth-child(even) {
  background: #f4f4f4;
}

tbody tr:hover {
  background: #ffecec;
  transition: 0.3s;
}

form {
  border-radius: 5px;
  background-color: #f2f2f2;
  padding: 20px;
}

label {
  display: block;
}

input[type="text"],
select {
  width: 100%;
  padding: 12px;
  margin: 8px 0;
  display: inline-block;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

input[type="submit"] {
  width: 100%;
  background-color: #8b0000;
  color: white;
  padding: 14px;
  margin: 8px 0;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

input[type="submit"]:hover {
  background-color: #8b0000;
}

/* contact us */

.contact-page {
  padding: 60px 10%;
  background: #f9f9f9;
}

.page-title {
  text-align: center;
  font-size: 32px;
  margin-bottom: 40px;
  color: #8b0000;
}

/* Contact Boxes */
.contact-container {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.contact-box {
  flex: 1;
  min-width: 280px;
  background: #ffffff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.contact-box h3 {
  color: #8b0000;
  margin-bottom: 15px;
  border-bottom: 2px solid #8b0000;
  padding-bottom: 5px;
}

/* Bottom Section */
.contact-bottom {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

/* Contact Form */
.contact-form {
  flex: 1;
  min-width: 300px;
}

.contact-form h2 {
  margin-bottom: 20px;
  color: #8b0000;
}

.contact-form form input[type="text"],
.contact-form form input[type="number"],
.contact-form form input[type="email"],
.contact-form form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.btn-submit {
  background: #8b0000;
  color: #fff;
  padding: 12px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s;
}

.btn-submit:hover {
  background: #a52a2a;
}

.container {
  max-width: 900px;
  margin: auto;
  background: #fff;
  padding: 30px;
  border-radius: 8px;
}
h2 {
  text-align: center;
  color: #8b0000;
  margin-bottom: 30px;
}
table {
  width: 100%;
  border-collapse: collapse;
}
table,
th,
td {
  border: 1px solid #ddd;
}
th {
  background: #8b0000;
  color: white;
  padding: 12px;
}
td {
  padding: 10px;
  text-align: center;
}
.btn {
  padding: 6px 12px;
  background: #8b0000;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
}
.btn:hover {
  background: #a30000;
}
.no-data {
  text-align: center;
  padding: 20px;
}

/* Map */
.contact-map {
  flex: 1;
  min-width: 300px;
}

/* Toppers and result page css */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: #f5f5f5;
}

/* Section Title */
.section-title {
  text-align: center;
  margin: 60px 0 40px 0;
  color: #8b0000;
  font-size: 28px;
}

/* Topper Grid */
.topper-grid {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto 70px auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.topper-card {
  background: #fff;
  padding: 25px;
  text-align: center;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: 0.3s ease;
}

.topper-card:hover {
  transform: translateY(-5px);
}

.topper-card img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #8b0000;
  margin-bottom: 15px;
}

.topper-card h3 {
  margin-bottom: 8px;
}

.position {
  display: inline-block;
  padding: 6px 14px;
  background: #8b0000;
  color: #fff;
  border-radius: 20px;
  font-size: 14px;
}

/* Result Table */
.result-table {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto 80px auto;
  border-collapse: collapse;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.result-table th {
  background: #8b0000;
  color: #fff;
  padding: 14px;
}

.result-table td {
  padding: 12px;
  text-align: center;
  border-bottom: 1px solid #eee;
}

.result-table tr:hover {
  background: #f1f1f1;
}

.pdf-btn {
  padding: 6px 14px;
  background: #8b0000;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  transition: 0.3s;
}

.pdf-btn:hover {
  background: #a30000;
}

/* reset button */

.btn-row {
  display: flex;
  justify-content: space-between; /* pushes buttons to both sides */
  align-items: center;
  width: 100%;
  margin-top: 20px;
}

/* Responsive */
@media (max-width: 900px) {
  .topper-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .topper-grid {
    grid-template-columns: 1fr;
  }

  .result-table {
    width: 95%;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .contact-container,
  .contact-bottom {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
  }

  nav ul li {
    margin: 10px 0;
  }

  #hero h1 {
    font-size: 28px;
  }

  #hero p {
    font-size: 16px;
  }

  section {
    padding: 40px 5%;
  }
}
