/* style.css */

/*--------------------------------------------------------------
# CSS Variables
--------------------------------------------------------------*/
:root {
  /* Analogous Color Scheme (Green-centric for Eco-Minimalism) */
  --primary-color: #6a994e; /* Rich Green */
  --primary-color-darker: #537a3f; /* Darker shade of primary */
  --secondary-color: #a7c957; /* Lighter Yellow-Green */
  --accent-color: #386641;   /* Forest Green */
  --accent-color-light: #8bc34a; /* Lighter accent for subtle highlights */

  /* Neutral & Background Colors */
  --bg-main: #e0e5ec; /* Neumorphic base background - light grey */
  --bg-light: #f0f2f5; /* Slightly lighter for elements or sections */
  --bg-dark-overlay: rgba(0, 0, 0, 0.5); /* Overlay for text on images */
  --bg-dark-overlay-hero: rgba(0, 0, 0, 0.4); /* Specific for hero */

  /* Text Colors */
  --text-dark: #2c3e50;    /* Dark Blue/Grey - High Contrast */
  --text-medium: #555e68;  /* Medium Grey */
  --text-light: #ffffff;   /* White */
  --text-on-primary: #ffffff; /* Text on primary color buttons */

  /* Neumorphic Shadow Colors (for --bg-main) */
  --shadow-light: #ffffff; /* Lighter part of the shadow */
  --shadow-dark-base: #a3b1c6; /* Base for darker shadow */
  --shadow-light-opacity: 0.8;
  --shadow-dark-opacity: 0.6;

  /* Fonts */
  --font-primary: 'Archivo Black', sans-serif;
  --font-secondary: 'Roboto', sans-serif;

  /* UI Elements */
  --border-radius-base: 12px;
  --border-radius-small: 8px;
  --border-radius-large: 20px;
  --transition-speed: 0.3s;
  --transition-easing: ease-in-out;

  /* Spacing */
  --spacing-xs: 0.25rem; /* 4px */
  --spacing-sm: 0.5rem;  /* 8px */
  --spacing-md: 1rem;    /* 16px */
  --spacing-lg: 1.5rem;  /* 24px */
  --spacing-xl: 2rem;    /* 32px */
  --spacing-xxl: 3rem;   /* 48px */

  /* Box Shadows for Neumorphism */
  --neumorphic-shadow:
    5px 5px 10px rgba(var(--shadow-dark-base-rgb), var(--shadow-dark-opacity)),
    -5px -5px 10px rgba(var(--shadow-light-rgb), var(--shadow-light-opacity));
  --neumorphic-shadow-inset:
    inset 5px 5px 10px rgba(var(--shadow-dark-base-rgb), var(--shadow-dark-opacity)),
    inset -5px -5px 10px rgba(var(--shadow-light-rgb), var(--shadow-light-opacity));
  --neumorphic-shadow-hover:
    7px 7px 14px rgba(var(--shadow-dark-base-rgb), calc(var(--shadow-dark-opacity) * 1.2)),
    -7px -7px 14px rgba(var(--shadow-light-rgb), calc(var(--shadow-light-opacity) * 1.2));
   --neumorphic-shadow-pressed:
    inset 3px 3px 6px rgba(var(--shadow-dark-base-rgb), var(--shadow-dark-opacity)),
    inset -3px -3px 6px rgba(var(--shadow-light-rgb), var(--shadow-light-opacity));

  /* Convert hex to RGB for rgba usage */
  --shadow-dark-base-rgb: 163, 177, 198; /* from #a3b1c6 */
  --shadow-light-rgb: 255, 255, 255;   /* from #ffffff */
}

/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-secondary);
  color: var(--text-medium);
  background-color: var(--bg-main);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

.main-container {
  overflow-x: hidden; /* Prevent horizontal scroll from animations */
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  color: var(--text-dark);
  margin-top: 0;
  margin-bottom: var(--spacing-md);
  line-height: 1.3;
  font-weight: 700; /* Archivo Black is already bold */
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1); /* Subtle shadow for headings */
}
h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; } /* Section titles */
h3 { font-size: 1.75rem; }
h4 { font-size: 1.4rem; }
h5 { font-size: 1.2rem; }
h6 { font-size: 1rem; }

