/**
Theme Name: Golden Teacher
Author: Brainstorm Force
Author URI: http://wpastra.com/about/
Description: Astra is the fastest, fully customizable & beautiful theme suitable for blogs, personal portfolios and business websites. It is very lightweight (less than 50KB on frontend) and offers unparalleled speed. Built with SEO in mind, Astra comes with schema.org code integrated so search engines will love your site. Astra offers plenty of sidebar options and widget areas giving you a full control for customizations. Furthermore, we have included special features and templates so feel free to choose any of your favorite page builder plugin to create pages flexibly. Some of the other features: # WooCommerce Ready # Responsive # Compatible with major plugins # Translation Ready # Extendible with premium addons # Regularly updated # Designed, Developed, Maintained & Supported by Brainstorm Force. Looking for a perfect base theme? Look no further. Astra is fast, fully customizable and beautiful theme!
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: golden-teacher
Template: astra
*/

h2 {
  font-weight: 600;
}
.ingredient-hero {
  margin:auto;
  background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
  border-bottom: 1px solid #eee;
  padding:40px;
  margin-top:40px;
}
.ingredient-title {
  padding:10px;
  text-align:center;
  font-weight: 600;
}

.ingredient-description {
  max-width: 1000px;
  padding:10px;
  margin: auto;
  font-size:18px;
}

.rating-badge {
  background: #e1f2ec;
  color: #2a5243;
  padding: 5px 15px;
  border-radius: 10px;
  font-weight: 600;
  display: inline-block;
  white-space: nowrap;
  flex-shrink: 0;
  font-size:18px;
  }

.rating-container {
  text-align: center;
}

.two-column-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 30px;
  margin: 40px 0;
}

.column {
  flex: 1;
}

.image-column img {
  max-width: 75%;
  height: auto;
  border-radius: 20px;
}

.ingredent-header {
  font-weight:600;
  padding:10px;
}

/* Responsive for mobile */
@media screen and (max-width: 768px) {
  .two-column-layout {
    flex-direction: column;
  }

  .image-column,
  .content-column {
    flex: unset;
    width: 100%;
  }
  }

.ingredient-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px; /* space between items */
  list-style: none;
  padding-top:20px;
}

.ingredient-categories li {
  margin: 0; /* spacing handled by gap */
}

.ingredient-categories a {
  display: inline-block;
  padding: 6px 12px;
  background: #E8E8E8;
  color: #475569;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  font-size: 18px;
  white-space: nowrap; /* prevent awkward wrapping */
  transition: background 0.2s ease;
  min-width: 100px;
  text-align: center;
}

.ingredient-categories a:hover {
  background: #cfe7dc;
}


.rating-badge.rating-great {
  background-color: #c3e6cb;
}

.rating-badge.rating-good {
  background-color: #e8f5e9;
}

.rating-badge.rating-fair {
  background-color: #fde9d9;
}

.rating-badge.rating-poor {
  background-color: #fbe4e4;
}


.ingredient-filter {
  margin-bottom: 20px;
  text-align: center;
}

.ingredient-filter select {
  padding: 0.5rem 1rem;
  font-size: 1rem;
  border-radius: 6px;
  border: 1px solid #ccc;
}

/* Main Layout */
.ingredient-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.ingredient-entry {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid #eee;
  padding-bottom: 1.5rem;
}

.ingredient-img {
  flex-shrink: 0;
  width: 225px;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 8px;
}

.ingredient-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ingredient-content {
  flex-grow: 1;
}

.ingredient-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: nowrap;
}


.ingredient-header h2 {
  font-size: 1.5rem;
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  white-space: normal;
  word-break: break-word;
}

.ingredient-short-description {
  padding-top:10px;
  font-size: .8rem;
}


.ps-breadcrumbs {
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.ps-breadcrumbs span {
  font-weight: 500;
}

.ps-brand a {
  font-weight: 700;
  font-size: 1rem;
  color:#3a3a3a;
}

.ps-brand {
  flex: 1;
  min-width: 0;
}


.ps-product-ingredients {
  background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
  border-bottom: 1px solid #eee;  
  padding: 20px;
  border-radius: 20px;
  margin-top: 30px;
  margin-bottom: 30px;
}

.ps-ingredient-highlights {
  border-radius: 20px;
  margin-top: 30px;
  margin-bottom: 30px;

}


.ps-key-ingredients ul {
  list-style: none;
  padding: 0;
}

.ps-key-ingredients li {
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.ps-key-ingredients a {
  text-decoration: none;
}

.ps-full-ingredients p {
  font-size: 1rem;
  line-height: 1.5;
  margin-top: 20px;
}

.ps-full-ingredients a:hover {
  color: #3a3a3a;
  text-decoration: underline;
}

.ps-description {
  padding-top: 20px;
  padding-bottom: 20px;
  font-size:20px;
}


.ps-price-range {
  display: inline-block;
  padding: 0 10px;
  font-weight: 700;
  font-weight: 500;
  font-size: 1.3rem;
  margin-top:0px;
  margin-right: 10px;
}


.ps-brand-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ps-amazon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid #3a3a3a;
  border-radius: 10px;
  background: #fff;
  color: #3a3a3a;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  line-height: 1;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;


}

.ps-amazon-button:hover {
  background: #fafafa;
  color: #111;
  text-decoration: none;
}

.ps-ingredient-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 18px;
}

