/* ============================================================
   A2Z Salesforce — Main Stylesheet
   Design inspired by RASPSYS corporate style
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  --primary:        #1a5c8a;
  --primary-dark:   #0e3f6e;
  --primary-light:  #2a7ab8;
  --accent:         #ff7a30;
  --accent-dark:    #e06520;
  --white:          #ffffff;
  --off-white:      #f8fafc;
  --light-gray:     #eef2f7;
  --mid-gray:       #c5cfd9;
  --text-dark:      #1a2532;
  --text-body:      #4a5568;
  --text-muted:     #718096;
  --border:         #dce3ec;
  --shadow-sm:      0 2px 8px rgba(26,92,138,0.08);
  --shadow-md:      0 6px 24px rgba(26,92,138,0.12);
  --shadow-lg:      0 12px 40px rgba(26,92,138,0.16);
  --radius-sm:      6px;
  --radius-md:      12px;
  --radius-lg:      20px;
  --transition:     0.25s ease;
  --font-sans:      'Poppins', 'Segoe UI', sans-serif;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  color: var(--text-body);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

ul { list-style: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.5em;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p { margin-bottom: 1rem; color: var(--text-body); font-size: 1.3rem; line-height: 1.8; }

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(255,122,48,0.1);
  border-radius: 50px;
  padding: 4px 14px;
  margin-bottom: 1rem;
}

.section-title { margin-bottom: 0.75rem; }
.section-subtitle { color: var(--text-muted); font-size: 1.05rem; max-width: 640px; }
.section-header { margin-bottom: 3rem; }
.section-header.centered { text-align: center; }
.section-header.centered .section-subtitle { margin: 0 auto; }

/* ---------- Layout Helpers ---------- */
.container-xl {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 80px 0; }
.bg-off-white { background: var(--off-white); }
.bg-primary   { background: var(--primary); }
.bg-primary-dark { background: var(--primary-dark); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,122,48,0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
  color: var(--white);
}

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

.btn-lg { padding: 15px 36px; font-size: 1rem; }
.btn-sm { padding: 8px 18px; font-size: 0.82rem; }

/* ---------- Navbar (RASPSYS style) ---------- */
#site-header .navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
  padding: 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

/* ---- Brand ---- */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-brand .brand-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -1px;
  flex-shrink: 0;
}

.nav-brand .brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.nav-brand .brand-name { font-size: 1.05rem; font-weight: 700; color: var(--primary-dark); }
.nav-brand .brand-sub  { font-size: 0.6rem; font-weight: 500; color: var(--text-muted); letter-spacing: 0.07em; text-transform: uppercase; }

/* ---- Nav Links ---- */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  height: 100%;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-links > li {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

/* Plain link style — no background on hover, use bottom-border indicator */
.nav-links > li > a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 18px;
  height: 100%;
  font-size: 0.875rem;
  font-weight: 500;
  color: #3d3d3d;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease;
  background: transparent;
  box-sizing: border-box;
}

.nav-links > li > a:hover {
  color: var(--primary);
  background: transparent;
  border-bottom-color: var(--primary);
}

.nav-links > li > a.active {
  color: var(--primary);
  background: transparent;
  border-bottom-color: var(--primary);
  font-weight: 600;
}

/* ---- CTA Button (right-most item) ---- */
.nav-cta {
  display: flex;
  align-items: center;
  margin-left: 16px;
  padding-right: 0;
}

.nav-cta > a {
  display: inline-flex !important;
  align-items: center !important;
  height: auto !important;
  padding: 9px 22px !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  color: var(--white) !important;
  background: var(--primary) !important;
  border: 2px solid var(--primary) !important;
  border-bottom: 2px solid var(--primary) !important;
  border-radius: 6px !important;
  text-decoration: none !important;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease !important;
  white-space: nowrap;
}

.nav-cta > a:hover {
  background: var(--primary-dark) !important;
  border-color: var(--primary-dark) !important;
  color: var(--white) !important;
  border-bottom-color: var(--primary-dark) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26,92,138,0.25) !important;
}

/* ---- Mobile Nav Toggle ---- */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  border: none;
  background: none;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all var(--transition);
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero Section ---------- */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
  position: relative;
  overflow: hidden;
  padding: 100px 0 90px;
  min-height: 520px;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(255,122,48,0.12) 0%, transparent 70%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-content { position: relative; z-index: 2; }

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  margin-bottom: 1.5rem;
  letter-spacing: 0.04em;
}

.hero-label .dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.4); }
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero h1 em { color: var(--accent); font-style: normal; }

