/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #f5f5f5;
  color: #333;
  line-height: 1.8;
  transition: background 0.3s, color 0.3s;
}
body.dark {
  background: #121212;
  color: #e0e0e0;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  background: #1a1a2e;
  color: #fff;
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background 0.3s, box-shadow 0.3s;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(26, 26, 46, 0.9);
}
.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-size: 24px;
  font-weight: 700;
  color: #ffd700;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}
.nav {
  display: flex;
  gap: 20px;
  list-style: none;
}
.nav a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s, text-shadow 0.3s;
  position: relative;
}
.nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #ffd700;
  transition: width 0.3s;
}
.nav a:hover {
  color: #ffd700;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}
.nav a:hover::after {
  width: 100%;
}
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  transition: transform 0.3s;
}
.menu-toggle:hover {
  transform: rotate(90deg);
}

/* Search Bar */
.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}
.search-bar input {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 20px;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  backdrop-filter: blur(5px);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.search-bar input:focus {
  outline: none;
  border-color: #ffd700;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}
.search-bar input::placeholder {
  color: #ccc;
}
.search-bar button {
  padding: 8px 16px;
  background: #ffd700;
  color: #1a1a2e;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.3s, box-shadow 0.3s;
}
.search-bar button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

/* Dark Toggle */
.dark-toggle {
  background: none;
  border: none;
  color: #ffd700;
  font-size: 20px;
  cursor: pointer;
  transition: transform 0.3s;
}
.dark-toggle:hover {
  transform: rotate(360deg);
}

/* Banner */
.banner {
  background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
  color: #fff;
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
  animation: bannerGlow 10s ease-in-out infinite;
}
@keyframes bannerGlow {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, -20px); }
}
.banner h1 {
  font-size: 48px;
  margin-bottom: 20px;
  color: #ffd700;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
  animation: fadeInUp 0.8s ease-out;
}
.banner p {
  font-size: 20px;
  max-width: 700px;
  margin: 0 auto 30px;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}
