* {
      box-sizing: border-box;
    }
    body {
      margin: 0;
       font-family: 'Montserrat', sans-serif;
      background-color: #f4f4f4;
    }
    .school-partners-container {
      display: flex;
      min-height: 100vh;
    }
        /*---------------------------------*/
    #content-area {
       flex: 1;
        padding: 40px;
        margin-left: 40px; /* creates space between sidebar and content */
    }
    .sidebar {
      width: 280px;
      background-color: #000038;
      color: white;
      padding: 30px 20px;
      position: sticky;
      top: 0;
      height: 100vh;
      overflow-y: auto;
    }
    .sidebar h2 {
      font-size: 20px;
      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;
      }
    }
/*------------------------------------------*/
.welcome-content {
  display: flex;
  flex-wrap: nowrap; /* text left, image right */
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  padding: 40px 30px;
  border-left: 6px solid #000038;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

/* Heading with gradient text */
.gradient-heading {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(90deg, #ff6a00, #000038);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 15px;
  line-height: 1.2;
  animation: fadeInUp 1s ease forwards;
}

/* Gradient underline */
.underline {
  width: 140px;
  height: 4px;
  background: linear-gradient(90deg, #000038, #ff6a00) ;
  border-radius: 2px;
  margin-bottom: 25px;
}

/* Paragraph styling */
.welcome-paragraph {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #333;
  margin-bottom: 30px;
  animation: fadeInUp 1.2s ease forwards;
}

/* Buttons container animation */
.welcome-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  animation: fadeInUp 1.4s ease forwards;
}

/* Fade-in animation */
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .gradient-heading {
    font-size: 2.2rem;
  }
  .welcome-paragraph {
    font-size: 1rem;
  }
}

/* Text side */
.welcome-text {
  flex: 1;
  max-width: 600px;
}

/* Image side */
.welcome-image {
  flex: 1;
  display: flex;
  justify-content: flex-end; /* pushes image to right */
}

.welcome-image {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  position: relative; /* for gradient overlay */
}

.welcome-image::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  width: calc(100% + 40px);
  height: calc(100% + 40px);
  background: linear-gradient(135deg, rgba(0,0,56,0.2), rgba(255,102,0,0.05));
  border-radius: 20px;
  z-index: 0; /* behind the image */
  filter: blur(20px);
}

.welcome-image img {
  max-width: 100%;
  border-radius: 15px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.2);
  position: relative; /* above gradient */
  z-index: 1;
  animation: float 4s ease-in-out infinite;
}

/* Floating animation for image */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
}

/* Responsive: stack on mobile */
@media (max-width: 900px) {
  .welcome-content {
    flex-direction: column-reverse;
    text-align: center;
    gap: 30px;
  }
  .welcome-image {
    justify-content: center;
  }
  .welcome-text {
    max-width: 100%;
  }
}

/* Buttons remain the same */
/* Buttons Container */
.welcome-buttons {
  margin-top: 25px;
}

/* Common button styles */
.welcome-buttons .btn {
     display: inline-block;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    width: 60%;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Primary Button - Orange */
.primary-btn {
  background-color: #ff6600;
  color: #fff;
  border: none;
}

.primary-btn:hover {
  background: linear-gradient(90deg, #ff6600, #ff9900);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255,102,0,0.3);
}

/* Secondary Button - Navy */
.secondary-btn {
  background-color: #000038;
  color: #fff;
  border: none;
}

.secondary-btn:hover {
  background: #222244;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,56,0.3);
}

/* Outline button - optional, not used now */
.outline-btn {
  border: 2px solid #ff6600;
  background: transparent;
  color: #ff6600;
}

.outline-btn:hover {
  background: #ff6600;
  color: #fff;
  transform: translateY(-3px);
}
/* Responsive adjustments */
@media (max-width: 900px) {
  .card {
    flex-direction: column-reverse;
    text-align: center;
  }
  .welcome-buttons .btn { margin-bottom: 10px; }
}
/*------------------------------------*/
#admissions {
 /* padding: 50px 30px;*/
/*  background: #fff;
  border-left: 6px solid #ff6600; /* left accent border */
  border-radius: 12px;
 /* box-shadow: 0 10px 30px rgba(0,0,0,0.08);*/
  max-width: 1800px;
  margin: 10px auto;
}

/* Main heading */
#admissions h2 {
  font-size: 2rem;
  text-transform: uppercase;
  color: #000038;
  margin-bottom: 10px;
  position: relative;
}

/* Gradient underline */
#admissions .underline {
  width: 150px;
  height: 4px;
  background: linear-gradient(90deg, #ff6600, #ff9900);
  margin-bottom: 25px;
  border-radius: 2px;
}

/* Subheadings */
#admissions h3 {
  font-size: 1.6rem;
  color: #000038;
  margin-top: 30px;
  margin-bottom: 15px;
}

/* Paragraphs */
#admissions p {
  font-size: 1.1rem;
  color: #333;
  line-height: 1.7;
  margin-bottom: 20px;
}

/* Links */
#admissions a {
  color: #ff6600;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

