/* ===========================================
   HERO SECTION - LCP OPTIMIZED
   =========================================== */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #f8f9ff 0%, #fff 100%);
  height: 705px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 80px;
}
.hero-section .form-group.message {
  display: none ;
}
.hero-section .recaptcha {
  margin-top: 1rem;
}
.hero-section .hero-banner {
  height: 100%;
  width: 100%;
  position: absolute;
  margin-top: 0;
}

.hero-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
  align-items: center;
  margin-bottom: 5rem;
}

/* Left Content */

.hero-title {
  font-size: 60px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.1;
  margin: 0 0 20px;
}

.hero-desc {
  font-size: 26px;
  line-height: 1.7;
  color: var(--color-text-light);
  margin-bottom: 32px;
  font-weight: 500;
  padding-right: 5rem;
}

/* ===========================================
   SECTION COURSES
   =========================================== */
.section-courses {
  padding: 60px 0;
  background: #e4fbfeb0;
  margin-top: 10rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.section-title {
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 700;
  color: var(--color-primary);
  margin: 0;
}

/* Courses Grid */
.list-courses {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Course Item */
.course-item {
  position: relative;
  display: block;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  text-decoration: none;
  box-shadow: var(--shadow-lg);
}

.course-thumb {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.course-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.course-item:hover .course-thumb img {
  transform: scale(1.05);
}

/* Overlay */
.course-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgb(0 0 0 / 85%) 0%,
    rgb(0 0 0 / 50%) 50%,
    transparent 100%
  );
  z-index: 2;
  background-size: 100% 200%; /* gradient cao gấp đôi */
  background-position: 0 0%; /* bắt đầu ở dưới */
  transition: background-position 0.5s ease;
}

/* Content */
.course-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  z-index: 3;
  color: #fff;
}

.course-icon {
  margin-bottom: 8px;
}

.course-icon svg {
  width: 32px;
  height: 32px;
}
.course-item .course-icon svg {
  transition: transform 0.5s ease;
}

.course-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 8px;
  color: #fff;
}

.course-desc {
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.9);
  display: none;
}

.course-item:hover .course-icon svg {
  transform: rotate(90deg);
}

.course-item:hover .course-overlay {
  background-position: 0 100%;
}

.course-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  position: relative;
  transition: font-size 0.3s ease;
}

.course-link::after {
  content: "";
  position: absolute;
  bottom: -1px;
  right: 0;
  width: 0;
  height: 1px;
  background: #fff;
  transition: width 0.3s ease;
}

.course-link .icon-plus,
.course-link .icon-arrow {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.course-link .icon-arrow {
  position: absolute;
  right: 0;
  opacity: 0;
  transform: translateX(-5px);
  font-size: 18px;
}

.course-item:hover .course-link {
  font-size: 16px;
  color: var(--color-secondary);
}

.course-item:hover .course-link::after {
  width: 100%;
  left: 0;
  right: auto;
  background-color: var(--color-secondary);
}

.course-item:hover .course-link .icon-plus {
  opacity: 0;
  transform: rotate(90deg);
}

.course-item:hover .course-link .icon-arrow {
  opacity: 1;
  transform: translate(0, -2px);
  font-size: 22px;
  color: var(--color-secondary);
}

/* ===========================================
   SECTION ENVIRONMENT
   =========================================== */
.section-environment {
  padding: 60px 0;
  background: #fff;
}

/* Top Area */
.environment-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  margin-bottom: 32px;
}

.environment-title {
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 16px;
  line-height: 1.3;
}

.environment-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text-light);
  margin: 0;
}

.environment-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.env-img {
  border-radius: 12px;
  overflow: hidden;
}

.env-img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* Slider */
.environment-slider {
  margin: 0 -12px;
}
.environment-slider .slick-slide {
  margin-left: 10px;
}
.environment-slider .env-slide {
  padding: 0 10px;
}

.environment-slider .env-slide img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 12px;
}

