/*
Theme Name: Devotional
Theme URI: https://github.com/faithhopelovetech-ctrl/WP_Christian_Devotional
Author: Antigravity
Description: Custom lightweight multilingual theme for Daily Christian Devotional website.
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: devotional
*/

/* ==========================================================================
   Design System & Variables
   ========================================================================== */
:root {
  --color-bg: #faf7f2; /* Soft warm cream background */
  --color-bg-alt: #f3edd3; /* Warm gold tint background */
  --color-text: #203533; /* Deep dark slate-teal text */
  --color-text-muted: #536b69;
  --color-primary: #2a5c5a; /* Deep Slate Teal from image */
  --color-primary-hover: #1e4442;
  --color-accent: #fcd175; /* Soft Butter Yellow from image */
  --color-accent-light: #fef9eb;
  --color-border: #e6dfd2; /* Soft warm border */
  --color-card-bg: #ffffff;
  
  --color-pastel-rose: #be5a43; /* Solid Terracotta/Rust from image */
  --color-pastel-gold: #fcd175;
  --color-pastel-teal: #2a5c5a;

  --font-en: 'Noto Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-si: 'Noto Sans Sinhala', system-ui, -apple-system, sans-serif;
  --font-ta: 'Noto Sans Tamil', system-ui, -apple-system, sans-serif;

  --max-width: 1200px;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
  --radius: 12px;
  --radius-sm: 8px;
}

/* ==========================================================================
   Language-Aware Typography Stack
   ========================================================================== */
html {
  font-family: var(--font-en);
  line-height: 1.6;
  background-color: var(--color-bg);
  color: var(--color-text);
  scroll-behavior: smooth;
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: inherit;
}

/* Sinhala Locale Overrides */
html[lang^="si"] {
  font-family: var(--font-si);
  line-height: 1.8;
}

/* Tamil Locale Overrides */
html[lang^="ta"] {
  font-family: var(--font-ta);
  line-height: 1.8;
}

body {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: #faf5e6; /* Soft warm yellow/cream outer background! */
}

.site-page-wrapper {
  max-width: 1200px;
  margin: 2rem auto;
  background-color: #ffffff; /* Main content container backdrop is white */
  border-radius: var(--radius);
  box-shadow: 0 15px 40px rgba(42, 92, 90, 0.08); /* Light professional teal shadow */
  
  /* Very thin green-bluish border with gradient */
  border: 1.5px solid transparent;
  background-image: linear-gradient(#ffffff, #ffffff), linear-gradient(135deg, rgba(42, 92, 90, 0.25), rgba(93, 165, 144, 0.15));
  background-origin: border-box;
  background-clip: padding-box, border-box;
  
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 4rem);
}

@media (max-width: 1240px) {
  .site-page-wrapper {
    margin: 1rem;
    min-height: calc(100vh - 2rem);
  }
}

@media (max-width: 480px) {
  .site-page-wrapper {
    margin: 0.5rem;
    min-height: calc(100vh - 1rem);
    border-radius: var(--radius-sm);
  }
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-primary-hover);
  text-decoration: underline;
}

/* ==========================================================================
   Core Layout
   ========================================================================== */
.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

/* Mobile-First Site Header (Default for screens < 900px) */
.site-header {
  background-color: var(--color-primary); /* Deep Slate Teal #2a5c5a */
  color: #ffffff; /* White contrast text */
  padding: 1.25rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.site-header-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
  width: 100%;
}

.site-branding .site-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
}

.site-branding .site-title a {
  color: #ffffff;
  text-decoration: none;
}

.site-logo-center {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background-color: rgba(255, 255, 255, 0.08); /* Translucent white pill */
  padding: 0.4rem 1.2rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.logo-word {
  font-family: var(--font-en);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--color-pastel-gold); /* Gold labels */
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.logo-word .hebrew {
  font-size: 1rem;
  font-weight: 400;
  opacity: 0.95;
}

.header-cross-large {
  width: 28px;
  height: 38px;
  display: block;
}

.main-navigation {
  width: 100%;
  display: flex;
  justify-content: center;
}

.account-menu {
  display: flex;
  align-items: center;
}

.account-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.08);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.2s ease;
}

