/* ===================================================
   TICARE HOMEPAGE CSS — PREMIUM REDESIGN V3
   Palette: Luxury Navy #1B2A4A | Rich Gold #C5975B | Pure White
=================================================== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --navy:   #1B2A4A;
  --navy2:  #243459;
  --gold:   #C5975B;
  --gold2:  #B8864A;
  --cream:  #F8F9FC;
  --cream2: #F0F4FF;
  --white:  #FFFFFF;
  --text:   #2D3748;
  --text2:  #718096;
  --border: rgba(27, 42, 74, 0.06);
  --radius: 20px;
  --shadow: 0 10px 30px rgba(27, 42, 74, 0.05);
  --shadow-hover: 0 20px 40px rgba(27, 42, 74, 0.1);
  --max-w: 1440px;
  --ff-serif: 'Playfair Display', Georgia, serif;
  --ff-sans: 'Inter', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--ff-sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ===================== HERO ===================== */
.hero-new {
  background: linear-gradient(135deg, #FAF8F5 0%, #F5F2EB 50%, #ECE6DC 100%);
  padding: 40px 0 0;
  overflow: hidden;
  position: relative;
  color: var(--navy);
}

.hero-blob {
  position: absolute;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(197, 151, 91, 0.1) 0%, transparent 70%);
  filter: blur(80px);
  border-radius: 50%;
  z-index: 0;
  top: -200px;
  right: -200px;
  animation: floatBlob 20s infinite alternate;
}

@keyframes floatBlob {
  0% { transform: translate(-5%, -5%) scale(1); }
  100% { transform: translate(5%, 5%) scale(1.05); }
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1.5px solid rgba(197, 151, 91, 0.4);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 8px 18px;
  border-radius: 50px;
  margin-bottom: 24px;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(197, 151, 91, 0.05);
}

.badge-heart { color: #C5975B; font-size: 0.95rem; }

.hero-title {
  font-family: var(--ff-serif);
  font-size: clamp(2.8rem, 5.5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--navy);
  margin-bottom: 20px;
}
.hero-title em {
  font-style: italic;
  color: var(--gold);
  display: block;
}

.hero-desc {
  font-size: 1.2rem;
  color: var(--text2);
  line-height: 1.8;
  margin-bottom: 35px;
  max-width: 580px;
}

.hero-services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.hero-svc-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  background: var(--white);
  border: 1px solid rgba(197, 151, 91, 0.12);
  padding: 15px 10px;
  border-radius: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(27, 42, 74, 0.02);
}

.hero-svc-item:hover {
  background: var(--white);
  border-color: var(--gold);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.hero-svc-icon {
  width: 54px; height: 54px;
  background: rgba(197, 151, 91, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
  transition: all 0.3s;
  font-size: 1.25rem;
}

.hero-svc-item:hover .hero-svc-icon {
  background: var(--gold);
  color: white;
}

.hero-svc-item span {
  font-size: 0.88rem;
  color: var(--navy);
  font-weight: 600;
  line-height: 1.4;
}

.hero-btns {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--navy);
  color: white;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 15px 32px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--navy2);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(27, 42, 74, 0.15);
}

.btn-outline-gold {
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--gold);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 14px 30px;
  border-radius: 12px;
  transition: all 0.3s;
  cursor: pointer;
}

.btn-outline-gold:hover {
  border-color: var(--gold2);
  background: rgba(197, 151, 91, 0.08);
  color: var(--gold2);
}

/* Hero right image */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  margin-top: -40px;
  margin-bottom: -80px;
  z-index: 1;
}
.hero-visual img {
  width: 100%;
  max-width: 640px;
  border-radius: 0;
  object-fit: cover;
  object-position: top center;
  height: 640px;
  max-height: none;
  /* Ultra-smooth multi-stop double-directional masking to fade left & bottom borders perfectly into the background */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.12) 6%, rgba(0,0,0,0.85) 35%, black 75%),
                      linear-gradient(to top, transparent 0%, rgba(0,0,0,0.1) 5%, rgba(0,0,0,0.9) 25%, black 50%);
  -webkit-mask-composite: destination-in;
  mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.12) 6%, rgba(0,0,0,0.85) 35%, black 75%),
              linear-gradient(to top, transparent 0%, rgba(0,0,0,0.1) 5%, rgba(0,0,0,0.9) 25%, black 50%);
  mask-composite: intersect;
  filter: drop-shadow(0 15px 25px rgba(27, 42, 74, 0.03));
  transition: all 0.3s ease;
}

/* Floating card */
.hero-float-card {
  position: absolute;
  bottom: 40px;
  right: 5%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(197, 151, 91, 0.2);
  border-radius: 20px;
  padding: 14px 22px;
  box-shadow: 0 12px 30px rgba(27, 42, 74, 0.08);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 260px;
  z-index: 4;
}
.hero-float-icon {
  width: 40px; height: 40px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}
