
/* ==========================================================================
   OUR SCHOOLS INNER PAGE (EXACT REPLICATION OF AITCHISON HERITAGE LAYOUT)
   ========================================================================== */

/* Subpage Hero Banner */
.subpage-hero {
  position: relative;
  width: 100%;
  height: 440px;
  background-color: var(--color-navy-dark);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.subpage-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}

.subpage-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(4, 13, 29, 0.45) 0%,
    rgba(8, 27, 58, 0.2) 40%,
    rgba(4, 13, 29, 0.85) 100%
  );
}

.subpage-hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  padding-bottom: 28px;
}

.subpage-title {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  font-weight: 700;
  color: #D4AF37;
  letter-spacing: 5px;
  text-transform: uppercase;
  line-height: 1;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.8);
}

/* Yellow Accent Breadcrumb Bar (Matches Screenshot) */
.breadcrumb-bar {
  background: linear-gradient(90deg, #F59E0B, #EAB308);
  color: var(--color-navy-dark);
  padding: 10px 0;
  font-size: 0.88rem;
  font-weight: 600;
  border-top: 1px solid #FDE68A;
  border-bottom: 2px solid #D97706;
}

.breadcrumb-bar a {
  color: var(--color-navy-dark);
  transition: opacity var(--transition-fast);
}

.breadcrumb-bar a:hover {
  text-decoration: underline;
}

.breadcrumb-separator {
  margin: 0 8px;
  color: rgba(8, 27, 58, 0.6);
}

.breadcrumb-current {
  color: var(--color-navy-dark);
  font-weight: 700;
}

/* Two-Column Schools Layout */
.schools-section {
  padding: 60px 0 90px 0;
  background-color: #FFFFFF;
}

.schools-grid-layout {
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 50px;
  align-items: start;
}

/* Left Narrative Column */
.schools-narrative {
  color: #2D3748;
  font-size: 1.02rem;
  line-height: 1.85;
}

.schools-narrative p {
  margin-bottom: 24px;
}

.schools-narrative strong {
  color: var(--color-navy);
  font-weight: 700;
}

.schools-narrative a {
  color: #2563EB;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-fast);
}

.schools-narrative a:hover {
  color: var(--color-gold-dark);
}

/* Two Photo Cards with Captions (Matches Screenshot) */
.schools-photos-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 36px;
  margin-bottom: 40px;
}

.school-photo-box {
  display: flex;
  flex-direction: column;
}

.school-photo-frame {
  width: 100%;
  height: 250px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background-color: var(--color-slate-100);
}

.school-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.school-photo-box:hover .school-photo-frame img {
  transform: scale(1.05);
}

.school-photo-caption {
  font-size: 0.85rem;
  color: #4A5568;
  line-height: 1.5;
  margin-top: 10px;
}

/* Dynamic Tab Content Sections */
.tab-content-panel {
  display: none;
  animation: fadeInPanel 0.4s ease-out;
}

.tab-content-panel.active {
  display: block;
}

@keyframes fadeInPanel {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.panel-header-badge {
  display: inline-block;
  background: rgba(212, 175, 55, 0.15);
  color: var(--color-navy);
  border: 1px solid rgba(212, 175, 55, 0.4);
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 14px;
}

.panel-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 18px;
}

.feature-bullets-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0;
}

.feature-bullet {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.96rem;
  color: #2D3748;
}

.feature-bullet i {
  color: var(--color-gold);
  margin-top: 5px;
  font-size: 0.85rem;
}

/* Right Sticky Sidebar Navigation (Matches Screenshot Exactly) */
.schools-sidebar {
  position: sticky;
  top: 100px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.sidebar-heading {
  background: #081B3A;
  color: #FFFFFF;
  padding: 14px 20px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.sidebar-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-nav-item {
  border-bottom: 1px solid #EDF2F7;
}

.sidebar-nav-item:last-child {
  border-bottom: none;
}

.sidebar-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  font-size: 0.9rem;
  color: #2D3748;
  font-weight: 500;
  transition: all var(--transition-fast);
  cursor: pointer;
  background-color: #FFFFFF;
}

.sidebar-nav-link:hover {
  background-color: #F1F5F9;
  color: var(--color-navy);
  padding-left: 24px;
}

.sidebar-nav-item.active .sidebar-nav-link {
  background-color: #EDF2F7;
  color: var(--color-navy);
  font-weight: 700;
  border-left: 4px solid var(--color-gold);
  padding-left: 18px;
}

/* Exact Heritage Blue Footer (Matches Screenshot) */
.aitchison-style-footer {
  background: #081B3A;
  color: #FFFFFF;
  padding: 65px 0 0 0;
  border-top: 3px solid var(--color-gold);
  position: relative;
}

.aitchison-footer-grid {
  display: grid;
  grid-template-columns: 240px 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 55px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.aitchison-footer-crest-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.aitchison-footer-crest-img {
  width: 140px;
  height: 140px;
  filter: drop-shadow(0 4px 14px rgba(212, 175, 55, 0.4));
}

.aitchison-footer-col h4 {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.aitchison-contact-lines {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

.aitchison-footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.aitchison-footer-links a {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color var(--transition-fast);
}

.aitchison-footer-links a:hover {
  color: var(--color-gold);
}

.aitchison-footer-bottom {
  padding: 20px 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
}

.aitchison-footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.facebook-badge-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #3B5998;
  color: #FFFFFF;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  transition: opacity var(--transition-fast);
}

.facebook-badge-link:hover {
  opacity: 0.9;
}

.btn-aitchison-top {
  width: 36px;
  height: 36px;
  background: #1B427D;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.btn-aitchison-top:hover {
  background: var(--color-gold);
  color: var(--color-navy-dark);
}

/* Responsive adjustments for schools layout */
@media (max-width: 992px) {
  .schools-grid-layout {
    grid-template-columns: 1fr;
  }
  .schools-sidebar {
    position: static;
    margin-bottom: 40px;
  }
  .aitchison-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 640px) {
  .subpage-hero {
    height: 320px;
  }
  .subpage-title {
    font-size: 2.3rem;
    letter-spacing: 3px;
  }
  .schools-photos-row {
    grid-template-columns: 1fr;
  }
  .aitchison-footer-grid {
    grid-template-columns: 1fr;
  }
  .aitchison-footer-bottom .container {
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }
}
