:root {
  --primary: #2E7D32;
  --secondary: #4CAF50;
  --accent: #8BC34A;
  --light: #E8F5E9;
  --dark: #1B5E20;
}

html {
  height: 100%;
  overflow: auto;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-color: var(--light);
  color: var(--dark);
  line-height: 1.6;
}

main { flex: 1 0 auto; }

footer {
  flex-shrink: 0;
  width: 100%;
  background: var(--dark);
  color: white;
  padding: 60px 0 30px;
  margin-top: auto;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Noto Sans', sans-serif;
}

html, body {
  overflow-y: auto;
  scrollbar-width: auto;
  -ms-overflow-style: auto;
}

::-webkit-scrollbar { width: 10px; display: block; }
::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 10px; }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--secondary); }

.top-header {
  background: var(--dark);
  color: white;
  padding: 15px 0;
}

.top-header ul { list-style: none; margin: 0; padding: 0; }
.top-header ul li { display: flex; align-items: center; }
.top-header .icon { font-size: 20px; margin-right: 15px; color: var(--accent); }
.top-header .content { line-height: 1.3; }
.top-header .content span { display: block; font-size: 12px; opacity: 0.8; }
.top-header .content a { color: white; text-decoration: none; font-weight: 500; }
.top-header .content a:hover { color: var(--accent); }

.navbar {
  background: white;
  padding: 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.navbar-header { display: flex; align-items: center; }
.navbar-toggle {
  display: none; background: none; border: none; font-size: 24px; color: var(--primary); cursor: pointer;
}

.dropdown { position: relative; display: inline-block; }
.dropdown-menu {
  display: none; position: absolute; background: white; min-width: 200px; box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  border-radius: 4px; padding: 10px 0; z-index: 1000;
}
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a { display: block; padding: 8px 20px; color: var(--dark); text-decoration: none; }
.dropdown-menu a:hover { background: var(--light); color: var(--primary); }

.attr-right { display: flex; align-items: center; }

.opening-hours { padding: 0 20px; border-left: 1px solid #eee; }
.opening-hours .info p { margin: 0; font-size: 12px; color: var(--dark); opacity: 0.8; }
.opening-hours .info h5 { margin: 0; color: var(--primary); font-weight: 600; }

p, .container, .advantage-card p, .lead, .footer-item p, .contact-form-card p { text-align: justify !important; }
.footer-item ul { text-align: left; }

.gallery-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px; margin: 0 auto; max-width: 1400px; padding: 15px;
}
.gallery-item {
  position: relative; width: 100%; padding-bottom: 100%; overflow: hidden;
  border-radius: 10px; box-shadow: 0 3px 15px rgba(0,0,0,0.1); transition: transform 0.3s ease; cursor: pointer;
}
.gallery-item:hover { transform: scale(1.02); }
.gallery-item img {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease;
}

.lightbox {
  display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.9); z-index: 1100; padding: 20px;
}
.lightbox.active { display: flex; justify-content: center; align-items: center; }
.lightbox img { max-width: 90%; max-height: 90vh; object-fit: contain; }
.lightbox-close {
  position: absolute; top: 20px; right: 20px; color: white; font-size: 30px; cursor: pointer; z-index: 1101;
}
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%); color: white; font-size: 30px;
  cursor: pointer; padding: 20px; z-index: 1101;
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; padding: 10px; }
}

@media (max-width: 576px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.3rem; }
  p { font-size: 0.9rem; }
  .section-title { font-size: 1.5rem; }
}

@media (max-width: 768px) {
  .top-header { padding: 10px 0; }
  .top-header .content a { font-size: 14px; }
  .top-header .col-xl-4 { margin-bottom: 10px; text-align: center; }
  .top-header ul li { justify-content: center; }
}

@media (max-width: 576px) {
  .hero { height: 60vh; }
  .hero-content { padding: 20px; }
}

@media (max-width: 768px) {
  .advantage-card { margin-bottom: 20px; }
  .section { padding: 40px 0; }
  .feature-box { margin-top: 0; padding: 20px; }
}