.hero-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.8);
  max-width: 560px;
  margin-bottom: 2.25rem;
  line-height: 1.75;
}

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

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}

.hero-stat { text-align: left; }
.hero-stat .stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 2px;
}
.hero-stat .stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  font-weight: 400;
}

.hero-visual {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
}

.hero-card-stack {
  position: relative;
  width: 100%;
  max-width: 420px;
}

.hero-card {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-lg);
}

.hero-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 16px;
}

.cert-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--off-white);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  transition: all var(--transition);
}

.cert-badge:hover { background: var(--light-gray); }

.cert-badge .badge-icon {
  width: 38px; height: 38px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.cert-badge .badge-icon.dev  { background: rgba(26,92,138,0.12); }
.cert-badge .badge-icon.adm  { background: rgba(255,122,48,0.12); }
.cert-badge .badge-info .badge-name { font-size: 0.85rem; font-weight: 600; color: var(--text-dark); }
.cert-badge .badge-info .badge-count { font-size: 0.75rem; color: var(--text-muted); }

.hero-card .start-btn {
  display: block;
  margin-top: 14px;
  text-align: center;
  background: var(--accent);
  color: white;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--transition);
}

.hero-card .start-btn:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

/* ---------- Trusted By / Stats Bar ---------- */
.stats-bar {
  padding: 40px 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-item {
  text-align: center;
  padding: 20px;
  border-right: 1px solid var(--border);
}

.stat-item:last-child { border-right: none; }

.stat-item .num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-item .label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* ---------- Features / Why Us ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  transition: all var(--transition);
}

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

.feature-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
}

.feature-icon.blue   { background: rgba(26,92,138,0.1); }
.feature-icon.orange { background: rgba(255,122,48,0.1); }
.feature-icon.green  { background: rgba(34,197,94,0.1); }
.feature-icon.purple { background: rgba(124,58,237,0.1); }

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

/* ---------- Certification Cards ---------- */
.cert-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.cert-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.cert-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.cert-card-header {
  padding: 28px 28px 20px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: white;
  position: relative;
  overflow: hidden;
}

.cert-card-header::after {
  content: '';
  position: absolute;
  bottom: -20px; right: -20px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  pointer-events: none;
}

.cert-card-header .cert-num {
  font-size: 3rem;
  font-weight: 800;
  opacity: 0.15;
  line-height: 1;
  margin-bottom: 6px;
}

.cert-card-header h3 { color: white; font-size: 1.3rem; margin-bottom: 6px; }
.cert-card-header p  { color: rgba(255,255,255,0.75); font-size: 0.875rem; margin: 0; }

.cert-card-body { padding: 24px 28px; flex: 1; }

