/* ============================================
   Doublemind Official Website — Khanmigo-inspired
   Clean, modern, spacious design
   ============================================ */

/* --- Design Tokens --- */
:root {
  --color-primary: #fd373b;
  --color-primary-dark: #e0292d;
  --color-primary-light: rgba(253, 55, 59, 0.08);
  --color-dark: #1a1a2e;
  --color-gray-900: #212529;
  --color-gray-700: #495057;
  --color-gray-500: #868e96;
  --color-gray-300: #dee2e6;
  --color-gray-100: #f8f9fa;
  --color-white: #ffffff;
  --color-bg: #f8f9fa;
  /* Soft gradient palette (Kira / Khanmigo style) */
  --color-soft-purple: rgba(168, 85, 247, 0.08);
  --color-soft-pink: rgba(253, 55, 59, 0.06);
  --color-soft-blue: rgba(59, 130, 246, 0.07);
  --font-family: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width: 1200px;
  --nav-height: 72px;
  --radius: 24px;
  --radius-sm: 12px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.07);
  --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  /* Font Size Scale */
  --fs-h1: 48px;
  --fs-h2: 36px;
  --fs-h3: 28px;
  --fs-body: 16px;
  --fs-lg: 18px;
  --fs-subtitle: 20px;
}

/* ============================================
   1. Reset & Base
   ============================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}
body {
  font-family: var(--font-family);
  font-size: var(--fs-body);
  color: var(--color-gray-700);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--color-white);
  overflow-x: hidden;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
ul,
ol {
  list-style: none;
}
button {
  font-family: var(--font-family);
  cursor: pointer;
}
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: 120px 0;
}
.bg-light {
  background: var(--color-bg);
}
.bg-warm {
  background: #fdf6ee;
}
.bg-pink {
  background: #fef0f0;
}
.bg-lavender {
  background: #f3f0ff;
}
.bg-gradient-warm {
  background: linear-gradient(135deg, #fecaca 0%, #fde2c8 40%, #fef0d6 100%);
}
.bg-mint {
  background: #eef8f4;
}

/* ============================================
   2. Navigation
   ============================================ */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  transition: all 0.4s ease;
}
.nav-scrolled {
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.08);
}
/* Transparent nav on home hero (white background) */
body[data-page='home'] .site-nav:not(.nav-scrolled) {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

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

.nav-logo img {
  height: 72px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links li a {
  display: block;
  padding: 8px 16px;
  font-size: 16px;
  font-weight: 500;
  color: var(--color-gray-700);
  border-radius: 8px;
  transition:
    color var(--transition),
    background var(--transition);
}
.nav-links li a:hover {
  color: var(--color-primary);
  background: var(--color-primary-light);
}
.nav-links li a.active {
  color: var(--color-primary);
}

/* Language Dropdown */
.lang-dropdown {
  position: relative;
}
.lang-globe {
  display: none;
}
.lang-text {
  display: inline;
}
.lang-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid var(--color-gray-300);
  border-radius: 20px;
  background: var(--color-white);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-family);
  color: var(--color-gray-700);
}
.lang-dropdown-toggle:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.lang-dropdown-toggle .lang-arrow {
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  display: inline-block;
  padding: 2.5px;
  transform: rotate(45deg);
  transition: transform var(--transition);
}
.lang-dropdown.open .lang-dropdown-toggle .lang-arrow {
  transform: rotate(-135deg);
}
.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--color-white);
  border: 1px solid var(--color-gray-300);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  min-width: 120px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: var(--transition);
  z-index: 1100;
  overflow: hidden;
}
.lang-dropdown.open .lang-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.lang-dropdown-menu button {
  display: block;
  width: 100%;
  padding: 10px 16px;
  border: none;
  background: none;
  font-size: 16px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-family);
  color: var(--color-gray-700);
}
.lang-dropdown-menu button:hover {
  background: var(--color-primary-light);
  color: var(--color-primary);
}
.lang-dropdown-menu button.active {
  color: var(--color-primary);
  font-weight: 700;
}

/* Mobile language switcher (keep as buttons) */
.mobile-lang-switcher {
  margin-top: 24px;
  display: flex;
  gap: 4px;
}
.mobile-lang-switcher button {
  padding: 6px 14px;
  border: 1px solid var(--color-gray-300);
  border-radius: 20px;
  background: var(--color-white);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-family);
}
.mobile-lang-switcher button.active {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}
.mobile-lang-switcher button:hover:not(.active) {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  padding: 6px;
  aspect-ratio: 1;
  box-sizing: border-box;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-gray-500);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: var(--color-white);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding-bottom: 20vh;
  transition: right 0.4s ease;
}
.mobile-menu.open {
  right: 0;
}
.mobile-nav-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.mobile-nav-links li a {
  display: block;
  font-size: 20px;
  font-weight: 500;
  padding: 12px 24px;
  transition: color var(--transition);
}
.mobile-nav-links li a:hover,
.mobile-nav-links li a.active {
  color: var(--color-primary);
}
.mobile-lang-switcher {
  margin-top: 24px;
}

/* Desktop/Mobile visibility */
@media (max-width: 960px) {
  .desktop-only {
    display: none !important;
  }
  .hamburger {
    display: flex;
  }
  #hero,
  .hero-section {
    min-height: 80vh;
  }
  .hero-brand {
    font-size: 40px;
  }
  .hero-content h1 {
    font-size: 36px;
  }
  .hero-orb--1 {
    width: 300px;
    height: 300px;
  }
  .hero-orb--2 {
    width: 250px;
    height: 250px;
  }
  .hero-orb--3 {
    width: 200px;
    height: 200px;
  }
  .hero-entrance {
    width: 550px;
    height: 550px;
    bottom: -50%;
  }
}
@media (min-width: 961px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ============================================
   3. Hero Section (Home) — Kira-style
   ============================================ */
#hero,
.hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  margin-top: 0;
  overflow: hidden;
  background: #fff;
}
.hero-bg {
  display: none;
}
.hero-overlay {
  display: none;
}
/* Animated gradient orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 1;
  pointer-events: none;
  will-change: transform;
}
.hero-orb--1 {
  width: 500px;
  height: 500px;
  top: -10%;
  right: -5%;
  background: radial-gradient(
    circle,
    rgba(253, 55, 59, 0.35) 0%,
    transparent 70%
  );
  animation: orbFloat1 8s ease-in-out infinite;
}
.hero-orb--2 {
  width: 400px;
  height: 400px;
  bottom: -15%;
  left: -10%;
  background: radial-gradient(
    circle,
    rgba(59, 130, 246, 0.3) 0%,
    transparent 70%
  );
  animation: orbFloat2 10s ease-in-out infinite;
}
.hero-orb--3 {
  width: 300px;
  height: 300px;
  top: 40%;
  left: 50%;
  background: radial-gradient(
    circle,
    rgba(168, 85, 247, 0.25) 0%,
    transparent 70%
  );
  animation: orbFloat3 12s ease-in-out infinite;
}
@keyframes orbFloat1 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(-40px, 30px) scale(1.05);
  }
  66% {
    transform: translate(20px, -20px) scale(0.95);
  }
}
@keyframes orbFloat2 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -40px) scale(1.08);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.92);
  }
}
@keyframes orbFloat3 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-50px, -30px) scale(1.1);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--color-dark);
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 24px;
  margin-top: -10vh;
}
.hero-tag {
  display: none;
}
.hero-brand {
  font-size: 56px;
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #fd373b 0%, #ff6b35 50%, #ffb347 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-content h1 {
  font-size: 56px;
  font-weight: 900;
  margin-bottom: 20px;
  letter-spacing: -1px;
  line-height: 1.15;
  color: var(--color-dark);
}
.hero-content p:not(.hero-tag):not(.hero-brand) {
  font-size: 20px;
  opacity: 0.7;
  line-height: 1.6;
  color: var(--color-gray-700);
}
.hero-content .hero-cta {
  opacity: 0;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 36px;
  padding: 14px 36px;
  border-radius: 32px;
  background: linear-gradient(135deg, var(--color-primary) 0%, #ff6b6b 100%);
  color: var(--color-white);
  font-size: 16px;
  font-weight: 600;
  border: none;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}
.hero-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.2) 0%,
    transparent 50%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}
.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(253, 55, 59, 0.4);
}
.hero-cta:hover::before {
  opacity: 1;
}
/* Arrow icon after CTA */
.hero-cta::after {
  content: '\2192';
  font-size: 18px;
  transition: transform 0.3s ease;
}
.hero-cta:hover::after {
  transform: translateX(4px);
}

/* Hero entrance graphic */
.hero-entrance {
  position: absolute;
  bottom: -50%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  pointer-events: none;
  will-change: transform;
  width: 800px;
  height: 800px;
}
.entrance-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
/* Short/wide screens — push entrance down so it doesn't cover text */
@media (max-height: 700px) and (min-width: 769px) {
  .hero-content {
    margin-top: -5vh;
    padding-top: 40px;
  }
  .hero-entrance {
    bottom: -65%;
    width: 600px;
    height: 600px;
  }
}
@media (max-height: 550px) and (min-width: 769px) {
  .hero-content {
    margin-top: 0;
  }
  .hero-entrance {
    bottom: -75%;
    width: 500px;
    height: 500px;
  }
}
/* White flash overlay — portal diamond expands to white */
.hero-entrance-flash {
  position: absolute;
  top: 0;
  left: -10%;
  width: 120%;
  height: 100%;
  z-index: 9;
  pointer-events: none;
  opacity: 0;
}

/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  animation: scrollBounce 2s ease-in-out infinite;
}
.scroll-mouse {
  width: 24px;
  height: 40px;
  border: 2px solid rgba(0, 0, 0, 0.25);
  border-radius: 12px;
  position: relative;
}
.scroll-wheel {
  width: 4px;
  height: 8px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 2s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(8px);
  }
}
@keyframes scrollWheel {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(12px);
  }
}

/* ============================================
   3b. Page Heroes (sub-pages) — gradient bg + deco
   ============================================ */
