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;
}

.scroll-indicator {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  width: 50px;
  height: 50px;
  background-color: rgba(254, 204, 79, 1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bounce 2s infinite;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.arrow {
  font-size: 32px;
  color: white !important;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(-10px);
  }
}

/*program-search*/

.program-search-section {
  background-color: white;
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 20px 120px 20px;
  display: flex;
  flex-direction: column;

  gap: 20px;


}

.program-search-section h2 {
  font-size: 36px;
  font-weight: 800;
  color: rgba(0, 94, 174, 1);

  margin-bottom: 10px;
  text-align: center;
}


.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: 18px;
  color: rgba(0, 94, 174, 0.6) !important;
  max-width: 850px;



}

.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;
}

.about {
  background-color: white;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;

}

.about p {
  font-size: 24px;
  font-weight: 400;
  color: rgba(0, 94, 174, 1);
  margin-bottom: 10px;
  text-align: center;
  line-height: 40px;

}

.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%;
}



/*statistics*/
.university-statistics {
  background-image: url(stat_image.jpg);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 80px 0px;
  position: relative;
  margin: 0 auto;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;


}

.university-statistics::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 94, 174, 0.6), rgba(0, 94, 174, 0.6), rgba(0, 94, 174, 0.6));
  z-index: -1;
}

.university-statistics h2 {
  font-size: 20px;
  font-weight: 700;
  color: white;
  margin-bottom: 10px;
  text-align: center;
  text-transform: uppercase;
}

.stats-container {
  display: flex;

  max-width: 1280px;
  flex-wrap: wrap;
}

.stat-block {
  display: flex;
  flex-direction: column;
  align-items: center;

  color: white;
  padding: 20px 20px;

  transition: all 0.3s ease;
  max-width: 300px;
}

.number {
  font-size: 54px;
  font-weight: 700;
  margin-bottom: 10px;
  color: rgba(254, 204, 79, 1);

}

.description {
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
  text-align: center;
  color: white;
}

.description::before {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  background-color: white;
  margin-bottom: 10px;
}

.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

}

/*testimonials*/
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background:rgba(0, 94, 174, 1);
  border: none !important;
  color: white;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.5;
  
}
.slider-arrow:hover {
  background: rgba(0, 94, 174, 1);
  opacity: 1;
}
.slider-arrow-prev {
  left: 18px;
}
.slider-arrow-next {
  right: 0;
}
.slider-arrow.disabled,
.slider-arrow:disabled {
  opacity: 0.3;
  pointer-events: none;
  cursor: default;
}
.testimonial-slider-container {
  position: relative;
}
.mount-moments-section {
  position: relative;
  padding: 40px 0;
  background-image: url('msj.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: 0;


}

.background-layer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(246, 226, 127, 0.5);
  z-index: 1;

}

.moments.container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}



.underlined-heading {
  position: relative;
  padding-bottom: 6px;
  text-align: center;
  color: rgba(0, 50, 102, 1);

  font-size: 62px;
  font-weight: 400;


}

.underlined-heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 2px;
  background-color: rgba(0, 50, 102, 1);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  box-shadow: 0 -1px 1px rgba(0, 0, 0, 0.1);
}


.white-box {
  background-color: white;
  border-radius: 20px;
  padding: 20px 60px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.testimonial-slider-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-top: 40px;
  padding-left: 36px;

}

.testimonial-slider {
  display: flex;
  transition: transform 0.5s ease-in-out;
  gap: 60px;
  width: calc(4 * (210px + 60px));
  /* 4 карточки + отступы */
}

.student-card {
  width: 210px;
  height: 328px;
  border-radius: 16px;
  position: relative;
  flex-shrink: 0;
}

.student-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 16px;
}

.testimonial-overlay .testimonial-text {
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;

}

.testimonial-overlay:hover .testimonial-text {
  opacity: 1;
}

.testimonial-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 60, 120, 0.6);
  z-index: 1;
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: 16px;
}

.testimonial-overlay:hover::after {
  opacity: 1;
}

.testimonial-text {
  position: absolute;
  z-index: 2;
  color: white;
  padding: 20px;
  bottom: 0;
  left: 0;
  right: 0;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  transition: opacity 0.4s ease;
}

