/* ============================================================
   NCU BoltNut Robotics — Multi-Page Shared Stylesheet
   Color scheme: White base / Orange accent / Dark footer
   Fonts: Orbitron (headings) + Noto Sans TC (body)
   ============================================================ */

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

:root {
  --white:      #ffffff;
  --bg-warm:    #fdf7f0;
  --bg-tint:    #fff9f4;
  --orange:     #f07020;
  --orange-d:   #d45a10;
  --orange-l:   #ff8c42;
  --orange-xl:  #fff0e0;
  --orange-xxl: #fff8f2;
  --dark:       #1c1c1c;
  --dark2:      #3a3a3a;
  --dark3:      #555555;
  --muted:      #888888;
  --border:     rgba(240, 112, 32, 0.2);
  --border-l:   rgba(240, 112, 32, 0.1);
  --shadow-sm:  0 2px 14px rgba(0, 0, 0, 0.07);
  --shadow-md:  0 6px 28px rgba(0, 0, 0, 0.1);
  --shadow-or:  0 8px 28px rgba(240, 112, 32, 0.18);
  --radius:     16px;
  --radius-sm:  10px;
  --radius-pill: 100px;
  --font-title: 'Orbitron', sans-serif;
  --font-body:  'Noto Sans TC', sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  background: var(--white);
  color: var(--dark);
  font-family: var(--font-body);
  line-height: 1.75;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-warm); }
::-webkit-scrollbar-thumb { background: var(--orange); border-radius: 3px; }

/* ===== Container ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===== Section ===== */
.section {
  padding: 6rem 0;
}
.section.bg-warm { background: var(--bg-warm); }
.section.bg-white { background: var(--white); }
.section.bg-dark {
  background: var(--dark);
  color: #fff;
}
.section.bg-orange {
  background: var(--orange);
  color: #fff;
}

/* ===== Section Header ===== */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.section-tag {
  display: inline-block;
  font-family: var(--font-title);
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  color: var(--orange);
  background: var(--orange-xl);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.3rem 0.85rem;
  margin-bottom: 0.85rem;
  text-transform: uppercase;
}
.section-header h2 {
  font-family: var(--font-title);
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.2;
}
.section-header p {
  margin-top: 0.85rem;
  color: var(--dark3);
  font-size: 1rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2.2rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
  box-shadow: 0 4px 18px rgba(240, 112, 32, 0.35);
}
.btn-primary:hover {
  background: var(--orange-d);
  border-color: var(--orange-d);
  box-shadow: 0 6px 28px rgba(240, 112, 32, 0.5);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--orange);
  border-color: var(--orange);
}
.btn-outline:hover {
  background: var(--orange-xl);
  transform: translateY(-2px);
}
.btn-white {
  background: #fff;
  color: var(--orange);
  border-color: #fff;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15);
}
.btn-white:hover {
  background: var(--orange-xl);
  transform: translateY(-2px);
}
.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}
.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  transform: translateY(-2px);
}

/* ===================================================
   NAVBAR
   =================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 2px solid var(--orange);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
  transition: box-shadow var(--transition);
}
.navbar.scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.nav-logo-img {
  height: 40px;
  width: 40px;
  object-fit: contain;
  border-radius: 8px;
  flex-shrink: 0;
}
.nav-brand {
  font-family: var(--font-title);
  font-size: 1.0rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1;
}
.brand-bolt { color: var(--orange); }
.brand-text { color: var(--dark); }

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--dark2);
  position: relative;
  transition: color var(--transition);
  padding: 0.25rem 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--orange);
  border-radius: 1px;
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}
.nav-links a:hover { color: var(--orange); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.active { color: var(--orange); }
.nav-links a.active::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--orange);
  color: var(--orange);
  font-size: 1.15rem;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  line-height: 1;
  transition: all var(--transition);
}
.nav-toggle:hover { background: var(--orange-xl); }

/* ===================================================
   HOME HERO
   =================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 7rem 2rem 5rem;
  background: var(--white);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(240, 112, 32, 0.09) 1.5px, transparent 1.5px);
  background-size: 36px 36px;
  pointer-events: none;
  z-index: 0;
}
.hero::after {
  content: '';
  position: absolute;
  right: -80px;
  top: -80px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(240, 112, 32, 0.1) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 4rem;
}
.hero-content {
  flex: 1;
  max-width: 560px;
}
.hero-pre {
  font-family: var(--font-title);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.18em;
  margin-bottom: 1.1rem;
  text-transform: uppercase;
}
.hero-title {
  font-family: var(--font-title);
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 0.75rem;
  color: var(--dark);
}
.title-orange { color: var(--orange); }
.title-sub {
  display: block;
  font-size: clamp(1.2rem, 3vw, 2.4rem);
  color: var(--dark3);
  font-weight: 400;
  letter-spacing: 0.14em;
  margin-top: 0.3rem;
}
.hero-tagline {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--dark2);
  border-left: 4px solid var(--orange);
  padding: 0.65rem 1.1rem;
  background: var(--orange-xxl);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5rem 0 2.2rem;
}
.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero-logo-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-logo-img {
  width: clamp(220px, 28vw, 400px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 16px 48px rgba(240, 112, 32, 0.28));
}
.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--orange);
  font-size: 1.4rem;
  animation: scrollBounce 2.2s ease-in-out infinite;
  z-index: 2;
  opacity: 0.7;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.5; }
  50%       { transform: translateX(-50%) translateY(9px); opacity: 1; }
}

/* ===================================================
   STATS BAR
   =================================================== */
