/* ==========================================================================
   Home Template Styles
   ========================================================================== */

/* --- Biến màu và Font từ Tailwind Config --- */
:root {
  --color-primary-blue-500: #004aad;
  --color-primary-red-500: #a40000;
  --color-primary-green-500: #24a148;
  --color-primary-violet-500: #6929c4;
  --color-icon-red: #d42525;
  --color-dark: #262626;
  --bg-light-blue: #edf7ff;
  --bg-primary-grey-50: #f5f5f5;
  --bg-light-green: rgba(233, 246, 237, 0.6);
  --bg-light-red: rgba(246, 230, 230, 0.6);
  --bg-light-violet: rgba(240, 234, 249, 0.6);
  --border-dark-transparent: rgba(51, 51, 51, 0.3);
  --color-text-lecturer-name: #00439d;
  --color-primary-grey-200: #e5e7eb;
  --color-primary-grey-600: #4b5563;
  --color-achievement-bg: #00357b;
  --color-achievement-border: #336ebd;
  --color-achievement-points-bg: #3889ff;
}

/* --- Typography (Dựa trên Tailwind Config) --- */
.text-s18h32 {
  font-size: 18px;
  line-height: 32px;
}

/* --- Cài đặt chung & Layout --- */
body {
  font-family: "Inter", sans-serif;
  color: var(--color-dark);
  background-color: white;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.font-bold {
  font-weight: 700;
}
.text-primary-red {
  color: var(--color-primary-red-500);
}

.text-center {
  text-align: center;
}
.flex-1 {
  flex: 1;
}
.mb-4 {
  margin-bottom: 1rem;
}

.mb-7 {
  margin-bottom: 1.75rem;
}

.mb-8 {
  margin-bottom: 2rem;
}
.mb-10 {
  margin-bottom: 2.5rem;
}
.mt-6 {
  margin-top: 1.5rem;
}
.py-10 {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}
.space-y-2 > *:not([hidden]) ~ *:not([hidden]) {
  margin-top: 0.5rem;
}
.space-y-3 > *:not([hidden]) ~ *:not([hidden]) {
  margin-top: 0.75rem;
}

.inline-block {
  display: inline-block;
}

.swiper-pagination {
  position: relative !important;
}

/* --- Typography (Dựa trên Tailwind Config) --- */
.text-h1 {
  font-size: 40px;
  line-height: 56px;
}
.text-h2 {
  font-size: 32px;
  line-height: 44px;
}

.w-full {
  width: 100%;
}

/* --- Component dùng chung --- */
.button {
  padding: 0.75rem 1rem;
  border: 2px solid;
  border-radius: 8px;
  font-weight: 600;
  transition:
    background-color 0.3s,
    color 0.3s;
  cursor: pointer;
}
.button-red {
  background-color: var(--color-primary-red-500);
  border-color: var(--color-primary-red-500);
  color: white;
}

@media (max-width: 1023px) {
  .button {
    width: auto;
    margin: 0 auto;
    text-align: center;
  }
}

@media (max-width: 767px) {
  .button {
    width: 100%;
    margin: 0;
  }
}

.button-red:hover {
  background-color: white;
  color: var(--color-primary-red-500);
}
.button-red:hover svg path {
  fill: var(--color-primary-red-500);
}

.button-blue-outline {
  border-color: var(--color-primary-blue-500);
  color: var(--color-primary-blue-500);
}
.button-blue-outline:hover {
  background-color: var(--color-primary-blue-500);
  color: white;
}
.video-demo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 639px) {
  .video-demo {
    width: 400%;
    height: 517px;
  }
}

/* --- Banner Section --- */
.iia-banner {
  background-color: var(--bg-light-blue);
  overflow: hidden;
}
.banner-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
}
.banner-content {
  width: 100%;
}
.banner-buttons {
  display: flex;
  flex-direction: column-reverse;
  gap: 1rem;
}
.banner-images {
  display: flex;
  gap: 1rem;
  align-items: center;
}

