
/* =============================================
   KALAVITHIKA - RESPONSIVE STYLESHEET
   ============================================= */

.oregano-regular {
  font-family: "Oregano", cursive;
  font-weight: 400;
  font-style: normal;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  /* Prevent iOS/Safari from auto-inflating text on orientation change */
  -webkit-text-size-adjust: 100%;
     -moz-text-size-adjust: 100%;
          text-size-adjust: 100%;
}

body {
  background: linear-gradient(to right, #14b8a6, #eab308);
  font-family: Arial, Helvetica, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  line-height: 1.5;
  color: #052e25;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

body.nav-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

/* =============================================
   NAVBAR STYLES
   ============================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: 14px;
  padding: 12px 24px 12px 12px;
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  z-index: 1000;
  flex-wrap: wrap;
  row-gap: 10px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  margin-right: 8px;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.menu-toggle:focus-visible {
  outline: 2px solid #0f5132;
  outline-offset: 2px;
}

.menu-toggle:hover {
  background: rgba(15, 81, 50, 0.08);
}

.menu-toggle .bar {
  display: block;
  width: 24px;
  height: 3px;
  background: #0f5132;
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle .bar + .bar {
  margin-top: 5px;
}

.menu-toggle[aria-expanded="true"] .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #0f5132;
  font-size: 26px;
  font-weight: 700;
  min-width: 0;
  flex-shrink: 1;
  margin-left: 0;
}

.site-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 8px;
}

.site-name {
  display: inline-block;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.nav-links {
  list-style: none;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-left: auto;
}

.nav-links a,
.nav-link {
  text-decoration: none;
  color: #0f5132;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.nav-links a:hover,
.nav-link:hover {
  background: rgba(15, 81, 50, 0.1);
}

.nav-links a:focus-visible,
.nav-link:focus-visible {
  outline: 2px solid #0f5132;
  outline-offset: 2px;
}

.nav-links a.active,
.nav-link.active {
  background: #0f5132;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 6px 12px rgba(15, 81, 50, 0.25);
  position: relative;
}

.nav-links a.active::after,
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 65%;
  height: 4px;
  background: #e8b100;
  border-radius: 999px;
}

.nav-backdrop {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  background: rgba(5, 46, 37, 0.35);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 999;
}

.nav-backdrop.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 50px;
  padding: 74px 50px 96px;
}

.hero-text {
  max-width: 600px;
}

.hero-text h1 {
  line-height: 1.2;
  font-size: 48px;
}

.hero-text p {
  font-size: 18px;
  margin-top: 10px;
}

.hero-image img {
  width: 400px;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

/* Gallery Hero specific styles */
#gallery-hero {
  padding: 74px 20px 24px;
  text-align: center;
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

#gallery-hero h1 {
  font-size: 42px;
  margin-bottom: 0;
  color: black;
}

#gallery-hero p {
  font-size: 18px;
  color: black;
}

/* =============================================
   FEATURED SECTION
   ============================================= */
.featured {
  padding: 60px 5%;
  text-align: center;
  background: rgba(255, 255, 255, 0.5);
}

.featured h2 {
  margin-bottom: 40px;
  font-size: 32px;
  color: #064e3b;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 20px 5%;
  width: min(1200px, 100%);
  margin: 0 auto;
}

.art-item {
  width: 100%;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  align-self: start;
}

.art-link {
  display: block;
}

.art-link:focus-visible {
  outline: 3px solid #0f5132;
  outline-offset: -3px;
}

.art-item img {
  width: 100%;
  aspect-ratio: 1024 / 1005;
  height: auto;
  display: block;
  object-fit: cover;
}

.art-info {
  padding: 15px;
}

.art-info h3,
.art-info h4 {
  font-size: 18px;
  margin-bottom: 8px;
  color: #064e3b;
  font-weight: 600;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.art-info p {
  font-size: 14px;
  color: #666;
}

/* =============================================
   ARTWORK DETAIL PAGE
   ============================================= */
.artwork-page {
  padding-bottom: 88px;
}

.artwork-detail-page {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 100px 20px 40px;
}

.artwork-detail-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 32px;
  align-items: start;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.artwork-detail-image img {
  width: 100%;
  max-height: 72vh;
  object-fit: cover;
  border-radius: 18px;
  display: block;
}

.artwork-detail-content h1,
.artwork-status h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: #064e3b;
  line-height: 1.15;
}