.cert-features { margin-bottom: 20px; }
.cert-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-body);
  padding: 6px 0;
  border-bottom: 1px solid var(--light-gray);
}
.cert-features li:last-child { border-bottom: none; }
.cert-features li .check { color: #22c55e; font-weight: 700; }

.cert-card-footer {
  padding: 0 28px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cert-rating { display: flex; align-items: center; gap: 6px; }
.stars { color: #f59e0b; font-size: 0.85rem; }
.rating-text { font-size: 0.8rem; color: var(--text-muted); }

/* ---------- Interview Questions Teaser ---------- */
.iq-section .iq-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.iq-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: all var(--transition);
}

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

.iq-card .iq-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 50px;
  margin-bottom: 14px;
}

.iq-tag.dev  { background: rgba(26,92,138,0.1);  color: var(--primary); }
.iq-tag.adm  { background: rgba(255,122,48,0.12); color: var(--accent); }
.iq-tag.cpq  { background: rgba(124,58,237,0.1);  color: #7c3aed; }

.iq-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.iq-card p  { font-size: 0.875rem; color: var(--text-muted); margin: 0; }
.iq-card .iq-count { font-size: 0.8rem; color: var(--text-muted); margin-top: 12px; font-weight: 500; }

/* ---------- Blog Cards ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.blog-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }

.blog-card-img {
  height: 190px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}

.blog-card-img .img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(14,63,110,0.6));
}

.blog-card-body { padding: 22px 24px; flex: 1; display: flex; flex-direction: column; }

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

.blog-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(26,92,138,0.08);
  padding: 3px 10px;
  border-radius: 50px;
}

.blog-date { font-size: 0.78rem; color: var(--text-muted); }

.blog-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; color: var(--text-dark); line-height: 1.4; }
.blog-card p  { font-size: 0.875rem; color: var(--text-muted); flex: 1; margin-bottom: 16px; }

.blog-read-more {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 5px;
  transition: gap var(--transition);
  margin-top: auto;
}

.blog-read-more:hover { gap: 10px; color: var(--accent); }

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 70px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(255,122,48,0.15), transparent);
  pointer-events: none;
}

.cta-banner h2 { color: var(--white); margin-bottom: 14px; position: relative; }
.cta-banner p  { color: rgba(255,255,255,0.8); max-width: 560px; margin: 0 auto 2rem; position: relative; }
.cta-banner .cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; position: relative; }

/* ---------- Contact Page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 48px;
  align-items: start;
}

.contact-info h2 { margin-bottom: 1rem; }
.contact-info p  { margin-bottom: 2rem; }

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 24px;
}

.contact-detail .detail-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(26,92,138,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  color: var(--primary);
  flex-shrink: 0;
}

.contact-detail .detail-label { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 2px; }
.contact-detail .detail-value { font-size: 0.95rem; font-weight: 600; color: var(--text-dark); }

.contact-form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text-dark); margin-bottom: 6px; }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text-dark);
  background: var(--off-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(26,92,138,0.1);
}

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

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-success {
  display: none;
  background: #d1fae5;
  border: 1px solid #6ee7b7;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  color: #065f46;
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 16px;
}

/* ---------- Interview Questions Page ---------- */
.iq-page-header { text-align: center; padding: 60px 0 50px; background: var(--off-white); }

.iq-search-bar {
  max-width: 520px;
  margin: 0 auto 0;
  position: relative;
}

.iq-search-bar input {
  width: 100%;
  padding: 14px 50px 14px 20px;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  background: var(--white);
  outline: none;
  transition: border-color var(--transition);
}

.iq-search-bar input:focus { border-color: var(--primary); }

.iq-search-bar .search-icon {
  position: absolute;
  right: 18px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1rem;
}

.iq-category-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.iq-tab-btn {
  padding: 8px 20px;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  background: var(--white);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-body);
  cursor: pointer;
  transition: all var(--transition);
}

.iq-tab-btn:hover,
.iq-tab-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.accordion-group { margin-bottom: 32px; }
.accordion-group-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-light);
}

.accordion-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  overflow: hidden;
}

.accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--white);
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-dark);
  transition: background var(--transition);
  gap: 12px;
}

.accordion-header:hover { background: var(--off-white); }
.accordion-header.open  { background: rgba(26,92,138,0.05); color: var(--primary); }

.accordion-icon {
  font-size: 0.7rem;
  color: var(--text-muted);
  transition: transform var(--transition);
  flex-shrink: 0;
}
.accordion-header.open .accordion-icon { transform: rotate(180deg); }

.accordion-body {
  display: none;
  padding: 0 20px 18px;
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.75;
  border-top: 1px solid var(--light-gray);
  background: var(--off-white);
}

.accordion-body.open { display: block; }

/* ---------- Blog Page ---------- */
.blog-hero { background: var(--off-white); padding: 60px 0; text-align: center; }

.blog-hero h1 { margin-bottom: 0.75rem; }
.blog-hero p  { color: var(--text-muted); max-width: 560px; margin: 0 auto; }

.blog-filters {
  display: flex;
  gap: 10px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 7px 18px;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  background: var(--white);
  font-family: var(--font-sans);
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--text-body);
  cursor: pointer;
  transition: all var(--transition);
}

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

.blog-featured {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
  margin-bottom: 48px;
}

.blog-featured-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition);
}

.blog-featured-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }

.blog-featured-img {
  height: 260px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem;
}

.blog-featured-body { padding: 28px 30px; }
.blog-featured-body h2 { font-size: 1.35rem; margin-bottom: 10px; color: var(--text-dark); }
.blog-featured-body p  { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 18px; }

.blog-sidebar-cards { display: flex; flex-direction: column; gap: 16px; }

.blog-side-card {
  display: flex;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  transition: all var(--transition);
  text-decoration: none;
}

.blog-side-card:hover { box-shadow: var(--shadow-sm); border-color: var(--primary-light); }

.side-card-icon {
  width: 54px; height: 54px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.side-card-info h4 { font-size: 0.9rem; margin-bottom: 4px; color: var(--text-dark); }
.side-card-info p  { font-size: 0.8rem; color: var(--text-muted); margin: 0; }

/* ---------- Test Pages ---------- */
.test-hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 60px 0;
  text-align: center;
  color: white;
}

.test-hero h1 { color: white; margin-bottom: 10px; }
.test-hero p  { color: rgba(255,255,255,0.8); max-width: 560px; margin: 0 auto 20px; }

