/* =========================================
   1. GLOBAL VARIABLES & RESET
   ========================================= */
:root {
  /* Brand Colors */
  --brand-yellow: #ffd966;
  --brand: #1f9d55;        /* Primary Green */
  --brand2: #0b3d2e;       /* Deep Green / Navy */
  --ink: #0f172a;          /* Dark text */
  --muted: #5f6f68;        /* Muted text */
  --card: #ffffff;
  --soft: #f3f8f5;         /* Light green bg */
}

body {
  color: var(--ink);
  background: #fff;
  font-family: system-ui, -apple-system, sans-serif;
}

a {
  text-decoration: none;
}

/* =========================================
   2. TOPBAR & NAVBAR
   ========================================= */
.topbar {
  background: var(--brand2);
  color: #eaf1f7;
  font-size: .92rem;
}
.topbar a {
  color: #eaf1f7;
  opacity: .9;
}
.topbar a:hover {
  opacity: 1;
}

.navbar {
  background: #fff;
}
.navbar .nav-link {
  color: var(--ink);
  font-weight: 600;
  position: relative;
  transition: color 0.3s ease;
}
.navbar .nav-link:hover {
  color: var(--brand2);
}
.navbar .nav-link.active {
  color: var(--brand);
}

/* Header Menu Animation (Underline Slide) */
.navbar .nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 6px; 
  left: 0;
  background-color: var(--brand);
  transition: width 0.3s ease-in-out;
}
.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
  width: 100%;
}

/* Navbar Dropdown (Hover Effect) */
.dropdown-menu {
  border: 1px solid rgba(15,43,61,0.1);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  border-radius: 12px;
  padding: 10px;
}
.dropdown-item {
  border-radius: 8px;
  padding: 8px 16px;
  font-weight: 500;
  color: var(--ink);
  transition: all 0.2s;
}
.dropdown-item:hover {
  background: var(--soft);
  color: var(--brand);
  transform: translateX(5px);
}

/* Desktop: Open Dropdown on Hover */
@media (min-width: 992px) {
  .navbar .dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
    animation: fadeInUp 0.3s ease;
  }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.btn-brand {
  background: var(--brand);
  border-color: var(--brand);
  color: #1b1b1b;
  font-weight: 700;
}
.btn-brand:hover {
  filter: brightness(.95);
}
.btn-outline-brand {
  border: 2px solid rgba(255,255,255,.75);
  color: #fff;
  font-weight: 700;
}
.btn-outline-brand:hover {
  background: rgba(255,255,255,.12);
  color: #fff;
}

/* =========================================
   3. HERO SECTIONS
   ========================================= */

/* HOME Page Hero */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  background: 
    linear-gradient(90deg, rgba(15,43,61,.92) 0%, rgba(15,43,61,.74) 55%, rgba(15,43,61,.35) 100%),
    url('img/New-Carousel-01.jpg') center/cover no-repeat;
  color: #fff;
}
.hero .kicker {
  display: inline-flex; 
  align-items: center; 
  gap: 0.5rem;
  
  /* Exact Match for About/QHSE Style */
  background: rgba(255, 217, 102, 0.2); 
  border: 1px solid rgba(255, 217, 102, 0.4);
  
  padding: 0.4rem 1rem; 
  border-radius: 50rem; /* Fully rounded pill */
  
  font-weight: 700; 
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: #fff; /* Text is White */
}

/* Force the icon inside to be Brand Yellow */
.hero .kicker i {
  color: var(--brand-yellow) !important; 
}
.hero-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(10px);
  border-radius: 18px;
}

/* ABOUT Page Hero */
.hero-about {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: 
    linear-gradient(90deg, rgba(11,61,46,0.98) 0%, rgba(11,61,46,0.92) 50%, rgba(11,61,46,0.4) 100%),
    url('https://images.unsplash.com/photo-1556761175-5973dc0f32e7?q=80&w=1920&auto=format&fit=crop') center/cover no-repeat;
  color: #fff;
}

/* QHSE Page Hero */
.hero-qhse {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  background: 
    linear-gradient(90deg, rgba(11,61,46,0.95) 0%, rgba(11,61,46,0.85) 50%, rgba(11,61,46,0.4) 100%),
    url('https://images.unsplash.com/photo-1535732759880-bbd5c7265e3f?q=80&w=1920&auto=format&fit=crop') center/cover no-repeat;
  color: #fff;
}