.account-link:hover {
  background-color: var(--color-pastel-rose);
  color: #ffffff;
  text-decoration: none;
}

/* Hide Header Language Switcher */
.lang-switcher {
  display: none !important;
}

/* Desktop Scale Up (>= 900px) */
@media (min-width: 900px) {
  .site-header {
    padding: 0.85rem 0;
  }
  
  .site-header-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1.2fr;
    align-items: center;
    gap: 1.5rem;
    text-align: left;
  }
  
  .site-branding .site-title {
    font-size: 1.15rem;
  }
  
  .site-logo-center {
    margin: 0 auto;
    padding: 0.5rem 1.5rem;
  }
  
  .header-cross-large {
    width: 34px;
    height: 46px;
  }
  
  .main-navigation {
    width: auto;
    justify-content: flex-end;
  }
}

/* ==========================================================================
   Hero Trilingual Slider Layout
   ========================================================================== */
.hero-slider-container {
  position: relative;
  width: 100%;
  margin-bottom: 3.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-slider-nav {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  background-color: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  padding: 5px;
  border-radius: 30px;
  box-shadow: var(--shadow);
  align-self: center;
  z-index: 10;
}

.slider-nav-tab {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text-muted);
  padding: 0.6rem 1.5rem;
  border-radius: 25px;
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 100px;
}

.slider-nav-tab:hover {
  color: var(--color-primary);
  background-color: rgba(56, 148, 119, 0.05);
}

.slider-nav-tab.active {
  background-color: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(56, 148, 119, 0.2);
  border: 1px solid var(--color-pastel-gold);
}

/* Adjust line height for non-latin scripts in tabs */
html[lang^="si"] .slider-nav-tab,
html[lang^="ta"] .slider-nav-tab {
  line-height: 1.2;
}

/* Mobile-First Hero Image-Background Overlay Slider */
.hero-slider {
  position: relative;
  width: 100%;
  min-height: 380px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  background-color: #0c1a15;
}

@media (min-width: 768px) {
  .hero-slider {
    min-height: 480px;
  }
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.slide-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.slide-bg-fallback {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-primary);
  z-index: 1;
}

.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(12, 26, 21, 0.62); /* Darkening overlay mask for readable contrast */
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end; /* Align overlay card to the right side of the slider */
  padding: 2.5rem 6.5rem; /* Large padding to clear the arrows */
  box-sizing: border-box;
}

@media (max-width: 900px) {
  .hero-content {
    padding: 2.5rem 3.5rem;
    justify-content: center;
  }
}

.scripture-card-hero {
  background-color: rgba(250, 247, 242, 0.05); /* 95% transparent creamy background */
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  padding: 2.5rem;
  width: 100%;
  max-width: 620px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(16px) saturate(120%);
}

.devotional-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-pastel-gold); /* Gold Meta for contrast */
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-slider-container .devotional-meta {
  color: #96e0ff; /* Premium Ice Blue */
}

.hero-slider-container .meta-leaf-icon {
  color: #96e0ff; /* Premium Ice Blue */
}

.meta-leaf-icon {
  color: var(--color-pastel-gold);
  flex-shrink: 0;
}