#admissions a:hover {
  text-decoration: underline;
}

.connect-agent-card {
  background-color: #ffffff; /* white background */
  border-left: 6px solid #000038; /* navy blue left border */
  border-radius: 20px;
  padding: 25px 30px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  margin-top: 40px;
  max-width: 1500px;
}

/* Heading */
.connect-agent-card h3 {
  font-size: 1.8rem;
  color: #000038;
  margin-bottom: 15px;
}

/* Paragraph */
.connect-agent-card p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #333;
}

/* Email link */
.connect-agent-card a {
  color: blue !important; /* built-in blue */
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.connect-agent-card a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 900px) {
  #admissions {
    padding: 40px 20px;
  }
  #admissions h2 {
    font-size: 2.2rem;
  }
  #admissions h3 {
    font-size: 1.4rem;
  }
}
/*------------------------------*/
#network {
  text-align: center;
/*  padding: 50px 20px;*/
}
#network h2 {
  margin-top: 1vw;
  position: relative;
  display: inline-block; /* shrink underline width to text */
  font-size: 2.5rem;
  font-weight: 700;
  color: #000038;
  margin-bottom: 40px;
  text-transform: uppercase;
}

#network h2::after {
  content: "";
  display: block;
  width: 60%; /* size of the underline */
  height: 5px;
  background: linear-gradient(90deg, #ff6600, #ff9900);
  margin: 8px auto 0; /* centers it */
  border-radius: 2px;
}
.network-intro {
  max-width: 750px;
  margin: 0 auto 30px auto;
  font-size: 1.1rem;
  color: #444;
  line-height: 1.6;
}
.country-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 7px; /* add spacing between cards */
}

.country-card {
  position: relative;
  height: 380px;
  background-size: cover;
  background-position: center;
  filter: grayscale(65%);
  overflow: hidden;
  border-radius: 6px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
}

.country-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 12px 25px rgba(0,0,0,0.35);
  filter: grayscale(0%); /* restore full color on hover */
}

/* Always visible country name */
.country-card .title {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  text-shadow: 0 2px 6px rgba(0,0,0,0.8);
}

/* Expanding overlay */
.country-card .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0; /* starts hidden */
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  font-size: 1rem;
  font-weight: 500;
  overflow: hidden;
  transition: height 0.4s ease-in-out;
  z-index: 1; /* sits under the title */
}

.country-card:hover .overlay {
  height: 100%; /* expands upward smoothly */
}

/*-------------------------------------------*/
#representatives {
  padding: 80px 20px;
  text-align: center;
  border-radius: 15px;
}

.section-title {
    box-shadow: 0 10px 15px #00003866;
    padding: 15px 20px;
  font-size: 2rem;
  margin-bottom: 60px;
    border-radius: 10px;
  display: inline-block;
  color: #000038;
  position: relative;
  text-transform: uppercase;
}

.section-title::after {
  content: "";
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, #ff6600, #ff9900);
  display: block;
  margin: 10px auto 0;
  border-radius: 2px;
}

.rep-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

.rep-card {
  width: 300px;
  background: #fff;
  border-bottom: 5px solid #000038;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 25px #00003866;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.rep-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.rep-photo img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  transition: transform 0.3s ease;
}

.rep-card:hover .rep-photo img {
  transform: scale(1.05);
}

.rep-info {
  padding: 20px;
  position: relative;
  text-align: left;
}

.rep-accent {
  position: absolute;
  top: -20px;
  left: -20px;
  width: 100px;
  height: 30px;
  background: linear-gradient(45deg, #000038, #00003869);
  transform: rotate(-15deg);
  border-radius: 5px;
  z-index: 0;
}

.rep-info h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  color: #000038;
  position: relative;
  z-index: 1;
}

.rep-info p {
  margin: 3px 0;
  font-size: 0.9rem;
  color: #555;
  position: relative;
  z-index: 1;
}
.connect-agent {
  margin-top: 60px;
  padding: 40px;
  background: #f9f9f9;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  text-align: center;
}

.connect-agent h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #000038;
}

.connect-agent p {
  font-size: 1.1rem;
  color: #444;
  line-height: 1.6;
  max-width: 850px;
  margin: 0 auto 15px;
}

.connect-agent a {
  color: #ff6600;
  font-weight: bold;
  text-decoration: none;
}

.connect-agent a:hover {
  text-decoration: underline;
}


@media (max-width: 992px) {
  .rep-card {
    width: 45%;
  }
}

@media (max-width: 600px) {
  .rep-card {
    width: 90%;
  }
}
/*--------------------------*/
.agent-resources {
  text-align: center;
  background: #000038;
  color: white;
  padding: 60px 20px;
  border-radius: 16px;
  margin: 50px auto;
  max-width: 900px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.agent-resources h2 {
  font-size: 2.2rem;
  margin-bottom: 15px;
  color: #ff6600; /* Walsh Orange */
}

.agent-resources p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #ddd;
}

.resource-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.resource-btn {
  background: white;
  color: #000038;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.resource-btn:hover {
  background: #ff6600;
  color: white;
  transform: translateY(-3px);
}