.hero-float-text strong { font-size: 0.85rem; color: var(--navy); display: block; font-family: var(--ff-serif); }
.hero-float-text span  { font-size: 0.72rem;  color: var(--text2); }

/* Wave separator */
.hero-wave {
  margin-top: 0;
  line-height: 0;
  overflow: hidden;
  position: relative;
  z-index: 3;
}
.hero-wave svg { width: 100%; height: 80px; display: block; }

/* ===================== TICARE CÓ THỂ GIÚP MẸ ===================== */
.help-mom {
  background: var(--white);
  padding: 100px 0;
}
.help-mom-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
}
.help-title {
  font-family: var(--ff-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--navy);
  text-align: center;
  margin-bottom: 12px;
}
.title-heart-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 45px;
  color: var(--gold);
  font-size: 1rem;
}
.title-heart-line::before,
.title-heart-line::after {
  content: '';
  height: 1px;
  background: var(--border);
  width: 60px;
}

.help-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  justify-content: center;
}
.help-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 22px;
  text-align: center;
  transition: all 0.35s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.help-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-6px);
  border-color: rgba(197, 151, 91, 0.3);
}
.help-icon {
  width: 68px; height: 68px;
  background: rgba(197, 151, 91, 0.08);
  border-radius: 16px;
  margin: 0 auto 20px;
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  font-size: 2.2rem;
  line-height: 1;
}
.help-icon svg {
  width: 34px !important;
  height: 34px !important;
}
.help-card:hover .help-icon {
  background: var(--gold);
  color: white;
  transform: scale(1.05);
}
.help-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.4;
}
.help-card p {
  font-size: 0.88rem;
  color: var(--text2);
  line-height: 1.5;
}