.page-hero {
  padding: 140px 0 80px;
  margin-top: var(--nav-height);
  position: relative;
  overflow: hidden;
  background: var(--color-white);
  display: flex;
  align-items: center;
  min-height: 400px;
}
/* Page hero light orbs */
.page-hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
}
.page-hero-orb--1 {
  width: 400px;
  height: 400px;
  top: -10%;
  right: 0%;
  background: radial-gradient(
    circle,
    rgba(253, 55, 59, 0.25) 0%,
    transparent 70%
  );
  animation: pageOrbFloat1 8s ease-in-out infinite;
}
.page-hero-orb--2 {
  width: 350px;
  height: 350px;
  bottom: -15%;
  left: -5%;
  background: radial-gradient(
    circle,
    rgba(59, 130, 246, 0.2) 0%,
    transparent 70%
  );
  animation: pageOrbFloat2 10s ease-in-out infinite;
}
.page-hero-orb--3 {
  width: 280px;
  height: 280px;
  top: 25%;
  left: 35%;
  background: radial-gradient(
    circle,
    rgba(168, 85, 247, 0.18) 0%,
    transparent 70%
  );
  animation: pageOrbFloat3 12s ease-in-out infinite;
}
@keyframes pageOrbFloat1 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(-30px, 20px) scale(1.05);
  }
  66% {
    transform: translate(15px, -15px) scale(0.95);
  }
}
@keyframes pageOrbFloat2 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(25px, -30px) scale(1.06);
  }
  66% {
    transform: translate(-15px, 15px) scale(0.94);
  }
}
@keyframes pageOrbFloat3 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-35px, -20px) scale(1.08);
  }
}
.page-hero-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
  position: relative;
  z-index: 2;
}
.page-hero-text {
  flex: 1;
  max-width: 520px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.page-hero-text h1 {
  font-size: var(--fs-h1);
  font-weight: 900;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
  line-height: 1.2;
  background: linear-gradient(135deg, #fd373b 0%, #ff6b35 50%, #ffb347 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.page-hero-text p {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-gray-700);
  opacity: 0.85;
  margin-bottom: 32px;
  line-height: 1.6;
}
.page-hero-text .hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  border-radius: 32px;
  background: linear-gradient(135deg, var(--color-primary) 0%, #ff6b6b 100%);
  color: var(--color-white);
  font-size: 16px;
  font-weight: 600;
  border: none;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}
.page-hero-text .hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(253, 55, 59, 0.35);
}
.page-hero-text .hero-cta::after {
  content: '\2192';
  font-size: 18px;
  transition: transform 0.3s ease;
}
.page-hero-text .hero-cta:hover::after {
  transform: translateX(4px);
}

/* Deco illustration */
.page-hero-deco {
  position: relative;
  flex-shrink: 0;
  width: 600px;
  margin-right: -60px;
}
.page-hero-deco img {
  width: 100%;
  height: auto;
  animation:
    decoFloat 1s ease-out both,
    decoHover 4s ease-in-out 1s infinite;
}
@keyframes decoHover {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

/* ============================================
   4. Section Headers
   ============================================ */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header h2 {
  font-size: var(--fs-h2);
  font-weight: 800;
  color: var(--color-dark);
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}
.section-header p {
  color: var(--color-gray-500);
  font-size: var(--fs-subtitle);
}
.subsection-title {
  font-size: var(--fs-h3);
  font-weight: 800;
  color: var(--color-dark);
  margin-bottom: 16px;
  text-align: center;
  letter-spacing: -0.3px;
}
.subsection-subtitle {
  font-size: var(--fs-subtitle);
  color: var(--color-gray-500);
  text-align: center;
  margin-bottom: 40px;
}

/* ============================================
   5. Intro Grid (Home)
   ============================================ */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: center;
}
.intro-grid.reverse {
  direction: rtl;
}
.intro-grid.reverse > * {
  direction: ltr;
}
.intro-image--logo {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.intro-image--logo img {
  max-width: 180px;
  border-radius: 0;
}
.intro-image img {
  border-radius: var(--radius);
}
.intro-tag {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.intro-tag--red {
  background: linear-gradient(
    135deg,
    rgba(253, 55, 59, 0.12),
    rgba(255, 138, 61, 0.12)
  );
  color: var(--color-primary);
  border: 1px solid rgba(253, 55, 59, 0.2);
}
.intro-tag--blue {
  background: linear-gradient(
    135deg,
    rgba(253, 55, 59, 0.12),
    rgba(255, 138, 61, 0.12)
  );
  color: var(--color-primary);
  border: 1px solid rgba(253, 55, 59, 0.2);
}
.intro-text h2 {
  font-size: var(--fs-h2);
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -0.3px;
  background: linear-gradient(135deg, #fd373b, #ff6b35);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
#company-products-intro .intro-text h2,
#company-education .intro-text h2 {
  background: linear-gradient(135deg, #fd373b, #ff6b35);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.intro-text p {
  color: var(--color-gray-700);
  line-height: 1.8;
  margin-bottom: 16px;
  font-size: 18px;
  font-weight: 600;
}

/* Intro awards badges */
.intro-awards {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 48px;
  padding: 32px 0;
}
.intro-award-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  position: relative;
  padding: 0 40px;
}
.intro-award-year {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-primary);
  background: rgba(253, 55, 59, 0.08);
  padding: 3px 14px;
  border-radius: 12px;
  letter-spacing: 0.5px;
}
.intro-award-item::before,
.intro-award-item::after {
  content: '';
  position: absolute;
  bottom: 12px;
  width: 44px;
  height: 88px;
  background-image: url('data:image/svg+xml,%3Csvg%20width%3D%2254%22%20height%3D%22108%22%20viewBox%3D%220%200%2054%20108%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cellipse%20cx%3D%2237.2348%22%20cy%3D%22102.932%22%20rx%3D%228%22%20ry%3D%224.5%22%20transform%3D%22rotate(3.14415%2037.2348%20102.932)%22%20fill%3D%22%23F6BE00%22%2F%3E%0A%3Cellipse%20cx%3D%2221.1631%22%20cy%3D%2289.5516%22%20rx%3D%228%22%20ry%3D%224.5%22%20transform%3D%22rotate(26.0009%2021.1631%2089.5516)%22%20fill%3D%22%23F6BE00%22%2F%3E%0A%3Cellipse%20cx%3D%229.5487%22%20cy%3D%2272.0412%22%20rx%3D%228%22%20ry%3D%224.5%22%20transform%3D%22rotate(50.7104%209.5487%2072.0412)%22%20fill%3D%22%23F6BE00%22%2F%3E%0A%3Cellipse%20cx%3D%227.66582%22%20cy%3D%2251.1727%22%20rx%3D%228%22%20ry%3D%224.5%22%20transform%3D%22rotate(62.7242%207.66582%2051.1727)%22%20fill%3D%22%23F6BE00%22%2F%3E%0A%3Cellipse%20cx%3D%2210.4396%22%20cy%3D%2231.4879%22%20rx%3D%228%22%20ry%3D%224.5%22%20transform%3D%22rotate(83.0138%2010.4396%2031.4879)%22%20fill%3D%22%23F6BE00%22%2F%3E%0A%3Cellipse%20cx%3D%2220.5433%22%20cy%3D%2215.0243%22%20rx%3D%228%22%20ry%3D%224.5%22%20transform%3D%22rotate(90.3108%2020.5433%2015.0243)%22%20fill%3D%22%23F6BE00%22%2F%3E%0A%3Cellipse%20cx%3D%2248.7055%22%20cy%3D%2290.1137%22%20rx%3D%228%22%20ry%3D%224.5%22%20transform%3D%22rotate(88.5182%2048.7055%2090.1137)%22%20fill%3D%22%23F6BE00%22%2F%3E%0A%3Cellipse%20cx%3D%2236.3192%22%20cy%3D%2281.8573%22%20rx%3D%228%22%20ry%3D%224.5%22%20transform%3D%22rotate(104.151%2036.3192%2081.8573)%22%20fill%3D%22%23F6BE00%22%2F%3E%0A%3Cellipse%20cx%3D%2226.4664%22%20cy%3D%2270.0766%22%20rx%3D%228%22%20ry%3D%224.5%22%20transform%3D%22rotate(127.92%2026.4664%2070.0766)%22%20fill%3D%22%23F6BE00%22%2F%3E%0A%3Cellipse%20cx%3D%2224.0524%22%20cy%3D%2253.5246%22%20rx%3D%228%22%20ry%3D%224.5%22%20transform%3D%22rotate(141.121%2024.0524%2053.5246)%22%20fill%3D%22%23F6BE00%22%2F%3E%0A%3Cellipse%20cx%3D%2224.9906%22%20cy%3D%2238.723%22%20rx%3D%228%22%20ry%3D%224.5%22%20transform%3D%22rotate(162.265%2024.9906%2038.723)%22%20fill%3D%22%23F6BE00%22%2F%3E%0A%3Cellipse%20cx%3D%2233.9905%22%20cy%3D%2224.7231%22%20rx%3D%228%22%20ry%3D%224.5%22%20transform%3D%22rotate(170.36%2033.9905%2024.7231)%22%20fill%3D%22%23F6BE00%22%2F%3E%0A%3Cellipse%20cx%3D%2239.0091%22%20cy%3D%228.61122%22%20rx%3D%228%22%20ry%3D%224.5%22%20transform%3D%22rotate(139.611%2039.0091%208.61122)%22%20fill%3D%22%23F6BE00%22%2F%3E%0A%3C%2Fsvg%3E');
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.7;
  pointer-events: none;
}
.intro-award-item::before {
  left: -10px;
}
.intro-award-item::after {
  right: -10px;
  transform: scaleX(-1);
}
.intro-award-item img {
  width: 100px;
  height: 100px;
  object-fit: contain;
}
.intro-award-item span {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-gray-700);
  max-width: 180px;
  line-height: 1.4;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.stat-item {
  text-align: center;
  padding: 24px 16px;
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.stat-number {
  font-size: 40px;
  font-weight: 900;
  color: var(--color-primary);
  letter-spacing: -1px;
}
.stat-label {
  font-size: 16px;
  color: var(--color-gray-500);
  margin-top: 4px;
}

/* ============================================
   6. Tabs (used on activity page)
   ============================================ */
.tab-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.tab-btn {
  padding: 10px 24px;
  border-radius: 32px;
  border: 1.5px solid var(--color-gray-300);
  background: var(--color-white);
  font-weight: 500;
  font-size: 16px;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  font-family: var(--font-family);
  color: var(--color-gray-700);
}
.tab-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.tab-btn.active {
  border-color: var(--color-primary);
  background: linear-gradient(135deg, var(--color-primary) 0%, #ff6b6b 100%);
  color: var(--color-white);
  box-shadow: 0 4px 16px rgba(253, 55, 59, 0.25);
}

/* ============================================
   7. Product Cards
   ============================================ */
/* Product Series Accordion */
#product-list > .container,
#products > .container {
  max-width: 100%;
  padding: 0;
}
#product-list > .container > .section-header,
#products > .container > .section-header {
  max-width: var(--max-width);
  margin: 0 auto 32px;
  padding: 0 24px;
}
.products-wrapper {
  overflow: hidden;
}
.product-series {
  border-radius: 20px;
  margin-bottom: 48px;
  overflow: hidden;
  position: relative;
  transition: box-shadow 0.4s ease;
  background-size: cover;
  background-position: center;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
/* Alternating edge-to-edge: odd = left, even = right */
.product-series.series-align-left {
  margin-left: 0;
  margin-right: 120px;
  border-radius: 0 24px 24px 0;
  padding-left: 48px;
}
.product-series.series-align-right {
  margin-right: 0;
  margin-left: 120px;
  border-radius: 24px 0 0 24px;
  padding-right: 48px;
}
.product-series::before {
  display: none;
}
.product-series > * {
  position: relative;
  z-index: 2;
}
.product-series:hover {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

/* Sparkle / star particles */
.product-series::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    radial-gradient(
      1.5px 1.5px at 10% 20%,
      rgba(255, 255, 255, 0.8) 50%,
      transparent 50%
    ),
    radial-gradient(
      2px 2px at 25% 65%,
      rgba(255, 255, 255, 0.6) 50%,
      transparent 50%
    ),
    radial-gradient(
      1px 1px at 40% 15%,
      rgba(255, 255, 255, 0.7) 50%,
      transparent 50%
    ),
    radial-gradient(
      2px 2px at 55% 75%,
      rgba(255, 255, 255, 0.5) 50%,
      transparent 50%
    ),
    radial-gradient(
      1.5px 1.5px at 70% 30%,
      rgba(255, 255, 255, 0.8) 50%,
      transparent 50%
    ),
    radial-gradient(
      1px 1px at 85% 55%,
      rgba(255, 255, 255, 0.6) 50%,
      transparent 50%
    ),
    radial-gradient(
      2px 2px at 92% 15%,
      rgba(255, 255, 255, 0.7) 50%,
      transparent 50%
    ),
    radial-gradient(
      1.5px 1.5px at 15% 85%,
      rgba(255, 255, 255, 0.5) 50%,
      transparent 50%
    ),
    radial-gradient(
      1px 1px at 60% 45%,
      rgba(255, 255, 255, 0.6) 50%,
      transparent 50%
    ),
    radial-gradient(
      2px 2px at 78% 80%,
      rgba(255, 255, 255, 0.4) 50%,
      transparent 50%
    );
  animation: seriesSparkle 4s ease-in-out infinite alternate;
  pointer-events: none;
  border-radius: 20px;
}
@keyframes seriesSparkle {
  0% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
  }
  100% {
    opacity: 0.4;
    transform: scale(1.02);
  }
}

/* Series color themes — richer gradients */
.series-color-1 {
  background-color: #4f46e5;
}
.series-color-1::before {
  background: linear-gradient(
    135deg,
    rgba(238, 242, 255, 0.88) 0%,
    rgba(199, 210, 254, 0.85) 50%,
    rgba(224, 231, 255, 0.9) 100%
  );
}
.series-color-2 {
  background-color: #e11d48;
}
.series-color-2::before {
  background: linear-gradient(
    135deg,
    rgba(255, 241, 240, 0.88) 0%,
    rgba(252, 205, 210, 0.85) 50%,
    rgba(255, 228, 230, 0.9) 100%
  );
}
.series-color-3 {
  background-color: #16a34a;
}
.series-color-3::before {
  background: linear-gradient(
    135deg,
    rgba(240, 253, 244, 0.88) 0%,
    rgba(187, 247, 208, 0.85) 50%,
    rgba(220, 252, 231, 0.9) 100%
  );
}

/* With background image — overlay */
.product-series[style*='background-image']::before {
  opacity: 0.82;
}

/* Floating orb per series */
.product-series .product-series-header::before {
  content: '';
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.25;
  z-index: 0;
  animation: seriesOrb 6s ease-in-out infinite alternate;
  pointer-events: none;
}
.series-color-1 .product-series-header::before {
  background: #6366f1;
  right: 5%;
  top: -30%;
}
.series-color-2 .product-series-header::before {
  background: #fb7185;
  left: 5%;
  top: -30%;
}
.series-color-3 .product-series-header::before {
  background: #4ade80;
  right: 10%;
  bottom: -30%;
  top: auto;
}
@keyframes seriesOrb {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(10px, 8px) scale(1.15);
  }
}

.series-color-1 .product-series-icon,
.series-color-2 .product-series-icon,
.series-color-3 .product-series-icon {
  background: transparent;
  box-shadow: none;
}
.series-color-1 .product-series-count {
  color: #4f46e5;
  background: rgba(99, 102, 241, 0.12);
}
.series-color-2 .product-series-count {
  color: var(--color-primary);
  background: rgba(253, 55, 59, 0.12);
}
.series-color-3 .product-series-count {
  color: #16a34a;
  background: rgba(34, 197, 94, 0.12);
}

/* Section bg transitions with series colors */
#product-list {
  transition: background-color 0.6s ease;
}
#product-list.series-bg-1 {
  background-color: transparent;
}
#product-list.series-bg-2 {
  background-color: transparent;
}
#product-list.series-bg-3 {
  background-color: transparent;
}

.product-series-header {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 44px 40px 40px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.product-series-icon {
  width: 150px;
  height: 150px;
  border-radius: 14px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
}
.product-series-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.product-series-info {
  flex: 1;
}
.product-series-title {
  font-size: 36px;
  font-weight: 900;
  color: var(--color-dark);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
  text-shadow:
    0 0 20px rgba(255, 255, 255, 0.9),
    0 0 40px rgba(255, 255, 255, 0.6),
    0 2px 4px rgba(255, 255, 255, 0.8);
}
.product-series-desc {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-gray-700);
  line-height: 1.7;
  margin: 0;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.8);
}
.product-series-count {
  display: none;
}
/* Reverse layout — no icon so just keep text left-aligned */
.product-series.series-reverse .product-series-info {
  text-align: left;
}
/* Hover expand */
.product-series-products {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    padding 0.3s ease;
  padding: 0 32px;
}
.product-series.is-open .product-series-products {
  max-height: 3000px;
  padding: 8px 32px 40px;
}
/* Series-colored buttons: first = solid, second = outline */
.series-color-1 .product-card-actions .btn-primary {
  background: #6366f1;
  color: #fff;
  border: 1.5px solid #6366f1;
}
.series-color-1 .product-card-actions .btn-primary:hover {
  background: #4f46e5;
  border-color: #4f46e5;
}
.series-color-1 .product-card-actions .btn-outline {
  background: #fff;
  color: #6366f1;
  border-color: #6366f1;
}
.series-color-1 .product-card-actions .btn-outline:hover {
  background: #6366f1;
  color: #fff;
}
.series-color-2 .product-card-actions .btn-primary {
  background: var(--color-primary);
  color: #fff;
  border: 1.5px solid var(--color-primary);
}
.series-color-2 .product-card-actions .btn-primary:hover {
  background: #e0292d;
  border-color: #e0292d;
}
.series-color-2 .product-card-actions .btn-outline {
  background: #fff;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.series-color-2 .product-card-actions .btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
}
.series-color-3 .product-card-actions .btn-primary {
  background: #16a34a;
  color: #fff;
  border: 1.5px solid #16a34a;
}
.series-color-3 .product-card-actions .btn-primary:hover {
  background: #15803d;
  border-color: #15803d;
}
.series-color-3 .product-card-actions .btn-outline {
  background: #fff;
  color: #16a34a;
  border-color: #16a34a;
}
.series-color-3 .product-card-actions .btn-outline:hover {
  background: #16a34a;
  color: #fff;
}
/* ── Filter tabs (folder style) ── */
.pl-filters {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  padding: 0;
  position: relative;
  z-index: 1;
}
.pl-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 24px;
  border-radius: 10px 10px 0 0;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid #e5e7eb;
  border-bottom: none;
  background: #f3f4f6;
  color: #9ca3af;
  transition: all 0.2s;
  font-family: var(--font-family);
  position: relative;
  margin-right: -1px;
  margin-bottom: -1px;
}
.pl-filter-btn svg {
  opacity: 0.4;
  transition: opacity 0.2s;
}
.pl-filter-btn:hover {
  background: #e9eaed;
}
.pl-filter-btn:hover svg {
  opacity: 0.7;
}
.pl-filter-btn--counseling {
  color: #fff;
  background: #f59e0b;
}
.pl-filter-btn--counseling svg {
  opacity: 0.8;
}
.pl-filter-btn--grading {
  color: #fff;
  background: #16a34a;
}
.pl-filter-btn--grading svg {
  opacity: 0.8;
}
.pl-filter-btn--exam {
  color: #fff;
  background: #3b82f6;
}
.pl-filter-btn--exam svg {
  opacity: 0.8;
}
.pl-filter-btn.is-active {
  color: #fff;
  font-weight: 800;
  z-index: 2;
  border-color: transparent;
  border-bottom: 1px solid transparent;
  background: var(--color-dark);
}
.pl-filter-btn.is-active svg {
  opacity: 1;
}
.pl-filter-btn--counseling.is-active {
  background: #f59e0b;
}
.pl-filter-btn--grading.is-active {
  background: #16a34a;
}
.pl-filter-btn--exam.is-active {
  background: #3b82f6;
}