.devotional-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #ffffff; /* White title */
  margin: 0 0 1rem 0;
  line-height: 1.3;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.hero-slider-container .devotional-title {
  color: var(--color-accent);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

@media (min-width: 768px) {
  .devotional-title {
    font-size: 2rem;
  }
}

.scripture-body-hero {
  font-size: 1rem;
  font-style: italic;
  line-height: 1.6;
  color: #ffffff; /* White body text */
  margin: 0 0 1.5rem 0;
  font-family: var(--font-en);
  border-left: none;
  padding-left: 0;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

@media (min-width: 768px) {
  .scripture-body-hero {
    font-size: 1.1rem;
  }
}

.slide-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15); /* Light border for dark backdrop */
  padding-top: 1.25rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.scripture-ref-hero {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-pastel-gold); /* Gold citation text */
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.hero-actions {
  margin: 0;
}

.btn-hero {
  padding: 0.75rem 1.75rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff !important;
  background-color: var(--color-pastel-rose) !important; /* Solid Terracotta/Rose background */
  border-radius: 30px;
  box-shadow: 0 4px 10px rgba(190, 90, 67, 0.25);
  border: 1px solid transparent;
  transition: all 0.2s ease;
  display: inline-flex;
}

.btn-hero:hover {
  transform: translateY(-2px);
  background-color: var(--color-pastel-gold) !important; /* Hover to Gold Yellow */
  color: var(--color-primary) !important; /* Muted Teal text */
  box-shadow: 0 4px 12px rgba(252, 209, 117, 0.35);
  text-decoration: none;
}

/* Side Navigation Arrows */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background-color: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(2px);
}

.slider-arrow:hover {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: #1f483a;
  box-shadow: 0 0 10px rgba(248, 213, 117, 0.4);
}

.prev-arrow {
  left: 1rem;
}

.next-arrow {
  right: 1rem;
}

@media (max-width: 600px) {
  .slider-arrow {
    width: 36px;
    height: 36px;
  }
  .prev-arrow {
    left: 0.5rem;
  }
  .next-arrow {
    right: 0.5rem;
  }
}

/* Account Link / Login Icon */
.account-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
}

.site-main {
  flex: 1;
  padding: 2.5rem 0;
}

/* ==========================================================================
   Home Hero Card
   ========================================================================== */
.hero-card {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  margin-bottom: 3rem;
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .hero-card {
    grid-template-columns: 1fr 1fr;
  }
}

.hero-media {
  position: relative;
  min-height: 250px;
  background-color: var(--color-bg-alt);
}

.hero-media img,
.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.hero-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.devotional-meta {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-accent);
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.devotional-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 1rem 0;
  line-height: 1.3;
}

.scripture-highlight {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--color-text-muted);
  border-left: 3px solid var(--color-accent);
  padding-left: 1rem;
  margin: 0 0 1.5rem 0;
}

.hero-excerpt {
  margin-bottom: 1.5rem;
  color: var(--color-text-muted);
}

.btn {
  display: inline-block;
  background-color: var(--color-primary);
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn:hover {
  background-color: var(--color-primary-hover);
  color: #ffffff;
  text-decoration: none;
}

/* ==========================================================================
   Devotional Grid
   ========================================================================== */
.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--color-border);
  padding-bottom: 0.5rem;
}

.devotional-slider-wrapper {
  overflow: hidden;
  width: 100%;
  position: relative;
}

.devotional-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 2rem;
  overflow-x: hidden; /* Hide horizontal scrollbar */
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 0.5rem 0.25rem 1.5rem 0.25rem;
}

.devotional-card {
  flex: 0 0 calc(100% - 1rem);
  max-width: calc(100% - 1rem);
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@media (min-width: 768px) {
  .devotional-card {
    flex: 0 0 calc(33.333% - 1.333rem);
    max-width: calc(33.333% - 1.333rem);
  }
}

@media (min-width: 1024px) {
  .devotional-card {
    flex: 0 0 calc(25% - 1.5rem);
    max-width: calc(25% - 1.5rem);
  }
}

.devotional-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-media {
  height: 140px; /* Small, compact thumbnail height matching mockup */
  background-color: var(--color-bg-alt);
  position: relative;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: center;
  align-items: center;
}

.card-title {
  font-size: 0.95rem; /* Smaller text size for cards */
  font-weight: 700;
  color: var(--color-primary);
  margin: 0;
  line-height: 1.3;
  text-align: center;
}

.card-excerpt {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  flex: 1;
}

/* ==========================================================================
   Single Devotional Layout
   ========================================================================== */
.devotional-detail {
  max-width: 800px;
  margin: 0 auto;
}

/* Scripture Reference Card at Top */
.scripture-card {
  background-color: var(--color-accent-light);
  border: 1px solid var(--color-accent);
  border-top: 4px solid var(--color-accent);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
}

.scripture-ref {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
  display: block;
}

.scripture-body {
  font-size: 1.1rem;
  font-style: italic;
  line-height: 1.7;
  color: var(--color-text);
  margin: 0;
}

/* Devotional Title */
.single-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 1rem 0;
}

