@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@300;400;500;700;900&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Color System */
  --primary: #0a2540;        /* Deep Ocean Blue */
  --primary-rgb: 10, 37, 64;
  --secondary: #0066cc;      /* Sky Blue */
  --accent: #f07c3b;         /* Sunset Orange */
  --accent-hover: #d76326;
  --bg-light: #fdfbf7;       /* Warm Sand Cream */
  --bg-white: #ffffff;
  --text-dark: #1d1d1f;      /* Near Black */
  --text-muted: #86868b;
  --border-color: rgba(0, 0, 0, 0.08);
  
  /* Font Family */
  --font-zh: 'Noto Sans TC', sans-serif;
  --font-en: 'Outfit', sans-serif;
  
  /* Layout */
  --header-height: 80px;
  --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.25s ease;
}

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

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

body {
  font-family: var(--font-zh);
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Scrollbar Style */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-light);
}
::-webkit-scrollbar-thumb {
  background: rgba(10, 37, 64, 0.2);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(240, 124, 59, 0.6);
}

/* Typography & Layout Helpers */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--primary);
}

section {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
}

.section-header p {
  color: var(--text-muted);
  font-family: var(--font-en);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-fast);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--bg-white);
  box-shadow: 0 4px 15px rgba(240, 124, 59, 0.3);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(240, 124, 59, 0.4);
}

.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--bg-white);
}

/* Navigation Bar */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(253, 251, 247, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-fast);
}

header.scrolled {
  height: 70px;
  background: rgba(253, 251, 247, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

header .container {
  display: flex;
  justify-content: flex-end; /* Align navigation links to the right since logo is removed */
  align-items: center;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  height: 48px;
  width: auto;
  transition: var(--transition-fast);
}

header.scrolled .logo img {
  height: 40px;
}

.logo-text {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--secondary); /* Dark blue */
  letter-spacing: 1.5px;
  font-family: 'Outfit', 'Noto Sans TC', sans-serif;
  transition: var(--transition-fast);
}

.logo-text:hover {
  color: var(--accent); /* Coral orange on hover */
}

header.scrolled .logo-text {
  font-size: 1.25rem;
}

nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 24px;
}

.nav-links a {
  text-decoration: none;
  color: var(--primary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition-fast);
  position: relative;
  padding: 8px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition-fast);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

/* Burger Menu */
.burger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
}

.burger div {
  width: 25px;
  height: 3px;
  background-color: var(--primary);
  margin: 5px;
  transition: var(--transition-fast);
}

/* Hero Section V2 (Full Bleed Layout) */
.hero {
  position: relative;
  background-color: #26a2dc; /* Exact match to the sky blue background */
  width: 100%;
  padding-top: calc(var(--header-height) + 30px); /* Pushes hero content below sticky nav to prevent cutoff, with 30px safety margin */
  padding-bottom: 0; /* Remove bottom padding to ensure ripples align perfectly with the next section */
  margin: 0;
  overflow: hidden;
}

.hero-visual-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 1135 / 678;
  margin: 0;
  overflow: hidden;
  background-color: #26a2dc;
  opacity: 0;
  animation: hero-fade-in 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-layer-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-layer-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill; /* Match coordinates pixel-for-pixel with base image dimensions */
  pointer-events: none;
}

/* Explicit Z-Indexing for the exact 6 layers in order (bottom to top) */
.hero-layer-wrap.layer-bg { z-index: 1; }
.hero-layer-wrap.layer-waves { z-index: 2; }
.hero-layer-wrap.layer-sun { z-index: 3; }
.hero-layer-wrap.layer-birds { z-index: 4; }
.hero-layer-wrap.layer-logo { z-index: 5; }
.hero-layer-wrap.layer-title { z-index: 6; }

/* Floating micro-animations on layered image elements (separated from JS translate wrapper) */
.hero-layer-wrap.layer-sun img {
  animation: float-sun-v2 12s ease-in-out infinite;
}

