/* Safety Workshops TN — Design System */
:root {
  --primary: #F59E0B;
  --primary-dark: #D97706;
  --primary-light: #FEF3C7;
  --secondary: #1E3A8A;
  --secondary-dark: #1E293B;
  --secondary-light: #3B82F6;
  --bg: #F8FAFC;
  --bg-white: #FFFFFF;
  --text: #1E293B;
  --text-muted: #64748B;
  --border: #E2E8F0;
  --success: #059669;
  --error: #DC2626;
  --warning: #D97706;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.1);
  --shadow-lg: 0 8px 24px rgba(15, 23, 42, 0.12);
  --transition: 0.2s ease;
  --header-height: 80px;
  --container: 1200px;
  --font: 'Inter', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.section-header.reveal.visible h2 {
  animation: sectionTitleIn 0.6s ease forwards;
}

@keyframes sectionTitleIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-header p {
  font-size: 1.05rem;
  color: var(--text-muted);
}

.section-disclaimer {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 12px;
  font-style: italic;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.4;
}

.btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--primary);
  color: var(--secondary-dark);
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--secondary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--secondary);
  color: #fff;
  border-color: var(--secondary);
}

.btn-secondary:hover {
  background: var(--secondary-dark);
  border-color: var(--secondary-dark);
  color: #fff;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--secondary);
  border-color: var(--secondary);
}

.btn-outline:hover {
  background: var(--secondary);
  color: #fff;
}

.btn-ghost {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.25);
  color: #fff;
}

.btn-sm { padding: 8px 16px; font-size: 0.875rem; }
.btn:disabled, .btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  height: var(--header-height);
  transition: box-shadow var(--transition);
  animation: headerSlideDown 0.45s ease forwards;
}

@keyframes headerSlideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
  border-bottom-color: transparent;
}

.site-header .container {
  max-width: 1440px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 16px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
  min-width: 0;
}

.site-logo {
  display: block;
  width: auto;
  max-width: 140px;
  height: 52px;
  object-fit: contain;
  object-position: left center;
  flex-shrink: 0;
}

.nav-desktop {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  gap: 6px;
  min-width: 0;
  padding: 0 12px;
  overflow: visible;
}

.nav-desktop a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 14px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1e293b;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.nav-label-short { display: none; }

.nav-desktop a::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.nav-desktop a:hover::after,
.nav-desktop a.active::after {
  transform: scaleX(1);
}

.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--secondary);
  background: rgba(30, 58, 138, 0.04);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  margin-left: auto;
}

.header-cta .btn-register {
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.25);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 600;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--secondary);
  font-family: inherit;
  transition: all var(--transition);
  min-width: 72px;
  white-space: nowrap;
  flex-shrink: 0;
}

.lang-switch:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--secondary-dark);
}

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

.header-cta .btn-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 20px;
  font-size: 0.9375rem;
  font-weight: 600;
}

.header-cta .btn-book { display: none; }

/* Tamil: compact labels, balanced spacing & alignment */
html[lang="ta"] .nav-desktop {
  gap: 6px;
  padding: 0 12px;
}

html[lang="ta"] .nav-desktop a {
  padding: 8px 11px;
  font-size: 0.875rem;
  letter-spacing: 0;
}

html[lang="ta"] .header-cta .nav-label-full { display: none; }
html[lang="ta"] .header-cta .nav-label-short { display: inline; }

html[lang="ta"] .header-cta .btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
}

html[lang="ta"] .site-logo {
  max-width: 112px;
  height: 50px;
}

html[lang="ta"] .header-inner {
  gap: 12px;
}

html[lang="ta"] .header-actions {
  gap: 12px;
  padding-left: 12px;
  border-left: 1px solid var(--border);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--secondary);
  border-radius: 2px;
  transition: all var(--transition);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-white);
  z-index: 999;
  overflow-y: auto;
  padding: 24px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.nav-mobile.open {
  transform: translateX(0);
}

.nav-mobile a {
  display: block;
  padding: 14px 16px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  border-radius: var(--radius);
}

.nav-mobile a:hover,
.nav-mobile a.active { background: var(--primary-light); color: var(--secondary); }
.nav-mobile a.active { font-weight: 600; }