/* ── Product List Table (ai_teaching_series) ── */
.product-list-table {
  width: 100%;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 0 12px 12px 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}
/* Category group header — hidden (filter tabs replace them) */
.pl-group-header {
  display: none;
}
/* Table rows */
.product-list-row {
  display: grid;
  grid-template-columns: 48px 1fr 1fr 190px;
  align-items: center;
  gap: 12px;
  padding: 18px 24px;
  border-bottom: 1px solid #f3f4f6;
  transition: background 0.2s;
  background: #fff;
}
.product-list-row:hover {
  background: #f9fafb;
}
.product-list-row:last-child {
  border-bottom: none;
}
/* Row left accent */
.product-list-row--counseling {
  border-left: 4px solid #f59e0b;
}
.product-list-row--grading {
  border-left: 4px solid #16a34a;
}
.product-list-row--exam {
  border-left: 4px solid #3b82f6;
}
.product-list-row--other {
  border-left: 4px solid #9ca3af;
}
/* Row number */
.pl-col-num {
  font-size: 16px;
  font-weight: 800;
  color: #d1d5db;
  text-align: center;
}
/* Product name + logo */
.pl-col-name {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
}
.pl-row-logo {
  width: 180px;
  object-fit: contain;
  background: transparent;
  border: none;
  flex-shrink: 0;
}
.pl-row-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.4;
}
/* Product tag */
.pl-product-tag {
  display: inline-block;
  padding: 3px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}
.pl-product-tag--counseling {
  background: #f59e0b;
}
.pl-product-tag--grading {
  background: #16a34a;
}
.pl-product-tag--exam {
  background: #3b82f6;
}
.pl-product-tag--other {
  background: #9ca3af;
}
/* Features */
.pl-col-scenario {
  font-size: 14px;
  color: #6b7280;
}
.pl-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.pl-feature-list li {
  padding: 3px 0 3px 18px;
  position: relative;
  font-size: 14px;
  line-height: 1.6;
  color: #6b7280;
}
.pl-feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d1d5db;
}
.product-list-row--counseling .pl-feature-list li::before {
  background: #f59e0b;
}
.product-list-row--grading .pl-feature-list li::before {
  background: #16a34a;
}
.product-list-row--exam .pl-feature-list li::before {
  background: #3b82f6;
}
/* Action links */
.pl-col-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.pl-action-link {
  font-size: 13px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 8px;
  border: 1.5px solid #d1d5db;
  color: #374151;
  background: #fff;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: all 0.2s;
  font-family: var(--font-family);
}
.pl-action-link::after {
  content: '';
  display: inline-block;
  width: 0;
  opacity: 0;
  transition:
    width 0.2s,
    opacity 0.2s,
    margin 0.2s;
}
.pl-action-link:hover::after {
  content: ' →';
  width: 16px;
  opacity: 1;
  margin-left: 4px;
}
.pl-action-link:first-child {
  background: var(--color-dark);
  color: #fff;
  border-color: var(--color-dark);
}
.pl-action-link:first-child:hover {
  background: #111;
  border-color: #111;
  color: #fff;
}
.pl-action-link:not(:first-child):hover {
  border-color: #9ca3af;
  color: #111;
}

/* Responsive — tablet */
@media (max-width: 960px) {
  .pl-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .pl-filter-btn {
    padding: 8px 16px;
    font-size: 13px;
    flex-shrink: 0;
  }
  .product-list-table {
    border-radius: 0 0 12px 12px;
  }
  .product-list-row {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 16px;
  }
  .pl-col-num {
    display: none;
  }
  .pl-col-name {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }
  .pl-row-logo {
    width: 100px;
  }
  .pl-col-scenario {
    grid-column: 1 / -1;
  }
  .pl-col-actions {
    grid-column: 1 / -1;
  }
}
/* Responsive — mobile */
@media (max-width: 768px) {
  .pl-filters {
    gap: 0;
  }
  .pl-filter-btn {
    padding: 8px 14px;
    font-size: 12px;
    border-radius: 6px 6px 0 0;
  }
  .product-list-row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 20px 16px;
    text-align: center;
  }
  .pl-col-name {
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }
  .pl-row-logo {
    width: 140px;
  }
  .pl-row-title {
    font-size: 15px;
  }
  .pl-product-tag {
    font-size: 12px;
    padding: 2px 10px;
  }
  .pl-col-scenario {
    text-align: center;
  }
  .pl-feature-list li {
    font-size: 13px;
    padding: 2px 0 2px 16px;
    text-align: left;
    display: block;
  }
  .pl-col-actions {
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
  }
  .pl-action-link {
    font-size: 14px;
    padding: 10px 20px;
  }
}
/* Responsive — small phone */
@media (max-width: 480px) {
  .pl-filter-btn {
    padding: 7px 10px;
    font-size: 11px;
  }
  .pl-filter-btn svg {
    width: 12px;
    height: 12px;
  }
  .pl-row-logo {
    width: 120px;
  }
  .pl-row-title {
    font-size: 14px;
  }
  .pl-col-actions {
    gap: 6px;
  }
  .pl-action-link {
    padding: 5px 10px;
    font-size: 11px;
  }
}

.product-category-header {
  font-size: var(--fs-h3);
  font-weight: 800;
  color: var(--color-dark);
  margin: 56px 0 24px;
  text-align: center;
  letter-spacing: -0.3px;
}
.product-category-header:first-child {
  margin-top: 0;
}
.products-grid-inner {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 0;
}
/* Keep .products-grid for backward compatibility on home page */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}
/* Card layout inside series */
.product-series .product-card {
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  border: none;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.35s ease;
  display: flex;
  flex-direction: column;
}
.product-series .product-card:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
}
.product-series .product-card-image {
  overflow: hidden;
  position: relative;
  background: rgba(255, 255, 255, 0.5);
  border-radius: var(--radius) var(--radius) 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 24px;
}
/* Card sparkle + gradient background */
.product-series .product-card {
  position: relative;
  overflow: hidden;
}
.product-series .product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(2px 2px at 10% 15%, currentColor 50%, transparent 50%),
    radial-gradient(1.5px 1.5px at 25% 70%, currentColor 50%, transparent 50%),
    radial-gradient(2px 2px at 40% 30%, currentColor 50%, transparent 50%),
    radial-gradient(1.5px 1.5px at 55% 80%, currentColor 50%, transparent 50%),
    radial-gradient(2px 2px at 70% 20%, currentColor 50%, transparent 50%),
    radial-gradient(1.5px 1.5px at 85% 60%, currentColor 50%, transparent 50%),
    radial-gradient(2px 2px at 95% 40%, currentColor 50%, transparent 50%),
    radial-gradient(1.5px 1.5px at 15% 50%, currentColor 50%, transparent 50%),
    radial-gradient(2px 2px at 60% 10%, currentColor 50%, transparent 50%),
    radial-gradient(1.5px 1.5px at 48% 55%, currentColor 50%, transparent 50%);
  opacity: 0.15;
  animation: cardSparkle 3s ease-in-out infinite alternate;
}
.series-color-1 .product-card::before {
  color: #6366f1;
}
.series-color-2 .product-card::before {
  color: #fd373b;
}
.series-color-3 .product-card::before {
  color: #22c55e;
}
.product-series .product-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.series-color-1 .product-card::after {
  background: linear-gradient(
    160deg,
    rgba(238, 242, 255, 0.3),
    rgba(255, 255, 255, 0) 60%
  );
}
.series-color-2 .product-card::after {
  background: linear-gradient(
    160deg,
    rgba(255, 241, 240, 0.3),
    rgba(255, 255, 255, 0) 60%
  );
}
.series-color-3 .product-card::after {
  background: linear-gradient(
    160deg,
    rgba(240, 253, 244, 0.3),
    rgba(255, 255, 255, 0) 60%
  );
}
.product-series .product-card > * {
  position: relative;
  z-index: 1;
}
@keyframes cardSparkle {
  0% {
    opacity: 0.1;
  }
  50% {
    opacity: 0.25;
  }
  100% {
    opacity: 0.12;
  }
}
.product-series .product-card-image img {
  max-width: 85%;
  max-height: 150px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.35s ease;
}
.product-series .product-card:hover .product-card-image img {
  transform: scale(1.06);
}
.product-series .product-card-body {
  padding: 0 24px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.product-series .product-card-body h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--color-dark);
  text-align: center;
}
.product-series .product-card-actions {
  justify-content: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 8px;
}
/* Fallback: standalone card (home page etc.) */
.product-card {
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  border: none;
  box-shadow: var(--shadow);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  box-shadow:
    0 16px 48px rgba(253, 55, 59, 0.12),
    0 4px 16px rgba(0, 0, 0, 0.06);
  transform: translateY(-6px) scale(1.02);
}
.product-card-image {
  overflow: hidden;
  position: relative;
  background: linear-gradient(
    135deg,
    var(--color-soft-pink),
    var(--color-soft-purple)
  );
  border-radius: var(--radius) var(--radius) 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.product-card-image img {
  max-width: 80%;
  max-height: 140px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.product-card:hover .product-card-image img {
  transform: scale(1.05);
}
.product-card-body {
  padding: 0 24px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-card-body h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-dark);
}
.product-card-features {
  padding: 0;
  margin-bottom: 0;
  flex: 1;
}
.product-card-features li {
  padding: 5px 0 5px 20px;
  position: relative;
  font-size: 16px;
  color: var(--color-gray-700);
}
.product-card-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: var(--color-primary);
  border-radius: 50%;
}
.product-card-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
  justify-content: center;
}

/* ============================================
   8. Buttons
   ============================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--color-primary) 0%, #ff6b6b 100%);
  color: var(--color-white);
  padding: 10px 24px;
  border-radius: 32px;
  border: none;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  font-family: var(--font-family);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(253, 55, 59, 0.35);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--color-primary);
  padding: 10px 24px;
  border-radius: 32px;
  border: 1.5px solid var(--color-primary);
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  font-family: var(--font-family);
  justify-content: center;
}
.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 8px 24px rgba(253, 55, 59, 0.25);
}
.btn-sm {
  padding: 6px 16px;
  font-size: 16px;
}
.btn-lg {
  padding: 14px 32px;
  font-size: 16px;
}

.load-more-btn {
  display: block;
  margin: 40px auto 0;
}

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow);
  border: none;
}
.play-btn:hover {
  transform: translate(-50%, -50%) scale(1.1);
  background: var(--color-white);
}
.play-btn::after {
  content: '';
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 9px 0 9px 16px;
  border-color: transparent transparent transparent var(--color-primary);
  margin-left: 3px;
}

/* ============================================
   9. Media Cards
   ============================================ */
/* Media page header */
.media-page-header {
  padding: 140px 0 48px;
  background: #fff;
}
.media-page-header h1 {
  font-size: 48px;
  font-weight: 900;
  color: var(--color-dark);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
.media-page-header p {
  font-size: 17px;
  color: var(--color-gray-500);
  line-height: 1.7;
  max-width: 600px;
}

/* Report media section bg */
#report-media {
  background: var(--color-bg);
}

/* Timeline year group */
.media-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.media-year-group {
  margin-bottom: 40px;
}
.media-year-label {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  width: 100%;
}
.media-year-label span {
  display: inline-block;
  padding: 6px 20px;
  border-radius: 20px;
  background: var(--color-bg);
  font-size: 15px;
  font-weight: 700;
  color: var(--color-gray-700);
  flex-shrink: 0;
}
.media-year-label::after {
  content: '';
  flex: 1;
  height: 1px;
  border-top: 2px dashed var(--color-gray-300);
}

