/* ================================================================
   16. ADJUVAUNT & WATER CONDITIONER INTERFACE MODULE
   file: public/assets/css/pages/adjuvant.css
   ================================================================ */

body {
  font-family: 'Sarabun', sans-serif;
  background-color: #f8fafc;
  color: #334155;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

.main-content-wrapper {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 20px;
}

/* ----------------------------------------------------------------
   HEADER ELEMENTS
   ---------------------------------------------------------------- */
.sub-page-header {
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.sub-header-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sub-logo-block {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #1e293b;
  font-weight: 700;
  font-size: 1.2rem;
}

.sub-logo-block img {
  height: 40px;
  width: auto;
}

.btn-back-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #64748b;
  font-weight: 500;
  transition: color 0.2s ease;
}

.btn-back-home:hover {
  color: #10b981;
}

/* ----------------------------------------------------------------
   CARDS & BASICS
   ---------------------------------------------------------------- */
.content-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 35px;
  margin-bottom: 30px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.01), 0 2px 4px -1px rgba(0, 0, 0, 0.01);
  border: 1px solid #e2e8f0;
}

.hero-card {
  background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
  border-left: 5px solid #0284c7;
}

.text-center-block {
  text-align: center;
}

.page-main-title {
  font-size: 2rem;
  color: #0f172a;
  margin: 20px 0 15px 0;
  font-weight: 700;
}

.page-desc-text {
  font-size: 1.05rem;
  color: #475569;
  max-width: 850px;
  margin: 0 auto;
}

.sub-section-title {
  font-size: 1.35rem;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 0;
  margin-bottom: 25px;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 15px;
}

.badge-wrapper {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.knowledge-badge {
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  background-color: #e2e8f0;
  color: #475569;
}

.sky-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.25rem !important;
  padding: 0.25rem 0.75rem !important;
  background-color: #f0f9ff !important;
  color: #0369a1 !important;
  font-size: 0.75rem !important;
  font-weight: 500 !important;
  border-radius: 9999px !important;
  border: 1px solid #bae6fd !important;
}

.text-sky-blue {
  color: #0284c7;
}

/* ----------------------------------------------------------------
   ADJUVAUNT GRID & BOXES
   ---------------------------------------------------------------- */
.adjuvant-stack-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.adjuvant-tech-box {
  padding: 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.adj-box-blue {
  border-color: #bfdbfe;
  background-color: rgba(239, 246, 255, 0.4);
}
.adj-box-amber {
  border-color: #fde68a;
  background-color: rgba(254, 243, 199, 0.4);
}
.adj-box-purple {
  border-color: #e9d5ff;
  background-color: rgba(243, 232, 255, 0.4);
}

.tech-header-row {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: start;
  width: 100%;
}

@media (min-width: 768px) {
  .tech-header-row {
    flex-direction: row;
  }
}

.tech-icon-cube {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.tech-title-block {
  text-align: left;
}

.tech-badge-title-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.tech-badge-title-group h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.tech-inner-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 0.25rem;
}

.tag-blue { background-color: #dbeafe; color: #1e40af; }
.tag-amber { background-color: #fef3c7; color: #92400e; }
.tag-purple { background-color: #f3e8ff; color: #6b21a8; }

.tech-title-block p {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.6;
  margin: 0;
}

/* ----------------------------------------------------------------
   PRODUCT HIGHLIGHT (ลัคกี้ สติ๊ก & วิดีโอ 9:16)
   ---------------------------------------------------------------- */
.product-highlight-container {
  width: 100%;
  background-color: white;
  border: 1px solid #bfdbfe;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .product-highlight-container {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }
}

.highlight-info-side {
  text-align: left;
}

@media (min-width: 768px) {
  .highlight-info-side {
    grid-column: span 7 / span 7;
  }
}

.highlight-badge-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.tag-product-highlight {
  background-color: #f59e0b;
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.text-company-credit {
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 500;
}

.highlight-product-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 5px;
  margin-bottom: 10px;
}

.highlight-product-title i {
  color: #f59e0b;
}

.highlight-product-desc {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.6;
  margin: 0;
}

.highlight-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.pill-item {
  font-size: 11px;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: 0.25rem;
  border: 1px solid transparent;
}
.pill-item.bg-light-green { border-color: #bbf7d0; }
.pill-item.bg-light-blue { border-color: #bfdbfe; }

/* ควบคุมการแสดงผลวิดีโอแนวตั้ง */
.highlight-video-side {
  width: 100%;
  display: flex;
  justify-content: center;
}

@media (min-width: 768px) {
  .highlight-video-side {
    grid-column: span 5 / span 5;
  }
}

.vertical-video-wrapper {
  position: relative;
  width: 100%;
  max-width: 200px;
  aspect-ratio: 9 / 16;
  background-color: #0f172a;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  border: 1px solid #e2e8f0;
}

.vertical-video-wrapper video,
.vertical-video-wrapper iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
}

/* ----------------------------------------------------------------
   BENEFITS & MIXING STEPS
   ---------------------------------------------------------------- */
.nutrients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.benefit-check-box {
  padding: 1.25rem;
  border-radius: 0.75rem;
  border: 1px solid #f3f4f6;
  background-color: rgba(249, 250, 251, 0.7);
  display: flex;
  align-items: start;
  gap: 0.75rem;
  text-align: left;
}

.benefit-check-box i {
  font-size: 1.2rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
}
.benefit-check-box p {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.5;
  margin: 0;
}

.table-intro-text {
  font-size: 1rem;
  color: #475569;
  margin-bottom: 20px;
}

.adjuvant-mix-steps-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.mix-step-row-item {
  padding: 1.25rem;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: start;
  gap: 1.25rem;
  text-align: left;
}

.step-item-purple { border-color: #e9d5ff; background-color: rgba(243, 232, 255, 0.3); }
.step-item-gray { border-color: #e2e8f0; background-color: #f8fafc; }
.step-item-green { border-color: #bbf7d0; background-color: rgba(240, 253, 244, 0.3); }

.step-num-badge {
  flex-shrink: 0;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.badge-purple-solid { background-color: #9333ea; }
.badge-gray-solid { background-color: #64748b; }
.badge-green-solid { background-color: #16a34a; }

.mix-step-text-desc h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 5px 0;
}

.mix-step-text-desc p {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.6;
  margin: 0;
}

/* ----------------------------------------------------------------
   FOOTER BUTTONS & BLOCK
   ---------------------------------------------------------------- */
.action-footer-center {
  text-align: center;
  margin: 50px 0;
}

.btn-primary-green {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: #10b981;
  color: #ffffff;
  text-decoration: none;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 500;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
  transition: background-color 0.2s, transform 0.2s;
}

.btn-primary-green:hover {
  background-color: #059669;
  transform: translateY(-2px);
}

.footer-block {
  text-align: center;
  padding: 30px 0;
  color: #94a3b8;
  font-size: 0.9rem;
  border-top: 1px solid #e2e8f0;
  background-color: #ffffff;
}

/* Helpers */
.bg-light-blue { background-color: #dbeafe; }
.bg-light-amber { background-color: #fef3c7; }
.bg-light-purple { background-color: #f3e8ff; }
.bg-light-green { background-color: #dcfce7; }

.text-blue-text { color: #1e40af; }
.text-amber { color: #b45309; }
.text-purple { color: #7e22ce; }
.text-green { color: #15803d; }
.text-red { color: #b91c1c; }

.font-bold { font-weight: 700; }