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

:root {
  --forest-dark: #1e3d25;
  --forest-medium: #2d5a3a;
  --forest-light: #4a7d5a;
  --earth-brown: #7a5c42;
  --earth-light: #a8937d;
  --cream: #f2f0e9;
  --white: #ffffff;
  --accent: #c19a6b;
  --success: #27ae60;
  --warning: #f39c12;
  --danger: #e74c3c;
}

body {
  font-family: "Raleway", sans-serif;
  background-color: var(--cream);
  color: var(--forest-dark);
  line-height: 1.6;
}

h1,
h2,
h3,
h4 {
  font-family: "Playfair Display", serif;
  font-weight: 500;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header Styles */
header {
  padding: 20px 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  background-color: rgba(242, 240, 233, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(10px);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
}

.logo h1 {
  font-size: 1.8rem;
  color: var(--forest-dark);
  margin: 0;
  line-height: 1.2;
}

.logo span {
  color: var(--accent);
}

/* Mobile Menu */
.menu-icon {
  display: none;
  font-size: 1.5rem;
  color: var(--forest-dark);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.menu-icon:hover {
  transform: scale(1.1);
}

.sidebar {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100vh;
  background-color: var(--white);
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  transition: right 0.3s ease;
  z-index: 1001;
  padding: 20px;
}

.sidebar.active {
  right: 0;
}

.close-icon {
  text-align: right;
  margin-bottom: 30px;
  font-size: 1.5rem;
  color: var(--forest-dark);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.close-icon:hover {
  transform: scale(1.1);
}

.sidebar ul {
  list-style: none;
}

.sidebar ul li {
  margin-bottom: 20px;
}

.sidebar ul li a {
  text-decoration: none;
  color: var(--forest-medium);
  font-weight: 500;
  font-size: 1.1rem;
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid var(--earth-light);
  transition: color 0.3s ease;
}

.sidebar ul li a:hover {
  color: var(--accent);
}

/* Desktop Navigation */
.desktop-nav {
  display: flex;
  list-style: none;
}

.desktop-nav li {
  margin-left: 30px;
}

.desktop-nav li a {
  text-decoration: none;
  color: var(--forest-medium);
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  padding: 8px 0;
}

.desktop-nav li a:hover {
  color: var(--accent);
}

.desktop-nav li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: width 0.3s ease;
}

.desktop-nav li a:hover::after {
  width: 100%;
}

.desktop-nav li a.active {
  color: var(--accent);
}

.desktop-nav li a.active::after {
  width: 100%;
}

/* Page Management */
.page {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.page.active {
  display: block;
  opacity: 1;
}

/* Hero Section */
.hero {
  padding: 150px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.hero-text {
  flex: 1;
  padding-right: 30px;
}

/* Hero Image Container - Centered & Clean */
.hero-image-container {
  position: relative; /* Needed for tooltip positioning */
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 2.5rem 0;
  padding: 1rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1.2s ease-out forwards;
}

/* Hero Image Styling */
.hero-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(44, 120, 101, 0.2);
  object-fit: cover;
  transition: all 0.4s ease;
  display: block;
}

/* Hover Effect – Gentle Lift & Shadow */
.hero-image:hover {
  transform: scale(1.04) rotate(-1deg);
  box-shadow: 0 28px 50px rgba(44, 120, 101, 0.32);
}

/* Fade-in Animation */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Optional: Pulse Animation (Subtle breathing effect) */
.hero-image.pulse {
  animation: pulse 6s ease-in-out infinite alternate;
}

@keyframes pulse {
  0% {
    box-shadow: 0 20px 40px rgba(44, 120, 101, 0.2);
  }
  100% {
    box-shadow: 0 30px 60px rgba(44, 120, 101, 0.28);
    transform: scale(1.02) rotate(0.5deg);
  }
}

/* Tooltip - Hidden by Default */
.tooltip {
  position: absolute;
  bottom: -40px; /* Position below image */
  left: 50%;
  transform: translateX(-50%);
  background: var(--forest-light);
  color: white;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none; /* Prevent interaction */
  transition: opacity 0.3s ease, visibility 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  z-index: 10;
}

/* Tooltip Arrow (Optional Triangle) */
.tooltip::after {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid #2c7865;
}

/* Show Tooltip on Hover */
.hero-image-container:hover .tooltip {
  opacity: 1;
  visibility: visible;
}

.hero h2 {
  font-size: 2.8rem;
  line-height: 1.3;
  margin-bottom: 25px;
  color: var(--forest-dark);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: var(--forest-medium);
  max-width: 90%;
}

.quote-box {
  background-color: var(--white);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  margin-top: 30px;
  border-left: 4px solid var(--accent);
  position: relative;
}

.quote-box p {
  font-style: italic;
  font-size: 1.4rem;
  margin: 0;
  color: var(--forest-dark);
  position: relative;
  z-index: 2;
}

.quote-box .author {
  display: block;
  text-align: right;
  margin-top: 15px;
  font-style: normal;
  color: var(--accent);
  font-weight: 500;
}

/* Hero Image Placeholder */
.hero-image-placeholder {
  width: 100%;
  height: 400px;
  background: linear-gradient(
    135deg,
    var(--forest-light),
    var(--forest-medium)
  );
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.hero-image-placeholder:hover {
  transform: scale(1.02);
}

.hero-image-placeholder i {
  font-size: 4rem;
  margin-bottom: 15px;
  opacity: 0.9;
}

.hero-image-placeholder span {
  font-size: 1.2rem;
  font-weight: 500;
  opacity: 0.8;
}

/* Features Section */
.features {
  padding: 100px 0;
  background-color: var(--white);
}

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

.section-title h2 {
  font-size: 2.5rem;
  color: var(--forest-dark);
  margin-bottom: 15px;
}

.section-title p {
  color: var(--forest-medium);
  max-width: 600px;
  margin: 0 auto;
}

.subtitle {
  color: var(--forest-medium);
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.feature-card {
  background-color: var(--cream);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.feature-icon {
  font-size: 3rem;
  color: var(--accent);
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--forest-dark);
}

/* How It Works */
.how-it-works {
  padding: 100px 0;
  background-color: var(--cream);
}

.steps {
  display: flex;
  justify-content: space-between;
  margin-top: 50px;
}

.step {
  text-align: center;
  width: 22%;
  position: relative;
}

.step-number {
  width: 60px;
  height: 60px;
  background-color: var(--forest-medium);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: bold;
  margin: 0 auto 20px;
  transition: transform 0.3s ease;
}

.step-number:hover {
  transform: scale(1.1);
}

.step h3 {
  margin-bottom: 15px;
  color: var(--forest-dark);
}

.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 30px;
  right: -10%;
  width: 20%;
  height: 2px;
  background-color: var(--earth-light);
}

/* Testimonials */
.testimonials {
  padding: 100px 0;
  background-color: var(--white);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.testimonial-card {
  background-color: var(--cream);
  border-radius: 10px;
  padding: 30px;
  position: relative;
  transition: transform 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
}

.testimonial-content {
  margin-top: 30px;
  position: relative;
  z-index: 2;
}

.client {
  display: flex;
  align-items: center;
  margin-top: 20px;
}

.client-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--forest-medium);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-right: 15px;
}

.client-info h4 {
  color: var(--forest-dark);
}

.client-info p {
  color: var(--accent);
  font-size: 0.9rem;
}

/* CTA Section */
.cta-section {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--forest-dark), var(--forest-medium));
  color: var(--white);
  text-align: center;
  position: relative;
}

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

.cta-section p {
  max-width: 700px;
  margin: 0 auto 30px;
  font-size: 1.2rem;
}

.cta-button {
  background-color: var(--accent);
  color: var(--white);
  padding: 15px 35px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 2px solid var(--accent);
  display: inline-block;
  font-size: 1.1rem;
  cursor: pointer;
}

.cta-button:hover {
  background-color: transparent;
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Page Content */
.page-content {
  padding: 150px 0 100px;
  min-height: calc(100vh - 200px);
  position: relative;
  z-index: 1;
}

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

.page-title h2 {
  font-size: 2.5rem;
  color: var(--forest-dark);
  margin-bottom: 15px;
}

.page-title p {
  color: var(--forest-medium);
  max-width: 700px;
  margin: 0 auto;
}

/* Search Section */
.search-container {
  background-color: var(--white);
  border-radius: 15px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  padding: 40px;
  max-width: 800px;
  margin: 0 auto;
}

.search-form {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.search-input {
  flex: 1;
  padding: 15px 20px;
  border: 1px solid var(--earth-light);
  border-radius: 8px;
  font-family: "Raleway", sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(193, 154, 107, 0.2);
}

.search-button {
  background-color: var(--forest-medium);
  color: var(--white);
  border: none;
  padding: 0 25px;
  border-radius: 8px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.search-button:hover {
  background-color: var(--forest-dark);
  transform: translateY(-2px);
}

.search-button:disabled {
  background-color: var(--earth-light);
  cursor: not-allowed;
  transform: none;
}

/* Search Info */
.search-info {
  text-align: center;
  margin-bottom: 20px;
  padding: 10px;
  background-color: var(--cream);
  border-radius: 8px;
}

.search-info p {
  color: var(--forest-medium);
  font-size: 0.9rem;
}

/* Herb Results Section */
.herb-results-pagination {
  margin-top: 30px;
  display: none;
}

.herb-results-pagination.active-container {
  display: block;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--earth-light);
}

.results-header h3 {
  color: var(--forest-dark);
  font-size: 1.5rem;
}

.close-results {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--forest-medium);
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.close-results:hover {
  background-color: var(--danger);
  color: var(--white);
}

.herb-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.herb-results.active {
  display: grid;
}

.herb-cards {
  background-size: cover;
  background-position: center;
  border-radius: 10px;
  padding: 20px;
  min-height: 300px;
  display: flex;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
  z-index: 1002;
  transition: transform 0.3s ease;
}

.herb-cards:hover {
  transform: translateY(-5px);
}

.herb-cards::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.7));
  z-index: 1;
}

.herb-cards-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  width: 100%;
}

