/*
 * File: assets/css/style.css
 * Chuc nang: Dinh nghia giao dien chinh cho website GreenNest.
 * Cach hoat dong: Header/footer va cac trang public/admin nap file nay de co
 * mau sac, layout, responsive, card, form va animation thong nhat.
 * Noi dat file: project/assets/css/style.css
 */

:root {
  --green-900: #12382a;
  --green-800: #18523d;
  --green-700: #1f6f4d;
  --green-600: #2d8a5f;
  --green-100: #eaf6ef;
  --mint-50: #f6fbf7;
  --stone-900: #1f2722;
  --stone-700: #59645d;
  --stone-200: #dfe8e2;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(18, 56, 42, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--stone-900);
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: var(--white);
  line-height: 1.6;
}

a {
  color: var(--green-700);
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.page-main {
  padding-top: 0px;
}

.navbar {
  min-height: 76px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
}

.navbar.navbar-scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 20px rgba(18, 56, 42, 0.1);
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: var(--green-700);
}

.brand-text {
  color: var(--green-900);
  font-weight: 800;
}

.nav-link {
  color: var(--stone-700);
  font-weight: 600;
}

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

.btn {
  border-radius: 8px;
  font-weight: 700;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn-success {
  background: linear-gradient(135deg, var(--green-700), var(--green-800));
  border-color: var(--green-700);
  box-shadow: 0 4px 15px rgba(31, 111, 77, 0.3);
}

.btn-success:hover {
  background: linear-gradient(135deg, var(--green-800), var(--green-900));
  border-color: var(--green-800);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(31, 111, 77, 0.4);
}

.btn-outline-success {
  color: var(--green-700);
  border-color: var(--green-700);
  background: transparent;
}

.btn-outline-success:hover {
  color: var(--white);
  background: linear-gradient(135deg, var(--green-700), var(--green-800));
  border-color: var(--green-700);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(31, 111, 77, 0.3);
}

.hero-section {
  padding: 92px 0 70px;
  background: linear-gradient(180deg, var(--mint-50) 0%, var(--white) 100%);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23eaf6ef" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23eaf6ef" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="%23eaf6ef" opacity="0.15"/><circle cx="10" cy="50" r="0.5" fill="%23eaf6ef" opacity="0.15"/><circle cx="90" cy="30" r="0.5" fill="%23eaf6ef" opacity="0.15"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events: none;
}

.hero-section h1,
.page-hero h1 {
  color: var(--green-900);
  font-size: clamp(2.25rem, 5vw, 4.8rem);
  line-height: 1.05;
  font-weight: 850;
  letter-spacing: 0;
}

.hero-lead,
.page-hero p,
.section-heading p {
  color: var(--stone-700);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.hero-stats div {
  padding: 16px;
  border: 1px solid var(--stone-200);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.hero-stats strong {
  display: block;
  color: var(--green-800);
  font-size: 1.5rem;
}

.hero-stats span {
  color: var(--stone-700);
  font-size: 0.9rem;
}

.hero-image-wrap {
  position: relative;
  transition: transform 0.3s ease;
}

.hero-image-wrap:hover {
  transform: scale(1.02);
}

.hero-image,
.rounded-image {
  width: 100%;
  min-height: 420px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-card {
  position: absolute;
  right: 22px;
  bottom: 22px;
  max-width: 280px;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 16px;
  color: var(--green-900);
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(18, 56, 42, 0.15);
  font-weight: 700;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.hero-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(18, 56, 42, 0.2);
}

.hero-card i {
  color: var(--green-700);
}

.section-padding {
  padding: 82px 0;
}

.bg-soft {
  background: var(--mint-50);
}

.section-heading {
  max-width: 720px;
  margin: 0 auto 42px;
}

.section-kicker {
  display: inline-block;
  color: var(--green-700);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-heading h2,
.section-title,
.cta-section h2,
.faq-side h2 {
  color: var(--green-900);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 820;
  line-height: 1.16;
  letter-spacing: 0;
}

.service-card,
.product-card,
.value-card,
.testimonial-card,
.faq-side,
.admin-card,
.admin-stat {
  border: 1px solid var(--stone-200);
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(18, 56, 42, 0.07);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.service-card::before,
.product-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--green-600), var(--green-700));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.service-card:hover::before,
.product-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover,
.product-card:hover,
.value-card:hover,
.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(18, 56, 42, 0.15);
  border-color: var(--green-200);
}

.service-card,
.value-card,
.testimonial-card {
  padding: 28px;
}

.icon-box,
.value-card i {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--green-700), var(--green-800));
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 1.25rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.icon-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--green-800), var(--green-900));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover .icon-box::before {
  opacity: 1;
}

