/* =====================================
   GLOBAL RESET FOR RESPONSIVE
===================================== */

/* =====================================
   1) LARGE DESKTOP  → max-width: 1440px
===================================== */

/* Overlay */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  /* opacity: 0;
  visibility: hidden; */
  transition: opacity 0.3s ease;
  z-index: 9999;
}

.popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Content */
.popup-content {
  background: #fff;
  max-width: 900px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 12px;
  position: relative;
  animation: fadeUp 0.3s ease;
}

/* Close */
.popup-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
}

/* Loading */
.popup-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 300px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #ddd;
  border-top-color: #007bff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
#showCourseModal .btn-close-modal {
  color: var(--text-blue);
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 150%; /* 21px */
}
.text-yeeloow {
  color: var(--secondary-color);
}
.image-container-wrapper {
  position: relative;
  height: 100%; /* Đảm bảo nó lấp đầy chiều cao của cột */
  min-height: 400px; /* Chiều cao tối thiểu nếu hình ảnh không load */
}
#showCourseModal .modal-body p {
  margin-bottom: 18px;
}
#showCourseModal .modal-body textarea::placeholder,
#showCourseModal .modal-body input::placeholder {
  color: #000;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}
#showCourseModal .modal-body textarea:focus,
#showCourseModal .modal-body input:focus {
  box-shadow: unset;
}
#showCourseModal .modal-body textarea {
  height: 150px;
  border-radius: 5px;
  border: 1px solid #e1e1e1;
  background: #fff;
  display: flex;
  padding: 15.944px 15.5px 19.056px 17.5px;
  align-items: center;
  align-self: stretch;
}
#showCourseModal .wpcf7-spinner {
  display: none;
}
#showCourseModal .modal-body input:not([type="submit"]) {
  border-radius: 5px;
  border: 1px solid #e1e1e1;
  background: #fff;
  display: flex;
  height: 50px;
  padding: 15.944px 15.5px 19.056px 17.5px;
  align-items: center;
  align-self: stretch;
}
#showCourseModal .modal-body {
  padding: 24px 80px;
  padding-bottom: 50px;
}
#showCourseModal .title-header {
  margin-bottom: 0;
  padding: 0;
}
.course-register {
  padding: 16px 32px;
  display: block;
  width: fit-content;
  text-decoration: none;
  border-radius: 5px;
  background: var(--M1, #004aad);
  color: #fff;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
}
.course-content p {
  color: #000;
  font-size: 14px;
  font-weight: 400;
  line-height: 24px;
}
.course-content h2 {
  font-size: 24px;
}
.image-container-wrapper img {
  height: 100%;
  object-fit: cover;
}
#showCourseModal .section-subtitle {
  margin-top: 0;
  margin-bottom: 12px;
}
#showCourseModal .section-title {
  margin-bottom: 12px;
  font-weight: 700;
}
#showCourseModal .image-column {
  position: relative;
  padding: 16px;
}
#showCourseModal .image-column::before {
  content: "";
  position: absolute;
  background-color: var(--secondary-color);
  width: 50%;
  height: 60%;
  bottom: 0px;
  right: 0px;
  border-radius: 12px;
}
#showCourseModal .image-column::after {
  content: "";
  position: absolute;
  background-color: var(--text-blue);
  width: 50%;
  height: 60%;
  top: 0px;
  left: 0px;
  border-radius: 12px;
}
#showCourseModal .image-column img{
  
    border-radius: 8px;
    position: relative;
    z-index: 5;
}
#showCourseModal .decoration {
    position: absolute;
    z-index: 1;
    border-radius: 8px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1440px) {
}

/* =====================================
   2) DESKTOP STANDARD → max-width: 1200px
===================================== */
@media (max-width: 1200px) {
  .event-main-bottom {
    flex-direction: column;
  }
  .event-detail-header-body {
    padding: 24px;
  }
  .event-detail-header .event-main-title br {
    display: none;
  }
  .event-detail-header .event-main-title {
    font-size: 24px;
  }
  .event-detail-desc {
    margin-top: 8px;
    padding: 10px;
  }
  .event-main-bottom {
    gap: 24px;
  }
  .event-detail-header .event-time-box {
    width: 80px;
    padding: 12px;
    display: flex;
    flex-direction: column;
  }
  .event-detail-header .event-time-box .time {
    font-size: 24px;
  }
}