.stats-bar {
  width: 100%;
  background: var(--orange);
  padding: 2.2rem 2rem;
  display: flex;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  color: #fff;
  padding: 0.5rem 3rem;
  border-right: 1px solid rgba(255, 255, 255, 0.25);
}
.stat-item:last-child { border-right: none; }
.stat-number {
  font-family: var(--font-title);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.04em;
}
.stat-label {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  opacity: 0.82;
}

/* ===================================================
   PAGE HERO (inner pages — 40vh)
   =================================================== */
.page-hero {
  min-height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}
.page-hero.orange {
  background: var(--orange);
}
.page-hero.dark {
  background: var(--dark);
}
.page-hero.light {
  background: var(--white);
}
/* Dot pattern for light hero */
.page-hero.light::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(240, 112, 32, 0.1) 1.5px, transparent 1.5px);
  background-size: 34px 34px;
  pointer-events: none;
}
/* Diagonal accent for orange hero */
.page-hero.orange::before {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--white);
  clip-path: polygon(0 100%, 100% 100%, 100% 40%, 0 100%);
  pointer-events: none;
}
.page-hero-inner {
  position: relative;
  z-index: 2;
}
.page-hero-tag {
  display: inline-block;
  font-family: var(--font-title);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  padding: 0.3rem 0.9rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
}
.page-hero.light .page-hero-tag {
  color: var(--orange);
  background: var(--orange-xl);
  border-color: var(--border);
}
.page-hero-title {
  font-family: var(--font-title);
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 0.75rem;
}
.page-hero.light .page-hero-title {
  color: var(--orange);
}
.page-hero-sub {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.78);
  max-width: 520px;
  margin: 0 auto;
}
.page-hero.light .page-hero-sub {
  color: var(--dark3);
}

/* ===================================================
   NEWS / LATEST CARDS
   =================================================== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.news-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-or);
  border-color: var(--orange);
}
.news-date {
  font-family: var(--font-title);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.news-icon {
  font-size: 2rem;
  line-height: 1;
}
.news-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.4;
}
.news-desc {
  font-size: 0.88rem;
  color: var(--dark3);
  line-height: 1.7;
  flex: 1;
}

/* ===================================================
   ABOUT TEASER (home page)
   =================================================== */
.about-teaser {
  background: var(--bg-warm);
}
.about-teaser-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.about-teaser-text h2 {
  font-family: var(--font-title);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.25;
  margin-bottom: 1rem;
}
.about-teaser-text h2 span { color: var(--orange); }
.about-teaser-text p {
  color: var(--dark2);
  font-size: 0.98rem;
  line-height: 1.85;
  margin-bottom: 1.5rem;
}
.about-teaser-img {
  display: flex;
  justify-content: center;
  align-items: center;
}
.about-teaser-img img {
  width: 260px;
  filter: drop-shadow(0 12px 36px rgba(240, 112, 32, 0.22));
}

/* ===================================================
   ABOUT PAGE — Team story & info cards
   =================================================== */
.team-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.team-story-text .lead {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--dark);
  line-height: 1.85;
  margin-bottom: 1.1rem;
}
.team-story-text .lead strong { color: var(--orange); }
.team-story-text p {
  color: var(--dark2);
  font-size: 0.97rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}
.team-story-logo {
  display: flex;
  justify-content: center;
  align-items: center;
}
.team-story-logo img {
  width: 280px;
  filter: drop-shadow(0 12px 40px rgba(240, 112, 32, 0.25));
}