/* Timeline card (horizontal) */
.media-timeline-card {
  display: flex;
  gap: 0;
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}
.media-timeline-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  border-left-color: var(--color-primary);
}
.media-timeline-card-thumb {
  flex-shrink: 0;
  width: 280px;
  min-height: 180px;
  position: relative;
  overflow: hidden;
  background: var(--color-bg);
}
.media-timeline-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.media-timeline-card:hover .media-timeline-card-thumb img {
  transform: scale(1.04);
}
.media-timeline-card .video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.media-timeline-card:hover .video-overlay {
  background: rgba(0, 0, 0, 0.35);
}
.play-icon {
  font-size: 36px;
  color: var(--color-white);
}
.media-timeline-card-body {
  flex: 1;
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.media-timeline-card-body h3 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--color-dark);
  margin-bottom: 8px;
}
.media-timeline-card-meta {
  font-size: 15px;
  color: var(--color-gray-500);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.media-timeline-card-meta .meta-sep {
  color: var(--color-gray-400);
}
.media-timeline-card-desc {
  font-size: 15px;
  color: var(--color-gray-500);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.media-timeline-card-arrow {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gray-500);
  transition: all 0.3s ease;
}
.media-timeline-card:hover .media-timeline-card-arrow {
  background: var(--color-primary);
  color: #fff;
}
.media-timeline-card-arrow svg {
  width: 16px;
  height: 16px;
}
.media-card-placeholder {
  width: 100%;
  height: 100%;
  background: var(--color-bg);
}

/* Video card variant */
.media-timeline-card--video {
  border-left: none;
  background: linear-gradient(135deg, #fff5f5, #fff);
}
.media-timeline-card--video:hover {
  border-left: none;
}
.media-timeline-card--video .media-timeline-card-arrow {
  background: var(--color-primary);
  color: #fff;
}
.media-timeline-card--video .media-timeline-card-arrow svg {
  display: none;
}
.media-timeline-card--video .media-timeline-card-arrow::before {
  content: '▶';
  font-size: 12px;
}

/* Gradient warm section overrides */
.bg-gradient-warm .section-header h2 {
  color: var(--color-dark);
}
.bg-gradient-warm .section-header p {
  color: var(--color-gray-700);
}
.bg-gradient-warm .media-year-label span {
  background: var(--color-primary);
  color: #fff;
}
.bg-gradient-warm .media-year-label::after {
  border-top-color: rgba(253, 55, 59, 0.3);
}
.bg-gradient-warm .media-timeline-card {
  background: rgba(255, 255, 255, 0.95);
  border: none;
}
.bg-gradient-warm .media-timeline-card:hover {
  background: #fff;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}
.bg-gradient-warm .media-timeline-card-arrow {
  background: rgba(253, 55, 59, 0.1);
  color: var(--color-primary);
}
.bg-gradient-warm .media-timeline-card:hover .media-timeline-card-arrow {
  background: var(--color-dark);
  color: #fff;
}
.bg-gradient-warm .load-more-btn,
.bg-gradient-warm .btn-outline-light {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  padding: 12px 32px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 32px;
}
.bg-gradient-warm .btn-outline-light:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

/* Legacy grid (home page) */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.media-card {
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  border: none;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.media-card:hover {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
  transform: translateY(-6px);
}
.media-card-thumb {
  height: 180px;
  position: relative;
  overflow: hidden;
  background: var(--color-bg);
  border-radius: var(--radius) var(--radius) 0 0;
}
.media-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.media-card:hover .media-card-thumb img {
  transform: scale(1.03);
}
.video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.media-card:hover .video-overlay {
  background: rgba(0, 0, 0, 0.35);
}
.media-card-body {
  padding: 20px;
}
.media-card-body h3 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--color-dark);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.media-card-desc {
  font-size: 16px;
  color: var(--color-gray-500);
  margin-top: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.media-card-meta {
  font-size: 16px;
  color: var(--color-gray-500);
  margin-top: 10px;
  display: flex;
  gap: 12px;
}

/* ============================================
   10. News List Items
   ============================================ */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.news-item {
  display: flex;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--color-gray-300);
  transition: background var(--transition);
}
.news-item:first-child {
  padding-top: 0;
}
.news-item:hover {
  background: var(--color-primary-light);
  padding-left: 16px;
  padding-right: 16px;
  margin-left: -16px;
  margin-right: -16px;
  border-radius: var(--radius-sm);
}
.news-item-image {
  flex-shrink: 0;
  width: 160px;
  height: 100px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.news-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.news-item-body {
  flex: 1;
}
.news-item-body h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 6px;
  line-height: 1.4;
}
.news-item-body p {
  font-size: 16px;
  color: var(--color-gray-500);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-item-meta {
  display: flex;
  gap: 16px;
  font-size: 16px;
  color: var(--color-gray-500);
  margin-top: 8px;
}
.news-item-gray {
  /* removed – unified look */
}

/* ============================================
   11. Awards Grid
   ============================================ */
.awards-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.award-card {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  background: linear-gradient(135deg, #ffffff 0%, #fef7f7 50%, #f8f0ff 100%);
  padding: 36px 32px;
  border-radius: var(--radius);
  border: none;
  box-shadow: var(--shadow);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
}
.award-card:hover {
  box-shadow:
    0 16px 48px rgba(253, 55, 59, 0.12),
    0 0 0 1px rgba(253, 55, 59, 0.08);
  transform: translateY(-6px);
}
.award-card-logo {
  flex-shrink: 0;
  width: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.award-card-logo img {
  max-width: 100%;
  max-height: 180px;
  object-fit: contain;
}
.award-card-body {
  flex: 1;
}
.award-year {
  font-size: 72px;
  font-weight: 900;
  color: var(--color-primary);
  opacity: 0.15;
  line-height: 1;
  flex-shrink: 0;
  align-self: center;
}
.award-name {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--color-dark);
  line-height: 1.4;
}
.award-subtitle {
  font-size: 16px;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 12px;
}
.award-features {
  padding: 0;
  margin: 0;
}
.award-features li {
  padding: 6px 0 6px 24px;
  position: relative;
  font-size: 16px;
  color: var(--color-gray-700);
  line-height: 1.6;
}
.award-features li::before {
  content: '\2714';
  position: absolute;
  left: 0;
  top: 6px;
  color: var(--color-primary);
  font-size: 15px;
}

/* ============================================
   12. Tables
   ============================================ */
.table-scroll-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
}
.target-users-table,
.edu-plan-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-gray-300);
}
.target-users-table {
  max-width: 860px;
  margin: 0 auto;
}
.edu-plan-table {
  max-width: 860px;
  margin: 0 auto;
}
#edu-plan {
  position: relative;
  overflow: hidden;
}
.edu-plan-logo {
  display: block;
  height: 64px;
  width: auto;
  margin: 0 auto 16px;
}
.edu-plan-series-logo {
  height: 28px;
  width: auto;
  vertical-align: middle;
  margin-right: 8px;
  display: inline-block;
}
.edu-plan-table td:first-child {
  display: flex;
  align-items: center;
}
.edu-plan-deco {
  position: absolute;
  right: 0;
  bottom: -20px;
  width: 320px;
  pointer-events: none;
  z-index: 2;
}
#edu-plan .container {
  position: relative;
  z-index: 1;
}
.target-users-table th,
.edu-plan-table th,
.target-users-table td,
.edu-plan-table td {
  padding: 14px 24px;
  text-align: left;
  border-bottom: 1px solid var(--color-gray-300);
}
.target-users-table th,
.edu-plan-table th {
  background: var(--color-dark);
  color: var(--color-white);
  font-weight: 600;
  font-size: 16px;
}
.target-users-table td,
.edu-plan-table td {
  font-size: 16px;
  color: var(--color-gray-700);
}
.target-users-table tr:last-child td,
.edu-plan-table tr:last-child td {
  border-bottom: none;
}
.target-users-table tr:hover td,
.edu-plan-table tr:hover td {
  background: var(--color-primary-light);
}

/* Target Users Icons & Deco */
.target-user-cell {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
}
.target-user-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: var(--color-primary);
}
#target-users {
  position: relative;
  overflow: hidden;
}
.target-users-deco {
  position: absolute;
  right: 0;
  bottom: -20px;
  width: 320px;
  pointer-events: none;
  z-index: 2;
}

/* ============================================
   13. Feedback Carousel
   ============================================ */
.fb-carousel-controls {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}
.fb-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--color-gray-300);
  background: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-gray-700);
  transition: all 0.3s ease;
}
.fb-arrow:hover {
  border-color: var(--color-dark);
  color: var(--color-dark);
}
.fb-carousel,
.feedback-carousel {
  overflow: hidden;
  border-radius: var(--radius);
  position: relative;
}
.fb-carousel-track,
.feedback-carousel .carousel-track {
  display: flex;
  gap: 24px;
  transition: transform 0.5s ease;
}
.fb-dots {
  display: flex;
  gap: 8px;
  margin-top: 24px;
}
.fb-dots .carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--color-gray-300);
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}
.fb-dots .carousel-dot.active {
  background: var(--color-dark);
  transform: scale(1.2);
}

.feedback-card {
  flex-shrink: 0;
  width: calc(33.333% - 16px);
  padding: 36px 32px;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 360px;
  text-align: left;
}
.feedback-card:nth-child(6n + 1) {
  background: #fde8d8;
}
.feedback-card:nth-child(6n + 2) {
  background: #fff3d6;
}
.feedback-card:nth-child(6n + 3) {
  background: #fdd8d8;
}
.feedback-card:nth-child(6n + 4) {
  background: #ffecd2;
}
.feedback-card:nth-child(6n + 5) {
  background: #fff0d6;
}
.feedback-card:nth-child(6n + 6) {
  background: #fde0d8;
}
.feedback-content {
  font-size: 17px;
  line-height: 1.7;
  color: var(--color-dark);
  font-style: normal;
  font-weight: 500;
  flex: 1;
}
.feedback-bottom {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
}
.feedback-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: none;
}
.feedback-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.feedback-author {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.feedback-author strong {
  font-size: 15px;
  color: var(--color-dark);
}
.feedback-author span {
  font-size: 15px;
  color: var(--color-gray-500);
}

/* ============================================
   14. Carousel Controls (shared)
   ============================================ */
.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--color-gray-500);
  cursor: pointer;
  transition: var(--transition);
  z-index: 5;
}
.carousel-prev {
  left: 4px;
}
.carousel-next {
  right: 4px;
}
.carousel-prev:hover,
.carousel-next:hover {
  color: var(--color-dark);
}
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--color-gray-300);
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}
.carousel-dot.active {
  background: var(--color-primary);
  transform: scale(1.2);
}

/* Featured carousel (activity – fullscreen hero) */
.featured-hero {
  margin-top: var(--nav-height);
  width: 100%;
  height: 518px;
  overflow: hidden;
  position: relative;
}
.featured-hero .featured-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 0;
}
#carousel-track {
  display: flex;
  transition: transform 0.5s ease;
  height: 100%;
}
.carousel-slide {
  min-width: 100%;
  position: relative;
  height: 100%;
  cursor: pointer;
  border-radius: 0;
  overflow: hidden;
}
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.carousel-slide-placeholder {
  width: 100%;
  height: 100%;
  background: var(--color-bg);
}
.carousel-slide-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 48px 64px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  color: var(--color-white);
}
.carousel-slide-content h3 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
}
.carousel-slide-content p {
  font-size: 18px;
  opacity: 0.9;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.carousel-slide--clickable {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s, box-shadow 0.3s;
}
.carousel-slide--clickable:hover {
  transform: scale(1.01);
}
.carousel-slide--clickable:hover img {
  filter: brightness(1.05);
}
.carousel-slide-cta {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  padding: 16px 48px;
  background: rgba(255,255,255,0.95);
  color: var(--color-primary);
  font-size: 20px;
  font-weight: 700;
  border-radius: 32px;
  border: 3px solid var(--color-primary);
  box-shadow: 0 4px 24px rgba(253,55,59,0.2);
  transition: all 0.3s;
  letter-spacing: 1px;
  animation: comp-cta-bounce 2s ease-in-out infinite;
  backdrop-filter: blur(8px);
}
@keyframes comp-cta-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-8px); }
}
.carousel-slide--clickable:hover .carousel-slide-cta {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 8px 32px rgba(253,55,59,0.4);
}
.featured-hero .carousel-prev,
.featured-hero .carousel-next {
  width: 48px;
  height: 48px;
  font-size: 24px;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(0, 0, 0, 0.3);
}
.featured-hero .carousel-prev {
  left: 16px;
}
.featured-hero .carousel-next {
  right: 16px;
}
.featured-hero .carousel-prev:hover,
.featured-hero .carousel-next:hover {
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
}
.featured-hero .carousel-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.featured-hero .carousel-dot {
  background: rgba(255, 255, 255, 0.5);
}
.featured-hero .carousel-dot.active {
  background: #fff;
}

/* ============================================
   15. Activity Cards
   ============================================ */
.activities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.activity-card {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  border: none;
  box-shadow: var(--shadow);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.activity-card:hover {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
  transform: translateY(-6px);
}
.activity-card--live {
  border: 2px solid transparent;
  background-image:
    linear-gradient(#fff, #fff), linear-gradient(135deg, #fd373b, #f59e0b);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow: 0 4px 24px rgba(253, 55, 59, 0.15);
}
.activity-card--live .activity-card-badge {
  background: var(--color-primary);
  animation: livePulse 2s ease-in-out infinite;
}
@keyframes livePulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
    transform: scale(1.05);
  }
}
.activity-card-image {
  height: 200px;
  position: relative;
  overflow: hidden;
  background: var(--color-bg);
  flex-shrink: 0;
}
.activity-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.activity-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 600;
}
.badge-active {
  background: #22c55e;
  color: var(--color-white);
}
.badge-upcoming {
  background: #f59e0b;
  color: var(--color-white);
}
.badge-ended {
  background: var(--color-gray-500);
  color: var(--color-white);
}
.activity-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.activity-card-body .btn-outline,
.activity-card-body .btn-primary {
  margin-top: auto;
  align-self: stretch;
  text-align: center;
  transition: all 0.3s;
  justify-content: center;
}
.activity-card-body .btn-outline::after,
.activity-card-body .btn-primary::after {
  content: '';
  display: inline-block;
  width: 0;
  overflow: hidden;
  vertical-align: middle;
  transition:
    width 0.3s,
    margin 0.3s;
}
.activity-card-body .btn-outline:hover::after,
.activity-card-body .btn-primary:hover::after {
  content: '\2192';
  width: 1em;
  margin-left: 6px;
}
.activity-card-body .btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  padding: 10px 24px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
}
.activity-card-body .btn-primary:hover {
  background: #d42f33;
  box-shadow: 0 8px 24px rgba(253, 55, 59, 0.3);
}
.activity-card-category {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
}
.activity-card-category::before {
  font-size: 16px;
  line-height: 1;
}
.activity-card-category[data-cat='competition']::before {
  content: '\1F3C6';
}
.activity-card-category[data-cat='conference']::before {
  content: '\1F399';
}
.activity-card-category[data-cat='workshop']::before {
  content: '\1F399';
}
.activity-card-category[data-cat='general']::before {
  content: '\1F389';
}
.activity-card-body h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-dark);
  margin: 6px 0 8px;
  line-height: 1.4;
}
.activity-card-desc {
  font-size: 16px;
  color: var(--color-gray-500);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}