.herb-name {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--white);
}

.ailment-type {
  font-size: 1rem;
  margin-bottom: 15px;
  color: var(--cream);
}

.herb-details-button {
  background-color: var(--accent);
  color: var(--white);
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.herb-details-button:hover {
  background-color: var(--earth-brown);
  transform: translateY(-2px);
}

/* Pagination */
.pagination-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
  z-index: 1002;
  position: relative;
}

.pagination-buttons.pagination-buttons-set {
  display: flex;
}

.prev-page,
.next-page {
  background-color: var(--forest-medium);
  color: var(--white);
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.prev-page:hover:not(:disabled),
.next-page:hover:not(:disabled) {
  background-color: var(--forest-dark);
  transform: translateY(-2px);
}

.prev-page:disabled,
.next-page:disabled {
  background-color: var(--earth-light);
  cursor: not-allowed;
  transform: none;
}

.page-info {
  color: var(--forest-medium);
  font-weight: 500;
}

/* Overlay */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  display: none;
  backdrop-filter: blur(5px);
}

.overlay.active-overlay {
  display: block;
}

.close-overlay {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--white);
  cursor: pointer;
  z-index: 1000;
  transition: transform 0.3s ease;
}

.close-overlay:hover {
  transform: scale(1.1);
}

/* Herb Details Modal */
.herb-details-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 900px;
  max-height: 85vh; /* Reduced from 90vh to ensure disclaimer fits */
  background-color: var(--white);
  border-radius: 15px;
  overflow: hidden;
  z-index: 1003;
  display: none;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.herb-details-container.active {
  display: block;
  animation: modalSlideIn 0.3s ease;
}

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