.hero-layer-wrap.layer-waves img {
  animation: wave-sway-v2 16s ease-in-out infinite;
}

.hero-layer-wrap.layer-birds img {
  animation: bird-hover-v2 8s ease-in-out infinite;
}

/* Base keyframes using transform offset */
@keyframes float-sun-v2 {
  0%, 100% { filter: drop-shadow(0 0 0px rgba(255,255,255,0)); }
  50% { filter: drop-shadow(0 0 15px rgba(255, 220, 150, 0.35)); }
}

@keyframes wave-sway-v2 {
  0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
  50% { transform: translate(15px, -6px) scale(1.025) rotate(0.4deg); }
}

@keyframes bird-hover-v2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-25px, -15px) scale(1.05); }
}

@keyframes hero-fade-in {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-cta-v2 {
  position: absolute;
  bottom: 8%; /* Positioned dynamically relative to height */
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  text-align: center;
}

.hero-cta-v2 .btn {
  padding: 14px 40px;
  font-size: 1.1rem;
  letter-spacing: 2px;
  box-shadow: 0 4px 20px rgba(240, 124, 59, 0.4);
}

@media (max-width: 768px) {
  .hero-cta-v2 {
    bottom: 5%;
  }
  .hero-cta-v2 .btn {
    padding: 8px 20px;
    font-size: 0.85rem;
    letter-spacing: 1px;
  }
}

/* Pixila Reveal Styles */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.reveal-left {
  transform: translateX(-50px);
}

.reveal.reveal-right {
  transform: translateX(50px);
}

.reveal.reveal-scale {
  transform: scale(0.92);
}

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

/* News Section */
.news-carousel-container {
  position: relative;
  overflow: hidden;
  padding: 10px;
  margin: 0 -15px;
}

.news-track {
  display: flex;
  gap: 30px;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.news-card {
  flex: 0 0 calc(33.333% - 20px);
  background: var(--bg-white);
  border-radius: 20px;
  padding: 35px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  border: 1px solid var(--border-color);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  position: relative;
}

.news-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(240, 124, 59, 0.15);
  opacity: 0;
  transition: var(--transition-fast);
  z-index: -1;
}

.news-card:hover {
  transform: translateY(-8px);
  border-color: rgba(240, 124, 59, 0.3);
}

.news-card:hover::before {
  opacity: 1;
}

.news-tag {
  align-self: flex-start;
  background: rgba(240, 124, 59, 0.1);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 20px;
}

.news-card h3 {
  font-size: 1.25rem;
  margin-bottom: 15px;
  line-height: 1.4;
  color: var(--primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 25px;
}

.news-date {
  font-family: var(--font-en);
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.carousel-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid var(--primary);
  background: transparent;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.carousel-btn:hover {
  background: var(--primary);
  color: var(--bg-white);
  transform: scale(1.05);
}

.carousel-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
}

/* Race Info Section */
.info-section {
  background: var(--bg-white);
}


.info-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: flex-start;
}

.info-details {
  background: rgba(253, 251, 247, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  padding: 40px;
  border-radius: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.02);
}

.info-list {
  list-style: none;
}

.info-item {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.06);
}

.info-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.info-icon {
  width: 44px;
  height: 44px;
  background: rgba(240, 124, 59, 0.1);
  color: var(--accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.info-desc h4 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.info-desc p {
  color: #4a4a4f;
  font-size: 0.95rem;
}

.info-supply-tag {
  display: inline-block;
  background: #eef5fc;
  color: var(--secondary);
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 700;
  margin: 4px 6px 4px 0;
}

/* Routes */
.routes-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.route-card {
  background: var(--bg-light);
  border-radius: 20px;
  padding: 30px;
  border-left: 5px solid var(--secondary);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
  transition: var(--transition-smooth);
}

.route-card.route-10k {
  border-left-color: var(--accent);
}

.route-card:hover {
  transform: translateX(8px);
}

.route-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.route-badge {
  background: var(--secondary);
  color: var(--bg-white);
  padding: 4px 15px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.85rem;
  font-family: var(--font-en);
}

.route-card.route-10k .route-badge {
  background: var(--accent);
}

.route-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
}

.route-flow {
  font-size: 0.95rem;
  color: #4a4a4f;
  line-height: 1.7;
}

.route-arrow {
  color: var(--text-muted);
  margin: 0 6px;
  font-size: 0.8rem;
}

.route-map {
  background: var(--bg-light);
  border-radius: 20px;
  padding: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
  transition: var(--transition-smooth);
  overflow: hidden;
}

.route-map:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(10, 37, 64, 0.08);
}

