/* Home page styles from muaday_home.html */
:root{
  /* Theme colors taken from Muaday.vn CSS */
  --bg:#ffffff;
  --bgSoft:#f1f1f1;
  --card:#ffffff;
  --card2:#ffffff;

  --text:#272a15;
  --muted:#476248;
  --line:rgba(39,42,21,.14);

  --brand:#7db208;
  --brandDark:#216d39;
  --brandLight:#bcdd7a;
  --accent:#F7953C;
  --hero:#32a549;

  --shadow: 0 12px 28px rgba(0,0,0,.10);
  --radius:18px;
}

body{
  background:
    radial-gradient(1100px 700px at 20% 0%, rgba(125,178,8,.18), transparent 60%),
    radial-gradient(900px 650px at 90% 10%, rgba(247,149,60,.12), transparent 55%),
    radial-gradient(1000px 700px at 40% 100%, rgba(33,109,57,.10), transparent 60%),
    var(--bg);
}

.container{max-width:1120px; margin:0 auto; padding:0 18px}

/* Hero Banner - New Design */
.hero-banner {
  background:  rgb(242, 245, 212);
  padding: 10px 0 12px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.hero-banner::before {
  display: none;
}

.hero {
  position: relative;
  z-index: 2;
  padding: 0;
}

.hero-wrapper {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
}

.hero-content {
  max-width: 100%;
  padding-right: 0;
  text-align: center;
}

.hero-image {
  width: 100%;
  max-width: 1000px;
  order: 2;
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
}

.hero-title {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text);
  margin: 0 0 12px 0;
}

.hero-subtitle {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 20px 0;
  max-width: 100%;
}

.hero-buttons, .hero-buttons-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  justify-content: center;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.hero-btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brandDark) 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(125, 178, 8, 0.3);
}

.hero-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(125, 178, 8, 0.4);
  text-decoration: none;
  color: white;
}

.hero-btn-secondary {
  background: linear-gradient(135deg, var(--hero) 0%, var(--brandDark) 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(50, 165, 73, 0.3);
}

.hero-btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(50, 165, 73, 0.4);
  text-decoration: none;
  color: white;
}

.hero-btn-outline {
  background: white;
  color: var(--text);
  border: 2px solid var(--line);
}

.hero-btn-outline:hover {
  border-color: var(--brand);
  background: rgba(125, 178, 8, 0.05);
  transform: translateY(-2px);
  text-decoration: none;
  color: var(--text);
}

.hero-btn-accent {
  background: linear-gradient(135deg, var(--accent) 0%, #e67e22 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(247, 149, 60, 0.3);
}

.hero-btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(247, 149, 60, 0.4);
  text-decoration: none;
  color: white;
}

/* Old Hero Styles - Keep for backwards compatibility */
.heroGrid{
  display:grid;
  grid-template-columns: 1fr;
  gap:18px;
  align-items:stretch;
}
.heroCard{
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.70));
  border:1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
  position:relative;
}
.heroCard::before{
  content:"";
  position:absolute; inset:-2px;
  background:
    radial-gradient(600px 320px at 18% 0%, rgba(125,178,8,.20), transparent 62%),
    radial-gradient(600px 320px at 82% 0%, rgba(247,149,60,.14), transparent 62%);
  pointer-events:none;
}
.heroInner{position:relative; padding:22px}

.heroTop{
  display:flex;
  gap:16px;
  align-items:flex-start;
  justify-content:space-between;
}
.heroCopy{min-width:0}
.heroArt{
  width:180px;
  height:180px;
  flex:0 0 auto;
  border-radius: 22px;
  border:1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(241,241,241,.72));
  display:block;
  overflow:hidden;
  box-shadow: 0 10px 22px rgba(0,0,0,.08);
}
.heroArt svg{width:100%; height:100%}

.kicker{color: rgba(39,42,21,.60); font-weight:700; letter-spacing:.2px}
.hero h1{margin:8px 0 10px; font-size:28px; line-height:1.15}
.sub{color:var(--muted); max-width:64ch}

.heroActions{
  margin-top:18px;
  display:grid;
  grid-template-columns: 1fr;
  gap:12px;
}

.actionCard{
  background: rgba(255,255,255,.88);
  border:1px solid var(--line);
  border-radius: 16px;
  padding:14px;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
  text-decoration:none;
  color:inherit;
}
.actionCard:hover{
  transform: translateY(-2px);
  border-color: rgba(32,96,0,.28);
  background: rgba(255,255,255,.96);
  text-decoration:none;
}
.actionTitle{font-weight:800; margin:0 0 2px; font-size:16px}
.actionDesc{margin:0; color:var(--muted); font-size:13px}
.pill{
  flex:0 0 auto;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.70);
  font-weight:700;
  font-size:12px;
  color: rgba(39,42,21,.75);
}