.herb-image {
  height: 250px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.close-herb-results {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.close-herb-results:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.1);
}

.herb-details-contents {
  padding: 30px;
  max-height: calc(85vh - 250px); /* Adjust based on image height */
  overflow-y: auto;
  /* Add smooth scrolling */
  scroll-behavior: smooth;
}

.herb-additional {
  margin-bottom: 30px;
}

.about-herb {
  font-size: 2rem;
  font-weight: 600;
  color: var(--forest-dark);
  margin-bottom: 15px;
}

.additional-herbs-ingredients {
  color: var(--forest-medium);
  margin-bottom: 20px;
  font-style: italic;
  background-color: var(--cream);
  padding: 15px;
  border-radius: 8px;
}

.application-disclaimer {
  border-top: 1px solid var(--earth-light);
  padding-top: 20px;
}

.herb-application {
  color: var(--forest-dark);
  line-height: 1.8;
  margin-bottom: 20px;
  background-color: var(--cream);
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid var(--accent);
}

.herb-details-section {
  margin-bottom: 25px;
  padding: 20px;
  background-color: var(--cream);
  border-radius: 8px;
  border-left: 4px solid var(--forest-medium);
}

.herb-details-section h4 {
  color: var(--forest-dark);
  margin-bottom: 10px;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.herb-details-section.warning {
  border-left-color: var(--danger);
  background-color: #fdf2f2;
}

.herb-details-section.warning h4 {
  color: var(--danger);
}

/* AI Practitioner Styles - Enhanced */
.ai-practitioner {
  background-color: var(--white);
  border-radius: 15px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  padding: 40px;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Chat Interface */
.chat-container {
  background-color: var(--cream);
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 30px;
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid var(--earth-light);
}

.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ai-message,
.user-message {
  display: flex;
  gap: 15px;
  animation: messageSlideIn 0.3s ease;
}

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

.user-message {
  flex-direction: row-reverse;
}

.message-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.ai-message .message-avatar {
  background-color: var(--forest-medium);
  color: var(--white);
}

.user-message .message-avatar {
  background-color: var(--accent);
  color: var(--white);
}

.message-content {
  background-color: var(--white);
  padding: 15px 20px;
  border-radius: 15px;
  max-width: 80%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.user-message .message-content {
  background-color: var(--accent);
  color: var(--white);
}

.message-content p {
  margin: 0;
  line-height: 1.6;
}

.message-content strong {
  color: var(--forest-dark);
}

.user-message .message-content strong {
  color: var(--white);
}

/* Chat Input */
.chat-input-container {
  margin-bottom: 30px;
}

.input-wrapper {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.chat-input {
  flex: 1;
  padding: 15px 20px;
  border: 2px solid var(--earth-light);
  border-radius: 25px;
  font-family: "Raleway", sans-serif;
  font-size: 1rem;
  resize: none;
  transition: all 0.3s ease;
  min-height: 50px;
}

.chat-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(193, 154, 107, 0.2);
}

.send-button {
  background-color: var(--forest-medium);
  color: var(--white);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.send-button:hover:not(:disabled) {
  background-color: var(--forest-dark);
  transform: scale(1.05);
}

.send-button:disabled {
  background-color: var(--earth-light);
  cursor: not-allowed;
  transform: none;
}

.input-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--forest-medium);
}

.char-count {
  margin-left: auto;
}

/* Quick Actions */
.quick-actions {
  margin-bottom: 30px;
}

.quick-actions h3 {
  color: var(--forest-dark);
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.action-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.action-btn {
  background-color: var(--cream);
  border: 2px solid var(--earth-light);
  padding: 15px 20px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Raleway", sans-serif;
  font-size: 0.95rem;
  color: var(--forest-dark);
}

.action-btn:hover {
  background-color: var(--accent);
  color: var(--white);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.action-btn i {
  font-size: 1.2rem;
}

/* Popular Herbs */
.popular-herbs {
  margin: 40px 0;
}

.popular-herbs h3 {
  color: var(--forest-dark);
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.herbs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 15px;
}

.herb-item {
  background-color: var(--cream);
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.herb-item:hover {
  background-color: var(--accent);
  color: var(--white);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  border-color: var(--forest-medium);
}

.herb-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.herb-name {
  font-size: 0.9rem;
  font-weight: 500;
}

/* Loading Animation */
.loader {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--white);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Creator Support Modal */
.creator-page {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1004;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
}

.creator-page.active {
  display: flex;
}

.creator-details {
  background-color: var(--white);
  border-radius: 15px;
  padding: 40px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  position: relative;
  animation: modalSlideIn 0.3s ease;
}

.close-creator-support {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--forest-dark);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.close-creator-support:hover {
  transform: scale(1.1);
}

.creator-header h1 {
  color: var(--forest-dark);
  margin-bottom: 30px;
}

.creator-image-socials {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 30px;
}

.creator-image {
  margin-bottom: 20px;
}

.creator-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background-color: var(--forest-medium);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  border: 4px solid var(--accent);
}

.creator-avatar img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
}

.creator-socials {
  display: flex;
  gap: 15px;
}

.creator-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--forest-medium);
  border-radius: 50%;
  color: var(--white);
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.creator-socials a:hover {
  background-color: var(--accent);
  transform: translateY(-3px);
}

.creator-support-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.creator-support-button h1 {
  color: var(--forest-dark);
  font-size: 1.5rem;
}

.creator-support-button a {
  color: var(--accent);
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.creator-support-button a:hover {
  color: var(--forest-dark);
  transform: scale(1.1);
}

/* Disclaimer */
.disclaimer {
  background-color: var(--cream);
  padding: 20px;
  border-radius: 10px;
  font-size: 0.9rem;
  color: var(--forest-medium);
  border-left: 4px solid var(--accent);
  margin-top: 30px;
  /* Ensure disclaimer is always visible */
  position: relative;
  z-index: 1;
  /* Add some bottom margin to prevent cutoff */
  margin-bottom: 20px;
}

/* Footer */
footer {
  background-color: var(--forest-dark);
  color: var(--cream);
  padding: 70px 0 30px;
}

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

.footer-column h3 {
  color: var(--white);
  margin-bottom: 25px;
  font-size: 1.4rem;
  position: relative;
  padding-bottom: 10px;
}

.footer-column h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--accent);
}

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

.footer-column ul li {
  margin-bottom: 12px;
}

.footer-column ul li a {
  color: var(--earth-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-column ul li a:hover {
  color: var(--white);
}

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

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--forest-medium);
  border-radius: 50%;
  color: var(--white);
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background-color: var(--accent);
  transform: translateY(-3px);
}

.copyright {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--earth-light);
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 992px) {
  .menu-icon {
    display: block;
  }

  .desktop-nav {
    display: none;
  }

  .hero-content {
    flex-direction: column;
  }

  .hero-text {
    padding-right: 0;
    text-align: center;
  }

  .quote-box {
    margin: 30px auto 0;
    max-width: 600px;
  }

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

  .steps {
    flex-wrap: wrap;
  }

  .step {
    width: 48%;
    margin-bottom: 40px;
  }

  .step:not(:last-child)::after {
    display: none;
  }

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

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

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

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

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

@media (max-width: 768px) {
  .hero {
    padding: 180px 0 80px;
  }

  .hero h2 {
    font-size: 2.2rem;
  }

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

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

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

  .herb-results {
    grid-template-columns: 1fr;
  }

  .herb-details-container {
    width: 95%;
    max-height: 95vh;
  }

  .herb-details-contents {
    padding: 20px;
  }

  .action-buttons {
    grid-template-columns: 1fr;
  }

  .input-wrapper {
    flex-direction: column;
    gap: 15px;
  }

  .send-button {
    align-self: flex-end;
  }
}

@media (max-width: 576px) {
  .herbs-grid {
    grid-template-columns: 1fr;
  }

  .step {
    width: 100%;
  }

  .creator-details {
    padding: 30px 20px;
  }

  .search-container,
  .ai-practitioner {
    padding: 30px 20px;
  }

  .chat-input {
    font-size: 16px; /* Prevents zoom on iOS */
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles for better accessibility */
button:focus,
input:focus,
a:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --forest-dark: #000000;
    --forest-medium: #333333;
    --accent: #ff6600;
    --white: #ffffff;
  }
}

#ai-practitioner-page {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  position: relative;
  z-index: 1;
}

