:root {
  --emerald: #2e8b57;
  --emerald-dark: #1e6b47;
  --gold: #daa520;
  --sky-blue: #87ceeb;
  --ivory: #fffff0;
  --warm-orange: #ff8c42;
  --beige: #f5f5dc;
  --text-dark: #2c3e50;
  --text-light: #7f8c8d;
  --coral: #ff7f50;
  --deep-blue: #1a365d;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--text-dark);
  overflow-x: hidden;
  background-color: #f9f9f9;
}

/* Navbar */
.navbar {
  background: transparent;
  backdrop-filter: blur(10px);
  transition: all 0.4s ease;
  padding: 1.5rem 0;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  padding: 0.8rem 0;
}

.navbar-brand {
  font-weight: 700;
  color: white;
  font-size: 1.8rem;
  transition: color 0.3s ease;
}

.navbar.scrolled .navbar-brand {
  color: var(--emerald);
}

.nav-link {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0.5rem;
  position: relative;
  transition: color 0.3s ease;
}

.navbar.scrolled .nav-link {
  color: var(--text-dark);
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background: linear-gradient(to right, var(--gold), var(--warm-orange));
  transition: width 0.3s ease;
}

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

.search-bar .form-control {
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  transition: all 0.3s ease;
}

.navbar.scrolled .search-bar .form-control {
  background: white;
  color: var(--text-dark);
  border: 1px solid #e0e0e0;
}

.search-bar .form-control::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.navbar.scrolled .search-bar .form-control::placeholder {
  color: var(--text-light);
}

.search-bar .btn {
  border-radius: 50px;
  margin-left: -50px;
  z-index: 5;
  background: transparent;
  color: white;
  border: none;
}

.navbar.scrolled .search-bar .btn {
  color: var(--text-dark);
}

/* Search Results */
.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border-radius: 0 0 15px 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  max-height: 400px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
}

.search-result-item {
  padding: 1rem;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.search-result-item:hover {
  background-color: #f8f9fa;
  transform: translateX(5px);
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-image {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  margin-right: 1rem;
}

/* Hero Section Carousel */
.hero-section {
  height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: -2;
  transition: transform 10s ease;
}

.carousel-item.active .hero-background {
  transform: scale(1.05);
}

.hero-content {
  text-align: center;
  color: white;
  max-width: 800px;
  padding: 0 2rem;
  animation: fadeInUp 1s ease;
}

.hero-title {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  background: linear-gradient(to right, var(--gold), var(--warm-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2.5rem;
  color: var(--ivory);
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.btn-explore {
  background: linear-gradient(to right, var(--emerald), var(--emerald-dark));
  color: white;
  border: none;
  border-radius: 50px;
  padding: 0.9rem 2.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(46, 139, 87, 0.4);
  position: relative;
  overflow: hidden;
}

.btn-explore:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(46, 139, 87, 0.6);
  color: white;
}

.btn-explore::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.btn-explore:hover::after {
  left: 100%;
}

/* Fade Up Animation */
@keyframes fadeInUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Carousel Controls & Indicators */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: invert(1);
}

.carousel-indicators [data-bs-target] {
  background-color: white;
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

/* Section Styling */
.section-title {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  position: absolute;
  width: 60%;
  height: 5px;
  bottom: -15px;
  left: 0;
  background: linear-gradient(to right, var(--emerald), var(--gold));
  border-radius: 3px;
}

/* Discover Section - Unique Design */
.discover-section {
  padding: 120px 0;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  position: relative;
  overflow: hidden;
}

.discover-section::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
  opacity: 0.1;
  border-radius: 50%;
}

.discover-section::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--emerald) 0%, transparent 70%);
  opacity: 0.1;
  border-radius: 50%;
}

.discover-card {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
  position: relative;
  background: white;
  height: 100%;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.discover-card:hover {
  transform: translateY(-15px) rotateX(5deg);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.discover-card img {
  height: 280px;
  width: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.discover-card:hover img {
  transform: scale(1.1);
}

.discover-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: linear-gradient(to right, var(--warm-orange), var(--coral));
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(255, 140, 66, 0.4);
}

.discover-content {
  padding: 2rem;
  position: relative;
  z-index: 1;
}

.discover-content h4 {
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-dark);
  font-size: 1.4rem;
}

.discover-content p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* Events Section - Unique Design */
.events-section {
  padding: 120px 0;
  background: linear-gradient(135deg, var(--deep-blue) 0%, #2d3748 100%);
  color: white;
  position: relative;
  overflow: hidden;
  z-index: 0;
}

.events-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.03" d="M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,128C960,128,1056,192,1152,192C1248,192,1344,128,1392,96L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
  background-size: cover;
  background-position: center;
  z-index: -1;
}

.events-section .section-title {
  color: white;
}

.events-section .section-title::after {
  background: linear-gradient(to right, var(--gold), var(--warm-orange));
}

.event-card {
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s ease;
  height: 100%;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 1;
}

.event-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  background: rgba(255, 255, 255, 0.1);
}

.event-card img {
  height: 220px;
  object-fit: cover;
  width: 100%;
}

.event-card .card-body {
  padding: 2rem;
}