@media (max-width: 768px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }
  h3 { font-size: 1.5rem; }
}

p {
  margin-bottom: var(--spacing-md);
  color: var(--text-medium);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-speed) var(--transition-easing);
}
a:hover {
  color: var(--primary-color-darker);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.section-title {
  font-family: var(--font-primary);
  color: var(--text-dark); /* Ensure high contrast for section titles */
  text-align: center;
  margin-bottom: var(--spacing-xl);
  padding-bottom: var(--spacing-sm);
  position: relative;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
  margin: var(--spacing-sm) auto 0;
  border-radius: var(--border-radius-small);
}


/* Utility Classes */
.section-bg-light {
  background-color: var(--bg-light);
}
.animated-element { /* For GSAP scroll animations */
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--transition-easing), transform 0.6s var(--transition-easing);
}
.animated-element.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/*--------------------------------------------------------------
# Neumorphic Base Styles & Components
--------------------------------------------------------------*/
.neumorphic-card {
  background-color: var(--bg-main);
  border-radius: var(--border-radius-large);
  padding: var(--spacing-lg);
  box-shadow: var(--neumorphic-shadow);
  transition: box-shadow var(--transition-speed) var(--transition-easing), transform var(--transition-speed) var(--transition-easing);
}
.neumorphic-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--neumorphic-shadow-hover);
}

.neumorphic-inset {
  background-color: var(--bg-main);
  border-radius: var(--border-radius-base);
  padding: var(--spacing-md);
  box-shadow: var(--neumorphic-shadow-inset);
}

.neumorphic-image {
  border-radius: var(--border-radius-base);
  box-shadow: var(--neumorphic-shadow);
  overflow: hidden; /* Ensure image corners are rounded */
}
.neumorphic-image img {
    border-radius: var(--border-radius-base); /* If image is direct child */
}


/* Global Button Styles */
.btn, button, input[type="submit"], input[type="button"] {
  font-family: var(--font-secondary);
  font-weight: 700;
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--border-radius-base);
  border: none;
  cursor: pointer;
  transition: all var(--transition-speed) var(--transition-easing);
  background-color: var(--bg-main);
  color: var(--text-dark);
  box-shadow: var(--neumorphic-shadow);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
}

.btn:hover, button:hover, input[type="submit"]:hover, input[type="button"]:hover {
  box-shadow: var(--neumorphic-shadow-hover);
  transform: translateY(-2px);
}

.btn:active, button:active, input[type="submit"]:active, input[type="button"]:active,
.btn.active, button.active {
  box-shadow: var(--neumorphic-shadow-pressed);
  transform: translateY(1px);
}

.neumorphic-button-primary, .btn-primary { /* Bootstrap compatibility */
  background-color: var(--primary-color);
  color: var(--text-on-primary);
  box-shadow: 3px 3px 6px #00000033, -3px -3px 6px #ffffff40, inset 1px 1px 2px #ffffff80, inset -1px -1px 2px #00000020; /* More distinct shadow for colored buttons */
}
.neumorphic-button-primary:hover, .btn-primary:hover {
  background-color: var(--primary-color-darker);
  box-shadow: 5px 5px 10px #00000040, -5px -5px 10px #ffffff50, inset 1px 1px 2px #ffffff80, inset -1px -1px 2px #00000020;
}
.neumorphic-button-primary:active, .btn-primary:active {
  background-color: var(--primary-color-darker);
  box-shadow: inset 3px 3px 6px #00000040, inset -3px -3px 6px #ffffff30;
}


.neumorphic-button-secondary, .btn-secondary { /* Bootstrap compatibility */
  background-color: var(--secondary-color);
  color: var(--text-dark); /* Ensure contrast */
   box-shadow: 3px 3px 6px #00000033, -3px -3px 6px #ffffff40, inset 1px 1px 2px #ffffff80, inset -1px -1px 2px #00000020;
}
.neumorphic-button-secondary:hover, .btn-secondary:hover {
  background-color: #96b848; /* Darker secondary */
  box-shadow: 5px 5px 10px #00000040, -5px -5px 10px #ffffff50, inset 1px 1px 2px #ffffff80, inset -1px -1px 2px #00000020;
}
.neumorphic-button-secondary:active, .btn-secondary:active {
  background-color: #96b848; /* Darker secondary */
  box-shadow: inset 3px 3px 6px #00000040, inset -3px -3px 6px #ffffff30;
}