@media (max-width: 767px) {
  .banner-images img {
    width: 75px;
  }
}

/* --- Milestone Section --- */
.milestone-grid {
  display: flex;
  flex-direction: column;
  gap: 1.75rem; /* gap-7.5 */
}
.milestone-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap-y: 1rem;
  text-align: center;
}
.milestone-card {
  padding: 0.5rem;
}
.milestone-card-number {
  font-size: 32px;
  line-height: 44px;
  font-weight: 900;
  color: var(--color-primary-red-500);
}
.milestone-video-wrapper {
  width: 100%;
  height: 100%;
  border-radius: 0.75rem;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

/* --- Different Section --- */
.different-intro {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}
.different-intro-desc {
  display: flex;
  align-items: center;
  line-height: 1.6;
}
.animate-section {
  overflow: hidden;
  height: 890px;
}

.animate-wrapper {
  display: grid;
  place-content: center;
  position: relative;
  width: 100%;
  height: 100%;
}

.animate-section .bg-iia-different {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  object-fit: cover;
  object-position: top center;
}

.animate-section .lottie-player {
  rotate: -90deg;
  scale: 1.2;
}

.lottie-player-wrapper {
  position: relative;
}

.lottie-player-wrapper .btn-input,
.lottie-player-wrapper .btn-output {
  position: absolute;
  transform: translate(-50%, -50%);
}

.lottie-player-wrapper .btn-input {
  bottom: -55%;
  left: 50%;
}

.lottie-player-wrapper .btn-output {
  top: -30%;
  left: 50%;
}

.steps-main-title {
  font-weight: 700;
  font-size: 32px;
  line-height: 44px;
  margin-bottom: 2.5rem;
}
.steps-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.steps-video-wrapper {
  flex: 1 1 0%;
  min-width: 300px;
  border-radius: 0.75rem;
  overflow: hidden;
}
.steps-cards-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.75rem; /* space-y-7.5 */
}
.step-card {
  padding-bottom: 0;
  border: 1px solid;
  border-radius: 0.75rem;
  display: flex;
  flex-direction: column;
}
.step-card-green {
  border-color: var(--color-primary-green-500);
  background-color: var(--bg-light-green);
}
.step-card-red {
  border-color: var(--color-primary-red-500);
  background-color: var(--bg-light-red);
}
.step-card-violet {
  border-color: var(--color-primary-violet-500);
  background-color: var(--bg-light-violet);
}
.step-card-title {
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 2.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-dark-transparent);
  margin-bottom: 0.5rem;
}
.step-card-body {
  font-size: 0.875rem;
  line-height: 1.5rem;
}
.step-card-body .list-disc {
  list-style-type: disc;
  padding-left: 1.25rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}
.step-card-body .list-disc > li:not([hidden]) ~ li:not([hidden]) {
  margin-top: 0.5rem;
}
.step-card-img {
  align-self: flex-end;
}
.step-card.full-width {
  flex-basis: 100%;
}
.step-card-img-step3 {
  margin-left: 2.5rem;
  align-self: flex-end;
}

/* ==========================================================================
   IELTS Free Test Section Styles
   ========================================================================== */
.ielts-test-free {
  background-color: var(--bg-primary-grey-50);
  padding: 1.5rem 0;
}

.test-free-grid {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2.5rem; /* gap-10 */
}

.test-free-title {
  font-size: 18px;
  line-height: 32px;
  font-weight: 600;
  color: var(--color-primary-red-500);
  margin-bottom: 0.5rem;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem; /* space-y-1 */
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem; /* gap-2 */
}

.feature-item svg path {
  fill: var(--color-icon-red);
}

.test-free-action {
  text-align: center;
  margin-bottom: 16px;
}

.test-free-action .button {
  font-weight: 500; /* font-medium */
  text-transform: uppercase;
}

.inline-icon {
  display: inline-block;
  vertical-align: middle;
  margin-left: 0.5rem; /* ml-2 */
}