.ps-ingredient-pill {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

/* =========================
   Single Product Hero
   ========================= */

.ps-product-header.two-column-layout {
  display: grid;
  grid-template-columns: minmax(280px, 38%) minmax(0, 1fr);
  gap: 44px;
  align-items: start;
  max-width: 1180px;
  margin: 32px auto 28px;
  padding: 0 24px;
}

.ps-product-header .column {
  flex: unset;
}

.ps-product-header .image-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: center;
}

.ps-product-header .image-column img {
  max-width: 300px;
  width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 18px;
}

.sl-reactions-float {
  align-self: flex-start;
  margin-bottom: 10px;
}

.sl-reactions-float .sl-reactions {
  margin: 0;
}

.ps-product-header .content-column {
  max-width: 660px;
}

.ps-breadcrumbs-left {
  margin-bottom: 0px;
  text-align: left;
  font-size: 14px;
  color: #777;
}

.ps-breadcrumbs-left a {
  color: #777;
  text-decoration: none;
}

.ps-breadcrumbs-left a:hover {
  color: #3a3a3a;
}

.ps-brand {
  flex: 1;
  min-width: 0;
}

.ps-brand a {
  font-weight: 700;
  font-size: 1rem;
  color: #3a3a3a;
}

.ps-title {
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.25;
  margin: 0 0 18px;
  font-size: 1.3rem;
}


.ps-hero-description {
  font-size: 16px;
  line-height: 1.65;
  color: #444;
  margin: 0 0 18px;
  max-width: 620px;
}

.ps-hero-description p {
  margin: 0;
  font-size:16px;
}

.ps-affiliate-cta {
  margin: 18px 0 24px;
}

@media screen and (max-width: 768px) {
  .ps-product-header.two-column-layout {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 24px;
    padding: 0 18px;
  }

  .ps-product-header .image-column img {
    max-width: 320px;
  }

  .ps-breadcrumbs {
    margin-bottom: 14px;
  }
}

/* ===== Product Page Core Ingredient Card ===== */

.gt-core-ingredients {
  margin: 30px 0;
}

.gt-core-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 12px;
}

.gt-core-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
}

.gt-core-card {
  display: block;

  padding: 14px 16px;

  border: 1px solid #ddd;
  border-radius: 10px;

  background: #fff;

  text-decoration: none;
  color: inherit;
}

.gt-core-card strong {
  display:block;
  font-size:16px;
  margin-bottom:4px;
}

.gt-core-card span {
  font-size:13px;
  color:#666;
}

.ps-product-details-blocks {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  margin: 48px 0;
  max-width: 1180px;
  padding: 0px;
}

.ps-detail-card {
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(18,38,63,.06);
  overflow: hidden;
}

.ps-detail-card-header {
  padding: 18px 22px 12px;
  border-bottom: 1px solid #eee;
  background: #faf9f5;
}

.ps-detail-card-header h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
}

.ps-detail-card-body {
  padding: 20px 22px;
  font-size: 16px;
  line-height: 1.7;
  color: #333;
}

.ps-detail-card-body p {
  margin: 0 0 14px;
}

.ps-detail-card-body p:last-child {
  margin-bottom: 0;
}

.ps-highlight-list {
  display: flex;
  flex-direction: column;
}

.ps-highlight-row {
  color: inherit;
  text-decoration: none;
}

.ps-highlight-info {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.ps-highlight-name {
  flex-shrink: 0;
  font-size: 15px;
  font-weight: 600;
  color: #333;
}

.ps-highlight-overview {
  min-width: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #666;
}

.ps-highlight-type {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  border-radius: 999px;
  background: #eef9e7;
  color: #3d6f25;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .ps-highlight-list .ps-highlight-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .ps-highlight-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .ps-highlight-name {
    white-space: normal;
  }

  .ps-highlight-type {
    align-self: flex-start;
  }
}

.ps-full-ingredient-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.ps-full-ing-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid #dee2e6;
  background: #f1f3f5;
  color: #444;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
}

.ps-full-ing-pill:hover {
  color: #111;
  background: #e9ecef;
  text-decoration: none;
}

.ps-full-ing-pill.is-muted {
  color: #666;
}

.ps-benefit-list {
  display: flex;
  flex-direction: column;
}

.ps-benefit-list-extra[hidden] {
  display: none;
}

.ps-benefit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: 12px 4px;
  border: none;
  border-bottom: 1px solid #eee;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
  transition: background .15s ease;
}

.ps-benefit-row:hover,
.ps-benefit-row:focus,
.ps-benefit-row:active {
  background: #faf9f5 !important;
}

.ps-benefit-row:focus:not(:focus-visible) {
  outline: none;
}

.ps-benefit-row:focus-visible {
  outline: 2px solid #8a4b00;
  outline-offset: -2px;
}

.ps-benefit-row-label {
  font-size: 15px;
  font-weight: 600;
  color: #333;
}

.ps-benefit-row-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  background: #eef9e7;
  color: #3d6f25;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
}

.ps-benefit-show-all {
  align-self: flex-start;
  margin-top: 14px;
  padding: 0;
  border: none;
  background: none;
  color: #8a4b00;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
}

.ps-benefit-show-all:hover,
.ps-benefit-show-all:focus,
.ps-benefit-show-all:active {
  background: none !important;
  color: #8a4b00 !important;
  text-decoration: underline;
}

.ps-benefit-show-all:focus:not(:focus-visible) {
  outline: none;
}

.ps-benefit-show-all:focus-visible {
  outline: 2px solid #8a4b00;
  outline-offset: 2px;
}

