:root {
  --dark: #111;
  --muted: #777;
  --light: #fff;
  --radius: 12px;
}

body { margin: 0; font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif; color: var(--dark); }
img { width: 100%; display: block; }

/* HERO */
.hero {
  min-height: 85vh;
  background: url('/public/assets/img/hero.jpg') center / cover no-repeat;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 0 7% 8%;
  margin-top: 80px; /* align with header height */
}
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,.15)); }
.hero-content { position: relative; z-index: 2; max-width: 520px; color: var(--light); animation: fadeUp .9s ease forwards; opacity: 0; }
.hero-content h1 { font-size: clamp(2.4rem, 4vw, 3.6rem); font-weight: 300; margin-bottom: 12px; }
.hero-content p { font-size: 1.15rem; margin-bottom: 26px; }
.hero-btn { padding: 12px 32px; background: var(--light); color: #000; border-radius: 30px; font-weight: 500; transition: .3s; text-decoration: none;}
.hero-btn:hover { background: #000; color: #fff; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.95rem;
  transition: background 0.3s ease;
}
.btn.danger {
  background: #e53935;
  color: #fff;
}
.btn.danger:hover {
  background: #c62828;
}
/* SECTION TITLES */
section h2 { text-align: center; font-size: 2.1rem; font-weight: 400; margin: 80px 0 40px; }

/* CATEGORY SHOWCASE */
.home-about { 
  display: grid; 
  grid-template-columns: repeat(4, 1fr); 
  gap: 22px; 
  padding: 70px 7%; 
}
.each-sample { 
  aspect-ratio: 3 / 4; 
  min-height: 280px; 
  background-size: cover; 
  background-position: center; 
  border-radius: var(--radius); 
  transition: transform .35s ease;
  text-align: center;
}
.each-sample:hover { transform: scale(1.04); }

/* NEW IN */
.new-in-wrapper { display: grid; grid-template-columns: 40% 60%; gap: 32px; padding: 0 7%; margin-bottom: 90px; }
.newInLeft { 
  min-height: 560px; 
  background: url('/public/assets/img/hero.jpg');  
  background-repeat: no-repeat;
  background-size: auto;
  border-radius: var(--radius); 
}
.newInRight { display: grid; grid-template-rows: 1fr; gap: 22px; }
.newInRight a { text-decoration: none; color: #253746; }
.newInRightTop { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.newInRightTopEach { text-decoration: none; color: #253746; }
.newInRightTopEach img { aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); }
.newInRightTopEach p { margin: 8px 0 0; font-size: .95rem; }
.newInRightTopEach p:last-child { font-size: .85rem; color: var(--muted); margin: 8px 0; }

/* CAROUSELS */
.carousel-wrapper { position: relative; padding: 0 7%; margin-bottom: 90px; }
.carousel-track { display: flex; gap: 22px; overflow-x: auto; scroll-behavior: smooth; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-card { min-width: 200px; max-width: 200px; flex-shrink: 0; text-decoration: none; color: var(--dark); }
.carousel-card a { text-decoration:none; color: #253746; }
.image-wrapper img { aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); }
.card-info { margin-top: 6px; }
.course-title, .course-titles { font-size: .95rem; font-weight: 500; }
.course-short { font-size: .85rem; color: var(--muted); }
.carousel-btn {
  position: absolute; top: 42%; transform: translateY(-50%);
  background: #fff; border: none; font-size: 24px; padding: 10px 14px; border-radius: 50%;
  cursor: pointer; box-shadow: 0 6px 20px rgba(0,0,0,.18);
}
.carousel-btn.left { left: 18px; }
.carousel-btn.right { right: 18px; }

/* RESPONSIVE */
@media (max-width: 1000px) {
  .home-about { grid-template-columns: 1fr; }
  .new-in-wrapper { grid-template-columns: 1fr; }
  .newInLeft { min-height: 420px; }
  .newInRightTop, .newInRightBottom { grid-template-columns: repeat(2, 1fr); }
  .carousel-btn { display: none; }
}
@media (max-width: 500px) {
  .each-sample { aspect-ratio: auto; height: 320px; }
  section h2 { font-size: 1.7rem; }
  .newInRightTop, .newInRightBottom { grid-template-columns: 1fr; }
  .newInLeft { min-height: 220px; }
  .carousel-card { min-width: 150px; max-width: 150px; }
}

/* VARIANT MODAL (shared classes styled in header.css to avoid duplication) */