@media (max-width: 1023px) {
  .step-card-content,
  .step-card-content-half {
    padding: 24px;
    padding-bottom: 0;
  }
}

/* --- Responsive Styles (lg: 1024px) --- */
@media (min-width: 1024px) {
  .test-free-grid {
    flex-direction: row;
    align-items: center;
    gap: 4rem; /* lg:gap-16 */
  }

  .test-free-action {
    text-align: left;
    margin-bottom: 0;
  }

  .lg\:py-20 {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
  /* Typography */
  .text-h1 {
    font-size: 60px;
    line-height: 72px;
  }
  .text-h2 {
    font-size: 40px;
    line-height: 56px;
  }

  /* Banner */
  .banner-grid {
    flex-direction: row;
  }
  .banner-content {
    width: 50%;
  }
  .banner-buttons {
    flex-direction: row;
  }
  .banner-images {
    gap: 1.5rem;
  }

  /* Milestone */
  .milestone-grid {
    flex-direction: row;
    text-align: left;
  }
  .milestone-content,
  .milestone-video-wrapper {
    flex: 1;
  }
  .milestone-cards-grid {
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
  }

  /* Different */
  .different-intro {
    flex-direction: row;
    gap: 1.75rem;
    margin-bottom: 2.5rem;
  }
  .steps-main-title {
    text-align: center;
  }
  .steps-video-wrapper {
    width: 33.33%;
  }
  .steps-cards-wrapper {
    width: 66.66%;
  }

  .step-card {
    padding-left: 2rem;
    padding-right: 2rem;
  }
  .step-card-green {
    flex-direction: row-reverse;
    gap: 5rem;
    padding-bottom: 0;
  }
  .step-card-red {
    flex-direction: row;
    gap: 5rem;
    padding-bottom: 0;
  }
  .step-card-violet {
    flex-direction: row;
    gap: 5rem;
    align-items: center;
  }
  .step-card-content {
    padding: 2.5rem 0;
  }

  .step-card-content-half {
    width: 50%;
    padding: 2.5rem 0;
  }
  .step-card-violet .step-card-title {
    padding-top: 0;
  }
  .step-card-img-step3 {
    margin-left: -8rem; /* -ml-32 */
  }

  .animate-section .lottie-player {
    rotate: 0deg;
    scale: 1.45;
  }

  .animate-section {
    overflow: hidden;
    height: 1100px;
  }

  .lottie-player-wrapper .btn-input,
  .lottie-player-wrapper .btn-output {
    position: absolute;
    transform: translate(-50%, -50%);
    top: 50%;
  }

  .lottie-player-wrapper .btn-input {
    left: 13%;
  }

  .lottie-player-wrapper .btn-output {
    left: 90%;
  }
}

/* ==========================================================================
   Advantages Section Styles
   ========================================================================== */

.advantages-grid {
  display: flex;
  flex-direction: column;
  gap: 1.75rem; /* gap-7.5 */
}

.advantages-content {
  width: 100%;
}

.advantages-image {
  margin: 0 auto;
}

.advantages-accordion-wrapper {
  width: 100%;
}

/* --- Accordion Styles --- */
.accordion-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem; /* space-y-6 */
}

.ac {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  padding: 1rem;
}

.ac-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0;
}

.ac-trigger {
  display: flex;
  justify-content: space-between;
  flex-grow: 1;
  text-align: left;
  background: none;
  border: none;
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--color-dark);
}

.accordion-icon {
  padding-left: 1.5rem;
  color: var(--color-dark);
}

.icon-chevron {
  transition: transform 0.4s ease;
}

.ac-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
}

.ac-panel-content {
  /* padding: 0 1.5rem 1.25rem 1.5rem; */
  line-height: 1.6;
  padding-top: 16px;
  margin-top: 16px;
  border-top: 1px solid #e0e0e0;
}

.ac-panel-content ul {
  list-style-type: disc;
  padding-left: 1.5rem;
}

.ac-panel-content ul li:not(:last-child) {
  margin-bottom: 0.5rem;
}