.route-map-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  cursor: pointer;
  transition: transform var(--transition-smooth);
}

.route-map-img:hover {
  transform: scale(1.015);
}

/* Race Registration Section */
.reg-section {
  background: var(--bg-light);
}

/* Table Style */
.table-wrapper {
  overflow-x: auto;
  background: var(--bg-white);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
  border: 1px solid var(--border-color);
  margin-bottom: 50px;
  position: relative;
}

/* Custom Scrollbar for tables */
.table-wrapper::-webkit-scrollbar {
  height: 6px;
}
.table-wrapper::-webkit-scrollbar-thumb {
  background: rgba(10, 37, 64, 0.15);
  border-radius: 3px;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

th, td {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.95rem;
}

th {
  background-color: var(--primary);
  color: var(--bg-white);
  font-weight: 700;
}

th:first-child {
  border-top-left-radius: 18px;
}

th:last-child {
  border-top-right-radius: 18px;
}

tr:last-child td {
  border-bottom: none;
}

tr:nth-child(even) td {
  background-color: rgba(253, 251, 247, 0.4);
}

.col-item {
  font-weight: 700;
  color: var(--primary);
  width: 20%;
}

.col-10k {
  width: 40%;
}

.col-3k {
  width: 40%;
}

.icon-check {
  color: var(--accent);
  font-weight: bold;
}

.icon-cross {
  color: var(--text-muted);
}

/* Material Display Cards */
.materials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
  perspective: 1000px;
}

.material-card {
  background: var(--bg-white);
  border-radius: 24px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
  border: 1px solid var(--border-color);
  transition: transform 0.1s ease, box-shadow 0.3s ease;
  transform-style: preserve-3d;
  position: relative;
}

.material-card:hover {
  box-shadow: 0 20px 45px rgba(10, 37, 64, 0.08);
}

.material-img-wrap {
  width: 100%;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  position: relative;
  transform: translateZ(30px);
}

.material-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: var(--transition-smooth);
}

.material-card:hover .material-img-wrap img {
  transform: scale(1.08) translateZ(20px);
}

.material-card h4 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  transform: translateZ(20px);
}

.material-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  transform: translateZ(15px);
}

.size-table-container {
  background: var(--bg-white);
  border-radius: 24px;
  padding: 40px;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.02);
  margin-bottom: 65px;
}

.size-title {
  font-size: 1.3rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.size-tips {
  margin-top: 25px;
  padding: 20px;
  background: #fff8f5;
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  font-size: 0.95rem;
  color: #5c443c;
}

.size-tips p {
  margin-bottom: 8px;
  display: flex;
  gap: 8px;
}

.size-tips p:last-child {
  margin-bottom: 0;
}

/* Accordion Component */
.accordion-container {
  margin-top: 50px;
}

.accordion-item {
  background: var(--bg-white);
  border-radius: 16px;
  margin-bottom: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.01);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.accordion-header {
  padding: 22px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  background: var(--bg-white);
  transition: var(--transition-fast);
}

.accordion-header:hover {
  background: rgba(240, 124, 59, 0.02);
}

.accordion-header h3 {
  font-size: 1.15rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 15px;
}

.accordion-header h3 i {
  color: var(--accent);
}

.accordion-arrow {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s ease;
  color: var(--text-muted);
}

.accordion-item.active .accordion-arrow {
  transform: rotate(180deg);
  color: var(--accent);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.accordion-content-inner {
  padding: 0 30px 30px 30px;
  border-top: 1px solid rgba(0, 0, 0, 0.03);
  color: #4a4a4f;
  font-size: 0.95rem;
  line-height: 1.7;
}

.accordion-content-inner ul {
  padding-left: 20px;
  margin-top: 10px;
}

.accordion-content-inner li {
  margin-bottom: 8px;
}

/* Event Schedule (Timeline) */
.timeline {
  position: relative;
  padding: 20px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, var(--secondary) 0%, var(--accent) 100%);
  opacity: 0.3;
}

.timeline-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 40px;
  position: relative;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-badge {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-white);
  border: 4px solid var(--secondary);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  transition: var(--transition-fast);
}

