* {
      box-sizing: border-box;
    }
    body {
      margin: 0;
       font-family: 'Montserrat', sans-serif;
      background-color: #f4f4f4;
    }
    .school-partners-container {
      display: flex;
      min-height: 100vh;
    }
        /*---------------------------------*/

    .sidebar {
      width: 280px;
      background-color: #000038;
      color: white;
      padding: 30px 20px;
      position: sticky;
      top: 0;
      height: 100vh;
      overflow-y: auto;
    }
    .sidebar h2 {
      font-size: 22px;
      margin-bottom: 30px;
      text-transform: uppercase;
    }
    .sidebar ul {
      list-style: none;
      padding: 0;
    }
    .sidebar ul li {
      margin-bottom: 15px;
      font-size: .9rem;
      cursor: pointer;
      padding: 10px;
      border-radius: 5px;
      transition: background 0.3s;
    }
    .sidebar ul li:hover,
    .sidebar ul li.active {
      background-color: #ff6a00;
    }
    .content-area {
      flex: 1;
      padding: 40px;
    }
    .section {
      display: none;
      animation: fadeIn 0.6s ease;
    }
    .section.active {
      display: block;
    }
    @keyframes fadeIn {
      from {opacity: 0;}
      to {opacity: 1;}
    }

    .section h3 {
      font-size: 28px;
      margin-bottom: 15px;
      color: #000038;
    }

    .section p {
      font-size: 17px;
      line-height: 1.8;
    }
    /*-------------media query-----------------*/
    @media (max-width: 1024px) {
  .sidebar {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    background: #43092d; /* magenda */
    font-weight: 600;
    overflow-x: auto;
    white-space: nowrap;
    padding: 12px 0;
    display: flex;
    justify-content: flex-start;
    z-index: 1000;
  }

  .sidebar h2 {
    display: none; /* hide the heading to save space */
  }

  .sidebar ul {
    display: flex;
    flex-direction: row;
    gap: 12px;
    margin: 0;
    padding: 0 15px;
  }

  .sidebar ul li {
    margin: 0;
    display: inline-block;
  }

  .sidebar ul li {
    font-size: 0.9rem;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 6px;
    transition: background 0.3s ease;
    white-space: nowrap;
    color: white;
  }

  .sidebar ul li:hover,
  .sidebar ul li.active {
    background-color: #ff6a00; /* orange highlight */
    color: white;
  }
}
 @media (max-width: 1024px) {
      .school-partners-container {
        flex-direction: column;
      }
      .sidebar {
        width: 100%;
        height: auto;
        position: relative;
      }
    }

/*-----------------------HOLA AMIGO--------------------*/
    /* Hello Section Layout */
.hello-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  background: linear-gradient(135deg, #f8f9fc, #ffffff);
  padding: 50px 30px;
  border-left: 6px solid #000038;
  border-radius: 12px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
}

/* Left Content */
.hello-content {
  flex: 1;
  min-width: 280px;
}

.section-heading {
  font-size: 2.2rem;
  color: #000038;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
}

.section-heading::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #ff6a00, #000038);
}

.section-intro {
  font-size: 1.1rem;
  color: #333;
  line-height: 1.8;
  margin-bottom: 25px;
}

.section-intro span {
  color: #000038;
  font-weight: 600;
}

.hello-quote {
  background-color: #f1f1f1;
  padding: 18px 20px;
  border-left: 4px solid #ff6a00;
  margin-bottom: 20px;
  font-style: italic;
  color: #555;
}

.hello-quote span {
  display: block;
  margin-top: 10px;
  font-size: 0.95rem;
  color: #000;
}

.hello-highlights {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
  padding: 0;
}

.hello-highlights li {
  background-color: #000038;
  color: #fff;
  padding: 12px 20px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  flex: 1 1 150px;
  text-align: center;
}

.hello-cta-buttons {
  display: flex;
  gap: 15px;
}

.cta-button {
  background-color: #ff6a00;
  color: #fff;
  padding: 12px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}

.cta-button:hover {
  background-color: #e69500;
  color: blue;
}