/* Benefits modal */
.ps-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.ps-modal.is-open {
  display: flex;
}

body.ps-modal-open {
  overflow: hidden;
}

.ps-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(18, 38, 63, .45);
}

.ps-modal-content {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: 80vh;
  margin: 20px;
  padding: 28px 24px 24px;
  overflow-y: auto;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(18,38,63,.20);
}

.ps-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: #f1f3f5;
  color: #555;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
}

.ps-modal-close:hover {
  background: #e9ecef;
}

.ps-modal-title {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 700;
  color: #333;
}

.ps-modal-subtitle {
  margin: 0 0 16px;
  font-size: 13px;
  color: #777;
}

.ps-modal-ingredient-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ps-modal-ingredient-list li {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: #f1f3f5;
  color: #444;
  font-size: 13px;
  font-weight: 600;
  transition: background .15s ease, color .15s ease;
}

.ps-modal-ingredient-list li:hover {
  color: #111;
  background: #e9ecef;
}

.ps-modal-ingredient-list a {
  color: inherit;
  text-decoration: none;
}

.ps-hero-ingredient-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}


.brand-page {
  padding: 40px 20px;
  max-width: 1000px;
  margin: auto;
}

.brand-header {
  margin-bottom: 2rem;
}

.brand-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-align: center;
}

.brand-description {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #444;
  text-align: center;
  max-width: 700px;
  margin: auto;
}

.brand-products h2,
.brand-products-text h2 {
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
}

.brand-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.product-card {
  text-align: center;
  text-decoration: none;
  color: inherit;
  border: 1px solid #eee;
  padding: 14px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  transition: transform .12s ease, box-shadow .12s ease;
}

.product-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  margin-bottom: 12px;
  background: #f6f6f6;
  object-fit: cover;
}

.product-card h3 {
  font-size: 1.1rem;
  margin-top: 10px;
}


/* ==========================================================================
   Site-wide pagination — WordPress's paginate_links()/the_posts_pagination()
   already emit .page-numbers/.current/.prev/.next/.dots everywhere on the
   site (ingredient + product archives, brand page, search results), so this
   one set of rules is the shared system for all of them.
   ========================================================================== */

.ingredient-pagination,
.pagination-wrapper,
.navigation.pagination {
  margin: 40px 0 20px;
  text-align: center;
}

.navigation.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  margin: 0 4px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid #eee;
  background: #f1f3f5;
  color: #444;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}

a.page-numbers:hover,
a.page-numbers:focus,
a.page-numbers:active {
  background: #e9ecef !important;
  border-color: #dee2e6 !important;
  color: #111 !important;
  text-decoration: none;
}

.page-numbers.current {
  border-color: #8a4b00;
  background: #8a4b00;
  color: #fff;
}

.page-numbers.dots {
  border-color: transparent;
  background: none;
  color: #999;
}

.page-numbers.prev,
.page-numbers.next {
  padding: 0 18px;
  font-weight: 800;
}

.ps-related-products { 
  margin-top: 1rem; 
}