.event-date {
  display: inline-block;
  background: linear-gradient(to right, var(--gold), var(--warm-orange));
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-weight: 600;
  margin-bottom: 1rem;
  box-shadow: 0 4px 10px rgba(218, 165, 32, 0.4);
}

.event-card .card-title {
  font-weight: 600;
  margin-bottom: 1rem;
  color: white;
  font-size: 1.3rem;
}

.event-card .card-text {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* Cultural Section */
.cultural-section {
  padding: 120px 0;
  background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)),
    url("/images/chico-river/ChicoRiver.webp");
  background-size: cover;
  background-attachment: fixed;
  color: white;
  position: relative;
}

.cultural-item {
  text-align: center;
  padding: 2.5rem 1.5rem;
  transition: all 0.3s ease;
  border-radius: 15px;
  position: relative;
  z-index: 1;
}

.cultural-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.cultural-icon {
  width: 90px;
  height: 90px;
  background: linear-gradient(to right, var(--emerald), var(--gold));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  box-shadow: 0 8px 20px rgba(46, 139, 87, 0.4);
}

.cultural-item h4 {
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.cultural-item p {
  font-size: 0.95rem;
  opacity: 0.9;
  line-height: 1.6;
}

/* Explore Section */
.explore-section {
  padding: 120px 0;
  background-color: white;
  position: relative;
}

.card-place {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  height: 450px;
  position: relative;
  transition: all 0.4s ease;
}

.card-place:hover {
  transform: translateY(-15px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

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

.card-place:hover .card-img {
  transform: scale(1.15);
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 30%, rgba(0, 0, 0, 0.9));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.5rem;
  color: white;
}

.card-content h3 {
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-size: 1.8rem;
}

.card-description {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s ease;
}

.card-place:hover .card-description {
  max-height: 200px;
}

.view-more-btn {
  position: absolute;
  top: 25px;
  right: 25px;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--emerald);
  opacity: 0;
  transform: translateX(15px);
  transition: all 0.4s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.card-place:hover .view-more-btn {
  opacity: 1;
  transform: translateX(0);
}

/* Testimonials */
.testimonial-section {
  padding: 120px 0;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  position: relative;
}

.testimonial-card {
  background: white;
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
  height: 100%;
  transition: all 0.3s ease;
  position: relative;
}

.testimonial-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 20px;
  left: 25px;
  font-size: 5rem;
  color: var(--emerald);
  opacity: 0.2;
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1.5rem;
  color: var(--text-light);
  line-height: 1.7;
  position: relative;
  z-index: 1;
  word-wrap: break-word; /* wrap long words */
  overflow-wrap: break-word; /* wrap overflow words */
  white-space: pre-line; /* respects newlines and wraps text */
}

.testimonial-author {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.testimonial-rating {
  color: var(--gold);
  font-size: 1.1rem;
}

/* Newsletter */
.newsletter-section {
  padding: 120px 0;
  background: linear-gradient(rgba(46, 139, 87, 0.9), rgba(30, 107, 71, 0.9)),
    url("/images/chico-river/chico river dam.webp");
  background-size: cover;
  background-attachment: fixed;
  color: white;
  position: relative;
}

.newsletter-form .form-control {
  border-radius: 50px;
  padding: 1rem 1.5rem;
  border: none;
  font-size: 1rem;
}

.newsletter-form .btn {
  border-radius: 50px;
  padding: 1rem 2.5rem;
  margin-left: -60px;
  z-index: 5;
  background: var(--gold);
  border: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.newsletter-form .btn:hover {
  background: var(--warm-orange);
  transform: translateY(-2px);
}

.newsletter-message {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 10px;
  display: none;
}

.newsletter-success {
  background: rgba(46, 139, 87, 0.2);
  border: 1px solid rgba(46, 139, 87, 0.5);
}

.newsletter-error {
  background: rgba(220, 53, 69, 0.2);
  border: 1px solid rgba(220, 53, 69, 0.5);
}



.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  margin-right: 10px;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background: var(--emerald);
  transform: translateY(-5px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  margin-top: 40px;
  text-align: center;
  color: #95a5a6;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Parallax Elements */
.parallax-element {
  position: absolute;
  z-index: -1;
}

.mountain-outline {
  bottom: 0;
  left: 0;
  width: 100%;
  height: 200px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path fill="%23f5f5dc" d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" opacity=".25"></path></svg>');
  background-size: cover;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.8rem;
  }

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

  .cultural-item {
    margin-bottom: 2rem;
  }

  .search-results {
    position: fixed;
    top: 80px;
    left: 15px;
    right: 15px;
  }

  .discover-card,
  .event-card,
  .card-place {
    margin-bottom: 2rem;
  }
}
/* Disclaimer Modal Styles */
#disclaimerModal .modal-header {
    background: linear-gradient(135deg, var(--emerald), var(--emerald-dark));
    color: white;
}

#disclaimerModal .modal-body ul {
    padding-left: 1rem;
}

#disclaimerModal p{
    color: black;
}
#disclaimerModal .modal-body li {
    margin-bottom: 0.5rem;
    color: black;
}


.cultural-item {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cultural-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.cultural-description {
  display: -webkit-box;
  -webkit-line-clamp: 3; /* Show max 3 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.9rem;
  line-height: 1.2rem;
  min-height: 5.6rem; /* ensures all cards have consistent height */
}
.back-to-events {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}