body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  box-sizing: border-box;
}

.hero,
body,
html {
  background: none;
}

body,
html {
  overflow-x: hidden;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;

}

/*header*/
.main-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: linear-gradient(to bottom, rgba(0, 94, 173, 0.8), rgba(0, 94, 173, 0.4), transparent);
  transition: all 0.3s ease;

}

.main-header.scrolled {
  background: rgba(0, 94, 174, 1);
  box-shadow: 0 2px 10px rgba(0, 94, 173, 0.2);
}

.nav-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 30px;
   padding: 10px 0;
}


.logo-text {
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  line-height: 1.2;

}

.nav-links {
  display: flex;
  list-style: none;
  gap: 25px;
  position: relative;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 400;
  font-size: 18px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  position: relative;
  padding: 5px 13px;

}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 0;
  height: 2px;
  background-color: #fff;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links .active {
  border: 1px solid rgba(252, 185, 21, 1);

}

.nav-links .active:hover {
  width: 100%;
  background-color: rgba(252, 185, 21, 1);

}

.nav-icons {
  display: flex;
  gap: 20px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.nav-logo img {
  max-width: 180px;
  height: 150%;
  margin: 0;
  padding: 0;
  text-align: left;
}

.icon-button {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
}

/*hero*/

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}


.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translateX(-50%) translateY(-50%);
  object-fit: cover;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 94, 173, 0.6), rgba(0, 94, 173, 0.2), rgba(0, 94, 173, 0.4));
  z-index: -1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 33.333%;
  height: 100%;
  display: flex;
  align-items: center;
  padding-left: 90px;
  color: white;
}


.hero-content h1 {
  font-size: 6vw;
  font-weight: bold;
  line-height: 1;
}


/*stats*/

.stats-section {
  width: 90%;
  max-width: 1200px;
  margin: -70px auto 0;
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  gap: 25px;
  padding: 0 15px 70px;

}


.stat-block {
  flex: 1;
  padding: 40px 20px 30px;
  text-align: center;
  position: relative;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  
}


.icon-container {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: -30px;
  z-index: 10;
}

.icon {
  width: 40px;
  height: 40px;
  color: white;
}

.number {
  font-size: 64px;
  font-weight: 500;
  line-height: 24px;
  position: relative;
  margin: 40px 0 40px;


}

.yellow {
  background-color: rgba(254, 204, 79, 1);
  color: rgba(0, 94, 174, 1);
}

.gold {
  background-color: rgba(252, 185, 21, 1);
  color: rgba(0, 94, 174, 1);
}

.blue {
  background-color: rgba(0, 94, 174, 1);
  color: white;
}

.blue-dark {
  background-color: rgba(0, 50, 102, 1);
  color: white;
}

.stat-subcolor {
   height: 22px;
  min-height: 22px;
  line-height: 22px;
  font-size: 15px;
 
  width: 100%;
  position: absolute;
  left: 0;
  bottom: 0;
  background: transparent;
  pointer-events: none;
}



.stat-overlay {
  position: absolute;
   box-sizing: border-box;
  bottom: 0;
  left: 0;
  width: 100%;
  
  transition: bottom 0.4s ease;
  


}
.stat-overlay .stat-text {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s ease, opacity 0.5s ease;
 

}
.stat-overlay .stat-subcolor {

  position: relative;

}
.stat-block:hover .stat-overlay .stat-text {
  max-height: 200px; 
  opacity: 1;
}
.stat-block:hover .stat-overlay {
  padding-bottom: 22px;
  transition: padding-bottom 0.4s;
}



@media (max-width: 768px) {
  .stats-section {
    flex-wrap: wrap;
    gap: 40px 15px;
  }

  .stat-block {
    flex: 0 0 calc(50% - 15px);
    max-width: calc(50% - 15px);
  }

  .number {
    font-size: 52px;
  }
}

@media (max-width: 480px) {
  .stats-section {
    flex-direction: column;
  }

  .stat-block {
    flex: 0 0 100%;
    max-width: 100%;
  }
}



/*program-search*/

.program-search-section {
  background-color: rgba(255, 255, 255, 1);
  display: flex;
  flex-direction: row;
  max-width: 1280px;
  margin: 0 auto;
  gap: 50px;
  padding: 40px 20px;


}

.program-search-section img {
  width: 295px;
  height: 255px;
  margin-right: 20px;

}

.search-container {
  display: flex;
  flex-direction: column;

  }