.service-card:hover .icon-box {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 20px rgba(31, 111, 77, 0.3);
}

.service-card h3,
.product-card h3,
.value-card h3 {
  color: var(--green-900);
  font-size: 1.18rem;
  font-weight: 800;
}

.service-card p,
.value-card p,
.product-card p,
.testimonial-card p,
.faq-side p,
.contact-panel p {
  color: var(--stone-700);
}

.product-card {
  overflow: hidden;
}

.product-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.product-body {
  padding: 24px;
}

.product-body span {
  color: var(--green-700);
  font-size: 0.88rem;
  font-weight: 800;
}

.product-body strong {
  color: var(--green-800);
  font-size: 1.08rem;
}

.process-list {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.process-list div {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 14px;
  align-items: start;
}

.process-list span {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: var(--green-700);
  border-radius: 50%;
  font-weight: 800;
}

.process-list p {
  margin: 0;
  color: var(--stone-700);
}

.cta-section {
  padding: 78px 0;
  color: var(--white);
  background: linear-gradient(135deg, var(--green-900), var(--green-700));
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="80" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="70" r="1" fill="rgba(255,255,255,0.05)"/></svg>');
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.cta-button {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.cta-section h2,
.cta-section p {
  color: var(--white);
}

.page-hero {
  padding: 92px 0;
  background:
    linear-gradient(135deg, rgba(18, 56, 42, 0.9), rgba(31, 111, 77, 0.74)),
    url("https://images.unsplash.com/photo-1521334884684-d80222895322?auto=format&fit=crop&w=1600&q=80")
      center/cover;
}

.page-hero h1,
.page-hero p,
.page-hero .section-kicker {
  color: var(--white);
}

.page-hero p {
  max-width: 720px;
}

.custom-accordion .accordion-item {
  border: 1px solid var(--stone-200);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 14px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(18, 56, 42, 0.08);
}

.custom-accordion .accordion-item:hover {
  border-color: var(--green-300);
  box-shadow: 0 8px 24px rgba(18, 56, 42, 0.12);
}

.custom-accordion .accordion-button {
  color: var(--green-900);
  font-weight: 800;
  padding: 20px 24px;
  transition: all 0.3s ease;
  position: relative;
}

.custom-accordion .accordion-button::after {
  transition: all 0.3s ease;
}

.custom-accordion .accordion-button:not(.collapsed) {
  color: var(--green-800);
  background: linear-gradient(135deg, var(--green-100), var(--mint-50));
  box-shadow: inset 0 2px 4px rgba(18, 56, 42, 0.1);
}

.custom-accordion .accordion-button:focus {
  box-shadow: none;
  border-color: var(--green-400);
}

.custom-accordion .accordion-collapse {
  transition: all 0.3s ease;
}

.custom-accordion .accordion-body {
  padding: 0 24px 24px;
  color: var(--stone-700);
  line-height: 1.6;
}

.faq-side {
  padding: 30px;
  background: linear-gradient(135deg, var(--mint-50), var(--white));
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.faq-side::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--green-600), var(--green-700));
}

.info-cta {
  width: 100%;
  margin-top: 20px;
  position: relative;
  overflow: hidden;
}

.info-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.6s;
}

.info-cta:hover::before {
  left: 100%;
}

.footer-list,
.footer-links {
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-list li {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--stone-700);
}

.footer-list i {
  color: var(--green-700);
  margin-top: 5px;
}

.form-control,
.form-select {
  border-radius: 8px;
  border-color: var(--stone-200);
  min-height: 46px;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--green-600);
  box-shadow: 0 0 0 0.2rem rgba(45, 138, 95, 0.16);
}