.artwork-eyebrow {
  color: #0f766e;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.artwork-description,
.artwork-status p {
  margin-top: 18px;
  font-size: 1rem;
  color: #1f2937;
}

.artwork-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.artwork-meta-item {
  background: #f8fafc;
  border: 1px solid rgba(15, 81, 50, 0.12);
  border-radius: 16px;
  padding: 16px;
}

.artwork-meta-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: #0f766e;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.artwork-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.artwork-contact-btn {
  background: #0f766e;
}

.artwork-status {
  text-align: center;
  width: 100%;
  padding: 40px 20px;
}

/* =============================================
   CTA SECTION
   ============================================= */
.cta {
  text-align: center;
  padding: 60px 20px;
  background: #f4f4f4;
}

.cta h2 {
  margin-bottom: 20px;
  color: #064e3b;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 25px;
  background: #064e3b;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s;
}

.btn:hover {
  background: #10b981;
}

.btn-secondary {
  background: rgba(6, 78, 59, 0.08);
  color: #064e3b;
  border: 1px solid rgba(6, 78, 59, 0.18);
}

.btn-secondary:hover {
  background: rgba(6, 78, 59, 0.16);
}

.guest-status {
  width: min(760px, 100%);
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(6, 78, 59, 0.12);
  box-shadow: 0 10px 28px rgba(5, 46, 37, 0.08);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.guest-status strong {
  color: #064e3b;
  font-size: 0.98rem;
}

.guest-status span {
  color: #334155;
  font-size: 0.94rem;
}

/* =============================================
   ABOUT SECTION
   ============================================= */
.about-section {
  padding: 74px 5% 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  width: min(1200px, 100%);
  margin: 0 auto;
}

.about-image {
  flex: 0 0 400px;
  max-width: 100%;
}

.about-image img {
  width: 100%;
  max-width: 400px;
  border-radius: 75px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.about-text {
  flex: 1;
  min-width: 0;
}

.about-text h1 {
  font-size: 36px;
  margin-bottom: 20px;
  color: #064e3b;
  text-align: center;
}

.about-text p {
  font-size: 16px;
  line-height: 1.8;
  color: #000000;
}

/* =============================================
   CONTACT SECTION
   ============================================= */
.contact {
  padding: 74px 20px 96px;
  text-align: center;
  width: min(1100px, 100%);
  margin: 0 auto;
}

.contact h1 {
  font-size: 36px;
  margin-bottom: 15px;
  color: #064e3b;
}

.contact p {
  font-size: 18px;
  margin-bottom: 30px;
  color: #333;
  overflow-wrap: anywhere;
}

.contact-phone {
  color: inherit;
  font-weight: 700;
  text-decoration: none;
  font-size: clamp(1.125rem, 2vw, 1.5rem);
}

.contact-phone:hover,
.contact-phone:focus-visible {
  text-decoration: underline;
}

.qr-codes {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.qr-code {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  width: min(100%, 380px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.qr-code h2 {
  font-size: 20px;
  margin-bottom: 15px;
  color: #064e3b;
}

.qr-code img {
  width: min(100%, 350px);
  height: auto;
  object-fit: contain;
}

.qr-code p {
  margin-top: 10px;
  font-size: 14px;
  color: #666;
}

/* =============================================
   LOGIN PAGE
   ============================================= */
.login-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #1d2671, #c33764);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  padding-top: 80px;
}

.login-container {
  background-color: #ffffff;
  padding: 30px 25px;
  width: 100%;
  max-width: 380px;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.login-container h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #333;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  font-size: 14px;
  margin-bottom: 5px;
  color: #555;
}

.form-group input {
  width: 100%;
  padding: 10px;
  font-size: 14px;
  border-radius: 4px;
  border: 1px solid #ccc;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
}

.form-group input:focus {
  outline: none;
  border-color: #1d2671;
}

.login-btn {
  width: 100%;
  padding: 10px;
  background-color: #1d2671;
  border: none;
  border-radius: 4px;
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  margin-top: 10px;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
}

.login-btn:hover {
  background-color: #16205a;
}

.extra-links {
  text-align: center;
  margin-top: 15px;
  font-size: 13px;
}

.extra-links a {
  color: #1d2671;
  text-decoration: none;
}

.extra-links a:hover {
  text-decoration: underline;
}

.admin-notice {
  background: #ffeeba;
  color: #856404;
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 15px;
  text-align: center;
  font-weight: bold;
  font-size: 14px;
}

#loginError {
  min-height: 1.2em;
  margin: 8px 0;
  font-size: 0.95rem;
  color: #c33;
}

/* =============================================
   FOOTER
   ============================================= */
footer {
  position: static;
  width: 100%;
  text-align: center;
  padding: 8px 20px 12px;
  min-height: 44px;
  background: #064e3b;
  color: white;
  font-size: 13px;
  z-index: 900;
  overflow-wrap: anywhere;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

/* =============================================
   RESPONSIVE STYLES - TABLET (max-width: 1024px)
   ============================================= */
@media (max-width: 1024px) {
  /* Navbar adjustments */
  .navbar {
    padding: 10px 15px;
  }

  .logo {
    font-size: 22px;
  }

  .nav-links {
    gap: 15px;
  }

  .nav-links a,
  .nav-link {
    padding: 8px 15px;
    font-size: 14px;
  }

  /* Hero section */
  .hero {
    padding: 74px 4% 96px;
    gap: 30px;
  }

  .hero-text h1 {
    font-size: 36px;
  }

  .hero-text p {
    font-size: 16px;
  }

  .hero-image {
    height: 60vh;
  }

  /* Gallery */
  .gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }

  .art-item {
    width: 100%;
  }

  /* About */
  .about-section {
    padding: 74px 4% 96px;
    gap: 30px;
  }

  .about-image {
    flex: 0 0 350px;
  }

  .about-text h1 {
    font-size: 32px;
  }
}

/* =============================================
   RESPONSIVE STYLES - MOBILE (max-width: 768px)
   ============================================= */
@media (max-width: 768px) {
  /* Navbar - Mobile */
  .navbar {
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 16px;
  }

  .menu-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-right: 0;
    flex: 0 0 auto;
    min-width: 44px;
    min-height: 44px;
    order: 2;
  }

  .logo {
    font-size: 20px;
    flex: 1;
    order: 1;
  }

  .site-name {
    max-width: min(68vw, 240px);
  }

  .site-logo {
    width: 40px;
    height: 40px;
  }

  .nav-links {
    display: none;
    width: 100%;
    margin-top: 8px;
    padding: 10px;
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid rgba(15, 81, 50, 0.12);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
    position: static;
    height: auto;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 8px;
    transform: none;
    transition: none;
    margin-left: 0;
    max-height: calc(100vh - 88px);
    max-height: calc(100dvh - 88px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    order: 3;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a,
  .nav-link {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 15px;
    border: none;
    min-height: 44px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a.active::after,
  .nav-link.active::after {
    display: none;
  }

  .nav-links a.active,
  .nav-link.active {
    box-shadow: none;
  }

  /* Hero section - Mobile */
  .hero {
    flex-direction: column-reverse;
    padding: 74px 20px 96px;
    min-height: auto;
    text-align: center;
    gap: 24px;
  }

  .hero-text {
    padding: 8px 0 0;
  }

  .hero-text h1 {
    font-size: 28px;
  }

  .hero-text p {
    font-size: 15px;
    max-width: 100%;
  }

  .hero-image {
    width: 100%;
    height: clamp(280px, 50vh, 420px);
    max-height: none;
    overflow: hidden;
  }

  /* Featured section - Mobile */
  .featured {
    padding: 40px 20px;
  }

  .featured h2 {
    font-size: 26px;
    margin-bottom: 30px;
  }

  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    padding: 20px;
  }

  .art-item {
    width: 100%;
  }

  .art-item img {
    aspect-ratio: 1024 / 1005;
    height: auto;
  }

  /* CTA section - Mobile */
  .cta {
    padding: 40px 20px;
  }

  .cta h2 {
    font-size: 24px;
  }

  .cta-actions {
    flex-direction: column;
    align-items: center;
  }

  .cta-actions .btn {
    width: min(280px, 100%);
  }

  /* About section - Mobile */
  .about-section {
    padding: 74px 20px 96px;
    flex-direction: column;
    gap: 24px;
  }

  .about-image {
    flex: 0 0 auto;
    width: 100%;
    max-width: 300px;
  }

  .about-image img {
    max-width: 280px;
    border-radius: 50px;
  }

  .about-text {
    width: 100%;
  }

  .about-text h1 {
    font-size: 28px;
  }

  .about-text p {
    font-size: 15px;
    text-align: left;
  }

  /* Contact section - Mobile */
  .contact {
    padding: 74px 20px 96px;
  }

  .contact h1 {
    font-size: 28px;
  }

  .contact p {
    font-size: 16px;
  }

  .qr-codes {
    gap: 20px;
  }

  .qr-code {
    width: 100%;
    max-width: 340px;
  }

  .qr-code img {
    width: min(100%, 220px);
    height: auto;
  }

  /* Login page - Mobile */
  .login-page {
    padding: 100px 15px 20px;
  }

  .login-container {
    padding: 25px 20px;
    max-width: 420px;
  }

  .login-container h2 {
    font-size: 24px;
  }

  /* Gallery page - Mobile */
  #gallery-hero {
    padding: 74px 20px 20px;
    gap: 10px;
  }

  #gallery-hero h1 {
    font-size: 28px;
  }

  #gallery-hero p {
    font-size: 16px;
    color: black;
  }

  #gallery {
    padding: 20px;
  }

  /* Footer - Mobile */
  footer {
    display: flex;
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    padding: 8px 20px 12px;
    text-align: center;
    align-items: flex-end;
    justify-content: center;
    min-height: 44px;
  }

  .chatbot-button {
    bottom: 96px;
  }

  input,
  textarea,
  select,
  button {
    font-size: 16px;
  }
}

