/* =============================================
   MLIFEON - style.css
   Primary: #EFBA1B  |  Light bg: #FFF8E7
   ============================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --yellow: #EFBA1B;
  --yellow-dark: #D6A619;
  --yellow-light: #FFF8E7;
  --gray-900: #111827;
  --gray-700: #374151;
  --gray-600: #4B5563;
  --gray-400: #9CA3AF;
  --gray-100: #F3F4F6;
  --white: #ffffff;
  --font: 'Montserrat', sans-serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.1);
  --shadow-md: 0 4px 12px rgba(0,0,0,.12);
  --shadow-lg: 0 8px 24px rgba(0,0,0,.15);
  --radius: 8px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--gray-700);
  background: var(--white);
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font); }

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

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 2px solid var(--yellow);
  box-shadow: var(--shadow-sm);
}

.navbar__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
  height: 82px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.navbar__logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 32px;
  flex: 1;
  justify-content: center;
}

.navbar__links a {
  font-size: 1rem;
  font-weight: 400;
  color: var(--gray-900);
  white-space: nowrap;
  transition: color .2s;
}

.navbar__links a:hover,
.navbar__links a.active { color: var(--yellow); }

.navbar__links .has-dropdown {
  display: flex;
  align-items: center;
  gap: 4px;
}

.navbar__actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--gray-700);
  transition: background .2s;
}

.btn-icon:hover { background: var(--gray-100); }

.btn-lang {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 400;
  color: var(--gray-900);
  transition: background .2s;
}

.btn-lang:hover { background: var(--gray-100); }

.lang-switcher {
  position: relative;
}

.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--white);
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  min-width: 130px;
  z-index: 200;
}

.lang-dropdown.open { display: block; }

.lang-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 16px;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--gray-700);
  background: none;
  transition: background .15s, color .15s;
  cursor: pointer;
}

.lang-option:hover { background: var(--gray-100); color: var(--gray-900); }
.lang-option.active { color: var(--yellow); font-weight: 600; }

.btn-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--gray-700);
  transition: background .2s;
}

.btn-hamburger:hover { background: var(--gray-100); }

/* Mobile menu */
.navbar__mobile {
  display: none;
  flex-direction: column;
  padding: 8px 16px 16px;
  border-top: 1px solid var(--gray-100);
}

.navbar__mobile a {
  padding: 10px 0;
  font-weight: 500;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-700);
}

.navbar__mobile a:hover { color: var(--yellow); }
.navbar__mobile.open { display: flex; }

@media (max-width: 768px) {
  .navbar__links { display: none; }
  .btn-hamburger { display: flex; }
  .btn-lang span { display: none; }
}

/* =============================================
   HERO SLIDER
   ============================================= */
.hero-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #000;
}

.slider__track {
  display: flex;
  transition: transform .5s ease;
}

.slide {
  flex: 0 0 100%;
  width: 100%;
  height: 78vh;
  min-height: 480px;
  max-height: 640px;
  position: relative;
}

.slide__link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

.slide__link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}

.slide:hover .slide__link img { transform: scale(1.04); }

.slide__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.82) 0%, rgba(0,0,0,.35) 55%, transparent 100%);
}

.slide__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 48px;
  color: var(--white);
  max-width: 760px;
}

.badge {
  display: inline-block;
  background: var(--yellow);
  color: var(--gray-900);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.slide__content h2 {
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.slide__content p {
  font-size: 0.875rem;
  color: rgba(255,255,255,.88);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 640px;
  line-height: 1.6;
}

.slide__meta {
  display: flex;
  gap: 20px;
  font-size: 0.85rem;
  color: rgba(255,255,255,.65);
}

/* Prev / Next buttons */
.slider__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,.18);
  border: 2px solid rgba(255,255,255,.4);
  border-radius: 50%;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
  backdrop-filter: blur(4px);
}

.slider__btn:hover { background: rgba(255,255,255,.32); }
.slider__btn--prev { left: 32px; }
.slider__btn--next { right: 32px; }

/* Dots */
.slider__dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}

.slider__dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 20px;
  background: rgba(255,255,255,.5);
  border: none;
  cursor: pointer;
  transition: all .3s;
}

.slider__dots .dot.active {
  width: 32px;
  background: var(--yellow);
}

@media (max-width: 640px) {
  .slide { max-height: 560px; }
  .slide__content { padding: 24px 20px; max-width: 100%; }
  .slide__content h2 { font-size: 1.4rem; }
  .slider__btn { display: none; }
}

/* =============================================
   CATEGORY FILTER
   ============================================= */
.category-filter {
  background: var(--white);
  padding: 32px 0;
}

.category-filter__tabs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.tab {
  padding: 10px 28px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 500;
  color: #374151;
  background: var(--white);
  border: 1.5px solid #D1D5DB;
  cursor: pointer;
  transition: all .2s;
}