.testimonial-card i {
  color: var(--green-700);
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.testimonial-card strong,
.testimonial-card span {
  display: block;
}

.testimonial-card span {
  color: var(--stone-700);
}

.site-footer {
  padding: 58px 0 24px;
  color: rgba(255, 255, 255, 0.82);
  background: var(--green-900);
}

.site-footer .brand-mark {
  background: var(--white);
  color: var(--green-800);
}

.site-footer strong,
.footer-title {
  color: var(--white);
}

.footer-title {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.footer-text {
  max-width: 460px;
}

.footer-links a {
  display: inline-block;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 8px;
}

.footer-links a:hover {
  color: var(--white);
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-links a {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--green-900);
  background: var(--white);
  border-radius: 50%;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 24px;
  margin-top: 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.92rem;
}

.faq-chat-widget {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.faq-chat-button {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--green-700), var(--green-900));
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  box-shadow: 0 20px 45px rgba(18, 56, 42, 0.24);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.faq-chat-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--green-800), var(--green-700));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.faq-chat-button:hover::before {
  opacity: 1;
}

.faq-chat-button:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 28px 60px rgba(18, 56, 42, 0.32);
}

.faq-chat-button:active {
  transform: translateY(-2px) scale(0.98);
}

.faq-chat-panel {
  width: min(360px, calc(100vw - 32px));
  max-height: 520px;
  background: var(--white);
  border-radius: 24px;
  box-shadow: 0 28px 65px rgba(18, 56, 42, 0.18);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.faq-chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 18px 16px;
  background: var(--green-700);
  color: var(--white);
}

.faq-chat-header p {
  margin: 6px 0 0;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.9);
}

.faq-chat-close {
  border: none;
  background: transparent;
  color: var(--white);
  font-size: 1.1rem;
  cursor: pointer;
}

.faq-chat-body {
  padding: 16px;
  overflow-y: auto;
  display: grid;
  gap: 12px;
  flex: 1;
  background: var(--mint-50);
}

.faq-chat-message {
  max-width: 80%;
  padding: 14px 16px;
  border-radius: 18px;
  line-height: 1.5;
  font-size: 0.95rem;
  box-shadow: 0 12px 28px rgba(18, 56, 42, 0.08);
  word-break: break-word;
  transition: all 0.3s ease;
  position: relative;
}

.faq-chat-message.typing::after {
  content: "|";
  animation: blink 1s infinite;
  color: var(--green-600);
  font-weight: bold;
}

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

.faq-chat-message.bot-message {
  background: var(--white);
  color: var(--stone-900);
  border-top-left-radius: 4px;
}

.faq-chat-message.user-message {
  justify-self: end;
  background: var(--green-700);
  color: var(--white);
  border-top-right-radius: 4px;
}

.faq-chat-form {
  display: grid;
  grid-template-columns: 1fr 60px;
  gap: 10px;
  padding: 14px 16px 16px;
  background: var(--white);
  border-top: 1px solid var(--stone-200);
}

.faq-chat-form input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid var(--stone-200);
  outline: none;
  font-size: 0.95rem;
  color: var(--stone-900);
}

.faq-chat-form button {
  border: none;
  border-radius: 14px;
  background: var(--green-700);
  color: var(--white);
  font-size: 1.05rem;
  cursor: pointer;
}

.faq-chat-footer {
  padding: 10px 16px 14px;
  font-size: 0.85rem;
  color: var(--stone-700);
  background: var(--white);
  border-top: 1px solid var(--stone-200);
}

@media (max-width: 575px) {
  .faq-chat-widget {
    right: 14px;
    bottom: 14px;
  }

  .faq-chat-panel {
    width: 100%;
    max-height: 100vh;
    border-radius: 18px;
  }
}

.faq-chat-button {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--green-700), var(--green-800));
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 22px 40px rgba(18, 56, 42, 0.2);
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.faq-chat-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 44px rgba(18, 56, 42, 0.26);
}