/* --- Accordion Active State --- */
.ac.is-active .icon-chevron {
  transform: rotate(180deg);
}

.ac.is-active .ac-trigger {
  color: var(--color-primary-red-500);
}

.ac.is-active .accordion-icon {
  color: var(--color-primary-red-500);
}

/* --- Responsive Styles for Advantages Section --- */
@media (min-width: 1024px) {
  /* lg breakpoint */

  .ac {
    padding: 1.5rem;
  }

  .advantages-grid {
    flex-direction: row;
  }

  .advantages-content {
    width: 41.6666%; /* lg:w-5/12 */
  }

  .advantages-accordion-wrapper {
    width: 58.3333%; /* lg:w-7/12 */
  }

  .advantages-image {
    margin-left: 0;
    margin-right: 0;
  }

  .lg\:mb-20 {
    margin-bottom: 5rem;
  }
}

/* ==========================================================================
   Lecturers Section Styles
   ========================================================================== */

@keyframes pulse {
  50% {
    opacity: 0.5;
  }
}

.lecturers-section {
  background-color: #edf7ff;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.lecturers-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.5rem;
  row-gap: 2.5rem;
  background-color: white;
  padding: 1rem;
  border-radius: 1rem;
  min-height: 500px;
}

.lecturers-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.button.button-grey-outline {
  border-color: var(--color-primary-grey-200);
  color: var(--color-primary-grey-700);
}

.button.button-grey-outline:hover {
  border-color: var(--color-primary-red-500);
  background-color: var(--color-primary-red-500);
  color: white;
}

.lecturers-slider-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  grid-column: span 1 / span 1;
}

.main-swiper,
div[class*="thumbs-swiper"] {
  /* opacity: 0; */
  transition: opacity 0.3s ease-in-out;
}

/* --- Trạng thái loading --- */
.is-loading .main-swiper,
.is-loading div[class*="thumbs-swiper"] {
  display: none;
}