#ai-practitioner-page.active {
  display: block;
  opacity: 1;
}

/* Notification Styles */
@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.notification-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.notification-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--forest-medium);
  margin-left: 15px;
}

.notification-close:hover {
  color: var(--forest-dark);
}

/* Shop Page */
#shop-page {
  padding: 100px 0;
  background-color: var(--white);
}

/* Shop Search */
.shop-search-container {
  display: flex;
  max-width: 500px;
  margin: 20px auto 40px;
  position: relative;
}

.shop-search-input {
  flex: 1;
  padding: 12px 15px;
  border: 2px solid var(--earth-light);
  border-radius: 8px 0 0 8px;
  font-family: "Raleway", sans-serif;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s ease;
}

.shop-search-input:focus {
  border-color: var(--accent);
}

.shop-search-button {
  background-color: var(--forest-medium);
  color: var(--white);
  border: none;
  padding: 0 15px;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
  font-size: 1.1rem;
  transition: background-color 0.3s ease;
}

.shop-search-button:hover {
  background-color: var(--forest-dark);
}

/* Shop Grid */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.shop-disclaimer {
  margin-top: 40px;
  padding: 20px;
  background-color: var(--cream);
  border-radius: 10px;
  border-left: 4px solid var(--danger);
  color: var(--forest-medium);
  font-size: 0.9rem;
  line-height: 1.6;
}