.ps-related-brand {
  font-size:16px; 
  color:#555; 
  font-weight:500;
}


  /* ===== Archive Product Hero  ===== */
  .ps-archive-hero {
    background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
    border-bottom: 1px solid #eee;
    padding: 36px 0 24px;
    border-radius: 12px;
  }
  .ps-archive-hero .ps-hero-inner {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 16px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: end;
  }
  .ps-hero-title {
    font-size: clamp(28px, 3.2vw, 40px);
    font-weight: 700;
    margin: 0;
    line-height: 1.1;
  }
  .ps-hero-sub {
    grid-column: 1 / -1;
    margin: 8px 0 0;
    color: #666;
  }
  .sl-reactions-wrap {
    grid-column: 1 / -1;
  }
  .ps-filter { margin: 0; }
  .ps-select {
    appearance: none;
    border: 1px solid #ddd;
    background: #fff;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 14px;
    min-width: 220px;
    box-shadow: 0 1px 0 rgba(0,0,0,0.02);
  }
  .screen-reader-text { position: absolute; left: -9999px; }

  .product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
  }

  .product-title { font-size: 16px; margin: 4px 0; line-height: 1.25; }
  .product-title a { text-decoration: none; color: #111; }
  .product-title a:hover { text-decoration: underline; }

  .product-brand, .product-price { font-size: 13px; color: #666; margin-top: 2px; }
  .product-desc { margin-top: 8px; font-size: 14px; color: #444; }

  /* Pagination spacing */
  .navigation.pagination { max-width: 1100px; margin: 12px auto 32px; padding: 0 16px; }


/* --- Center the archive + neutralize Astra sidebar/floats only on product archives --- */
.post-type-archive-product #primary,
.post-type-archive-product .content-area,
.post-type-archive-product .site-content .ast-container {
  float: none;
  width: 100%;
  max-width: 1280px;   /* wider canvas so 4 columns breathe */
  margin-left: auto;
  margin-right: auto;
}


.tax-product_category #primary,
.tax-product_category .content-area,
.tax-product_category .site-content .ast-container {
  float: none;
  width: 100%;
  max-width: 1280px;   /* wider canvas so 4 columns breathe */
  margin-left: auto;
  margin-right: auto;
}


.tax-product_subcategory #primary,
.tax-product_subcategory .content-area,
.tax-product_subcategory .site-content .ast-container {
  float: none;
  width: 100%;
  max-width: 1280px;   /* wider canvas so 4 columns breathe */
  margin-left: auto;
  margin-right: auto;
}


.single-brand #primary,
.single-brand .content-area,
.single-brand .site-content .ast-container {
  float: none;
  width: 100%;
  max-width: 1280px;   /* wider canvas so 4 columns breathe */
  margin-left: auto;
  margin-right: auto;
}




/* --- Product Archive Grid--- */
.product-archive-grid {
  max-width: 1180px;
  margin: 32px auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.product-archive-grid > * {
  width: auto;
  margin: 0;
}


@media (max-width: 980px) {
  .product-archive-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .product-archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .product-archive-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================
   Ingredient Snapshot + Ratings
   ========================= */

.content-body {
  padding-top:20px;
}

.sl-ingredient-meta{
  margin: 20px auto 30px;
  padding: 0 20px;
}

.sl-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: stretch;
}

.sl-card--full{
  grid-column: 1 / -1;
}

.sl-card--half{
  grid-column: span 1;
}

@media (max-width: 860px){
  .sl-grid{ grid-template-columns: 1fr; }
}

.sl-card{
  background: #fff;
  border: 1px solid #eee;
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(18, 38, 63, .06);
  overflow: hidden;
}

.sl-card__header{
  padding: 14px 16px 10px;
  border-bottom: 1px solid #eee;
}

.sl-card__title{
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.sl-dl{
  margin: 0;
  padding: 10px 16px 14px;
  font-size: 16px;
}

.sl-dl__row{
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(100,116,139,.25);
}

.sl-dl__row:last-child{ border-bottom: 0; }

.sl-dl dt{
  font-weight: 750;
  color: #3a3a3a;
  font-size: 16px;
}

.sl-dl dd{
  margin: 0;
  font-size: 16px;
}

/* Pills */
.sl-pill{
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 650;
  font-size: 13px;
  border: 1px solid rgba(15,23,42,.08);
  background: rgba(15,23,42,.04);
  color: #111;
  white-space: nowrap;
}

.sl-pill--good{ background:#e8f5e9; border-color:rgba(42,82,67,.25); color:#2a5243; }
.sl-pill--great,
.sl-pill--excellent{ background:#c3e6cb; border-color:rgba(42,82,67,.25); color:#2a5243; }
.sl-pill--fair,
.sl-pill--average{ background:#fde9d9; border-color:rgba(113,63,18,.18); color:#7a4b17; }
.sl-pill--poor{ background:#fbe4e4; border-color:rgba(127,29,29,.15); color:#7f1d1d; }
.sl-pill--none{ background:rgba(100,116,139,.10); border-color:rgba(100,116,139,.22); color:#334155; }
.sl-pill--low{ background:rgba(14,165,233,.10); border-color:rgba(14,165,233,.22); color:#075985; }
.sl-pill--med{ background:rgba(245,158,11,.14); border-color:rgba(245,158,11,.25); color:#92400e; }
.sl-pill--high{ background:rgba(239,68,68,.12); border-color:rgba(239,68,68,.22); color:#7f1d1d; }

/* Ratings rows */
.sl-rating{
  padding: 14px 16px 12px;
  border-bottom: 1px dashed rgba(100,116,139,.25);
}
.sl-rating:last-of-type{ border-bottom: 0; }

.sl-rating__head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.sl-rating__label{
  margin: 0;
  font-size: 14px;
  font-weight: 750;
  color: #475569;
}

/* Meter (5 segments) */
.sl-meter{
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.sl-meter--4{
  grid-template-columns: repeat(4, 1fr);
}

.sl-meter__seg{
  height: 10px;
  border-radius: 999px;
  background: #eef2f7;
  border: 1px solid rgba(15,23,42,.06);
}

.sl-meter__seg.is-on{
  background: rgba(22,163,74,.35);
  border-color: rgba(22,163,74,.20);
}

/* Mobile tweaks */
@media (max-width: 560px){
  .sl-dl__row{ grid-template-columns: 1fr; }
}

.ingredient-long-copy {
  padding: 40px 10px 10px;
}



/* ---------------- Search results styling ---------------- */

.search-results-count {
  max-width: 1180px;
  margin: 0 auto 24px;
  padding: 0 24px;
  color: #666;
  font-size: 14px;
}

.sl-search-section {
  max-width: 1180px;
  margin: 0 auto 48px;
  padding: 0 24px;
}

.sl-search-section-title {
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #666;
}

.sl-search-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

/* Compact ingredient/article card */
.sl-search-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  border: 1px solid #e5e5e5;
  border-radius: 18px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(18,38,63,.045);
  transition: transform .2s ease, box-shadow .2s ease;
}

.sl-search-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 45px rgba(18,38,63,.10);
  text-decoration: none;
}

.sl-search-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.sl-search-title {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 700;
  color: #3a3a3a;
}

.sl-search-title a {
  color: inherit;
  text-decoration: none;
}

.sl-search-title a:hover {
  color: #8a4b00;
  text-decoration: none;
}

.sl-search-excerpt {
  margin: 0;
  color: #666;
  font-size: 14px;
  line-height: 1.55;
}

.sl-search-link {
  display: inline-flex;
  margin-top: 16px;
  color: #8a4b00;
  font-size: 14px;
  font-weight: 800;
}

/* Rating pills */
.sl-search-rating {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
  white-space: nowrap;
}

.sl-search-rating--great {
  background: #eef9e7;
  color: #3d6f25;
  border: 1px solid #b9dda1;
}

.sl-search-rating--good {
  background: #e8f1ff;
  color: #1f5fa8;
  border: 1px solid #a9cdfd;
}

.sl-search-rating--fair {
  background: #fff3df;
  color: #8a4b00;
  border: 1px solid #ffc46b;
}

.sl-search-rating--poor {
  background: #fbe4e4;
  color: #7f1d1d;
  border: 1px solid rgba(127,29,29,.18);
}

/* Article cards */
.sl-search-article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  min-height: 240px;
}

.sl-search-article-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #e5e5e5;
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(18,38,63,.045);
  transition: transform .2s ease, box-shadow .2s ease;
}

.sl-search-article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 45px rgba(18,38,63,.10);
  text-decoration: none;
}

.sl-search-article-thumb {
  height: 240px;
  background: #faf9f5;
}

.sl-search-article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sl-search-article-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px;
}

.sl-search-article-label {
  display: inline-flex;
  width: max-content;
  margin-bottom: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f1f3f5;
  color: #555;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.sl-search-article-body h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.3;
}

.sl-search-article-body p {
  flex: 1;
  margin: 0 0 14px;
  color: #666;
  font-size: 14px;
  line-height: 1.55;
}

.sl-search-article-body strong {
  margin-top: auto;
  color: #8a4b00;
}

/* Responsive */
@media (max-width: 900px) {
  .sl-search-article-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .sl-search-grid {
    grid-template-columns: 1fr;
  }

  .sl-search-card {
    min-height: auto;
  }

  .sl-search-title {
    font-size: 18px;
  }
}

/* ------------ End Search results styling ---------------- */


/* ==========================================================================
   GT Similar Products Widget
   ========================================================================== */

/* --- Section wrapper ---------------------------------------------------- */
.gt-similar-products {
  margin: 56px 0 56px;
}

.gt-similar-header {
  margin-bottom: 0px;
}

.gt-similar-header h2{
  font-size:1rem;
}
.gt-similar-header p{
  font-size:16px;
}

.gt-similar-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #1a1a1a;
  margin: 0 0 6px;
}

.gt-similar-subtitle {
  font-size: 0.82rem;
  color: #888;
  margin: 0;
  letter-spacing: 0.02em;
}

.gt-top-matches {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 24px 0 36px;
}

.gt-top-match-card {
  display: grid;
  grid-template-columns: 70px 90px 1fr 142px;
  gap: 18px;
  align-items: start;

  padding: 18px 24px;
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(18,38,63,.06);
}

.gt-top-match-card.is-best {
  border: 2px solid #4a86e8;
}

.gt-top-image {
  width: 90px;
  height: 90px;

  display:flex;
  align-items:center;
  justify-content:center;

  border-radius: 12px;
  overflow: hidden;
  background: #f7f4f0;
}

.gt-top-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;

  transform: none;
}

.gt-save-badge {
  padding: 5px 10px;
  border-radius: 999px;
  background: #e8f5e9;
  color: #2a5243;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}


.gt-top-rank strong {
  display: block;
  font-size: 30px;
  line-height: 1;
}

.gt-top-rank span {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  color: #555;
  line-height: 1.2;
}

.gt-top-price-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.gt-best-dupe {
  display: inline-block;
  margin-bottom: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #e8f1ff;
  color: #356bb3;
  font-size: 13px;
  font-weight: 700;
}

.gt-top-main h3 {
  margin: 0 0 4px;
  font-size: 20px;
  line-height: 1.25;
}

.gt-top-main h3 a {
  color: #111;
  text-decoration: none;
}

.gt-top-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top:12px;
}

.gt-top-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  width: 100%;
}

.gt-top-price-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;

  width: 100%;
}


.gt-top-price {
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
}

.gt-compare-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: max-content;
  margin-left: auto;

  padding: 10px 18px;
  border: 1px solid #ccc;
  border-radius: 10px;
  background: #fff;
  color: #3a3a3a;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  line-height: 1;
}


.gt-compare-btn:hover {
  background: #fafafa;
  color: #111;
  text-decoration: none;
}




@media (max-width: 700px) {
  .gt-top-match-card {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .gt-top-rank,
  .gt-top-image,
  .gt-top-main,
  .gt-top-side {
    width: 100%;
  }

  .gt-top-pills {
    justify-content: center;
  }

  .gt-top-side {
    align-items: center;
  }

  .gt-top-price-row {
    justify-content: center;
  }

  .gt-compare-btn {
    margin-left: 0;
    align-self: center;
  }
}

.gt-similar-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.gt-more-card {
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(18,38,63,.06);
}

.gt-more-image {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 190px;
  background: #f7f4f0;
  padding: 18px;
}

.gt-more-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.gt-more-body {
  padding: 16px;
}

.gt-more-brand {
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #777;
}

.gt-more-title {
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 1.35;
}

.gt-more-title a {
  color: #111;
  text-decoration: none;
}

.gt-more-price-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.gt-more-price {
  font-size: 18px;
  font-weight: 800;
  color: #333;
}

.gt-more-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 14px;
}

.gt-more-btn {
  display: inline-flex;
  justify-content: center;
  width: 100%;
  padding: 9px 14px;
  border: 1px solid #ccc;
  border-radius: 10px;
  color: #3a3a3a;
  font-weight: 700;
  text-decoration: none;
}

.gt-more-btn:hover {
  background: #fafafa;
  color: #111;
}

.ingredients-h2 {
  padding: 20px 0;
}

@media (max-width: 900px) {
  .gt-similar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .gt-similar-grid {
    grid-template-columns: 1fr;
  }
}


/* --- Card --------------------------------------------------------------- */
.gt-similar-card {
  position: relative;
  background: #fff;
  border: 1px solid #ece7e0;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  animation: gt-card-in 0.4s ease both;
  animation-delay: calc(var(--card-index, 0) * 60ms);
}

@keyframes gt-card-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.gt-similar-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.10);
  transform: translateY(-3px);
}

/* --- Rank badge --------------------------------------------------------- */
.gt-match-rank {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 20px;
}

.gt-rank-1 { background: #2d6a4f; color: #fff; }
.gt-rank-2 { background: #52796f; color: #fff; }
.gt-rank-3 { background: #84a98c; color: #fff; }

/* --- Thumbnail ---------------------------------------------------------- */
.gt-card-thumb {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f7f4f0;
}

.gt-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gt-similar-card:hover .gt-card-thumb img {
  transform: scale(1.04);
}

/* --- Card body ---------------------------------------------------------- */
.gt-card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.gt-card-brand {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #888;
}

.gt-card-brand a {
  color: inherit;
  text-decoration: none;
}

.gt-card-brand a:hover {
  color: #2d6a4f;
}

.gt-card-title {
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 0;
}

.gt-card-title a {
  color: #1a1a1a;
  text-decoration: none;
}

.gt-card-title a:hover {
  color: #2d6a4f;
}

.gt-card-price {
  font-size: 0.8rem;
  font-weight: 600;
  color: #555;
  letter-spacing: 0.04em;
}

/* --- Score bar ---------------------------------------------------------- */
.gt-score-bar-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.gt-score-bar-track {
  flex: 1;
  height: 5px;
  background: #ede8e1;
  border-radius: 99px;
  overflow: hidden;
}

.gt-score-bar-fill {
  height: 100%;
  width: var(--pct, 0%);
  background: linear-gradient(90deg, #52796f, #2d6a4f);
  border-radius: 99px;
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.gt-score-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: #2d6a4f;
  white-space: nowrap;
  min-width: 52px;
}

/* --- Shared ingredient pills -------------------------------------------- */
.gt-shared-ings {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    margin-top: 6px;
}

.gt-shared-label {
    font-size: 0.68rem;
    font-weight: 600;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.gt-shared-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
}

.gt-ing-pill {
    display: inline-block;
    font-size: 0.5rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 999px;        /* rounded corners */
    text-decoration: none;
    transition: opacity 0.15s;
    white-space: normal;  
    word-break: break-word;
    line-height: 1.4;
}

.gt-ing-pill:hover { opacity: 0.75; }

.gt-ing-pill--main,
.gt-rank-pill--primary {
    background: #fff3df;
    color: #8a4b00;
    border: 1px solid #ffc46b;
}

.gt-ing-pill--active,
.gt-rank-pill--highlighted {
    background: #e8f1ff;
    color: #1f5fa8;
    border: 1px solid #a9cdfd;
}

.gt-ing-pill--key,
.gt-rank-pill--supporting {
    background: #eef9e7;
    color: #3d6f25;
    border: 1px solid #b9dda1;
}

.gt-ing-pill--base {
    background: #f1f3f5;
    color: #555;
    border: 1px solid #dee2e6;
}

.gt-ing-pill--more {
    background: transparent;
    color: #999;
    border: 1px dashed #ccc;
    cursor: default;
    border-radius: 3px;
}

/* --- Responsive --------------------------------------------------------- */
@media (max-width: 768px) {
  .gt-similar-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

@media (max-width: 480px) {
  .gt-similar-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .gt-card-body {
    padding: 10px 12px 12px;
  }
}


/* --- How we rank box --------------------------------------------------------- */

.gt-dupe-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 26px;
  padding: 14px 18px;
  border: 1px solid #a7ead8;
  border-radius: 10px;
  background: #e9fbf5;
  color: #075f4a;
  font-size: 15px;
  font-weight: 500;
}

.gt-dupe-alert strong {
  font-weight: 800;
}


.gt-rank-label {
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #666;
}

/* ==========================================================================
   SkincareLab Homepage
   ========================================================================== */

.sl-home {
  background: #fff;
  color: #222;
}

.sl-home-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.sl-home-hero {
  position: relative;

  width: 100vw;

  margin-left: calc(50% - 50vw);

  padding: 72px 0 64px;

  overflow: hidden;

  background:
    radial-gradient(
      circle at 78% 18%,
      rgba(255,195,107,.28),
      transparent 26%
    ),

    radial-gradient(
      circle at 85% 72%,
      rgba(169,205,253,.26),
      transparent 22%
    ),

    linear-gradient(
      180deg,
      #fffaf4 0%,
      #ffffff 100%
    );

  border-bottom: 1px solid #eee;
}

.sl-home-hero::before{
  z-index: 0;
  content:"";

  position:absolute;

  right:-120px;
  top:-60px;

  width:720px;
  height:720px;

  border-radius:50%;

  background:
    radial-gradient(
      circle,
      rgba(255,255,255,.7) 0%,
      rgba(255,255,255,0) 72%
    );

  pointer-events:none;
}

.sl-home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 480px;
  gap: 54px;
  align-items: center;
}

.sl-home-eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #8a4b00;
}

.sl-home-hero h1 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(42px, 5vw, 68px);
  line-height: .98;
  letter-spacing: -0.055em;
  color: #1f2933;
  z-index: 2;
  position: relative;
}

.sl-home-hero-sub {
  max-width: 520px;
  margin: 22px 0 0;
  font-size: 18px;
  line-height: 1.65;
  color: #4b5563;
  z-index: 2;
  position: relative;
}

.sl-home-search {
  display: flex;
  max-width: 620px;
  margin-top: 28px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 14px 38px rgba(18,38,63,.08);
  z-index: 2;
  position: relative;
}

.sl-home-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 18px 20px;
  font-size: 16px;
  outline: none;
}

.sl-home-search button {
  border: 0;
  padding: 0 26px;
  background: #2f343b;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.sl-home-popular {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 13px;
  color: #666;
}

.sl-home-popular a {
  padding: 5px 10px;
  border: 1px solid #dee2e6;
  border-radius: 999px;
  background: #fff;
  color: #444;
  text-decoration: none;
  font-weight: 700;
}

.sl-home-popular a:hover {
  background: #faf9f5;
  color: #111;
}

.sl-home-hero-visual {
  position: relative;
  min-height: 430px;
}

.sl-floating-card {
  position: absolute;
  width: 260px;
  padding: 20px;
  border: 1px solid #e5e5e5;
  border-radius: 18px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 22px 55px rgba(18,38,63,.12);
  backdrop-filter: blur(8px);
}

.sl-floating-card h3 {
  margin: 8px 0;
  font-size: 22px;
}

.sl-floating-card p {
  margin: 0;
  color: #555;
  font-size: 14px;
  line-height: 1.55;
}

.sl-card-label {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #8a4b00;
}

.sl-rating-pill {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #eef9e7;
  color: #3d6f25;
  border: 1px solid #b9dda1;
  font-size: 12px;
  font-weight: 800;
}

.sl-floating-card-ingredient {
  top: 20px;
  right: 20px;
}

.sl-floating-card-dupe {
  left: 0;
  top: 155px;
}

.sl-floating-card-compare {
  right: 0;
  bottom: 20px;
}

.sl-home-section {
  padding: 64px 0;
}

.sl-home-section-soft {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);

  background: #fafafa;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.sl-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.sl-section-header h2 {
  margin: 0 0 6px;
  font-size: clamp(28px, 3vw, 38px);
  letter-spacing: -0.035em;
}