.nav-mobile-actions {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nav-mobile-actions .btn { width: 100%; }

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  top: var(--header-height);
  background: rgba(15, 23, 42, 0.4);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.nav-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

body.menu-open { overflow: hidden; }

/* Hero */
.hero {
  position: relative;
  min-height: min(88vh, 820px);
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  background: var(--secondary);
  overflow: hidden;
}

.hero-split-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  width: 100%;
  padding: 48px 0 64px;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-visual-frame {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 24px;
  max-width: 100%;
}

.hero-visual-frame img {
  width: 100%;
  max-width: 420px;
  height: auto;
  margin: 0 auto;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(30, 58, 138, 0.92) 0%, rgba(30, 58, 138, 0.78) 50%, rgba(15, 23, 42, 0.85) 100%),
    url('https://images.unsplash.com/photo-1581092918056-0c4c3aae0811?w=1920&q=80') center/cover no-repeat;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: repeating-linear-gradient(
    45deg,
    #fff 0, #fff 1px,
    transparent 1px, transparent 20px
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 60px 0;
  max-width: 780px;
}

.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 100px;
  color: var(--primary);
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
  line-height: 1.7;
  max-width: 640px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
}

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

.hero-stat strong {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}

.hero-stat span {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

/* Categories */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.category-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.category-view-btn {
  margin-top: auto;
  align-self: flex-start;
}

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

.category-card:hover .category-icon {
  transform: scale(1.08);
  background: var(--primary);
  color: #fff;
}

.category-icon {
  width: 52px;
  height: 52px;
  background: var(--primary-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--secondary);
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.category-icon svg { width: 26px; height: 26px; }

.category-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 8px;
  line-height: 1.35;
}

.category-sector-number {
  color: var(--secondary);
  font-weight: 800;
}

.category-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  flex: 1;
}

.category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.category-tag {
  font-size: 0.75rem;
  padding: 4px 10px;
  background: var(--bg);
  border-radius: 100px;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

/* Schedule */
.schedule-filters {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.filter-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 6px;
}

.filter-group select,
.filter-group input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-family: inherit;
  background: var(--bg-white);
  color: var(--text);
  transition: border-color var(--transition);
}

.filter-group select:focus,
.filter-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.filter-search { grid-column: 1 / -1; }

.results-info {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.workshop-list { display: flex; flex-direction: column; gap: 16px; }

.workshop-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  transition: all var(--transition);
}

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

.workshop-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 8px;
}

.workshop-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.workshop-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.workshop-category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  background: var(--primary-light);
  color: var(--secondary-dark);
  border-radius: 100px;
  margin-bottom: 8px;
}

.workshop-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.status-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
}

.status-open { background: #D1FAE5; color: #065F46; }
.status-limited { background: #FEF3C7; color: #92400E; }
.status-full { background: #FEE2E2; color: #991B1B; }

.no-results {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
  background: var(--bg-white);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
}

/* Trainers */
.trainers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.trainer-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  transition: all var(--transition);
}

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

.trainer-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--secondary);
  color: var(--primary);
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.trainer-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 4px;
}

.trainer-role {
  font-size: 0.875rem;
  color: var(--primary-dark);
  font-weight: 500;
  margin-bottom: 12px;
}

