/* ==============================
   Global / Common Styles 
   ============================== */
/* ==============================
   Body Background
   ============================== */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  color: #333;
  line-height: 1.6;
  background: url("https://www.transparenttextures.com/patterns/white-wall.png") repeat; 
  /* light subtle texture background */
}

/* ==============================
   Header with Logo + School Name
   ============================== */
header {
  background: rgba(46, 134, 193, 0.95);
  color: white;
  box-shadow: 0px 4px 8px rgba(0,0,0,0.3);
  border-bottom: 4px solid #1b4f72;
}

/* Top header row */
.header-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 15px 20px;
  flex-wrap: wrap;
  text-align: center;
}

.school-logo {
  width: 90px;
  height: 90px;
  object-fit: contain;
  background: white;
  border-radius: 50%;
  padding: 5px;
  border: 2px solid #1b4f72;
}

.header-text h1 {
  font-size: 28px;
  margin: 0;
  font-weight: bold;
}

.header-text p {
  font-size: 14px;
  margin: 5px 0 0;
  font-weight: 500;
}

/* ==============================
   Navigation Bar
   ============================== */
nav {
  background: #154360;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 25px;
  margin: 0;
  padding: 10px 0;
  flex-wrap: wrap;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 10px 15px;
  transition: all 0.3s ease;
}

nav a:hover {
  background: #1b4f72;
  border-radius: 4px;
  color: #ffeb3b;
}

/* ==============================
   Footer Social Links
   ============================== */
footer {
  background: #333;
  color: white;
  text-align: center;
  padding: 20px;
  margin-top: 20px;
}

footer p {
  margin-bottom: 10px;
}

.social-links a {
  color: white;
  font-size: 22px;
  margin: 0 8px;
  transition: transform 0.3s, color 0.3s;
  display: inline-block;
}

.social-links a:hover {
  transform: scale(1.2);
  color: #ffeb3b;
}

/* ==============================
   Social Media Links 
   ============================== */
.social-links {
  margin-top: 10px;
}

.social-links a {
  color: white;
  font-size: 22px;
  margin: 0 8px;
  transition: transform 0.3s, color 0.3s;
  display: inline-block;
}

.social-links a:hover {
  transform: scale(1.2);
  color: #ffeb3b; /* Hover effect yellow */
}

/* ==============================
   Main Layout
   ============================== */
main {
  padding: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

/* Headings */
h2 {
  color: #2e86c1;
  margin-bottom: 15px;
}

/* ==============================
   Home Page 
   ============================== */
body.home main {
  text-align: center;
}

body.home h2 {
  font-size: 26px;
  margin-bottom: 15px;
}


/* ==============================
   About Us Page 
   ============================== */
/* ==============================
   About Section
   ============================== */
.about-section {
  max-width: 1200px;
  margin: 50px auto;
  padding: 20px;
}

.about-section h2 {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  color: #154360;
  margin-bottom: 40px;
  position: relative;
}

.about-section h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background: #154360;
  margin: 10px auto 0;
  border-radius: 2px;
}

/* Sub-headings inside about page */
.about-section h3 {
  margin-top: 25px;
  margin-bottom: 10px;
  font-size: 22px;
  font-weight: 600;
  color: #1b4f72; /* dark steel blue */
  border-left: 4px solid #154360;
  padding-left: 10px;
}

/* Paragraphs & lists */
.about-section p, 
.about-section ul {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
  margin-bottom: 15px;
}

.about-section ul {
  padding-left: 20px;
  list-style: disc;
  margin-top: 5px;
}

/* Layout: Left = text, Right = image */
.about-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
}

.about-left {
  flex: 2;
  min-width: 300px;
}

.about-right {
  flex: 1;
  min-width: 250px;
  text-align: center;
}