.info-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.info-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  text-align: center;
}
.info-card:hover {
  border-color: var(--orange);
  box-shadow: var(--shadow-or);
  transform: translateY(-6px);
}
.info-card-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  line-height: 1;
}
.info-card h3 {
  font-family: var(--font-title);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.info-card p {
  font-size: 0.88rem;
  color: var(--dark2);
  line-height: 1.55;
}

/* ===================================================
   HISTORY PAGE — Timeline preview on about.html
   =================================================== */
.history-preview {
  background: var(--white);
}
.preview-events {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}
.preview-event-card {
  background: var(--bg-warm);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.preview-event-card:hover {
  border-color: var(--orange);
  box-shadow: var(--shadow-or);
  transform: translateY(-4px);
}
.preview-event-date {
  font-family: var(--font-title);
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.preview-event-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.preview-event-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.4;
}

/* ===================================================
   FULL TIMELINE (history.html)
   =================================================== */
.timeline {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--orange-l) 0%, var(--orange) 50%, var(--orange-d) 100%);
  transform: translateX(-50%);
  border-radius: 2px;
}
.timeline-item {
  position: relative;
  width: 45%;
  margin-bottom: 2.8rem;
}
.timeline-item.left  { margin-right: auto; }
.timeline-item.right { margin-left: auto; }

.timeline-dot {
  position: absolute;
  width: 16px;
  height: 16px;
  background: var(--orange);
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 0 3px var(--orange), 0 0 10px rgba(240, 112, 32, 0.3);
  top: 1.5rem;
  z-index: 2;
}
.timeline-item.left  .timeline-dot { right: -8.5%; }
.timeline-item.right .timeline-dot { left:  -8.5%; }

.timeline-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.timeline-card:hover {
  border-color: var(--orange);
  box-shadow: var(--shadow-or);
  transform: translateY(-6px);
}
.timeline-card.milestone {
  border-left: 4px solid var(--orange);
  background: var(--bg-tint);
}
.timeline-date {
  display: block;
  font-family: var(--font-title);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.12em;
  margin-bottom: 0.55rem;
  text-transform: uppercase;
}
.timeline-icon-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}
.tl-icon { font-size: 1.3rem; line-height: 1; }
.milestone-badge {
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  background: var(--orange);
  border-radius: var(--radius-pill);
  padding: 0.22rem 0.75rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.timeline-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.45rem;
  line-height: 1.4;
}
.timeline-card p {
  font-size: 0.88rem;
  color: var(--dark2);
  line-height: 1.75;
}

/* ===================================================
   ACHIEVEMENTS PAGE
   =================================================== */
.comp-main-card {
  background: linear-gradient(155deg, var(--white) 0%, var(--orange-xxl) 100%);
  border: 2px solid var(--orange);
  border-radius: var(--radius);
  padding: 2.4rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-or);
  margin-bottom: 1.5rem;
  transition: all var(--transition);
}
.comp-main-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--orange-l), var(--orange-d));
}
.comp-main-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(240, 112, 32, 0.25);
}
.comp-glow {
  position: absolute;
  top: -60px; right: -60px;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(240, 112, 32, 0.15) 0%, transparent 70%);
  pointer-events: none;
}
.comp-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  line-height: 1;
}
.comp-event-label {
  font-family: var(--font-title);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: block;
}
.comp-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.3;
  margin-bottom: 0.85rem;
}
.comp-detail {
  font-size: 0.95rem;
  color: var(--dark2);
  line-height: 1.8;
  margin-bottom: 1rem;
}
.comp-detail strong { color: var(--orange-d); font-weight: 700; }
.comp-date-pill {
  display: inline-block;
  font-size: 0.76rem;
  color: var(--muted);
  background: rgba(240, 112, 32, 0.08);
  border: 1px solid var(--border);
  padding: 0.22rem 0.75rem;
  border-radius: var(--radius-pill);
}

.comp-sub-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.comp-sub-card:hover {
  border-color: var(--orange);
  box-shadow: var(--shadow-or);
  transform: translateY(-6px);
}
.comp-sub-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.comp-sub-label {
  font-family: var(--font-title);
  font-size: 0.62rem;
  color: var(--orange);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  display: block;
}
.comp-sub-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.5rem;
}
.comp-sub-desc {
  font-size: 0.88rem;
  color: var(--dark3);
  line-height: 1.7;
}

.robot-section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.robot-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 2.4rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.robot-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange-l), var(--orange-d));
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}
.robot-card:hover {
  border-color: var(--orange);
  box-shadow: var(--shadow-or);
  transform: translateY(-6px);
}
.robot-card:hover::after { transform: scaleX(1); }
.robot-card-icon { font-size: 3.5rem; margin-bottom: 1rem; line-height: 1; }
.robot-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.4rem;
}
.robot-subtitle {
  font-family: var(--font-title);
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}
.robot-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.tag {
  background: var(--orange-xl);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0.28rem 0.75rem;
  font-size: 0.76rem;
  color: var(--orange-d);
  font-weight: 600;
}

.academic-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  transition: all var(--transition);
  max-width: 680px;
  margin: 0 auto;
}
.academic-card:hover {
  border-color: var(--orange);
  box-shadow: var(--shadow-or);
  transform: translateY(-6px);
}
.academic-icon {
  font-size: 2.8rem;
  flex-shrink: 0;
  line-height: 1;
}
.academic-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.4rem;
}
.academic-body .rank {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--orange);
  margin-bottom: 0.4rem;
}
.academic-body p {
  font-size: 0.9rem;
  color: var(--dark3);
  line-height: 1.7;
}