.program-search-section h2 {
  font-size: 36px;
  font-weight: 800;
  color: rgba(0, 94, 174, 1);
  margin-bottom: 10px;
}

.program-search-section p {
  font-size: 18px;
  font-weight: 400;
  color: #003366;
  margin-bottom: 30px;
}

.fade-in-img {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.4,1.6,.6,1);
}

.fade-in-img.visible {
  opacity: 1;
  transform: translateX(0);
}


.search-box {
  display: flex;
  justify-content: center;
  align-items: center;

}

.search-box input {
  padding: 15px;
  width: 100%;
  border: 2px solid rgba(0, 90, 177, 0.6);
  border-radius: 6px 0 0 6px;
  font-size: 16px;
}

.search-box button {
  background-color: rgba(0, 94, 174, 1);
  padding: 15px 20px;
  border: none;
  border-radius: 0 6px 6px 0;
  font-size: 20px;
  cursor: pointer;
}

.filter-tabs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 100px;
  background-color: rgba(254, 204, 79, 1);
  padding: 27px 0;
  color: rgba(0, 94, 174, 1);


}

.filter-tabs a {
  color: rgba(0, 94, 174, 1);
  background-color: rgba(254, 204, 79, 1);
  text-decoration: none;
  font-size: 18px;
  position: relative;
  transition: all 0.3s ease;
  cursor: pointer;
}

.filter-tabs a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -5px;
  height: 2px;
  width: 0;
  background-color: rgba(0, 94, 174, 1);
  transition: all 0.3s ease;
  transform: translateX(-50%);

}

.filter-tabs a:hover::after {
  width: 100%;
}

/*testimonials*/


.moments {
  margin: 0 auto;
  padding: 60px 20px;
  background-image: url(msj.jpg);
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.moments::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8), rgba(255, 181, 48, 0.5));
  z-index: -1;
}

.student-testimonial {
  display: flex;
  flex-direction: row;

  max-width: 750px;
  margin: 0 auto;
  margin-bottom: -123px;
  background-color: white;
  border-radius: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: rgba(0, 94, 174, 1);
  z-index: 10;

}

.student-info {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;


}


.student-quote {
  font-size: 24px;
  position: relative;
  padding: 0px 40px;
  height: 220px; 

}

.student-quote::before {
  content: "“";
  font-size: 48px;
  color: rgba(0, 94, 174, 0.8);
  position: absolute;
  top: 0;
  left: 15px;


}

.student-quote::after {
  content: "”";
  font-size: 48px;
  color: rgba(0, 94, 174, 0.8);
  position: absolute;
  bottom: 0;
  right: 15px;
}
.quote-close {
  font-family: serif;
  font-size: 48px;
  vertical-align: baseline;   
  line-height: 1;
  margin-left: 4px;
  color: rgba(0, 94, 174, 0.8);
  display: inline;
}



.underlined-heading {
  color: rgba(0, 94, 174, 1);

  position: relative;
  padding-bottom: 6px;
  text-align: center;

  font-size: 48px;



}

.underlined-heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 110%;
  height: 2px;
  background-color: rgba(0, 94, 174, 1);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  box-shadow: 0 -1px 1px rgba(0, 0, 0, 0.1);
}



.testimonial-slider {
  padding-top: 10px;
  width: 100%;
  margin: 0 auto;
}


.carousel-cell {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 10px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 25px;

}

.carousel-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-cell-inner {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  overflow: hidden;
  transition: transform 0.3s;
  opacity: 0.7;
}

.carousel-cell.is-selected {
  margin-top: 0px;
}

.carousel-cell.is-selected .carousel-cell-inner {
  width: 340px;
  transform: scale(1.5);
  opacity: 1;
}

.student-card {

  margin: 0 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);

}

.student-card img {
  width: 400px;
  height: auto;
  object-fit: cover;

}

.student-name {
  padding: 0 40px;
}


.flickity-page-dots .dot {
  background: rgba(0, 94, 174, 0.5);
}

.flickity-page-dots .dot.is-selected {
  background: #ffca28;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .carousel-cell {
    width: 220px;
    margin-right: 15px;
  }

  .student-quote {
    font-size: 20px;
    padding: 0 20px;
  }

  .student-info {
    padding: 20px;
    max-width: 90%;
  }

  .student-testimonial {
    flex-direction: column;
    gap: 20px;
  }

  .cta-button-testimonial {
    align-self: center;
  }
}


/*news-events*/

