:root {
  --navy: #00487d;
  --sky: #ecf4f8;
  --orange: #f15a22;
  font-family: Montserrat;
  --text-margin: 10%;
  --element-gap: 10ch;
}

/* ========== homepage text styles ========== */

.p-text-container {
  margin: 5ch auto 5ch 0;
  padding: 0 1rem;
}

.p-text {
  max-width: 110ch;
  width: 100%;
  box-sizing: border-box;
  height: auto;
  margin: 25px auto;
  padding: 20px 0;
  font-family: Montserrat;
  font-size: 18px;
  font-weight: 500;
  font-stretch: normal;
  font-style: normal;
  line-height: 1.75;
  letter-spacing: normal;
  text-align: center;
  color: var(--navy);
}

.subheader {
  display: block;
  margin: 80px auto 20px;
  padding: 0 1%;
  font-family: Montserrat;
  font-size: 45px;
  font-weight: 800;
  font-stretch: normal;
  font-style: normal;
  line-height: 1.16;
  letter-spacing: normal;
  text-align: center;
  color: var(--navy);
}

.subheader-text1 {
  color: var(--orange);
}

.subheader-text2 {
  padding-top: 20px;  
  padding-bottom: 20px;
  text-align: center;
}

.subheader-text2:first-child {
  padding-top: 0;
}

/* ========== homepage header styles ========== */

.plane-img-container {
  position: relative;
  overflow: visible;
  margin-right: 60px;
  margin-top: -50px;
}

.plane-img--desktop {
  position: relative;
  bottom: -40px;
}

.plane-img--mobile {
  display: none;
  position: relative;
  bottom: -40px;
}



.title-container {
  background: var(--navy);
  background-image: url('/static/img/artboard-4@3x.png');
  background-size: cover;
  background-position: center;
  max-width: 2789px; /*exact maxwidth of the image in px */
  align-items: center;
  justify-content: center;
  font-family: Montserrat;
  font-size: 40px;
  font-weight: 800;
  font-stretch: normal;
  font-style: normal;
  line-height: 1;
  letter-spacing: normal;
  text-align: left;
  color: #fff;
  margin-right: 60px;
  padding-top: 20px;
  border-radius: 0 0 50px 0;
}
  
.title {
  margin: 0 20% 0 0;
  padding-top: 2rem;
}

.text-container {
  padding: 10px var(--text-margin) 2rem var(--text-margin);
  
}

.title-text1 {
  display: inline;
  font-size: 30px;
  font-weight: 400;
  margin-bottom: 2rem;
  color: var(--orange);
  font-weight: bold;
}

.title-text2 {
  padding-top: 0px;
  display: inline;
  font-size: 30px;
  font-weight: 400;
  margin: 0;
  color: #00a1ed;
}

.search-schools {
  display: block;
  width: fit-content;
  background: var(--orange);
  color: #ffffff;
  border: none;
  border-radius: 9999px;
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  margin: 1rem 0 0 auto;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.search-schools:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

@media (max-width: 800px) {
  .plane-img--desktop {
    display: none;
  }
  .plane-img--mobile {
    display: block;
  }
  .title-container {
    margin-left: 0;
    margin-right: 0;
  }
  .plane-img-container {
    margin-left: 0;
    margin-right: 0;
  }
}
/* ========== card styles ========== */

.card-container {
  background: #d6e8f0;
  background-image: url('/static/img/artboard-4@3x.png');
  background-size: cover;
  background-position: center;
  display: block;
  margin-left: 60px;
  margin-bottom: 60px;
  border-top-left-radius: 50px;
  border-bottom-left-radius: 50px;
  padding: 20px 5% 40px 5%;
}

.card-container .grid {
  width: 100%;
  box-sizing: border-box;
}

.cards-responsive-grid {
  display: grid;
  grid-template-columns: 1fr;
  column-gap: 5rem;
  row-gap: 2rem;
  width: 100%;
  box-sizing: border-box;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  justify-items: center;
}



.card {
  background: var(--navy);
  border-radius: 40px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 25px 50px;
  margin: 0;
  color: white;
  width: 525px;
  height: 400px;
  box-sizing: border-box;
  font-size: 14px;
  display: flex;
  flex-direction: column;
}

.card .button {
  margin-top: auto;
  flex-shrink: 0;
  align-self: center;
  padding: 1% 5%;
}

.card-title {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.02em; 
  color: white;
  margin-top: 1rem;
  margin-bottom: 0.6rem;
}

.card-header {
  width: 100%;
  height: auto;
  max-width: 56rem;
  margin: 0 auto 32px;
  padding: clamp(20px, 4%, 50px);
  padding-bottom: 0;
  font-size: clamp(24px, 3.5vw, 45px);
  font-weight: 800;
  font-stretch: normal;
  font-style: normal;
  line-height: 1.16;
  letter-spacing: normal;
  text-align: center;
  color: #00487d;
  box-sizing: border-box;
}

.card-subheader {
  width: 100%;
  max-width: 50rem;
  height: auto;
  margin: 0 auto 32px;
  padding: clamp(20px, 4%, 50px);
  padding-bottom: 0;
  padding-top: 0;
  font-size: 24px;
  font-weight: 400;
  font-stretch: normal;
  font-style: normal;
  line-height: 1.16;
  letter-spacing: normal;
  text-align: center;
  color: #00487d;
  box-sizing: border-box;
}

.card-text {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  font-stretch: normal;
  font-style: normal;
  line-height: 1.5;
  letter-spacing: normal;
  color: #ffffff;
  overflow-wrap: normal;
  word-break: normal;
  margin-left: auto;
  margin-right: auto;
  flex: 1 1 auto;
  min-height: 0;
}

.card-img {
  display: block;
  height: 200px;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 600px) {
  .card-container {
    margin-left: 0;
    margin-right: 0;
    
  }

  .card {
    width: 400px;
    height: 450px;
  }
}

@media (min-width: 1100px) {
  .cards-responsive-grid {
    grid-template-columns: repeat(2, minmax(0, 500px));
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
  }
  .card-container {
    margin-left: 0;
  }
}

@media (min-width: 1200px) {
  .card-container {
    margin-left: 60px;
  }
  .cards-responsive-grid {
    grid-template-columns: repeat(2, minmax(0, 500px));
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
  }
}

.icon-container {
  background-size: cover;
  background-position: center;
  border-radius: 0 0 20px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  margin: -25px auto 1rem auto;
  width: 65%;
}

.icon-badge {
  width: 80px;
  height: 80px;
  display: block;
  position: relative;
  object-fit: contain;
}

.button {
  background: white;
  color: var(--navy);
  border: none;
  border-radius: 50px;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-weight: bold;
  width: fit-content;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  margin-top: 2rem;
}

.news-container {
  margin-bottom: 40px;
}

/* Same behavior as .cards-responsive-grid, but 3 columns on large screens */
.news-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  column-gap: 2rem;
  row-gap: 2rem;
  width: 100%;
  box-sizing: border-box;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  justify-items: center;
}