.about-right img {
  width: 100%;
  max-width: 350px;
  border-radius: 10px;
  border: 3px solid #154360;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

.about-right img:hover {
  transform: scale(1.05);
}

/* Responsive layout */
@media (max-width: 768px) {
  .about-container {
    flex-direction: column;
    text-align: center;
  }

  .about-left, .about-right {
    flex: 1 1 100%;
  }

  .about-right img {
    max-width: 100%;
  }
}
/* ==============================
   Classes Page Layout & Cards
   ============================== */

/* Main Heading Center */
main h2 {
  text-align: center;
  margin: 20px 0 30px 0;
  font-size: 30px;
  font-weight: bold;
  color: #154360;
}

/* Section Containers */
.section-card {
  background: #eaf2f8;
  margin: 25px auto;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0px 3px 8px rgba(0,0,0,0.15);
  max-width: 1000px;
  transition: transform 0.3s;
  cursor: pointer; /* whole card clickable */
}
.section-card:hover {
  transform: scale(1.01);
}

/* Section Titles */
.section-title {
  font-size: 22px;
  margin: 0; /* no extra margins */
  padding: 10px;
  color: #154360;
  text-align: center;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}

/* Hover effect for title */
.section-title:hover {
  background: #2e86c1;
  color: white;
  border-radius: 6px;
}

/* Hidden by default */
.sub-classes {
  display: none;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  justify-items: center;
  gap: 25px;
  margin-top: 20px;
  padding: 10px;
}

/* Show on active */
.section-card.active .sub-classes {
  display: grid;
}

/* Special Middle Section (always one row, no wrap) */
.middle-section.active .sub-classes {
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 20px;
}

/* ==============================
   Individual Class Card
   ============================== */
.class-card {
  width: 220px;
  background: #fff;
  text-align: center;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  transition: transform 0.3s, box-shadow 0.3s;
}
.class-card img {
  display: block;
  width: 100%;
  height: 160px;
  object-fit: cover;
}
.class-card p {
  padding: 10px;
  font-size: 15px;
  font-weight: bold;
  color: #2e86c1;
  background: #f9f9f9;
}
.class-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

/* ==============================
   CTA Buttons (Bottom)
   ============================== */
.cta-buttons {
  text-align: center;
  margin: 40px 0 20px;
}
.cta-buttons a {
  display: inline-block;
  text-decoration: none;
  padding: 12px 25px;
  margin: 10px;
  border-radius: 6px;
  font-weight: bold;
  transition: 0.3s ease;
  font-size: 16px;
}
/* Contact Us Button */
.btn-contact {
  background: #2e86c1;
  color: white;
  border: 2px solid #2e86c1;
}
.btn-contact:hover {
  background: white;
  color: #2e86c1;
}
/* Admissions Button */
.btn-admission {
  background: #28a745;
  color: white;
  border: 2px solid #28a745;
}
.btn-admission:hover {
  background: white;
  color: #28a745;
}

/* ==============================
   Toggle Arrow Icon
   ============================== */
.section-title i {
  transition: transform 0.3s;
}
.section-card.active .section-title i {
  transform: rotate(180deg); /* rotate arrow down/up */
}
/* ==============================
   Teachers Page 
   ============================== */

/* ==============================
   Chairman Card (Same Style as Teachers but Bigger)
   ============================== */
.chairman-card {
  background: #fff;
  border-radius: 14px;
  text-align: center;
  padding: 28px 20px;
  border: none;
  box-shadow: 0 3px 16px rgba(0,0,0,0.12);
  max-width: 400px;
  margin: 40px auto;
  transition: transform 0.3s, box-shadow 0.3s;
}

.chairman-card img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;     /* ✅ Circular image */
  margin: 0 auto 16px;
  display: block;
}

.chairman-card h3 {
  font-size: 20px;
  color: #154360;
  margin-bottom: 6px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.chairman-card p {
  font-weight: 700;
  font-size: 18px;
  color: #0e3c61;
  margin-bottom: 6px;
}

.chairman-card small {
  display: block;
  font-size: 14px;
  color: #555;
  font-style: italic;
  line-height: 1.5;
}

/* Hover Effect for Chairman */
.chairman-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 26px rgba(0,0,0,0.25);
}


/* ==============================
   Staff Rows - Fixed Layout
   ============================== */
