/* EV Charger - Modern SaaS Premium Theme */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --blue: #2563EB;
  --blue-dark: #1D4ED8;
  --green: #10B981;
  --green-dark: #059669;
  --gradient: linear-gradient(135deg, #2563EB 0%, #10B981 100%);
  --gradient-soft: linear-gradient(135deg, #EFF6FF 0%, #ECFDF5 100%);
  --white: #FFFFFF;
  --gray-50: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-900: #0F172A;
  --radius: 24px;
  --radius-sm: 12px;
  --shadow: 0 4px 24px rgba(37,99,235,0.08);
  --shadow-hover: 0 8px 40px rgba(37,99,235,0.16);
}

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

body {
  font-family: 'Inter', sans-serif;
  background: var(--white);
  color: var(--gray-900);
  line-height: 1.6;
  font-size: 16px;
}

/* NAVBAR */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  padding: 0 24px;
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; gap: 24px;
  height: 64px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo img { height: 36px; width: auto; }
.nav-logo span { font-weight: 700; font-size: 18px; color: var(--blue); }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  color: var(--gray-600); text-decoration: none;
  padding: 8px 14px; border-radius: 8px; font-size: 14px; font-weight: 500;
  transition: all 0.2s;
}
.nav-links a:hover { background: var(--gray-100); color: var(--blue); }
.nav-cta {
  background: var(--gradient); color: white !important;
  border-radius: 50px !important; padding: 8px 20px !important;
}
.nav-cta:hover { opacity: 0.9; transform: translateY(-1px); }

/* HERO */
.hero {
  background: var(--gradient-soft);
  padding: 80px 24px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(37,99,235,0.06) 0%, transparent 70%);
  top: -200px; right: -100px; border-radius: 50%;
}
.hero-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: white; border: 1px solid var(--gray-200);
  border-radius: 50px; padding: 6px 16px;
  font-size: 13px; font-weight: 600; color: var(--blue);
  margin-bottom: 20px; box-shadow: var(--shadow);
}
.hero h1 { font-size: 48px; font-weight: 800; line-height: 1.15; margin-bottom: 20px; }
.hero h1 span { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { font-size: 18px; color: var(--gray-600); margin-bottom: 32px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-primary {
  background: var(--gradient); color: white;
  padding: 14px 28px; border-radius: 50px;
  font-weight: 700; font-size: 16px; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  transition: all 0.2s; box-shadow: 0 4px 20px rgba(37,99,235,0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(37,99,235,0.4); }
.btn-secondary {
  background: white; color: var(--blue);
  padding: 14px 28px; border-radius: 50px;
  font-weight: 700; font-size: 16px; text-decoration: none;
  border: 2px solid var(--blue);
  display: inline-flex; align-items: center; gap: 8px;
  transition: all 0.2s;
}
.btn-secondary:hover { background: var(--blue); color: white; transform: translateY(-2px); }
.hero-visual {
  background: white; border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-hover);
  border: 1px solid var(--gray-200);
}
.hero-visual img { width: 100%; border-radius: 16px; display: block; }

/* STATS */
.stats {
  background: white; border-bottom: 1px solid var(--gray-200); padding: 24px;
}
.stats-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4,1fr); gap: 24px;
}
.stat-item { text-align: center; }
.stat-num { font-size: 28px; font-weight: 800; color: var(--blue); }
.stat-label { font-size: 13px; color: var(--gray-600); }

/* SEARCH */
.search-section { padding: 40px 24px; background: var(--gray-50); }
.search-section .container { max-width: 800px; margin: 0 auto; }
.search-title { text-align: center; font-size: 22px; font-weight: 700; margin-bottom: 16px; }
.search-box {
  display: flex; gap: 0;
  background: white; border: 2px solid var(--gray-200);
  border-radius: 50px; overflow: hidden;
  box-shadow: var(--shadow); transition: border-color 0.2s;
}
.search-box:focus-within { border-color: var(--blue); }
.search-box input {
  flex: 1; padding: 16px 24px; border: none; outline: none;
  font-size: 16px; font-family: 'Inter', sans-serif;
}
.search-box button {
  background: var(--gradient); color: white; border: none;
  padding: 16px 28px; cursor: pointer; font-weight: 700;
  font-size: 15px; transition: opacity 0.2s;
}
.search-box button:hover { opacity: 0.9; }