.lecturers-loading-placeholder {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.placeholder-image {
  width: 100%;
  max-width: 24rem;
  height: 480px;
  background-color: var(--color-grey-200);
  border-radius: 0.75rem;
  margin: 0 auto;
}
.placeholder-text {
  margin-top: 1.5rem;
  width: 100%;
}
.placeholder-line {
  height: 2rem;
  background-color: var(--color-grey-200);
  border-radius: 0.25rem;
}
.placeholder-line.w-1\/2 {
  width: 50%;
}
.placeholder-line.w-full {
  width: 100%;
}
.placeholder-line.w-5\/6 {
  width: 83.3333%;
}
.mt-4 {
  margin-top: 1rem;
}
.mt-2 {
  margin-top: 0.5rem;
}

/* --- Cấu trúc card trong slider chính --- */
.lecturers-slider-wrapper {
  height: 100%;
}

.lecturers-slider-wrapper .swiper {
  height: 100%;
}

.lecturers-slider-wrapper .swiper-wrapper {
  height: 100%;
}

.swiper-slide {
  height: 100%;
}

.lecturer-card {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  align-items: center;
  height: 100%;
}
.lecturer-main-image {
  flex: 1;
  border-radius: 1rem;
  overflow: hidden;
  display: flex;
  align-items: end;
  justify-content: center;
  height: 100%;
}
.lecturer-main-image img {
  max-height: 380px;
  width: auto;
}

.lecturer-bio {
  width: 100%;
  flex: 1;
}
.lecturer-name {
  font-size: 1.5rem;
  line-height: 2.25rem;
  font-weight: 700;
  color: var(--color-text-lecturer-name);
  margin-bottom: 1.5rem;
}
.lecturer-desc {
  margin-top: 0.5rem;
  color: var(--color-grey-600);
  line-height: 1.75;
}

/* --- CSS tùy chỉnh cho Thumbs Swiper (Sếp cung cấp) --- */
div[class*="thumbs-swiper"] {
  position: relative;
  width: 100%;
  padding: 0;
  overflow: hidden;
  margin-top: 3rem;
}
div[class*="thumbs-swiper"]::before,
div[class*="thumbs-swiper"]::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  z-index: 2;
  pointer-events: none;
}
div[class*="thumbs-swiper"]::before {
  left: 0;
  background: linear-gradient(-90deg, rgba(255, 255, 255, 0) 0%, #ffffff 100%);
}
div[class*="thumbs-swiper"]::after {
  right: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, #ffffff 100%);
}

@media (max-width: 1023px) {
  .achievement-details div[class*="thumbs-swiper"]::before {
    left: 0;
    background: linear-gradient(-90deg, rgba(0, 53, 123, 0.1) 0%, #00357b 100%);
  }
  .achievement-details div[class*="thumbs-swiper"]::after {
    right: 0;
    background: linear-gradient(90deg, rgba(0, 53, 123, 0.1) 0%, #00357b 100%);
  }
}

div[class*="thumbs-swiper"] .swiper-slide {
  width: 90px;
  height: 90px;
  cursor: pointer;
  transition: transform 300ms;
}

.achievement-details div[class*="thumbs-swiper"] .swiper-slide {
  width: 77px !important;
  height: 50px !important;
  cursor: pointer;
  transition: transform 300ms;
}
.lecturer-avatar {
  width: 100%;
  height: 100%;
  border-radius: 9999px;
  object-fit: cover;
  border: 2px solid transparent;
  transition: all 300ms;
}
.achievement-details
  div[class*="thumbs-swiper"]
  .swiper-slide-active
  .lecturer-avatar {
  border: 2px solid #ef4444;
  transform: scale(1);
}

/* --- Pagination cho mobile (Sếp cung cấp) --- */
.lecturers-pagination-mobile {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
  margin-bottom: 2.5rem;
  position: relative;
}
#lecturer-slide-pagination .swiper-pagination {
  display: flex;
  justify-content: center;
}
#lecturer-slide-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  opacity: 1;
  border-radius: 8px;
  background: #e5e5e5;
  transition: all 0.3s ease-in-out;
}
#lecturer-slide-pagination .swiper-pagination-bullet-active {
  width: 56px;
  background: var(--color-primary-blue-500);
}

/* --- Responsive Styles --- */
@media (min-width: 1024px) {
  /* lg breakpoint */
  .lecturers-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
  .lecturers-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3rem;
    padding: 2rem;
  }
  .lecturers-slider-wrapper {
    grid-column: span 2 / span 2;
  }
  .lecturer-card {
    flex-direction: row;
    align-items: flex-start;
  }
  .lecturer-name {
    margin-bottom: 2rem;
  }
  div[class*="thumbs-swiper"] {
    display: block;
  }
  .lecturers-pagination-mobile {
    display: none;
  }
}

/* ==========================================================================
   Achievements Section Styles
   ========================================================================== */
.achievements-grid {
  display: flex;
  flex-direction: column-reverse; /* Đảo ngược thứ tự trên mobile */
  background-color: white;
  border-radius: 1rem;
  overflow: hidden;
}

.achievement-details {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: var(--color-achievement-bg);
  padding: 2rem;
  color: white;
}

.achievement-name {
  font-size: 1.5rem; /* 2xl */
  line-height: 2.25rem; /* leading-9 */
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.achievement-bio {
  margin-bottom: 1.5rem;
}

.achievement-points-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 32px;
  line-height: 1;
  font-weight: 700;
  padding: 1rem 0;
  border-top: 1px solid var(--color-achievement-border);
  border-bottom: 1px solid var(--color-achievement-border);
  margin-bottom: 1.5rem;
}

.achievement-points-circle {
  width: 70px;
  height: 70px;
  display: grid;
  place-content: center;
  background-color: var(--color-achievement-points-bg);
  border-radius: 9999px;
  padding: 0.5rem;
}

.achievement-desc {
  line-height: 1.6;
}

.achievements-thumbs-swiper {
  margin-top: 3rem;
  width: 100%;
  border-radius: 1rem;
  overflow: hidden;
}