.activity-card-meta {
  font-size: 16px;
  color: var(--color-gray-500);
  margin-bottom: 12px;
}
.activity-card-placeholder {
  width: 100%;
  height: 100%;
  background: var(--color-bg);
}

/* Competition */
.competition-intro {
  max-width: 720px;
  margin: 0 auto 40px;
  text-align: center;
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-gray-700);
}
.competition-prizes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  max-width: 900px;
  margin: 0 auto;
}
.competition-prize-card {
  background: var(--color-white);
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
}
.competition-prize-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.competition-prize-first {
  border: 2px solid #ffd700;
}
.competition-prize-badge {
  font-size: 36px;
  margin-bottom: 12px;
}
.competition-prize-card h4 {
  font-size: 20px;
  font-weight: 800;
  color: var(--color-dark);
  margin-bottom: 8px;
}
.competition-prize-detail {
  font-size: 15px;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 20px;
  line-height: 1.6;
}
.competition-winner {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 12px;
}
.competition-winner strong {
  font-size: 16px;
  color: var(--color-dark);
}
.competition-winner span {
  font-size: 15px;
  color: var(--color-gray-500);
}
.competition-winners-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.competition-winner-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #f8f9fa;
  border-radius: 12px;
}
.competition-winner-item strong {
  font-size: 15px;
  color: var(--color-dark);
  white-space: nowrap;
}
.competition-winner-item span {
  font-size: 15px;
  color: var(--color-gray-500);
}
.competition-modal .modal-content {
  max-width: 1100px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px;
}
.competition-modal-header {
  text-align: center;
  margin-bottom: 16px;
}
.competition-modal-logo {
  width: 120px;
  margin: 0 auto 12px;
}
.competition-modal-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--color-dark);
  margin-bottom: 0;
  text-align: center;
}
.competition-modal .competition-intro {
  max-width: 800px;
  margin: 0 auto 32px;
  text-align: center;
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-gray-700);
}
.competition-modal-merged {
  line-height: 1.8;
  color: var(--color-gray-700);
}
.competition-modal-merged img {
  max-width: 100%;
  border-radius: var(--radius-sm);
  margin: 8px 0;
}
.competition-modal-merged iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: none;
  border-radius: var(--radius-sm);
  margin: 12px 0;
  display: block;
}
.competition-modal-merged .video-container,
.competition-modal-merged .ql-video-wrapper,
.competition-modal-merged [class*='video'] {
  position: relative;
  width: 100%;
  margin: 12px 0;
}
.competition-modal-merged .video-container iframe,
.competition-modal-merged .ql-video-wrapper iframe {
  width: 100%;
  aspect-ratio: 16/9;
}
.competition-modal-merged h2,
.competition-modal-merged h3 {
  margin-top: 32px;
  margin-bottom: 16px;
  text-align: center;
}
.competition-modal-merged p {
  margin-bottom: 12px;
}
.competition-section-header {
  font-size: 26px !important;
  font-weight: 800 !important;
  text-align: center !important;
  margin-bottom: 20px;
  color: var(--color-dark);
}
.competition-section {
  padding: 32px;
  border-radius: 16px;
  margin-bottom: 28px;
}
.competition-section-1 {
  background: linear-gradient(135deg, #fff7ed 0%, #fff1f0 100%);
  border: 1px solid rgba(255, 138, 61, 0.15);
}
.competition-section-2 {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border: 1px solid rgba(34, 197, 94, 0.15);
}
.competition-section-3 {
  background: linear-gradient(135deg, #f0f4ff 0%, #eef2ff 100%);
  border: 1px solid rgba(99, 102, 241, 0.15);
}
.competition-section-4 {
  background: linear-gradient(135deg, #fdf4ff 0%, #faf5ff 100%);
  border: 1px solid rgba(168, 85, 247, 0.15);
}
.competition-section-5 {
  background: linear-gradient(135deg, #fefce8 0%, #fef9c3 100%);
  border: 1px solid rgba(234, 179, 8, 0.15);
}
.competition-section-6 {
  background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%);
  border: 1px solid rgba(244, 63, 94, 0.15);
}
.competition-gallery-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--color-dark);
  margin: 32px 0 16px;
}
.competition-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.competition-gallery img {
  width: 100%;
  border-radius: var(--radius-sm);
  object-fit: cover;
  aspect-ratio: 4/3;
  cursor: pointer;
  transition: transform 0.3s;
}
.competition-gallery img:hover {
  transform: scale(1.03);
}

/* Competition Page (standalone) */
.competition-page-logo {
  width: 120px;
  display: block;
  margin: 0 auto 16px;
}

/* ── Competition Page — New Layout ── */

/* Section separation */
.comp-intro-section {
  background: linear-gradient(135deg, #fef9f0 0%, #fdf2f8 50%, #f0f4ff 100%);
}
.comp-registration-section {
  background: linear-gradient(180deg, #ffffff 0%, #faf5ff 100%);
}
.comp-showcase-section {
  background: linear-gradient(180deg, #fffbeb 0%, #fef3f0 40%, #f0f4ff 100%);
  padding-bottom: 80px;
}

/* Competition page hero override */
body.competition-page .page-hero {
  padding: 120px 0 40px;
}
body.competition-page .page-hero-inner {
  flex-direction: column;
}
.comp-page-nav {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.comp-page-nav-btn {
  padding: 10px 24px;
  border-radius: 24px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  color: var(--color-dark);
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(0,0,0,0.1);
  backdrop-filter: blur(8px);
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.comp-page-nav-btn:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(253,55,59,0.3);
}

#comp-intro,
#comp-reg,
#comp-showcase {
  scroll-margin-top: 80px;
}
body.competition-page .section-header {
  font-size: 36px;
  font-weight: 800;
  background: linear-gradient(135deg, #1a1a2e 0%, #4f46e5 40%, #e11d48 70%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.comp-intro-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.comp-intro-content p {
  font-size: 18px;
  line-height: 2;
  color: var(--color-gray-700);
}

/* Registration Card */
.comp-reg-card {
  max-width: 960px;
  margin: 0 auto;
  background: var(--color-white);
  border-radius: 24px;
  padding: 48px 44px 36px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.06);
  border-top: 4px solid var(--color-primary);
}
.comp-reg-card-header {
  text-align: center;
  margin-bottom: 36px;
}
.comp-reg-logo {
  width: 90px;
  margin: 0 auto 16px;
  display: block;
}
.comp-reg-card-header h3 {
  font-size: 28px;
  font-weight: 800;
  color: var(--color-dark);
  margin-bottom: 8px;
}
.comp-reg-card-subtitle {
  font-size: 18px;
  color: var(--color-primary);
  font-weight: 600;
}
.comp-reg-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}
.comp-reg-info-item {
  text-align: center;
  padding: 24px 20px;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.05);
}
.comp-reg-info-item:nth-child(1) {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}
.comp-reg-info-item:nth-child(2) {
  background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%);
}
.comp-reg-info-item:nth-child(3) {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}
.comp-reg-info-icon {
  font-size: 32px;
  margin-bottom: 10px;
}
.comp-reg-info-item h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 8px;
}
.comp-reg-info-item p {
  font-size: 16px;
  color: var(--color-gray-500);
  line-height: 1.6;
}
.comp-reg-cta {
  display: block;
  width: 100%;
  padding: 18px;
  background: linear-gradient(135deg, #fd373b 0%, #e11d48 50%, #be123c 100%);
  color: var(--color-white);
  border: none;
  border-radius: 14px;
  font-size: 19px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 16px rgba(253, 55, 59, 0.35);
  letter-spacing: 0.5px;
}
.comp-reg-cta:hover {
  background: linear-gradient(135deg, #e0282c 0%, #be123c 50%, #9f1239 100%);
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(253, 55, 59, 0.45);
}
.comp-reg-cta.active {
  background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
  box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3);
}

/* Registration Detail (expandable) */
.comp-reg-detail {
  max-width: 960px;
  margin: 0 auto;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}
.comp-reg-detail.open {
  max-height: 4000px;
}
.comp-detail-section {
  padding: 32px 0;
  border-bottom: 1px solid var(--color-border);
}
.comp-detail-section:last-child {
  border-bottom: none;
}
.comp-detail-section h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--color-dark);
  margin-bottom: 20px;
  padding-left: 16px;
  border-left: 4px solid var(--color-primary);
}
.comp-detail-section p {
  font-size: 17px;
  line-height: 1.9;
  color: var(--color-gray-700);
}
.comp-detail-list {
  list-style: none;
  padding: 0;
}
.comp-detail-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 14px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--color-gray-700);
}
.comp-detail-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 10px;
  height: 10px;
  background: var(--color-primary);
  border-radius: 50%;
}

/* Timeline Table */
.comp-timeline-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}
.comp-timeline-table th {
  text-align: left;
  padding: 14px 16px;
  font-weight: 700;
  color: var(--color-white);
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  font-size: 16px;
}
.comp-timeline-table th:first-child { border-radius: 8px 0 0 0; }
.comp-timeline-table th:last-child { border-radius: 0 8px 0 0; }
.comp-timeline-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-gray-700);
  background: #fff;
}
.comp-timeline-table tr:last-child td {
  border-bottom: none;
}

/* Awards */
.comp-awards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.comp-award-card {
  padding: 32px;
  background: linear-gradient(135deg, #f0f4ff 0%, #ede9fe 100%);
  border-radius: 20px;
  text-align: center;
  border: 1px solid rgba(79, 70, 229, 0.1);
}
.comp-award-first {
  border: 2px solid #ffd700;
  background: linear-gradient(135deg, #fffdf0 0%, #fef3c7 100%);
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.15);
}
.comp-award-badge {
  font-size: 48px;
  margin-bottom: 14px;
  animation: comp-badge-pulse 2.5s ease-in-out infinite;
}
.comp-award-card h4 {
  font-size: 22px;
  font-weight: 800;
  color: #4f46e5;
  margin-bottom: 12px;
}
.comp-award-first h4 {
  color: #b45309;
  font-size: 24px;
}
.comp-award-card p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-dark);
  font-weight: 500;
}