.single-meta {
  display: flex;
  gap: 1.5rem;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 1rem;
}

/* Media Players */
.media-embed {
  margin: 2rem 0;
  background-color: #000000;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.media-embed video {
  width: 100%;
  display: block;
}

.audio-player-container {
  margin: 2rem 0;
  padding: 1rem 1.5rem;
  background-color: var(--color-bg-alt);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.audio-player-container audio {
  flex: 1;
  min-width: 240px;
}

.audio-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-primary);
}

/* Content Body */
.devotional-body {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 3rem;
}

.devotional-body p {
  margin: 0 0 1.5rem 0;
}

/* Share / Comments Footer */
.devotional-footer {
  border-top: 1px solid var(--color-border);
  padding-top: 2rem;
  margin-top: 3rem;
}

/* ==========================================================================
   Footer Layout
   ========================================================================== */
.site-footer {
  background-color: var(--color-primary); /* Deep Slate Teal #2a5c5a */
  padding: 3rem 0;
  text-align: center;
  font-size: 0.95rem;
  color: #ffffff;
}

.site-footer p {
  margin: 0.5rem 0;
  color: #e2eeea; /* Muted teal-white text for footer */
}

.site-footer a {
  color: var(--color-pastel-gold);
  font-weight: 700;
  text-decoration: none;
}

.site-footer a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* ==========================================================================
   Comments & Community Login Panel
   ========================================================================== */
.login-to-comment {
  background-color: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--color-pastel-rose);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  margin: 3rem 0;
  box-shadow: var(--shadow);
}

.login-to-comment h4 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 0.5rem 0;
}

.login-to-comment p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin: 0 0 1.5rem 0;
}

.login-prompt-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.btn-google {
  background-color: #4285f4;
  color: #ffffff;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(66, 133, 244, 0.2);
}

.btn-google:hover {
  background-color: #357ae8;
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(66, 133, 244, 0.3);
}

/* ==========================================================================
   Bottom Widgets Section (Weekly Resources & Join Us)
   ========================================================================== */
.bottom-widgets-section {
  padding: 4rem 0;
  border-top: 1px solid var(--color-border);
  margin-top: 5rem;
}

.bottom-widgets-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 900px) {
  .bottom-widgets-grid {
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
  }
}

.resources-list-wrapper {
  overflow: hidden;
  max-height: 480px;
  position: relative;
  border-radius: var(--radius);
}

.weekly-resources-col .resources-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 480px;
  overflow-y: hidden; /* Hide vertical scrollbar */
  scroll-behavior: smooth;
  padding: 0.25rem;
}

.resource-card {
  flex-shrink: 0;
  display: flex;
  gap: 1.25rem;
  align-items: center;
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Slider Nav Arrow Buttons */
.slider-nav-arrow-btn {
  background-color: #ffffff;
  border: 1.5px solid var(--color-border);
  color: var(--color-primary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 0;
}

.slider-nav-arrow-btn:hover {
  background-color: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(42, 92, 90, 0.2);
}

.slider-nav-arrow-btn svg {
  display: block;
}

.resource-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.resource-thumb {
  width: 90px;
  height: 90px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background-color: var(--color-bg-alt);
}

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

.resource-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.resource-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0;
  line-height: 1.3;
}

.resource-link {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-pastel-rose);
  text-decoration: none;
  margin-top: 0.25rem;
  display: inline-block;
  transition: color 0.2s ease;
}