.testimonial-text h2 {
  margin-top: 16px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

.slider-controls {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.slider-controls .dot {
  width: 10px;
  height: 10px;
  background-color: #0066cc;
  border-radius: 50%;
  margin: 0 6px;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.slider-controls .dot.active {
  opacity: 1;
}

@media (max-width: 768px) {
  .mount-moments-section {
    background-attachment: scroll;
  }

  .underlined-heading {
    font-size: 42px;
  }

  .white-box {
    padding: 20px 30px;
  }

  .testimonial-slider {
    gap: 30px;
    width: calc(4 * (180px + 30px));
  }

  .student-card {
    width: 180px;
    height: 280px;
  }
}

@media (max-width: 480px) {
  .testimonial-slider {
    gap: 20px;
    width: calc(4 * (150px + 20px));
  }

  .student-card {
    width: 150px;
    height: 240px;
  }

  .white-box {
    padding: 15px 20px;
  }
}

/*news-events*/

.news-events-section {
  background-color: rgba(255, 249, 235, 1);
  padding-top: 80px;
  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 {
  grid-column: 3;
  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: 25px;
  padding: 10px 10px;
}

.event-column-title {
  font-size: 36px;
  font-weight: 700;
  color: #003366;
  margin: 0;


}

.event-card {
  background-color: white;
  border-radius: 20px;
  border: 1px solid rgba(0, 94, 174, 1);
  width: 100%;
  max-width: 600px;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  padding: 8px 8px;
}


.event-meta {
  color: #666;
  font-size: 12px;
  padding-top: 8px;
  padding-left: 5px;

}

.event-title {
  font-size: 16px;
  font-weight: 600px;
  line-height: 24px;
  margin-bottom: 20px;
  color: #222;
  padding-top: 20px;
}

.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;
}

.event-image {

  object-fit: cover;

  max-width: 90px;
  height: 100px;
  padding-left: 8px;


}

@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*/


.explore-virtually {
  background-color: white;
  padding: 0px 30px;
  grid-column: 1;

  color: rgba(0, 50, 102, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
 
}

.explore-virtually h2 {
  font-size: 30px;
  font-weight: 700;

  margin: 0 0 10px 0;
  line-height: 1.1;
  text-transform: uppercase;
  padding: 20px 0;
}

.explore-virtually p {
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  padding: 45px 0;
  
}

.explore-virtually hr {
  border: none;
  height: 5px;
  background-color: rgba(254, 204, 78, 0.6);
  margin-bottom: 20px;
 
}
.explore-virtually .social-icons{
  display: flex;
   
  gap: 20px;
  padding-bottom: 20px;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);

  gap: 20px;
  align-items: stretch;
  padding: 50px 20px;

}

.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;
}

.grid-item img:not(.play-icon):not(.like-count) {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;

}

.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 56px;
  height: 56px;
  transform: translate(-50%, -50%);
  z-index: 2;
  opacity: 1;
  pointer-events: none;
  
}

.social-icons img {
  display: inline-block;
  margin: 0 5px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: white;
  text-align: center;
  font-size: 32px;
}

.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: rgba(255, 255, 255, 1);
  overflow: hidden;
 
  box-shadow:  0 2px 6px rgba(0, 0, 0, 0.1);


}

.post-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 15px 10px 15px 15px
}

.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: 2;
  overflow: hidden;
  margin: 16px 8px;
  border-radius: 8px;
}

.post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


.grid-item.stack {

  grid-row: span 3;
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 20px;
}

.grid-item.stack-large {

  grid-row: span 3;
  display: grid;
  grid-template-rows: 2fr 1fr;
  /* 2/3 и 1/3 */
  gap: 20px;
}

.grid-item.stack-reverse {
  grid-row: span 3;
  display: grid;
  grid-template-rows: 1fr 2fr;
  /* 2/3 и 1/3 */
  gap: 20px;
 
}



.grid-item .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px 12px;
  display: flex;
  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%
  );

}


.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;
}



@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;
  }
}

@media (max-width: 768px) {
  .post-block {
    flex-direction: column-reverse;
  }

  .post-image {
    flex: 1;
    width: 100%;
    height: 200px;
  }

  .post-content {
    padding: 15px;
  }
}


/*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;

}


.footer-cta-content {
  position: relative;
  overflow: hidden;

  margin-left: auto;

  height: 500px;

}

.footer-cta-title {
  font-size: 34px;
  font-weight: 400;
  line-height: 72px;
  margin-bottom: 20px;
  color: rgba(0, 90, 174, 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;
  margin: 0 auto;
  
}

.footer-column {
  gap: 0px;
}

.footer-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}