.cta-button.secondary {
  background-color: transparent;
  border: 2px solid #000038;
  color: #000038;
}

.cta-button.secondary:hover {
  background-color: #000038;
  color: #fff;
}

/* Right Visual */
.hello-visual {
  flex: 1;
  min-width: 280px;
  text-align: center;
}

.hello-visual img {
  max-width: 100%;
  height: auto;
}
/* Responsive adjustments */
@media (max-width: 1024px) {
  .hello-section {
    flex-direction: column;
    padding: 40px 20px;
    gap: 30px;
  }

  .hello-content,
  .hello-visual {
    min-width: 100%;
    text-align: center;
  }

  .hello-content {
    order: 2; /* if you want text below image */
  }

  .hello-visual {
    order: 1; /* image on top */
  }

  .section-heading {
    font-size: 1.8rem;
  }

  .hello-highlights {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .hello-section {
    padding: 30px 15px;
    gap: 20px;
  }

  .section-heading {
    font-size: 1.6rem;
  }

  .hello-intro {
    font-size: 1rem;
  }

  .hello-highlights li {
    flex: 1 1 100%;
    font-size: 0.9rem;
  }

  .cta-button {
    width: 100%;
    text-align: center;
  }

  .hello-cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
}


  /*--------------------admissions express--------------------------*/
    .section-highlight {
    padding: 60px 20px;
    border-radius: 12px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.02);
    margin-bottom: 60px;
    margin-top: -2vw;
}

.section-title-pop {
  font-size: 2.5rem;
  color: #000038;
  text-transform: uppercase;
  margin-bottom: 20px;
  position: relative;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
}

.section-title-pop::after {
  content: '';
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #ff6a00, #000038);
  position: absolute;
  bottom: -10px;
  left: 0;
}

.section-intro {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 30px;
  font-family: 'Montserrat', sans-serif;
}

.section-block {
  margin-bottom: 40px;
}

.section-block h4 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #000038;
  font-family: 'Montserrat', sans-serif;
}

.section-block p,
.section-block ul {
  font-size: 1rem;
  color: #444;
  line-height: 1.7;
  font-family: 'Montserrat', sans-serif;
}

.section-block ul {
  padding-left: 20px;
}

.section-block li {
  margin-bottom: 10px;
}

.cta-contact {
  background-color: #fff;
  border-left: 4px solid #ff6f00;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
/*------STEP ONE: BEGIN YOUR JOURNEY----------*/
.kickstart-section {
  background: linear-gradient(135deg, #1a237e 0%, #ff6a00 100%);
  color: #fff;
  padding: 60px 40px;
  border-radius: 15px;
  box-shadow: 0 12px 35px rgba(255, 106, 0, 0.4);
  font-family: 'Montserrat', sans-serif;
  max-width: 1600px;
  margin: 0 auto;
}

.kickstart-title {
    color: white !important;
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: 2px;
  margin-bottom: 0.2em;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.kickstart-subtitle {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #ffde7d;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.4);
}

.kickstart-intro {
  font-size: 1.1rem;
  margin-bottom: 40px;
  max-width: 720px;
  line-height: 1.6;
  font-weight: 500;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.kickstart-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(200px,1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.card {
  background: rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 25px 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(255,106,0,0.7);
  background: rgba(255,255,255,0.25);
}

.icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,0.3));
}

.card h4 {
  margin-bottom: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
}

.card p {
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.5;
  color: #ffe6b3;
}

.kickstart-info h4 {
  font-weight: 700;
  font-size: 1.4rem;
  margin-top: 25px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
}

.kickstart-info p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 15px;
  max-width: 800px;
  color: #fff8e1;
  font-weight: 500;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.btn-enquire {
  display: inline-block;
  background: #fff;
  color: #ff6a00;
  font-weight: 700;
  padding: 14px 36px;
  border-radius: 50px;
  font-size: 1.1rem;
  margin-top: 20px;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(255, 106, 0, 0.5);
  transition: background 0.3s ease, color 0.3s ease;
}

.btn-enquire:hover {
  background: #ff6a00;
  color: #fff;
  box-shadow: 0 8px 30px rgba(255, 106, 0, 0.9);
}
/*--------------------campus tour-----------------------*/
/* ===== Campus Tours Section ===== */
.campus-tours {
  padding: 60px 20px;
}

.tours-heading {
  text-align: center;
  margin-bottom: 40px;
}

.campus-tours .section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #000038;
}

.campus-tours .highlight {
  color: #f26722;
  position: relative;
}

.campus-tours .highlight::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  z-index: -1;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #555;
  max-width: 700px;
  margin: 10px auto 0;
}

