:root {
  --primary-color: #1a5f2a;
  --secondary-color: #8b4513;
  --accent-color: #d4a853;
}

/* AI Image Placeholder Styles */
ai-img {
  display: block;
  background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
  position: relative;
  overflow: hidden;
}

ai-img::before {
  content: attr(alt);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #6c757d;
  font-size: 12px;
  text-align: center;
  padding: 1rem;
  max-width: 80%;
}

ai-img::after {
  content: '';
  position: absolute;
  top: 10px;
  right: 10px;
  opacity: 0.5;
}

ai-img.rounded-circle {
  border-radius: 50%;
}

ai-img.card-img-top {
  border-radius: 8px 8px 0 0;
}

ai-img.img-fluid {
  max-width: 100%;
  height: auto;
}

/* Promo Bar */
.promo-bar {
  background: linear-gradient(90deg, var(--primary-color), #2d8f42);
}

/* Top Bar */
.top-bar a:hover {
  opacity: 0.8;
}

/* Navbar */
.navbar {
  transition: box-shadow 0.3s ease;
}

.navbar-brand ai-img {
  height: 45px;
  width: 150px;
}

.nav-link {
  font-weight: 500;
  color: #333;
  transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
}

/* Hero Section */
.hero-section {
  min-height: 600px;
}

.hero-section .carousel-item {
  min-height: 600px;
}

.hero-overlay {
  background: linear-gradient(135deg, rgba(26, 95, 42, 0.85), rgba(139, 69, 19, 0.75));
}

/* Stats Section */
.stats-section .stat-item {
  padding: 2rem;
  text-align: center;
}

.stats-section .stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
}

/* Cards */
.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  border-radius: 12px;
  overflow: hidden;
}

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

.card-img-top {
  height: 250px;
  object-fit: cover;
}

.card ai-img.card-img-top {
  height: 250px;
  width: 100%;
}

/* Product Cards */
.product-card .card-body {
  padding: 1.5rem;
}

.product-card .btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.product-card .btn-primary:hover {
  background-color: #14481f;
  border-color: #14481f;
}

/* Author Card */
.author-card {
  border-left: 4px solid var(--primary-color);
  background: #fff;
}

.author-card ai-img {
  width: 150px;
  height: 150px;
  object-fit: cover;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 30px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--primary-color);
}

.timeline-item {
  position: relative;
  padding-bottom: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -35px;
  top: 5px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--primary-color);
  border: 3px solid #fff;
  box-shadow: 0 0 0 3px var(--primary-color);
}

.timeline-year {
  font-weight: 700;
  color: var(--primary-color);
  font-size: 1.2rem;
}

/* Certification Logos */
.cert-logo {
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.cert-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* Testimonials */
.testimonial-card {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 2rem;
  position: relative;
}

.testimonial-card::before {
  content: '"';
  font-size: 4rem;
  color: var(--primary-color);
  opacity: 0.3;
  position: absolute;
  top: -10px;
  left: 20px;
  font-family: Georgia, serif;
}

/* Filter Section */
.filter-section {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 1.5rem;
}

.filter-section .form-select,
.filter-section .form-control {
  border-radius: 8px;
}

/* Blog Cards */
.blog-card {
  height: 100%;
}

.blog-card .card-img-top {
  height: 200px;
}

.blog-card ai-img.card-img-top {
  height: 200px;
}

.blog-meta {
  font-size: 0.875rem;
  color: #6c757d;
}

/* Article Content */
.article-content {
  font-size: 1.1rem;
  line-height: 1.8;
}

.article-content h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #333;
}

.article-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: #444;
}

.article-content ul,
.article-content ol {
  margin-bottom: 1.5rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary-color), #2d8f42);
  color: #fff;
}

.cta-section .btn-light {
  color: var(--primary-color);
  font-weight: 600;
}

/* Form Styles */
.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(26, 95, 42, 0.25);
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: #14481f;
  border-color: #14481f;
}

/* Footer */
footer {
  background: #1a1a1a;
}

footer h5 {
  color: #fff;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

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

footer a:hover {
  color: var(--accent-color) !important;
}

/* Floating Buttons */
.floating-buttons {
  z-index: 1050;
}

.floating-buttons .btn {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#backToTop {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#backToTop.visible {
  opacity: 1;
  visibility: visible;
}

/* Page Banner */
.page-banner {
  background: linear-gradient(135deg, var(--primary-color), #2d8f42);
  padding: 4rem 0;
  color: #fff;
}

.page-banner h1 {
  font-weight: 700;
}

/* Breadcrumb */
.breadcrumb-item a {
  color: var(--primary-color);
  text-decoration: none;
}

.breadcrumb-item a:hover {
  text-decoration: underline;
}

/* Solutions Tabs */
.solution-tabs .nav-link {
  color: #333;
  border: 2px solid #dee2e6;
  border-radius: 8px;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

.solution-tabs .nav-link.active {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
}

/* Sustainability Icons */
.eco-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(26, 95, 42, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.eco-icon i {
  font-size: 2rem;
  color: var(--primary-color);
}

/* Contact Info Cards */
.contact-info-card {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  height: 100%;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.contact-info-card i {
  font-size: 2.5rem;
  color: var(--primary-color);
}

/* Map Placeholder */
.map-placeholder {
  height: 400px;
  background: #e9ecef;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Error Pages */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.error-code {
  font-size: 8rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1;
}

/* Modal Styles */
.modal-header {
  background: var(--primary-color);
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
  .hero-section,
  .hero-section .carousel-item {
    min-height: 450px;
  }

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

  .page-banner {
    padding: 3rem 0;
  }
}

@media (max-width: 767.98px) {
  .hero-section,
  .hero-section .carousel-item {
    min-height: 350px;
  }

  .floating-buttons {
    bottom: 15px;
    right: 15px;
  }

  .floating-buttons .btn {
    width: 45px;
    height: 45px;
  }

  .error-code {
    font-size: 5rem;
  }
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 0.5s ease-in;
}

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

/* Print Styles */
@media print {
  .promo-bar,
  .floating-buttons,
  .navbar,
  footer {
    display: none !important;
  }
}