/* Sections */
section{padding:26px 0}
.sectionHead{display:flex; align-items:flex-end; justify-content:space-between; gap:14px; margin-bottom:12px}
.sectionTitle{margin:0; font-size:36px; font-weight:700; line-height:1.2}
.sectionDesc{margin:0; color:var(--muted); font-size:26px; line-height:1.4}

.grid{display:grid; grid-template-columns: 1fr; gap:12px}

/* Hubs */
.hubGrid{display:grid; grid-template-columns: 1fr; gap:12px}
.hubCard{display:block}
.hubLayout{display:grid; grid-template-columns: 1fr; gap:12px}
.hubMeta{
  display:flex;
  flex-direction:column;
  gap:10px;
  padding:2px 2px 0;
}
.hubTop{display:flex; align-items:center; justify-content:space-between; gap:10px}
.hubName{margin:0; font-weight:900; font-size:22px; line-height:1.3}
.hubText{margin:0; color:var(--muted); font-size:16px; line-height:1.4}

/* Preview cards in hubs */
.previewGrid{display:grid; grid-template-columns:1fr 1fr; gap:10px}
.previewCard{
  display:block;
  border:1px solid var(--line);
  border-radius:16px;
  overflow:hidden;
  background: rgba(255,255,255,.92);
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
  text-decoration:none;
  color:inherit;
}
.previewCard:hover{
  transform: translateY(-2px); 
  border-color: rgba(125,178,8,.30); 
  background: rgba(255,255,255,.98);
  text-decoration:none;
}
.previewCard img{width:100%; height:120px; object-fit:cover; display:block}
.previewCard h4{margin:10px 12px 12px; font-size:14px; line-height:1.25}

/* Topic layout */
.topicBlock{margin-bottom:12px}
.topicTitle{margin:0; font-size:22px; font-weight:600; line-height:1.3}
.topicDesc{margin:0; color:var(--muted); font-size:16px; line-height:1.4}
.topicLayout{display:grid; grid-template-columns:1fr; gap:12px}
.featured{
  display:block;
  border-radius:18px;
  overflow:hidden;
  border:1px solid var(--line);
  background: rgba(255,255,255,.92);
  box-shadow: 0 10px 22px rgba(0,0,0,.06);
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
  text-decoration:none;
  color:inherit;
}
.featured:hover{
  transform: translateY(-2px); 
  border-color: rgba(125,178,8,.30); 
  background: rgba(255,255,255,.98);
  text-decoration:none;
}
.featuredImg{width:100%; height:180px; object-fit:cover; display:block}
.featuredBody{padding:12px}
.featuredTitle{margin:0 0 6px; font-weight:900; font-size:16px}
.featuredDesc{margin:0; color: rgba(39,42,21,.70); font-size:13px}

.compactList{display:grid; gap:10px}
.compactItem{
  display:flex;
  gap:12px;
  align-items:center;
  border:1px solid var(--line);
  background: rgba(255,255,255,.92);
  border-radius:16px;
  padding:10px 12px;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
  text-decoration:none;
  color:inherit;
}
.compactItem:hover{
  transform: translateY(-1px); 
  border-color: rgba(125,178,8,.30); 
  background: rgba(255,255,255,.98);
  text-decoration:none;
}
.compactDot{
  width:10px; height:10px; border-radius:999px;
  background: linear-gradient(135deg, var(--brand), var(--brandDark));
  box-shadow: 0 8px 16px rgba(33,109,57,.14);
  flex:0 0 auto;
}
.compactBody{min-width:0}
.compactMeta{font-size:12px; font-weight:800; color: rgba(39,42,21,.65)}
.compactTitle{margin:2px 0 0; font-weight:900; font-size:14px; line-height:1.25}
.compactDesc{margin:4px 0 0; color: rgba(39,42,21,.70); font-size:13px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden}

.card{
  background: rgba(255,255,255,.92);
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding:16px;
  box-shadow: 0 10px 22px rgba(0,0,0,.08);
}

/* How it works */
.steps{display:grid; grid-template-columns:1fr; gap:12px}
.step{display:flex; gap:12px; align-items:flex-start}
.stepNum{
  width:34px; height:34px; border-radius:12px;
  display:grid; place-items:center;
  font-weight:900;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  flex:0 0 auto;
}
.step h3{margin:0 0 2px; font-size:14px}
.step p{margin:0; color:var(--muted); font-size:13px}

