/* =========================================================
   滙翹教育 Inspire Education — Commercial Brand Stylesheet
   ========================================================= */

:root {
  --primary: #0A4DA2;
  --primary-dark: #083d82;
  --primary-soft: #e8f1fb;
  --secondary: #FDBA2D;
  --secondary-dark: #e5a61f;
  --bg: #F7FAFD;
  --text: #23344E;
  --text-muted: #5a6b82;
  --white: #ffffff;
  --teal: #2a9d8f;
  --line: rgba(10, 77, 162, 0.1);
  --shadow-sm: 0 8px 24px rgba(15, 45, 90, 0.05);
  --shadow-md: 0 14px 36px rgba(15, 45, 90, 0.08);
  --shadow-lg: 0 22px 48px rgba(15, 45, 90, 0.12);
  --radius: 24px;
  --radius-sm: 16px;
  --radius-pill: 999px;
  --header-h: 78px;
  --font-cn: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --font-en: "Poppins", "Noto Sans TC", sans-serif;
  --transition: 0.3s ease;
}

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

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

body {
  margin: 0;
  font-family: var(--font-cn);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, .hero-title, .section-title, .stat-number,
.course-title, .category-title, .feature-title, .news-title {
  font-family: var(--font-cn);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--primary);
}

.btn,
.nav-link,
.brand-logo,
.stat-number,
.hero-cta,
.fab-label {
  font-family: var(--font-en), var(--font-cn);
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}

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

:focus-visible {
  outline: 3px solid var(--secondary);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  z-index: 10000;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
}

.container {
  max-width: 1180px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1040;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line), var(--shadow-sm);
  transition: box-shadow var(--transition), background var(--transition);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-md);
}

.header-inner {
  min-height: var(--header-h);
}

.brand-logo {
  width: auto;
  height: 52px;
  object-fit: contain;
}

.main-menu {
  gap: 0.15rem;
}

.main-menu .nav-link {
  position: relative;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.55rem 0.7rem !important;
  transition: color var(--transition);
}

.main-menu .nav-link::after {
  content: "";
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0.2rem;
  height: 2.5px;
  background: var(--secondary);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition);
}

.main-menu .nav-link:hover,
.main-menu .nav-link.active {
  color: var(--secondary-dark);
}

.main-menu .nav-link.active {
  color: var(--secondary-dark);
  font-weight: 600;
}

.main-menu .nav-link:hover::after,
.main-menu .nav-link.active::after {
  transform: scaleX(1);
}

.btn-wa-header {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--primary);
  color: var(--white) !important;
  border: none;
  border-radius: var(--radius-pill);
  padding: 0.62rem 1.2rem;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(10, 77, 162, 0.25);
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}

.btn-wa-header:hover {
  background: var(--primary-dark);
  color: var(--white) !important;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(10, 77, 162, 0.3);
}

.navbar-toggler {
  border: none;
  padding: 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 5px;
  box-shadow: none !important;
}

.toggler-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ---------- Buttons ---------- */
.btn-primary-brand,
.btn-secondary-brand,
.btn-cat,
.btn-course,
.btn-wa-footer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: none;
  border-radius: var(--radius-pill);
  font-weight: 600;
  padding: 0.9rem 1.7rem;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn-ico {
  flex-shrink: 0;
}

.btn-primary-brand {
  background: var(--primary);
  color: var(--white) !important;
  box-shadow: 0 10px 24px rgba(10, 77, 162, 0.25);
}

.btn-primary-brand:hover {
  background: var(--primary-dark);
  color: var(--white) !important;
  transform: translateY(-2px);
}

.btn-secondary-brand {
  background: var(--secondary);
  color: var(--text) !important;
  box-shadow: 0 10px 24px rgba(253, 186, 45, 0.3);
}

.btn-secondary-brand:hover {
  background: var(--secondary-dark);
  color: var(--text) !important;
  transform: translateY(-2px);
}

.btn-wide {
  width: 100%;
}

.btn-ripple {
  position: relative;
  overflow: hidden;
}

.btn-ripple .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transform: scale(0);
  animation: ripple-anim 0.6s linear;
  pointer-events: none;
}

