/* ==========================================================================
   BHARANI INTERNATIONAL MODERN SCHOOL (CBSE)
   Inner Pages Master Stylesheet (inner-pages.css)
   Preserves master Sun Gold & Rich Mahogany aesthetic of the Home page
   ========================================================================== */

/* ==========================================================================
   01. MEGA DROPDOWN & EXTENDED NAVIGATION STYLING
   ========================================================================== */

.dropdown-mega {
  display: flex !important;
  gap: 1.6rem !important;
  width: max-content !important;
  min-width: 520px !important;
  max-width: 620px !important;
  padding: 1.25rem 1.6rem !important;
}

/* 3-Column Mega Dropdown for Campus & Student Life */
.dropdown-mega-3col {
  display: flex !important;
  width: max-content !important;
  min-width: 780px !important;
  max-width: 900px !important;
  left: -190px !important;
  right: auto !important;
  gap: 1.75rem !important;
  padding: 1.25rem 1.75rem !important;
}

@media (min-width: 1400px) {
  .dropdown-mega-3col {
    min-width: 820px !important;
    max-width: 940px !important;
    left: -180px !important;
    gap: 2rem !important;
    padding: 1.35rem 2rem !important;
  }
}

.dropdown-mega-col {
  flex: 1 1 auto;
  min-width: max-content;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.dropdown-col-title {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold-bright) !important;
  padding: 0.35rem 0.6rem 0.5rem 0.6rem;
  border-bottom: 1px solid rgba(245, 158, 11, 0.25);
  margin-bottom: 0.35rem;
  display: block;
  white-space: nowrap !important;
}

.dropdown-mega-col a {
  display: flex;
  align-items: center;
  padding: 0.42rem 0.65rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #F8FAFC !important;
  text-decoration: none;
  border-radius: 6px;
  transition: all var(--transition-fast);
  line-height: 1.35;
  white-space: nowrap !important;
}

.dropdown-mega-col a:hover {
  background-color: rgba(245, 158, 11, 0.18);
  color: var(--color-gold-bright) !important;
  padding-left: 0.95rem;
}

.dropdown-menu {
  max-height: 85vh;
  overflow-y: auto;
}

/* Scrollbar for large dropdowns */
.dropdown-menu::-webkit-scrollbar {
  width: 5px;
}

.dropdown-menu::-webkit-scrollbar-thumb {
  background: var(--color-gold);
  border-radius: 3px;
}

/* ==========================================================================
   02. INNER PAGE HERO BANNER & BREADCRUMBS
   Authentic Campus Background Image with Subtle Opacity
   ========================================================================== */

.page-hero-header,
.page-hero {
  position: relative;
  background: linear-gradient(135deg, #1C0F07 0%, #2B170B 60%, #160B05 100%);
  border-bottom: 3px solid var(--color-gold);
  padding: 3.5rem 0 3.25rem 0;
  overflow: hidden;
  z-index: 1;
}

/* Campus Courtyard Background Image with Subtle Opacity */
.page-hero-header::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../assets/images/Inner_page_banner.png");
  background-position: center 32%;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

.page-hero-bg-glow {
  position: absolute;
  top: -40%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.14) 0%, rgba(28, 15, 7, 0) 70%);
  pointer-events: none;
  z-index: 1;
}

.page-hero-header>.container,
.page-hero>.container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container-max);
}

.breadcrumb-nav,
.breadcrumb-trail {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-light-gold);
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 2;
}

.breadcrumb-nav a,
.breadcrumb-trail a {
  color: var(--color-gold-light);
  transition: color var(--transition-fast);
  text-decoration: none;
}

.breadcrumb-nav a:hover,
.breadcrumb-trail a:hover {
  color: var(--color-gold-bright);
  text-decoration: underline;
}

.breadcrumb-sep,
.breadcrumb-trail span:not(.current) {
  opacity: 0.55;
  color: var(--color-gold);
}

.breadcrumb-current,
.breadcrumb-trail .current {
  color: var(--color-gold-bright);
  font-weight: 700;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.page-hero-title {
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-top: 0.5rem;
  margin-bottom: 0.85rem;
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  max-width: 900px;
}

.page-hero-subtitle,
.page-hero-lead {
  font-size: 1.0625rem;
  color: var(--color-gold-light);
  line-height: 1.6;
  opacity: 0.94;
  position: relative;
  z-index: 2;
  max-width: 820px;
}

/* ==========================================================================
   03. INNER PAGE LAYOUTS & TYPOGRAPHY
   ========================================================================== */

.inner-page-section,
.inner-main-content {
  padding: 4.5rem 0 5.5rem 0;
  background-color: #FFFFFF;
  width: 100%;
}

.inner-page-section>.container,
.inner-main-content>.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.inner-content-wrapper,
.content-section-card {
  width: 100%;
}

.content-section-card>h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--color-brown-dark);
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.6rem;
}

.content-section-card>h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 3px;
  background: var(--color-gold);
  border-radius: 2px;
}

/* Feature Card Grid for campus/academics/student-life */
.feature-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
  margin-top: 2rem;
}

.feature-card {
  background: #FFFFFF;
  border: 1.5px solid rgba(245, 158, 11, 0.28);
  border-radius: 12px;
  padding: 2rem 1.75rem;
  box-shadow: 0 8px 24px rgba(28, 15, 7, 0.04);
  transition: all var(--transition-smooth);
}

.feature-card:hover {
  border-color: var(--color-gold);
  box-shadow: 0 14px 35px rgba(245, 158, 11, 0.12);
  transform: translateY(-3px);
}

