/* ==========================================================================
   Botanical Sanctuary Stylesheet - Natural Medication
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,400&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap");

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #1f2421;
  background-color: #fdfbf7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-serif {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  color: #1b4332;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1,
.h1 {
  line-height: 1.25;
}

h2,
.h2 {
  line-height: 1.3;
}

/* Botanical Header & Sticky Navigation */
.navbar-botanical {
  background: rgba(253, 251, 247, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(27, 67, 50, 0.08);
  box-shadow: 0 2px 12px rgba(27, 67, 50, 0.04);
  padding-top: 0.45rem !important;
  padding-bottom: 0.45rem !important;
  transition: all 0.3s ease;
}

.navbar-botanical .container {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.navbar-botanical .navbar-brand,
.navbar-mainnavigation .navbar-brand {
  height: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
}

.navbar-botanical .navbar-brand img,
.navbar-mainnavigation .navbar-brand-image img,
.navbar-brand-logo-normal {
  height: 48px !important;
  max-height: 48px !important;
  width: auto !important;
  top: auto !important;
  transform: none !important;
  display: block !important;
  transition: opacity 0.2s ease;
}

.navbar-botanical .navbar-brand:hover img,
.navbar-botanical .navbar-brand:hover .navbar-brand-logo-normal {
  opacity: 0.92;
  transform: none !important;
}

.navbar-botanical .navbar-collapse {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
}

.navbar-botanical .navbar-nav,
.navbar-mainnavigation > .container > .collapse > .navbar-nav:last-child {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 1.25rem !important;
  margin: 0 !important;
  padding: 0 !important;
}

.navbar-botanical .nav-item {
  display: flex;
  align-items: center;
}

.navbar-botanical .nav-link {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #2d6a4f !important;
  padding: 0.4rem 0.5rem !important;
  margin: 0 !important;
  line-height: 1.4;
  position: relative;
  transition: color 0.2s ease;
}

.navbar-botanical .nav-link:hover,
.navbar-botanical .nav-link.active {
  color: #1b4332 !important;
}

.navbar-botanical .nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0.5rem;
  right: 0.5rem;
  height: 2px;
  background-color: #52b788;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.navbar-botanical .nav-link:hover::after,
.navbar-botanical .nav-link.active::after {
  transform: scaleX(1);
}

.header-nav-divider {
  width: 1px;
  height: 22px;
  background-color: rgba(27, 67, 50, 0.18);
  align-self: center;
}

/* Multilingual Switcher Pills */
.language-switcher-botanical {
  display: inline-flex !important;
  align-items: center !important;
  align-self: center !important;
  background-color: rgba(216, 243, 220, 0.45);
  border: 1px solid rgba(27, 67, 50, 0.12);
  border-radius: 50px;
  padding: 3px 6px;
  margin: 0 !important;
  line-height: 1;
}

.language-switcher-botanical .lang-pill {
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  padding: 4px 10px !important;
  border-radius: 50px;
  color: #2d6a4f !important;
  text-decoration: none;
  line-height: 1.2;
  transition: all 0.2s ease;
}

.language-switcher-botanical .lang-pill:hover {
  color: #1b4332 !important;
  text-decoration: none;
}

.language-switcher-botanical .lang-pill.active {
  background-color: #1b4332 !important;
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(27, 67, 50, 0.2);
}

/* Page Layout Spacing Harmonization */
.bp-page-content.main-section {
  padding-top: 0 !important;
}

.section.section-default {
  padding-top: 1.25rem !important;
  padding-bottom: 2.5rem !important;
}

.maincontent-wrap > .frame:first-child,
.subcontent-wrap > .frame:first-child,
.section-column > .frame:first-child,
#c3.frame,
#c30.frame {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.subcontent-wrap .news-list-view {
  padding-top: 0 !important;
}

.botanical-sidebar-wrapper {
  margin-top: 0 !important;
}

/* Footer Brand Link */
.footer-brand-link {
  display: inline-block;
  padding: 8px 16px;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.footer-brand-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.footer-brand-logo {
  height: 46px;
  width: auto;
  display: block;
}

/* Botanical Hero Section */
.hero-botanical {
  background: linear-gradient(135deg, rgba(216, 243, 220, 0.4) 0%, rgba(253, 251, 247, 1) 100%);
  padding: 4.5rem 0 3.5rem;
  border-bottom: 1px solid rgba(27, 67, 50, 0.06);
}

.hero-botanical .hero-eyebrow {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #52b788;
  margin-bottom: 0.75rem;
}

.hero-botanical .hero-title {
  font-size: 2.85rem;
  color: #1b4332;
  margin-bottom: 1.25rem;
}

.hero-botanical .hero-subtitle {
  font-size: 1.15rem;
  color: #3f4f42;
  max-width: 620px;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero-botanical .search-botanical-wrapper {
  position: relative;
  max-width: 580px;
}

.hero-botanical .form-control-botanical {
  height: 56px;
  padding-left: 3rem;
  padding-right: 1.5rem;
  font-size: 1rem;
  border-radius: 50px;
  border: 1px solid rgba(27, 67, 50, 0.15);
  background-color: #ffffff;
  box-shadow: 0 8px 24px rgba(27, 67, 50, 0.08);
  transition: all 0.25s ease;
}

.hero-botanical .form-control-botanical:focus {
  border-color: #2d6a4f;
  box-shadow: 0 8px 28px rgba(27, 67, 50, 0.16);
  outline: none;
}

.hero-botanical .search-icon {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: #2d6a4f;
  font-size: 1.1rem;
}

.hero-botanical .quick-search-tags {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.hero-botanical .quick-search-tags .tag-label {
  font-size: 0.8rem;
  color: #829584;
  font-weight: 600;
}

.hero-botanical .quick-search-tags .tag-pill {
  font-size: 0.78rem;
  font-weight: 600;
  color: #1b4332;
  background-color: #ffffff;
  border: 1px solid rgba(27, 67, 50, 0.1);
  border-radius: 50px;
  padding: 3px 12px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.hero-botanical .quick-search-tags .tag-pill:hover {
  background-color: #1b4332;
  color: #ffffff;
  border-color: #1b4332;
}

/* Medicinal Plant & Article Cards */
.botanical-card,
.news-item-card {
  background-color: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(27, 67, 50, 0.08);
  box-shadow: 0 4px 20px rgba(27, 67, 50, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.botanical-card:hover,
.news-item-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(27, 67, 50, 0.12);
}

.botanical-card .card-media-wrapper,
.news-item-card .card-media-wrapper {
  position: relative;
  overflow: hidden;
  padding-top: 60%;
  background-color: #e8f0e9;
}

.botanical-card .card-img-zoom,
.news-item-card .card-img-zoom {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.botanical-card:hover .card-img-zoom,
.news-item-card:hover .card-img-zoom {
  transform: scale(1.05);
}

.botanical-card .category-badge-floating,
.news-item-card .category-badge-floating {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background-color: rgba(253, 251, 247, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #1b4332;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  border: 1px solid rgba(27, 67, 50, 0.1);
}

.botanical-card .card-body-botanical,
.news-item-card .card-body-botanical {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.botanical-card .latin-name,
.news-item-card .latin-name {
  font-style: italic;
  color: #2d6a4f;
  font-size: 0.88rem;
  margin-bottom: 0.4rem;
}

.botanical-card .card-title-botanical,
.news-item-card .card-title-botanical {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  color: #1b4332;
  line-height: 1.35;
}

.botanical-card .card-title-botanical a,
.news-item-card .card-title-botanical a {
  color: #1b4332;
  text-decoration: none;
  transition: color 0.2s ease;
}

.botanical-card .card-title-botanical a:hover,
.news-item-card .card-title-botanical a:hover {
  color: #2d6a4f;
  text-decoration: none;
}

.botanical-card .card-excerpt,
.news-item-card .card-excerpt {
  font-size: 0.95rem;
  color: #5d7060;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.botanical-card .card-meta-footer,
.news-item-card .card-meta-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(27, 67, 50, 0.08);
  padding-top: 1rem;
  font-size: 0.82rem;
  color: #829584;
}

.botanical-card .card-meta-footer .read-time,
.news-item-card .card-meta-footer .read-time {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
}

.botanical-card .card-meta-footer .btn-read-more,
.news-item-card .card-meta-footer .btn-read-more {
  color: #1b4332;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: transform 0.2s ease;
}

.botanical-card .card-meta-footer .btn-read-more:hover,
.news-item-card .card-meta-footer .btn-read-more:hover {
  transform: translateX(3px);
  color: #2d6a4f;
}

/* Quick-Facts Botanical Sidebar Widget */
.botanical-quick-facts {
  background-color: rgba(216, 243, 220, 0.35);
  border: 1px solid rgba(27, 67, 50, 0.1);
  border-left: 4px solid #1b4332;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.botanical-quick-facts .facts-title {
  font-size: 1.2rem;
  color: #1b4332;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.botanical-quick-facts .fact-item {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px dashed rgba(27, 67, 50, 0.12);
  font-size: 0.92rem;
}

.botanical-quick-facts .fact-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.botanical-quick-facts .fact-label {
  font-weight: 600;
  color: #2d6a4f;
}

.botanical-quick-facts .fact-value {
  font-weight: 500;
  color: #1f2421;
  text-align: right;
}

/* Tabbed Dosage & Preparation Card */
.botanical-dosage-card {
  background-color: #ffffff;
  border: 1px solid rgba(27, 67, 50, 0.1);
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(27, 67, 50, 0.04);
  padding: 1.75rem;
  margin: 2rem 0;
}

.botanical-dosage-card .dosage-title {
  font-size: 1.35rem;
  color: #1b4332;
  margin-bottom: 1.25rem;
}

.botanical-dosage-card .nav-pills-botanical {
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.botanical-dosage-card .nav-pills-botanical .nav-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: #2d6a4f;
  background-color: #f4fbf5;
  border: 1px solid rgba(27, 67, 50, 0.08);
  border-radius: 50px;
  padding: 0.45rem 1.25rem;
  transition: all 0.2s ease;
}

.botanical-dosage-card .nav-pills-botanical .nav-link.active {
  background-color: #1b4332;
  color: #ffffff;
  border-color: #1b4332;
}

.botanical-dosage-card .tab-pane-dosage {
  font-size: 0.98rem;
  color: #3f4f42;
  line-height: 1.7;
}

.botanical-dosage-card .tab-pane-dosage ul {
  padding-left: 1.25rem;
  margin-bottom: 0;
}

.botanical-dosage-card .tab-pane-dosage ul li {
  margin-bottom: 0.5rem;
}

/* Medical Safety Disclaimer Box */
.medical-disclaimer-box {
  background-color: rgba(212, 163, 115, 0.12);
  border: 1px solid rgba(212, 163, 115, 0.35);
  border-left: 4px solid #d4a373;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}

.medical-disclaimer-box .disclaimer-heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #8c5d2c;
  margin-bottom: 0.4rem;
}

.medical-disclaimer-box p {
  font-size: 0.9rem;
  color: #5d4a36;
  line-height: 1.6;
  margin-bottom: 0;
}

/* Rich Botanical Footer */
.footer-botanical {
  background-color: #1b4332;
  color: #d8f3dc;
  padding: 2.5rem 0 2rem;
  margin-top: 4rem;
}

.footer-botanical .footer-heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  color: #ffffff;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-botanical .footer-heading a {
  color: #ffffff !important;
  text-decoration: none !important;
  transition: color 0.2s ease;
}

.footer-botanical .footer-heading a:hover {
  color: #52b788 !important;
}

.footer-botanical .footer-heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background-color: #d4a373;
}

.footer-botanical .footer-links {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.footer-botanical .footer-links li {
  margin-bottom: 0.65rem;
}

.footer-botanical .footer-links li a {
  color: #d8f3dc;
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-botanical .footer-links li a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.footer-botanical .footer-bottom-bar {
  border-top: 1px solid rgba(216, 243, 220, 0.15);
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  font-size: 0.85rem;
  color: rgba(216, 243, 220, 0.7);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-botanical .footer-bottom-bar a {
  color: #d8f3dc;
  text-decoration: none;
}

.footer-botanical .footer-bottom-bar a:hover {
  color: #ffffff;
}

/* ==========================================================================
   Botanical Grid & Sidebar Layout
   ========================================================================== */

.botanical-grid-3cols,
.maincontent-wrap .botanical-grid-3cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem;
  margin-bottom: 2rem;
}

@media (max-width: 991px) {
  .botanical-grid-3cols,
  .maincontent-wrap .botanical-grid-3cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

@media (max-width: 575px) {
  .botanical-grid-3cols,
  .maincontent-wrap .botanical-grid-3cols {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.botanical-sidebar-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background-color: #ffffff;
}

.botanical-sidebar-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(27, 67, 50, 0.08);
}

.botanical-sidebar-card .sidebar-card-title a {
  color: #1b4332;
  transition: color 0.2s ease;
}

.botanical-sidebar-card .sidebar-card-title a:hover {
  color: #2d6a4f;
}

.object-fit-cover {
  object-fit: cover;
}

/* Two-column layout sidebar positioning & alignment */
@media (min-width: 992px) {
  .backendlayout-2_columns .section-row,
  .backendlayout-2_columns_25_75 .section-row,
  .backendlayout-2_columns_50_50 .section-row,
  .backendlayout-2_columns_offset_right .section-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 2rem !important;
    align-items: flex-start !important;
  }

  .backendlayout-2_columns .maincontent-wrap,
  .backendlayout-2_columns_25_75 .maincontent-wrap,
  .backendlayout-2_columns_50_50 .maincontent-wrap,
  .backendlayout-2_columns_offset_right .maincontent-wrap {
    flex: 1 1 0% !important;
    min-width: 0 !important;
    width: auto !important;
    max-width: 100% !important;
  }

  .backendlayout-2_columns .subcontent-wrap,
  .backendlayout-2_columns_25_75 .subcontent-wrap,
  .backendlayout-2_columns_50_50 .subcontent-wrap,
  .backendlayout-2_columns_offset_right .subcontent-wrap {
    flex: 0 0 350px !important;
    width: 350px !important;
    max-width: 350px !important;
    min-width: 350px !important;
  }
}

@media (min-width: 1200px) {
  .backendlayout-2_columns .maincontent-wrap,
  .backendlayout-2_columns_25_75 .maincontent-wrap,
  .backendlayout-2_columns_offset_right .maincontent-wrap {
    flex: 0 0 calc(80% - 1.6rem) !important;
    width: calc(80% - 1.6rem) !important;
    max-width: calc(80% - 1.6rem) !important;
  }

  .backendlayout-2_columns .subcontent-wrap,
  .backendlayout-2_columns_25_75 .subcontent-wrap,
  .backendlayout-2_columns_offset_right .subcontent-wrap {
    flex: 0 0 calc(20% - 0.4rem) !important;
    width: calc(20% - 0.4rem) !important;
    max-width: calc(20% - 0.4rem) !important;
    min-width: 0 !important;
  }
}

/* ==========================================================================
   Enriched Botanical Content Components
   ========================================================================== */

.botanical-hero-portal {
  background: linear-gradient(135deg, #f4fbf5 0%, #e8f5e9 100%);
  border: 1px solid #d8f3dc;
  border-radius: 1rem;
  padding: 2.5rem 2rem;
  margin-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
}

.botanical-hero-portal::before {
  content: "🌿";
  position: absolute;
  top: -15px;
  right: 15px;
  font-size: 8rem;
  opacity: 0.12;
  pointer-events: none;
}

.botanical-hero-portal h1,
.botanical-hero-portal .hero-title {
  color: #1b4332;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.botanical-hero-portal .lead-text {
  color: #2d6a4f;
  font-size: 1.15rem;
  line-height: 1.7;
  max-width: 800px;
}

.goal-nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.75rem;
}

.goal-card-item {
  background-color: #ffffff;
  border: 1px solid #d8f3dc;
  border-radius: 0.75rem;
  padding: 1.25rem 1rem;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.goal-card-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(27, 67, 50, 0.1);
  border-color: #52b788;
  text-decoration: none;
}

.goal-card-item .goal-icon {
  font-size: 2rem;
  line-height: 1;
}

.goal-card-item .goal-title {
  color: #1b4332;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0;
}

.goal-card-item .goal-subtitle {
  color: #52796f;
  font-size: 0.8rem;
  margin-bottom: 0;
}

/* Herbal Preparation Compass */
.compass-section {
  background-color: #ffffff;
  border: 1px solid #d8f3dc;
  border-radius: 1rem;
  padding: 2rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 4px 20px rgba(27, 67, 50, 0.04);
}

.compass-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.compass-card {
  background-color: #fdfbf7;
  border: 1px solid rgba(45, 106, 79, 0.15);
  border-radius: 0.75rem;
  padding: 1.25rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.compass-card:hover {
  transform: translateY(-3px);
  border-color: #52b788;
}

.compass-card .method-tag {
  display: inline-block;
  background-color: #d8f3dc;
  color: #1b4332;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 50rem;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.compass-card h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem;
  color: #1b4332;
  margin-bottom: 0.5rem;
}

.compass-card p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #354f52;
  margin-bottom: 0.5rem;
}

.compass-card .method-footer {
  font-size: 0.8rem;
  color: #2d6a4f;
  font-weight: 600;
  border-top: 1px dashed rgba(45, 106, 79, 0.2);
  padding-top: 0.5rem;
}

/* Botanical Editorial Pillars */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.pillar-card {
  background-color: #ffffff;
  border: 1px solid #d8f3dc;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 4px 16px rgba(27, 67, 50, 0.03);
}

.pillar-card .pillar-icon {
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
  line-height: 1;
}

.pillar-card h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem;
  color: #1b4332;
  margin-bottom: 0.5rem;
}

.pillar-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #40534c;
  margin-bottom: 0;
}

/* Dilution Table */
.botanical-table-wrapper {
  overflow-x: auto;
  border: 1px solid #d8f3dc;
  border-radius: 0.75rem;
  margin: 1.5rem 0;
  background-color: #ffffff;
}

.botanical-table {
  width: 100%;
  margin-bottom: 0;
  border-collapse: collapse;
}

.botanical-table th {
  background-color: #1b4332;
  color: #ffffff;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  padding: 0.9rem 1.25rem;
  font-size: 0.95rem;
  text-align: left;
}

.botanical-table td {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid #e8f5e9;
  font-size: 0.9rem;
  color: #2d4030;
}

.botanical-table tr:last-child td {
  border-bottom: none;
}

.botanical-table tr:nth-child(even) td {
  background-color: #fdfbf7;
}

/* Circadian Clock */
.circadian-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.circadian-step {
  background-color: #ffffff;
  border-radius: 0.75rem;
  border-left: 4px solid #52b788;
  border-top: 1px solid #d8f3dc;
  border-right: 1px solid #d8f3dc;
  border-bottom: 1px solid #d8f3dc;
  padding: 1.25rem;
}

.circadian-step.morning {
  border-left-color: #e9c46a;
}

.circadian-step.midday {
  border-left-color: #52b788;
}

.circadian-step.evening {
  border-left-color: #4a4e69;
}

.circadian-step.afternoon {
  border-left-color: #f4a261;
}

.circadian-step .time-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: #2d6a4f;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.circadian-step h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem;
  color: #1b4332;
  margin-bottom: 0.5rem;
}

.circadian-step p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #354f52;
  margin-bottom: 0;
}

/* Suppress legacy gray footer strip */
.footer-section-content,
.footer-section.footer-section-content,
#page-footer .footer-section-content {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
  border: none !important;
}

/* Suppress empty/unwanted paragraphs injected by RTE between flex grid items */
.row > p,
.oil-grid > p,
.pillar-grid > p,
.goal-nav-grid > p {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Oils & Essences Showcase Components */
.oil-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 1.5rem !important;
  margin: 1.75rem 0 !important;
}

@media (max-width: 768px) {
  .oil-grid {
    grid-template-columns: 1fr !important;
  }
}


.oil-profile-card {
  background-color: #ffffff;
  border: 1px solid rgba(27, 67, 50, 0.12);
  border-radius: 14px;
  padding: 1.5rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 4px 14px rgba(27, 67, 50, 0.04);
}

.oil-profile-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(27, 67, 50, 0.1);
  border-color: #2d6a4f;
}

.oil-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.oil-card-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  color: #1b4332;
  margin: 0;
}

.oil-latin-name {
  font-style: italic;
  font-size: 0.85rem;
  color: #52796f;
  display: block;
  margin-top: 0.2rem;
}

.oil-chemotype {
  display: inline-block;
  background-color: #edf6f9;
  color: #2b2d42;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  margin-bottom: 0.75rem;
}

.carrier-box {
  background-color: #fcfbf7;
  border: 1px solid rgba(181, 131, 90, 0.2);
  border-radius: 12px;
  padding: 1.25rem;
  height: 100%;
}

.carrier-box h5 {
  font-family: 'Playfair Display', Georgia, serif;
  color: #7f4f24;
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.science-callout {
  background-color: #f0f7f4;
  border-left: 4px solid #2d6a4f;
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
}

.formula-card {
  background: linear-gradient(135deg, #1b4332 0%, #2d6a4f 100%);
  color: #ffffff;
  border-radius: 14px;
  padding: 1.75rem;
  margin: 2rem 0;
}

/* Kitchen Pharmacy Grid */
.kitchen-pharmacy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.kitchen-card {
  background-color: #ffffff;
  border: 1px solid rgba(27, 67, 50, 0.1);
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 4px 12px rgba(27, 67, 50, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kitchen-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(27, 67, 50, 0.08);
  border-color: #52b788;
}

.kitchen-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.kitchen-card-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  color: #1b4332;
  margin: 0;
}

.kitchen-latin {
  font-style: italic;
  font-size: 0.8rem;
  color: #52796f;
  display: block;
}

.kitchen-bioactive {
  display: inline-block;
  background-color: #e8f5e9;
  color: #1b4332;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

/* Seasonal Protocol Grid */
.season-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.season-card {
  background-color: #ffffff;
  border-radius: 12px;
  border: 1px solid rgba(27, 67, 50, 0.1);
  padding: 1.25rem;
}

.season-badge {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  display: inline-block;
}

.season-spring {
  border-top: 4px solid #52b788;
}

.season-summer {
  border-top: 4px solid #e76f51;
}

.season-autumn {
  border-top: 4px solid #f4a261;
}

.season-winter {
  border-top: 4px solid #2a9d8f;
}

/* Sidebar News Cards, Search Widget & Containers */
.subcontent-wrap .botanical-grid-3cols,
aside .botanical-grid-3cols,
.sidebar .botanical-grid-3cols,
#c30 .botanical-grid-3cols,
.subcontent-wrap .frame-type-news_newsliststicky .botanical-grid-3cols,
.section-column.subcontent-wrap .botanical-grid-3cols {
  display: flex !important;
  flex-direction: column !important;
  grid-template-columns: 1fr !important;
  gap: 1rem !important;
}

.subcontent-wrap .botanical-card,
aside .botanical-card,
.sidebar .botanical-card,
#c30 .botanical-card,
.subcontent-wrap .frame-type-news_newsliststicky .botanical-card {
  width: 100% !important;
  max-width: 100% !important;
}

/* Sticky Sidebar Layout */
@media (min-width: 992px) {
  .subcontent-wrap {
    position: relative;
  }

  .botanical-sidebar-wrapper {
    position: sticky;
    top: 90px;
    max-height: calc(200vh - 110px);
    display: flex;
    flex-direction: column;
  }

  .botanical-sidebar-news-list {
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(45, 106, 79, 0.3) transparent;
  }

  .botanical-sidebar-news-list::-webkit-scrollbar {
    width: 6px;
  }

  .botanical-sidebar-news-list::-webkit-scrollbar-track {
    background: transparent;
  }

  .botanical-sidebar-news-list::-webkit-scrollbar-thumb {
    background-color: rgba(45, 106, 79, 0.3);
    border-radius: 10px;
  }

  .botanical-sidebar-news-list::-webkit-scrollbar-thumb:hover {
    background-color: rgba(45, 106, 79, 0.6);
  }
}

/* Botanical Search Widget Card */
.botanical-sidebar-search-card {
  border: 1px solid rgba(45, 106, 79, 0.15);
  background-color: #ffffff;
  box-shadow: 0 4px 16px rgba(27, 67, 50, 0.06);
}

.botanical-search-input-wrap .form-control {
  border: 1px solid rgba(45, 106, 79, 0.22);
  background-color: #f8faf8;
  color: #1e293b;
  box-shadow: none;
}

.botanical-search-input-wrap .form-control:focus {
  background-color: #ffffff;
  border-color: #2d6a4f;
  box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.15);
}

.botanical-filter-pills .btn-filter-pill {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 50px;
  border: 1px solid rgba(45, 106, 79, 0.18);
  background-color: #f1f8f3;
  color: #2d6a4f;
  transition: all 0.2s ease;
}

.botanical-filter-pills .btn-filter-pill:hover {
  background-color: #d8f3dc;
  border-color: #2d6a4f;
  color: #1b4332;
}

.botanical-filter-pills .btn-filter-pill.active {
  background-color: #2d6a4f;
  border-color: #2d6a4f;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(45, 106, 79, 0.25);
}

/* Botanical Sidebar Card Refinements - Photo Top, Text Below */
.botanical-sidebar-card {
  background-color: #ffffff;
  border: 1px solid rgba(27, 67, 50, 0.12);
  border-radius: 14px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  position: relative;
  overflow: hidden;
  padding: 0.65rem !important;
}

.botanical-sidebar-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(27, 67, 50, 0.1);
  border-color: #2d6a4f;
}

.botanical-sidebar-card > div.d-flex,
.botanical-sidebar-card .sidebar-card-inner {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 0.5rem !important;
}

.sidebar-card-thumb {
  width: 100% !important;
  height: 125px !important;
  overflow: hidden;
  border-radius: 10px;
  background-color: #f1f5f9;
}

.sidebar-thumb-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
  transition: transform 0.35s ease;
}

.botanical-sidebar-card:hover .sidebar-thumb-img {
  transform: scale(1.04);
}

.sidebar-card-content {
  padding: 0.15rem 0.25rem 0.25rem;
}

.sidebar-cat-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  background-color: #e8f5e9;
  color: #1b4332;
  padding: 2px 7px;
  border-radius: 6px;
  margin-bottom: 0.35rem;
}

.botanical-sidebar-card .sidebar-card-title {
  font-size: 0.88rem;
  line-height: 1.35;
  margin-bottom: 0.35rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.botanical-sidebar-card .sidebar-card-title a.sidebar-link {
  color: #1e293b;
  text-decoration: none;
  transition: color 0.2s ease;
}

.botanical-sidebar-card:hover .sidebar-card-title a.sidebar-link {
  color: #2d6a4f;
}

.sidebar-card-meta {
  font-size: 0.78rem;
  color: #64748b;
  margin-top: 0.25rem;
}

.sidebar-card-meta .read-arrow {
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  font-weight: bold;
}

.botanical-sidebar-card:hover .sidebar-card-meta .read-arrow {
  opacity: 1;
  transform: translateX(0);
}

#sidebar-no-results {
  border: 1px dashed rgba(45, 106, 79, 0.3);
  background-color: #fbfdfb;
}