/* =============================================
   RESPONSIVE STYLES - SMALL MOBILE (max-width: 480px)
   ============================================= */
@media (max-width: 480px) {
  /* Navbar */
  .navbar {
    padding: 10px 12px;
  }

  .logo {
    font-size: 18px;
    gap: 8px;
  }

  .site-logo {
    width: 36px;
    height: 36px;
  }

  .site-name {
    max-width: 58vw;
  }

  .nav-links {
    padding: 8px;
    max-height: calc(100vh - 82px);
    max-height: calc(100dvh - 82px);
  }

  .nav-links a,
  .nav-link {
    padding: 11px 12px;
    font-size: 14px;
  }

  #gallery-hero {
    padding: 92px 16px 16px;
  }

  /* Hero */
  .hero-text h1 {
    font-size: 24px;
    margin-bottom: 15px;
  }

  .hero-text p {
    font-size: 14px;
  }

  .hero-image {
    height: clamp(260px, 46vh, 360px);
  }

  /* Featured */
  .featured h2 {
    font-size: 22px;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .art-item {
    max-width: 100%;
  }

  .art-info h3 {
    font-size: 16px;
  }

  .art-info p {
    font-size: 13px;
  }

  /* About */
  .about-text h1 {
    font-size: 24px;
  }

  .about-text p {
    font-size: 14px;
  }

  /* Contact */
  .contact h1 {
    font-size: 24px;
  }

  .qr-code h2 {
    font-size: 18px;
  }

  /* CTA */
  .cta h2 {
    font-size: 20px;
  }

  .btn {
    padding: 10px 20px;
    font-size: 14px;
  }

}