.resource-link:hover {
  color: var(--color-primary);
}

/* Join Us Card */
.join-us-card {
  background-color: var(--color-primary); /* Slate teal background */
  border-top: 4px solid var(--color-accent); /* Gold border top */
  border-radius: var(--radius);
  padding: 2.5rem;
  color: #ffffff;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.join-card-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-accent); /* Soft butter gold */
  margin: 0 0 0.5rem 0;
  line-height: 1.2;
}

.join-card-desc {
  color: #e2eeea;
  font-size: 0.95rem;
  margin: 0 0 2rem 0;
  line-height: 1.5;
}

.login-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.btn-email-signup {
  background-color: transparent;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 30px;
  padding: 0.85rem 2rem;
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
  transition: all 0.2s ease;
  display: block;
}

.btn-email-signup:hover {
  background-color: #ffffff;
  color: var(--color-primary) !important;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(255, 255, 255, 0.15);
}

.btn-google-signin {
  background-color: #ffffff;
  color: var(--color-primary) !important; /* Slate teal text color */
  border: 1px solid transparent;
  border-radius: 30px;
  padding: 0.65rem 1.25rem; /* Slightly smaller padding to prevent wrapping */
  font-size: 0.85rem; /* Slightly smaller font size */
  font-weight: 700;
  text-align: center;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  white-space: nowrap; /* Prevent word wrapping entirely! */
}

.btn-google-signin:hover {
  background-color: var(--color-accent); /* Yellow/Gold hover */
  color: var(--color-primary) !important;
  text-decoration: none;
  box-shadow: 0 6px 15px rgba(252, 209, 117, 0.3);
}

.google-logo-svg {
  flex-shrink: 0;
}

/* ==========================================================================
   Custom Sign-In Page Template Styles & Inline Inputs
   ========================================================================== */
.custom-join-container {
  max-width: 900px;
  margin: 4rem auto;
  padding: 0 2rem;
  box-sizing: border-box;
}

.join-page-main-title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 2.5rem;
}

.google-auth-central-box {
  text-align: center;
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow);
}

.google-auth-central-box p {
  margin: 0 0 1.25rem 0;
  font-weight: 700;
  color: var(--color-text);
}

.central-google-btn {
  max-width: 320px;
  width: 100%;
}

.join-divider-text {
  text-align: center;
  position: relative;
  margin-bottom: 3rem;
}

.join-divider-text::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--color-border);
  z-index: 1;
}

.join-divider-text span {
  position: relative;
  z-index: 2;
  background-color: #ffffff;
  padding: 0 1.5rem;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.join-columns-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 768px) {
  .join-columns-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.join-card-box {
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}

.join-card-box .box-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 1.5rem 0;
  border-bottom: 2px solid var(--color-border);
  padding-bottom: 0.75rem;
}

.auth-errors {
  background-color: #fdf2f2;
  border: 1px solid #fde8e8;
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-bottom: 1.5rem;
  color: #c81e1e;
  font-size: 0.9rem;
}

.auth-errors p {
  margin: 0.25rem 0;
}

.form-group {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: left;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-text);
}

.form-control,
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: 20px;
  background-color: #ffffff;
  color: var(--color-text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

.form-control:focus,
.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="password"]:focus {
  outline: none;
  border-color: var(--color-primary);
}

.btn-auth-submit {
  width: 100%;
  padding: 0.85rem 2rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff !important;
  background-color: var(--color-primary) !important;
  border-radius: 30px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  cursor: pointer;
  text-align: center;
}

.btn-auth-submit:hover {
  background-color: var(--color-primary-hover) !important;
  box-shadow: 0 4px 12px rgba(42, 92, 90, 0.2);
}

/* Inline Card Custom Forms & Buttons */
.inline-signup-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.inline-signup-form .form-group {
  margin-bottom: 0;
}