@media (min-width: 1000px) {
  .news-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 500px));
    justify-content: center;
    max-width: 1100px;
  }
}

@media (min-width: 1200px) {
  .news-cards-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: min(1400px, calc(100% - 2rem));
    justify-content: center;
  }
}

.news-container .news-cards-grid > .card {
  width: 400px;
  max-width: none;
  min-width: 0;
}

.news-container .card {
  height: auto;
  min-height: 450px;
  overflow: hidden;
}

.news-container .card .card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center top;
  flex-shrink: 0;
  display: block;
  border-radius: 30px 30px 0 0;
}

.news-container .card .card-title {
  padding: 15px !important;
  flex-shrink: 0;
}

/* ========== accordion styles ========== */

.accordion {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.accordion .item {
  background: #ffffff;
  border-radius: 20px;
  margin-bottom: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.accordion .item.open {
  border-color: var(--navy);
  box-shadow: 0 4px 12px rgba(0, 72, 125, 0.1);
  border-radius: 20px;
}

.accordion .item-header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px;
  position: relative;
  cursor: pointer;
  background: #ecf4f8;
  transition: background 0.2s ease;
}

.accordion .item-header:hover {
  background: #f3f4f6;
}

.accordion .item.open .item-header {
  background: var(--navy);
}

.accordion .item-title {
  width: 100%;
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  font-family: Montserrat;
  text-align: center;
}

.accordion .item.open .item-title {
  text-align: center;
  color: var(--orange);
}

.accordion .btn-group {
  display: flex;
  gap: 8px;
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
}

.accordion .icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #d1d5db;
  background: #ffffff;
  color: var(--navy);
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  padding: 0;
  line-height: 1;
}

.accordion .icon-btn:hover {
  background: var(--navy);
  color: #ffffff;
  border-color: var(--navy);
}

.accordion .item:not(.open) .btn-minus {
  display: none;
}

.accordion .item.open .btn-plus {
  display: none;
}

.accordion .item.open .icon-btn {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--navy);
}

.accordion .item-body {
  text-align: center;
  background-color: var(--navy);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.accordion .item.open .item-body {
  max-height: 1000px;
}

.accordion .item-body-inner {
  padding: 4px 24px 24px 24px;
  margin: 4px 5% 0 5%;
}

.accordion .item-body-inner p {
  color: white;
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 16px 0;
  padding: 0;
  text-align: center;
}

.accordion .item-body-inner ul {
  margin: 16px 0 16px 20px;
  padding: 0;
  color: var(--navy);
}

.accordion .item-body-inner li {
  margin-bottom: 8px;
  line-height: 1.5;
}

.accordion .learn-more {
  display: inline-block;
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
  margin-top: 8px;
  transition: color 0.2s ease;
}

.accordion .learn-more:hover {
  color: var(--sky);
}

/* ========== homepage review carousel ========== */

#home-review-carousel {
  animation: home-review-banner-in 0.65s ease-out both;
}

@keyframes home-review-banner-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.home-review-stars {
  animation: home-review-stars-in 0.55s ease 0.1s both;
}

@keyframes home-review-stars-in {
  from {
    opacity: 0;
    transform: scale(0.92);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.home-review-fade {
  transition: opacity 0.4s ease;
}

.home-review-fade.is-out {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  #home-review-carousel {
    animation: none;
  }

  .home-review-stars {
    animation: none;
  }

  .home-review-fade {
    transition: none;
  }
}