/* =============== ADMISSIONS PAGE – COMPLETE & FIXED CSS =============== */
/*:root {*/
/*  --red: #be2226;*/
/*  --blue: #2980b9;*/
/*  --orange: #f39c12;*/
/*  --purple: #9b59b6;*/
/*  --dark: #2c3e50;*/
/*  --gray: #7f8c8d;*/
/*  --light: #f8f9fa;*/
/*}*/

/* =============== CONTAINER =============== */
.st-peters-school-about-container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

/* =============== VERTICAL TABS LAYOUT =============== */
.vertical-tabs {
  display: flex;
  gap: 30px;
  width: 100%;
}

/* Tabs List (Left Sidebar) */
.tabs-list {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, .05);
  overflow: hidden;
  flex-shrink: 0;
  /*width: 280px;*/
}

.tab-link {
  width: 100%;
  background: #fff;
  color: #be2226;
  padding: 18px 20px;
  font-weight: 600;
  font-size: 1.1rem;
  text-align: left;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all .3s;
  border-bottom: 1px solid #eee;
}

.tab-link:hover:not(.active) {
  background: #f8f9fa;
  color: #be2226
  padding-left: 25px;
}

.tab-link.active {
  background: #be2226;
  color: #fff;
}

.tab-link::after {
  content: '\f105';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  transition: transform .3s;
}

.tab-link.active::after {
  transform: rotate(90deg);
}

/* =============== TAB CONTENT – FIXED METHOD (NO MORE BROKEN STYLES) =============== */
.tab-content {
  flex: 1;
  min-width: 300px;
  opacity: 0;
  visibility: hidden;
  position: absolute;
  left: 0;
  top: 0;
  width: calc(100% - 310px);
  /* Adjust based on sidebar */
  pointer-events: none;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  /*box-shadow: 0 4px 15px rgba(0, 0, 0, .05);*/
}

.tab-content.active {
  opacity: 1;
  visibility: visible;
  position: relative;
  pointer-events: auto;
  width: auto;
  left: auto;
  top: auto;
}

/* =============== WHO CAN JOIN =============== */
.age-criteria-section {
  text-align: center;
  margin-top: 30px;
}

.age-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.age-row.centered {
  justify-content: center;
}

.age-pill {
  display: flex;
  align-items: center;
  background: #fff;
  border: 2px solid;
  border-radius: 50px;
  padding: 14px 20px;
  min-width: 180px;
  max-width: 220px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .06);
  transition: transform .2s, box-shadow .2s;
}

.age-pill:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .1);
}

.age-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
  flex-shrink: 0;
}

.age-text h4 {
  margin: 0;
  font-size: 1.1rem;
  color: #be2226;
  font-weight: 600;
}

.age-text p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--gray);
}

.age-red {
  border-color: #be2226
}

.age-red .age-circle {
  background: #be2226
}

.age-blue {
  border-color: #1d3d70;
}

.age-blue .age-circle {
  #1d3d70;
}

.age-orange {
  border-color: #f7a736;
}

.age-orange .age-circle {
  background: #f7a736;
}

.age-purple {
  border-color: #1d3d70;
}

.age-purple .age-circle {
  background: #1d3d70;
}

.st-peters-school-info-bar {
  display: flex;
  align-items: center;
  background: #fffbe6;
  border: 1px solid #ffd43b;
  padding: 12px 18px;
  border-radius: 12px;
  margin-top: 30px;
  color: #d35400;
  font-weight: 500;
  font-size: .95rem;
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
}

.st-peters-school-info-icon {
  margin-right: 10px;
  font-size: 1.2rem;
}

/* =============== HOW TO APPLY =============== */
.st-peters-school-new-apply-grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.st-peters-school-new-apply-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.st-peters-school-new-apply-row-centered {
  justify-content: center;
}

.st-peters-school-new-apply-step {
  background: #fff;
  border-radius: 16px;
  padding: 25px;
  text-align: center;
  flex: 1;
  min-width: 220px;
  max-width: 300px;
  /*box-shadow: 0 4px 12px rgba(0, 0, 0, .06);*/
  border: 2px solid transparent;
}

.st-peters-school-new-apply-step-red {
  border-color: #be2226
}

.st-peters-school-new-apply-step-blue {
  border-color: #1d3d70;
}

.st-peters-school-new-apply-step-orange {
  border-color: #f7a736;
}

.st-peters-school-new-apply-step-header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.st-peters-school-new-apply-step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.st-peters-school-new-apply-step-red .st-peters-school-new-apply-step-number {
  background: #be2226
}

.st-peters-school-new-apply-step-blue .st-peters-school-new-apply-step-number {
  #1d3d70 ;
}

.st-peters-school-new-apply-step-orange .st-peters-school-new-apply-step-number {
  background: #f7a736;
}

.st-peters-school-new-apply-step-icon {
  font-size: 1.3rem;
  color: #bbb;
}

.st-peters-school-new-apply-step-title {
  font-size: 1.3rem;
  margin-bottom: 8px;
  color: #be2226;
}

.st-peters-school-new-apply-step-description {
  color: var(--gray);
  margin-bottom: 12px;
  font-size: .95rem;
}

.st-peters-school-new-apply-step-note {
  display: block;
  font-size: .9rem;
  color: #be2226;
  font-style: italic;
  margin-top: 8px;
}

.st-peters-school-new-apply-step-btn {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 16px;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: .3s;
}

.st-peters-school-new-apply-step-red .st-peters-school-new-apply-step-btn {
  background: #be2226;
  color: #fff;
}