@keyframes ripple-anim {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 4rem 0 4.5rem;
  background:
    radial-gradient(ellipse 70% 60% at 30% 40%, #ffffff 0%, transparent 55%),
    radial-gradient(ellipse 50% 50% at 85% 30%, rgba(232, 241, 251, 0.9) 0%, transparent 50%),
    linear-gradient(180deg, #f7fafd 0%, #eef5fc 100%);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.shape {
  position: absolute;
  display: block;
}

.shape-circle-1 {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(10, 77, 162, 0.1) 0%, transparent 70%);
  top: -80px;
  left: -60px;
  animation: float-a 10s ease-in-out infinite;
}

.shape-circle-2 {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 2px solid rgba(253, 186, 45, 0.35);
  right: 8%;
  top: 18%;
  animation: float-b 8s ease-in-out infinite;
}

.shape-glow {
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(253, 186, 45, 0.18) 0%, transparent 65%);
  right: -80px;
  bottom: -100px;
  filter: blur(8px);
}

.shape-ring {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 3px solid rgba(10, 77, 162, 0.15);
  left: 42%;
  top: 12%;
  animation: float-a 12s ease-in-out infinite reverse;
}

.shape-dot-a,
.shape-dot-b {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--secondary);
}

.shape-dot-a {
  top: 28%;
  left: 48%;
  animation: float-b 6s ease-in-out infinite;
}

.shape-dot-b {
  bottom: 22%;
  left: 18%;
  background: var(--primary);
  opacity: 0.35;
  animation: float-a 7s ease-in-out infinite;
}

.shape-square {
  width: 28px;
  height: 28px;
  background: rgba(10, 77, 162, 0.08);
  border-radius: 6px;
  transform: rotate(25deg);
  right: 42%;
  bottom: 18%;
  animation: float-b 9s ease-in-out infinite;
}

.shape-star {
  width: 14px;
  height: 14px;
  background: var(--secondary);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  right: 18%;
  top: 12%;
  animation: float-a 5s ease-in-out infinite;
}

@keyframes float-a {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

@keyframes float-b {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(12px) rotate(8deg); }
}

.hero-row {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: clamp(2rem, 4.2vw, 3rem);
  line-height: 1.28;
  margin-bottom: 1rem;
  font-weight: 800;
}

.hero-subtitle {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 34rem;
  margin-bottom: 1.75rem;
}

.hero-features {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.15rem 1.75rem;
  padding: 0;
  margin: 0 0 2rem;
}

.hero-features li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  min-width: 4.5rem;
  text-align: center;
}

.hf-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  border: 1px solid rgba(10, 77, 162, 0.06);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero-image-wrap {
  position: relative;
  max-width: 480px;
  margin-left: auto;
}

.hero-image-wrap::before {
  content: "";
  position: absolute;
  width: 88%;
  height: 88%;
  right: 0;
  bottom: 0;
  border-radius: 50% 50% 28% 28%;
  background: linear-gradient(145deg, rgba(10, 77, 162, 0.12), rgba(253, 186, 45, 0.2));
  z-index: 0;
}

.hero-image {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: 50% 50% 28% 28%;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
  mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
}

.about-anchor {
  height: 1px;
  scroll-margin-top: var(--header-h);
}

/* ---------- Sections ---------- */
.section {
  padding: 4.5rem 0;
}

.section-about {
  display: none;
}

.section-head {
  margin-bottom: 2.5rem;
}

.section-eyebrow {
  display: inline-block;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.85rem;
}

.section-title {
  font-size: clamp(1.55rem, 3vw, 2rem);
  margin-bottom: 0.75rem;
}

.section-desc {
  color: var(--text-muted);
  max-width: 36rem;
  margin: 0 auto;
  font-size: 1rem;
}

.section-desc.text-start {
  margin-left: 0;
}

.feature-badge {
  display: inline-flex;
  margin-bottom: 0.75rem;
}

.courses-heading .heading-arrow {
  color: var(--primary);
  font-weight: 700;
}

/* ---------- Category Cards (mockup: tinted, left copy / right circle) ---------- */
.section-categories {
  background: var(--white);
  padding-top: 1.5rem;
  padding-bottom: 4rem;
}