.sl-section-header p {
  margin: 0;
  color: #666;
  font-size: 16px;
}

.sl-section-header > a {
  color: #8a4b00;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.sl-goal-grid,
.sl-feature-grid {
  display: grid;
  gap: 18px;
}

.sl-goal-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.sl-goal-card {
  min-height: 180px;
  padding: 20px 16px;
  border: 1px solid #e5e5e5;
  border-radius: 18px;
  background: #fff;
  text-align: center;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 10px 28px rgba(18,38,63,.045);
}

.sl-goal-card:hover,
.sl-tool-card:hover,
.sl-feature-card:hover,
.sl-article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 45px rgba(18,38,63,.10);
}

.sl-goal-icon {
  display: inline-flex;
  width: 75px;
  height: 75px;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  border-radius: 50%;
  background: #fff3df;
  color: #8a4b00;
  border: 1px solid #ffc46b;
  font-size: 22px;
}

.sl-goal-icon-img {
  width: 45px;
  height: 45px;
  object-fit: contain;
}

.sl-goal-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.25;
}

.sl-goal-card p {
  margin: 0;
  color: #666;
  font-size: 13px;
  line-height: 1.5;
}

.sl-tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.sl-home-section-soft .sl-home-container {
  display: flex;
  flex-direction: column;
}