/* Input Fields */
.neumorphic-input, .form-control { /* Bootstrap compatibility */
  background-color: var(--bg-main);
  border: none;
  border-radius: var(--border-radius-base);
  padding: var(--spacing-sm) var(--spacing-md);
  box-shadow: var(--neumorphic-shadow-inset);
  color: var(--text-dark);
  width: 100%;
  font-family: var(--font-secondary);
  font-size: 1rem;
  transition: box-shadow var(--transition-speed) var(--transition-easing);
}
.neumorphic-input::placeholder, .form-control::placeholder {
  color: var(--text-medium);
  opacity: 0.7;
}
.neumorphic-input:focus, .form-control:focus {
  outline: none;
  box-shadow: var(--neumorphic-shadow-inset), 0 0 0 2px var(--primary-color-darker); /* Focus ring */
}

textarea.neumorphic-input, textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

/* Checkbox */
.neumorphic-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  background-color: var(--bg-main);
  border-radius: var(--border-radius-small);
  box-shadow: var(--neumorphic-shadow-inset);
  cursor: pointer;
  position: relative;
  transition: all var(--transition-speed) var(--transition-easing);
  margin-right: var(--spacing-sm);
  vertical-align: middle;
}
.neumorphic-checkbox:checked {
  background-color: var(--primary-color);
  box-shadow: var(--neumorphic-shadow); /* Outset shadow when checked */
}
.neumorphic-checkbox:checked::after {
  content: '\2713'; /* Checkmark */
  font-size: 14px;
  color: var(--text-on-primary);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: bold;
}
.form-check-label {
    color: var(--text-medium);
    cursor: pointer;
}

/*--------------------------------------------------------------
# Header & Navigation
--------------------------------------------------------------*/
.site-header {
  background-color: var(--bg-main);
  box-shadow: 0 2px 5px rgba(var(--shadow-dark-base-rgb), 0.1);
  padding: var(--spacing-sm) 0;
  z-index: 1030; /* Ensure it's above other content */
}
.neumorphic-nav .navbar-brand {
  font-family: var(--font-primary);
  font-size: 1.8rem;
  color: var(--text-dark);
}
.neumorphic-nav .navbar-brand span {
  color: var(--primary-color);
}
.neumorphic-nav .nav-link {
  font-family: var(--font-secondary);
  font-weight: 700;
  color: var(--text-medium);
  padding: var(--spacing-xs) var(--spacing-md);
  margin: 0 var(--spacing-xs);
  border-radius: var(--border-radius-small);
  transition: all var(--transition-speed) var(--transition-easing);
  position: relative;
}
.neumorphic-nav .nav-link:hover,
.neumorphic-nav .nav-link.active {
  color: var(--primary-color);
  background-color: transparent; /* Neumorphic doesn't usually use solid bg for nav links on hover */
}

.neumorphic-nav .nav-link.active::after,
.neumorphic-nav .nav-link:hover::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background-color: var(--primary-color);
    border-radius: 1px;
}


.navbar-toggler.neumorphic-button { /* Specific for toggler */
  border: none;
  padding: var(--spacing-sm);
  box-shadow: var(--neumorphic-shadow);
}
.navbar-toggler.neumorphic-button:focus {
  box-shadow: var(--neumorphic-shadow-pressed);
}
.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='rgba%2844, 62, 80, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (max-width: 991.98px) {
  .navbar-nav {
    margin-top: var(--spacing-md);
    background-color: var(--bg-main);
    padding: var(--spacing-md);
    border-radius: var(--border-radius-base);
    box-shadow: var(--neumorphic-shadow);
  }
  .neumorphic-nav .nav-link {
    margin-bottom: var(--spacing-sm);
    text-align: center;
  }
  .neumorphic-nav .nav-link.active::after,
  .neumorphic-nav .nav-link:hover::after {
      display: none; /* No underline for mobile nav items */
  }
   .neumorphic-nav .nav-link:hover,
    .neumorphic-nav .nav-link.active {
      background-color: rgba(var(--shadow-dark-base-rgb), 0.05); /* Subtle hover for mobile */
    }
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero-section {
  min-height: 85vh; /* Responsive height */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light); /* IMPORTANT: Hero text is white */
  padding: var(--spacing-xl) var(--spacing-md);
}
.hero-section::before { /* For parallax or fixed background illusion */
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-attachment: fixed; /* Parallax effect */
  z-index: -1;
}

