:root {
  --primary-red: #E63946;
  --dark-red: #C1121F;
  --orange: #F77F00;
  --dark-blue: #0B1D33;
  --medium-blue: #1D3557;
  --light-blue: #457B9D;
  --green: #2D6A4F;
  --light-green: #40916C;
  --cream: #F1FAEE;
  --yellow: #FFD60A;
  --dark-text: #1a1a2e;
  --gray-text: #6B7280;
  --light-gray-bg: #F3F4F6;
  --white: #FFFFFF;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--dark-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.top-bar {
  background-color: var(--dark-blue);
  color: var(--cream);
  font-size: 0.875rem;
  padding: 10px 0;
  text-align: center;
}

.navbar {
  background-color: var(--white);
  border-bottom: 1px solid var(--light-gray-bg);
  transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-weight: 700;
  color: var(--primary-red) !important;
  font-size: 1.5rem;
  letter-spacing: -0.5px;
}

.navbar-brand img {
  max-height: 45px;
  margin-right: 8px;
}

.nav-link {
  color: var(--dark-text) !important;
  font-weight: 500;
  position: relative;
  margin: 0 8px;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-red), var(--orange));
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--primary-red) !important;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.nav-active {
  color: var(--primary-red) !important;
}

.nav-link.nav-active::after {
  width: 100%;
}

.navbar-toggler {
  border: none;
  padding: 0.25rem 0.5rem;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23E63946' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroZoom 10s ease-in-out alternate infinite;
}

@keyframes heroZoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.05);
  }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(11, 29, 51, 0.5) 0%, rgba(198, 25, 31, 0.3) 100%);
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--white);
  width: 90%;
  max-width: 800px;
  z-index: 2;
  animation: slideUp 0.8s ease-out;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 30px;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translate(-50%, -40%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

.hero-indicators {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 3;
}

.hero-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.hero-indicator.active {
  background-color: var(--primary-red);
  width: 30px;
  border-radius: 6px;
}

.hero-controls {
  position: absolute;
  bottom: 30px;
  left: 30px;
  z-index: 3;
  display: flex;
  gap: 12px;
}

.hero-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--primary-red);
  border: none;
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.hero-btn:hover {
  background-color: var(--dark-red);
  transform: scale(1.1);
}

.category-card {
  height: 280px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(198, 25, 31, 0.4) 0%, rgba(45, 106, 79, 0.4) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-card h3 {
  color: var(--white);
  font-size: 1.75rem;
  font-weight: 700;
  text-align: center;
  position: relative;
  z-index: 2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.category-card:hover {
  transform: scale(1.05);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--dark-text);
  text-align: center;
  margin-bottom: 15px;
}

.section-subtitle {
  color: var(--gray-text);
  text-align: center;
  font-size: 1rem;
  margin-bottom: 25px;
}

.red-underline {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-red), var(--orange));
  margin: 0 auto 40px;
}

.trek-card {
  background-color: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.trek-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.trek-card-img {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
  background-color: var(--light-gray-bg);
}

.trek-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.trek-card:hover .trek-card-img img {
  transform: scale(1.08);
}

.trek-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: var(--primary-red);
  color: var(--white);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  z-index: 2;
}

.trek-difficulty {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: var(--primary-red);
  color: var(--white);
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  z-index: 2;
}

.trek-info {
  padding: 20px;
}

.trek-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark-text);
  margin-bottom: 12px;
}

.trek-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 15px;
  font-size: 0.9rem;
  color: var(--gray-text);
}

.trek-detail-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trek-detail-row i {
  color: var(--primary-red);
  width: 18px;
}

.trek-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid var(--light-gray-bg);
}

.trek-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-red);
}

.trek-price-label {
  font-size: 0.75rem;
  color: var(--gray-text);
  display: block;
}

.trek-rating {
  display: flex;
  align-items: center;
  gap: 6px;
}

.trek-rating i {
  color: var(--yellow);
  font-size: 0.9rem;
}

.trek-rating-value {
  font-weight: 600;
  color: var(--dark-text);
  font-size: 0.9rem;
}

.stat-card {
  background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
  border-radius: 12px;
  padding: 30px 20px;
  text-align: center;
  color: var(--white);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 1rem;
  font-weight: 500;
}

.review-card {
  background-color: var(--white);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  min-width: 380px;
  flex-shrink: 0;
}

.review-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  gap: 15px;
}

.review-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--light-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 700;
}

.review-author {
  flex: 1;
}

.review-name {
  font-weight: 700;
  color: var(--dark-text);
  margin-bottom: 2px;
}

.review-stars {
  color: var(--yellow);
  font-size: 0.9rem;
}

.review-text {
  color: var(--gray-text);
  line-height: 1.6;
  font-size: 0.95rem;
}

.article-card {
  background-color: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.article-img {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.article-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.article-card:hover .article-img img {
  transform: scale(1.08);
}

.article-body {
  padding: 20px;
}

.article-date {
  color: var(--gray-text);
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.article-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark-text);
  margin-bottom: 10px;
  line-height: 1.4;
}

.article-excerpt {
  color: var(--gray-text);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 15px;
}

.article-link {
  color: var(--primary-red);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.3s ease;
}

.article-link:hover {
  gap: 10px;
}

.faq-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  border-bottom: 2px solid var(--light-gray-bg);
  flex-wrap: wrap;
}

