/*
Theme Name: yocredit
Author: Yocredit Network
Description: Custom theme for yocredit.org - Vay Tiền Online Uy Tín
Version: 1.0
*/

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

:root {
  --deep-blue: #1a365d;
  --cyan: #0bc5ea;
  --cyan-light: #e6faff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-600: #6b7280;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #fff;
  --shadow: 0 4px 20px rgba(26,54,93,0.08);
  --shadow-lg: 0 10px 40px rgba(26,54,93,0.12);
  --radius: 12px;
}

body {
  font-family: 'Segoe UI', Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.7;
  color: var(--gray-800);
  background: var(--white);
}

a { color: var(--cyan); text-decoration: none; transition: color .2s; }
a:hover { color: var(--deep-blue); }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== HEADER ===== */
.site-header {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 15px 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-logo {
  font-size: 24px;
  font-weight: 800;
  color: var(--deep-blue);
  letter-spacing: -0.5px;
}
.site-logo span { color: var(--cyan); }
.main-nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}
.main-nav a {
  color: var(--gray-700);
  font-weight: 500;
  font-size: 15px;
}
.main-nav a:hover,
.main-nav .current-menu-item a { color: var(--cyan); }
.header-cta {
  background: linear-gradient(135deg, var(--deep-blue), #2b4c7e);
  color: var(--white) !important;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  transition: transform .2s, box-shadow .2s;
  display: inline-block;
}
.header-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(11,197,234,0.35);
  color: var(--white) !important;
}

/* ===== HERO ===== */
.hero-section {
  background: linear-gradient(135deg, var(--deep-blue) 0%, #2b4c7e 50%, #0bc5ea 100%);
  color: var(--white);
  padding: 100px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}
.hero-content { position: relative; z-index: 1; }
.hero-section h1 {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
}
.hero-section h1 .highlight { color: #81e6ff; }
.hero-section p {
  font-size: 18px;
  max-width: 650px;
  margin: 0 auto 35px;
  opacity: 0.9;
  line-height: 1.8;
}
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  background: var(--cyan);
  color: var(--deep-blue) !important;
  padding: 14px 36px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 16px;
  display: inline-block;
  transition: transform .2s, box-shadow .2s;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(11,197,234,0.4);
  color: var(--deep-blue) !important;
}
.btn-secondary {
  background: transparent;
  color: var(--white) !important;
  padding: 14px 36px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  display: inline-block;
  transition: background .2s;
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  color: var(--white) !important;
}

/* ===== SECTIONS ===== */
.section { padding: 80px 0; }
.section-title {
  text-align: center;
  font-size: 36px;
  font-weight: 800;
  color: var(--deep-blue);
  margin-bottom: 12px;
}
.section-subtitle {
  text-align: center;
  color: var(--gray-600);
  font-size: 17px;
  max-width: 600px;
  margin: 0 auto 50px;
}
.section-alt { background: var(--gray-50); }

/* ===== FEATURES ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 28px;
}
.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 35px 28px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform .3s, box-shadow .3s;
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: var(--cyan-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 28px;
}
.feature-card h3 { font-size: 20px; color: var(--deep-blue); margin-bottom: 10px; }
.feature-card p { color: var(--gray-600); font-size: 15px; line-height: 1.6; }

/* ===== STEPS ===== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}
.step-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 35px 28px;
  box-shadow: var(--shadow);
  text-align: center;
  position: relative;
}
.step-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--deep-blue), var(--cyan));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  margin: 0 auto 16px;
}
.step-card h3 { font-size: 18px; color: var(--deep-blue); margin-bottom: 8px; }
.step-card p { color: var(--gray-600); font-size: 14px; line-height: 1.6; }

/* ===== FAQ ===== */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-question {
  padding: 18px 24px;
  background: var(--white);
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  color: var(--deep-blue);
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
.faq-question::after {
  content: '+';
  font-size: 22px;
  color: var(--cyan);
  transition: transform .3s;
}
.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}
.faq-answer {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s, padding .3s;
  color: var(--gray-700);
  font-size: 15px;
  line-height: 1.7;
}
.faq-item.active .faq-answer {
  padding: 0 24px 18px;
  max-height: 400px;
}

/* ===== BLOG ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}
.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.blog-card-body { padding: 22px; }
.blog-card h3 { font-size: 18px; margin-bottom: 10px; }
.blog-card h3 a { color: var(--deep-blue); }
.blog-card h3 a:hover { color: var(--cyan); }
.blog-card .meta {
  font-size: 13px;
  color: var(--gray-600);
  margin-bottom: 10px;
}
.blog-card p { color: var(--gray-600); font-size: 14px; line-height: 1.6; }
.blog-card .read-more {
  display: inline-block;
  margin-top: 12px;
  font-weight: 600;
  font-size: 14px;
  color: var(--cyan);
}

/* ===== CTA BANNER ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--deep-blue), #2b4c7e);
  color: var(--white);
  text-align: center;
  padding: 60px 20px;
}
.cta-banner h2 { font-size: 32px; margin-bottom: 14px; }
.cta-banner p { font-size: 17px; opacity: 0.9; margin-bottom: 28px; max-width: 600px; margin-left: auto; margin-right: auto; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--deep-blue);
  color: rgba(255,255,255,0.8);
  padding: 50px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 30px;
}
.footer-col h4 {
  color: var(--white);
  font-size: 17px;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: rgba(255,255,255,0.6); font-size: 14px; }
.footer-col ul li a:hover { color: var(--cyan); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 14px;
  color: rgba(255,255,255,0.5);
}

/* ===== SINGLE POST ===== */
.single-post-content {
  max-width: 780px;
  margin: 40px auto;
}
.single-post-content h1 {
  font-size: 36px;
  color: var(--deep-blue);
  margin-bottom: 20px;
}
.single-post-content .post-meta {
  color: var(--gray-600);
  font-size: 14px;
  margin-bottom: 30px;
}
.single-post-content .post-body {
  font-size: 16px;
  line-height: 1.9;
}
.single-post-content .post-body h2 {
  font-size: 26px;
  color: var(--deep-blue);
  margin: 30px 0 14px;
}
.single-post-content .post-body h3 {
  font-size: 20px;
  color: var(--gray-700);
  margin: 24px 0 10px;
}
.single-post-content .post-body p { margin-bottom: 16px; }
.single-post-content .post-body ul { margin: 14px 0 14px 20px; }
.single-post-content .post-body ul li { margin-bottom: 8px; }
.post-featured-image { margin-bottom: 30px; }
.post-featured-image img { width: 100%; border-radius: var(--radius); }

/* ===== PAGE ===== */
.page-content {
  max-width: 780px;
  margin: 40px auto;
  font-size: 16px;
  line-height: 1.9;
}
.page-content h1 {
  font-size: 36px;
  color: var(--deep-blue);
  margin-bottom: 20px;
}
.page-content h2 { font-size: 26px; color: var(--deep-blue); margin: 30px 0 14px; }
.page-content h3 { font-size: 20px; color: var(--gray-700); margin: 24px 0 10px; }
.page-content p { margin-bottom: 16px; }
.page-content ul { margin: 14px 0 14px 20px; }
.page-content ul li { margin-bottom: 8px; }
.page-content a { color: var(--cyan); text-decoration: underline; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero-section h1 { font-size: 32px; }
  .hero-section { padding: 60px 0 50px; }
  .section { padding: 50px 0; }
  .section-title { font-size: 28px; }
  .main-nav { display: none; }
  .features-grid, .steps-grid, .blog-grid { grid-template-columns: 1fr; }
  .header-cta { padding: 8px 18px; font-size: 13px; }
}