.vc-admin-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  max-width: 800px;
  margin: 30px auto;
}
.staff-grid {
  display: grid;
  gap: 25px;
  max-width: 1200px;
  margin: 40px auto;
}
.staff-grid.row-3 { grid-template-columns: repeat(3, 1fr); }
.staff-grid.row-4 { grid-template-columns: repeat(4, 1fr); }

/* ==============================
   Teacher Card (Staff)
   ============================== */
.teacher-card {
  background: #fff;
  border-radius: 12px;
  text-align: center;
  padding: 20px 16px;
  border: none;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
  transition: transform 0.3s, box-shadow 0.3s;
}

.teacher-card img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;          /* ✅ Circular DP */
  margin: 0 auto 12px;
  display: block;
}

.teacher-card h3 {
  font-size: 17px;
  color: #154360;
  margin-bottom: 6px;
  font-weight: bold;
}

.teacher-card p {
  font-weight: 600;
  color: #222;
  margin-bottom: 4px;
}

.teacher-card small {
  display: block;
  font-size: 13px;
  color: #555;
  font-style: italic;
  line-height: 1.4;
}

/* Hover Effect */
.teacher-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.2);
}

/* ==============================
   Gallery Page — Updated CSS
   ============================== */

/* ==============================
   GALLERY PAGE CSS
   ============================== */

/* Global sizing */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Page Headings */
main h2 {
  text-align: center;
  font-size: 30px;
  color: #154360;
  margin: 40px auto 25px;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 8px;
  width: fit-content;
  transition: background 0.3s, color 0.3s;
}
main h2:hover {
  background: #2e86c1;
  color: #fff;
  cursor: pointer;
}

/* Section Titles (Assembly, Annual Function, Sports Day, etc.) */
.section-title {
  text-align: center;
  font-size: 24px;
  margin: 50px auto 25px;
  color: #1b4f72;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 6px;
  width: fit-content;
  transition: background 0.3s, color 0.3s;
}
.section-title:hover {
  background: #2e86c1;
  color: #fff;
  cursor: pointer;
}

/* ==============================
   Stars Section
   ============================== */
.stars-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto 50px;
  padding: 0 12px;
}
.stars-row {
  display: flex;
  justify-content: center;
  gap: 25px;
  width: 100%;
  align-items: stretch;
}

.star-card {
  flex: 0 0 240px;
  max-width: 240px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid #e6e6e6;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  margin: 0 auto;
}
.star-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: top center;  
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}
.star-card h3,
.star-card p,
.star-card small {
  text-align: center;
  margin: 0;
}
.star-card h3 {
  margin-top: 8px;
  margin-bottom: 6px;
  font-size: 18px;
  color: #154360;
}
.star-card p {
  color: #222;
  font-weight: 600;
  margin-bottom: 4px;
}
.star-card small {
  display: block;
  margin: 4px 0 12px;
  color: #555;
  font-style: italic;
}
.star-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 26px rgba(0,0,0,0.16);
}

/* ==============================
   Universal Photo Grid
   ============================== */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto 50px;
  padding: 0 12px;
}
.photo-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid #ddd;
  transition: transform 0.35s ease, border-color 0.35s;
}
.photo-card img:hover {
  transform: scale(1.07);
  border-color: #2e86c1;
}

/* ==============================
   More Info Button
   ============================== */
.more-info {
  text-align: center;
  margin: 50px 0;
}
.more-info a {
  background: #2e86c1;
  color: #fff;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  transition: 0.3s ease;
  border: 2px solid #2e86c1;
}
.more-info a:hover {
  background: #fff;
  color: #2e86c1;
}

/* ==============================
   Responsiveness
   ============================== */
@media (max-width: 900px) {
  .stars-row {
    flex-wrap: wrap;
    gap: 18px;
  }
  .star-card {
    flex: 1 1 calc(50% - 18px);
    max-width: none;
  }
  .star-card img {
    height: 200px;
  }
  .photo-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}
@media (max-width: 520px) {
  .star-card {
    flex-basis: 100%;
  }
  .star-card img {
    height: 220px;
  }
  .photo-grid {
    grid-template-columns: 1fr;
  }
}

/* ==============================
   Notice Page 
   ============================== */