.category-card {
  position: relative;
  height: 100%;
  min-height: 220px;
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.35rem 1.15rem 1.35rem 1.35rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.cat-orange {
  background: linear-gradient(135deg, #fff8eb 0%, #ffe8c2 100%);
}

.cat-blue {
  background: linear-gradient(135deg, #eef5fc 0%, #d7e9fb 100%);
}

.cat-teal {
  background: linear-gradient(135deg, #e9f8f5 0%, #c8efe8 100%);
}

.category-body {
  flex: 1;
  min-width: 0;
  padding: 0;
  z-index: 1;
}

.category-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  margin-bottom: 0.55rem;
}

.category-media {
  position: relative;
  width: 112px;
  height: 112px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 4px solid rgba(255, 255, 255, 0.85);
}

.category-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.category-card:hover .category-media img {
  transform: scale(1.1);
}

.category-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.28rem 0.7rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0;
}

.tag-gold {
  background: var(--secondary);
  color: var(--text);
}

.tag-blue {
  background: var(--primary);
  color: var(--white);
}

.tag-teal {
  background: var(--teal);
  color: var(--white);
}

.category-title {
  font-size: 1.15rem;
  margin: 0;
  color: var(--primary);
}

.category-text {
  color: var(--text-muted);
  font-size: 0.84rem;
  margin-bottom: 0.95rem;
  min-height: 0;
  line-height: 1.55;
}

.btn-cat {
  padding: 0.48rem 1rem;
  font-size: 0.82rem;
}

.btn-cat-gold {
  background: var(--secondary);
  color: var(--text) !important;
}

.btn-cat-blue {
  background: var(--primary);
  color: var(--white) !important;
}

.btn-cat-teal {
  background: var(--teal);
  color: var(--white) !important;
}

.btn-cat:hover {
  transform: translateY(-2px);
  filter: brightness(0.96);
}

/* ---------- Features ---------- */
.section-features {
  background: var(--bg);
}

.feature-item {
  text-align: center;
  padding: 1.85rem 1.15rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid transparent;
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.feature-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--line);
}

.feature-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  background: linear-gradient(145deg, #ffffff, var(--primary-soft));
  border: 1px solid rgba(10, 77, 162, 0.08);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), background var(--transition), color var(--transition);
}

.feature-item:hover .feature-icon {
  transform: translateY(-4px) scale(1.06);
  background: var(--primary);
  color: var(--white);
}

.feature-title {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.feature-text {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

/* ---------- Courses ---------- */
.section-courses {
  background: var(--white);
}

.course-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(10, 77, 162, 0.05);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

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

.course-media {
  overflow: hidden;
  height: 168px;
}

.course-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.course-card:hover .course-media img {
  transform: scale(1.08);
}

.course-body {
  padding: 1.2rem 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  align-items: center;
  text-align: center;
}

.course-title {
  font-size: 1.05rem;
  margin-bottom: 0.55rem;
}

.course-text {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 1.1rem;
  flex: 1;
}

.btn-course {
  align-self: center;
  background: var(--secondary);
  color: var(--text) !important;
  padding: 0.48rem 1.15rem;
  font-size: 0.85rem;
}

.btn-course:hover {
  background: var(--secondary-dark);
  transform: translateY(-2px);
}

/* ---------- Results & Testimonials ---------- */
.section-results {
  background: var(--bg);
}

.results-panel,
.testimonials-panel {
  height: 100%;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0.5rem 0;
  box-shadow: none;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 1.2rem 1rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(10, 77, 162, 0.08);
  height: 100%;
  transition: transform var(--transition);
}

.stat-card:hover {
  transform: translateY(-4px);
}

.stat-icon {
  color: var(--primary);
  margin-bottom: 0.35rem;
}

.stat-number {
  font-family: var(--font-en);
  font-size: 1.75rem;
  font-weight: 800;
  margin: 0.15rem 0;
  color: var(--primary);
  line-height: 1.2;
}

.stat-label {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.testimonial-carousel {
  position: relative;
}

.testimonial-track.testimonial-stack {
  position: relative;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.testimonial-card {
  position: relative;
  inset: auto;
  background: #fff8e8;
  backdrop-filter: none;
  border-radius: var(--radius);
  padding: 1.35rem 1.45rem;
  border: 1px solid rgba(253, 186, 45, 0.25);
  box-shadow: var(--shadow-sm);
  opacity: 0;
  visibility: hidden;
  transform: none;
  transition: opacity 0.4s ease, visibility 0.4s;
  display: none;
}

.testimonial-card.is-active {
  opacity: 1;
  visibility: visible;
  display: block;
  position: relative;
}

.quote-icon {
  color: var(--primary);
  opacity: 0.45;
  margin-bottom: 0.35rem;
  font-size: 1.75rem;
  line-height: 1;
  font-family: Georgia, serif;
}

.testimonial-text {
  color: var(--text);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  line-height: 1.75;
}

.testimonial-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.testimonial-role {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.stars {
  color: var(--secondary);
  letter-spacing: 0.08em;
  font-size: 0.9rem;
  line-height: 1;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.carousel-btn {
  display: none;
}

.carousel-dots {
  display: flex;
  gap: 0.45rem;
}

.carousel-dots .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: rgba(10, 77, 162, 0.2);
  padding: 0;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition);
}

.carousel-dots .dot.is-active {
  background: var(--primary);
  transform: scale(1.25);
}

/* ---------- News ---------- */
.section-news {
  background: var(--white);
}

.news-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.news-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  margin-right: 0.25rem;
  vertical-align: middle;
}

.news-more {
  color: var(--primary);
  font-weight: 600;
  white-space: nowrap;
}

.news-more:hover {
  color: var(--secondary-dark);
}

.news-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(10, 77, 162, 0.06);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

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

.news-card-lite {
  padding: 1.2rem 1.15rem 1.25rem;
}

.news-card-lite .news-date {
  position: static;
  display: inline-block;
  margin-bottom: 0.85rem;
}

.news-lite-body {
  display: flex;
  align-items: flex-end;
  gap: 0.65rem;
  flex: 1;
}

.news-lite-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.news-illo {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.95;
}

.news-media {
  display: none;
}

.news-date {
  background: var(--primary);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-en);
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
}

.news-body {
  padding: 1.15rem 1.15rem 1.3rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-title {
  font-size: 0.98rem;
  margin-bottom: 0.55rem;
  line-height: 1.45;
}

.news-excerpt {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 0.85rem;
  flex: 1;
}

.news-link {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.88rem;
}

.news-link:hover {
  color: var(--secondary-dark);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.92);
  padding: 4rem 0 0;
}

.footer-brand {
  display: inline-flex;
  background: var(--white);
  border-radius: 14px;
  padding: 0.55rem 0.85rem;
  margin-bottom: 1.25rem;
}

.footer-logo {
  height: 48px;
  width: auto;
}

.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.85rem;
}

.footer-contact li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.92rem;
  line-height: 1.5;
}