/* =========================================
   4. SECTIONS & TYPOGRAPHY
   ========================================= */
.section { padding: 72px 0; }
.section-soft { background: var(--soft); }

.section-header-center {
  text-align: center; max-width: 760px; margin: 0 auto 3rem auto;
}
.section-kicker {
  color: var(--brand); font-weight: 700; font-size: 0.85rem;
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 8px; display: inline-block;
}
.section-title { font-weight: 800; letter-spacing: -.01em; color: var(--ink); }
.lead-muted { color: var(--muted); font-size: 1.15rem; line-height: 1.6; }
.text-white .section-kicker { color: var(--brand-yellow) !important; }

/* =========================================
   5. CARDS & COMPONENTS
   ========================================= */

/* --- Standard Cards --- */
.service-card, .quote-card, .compliance-card, .value-card, .qhse-card {
  background: var(--card);
  border: 1px solid rgba(15,43,61,.08);
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(15,43,61,.06);
  height: 100%; transition: .2s ease;
  padding: 30px; /* Unified padding */
}
.service-card:hover, .quote-card:hover, .compliance-card:hover, .value-card:hover, .qhse-card:hover {
  transform: translateY(-8px);
  border-color: var(--brand);
}

/* Icon Pill (Home Services) */
.icon-pill {
  width: 48px; height: 48px; min-width: 48px; min-height: 48px;
  border-radius: 14px;
  background: rgba(255, 217, 102, 0.35);
  border: 1.5px solid rgba(255, 217, 102, 0.7);
  display: flex; align-items: center; justify-content: center;
}
.icon-pill i { font-size: 22px; color: #111 !important; }

/* Value/QHSE Icons (About/QHSE Pages) */
.value-icon, .qhse-icon {
  width: 60px; height: 60px; background: var(--soft); color: var(--brand2);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 28px; margin-bottom: 24px;
}
.value-card:hover .value-icon, .qhse-card:hover .qhse-icon {
  background: var(--brand); color: #fff;
}

/* --- Project Cards --- */
.project-card {
  border-radius: 18px; overflow: hidden; position: relative;
  min-height: 280px; background: #111; box-shadow: 0 14px 30px rgba(0,0,0,.12);
}
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.project-card:hover img { transform: scale(1.08); }
.project-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.00) 25%, rgba(0,0,0,.72) 100%);
  display: flex; align-items: flex-end; padding: 20px; color: #fff;
}

/* --- CTA Box --- */
.cta {
  background: linear-gradient(90deg, rgba(15,43,61,.92) 0%, rgba(15,43,61,.55) 100%),
    url('https://images.unsplash.com/photo-1581092160607-ee22621dd758?auto=format&fit=crop&w=1920&q=70') center/cover no-repeat;
  color: #fff; border-radius: 22px; padding: 42px; border: 1px solid rgba(255,255,255,.14);
}

/* --- Testimonials --- */
.testimonial-avatar {
  width: 96px; height: 96px; object-fit: cover; border-radius: 50%;
  border: 2px solid rgba(255,217,102,.7); padding: 4px; background: #fff;
}
.quote-mark { font-size: 2rem; color: var(--brand); line-height: 1; }

/* =========================================
   6. GROUP OF COMPANIES (Updated Animation)
   ========================================= */
.section-group { background: #fff; padding: 80px 0; }
.group-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; }

/* Wrapper for the cards to ensure equal height */
.group-grid > div { flex: 1 0 260px; max-width: 350px; width: 100%; }

.g-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 20px;
  padding: 40px 25px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Smooth bouncy transition */
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  overflow: hidden;
}

/* HOVER STATE: Lift & Colored Shadow */
.g-card:hover {
  transform: translateY(-12px);
  border-color: var(--brand);
  /* Greenish glow shadow */
  box-shadow: 0 20px 50px rgba(31, 157, 85, 0.15); 
}

/* LOGO STYLES (Always Colored) */
.g-logo-wrap {
  height: 90px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
}