/* Scoring */
.comp-scoring-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.comp-scoring-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: #fff;
  border-radius: 12px;
  flex: 1 1 calc(50% - 7px);
  min-width: 220px;
  border-left: 4px solid var(--color-primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.comp-scoring-item::before {
  flex-shrink: 0;
  font-size: 20px;
}
.comp-scoring-item:nth-child(1) { border-left-color: #4f46e5; }
.comp-scoring-item:nth-child(1)::before { content: '🎯'; }
.comp-scoring-item:nth-child(2) { border-left-color: #e11d48; }
.comp-scoring-item:nth-child(2)::before { content: '💡'; }
.comp-scoring-item:nth-child(3) { border-left-color: #16a34a; }
.comp-scoring-item:nth-child(3)::before { content: '🤖'; }
.comp-scoring-item:nth-child(4) { border-left-color: #f59e0b; }
.comp-scoring-item:nth-child(4)::before { content: '📐'; }
.comp-scoring-item:nth-child(5) { border-left-color: #06b6d4; }
.comp-scoring-item:nth-child(5)::before { content: '🌟'; }
.comp-scoring-pct {
  font-size: 22px;
  font-weight: 800;
  color: var(--color-primary);
  white-space: nowrap;
}
.comp-scoring-item span:last-child {
  font-size: 16px;
  color: var(--color-gray-700);
}

/* ── School Showcase Blocks ── */

/* Sparkle animation */
@keyframes comp-sparkle {
  0%, 100% { opacity: 0; transform: scale(0) rotate(0deg); }
  50% { opacity: 1; transform: scale(1) rotate(180deg); }
}
@keyframes comp-twinkle {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}
@keyframes comp-float-star {
  0% { transform: translateY(0) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-60px) rotate(360deg); opacity: 0; }
}

.comp-school-block {
  position: relative;
  max-width: 960px;
  margin: 0 auto 48px;
  border-radius: 24px;
  overflow: visible;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  border: 1px solid rgba(0,0,0,0.06);
  background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 50%, #f3e8ff 100%);
}
.comp-school-block:nth-child(2) {
  background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 50%, #fff1f2 100%);
}
.comp-school-block:nth-child(3) {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 50%, #f0fdf4 100%);
}
.comp-school-block:nth-child(4) {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 50%, #e0f2fe 100%);
}
.comp-school-block:nth-child(5) {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 50%, #fff7ed 100%);
}
/* Sparkle decorations on school blocks */
.comp-school-block::before,
.comp-school-block::after {
  content: '✦';
  position: absolute;
  font-size: 16px;
  color: #ffd700;
  pointer-events: none;
  animation: comp-twinkle 2s ease-in-out infinite;
  z-index: 1;
}
.comp-school-block::before {
  top: -8px;
  right: 24px;
  animation-delay: 0s;
}
.comp-school-block::after {
  top: 16px;
  right: -4px;
  font-size: 12px;
  animation-delay: 0.7s;
}
/* Extra sparkles for first place */
.comp-school-block:first-child {
  border: 2px solid rgba(255, 215, 0, 0.4);
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 30%, #fde68a 70%, #fef9c3 100%);
  box-shadow: 0 4px 32px rgba(255, 215, 0, 0.2), 0 4px 24px rgba(0,0,0,0.07);
}
.comp-school-block:first-child::before {
  content: '★';
  font-size: 22px;
  top: -12px;
  right: 32px;
  color: #ffd700;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}
.comp-school-block:first-child::after {
  content: '✦';
  top: -6px;
  right: 8px;
  font-size: 14px;
}
/* Floating stars container (JS-injected via pseudo on header) */
.comp-school-header {
  position: relative;
  padding: 32px 40px 24px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  overflow: hidden;
  background: rgba(255,255,255,0.45);
  border-radius: 24px 24px 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 20px;
}
.comp-school-header h3 {
  width: 100%;
  text-align: center;
}
.comp-school-header .comp-school-work {
  width: 100%;
  text-align: center;
}
.comp-school-header .comp-school-links {
  width: 100%;
  justify-content: center;
}
/* Decorative sparkles in header background */
.comp-school-header::before {
  content: '✨';
  position: absolute;
  top: 12px;
  left: 16px;
  font-size: 20px;
  opacity: 0.5;
  animation: comp-twinkle 3s ease-in-out infinite;
  animation-delay: 0.3s;
}
.comp-school-block:first-child .comp-school-header::before {
  content: '🎉';
  font-size: 24px;
  opacity: 0.7;
}
.comp-school-badge {
  display: inline-flex;
  align-items: center;
  position: relative;
  font-size: 15px;
  font-weight: 700;
  color: #6d28d9;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
  padding: 4px 38px;
  background: none;
  animation: comp-badge-pulse 2s ease-in-out infinite;
}
.comp-school-badge::before,
.comp-school-badge::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 24px;
  height: 48px;
  transform: translateY(-50%);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='54' height='108' viewBox='0 0 54 108' fill='none'%3E%3Cellipse cx='37.2348' cy='102.932' rx='8' ry='4.5' transform='rotate(3.14415 37.2348 102.932)' fill='%23F6BE00'/%3E%3Cellipse cx='21.1631' cy='89.5516' rx='8' ry='4.5' transform='rotate(26.0009 21.1631 89.5516)' fill='%23F6BE00'/%3E%3Cellipse cx='9.5487' cy='72.0412' rx='8' ry='4.5' transform='rotate(50.7104 9.5487 72.0412)' fill='%23F6BE00'/%3E%3Cellipse cx='7.66582' cy='51.1727' rx='8' ry='4.5' transform='rotate(62.7242 7.66582 51.1727)' fill='%23F6BE00'/%3E%3Cellipse cx='10.4396' cy='31.4879' rx='8' ry='4.5' transform='rotate(83.0138 10.4396 31.4879)' fill='%23F6BE00'/%3E%3Cellipse cx='20.5433' cy='15.0243' rx='8' ry='4.5' transform='rotate(90.3108 20.5433 15.0243)' fill='%23F6BE00'/%3E%3Cellipse cx='48.7055' cy='90.1137' rx='8' ry='4.5' transform='rotate(88.5182 48.7055 90.1137)' fill='%23F6BE00'/%3E%3Cellipse cx='36.3192' cy='81.8573' rx='8' ry='4.5' transform='rotate(104.151 36.3192 81.8573)' fill='%23F6BE00'/%3E%3Cellipse cx='26.4664' cy='70.0766' rx='8' ry='4.5' transform='rotate(127.92 26.4664 70.0766)' fill='%23F6BE00'/%3E%3Cellipse cx='24.0524' cy='53.5246' rx='8' ry='4.5' transform='rotate(141.121 24.0524 53.5246)' fill='%23F6BE00'/%3E%3Cellipse cx='24.9906' cy='38.723' rx='8' ry='4.5' transform='rotate(162.265 24.9906 38.723)' fill='%23F6BE00'/%3E%3Cellipse cx='33.9905' cy='24.7231' rx='8' ry='4.5' transform='rotate(170.36 33.9905 24.7231)' fill='%23F6BE00'/%3E%3Cellipse cx='39.0091' cy='8.61122' rx='8' ry='4.5' transform='rotate(139.611 39.0091 8.61122)' fill='%23F6BE00'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}
.comp-school-badge::before {
  left: 6px;
}
.comp-school-badge::after {
  right: 6px;
  transform: translateY(-50%) scaleX(-1);
}
@keyframes comp-badge-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}
.comp-school-badge--first {
  font-size: 16px;
  padding: 5px 42px;
  color: #b45309;
  animation: comp-badge-shine 2s ease-in-out infinite;
}
.comp-school-badge--first::before,
.comp-school-badge--first::after {
  width: 28px;
  height: 56px;
}
@keyframes comp-badge-shine {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}
.comp-school-header h3 {
  font-size: 26px;
  font-weight: 800;
  color: var(--color-dark);
  margin-bottom: 8px;
}
.comp-school-work {
  font-size: 19px;
  color: #7c3aed;
  font-weight: 600;
  line-height: 1.6;
  margin-bottom: 12px;
  font-style: italic;
}
.comp-school-block:first-child .comp-school-work { color: #b45309; }
.comp-school-block:nth-child(2) .comp-school-work { color: #be185d; }
.comp-school-block:nth-child(3) .comp-school-work { color: #047857; }
.comp-school-block:nth-child(4) .comp-school-work { color: #1d4ed8; }
.comp-school-block:nth-child(5) .comp-school-work { color: #b45309; }
.comp-school-content {
  padding: 28px 40px 32px;
  display: flex;
  gap: 32px;
  align-items: flex-start;
}
/* Photos as direct child of block (no wrapper) */
.comp-school-block > .comp-school-photos {
  padding: 16px 40px 28px;
  max-width: 480px;
  margin: 0 auto;
}
.comp-school-links {
  display: flex;
  flex-direction: row;
  gap: 10px;
}
.comp-school-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #7c3aed;
  border-radius: 10px;
  text-decoration: none;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s;
  border: none;
}
.comp-school-link:hover:not(.comp-school-link--disabled) {
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}
/* Per-block link colors */
.comp-school-block:first-child .comp-school-link { background: #d97706; }
.comp-school-block:nth-child(2) .comp-school-link { background: #db2777; }
.comp-school-block:nth-child(3) .comp-school-link { background: #059669; }
.comp-school-block:nth-child(4) .comp-school-link { background: #2563eb; }
.comp-school-block:nth-child(5) .comp-school-link { background: #d97706; }
.comp-school-link--disabled {
  pointer-events: none;
  opacity: 0.5;
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
  border-color: rgba(0,0,0,0.08);
}
.comp-school-link-icon {
  font-size: 16px;
  flex-shrink: 0;
}
.comp-link-card-status {
  display: inline-block;
  font-size: 12px;
  color: var(--color-gray-500);
  background: rgba(0,0,0,0.06);
  padding: 3px 10px;
  border-radius: 20px;
  margin-left: auto;
}
.comp-school-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.comp-school-photos img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 14px;
  transition: transform 0.3s;
}
.comp-school-photos img:hover {
  transform: scale(1.03);
}

/* YouTube Video Preview */
.comp-school-video {
  position: relative;
  aspect-ratio: 16/9;
  cursor: pointer;
  overflow: hidden;
  background: #000;
  max-width: 560px;
  margin: 20px auto;
  border-radius: 12px;
  border: 3px solid #2a2a2a;
  box-shadow: 0 6px 24px rgba(0,0,0,0.18), inset 0 0 0 1px rgba(255,255,255,0.05);
  outline: 4px solid rgba(0,0,0,0.06);
  outline-offset: 2px;
}
.comp-school-video iframe {
  width: 100%;
  height: 100%;
  border: none;
}
.comp-video-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}
.comp-school-video:hover .comp-video-thumb {
  transform: scale(1.05);
}
.comp-video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  opacity: 0.85;
  transition: opacity 0.2s, transform 0.2s;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
}
.comp-school-video:hover .comp-video-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.15);
}

/* ============================================
   16. Activity Modal
   ============================================ */
.activity-modal .modal-content {
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
}
.activity-modal-banner {
  width: 100%;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
}
.activity-modal-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0;
  padding: 20px;
  background: var(--color-bg);
  border-radius: var(--radius-sm);
}
.activity-modal-info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.activity-modal-info-item strong {
  font-size: 16px;
  color: var(--color-gray-500);
}
.activity-modal-info-item span {
  font-size: 16px;
  color: var(--color-dark);
}
.activity-modal-content {
  line-height: 1.8;
  color: var(--color-gray-700);
}
.activity-modal-content img {
  max-width: 100%;
  border-radius: var(--radius-sm);
  margin: 16px 0;
}
.activity-modal-content iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: none;
  border-radius: var(--radius-sm);
  margin: 12px 0;
  display: block;
}

/* ============================================
   17. About Page
   ============================================ */
.about-company {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.about-company-logo {
  display: block;
  margin: 0 auto 24px;
  max-width: 220px;
  height: auto;
}
.about-company p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-gray-700);
  margin-top: 16px;
}

.about-association-logo {
  display: block;
  margin: 0 auto 24px;
  max-width: 320px;
  height: auto;
}
.ai-values {
  text-align: center;
}

.ai-values-grid {
  margin-top: 40px;
}
.ai-values-card {
  background: var(--color-white);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  padding: 12px 36px;
  max-width: 800px;
  margin: 0 auto;
}
.ai-value-row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid #f0f0f0;
}
.ai-value-row:last-child {
  border-bottom: none;
}
.ai-value-icon {
  font-size: 28px;
  line-height: 1;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  border-radius: 14px;
  flex-shrink: 0;
}
.ai-value-text {
  flex: 1;
}
.ai-value-text h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.5;
  margin-bottom: 6px;
}
.ai-value-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-gray-500);
  margin: 0;
}

/* Timeline */
.timeline {
  position: relative;
  padding: 24px 0;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-gray-300);
  transform: translateX(-50%);
}
.timeline-item {
  position: relative;
  margin-bottom: 48px;
  width: 50%;
}
.timeline-left {
  padding-right: 48px;
  text-align: right;
}
.timeline-right {
  margin-left: 50%;
  padding-left: 48px;
}
.timeline-dot {
  position: absolute;
  top: 8px;
  width: 14px;
  height: 14px;
  background: var(--color-primary);
  border-radius: 50%;
  border: 3px solid var(--color-white);
  box-shadow: 0 0 0 2px var(--color-primary);
  z-index: 2;
}
.timeline-left .timeline-dot {
  right: -7px;
}
.timeline-right .timeline-dot {
  left: -7px;
}
.timeline-content {
  padding: 0;
}
.timeline-year {
  font-size: 20px;
  font-weight: 800;
  color: var(--color-dark);
  margin-bottom: 8px;
  display: inline-block;
  padding: 2px 10px;
  border-radius: 4px;
  background: linear-gradient(180deg, transparent 50%, #ffe066 50%);
}
.timeline-content h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
}
.timeline-content p {
  font-size: 16px;
  color: var(--color-gray-500);
  line-height: 1.6;
}

/* Founder */
.founder-section {
  display: flex;
  gap: 48px;
  align-items: center;
  max-width: 800px;
  margin: 0 auto;
}
.founder-image {
  flex-shrink: 0;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
}
.founder-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.founder-content {
  flex: 1;
}
.founder-headline {
  font-size: 22px;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 12px;
  line-height: 1.4;
}
.founder-quote {
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-gray-700);
  font-style: italic;
  margin-bottom: 20px;
  border-left: 3px solid var(--color-primary);
  padding-left: 20px;
}
.founder-info {
  display: flex;
  gap: 12px;
  align-items: center;
}
.founder-info strong {
  font-size: 18px;
  color: var(--color-dark);
}
.founder-info span {
  font-size: 16px;
  color: var(--color-gray-500);
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
}
.team-card {
  text-align: center;
  padding: 36px 20px;
  background: var(--color-white);
  border-radius: 20px;
  border: none;
  box-shadow: var(--shadow-sm);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.team-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px) scale(1.02);
}
.team-card img {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  border: 4px solid #f0f0f0;
  transition: border-color 0.3s;
}
.team-card:hover img {
  border-color: var(--color-primary);
}
.team-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 6px;
}
.team-card p {
  font-size: 16px;
  color: var(--color-gray-500);
}

/* Contact */
.contact-section {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}
.contact-card {
  background: var(--color-white);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  padding: 40px 44px;
  margin-top: 28px;
  text-align: left;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 16px;
}
.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff0f0;
  color: var(--color-primary);
  font-size: 18px;
}
.contact-item strong {
  display: block;
  font-size: 16px;
  color: var(--color-dark);
}
.contact-item p {
  font-size: 15px;
  color: var(--color-gray-500);
  margin: 2px 0 0;
}
.contact-item a {
  color: var(--color-dark);
  font-weight: 500;
}
.contact-item a:hover {
  text-decoration: underline;
  color: var(--color-primary);
}
.contact-divider {
  height: 1px;
  background: #f0f0f0;
  margin: 28px 0;
}
.contact-social {
  text-align: center;
}
.contact-social h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 20px;
}
.contact-social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
}
.contact-social-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  transition: all 0.3s;
}
.contact-social-icon svg {
  width: 26px;
  height: 26px;
}
.contact-social-icon[aria-label='Facebook'] {
  color: #1877f2;
}
.contact-social-icon[aria-label='LINE'] {
  color: #06c755;
}
.contact-social-icon[aria-label='YouTube'] {
  color: #ff0000;
}
.contact-social-icon[aria-label='Website'] {
  color: #ff8a3d;
}
.contact-social-icon:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}
.contact-social-icon[aria-label='Facebook']:hover {
  background: #1877f2;
  color: #fff;
}
.contact-social-icon[aria-label='LINE']:hover {
  background: #06c755;
  color: #fff;
}
.contact-social-icon[aria-label='YouTube']:hover {
  background: #ff0000;
  color: #fff;
}
.contact-social-icon[aria-label='Website']:hover {
  background: #ff8a3d;
  color: #fff;
}

/* ============================================
   18. Institutions Grid
   ============================================ */
.institutions-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  align-items: center;
  justify-items: center;
}
.institution-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: var(--color-white);
  border-radius: var(--radius-sm);
}
.institution-item img {
  max-height: 96px;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.5);
  transition: filter 0.3s ease;
}
.institution-item:hover img {
  filter: grayscale(0%) opacity(1);
}