/* ===========================================
   SECTION ACTIVITIES
   =========================================== */
.section-activities {
  padding: 60px 0;
  background: var(--color-primary);
  position: relative;
  overflow: hidden;
}

.activities-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  /* gap: 40px; */
  align-items: center;
}

.activities-title {
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 700;
  color: #fff;
  margin: 0 0 32px;
}

/* List */
.activities-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.activity-item {
  display: flex;
  gap: 20px;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.activity-item:hover {
  background: rgba(255, 255, 255, 0.15);
}

.activity-info {
  flex: 1;
}

.activity-title {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 8px;
  line-height: 1.4;
}

.activity-excerpt {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  line-height: 1.6;
}

.activity-thumb {
  flex-shrink: 0;
  width: 100px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
}

.activity-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Image */
.activities-image {
  position: absolute;
  bottom: 0;
  height: 100%;
  left: 70%;
  transform: translateX(-50%);
}
.activities-image img {
  max-width: 100%;
  height: 100%;
  /* max-height: 450px; */
  object-fit: cover;
}

/* ===========================================
   SECTION FACILITIES - CENTER MODE SLIDER
   =========================================== */
.section-facilities {
  padding: 60px 0 80px;
  background: #fff;
  overflow: hidden;
}
.section-facilities .container {
  overflow: hidden; /* Cắt hình 2 bên */
}
.facilities-header {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px;
  padding: 0 20px;
}

.facilities-title {
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 16px;
}

.facilities-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text-light);
  margin: 0;
}

/* Slider */
.facilities-slider {
  margin: 0 -350px;
}

.facilities-slider .facility-slide {
  padding: 0 15px;
  transition: all 0.4s ease;
}

.facilities-slider .facility-slide img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 16px;
  transition: all 0.4s ease;
}

/* Non-center slides */
.facilities-slider .slick-slide {
  opacity: 0.5;
  transform: scale(0.9);
  transition: all 0.4s ease;
}

/* Center slide */
.facilities-slider .slick-center {
  opacity: 1;
  transform: scale(1);
}

.facilities-slider .slick-prev {
  left: 375px;
}
.facilities-slider .slick-next {
  right: 375px;
}
.facilities-slider .slick-dots {
  position: relative;
}

/* ===========================================
   SECTION NEWS
   =========================================== */
.section-news {
  padding: 60px 0;
  background: #e4fbfeb0;
}

.section-news .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.section-news .section-title {
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 700;
  color: var(--color-primary);
  margin: 0;
}

/* Grid - 2 columns, 6 rows */
.news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(6, 1fr);
  gap: 24px;
  min-height: 750px;
}

/* Card 1: col 1, row 1-3 */
.news-card:nth-child(1) {
  grid-column: 1;
  grid-row: 1 / 4;
}

/* Card 2: col 1, row 4-6 */
.news-card:nth-child(2) {
  grid-column: 1;
  grid-row: 4 / 7;
}

/* Card 3: col 2, row 1-2 */
.news-card:nth-child(3) {
  grid-column: 2;
  grid-row: 1 / 3;
}

/* Card 4: col 2, row 3-4 */
.news-card:nth-child(4) {
  grid-column: 2;
  grid-row: 3 / 5;
}

/* Card 5: col 2, row 5-6 */
.news-card:nth-child(5) {
  grid-column: 2;
  grid-row: 5 / 7;
}

/* Card */
.news-card {
  position: relative;
  display: block;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
}

.news-thumb {
  position: absolute;
  inset: 0;
}

.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.news-card:hover .news-thumb img {
  transform: scale(1.05);
}

.news-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgb(0 0 0 / 30%) 0%,
    rgb(0 0 0 / 70%) 100%
  );
  z-index: 1;
  transition: all var(--transition-slow);
}
.news-card:hover .news-overlay {
  background-color: #000000c7;
}

.news-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 24px;
  z-index: 2;
  color: #fff;
}