.hero-title {
  font-size: 3.5rem; /* Larger for hero */
  font-weight: bold; /* Archivo Black is already bold */
  color: var(--text-light) !important; /* Ensure white text */
  margin-bottom: var(--spacing-md);
  text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}
.hero-subtitle {
  font-size: 1.4rem;
  color: var(--text-light) !important; /* Ensure white text */
  margin-bottom: var(--spacing-lg);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 1px 1px 6px rgba(0,0,0,0.6);
}

@media (max-width: 768px) {
  .hero-section {
    min-height: 70vh;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-subtitle {
    font-size: 1.2rem;
  }
}

/*--------------------------------------------------------------
# Page Header (for sub-pages like about, contact, etc.)
--------------------------------------------------------------*/
.page-header-section {
  padding: var(--spacing-xxl) var(--spacing-md);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--text-light); /* Default, override if needed */
  position: relative;
}
.page-title {
  color: var(--text-light); /* Assuming text on image */
  text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}
.page-header-section .lead {
    color: var(--text-light);
    text-shadow: 1px 1px 6px rgba(0,0,0,0.6);
}

/* Specific padding for privacy and terms pages main content */
.content-section { /* Used on privacy.html, terms.html */
  padding-top: var(--spacing-xxl); /* To avoid overlap with fixed header */
  padding-bottom: var(--spacing-xxl);
}
/* Or apply to main if more general */
body.privacy-page main, body.terms-page main {
    padding-top: 100px; /* Ensure content starts below fixed header */
}


/*--------------------------------------------------------------
# Card Styles (General - for products, features, stories, etc.)
--------------------------------------------------------------*/
.card.neumorphic-card { /* Bootstrap .card + neumorphic */
  display: flex;
  flex-direction: column;
  align-items: center; /* Center content horizontally */
  text-align: center; /* Center text */
  height: 100%; /* For equal height cards in rows */
}

.card .card-image {
  width: 100%;
  display: flex; /* Center image within this container */
  justify-content: center;
  align-items: center;
  overflow: hidden; /* Important for object-fit */
  margin-bottom: var(--spacing-md);
}

/* For product cards, feature icons specifically */
.product-card .card-image {
  height: 220px; /* Fixed height for product images */
  border-radius: var(--border-radius-base) var(--border-radius-base) 0 0; /* Match card top */
}
.product-card .card-image img,
.gallery-img { /* Apply to gallery images too */
  width: 100%;
  height: 100%;
  object-fit: cover; /* Crucial for consistent image display */
}

.feature-icon { /* For feature icons if they are in card-image */
  max-width: 80px; /* Control icon size */
  height: 80px;
  object-fit: contain;
  margin: var(--spacing-sm) auto; /* Center if block */
}

.card-title {
  color: var(--text-dark);
  margin-bottom: var(--spacing-sm);
}
.card-text {
  color: var(--text-medium);
  font-size: 0.95rem;
  flex-grow: 1; /* Allows card body to fill space if cards are equal height */
  margin-bottom: var(--spacing-md);
}
.card .price {
  font-family: var(--font-primary);
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: var(--spacing-md);
}

/*--------------------------------------------------------------
# Features Section
--------------------------------------------------------------*/
/* Uses general .card styles */
#features .card-icon img { /* If you have a specific class for icons */
    width: 60px;
    height: 60px;
    margin-bottom: var(--spacing-md);
    object-fit: contain;
}

/*--------------------------------------------------------------
# Products Section
--------------------------------------------------------------*/
/* Uses general .card and .product-card styles */
.product-card .btn {
    margin-top: auto; /* Push button to bottom if card body flex-grows */
}

/*--------------------------------------------------------------
# Calculator Section
--------------------------------------------------------------*/
#calculator #taxResult {
  background-color: var(--bg-light); /* Slightly different from inset base */
  border-radius: var(--border-radius-base);
  padding: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}
#calculator #taxResult h4 {
  color: var(--accent-color);
}
#calculator #taxResultText {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--text-dark);
}