.fc-icon {
  flex-shrink: 0;
  margin-top: 0.15rem;
  color: var(--secondary);
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.92);
}

.footer-contact a:hover {
  color: var(--secondary);
}

.footer-heading {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.45rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: var(--secondary);
  padding-left: 4px;
}

.footer-cta-text {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 1rem;
}

.btn-wa-footer {
  background: #25d366;
  color: var(--white) !important;
  gap: 0.5rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.btn-wa-footer:hover {
  background: #1ebe57;
  color: var(--white) !important;
  transform: translateY(-2px);
}

.qr-grid {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.qr-item {
  margin: 0;
  text-align: center;
}

.qr-item img {
  width: 88px;
  height: 88px;
  border-radius: 10px;
  background: var(--white);
  padding: 4px;
}

.qr-item figcaption {
  margin-top: 0.4rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
}

.footer-bottom {
  margin-top: 2.5rem;
  padding: 1.15rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.85rem;
}

.copyright {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
}

.footer-legal {
  display: flex;
  gap: 1.25rem;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-legal a:hover {
  color: var(--secondary);
}

/* ---------- FAB ---------- */
.fab-whatsapp {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1050;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none !important;
}

.fab-label {
  background: var(--white);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-md);
  opacity: 1;
  transform: none;
  transition: opacity var(--transition), transform var(--transition);
}

.fab-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45);
  animation: fab-pulse 2.4s ease-in-out infinite;
  transition: transform var(--transition);
}

.fab-whatsapp:hover .fab-btn {
  transform: scale(1.06);
  animation: none;
}

@keyframes fab-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.45); }
  50% { box-shadow: 0 0 0 12px rgba(37, 211, 102, 0); }
}

