/* ============================================================
   feed-supplement.css  –  Feed Supplement page
   NutriconBio Life
   ============================================================ */

/* ── HERO ───────────────────────────────────────────────── */
.fs-hero {
  background: linear-gradient(135deg, #0D2B55 0%, #1a3f75 50%, #1E7A5A 100%);
  padding: 80px 24px 110px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.fs-hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}
.fs-hero::after {
  content: '';
  position: absolute;
  bottom: -70px; left: -60px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
}
.fs-hero-inner {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.fs-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  color: #a8d8c8;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 20px;
  border-radius: 50px;
  margin-bottom: 22px;
}
.fs-hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  color: #fff;
  line-height: 1.12;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
.fs-hero h1 span { color: #4ecda4; }
.fs-hero p {
  font-size: 16px;
  color: #b8d8f0;
  line-height: 1.7;
}

/* Breadcrumb */
.breadcrumb {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 24px;
  font-size: 13px;
  color: #5a7a9a;
  display: flex;
  align-items: center;
  gap: 8px;
}
.breadcrumb a { color: #2E5FA3; font-weight: 500; transition: color .2s; }
.breadcrumb a:hover { color: #1E7A5A; }
.breadcrumb .sep { color: #9ca3af; }

/* ── MAIN WRAP ───────────────────────────────────────────── */
.fs-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 24px 64px;
}

/* ── INTRO BANNER ────────────────────────────────────────── */
.fs-intro-banner {
  background: #fff;
  border-radius: 22px;
  padding: 36px 44px;
  margin-bottom: 40px;
  border: 1px solid #e0eaf5;
  box-shadow: 0 4px 20px rgba(14,43,85,0.06);
  display: flex;
  align-items: center;
  gap: 32px;
}
.fs-intro-icon {
  width: 80px; height: 80px;
  border-radius: 22px;
  background: linear-gradient(135deg, #2E5FA3, #1E7A5A);
  display: flex; align-items: center; justify-content: center;
  font-size: 38px;
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(46,95,163,0.28);
}
.fs-intro-text h2 {
  font-size: 22px;
  font-weight: 800;
  color: #0D2B55;
  margin-bottom: 8px;
}
.fs-intro-text p {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.75;
}

/* ── SUPPLEMENT GRID ─────────────────────────────────────── */
.fs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

/* ── SUPPLEMENT CARD ─────────────────────────────────────── */
.supp-card {
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  border: 2px solid transparent;
  box-shadow: 0 3px 18px rgba(14,43,85,0.07);
  display: flex;
  flex-direction: column;
  transition: border-color 0.28s, transform 0.28s, box-shadow 0.28s;
  animation: cardFadeIn 0.5s ease both;
}
.supp-card:hover {
  border-color: #2E5FA3;
  transform: translateY(-7px);
  box-shadow: 0 20px 48px rgba(46,95,163,0.16);
}
@keyframes cardFadeIn {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Card image */
.supp-card-img {
  position: relative;
  height: 200px;
  overflow: hidden;
}
.supp-card-img img {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.4s ease;
}
.supp-card:hover .supp-card-img img { transform: scale(1.07); }

/* Gradient fallback (when no image) */
.supp-card-img.no-img {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
}

/* Number badge */
.supp-num-badge {
  position: absolute;
  top: 12px; left: 12px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(13,43,85,0.85);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid rgba(255,255,255,0.25);
}

/* Card body */
.supp-card-body {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.supp-subtitle {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #1E7A5A;
  margin-bottom: 6px;
}
.supp-name {
  font-size: 17px;
  font-weight: 800;
  color: #0D2B55;
  margin-bottom: 10px;
  line-height: 1.25;
}
.supp-desc {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.7;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 14px;
}

/* Key benefits preview (3 bullets) */
.supp-benefits-preview {
  list-style: none;
  padding: 0; margin: 0 0 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.supp-benefits-preview li {
  font-size: 12px;
  color: #374151;
  padding-left: 16px;
  position: relative;
  line-height: 1.5;
}
.supp-benefits-preview li::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: #1E7A5A;
  font-size: 10px;
  top: 2px;
}

/* Card footer */
.supp-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid #f0f4f8;
  margin-top: auto;
}
.supp-rate-badge {
  font-size: 11px;
  font-weight: 600;
  color: #2E5FA3;
  background: #eef3fb;
  padding: 4px 10px;
  border-radius: 20px;
}
.btn-supp-details {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, #2E5FA3, #1E7A5A);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 3px 12px rgba(46,95,163,0.28);
  font-family: 'Inter', sans-serif;
}
.btn-supp-details:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(46,95,163,0.38);
}

/* ── BOTTOM CTA ──────────────────────────────────────────── */
.fs-cta-bar {
  background: linear-gradient(135deg, #0D2B55, #1a3f75);
  border-radius: 22px;
  padding: 44px 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.fs-cta-text h3 {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}
.fs-cta-text p {
  font-size: 14px;
  color: #a8c8e8;
  max-width: 500px;
  line-height: 1.65;
}
.fs-cta-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.btn-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #2E5FA3, #1E7A5A);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: 50px;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 6px 20px rgba(46,95,163,0.4);
  font-family: 'Inter', sans-serif;
}
.btn-cta-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(46,95,163,0.5); }
.btn-cta-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  border: 1.5px solid rgba(255,255,255,0.3);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: 50px;
  text-decoration: none;
  transition: background .2s, transform .2s;
  font-family: 'Inter', sans-serif;
}
.btn-cta-outline:hover { background: rgba(255,255,255,0.2); transform: translateY(-2px); }

/* ── MODAL ───────────────────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(13,43,85,0.65);
  backdrop-filter: blur(7px);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: overlayIn .25s ease;
}
.modal-overlay.open { display: flex; }
@keyframes overlayIn { from { opacity: 0; } to { opacity: 1; } }

.modal-box {
  background: #fff;
  border-radius: 24px;
  width: 100%;
  max-width: 820px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 32px 90px rgba(13,43,85,0.32);
  animation: modalIn .32s cubic-bezier(.34,1.56,.64,1);
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(.88) translateY(24px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  background: linear-gradient(135deg, #0D2B55, #1a3f75);
  padding: 28px 36px;
  position: relative;
  flex-shrink: 0;
}
.modal-header-tag {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: #a8d8c8;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.modal-title {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  padding-right: 48px;
}
.modal-subtitle {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  margin-top: 4px;
  font-style: italic;
}
.modal-close {
  position: absolute;
  top: 22px; right: 24px;
  background: rgba(255,255,255,0.15);
  border: 1.5px solid rgba(255,255,255,0.25);
  color: #fff;
  width: 38px; height: 38px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, transform .2s;
}
.modal-close:hover { background: rgba(255,255,255,0.28); transform: rotate(90deg); }

.modal-img-strip {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}
/* gradient strip when no photo */
.modal-img-strip.gradient-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  height: 130px;
}

.modal-body {
  padding: 28px 36px 36px;
  overflow-y: auto;
  flex: 1;
  font-size: 14px;
  color: #374151;
  line-height: 1.8;
}
.modal-body h4 {
  font-size: 14.5px;
  font-weight: 700;
  color: #0D2B55;
  margin: 22px 0 8px;
  padding-left: 12px;
  border-left: 3px solid #2E5FA3;
}
.modal-body h4:first-child { margin-top: 0; }
.modal-body p { margin-bottom: 10px; color: #4b5563; }
.modal-body ul {
  list-style: none; padding: 0; margin: 0 0 12px;
  display: flex; flex-direction: column; gap: 6px;
}
.modal-body ul li {
  padding-left: 20px; position: relative;
  color: #4b5563; font-size: 13.5px;
}
.modal-body ul li::before {
  content: '✔';
  position: absolute; left: 0;
  color: #1E7A5A; font-size: 11px; top: 3px;
}
.modal-body strong { color: #0D2B55; }
.modal-body .rate-pill {
  display: inline-block;
  background: linear-gradient(135deg, #eef3fb, #e0f0ea);
  color: #0D2B55;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 50px;
  margin-top: 4px;
  border: 1px solid #c8daf5;
}
.modal-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 13.5px;
}
.modal-body table th {
  background: #0D2B55;
  color: #fff;
  padding: 10px 14px;
  text-align: left;
  font-weight: 700;
}
.modal-body table td {
  padding: 9px 14px;
  border-bottom: 1px solid #e5e7eb;
  color: #374151;
}
.modal-body table tr:nth-child(even) td { background: #f8fafc; }

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1100px) { .fs-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px)  {
  .fs-grid { grid-template-columns: repeat(2, 1fr); }
  .fs-intro-banner { flex-direction: column; padding: 28px 24px; gap: 18px; }
  .fs-cta-bar { flex-direction: column; padding: 32px 28px; }
}
@media (max-width: 480px)  {
  .fs-grid { grid-template-columns: 1fr; }
  .fs-main { padding: 20px 14px 48px; }
  .modal-header { padding: 22px 22px; }
  .modal-body { padding: 20px 22px 28px; }
}