.feature-card-icon {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  background: var(--color-cream-dark);
  color: var(--color-brown-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.feature-card-icon svg {
  width: 24px;
  height: 24px;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-brown-dark);
  margin-bottom: 0.75rem;
}

.feature-card p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--color-text-muted);
  margin-bottom: 0;
}

/* Admissions / Process Checklist Items */
.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  background: #FFFFFF;
  border: 1.5px solid rgba(245, 158, 11, 0.25);
  border-radius: 10px;
  margin-bottom: 1rem;
  box-shadow: 0 4px 15px rgba(28, 15, 7, 0.03);
  transition: all var(--transition-fast);
}

.checklist-item:hover {
  border-color: var(--color-gold);
  transform: translateX(4px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.1);
}

.checklist-number {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, #FBBF24 0%, #D97706 100%);
  color: #1C0F07;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
}

.checklist-item p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-text-dark);
}

/* Academic & General Data Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(28, 15, 7, 0.05);
  margin: 1.75rem 0 2rem 0;
  background: #FFFFFF;
}

.table-data {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9375rem;
}

.table-data thead th {
  background: linear-gradient(135deg, #2B170B 0%, #1C0F07 100%);
  color: var(--color-gold-bright);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.84375rem;
  padding: 1.1rem 1.4rem;
  border-bottom: 2px solid var(--color-gold);
  white-space: nowrap;
}

.table-data tbody tr {
  border-bottom: 1px solid rgba(245, 158, 11, 0.15);
  transition: background-color var(--transition-fast);
}

.table-data tbody tr:nth-child(even) {
  background-color: #FFFDF8;
}

.table-data tbody tr:hover {
  background-color: rgba(254, 243, 199, 0.4);
}

.table-data td {
  padding: 1.05rem 1.4rem;
  color: var(--color-text-dark);
  line-height: 1.6;
  vertical-align: top;
}



.inner-page-section.bg-alt {
  background-color: var(--color-cream);
  border-top: 1px solid var(--color-cream-dark);
  border-bottom: 1px solid var(--color-cream-dark);
}

.lead-p {
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.8;
  color: var(--color-text-dark);
  margin-bottom: 1.5rem;
}

.content-body p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
}

.content-card {
  background: #FFFFFF;
  border: 1.5px solid rgba(245, 158, 11, 0.28);
  border-radius: 12px;
  padding: 2.25rem;
  box-shadow: 0 10px 30px rgba(28, 15, 7, 0.04);
  transition: all var(--transition-smooth);
}

.content-card:hover {
  border-color: var(--color-gold);
  box-shadow: 0 15px 40px rgba(245, 158, 11, 0.12);
  transform: translateY(-2px);
}

.card-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-brown-dark);
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.card-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--color-gold);
  border-radius: 2px;
}

/* Important publication note box */
.publication-note-box {
  background: #FFFBEB;
  border-left: 4px solid var(--color-gold);
  padding: 1.1rem 1.4rem;
  border-radius: 0 8px 8px 0;
  margin: 1.5rem 0;
  font-size: 0.9375rem;
  color: #92400E;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  line-height: 1.6;
}

.publication-note-box svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--color-gold-deep);
}

/* ==========================================================================
   04. INSTITUTIONAL DATA TABLES
   ========================================================================== */

.institutional-table-wrapper {
  width: 100%;
  overflow-x: auto;
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(28, 15, 7, 0.05);
  margin: 1.75rem 0 2rem 0;
  background: #FFFFFF;
}

.institutional-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9375rem;
}

.institutional-table thead th {
  background: linear-gradient(135deg, #2B170B 0%, #1C0F07 100%);
  color: var(--color-gold-bright);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.84375rem;
  padding: 1.1rem 1.4rem;
  border-bottom: 2px solid var(--color-gold);
  white-space: nowrap;
}

.institutional-table tbody tr {
  border-bottom: 1px solid rgba(245, 158, 11, 0.15);
  transition: background-color var(--transition-fast);
}

.institutional-table tbody tr:nth-child(even) {
  background-color: #FFFDF8;
}

.institutional-table tbody tr:hover {
  background-color: rgba(254, 243, 199, 0.4);
}

.institutional-table td {
  padding: 1.05rem 1.4rem;
  color: var(--color-text-dark);
  line-height: 1.6;
  vertical-align: top;
}

.institutional-table td:first-child {
  font-weight: 700;
  color: var(--color-brown-dark);
}

/* ==========================================================================
   05. RESPONSIVE UTILITIES FOR INNER PAGES
   ========================================================================== */

@media (max-width: 992px) {

  .dropdown-mega,
  .dropdown-mega-3col {
    min-width: 100% !important;
    width: 100% !important;
    flex-direction: column;
    gap: 1rem;
    left: 0 !important;
  }

  .dropdown-mega-col a,
  .dropdown-col-title {
    white-space: normal !important;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-group-full {
    grid-column: span 1;
  }

  .page-hero-header,
  .page-hero {
    padding: 3rem 0 2.5rem 0;
  }

  .message-card {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 768px) {
  .page-hero-title {
    font-size: 1.85rem;
  }

  .inner-page-section,
  .inner-main-content {
    padding: 50px 0px;
  }

  .inner-page-section {
    padding: 3.5rem 0 4.5rem 0;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .house-grid {
    grid-template-columns: 1fr;
  }

  .school-photo-frame img {
    height: 280px;
  }

  .school-photo-frame-wrap {
    padding-right: 0.75rem;
    padding-bottom: 0.75rem;
  }
}