.sl-home-section-soft .sl-tool-grid {
  width: 100%;
}

.sl-tool-card {
  padding: 34px;
  border: 1px solid #e5e5e5;
  border-radius: 18px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 10px 28px rgba(18,38,63,.045);
  min-height: 240px;
}

.sl-tool-icon {
  display: inline-flex;
  width: 54px;
  height: 54px;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: 50%;
  background: #e8f1ff;
  color: #1f5fa8;
  font-size: 24px;
  font-weight: 800;
}

.sl-tool-card h3 {
  margin: 0 0 8px;
  font-size: 24px;
}

.sl-tool-card p {
  margin: 0 0 16px;
  color: #666;
  line-height: 1.6;
  font-size: 16px;
  max-width: 420px;
}

.sl-tool-card strong,
.sl-feature-card strong,
.sl-article-card strong {
  color: #8a4b00;
}

.sl-feature-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.sl-feature-card {
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 10px 28px rgba(18,38,63,.045);
  display: flex;
  flex-direction: column;
}

.sl-feature-image {
  height: 130px;
  background: #faf9f5;
  overflow: hidden;
}

.sl-feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sl-feature-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;  
}

.sl-feature-body h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.sl-feature-body p {
  margin: 0 0 12px;
  color: #666;
  font-size: 13px;
  line-height: 1.45;
  flex:1;
}
.sl-feature-body strong {
  margin-top: auto;
}