@media (max-width: 360px) {
  .navbar {
    padding: 8px 10px;
    gap: 8px;
  }

  .logo {
    font-size: 16px;
  }

  .nav-links {
    padding: 6px;
  }

  .nav-links a,
  .nav-link {
    padding: 10px;
    font-size: 13px;
  }
}

/* =============================================
   TOP BAR
   ============================================= */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 54px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  background: #ffffff;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.top-bar .site-name {
  font-size: 22px;
  font-weight: 700;
  color: #0f5132;
  cursor: pointer;
}

/* =============================================
   BOTTOM NAV
   ============================================= */
/* =============================================
   CHATBOT STYLES
   ============================================= */
.chatbot-button {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 60px;
  height: 60px;
  background: #064e3b;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  z-index: 1000;
  transition: background 0.3s ease, transform 0.2s ease;
  font-size: 13px;
  font-weight: 700;
  overflow: hidden;
}

.chatbot-button:hover {
  background: #10b981;
  transform: scale(1.05);
}

.chatbot-button svg {
  width: 28px;
  height: 28px;
}

.chatbot-button-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.chatbot-window {
  position: fixed;
  bottom: 92px;
  right: 20px;
  width: 350px;
  max-width: 90vw;
  height: 450px;
  max-height: 80vh;
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chatbot-window.is-open {
  display: flex;
}

.chatbot-header {
  background: #064e3b;
  color: white;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
}

.chatbot-close {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.chatbot-close:hover {
  opacity: 0.8;
}

.chatbot-messages {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #f5f5f5;
}

.chatbot-message {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 15px;
  font-size: 14px;
  line-height: 1.4;
  word-wrap: break-word;
}

.chatbot-message.user {
  align-self: flex-end;
  background: #064e3b;
  color: white;
  border-bottom-right-radius: 5px;
}

.chatbot-message.bot {
  align-self: flex-start;
  background: #e5e7eb;
  color: #333;
  border-bottom-left-radius: 5px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.chatbot-message-avatar {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 50%;
  object-fit: cover;
  background: white;
}

.chatbot-message-text {
  min-width: 0;
}

.chatbot-message.bot a {
  color: #064e3b;
  font-weight: 600;
  text-decoration: underline;
}

.chatbot-message.bot a:hover {
  color: #10b981;
}

.suggested-questions {
  padding: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid #e5e7eb;
  background: white;
}

.suggested-btn {
  background: #10b981;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.3s;
}

.suggested-btn:hover {
  background: #059669;
}

.chatbot-input-area {
  display: flex;
  padding: 10px;
  gap: 10px;
  border-top: 1px solid #e5e7eb;
  background: white;
}

#chatbot-input {
  flex: 1;
  padding: 10px;
  border: 1px solid #d1d5db;
  border-radius: 25px;
  outline: none;
  font-size: 14px;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
}

#chatbot-input:focus {
  border-color: #064e3b;
}

.chatbot-send {
  min-width: 40px;
  width: auto;
  height: 40px;
  padding: 0 12px;
  background: #064e3b;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s;
  color: white;
  font-weight: 700;
}

.chatbot-send:hover {
  background: #10b981;
}

.chatbot-send svg {
  color: white;
}

/* Typing indicator dots */
.chatbot-typing {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 12px 16px;
}

.chatbot-typing-dots {
  display: flex;
  align-items: center;
  gap: 5px;
}

.chatbot-typing-dots span {
  width: 8px;
  height: 8px;
  background: #9ca3af;
  border-radius: 50%;
  animation: typingBounce 1.2s infinite ease-in-out;
}

.chatbot-typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.chatbot-typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-6px); opacity: 1; }
}