/* Accordion */
.neumorphic-accordion .accordion-item {
  background-color: var(--bg-main);
  border: none;
  border-radius: var(--border-radius-base);
  margin-bottom: var(--spacing-md);
  box-shadow: var(--neumorphic-shadow);
  overflow: hidden; /* Ensure rounded corners */
}
.neumorphic-accordion .accordion-header {
  margin-bottom: 0;
}
.neumorphic-accordion .accordion-button {
  background-color: var(--bg-main);
  color: var(--text-dark);
  font-weight: 700;
  border-radius: var(--border-radius-base); /* Apply to button too */
  box-shadow: none; /* Remove default Bootstrap shadow */
  padding: var(--spacing-md) var(--spacing-lg);
}
.neumorphic-accordion .accordion-button:not(.collapsed) {
  background-color: var(--bg-light); /* Slightly different when open */
  color: var(--primary-color);
  box-shadow: var(--neumorphic-shadow-inset);
}
.neumorphic-accordion .accordion-button:focus {
  box-shadow: var(--neumorphic-shadow-inset), 0 0 0 2px var(--primary-color-darker);
}
.neumorphic-accordion .accordion-button::after { /* Bootstrap arrow */
  filter: brightness(0.8);
}
.neumorphic-accordion .accordion-body {
  padding: var(--spacing-md) var(--spacing-lg);
  background-color: var(--bg-light); /* Match open button */
  color: var(--text-medium);
  border-top: 1px solid rgba(var(--shadow-dark-base-rgb), 0.1);
}

/*--------------------------------------------------------------
# Sustainability Section
--------------------------------------------------------------*/
#sustainability .list-styled {
  list-style: none;
  padding-left: 0;
}
#sustainability .list-styled li {
  padding-left: var(--spacing-lg);
  position: relative;
  margin-bottom: var(--spacing-sm);
  color: var(--text-medium);
}
#sustainability .list-styled li::before {
  content: "🌿"; /* Eco-themed bullet */
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-size: 1.2em;
}

/*--------------------------------------------------------------
# Customer Stories (Testimonials)
--------------------------------------------------------------*/
/* Uses general .card styles */
.testimonial-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto var(--spacing-md) auto; /* Center image */
  box-shadow: var(--neumorphic-shadow); /* Apply neumorphic shadow to image */
}
#customer-stories .card-text {
  font-style: italic;
  color: var(--text-medium);
}
#customer-stories .card-title { /* For customer name */
  font-family: var(--font-secondary);
  font-weight: bold;
  font-size: 1.1rem;
}


/*--------------------------------------------------------------
# Gallery Section
--------------------------------------------------------------*/
#gallery .neumorphic-card { /* Wrapper for image */
  padding: var(--spacing-xs); /* Small padding around image */
}
.gallery-img {
  border-radius: var(--border-radius-base); /* Rounded corners for image */
  transition: transform var(--transition-speed) var(--transition-easing), box-shadow var(--transition-speed) var(--transition-easing);
  width: 100%;
  height: 250px; /* Consistent height for gallery items */
  object-fit: cover;
}
#gallery .neumorphic-card:hover .gallery-img {
  transform: scale(1.05);
}

/*--------------------------------------------------------------
# Awards Section (Timeline)
--------------------------------------------------------------*/
.timeline {
  list-style: none;
  padding: var(--spacing-lg) 0;
  position: relative;
}
.timeline::before { /* The central line */
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  margin-left: -1.5px;
  background-color: var(--primary-color);
  opacity: 0.3;
  border-radius: 2px;
}
.timeline-item {
  margin-bottom: var(--spacing-xl);
  position: relative;
}
.timeline-item::before, .timeline-item::after {
  content: " ";
  display: table;
}
.timeline-item::after {
  clear: both;
}
.timeline-badge {
  color: var(--text-on-primary);
  width: 50px;
  height: 50px;
  line-height: 50px;
  font-size: 1.4rem;
  text-align: center;
  position: absolute;
  top: 16px;
  left: 50%;
  margin-left: -25px;
  background-color: var(--primary-color);
  z-index: 100;
  border-radius: 50%;
  box-shadow: var(--neumorphic-shadow);
  display: flex;
  align-items: center;
  justify-content: center;
}
.timeline-badge i { /* If using FontAwesome */
    font-size: 1.5em;
}

