/* Additional Page Styles */

/* Navigation Dropdown Styles */
.dropdown {
  position: relative;
}

.dropdown-content {
  display: block;
  position: absolute;
  background-color: #213b2d;
  min-width: 220px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  z-index: 1001;
  border-radius: 3px;
  margin-top: 5px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.dropdown-content a {
  color: var(--text-light);
  padding: 12px 16px;
  display: block;
  text-align: left;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.dropdown-content a:last-child {
  border-bottom: none;
}

.dropdown-content a:hover {
  background-color: var(--light-green);
}

.dropdown:hover .dropdown-content,
.dropdown.hover-active .dropdown-content,
.dropdown.touch-active .dropdown-content {
  opacity: 1;
  visibility: visible;
  display: block;
}

.dropdown-content {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}

/* Fullscreen Menu Submenu */
.overlay-nav ul li {
  position: relative;
}

.overlay-nav .submenu {
  display: none;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  margin-top: 10px;
}

.overlay-nav .submenu.active {
  display: block;
  max-height: 500px;
}

.overlay-nav .submenu li {
  margin: 10px 0;
}

.overlay-nav .submenu li a {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.8);
}

/* Anchor Navigation */
.section-anchor {
  display: block;
  position: relative;
  top: -100px;
  visibility: hidden;
}

/* Section Navigation */
.section-nav {
  position: sticky;
  top: 100px;
  background-color: var(--cream);
  padding: 20px;
  border-radius: 5px;
  margin-bottom: 30px;
  flex-shrink: 0; /* Prevents shrinking */
  min-width: 200px; /* Set a minimum width */
}

.section-nav ul {
  list-style: none;
}

.section-nav ul li {
  margin-bottom: 10px;
}

.section-nav ul li a {
  color: var(--dark-green);
  display: block;
  padding: 5px 10px;
  border-left: 3px solid transparent;
  transition: all 0.3s ease;
}

.section-nav ul li a:hover, 
.section-nav ul li a.active {
  background-color: #fff;
  border-radius: 4px;
}

/* Page Banner */
.page-banner {
  background-color: var(--dark-green);
  color: var(--text-light);
  padding: 120px 0 60px;
  text-align: center;
  background-image: url('../images/banner-bg.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
}

.page-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(33, 59, 45, 0.7);
}

.page-banner .container {
  position: relative;
  z-index: 1;
}

.page-banner h1 {
  font-size: 3.5rem;
  margin: 0;
}

/* Content Layout */
.page-content {
  padding: 60px 0;
}

.content-grid {
  display: flex;
  gap: 30px;
  align-items: flex-start; /* Key for sticky to work */
}

/* Section Styling */
.section-wrap {
  margin-bottom: 60px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(33, 59, 45, 0.1);
}

.section-wrap:last-child {
  border-bottom: none;
}

.section-wrap h2 {
  color: var(--dark-green);
  font-size: 2.5rem;
  margin-bottom: 30px;
  position: relative;
}

.section-wrap h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--gold);
  margin-top: 15px;
}

/* Component Boxes */
.principle-box, 
.vision-box, 
.mission-box,
.program-box, 
.option-box,
.faculty-profile {
  background-color: var(--cream);
  border-left: 4px solid var(--gold);
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  border-radius: 5px;
}