.inline-signup-form .form-group label {
  color: #e2eeea; /* Contrast against teal card background */
}

.inline-signup-form input {
  background-color: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
}

.inline-signup-form input::placeholder {
  color: rgba(255, 255, 255, 0.5) !important;
}

.inline-signup-form input:focus {
  border-color: #ffffff !important;
}

.btn-terracotta-submit {
  background-color: var(--color-pastel-rose) !important;
  box-shadow: 0 4px 10px rgba(190, 90, 67, 0.2);
  margin-top: 0.5rem;
  width: 100%;
  padding: 0.85rem 2rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff !important;
  border-radius: 30px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  cursor: pointer;
  text-align: center;
}

.btn-terracotta-submit:hover {
  background-color: #ffffff !important;
  color: var(--color-pastel-rose) !important;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.inline-errors {
  background-color: rgba(198, 30, 30, 0.15) !important;
  border-color: rgba(198, 30, 30, 0.2) !important;
  color: #ffcccc !important;
}

/* ==========================================================================
   WordPress Native Comments Section Styles
   ========================================================================== */
#comments {
  margin-top: 3rem;
}

.comments-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--color-border);
  padding-bottom: 0.5rem;
}

.comment-list {
  list-style: none;
  padding: 0;
  margin: 0 0 3rem 0;
}

.comment-list .comment {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s ease;
}

.comment-list .comment:hover {
  box-shadow: var(--shadow-lg);
}

.comment-list .children {
  list-style: none;
  padding-left: 2rem;
  margin-top: 1rem;
  border-left: 2px solid var(--color-bg-alt);
}

.comment-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.comment-author .fn {
  font-weight: 700;
  color: var(--color-primary);
  font-style: normal;
}

.comment-metadata a {
  color: var(--color-text-muted);
  text-decoration: none;
}

.comment-metadata a:hover {
  text-decoration: underline;
}

.comment-content {
  color: var(--color-text);
  line-height: 1.6;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.comment-reply {
  text-align: right;
}

.comment-reply-link {
  display: inline-block;
  background-color: transparent;
  color: var(--color-pastel-rose) !important;
  border: 1.5px solid var(--color-pastel-rose);
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.comment-reply-link:hover {
  background-color: var(--color-pastel-rose);
  color: #ffffff !important;
  box-shadow: 0 4px 10px rgba(190, 90, 67, 0.15);
}

/* Comment Form styling */
#respond {
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

#reply-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

#commentform {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.comment-form-comment {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.comment-form-comment label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-text);
}

#commentform textarea {
  width: 100%;
  min-height: 120px;
  padding: 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  background-color: #ffffff;
  color: var(--color-text);
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

#commentform textarea:focus {
  border-color: var(--color-pastel-teal);
  outline: none;
}

.form-submit {
  text-align: right;
  margin: 0;
}

#commentform #submit {
  background-color: var(--color-pastel-rose);
  color: #ffffff !important;
  border: 1px solid transparent;
  border-radius: 30px;
  padding: 0.75rem 2rem;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-block;
  box-shadow: 0 4px 10px rgba(190, 90, 67, 0.15);
}

#commentform #submit:hover {
  background-color: var(--color-pastel-rose);
  opacity: 0.9;
  box-shadow: 0 6px 15px rgba(190, 90, 67, 0.3);
}

.logged-in-as {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.logged-in-as a {
  color: var(--color-pastel-rose);
  text-decoration: none;
  font-weight: 600;
}

.logged-in-as a:hover {
  text-decoration: underline;
}

/* Force Header Login Button & Icon to White */
.account-link,
.account-link span,
.account-link svg,
.account-link svg path,
.account-link svg circle {
  color: #ffffff !important;
  stroke: #ffffff !important;
}

.account-link:hover,
.account-link:hover span,
.account-link:hover svg,
.account-link:hover svg path,
.account-link:hover svg circle {
  color: #ffffff !important;
  stroke: #ffffff !important;
}