.faq-tab {
  background: none;
  border: none;
  padding: 12px 20px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-text);
  cursor: pointer;
  position: relative;
  transition: color 0.3s ease;
}

.faq-tab.active {
  color: var(--primary-red);
}

.faq-tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--primary-red);
}

.faq-content {
  display: none;
}

.faq-content.active {
  display: block;
  animation: slideUp 0.3s ease-out;
}

.faq-item {
  border: 1px solid var(--light-gray-bg);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 16px;
  background-color: var(--white);
  border: none;
  text-align: left;
  font-weight: 600;
  color: var(--dark-text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
  font-family: 'Poppins', sans-serif;
}

.faq-question:hover {
  background-color: var(--light-gray-bg);
}

.faq-question i {
  color: var(--primary-red);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 16px;
  color: var(--gray-text);
  background-color: rgba(230, 57, 70, 0.02);
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 16px;
}

.cta-section {
  background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
  color: var(--white);
  padding: 60px 30px;
  text-align: center;
  border-radius: 12px;
}

.cta-section h2 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.cta-section p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.site-footer {
  background-color: var(--dark-blue);
  color: var(--cream);
  padding: 50px 30px 20px;
  margin-top: 80px;
}

.footer-section h5 {
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--white);
}

.footer-link {
  color: var(--cream);
  text-decoration: none;
  display: block;
  font-size: 0.9rem;
  margin-bottom: 10px;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--primary-red);
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary-red);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
  font-size: 1rem;
}

.social-icon:hover {
  background-color: var(--orange);
  transform: translateY(-4px);
}

.app-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 8px 15px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--white);
  font-size: 0.85rem;
  margin-bottom: 10px;
  transition: background-color 0.3s ease;
}

.app-badge:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.footer-bottom {
  border-top: 1px solid rgba(241, 250, 238, 0.2);
  padding-top: 30px;
  margin-top: 30px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--cream);
}

.btn-tth {
  background-color: var(--primary-red);
  color: var(--white);
  border: none;
  padding: 12px 30px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  text-decoration: none;
  display: inline-block;
  font-family: 'Poppins', sans-serif;
}

.btn-tth:hover {
  background-color: var(--dark-red);
  transform: translateY(-2px);
  color: var(--white);
}

.btn-tth:active {
  transform: translateY(0);
}

.btn-tth-outline {
  background-color: transparent;
  color: var(--primary-red);
  border: 2px solid var(--primary-red);
  padding: 10px 28px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  text-decoration: none;
  display: inline-block;
  font-family: 'Poppins', sans-serif;
}

.btn-tth-outline:hover {
  background-color: var(--primary-red);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-tth-outline:active {
  transform: translateY(0);
}

.reviews-scroll {
  display: flex;
  gap: 20px;
  padding: 10px 0;
  overflow-x: auto;
  scroll-behavior: smooth;
}

.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

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

::-webkit-scrollbar-track {
  background: var(--light-gray-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-red);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--dark-red);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@media (max-width: 768px) {
  .hero-slider {
    height: 350px;
  }

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

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

  .hero-controls {
    left: 15px;
    bottom: 15px;
  }

  .hero-indicators {
    bottom: 15px;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .trek-card {
    margin-bottom: 20px;
  }

  .faq-tabs {
    flex-direction: column;
  }

  .faq-tab {
    border-bottom: 2px solid var(--light-gray-bg);
    padding: 10px 0;
  }

  .cta-section {
    padding: 40px 20px;
  }

  .cta-section h2 {
    font-size: 1.5rem;
  }

  .cta-section p {
    font-size: 0.95rem;
  }

  .review-card {
    min-width: 300px;
  }

  .stat-card {
    padding: 25px 15px;
  }

  .stat-number {
    font-size: 2rem;
  }

  .btn-tth,
  .btn-tth-outline {
    padding: 10px 24px;
    font-size: 0.9rem;
  }

  .footer-section {
    margin-bottom: 30px;
  }

  .site-footer {
    padding: 40px 20px 15px;
  }
}

@media (max-width: 480px) {
  .navbar-brand {
    font-size: 1.25rem;
  }

  .hero-slider {
    height: 250px;
  }

  .hero-content h1 {
    font-size: 1.5rem;
  }

  .hero-content p {
    font-size: 0.9rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .section-subtitle {
    font-size: 0.9rem;
  }

  .trek-title {
    font-size: 1.1rem;
  }

  .trek-details {
    font-size: 0.85rem;
  }

  .trek-price {
    font-size: 1.25rem;
  }

  .stat-card {
    padding: 20px 15px;
  }

  .stat-number {
    font-size: 1.75rem;
  }

  .stat-label {
    font-size: 0.9rem;
  }

  .cta-section {
    padding: 30px 15px;
  }

  .cta-section h2 {
    font-size: 1.25rem;
  }

  .cta-section p {
    font-size: 0.85rem;
  }

  .review-card {
    min-width: 100%;
    margin-bottom: 15px;
  }

  .hero-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .faq-question {
    padding: 12px;
    font-size: 0.95rem;
  }

  .faq-answer {
    font-size: 0.9rem;
  }

  .btn-tth,
  .btn-tth-outline {
    padding: 10px 20px;
    font-size: 0.85rem;
    width: 100%;
    text-align: center;
  }
}
