/*
Theme Name: Sustainability Bootstrap Pro (v3.6 Light Edition)
Theme URI: https://sustainabilityawakening.com
Author: Sustainability Awakening
Author URI: https://sustainabilityawakening.com
Description: 100% Light Authority Theme built on Bootstrap 5.3 with clean minimalist header, card view tools hub, card view article archives, and sticky AdSense monetization.
Version: 3.6.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: sa-bspro
*/

/* ── Custom Theme Design Tokens & Bootstrap Overrides ── */
:root {
  --bs-primary: #059669;
  --bs-primary-rgb: 5, 150, 105;
  --bs-success: #10b981;
  --bs-dark: #0f172a;
  --bs-body-bg: #f8fafc;
  --bs-body-color: #334155;
  --bs-font-sans-serif: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
  font-family: var(--bs-font-sans-serif);
  background-color: var(--bs-body-bg);
  color: var(--bs-body-color);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* Glassmorphic Navbar */
.sb-navbar {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  transition: all 0.25s ease;
}

.sb-brand-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25);
}

.sb-nav-link {
  font-weight: 600;
  font-size: 14.5px;
  color: #1e293b !important;
  padding: 8px 14px !important;
  transition: color 0.15s ease;
}

.sb-nav-link:hover {
  color: #059669 !important;
}

/* Search bar in nav */
.sb-search-input {
  border-radius: 50rem;
  padding-left: 1rem;
  padding-right: 2.5rem;
  font-size: 13.5px;
  border-color: #e2e8f0;
  background-color: #ffffff;
  transition: all 0.2s ease;
}

.sb-search-input:focus {
  border-color: #10b981;
  box-shadow: 0 0 0 0.2rem rgba(16, 185, 129, 0.2);
}

/* Card hover animation */
.sb-card {
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}

.sb-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 32px -4px rgba(15, 23, 42, 0.08) !important;
}

.sb-card-img-wrap {
  height: 220px;
  overflow: hidden;
  position: relative;
  background-color: #f1f5f9;
}

.sb-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.sb-card:hover .sb-card-img-wrap img {
  transform: scale(1.05);
}

/* Badges */
.badge-eco {
  background: #ecfdf5;
  color: #059669;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 50rem;
}

/* Sticky Sidebar Ad Container */
.sb-sticky-ad {
  position: sticky;
  top: 90px;
}

/* Ad Unit Container Styling */
.sb-ad-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px 10px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
  margin-bottom: 24px;
}

.sb-ad-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #94a3b8;
  margin-bottom: 8px;
}

/* Footer Styling - 100% Pure Light Theme with Crisp Dark Text */
.sb-footer {
  background: #ffffff !important;
  color: #334155 !important;
  padding: 60px 0 30px;
  margin-top: 80px;
  border-top: 1px solid #e2e8f0 !important;
}

.sb-footer h5 {
  color: #0f172a !important;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.sb-footer p, 
.sb-footer .text-muted,
.sb-footer .text-secondary {
  color: #475569 !important;
  font-size: 14.5px;
  line-height: 1.7;
}

.sb-footer a {
  color: #334155 !important;
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.15s ease;
}

.sb-footer a:hover {
  color: #059669 !important;
  text-decoration: underline;
}

.sb-footer .border-top {
  border-color: #e2e8f0 !important;
}

/* Single Article Body Text - Deep High Contrast on White Cards */
.article-content {
  color: #1e293b !important;
  font-size: 18.5px;
  line-height: 1.85;
}

.article-content h1, 
.article-content h2, 
.article-content h3, 
.article-content h4 {
  color: #0f172a !important;
  font-weight: 800;
  margin-top: 36px;
  margin-bottom: 16px;
  line-height: 1.3;
}

.article-content p {
  color: #1e293b !important;
  margin-bottom: 22px;
}

.article-content ul, 
.article-content ol {
  color: #1e293b !important;
  margin-bottom: 24px;
  padding-left: 24px;
}

.article-content li {
  margin-bottom: 8px;
}

.article-content strong, 
.article-content b {
  color: #0f172a !important;
  font-weight: 700;
}

.article-content blockquote {
  background: #f8fafc;
  border-left: 4px solid #059669;
  padding: 18px 24px;
  margin: 28px 0;
  border-radius: 0 12px 12px 0;
  color: #0f172a !important;
  font-style: italic;
}

/* Universal Override for In-Post Custom HTML & Legacy Classes */
.sa-article-wrapper,
.sa-article-container,
.article-content div,
.article-content section {
  background: transparent !important;
  color: #1e293b !important;
  border-color: #e2e8f0 !important;
}

/* Ensure all headings in the full article are bold deep slate */
.article-content h1, 
.article-content h2, 
.article-content h3, 
.article-content h4,
.article-content .sa-title,
.article-content .sa-main-title {
  color: #0f172a !important;
  font-weight: 800 !important;
}

/* Ensure all paragraphs and lists are clear dark slate */
.article-content p,
.article-content li,
.article-content span:not(.badge):not(.badge-eco):not(.sa-hub-tag) {
  color: #1e293b !important;
}

/* Clean White Styling for the 40s Countdown Hub inside article */
.sa-hub-box, 
.sa-timer-box {
  background: #f0fdf4 !important;
  border: 2px solid #22c55e !important;
  color: #14532d !important;
}

.sa-hub-title, 
.sa-timer-heading {
  color: #14532d !important;
  font-weight: 800 !important;
}

.sa-hub-desc, 
.sa-timer-desc, 
.sa-status-counter, 
.sa-status-text {
  color: #475569 !important;
}

.sa-clock-num, 
.sa-clock-display {
  color: #0f172a !important;
  font-weight: 800 !important;
/* Comprehensive Fix for All Articles (Key Takeaways, 60s Definitions, Callout Boxes) */
.article-content [style*="background"],
.article-content [style*="background-color"],
.article-content div[class*="box"],
.article-content div[class*="callout"],
.article-content div[class*="card"],
.article-content div[class*="takeaway"],
.article-content div[class*="summary"],
.article-content div[class*="definition"] {
  background: #f8fafc !important;
  color: #0f172a !important;
  border-color: #e2e8f0 !important;
}

/* Force all text inside any article container to be high-contrast dark */
.article-content [style*="color: #fff"],
.article-content [style*="color:#fff"],
.article-content [style*="color: white"],
.article-content [style*="color:white"],
.article-content [style*="color: rgb(255, 255, 255)"] {
  color: #0f172a !important;
}

/* Ensure strong and bold elements inside definitions and callouts stand out */
.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6,
.article-content strong,
.article-content b,
.article-content summary {
  color: #0f172a !important;
  font-weight: 800 !important;
}

/* Paragraphs and list items across all articles */
.article-content p,
.article-content li,
.article-content td,
.article-content th,
.article-content dd,
.article-content dt {
  color: #1e293b !important;
  line-height: 1.8 !important;
}

/* Clean border & pill styling for all inline elements */
.article-content table {
  border-collapse: collapse !important;
  width: 100% !important;
  margin: 24px 0 !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
}

.article-content th {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  font-weight: 700 !important;
  padding: 12px 16px !important;
  border: 1px solid #e2e8f0 !important;
}

.article-content td {
  padding: 12px 16px !important;
  border: 1px solid #e2e8f0 !important;
}

/* Clean Accent Links inside Articles */
.article-content a:not(.btn):not(.sa-cta-btn):not(.sa-action-button) {
  color: #059669 !important;
  text-decoration: underline !important;
  font-weight: 600 !important;
}

.article-content a:not(.btn):not(.sa-cta-btn):not(.sa-action-button):hover {
  color: #047857 !important;
}
