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

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
  color: #e0e0e0;
  line-height: 1.7;
  transition: background 0.3s, color 0.3s;
  min-height: 100vh;
}

body.light {
  background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
  color: #1a1a2e;
}

a {
  color: inherit;
  text-decoration: none;
}

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

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
}

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

/* ===== Header ===== */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(15, 12, 41, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.3s;
}

body.light header {
  background: rgba(245, 247, 250, 0.85);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

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

.logo svg {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.logo span {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #f9a825, #ff8f00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 28px;
}

nav a {
  color: #ccc;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: #f9a825;
  transition: width 0.3s;
}

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

nav a:hover,
nav a.active {
  color: #f9a825;
}

body.light nav a {
  color: #333;
}

body.light nav a:hover,
body.light nav a.active {
  color: #e65100;
}

body.light nav a::after {
  background: #e65100;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #f9a825;
  font-size: 1.8rem;
  cursor: pointer;
  padding: 4px;
}

.dark-toggle {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  color: #f9a825;
  padding: 6px 14px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.3s;
  white-space: nowrap;
}

.dark-toggle:hover {
  background: rgba(249, 168, 37, 0.1);
  border-color: #f9a825;
}

body.light .dark-toggle {
  border-color: rgba(0, 0, 0, 0.2);
  color: #e65100;
}

body.light .dark-toggle:hover {
  background: rgba(230, 81, 0, 0.1);
  border-color: #e65100;
}

/* ===== Hero Banner ===== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0 60px;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 40%, rgba(249, 168, 37, 0.15), transparent 60%);
  pointer-events: none;
}

.hero-slider {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slide {
  position: absolute;
  width: 100%;
  opacity: 0;
  transition: opacity 1s ease;
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fff, #f9a825);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
  line-height: 1.2;
}

body.light .hero h1 {
  background: linear-gradient(135deg, #1a1a2e, #e65100);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 30px;
  color: #bbb;
}

body.light .hero p {
  color: #444;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 14px 36px;
  background: linear-gradient(135deg, #f9a825, #ff8f00);
  color: #1a1a2e;
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(249, 168, 37, 0.4);
}

.btn:active {
  transform: translateY(-1px);
}

/* ===== Glass Card ===== */
.glass {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 30px;
  transition: transform 0.3s, box-shadow 0.3s;
}

body.light .glass {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(0, 0, 0, 0.08);
}

.glass:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* ===== Sections ===== */
section {
  padding: 70px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2.2rem;
  font-weight: 700;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: #f9a825;
  margin: 12px auto 0;
  border-radius: 4px;
}

/* ===== Grids ===== */
.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 30px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

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

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

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

.text-center {
  text-align: center;
}

.mt-20 {
  margin-top: 20px;
}

.mb-20 {
  margin-bottom: 20px;
}

/* ===== Timeline ===== */
.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #f9a825;
  border-radius: 3px;
}

.timeline-item {
  position: relative;
  margin-bottom: 30px;
  padding-left: 20px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -28px;
  top: 6px;
  width: 16px;
  height: 16px;
  background: #f9a825;
  border-radius: 50%;
  border: 3px solid #1a1a2e;
  transition: transform 0.3s;
}

.timeline-item:hover::before {
  transform: scale(1.2);
}

body.light .timeline-item::before {
  border-color: #f5f7fa;
}

.timeline-item h3 {
  color: #f9a825;
  margin-bottom: 4px;
}

body.light .timeline-item h3 {
  color: #e65100;
}

/* ===== FAQ ===== */
.faq-item {
  margin-bottom: 12px;
  border-radius: 16px;
  overflow: hidden;
}

.faq-question {
  background: rgba(255, 255, 255, 0.05);
  padding: 18px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  transition: background 0.3s;
  border: none;
  width: 100%;
  text-align: left;
  color: inherit;
  font-size: 1rem;
}

.faq-question:hover {
  background: rgba(255, 255, 255, 0.1);
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: 12px;
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 24px;
  background: rgba(255, 255, 255, 0.02);
}

.faq-item.open .faq-answer {
  max-height: 400px;
  padding: 18px 24px;
}

/* ===== Footer ===== */
footer {
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 50px 0 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

body.light footer {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 30px;
}

.footer-col h4 {
  color: #f9a825;
  margin-bottom: 16px;
  font-size: 1.1rem;
}

body.light .footer-col h4 {
  color: #e65100;
}

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

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

.footer-col a {
  color: #aaa;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-col a:hover {
  color: #f9a825;
}

body.light .footer-col a {
  color: #555;
}

body.light .footer-col a:hover {
  color: #e65100;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.85rem;
  color: #888;
}

body.light .footer-bottom {
  border-color: rgba(0, 0, 0, 0.08);
  color: #666;
}

/* ===== Back to Top ===== */
.back-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: #f9a825;
  color: #1a1a2e;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-top.show {
  opacity: 1;
  visibility: visible;
}

.back-top:hover {
  transform: scale(1.1);
}

/* ===== Search Box ===== */
.search-box {
  display: flex;
  gap: 10px;
  max-width: 500px;
  margin: 0 auto;
}

.search-box input {
  flex: 1;
  padding: 12px 20px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s;
}

.search-box input:focus {
  border-color: #f9a825;
}

body.light .search-box input {
  background: rgba(0, 0, 0, 0.05);
  color: #1a1a2e;
  border-color: rgba(0, 0, 0, 0.2);
}

body.light .search-box input:focus {
  border-color: #e65100;
}

.search-box button {
  padding: 12px 24px;
  border-radius: 50px;
  border: none;
  background: #f9a825;
  color: #1a1a2e;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.search-box button:hover {
  background: #ff8f00;
  transform: scale(1.02);
}

body.light .search-box button {
  background: #e65100;
  color: #fff;
}

body.light .search-box button:hover {
  background: #bf360c;
}

/* ===== Animations ===== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Breadcrumb ===== */
.breadcrumb {
  display: flex;
  gap: 8px;
  list-style: none;
  padding: 10px 0;
  font-size: 0.85rem;
  color: #888;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: #aaa;
  text-decoration: none;
  transition: color 0.3s;
}

.breadcrumb a:hover {
  color: #f9a825;
}

body.light .breadcrumb a {
  color: #555;
}

body.light .breadcrumb a:hover {
  color: #e65100;
}

/* ===== Article Card ===== */
.article-card {
  padding: 20px;
}

.article-card h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.article-card .date {
  color: #888;
  font-size: 0.85rem;
}

.article-card p {
  margin: 10px 0;
}

.read-more {
  color: #f9a825;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.read-more:hover {
  color: #ff8f00;
}

body.light .read-more {
  color: #e65100;
}

body.light .read-more:hover {
  color: #bf360c;
}

/* ===== HowTo ===== */
.howto-step {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  align-items: flex-start;
}

.step-number {
  width: 40px;
  height: 40px;
  background: #f9a825;
  color: #1a1a2e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
  font-size: 1.1rem;
}

body.light .step-number {
  background: #e65100;
  color: #fff;
}

/* ===== Partners ===== */
.partner-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.partner-item {
  padding: 20px 30px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.3s, background 0.3s;
  font-weight: 500;
}

.partner-item:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.08);
}