/* Mobile responsiveness for chatbot */
@media (max-width: 768px) {
  .chatbot-window {
    right: 12px;
    left: 12px;
    bottom: 84px;
    width: auto;
    height: min(68vh, 520px);
    border-radius: 18px;
  }

  .chatbot-input-area {
    gap: 8px;
  }

  #chatbot-input {
    min-width: 0;
  }
}

@media (max-width: 480px) {
  .chatbot-button {
    right: 15px;
    bottom: 15px;
    width: 50px;
    height: 50px;
  }

  .chatbot-button svg {
    width: 24px;
    height: 24px;
  }

  .chatbot-window {
    bottom: 76px;
    right: 10px;
    left: 10px;
    width: auto;
    height: min(60vh, 500px);
  }
}

@media (min-width: 769px) {
  .chatbot-window {
    width: min(380px, calc(100vw - 40px));
    height: min(520px, calc(100vh - 130px));
  }

  .chatbot-close {
    display: none;
  }
}

/* =============================================
   IMAGE CONTAINER
   ============================================= */
.image-container {
  text-align: left;
  padding: 20px 20px 20px 0;
  width: 100%;
}

.image-container img {
  max-width: 100%;
  height: auto;
  display: inline-block;
}

/* =============================================
   UTILITY CLASSES
   ============================================= */
.hidden {
  display: none;
}

.show {
  display: flex !important;
}