/* ---------- Multi-page ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 3.4rem 0 2.9rem;
  background:
    radial-gradient(ellipse 42% 90% at 100% 0%, rgba(253, 186, 45, 0.32), transparent 58%),
    linear-gradient(115deg, #083d82 0%, #0A4DA2 54%, #0e6bb8 100%);
  color: #fff;
}

.page-hero::before,
.page-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.page-hero::before {
  width: 280px;
  height: 280px;
  border: 2px solid rgba(255, 255, 255, 0.16);
  right: -70px;
  top: -90px;
}

.page-hero::after {
  width: 160px;
  height: 160px;
  background: rgba(253, 186, 45, 0.16);
  left: -40px;
  bottom: -70px;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  margin: 0 0 0.75rem;
  line-height: 1.25;
}

.page-kicker {
  display: inline-block;
  background: var(--secondary);
  color: #083d82;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  border-radius: var(--radius-pill);
  padding: 0.28rem 0.75rem;
  margin-bottom: 0.9rem;
}

.page-lead {
  max-width: 40rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0;
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  font-size: 0.86rem;
}

.crumbs li {
  color: rgba(255, 255, 255, 0.78);
}

.crumbs li:not(:last-child)::after {
  content: "/";
  margin: 0 0.45rem;
  opacity: 0.55;
}

.crumbs a {
  color: rgba(255, 255, 255, 0.92);
}

.crumbs a:hover {
  color: var(--secondary);
}

.section-tint {
  background: var(--bg);
}

.intro-photo {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: 28px 28px 88px 28px;
  box-shadow: var(--shadow-md);
}

.mission-card,
.soft-panel,
.contact-panel,
.legal-panel {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(10, 77, 162, 0.06);
  height: 100%;
}

.mission-card {
  padding: 1.5rem 1.35rem 1.4rem;
}

.mission-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.45rem;
}

.mission-card p,
.soft-panel p,
.contact-panel p {
  color: var(--text-muted);
  margin-bottom: 0;
}

.soft-panel,
.contact-panel,
.legal-panel {
  padding: 1.75rem;
}

.pillar-list,
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.95rem;
}

.pillar-list li,
.contact-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: flex-start;
}

.pillar-index {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-en);
  font-size: 0.85rem;
}

.pillar-list strong,
.contact-list strong {
  display: block;
  color: var(--primary);
  font-size: 0.98rem;
}

.pillar-list span,
.contact-list span,
.contact-list a {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.contact-list a {
  color: var(--primary);
  font-weight: 600;
}

.contact-ico {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stage-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
}

.stage-links a {
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 0.45rem 1rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--white);
}

.stage-links a:hover,
.stage-links a.is-current {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.step-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

.step-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: flex-start;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 1.15rem 1.2rem;
  box-shadow: var(--shadow-sm);
}

.step-no {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--secondary-dark);
  line-height: 1;
  padding-top: 0.15rem;
}

.step-list h3 {
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}

.step-list p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.page-cta {
  background: linear-gradient(135deg, var(--primary) 0%, #1565c0 100%);
  border-radius: var(--radius);
  padding: 2.1rem 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  color: #fff;
}

.page-cta h2 {
  color: #fff;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  margin-bottom: 0.4rem;
}

.page-cta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
}

.map-embed {
  width: 100%;
  min-height: 360px;
  height: 100%;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  background: var(--primary-soft);
}

.article-cover {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.article-body {
  max-width: 46rem;
  font-size: 1.05rem;
}

.article-body p {
  margin-bottom: 1rem;
}

.article-body h2 {
  font-size: 1.25rem;
  margin: 1.6rem 0 0.7rem;
}

.article-date {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--text-muted);
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 0.9rem;
}

.legal-panel h2 {
  font-size: 1.15rem;
  margin: 1.6rem 0 0.55rem;
}

.legal-panel h2:first-child {
  margin-top: 0;
}

.legal-panel p,
.legal-panel li {
  color: var(--text-muted);
}

.legal-panel ul {
  padding-left: 1.15rem;
}

.related-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

/* ---------- RWD ---------- */
@media (max-width: 991.98px) {
  :root {
    --header-h: 68px;
  }

  .brand-logo {
    height: 44px;
  }

  .navbar-collapse {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 16px;
    margin-top: 0.75rem;
    padding: 1rem;
    box-shadow: var(--shadow-md);
  }

  .btn-wa-header {
    margin-top: 0.75rem;
    width: 100%;
    justify-content: center;
  }

  .hero {
    padding-top: 2.25rem;
  }

  .hero-visual {
    margin-top: 2.5rem;
  }

  .hero-image-wrap {
    margin: 0 auto;
    max-width: 360px;
  }

  .section {
    padding: 3.5rem 0;
  }

  .page-hero {
    padding: 2.5rem 0 2.2rem;
  }

  .page-cta {
    padding: 1.5rem;
  }
}

@media (max-width: 767.98px) {
  .hero-title {
    font-size: 1.7rem;
  }

  .hero-features {
    gap: 0.85rem 1.1rem;
    justify-content: flex-start;
  }

  .category-card {
    flex-direction: row;
    min-height: 0;
  }

  .category-media {
    width: 92px;
    height: 92px;
  }

  .news-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .fab-label {
    display: inline-block;
    opacity: 1;
    transform: none;
  }

  .qr-item img {
    width: 72px;
    height: 72px;
  }

  .intro-photo {
    border-radius: 22px;
  }

  .map-embed {
    min-height: 260px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