/* =====================================
   3) TABLET LANDSCAPE → max-width: 1024px
===================================== */
@media (max-width: 1024px) {
  .diamond-academy-section .content-wrapper {
    flex-direction: column;
  }
  .diamond-academy-section .text-column,
  .diamond-academy-section .image-column,
  .training-methods-section .text-column {
    max-width: 100%;
  }
  .training-methods-section .method-content-wrapper {
    flex-direction: column;
  }
  .training-methods-section::before {
    display: none;
  }
  .training-methods-section .image-logo-column {
    display: none;
  }
  .contact-section .contact-form {
    flex: 0 50%;
  }
  .top-choice-section .feature-item:nth-child(3) {
    justify-content: unset;
  }
  .top-choice-section .feature-item > div {
    max-width: unset;
  }
}

/* =====================================
   4) TABLET PORTRAIT → max-width: 768px
===================================== */
@media (max-width: 768px) {
  .top-choice-section .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .contact-section .content-wrapper {
    flex-direction: column;
  }
  .contact-section .contact-form,
  .contact-section .map-placeholder {
    flex: 0 100%;
  }
  .about-body {
    grid-template-columns: 1fr;
    row-gap: 20px;
    column-gap: 0;
  }

  .about-body > * {
    grid-column: auto !important;
    grid-row: auto !important;
  }

  .about-body .main-content {
    width: 100%;
  }

  .about-body {
    display: grid;
  }

  .about-body .stat-item {
    padding: 20px;
  }

  .about-body {
    grid-auto-flow: row;
  }

  .about-body .stat-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  /* Nếu muốn stat 2 cột */
  .about-body {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Nhưng main-content phải chiếm full */
  .about-body .main-content {
    grid-column: 1 / -1 !important;
  }

  /* Button canh trái đẹp hơn */
  .about-body .btn {
    margin-top: 16px;
  }

  /* Text nhỏ lại */
  .about-body .stat-number {
    font-size: 24px;
  }
  .img-absolute {
    top: 50%;
    right: 50%;
    position: absolute;
    transform: translate(50%, -50%);
  }
  .about-body .stat-item.primary-stat {
    margin-right: 10px;
  }
  .about-body .stat-item.secondary-stat {
    margin-left: 10px;
  }
  #offerings-section {
    padding: 40px 0;
  }
  .filter-controls .nav-link {
    height: 56px;
    padding: 0 14px;
    white-space: nowrap;
  }
  .filter-tabs {
    gap: 14px;
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start !important;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  .filter-tabs::-webkit-scrollbar {
    display: none;
  }
  .videos-section .title-header,
  .events-classes-section .title-header {
    flex-direction: row;
  }
  .events-classes-section {
    padding: 15px 0;
  }
  .value-section .value-content-wrapper {
    flex-direction: column;
    gap: 24px;
  }
  .value-section {
    padding: 24px 0;
  }
  .events-classes-section .event-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .events-classes-section .card-content h4 {
    margin-bottom: 10px;
  }
  .sidebar {
    display: none;
  }
  .main-layout {
    display: block;
  }
  .page-contact-wrapper {
    flex-direction: column;
  }
  .page-contact-info {
    flex: 0 100%;
  }
  .page-contact-map iframe {
    width: revert-layer;
  }
  .page-contact-map {
    text-align: center;
    display: flex;
    justify-content: center;
    width: 100%;
  }
  .event-detail-header-body {
    aspect-ratio: 1280 / 720;
  }
  .event-detail-header .event-location .label {
    margin-bottom: 8px;
  }
  .event-detail-header .event-location .value {
    font-size: 18px;
  }
  .event-detail-body .event-body-wrapper {
    flex-direction: column;
  }
  .past-events-section .events-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 24px;
  }
  .sec1-creative-banner {
    padding: 24px;
  }
  .sec1-content-wrapper {
    max-width: unset;
    padding: 0;
  }
  .sec1-creative-banner .hero-courses {
    margin-bottom: 0;
  }
  .sec5-contact-form-section .sec5-content-wrapper {
    flex-direction: column;
    gap: 0;
  }
  footer .footer-logo {
    width: 100%;
    margin-bottom: 12px;
  }
  .swiper-pagination {
    display: none !important;
  }
  .events-classes-section .swiper-button-next,
  .events-classes-section .swiper-button-prev {
    display: none !important;
  }
}