/* ===================================================
   CONTACT PAGE
   =================================================== */
.social-section-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.social-card-page {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  text-decoration: none;
  color: inherit;
}
.social-card-page:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-or);
}
.social-card-page.facebook:hover  { border-color: #1877f2; }
.social-card-page.instagram:hover { border-color: #e1306c; }
.social-card-page.threads:hover   { border-color: #333; }

.social-icon-box {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.social-icon-box svg { width: 32px; height: 32px; display: block; }
.social-card-page.facebook  .social-icon-box { background: #1877f2; }
.social-card-page.instagram .social-icon-box {
  background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}
.social-card-page.threads   .social-icon-box { background: #111; }

.social-card-platform {
  font-family: var(--font-title);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.social-card-handle {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
}
.social-card-arrow {
  font-size: 1.1rem;
  color: var(--muted);
  transition: transform var(--transition), color var(--transition);
}
.social-card-page:hover .social-card-arrow {
  transform: translateX(5px);
  color: var(--orange);
}

.sponsor-grid {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.sponsor-card {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  background: var(--bg-warm);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 2.4rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  min-width: 300px;
}
.sponsor-card:hover {
  border-color: var(--orange);
  box-shadow: var(--shadow-or);
  transform: translateY(-6px);
  background: var(--white);
}
.sponsor-icon { font-size: 2.4rem; line-height: 1; flex-shrink: 0; }
.sponsor-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.25rem;
}
.sponsor-body p { font-size: 0.88rem; color: var(--dark3); }

.join-cta {
  background: var(--orange);
  padding: 5rem 2rem;
  text-align: center;
}
.join-cta h2 {
  font-family: var(--font-title);
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: 1rem;
}
.join-cta p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  margin-bottom: 1.8rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ===================================================
   FOOTER
   =================================================== */
.footer {
  padding: 3.5rem 0;
  background: var(--dark);
  color: #fff;
}
.footer-inner { text-align: center; }
.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}
.footer-logo {
  height: 48px;
  width: 48px;
  object-fit: contain;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  padding: 5px;
}
.footer-name {
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 700;
  color: var(--orange-l);
  letter-spacing: 0.08em;
}
.footer-motto {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.88rem;
  font-style: italic;
  margin-bottom: 1.1rem;
}
.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}
.footer-links a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition);
}
.footer-links a:hover { color: #fff; }
.footer-copy {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.3);
}

/* ===================================================
   SCROLL FADE-IN
   =================================================== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===================================================
   RESPONSIVE — 1024px
   =================================================== */
@media (max-width: 1024px) {
  .hero-logo-img { width: clamp(160px, 20vw, 280px); }
  .info-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .social-section-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .team-story { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-teaser-inner { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ===================================================
   RESPONSIVE — 768px
   =================================================== */
@media (max-width: 768px) {
  /* Nav */
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 1rem 2rem 1.5rem;
    border-bottom: 2px solid var(--orange);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    z-index: 150;
  }
  .nav-links.open li a {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-l);
    font-size: 1rem;
  }

  /* Hero */
  .hero { padding-top: 7rem; padding-bottom: 5rem; }
  .hero-logo-wrap { display: none; }
  .hero-content { max-width: 100%; flex: 1; }

  /* Stats bar */
  .stats-bar { gap: 0; }
  .stat-item { padding: 0.75rem 1.5rem; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.2); width: 100%; }
  .stat-item:last-child { border-bottom: none; }

  /* Timeline */
  .timeline::before { left: 20px; }
  .timeline-item {
    width: 100%;
    padding-left: 52px;
  }
  .timeline-item.left,
  .timeline-item.right {
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 1.8rem;
  }
  .timeline-item.left  .timeline-dot { right: auto; left: 12px; }
  .timeline-item.right .timeline-dot { left: 12px; }

  /* Grids */
  .news-grid { grid-template-columns: 1fr; }
  .info-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .preview-events { grid-template-columns: 1fr; }
  .robot-section-grid { grid-template-columns: 1fr; }
  .academic-card { flex-direction: column; align-items: center; text-align: center; }
}

/* ===================================================
   RESPONSIVE — 480px
   =================================================== */
@media (max-width: 480px) {
  .hero-cta { flex-direction: column; }
  .btn { justify-content: center; width: 100%; max-width: 320px; }
  .info-cards-grid { grid-template-columns: 1fr; }
  .section-header h2 { font-size: 1.6rem; }
  .timeline-icon-row { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
  .sponsor-card { min-width: 0; width: 100%; }
  .social-section-grid { grid-template-columns: 1fr; max-width: 100%; }
}
