main {
  max-width: 1000px;     /* Limit the content width */
  margin: 0 auto;       /* Center the content horizontally */
  padding: 20px;        /* Space around the content */
  line-height: 1.6;     /* Improve readability */
  color: #000000;          /* General text color */
}




/* Hero banner: full-width, covers viewport width */
.hero {
  /* Pull full viewport width even if parent is constrained */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  position: relative;

  /* Height controls (viewport-based, with a sane minimum) */
  height: 80vh;
  min-height: 280px;
  max-height: 720px;

  /* Background image (full cover) */
  background-image: url('/assets/images/Canada Building And Flag.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;

  display: flex;
  align-items: center;
  justify-content: center;
}

/* subtle overlay so white text is readable on all parts of the photo */
.hero-overlay {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;

  /* gradient overlay — adjust opacity if you prefer lighter/darker */
  background: linear-gradient(180deg, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.30) 100%);
  padding: 0 20px;
  box-sizing: border-box;
}

/* Hero title styling (large but responsive) */
.hero-title {
  color: #ffffff;
  margin: 0;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;

  /* fluid sizing: min 1.6rem, max 3.4rem */
  font-size: clamp(1.6rem, 4vw, 3.4rem);

  /* make sure title doesn't exceed container width on small devices */
  max-width: 92%;
}




/* Make h2 look like h1 (as requested) */
main h2 {
  width: 100%;
  background: linear-gradient(45deg, #5b5b5bfd, #272727);
  color: #ffffff;
  text-align: left; /* heading text is inside the button - left aligned looks better with chevron */
  border-radius: 5px;
  padding: 0; /* removed vertical padding from heading itself: button controls padding */
  margin-bottom: 12px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
  display: block;
}


main h2 {
  font-size: 1.25rem;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  color: #222;
}


/* Small structural helpers */
.note {
  font-size: 0.95rem;
  color: #333;
  background: #f6f8fb;
  padding: 10px;
  border-radius: 4px;
  margin-bottom: 15px;
  border-left: 4px solid #e1e6f7;
  
}

.check {
  color: #007700;
  font-weight: 700;
  margin-right: 8px;
}


/* Paragraphs */
main p {
  font-size: 1.0rem;
  margin-bottom: 15px;
  text-align:justify; text-justify:inter-word; line-height:1.6; text-align-last:left;
}

  .main-list{
    margin-bottom: 20px;
    margin-left: 20px;
    text-align:justify; text-justify:inter-word; line-height:1.6; text-align-last:left;
  }


  .main-list li {
  margin-bottom: 8px;
}

  .main-link{
  color: #0300a7;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s ease;
  }

  .main-link:hover {
    color: #1c5980;
    text-decoration: underline;
  }


      .note-text {
  color: #161efd !important;  
  
  }

  .red-text {
  color: rgb(116, 0, 0);
}




/* The clickable area inside the heading */
.toggle-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 16px;
  background: linear-gradient(45deg, #5b5b5bfd, #272727); /* same as heading */
  color: #fff;
  border: 0;
  border-radius: 5px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  box-sizing: border-box;
}

/* preserve the heading element size while button handles visuals */
main h2 > .toggle-btn {
  display: flex;
}

/* label text inside the button */
.toggle-btn .btn-label {
  text-align: left;
  flex: 1;
  color: #fff;
  font-size: 1rem;
}

/* chevron wrapper (svg is inserted by JS) */
.toggle-btn .btn-chevron {
  flex: 0 0 22px;
  margin-left: 12px;
  transform: rotate(0deg);
  transition: transform .28s ease;
}

/* ensure the chevron path is visible on dark bg */
.toggle-btn .btn-chevron path {
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Panel that holds the content beneath each heading */
.collapsible-panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.32s cubic-bezier(.2,.8,.2,1);
  margin-bottom: 10px;
  /* ensure panel content uses same spacing as rest of page */
  padding-left: 4px;
}

/* inside the panel keep the original spacing & typography */
.collapsible-panel > * {
  margin-top: 12px;
  margin-bottom: 12px;
}







/* === LINK & CARD BASE === */
.school-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.school-card {
  display: flex;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  max-width: 1200px;
  min-height: 300px;
  margin: 20px auto;
}
.school-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* === MEDIA (25–35%) === */
.school-card__media {
  flex: 0 0 40%;
  overflow: hidden;
  position: relative;
}
.school-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}
.school-card:hover .school-card__media img {
  transform: scale(1.1);
}

/* === CONTENT === */
.school-card__content {
  flex: 1;
  padding: 10px;
  text-align: left;
}
.school-card__content h3 {
  margin: 0 0 8px;
  font-size: 1.6rem;
  font-weight: 600;
  color: #8a1800;
}
.school-location {
  margin: 0 0 12px;
  color: #000000;
  font-size: 0.95rem;
  font-weight: 400;
}

/* Proper horizontal layout */
.school-meta-list {
  display: flex;
  flex-wrap: wrap;         /* Allows wrapping if screen is small */
  gap: 12px 16px;           /* Spacing between pills */
  list-style: none;
  padding: 0;
  margin: 16px 0;
}

/* Style each <li> like a pill */
.school-meta-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgb(239, 239, 239);
  border-radius: 20px;
  font-size: 0.95rem;
  color: #333;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: background 0.3s ease;
}

/* Icon color */
.school-meta-list i {
  color: #000072; /* Match your brand red */
  font-size: 1rem;
}


.school-meta-list li:hover {
  background: #f1f1f1;
}

/* === DESCRIPTION & READ MORE === */
.school-description {
  margin: 0;
  line-height: 1.6;
  font-size: 1rem;
  position: relative;
}
.school-readmore {
  background: none;
  border: none;
  color: #8a1800;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  padding: 0;
  margin-left: 5px;
  transition: color 0.3s;
}
.school-readmore:hover {
  color: #cb2200;
}























    @media (max-width: 599px) {
       .hero {
    height: 40vh;
    min-height: 160px;
    background-position: center 35%; /* shift composition for small screens */
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(0,0,0,0.22) 0%, rgba(0,0,0,0.36) 100%);
  }

  .hero-title {
    font-size: clamp(1.2rem, 6vw, 1.8rem);
  }

  /* If your page main is centered container, ensure no extra horizontal overflow */
  body, html {
    overflow-x: hidden;
  }

  main {
    width: 95%;
    padding: 5px;
  }


    main p {
  font-size: 0.90rem;
  }
  
  main h1 {
    font-size: 1.1rem;
    padding: 8px;
  }

    .toggle-btn {
    padding: 10px 12px;
    font-size: 0.95rem;
  }
  .toggle-btn .btn-label {
    font-size: 0.95rem;
  }
  .toggle-btn .btn-chevron {
    width: 18px;
    height: 18px;
  }

/* optional focus style for accessibility */
.toggle-btn:focus {
  outline: 3px solid rgba(255,255,255,0.12);
  outline-offset: 2px;
}


      .school-card {
    flex-direction: column;
    min-height: auto;
  }

  .school-card__media {
    flex: none;
    width: 100%;
    height: 220px;
  }

  .school-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

    .school-card__content h3 {
    font-size: 1.3rem;
  }

  .school-location {
    font-size: 0.9rem;
  }

  .school-meta-list {
    justify-content: flex-start;
    gap: 8px;
  }

  .school-meta-list li {
    font-size: 0.85rem;
    padding: 2px 10px !important;
  }

  .school-description {
  font-size: 0.65rem !important;
  }

  .school-readmore {
    font-size: 0.9rem;
  }
    }