/* ===== Gallery Grid ===== */
.open-day-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 15px;
}

.gallery-item {
  overflow: hidden;
  border-radius: 12px;
  position: relative;
}

.gallery-item img {
  width: 100%;
  display: block;
  transition: transform 0.5s ease, filter 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
  filter: brightness(0.9);
}

/* ===== Call-to-Action Button ===== */
.button-container {
  text-align: center; /* Centers horizontally */
  margin-top: 30px; /* Adds spacing from the content above */
}

.btn-primary-tour {
  background: linear-gradient(135deg, #f26722, #ff914d);
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(242, 103, 34, 0.25);
}

.btn-primary-tour:hover {
  background: linear-gradient(135deg, #d6541d, #ff7a33);
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(242, 103, 34, 0.35);
}


/* ===== Responsive Adjustments ===== */
@media (max-width: 768px) {
  .campus-tours .section-title {
    font-size: 2rem;
  }
  .section-subtitle {
    font-size: 1rem;
    padding: 0 15px;
  }
}

@media (max-width: 480px) {
  .campus-tours {
    padding: 40px 15px;
  }
  .open-day-gallery {
    grid-template-columns: 1fr;
  }
}


/**--------------Scholarship section------------------------------*/
.school-discounts {
  padding: 80px 40px;
  background: #fff;
  border-left: 5px solid #000038;
  border-radius: 15px;
  font-family: 'Montserrat', sans-serif;
  box-shadow: 0 4px 12px #00003869;
  color: #000038;
}

.discount-intro {
  max-width: 800px;
  margin-bottom: 50px;
  text-align: left;
}

.discount-intro h2 {
  font-size: 2.4rem;
  margin-bottom: 15px;
  color: #000038;
  position: relative;
  padding-bottom: 10px;
}

.discount-intro h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 70px;
  height: 4px;
  background: linear-gradient(90deg, #ff6a00, #000038);
  border-radius: 3px;
}

.discount-intro p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #444;
}

.discount-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.discount-card {
  background: #fff;
  border-radius: 12px;
  padding: 25px 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 4px 12px #00003869;
  transition: all 0.3s ease;
  cursor: pointer;
}

.discount-card .icon {
  font-size: 2rem;
  color: #ff6a00;
  min-width: 40px;
}

.discount-card h4 {
  margin: 0;
  font-size: 1.05rem;
  color: #000038;
  text-align: left;
}

.discount-card:hover {
  background: linear-gradient(145deg, #000038, #6b90da);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,56,0.15);
  color: white;
}
.discount-card h4:hover{
  color: white;
}


/*--------------inter school------------------*/
#competitions {
  max-width: 1500px;
  margin: 0 auto;
  padding: 30px 20px;
  color: #000038; /* Navy */
  font-family: 'Montserrat', sans-serif;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.07);
  position: relative;
  overflow: hidden;
}

#competitions h3 {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 10px;
  color: #000038;
  letter-spacing: 1.2px;
  z-index: 1;
}

#competitions h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 70px;
  height: 4px;
  background: linear-gradient(90deg, #ff6a00, #000038);
  border-radius: 3px;
  transition: width 0.3s ease;
  z-index: 1;
}

#competitions h3:hover::after {
  width: 100px;
}

#competitions p {
  font-size: 1.15rem;
  margin-bottom: 40px;
  line-height: 1.7;
  color: #222;
  z-index: 1;
  position: relative;
}