.faq-chat-button span {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.faq-chat-panel {
  width: min(360px, calc(100vw - 32px));
  max-height: 520px;
  background: var(--white);
  border-radius: 24px;
  box-shadow: 0 28px 65px rgba(18, 56, 42, 0.18);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.faq-chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 18px 16px;
  background: var(--green-700);
  color: var(--white);
}

.faq-chat-header p {
  margin: 6px 0 0;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.9);
}

.faq-chat-close {
  border: none;
  background: transparent;
  color: var(--white);
  font-size: 1.1rem;
  cursor: pointer;
}

.faq-chat-body {
  padding: 16px;
  overflow-y: auto;
  display: grid;
  gap: 12px;
  flex: 1;
  background: var(--mint-50);
}

.faq-chat-message {
  max-width: 80%;
  padding: 12px 14px;
  border-radius: 18px;
  line-height: 1.5;
  font-size: 0.96rem;
  box-shadow: 0 12px 28px rgba(18, 56, 42, 0.08);
}

.faq-chat-message.bot-message {
  margin-left: 0;
  background: var(--white);
  color: var(--stone-900);
  border-top-left-radius: 4px;
}

.faq-chat-message.user-message {
  justify-self: end;
  background: var(--green-700);
  color: var(--white);
  border-top-right-radius: 4px;
}

.faq-chat-form {
  display: grid;
  grid-template-columns: 1fr 60px;
  gap: 8px;
  padding: 14px 16px 16px;
  background: var(--white);
  border-top: 1px solid var(--stone-200);
}

.faq-chat-form input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid var(--stone-200);
  outline: none;
  font-size: 0.95rem;
  color: var(--stone-900);
}

.faq-chat-form button {
  border: none;
  border-radius: 14px;
  background: var(--green-700);
  color: var(--white);
  font-size: 1.05rem;
  cursor: pointer;
}

.faq-chat-footer {
  padding: 10px 16px 14px;
  font-size: 0.85rem;
  color: var(--stone-700);
  background: var(--white);
  border-top: 1px solid var(--stone-200);
}

@media (max-width: 575px) {
  .faq-chat-widget {
    right: 14px;
    bottom: 14px;
  }

  .faq-chat-panel {
    width: 100%;
    max-height: 100vh;
    border-radius: 18px;
  }
}
.admin-body {
  min-height: 100vh;
  background:
    linear-gradient(
      135deg,
      rgba(234, 246, 239, 0.9),
      rgba(255, 255, 255, 0.92)
    ),
    radial-gradient(
      circle at top right,
      rgba(45, 138, 95, 0.14),
      transparent 32%
    );
}

.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 26px 18px;
  color: var(--white);
  background: linear-gradient(180deg, var(--green-900), var(--green-800));
  box-shadow: 18px 0 44px rgba(18, 56, 42, 0.16);
}

.admin-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 10px 22px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--white);
  font-size: 1.08rem;
  font-weight: 850;
}

.admin-logo i {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--green-900);
  background: var(--white);
}

.admin-sidebar a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  color: rgba(255, 255, 255, 0.82);
  border-radius: 10px;
  margin-bottom: 8px;
  font-weight: 750;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.admin-sidebar a i {
  width: 20px;
  text-align: center;
}

.admin-sidebar a.active,
.admin-sidebar a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  transform: translateX(3px);
}

.admin-content {
  min-width: 0;
  padding: 30px;
}

.admin-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 132px;
  padding: 26px 28px;
  margin-bottom: 26px;
  border: 1px solid rgba(31, 111, 77, 0.14);
  border-radius: 16px;
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.96),
      rgba(234, 246, 239, 0.86)
    ),
    linear-gradient(90deg, rgba(31, 111, 77, 0.1), transparent);
  box-shadow: 0 18px 45px rgba(18, 56, 42, 0.1);
}

.admin-heading h1 {
  margin: 0;
  color: var(--green-900);
  font-size: clamp(1.8rem, 3vw, 2.55rem);
  font-weight: 850;
}

.admin-heading p {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--stone-700);
}

.admin-stat {
  padding: 24px;
}

.admin-stat i {
  color: var(--green-700);
  font-size: 1.5rem;
}