.timeline-item:nth-child(even) .timeline-badge {
  border-color: var(--accent);
}

.timeline-item:hover .timeline-badge {
  transform: translateX(-50%) scale(1.3);
  box-shadow: 0 0 15px var(--accent);
  background: var(--accent);
}

.timeline-content-wrap {
  width: 45%;
}

.timeline-item:nth-child(even) .timeline-content-wrap {
  margin-left: auto;
}

.timeline-item:nth-child(odd) .timeline-content-wrap {
  text-align: right;
}

.timeline-content {
  background: var(--bg-white);
  border-radius: 18px;
  padding: 25px 30px;
  border: 1px solid var(--border-color);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.02);
  transition: var(--transition-smooth);
  position: relative;
}

.timeline-content:hover {
  transform: translateY(-5px);
  border-color: rgba(240, 124, 59, 0.2);
  box-shadow: 0 10px 25px rgba(240, 124, 59, 0.08);
}

.timeline-time {
  font-family: var(--font-en);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 8px;
}

.timeline-item:nth-child(even) .timeline-time {
  color: var(--accent);
}

.timeline-title {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.timeline-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Notice & Safety */
.notice-section {
  background: var(--bg-white);
}

.notice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 40px;
}

.notice-card {
  background: var(--bg-light);
  border-radius: 24px;
  padding: 40px;
  border: 1px solid var(--border-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.01);
  transition: var(--transition-smooth);
}

.notice-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 0, 0, 0.12);
}

.notice-card h3 {
  font-size: 1.3rem;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 2px solid rgba(0, 0, 0, 0.05);
  padding-bottom: 12px;
}

.notice-card h3 i {
  color: var(--accent);
}

.notice-list {
  list-style: none;
}

.notice-item {
  margin-bottom: 20px;
  padding-left: 20px;
  position: relative;
  font-size: 0.95rem;
  line-height: 1.6;
}

.notice-item::before {
  content: '•';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-size: 1.2rem;
  line-height: 1.3;
}

.notice-item:last-child {
  margin-bottom: 0;
}

.notice-item strong {
  color: var(--primary);
  display: block;
  margin-bottom: 4px;
}

/* Specific styling for heat calculation box */
.heat-formula-box {
  background: rgba(240, 124, 59, 0.05);
  border-left: 4px solid var(--accent);
  padding: 15px 20px;
  border-radius: 0 8px 8px 0;
  margin: 15px 0;
  font-family: var(--font-en);
  font-weight: 500;
  color: var(--primary);
}

/* Transportation */
.trans-card {
  background: var(--bg-white);
  border-radius: 24px;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
}