.trainer-exp {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.trainer-spec {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.trainer-card--featured {
  grid-column: 1 / -1;
  text-align: left;
  padding: 32px;
  border-color: var(--primary);
  background: linear-gradient(to bottom right, var(--bg-white) 0%, var(--primary-light) 100%);
}

.trainer-featured-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.trainer-avatar--lg {
  width: 88px;
  height: 88px;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.trainer-bio {
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 12px;
}

.trainer-tagline {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--secondary);
  font-style: italic;
  margin-bottom: 20px;
  padding-left: 16px;
  border-left: 3px solid var(--primary);
}

.trainer-highlights {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
}

.trainer-highlight {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.trainer-highlight strong {
  display: block;
  font-size: 0.875rem;
  color: var(--secondary);
  margin-bottom: 6px;
}

.trainer-highlight span {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
}

@media (max-width: 640px) {
  .trainer-featured-header {
    flex-direction: column;
    text-align: center;
  }
  .trainer-highlights {
    grid-template-columns: 1fr;
  }
}

/* Resources */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

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

.resource-card:hover {
  border-color: var(--secondary-light);
  box-shadow: var(--shadow-sm);
}

.resource-icon {
  width: 44px;
  height: 44px;
  background: var(--bg);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: var(--secondary);
}

.resource-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 8px;
}

.resource-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* Certificates */
.certificates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.certificate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Trust */
.trust-section { background: var(--bg-white); }

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

.trust-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  background: var(--bg);
}

.trust-card-icon {
  width: 48px;
  height: 48px;
  background: var(--secondary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 16px;
}

.trust-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 10px;
}

.trust-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.trust-disclaimer {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
  padding: 16px;
  background: var(--primary-light);
  border-radius: var(--radius);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Stats */
.stats-section {
  background: var(--secondary);
  padding: 64px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-item strong {
  display: block;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 8px;
}

.stat-item span {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.testimonial-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.testimonial-quote {
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-quote::before {
  content: '\201C';
  font-size: 2.5rem;
  color: var(--primary);
  line-height: 0;
  display: block;
  margin-bottom: 8px;
  font-style: normal;
}

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

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--secondary);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.testimonial-author-info strong {
  display: block;
  font-size: 0.875rem;
  color: var(--secondary);
}

.testimonial-author-info span {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Certificate */
/* About */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

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

.about-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}

.about-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item h4 {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.contact-item p, .contact-item a {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.contact-form {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.form-group {
  margin-bottom: 16px;
}

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

.form-group .required { color: var(--error); margin-left: 2px; }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg-white);
  transition: border-color var(--transition);
}

.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(245, 158, 11, 0.15);
}

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

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
  border-color: var(--error);
}

.form-error {
  font-size: 0.8125rem;
  color: var(--error);
  margin-top: 4px;
  display: none;
}

.form-group.error .form-error { display: block; }

.form-success {
  padding: 12px 16px;
  background: #D1FAE5;
  color: #065F46;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  margin-bottom: 16px;
  display: none;
}

.form-success.visible { display: block; }

.map-container {
  margin-top: 32px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  height: 300px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Footer */
.site-footer {
  background: var(--secondary-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo-link {
  display: inline-block;
  margin-bottom: 12px;
}

.footer-logo {
  height: 54px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
}

.footer-initiative {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 12px;
}

.footer-brand p {
  margin-top: 0;
  font-size: 0.875rem;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-col ul { list-style: none; }

.footer-col li { margin-bottom: 10px; }

.footer-col a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  transition: color var(--transition);
}

.footer-col a:hover { color: var(--primary); }

.footer-emergency strong {
  display: block;
  color: #fff;
  font-size: 1.125rem;
  margin-bottom: 4px;
}

.footer-bottom {
  padding: 24px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-developer {
  margin: 0;
}

.footer-developer a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

.footer-developer a:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px) scale(0.98);
  transition: transform 0.3s ease;
}

.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
}

.modal-header {
  padding: 24px 28px 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.modal-header h2 {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--secondary);
}

.modal-close {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  cursor: pointer;
  font-size: 1.25rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition);
}

.modal-close:hover {
  background: var(--error);
  color: #fff;
  border-color: var(--error);
}

.modal-body { padding: 20px 28px 28px; }

.modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.modal-actions .btn { flex: 1; }

/* Toast */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 12px 20px;
  background: var(--secondary);
  color: #fff;
  border-radius: var(--radius);
  font-size: 0.875rem;
  box-shadow: var(--shadow-lg);
  transform: translateX(120%);
  transition: transform 0.3s ease;
}

.toast.show { transform: translateX(0); }

/* Legal pages */
.legal-page {
  padding-top: calc(var(--header-height) + 48px);
  padding-bottom: 80px;
}

.legal-content {
  max-width: 760px;
  margin: 0 auto;
}

.legal-content h1 {
  font-size: 2rem;
  color: var(--secondary);
  margin-bottom: 8px;
}

.legal-updated {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.legal-section {
  margin-bottom: 28px;
}

.legal-section h2 {
  font-size: 1.25rem;
  color: var(--secondary);
  margin-bottom: 10px;
}

.legal-section p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--reveal-delay, 0s);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-fade {
  opacity: 0;
  transition: opacity 0.7s ease;
  transition-delay: var(--reveal-delay, 0s);
}

.reveal-fade.visible {
  opacity: 1;
}

.hero-content .hero-badge,
.hero-content h1,
.hero-content .hero-subtitle,
.hero-content .hero-actions,
.hero-content .hero-stats > * {
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeIn 0.7s ease forwards;
}

.hero-content h1 { animation-delay: 0.1s; }
.hero-content .hero-subtitle { animation-delay: 0.2s; }
.hero-content .hero-actions { animation-delay: 0.3s; }
.hero-content .hero-stats > *:nth-child(1) { animation-delay: 0.45s; }
.hero-content .hero-stats > *:nth-child(2) { animation-delay: 0.55s; }
.hero-content .hero-stats > *:nth-child(3) { animation-delay: 0.65s; }

@keyframes heroFadeIn {
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .reveal-fade { opacity: 1; transform: none; }
  .site-header { animation: none; }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (min-width: 1400px) {
  .nav-label-short { display: none; }
  .nav-label-full { display: inline; }
  .header-inner { gap: 24px; }
  .nav-desktop a { padding: 10px 14px; font-size: 0.9375rem; }
}

@media (min-width: 1200px) and (max-width: 1399px) {
  .nav-label-full { display: none; }
  .nav-label-short { display: inline; }
  .nav-desktop a { padding: 9px 10px; font-size: 0.875rem; }
  .site-logo { max-width: 120px; height: 52px; }
}

@media (max-width: 1199px) {
  .nav-desktop { display: none; }
  .menu-toggle { display: flex; }
  .nav-mobile, .nav-overlay { display: block; }
  .nav-label-full { display: none; }
  .nav-label-short { display: inline; }
  .site-logo { max-width: 105px; height: 48px; }
  .hero-split-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-visual { order: -1; }
  .hero-visual-frame { padding: 16px; }
}

@media (max-width: 900px) {
  .workshop-card { grid-template-columns: 1fr; }
  .workshop-actions { align-items: flex-start; flex-direction: row; flex-wrap: wrap; }
  .stats-grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 640px) {
  :root { --header-height: 64px; }
  .site-header .container { padding: 0 12px; }
  .header-inner { gap: 8px; }
  .site-logo { max-width: 92px; height: 38px; }
  .header-actions { gap: 6px; }
  .lang-switch { min-width: auto; padding: 6px 10px; font-size: 0.8125rem; min-height: 34px; }
  .btn-register { padding: 6px 12px; font-size: 0.8125rem; min-height: 34px; }
  .menu-toggle { width: 36px; height: 36px; padding: 6px; }
  .section { padding: 48px 0; }
  .schedule-filters { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .modal-actions { flex-direction: column; }
  .header-cta .btn-book { display: none; }
  .cta-banner-inner { flex-direction: column; text-align: center; }
  .cta-banner-actions { width: 100%; }
  .cta-banner-actions .btn { width: 100%; }
}

/* Page hero (inner pages) */
.page-hero {
  padding: calc(var(--header-height) + 48px) 0 48px;
  background: linear-gradient(135deg, var(--secondary) 0%, #1e3a8a 100%);
  color: #fff;
}

.page-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 640px;
  line-height: 1.7;
}

/* WhatsApp contact (Contact page) */
.whatsapp-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: #25d366;
}

.page-hero-whatsapp-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin-top: 20px;
  padding: 14px 18px;
  background: rgba(15, 23, 42, 0.35);
  border-radius: var(--radius);
  max-width: 100%;
}

.page-hero-whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
}

.page-hero-whatsapp-link:hover {
  opacity: 0.9;
}

.page-hero-whatsapp-label {
  color: #fff;
  font-weight: 600;
  font-size: 0.9375rem;
}

.page-hero-whatsapp-bar .whatsapp-number {
  color: var(--primary);
  font-weight: 700;
  font-size: 1.0625rem;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.page-hero-whatsapp-bar .whatsapp-number:hover {
  text-decoration: underline;
}

.page-hero-whatsapp-bar .whatsapp-sep {
  color: rgba(255, 255, 255, 0.55);
  font-size: 1.125rem;
  line-height: 1;
}

.page-hero-badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 100px;
  color: var(--primary);
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.section-alt { background: var(--bg-white); }
.section-cta { text-align: center; margin-top: 32px; }

.container-narrow { max-width: 720px; }

.cta-banner {
  padding-bottom: 80px;
}

.cta-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 40px 48px;
  background: var(--secondary);
  border-radius: var(--radius-lg);
  color: #fff;
}

.cta-banner-inner h2 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.cta-banner-inner p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 520px;
}

.cta-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex-shrink: 0;
}

.card-3d {
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out, box-shadow var(--transition);
}

.contact-org {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 8px;
}

.contact-item--whatsapp {
  margin-top: 4px;
}

.contact-whatsapp-heading {
  color: var(--secondary);
  text-decoration: none;
}

.contact-whatsapp-heading:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.contact-whatsapp-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-whatsapp-list a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--secondary);
  text-decoration: none;
}

.contact-whatsapp-list a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.contact-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.about-intro {
  max-width: 800px;
  margin: 0 auto 40px;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text-muted);
  text-align: center;
}

.about-coverage {
  margin-top: 48px;
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.register-page-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

html, body { overflow-x: hidden; max-width: 100%; }