@media (max-width: 576px) {
  .contact-form-card { padding: 15px; }
  .form-control, .form-select { font-size: 14px; }
  .btn-theme { padding: 10px 20px; font-size: 14px; }
}

@media (max-width: 576px) {
  .client-carousel .swiper-slide { height: 80px; }
  .client-carousel .swiper-slide img { max-height: 60px; }
}

@media (max-width: 768px) { .video-container { margin: 0 15px; } }

@media (max-width: 768px) { .map-container { height: 300px; } }

@media (max-width: 991px) {
  .navbar-collapse {
    position: fixed; top: 0; left: -100%; height: 100vh; width: 250px; background: white;
    z-index: 1000; padding: 20px; transition: left 0.3s ease;
  }
  .navbar-collapse.show { left: 0; }
  .nav-link { padding: 10px 15px; }
}

@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item { margin-bottom: 15px; }
}

@media (max-width: 768px) {
  .testimonials-one__single {
    height: 100%; min-height: 400px; margin: 10px;
  }
  .testimonials-one__content {
    display: flex; flex-direction: column; justify-content: space-between;
    height: calc(100% - 120px);
  }
  .testimonials-one__image { width: 80px; height: 80px; margin-bottom: 15px; }
  .testimonials-one__content p {
    flex-grow: 1; font-size: 14px; line-height: 1.6; margin-bottom: 15px;
  }
  .navbar-collapse { max-height: 100vh; overflow-y: auto; }
  .section { padding: 40px 0; }
  .container { padding-left: 15px; padding-right: 15px; }
  .gallery-grid { grid-template-columns: 1fr; gap: 15px; }
  .contact-form-card { padding: 20px; }
  .form-control, .form-select { font-size: 16px; padding: 10px; }
  .hero { height: 60vh; }
  .client-carousel .swiper-slide img { max-height: 50px; }
  footer { padding: 40px 0 20px; }
  .footer-item { margin-bottom: 30px; }
  .testimonials-swiper { padding: 0 15px; }
}

@media (max-width: 576px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
  .section-title { font-size: 1.5rem; margin-bottom: 20px; }
  .advantage-card { padding: 20px; }
  .whatsapp-float { width: 50px; height: 50px; right: 20px; bottom: 20px; }
  .whatsapp-float i { font-size: 30px; }
}

.main-header {
  background: white; padding: 20px 0; box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: sticky; top: 0; z-index: 100;
}

.hero { position: relative; height: 80vh; overflow: hidden; }
.hero-content {
  position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
}

.feature-box {
  background: white; border-radius: 8px; padding: 40px; margin-top: -50px; position: relative; z-index: 2;
  box-shadow: 0 5px 30px rgba(0,0,0,0.1); display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px;
}

.section { padding: 60px 0; }

.section-title {
  position: relative; padding-bottom: 20px; margin-bottom: 30px; text-align: center !important; text-transform: uppercase;
}
.section-title:after {
  content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 80px; height: 3px; background: var(--accent);
}