/* CATEGORIES */
.categories { padding: 60px 24px; }
.container { max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-tag {
  display: inline-block; background: var(--gradient-soft);
  color: var(--blue); border: 1px solid rgba(37,99,235,0.2);
  border-radius: 50px; padding: 4px 14px;
  font-size: 13px; font-weight: 600; margin-bottom: 12px;
}
.section-title { font-size: 36px; font-weight: 800; margin-bottom: 12px; }
.section-sub { color: var(--gray-600); font-size: 17px; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 20px; }
.cat-card {
  background: white; border-radius: var(--radius);
  border: 1px solid var(--gray-200); padding: 28px;
  box-shadow: var(--shadow); transition: all 0.3s;
  text-decoration: none; color: inherit;
  display: block;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--blue); }
.cat-icon {
  width: 52px; height: 52px;
  background: var(--gradient-soft); border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 16px;
}
.cat-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.cat-card p { font-size: 14px; color: var(--gray-600); }
.cat-count {
  margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--blue);
}

/* ARTICLE LIST */
.article-list { padding: 60px 24px; background: var(--gray-50); }
.articles-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(340px,1fr)); gap: 20px; }
.article-card {
  background: white; border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow); transition: all 0.3s;
  text-decoration: none; color: inherit; display: block;
  overflow: hidden;
}
.article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.article-card-img { width: 100%; height: 180px; object-fit: cover; display: block; }
.article-card-body { padding: 20px; }
.article-num {
  font-size: 12px; font-weight: 700; color: var(--blue);
  background: var(--gradient-soft); border-radius: 50px;
  padding: 3px 10px; display: inline-block; margin-bottom: 10px;
}
.article-card h3 { font-size: 15px; font-weight: 700; line-height: 1.5; margin-bottom: 10px; }
.article-card p { font-size: 13px; color: var(--gray-600); line-height: 1.6; }
.read-more {
  margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--blue);
  display: flex; align-items: center; gap: 4px;
}

/* ARTICLE PAGE */
.breadcrumb { padding: 16px 24px; background: var(--gray-50); border-bottom: 1px solid var(--gray-200); }
.breadcrumb-inner { max-width: 1200px; margin: 0 auto; font-size: 14px; }
.breadcrumb a { color: var(--blue); text-decoration: none; }
.breadcrumb span { color: var(--gray-600); margin: 0 6px; }

.article-layout {
  max-width: 1200px; margin: 0 auto; padding: 48px 24px;
  display: grid; grid-template-columns: 1fr 320px; gap: 48px;
}
.article-main {}
.article-header { margin-bottom: 32px; }
.article-header .tag {
  display: inline-block; background: var(--gradient);
  color: white; border-radius: 50px; padding: 4px 14px;
  font-size: 13px; font-weight: 600; margin-bottom: 16px;
}
.article-header h1 { font-size: 32px; font-weight: 800; line-height: 1.3; margin-bottom: 16px; }
.article-meta { display: flex; align-items: center; gap: 16px; color: var(--gray-600); font-size: 14px; }
.article-content { line-height: 1.9; }
.article-content h2 {
  font-size: 24px; font-weight: 800; color: var(--gray-900);
  margin: 40px 0 16px; padding-left: 16px;
  border-left: 4px solid var(--blue);
}
.article-content h3 {
  font-size: 18px; font-weight: 700; color: var(--gray-700);
  margin: 28px 0 12px;
}
.article-content p { margin-bottom: 16px; color: var(--gray-700); }
.article-content ul, .article-content ol { padding-left: 24px; margin-bottom: 16px; }
.article-content li { margin-bottom: 8px; color: var(--gray-700); }
.article-img {
  width: 100%; border-radius: 16px; margin: 24px 0;
  display: block; cursor: pointer;
}
.article-img-link { display: block; }
.highlight-box {
  background: var(--gradient-soft); border: 1px solid rgba(37,99,235,0.15);
  border-radius: 16px; padding: 24px; margin: 24px 0;
}
.highlight-box h4 { font-size: 16px; font-weight: 700; color: var(--blue); margin-bottom: 12px; }