.news-events-section {
  background-color: rgba(255, 181, 48, 0.7);
  padding-top: 120px;
  padding-bottom: 60px;
}

.news-events-container {
  display: flex;
  justify-content: center;
  gap: 40px;
}

.news-container {
  display: flex;
  gap: 20px;

}

.news-item {
  background-color: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;

}

.news-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.small-news-column {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  gap: 10px;

}

.event-column {
  
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.main-news {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  max-width: 335px;
  max-height: 550px;

}

.secondary-news {

  display: flex;
  flex-direction: column;
  position: relative;
  background-image: url(jim-scott.jpg);
  background-size: cover;
  background-position: center;
  height: 265px;
  width: 265px;
  border: white 2px solid;


}


.secondary-news:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.secondary-news-2 {
  background-image: url(evan-and-kyle-beer-3.jpg);
}

.news-image {
  width: 100%;
  height: 350px;
  object-fit: cover;

}

.news-content {
  padding: 15px 20px;
}

.secondary-news-content-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  color: white;
  text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.8);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
  padding: 10px 20px;
}


.news-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 28px;
  margin-bottom: 10px;
  color: rgba(17, 24, 39, 1);

}

.news-title-sm {
  font-size: 14px;
  font-weight: bold;
  padding-right: 10px;
  color: white;


}

.news-date-sm {

  font-size: 10px;
  font-weight: 400;
  margin-bottom: 10px;
  color: white;
}

.news-date {
  color: #666;
  font-size: 10px;
  font-weight: 400;
  margin-bottom: 10px;
}


.news-desc {
  line-height: 1.6;
  margin-bottom: 15px;
  font-size: 10px;
}


.event-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  
}

.event-column-title {
  font-size: 36px;
  font-weight: 700;
  color: #003366;
  margin: 0;


}

.event-card {
  background-color: white;
border-radius: 20px;
  display: flex;
  padding: 12px;
  align-items: center;
  color: white;
  max-width: 100%;
}
.event-content{
  padding-right: 20px;
  margin-left: 10px;
}


.event-meta {
  color: #666;
  font-size: 12px;
   margin-bottom: 5px;
  padding-bottom: 10px;

}

.event-title {
  font-size: 16px;
  font-weight: 600px;
  line-height: 24px;
  
  color: #222;
 
}
.event-image img {
  width: 90px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
 
}
.view-button {
  background-color: rgba(0, 94, 174, 1);
  color: white;
  border: none;
  border-radius: 15px;
  padding: 10px 33px;
  font-size: 16px;
  font-weight: 400;
  cursor: pointer;
  transition: background-color 0.3s;
  max-width: 195px;
  text-transform: uppercase;
}

.view-button:hover {
  background-color: #FFA500;
}



@media (max-width: 768px) {
  .event-card {
    flex-direction: column;
  }

  .event-image {
    height: 200px;
    max-width: none;
  }
}




@media (max-width: 768px) {
  .news-container {
    grid-template-columns: 1fr;
  }

  .main-news {
    grid-column: auto;
    grid-row: auto;
  }

  .events-column {
    grid-column: auto;
  }
}

/*social*/

.social-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 20px;
  align-items: stretch;

}

.explore-virtually {
  grid-column: 1;
  grid-row: 1 / span 2;
  background: rgba(0, 94, 174, 1);
  border-radius: 5px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  padding: 20px 30px;

}

.explore-virtually h2 {
  font-size: 40px;
  font-weight: 700;
  color: white;
  margin-bottom: 10px;
}

.explore-virtually p {
  font-size: 16px;
  font-weight: 400;
  line-height: 28px;
  color: white;
  margin-bottom: 20px;
}

.follow-us {
  font-size: 24px;
  font-weight: 700;
  color: rgba(254, 204, 79, 1);
  margin-bottom: 10px;
}


.grid-photo-wrapper {
  grid-column: 2 / span 3;
  grid-row: 1 / span 2;

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 200px;
  gap: 20px;
}


.grid-item-large {
  grid-row: span 2;
}



.social-icons img {
  display: inline-block;
  margin: 0 5px;
  width: 36px;
  height: 36px;
  text-align: center;
  line-height: 36px;
  font-size: 16px;
}

.social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 23px;
  padding-top: 20px;
}

.grid-item {
  position: relative;
  overflow: hidden;
  border-radius: 5px;
 
}