.timeline-panel {
  width: 45%; /* Each panel takes up less than half */
  float: left;
  border-radius: var(--border-radius-large);
  padding: var(--spacing-lg);
  position: relative;
  background-color: var(--bg-main);
  box-shadow: var(--neumorphic-shadow);
}
/* Arrow pointing to the timeline */
.timeline-panel::before {
  content: " ";
  display: block;
  position: absolute;
  top: 26px;
  right: -15px; /* Points to the right */
  border-top: 15px solid transparent;
  border-left: 15px solid rgba(var(--shadow-dark-base-rgb), 0.2);
  border-right: 0 solid rgba(var(--shadow-dark-base-rgb), 0.2);
  border-bottom: 15px solid transparent;
}
/* Alternate panels on the right */
.timeline-item:nth-child(even) .timeline-panel {
  float: right;
}
.timeline-item:nth-child(even) .timeline-panel::before {
  border-left-width: 0;
  border-right-width: 15px;
  left: -15px;
  right: auto;
}
.timeline-title {
  margin-top: 0;
  color: var(--accent-color);
  font-size: 1.4rem;
}
.timeline-body > p, .timeline-body > ul {
  margin-bottom: 0;
  color: var(--text-medium);
}
.timeline-body > ul {
  padding-left: var(--spacing-lg);
}
.timeline-panel .text-muted {
    font-size: 0.9rem;
    color: var(--text-medium) !important;
}
.timeline-panel .text-muted i { /* For FontAwesome icons if used */
    margin-right: var(--spacing-xs);
}


@media (max-width: 767.98px) {
  .timeline::before {
    left: 25px; /* Adjust line for mobile */
  }
  .timeline-item .timeline-badge {
    left: 0; /* Badge to the left */
    margin-left: 0;
  }
  .timeline-panel {
    width: calc(100% - 60px); /* Panel takes up most width */
    float: right; /* All panels to the right */
    margin-left: 60px;
  }
  .timeline-panel::before { /* Arrow points left for all panels */
    border-left-width: 0;
    border-right-width: 15px;
    left: -15px;
    right: auto;
  }
  .timeline-item:nth-child(even) .timeline-panel {
    float: right;
  }
  .timeline-item:nth-child(even) .timeline-panel::before {
    border-left-width: 0;
    border-right-width: 15px;
    left: -15px;
    right: auto;
  }
}

/*--------------------------------------------------------------
# External Resources & Contact Form Section
--------------------------------------------------------------*/
.external-link {
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}
.external-link:hover {
    color: var(--primary-color-darker);
    text-decoration: underline;
}
#external-resources .card-title {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-sm);
}
#external-resources .card-text {
    font-size: 0.9rem;
}

#contact-details .contact-info-list {
    padding-left: 0;
    list-style: none;
}
#contact-details .contact-info-list li {
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}
#contact-details .contact-info-list strong {
    color: var(--primary-color);
    margin-right: var(--spacing-xs);
}
#contact-details .contact-link {
    color: var(--primary-color);
    font-weight: normal;
}
#contact-details .contact-link:hover {
    color: var(--primary-color-darker);
}