.banner .btn {
  display: inline-block;
  padding: 12px 30px;
  background: #ffd700;
  color: #1a1a2e;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  transition: transform 0.3s, box-shadow 0.3s;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}
.banner .btn:hover {
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 5px 20px rgba(255, 215, 0, 0.4);
}
.banner-slider {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.banner-slide {
  min-width: 100%;
  padding: 60px 0;
}

/* Sections */
.section {
  padding: 60px 0;
}
.section-title {
  font-size: 32px;
  text-align: center;
  margin-bottom: 40px;
  color: #1a1a2e;
  position: relative;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: #ffd700;
  margin: 10px auto;
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}
.dark .section-title {
  color: #ffd700;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

/* Grid & Cards */
.grid {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.dark .card {
  background: rgba(30, 30, 30, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  border-color: rgba(255, 255, 255, 0.1);
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  background: rgba(255, 255, 255, 0.95);
}
.dark .card:hover {
  background: rgba(40, 40, 40, 0.9);
  box-shadow: 0 8px 30px rgba(0,0,0,0.6);
}
.card h3 {
  font-size: 20px;
  margin-bottom: 15px;
  color: #1a1a2e;
}
.dark .card h3 {
  color: #ffd700;
}
.card p {
  font-size: 14px;
  color: #666;
}
.dark .card p {
  color: #aaa;
}
.card svg {
  width: 60px;
  height: 60px;
  margin-bottom: 15px;
  fill: #ffd700;
  transition: transform 0.3s;
}
.card:hover svg {
  transform: scale(1.1) rotate(5deg);
}

/* FAQ */
.faq-item {
  border-bottom: 1px solid rgba(0,0,0,0.1);
  padding: 15px 0;
  cursor: pointer;
  transition: background 0.3s;
}
.dark .faq-item {
  border-color: rgba(255,255,255,0.1);
}
.faq-item:hover {
  background: rgba(255, 215, 0, 0.05);
}
.faq-question {
  font-size: 18px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #1a1a2e;
}
.dark .faq-question {
  color: #ffd700;
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #555;
}
.dark .faq-answer {
  color: #ccc;
}
.faq-answer.open {
  max-height: 500px;
  padding-top: 10px;
}
.faq-toggle {
  font-size: 24px;
  transition: transform 0.3s;
}
.faq-toggle.open {
  transform: rotate(45deg);
}

/* HowTo Steps */
.howto-steps {
  list-style: none;
  counter-reset: step;
}
.howto-steps li {
  counter-increment: step;
  margin-bottom: 20px;
  padding-left: 40px;
  position: relative;
}
.howto-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  background: #ffd700;
  color: #1a1a2e;
  border-radius: 50%;
  text-align: center;
  line-height: 30px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

/* Article List */
.article-list .article-item {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.dark .article-list .article-item {
  background: rgba(30, 30, 30, 0.8);
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
  border-color: rgba(255, 255, 255, 0.1);
}
.article-list .article-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}
.article-list .article-item svg {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  fill: #ffd700;
  transition: transform 0.3s;
}
.article-list .article-item:hover svg {
  transform: scale(1.1);
}
.article-list .article-item h3 {
  font-size: 18px;
  margin-bottom: 5px;
  color: #1a1a2e;
}
.dark .article-list .article-item h3 {
  color: #ffd700;
}
.article-list .article-item p {
  font-size: 14px;
  color: #666;
}
.dark .article-list .article-item p {
  color: #aaa;
}
.article-list .article-item .date {
  font-size: 12px;
  color: #999;
}
.article-list .article-item .read-more {
  color: #ffd700;
  text-decoration: none;
  font-weight: 600;
  transition: text-shadow 0.3s;
}
.article-list .article-item .read-more:hover {
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

/* Footer */
.footer {
  background: #1a1a2e;
  color: #fff;
  padding: 40px 0;
  text-align: center;
}
.footer a {
  color: #ffd700;
  text-decoration: none;
  transition: text-shadow 0.3s;
}
.footer a:hover {
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}
.footer .links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.footer .links a {
  font-size: 14px;
}
.footer p {
  font-size: 14px;
  margin-bottom: 5px;
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #ffd700;
  color: #1a1a2e;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
  z-index: 999;
  box-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
}
.back-to-top:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 5px 20px rgba(255, 215, 0, 0.5);
}

/* Breadcrumb */
.breadcrumb {
  background: rgba(238, 238, 238, 0.9);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  padding: 10px 0;
  font-size: 14px;
}
.dark .breadcrumb {
  background: rgba(34, 34, 34, 0.9);
}
.breadcrumb a {
  color: #ffd700;
  text-decoration: none;
  transition: text-shadow 0.3s;
}
.breadcrumb a:hover {
  text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}
.breadcrumb span {
  color: #666;
}
.dark .breadcrumb span {
  color: #aaa;
}

/* Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Number Animation */
.number-animate {
  font-size: 36px;
  font-weight: 700;
  color: #ffd700;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

/* Team Member */
.team-member {
  text-align: center;
}
.team-member svg {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  fill: #1a1a2e;
  margin-bottom: 10px;
  transition: transform 0.3s, fill 0.3s;
}
.dark .team-member svg {
  fill: #ffd700;
}
.team-member:hover svg {
  transform: scale(1.1);
}

/* Contact Info */
.contact-info p {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.contact-info svg {
  width: 20px;
  height: 20px;
  fill: #ffd700;
  transition: transform 0.3s;
}
.contact-info p:hover svg {
  transform: translateX(3px);
}

/* Responsive */
@media (max-width: 768px) {
  .nav {
    display: none;
    flex-direction: column;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    padding: 20px;
    border-radius: 0 0 16px 16px;
  }
  .nav.open {
    display: flex;
  }
  .menu-toggle {
    display: block;
  }
  .banner h1 {
    font-size: 32px;
  }
  .banner p {
    font-size: 16px;
  }
  .section-title {
    font-size: 26px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .article-list .article-item {
    flex-direction: column;
  }
  .search-bar {
    margin-top: 10px;
  }
  .search-bar input {
    width: 100px;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f1f1;
}
.dark ::-webkit-scrollbar-track {
  background: #333;
}
::-webkit-scrollbar-thumb {
  background: #ffd700;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #e6c200;
}

/* Selection */
::selection {
  background: #ffd700;
  color: #1a1a2e;
}