/*
Theme Name: canaantai
Author: Tiểu Mỹ for Cần An Tài
Description: Custom theme for canaantai.com - Vay Tiền Online An Toàn
Version: 1.0
*/

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

:root {
  --primary: #047857;
  --primary-dark: #065f46;
  --primary-light: #34d399;
  --primary-soft: #d1fae5;
  --bg: #f0fdf4;
  --white: #ffffff;
  --text: #1a202c;
  --text-light: #64748b;
  --border: #e2e8f0;
  --shadow: 0 4px 20px rgba(4,120,87,0.1);
  --radius: 12px;
  --header-bg: #ffffff;
}

body {
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; }
ul, ol { padding-left: 1.5rem; }

/* ============ HEADER ============ */
.header {
  position: fixed; top: 0; left: 0; right: 0;
  background: var(--header-bg);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  z-index: 1000;
  padding: 0 1.5rem;
}
.header-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center;
  justify-content: space-between; height: 70px;
}
.logo { font-size: 1.5rem; font-weight: 800; color: var(--primary); }
.logo span { color: var(--primary-dark); }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a { color: var(--text); font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover { color: var(--primary); }
.cta-btn {
  display: inline-block; background: var(--primary);
  color: white !important; padding: 0.6rem 1.5rem; border-radius: 50px;
  font-weight: 600; font-size: 0.9rem;
  transition: background 0.2s, transform 0.2s;
}
.cta-btn:hover { background: var(--primary-dark); transform: translateY(-1px); }
.mobile-toggle { display: none; font-size: 1.5rem; cursor: pointer; background: none; border: none; color: var(--primary); }

/* ============ HERO ============ */
.hero {
  margin-top: 70px; background: linear-gradient(135deg, #047857 0%, #065f46 50%, #034636 100%);
  color: white; text-align: center; padding: 5rem 1.5rem 4rem;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(52,211,153,0.08) 0%, transparent 70%);
  animation: heroGlow 15s ease-in-out infinite;
}
@keyframes heroGlow {
  0%, 100% { transform: translate(0,0); }
  50% { transform: translate(-20px,-20px); }
}
.hero-inner { max-width: 800px; margin: 0 auto; position: relative; z-index: 1; }
.hero h1 { font-size: 2.8rem; font-weight: 800; margin-bottom: 1.2rem; line-height: 1.2; }
.hero p { font-size: 1.15rem; opacity: 0.9; margin-bottom: 2rem; max-width: 600px; margin-left: auto; margin-right: auto; }
.hero-cta {
  display: inline-block; background: white; color: var(--primary-dark) !important;
  padding: 1rem 2.5rem; border-radius: 50px; font-weight: 700; font-size: 1.1rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.hero-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,0.2); }
.hero-stats {
  display: flex; justify-content: center; gap: 3rem; margin-top: 3rem;
}
.hero-stat { text-align: center; }
.hero-stat .num { font-size: 1.8rem; font-weight: 800; color: var(--primary-light); }
.hero-stat .label { font-size: 0.85rem; opacity: 0.85; }

/* ============ SECTIONS ============ */
.section { padding: 4rem 1.5rem; max-width: 1200px; margin: 0 auto; }
.section-title {
  text-align: center; font-size: 2rem; font-weight: 700; margin-bottom: 0.8rem;
  color: var(--primary-dark);
}
.section-desc { text-align: center; color: var(--text-light); margin-bottom: 3rem; max-width: 600px; margin-left: auto; margin-right: auto; }

/* ============ FEATURES ============ */
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.feature-card {
  background: var(--white); border-radius: var(--radius); padding: 2rem;
  box-shadow: var(--shadow); transition: transform 0.2s;
  text-align: center;
}
.feature-card:hover { transform: translateY(-4px); }
.feature-icon {
  width: 60px; height: 60px; background: var(--primary-soft);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem; font-size: 1.5rem;
}
.feature-card h3 { color: var(--primary-dark); margin-bottom: 0.5rem; }
.feature-card p { color: var(--text-light); font-size: 0.95rem; }

/* ============ HOW IT WORKS ============ */
.steps-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}
.step-card { text-align: center; }
.step-num {
  width: 56px; height: 56px; background: var(--primary);
  color: white; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 1.3rem; font-weight: 800;
  margin: 0 auto 1rem;
}
.step-card h3 { margin-bottom: 0.5rem; color: var(--primary-dark); }
.step-card p { color: var(--text-light); font-size: 0.9rem; }