.advantage-card {
  background: white; padding: 30px; border-radius: 15px; margin-bottom: 30px;
  box-shadow: 0 3px 15px rgba(0,0,0,0.1); transition: all 0.3s ease; height: 100%; text-align: justify;
}
.advantage-card:hover { transform: translateY(-10px); box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.advantage-card h4 { color: var(--primary); margin-bottom: 15px; text-align: center; }

.btn-theme {
  background: var(--accent); color: white; padding: 15px 40px; border-radius: 30px; font-weight: bold; text-transform: uppercase; letter-spacing: 1px;
  display: block; margin: 0 auto; text-align: center; transition: all 0.3s ease; text-decoration: none;
}
.btn-theme:hover {
  background: var(--primary); color: white; transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.footer-item p { text-align: justify !important; }
.footer-item ul { text-align: left; }

footer { background: var(--dark); color: white; padding: 60px 0 30px; }

.footer-bottom { padding-top: 30px; margin-top: 30px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.footer-bottom ul { list-style: none; margin: 0; padding: 0; }
.footer-bottom ul li { display: inline-block; margin-left: 20px; }
.footer-bottom a { color: white; text-decoration: none; }
.footer-bottom a:hover { color: var(--accent); }

.nav-link {
  text-transform: uppercase; color: #1b5e20; padding: 10px 15px; transition: color 0.3s ease; text-decoration: none;
}
.nav-link:hover, .nav-link:focus, .nav-link.active { color: #8bc34a; background-color: transparent; }

.navbar-nav { display: flex; align-items: center; text-align: center; }

.default-padding { padding: 80px 0; }
.align-center { align-items: center; }
.lead { font-size: 1.2rem; line-height: 1.8; color: var(--dark); opacity: 0.9; }

.icon { transition: all 0.3s ease; }
.advantage-card:hover .icon { transform: scale(1.1); }

.h-100 { height: 100%; }
.g-4 { --bs-gutter-x: 1.5rem; --bs-gutter-y: 1.5rem; }

.benefit-illustration { width: 100%; max-width: 300px; margin: 0 auto 30px; }
.benefit-illustration svg { width: 100%; height: auto; }

.animate-on-scroll { opacity: 0; transform: translateY(20px); transition: all 0.6s ease-out; }
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }

.contact-section { position: relative; overflow: hidden; }
.contact-section::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: url('path-to-pattern.svg') repeat; opacity: 0.1; z-index: 0;
}

.icon-circle {
  width: 50px; height: 50px; background: var(--accent); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: white; flex-shrink: 0;
}

.contact-form-card {
  background: white; padding: 30px; border-radius: 15px; box-shadow: 0 5px 30px rgba(0,0,0,0.1);
}

.contact-form .form-control, .contact-form .form-select {
  padding: 12px; border: 1px solid #e0e0e0; border-radius: 8px; transition: all 0.3s ease; text-align: left;
}
.contact-form .form-control:focus, .contact-form .form-select:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px rgba(139, 195, 74, 0.1);
}
.contact-form label { color: var(--dark); margin-bottom: 8px; font-weight: 500; }
.btn-theme.w-100 { width: 100%; margin-top: 10px; }

.whatsapp-float {
  position: fixed; bottom: 30px; right: 30px; background: #25d366; width: 70px; height: 70px; border-radius: 50%;
  text-align: center; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15); z-index: 1000; display: flex; align-items: center; justify-content: center;
  transition: all 0.3s ease; outline: none !important; border: none !important; text-decoration: none;
}
.whatsapp-float i { color: white; font-size: 40px; }
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2); }
.whatsapp-float:focus { outline: none !important; box-shadow: none !important; }

.navbar-brand { padding: 0; margin: 0; display: flex; align-items: center; }
.navbar-brand img { max-height: 50px; width: auto; transition: transform 0.3s ease; }
.navbar-brand img:hover { transform: scale(1.05); }

.map-container { width: 100%; transition: transform 0.3s ease; border-radius: 0; box-shadow: none; }
.map-container:hover { transform: none; }