/* ===================== VỀ TICARE ===================== */
.about-new {
  background: #FAFBFC;
  padding: 100px 0;
  border-top: 1px solid rgba(27, 42, 74, 0.03);
  border-bottom: 1px solid rgba(27, 42, 74, 0.03);
}
.about-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 1fr 0.8fr;
  gap: 60px;
  align-items: center;
}
.about-img img {
  width: 100%;
  border-radius: 24px;
  object-fit: cover;
  max-height: 400px;
  box-shadow: 0 20px 40px rgba(27, 42, 74, 0.08);
}
.section-title {
  font-family: var(--ff-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}
.about-text p {
  font-size: 1.15rem;
  color: var(--text2);
  line-height: 1.8;
  margin-bottom: 30px;
}
.btn-navy-solid {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 15px 32px;
  border-radius: 12px;
  transition: all 0.3s ease;
}
.btn-navy-solid:hover {
  background: var(--navy2);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(27, 42, 74, 0.15);
}

/* Stats */
.about-stats {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.stat-item {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--white);
  border-radius: 16px;
  padding: 20px 24px;
  box-shadow: 0 4px 20px rgba(27, 42, 74, 0.03);
  border: 1px solid rgba(27, 42, 74, 0.03);
}
.stat-icon {
  width: 56px; height: 56px;
  background: rgba(197, 151, 91, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.35rem;
  flex-shrink: 0;
}
.stat-icon svg { width: 26px; height: 26px; stroke: currentColor; }
.stat-text strong { display: block; font-size: 1.75rem; font-weight: 700; color: var(--navy); font-family: var(--ff-serif); line-height: 1.2; }
.stat-text span { font-size: 0.95rem; color: var(--text2); }

/* ===================== KIẾN THỨC + KHÓA HỌC ===================== */
.knowledge-course {
  background: var(--white);
  padding: 100px 0;
}
.kc-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.kc-section h3 {
  font-family: var(--ff-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.kc-section h3 a {
  font-family: var(--ff-sans);
  font-size: 0.9rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.kc-section h3 a:hover { text-decoration: underline; }

/* Blog mini cards */
.blog-mini-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.blog-mini-card {
  display: flex;
  gap: 20px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  padding: 16px;
  border-radius: 16px;
  background: #FAFBFC;
  transition: all 0.3s;
  border: 1px solid rgba(27, 42, 74, 0.02);
}
.blog-mini-card:hover {
  background: var(--white);
  box-shadow: var(--shadow);
  border-color: rgba(197, 151, 91, 0.15);
  transform: translateY(-2px);
}
.blog-mini-thumb {
  width: 120px;
  height: 90px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
}
.blog-mini-thumb img { width: 100%; height: 100%; object-fit: cover; }
.blog-mini-body h4 { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: 6px; line-height: 1.4; }
.blog-mini-body span { font-size: 0.88rem; color: var(--text2); }

/* Course card */
.course-card {
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: all 0.3s;
}
.course-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.course-img { height: 220px; overflow: hidden; }
.course-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.course-card:hover .course-img img { transform: scale(1.03); }
.course-body { padding: 24px 30px; }
.course-body h4 { font-family: var(--ff-serif); font-size: 1.55rem; font-weight: 700; color: var(--navy); margin-bottom: 10px; line-height: 1.3; }
.course-body p { font-size: 1.05rem; color: var(--text2); margin-bottom: 24px; line-height: 1.6; }
.btn-gold {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: 12px;
  transition: all 0.3s;
}
.btn-gold:hover {
  background: var(--gold2);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(197,151,91,0.25);
}
.course-dots { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
.course-dots .dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(27,42,74,0.15); cursor: pointer; transition: background 0.3s ease; }
.course-dots .dot.active { background: var(--gold); }

/* ===================== CTA BANNER ===================== */
.cta-banner {
  background: linear-gradient(135deg, #1B2A4A 0%, #243459 100%);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 10% 90%, rgba(197, 151, 91, 0.1) 0%, transparent 60%);
  pointer-events: none;
}
.cta-banner-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  position: relative;
  z-index: 1;
}
.cta-banner-left { display: flex; align-items: center; gap: 24px; }
.cta-banner-icon {
  width: 68px; height: 68px;
  background: rgba(197, 151, 91, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}
.cta-banner-icon svg { width: 32px; height: 32px; stroke: currentColor; }
.cta-banner-text h3 {
  font-family: var(--ff-serif);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}
.cta-banner-text p { font-size: 1.15rem; color: rgba(255,255,255,0.7); }
.btn-gold-outline {
  background: var(--gold);
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 15px 36px;
  border-radius: 12px;
  white-space: nowrap;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
}
.btn-gold-outline:hover {
  background: var(--gold2);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(197, 151, 91, 0.3);
}

/* ===================== FOOTER ===================== */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.8);
  padding: 60px 0 20px;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr 0.9fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  text-decoration: none;
}
.footer-logo img { height: 44px; border-radius: 8px; }
.fl-name { display: block; font-family: var(--ff-serif); font-size: 1.1rem; font-weight: 700; color: var(--white); }
.fl-sub  { display: block; font-size: 0.55rem; color: var(--gold); letter-spacing: 0.08em; text-transform: uppercase; }
.footer-desc { font-size: 0.78rem; color: rgba(255,255,255,0.55); line-height: 1.7; }

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col ul li {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 10px;
  line-height: 1.5;
}
.footer-col ul li a { color: rgba(255,255,255,0.6); transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--gold); }

/* Social icons */
.footer-social { display: flex; gap: 10px; flex-wrap: wrap; }
.soc-circle {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  transition: background 0.2s, transform 0.2s;
}
.soc-circle:hover { background: var(--gold); transform: translateY(-2px); }

.footer-bottom {
  text-align: center;
  font-size: 0.73rem;
  color: rgba(255,255,255,0.4);
  padding-top: 12px;
}

/* ===================== REVEAL ANIMATIONS ===================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.1s; }
.reveal.d2 { transition-delay: 0.2s; }
.reveal.d3 { transition-delay: 0.3s; }
.reveal.d4 { transition-delay: 0.4s; }
.reveal.d5 { transition-delay: 0.5s; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  .hero-new {
    padding: 95px 0 0;
  }
  .hero-visual {
    margin-top: -50px;
    margin-bottom: -60px;
  }
  .hero-visual img {
    height: 480px;
    max-width: 450px;
  }
  .hero-inner {
    gap: 30px;
  }
  .help-grid { grid-template-columns: repeat(3, 1fr); }
  .about-inner { grid-template-columns: 1fr 1fr; }
  .about-stats { grid-column: 1 / -1; flex-direction: row; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .nav-links, .btn-cta-nav { display: none; }
  .mobile-toggle { display: flex; }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 20px;
  }
  .hero-visual { display: none; }
  .hero-float-card { display: none; }
  .hero-badge { margin: 0 auto 16px; }
  .hero-desc { margin: 0 auto 24px; }
  .hero-services { grid-template-columns: repeat(2, 1fr); }
  .hero-btns { justify-content: center; }

  .help-grid { grid-template-columns: repeat(2, 1fr); }
  .about-inner { grid-template-columns: 1fr; }
  .about-stats { flex-direction: column; }
  .kc-inner { grid-template-columns: 1fr; }
  .cta-banner-inner { flex-direction: column; text-align: center; }
  .cta-banner-left { flex-direction: column; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .top-bar-inner { flex-direction: column; gap: 4px; font-size: 0.7rem; text-align: center; }
}

@media (max-width: 480px) {
  .help-grid { grid-template-columns: 1fr 1fr; }
  .hero-services { grid-template-columns: repeat(2, 1fr); }
  .hero-title { font-size: 1.8rem; }
}