.admin-stat span,
.admin-stat strong {
  display: block;
}

.admin-stat strong {
  color: var(--green-900);
  font-size: 2rem;
}

.admin-card {
  padding: 24px;
  margin-bottom: 24px;
}

.admin-card h2 {
  color: var(--green-900);
  font-size: 1.35rem;
  font-weight: 820;
  margin-bottom: 18px;
}

.content-editor-group {
  padding: 18px 0 24px;
  border-top: 1px solid var(--stone-200);
}

.content-editor-group h3 {
  color: var(--green-900);
  font-size: 1.05rem;
  font-weight: 820;
  margin-bottom: 16px;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.admin-subtitle {
  color: var(--stone-700);
  margin: 0;
}

.admin-textarea-large {
  min-height: 520px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.95rem;
  line-height: 1.55;
}

.admin-meta-list {
  display: grid;
  gap: 12px;
}

.admin-meta-list div {
  padding: 14px 16px;
  border: 1px solid var(--stone-200);
  border-radius: 10px;
  background: var(--mint-50);
}

.admin-meta-list span,
.admin-meta-list strong {
  display: block;
}

.admin-meta-list span {
  color: var(--stone-700);
  font-size: 0.9rem;
}

.admin-meta-list strong {
  color: var(--green-900);
  word-break: break-word;
}

@media (max-width: 991px) {
  .hero-section,
  .section-padding {
    padding: 62px 0;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
  }

  .admin-heading,
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 575px) {
  .page-main {
    padding-top: 68px;
  }

  .navbar {
    min-height: 68px;
  }

  .hero-image,
  .rounded-image {
    min-height: 300px;
  }

  .hero-card {
    position: static;
    max-width: none;
    margin-top: 14px;
  }

  .faq-side,
  .service-card,
  .value-card,
  .testimonial-card {
    padding: 22px;
  }
}

/* Modern about and FAQ pages */
:root {
  --green-300: #a8d8bd;
  --green-200: #cfe8d8;
  --amber-500: #d79a2b;
  --sky-700: #2e6f86;
}

.modern-hero {
  padding: 96px 0 34px;
  min-height: 560px;
  display: flex;
  align-items: end;
  position: relative;
  overflow: hidden;
}

.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--green-900);
}

.modern-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(18, 56, 42, 0.08),
    rgba(18, 56, 42, 0.5)
  );
  pointer-events: none;
}

.modern-hero .container {
  position: relative;
  z-index: 1;
}

.about-hero {
  background:
    linear-gradient(135deg, rgba(18, 56, 42, 0.86), rgba(31, 111, 77, 0.62)),
    url("https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=1800&q=80")
      center/cover;
}

.faq-hero {
  background:
    linear-gradient(135deg, rgba(18, 56, 42, 0.88), rgba(46, 111, 134, 0.62)),
    url("https://images.unsplash.com/photo-1463320726281-696a485928c7?auto=format&fit=crop&w=1800&q=80")
      center/cover;
}

.hero-insight-card {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.16);
}

.hero-insight-card i {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border-radius: 12px;
  color: var(--green-900);
  background: var(--white);
}

.hero-insight-card strong,
.hero-insight-card span {
  display: block;
}

.hero-insight-card strong {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.hero-insight-card span {
  color: rgba(255, 255, 255, 0.88);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 48px;
}

.hero-metrics div {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(12px);
}

.hero-metrics strong {
  display: block;
  color: var(--white);
  font-size: clamp(1.45rem, 3vw, 2.25rem);
  line-height: 1;
}

.hero-metrics span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.94rem;
}

.about-image-stack {
  position: relative;
}

.about-image-stack .rounded-image {
  min-height: 520px;
}

.image-note {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  padding: 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 18px 42px rgba(18, 56, 42, 0.16);
}

.image-note strong,
.image-note span {
  display: block;
}

.image-note strong {
  color: var(--green-900);
}

.image-note span {
  color: var(--stone-700);
  font-size: 0.94rem;
}

.about-check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.about-check-grid span {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--stone-200);
  border-radius: 8px;
  background: var(--mint-50);
  color: var(--green-900);
  font-weight: 700;
}