.post-block {
  display: flex;
  align-items: stretch;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.post-content {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px 10px;
}

.post-title {
  margin: 0 0 10px;
  font-size: 22px;
  color: #102854;
}

.post-text {
  flex: 1;
  margin: 0 0 15px;
  font-size: 11px;
  line-height: 1.5;
  color: rgba(17, 24, 39, 1);

}

.post-counters {
  display: flex;
  gap: 10px;
}

.post-counters .likes,
.post-counters .comments {
  font-size: 12px;
  color: rgba(31, 41, 55, 1);

}


.post-image {

  flex: 0 0 120px;
  overflow: hidden;
  margin: 10px 5px;
  border-radius: 8px;
}

.post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


@media (max-width: 768px) {
  .post-block {
    flex-direction: column-reverse;
  }

  .post-image {
    flex: 1;
    width: 100%;
    height: 200px;
  }

  .post-content {
    padding: 15px;
  }
}

.grid-item.stack {

  grid-row: span 3;
  display: grid;

  grid-template-rows: 1fr 1fr;
  gap: 20px;
}


.grid-item .overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0; 
  padding: 8px 12px 8px 12px;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  background: linear-gradient(
    0deg,
    rgba(0, 51, 102, 0.85) 0%,
    rgba(0, 51, 102, 0.60) 40%,
    rgba(0, 45, 114, 0.0) 100%
  );
  
  align-items: center;
  min-height: 36px;
}


.grid-item .overlay span {
  color: #fff;
  font-size: 14px;
  line-height: 1;
}

.grid-item .overlay .like-count {
  color: white !important;
}
.like-count img {
  width: 15px;
  height: 13px;
  margin-right: 5px;
}
.like-count {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #fff !important;
  font-size: 15px;
  background: transparent;
  margin: 0;
  padding: 0;
}
.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 56px;
  height: 56px;
  transform: translate(-50%, -50%);
  z-index: 2;
  opacity: 1;
  pointer-events: none;
  
}
.grid-item img:not(.play-icon):not(.like-count) {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;

}


@media (max-width: 992px) {
  .social-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .explore-virtually {
    grid-column: span 2;
    grid-row: auto;
  }

  .grid-photo-wrapper {
    grid-column: span 2;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .social-grid {
    grid-template-columns: 1fr;
  }

  .explore-virtually,
  .grid-photo-wrapper {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }
}


/*footer-cta*/

.footer-cta {
  background-image: url('TNH_elements2.jpg');
  background-size: cover;
  color: white;
  text-align: right;
  padding-top: 40px;
  animation: fadeIn 3.5s ease-out;
  background-attachment: fixed;
  background-position: center;

}



.footer-cta-content {
  position: relative;
  overflow: hidden;

  margin-left: auto;

  height: 500px;

}

.footer-cta-title {
  font-size: 34px;
  font-weight: 500;
  line-height: 72px;
  margin-bottom: 20px;
  color: rgba(0, 90, 177, 1);

  text-align: center;
  padding-left: 20px;
  padding-top: 100px;
  line-height: normal;

}

.footer-cta-text {
  font-size: 14px;
  font-weight: 500;
  line-height: 12px;
  margin-bottom: 30px;
  color: rgba(0, 90, 177, 1);
  text-transform: uppercase;
}

.cta-buttons {
  padding-top: 50px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;

}

.cta-button {
  display: inline-block;
  padding: 12px 30px;
  background-color: transparent;
  color: rgba(0, 90, 177, 1);
  text-decoration: none;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 14px;
  border: 1px solid rgba(0, 90, 177, 1);
  border-radius: 20px;
  transition: all 0.3s ease;
  text-align: center;

}

.cta-button i {
  margin-right: 5px;
}

.cta-button:hover {
  background-color: rgba(0, 90, 177, 1);
  color: white;
}

.footer-cta-image {

  background-repeat: repeat-x;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  margin-bottom: -10px;
}


/*footer*/
.footer {
  background-color: #093972;
  padding: 20px;
  margin-top: -10px;
  padding-top: 0;
  

}

.footer-address {
  color: white;
}

.footer-social-icons {
  display: flex;
  flex-direction: row;
  gap: 30px;
  padding-top: 10px;

}

.social-icon {
  display: flex;
  flex-direction: row;
  gap: 10px;
  width: 100%;
  color: white !important;
  text-decoration: none;
}

.footer-content {
  display: flex;
  text-decoration: none;
  color: white;
  justify-content: space-between;
  padding: 20px;
  gap: 10px;
}

.footer-column {
  gap: 0px;
}

.footer-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}