.sl-article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.sl-article-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #e5e5e5;
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 10px 28px rgba(18,38,63,.045);
}

.sl-article-thumb {
  height: 220px;
  background: #faf9f5;
}

.sl-article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sl-article-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px;
}

.sl-article-body span {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f1f3f5;
  color: #555;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.sl-article-body h3 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.3;
}

.sl-article-body p {
  margin: 0 0 12px;
  color: #666;
  font-size: 14px;
  line-height: 1.6;
  flex: 1;
}

.sl-article-body strong {
  margin-top: auto;
}

.sl-home-stats {
  padding: 28px 0 64px;
}

.sl-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: 1px solid #e5e5e5;
  border-radius: 18px;
  background: #faf9f5;
  overflow: hidden;
}

.sl-stats-grid div {
  padding: 24px;
  text-align: center;
  border-right: 1px solid #e5e5e5;
}

.sl-stats-grid div:last-child {
  border-right: none;
}

.sl-stats-grid strong {
  display: block;
  font-size: 24px;
  line-height: 1.1;
}

.sl-stats-grid span {
  display: block;
  margin-top: 6px;
  color: #666;
  font-size: 13px;
}

/* Responsive */
@media (max-width: 980px) {
  .sl-home-hero-grid {
    grid-template-columns: 1fr;
  }

  .sl-home-hero-visual {
    display: none;
  }

  .sl-goal-grid,
  .sl-feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }


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

}