body.light .partner-item {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.06);
}

body.light .partner-item:hover {
  background: rgba(0, 0, 0, 0.04);
}

/* ===== Map Placeholder ===== */
.map-placeholder {
  width: 100%;
  height: 300px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  gap: 10px;
}

body.light .map-placeholder {
  background: rgba(0, 0, 0, 0.03);
}

/* ===== Cookie Bar ===== */
.cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 12, 41, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 16px 20px;
  display: none;
  justify-content: space-between;
  align-items: center;
  z-index: 9999;
  gap: 16px;
}

body.light .cookie-bar {
  background: rgba(245, 247, 250, 0.95);
}

.cookie-bar.show {
  display: flex;
}

.cookie-bar p {
  font-size: 0.9rem;
  flex: 1;
}

.cookie-bar button {
  background: #f9a825;
  border: none;
  padding: 8px 24px;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  color: #1a1a2e;
  white-space: nowrap;
  transition: background 0.3s;
}

.cookie-bar button:hover {
  background: #ff8f00;
}

body.light .cookie-bar button {
  background: #e65100;
  color: #fff;
}

body.light .cookie-bar button:hover {
  background: #bf360c;
}

/* ===== Count Number ===== */
.count-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: #f9a825;
}

body.light .count-number {
  color: #e65100;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  nav ul {
    display: none;
    flex-direction: column;
    background: rgba(15, 12, 41, 0.95);
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    padding: 20px;
    gap: 16px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }

  body.light nav ul {
    background: rgba(245, 247, 250, 0.95);
  }

  nav.open ul {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-slider {
    min-height: 320px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section-title h2 {
    font-size: 1.8rem;
  }

  .cookie-bar {
    flex-direction: column;
    text-align: center;
  }

  .back-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }

  .search-box {
    flex-direction: column;
  }

  .search-box button {
    width: 100%;
  }

  .howto-step {
    flex-direction: column;
    gap: 8px;
  }

  .timeline {
    padding-left: 30px;
  }

  .timeline-item::before {
    left: -22px;
    width: 14px;
    height: 14px;
  }

  .timeline::before {
    left: 12px;
  }
}

@media (max-width: 480px) {
  .header-inner {
    padding: 10px 16px;
  }

  .logo span {
    font-size: 1.2rem;
  }

  .logo svg {
    width: 32px;
    height: 32px;
  }

  .hero {
    padding: 60px 0 40px;
  }

  .hero h1 {
    font-size: 1.6rem;
  }

  section {
    padding: 50px 0;
  }

  .glass {
    padding: 20px;
  }

  .btn {
    padding: 12px 28px;
    font-size: 0.9rem;
  }

  .faq-question {
    padding: 14px 18px;
    font-size: 0.9rem;
  }

  .faq-item.open .faq-answer {
    padding: 14px 18px;
  }

  .partner-item {
    padding: 14px 20px;
  }
}

/* ===== Utility ===== */
::selection {
  background: #f9a825;
  color: #1a1a2e;
}

body.light ::selection {
  background: #e65100;
  color: #fff;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
  background: #f9a825;
  border-radius: 4px;
}

body.light ::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
}

body.light ::-webkit-scrollbar-thumb {
  background: #e65100;
}