/* ======= Final Professional Layout - Green Theme ======= */
:root {
  --bs-primary: #28a745;
  --bs-secondary: #6c757d;
  --bs-light: #f8f9fa;
  --bs-dark: #212529;
  --bs-white: #ffffff;
  --edit-outline: 2px dashed var(--bs-primary);
}
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bs-white);
  margin: 0;
  color: #222;
}

/* Navbar */
.navbar {
  background: rgba(255, 255, 255, 0.4) !important;
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: background 0.3s ease-in-out;
}
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.7) !important;
  backdrop-filter: blur(15px) saturate(180%);
  -webkit-backdrop-filter: blur(15px) saturate(180%);
}
.navbar .navbar-brand > img.navbar-logo,
.navbar .navbar-logo,
#site-logo {
  height: 40px !important;
  width: auto !important;
  object-fit: contain !important;
  display: inline-block !important;
  opacity: 1 !important;
  visibility: visible !important;
  position: relative !important;
  z-index: 9999 !important;
  transition: none !important;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  margin-right: 0.5rem !important;
}
.navbar-brand { color: var(--bs-primary) !important; font-weight: bold; font-size: 1.2rem; }
/* Buttons primary */
.btn-primary { background-color: var(--bs-primary); border-color: var(--bs-primary); }
.btn-primary:hover { background-color: #218838; border-color: #1e7e34; }
/* Scroll offset for anchor links */
section[id] { scroll-margin-top: 80px; }

/* ===== Hero / Carousel ===== */
#heroCarousel, #heroCarousel .carousel-inner, #heroCarousel .carousel-item {
  height: 85vh; min-height: 480px;
}
#heroCarousel .carousel-item {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  position: relative;
}
#heroCarousel .carousel-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.35) 100%);
  z-index: 1;
}
#heroCarousel .carousel-caption {
  z-index: 2;
  top: 50%;
  transform: translateY(-50%);
  bottom: auto;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.45);
  padding: 0 1rem;
}
#heroCarousel .carousel-caption h1 { font-size: clamp(1.8rem, 4vw, 3.5rem); }
#heroCarousel .carousel-caption p.lead { font-size: clamp(1rem, 1.6vw, 1.25rem); }
#heroCarousel .carousel-indicators [data-bs-target] {
  width: 12px; height: 12px; border-radius: 50%;
  background-color: rgba(255,255,255,0.6); border: none; transition: background-color .25s ease;
}
#heroCarousel .carousel-indicators .active { background-color: var(--bs-primary); }
.carousel-control-prev-icon, .carousel-control-next-icon { filter: drop-shadow(0 1px 2px rgba(0,0,0,0.35)); }

/* ===== About + Numbers - Home Page ===== */
#about-numbers .about-box {
  min-height:320px;
  background:#f7faf7;
  border-radius:9px;
  border:2px solid #def6de;
  box-shadow: 0 2px 12px rgba(40,167,69,0.07);
}
#about-numbers .about-desc {
  font-size:1.07rem;
  color:#222;
  margin-top:0.5rem;
  white-space:pre-line;
}
/* Responsive adjustment for About + Numbers layout */
@media (max-width: 991px) {
  #about-numbers .col-lg-6 { margin-bottom:24px; }
}

.number-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(40,167,69,0.07);
  padding: 1.2rem 0.7rem;
}
.number-icon { font-size: 2.5rem; color: var(--bs-primary);}
.counter { font-size:2.4rem; font-weight:700; color:var(--bs-primary);}
.number-card p { margin-bottom:0; font-weight:500; color:var(--bs-secondary);}
@media (max-width:991px) {
  .number-card { margin-bottom:16px;}
}

/* ===== Our Products ===== */
#add-product-container { text-align:end;}
.product-card {
  border: 1px solid #e9ecef;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  background: #fff;
}
.product-card:hover { transform: translateY(-5px); box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,0.09);}
.product-mockup {
  width:100%;
  height:200px;
  object-fit:cover;
  border-radius:7px 7px 0 0;
  background:#f6f7fa;
  border-bottom:1px solid #e2e3e8;
}
.product-title { font-weight:600; color:#28a745; margin-top:10px; font-size:1.15rem;}
.product-desc { color:#333; font-size:1rem; margin-bottom:0; white-space:pre-line;}
.card-footer.admin-controls {
  background-color: var(--bs-light);
  display: flex;
  justify-content: space-around;
  padding: 0.75rem;
}

/* ===== Why Us - Certificate images ===== */
#why-us img {
  border: 2px solid var(--bs-primary);
  box-shadow: 0 1px 8px rgba(40,167,69,0.13);
  max-width:220px;
  margin:0 auto;
}
#why-us h6 { color: var(--bs-primary); font-weight:500;}
#why-us .lead { font-size:1.08rem; color:var(--bs-dark); }

/* ===== Feature Cards ("What We Offer") ===== */
.feature-card { background-color: transparent; border: 0;}
.feature-icon { font-size: 2.5rem; color: var(--bs-primary);}
.feature-card h5 { margin-top:0.6rem; }
.feature-card p { margin-bottom:0;}

/* ===== Testimonials ===== */
.testimonial-card {
  background-color: var(--bs-white);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  border: 1px solid #e9ecef;
}
.testimonial-card .lead { font-size:1.03rem; }
.testimonial-card h6 { font-size:1.07rem; }
/* Career Page Table */
.vacancy-table { white-space: pre-line;}
.vacancy-table .description-cell { max-width: 400px; white-space: pre-line;}
.table-hover tbody tr:hover {background: #f3f8f3;}
/* Admin Dashboard */
.admin-dashboard-panel {
  position: fixed;
  top: 0;
  right: -400px;
  width: 350px;
  height: 100%;
  background-color: var(--bs-white);
  box-shadow: -5px 0 15px rgba(0,0,0,0.2);
  transition: right 0.4s ease;
  z-index: 1041;
  display: flex;
  flex-direction: column;
}
.admin-dashboard-panel.is-open { right: 0;}
.dashboard-header, .dashboard-footer { padding: 1rem; border-color: #dee2e6; }
.dashboard-body { padding: 1.5rem; flex-grow: 1;}
[contenteditable="true"] { outline: var(--edit-outline);}
[contenteditable="true"]:focus { box-shadow: 0 0 5px var(--bs-primary);}
.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1050;
  padding: 1rem;
}
.modal-content {
  background-color: var(--bs-white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  width: 100%;
  max-width: 600px;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 10px; right: 20px;
  font-size: 28px; font-weight: bold;
  cursor: pointer;
  border: none; background: transparent;
}

/* WhatsApp Floating Button */
#whatsapp-float {
  position: fixed;
  bottom: 25px; right: 25px;
  width: 60px; height: 60px;
  background-color: #25D366;
  color: #fff;
  border-radius: 50%;
  z-index: 1000;
  display:flex; align-items:center; justify-content:center;
  text-decoration:none; font-size: 30px;
}
.hidden-visually {
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden;
}

/* Footer */
#footer {
  background: var(--bs-dark);
  color: #fff;
  padding: 2rem 0 1rem 0;
  font-size:1rem;
}

/* General spacing & color helpers */
.bg-light {background: #f4f7f4 !important;}
.bg-white {background: #fff !important;}
.text-success { color: var(--bs-primary) !important;}
.text-secondary { color: var(--bs-secondary) !important;}
