: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: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  padding: 0.8rem 0;
}

.navbar-brand {
  font-weight: 700;
  color: var(--emerald);
  font-size: 1.8rem;
}

.nav-link {
  font-weight: 500;
  color: var(--text-dark);
  margin: 0 0.5rem;
  position: relative;
}

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

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

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

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

/* Stories Hero Section */
.stories-hero {
  height: 60vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7));
}

.stories-hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.stories-hero-content {
  text-align: center;
  color: white;
  max-width: 800px;
  padding: 0 2rem;
}

.stories-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.stories-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: var(--ivory);
}

.stories-meta {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  backdrop-filter: blur(10px);
}

/* Stories Section */
.stories-section {
  padding: 80px 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  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;
}

.stories-filter {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  margin-bottom: 3rem;
}

.filter-btn {
  border: 2px solid var(--beige);
  background: white;
  color: var(--emerald);
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--emerald);
  color: white;
  border-color: var(--emerald);
}

.story-count {
  color: var(--emerald);
  font-weight: 600;
}

/* Story Cards - Updated */
.story-card {
  border: none;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  margin-bottom: 2rem;
  background: white;
  height: 100%;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.story-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.story-card.featured {
  border-left: 4px solid var(--gold);
}

.featured-badge {
  background: linear-gradient(45deg, var(--gold), var(--warm-orange));
  color: white;
  font-weight: bold;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  align-self: flex-start;
  margin-bottom: 1rem;
}

.traveler-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--emerald);
}

.rating-stars {
  color: var(--gold);
  font-size: 1.1rem;
  margin: 0.5rem 0;
}

.story-meta {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.story-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.6;
  margin: 1rem 0;
  flex-grow: 1;
}

.card-footer {
  background: transparent;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding: 1rem 0 0;
  margin-top: auto;
}

/* Share Story CTA */
.share-story-cta {
  background: linear-gradient(135deg, var(--beige) 0%, #ffffff 100%);
  border: 2px dashed var(--emerald);
  border-radius: 15px;
  padding: 3rem 2rem;
  text-align: center;
  margin: 2rem 0;
}

/* Testimonials */
.testimonial-quote {
  border-left: 4px solid var(--emerald);
  padding-left: 1.5rem;
  font-style: italic;
  color: var(--text-dark);
  background: white;
  padding: 1.5rem;
  border-radius: 0 10px 10px 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Footer */
.footer {
  background: var(--text-dark);
  color: white;
  padding: 80px 0 20px;
}

.footer h5 {
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--ivory);
}

.footer p {
  color: #bdc3c7;
}

.footer ul li {
  margin-bottom: 0.5rem;
}

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

.footer a:hover {
  color: var(--ivory);
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  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(-3px);
}

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

/* Back to Home Button */
.back-to-home {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
}

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

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

  .stories-meta {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .story-card {
    padding: 1rem;
  }
}