.map-placeholder img {
    margin: 0 auto;
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.site-footer.neumorphic-footer {
  background-color: var(--bg-light); /* Slightly different from main for distinction */
  padding-top: var(--spacing-xxl);
  padding-bottom: var(--spacing-xl);
  color: var(--text-medium);
  box-shadow: inset 0 5px 15px rgba(var(--shadow-dark-base-rgb), 0.1); /* Subtle inset top shadow */
}
.footer-heading {
  font-family: var(--font-primary);
  color: var(--text-dark);
  font-size: 1.3rem;
  margin-bottom: var(--spacing-md);
}
.footer-text {
  font-size: 0.95rem;
  color: var(--text-medium);
}
.footer-links li {
  margin-bottom: var(--spacing-sm);
}
.footer-links a {
  color: var(--text-medium);
  text-decoration: none;
  transition: color var(--transition-speed) var(--transition-easing), padding-left var(--transition-speed) var(--transition-easing);
}
.footer-links a:hover {
  color: var(--primary-color);
  padding-left: var(--spacing-xs);
}
.footer-social-links li {
  display: inline-block; /* For horizontal layout */
  margin-right: var(--spacing-md);
}
.footer-social-links a {
  color: var(--text-medium);
  font-size: 1rem; /* Adjust as needed */
  text-decoration: none;
}
.footer-social-links a:hover {
  color: var(--primary-color);
}

.neumorphic-hr {
  border: 0;
  height: 1px;
  background-image: linear-gradient(to right, rgba(var(--shadow-dark-base-rgb), 0), rgba(var(--shadow-dark-base-rgb), 0.3), rgba(var(--shadow-dark-base-rgb), 0));
  margin: var(--spacing-lg) 0;
}
.copyright-text {
  font-size: 0.9rem;
  color: var(--text-medium);
}

/*--------------------------------------------------------------
# Modals
--------------------------------------------------------------*/
.modal-content.neumorphic-modal-content {
  background-color: var(--bg-main);
  border-radius: var(--border-radius-large);
  border: none;
  box-shadow: var(--neumorphic-shadow);
}
.modal-header {
  border-bottom: 1px solid rgba(var(--shadow-dark-base-rgb), 0.2);
  padding: var(--spacing-md) var(--spacing-lg);
}
.modal-header .modal-title {
  color: var(--text-dark);
  font-family: var(--font-primary);
}
.modal-body {
  padding: var(--spacing-lg);
  color: var(--text-medium);
}
.modal-footer {
  border-top: 1px solid rgba(var(--shadow-dark-base-rgb), 0.2);
  padding: var(--spacing-md) var(--spacing-lg);
}
.modal-footer .btn {
    margin-left: var(--spacing-sm);
}
.btn-close { /* Bootstrap close button */
    filter: invert(30%) sepia(10%) saturate(1000%) hue-rotate(180deg) brightness(90%) contrast(90%); /* Style to match theme */
}

/*--------------------------------------------------------------
# Success Page
--------------------------------------------------------------*/
body.success-page { /* Add this class to body of success.html if needed */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
body.success-page .main-container {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
body.success-page main {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
#success-message .neumorphic-card {
  max-width: 600px;
  margin: var(--spacing-xl) auto;
}
#success-message img {
    margin: 0 auto var(--spacing-lg) auto;
}

/*--------------------------------------------------------------
# Cookie Consent Popup (from HTML, minor adjustments)
--------------------------------------------------------------*/
#cookieConsentPopup {
    font-family: var(--font-secondary);
}
#cookieConsentPopup p {
    color: #f1f1f1;
    margin-bottom: var(--spacing-md);
}
#cookieConsentPopup #acceptCookieButton {
    background-color: var(--primary-color);
    color: var(--text-on-primary);
    border: none;
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: 1rem;
    border-radius: var(--border-radius-small);
    cursor: pointer;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
}
#cookieConsentPopup #acceptCookieButton:hover {
    background-color: var(--primary-color-darker);
}
#cookieConsentPopup a {
    color: #bdbdbd;
}
#cookieConsentPopup a:hover {
    color: var(--text-light);
}

/* Parallax Background Helper */
.parallax-bg {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Smooth transitions for elements that might change, e.g. with JS */
.smooth-transition {
  transition: all var(--transition-speed) var(--transition-easing);
}

/* Read More Link Style */
.read-more-link {
    display: inline-block;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    padding: var(--spacing-xs) 0;
    position: relative;
    transition: color var(--transition-speed) var(--transition-easing);
}
.read-more-link::after {
    content: '→'; /* Arrow */
    margin-left: var(--spacing-xs);
    transition: transform var(--transition-speed) var(--transition-easing);
    display: inline-block;
}
.read-more-link:hover {
    color: var(--primary-color-darker);
}
.read-more-link:hover::after {
    transform: translateX(3px);
}

/* Additional Responsive Adjustments */
@media (max-width: 576px) {
  .section-title {
    font-size: 1.8rem;
  }
  .hero-title {
    font-size: 2rem;
  }
  .hero-subtitle {
    font-size: 1.1rem;
  }
  .btn, button, input[type="submit"], input[type="button"] {
    padding: calc(var(--spacing-sm) * 0.9) calc(var(--spacing-lg) * 0.9);
    font-size: 0.85rem;
  }
  .neumorphic-card {
    padding: var(--spacing-md);
  }
}