.notice-page {
  max-width: 1000px;
  margin: 50px auto;
  padding: 20px;
  text-align: center;
}

.notice-page h2 {
  font-size: 28px;
  color: #154360;
  margin-bottom: 30px;
}

.notice-box {
  background: #fff;
  padding: 20px;
  margin: 20px 0;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.notice-box h3 {
  color: #154360;
  margin-bottom: 15px;
}

.notice-box img {
  width: 100%;
  max-width: 800px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.notice-query {
  margin-top: 40px;
  font-size: 18px;
  color: #333;
  font-weight: 600;
  background: #f5f8fa;
  padding: 12px 20px;
  border-radius: 8px;
  display: inline-block;
}
/* ==============================
   Contact Page – Professional Styles
   ============================== */

/* Headings (Form / Map) */
.map-heading,
.contact-heading {
  margin-top: 30px;
  margin-bottom: 15px;
  font-size: 30px;
  color: #154360;
  font-weight: bold;
  text-align: center;
}

/* ---------- Quick Info Cards (Address / Phone / Email) ---------- */
.contact-quick {
  max-width: 1100px;
  margin: 10px auto 24px;
  padding: 0 12px;
}
.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.c-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #fff;
  border: 1px solid #e6eef7;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
  padding: 16px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.c-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.12);
  border-color: #cfe2f3;
}
.c-icon {
  flex: 0 0 56px;
  height: 56px;
  width: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2e86c1, #1b4f72);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 22px;
  box-shadow: 0 6px 16px rgba(30, 86, 130, .25);
}
.c-body h3 {
  margin: 2px 0 4px;
  color: #154360;
  font-size: 18px;
  font-weight: 800;
}
.c-body p { margin: 0 0 4px; color: #3a5166; line-height: 1.6; }
.c-body small { color: #6a7f92; }
.c-body a { color: #2e86c1; text-decoration: none; font-weight: 700; }
.c-body a:hover { text-decoration: underline; }
.c-body .sep { color: #9db3c7; margin: 0 6px; }
.c-link {
  display: inline-block;
  margin-top: 4px;
  color: #2e86c1;
  font-weight: 700;
  text-decoration: none;
}
.c-link:hover { text-decoration: underline; }

/* ---------- Form Card ---------- */
.contact-form {
  max-width: 820px;
  margin: 18px auto;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  padding: 18px;
}
.contact-form label {
  display: block;
  font-weight: 600;
  color: #154360;
  margin: 10px 0 6px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #cfd9e3;
  border-radius: 8px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  font-size: 14px;
  background: #fff;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #2e86c1;
  box-shadow: 0 0 0 3px rgba(46,134,193,.12);
}

/* Submit button */
.contact-form button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  background: #2e86c1;
  color: #fff;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: background .25s, transform .1s;
}
.contact-form button:hover { background: #1b4f72; }
.contact-form button:active { transform: scale(0.98); }

.form-small {
  margin-top: 8px;
  color: #6a7f92;
  font-size: 12px;
}

/* ---------- Map container ---------- */
.map-container {
  margin-top: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  border: 3px solid #2e86c1;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* ---------- Toast (success/error) ---------- */
.toast {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  color: #fff;
  box-shadow: 0 12px 24px rgba(0,0,0,0.2);
  background: #16a34a; /* success */
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.toast.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.toast.error { background: #dc2626; }
.toast .icon { font-size: 18px; }
.toast .close {
  margin-left: 6px; font-size: 18px; line-height: 1; cursor: pointer; opacity: .9;
}
.toast .close:hover { opacity: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .contact-form { margin: 14px 12px; }
}
@media (max-width: 700px) {
  .c-card { padding: 14px; }
  .c-icon { height: 52px; width: 52px; font-size: 20px; }
}
/* ==============================
   Toast (success/error) styles
   ============================== */
.toast {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  color: #fff;
  box-shadow: 0 12px 24px rgba(0,0,0,0.2);
  background: #16a34a; /* success green */
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.toast.error { background: #dc2626; }
.toast .icon { font-size: 18px; }
.toast .close {
  margin-left: 6px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  opacity: .9;
}
.toast .close:hover { opacity: 1; }
/* ==============================
   Header with Background Image
   ============================== */
header {
  position: relative;
  color: white;
  box-shadow: 0px 4px 8px rgba(0,0,0,0.25);
  border-bottom: 3px solid #154360;
  background: url("https://i.ibb.co/MDfHJgSS/69587972-1347233488968783-3318878803379355648-n.jpg") no-repeat center center/cover;
}

header::before {
  content: "";
  position: absolute;
  top: 0; 
  left: 0; 
  right: 0; 
  bottom: 0;
  background: rgba(0,0,0,0.5); 
  z-index: 0;
}

.header-container {
  position: relative;
  z-index: 1; 
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 40px;
  flex-wrap: wrap;
}

/* ==============================
   Left side: Text
   ============================== */
.header-left {
  max-width: 60%;
}

.header-left h1 {
  font-size: 28px;
  font-weight: 800;
  margin: 0;
  letter-spacing: 1px;
}

.header-left .affiliation {
  font-size: 16px;
  margin-top: 6px;
  font-style: italic;
  opacity: 0.95;
}

/* ==============================
   Right side: Logos (Circular)
   ============================== */
.header-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Common Circle Logo Style */
/* Logos aligned right */
.header-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Common Circular Logo Style */
.school-logo,
.affil-logo {
  height: 80px;              /* ✅ All same visible size */
  width: 80px;               /* ✅ force circle */
  border-radius: 50%;
  background: #fff;
  padding: 6px;
  border: 2px solid #154360;
  box-shadow: 0 0 8px rgba(0,0,0,0.4);
  object-fit: cover;        /* ✅ crop properly, no extra white-space */
  transition: transform 0.3s ease;
  cursor: pointer;          /* ✅ show hand on hover since clickable */
}

/* Hover effect */
.school-logo:hover,
.affil-logo:hover {
  transform: scale(1.1);
}

/* ==============================
   Navigation Bar (Blue Strip)
   ============================== */
nav {
  background: #154360;   /* Dark Blue Strip */
  width: 100%;
  display: block;
  position: relative;
  z-index: 5;
  margin: 0;             /* reset spacing */
  padding: 0;
}

nav ul {
  display: flex;
  justify-content: center;  /* ✅ center align items */
  align-items: center;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav ul li {
  margin: 0;
  padding: 0;
}

nav ul li a {
  display: block;
  padding: 14px 22px;
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
}

nav ul li a:hover {
  background: #1b4f72;   /* dark blue hover */
  color: #ffeb3b;        /* yellow text on hover */
  border-radius: 4px;
}

/* ==============================
   Shared Card Style
   ============================== */
.card-section {
  background: #fff;
  max-width: 1100px;
  margin: 40px auto;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.card-row {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  align-items: center;
  justify-content: space-between;
}

.card-left, .card-right {
  flex: 1;
  min-width: 300px;
}

.card-left img, .card-right img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.card-left p, .card-right p {
  font-size: 16px;
  color: #333;
  line-height: 1.7;
}

/* ==============================
   Welcome Section (Full Width White Card)
   ============================== */
.welcome-section {
  background: #f5f8fa; 
  padding: 40px 20px;
}

.welcome-card {
  background: #fff;
  display: flex;
  flex-wrap: wrap;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  width: 95%;              /* ✅ expand card */
  max-width: 1400px;       /* ✅ wider than before (was 1100px) */
  margin: auto;
  overflow: hidden;
}

.welcome-left, 
.welcome-right {
  flex: 1;
  min-width: 350px;       /* ✅ bigger min-width for balance */
}

.welcome-left {
  padding: 50px 40px;     /* ✅ bigger padding for breathing space */
}

.welcome-left h2 {
  font-size: 32px;        /* ✅ slightly bigger heading */
  color: #154360;
  margin-bottom: 20px;
  font-weight: 700;
}

.welcome-left p {
  font-size: 18px;        /* ✅ bigger text */
  line-height: 1.8;
  color: #444;
}

.school-banner {
  width: 100%;
  height: 100%;
  max-height: 500px;      /* ✅ bigger image height */
  object-fit: cover;
  display: block;
}

/* ==============================
   Chairman Section (Full Width White Card)
   ============================== */
.chairman-section {
  background: #fff;
  width: 95%;              /* ✅ expand like Welcome */
  max-width: 1400px;
  margin: 50px auto;
  padding: 50px 40px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.chairman-section h2 {
  text-align: center;
  color: #154360;
  margin-bottom: 35px;
  font-size: 28px;
  font-weight: 700;
  position: relative;
}

.chairman-section h2::after {
  content: "";
  display: block;
  width: 100px;
  height: 3px;
  background: #154360;
  margin: 10px auto 0;
  border-radius: 2px;
}

.chairman-card {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}

.chairman-left {
  flex: 1;
  min-width: 320px;
  text-align: center;
}

.chairman-photo {
  width: 100%;
  max-width: 350px;       /* ✅ bigger photo */
  border-radius: 10px;
  border: 3px solid #154360;
  box-shadow: 0 6px 14px rgba(0,0,0,0.25);
}

.chairman-right {
  flex: 2;
  min-width: 350px;
}

.chairman-right p {
  font-size: 18px;
  color: #333;
  line-height: 1.9;
}

/* ==============================
   Why Choose Us (5 Cards Layout Fixed)
   ============================== */
.why-choose {
  padding: 60px 40px;
  text-align: center;
  background: #fff;
}
.why-choose h2 {
  color: #154360;
  font-size: 28px;
  margin-bottom: 35px;
  font-weight: 700;
}

/* Make cards in rows */
.features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;   /* ✅ ensures last row centers */
  gap: 25px;
  max-width: 1200px;
  margin: auto;
}

.feature-item {
  background: #f9f9f9;
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  width: 30%;                /* ✅ row 1 → fits 3 items */
  min-width: 250px;          /* safe for responsiveness */
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-7px);
}

.feature-item img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 15px;
}

/* ==============================
   Notices & Gallery Preview
   ============================== */
.notices-gallery {
  display: flex;
  justify-content: space-around;
  background: #f5f8fa;
  padding: 50px 30px;
  flex-wrap: wrap;
  gap: 25px;
  text-align: center;
}
.notices-gallery h2 {
  color: #154360;
  font-size: 24px;
  font-weight: 600;
}
.btn-link {
  display: inline-block;
  margin-top: 12px;
  padding: 12px 22px;
  background: #154360;
  color: white;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}
.btn-link:hover {
  background: #1b4f72;
  color: #ffeb3b;
}

/* ==============================
   Star Students Section
   ============================== */
.star-students {
  text-align: center;
  padding: 50px 20px;
  background: #fff;
}
.star-students h2 {
  font-size: 26px;
  margin-bottom: 25px;
  color: #154360;
  font-weight: 700;
}
.result-banner {
  width: 100%;
  max-width: 900px;     /* ✅ bigger result image */
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

/* ===== Results page headings (same look) ===== */
.results-main h2 {
  text-align: center;
  color: #154360;
  margin: 25px 0 6px;
  font-size: 28px;
  font-weight: 800;
}
.results-note {
  text-align: center;
  color: #555;
  margin-bottom: 16px;
}

/* ===== Results sections: same as .section-card/.section-title/.sub-classes ===== */
.res-section {
  background: #eaf2f8;
  margin: 25px auto;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0px 3px 8px rgba(0,0,0,0.15);
  max-width: 1000px;
  transition: transform 0.3s;
}
.res-section:hover { transform: scale(1.01); }

/* clickable title bar (centered like classes) */
.res-title {
  font-size: 22px;
  margin: 0;
  padding: 10px;
  color: #154360;
  text-align: center;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
  border-radius: 6px;
  background: transparent;
  border: none;
}
.res-title:hover {
  background: #2e86c1;
  color: #fff;
}
.res-title i { transition: transform 0.25s ease; }

/* list grid (hidden by default; like .sub-classes) */
.res-list {
  display: none;
  margin-top: 20px;
  padding: 10px;
  justify-items: center;
  gap: 25px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* show on open/active */
.res-section.open .res-list,
.res-section.active .res-list { display: grid; }
.res-section.open .res-title i,
.res-section.active .res-title i { transform: rotate(180deg); }

/* ===== Card style (same as .class-card) ===== */
.result-card,
.class-card.result,                 /* in case you use class-card for results */
.result-link {                      /* clickable anchor case */
  width: 220px;
  background: #fff;
  text-align: center;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  transition: transform 0.3s, box-shadow 0.3s;
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid #e6e6e6;
}

/* hover lift like classes */
.result-card:hover,
.class-card.result:hover,
.result-link:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

/* PDF "thumb" area (image-like header) */
.result-card .pdf-thumb,
.result-link .pdf-thumb {
  height: 160px;                     /* match class images height */
  width: 100%;
  background: linear-gradient(180deg, #f7f9fc, #eef3f9);
  border-bottom: 2px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
}
.result-card .pdf-thumb i,
.result-link .pdf-thumb i {
  font-size: 58px;
  color: #e63b2e;                    /* PDF red */
}

/* title text under "thumb" same as .class-card p */
.result-card p,
.result-link p {
  padding: 10px;
  font-size: 15px;
  font-weight: bold;
  color: #2e86c1;
  background: #f9f9f9;
  margin: 0;
}

/* If you still use button-style link inside a div card */
.btn-pdf {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #e63b2e;
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  border: 2px solid #e63b2e;
  transition: background .25s, color .25s, transform .1s;
  margin: 10px 0 6px;
}
.btn-pdf i { font-size: 18px; }
.btn-pdf:hover { background:#fff; color:#e63b2e; }
.btn-pdf:active { transform: scale(0.98); }

/* ==== RESET ==== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ==== BACKDROP ==== */
.welcome-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  font-family: "Segoe UI", Arial, sans-serif;
}

.welcome-modal[aria-hidden="false"] {
  display: flex;
}

/* ==== DIALOG BOX ==== */
.wm-dialog {
  position: relative;
  background: #fff;
  border-radius: 12px;
  width: min(92%, 480px);
  padding: 1.5rem;
  box-shadow: 0 8px 28px rgba(0,0,0,0.25);
  text-align: center;
  overflow: hidden;
  transform: translateZ(0);
}

@media (min-width: 768px) {
  .wm-dialog {
    width: min(90%, 680px);
    padding: 2rem;
  }
}

/* ==== HEADER SECTION ==== */
.wm-top {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-around;
  gap: 1rem;
  flex-wrap: wrap; /* Stack neatly on small screens */
}

/* Force both figures to same alignment and ratio */
.wm-brand,
.wm-chairman {
  flex: 1 1 48%;
  min-width: 120px;
}

.wm-logo,
.wm-chairman-pic {
  width: 110px;
  height: 110px;
  object-fit: contain;
  border-radius: 10px;
  display: block;
  margin: 0 auto;
}

@media (max-width: 420px) {
  .wm-logo,
  .wm-chairman-pic {
    width: 90px;
    height: 90px;
  }
}

/* Proper consistent caption text */
.wm-brand figcaption,
.wm-chairman figcaption {
  margin-top: 0.4rem;
  font-size: 0.9rem;
  line-height: 1.2;
  color: #333;
}

/* ==== WELCOME BODY ==== */
.wm-body {
  margin-top: 1.2rem;
}

.wm-title {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: #004b8d;
  line-height: 1.4;
  font-weight: 600;
}

/* ==== BUTTONS ==== */
.wm-actions {
  margin-top: 1.2rem;
}

.wm-cta {
  background: #004b8d;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.6em 1.8em;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.wm-cta:hover {
  background: #0066cc;
}

/* ==== CLOSE BUTTON ==== */
.wm-close {
  position: absolute;
  top: 0.6rem;
  right: 0.8rem;
  background: transparent;
  border: none;
  font-size: 1.6rem;
  color: #333;
  cursor: pointer;
}

.wm-close:hover {
  color: crimson;
}

/* ==== SCALING FIX FOR ALL PHONES ==== */
/* Forces consistent visual ratio regardless of browser zoom / pixel density */
html {
  -webkit-text-size-adjust: 100%; /* Prevents auto zoom on some Samsung phones */
}

body {
  overflow-x: hidden;
  overscroll-behavior-y: contain;
  margin: 0;
  background-color: #f8f9fa;
}

/* Make sure image scaling stays crisp */
img {
  max-width: 100%;
  height: auto;
  image-rendering: -webkit-optimize-contrast;
}

/* Smallest device tuning */
@media (max-width: 380px) {
  .wm-brand,
  .wm-chairman {
    flex-basis: 100%;
  }

  .wm-logo,
  .wm-chairman-pic {
    width: 80px;
    height: 80px;
  }

  .wm-title {
    font-size: 0.95rem;
  }

  .wm-cta {
    font-size: 0.9rem;
  }
}


/* Syllabus */
nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

nav ul li {
  display: inline-block;
  position: relative;
}

nav ul li ul.dropdown-menu {
  display: none;
  position: absolute;
  background: #fff;
  box-shadow: 0 3px 6px rgba(0,0,0,0.2);
  padding: 8px 0;
  border-radius: 4px;
  min-width: 160px;
  z-index: 99;
}

nav ul li:hover ul.dropdown-menu {
  display: block;
}

nav ul li ul.dropdown-menu li {
  display: block;
}

nav ul li ul.dropdown-menu li a {
  display: block;
  padding: 8px 14px;
  color: #333;
}

nav ul li ul.dropdown-menu li a:hover {
  background: #f5f5f5;
}

/* Examination page */
.exam-container {
      max-width: 800px;
      margin: 40px auto;
      background: #fff;
      padding: 20px;
      text-align: center;
      border-radius: 8px;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }
    .exam-container img {
      width: 100%;
      max-width: 700px;
      border-radius: 6px;
      border: 1px solid #ddd;
      margin-bottom: 10px;
    }
    .exam-caption {
      font-size: 17px;
      color: #444;
      margin-bottom: 15px;
    }
    .btn-download {
      display: inline-block;
      padding: 10px 18px;
      background: #0073e6;
      color: #fff;
      border-radius: 5px;
      text-decoration: none;
      font-weight: 600;
      transition: 0.3s;
    }
    .btn-download:hover {
      background: #005bb5;
    }



    /*Time table page*/
    .exam-container {
      text-align: center;
      margin: 40px auto;
      max-width: 800px;
    }
    .exam-container img {
      width: 100%;
      max-width: 700px;
      border: 2px solid #ddd;
      border-radius: 6px;
      box-shadow: 0 3px 10px rgba(0,0,0,0.1);
      margin-bottom: 12px;
      cursor: pointer;
      transition: 0.3s;
    }
    .exam-container img:hover {
      transform: scale(1.02);
    }
    .exam-caption {
      font-size: 17px;
      color: #444;
      margin: 10px 0 18px;
    }
    .btn-download {
      display: inline-block;
      padding: 10px 18px;
      background: #0073e6;
      color: #fff;
      border-radius: 5px;
      text-decoration: none;
      font-weight: 600;
      transition: 0.3s;
    }
    .btn-download:hover {
      background: #005bb5;
    }


    /* CRS STYLE */
    body { background:#f8f8f8; }
    .cr-container {
      max-width: 1300px;
      margin: 40px auto;
      text-align: center;
      padding: 0 20px;
    }
    .cr-container h2 {
      margin-bottom: 35px;
      color:#222;
    }
    .cr-row {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 25px 40px;
      margin-bottom: 40px;
    }
    .cr-card {
      width: 230px;
      background: #fff;
      border-radius: 10px;
      overflow: hidden;
      box-shadow: 0 4px 12px rgba(0,0,0,0.1);
      transition: 0.3s ease-in-out;
    }
    .cr-card:hover { transform: translateY(-6px); }
    .cr-card img {
      width: 100%;
      height: 260px;
      object-fit: cover;
    }
    .cr-info {
      padding: 10px 15px 18px;
    }
    .cr-info h3 {
      margin: 8px 0 4px;
      font-size: 17px;
      color:#222;
    }
    .cr-info p {
      color: #555;
      font-size: 15px;
      margin: 0;
    }