.competitions-wrapper {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.competitions-column {
  background: #fdfdfd;
  border-radius: 16px;
  padding: 30px 35px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
  flex: 1 1 350px;
  min-width: 280px;
  transition: box-shadow 0.35s ease, transform 0.35s ease;
  cursor: default;
  position: relative;
  overflow: hidden;
}

.competitions-column:hover {
  box-shadow: 0 18px 40px rgba(255, 127, 0, 0.35);
  transform: translateY(-6px);
}

.competitions-column h4 {
  font-size: 1.65rem;
  color: #000038;
  font-weight: 700;
  margin-bottom: 22px;
  border-bottom: 3px solid #ff6a00;
  padding-bottom: 8px;
  letter-spacing: 0.8px;
  transition: border-color 0.3s ease;
}

.competitions-column:hover h4 {
  border-color: #ffa733;
}

.competitions-column ul {
  list-style: none;
  padding-left: 0;
  font-size: 1.05rem;
  color: #444;
  line-height: 1.6;
}

.competitions-column ul li {
  margin-bottom: 15px;
  position: relative;
  padding-left: 24px;
  transition: color 0.3s ease;
}

.competitions-column ul li::before {
  content: '✔';  /* you can replace this with any symbol or icon */
  position: absolute;
  left: 0;
  top: 2px;
  color: #ff7f00;
  font-weight: bold;
  font-size: 16px;
}

.competitions-column ul li:hover {
  color: #ff7f00;
  font-weight: 600;
}

@media (max-width: 768px) {
  .competitions-wrapper {
    flex-direction: column;
  }
  .competitions-column {
    max-width: 100%;
  }
}
/* Medium screens: tablets and small desktops */
@media (max-width: 1024px) {
  .competitions-wrapper {
    flex-direction: column;
    gap: 30px;
  }

  #competitions {
    padding: 30px 15px;
  }
}

/* Small screens: mobiles */
@media (max-width: 600px) {
  #competitions {
    padding: 20px 10px;
  }

  #competitions h3 {
    font-size: 1.5rem;
    text-align: center;
  }
  #competitions h3::after{
           margin: 0 auto !important;
        left: 43%;
  }
  #competitions p {
    font-size: 1rem;
    text-align: center;
    margin-bottom: 30px;
  }

  .competitions-column {
    min-width: 100%;
    padding: 25px 20px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  }

  .competitions-column h4 {
    font-size: 1.3rem;
    text-align: center;
  }

  .competitions-column ul li {
    font-size: 0.95rem;
    padding-left: 20px;
  }
}

/* Extra small: very narrow devices */
@media (max-width: 400px) {
  #competitions h3 {
    font-size: 1.1rem;
  }
   #competitions h3::after{
        margin: 0 auto !important;
        left: 38%;
  }
  .competitions-column ul li {
    font-size: 0.9rem;
  }
}

/*-*---------next gen section -----------------*/
.next-gen-section {
  padding: 50px 20px;
  color: #000038;
}

.next-gen-section h3 {
  font-size: 2rem;
  color: #000038; /* Navy heading */
  margin-bottom: 10px;
  text-align: left;
  position: relative;
  display: inline-block;
}

.next-gen-section h3::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #ff6a00, #000038);
  margin-top: 5px;
  border-radius: 2px;
}

.next-gen-section p {
  font-size: 1.1rem;
  margin-bottom: 40px;
  max-width: 700px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
}

.flip-card {
  perspective: 1000px;
  transition: transform 0.25s ease;
}

.flip-card:hover {
  transform: scale(1.03); /* slight pop effect */
}

.flip-inner {
  position: relative;
  width: 100%;
  height: 200px;
  transition: transform 0.6s ease;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-inner {
  transform: rotateY(180deg);
}

.flip-front, .flip-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px;
  text-align: center;
  border-radius: 10px;
}

.flip-front {
      background: linear-gradient(145deg, #000038, #6b90da);
    color: white;


  font-weight: bold;
  font-size: .8rem;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.478);
}
.flip-front::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  border-top: 40px solid #000038; /* Orange accent */
  border-left: 40px solid transparent;
}

.flip-back {
  background: #000038;
  color: white;
  transform: rotateY(180deg);
  position: relative;
}