.g-logo-img {
  max-height: 100%;
  max-width: 160px;
  object-fit: contain;
  
  /* FORCE COLORED (Overrides any cached grayscale) */
  filter: grayscale(0%) !important; 
  opacity: 1 !important; 
  
  transition: transform 0.4s ease, filter 0.4s ease;
}

/* Logo "Pop" on Hover */
.g-card:hover .g-logo-img {
  transform: scale(1.15);
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.1)) !important;
}

/* ICON BOX (The circle with the icon) */
.g-icon-box {
  width: 70px;
  height: 70px;
  background: var(--soft);
  color: var(--brand2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: all 0.4s ease;
}

.g-icon-box i { font-size: 32px; transition: 0.4s; }

/* Icon Animation on Hover: "Jelly Bounce" & Color Change */
.g-card:hover .g-icon-box {
  background: var(--brand-yellow);
  color: #111;
  animation: jelly 0.6s; /* The catchy bounce */
}

@keyframes jelly {
  0% { transform: scale(1, 1); }
  30% { transform: scale(1.25, 0.75); }
  40% { transform: scale(0.75, 1.25); }
  50% { transform: scale(1.15, 0.85); }
  65% { transform: scale(0.95, 1.05); }
  75% { transform: scale(1.05, 0.95); }
  100% { transform: scale(1, 1); }
}

.g-title {
  color: var(--brand2);
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.g-desc {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* =========================================
   7. CUSTOMERS TICKER & FOOTPRINT
   ========================================= */
.section-clients { background: var(--soft); padding: 60px 0; overflow: hidden; }
.logo-slider {
  position: relative; width: 100%; overflow: hidden; display: flex;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.logo-track {
  display: flex; align-items: center; gap: 80px; width: max-content;
  animation: scrollLoop 40s linear infinite; 
}
.client-logo-item { flex: 0 0 auto; width: 150px; display: flex; justify-content: center; align-items: center; }
.client-logo-img {
  max-width: 100%; max-height: 80px; object-fit: contain;
  filter: none; opacity: 1; cursor: default;
}
.client-logo-icon { font-size: 40px; color: var(--brand2); opacity: 1; }
@keyframes scrollLoop { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* --- Footprint Parallax --- */
#footprint {
  position: relative;
  background: linear-gradient(135deg, rgba(11, 61, 46, 0.75) 0%, rgba(15, 23, 42, 0.85) 100%),
    url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?q=80&w=1920&auto=format&fit=crop'); 
  background-position: center; background-size: cover; background-attachment: fixed;
  padding: 100px 0; overflow: hidden;
}
#footprint .section-title { color: #fff; text-shadow: 0 4px 15px rgba(0,0,0,0.8); }
#footprint .lead-muted { color: rgba(255, 255, 255, 0.9) !important; text-shadow: 0 2px 4px rgba(0,0,0,0.8); }

.footprint-reon-grid { max-width: 1000px; margin: 0 auto; }
.footprint-row { display: grid; gap: 48px; justify-content: center; margin-bottom: 48px; }
.footprint-row.two { grid-template-columns: repeat(2, 220px); }
.footprint-row.three { grid-template-columns: repeat(3, 220px); }
@media (max-width: 768px) { .footprint-row.two, .footprint-row.three{ grid-template-columns: 1fr; } }

.footprint-reon-item { text-align: center; padding: 10px; transition: transform 0.3s ease; }
.footprint-reon-item:hover { transform: translateY(-5px); }

.footprint-icon {
  width: 90px; height: 90px; margin: 0 auto 15px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; position: relative;
  background: rgba(0, 0, 0, 0.4); border: 2px solid transparent; 
  transition: all 0.4s ease; overflow: hidden; 
}
.footprint-reon-item:hover .footprint-icon {
  background: rgba(0, 0, 0, 0.6); transform: scale(1.1);
  box-shadow: 0 0 20px rgba(255, 217, 102, 0.4);
  border-color: rgba(255, 217, 102, 0.6);
}
.icon-content {
  font-size: 36px; color: var(--brand-yellow) !important; z-index: 2;
  transition: all 0.4s ease; filter: drop-shadow(0 0 5px rgba(255, 217, 102, 0.5));
}
.footprint-reon-item:hover .icon-content { transform: scale(1.1); filter: drop-shadow(0 0 12px rgba(255, 217, 102, 0.8)); }

.counter { font-size: 2.5rem; font-weight: 800; color: #fff; margin-bottom: 5px; text-shadow: 0 2px 10px rgba(0,0,0,0.5); line-height: 1; }
.label { font-size: 0.9rem; color: rgba(255, 255, 255, 0.85); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-top: 10px; text-shadow: 0 2px 5px rgba(0,0,0,0.8); }

.manifestation-effect {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,217,102,0.8) 0%, rgba(255,217,102,0) 70%);
  opacity: 0; transform: scale(0); transition: all 0.5s ease; z-index: 1;
}
.footprint-reon-item:hover .manifestation-effect { animation: manifestIcon 1s ease-out forwards; }
@keyframes manifestIcon {
  0% { opacity: 0; transform: scale(0); }
  30% { opacity: 0.6; transform: scale(1.2); }
  100% { opacity: 0; transform: scale(1); }
}

/* =========================================
   8. ABOUT & QHSE SPECIFIC
   ========================================= */
/* --- CERTIFICATIONS GRID --- */
.hero-cert-grid {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 25px; margin-top: 40px; padding-top: 40px; border-top: 1px solid rgba(255,255,255,0.15);
}
.hero-cert-item { display: flex; flex-direction: column; align-items: center; text-align: center; width: 100px; cursor: pointer; }
.hero-cert-img {
  width: 90px; height: 90px; object-fit: contain;
  background: #ffffff; padding: 12px; border-radius: 14px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  filter: none; opacity: 1;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
  margin-bottom: 10px;
}
.hero-cert-item:hover .hero-cert-img { transform: translateY(-8px) scale(1.1); box-shadow: 0 10px 25px rgba(255, 217, 102, 0.6); background: #fff; }
.hero-cert-name { font-weight: 700; font-size: 0.75rem; color: rgba(255,255,255,0.8); letter-spacing: 0.05em; transition: color 0.3s, transform 0.3s ease; }
.hero-cert-item:hover .hero-cert-name { color: #fff; transform: translateY(-2px); }

/* --- Story Images --- */
.story-img-wrap {
  position: relative; border-radius: 20px; overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}
.story-img-wrap img { width: 100%; height: auto; display: block; }
.story-decoration {
  position: absolute; top: -20px; right: -20px; width: 100px; height: 100px;
  background: repeating-linear-gradient(45deg, var(--brand-yellow), var(--brand-yellow) 2px, transparent 2px, transparent 10px);
  z-index: -1; border-radius: 12px;
}

/* --- QHSE Components --- */
.zero-harm-section {
  background: var(--brand2); color: #fff; padding: 80px 0; position: relative; overflow: hidden;
}
.zero-harm-section::before {
  content: ""; position: absolute; top:0; left:0; width:100%; height:100%;
  background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgdmlld0JveD0iMCAwIDQwIDQwIiBvcGFjaXR5PSIwLjA1Ij48cGF0aCBmaWxsPSIjZmZmIiBkPSJNMjAgMjBMMCAwSDQwTDIwIDIweiIvPjwvc3ZnPg==');
  opacity: 0.1;
}
.safety-img-wrap {
  position: relative; border-radius: 20px; overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15); height: 100%; min-height: 400px;
}
.safety-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }

.download-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px; border: 1px solid rgba(0,0,0,0.08); border-radius: 12px;
  margin-bottom: 15px; transition: 0.2s; background: #fff;
}
.download-item:hover {
  border-color: var(--brand); transform: translateX(5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.file-icon { font-size: 24px; color: var(--brand); margin-right: 15px; }

/* =========================================
   9. FOOTER
   ========================================= */
footer { background: var(--brand2); color: #dbe6ef; }
footer a { color: #dbe6ef; opacity: .92; display: inline-block; transition: all 0.3s ease; position: relative; }
footer a:hover { opacity: 1; color: #fff !important; transform: translateX(6px); }
footer .d-flex.flex-column a:hover::before { content: '› '; color: var(--brand-yellow); margin-right: 4px; }
.divider { height: 1px; background: rgba(255,255,255,.12); }

/* =========================================
   11. INFINITE SCROLL ECOSYSTEM (Added)
   ========================================= */
.section-ecosystem {
  background: #fff;
  padding-bottom: 80px;
  overflow: hidden;
}

.scroll-container {
  display: flex;
  flex-direction: column;
  gap: 20px; /* Space between the two rows */
  position: relative;
}

/* Gradient Fade on Edges */
.scroll-container::before,
.scroll-container::after {
  content: "";
  position: absolute; top: 0; width: 100px; height: 100%; z-index: 2;
  pointer-events: none;
}
.scroll-container::before { left: 0; background: linear-gradient(to right, #fff, transparent); }
.scroll-container::after { right: 0; background: linear-gradient(to left, #fff, transparent); }

.scroll-track {
  display: flex;
  gap: 20px;
  width: max-content;
  /* Default: Scroll Left */
  animation: scrollLeft 40s linear infinite;
}

.scroll-track.reverse {
  /* Row 2: Scroll Right */
  animation: scrollRight 45s linear infinite;
}

/* Pause on hover for better UX */
.scroll-container:hover .scroll-track {
  animation-play-state: paused;
}

/* The Mini Card */
.eco-card {
  width: 200px;
  height: 100px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.02);
  transition: all 0.3s ease;
  flex-shrink: 0; /* Prevent squishing */
}

.eco-card:hover {
  transform: translateY(-5px);
  border-color: var(--brand-yellow);
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.eco-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(0%) !important; /* Ensure colored */
  opacity: 1 !important;
}

/* Animation Keyframes */
@keyframes scrollLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes scrollRight {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* Update this in style.css */

.logo-slider {
  position: relative; 
  width: 100%; 
  overflow: hidden; 
  
  /* FIX: Stack the two rows vertically */
  display: flex;
  flex-direction: column; 
  gap: 50px; /* Space between Row 1 and Row 2 */
  
  /* Fade effect on edges */
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.logo-track {
  display: flex; 
  align-items: center; 
  gap: 80px; 
  width: max-content;
  animation: scrollLoop 40s linear infinite; 
}

/* Reverse Animation for 2nd Row */
.logo-track.reverse {
  animation: scrollLoopRight 45s linear infinite;
}

@keyframes scrollLoop { 
  0% { transform: translateX(0); } 
  100% { transform: translateX(-50%); } 
}

@keyframes scrollLoopRight {
  0% { transform: translateX(-50%); } 
  100% { transform: translateX(0); } 
}


/* =========================================
   12. SOLAR CHATBOT
   ========================================= */
#solar-chat-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 350px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  z-index: 9999;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  font-family: system-ui, -apple-system, sans-serif;
  
  /* Initial State: Collapsed (Header only visible) */
  height: 60px; 
}

#solar-chat-widget.expanded {
  height: 500px;
}

#chat-header {
  background: var(--brand2); /* Deep Green */
  color: #fff;
  padding: 15px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

#chat-body {
  height: 440px;
  display: flex;
  flex-direction: column;
  background: #f8f9fa;
}

#chat-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Scrollbar styling */
#chat-messages::-webkit-scrollbar { width: 6px; }
#chat-messages::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }

/* Message Bubbles */
.bot-msg, .user-msg {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.5;
  animation: popIn 0.3s ease;
}

.bot-msg {
  align-self: flex-start;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-bottom-left-radius: 2px;
  color: #333;
}

.user-msg {
  align-self: flex-end;
  background: var(--brand); /* Primary Green */
  color: #fff;
  border-bottom-right-radius: 2px;
}

/* Options Area (Buttons) */
#chat-options {
  padding: 15px;
  background: #fff;
  border-top: 1px solid #eee;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 70px; /* Space for buttons */
}

.chat-btn {
  background: #fff;
  border: 1px solid var(--brand);
  color: var(--brand);
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: 0.2s;
  flex: 1 0 auto; /* Grow to fill space */
  text-align: center;
}

.chat-btn:hover {
  background: var(--brand);
  color: #fff;
}

/* Typing Indicator */
.typing {
  font-size: 12px; color: #888; font-style: italic; margin-left: 10px; margin-bottom: 5px;
}

@keyframes popIn {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}