.achievements-thumbs-swiper .swiper-slide {
  cursor: pointer;
  width: 72px !important;
  height: 72px;
}

.achievement-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 1rem;
}

.achievement-slider-wrapper {
  position: relative;
  width: 100%;
  height: 210px; /* Chiều cao mặc định cho mobile */
}

.achievements-main-swiper {
  height: 100%;
}

#achievement-type {
  font-size: 24px;
  line-height: 36px;
  font-weight: 700;
}

.achievement-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16/9;
  object-position: top;
}

/* --- Responsive Styles for Achievements Section --- */
@media (min-width: 1024px) {
  /* lg breakpoint */
  .achievements-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .achievement-slider-wrapper {
    grid-column: span 3 / span 3;
    height: auto; /* Chiều cao tự động trên desktop */
  }
  .achievement-details {
    grid-column: span 2 / span 2;
  }
  .achievement-title {
    text-align: center;
  }
  #achievement-type {
    font-size: 32px;
    line-height: 44px;
    font-weight: 700;
  }
}

/* ==========================================================================
   News Section Styles
   ========================================================================== */

.news-grid-desktop {
  display: none; /* Mặc định ẩn trên mobile */
}

.news-slider-mobile {
  overflow: hidden;
  border-radius: 0.75rem;
}

.news-card {
  display: flex;
  flex-direction: column;
}

.news-card-image-link {
  display: block;
}

.news-card-image {
  width: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 0.25rem;
  aspect-ratio: 385 / 215;
}

.news-card-content {
  display: flex;
  flex-direction: column;
}

.new-card-time {
  display: flex;
  gap: 1rem;
}

.news-card-date {
  color: #555;
  font-size: 0.875rem;
}

.news-card-date .inline-icon {
  margin-right: 0.5rem;
  vertical-align: middle;
}

.news-card-title {
  font-weight: 600;
  font-size: 18px;
  line-height: 32px;
  transition: color 0.3s;
}

.news-card-title:hover {
  color: var(--color-primary-red-500);
}

/* --- Responsive Styles for News Section --- */
@media (min-width: 1024px) {
  /* lg breakpoint */
  .news-slider-mobile {
    display: none; /* Ẩn slider trên desktop */
  }

  .news-grid-desktop {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.75rem; /* gap-7.5 */
  }

  .lg\:text-center {
    text-align: center;
  }

  .lg\:mt-10 {
    margin-top: 40px;
  }
}

.animate-wrapper {
  position: relative;
  /* Đảm bảo các ảnh absolute được định vị tương đối với wrapper này */
  width: 100%;
  height: 100%;
}

.animate-wrapper .floating-avatar {
  position: absolute;
  transform-origin: center;
  animation-name: scale-in, float-bubble;
  animation-timing-function: ease-out, ease-in-out;
  animation-fill-mode: forwards;
  animation-iteration-count: 1, infinite;
  opacity: 0;
  /* Bắt đầu ẩn */
  transform: scale(var(--scale-factor));
  /* Áp dụng scale ngẫu nhiên */
  top: var(--mobile-top);
  /* Vị trí mặc định cho mobile */
  left: var(--mobile-left);
  /* Vị trí mặc định cho mobile */
}

@keyframes scale-in {
  from {
    transform: scale(0);
    opacity: 0;
  }

  to {
    transform: scale(var(--scale-factor));
    /* Sử dụng scale factor đã định */
    opacity: 1;
  }
}

@keyframes float-bubble {
  0%,
  100% {
    transform: translateY(0) scale(var(--scale-factor));
    /* Duy trì scale factor */
  }

  50% {
    transform: translateY(-20px) scale(var(--scale-factor));
    /* Duy trì scale factor */
  }
}

/* Responsive styles for desktop */
@media (min-width: 1024px) {
  .animate-wrapper .floating-avatar {
    top: var(--desktop-top);
    /* Ghi đè vị trí cho desktop */
    left: var(--desktop-left);
    /* Ghi đè vị trí cho desktop */
  }
}