.flip-back::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  border-top: 40px solid #ff7f00; /* Orange accent */
  border-left: 40px solid transparent;
}

.flip-back p {
  font-size: 14px;
  line-height: 1.4;
}
/*------------------empower educators-----------------*/
/* Faculty Section - Walshy Theme */
.faculty-section {
  background: #ffffff;
  padding: 60px 40px;
  border-left: 6px solid #000038; /* Navy accent border */
  border-radius: 15px
}

.faculty-section h3 {
  font-size: 28px;
  font-weight: bold;
  color: #000038;
  text-transform: uppercase;
  padding-bottom: 8px;
  display: inline-block;
}
.faculty-section h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 72px;
  height: 4px;
  background: linear-gradient(90deg, #ff6a00, #000038);
  border-radius: 4px;
}

.faculty-intro {
  font-size: 17px;
  color: #333;
  line-height: 1.7;
  max-width: 900px;
  padding: 15px 10px;
  border-radius: 6px;
  margin-bottom: 1vw;
}


.educator-card-wrapper {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.educator-card {
  width: 250px;
  height: 180px;
  perspective: 1000px;
}

.educator-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.7s ease;
  transform-style: preserve-3d;
}

.educator-card:hover .educator-inner {
  transform: rotateY(180deg);
}

.educator-front, .educator-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  backface-visibility: hidden;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.427);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  text-align: center;
}

/* Front style - white with subtle silver hint */
.educator-front {
     background: linear-gradient(145deg, #000038, #6b90da);
    color: white;

}
.educator-front::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  border-top: 40px solid #000038; /* Orange accent */
  border-left: 40px solid transparent;
}

.educator-front h4 {
  font-size: 16px;
  font-weight: bold;
}

/* Back style - navy with white text and orange corner accent */
.educator-back {
  background: #000038;
  color: white;
  transform: rotateY(180deg);
  position: relative;
}

.educator-back::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  border-top: 40px solid #ff7f00; /* Orange accent */
  border-left: 40px solid transparent;
}

.educator-back p {
  font-size: 14px;
  line-height: 1.4;
}
/*--------------------counsellors connect------------*/
.counsellor-section {
  background: #ffffff;
  padding: 60px 40px;
  border-left: 6px solid #000038; /* Navy accent border */
  border-radius: 15px
}

.counsellor-section h3 {
  font-size: 28px;
  font-weight: bold;
  color: #000038;
  text-transform: uppercase;
  padding-bottom: 8px;
  display: inline-block;
}
.counsellor-section h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 72px;
  height: 4px;
  background: linear-gradient(90deg, #ff6a00, #000038);
  border-radius: 4px;
}

.counsellor-intro {
  font-size: 17px;
  color: #333;
  line-height: 1.7;
  max-width: 900px;
  padding: 15px 10px;
  border-radius: 6px;
  margin-bottom: 1vw;
}

.counselor-card-wrapper {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-top: 20px;
}

.counselor-card {
  width: 250px;
  height: 180px;
  perspective: 1000px;
  cursor: pointer;
}

.counselor-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.7s ease;
  transform-style: preserve-3d;
}

.counselor-card:hover .counselor-inner {
  transform: rotateY(180deg);
}

.counselor-front,
.counselor-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  backface-visibility: hidden;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
}

/* Front style - white with subtle silver hint */
.counselor-front {
      background: linear-gradient(145deg, #000038, #6b90da);
    color: white;

  box-shadow:
    0 0 8px rgba(67, 9, 45, 0.15),
    0 6px 15px rgba(0, 0, 0, 0.15);
}
.counselor-front::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  border-top: 40px solid #000038; /* Orange accent */
  border-left: 40px solid transparent;
} 
.counselor-front h4 {
  font-size: 16px;
  font-weight: bold;
}

/* Back style - navy with white text and orange corner accent */
.counselor-back {
  background: #000038; /* Navy */
  color: white;
  transform: rotateY(180deg);
  position: relative;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 500;
}

.counselor-back::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  border-top: 40px solid #ff7f00; /* Orange accent */
  border-left: 40px solid transparent;
}

