/* ========================================
   KETO PRO - Main Stylesheet
   ======================================== */

:root {
  --primary: #1a56db;
  --primary-dark: #1e40af;
  --primary-light: #eff6ff;
  --secondary: #0ea5e9;
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --success: #10b981;
  --danger: #ef4444;
  --dark: #0f172a;
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50: #f9fafb;
  --white: #ffffff;
  --font: 'Inter', 'Segoe UI', sans-serif;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px rgba(0,0,0,0.1), 0 10px 10px rgba(0,0,0,0.04);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--gray-800);
  line-height: 1.6;
  background: var(--white);
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; }

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

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

/* ========= BUTTONS ========= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
  line-height: 1.4;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26,86,219,0.35);
}

.btn-accent {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn-accent:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245,158,11,0.4);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-white {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}
.btn-white:hover {
  background: var(--gray-100);
  color: var(--primary-dark);
}

.btn-lg { padding: 14px 30px; font-size: 16px; border-radius: 10px; }
.btn-sm { padding: 7px 16px; font-size: 13px; }

/* ========= HEADER / NAVBAR ========= */
#header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow);
}

.header-top {
  background: var(--primary);
  color: rgba(255,255,255,0.9);
  font-size: 13px;
  padding: 6px 0;
}

.header-top .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-top a { color: rgba(255,255,255,0.9); }
.header-top a:hover { color: var(--white); }

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -1px;
}

.logo-text { line-height: 1.2; }
.logo-text .name {
  font-size: 15px;
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -0.2px;
  line-height: 1.2;
}
.logo-text .tagline {
  font-size: 11px;
  color: var(--gray-500);
  font-weight: 500;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 4px;
  align-items: center;
}

nav ul li a {
  color: var(--gray-700);
  font-weight: 500;
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 6px;
  display: block;
  transition: all 0.2s;
}
nav ul li a:hover,
nav ul li a.active {
  color: var(--primary);
  background: var(--primary-light);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ========= HERO ========= */
.hero {
  background: linear-gradient(135deg, #1e3a8a 0%, #1a56db 50%, #0ea5e9 100%);
  color: white;
  padding: 80px 0 70px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 46px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.hero h1 span { color: #fcd34d; }

.hero p {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  gap: 30px;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.15);
}

.hero-stat .num {
  font-size: 28px;
  font-weight: 800;
  color: #fcd34d;
  line-height: 1;
}
.hero-stat .label {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  margin-top: 3px;
}

.hero-visual {
  position: relative;
}

.hero-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 16px;
}

.hero-card:last-child { margin-bottom: 0; }

.hero-card-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 12px;
}

.hero-course-list { display: flex; flex-direction: column; gap: 8px; }
.hero-course-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(255,255,255,0.9);
}
.hero-course-item .icon { font-size: 16px; }

/* ========= SECTION COMMONS ========= */
.section { padding: 72px 0; }
.section-alt { background: var(--gray-50); }

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-label {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: 34px;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
}

.section-header p {
  font-size: 16px;
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto;
}

/* ========= TOPIC CARDS (trang chủ) ========= */
.topics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.topic-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  text-align: center;
  transition: all 0.25s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.topic-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  color: inherit;
}

.topic-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin: 0 auto 16px;
}

.topic-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 6px;
}

.topic-card p {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.5;
}

/* ========= BLOG CARDS ========= */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.post-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.post-thumb {
  height: 180px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  position: relative;
  overflow: hidden;
}

.post-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }

.post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.post-tag {
  background: var(--primary-light);
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.post-date {
  font-size: 12px;
  color: var(--gray-400);
}

.post-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.4;
  margin-bottom: 10px;
}

.post-card h3 a { color: inherit; }
.post-card h3 a:hover { color: var(--primary); }

.post-card p {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 16px;
}

.post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--gray-100);
  font-size: 13px;
  color: var(--gray-500);
}

.read-more {
  color: var(--primary);
  font-weight: 600;
  font-size: 13px;
}

/* ========= COURSE CARDS ========= */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.course-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
}

.course-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.course-thumb {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  position: relative;
}

.course-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
}

.course-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }

.course-level {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.course-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.35;
  margin-bottom: 10px;
}

.course-card p {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 14px;
}

.course-info {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 16px;
}

.course-info span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.course-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--gray-100);
}

.course-price .old { text-decoration: line-through; color: var(--gray-400); font-size: 13px; }
.course-price .new { font-size: 20px; font-weight: 800; color: var(--primary); }
.course-price .free { font-size: 20px; font-weight: 800; color: var(--success); }

/* ========= PRODUCT CARDS (files, tools) ========= */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  transition: all 0.25s;
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
  transform: translateY(-3px);
}

.product-icon {
  font-size: 40px;
  margin-bottom: 14px;
}

.product-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
  line-height: 1.4;
}

.product-card p {
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 14px;
  line-height: 1.5;
}

.product-price {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 14px;
}

/* ========= SERVICES ========= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: all 0.25s;
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 18px;
}

.service-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 10px;
}

.service-card p {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 18px;
}

.service-features {
  list-style: none;
  margin-bottom: 20px;
}

.service-features li {
  font-size: 13px;
  color: var(--gray-700);
  padding: 5px 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.service-features li::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ========= SOFTWARE/AFFILIATE ========= */
.software-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.software-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.25s;
}

.software-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.software-logo {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 16px;
}

.software-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.software-card p {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 16px;
}