.testimonail-common-items {
  background: white; padding: 30px; border-radius: 15px; box-shadow: 0 5px 20px rgba(0,0,0,0.1); margin: 20px; transition: all 0.3s ease;
}
.testimonail-common-items:hover { transform: translateY(-5px); }
.testimonail-common-items p { margin: 20px 0; color: #1b5e20; font-size: 1.1rem; line-height: 1.8; }

.stars { display: flex; gap: 5px; }
.swiper-pagination-bullet-active { background: #1b5e20 !important; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
.nav-link.active { color: #8bc34a !important; }

.about-content { text-align: justify; }
.about-content h3 { font-size: 1.8rem; margin-bottom: 1.5rem; font-weight: 600; }
.about-content h4 { font-size: 1.4rem; margin-bottom: 1rem; font-weight: 500; }
.about-content p { margin-bottom: 1rem; line-height: 1.8; }
.about-content ul li { line-height: 1.8; position: relative; padding-left: 1.5rem; }

.testimonials-one__single {
  background: white; padding: 30px; border-radius: 15px; box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  height: 100%; display: flex; flex-direction: column; margin: 20px; transition: all 0.3s ease;
}
.testimonials-one__image { width: 100px; height: 100px; border-radius: 50%; margin: 0 auto 20px; overflow: hidden; }
.testimonials-one__content { text-align: center; flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; }
.testimonials-one__content p { font-style: italic; color: #666; margin-bottom: 20px; font-size: 16px; line-height: 1.8; }
.testimonials-one__content h3 { color: var(--primary); margin-bottom: 5px; font-size: 20px; }
.testimonials-one__content span { color: var(--accent); font-size: 14px; }
.testimonials-swiper { padding: 20px 0; }

.client-carousel .swiper-slide { height: 70px; padding: 0 1px; }
.client-carousel .swiper-slide img {
  height: 70px; width: auto; object-fit: contain; margin: 0 auto;
}

/* Add 1cm spacing between partner logos */
.partners-swiper .swiper-wrapper {
  gap: 1cm; /* spacing between slides where supported */
}
.partners-swiper .swiper-slide {
  padding-left: 0.5cm;
  padding-right: 0.5cm;
  box-sizing: content-box;
}
.partners-swiper .swiper-slide img {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Lower partner logos by 0.5cm and set 2cm spacing between them */
.partners-swiper .swiper-wrapper {
  gap: 2cm; /* increased spacing between slides to 2cm as requested */
}
.partners-swiper .swiper-slide {
  padding-left: 1cm;  /* adjusted to keep balanced spacing */
  padding-right: 1cm;
  box-sizing: content-box;
}
/* Lower logos by 0.5cm and keep centered */
.partners-swiper .swiper-slide img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-top: 0.5cm; /* lower each logo by 0.5cm */
}

.back-to-top {
  position: fixed; bottom: 100px; right: 30px; width: 50px; height: 50px; background: #1b5e20; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: white; text-decoration: none; opacity: 0; visibility: hidden;
  transition: all 0.3s ease; z-index: 999; border: none; cursor: pointer;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: #4CAF50; transform: translateY(-3px); }

@media (max-width: 576px) {
  .back-to-top { bottom: 80px; width: 40px; height: 40px; }
}

.crm-modal {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  display: none; align-items: center; justify-content: center; z-index: 1100;
}
.crm-modal.active { display: flex; }
.crm-dialog {
  width: 95%; max-width: 720px; background: #fff; border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25); overflow: hidden;
}
.crm-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; background: var(--light); border-bottom: 1px solid #eee;
}
.crm-close {
  background: transparent; border: none; font-size: 24px; line-height: 1; cursor: pointer; color: var(--dark);
}
.crm-body { padding: 16px; }
.crm-list { list-style: none; padding: 0; margin: 0; }
.crm-list li {
  display: flex; align-items: center; gap: 10px; padding: 8px; border: 1px solid #eee; border-radius: 8px; margin-bottom: 8px;
}
.crm-list img { height: 40px; width: auto; object-fit: contain; }
.crm-actions { margin-left: auto; display: flex; gap: 8px; }
.crm-actions button {
  border: 1px solid #ccc; background: #fafafa; padding: 4px 8px; border-radius: 6px; cursor: pointer;
}
.crm-actions button:hover { background: #f0f0f0; }

/* CMS Editor Styles */
.cms-modal {
  position: fixed; inset: 0; display: none; align-items: center; justify-content: center; z-index: 1200;
  background: rgba(0,0,0,0.6);
}
.cms-modal.active { display: flex; }
.cms-panel {
  /* full screen CMS panel */
  width: 100% !important;
  max-width: none !important;
  height: 100vh !important;
  border-radius: 0 !important;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg,#19692a 0%, #1b7a2f 100%);
  color: white;
  box-shadow: none;
  padding: 0;
}
.cms-toolbar {
  display:flex; justify-content:space-between; align-items:center; padding:12px 16px; gap:8px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.cms-toolbar .btn { color: #0b3b12; background: #fff; }
.cms-toolbar #cms-search { padding:6px 10px; border-radius:6px; border: none; width:240px; }
.cms-body { display:flex; flex:1; gap:12px; padding: 16px; box-sizing: border-box; }
.cms-menu {
  width: 220px; background: rgba(255,255,255,0.04); border-radius:8px; padding:12px; color: white;
  overflow:auto;
}
.cms-menu h3 { margin-top:0; color: #fff; }
.cms-menu ul { list-style:none; padding:0; margin:0 0 12px 0; display:flex; flex-direction:column; gap:8px; }
.cms-menu li button { width:100%; text-align:left; background: rgba(255,255,255,0.02); color: white; border:none; padding:8px; border-radius:6px; }
.cms-menu .cms-blocks button { display:block; margin-bottom:8px; width:100%; color: #ffffff; background: var(--primary); border-radius:6px; }
.cms-canvas {
  flex:1; background: rgba(255,255,255,0.02); border-radius:8px; padding:16px; overflow:auto; color: #fff;
  min-height: 60vh;
}
.cms-properties {
  width: 320px; background: rgba(255,255,255,0.03); border-radius:8px; padding:12px; color: white; overflow:auto;
}
.cms-card { border: 1px solid rgba(255,255,255,0.06); border-radius:8px; margin-bottom:16px; background: rgba(0,0,0,0.06); }
.cms-card-header { display:flex; align-items:center; justify-content:space-between; padding:8px 12px; border-bottom:1px solid rgba(255,255,255,0.03); }
.cms-card-body { padding:12px; }
.cms-editable { outline: 2px dashed rgba(255,255,255,0.08); padding:4px; border-radius:4px; }
.cms-edit-image { position: relative; display:block; width:100%; background:#fff; color:#000; border-radius:6px; overflow:hidden; }
.cms-edit-image img { width:100%; display:block; object-fit:cover; height:200px; }
.cms-img-toolbar { position:absolute; top:8px; right:8px; display:flex; gap:6px; }
.cms-img-toolbar .btn { background: #ffffff !important; color: var(--primary) !important; border: 1px solid rgba(27,94,32,0.12) !important; padding: 6px 8px !important; font-size: 12px !important; box-shadow: 0 2px 8px rgba(27,94,32,0.04); border-radius: 6px !important; }
.cms-img-toolbar .btn:hover, .cms-img-toolbar .btn:focus { background: rgba(27,94,32,0.08) !important; color: var(--primary) !important; transform: translateY(-1px); }
.cms-img-toolbar .btn i, .cms-img-toolbar .btn svg { color: var(--primary) !important; }
.cms-properties label { font-weight:600; font-size: 13px; display:block; margin-top:8px; }
.cms-properties input, .cms-properties textarea, .cms-properties select { width:100%; padding:8px; border-radius:6px; border:none; }
.cms-properties .btn { margin-top:10px; }

/* CMS Editor Styles */
.cms-menu, .cms-menu * {
  color: #ffffff !important;
}
/* Ensure cms-menu buttons explicitly use white text */
.cms-menu button, .cms-menu .cms-section-btn {
  color: #ffffff !important;
}

/* New: hover / active styles for CMS menu items - white background with green icon/text */
.cms-menu li button {
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}
.cms-menu li button:hover,
.cms-menu li button:focus,
.cms-menu li button.active,
.cms-menu .cms-section-btn:hover,
.cms-menu .cms-section-btn:focus,
.cms-menu .cms-section-btn.active {
  background: #ffffff !important;
  color: var(--primary) !important;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

/* Ensure the pseudo-icon before section buttons also turns green on hover/active */
.cms-menu .cms-section-btn::before,
.cms-menu .cms-blocks button::before {
  color: #ffffff; /* default (on dark bg) */
  transition: color 0.18s ease;
}
.cms-menu li button:hover::before,
.cms-menu li button:focus::before,
.cms-menu li button.active::before,
.cms-menu .cms-section-btn:hover::before,
.cms-menu .cms-section-btn:focus::before,
.cms-menu .cms-section-btn.active::before,
.cms-menu .cms-blocks button:hover::before {
  color: var(--primary) !important;
}

/* Make sure icons inside buttons (if using <i>) also change color */
.cms-menu li button i,
.cms-menu .cms-section-btn i {
  color: #ffffff;
  transition: color 0.18s ease;
}
.cms-menu li button:hover i,
.cms-menu li button:focus i,
.cms-menu li button.active i,
.cms-menu .cms-section-btn:hover i,
.cms-menu .cms-section-btn:focus i,
.cms-menu .cms-section-btn.active i {
  color: var(--primary) !important;
}

/* Keep block buttons (Add Text/Image/Card) visible and consistent */
.cms-menu .cms-blocks button {
  background: var(--primary);
  color: #ffffff !important;
  border-radius: 6px;
  transition: transform 0.12s ease;
}
.cms-menu .cms-blocks button:hover {
  transform: translateY(-2px);
}

/* Make inputs/selects/textareas in CMS properties have green text, white background and clear borders */
.cms-properties input,
.cms-properties textarea,
.cms-properties select {
  background: #ffffff !important;
  color: var(--primary) !important;
  border: 1px solid rgba(27,94,32,0.12) !important;
  padding: 8px !important;
  border-radius: 6px !important;
  box-shadow: none !important;
}
/* Ensure placeholder text is slightly muted but still green-tinted */
.cms-properties input::placeholder,
.cms-properties textarea::placeholder {
  color: rgba(46,125,50,0.45) !important;
}
/* Buttons inside CMS properties should remain visible */
.cms-properties .btn {
  color: #fff !important;
  background: var(--primary) !important;
  border: none !important;
}
/* Make CMS font white and icons consistent */
.cms-panel, .cms-panel * { color: white !important; font-family: 'Noto Sans', sans-serif; }
.cms-panel a, .cms-panel button { color: #08340f !important; }

@media (max-width: 991px) {
  .cms-body { flex-direction: column; padding: 12px; gap: 12px; }
  .cms-menu, .cms-properties { width: 100%; border-radius: 8px; }
  .cms-canvas { order: 2; }
}

/* Make CMS canvas cards more "card-like" with icons and spacing for better responsiveness */
.cms-card { display: block; background: rgba(255,255,255,0.06); border-radius: 10px; padding: 0; overflow: hidden; }
.cms-card-header { gap: 12px; padding: 12px 16px; }
.cms-card-header strong { display:flex; align-items:center; gap:8px; }
.cms-card-header strong::before {
  content: "🗂️";
  font-size: 18px;
  display: inline-block;
  transform: translateY(-1px);
}
.cms-card-header strong::before {
  content: "🗂️";
  font-size: 18px;
  display: inline-block;
  transform: translateY(-1px);
}
.cms-card-body { padding: 16px; background: rgba(255,255,255,0.02); color: #08340f; }
.cms-menu .cms-blocks button::before { content: "＋"; margin-right:8px; }
.cms-menu .cms-section-btn::before { content: "📄"; margin-right:8px; }
.cms-img-toolbar .btn { background: rgba(0,0,0,0.06); border: 1px solid rgba(255,255,255,0.06); color: #08340f; }
.cms-toolbar .btn { display:flex; align-items:center; gap:8px; }
.cms-toolbar .btn::before { content: "⚙️"; }

/* When CMS active, remove body scroll */
.cms-modal.active ~ body, body.cms-open { overflow: hidden; height: 100vh; }

/* New: make editable text in the CMS canvas show green text and ensure caret is visible */
.cms-canvas .cms-editable,
.cms-canvas .cms-editable * {
  color: var(--primary) !important;
}

/* Also ensure any plain text inputs/textareas in the canvas area (if present) use green text */
.cms-canvas input,
.cms-canvas textarea,
.cms-canvas select {
  color: var(--primary) !important;
  background: #fff !important;
  border: 1px solid rgba(27,94,32,0.12) !important;
  padding: 8px !important;
  border-radius: 6px !important;
  box-shadow: none !important;
}

/* Ensure CMS panel and canvas are independently scrollable with visible scrollbars */
.cms-panel { overflow: auto !important; -webkit-overflow-scrolling: touch; }
.cms-canvas { overflow: auto !important; -webkit-overflow-scrolling: touch; }

/* Custom scrollbar styling for the CMS area */
.cms-panel::-webkit-scrollbar, .cms-canvas::-webkit-scrollbar { width: 12px; height: 12px; }
.cms-panel::-webkit-scrollbar-track, .cms-canvas::-webkit-scrollbar-track { background: rgba(255,255,255,0.03); border-radius: 10px; }
.cms-panel::-webkit-scrollbar-thumb, .cms-canvas::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 10px; }
.cms-panel::-webkit-scrollbar-thumb:hover, .cms-canvas::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.18); }

/* Ensure specific CMS sections (e.g. 'Cuidado com o Meio Ambiente') show white text/content inside the CMS */
.cms-card.cms-white .cms-card-body,
.cms-card.cms-white .cms-editable,
.cms-card.cms-white .cms-edit-image,
.cms-card.cms-white .cms-card-body * {
  color: #ffffff !important;
}

/* if images inside that section have captions or overlays, keep captions readable */
.cms-card.cms-white .cms-img-toolbar .btn {
  color: var(--primary) !important;
}

.cms-menu .partners-btn {
  color: var(--primary) !important;
  background: rgba(255,255,255,0.06) !important;
  border: 1px solid rgba(27,94,32,0.08) !important;
}
/* ensure the partners button's pseudo-icon is white while its text remains green */
.cms-menu .partners-btn::before { color: #ffffff !important; }

/* Rich text editor toolbar inside CMS properties */
.rich-toolbar {
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  align-items:center;
  background: rgba(255,255,255,0.95);
  padding:6px;
  border-radius:6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.rich-toolbar .rt-btn {
  background: transparent;
  border: 1px solid rgba(27,94,32,0.08);
  padding:6px 8px;
  border-radius:4px;
  cursor:pointer;
  color: #08340f;
  font-weight:600;
}
.rich-toolbar .rt-btn:hover { background: rgba(139,195,74,0.08); transform: translateY(-1px); }
.prop-rich-editor { max-height: 420px; overflow:auto; }

/* ensure the color input and font select are visually consistent inside CMS properties */
.cms-properties #prop-font-size, .cms-properties #prop-color {
  width: auto;
  display: inline-block;
  vertical-align: middle;
  margin-left: 6px;
}

/* Make the "Gerenciar Imagens" CMS card header text green */
.crm-card-manage-images .cms-card-header strong {
  color: #ffffff !important;
}

/* Ensure the header background remains readable when active/hover */
.crm-card-manage-images .cms-card-header {
  background: rgba(255,255,255,0.02);
}

/* If the CMS menu displays a compact submenu label for this card, ensure link/button text is green */
.crm-menu .crm-card-manage-images,
.cms-menu button.crm-card-manage-images {
  color: var(--primary) !important;
}

/* Add rule to style the target select and its options inside the CRM card in CMS canvas */
.crm-in-cms #crm-target,
.crm-in-cms #crm-target option {
  color: var(--primary) !important; /* ensure visible green text for selected value and options where supported */
}

/* Improve contrast for select background and placeholder inside CMS CRM card */
.crm-in-cms #crm-target {
  background: #ffffff !important;
  border: 1px solid rgba(27,94,32,0.12) !important;
  border-radius: 6px;
  padding: 6px 8px;
}

#o-que-oferecemos .advantage-card h4 { color: var(--accent) !important; }
#o-que-oferecemos .advantage-card p,
#o-que-oferecemos .advantage-card .icon { color: var(--primary) !important; }