.test-meta-tags { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.test-tag {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.9);
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
}

.test-wrapper { max-width: 860px; margin: 0 auto; padding: 48px 24px; }

.test-progress-bar {
  background: var(--light-gray);
  height: 6px;
  border-radius: 3px;
  margin-bottom: 32px;
  overflow: hidden;
}

.test-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 3px;
  width: 0%;
  transition: width 0.4s ease;
}

.question-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 30px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}

.question-card:hover { box-shadow: var(--shadow-md); }

.question-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.question-num {
  width: 32px; height: 32px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.question-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.55;
}

.options-list { display: flex; flex-direction: column; gap: 10px; }

.option-label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  font-size: 0.9rem;
  color: var(--text-body);
}

.option-label:hover {
  border-color: var(--primary-light);
  background: rgba(26,92,138,0.04);
}

.option-label input[type="radio"] { display: none; }

.option-label.selected {
  border-color: var(--primary);
  background: rgba(26,92,138,0.08);
  color: var(--primary-dark);
  font-weight: 500;
}

.option-label.correct {
  border-color: #22c55e;
  background: #f0fdf4;
  color: #15803d;
}

.option-label.incorrect {
  border-color: #ef4444;
  background: #fef2f2;
  color: #b91c1c;
}

.option-letter {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--light-gray);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: all var(--transition);
}

.option-label:hover .option-letter { background: var(--primary); color: white; }
.option-label.selected .option-letter { background: var(--primary); color: white; }
.option-label.correct  .option-letter { background: #22c55e; color: white; }
.option-label.incorrect .option-letter { background: #ef4444; color: white; }

.test-actions {
  text-align: center;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  margin-top: 32px;
}

/* Result Summary */
.result-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 40px;
  text-align: center;
  box-shadow: var(--shadow-md);
  max-width: 600px;
  margin: 0 auto;
  display: none;
}

.result-score {
  font-size: 4rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
}

.result-grade { font-size: 1.2rem; font-weight: 600; margin-bottom: 4px; }
.result-desc  { color: var(--text-muted); margin-bottom: 28px; }

.result-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
  padding: 20px;
  background: var(--off-white);
  border-radius: var(--radius-sm);
}

.result-stat .rs-num  { font-size: 1.6rem; font-weight: 800; color: var(--text-dark); }
.result-stat .rs-label { font-size: 0.78rem; color: var(--text-muted); }
.result-stat .rs-num.correct  { color: #22c55e; }
.result-stat .rs-num.incorrect { color: #ef4444; }

/* ---------- Page Header (inner pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 60px 0 55px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.page-hero h1   { color: white; position: relative; margin-bottom: 12px; }
.page-hero p    { color: rgba(255,255,255,0.8); max-width: 560px; margin: 0 auto; position: relative; }
.page-hero .breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 12px;
  position: relative;
}
.page-hero .breadcrumb a { color: rgba(255,255,255,0.7); }
.page-hero .breadcrumb a:hover { color: white; }
.page-hero .breadcrumb .sep { font-size: 0.65rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.75);
}

.footer-top {
  padding: 60px 0 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand .nav-brand { margin-bottom: 16px; }
.footer-brand .brand-name { color: white; }
.footer-brand .brand-sub  { color: rgba(255,255,255,0.5); }

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

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

.social-btn {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  transition: all var(--transition);
  text-decoration: none;
}

.social-btn:hover { background: var(--accent); border-color: var(--accent); color: white; }

.footer-col h4 {
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 18px;
  letter-spacing: 0.04em;
}

.footer-links { display: flex; flex-direction: column; gap: 10px; }

.footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-links a:hover { color: white; }
.footer-links a::before { content: '›'; font-size: 1rem; color: var(--accent); }

.footer-bottom {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p { font-size: 0.82rem; color: rgba(255,255,255,0.4); margin: 0; }
.footer-bottom a { color: rgba(255,255,255,0.5); transition: color var(--transition); }
.footer-bottom a:hover { color: white; }

.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: 0.82rem; }

/* ---------- Certifications Index ---------- */
.cert-index-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.cert-index-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  text-align: center;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.cert-index-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.cert-index-icon {
  width: 60px; height: 60px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  color: white;
}

.cert-index-card h3 { font-size: 1.05rem; margin: 0; }
.cert-index-card p  { font-size: 0.875rem; color: var(--text-muted); margin: 0; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.d-flex { display: flex; }
.gap-2  { gap: 16px; }
.gap-3  { gap: 24px; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.w-100 { width: 100%; }