.principle-box h3,
.vision-box h3,
.mission-box h3 {
  color: var(--dark-green);
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.principle-box ul,
.program-box ul,
.option-box ul {
  padding-left: 20px;
}

.principle-box li,
.program-box li,
.option-box li {
  margin-bottom: 10px;
}

/* Faculty Profile */
.faculty-profile {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.faculty-info {
  flex: 1 1 400px;
}

.faculty-info h3 {
  color: var(--dark-green);
  font-size: 1.8rem;
  margin-bottom: 5px;
}

.faculty-info h4 {
  color: var(--dark-green);
  font-size: 1.2rem;
  margin-bottom: 20px;
  font-weight: 400;
  opacity: 0.8;
}

.faculty-bio p {
  margin-bottom: 15px;
}

.coming-soon {
  text-align: center;
  padding: 40px 0;
  font-style: italic;
}

/* Academic Programs */
.academic-program {
  margin-bottom: 40px;
}

.program-box h3,
.option-box h3 {
  color: var(--dark-green);
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.lower-school {
  border-left-color: #7cb342;
}

.upper-school {
  border-left-color: #2196f3;
}

.enrichment {
  border-left-color: #9c27b0;
}

.core {
  border-left-color: #ffa000;
}

.full {
  border-left-color: #e91e63;
}

.emphasis {
  font-size: 1.2rem;
  font-style: italic;
  color: var(--dark-green);
  padding: 20px;
  background-color: var(--cream);
  border-radius: 5px;
  margin-top: 30px;
}

/* Admissions Sections */
.apply-process,
.tuition-info,
.dates-info {
  text-align: center;
  padding: 40px;
  background-color: var(--cream);
  border-radius: 5px;
  margin-bottom: 20px;
}

.schedule-tour-section {
  text-align: center;
  padding: 60px 0;
  background-color: var(--gold);
  margin: 60px -20px 0;
  border-radius: 5px;
}

.schedule-tour-section h2 {
  color: var(--dark-green);
  margin-bottom: 20px;
}

.schedule-tour-section p {
  max-width: 700px;
  margin: 0 auto 30px;
}

/* Contact Grid */
.contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 60px;
}

.contact-info {
  flex: 1 1 400px;
}

.contact-form-container {
  flex: 1 1 500px;
  background-color: var(--cream);
  padding: 40px;
  border-radius: 5px;
}

.contact-method {
  margin-bottom: 30px;
}

.contact-method h3 {
  display: flex;
  align-items: center;
  color: var(--dark-green);
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.contact-method h3 i {
  margin-right: 10px;
  color: var(--gold);
}

.contact-method a {
  color: var(--dark-green);
  text-decoration: underline;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links-large {
  padding: 30px 0;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--dark-green);
  color: var(--text-light);
  border-radius: 50%;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background-color: var(--gold);
  color: var(--dark-green);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--dark-green);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: 'Archivo', sans-serif;
  font-size: 1rem;
}

.form-group textarea {
  resize: vertical;
}

.additional-options {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 60px;
}

.additional-options .option-box {
  flex: 1 1 300px;
  text-align: center;
  background-color: var(--cream);
  padding: 30px;
  border-radius: 5px;
  border-left: none;
  border-top: 4px solid var(--gold);
}

.additional-options .option-box h3 {
  margin-bottom: 15px;
  color: var(--dark-green);
}

.additional-options .option-box p {
  margin-bottom: 20px;
}

/* FAQ Section */
.faq-container {
  margin-bottom: 40px;
}

.faq-item {
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(33, 59, 45, 0.1);
}

.faq-question {
  padding: 15px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--dark-green);
}

.faq-question:after {
  content: '\f078';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  transition: all 0.3s ease;
}

.faq-question.active:after {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 15px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer.active {
  padding: 0 15px 15px;
  max-height: 1000px;
}

.main-content p {
    margin-bottom: 15px;
}

.read-more {
  text-decoration: underline;
  font-size: 65%;
  text-transform: uppercase;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: var(--dark-green);
  color: var(--text-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--gold);
  color: var(--dark-green);
}
/* Friday Enrichment Additional Styles */
/* These styles complement the existing page-styles.css */

/* Friday Enrichment Program Boxes - Additional Styling */
.program-box.enrichment {
  border-left-color: #9c27b0; /* Purple for enrichment */
}

.program-box.full {
  border-left-color: #e91e63; /* Pink for full program */
}

.program-box.core {
  border-left-color: #ffa000; /* Orange for core program */
}

/* Ensure consistent spacing for enrichment content */
.section-wrap#enrichment .academic-program {
  margin-bottom: 30px;
}

.section-wrap#enrichment .program-box {
  margin-bottom: 25px;
}

.section-wrap#enrichment .program-box h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
}

.section-wrap#enrichment .program-box p {
  margin-bottom: 10px;
}

.section-wrap#enrichment .program-box p:last-child {
  margin-bottom: 0;
}

/* Sessions and enrollment info boxes */
.section-wrap#enrichment .program-box ul {
  margin-bottom: 0;
}

.section-wrap#enrichment .program-box ul li {
  margin-bottom: 8px;
}

.section-wrap#enrichment .program-box ul li:last-child {
  margin-bottom: 0;
}

/* Responsive adjustments for enrichment section */
@media (max-width: 768px) {
  .section-wrap#enrichment .program-box {
    padding: 20px;
  }
  
  .section-wrap#enrichment .program-box h3 {
    font-size: 1.2rem;
  }
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
  
  .section-nav {
    position: sticky;
    top: 100px;
    background-color: var(--cream);
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 30px;
    flex-shrink: 0; /* Prevents shrinking */
    min-width: 200px; /* Set a minimum width */
  }
  
  .section-nav ul {
    display: flex;
  }
  
  .section-nav ul li {
    margin-right: 15px;
    margin-bottom: 0;
    white-space: nowrap;
  }
  
  .section-nav ul li a {
    border-left: none;
    border-bottom: 3px solid transparent;
    padding: 5px 0;
  }
  
  .section-nav ul li a:hover,
  .section-nav ul li a.active {
    border-left-color: transparent;
    border-bottom-color: var(--gold);
    background-color: transparent;
  }
}

@media (max-width: 768px) {
  .page-banner {
    padding: 105px 0 20px;
  }
  
  .page-banner h1 {
    font-size: 2rem;
  }
  
  .section-wrap h2 {
    font-size: 1.75rem;
  }
  
  .section-nav {
    display: none;
  }
  
  .schedule-tour-section {
    margin: 40px -20px 0;
    padding: 40px 20px;
  }
  
  /* Handle dropdown touch on mobile */
  .dropdown-content {
    position: static;
    background-color: rgba(53, 89, 70, 0.5);
    box-shadow: none;
    display: none;
    margin-top: 0;
  }
  
  .dropdown-content a {
    padding: 8px 16px 8px 30px;
  }
  
  .dropdown.touch-active .dropdown-content {
    display: block;
  }
}

@media (max-width: 576px) {
  .principle-box, 
  .vision-box, 
  .mission-box,
  .program-box, 
  .option-box {
    padding: 20px;
  }
  
  .contact-form-container {
    padding: 25px;
  }
  
  .section-wrap h2 {
    font-size: 1.8rem;
  }
  
  .overlay-nav ul li a {
    font-size: 1.5rem;
  }
  
  .overlay-nav .submenu li a {
    font-size: 1rem;
  }
}