/* PRICE CALC */
.price-calc {
  background: white; border: 2px solid var(--blue);
  border-radius: var(--radius); padding: 32px; margin: 32px 0;
}
.price-calc h3 { font-size: 20px; font-weight: 800; color: var(--blue); margin-bottom: 20px; text-align: center; }
.calc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.calc-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--gray-700); }
.calc-group select, .calc-group input {
  width: 100%; padding: 12px 16px;
  border: 2px solid var(--gray-200); border-radius: 12px;
  font-family: 'Inter', sans-serif; font-size: 15px;
  transition: border-color 0.2s; outline: none;
}
.calc-group select:focus, .calc-group input:focus { border-color: var(--blue); }
.calc-result {
  background: var(--gradient); color: white;
  border-radius: 16px; padding: 20px; text-align: center; margin-top: 20px;
}
.calc-result .price { font-size: 36px; font-weight: 800; }
.calc-result .note { font-size: 13px; opacity: 0.85; margin-top: 4px; }
.calc-btn {
  width: 100%; background: var(--gradient); color: white; border: none;
  padding: 14px; border-radius: 50px; font-size: 16px; font-weight: 700;
  cursor: pointer; margin-top: 16px; transition: opacity 0.2s;
}
.calc-btn:hover { opacity: 0.9; }

/* FAQ */
.faq-section { margin: 40px 0; }
.faq-section h2 { font-size: 24px; font-weight: 800; margin-bottom: 20px; }
.faq-item { border: 1px solid var(--gray-200); border-radius: 16px; margin-bottom: 10px; overflow: hidden; }
.faq-q {
  padding: 18px 20px; font-weight: 600; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  transition: background 0.2s; background: white;
}
.faq-q:hover { background: var(--gray-50); }
.faq-q .arrow { color: var(--blue); font-size: 18px; transition: transform 0.3s; }
.faq-item.open .arrow { transform: rotate(180deg); }
.faq-a { display: none; padding: 0 20px 18px; color: var(--gray-700); line-height: 1.7; }
.faq-item.open .faq-a { display: block; }

/* SIDEBAR */
.article-sidebar {}
.sidebar-card {
  background: white; border-radius: var(--radius);
  border: 1px solid var(--gray-200); padding: 24px;
  box-shadow: var(--shadow); margin-bottom: 24px;
  position: sticky; top: 80px;
}
.sidebar-card h4 { font-size: 16px; font-weight: 700; margin-bottom: 16px; color: var(--gray-900); }
.sidebar-card ul { list-style: none; }
.sidebar-card ul li { margin-bottom: 10px; }
.sidebar-card ul li a { color: var(--blue); text-decoration: none; font-size: 14px; font-weight: 500; }
.sidebar-card ul li a:hover { text-decoration: underline; }
.sidebar-cta {
  background: var(--gradient); color: white;
  border-radius: var(--radius); padding: 24px; text-align: center;
}
.sidebar-cta h4 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.sidebar-cta p { font-size: 14px; opacity: 0.9; margin-bottom: 16px; }
.sidebar-cta a {
  display: block; background: white; color: var(--blue);
  border-radius: 50px; padding: 12px; font-weight: 700; font-size: 15px;
  text-decoration: none; transition: transform 0.2s;
}
.sidebar-cta a:hover { transform: scale(1.02); }