/* ============ CTA BANNER ============ */
.cta-banner {
  background: linear-gradient(135deg, #047857, #065f46);
  color: white; text-align: center; padding: 3.5rem 1.5rem; margin: 2rem 0;
}
.cta-banner h2 { font-size: 1.8rem; margin-bottom: 1rem; }
.cta-banner p { opacity: 0.9; margin-bottom: 1.5rem; }

/* ============ BLOG ============ */
.blog-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.blog-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform 0.2s;
}
.blog-card:hover { transform: translateY(-4px); }
.blog-card img { width: 100%; height: 200px; object-fit: cover; }
.blog-card-body { padding: 1.5rem; }
.blog-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.blog-card h3 a { color: var(--text); }
.blog-card h3 a:hover { color: var(--primary); }
.blog-card .meta { color: var(--text-light); font-size: 0.8rem; margin-bottom: 0.5rem; }
.blog-card p { color: var(--text-light); font-size: 0.9rem; }
.read-more { color: var(--primary); font-weight: 600; font-size: 0.9rem; }

/* ============ FAQ ============ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: var(--white); border-radius: var(--radius); margin-bottom: 1rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05); overflow: hidden;
}
.faq-question {
  padding: 1.2rem 1.5rem; font-weight: 600; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-question::after {
  content: '+'; font-size: 1.3rem; color: var(--primary);
  transition: transform 0.2s;
}
.faq-item.active .faq-question::after { transform: rotate(45deg); }
.faq-answer {
  padding: 0 1.5rem 1.2rem; color: var(--text-light); font-size: 0.95rem;
  display: none;
}
.faq-item.active .faq-answer { display: block; }

/* ============ OFFERS GRID ============ */
.offers-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}
.offer-card {
  background: var(--white); border-radius: var(--radius); padding: 2rem 1.5rem;
  text-align: center; box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex; flex-direction: column; align-items: center;
}
.offer-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(4,120,87,0.15); }
.offer-logo {
  width: 80px; height: 80px; border-radius: 50%; object-fit: cover;
  margin-bottom: 1rem; border: 3px solid var(--primary-soft);
}
.offer-card h3 { color: var(--primary-dark); font-size: 1.15rem; margin-bottom: 0.5rem; }
.offer-card p { color: var(--text-light); font-size: 0.85rem; margin-bottom: 1.2rem; flex-grow: 1; }
.offer-cta {
  display: inline-block; background: var(--primary); color: white !important;
  padding: 0.7rem 1.8rem; border-radius: 50px; font-weight: 600;
  font-size: 0.9rem; transition: background 0.2s, transform 0.2s; width: 100%;
}
.offer-cta:hover { background: var(--primary-dark); transform: translateY(-1px); }

/* ============ PAGE CONTENT ============ */
.page-content { max-width: 800px; margin: 100px auto 0; padding: 0 1.5rem 3rem; }
.page-content h1 { font-size: 2rem; color: var(--primary-dark); margin-bottom: 1rem; }
.page-content h2 { font-size: 1.4rem; color: var(--primary-dark); margin: 1.5rem 0 0.8rem; }
.page-content h3 { font-size: 1.15rem; color: var(--primary); margin: 1.2rem 0 0.5rem; }
.page-content p { margin-bottom: 1rem; }
.page-content ul, .page-content ol { margin-bottom: 1rem; }
.page-content li { margin-bottom: 0.3rem; }

/* ============ FOOTER ============ */
.footer {
  background: var(--primary-dark); color: white; padding: 3rem 1.5rem 1.5rem;
  margin-top: 3rem;
}
.footer-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; }
.footer h4 { font-size: 1rem; margin-bottom: 1rem; color: var(--primary-light); }
.footer a { color: rgba(255,255,255,0.8); display: block; margin-bottom: 0.4rem; font-size: 0.9rem; }
.footer a:hover { color: white; }
.footer-bottom { text-align: center; padding-top: 2rem; margin-top: 2rem; border-top: 1px solid rgba(255,255,255,0.15); font-size: 0.85rem; opacity: 0.8; }

/* ============ RESPONSIVE ============ */
@media(max-width:768px) {
  .nav-links { display: none; }
  .mobile-toggle { display: block; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top:70px; left:0; right:0; background:white; padding:1rem; box-shadow:0 4px 10px rgba(0,0,0,0.1); }
  .hero h1 { font-size: 1.8rem; }
  .hero-stats { flex-direction: column; gap: 1rem; }
  .section-title { font-size: 1.5rem; }
}

/* ============ BLOG SINGLE ============ */
.blog-content { max-width: 800px; margin: 100px auto 0; padding: 0 1.5rem 3rem; }
.blog-content h1 { font-size: 2rem; color: var(--primary-dark); margin: 1rem 0; }
.blog-content h2 { font-size: 1.4rem; color: var(--primary-dark); margin: 1.5rem 0 0.8rem; }
.blog-content h3 { font-size: 1.15rem; color: var(--primary); margin: 1.2rem 0 0.5rem; }
.blog-content p { margin-bottom: 1rem; line-height: 1.8; }
.blog-content ul, .blog-content ol { margin-bottom: 1rem; }
.blog-content li { margin-bottom: 0.3rem; }
.blog-content .featured-image { width: 100%; border-radius: var(--radius); margin-bottom: 1.5rem; }
.blog-meta { color: var(--text-light); font-size: 0.9rem; margin-bottom: 1.5rem; }