.tab:hover { background: var(--yellow); color: var(--white); border-color: var(--yellow); }
.tab.active { background: var(--yellow); color: var(--white); border-color: var(--yellow); font-weight: 700; }

@media (max-width: 768px) {
  .category-filter { padding: 24px 0; }
  .category-filter__tabs { gap: 10px; }
  .tab { padding: 8px 20px; font-size: 0.9rem; }
}

/* =============================================
   CULTURE GALLERY
   ============================================= */
.culture-gallery {
  background: var(--yellow);
  padding: 32px 24px;
}

.culture-gallery__grid {
  display: flex;
  gap: 14px;
  max-width: 1400px;
  margin: 0 auto;
  justify-content: center;
}

.culture-card {
  flex: 1 1 0;
  max-width: 238px;
  height: 356px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  min-width: 0;
}

.culture-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}

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

.culture-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.55) 0%, rgba(0,0,0,.15) 50%, rgba(0,0,0,.3) 100%);
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--white);
}

/* Avatar badge ở trên */
.culture-card__badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
}

.culture-card__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.85rem;
  color: var(--white);
  flex-shrink: 0;
}

/* Play button ở giữa */
.culture-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  background: rgba(255,255,255,.92);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s, background .2s;
}

.culture-card__play svg {
  width: 13px;
  height: 13px;
  fill: var(--gray-900);
  margin-left: 2px;
}

.culture-card:hover .culture-card__play {
  transform: translate(-50%, -50%) scale(1.1);
  background: var(--white);
}

/* Caption ở dưới */
.culture-card__caption {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 4px rgba(0,0,0,.6);
}

@media (max-width: 900px) {
  .culture-gallery { padding: 24px 0; overflow: hidden; }
  .culture-gallery__grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
    padding: 0 calc(50% - 100px);
    scrollbar-width: none;
    max-width: none;
  }
  .culture-gallery__grid::-webkit-scrollbar { display: none; }
  .culture-card {
    flex: 0 0 200px;
    max-width: 200px;
    height: 356px;
    border-radius: 16px;
    scroll-snap-align: center;
    opacity: 0.45;
    transition: opacity .3s;
  }
  .culture-card.is-active { opacity: 1; }
  .culture-card__play { width: 56px; height: 56px; }
  .culture-card__play svg { width: 16px; height: 16px; }
  .culture-card__badge { font-size: 0.75rem; }
  .culture-card__caption { font-size: 0.82rem; }
}

/* =============================================
   ARTICLES SECTION
   ============================================= */
.articles-section {
  padding: 56px 0;
}

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

.section-header h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--gray-900);
}

.view-all {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--yellow);
  font-size: 0.875rem;
  font-weight: 600;
  transition: color .2s;
}

.view-all:hover { color: var(--yellow-dark); }

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.article-card {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #E5E7EB;
  transition: box-shadow .3s, transform .3s;
  background: var(--white);
  display: block;
  text-decoration: none;
}

.article-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,.10);
  transform: translateY(-3px);
}

.article-card__img {
  height: 320px;
  overflow: hidden;
}

.article-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s;
}

.article-card:hover .article-card__img img { transform: scale(1.06); }

.article-card__body {
  padding: 24px;
}

.article-badge {
  display: inline-block;
  background: var(--yellow);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.article-card__body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.35;
  color: #111827;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .2s;
}

.article-card:hover h3 { color: var(--yellow); }

.article-card__body p {
  font-size: 0.95rem;
  color: #6B7280;
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.65;
}

.article-meta {
  display: flex;
  gap: 20px;
  font-size: 0.875rem;
  color: #9CA3AF;
  align-items: center;
}

.meta-date, .meta-author {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.meta-date svg, .meta-author svg {
  flex-shrink: 0;
  color: #9CA3AF;
}

@media (max-width: 900px) {
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .article-card__body { padding: 16px; }
  .article-card__body h3 { font-size: 1.1rem; }
  .article-meta { gap: 12px; font-size: 0.8rem; }
}

@media (max-width: 560px) {
  .articles-grid { grid-template-columns: 1fr; }
  .article-card__body { padding: 16px; }
  .article-meta { gap: 12px; font-size: 0.8rem; }
}

/* =============================================
   CTA BANNER
   ============================================= */
.cta-banner {
  background: linear-gradient(to right, var(--yellow), #FFA500);
  padding: 80px 0 48px;
  overflow: hidden;
}

.cta-banner .featured-grid {
  margin-top: 48px;
}

.cta-banner__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  text-align: center;
}

.mascot-group {
  display: flex;
  align-items: flex-end;
  flex-shrink: 0;
  position: relative;
}

.mascot {
  height: 250px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,.15));
  flex-shrink: 0;
}

.mascot--boy {
  animation: mascotFloat 3s ease-in-out infinite;
}