/* Merchant */
.split{display:grid; grid-template-columns: 1fr; gap:12px}
.bullets{margin:8px 0 0; padding-left:18px; color:var(--muted); font-size:13px}

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:8px;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  color:var(--text);
  cursor:pointer;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
  font-weight:600;
  text-decoration:none;
}
.btn:hover{
  transform: translateY(-1px); 
  background: rgba(255,255,255,.06); 
  border-color: rgba(255,255,255,.16);
  text-decoration:none;
}
.btn.primary{
  background: linear-gradient(135deg, var(--brand), var(--brandDark));
  border-color: rgba(125,178,8,.35);
  color:#ffffff;
}
.btn.primary:hover{
  background: linear-gradient(135deg, var(--brand), rgba(247,149,60,.35));
}

/* Mobile-only button */
.btn-mobile-only {
  display: flex;
  width: 100%;
  margin-top: 16px;
  background: linear-gradient(135deg, var(--brand), var(--brandDark));
  border-color: rgba(125,178,8,.35);
  color: #ffffff;
  font-weight: 600;
}

.btn-mobile-only:hover {
  background: linear-gradient(135deg, var(--brand), rgba(247,149,60,.35));
  text-decoration: none;
}

/* Hide desktop "Xem thêm" on mobile */
@media (max-width: 719px) {
  .sectionHead .btn {
    display: none;
  }
}

/* Responsive */
@media (min-width: 720px){
  /* Hide mobile-only buttons on desktop */
  .btn-mobile-only {
    display: none !important;
  }
  
  /* Desktop button - more attractive styling */
  .sectionHead .btn {
    background: linear-gradient(135deg, var(--brand), var(--brandDark));
    border-color: rgba(125,178,8,.35);
    color: #ffffff;
    font-weight: 700;
    padding: 10px 20px;
    box-shadow: 0 4px 12px rgba(125,178,8,.25);
  }
  
  .sectionHead .btn:hover {
    background: linear-gradient(135deg, var(--accent), #d97a2a);
    border-color: rgba(247,149,60,.45);
    box-shadow: 0 6px 16px rgba(247,149,60,.35);
    transform: translateY(-2px);
  }
  
  /* New Hero Banner Responsive */
  .hero-banner {
    padding: 15px 0;
  }
  
  .hero-wrapper {
    flex-direction: row;
    gap: 40px;
    align-items: center;
  }
  
  .hero-content {
    flex: 1;
    max-width: 40%;
    text-align: left;
  }
  
  .hero-image {
    flex: 1.5;
    max-width: 60%;
    order: 2;
  }
  
  .hero-title {
    font-size: 38px;
  }
  
  .hero-subtitle {
    font-size: 16px;
  }
  
  .hero-buttons, .hero-buttons-row {
    justify-content: flex-start;
    gap: 10px;
  }
  
  .hero-btn {
    padding: 12px 20px;
    font-size: 14px;
  }

  /* Old Hero Styles */
  .hero{padding:48px 0 10px}
  .heroGrid{grid-template-columns: 1.25fr .75fr}
  .hero h1{font-size:36px}

  .grid{grid-template-columns: repeat(2, 1fr)}
  .steps{grid-template-columns: repeat(3, 1fr)}
  .step{flex-direction:column}
  .split{grid-template-columns: 1.25fr .75fr}

  /* Hubs: meta + thumbs in 2 columns */
  .hubLayout{grid-template-columns: 280px 1fr; align-items:start}
  .previewGrid{grid-template-columns: repeat(4, 1fr)}
  .previewCard img{height:140px}

  /* Topics: featured + list side-by-side */
  .topicLayout{grid-template-columns: 1.2fr .8fr; align-items:start}
  .featuredImg{height:220px}
}

@media (min-width: 1020px){
  /* New Hero Banner Responsive */
  .hero-banner {
    padding: 20px 0;
  }
  
  .hero-wrapper {
    gap: 60px;
  }
  
  .hero-content {
    max-width: 40%;
  }
  
  .hero-image {
    max-width: 60%;
  }
  
  .hero-title {
    font-size: 48px;
    margin-bottom: 16px;
  }
  
  .hero-subtitle {
    font-size: 18px;
    margin-bottom: 24px;
  }

  .grid{grid-template-columns: repeat(3, 1fr)}

  .hubLayout{grid-template-columns: 320px 1fr}
  .previewCard img{height:150px}

  .featuredImg{height:240px}
}