.map-embed {
  height: 450px;
  background: #eef2f5;
  position: relative;
  overflow: hidden;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.trans-info-box {
  padding: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.trans-info-box h3 {
  font-size: 1.5rem;
  margin-bottom: 25px;
}

.trans-item {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.trans-item:last-child {
  margin-bottom: 0;
}

.trans-icon {
  font-size: 1.4rem;
  color: var(--accent);
  margin-top: 2px;
}

.trans-text h4 {
  font-size: 1.05rem;
  margin-bottom: 5px;
}

.trans-text p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Footer Section */
footer {
  background: var(--primary);
  color: #b2c3d4;
  padding: 80px 0 40px 0;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 50px;
  margin-bottom: 40px;
}

.footer-contact h3 {
  color: var(--bg-white);
  font-size: 1.5rem;
  margin-bottom: 25px;
}

.footer-contact-list {
  list-style: none;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 18px;
}

.footer-contact-item:last-child {
  margin-bottom: 0;
}

.footer-contact-item i {
  color: var(--accent);
  font-size: 1.1rem;
}

.footer-contact-item a {
  color: #b2c3d4;
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-contact-item a:hover {
  color: var(--bg-white);
}

.footer-logo-area {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 20px;
}

.footer-logo {
  height: 90px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-copyright {
  text-align: center;
  font-size: 0.85rem;
  color: #7188a1;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  section {
    padding: 80px 0;
  }
  
  .info-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .news-card {
    flex: 0 0 calc(50% - 15px);
  }
  
  .notice-grid {
    grid-template-columns: 1fr;
  }
  
  .trans-card {
    grid-template-columns: 1fr;
  }
  
  .map-embed {
    height: 350px;
    order: 2;
  }
  
  .trans-info-box {
    padding: 35px;
    order: 1;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }
  
  .hero {
    padding-top: calc(var(--header-height) + 15px);
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  /* Navigation mobile */
  .nav-links {
    position: fixed;
    top: var(--header-height);
    right: -100%;
    width: 250px;
    height: calc(100vh - var(--header-height));
    background: var(--bg-white);
    flex-direction: column;
    padding: 40px;
    gap: 30px;
    box-shadow: -10px 10px 30px rgba(0, 0, 0, 0.05);
    transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 999;
  }
  
  .nav-links.nav-active {
    right: 0;
  }
  
  .burger {
    display: block;
  }
  
  .burger.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
  }
  
  .burger.toggle .line2 {
    opacity: 0;
  }
  
  .burger.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
  }
  
  header .btn-nav-reg {
    display: none; /* Hide top CTA in mobile header, show in menu or hero */
  }
  
  .news-card {
    flex: 0 0 100%;
  }
  
  .timeline::before {
    left: 20px;
  }
  
  .timeline-badge {
    left: 20px;
  }
  
  .timeline-content-wrap {
    width: calc(100% - 40px);
    margin-left: 40px !important;
  }
  
  .timeline-item:nth-child(odd) .timeline-content-wrap {
    text-align: left;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer-logo-area {
    align-items: flex-start;
  }
  
  .hero-title-img {
    max-width: 450px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-top: calc(var(--header-height) + 10px);
  }
  
  .section-header h2 {
    font-size: 1.75rem;
  }
  
  .info-details {
    padding: 25px;
  }
  
  .size-table-container {
    padding: 20px;
  }
  
  th, td {
    padding: 12px 14px;
    font-size: 0.85rem;
  }
  
  .accordion-header {
    padding: 18px 20px;
  }
  
  .accordion-content-inner {
    padding: 0 20px 20px 20px;
  }
}

/* In-Page Lightbox Overlay (Pixila style, avoids popups) */
.lightbox {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 37, 64, 0.85); /* Deep translucent blue */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  justify-content: center;
  align-items: center;
  flex-direction: column;
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: var(--bg-white);
  font-size: 3rem;
  font-weight: 300;
  cursor: pointer;
  transition: var(--transition-fast);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.lightbox-close:hover {
  background: var(--accent);
  color: var(--bg-white);
  transform: rotate(90deg);
}

.lightbox-content {
  max-width: 85%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox.active .lightbox-content {
  transform: scale(1);
}

.lightbox-caption {
  color: var(--bg-white);
  font-size: 1.2rem;
  font-weight: 500;
  margin-top: 25px;
  text-align: center;
  letter-spacing: 1px;
}