.counselor-back p {
    font-size: 14px;
    line-height: 1.4;
}
@media (max-width: 768px) {
  .counselor-card-wrapper {
    justify-content: center;
  }
}


/*--------------meet the team *----------------------*/
.team-section {
  padding: 70px 20px;
  background: #fff;
  color: #000038; /* Navy */
  border-radius: 25px;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
}

.team-title {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: #43092d; /* Magenta */
  position: relative;
  display: inline-block;
  padding-bottom: 6px;
}

.team-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 72px;
  height: 4px;
  background: linear-gradient(90deg, #ff6a00, #000038);
  border-radius: 4px;
}

.team-intro {
  font-size: 1.1rem;
  max-width: 720px;
  margin: 0 auto 50px;
  color: #333;
}

.team-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  margin-top: 40px;
}

.team-card {
      background: #fff;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    border-top: 5px solid #000038;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0, 0, 56, 0.2);
}

.team-photo {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  /* Removed border-bottom */
}

.team-card h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #000038;
  margin: 10px 0 15px 0; /* enough space below underline */
  position: relative;
  text-align: center;
}
.fa-envelope{
  color: #1a237e;
  margin-right: 3px;
}
/* centered underline */
.team-card h4::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 28px;
  transform: translateX(-50%);
  bottom: -5px; /* 5px gap below text */
  width: 50px; /* underline length (adjust as needed) */
  height: 3px;
  background: linear-gradient(90deg, #ff6a00, #000038);
  border-radius: 2px;
}

.team-card .role {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 10px;
  line-height: 1.5;
}

.team-card .email {
  display: inline-block;
  font-size: 0.9rem;
  color: #ff6a00;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.team-card .email:hover {
  color: #000038;
  text-decoration: underline;
}
.partner-impact {
  /* margin-top: 60px;*/
    text-align: center;
    background: #000038;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-top: 5px solid #ff6a00;
    max-width: 1000px;
    margin: 50px auto
}

.partner-impact h3 {
  font-size: 24px;
  color: #fff;
  margin-bottom: 20px;
  position: relative;
  text-transform: uppercase;
}

.partner-impact h3::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
    background: linear-gradient(90deg, #ff6600, #ff9900);

  margin: 10px auto 20px;
  border-radius: 2px;
}

.partner-impact p {
  font-size: 16px;
  line-height: 1.6;
  color: #fff;
  max-width: 800px;
  margin: 0 auto 15px;
}

.partner-impact .email a {
  color: #d6541d;
  font-weight: bold;
  text-decoration: none;
}

.partner-impact .email a:hover {
  text-decoration: underline;
  color: blue;
}

/*-----------------our school partner-----------*/
#partners {
  max-width: 1400px;
  margin: 0 auto;
  padding: 50px 20px;
  text-align: center;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

#partners h3 {
  font-size: 2.4rem;
  font-weight: 800;
  color: #000038;
  margin-bottom: 15px;
  letter-spacing: 1px;
  position: relative;
}

#partners h3::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #ff6a00, #000038);
  border-radius: 2px;
}

#partners p {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #333;
  line-height: 1.6;
}

.partners-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 25px;
}

.partner-card {
  background: #fff;
  border-radius: 12px;
  padding: 15px 20px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-width: 180px;
  flex: 1 1 calc(20% - 20px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-card img {
  max-width: 150%;
  max-height: 90px;
  object-fit: contain;
}

.partner-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(255, 106, 0, 0.25);
}

/* Responsive */
@media (max-width: 900px) {
  .partner-card {
    flex: 1 1 calc(33.33% - 20px);
  }
}

@media (max-width: 600px) {
  .partner-card {
    flex: 1 1 calc(50% - 15px);
  }
}

@media (max-width: 400px) {
  .partner-card {
    flex: 1 1 100%;
  }
}


/*---------------media queries------------------------*/

/*-------------------------------------------*/

    /* Gallery styling */
    .gallery {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 20px;
      margin-top: 30px;
    }

    .gallery img {
      width: 100%;
      border-radius: 8px;
      transition: transform 0.3s ease;
    }

    .gallery img:hover {
      transform: scale(1.05);
    }

   