/* ============================================
   19. Video Modal
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.modal-content {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 24px;
  max-width: 90%;
  width: 800px;
  position: relative;
  transform: scale(0.95);
  transition: transform var(--transition);
}
.modal-overlay.active .modal-content {
  transform: scale(1);
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--color-bg);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  color: var(--color-gray-700);
  z-index: 5;
}
.modal-close:hover {
  background: var(--color-gray-300);
}

.video-modal .modal-content {
  padding: 0;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 900px;
  width: 90vw;
}
.video-modal .modal-close {
  top: -44px;
  right: 0;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}
.video-modal .modal-close:hover {
  background: rgba(255, 255, 255, 0.4);
}
#video-iframe {
  width: 100%;
  aspect-ratio: 16/9;
  display: block;
  border: none;
}

/* ============================================
   19b. Footer CTA
   ============================================ */
.footer-cta {
  position: relative;
  overflow: hidden;
}
.footer-cta-bg {
  display: block;
  width: 100%;
  height: auto;
}
.footer-cta-overlay {
  display: none;
}
.footer-cta-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1;
  text-align: center;
  padding: 64px 24px 0;
}
.footer-cta-content h2 {
  font-size: 40px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 32px;
  letter-spacing: -0.3px;
}
.footer-cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.footer-cta-btn {
  padding: 14px 36px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}
.footer-cta-btn--light {
  background: #fff;
  color: var(--color-dark);
  border: 2px solid #fff;
}
.footer-cta-btn--light:hover {
  background: transparent;
  color: #fff;
}
.footer-cta-btn--outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.7);
}
.footer-cta-btn--outline:hover {
  background: #fff;
  color: var(--color-dark);
  border-color: #fff;
}

@media (max-width: 768px) {
  .footer-cta {
    min-height: 320px;
  }
  .footer-cta-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
  }
  .footer-cta-content {
    position: relative;
    padding: 48px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 320px;
  }
  .footer-cta-content h2 {
    font-size: 22px;
    margin-bottom: 24px;
  }
  .footer-cta-buttons {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }
  .footer-cta-btn {
    padding: 12px 28px;
    font-size: 14px;
    width: 200px;
    text-align: center;
  }
  .footer-cta-btn--outline {
    background: rgba(255, 255, 255, 0.9);
    color: var(--color-dark);
    border-color: #fff;
  }
}

/* ============================================
   20. Footer
   ============================================ */
.site-footer {
  background: var(--color-dark);
  color: rgba(255, 255, 255, 0.7);
  padding-top: 56px;
}

/* Top row: logo + social */
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 40px;
}
.footer-logo img {
  height: 56px;
  width: auto;
}
.footer-social {
  display: flex;
  gap: 10px;
}
.footer-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
}
.footer-social-icon:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.footer-social-icon svg {
  width: 20px;
  height: 20px;
}

/* Link columns */
.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 48px;
}
.footer-col h4 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
  letter-spacing: 0.3px;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-col li {
  font-size: 15px;
}
.footer-col a,
.footer-col span {
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.3s ease;
  text-decoration: none;
}
.footer-col a:hover {
  color: #fff;
}

/* Bottom copyright */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
}

/* ============================================
   21. Back to Top
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow);
  z-index: 500;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}
.back-to-top:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ============================================
   22. Utility
   ============================================ */
.no-data {
  text-align: center;
  color: var(--color-gray-500);
  padding: 48px 0;
  font-size: 16px;
  width: 100%;
}

/* ============================================
   23. GSAP Animation Prep
   ============================================ */
.gs-hidden {
  opacity: 0;
  transform: translateY(40px);
}
.gs-hidden-left {
  opacity: 0;
  transform: translateX(-60px);
}
.gs-hidden-right {
  opacity: 0;
  transform: translateX(60px);
}
.gs-hidden-scale {
  opacity: 0;
  transform: scale(0.85);
}

/* ============================================
   24b. Creative Enhancements — Kira-style
   ============================================ */

/* Section decorator blobs */
.section {
  position: relative;
}
.section-deco {
  overflow: hidden;
}
.section-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}
.section-blob--pink {
  width: 300px;
  height: 300px;
  top: -80px;
  right: -60px;
  background: radial-gradient(
    circle,
    rgba(253, 55, 59, 0.15) 0%,
    transparent 70%
  );
}
.section-blob--blue {
  width: 250px;
  height: 250px;
  bottom: -60px;
  left: -40px;
  background: radial-gradient(
    circle,
    rgba(59, 130, 246, 0.12) 0%,
    transparent 70%
  );
}
.section-blob--purple {
  width: 280px;
  height: 280px;
  top: -60px;
  left: -50px;
  background: radial-gradient(
    circle,
    rgba(168, 85, 247, 0.14) 0%,
    transparent 70%
  );
}
.section-blob--orange {
  width: 260px;
  height: 260px;
  bottom: -70px;
  right: -50px;
  background: radial-gradient(
    circle,
    rgba(255, 138, 61, 0.14) 0%,
    transparent 70%
  );
}
#company-intro::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(253, 55, 59, 0.05) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}
#company-education::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(59, 130, 246, 0.05) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}
#products::before {
  content: '';
  position: absolute;
  top: 40px;
  left: -120px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(168, 85, 247, 0.04) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

/* Enhanced card hover — already defined in main card sections above */

/* Stat items — enhanced */
.stat-item {
  transition: all 0.3s ease;
}
.stat-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Section header — gradient accent dot instead of underline */
.section-header h2::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, var(--color-primary), #a855f7);
  border-radius: 50%;
  margin-right: 12px;
  vertical-align: middle;
}
.subsection-title::before {
  display: none;
}

/* Institution marquee / infinite scroll */
.institutions-marquee {
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
}
.institutions-marquee-track {
  display: flex;
  gap: 32px;
  align-items: center;
  animation: marqueeScroll 30s linear infinite;
  width: max-content;
}
.institutions-marquee-track .institution-item {
  flex-shrink: 0;
  padding: 16px 24px;
  background: var(--color-white);
  border-radius: var(--radius-sm);
}
.institutions-marquee-track .institution-item img {
  filter: grayscale(100%) opacity(0.5);
  transition: filter 0.3s ease;
}
.institutions-marquee-track .institution-item:hover img {
  filter: grayscale(0%) opacity(1);
}
@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
.institutions-marquee:hover .institutions-marquee-track {
  animation-play-state: paused;
}

/* Smooth page-hero text & deco entrance for sub-pages */
.page-hero-text h1,
.page-hero-text p,
.page-hero-text .hero-cta {
  animation: heroTextIn 0.8s ease-out both;
}
.page-hero-text p {
  animation-delay: 0.15s;
}
.page-hero-text .hero-cta {
  animation-delay: 0.3s;
}
.page-hero-deco img {
  animation:
    decoFloat 1s ease-out both,
    decoHover 4s ease-in-out 1.2s infinite;
}
@keyframes decoFloat {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes heroTextIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Nav link underline animation */
.nav-links li a {
  position: relative;
}
.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: all 0.3s ease;
  transform: translateX(-50%);
  border-radius: 1px;
}
.nav-links li a:hover::after,
.nav-links li a.active::after {
  width: 60%;
}

/* Timeline dot pulse — uses box-shadow to avoid layout shift */
.timeline-dot {
  animation: dotPulse 2.5s ease-out infinite;
}
@keyframes dotPulse {
  0%,
  100% {
    box-shadow:
      0 0 0 2px var(--color-primary),
      0 0 0 4px rgba(253, 55, 59, 0.3);
  }
  50% {
    box-shadow:
      0 0 0 2px var(--color-primary),
      0 0 0 10px rgba(253, 55, 59, 0);
  }
}

/* ============================================
   24. Responsive
   ============================================ */
@media (max-width: 1200px) {
  .intro-grid {
    gap: 40px;
  }
}