/* REGISTER PROMO */
.register-promo {
  background: linear-gradient(135deg, #0F172A 0%, #1E3A5F 100%);
  color: white; border-radius: var(--radius); padding: 40px;
  margin: 40px 0; text-align: center;
}
.register-promo .badge {
  display: inline-block; background: var(--green);
  color: white; border-radius: 50px; padding: 4px 14px;
  font-size: 13px; font-weight: 700; margin-bottom: 16px;
}
.register-promo h3 { font-size: 26px; font-weight: 800; margin-bottom: 12px; }
.register-promo p { font-size: 16px; opacity: 0.85; margin-bottom: 24px; max-width: 600px; margin-left: auto; margin-right: auto; }
.register-promo a {
  display: inline-block; background: var(--gradient);
  color: white; border-radius: 50px; padding: 14px 32px;
  font-weight: 700; font-size: 16px; text-decoration: none;
  transition: all 0.2s; box-shadow: 0 4px 20px rgba(37,99,235,0.4);
}
.register-promo a:hover { transform: translateY(-2px); }

/* CTA BANNER */
.cta-banner { background: var(--gradient); padding: 60px 24px; text-align: center; }
.cta-banner h2 { font-size: 32px; font-weight: 800; color: white; margin-bottom: 16px; }
.cta-banner p { font-size: 18px; color: rgba(255,255,255,0.85); margin-bottom: 28px; }
.btn-white {
  background: white; color: var(--blue);
  padding: 14px 32px; border-radius: 50px;
  font-weight: 700; font-size: 16px; text-decoration: none;
  display: inline-block; transition: all 0.2s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,0.2); }

/* FOOTER */
footer {
  background: var(--gray-900); color: rgba(255,255,255,0.7);
  padding: 48px 24px;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px;
}
footer h4 { color: white; font-size: 16px; font-weight: 700; margin-bottom: 16px; }
footer a { color: rgba(255,255,255,0.6); text-decoration: none; display: block; margin-bottom: 8px; font-size: 14px; }
footer a:hover { color: white; }
.footer-bottom {
  max-width: 1200px; margin: 32px auto 0; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center; font-size: 13px; color: rgba(255,255,255,0.4);
}

/* FADE UP ANIMATION */
.fade-up { opacity: 0; transform: translateY(24px); transition: all 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* PAGINATION */
.pagination { display: flex; justify-content: center; gap: 8px; padding: 40px 0; flex-wrap: wrap; }
.page-btn {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--gray-200); border-radius: 10px;
  font-weight: 600; font-size: 14px; cursor: pointer; transition: all 0.2s;
  background: white; color: var(--gray-700); text-decoration: none;
}
.page-btn:hover, .page-btn.active { background: var(--blue); color: white; border-color: var(--blue); }

/* INTERNAL LINKS */
.related-articles { margin: 40px 0; padding: 28px; background: var(--gray-50); border-radius: var(--radius); }
.related-articles h3 { font-size: 18px; font-weight: 700; margin-bottom: 16px; color: var(--gray-900); }
.related-list { display: grid; gap: 10px; }
.related-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; background: white; border-radius: 12px;
  border: 1px solid var(--gray-200); text-decoration: none;
  color: var(--gray-700); transition: all 0.2s;
}
.related-item:hover { border-color: var(--blue); color: var(--blue); }
.related-item span { font-size: 14px; font-weight: 500; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  .hero-visual { display: none; }
  .stats-inner { grid-template-columns: repeat(2,1fr); }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { display: none; }
  .footer-inner { grid-template-columns: 1fr; }
  .calc-row { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .section-title { font-size: 26px; }
}

/* YOUTUBE SHORTS EMBED */
.yt-short-wrap {
  margin: 28px 0;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 16px;
}
.yt-label {
  font-size: 14px; font-weight: 600; color: var(--blue);
  margin-bottom: 12px;
}
.yt-short-frame {
  position: relative;
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  aspect-ratio: 9/16;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.yt-short-frame iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}
@media (max-width: 480px) {
  .yt-short-frame { max-width: 100%; }
}

/* YouTube Shorts fixed-size override */
.yt-short-wrap {
  margin: 28px 0;
  text-align: center;
}
.yt-short-wrap iframe {
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(37,99,235,0.12);
  max-width: 100%;
}