/* =====================================
   5) MOBILE MEDIUM → max-width: 576px
===================================== */
@media (max-width: 576px) {
  .title-header {
    margin-bottom: 16px;
  }
  .title-header .section-subtitle {
    margin-top: 5px;
    font-size: 16px;
  }
  .section-title-desc {
    text-align: left;
    margin-top: 5px;
  }
  .diamond-academy-section .content-wrapper {
    gap: 24px;
  }
  .target-goals-section .tab-button {
    padding: 10px 5px;
    min-height: unset;
    flex-direction: column;
  }
  .goals-tabs-container .nav-link {
    font-size: 16px;
  }
  .target-goals-section .icon svg {
    width: 24px;
    height: 24px;
    stroke-width: 2;
  }
  .target-goals-section .tab-content {
    padding: 20px;
  }
  .top-choice-section {
    padding: 24px 0;
  }
  .sec4-content-wrapper .section-title-desc,
  .sec3-community-grid .section-title-desc,
  .sec2-course-roadmap .section-title-desc,
  .event-catelog-section .section-title-desc,
  .past-events-section .section-title-desc,
  .community-activities-section .section-title-desc,
  .reading-program-section .section-title-desc,
  .testimonials-section .section-title-desc,
  .team-section .section-title-desc,
  .contact-section .section-title-desc,
  #offerings-section .section-title-desc {
    margin-top: 8px;
  }
  .top-choice-section .features-grid {
    grid-template-columns: repeat(1, 1fr);
    gap: 16px;
  }
  .training-methods-section .text-column .vertical-text {
    display: none;
  }
  .method-content-wrapper .text-column {
    padding: 24px !important;
  }
  .training-methods-section .method-list li {
    margin-bottom: 16px;
    gap: 16px;
  }
  .training-methods-section .method-list li p {
    font-size: 12px;
  }
  .title-header {
    margin-bottom: 16px;
  }
  .testimonials-section,
  .contact-section {
    padding: 24px 0;
  }
  .contact-section .submit-button {
    display: flex;
    padding: 12px 40px;
  }
  .testimonial-swiper {
    margin-top: 24px;
  }
  .hero-title {
    font-size: 18px;
  }
  .hero-desc {
    margin-bottom: 24px;
    padding: 10px;
  }
  .video-placeholder {
    flex-direction: column;
  }
  .hero-courses {
    gap: 20px;
    flex-direction: column;
  }

  .featured-posts-section .posts-grid {
    grid-template-columns: repeat(1, 1fr);
  }
  .featured-posts-section .news-tag,
  .featured-posts-section .post-content-large h3,
  .featured-posts-section .post-content-large p {
    margin-bottom: 16px;
  }
  .featured-posts-section .small-post-item {
    flex-direction: column;
  }
  .featured-posts-section .small-post-image {
    width: 100%;
    min-width: 100%;
  }
  .featured-posts-section .small-post-image .post-img {
    object-fit: cover;
    width: 100%;
  }
  .featured-posts-section .small-post-content h4 {
    margin-bottom: 10px;
  }
  .events-classes-section .event-cards-grid {
    grid-template-columns: repeat(1, 1fr);
    gap: 16px;
  }

  .event-catelog-section .section-title-desc {
    text-align: center !important;
  }
  .related-posts {
    flex-direction: column;
  }
  .page-contact-title {
    margin-bottom: 10px;
  }
  .page-contact-wrapper {
    gap: 24px;
  }
  .page-contact-form-section {
    padding-top: 30px;
    padding-bottom: 30px;
  }
  .community-activities-section {
    padding: 24px 0;
  }
  .event-detail-header-body {
    aspect-ratio: unset;
  }
  .event-stats-bar h6 {
    display: none;
  }
  .event-main-bottom {
    margin-top: 24px;
  }
  .past-events-section .events-grid {
    grid-template-columns: repeat(1, 1fr);
  }
  .community-swiper {
    margin-bottom: 20px;
  }
  .program-swiper {
    margin-top: 20px;
  }
  .past-events-section,
  .reading-program-section {
    padding: 24px 0;
  }
  .community-activities-section .section-title-desc,
  .sec3-community-grid .section-title-desc,
  .testimonials-section .section-title-desc {
    padding: 0 15px;
    text-align: center !important;
  }
  .sec2-course-roadmap {
    padding: 24px 0;
  }
  .sec2-card-number {
    font-size: 40px;
    margin-bottom: 16px;
  }
  .sec2-card p {
    margin-bottom: 10px;
  }
  .sec2-card-link-arrow {
    padding: 10px;
  }
  .sec2-card {
    padding: 24px !important;
  }
  .sec3-card-grid {
    grid-template-columns: repeat(1, 1fr);
  }
  .sec4-faq-section {
    padding: 24px 0;
  }
  .accordion-button {
    font-size: 14px;
    padding: 12px 30px;
  }
}

/* =====================================
   6) MOBILE SMALL → max-width: 480px
===================================== */
@media (max-width: 480px) {
}

/* =====================================
   7) MOBILE TINY → max-width: 360px
===================================== */
@media (max-width: 360px) {
}