.about-check-grid i {
  color: var(--green-700);
}

.feature-card {
  min-height: 260px;
}

.timeline-list {
  display: grid;
  gap: 16px;
}

.timeline-list article {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--stone-200);
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 12px 28px rgba(18, 56, 42, 0.07);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}

.timeline-list article:hover {
  transform: translateX(6px);
  border-color: var(--green-300);
}

.timeline-list span {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: var(--white);
  background: linear-gradient(135deg, var(--green-700), var(--sky-700));
  font-weight: 850;
}

.timeline-list h3 {
  color: var(--green-900);
  font-size: 1.1rem;
  font-weight: 820;
  margin-bottom: 6px;
}

.timeline-list p {
  margin: 0;
  color: var(--stone-700);
}

.testimonial-section {
  background: linear-gradient(180deg, var(--white), var(--mint-50));
}

.map-section {
  background: var(--white);
  padding-top: 68px;
  overflow-x: hidden;
}

.map-section .container {
  width: min(100%, 1480px);
  max-width: 100%;
  padding-right: 24px;
  padding-left: 24px;
}

.map-layout-row {
  display: grid;
  grid-template-columns: minmax(280px, 390px) minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
  min-width: 0;
}

.map-copy-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 720px;
  padding: 10px 0;
}

.map-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 28px;
}

.map-heading-row .section-title {
  max-width: 760px;
}

.map-heading-row p {
  max-width: 760px;
  margin-bottom: 0;
}

.map-contact-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 12px;
  min-width: 320px;
  margin-top: 24px;
}

.map-contact-list span {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--green-900);
  font-weight: 750;
}

.map-contact-list i {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: var(--green-700);
  background: var(--green-100);
}

.map-embed-wrap {
  min-height: clamp(620px, 74vh, 860px);
  min-width: 0;
  border: 1px solid rgba(31, 111, 77, 0.22);
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 26px 70px rgba(18, 56, 42, 0.16),
    0 0 0 10px rgba(234, 246, 239, 0.9);
  background: linear-gradient(
    135deg,
    rgba(234, 246, 239, 0.92),
    rgba(255, 255, 255, 0.98)
  );
  position: relative;
}

.map-embed-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 18px;
  pointer-events: none;
  z-index: 1;
}

.map-embed-wrap iframe {
  width: 100%;
  height: clamp(620px, 74vh, 860px);
  display: block;
  border: 0;
  pointer-events: auto;
}

/* Strong fallback so the map stays large even if older layout rules are cached above it. */
#greenNestMap .map-embed-wrap {
  width: 100% !important;
  min-height: 720px !important;
  max-width: 100% !important;
}

#greenNestMap .map-embed-wrap iframe {
  width: 100% !important;
  height: 720px !important;
  min-height: 72vh !important;
}

.about-cta .btn-light {
  color: var(--green-900);
  font-weight: 800;
  border-radius: 8px;
}

.faq-search-wrap {
  max-width: 720px;
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  margin-top: 28px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14);
}

.faq-search-wrap i {
  color: var(--green-700);
  text-align: center;
}

.faq-search-wrap input {
  width: 100%;
  min-height: 56px;
  border: none;
  outline: none;
  background: transparent;
  color: var(--stone-900);
  font-size: 1rem;
}

.faq-dashboard {
  position: sticky;
  top: 96px;
}

.faq-prep-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.faq-prep-list div {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  align-items: center;
  color: var(--green-900);
  font-weight: 700;
}

.faq-prep-list i {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: var(--green-700);
  background: var(--green-100);
}

.faq-quick-card {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding: 22px;
  border: 1px solid var(--stone-200);
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 12px 28px rgba(18, 56, 42, 0.07);
}

.faq-quick-card strong {
  color: var(--green-900);
  margin-bottom: 4px;
}