.st-peters-school-new-apply-step-blue .st-peters-school-new-apply-step-btn {
  #1d3d70;
  color: #fff;
}

.st-peters-school-new-apply-step-orange .st-peters-school-new-apply-step-btn {
  background: #f7a736;
  color: #fff;
}

.st-peters-school-new-apply-step-btn:hover {
  transform: scale(1.05);
}

/* =============== FEE STRUCTURE =============== */
.st-peters-school-fee-header h2 {
  font-size: 2.2rem;
  color: #be2226;
  text-align: center;
}

.st-peters-school-fee-subtitle {
  text-align: center;
  color: #555;
  max-width: 800px;
  margin: 0 auto 30px;
}

.st-peters-school-fee-download {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.st-peters-school-download-card {
  background: #be2226;
  color: #fff;
  padding: 40px;
  border-radius: 24px;
  text-align: center;
  max-width: 650px;
  width: 100%;
  box-shadow: 0 8px 25px rgba(0, 0, 0, .15);
}

.st-peters-school-download-icon {
  font-size: 2.8rem;
  margin-bottom: 15px;
  color: #f7a736;
}

.st-peters-school-download-content h3 {
  margin-bottom: 12px;
  font-size: 1.6rem;
}

.st-peters-school-download-content p {
  margin-bottom: 20px;
  color: #ddd;
}

.st-peters-school-download-btn-large {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: #be2226;
  padding: 12px 24px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: .3s;
}

.st-peters-school-download-btn-large:hover {
  background: #f7a736;
  color: #fff;
}

/* =============== FAQS =============== */
.st-peters-school-faq-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 30px;
}

.st-peters-school-faq-header {
  text-align: center;
  margin-bottom: 30px;
}

.st-peters-school-faq-icon {
  width: 80px;
  height: 80px;
  background: #be2226;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 15px;
}

.st-peters-school-faq-title {
  font-size: 2.2rem;
  color: #be2226;
  margin-bottom: 8px;
}

.st-peters-school-faq-subtitle {
  color: var(--gray);
  font-size: 1rem;
}

.st-peters-school-faq-item {
  background: #fff;
  border-radius: 12px;
  margin-bottom: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .06);
  overflow: hidden;
  max-width: 750px;
  width: 100%;
}

.st-peters-school-faq-question {
  padding: 18px 20px;
  background: #f8f9fa;
  font-weight: 600;
  color: #be2226;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background .3s;
}

.st-peters-school-faq-question.active {
  background: #be2226;
  color: #fff;
}

.st-peters-school-faq-question::after {
  content: '\f078';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  transition: transform .3s;
}

.st-peters-school-faq-question.active::after {
  transform: rotate(180deg);
}

.st-peters-school-faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease, padding .4s ease;
  background: #fff;
}

.st-peters-school-faq-answer.active {
  padding: 20px;
  max-height: 500px;
}

.st-peters-school-faq-answer ul {
  list-style: disc;
  padding-left: 20px;
  color: #555;
}

.st-peters-school-faq-answer ul li {
  margin-bottom: 8px;
}

/* =============== ONLINE ENQUIRY =============== */
.st-peters-school-enquiry-form {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.st-peters-school-form-card {
  background: #fff;
  padding: 35px;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, .06);
  max-width: 700px;
  width: 100%;
  border: 2px solid #be2226
}

.st-peters-school-form-group {
  margin-bottom: 18px;
}

.st-peters-school-form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #be2226;
}

.st-peters-school-form-group .required {
  color: #be2226
}

.st-peters-school-form-group input,
.st-peters-school-form-group select,
.st-peters-school-form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: border .3s;
  background: #fafafa;
}

.st-peters-school-form-group input:focus,
.st-peters-school-form-group select:focus,
.st-peters-school-form-group textarea:focus {
  border-color: #be2226;
  outline: none;
  background: #fff;
}

.st-peters-school-form-row {
  display: flex;
  gap: 15px;
}

.st-peters-school-form-row .st-peters-school-form-group {
  flex: 1;
}

.st-peters-school-whatsapp-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #25d366, #128C7E);
  color: #fff;
  border: none;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  transition: .3s;
  box-shadow: 0 4px 10px rgba(37, 211, 102, .3);
}

.st-peters-school-whatsapp-btn:hover {
  background: linear-gradient(135deg, #128C7E, #25d366);
  transform: scale(1.02);
}

/* =============== RESPONSIVE =============== */
@media (max-width: 992px) {
    .tabs-sidebar {
        display: block !important;         /* kills any flex/row */
        width: 100% !important;
    }
    .tabs-list {
        display: block !important;         /* forces vertical */
        width: 100% !important;
    }
    .tab-link {
        display: block !important;
        width: 100% !important;
        padding: 28px 40px !important;
        font-size: 1.35rem !important;
        border-radius: 0 !important;
    }
    .tab-link:first-child { border-radius: 20px 20px 0 0 !important; }
    .tab-link:last-child   { border-radius: 0 0 20px 20px !important; }
}

@media (max-width: 768px) {
  .age-row {
    gap: 15px;
  }

  .age-pill {
    min-width: 160px;
    padding: 12px 16px;
  }

  .age-circle {
    width: 38px;
    height: 38px;
    font-size: 1rem;
    margin-right: 12px;
  }
}

@media (max-width: 576px) {
  .age-row {
    flex-direction: column;
    align-items: center;
  }

  .age-pill {
    max-width: 300px;
    width: 100%;
  }

  .st-peters-school-new-apply-row {
    flex-direction: column;
    align-items: center;
  }
}