.mascot--girl {
  animation: mascotFloat 3s ease-in-out infinite .5s;
  margin-left: -140px;
  z-index: 1;
}

@keyframes mascotFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-14px); }
}

.cta-banner__text {
  flex: 0 0 auto;
  color: var(--white);
  max-width: 500px;
}

.cta-banner__text h2 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.cta-banner__text p {
  font-size: 1.125rem;
  color: rgba(255,255,255,.95);
  margin-bottom: 32px;
  line-height: 1.65;
}

.btn-cta {
  display: inline-block;
  background: var(--white);
  color: var(--yellow);
  font-weight: 700;
  font-size: 1.125rem;
  padding: 16px 40px;
  border-radius: 999px;
  transition: opacity .2s, transform .2s;
}

.btn-cta:hover {
  opacity: .92;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .cta-banner { padding: 48px 0; }
  .cta-banner__inner { flex-direction: column; gap: 24px; }
  .mascot { height: 160px; }
  .mascot-group { justify-content: center; }
  .mascot--girl { margin-left: -950px; }
  .cta-banner__text h2 { font-size: 1.6rem; }
  .cta-banner__text p { font-size: 1rem; }
}

/* =============================================
   FEATURED SECTION (nằm trong .cta-banner)
   ============================================= */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.featured-card {
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 4px 20px rgba(0,0,0,.12);
  transition: box-shadow .3s, transform .3s;
}

.featured-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,.18);
  transform: translateY(-4px);
}

.featured-card__header {
  padding: 20px 20px 12px;
}

.featured-col__label {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--yellow);
  margin-bottom: 4px;
}

.featured-col__quote {
  font-size: 0.85rem;
  color: var(--gray-600);
  font-style: italic;
  margin: 0;
}

.featured-card__img {
  height: 220px;
  overflow: hidden;
  flex-shrink: 0;
}

.featured-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s;
}

.featured-card:hover .featured-card__img img { transform: scale(1.05); }

.featured-card__body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.featured-card__body h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 10px;
  line-height: 1.4;
}

.featured-card__body p {
  font-size: 0.875rem;
  color: var(--gray-600);
  margin-bottom: 16px;
  line-height: 1.6;
  flex: 1;
}

.read-more {
  color: var(--yellow);
  font-weight: 600;
  font-size: 0.875rem;
  transition: color .2s;
}

.featured-card:hover .read-more { color: var(--yellow-dark); }

@media (max-width: 900px) {
  .featured-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* =============================================
   STORE SECTION
   ============================================= */
.store-section {
  background: var(--yellow-light);
  padding: 64px 0;
}

.store-section__header {
  text-align: center;
  margin-bottom: 40px;
}

.store-section__header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.section-sub {
  font-size: 0.9rem;
  color: var(--gray-600);
  margin-top: 6px;
}

.text-yellow { color: var(--yellow); }

.store-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.product-card {
  display: block;
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .3s, transform .3s;
  text-align: left;
}

.product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.product-card__img {
  height: 200px;
  overflow: hidden;
}

.product-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}

.product-card:hover .product-card__img img { transform: scale(1.05); }

.product-card h4 {
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 14px 4px;
  color: var(--gray-900);
  transition: color .2s;
}

.product-card:hover h4 { color: var(--yellow); }

.product-card p {
  font-size: 0.9rem;
  color: var(--gray-600);
  padding: 4px 14px 14px;
  font-weight: 400;
}

.store-section__cta {
  text-align: center;
  margin-top: 40px;
}

.btn-primary {
  background: var(--yellow);
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 40px;
  border-radius: 999px;
  transition: background .2s, transform .2s;
}

.btn-primary:hover {
  background: var(--yellow-dark);
  transform: translateY(-2px);
}

@media (max-width: 1024px) {
  .store-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .store-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: #0F172A;
  color: var(--white);
  padding: 56px 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 48px;
}

.footer__logo {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--yellow);
  margin-bottom: 16px;
}

.footer__brand p {
  font-size: 0.9rem;
  color: #94A3B8;
  line-height: 1.7;
}

.footer__col h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--yellow);
  margin-bottom: 20px;
}

.footer__col ul li {
  margin-bottom: 12px;
}

.footer__col ul li a {
  font-size: 0.9rem;
  color: #94A3B8;
  transition: color .2s;
}

.footer__col ul li a:hover { color: var(--white); }

.footer__social {
  display: flex;
  gap: 16px;
  align-items: center;
}

.footer__social a {
  color: #94A3B8;
  transition: color .2s;
  display: flex;
  align-items: center;
}

.footer__social a:hover { color: var(--white); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0;
  text-align: center;
}

.footer__bottom p {
  font-size: 0.875rem;
  color: #94A3B8;
}

@media (max-width: 768px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  .footer__grid { grid-template-columns: 1fr; }
}