.faq-prompt-chip,
.faq-filter {
  border: 1px solid var(--stone-200);
  border-radius: 999px;
  background: var(--white);
  color: var(--green-900);
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.faq-prompt-chip {
  padding: 10px 14px;
  text-align: left;
}

.faq-prompt-chip:hover,
.faq-filter:hover,
.faq-filter.active {
  color: var(--white);
  border-color: var(--green-700);
  background: var(--green-700);
  transform: translateY(-2px);
}

.faq-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.faq-filter {
  padding: 10px 16px;
}

.faq-accordion-modern .accordion-button {
  display: flex;
  gap: 14px;
  align-items: center;
}

.faq-number {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: var(--green-700);
  background: var(--green-100);
  font-size: 0.86rem;
  font-weight: 850;
}

.faq-accordion-modern .accordion-button:not(.collapsed) .faq-number {
  color: var(--white);
  background: var(--green-700);
}

.faq-empty-state {
  padding: 36px;
  border: 1px dashed var(--green-300);
  border-radius: 12px;
  background: var(--mint-50);
  text-align: center;
  color: var(--stone-700);
}

.faq-empty-state i,
.faq-empty-state strong,
.faq-empty-state span {
  display: block;
}

.faq-empty-state i {
  color: var(--green-700);
  font-size: 2rem;
  margin-bottom: 12px;
}

.faq-empty-state strong {
  color: var(--green-900);
  font-size: 1.1rem;
}

.faq-step-card {
  padding: 28px;
  border: 1px solid var(--stone-200);
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 12px 28px rgba(18, 56, 42, 0.07);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.faq-step-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 42px rgba(18, 56, 42, 0.14);
}

.faq-step-card i {
  width: 50px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: 12px;
  color: var(--white);
  background: linear-gradient(135deg, var(--green-700), var(--sky-700));
}

.faq-step-card h3 {
  color: var(--green-900);
  font-size: 1.15rem;
  font-weight: 820;
}

.faq-step-card p {
  margin: 0;
  color: var(--stone-700);
}

@media (max-width: 991px) {
  .modern-hero {
    min-height: auto;
    padding: 76px 0 34px;
  }

  .hero-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .faq-dashboard {
    position: static;
  }

  .map-layout-row {
    grid-template-columns: 1fr;
  }

  .map-copy-panel {
    min-height: auto;
  }
}

@media (max-width: 575px) {
  .hero-metrics,
  .about-check-grid {
    grid-template-columns: 1fr;
  }

  .hero-insight-card,
  .image-note,
  .timeline-list article,
  .faq-step-card {
    padding: 18px;
  }

  .image-note {
    position: static;
    margin-top: 14px;
  }

  .timeline-list article {
    grid-template-columns: 1fr;
  }

  .faq-search-wrap {
    grid-template-columns: 42px 1fr;
  }

  .map-section .container {
    width: 100%;
    max-width: 100%;
    padding-right: 12px;
    padding-left: 12px;
  }

  .map-heading-row {
    display: grid;
    gap: 18px;
  }

  .map-contact-list {
    justify-content: flex-start;
    min-width: 0;
  }

  .map-embed-wrap {
    min-height: 68vh;
  }

  .map-embed-wrap iframe {
    height: 68vh;
  }
}

.admin-card {
  animation: adminCardIn 0.42s ease both;
}

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

.faq-sort-row {
  cursor: grab;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.faq-sort-row:hover {
  background: var(--mint-50);
}

.faq-sort-row.is-dragging {
  opacity: 0.72;
  transform: scale(0.99);
  box-shadow: 0 18px 38px rgba(18, 56, 42, 0.16);
}

.drag-handle {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  border: 1px solid var(--stone-200);
  border-radius: 8px;
  color: var(--green-700);
  background: var(--white);
  cursor: grab;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.drag-handle:hover {
  color: var(--white);
  border-color: var(--green-700);
  background: var(--green-700);
  transform: translateY(-2px);
}

.sort-save-state {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  margin-top: 14px;
  border-radius: 999px;
  color: var(--green-900);
  background: var(--green-100);
}

.sort-spinner,
.video-progress-ring {
  width: 18px;
  height: 18px;
  border: 3px solid rgba(31, 111, 77, 0.22);
  border-top-color: var(--green-700);
  border-radius: 50%;
  animation: spin 0.82s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.video-upload-card {
  overflow: visible;
}

.video-format-badge {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--green-200);
  border-radius: 999px;
  color: var(--green-900);
  background: var(--green-100);
  font-size: 0.86rem;
  font-weight: 800;
}

.video-upload-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 18px;
}

.video-drop-zone {
  min-height: 240px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 28px;
  border: 1px dashed var(--green-300);
  border-radius: 12px;
  color: var(--green-900);
  background:
    linear-gradient(
      135deg,
      rgba(234, 246, 239, 0.78),
      rgba(255, 255, 255, 0.94)
    ),
    radial-gradient(circle at 20% 20%, rgba(45, 138, 95, 0.12), transparent 34%);
  cursor: pointer;
  text-align: center;
  transition:
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.video-drop-zone:hover {
  border-color: var(--green-700);
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(18, 56, 42, 0.1);
}

.video-drop-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.video-drop-icon {
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: var(--white);
  background: linear-gradient(135deg, var(--green-700), var(--sky-700));
  font-size: 1.45rem;
  box-shadow: 0 16px 32px rgba(31, 111, 77, 0.22);
}

.video-drop-zone strong,
.video-drop-zone small {
  display: block;
}

.video-drop-zone small {
  max-width: 440px;
  color: var(--stone-700);
}

.video-upload-controls {
  display: grid;
  align-content: start;
  gap: 16px;
}

.video-current-path {
  padding: 14px 16px;
  border: 1px solid var(--stone-200);
  border-radius: 10px;
  background: var(--mint-50);
}

.video-current-path span,
.video-current-path strong {
  display: block;
}

.video-current-path span {
  color: var(--stone-700);
  font-size: 0.86rem;
}

.video-current-path strong {
  color: var(--green-900);
  word-break: break-word;
}

.video-upload-progress {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  padding: 16px;
  border-radius: 12px;
  color: var(--green-900);
  background: var(--green-100);
}

.video-upload-progress span {
  display: block;
  color: var(--stone-700);
  font-size: 0.92rem;
}

.video-upload-message {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  font-weight: 750;
}

.video-upload-message.is-success {
  color: var(--green-900);
  background: var(--green-100);
}

.video-upload-message.is-error {
  color: #8a1f1f;
  background: #fdecec;
}

.video-upload-grid.is-uploading,
.video-upload-card .is-uploading {
  pointer-events: none;
  opacity: 0.72;
}

@media (max-width: 991px) {
  .video-upload-grid {
    grid-template-columns: 1fr;
  }
}

.pagination-modern {
  gap: 8px; /* Khoảng cách giữa các nút */
}

.pagination-modern .page-item .page-link {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50% !important; /* Bo tròn hoàn toàn */
  border: none;
  color: #198754; /* Màu xanh của theme */
  background-color: #fff;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06); /* Đổ bóng nhẹ */
}

.pagination-modern .page-item.active .page-link {
  background-color: #198754;
  color: #fff;
  box-shadow: 0 4px 10px rgba(25, 135, 84, 0.4); /* Đổ bóng màu xanh */
  transform: translateY(-2px);
}

.pagination-modern .page-item:not(.active):not(.disabled) .page-link:hover {
  background-color: #e8f5e9; /* Nền xanh nhạt */
  color: #146c43;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.pagination-modern .page-item.disabled .page-link {
  color: #adb5bd;
  background-color: #f8f9fa;
  box-shadow: none;
  cursor: not-allowed;
}

@media (max-width: 991px) {
  /* 1. Ép Sidebar nổi lên lớp cao nhất (99999) */
  .sidebar-menu {
    z-index: 99999 !important;
  }

  /* 2. Đảm bảo Sidebar khi được mở ra (collapsed) cũng giữ nguyên vị trí cao nhất */
  .sbar_collapsed .sidebar-menu {
    z-index: 99999 !important;
  }

  /* 3. Hạ lớp của khối nội dung chính xuống để nó không nâng Header lên theo */
  .main-content {
    z-index: 1 !important;
  }

  /* 4. Hạ lớp của Header xuống thấp hơn Sidebar một chút */
  .header-area.sticky-top {
    z-index: 999 !important;
  }
}