.software-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.software-tag {
  background: var(--gray-100);
  color: var(--gray-700);
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 100px;
  font-weight: 500;
}

/* ========= TRUST / FEATURES ========= */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-item {
  display: flex;
  gap: 16px;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.feature-content h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 6px;
}

.feature-content p {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.6;
}

/* ========= CTA BAND ========= */
.cta-band {
  background: linear-gradient(135deg, #1e3a8a, #1a56db);
  color: white;
  padding: 64px 0;
  text-align: center;
}

.cta-band h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}

.cta-band p {
  font-size: 16px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 30px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.cta-band .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ========= TESTIMONIALS ========= */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.testimonial-stars { color: var(--accent); font-size: 16px; margin-bottom: 12px; }

.testimonial-card p {
  font-size: 15px;
  color: var(--gray-700);
  line-height: 1.7;
  margin-bottom: 18px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}

.author-name { font-weight: 700; color: var(--gray-900); font-size: 14px; }
.author-title { font-size: 12px; color: var(--gray-500); }

/* ========= BREADCRUMB ========= */
.breadcrumb {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  padding: 12px 0;
}

.breadcrumb ol {
  display: flex;
  list-style: none;
  gap: 6px;
  font-size: 13px;
  color: var(--gray-500);
}

.breadcrumb ol li a { color: var(--primary); }
.breadcrumb ol li::after { content: '/'; margin-left: 6px; }
.breadcrumb ol li:last-child::after { display: none; }
.breadcrumb ol li:last-child { color: var(--gray-700); font-weight: 500; }

/* ========= PAGE HEADER ========= */
.page-header {
  background: linear-gradient(135deg, #1e3a8a, #1a56db);
  color: white;
  padding: 60px 0 50px;
  text-align: center;
}

.page-header h1 {
  font-size: 38px;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.page-header p {
  font-size: 16px;
  color: rgba(255,255,255,0.8);
  max-width: 560px;
  margin: 0 auto;
}

/* ========= FILTER TABS ========= */
.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.filter-tab {
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: 1.5px solid var(--gray-300);
  color: var(--gray-600);
  background: transparent;
  transition: all 0.2s;
}

.filter-tab:hover { border-color: var(--primary); color: var(--primary); }

.filter-tab.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* ========= BLOG PAGE ========= */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
}

.sidebar {}

.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}

.sidebar-widget h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary);
}

.sidebar-links { list-style: none; }
.sidebar-links li {
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-100);
}
.sidebar-links li:last-child { border-bottom: none; }
.sidebar-links li a {
  color: var(--gray-700);
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.sidebar-links li a:hover { color: var(--primary); }
.sidebar-links .count {
  background: var(--gray-100);
  color: var(--gray-500);
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 100px;
}

/* ========= CONTACT ========= */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 14px;
}

.contact-info p {
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 28px;
}

.contact-items { display: flex; flex-direction: column; gap: 18px; }

.contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  background: var(--primary-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.contact-item-text .label { font-size: 12px; color: var(--gray-500); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 2px; }
.contact-item-text .value { font-size: 15px; color: var(--gray-800); font-weight: 500; }

/* ========= FORM ========= */
.form-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
}

.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: var(--font);
  color: var(--gray-800);
  transition: border-color 0.2s;
  background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,86,219,0.1);
}

.form-group textarea { min-height: 120px; resize: vertical; }

/* ========= FOOTER ========= */
footer {
  background: var(--gray-900);
  color: rgba(255,255,255,0.75);
}

.footer-main {
  padding: 56px 0 40px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand .logo-text .name { color: white; }
.footer-brand .logo-text .tagline { color: rgba(255,255,255,0.5); }

.footer-desc {
  font-size: 14px;
  line-height: 1.7;
  margin-top: 14px;
  margin-bottom: 20px;
  color: rgba(255,255,255,0.6);
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: all 0.2s;
}
.social-btn:hover { background: var(--primary); color: white; }

.footer-col h4 {
  color: white;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.3px;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links li a {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  transition: color 0.2s;
}
.footer-links li a:hover { color: white; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,0.45);
}

.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: rgba(255,255,255,0.45); }
.footer-bottom-links a:hover { color: rgba(255,255,255,0.8); }

/* ========= UTILITIES ========= */
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-16 { margin-bottom: 16px; }
.mb-32 { margin-bottom: 32px; }

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
}
.badge-blue { background: var(--primary-light); color: var(--primary); }
.badge-green { background: #d1fae5; color: #065f46; }
.badge-yellow { background: #fef3c7; color: #92400e; }

.divider {
  height: 1px;
  background: var(--gray-200);
  margin: 40px 0;
}

/* ========= RESPONSIVE ========= */
@media (max-width: 1024px) {
  .topics-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hero .container { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: 32px; }
  .hero-visual { display: none; }
  .hero-stats { gap: 20px; }

  .posts-grid { grid-template-columns: 1fr; }
  .courses-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .software-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .blog-layout { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; gap: 36px; }

  .footer-main { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }

  .section-header h2 { font-size: 26px; }
  .page-header h1 { font-size: 28px; }

  nav { display: none; }
  nav.open { display: block; position: absolute; top: 100%; left: 0; right: 0; background: white; border-top: 1px solid var(--gray-200); padding: 16px; box-shadow: var(--shadow-lg); }
  nav.open ul { flex-direction: column; }
  .hamburger { display: flex; }
  .nav-cta .btn:not(:last-child) { display: none; }
}
