/*
Theme Name: cotienxai
Author: VayMèo Network
Description: Custom theme for Có Tiền Xài - Vay Online Thần Tốc
Version: 1.0
*/

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

:root {
  --primary: #6b46c1;
  --primary-light: #9f7aea;
  --primary-dark: #553c9a;
  --primary-bg: #faf5ff;
  --accent: #f59e0b;
  --text: #1a202c;
  --text-light: #718096;
  --white: #ffffff;
  --gray-50: #f7fafc;
  --gray-100: #edf2f7;
  --gray-200: #e2e8f0;
  --gray-600: #718096;
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --radius: 12px;
}

body {
  font-family: 'Roboto', 'Segoe UI', sans-serif;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

/* Container */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.site-title { font-size: 28px; font-weight: 800; color: var(--white); text-decoration: none; }
.site-title:hover { color: var(--accent); }
.main-nav ul { list-style: none; display: flex; gap: 32px; }
.main-nav a { color: rgba(255,255,255,0.9); text-decoration: none; font-weight: 500; font-size: 16px; transition: color .3s; }
.main-nav a:hover { color: var(--accent); }
.cta-btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--accent);
  color: var(--text);
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  transition: all .3s;
  font-size: 16px;
}
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(245,158,11,0.4); color: var(--text); }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 50%, var(--primary-light) 100%);
  padding: 100px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.08) 0%, transparent 60%);
}
.hero h1 {
  font-size: 48px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 20px;
  position: relative;
}
.hero p {
  font-size: 20px;
  color: rgba(255,255,255,0.9);
  max-width: 700px;
  margin: 0 auto 35px;
  line-height: 1.8;
  position: relative;
}
.hero .cta-btn { font-size: 20px; padding: 16px 40px; position: relative; }

/* Stats */
.stats {
  padding: 60px 0;
  background: var(--white);
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.stat-item { text-align: center; padding: 30px; }
.stat-number { font-size: 42px; font-weight: 800; color: var(--primary); margin-bottom: 8px; }
.stat-label { font-size: 16px; color: var(--text-light); font-weight: 500; }

/* Sections */
.section { padding: 80px 0; }
.section-bg { background: var(--primary-bg); }
.section-title { font-size: 36px; font-weight: 700; color: var(--text); text-align: center; margin-bottom: 16px; }
.section-subtitle { font-size: 18px; color: var(--text-light); text-align: center; max-width: 600px; margin: 0 auto 50px; }

/* Offers Grid */
.section-offers { background: var(--white); }
.offers-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}
.offer-card {
  background: #fff; border-radius: 12px; padding: 2rem 1.5rem;
  text-align: center; box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex; flex-direction: column; align-items: center;
  border: 1px solid #f0f0f0;
}
.offer-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(245,158,11,0.1); }
.offer-logo {
  width: 80px; height: 80px; border-radius: 50%; object-fit: cover;
  margin-bottom: 1rem; border: 3px solid #fef3c7;
}
.offer-card h3 { color: var(--primary); 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-card .cta-btn {
  display: inline-block; background: var(--primary); color: var(--text) !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-card .cta-btn:hover { background: var(--primary-dark); transform: translateY(-1px); color: #fff !important; }

/* Features */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 30px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all .3s;
  border: 1px solid var(--gray-200);
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--primary-light); }
.feature-icon { font-size: 48px; margin-bottom: 20px; }
.feature-card h3 { font-size: 22px; font-weight: 700; margin-bottom: 12px; color: var(--primary); }
.feature-card p { font-size: 15px; color: var(--text-light); line-height: 1.7; }

/* Steps */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; position: relative; }
.step-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 30px;
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
  border: 1px solid var(--gray-200);
}
.step-number {
  width: 50px; height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800;
  margin: 0 auto 20px;
}
.step-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.step-card p { font-size: 14px; color: var(--text-light); }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 12px;
  padding: 24px 30px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  cursor: pointer;
}
.faq-question { font-size: 18px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.faq-answer { font-size: 15px; color: var(--text-light); line-height: 1.8; display: none; }
.faq-item.active .faq-answer { display: block; }

/* Blog */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all .3s;
  border: 1px solid var(--gray-200);
}
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.blog-card img { width: 100%; height: 220px; object-fit: cover; }
.blog-card-content { padding: 24px; }
.blog-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.blog-card h3 a { color: var(--text); text-decoration: none; }
.blog-card h3 a:hover { color: var(--primary); }
.blog-card .excerpt { font-size: 14px; color: var(--text-light); line-height: 1.7; margin-bottom: 16px; }
.blog-card .read-more { color: var(--primary); font-weight: 600; text-decoration: none; font-size: 14px; }
.blog-card .read-more:hover { color: var(--primary-dark); }

/* Footer */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.8);
  padding: 50px 0 30px;
}
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.footer-col h4 { font-size: 18px; font-weight: 700; color: var(--white); margin-bottom: 20px; }
.footer-col p { font-size: 14px; line-height: 1.8; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 14px; }
.footer-col ul li a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 40px; padding-top: 20px; text-align: center; font-size: 14px; }

/* Page Content */
.page-content { padding: 60px 0; }
.page-content h1 { font-size: 36px; font-weight: 700; color: var(--primary); margin-bottom: 30px; }
.page-content h2 { font-size: 28px; font-weight: 700; color: var(--text); margin: 40px 0 20px; }
.page-content h3 { font-size: 22px; font-weight: 600; color: var(--text); margin: 30px 0 15px; }
.page-content p { font-size: 16px; line-height: 1.9; margin-bottom: 20px; color: var(--text); }
.page-content ul { margin: 20px 0; padding-left: 20px; }
.page-content ul li { margin-bottom: 10px; font-size: 16px; line-height: 1.7; }
.page-content ul li::marker { color: var(--primary); }

/* Blog Single */
.blog-single { padding: 60px 0; }
.blog-single h1 { font-size: 36px; font-weight: 800; color: var(--text); margin-bottom: 20px; }
.blog-single .featured-image { width: 100%; max-height: 500px; object-fit: cover; border-radius: var(--radius); margin-bottom: 30px; }
.blog-single .entry-content p { font-size: 16px; line-height: 1.9; margin-bottom: 20px; }
.blog-single .entry-content h2 { font-size: 28px; font-weight: 700; color: var(--primary); margin: 40px 0 20px; }
.blog-single .entry-content h3 { font-size: 22px; font-weight: 600; color: var(--text); margin: 30px 0 15px; }
.blog-single .entry-content ul { margin: 20px 0; padding-left: 20px; }
.blog-single .entry-content ul li { margin-bottom: 10px; font-size: 16px; line-height: 1.7; }

/* Responsive */
@media (max-width: 768px) {
  .hero h1 { font-size: 32px; }
  .hero p { font-size: 16px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .main-nav { display: none; }
}