@media (max-width: 960px) {
  .intro-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .intro-grid.reverse {
    direction: ltr;
  }
  .page-hero-deco {
    width: 350px;
    margin-right: -20px;
  }
  .intro-awards {
    gap: 24px;
  }
  .intro-award-item img {
    width: 64px;
    height: 64px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .award-card {
    gap: 24px;
    padding: 28px 24px;
  }
  .award-year {
    font-size: 56px;
  }
  .page-hero h1 {
    font-size: 36px;
  }
  .section {
    padding: 80px 0;
  }
  .section-header h2,
  .subsection-title,
  .product-category-header {
    font-size: 24px;
  }
  .feedback-card {
    width: calc(50% - 16px);
  }
  .founder-section {
    flex-direction: column;
    text-align: center;
  }
  .founder-image {
    width: 120px;
    height: 120px;
  }
  .team-card img {
    width: 110px;
    height: 110px;
  }
  .founder-headline {
    text-align: center;
    font-size: 18px;
  }
  .founder-quote {
    border-left: none;
    padding-left: 0;
    text-align: center;
    font-size: 14px;
    line-height: 1.7;
  }
  .founder-info {
    justify-content: center;
  }
  .founder-info strong {
    font-size: 16px;
  }
  .founder-info span {
    font-size: 14px;
  }
  .institutions-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Timeline mobile: single column */
  .timeline::before {
    left: 16px;
  }
  .timeline-item {
    width: 100%;
  }
  .timeline-left,
  .timeline-right {
    text-align: left;
    margin-left: 0;
    padding-left: 44px;
    padding-right: 0;
  }
  .timeline-left .timeline-dot,
  .timeline-right .timeline-dot {
    left: 9px;
    right: auto;
  }
}

@media (max-width: 768px) {
  /* ── Unified mobile typography scale ── */
  :root {
    --fs-h1: 28px;
    --fs-h2: 22px;
    --fs-h3: 18px;
    --fs-body: 14px;
    --fs-lg: 15px;
    --fs-subtitle: 15px;
  }
  body {
    font-size: 14px;
  }

  .nav-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
  .nav-logo img {
    height: 56px;
  }
  .nav-inner {
    justify-content: space-between;
    position: relative;
  }
  .nav-inner .lang-dropdown.desktop-only {
    display: block !important;
    order: -1;
  }
  .nav-inner .lang-dropdown-toggle {
    font-size: 12px;
    padding: 4px 8px;
    border: none;
    background: none;
  }
  .lang-globe {
    display: inline-block;
  }
  .lang-text {
    display: none;
  }
  .nav-inner .lang-dropdown-menu {
    right: auto;
    left: 0;
    min-width: 100px;
  }
  .nav-inner .lang-dropdown-menu button {
    font-size: 13px;
    padding: 8px 12px;
  }
  .hamburger {
    z-index: 10;
    order: 1;
  }
  .section {
    padding: 56px 0;
  }
  .section-header h2,
  .subsection-title,
  .product-category-header {
    font-size: 20px;
  }
  .section-header p {
    font-size: 14px;
  }

  /* ── Hero (home) ── */
  #hero,
  .hero-section {
    min-height: 80vh;
  }
  #hero::before,
  .hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.4;
    background-image: radial-gradient(
      circle,
      var(--color-gray-300) 1px,
      transparent 1px
    );
    background-size: 24px 24px;
  }
  .hero-content {
    margin-top: 0;
    padding-top: 100px;
  }
  .hero-brand {
    font-size: 48px;
  }
  .hero-content h1 {
    font-size: 38px;
    letter-spacing: -0.5px;
  }
  .hero-content p:not(.hero-tag):not(.hero-brand) {
    font-size: 18px;
  }
  .hero-tag {
    font-size: 11px;
    letter-spacing: 2px;
  }
  .hero-cta {
    font-size: 15px;
    padding: 14px 32px;
  }
  .hero-entrance {
    width: 650px;
    height: 650px;
    bottom: -40%;
  }
  /* Keep gradient orbs visible on mobile */
  .hero-orb--1 {
    width: 220px;
    height: 220px;
  }
  .hero-orb--2 {
    width: 180px;
    height: 180px;
  }
  .hero-orb--3 {
    width: 150px;
    height: 150px;
  }

  /* ── Page heroes (sub-pages) ── */
  .page-hero {
    padding: 80px 0 36px;
    min-height: auto;
  }
  .page-hero-orb--1 {
    display: block;
    width: 200px;
    height: 200px;
    opacity: 0.6;
  }
  .page-hero-orb--2 {
    display: block;
    width: 160px;
    height: 160px;
    opacity: 0.5;
  }
  .page-hero-orb--3 {
    display: block;
    width: 140px;
    height: 140px;
    opacity: 0.4;
  }
  .page-hero-inner {
    display: grid;
    grid-template-columns: 1fr;
    text-align: center;
    padding: 0 20px;
    gap: 12px;
    justify-items: center;
  }
  .page-hero-text {
    max-width: 100%;
    display: contents;
  }
  .page-hero-text h1 {
    font-size: 2.5rem;
    order: 1;
  }
  .page-hero-text p {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 0;
    order: 2;
  }
  .page-hero-deco {
    width: 300px;
    margin: 0;
    order: 3;
  }
  .page-hero-text .hero-cta {
    order: 4;
    margin-top: 8px;
    font-size: 15px;
    padding: 12px 32px;
  }
  .page-hero h1 {
    font-size: 2.5rem;
  }

  /* ── Featured hero carousel mobile ── */
  .featured-hero {
    height: 360px;
  }
  .carousel-slide-content {
    padding: 24px 20px;
  }
  .carousel-slide-content h3 {
    font-size: 20px;
  }
  .carousel-slide-content p {
    font-size: 14px;
  }
  .featured-hero .carousel-prev,
  .featured-hero .carousel-next {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
  .featured-hero .carousel-dots {
    bottom: 16px;
  }

  /* ── Prevent horizontal overflow from GSAP initial states ── */
  .section {
    overflow: hidden;
  }
  .section-blob {
    display: none;
  }
  .section-deco {
    overflow: hidden;
  }

  /* ── Intro grid (home) — prevent overflow ── */
  .intro-grid {
    gap: 20px;
  }
  .intro-image {
    max-width: 65%;
    margin: 0 auto;
  }
  .intro-image--logo {
    justify-content: center;
    max-width: 100%;
  }
  .intro-image--logo img {
    max-width: 120px;
  }
  .intro-text {
    text-align: center;
  }
  .intro-text h2 {
    font-size: 22px;
  }
  .intro-text p {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.9;
  }
  .intro-tag {
    font-size: 13px;
  }
  /* ── Awards badges — keep laurel, wrap layout ── */
  .intro-awards {
    flex-wrap: wrap;
    gap: 24px;
    padding: 16px 0;
    margin-top: 32px;
    justify-content: center;
  }
  .intro-award-item {
    padding: 0 24px;
  }
  .intro-award-item img {
    width: 80px;
    height: 80px;
  }
  .intro-award-item span {
    font-size: 13px;
    max-width: 140px;
  }
  .intro-award-item::before,
  .intro-award-item::after {
    width: 36px;
    height: 72px;
  }

  /* ── Products ── */
  .products-grid,
  .products-grid-inner {
    grid-template-columns: 1fr;
  }
  .product-series {
    border-radius: 16px;
    margin-bottom: 24px;
    min-height: 180px;
  }
  .product-series.series-align-left {
    margin-left: 0;
    margin-right: 24px;
    padding-left: 16px;
    border-radius: 0 16px 16px 0;
  }
  .product-series.series-align-right {
    margin-right: 0;
    margin-left: 24px;
    padding-right: 16px;
    border-radius: 16px 0 0 16px;
  }
  .product-series::after {
    animation-duration: 5s;
  }
  .product-series .product-series-header::before {
    width: 120px;
    height: 120px;
    filter: blur(40px);
  }
  .product-series-header {
    flex-wrap: wrap;
    gap: 16px;
    padding: 28px 20px 16px;
  }
  .product-series-header::after {
    content: '查看產品 ▾';
    display: block;
    width: 100%;
    flex-basis: 100%;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: inherit;
    letter-spacing: 0.5px;
    padding: 6px 0 0;
    animation: tapHint 2s ease-in-out infinite;
  }
  .series-color-1 .product-series-header::after {
    color: #4f46e5;
  }
  .series-color-2 .product-series-header::after {
    color: #e11d48;
  }
  .series-color-3 .product-series-header::after {
    color: #16a34a;
  }
  .product-series.is-open .product-series-header::after {
    content: '收合 ▴';
    animation: none;
  }
  @keyframes tapHint {
    0%,
    100% {
      transform: translateY(0);
      opacity: 0.7;
    }
    50% {
      transform: translateY(4px);
      opacity: 1;
    }
  }
  .product-series-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
  }
  .product-series-title {
    font-size: 20px;
  }
  .product-series-desc {
    font-size: 14px;
    line-height: 1.6;
  }
  .product-series-count {
    order: -1;
  }
  .product-series-products {
    padding: 0 16px;
  }
  .product-series.is-open .product-series-products {
    padding: 4px 16px 28px;
  }
  .product-series .product-card {
    border-radius: 12px;
  }
  .product-series .product-card-image {
    padding: 20px;
  }
  .product-series .product-card-image img {
    max-height: 80px;
    max-width: 70%;
  }
  .product-series .product-card-body {
    padding: 16px 20px 24px;
  }
  .product-card-body h3 {
    font-size: 16px;
  }
  .product-card-features {
    text-align: left;
  }
  .product-card-features li {
    font-size: 14px;
    padding: 4px 0 4px 20px;
    display: block;
  }
  .product-card-actions {
    gap: 12px;
    padding-top: 12px;
  }
  .product-card-actions .btn-primary,
  .product-card-actions .btn-outline {
    font-size: 15px;
    padding: 10px 24px;
  }

  /* ── Tables — card layout on mobile ── */
  .target-users-table,
  .edu-plan-table {
    min-width: 100%;
  }
  .edu-plan-table th,
  .edu-plan-table td {
    padding: 10px 12px;
    font-size: 13px;
    white-space: normal;
    word-break: break-word;
  }
  .target-users-deco {
    display: none;
  }
  .edu-plan-deco {
    display: none;
  }

  /* Target users table → stacked card style */
  .target-users-table {
    border: none;
  }
  .target-users-table thead {
    display: none;
  }
  .target-users-table tbody {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .target-users-table tr {
    display: flex;
    flex-direction: column;
    gap: 12px;
    border: 1px solid var(--color-gray-300);
    border-radius: 16px;
    padding: 20px;
    background: var(--color-white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  }
  .target-users-table tr:hover td {
    background: transparent;
  }
  .target-users-table td {
    display: block;
    padding: 0;
    border-bottom: none;
    font-size: 14px;
  }
  .target-users-table td:first-child {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-dark);
    padding-bottom: 8px;
    border-bottom: 1px solid var(--color-gray-300);
  }
  .target-users-table td:last-child {
    padding-top: 4px;
  }
  .target-user-cell {
    font-size: 16px;
  }
  .target-user-icon {
    width: 24px;
    height: 24px;
  }

  /* ── Media ── */
  .media-grid {
    grid-template-columns: 1fr;
  }
  .media-page-header {
    padding: 120px 0 32px;
  }
  .media-page-header h1 {
    font-size: 24px;
  }
  .media-timeline-card {
    flex-direction: column;
  }
  .media-timeline-card-thumb {
    width: 100%;
    min-height: 200px;
  }
  .media-timeline-card-body {
    padding: 20px 24px;
  }
  .media-timeline-card-body h3 {
    font-size: 16px;
  }
  .media-timeline-card {
    position: relative;
  }
  .media-timeline-card-arrow {
    position: static;
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 16px;
    padding: 10px 0;
    font-size: 14px;
    font-weight: 600;
    background: var(--color-primary-light);
    color: var(--color-primary);
  }
  .media-timeline-card-arrow::after {
    content: '閱讀全文';
    font-size: 14px;
    margin-left: 6px;
  }
  .media-timeline-card--video .media-timeline-card-arrow::after {
    content: '觀看影片';
  }
  .media-timeline-card-arrow svg {
    width: 14px;
    height: 14px;
  }

  /* ── Awards ── */
  .award-card {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  .award-card-logo {
    width: 120px;
    margin: 0 auto;
  }
  .award-year {
    font-size: 48px;
    order: -1;
    align-self: center;
  }
  .award-features li {
    text-align: left;
    font-size: 13px;
  }

  /* ── Activities ── */
  .activities-grid {
    grid-template-columns: 1fr;
  }

  /* ── Stats ── */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .stat-number {
    font-size: 28px;
  }
  .stat-label {
    font-size: 13px;
  }

  /* ── News / carousel / feedback ── */
  .news-item {
    flex-direction: column;
    gap: 12px;
  }
  .news-item-image {
    width: 100%;
    height: 180px;
  }
  .feedback-card {
    width: calc(100% - 16px);
    min-height: 280px;
    padding: 28px 24px;
  }
  .feedback-content {
    font-size: 13px;
  }

  /* ── Tabs ── */
  .tab-nav {
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .tab-btn {
    padding: 8px 16px;
    font-size: 12px;
  }

  /* ── Footer ── */
  .site-footer {
    padding-top: 48px;
  }
  .footer-top {
    flex-direction: column;
    gap: 16px;
    align-items: center;
    text-align: center;
    padding-bottom: 36px;
    margin-bottom: 24px;
  }
  .footer-logo img {
    height: 48px;
  }
  .footer-social {
    justify-content: center;
    gap: 14px;
  }
  .footer-links {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
    padding-bottom: 36px;
  }
  .footer-col ul {
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
  }
  .footer-col h4 {
    font-size: 14px;
    margin-bottom: 12px;
  }
  .footer-col li {
    font-size: 14px;
  }
  .footer-bottom {
    font-size: 12px;
    text-align: center;
    padding: 20px 0 24px;
    margin-top: 24px;
  }
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }

  .institutions-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  /* ── Modals ── */
  .modal-content {
    width: 95vw;
    max-width: 95%;
  }
  .video-modal .modal-content {
    width: 95vw;
  }
  .activity-modal .modal-content {
    max-width: 95%;
  }
  .activity-modal-info {
    grid-template-columns: 1fr;
  }
  .competition-modal .modal-content {
    max-width: 95%;
    padding: 24px 16px;
  }
  .competition-modal-title {
    font-size: 20px;
  }
  .competition-modal .competition-intro {
    font-size: 13px;
  }
  .competition-section {
    padding: 20px 16px;
  }
  /* Competition Page responsive */
  .comp-intro-content p {
    font-size: 16px;
  }
  .comp-reg-card {
    padding: 28px 20px 24px;
  }
  .comp-reg-card-header h3 {
    font-size: 22px;
  }
  .comp-reg-card-subtitle {
    font-size: 16px;
  }
  .comp-reg-info-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .comp-reg-info-item h4 {
    font-size: 16px;
  }
  .comp-reg-info-item p {
    font-size: 15px;
  }
  .comp-reg-cta {
    font-size: 16px;
  }
  .comp-detail-section h3 {
    font-size: 20px;
  }
  .comp-detail-section p,
  .comp-detail-list li {
    font-size: 15px;
  }
  .comp-awards-grid {
    grid-template-columns: 1fr;
  }
  .comp-award-card h4 {
    font-size: 17px;
  }
  .comp-award-card p {
    font-size: 15px;
  }
  .comp-scoring-item {
    flex: 1 1 100%;
  }
  .comp-timeline-table,
  .comp-timeline-table th {
    font-size: 14px;
  }
  .comp-school-block {
    margin-bottom: 32px;
    border-radius: 18px;
  }
  .comp-school-block::before,
  .comp-school-block::after {
    font-size: 12px;
  }
  .comp-school-block:first-child::before {
    font-size: 18px;
  }
  body.competition-page .page-hero {
    padding: 100px 0 36px;
  }
  .comp-page-nav {
    gap: 10px;
  }
  .comp-page-nav-btn {
    padding: 8px 18px;
    font-size: 13px;
  }
  .comp-school-header {
    padding: 24px 20px 18px;
  }
  .comp-school-header h3 {
    font-size: 21px;
  }
  .comp-school-work {
    font-size: 15px;
  }
  .comp-school-header {
    gap: 0 12px;
  }
  .comp-school-header h3 {
    width: 100%;
    margin-bottom: 6px;
  }
  .comp-school-links {
    width: 100%;
    margin-top: 8px;
  }
  .comp-school-link {
    padding: 8px 14px;
    font-size: 13px;
  }
  .comp-school-block > .comp-school-photos {
    padding: 16px 20px 24px;
  }
  .comp-school-photos {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  #hero,
  .hero-section {
    min-height: 80vh;
  }
  .hero-brand {
    font-size: 38px;
  }
  .hero-content h1 {
    font-size: 28px;
  }
  .hero-content p:not(.hero-tag):not(.hero-brand) {
    font-size: 15px;
  }
  .hero-orb--1 {
    width: 160px;
    height: 160px;
  }
  .hero-orb--2 {
    width: 140px;
    height: 140px;
  }
  .hero-orb--3 {
    width: 120px;
    height: 120px;
  }
  .hero-entrance {
    width: 500px;
    height: 500px;
    bottom: -45%;
  }
  .section {
    padding: 40px 0;
  }
  .section-header h2,
  .subsection-title,
  .product-category-header {
    font-size: 18px;
  }
  .section-header p {
    font-size: 13px;
  }
  .stat-item {
    padding: 16px 8px;
  }
  .stat-number {
    font-size: 24px;
  }
  .stat-label {
    font-size: 12px;
  }
  .product-card-image {
    padding: 16px;
  }
  .product-series .product-card-image {
    padding: 16px;
  }
  .product-series .product-card-image img {
    max-height: 80px;
    max-width: 60%;
  }
  .product-series .product-card-body {
    padding: 16px;
  }
  .product-series-title {
    font-size: 20px;
  }
  .product-series-desc {
    font-size: 12px;
  }
  .product-series-header {
    padding: 24px 20px;
    gap: 12px;
  }
  .product-series.series-align-left {
    margin-right: 16px;
    padding-left: 12px;
  }
  .product-series.series-align-right {
    margin-left: 16px;
    padding-right: 12px;
  }
  .product-series.is-open .product-series-products {
    padding: 4px 12px 24px;
  }
  .products-grid-inner {
    grid-template-columns: 1fr;
  }
  .product-series .product-card-body h3 {
    font-size: 14px;
  }
  .product-card-features li {
    font-size: 12px;
  }
  .product-card-actions .btn-primary,
  .product-card-actions .btn-outline {
    font-size: 12px;
    padding: 8px 16px;
  }
  /* Page hero */
  .page-hero-text h1 {
    font-size: 2.5rem;
  }
  .page-hero-text p {
    font-size: 15px;
  }
  .page-hero h1 {
    font-size: 2.5rem;
  }
  .page-hero-deco {
    width: 280px;
  }
  /* Intro */
  .intro-text h2 {
    font-size: 20px;
  }
  .intro-text p {
    font-size: 14px;
    line-height: 1.8;
  }
  .intro-awards {
    gap: 16px;
  }
  .intro-award-item {
    padding: 0 18px;
  }
  .intro-award-item img {
    width: 64px;
    height: 64px;
  }
  .intro-award-item span {
    font-size: 12px;
  }
  .intro-award-item::before,
  .intro-award-item::after {
    width: 30px;
    height: 60px;
  }
  /* Footer CTA */
  .footer-cta-content h2 {
    font-size: 20px;
  }
  .footer-cta-buttons {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }
  .footer-cta-btn {
    width: 200px;
    text-align: center;
    font-size: 13px;
  }
  /* Table */
  .edu-plan-table th,
  .edu-plan-table td {
    padding: 8px 8px;
    font-size: 12px;
  }
  .target-users-table td:first-child {
    font-size: 15px;
  }
  .target-users-table td:last-child {
    font-size: 13px;
  }
  .target-users-deco {
    display: none;
  }
  .institutions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  /* Award cards */
  .award-year {
    font-size: 36px;
  }
  .award-features li {
    font-size: 12px;
  }
  /* Media */
  .media-timeline-card-body h3 {
    font-size: 14px;
  }
  .media-timeline-card-body {
    padding: 16px 20px;
  }
  /* Feedback */
  .feedback-content {
    font-size: 12px;
  }
}