@media (max-width: 768px) {

  .sl-feature-grid {
    grid-template-columns: 1fr;
  }

  .sl-feature-card {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 16px;
    align-items: center;
  }

  .sl-feature-image {
    margin-left:5px;
  }

  .sl-feature-body {
    padding: 16px 16px 16px 0;
  }

  .sl-feature-body h3 {
    font-size: 20px;
  }

  .sl-feature-body p {
    margin-bottom: 12px;
  }

}

@media (max-width: 640px) {
  .sl-home-hero {
    padding: 48px 0;
  }

  .sl-home-hero h1 {
    font-size: 40px;
  }

  .sl-home-search {
    flex-direction: column;
  }

  .sl-home-search button {
    padding: 14px 18px;
  }

  .sl-section-header {
    align-items: flex-start;
    flex-direction: column;
  }

    .sl-tool-grid {
    grid-template-columns: 1fr;
  }

  .sl-goal-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .sl-stats-grid div {
    border-right: 0;
    border-bottom: 1px solid #e5e5e5;
  }

  .sl-article-thumb {
    height: 180px;
  }
}

/* ==========================================================================
   Like / Dislike reactions
   ========================================================================== */

.sl-reactions {
  display: inline-flex;
  gap: 8px;
  margin: 16px 0;
}

.sl-reactions-label {
  margin-bottom: 2px;
  font-size: 10px;
}

.sl-reaction-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 14px;
  border: 1px solid #dee2e6;
  border-radius: 999px;
  background: #f1f3f5;
  color: #444;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.sl-reaction-btn:hover,
.sl-reaction-btn:focus,
.sl-reaction-btn:active {
  background: #e9ecef !important;
  border-color: #dee2e6 !important;
  color: #444 !important;
}

.sl-reaction-btn--like.is-active:hover,
.sl-reaction-btn--like.is-active:focus,
.sl-reaction-btn--like.is-active:active {
  background: #eef9e7 !important;
  border-color: #b9dda1 !important;
  color: #3d6f25 !important;
}

.sl-reaction-btn--dislike.is-active:hover,
.sl-reaction-btn--dislike.is-active:focus,
.sl-reaction-btn--dislike.is-active:active {
  background: #fbe4e4 !important;
  border-color: rgba(127,29,29,.35) !important;
  color: #7f1d1d !important;
}

.sl-reaction-btn:focus:not(:focus-visible) {
  outline: none;
}

.sl-reaction-btn:focus-visible {
  outline: 2px solid #8a4b00;
  outline-offset: 2px;
}

.sl-reaction-btn:disabled {
  opacity: .6;
  cursor: default;
}

.sl-reaction-icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.sl-reaction-btn--like.is-active {
  background: #eef9e7;
  border-color: #b9dda1;
  color: #3d6f25;
}

.sl-reaction-btn--dislike.is-active {
  background: #fbe4e4;
  border-color: rgba(127,29,29,.35);
  color: #7f1d1d;
}

/* ==========================================================================
   Report-an-issue flag button + modal
   ========================================================================== */

.sl-flag-slot {
  display: flex;
  justify-content: center;
  margin: 40px 0 20px;
  padding-top: 20px;
  padding-bottom: 32px;
  border-top: 1px solid #eee;
}

.sl-flag-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 14px;
  border: 1px solid rgba(127,29,29,.25);
  border-radius: 999px;
  background: #fbe4e4;
  color: #555;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.sl-flag-btn:hover,
.sl-flag-btn:focus,
.sl-flag-btn:active {
  background: #f8d0d0 !important;
  color: #555 !important;
}

.sl-flag-btn:focus:not(:focus-visible) {
  outline: none;
}

.sl-flag-btn:focus-visible {
  outline: 2px solid #c0392b;
  outline-offset: 2px;
}

.sl-flag-icon {
  font-size: 14px;
  line-height: 1;
}

.sl-flag-form textarea {
  width: 100%;
  min-height: 120px;
  margin: 16px 0;
  padding: 12px 14px;
  border: 1px solid #dee2e6;
  border-radius: 10px;
  background: #fff;
  color: #333;
  font: inherit;
  font-size: 14px;
  resize: vertical;
}

.sl-flag-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid #3a3a3a;
  border-radius: 10px;
  background: #fff;
  color: #3a3a3a;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.sl-flag-submit:hover,
.sl-flag-submit:focus,
.sl-flag-submit:active {
  background: #fafafa !important;
  color: #111 !important;
}

.sl-flag-submit:disabled {
  opacity: .6;
  cursor: default;
}

.sl-flag-success {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #eef9e7;
  color: #3d6f25;
  font-size: 14px;
  font-weight: 600;
}