.product-card {
  background-color: var(--cream);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.product-image {
  height: 180px;
  overflow: hidden;
  background-color: var(--forest-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-image::before {
  content: "";
  display: block;
  padding-bottom: 100%;
}

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

.product-info {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-info h3 {
  color: var(--forest-dark);
  margin-bottom: 10px;
  font-size: 1.3rem;
  line-height: 1.4;
  word-wrap: break-word;
}

.product-desc {
  color: var(--forest-medium);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 12px;
  flex-grow: 1;
  overflow: hidden;
  display: -webkit-box;
  line-clamp: 3;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.product-price {
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.price-combo {
  display: flex;
  align-items: center;
  font-weight: 600;
  font-size: 1.1rem;
  gap: 8px;
  white-space: nowrap;
}

.price-usd {
  color: var(--forest-dark);
}

.price-ngn {
  color: var(--accent);
  font-weight: bold;
}

.price-sep {
  color: var(--earth-light);
  font-size: 1.2rem;
}

.loading-state {
  text-align: center;
  padding: 40px;
  color: var(--forest-medium);
  font-size: 1.1rem;
}

/* Pagination */
.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 50px;
}

.pagination-container button {
  background-color: var(--forest-medium);
  color: var(--white);
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pagination-container button:disabled {
  background-color: var(--earth-light);
  cursor: not-allowed;
  opacity: 0.6;
}

.pagination-container button:hover:not(:disabled) {
  background-color: var(--forest-dark);
}

.page-info {
  color: var(--forest-medium);
  font-weight: 500;
}

/* Product Modal */
.product-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1005;
}

.product-modal[style*="display: block"] {
  touch-action: manipulation;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
}

.modal-content {
  position: relative;
  max-width: 900px;
  max-height: 90vh;
  background-color: var(--white);
  border-radius: 15px;
  overflow: hidden;
  margin: 20px auto;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
  overflow-y: auto;
  max-height: calc(90vh - 40px); /* Adjust based on header/footer */
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.modal-body::-webkit-scrollbar {
  display: none;
}

@media (min-width: 768px) {
  .modal-body {
    flex-direction: row;
    overflow-y: visible;
    max-height: none;
  }

  .modal-info {
    flex: 1;
  }

  .modal-image {
    height: 300px;
    width: 40%;
  }
}

/* Prevent zoom on iOS inputs */
#quantity {
  font-size: 16px;
}

.modal-image {
  height: 250px;
  border-radius: 10px;
  overflow: hidden;
}

.modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-info {
  flex: 1;
}

.modal-info h2 {
  color: var(--forest-dark);
  margin-bottom: 10px;
}

.modal-price {
  color: var(--accent);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.modal-section {
  margin-bottom: 15px;
}

.modal-section h4 {
  color: var(--forest-dark);
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.modal-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.modal-section ul li {
  background: var(--cream);
  padding: 6px 10px;
  border-radius: 5px;
  margin-bottom: 5px;
  font-size: 0.95rem;
  display: inline-block;
  margin-right: 5px;
}

.quantity-selector {
  margin: 20px 0;
}

.quantity-selector label {
  display: block;
  margin-bottom: 5px;
  color: var(--forest-medium);
}

#quantity {
  width: 80px;
  padding: 8px;
  border: 1px solid var(--earth-light);
  border-radius: 5px;
  font-size: 1rem;
}

#whatsappOrderBtn {
  width: 100%;
  padding: 15px;
  font-size: 1.1rem;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-modal:hover {
  background: rgba(0, 0, 0, 0.8);
}