.news-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px;
  line-height: 1.4;
  color: #fff;
  transition: all var(--transition-slow);
}
.news-card:hover .news-title {
  color: var(--color-secondary);
}
.news-excerpt {
  font-size: var(--font-size-base);
  line-height: 1.6;
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  transition: all var(--transition-slow);
}
.news-card:hover .news-excerpt {
  color: var(--color-secondary);
}

/* ===========================================
   SECTION CTA
   =========================================== */
.section-cta {
  padding: 60px 0;
  background: #2d2d2d;
}

.cta-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.cta-content {
  flex: 1;
}

.cta-title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  color: #fff;
  margin: 0 0 24px;
  line-height: 1.4;
}

.cta-image {
  flex-shrink: 0;
}

.cta-image img {
  max-height: 280px;
  width: auto;
}

@media screen and (max-width: 1300px) {
  /* ===========================================
   HERO SECTION - LCP OPTIMIZED
   =========================================== */
  .hero-section {
    height: 100%;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    margin-bottom: 0;
  }
  .hero-section .container {
    margin-top: 30px;
  }

  /* ===========================================
   SECTION COURSES LIST
   =========================================== */
  .section-courses {
    margin-top: 0;
    padding-top: 80px;
  }
}

@media screen and (max-width: 1024px) {
  /* ===========================================
   SECTION COURSES
   =========================================== */
  .list-courses {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  /* ===========================================
   SECTION ACTIVITIES
   =========================================== */
  .activities-grid {
    grid-template-columns: 1fr;
  }
  .activities-image {
    opacity: 0.1;
  }
}

@media screen and (max-width: 768px) {
  /* Global */
  .environment-title,
  .environment-desc,
  .activities-title {
    text-align: center;
  }

  /* ===========================================
   HERO SECTION - LCP OPTIMIZED
   =========================================== */
  .hero-title {
    font-size: 40px;
    text-align: center;
  }
  .hero-desc {
    font-size: 18px;
    padding-right: 0;
    text-align: center;
  }

  /* ===========================================
   SECTION COURSES LIST
   =========================================== */

  .section-header {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .list-courses {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .course-item {
    aspect-ratio: 16 / 10;
  }

  .list-courses .course-item:nth-child(n + 4) {
    display: none;
  }

  /* ===========================================
     SECTION ENVIRONMENT
     =========================================== */
  .section-environment {
    padding-bottom: 80px;
  }

  .environment-top {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .environment-images {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .env-img img {
    height: 150px;
  }

  .environment-slider .env-slide img {
    height: 200px;
  }

  /* ===========================================
   SECTION ACTIVITIES
   =========================================== */
  .activities-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .section-activities .btn-events {
    text-align: center;
  }

  .activities-image {
    order: -1;
  }

  .activities-image img {
    max-height: 300px;
  }

  .activity-thumb {
    width: 80px;
    height: 64px;
  }
  /* ===========================================
   FACILITIES
   =========================================== */
  .facilities-slider {
    margin: 0;
  }
  .facilities-slider .slick-prev {
    left: 10px;
  }
  .facilities-slider .slick-next {
    right: 10px;
  }

  /* ===========================================
   SECTION NEWS
   =========================================== */
  .news-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    min-height: auto;
    gap: 16px;
  }

  .news-card:nth-child(1),
  .news-card:nth-child(2),
  .news-card:nth-child(3),
  .news-card:nth-child(4),
  .news-card:nth-child(5) {
    grid-column: 1;
    grid-row: auto;
    min-height: 200px;
  }

  .news-card:nth-child(n + 4) {
    display: none;
  }

  .news-title {
    font-size: 16px;
  }

  /* ===========================================
   SECTION CTA
   =========================================== */
  .cta-grid {
    flex-direction: column;
    text-align: center;
  }

  .cta-image {
    order: -1;
  }

  .cta-image img {
    max-height: 200px;
  }
}
