/* SBMS School Website Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@300;400;600;700;800&display=swap');

:root {
  --primary: #2d35a6;
  --primary-dark: #1f2d86;
  --accent: #e0c419;
  --text: #172554;
  --muted: #334155;
  --bg: #eef5ff;
  --surface: #ffffff;
  --border: #c9daef;
  --max-width: 1120px;
  --radius: 16px;
  --shadow: 0 14px 30px rgba(45, 53, 166, 0.16);
  --shadow-lift: 0 18px 40px rgba(45, 53, 166, 0.28);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --transition: all 0.3s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--muted);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: 'Poppins', sans-serif;
  color: var(--text);
  line-height: 1.2;
}

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--surface);
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.section-title h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.kicker {
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  background: var(--accent);
  color: var(--text);
  font-weight: 600;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: var(--transition);
}

.btn:hover {
  background: var(--primary-dark);
  color: var(--surface);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn.loading {
  opacity: 0.7;
  pointer-events: none;
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: var(--text);
}

.announcement {
  background: linear-gradient(120deg, var(--text), var(--primary));
  color: var(--bg);
  font-size: 0.9rem;
  padding: 8px 0;
  text-align: center;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(23, 37, 84, 0.96);
  backdrop-filter: blur(8px);
  transition: var(--transition);
}

.navbar.shrink {
  box-shadow: var(--shadow);
  padding: 6px 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--surface);
  font-weight: 700;
}

.logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links a {
  color: var(--border);
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 999px;
  transition: var(--transition);
}

.nav-links a.active,
.nav-links a:hover {
  background: var(--accent);
  color: var(--text);
}

.hamburger {
  display: none;
  color: var(--surface);
  font-size: 1.4rem;
  cursor: pointer;
}

.hero {
  background: linear-gradient(120deg, rgba(23, 37, 84, 0.88), rgba(45, 53, 166, 0.9)),
    url('https://picsum.photos/seed/sbms-hero/1600/900') center/cover no-repeat;
  color: var(--surface);
  padding: 120px 0 90px;
}

.hero .content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  color: var(--surface);
}

.hero p {
  color: var(--border);
  margin: 18px 0 26px;
}

.hero-actions {
  margin-top: 20px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero .tagline {
  white-space: pre-line;
  color: var(--accent);
  font-weight: 600;
}

.hero .stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.counter {
  background: rgba(255, 255, 255, 0.08);
  padding: 16px;
  border-radius: var(--radius-md);
}

.counter h3 {
  font-size: 1.8rem;
  color: var(--accent);
}

.stats-band {
  background: var(--primary-dark);
  color: var(--surface);
  padding: 28px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  text-align: center;
}

.stats-grid h3 {
  color: var(--accent);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.card {
  background: var(--surface);
  padding: 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
}

.event-card {
  position: relative;
}

.date-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--accent);
  color: var(--text);
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.8rem;
}

.card i {
  font-size: 1.8rem;
  color: var(--accent);
  margin-bottom: 12px;
}

.program-card img,
.facility-card img,
.gallery-card img,
.event-card img,
.faculty-card img,
.campus-slide img,
.testimonial-card img,
.committee-card img,
.video-card img,
.achievement-card img {
  border-radius: var(--radius-md);
}

.slider {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.slides {
  display: flex;
  transition: transform 0.5s ease;
}

.slide {
  min-width: 100%;
}

.slide-content {
  padding: 28px;
  background: var(--surface);
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.slider-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer;
}

.slider-dots button.active {
  background: var(--accent);
}

.hero-inner {
  background: linear-gradient(120deg, rgba(23, 37, 84, 0.9), rgba(45, 53, 166, 0.9)),
    url('https://picsum.photos/seed/sbms-inner/1600/600') center/cover no-repeat;
  color: var(--surface);
  padding: 90px 0 70px;
}

.hero-inner h1 {
  color: var(--surface);
}

.breadcrumb {
  display: flex;
  gap: 8px;
  color: var(--border);
  margin-top: 10px;
}

.breadcrumb a {
  color: var(--accent);
}

.timeline {
  display: grid;
  gap: 18px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px;
  align-items: center;
  background: #e6efff;
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: 0 12px 30px rgba(45, 53, 166, 0.12);
}

.timeline-badge {
  width: 100px;
  height: 60px;
  display: grid;
  place-items: center;
  background: #f2c518;
  border-radius: 12px;
  font-weight: 700;
  color: #0c1d58;
  font-size: 0.95rem;
  box-shadow: 0 12px 20px rgba(45, 53, 166, 0.22);
}

.timeline-copy h3 {
  margin-bottom: 6px;
  font-size: 1.3rem;
  color: var(--text);
}

.timeline-copy p {
  color: #0b1f63;
  line-height: 1.5;
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  align-items: center;
}

.signature {
  margin-top: 18px;
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  color: var(--primary);
}

.badge-strip {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.badge-strip .card {
  min-width: 240px;
}

.logo-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 18px;
  align-items: center;
}

.logo-strip img {
  background: var(--surface);
  padding: 16px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

.tabs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.tab-btn {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  font-weight: 600;
}

.tab-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--text);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.accordion {
  display: grid;
  gap: 12px;
}

.accordion-item {
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.accordion-header {
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease;
}

.accordion-item.active .accordion-body {
  padding: 0 20px 18px;
  max-height: 400px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.table th,
.table td {
  padding: 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.table th {
  background: var(--primary-dark);
  color: var(--surface);
}

.checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
}

.checklist i {
  color: var(--accent);
}

.fee-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 24px;
}

.filter-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.filter-btns button {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  font-weight: 600;
}

.filter-btns button.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--text);
}

.faculty-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 1100px) {
  .faculty-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .faculty-grid {
    grid-template-columns: 1fr;
  }
}

.faculty-card {
  perspective: 1000px;
  cursor: pointer;
}

.faculty-inner {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s;
}

.faculty-card:hover .faculty-inner,
.faculty-card.flipped .faculty-inner {
  transform: rotateY(180deg);
}

.faculty-front,
.faculty-back {
  backface-visibility: hidden;
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow);
  min-height: 320px;
}

.faculty-back {
  position: absolute;
  inset: 0;
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.gallery-grid {
  columns: 4 200px;
  column-gap: 16px;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 16px;
  position: relative;
  cursor: pointer;
}

.gallery-item img {
  border-radius: var(--radius-md);
  width: 100%;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(23, 37, 84, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 80%;
  max-height: 80vh;
  border-radius: var(--radius-md);
}

.lightbox button {
  position: absolute;
  background: none;
  border: none;
  color: var(--surface);
  font-size: 2rem;
  cursor: pointer;
}

.lightbox .prev {
  left: 6%;
}

.lightbox .next {
  right: 6%;
}

.lightbox .close {
  top: 6%;
  right: 6%;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.video-card {
  position: relative;
}

.video-card .play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--surface);
  font-size: 2rem;
  background: rgba(0, 0, 0, 0.35);
  border-radius: var(--radius-md);
}

.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.facility-card h3 {
  margin-top: 12px;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.contact-card {
  background: var(--surface);
  padding: 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.contact-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
}

.form {
  display: grid;
  gap: 14px;
}

.form input,
.form select,
.form textarea {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-family: 'Inter', sans-serif;
}

.form textarea {
  resize: vertical;
  min-height: 140px;
}

.form .form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.form .error {
  border-color: #d9534f;
}

.form .success-msg {
  background: #e6f7e6;
  color: #2f7a2f;
  padding: 12px;
  border-radius: var(--radius-sm);
}

.map-embed {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.social-strip {
  display: flex;
  gap: 16px;
  font-size: 1.4rem;
  margin-top: 12px;
}

.social-strip a:hover {
  color: var(--accent);
}

.cta-banner {
  background: linear-gradient(120deg, var(--text), var(--primary));
  color: var(--surface);
  padding: 50px 0;
  border-radius: var(--radius-lg);
}

.cta-inner {
  padding: 50px;
}

.cta-banner h2 {
  color: var(--surface);
}

.footer {
  background: var(--text);
  color: var(--border);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.footer a {
  color: var(--border);
}

.footer .socials {
  display: flex;
  gap: 12px;
  font-size: 1.2rem;
  margin-top: 12px;
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 16px;
}

.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(23, 37, 84, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: var(--surface);
  padding: 24px;
  border-radius: var(--radius-md);
  width: min(600px, 90%);
  position: relative;
}

.modal-option {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 16px;
  cursor: pointer;
}

.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: #25d366;
  color: var(--surface);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  box-shadow: var(--shadow);
  z-index: 9999;
  transition: var(--transition);
}

.whatsapp-float.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}

.call-now {
  position: fixed;
  left: 20px;
  bottom: 20px;
  background: var(--accent);
  color: var(--text);
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: var(--shadow);
  z-index: 9999;
}

@media (max-width: 900px) {
  .nav-links {
    position: absolute;
    top: 100%;
    right: 4%;
    background: var(--text);
    flex-direction: column;
    gap: 12px;
    padding: 18px;
    border-radius: var(--radius-md);
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .hamburger {
    display: block;
  }

  .hero .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    columns: 2 200px;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 90px 0 70px;
  }

  .hero .stats {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    columns: 1 200px;
  }
}
.program-img {
  width: 100%;
  height: 400px;        /* control height here */
  object-fit: cover;    /* crops nicely */
}
.gallery-img {
  width: 100%;
  width: 400px;
  height: 400px;        /* control height here */
  object-fit: cover;    /* crops nicely */
}
.youtube-img {
  width: 100%;
  height: 300px;        /* control height here */
  object-fit: cover;    /* crops nicely */
}
.logo-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid #48b4ea;
  object-fit: cover;
}
.fac-img {
  width: 500px;
  height: 150px;        /* control height here */
  object-fit: cover;    /* crops nicely */
}
.camp-img {
  width: 600px;
  height: 400px;        /* control height here */
  object-fit: cover;    /* crops nicely */
}
.staf-img {
  width: 500px;
  height: 300px;        /* control height here */
  object-fit: cover;    /* crops nicely */
}
.about-img {
  width: 600px;
  height: 300px;        /* control height here */
  object-fit: cover;    /* crops nicely */
}
