/* YCWS Modern Theme Main Stylesheet */

/* Floating Header with Scroll Transition */
.header-global {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Topbar */
.site-topbar {
  background-color: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #cbd5e1;
  font-size: 0.8125rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.35s ease;
}

.topbar-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.topbar-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #cbd5e1;
}

.topbar-item svg,
.topbar-item .dashicons {
  width: 14px;
  height: 14px;
  font-size: 14px;
  line-height: 14px;
  color: var(--ycws-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.12);
  padding: 0.2rem 0.6rem;
  border-radius: var(--ycws-radius-full);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.lang-switch a {
  color: #e2e8f0;
  font-weight: 600;
  font-size: 0.75rem;
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
}

.lang-switch a.active {
  color: #ffffff;
  background: var(--ycws-primary);
}

/* Main Header Bar */
.site-header {
  background-color: transparent;
  padding: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.header-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  transition: padding 0.35s ease;
}

.site-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  padding: 0.15rem 0;
}

.site-logo-img {
  height: 52px;
  width: auto;
  max-width: 190px;
  object-fit: contain;
  display: block;
  transition: all 0.3s ease;
}

/* Nav Menu */
.primary-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.primary-nav a {
  font-weight: 600;
  font-size: 0.925rem;
  padding: 0.5rem 0.25rem;
  position: relative;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: color 0.25s ease;
}

/* Initial Transparent Header State (Blends with dark hero) */
.header-global:not(.is-scrolled) .logo-light {
  display: block;
}

.header-global:not(.is-scrolled) .logo-dark {
  display: none;
}

.header-global:not(.is-scrolled) .primary-nav a {
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.header-global:not(.is-scrolled) .primary-nav a:hover,
.header-global:not(.is-scrolled) .primary-nav a.current {
  color: #f59e0b;
}

.header-global:not(.is-scrolled) .primary-nav a.current::after,
.header-global:not(.is-scrolled) .primary-nav a:hover::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #f59e0b;
  border-radius: 2px;
}

.header-global:not(.is-scrolled) .btn-header-cta {
  background-color: #f59e0b;
  color: #0f172a !important;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.header-global:not(.is-scrolled) .btn-header-cta:hover {
  background-color: #d97706;
  transform: translateY(-2px);
}

.header-global:not(.is-scrolled) .mobile-menu-btn {
  color: #ffffff;
}

/* ==========================================================================
   Header Solid Mode (for Single Post and Light Background Pages)
   ========================================================================== */
body.header-solid-mode .header-global:not(.is-scrolled) .site-topbar {
  background-color: #0f172a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body.header-solid-mode .header-global:not(.is-scrolled) .site-header {
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

body.header-solid-mode .header-global:not(.is-scrolled) .logo-light {
  display: none !important;
}

body.header-solid-mode .header-global:not(.is-scrolled) .logo-dark {
  display: block !important;
}

body.header-solid-mode .header-global:not(.is-scrolled) .primary-nav a {
  color: var(--ycws-dark);
  text-shadow: none;
}

body.header-solid-mode .header-global:not(.is-scrolled) .primary-nav a:hover,
body.header-solid-mode .header-global:not(.is-scrolled) .primary-nav a.current {
  color: var(--ycws-primary);
}

body.header-solid-mode .header-global:not(.is-scrolled) .primary-nav a.current::after,
body.header-solid-mode .header-global:not(.is-scrolled) .primary-nav a:hover::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--ycws-primary);
  border-radius: 2px;
}

body.header-solid-mode .header-global:not(.is-scrolled) .mobile-menu-btn {
  color: var(--ycws-dark);
}

body.header-solid-mode .header-global:not(.is-scrolled) .btn-header-cta {
  background-color: var(--ycws-primary);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(92, 40, 130, 0.25);
}

body.header-solid-mode .header-global:not(.is-scrolled) .btn-header-cta:hover {
  background-color: #4a1d6d;
}

/* Scrolled Header State (Solid White with Box Shadow) */
.header-global.is-scrolled .site-topbar {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  overflow: hidden;
  border-bottom: none;
}

.header-global.is-scrolled .site-header {
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.header-global.is-scrolled .header-wrapper {
  padding: 0.65rem 0;
}

.header-global.is-scrolled .logo-light {
  display: none;
}

.header-global.is-scrolled .logo-dark {
  display: block;
}

.header-global.is-scrolled .primary-nav a {
  color: var(--ycws-dark);
  text-shadow: none;
}

.header-global.is-scrolled .primary-nav a:hover,
.header-global.is-scrolled .primary-nav a.current {
  color: var(--ycws-primary);
}

.header-global.is-scrolled .primary-nav a.current::after,
.header-global.is-scrolled .primary-nav a:hover::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--ycws-primary);
  border-radius: 2px;
}

.header-global.is-scrolled .btn-header-cta {
  background-color: var(--ycws-primary);
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(92, 40, 130, 0.3);
}

.header-global.is-scrolled .btn-header-cta:hover {
  background-color: var(--ycws-primary-hover);
  transform: translateY(-2px);
}

.header-global.is-scrolled .mobile-menu-btn {
  color: var(--ycws-dark);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-menu-btn {
  display: none;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.mobile-menu-btn svg,
.mobile-menu-btn .dashicons {
  width: 26px;
  height: 26px;
  font-size: 26px;
  line-height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.header-global.is-scrolled .mobile-menu-btn,
body.header-solid-mode .header-global:not(.is-scrolled) .mobile-menu-btn {
  background: #f1f5f9;
  border-color: var(--ycws-border);
  color: var(--ycws-dark);
}

.header-global.is-scrolled .mobile-menu-btn:hover,
body.header-solid-mode .header-global:not(.is-scrolled) .mobile-menu-btn:hover {
  background: #e2e8f0;
}

/* Hero Section */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(92, 40, 130, 0.9) 100%),
              url('https://images.unsplash.com/photo-1488521787991-ed7bbaae773c?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
  color: #ffffff;
  padding: 12rem 0 6rem 0;
  overflow: hidden;
}

/* Page Header Banners */
.page-header-banner {
  padding-top: 11.5rem !important;
  padding-bottom: 5rem !important;
}

.hero-content {
  max-width: 820px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  padding: 0.4rem 1rem;
  border-radius: var(--ycws-radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-badge span {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px #10b981;
}

.hero-title {
  font-size: 3.25rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero-title .highlight {
  background: linear-gradient(120deg, #fcd34d, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: 1.25rem;
  color: #e2e8f0;
  line-height: 1.6;
  margin-bottom: 2.5rem;
  max-width: 720px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Impact Numbers Bar */
.impact-bar-wrap {
  margin-top: -3.5rem;
  position: relative;
  z-index: 20;
}

.impact-bar {
  background: #ffffff;
  border-radius: var(--ycws-radius-lg);
  padding: 2.25rem 2rem;
  box-shadow: var(--ycws-shadow-xl);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  border: 1px solid var(--ycws-border);
}

.impact-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.impact-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--ycws-primary-light);
  color: var(--ycws-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  flex-shrink: 0;
}

.impact-icon .dashicons {
  font-size: 28px;
  width: 28px;
  height: 28px;
  line-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.impact-num {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--ycws-dark);
  line-height: 1.1;
  margin-bottom: 0.2rem;
}

.impact-label {
  font-size: 0.875rem;
  color: var(--ycws-text-muted);
  font-weight: 600;
  line-height: 1.3;
}

/* Program Cards */
.program-card {
  background: #ffffff;
  border-radius: var(--ycws-radius-lg);
  overflow: hidden;
  box-shadow: var(--ycws-shadow-md);
  border: 1px solid var(--ycws-border);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.program-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--ycws-shadow-xl);
  border-color: #d8b4fe;
}

.program-card-img {
  height: 220px;
  position: relative;
  overflow: hidden;
  background-color: #cbd5e1;
}

.program-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.program-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: var(--ycws-radius-full);
}

.program-card-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.program-card-title {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.program-card-tagline {
  font-size: 0.925rem;
  color: var(--ycws-text-muted);
  margin-bottom: 1.5rem;
  flex: 1;
}

.program-meta-list {
  background: var(--ycws-bg-light);
  border-radius: var(--ycws-radius-md);
  padding: 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
}

.program-meta-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}

.program-meta-row:last-child {
  margin-bottom: 0;
}

.program-meta-label {
  color: var(--ycws-text-muted);
}

.program-meta-val {
  font-weight: 700;
  color: var(--ycws-dark);
}

/* Interactive Map Section */
.map-container-wrap {
  background: #ffffff;
  border-radius: var(--ycws-radius-lg);
  padding: 1rem;
  box-shadow: var(--ycws-shadow-lg);
  border: 1px solid var(--ycws-border);
  overflow: hidden !important;
  contain: paint !important;
  max-width: 100% !important;
  position: relative;
}

#ycws-interactive-map {
  width: 100% !important;
  height: 520px;
  border-radius: var(--ycws-radius-md);
  z-index: 10;
  overflow: hidden !important;
  contain: paint !important;
  max-width: 100% !important;
  position: relative;
}

.leaflet-container {
  overflow: hidden !important;
  contain: paint !important;
  max-width: 100% !important;
}

.map-sidebar-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  align-items: stretch;
}

.map-location-list {
  background: #ffffff;
  border-radius: var(--ycws-radius-lg);
  padding: 1.5rem;
  box-shadow: var(--ycws-shadow-md);
  border: 1px solid var(--ycws-border);
  height: 520px;
  overflow-y: auto;
}

.location-item-btn {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--ycws-bg-light);
  border: 1px solid var(--ycws-border);
  padding: 1rem;
  border-radius: var(--ycws-radius-md);
  margin-bottom: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.location-item-btn:hover,
.location-item-btn.active {
  background: var(--ycws-primary-light);
  border-color: var(--ycws-primary);
  transform: translateX(4px);
}

.loc-btn-title {
  font-weight: 700;
  color: var(--ycws-dark);
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.loc-btn-prog {
  font-size: 0.8rem;
  color: var(--ycws-primary);
  font-weight: 600;
}

/* Knowledge Hub Styles */
.knowledge-filter-bar {
  background: #ffffff;
  padding: 1.25rem 2rem;
  border-radius: var(--ycws-radius-lg);
  box-shadow: var(--ycws-shadow-md);
  border: 1px solid var(--ycws-border);
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.5rem;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-btn {
  background: var(--ycws-bg-light);
  border: 1px solid var(--ycws-border);
  padding: 0.5rem 1rem;
  border-radius: var(--ycws-radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ycws-text);
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn.active, .filter-btn:hover {
  background: var(--ycws-primary);
  color: #ffffff;
  border-color: var(--ycws-primary);
}

.search-box-input {
  display: flex;
  align-items: center;
  position: relative;
  min-width: 280px;
}

.search-box-input input {
  width: 100%;
  padding: 0.65rem 1rem 0.65rem 2.5rem;
  border: 1px solid var(--ycws-border);
  border-radius: var(--ycws-radius-md);
  font-size: 0.9rem;
  outline: none;
}

.search-box-input input:focus {
  border-color: var(--ycws-primary);
  box-shadow: 0 0 0 3px rgba(92, 40, 130, 0.15);
}

.search-box-input svg,
.search-box-input .dashicons {
  position: absolute;
  left: 0.85rem;
  width: 18px;
  height: 18px;
  font-size: 18px;
  line-height: 18px;
  color: var(--ycws-text-muted);
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Document Cards */
.doc-card {
  background: #ffffff;
  border-radius: var(--ycws-radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--ycws-border);
  box-shadow: var(--ycws-shadow-sm);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.doc-card:hover {
  box-shadow: var(--ycws-shadow-lg);
  border-color: #cbd5e1;
  transform: translateY(-4px);
}

.doc-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.doc-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ycws-teal);
  background: var(--ycws-teal-soft);
  padding: 0.25rem 0.65rem;
  border-radius: var(--ycws-radius-sm);
}

.doc-year {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ycws-text-muted);
}

.doc-title {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.doc-excerpt {
  font-size: 0.875rem;
  color: var(--ycws-text-muted);
  line-height: 1.5;
  margin-bottom: 1.5rem;
  flex: 1;
}

.doc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--ycws-border);
}

.doc-meta-info {
  font-size: 0.8rem;
  color: var(--ycws-text-muted);
}

/* News & Article Cards */
.article-card {
  background: #ffffff;
  border-radius: var(--ycws-radius-lg);
  overflow: hidden;
  box-shadow: var(--ycws-shadow-sm);
  border: 1px solid var(--ycws-border);
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.article-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--ycws-shadow-xl);
  border-color: #cbd5e1;
}

.article-card-img {
  height: 200px;
  position: relative;
  overflow: hidden;
  background-color: #e2e8f0;
}

.article-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.article-card:hover .article-card-img img {
  transform: scale(1.06);
}

.article-cat-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(92, 40, 130, 0.9);
  backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 0.725rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.75rem;
  border-radius: var(--ycws-radius-full);
}

.article-card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  color: var(--ycws-text-muted);
  margin-bottom: 0.75rem;
}

.article-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ycws-dark);
  line-height: 1.35;
  margin-bottom: 0.75rem;
  transition: color 0.2s ease;
}

.article-card:hover .article-title {
  color: var(--ycws-primary);
}

.article-excerpt {
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex: 1;
}

.article-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--ycws-border);
  font-size: 0.875rem;
  font-weight: 700;
}

/* Stories of Change */
.story-card {
  background: #ffffff;
  border-radius: var(--ycws-radius-lg);
  overflow: hidden;
  box-shadow: var(--ycws-shadow-md);
  border: 1px solid var(--ycws-border);
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.story-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--ycws-shadow-xl);
}

.story-card-img {
  height: 200px;
  position: relative;
  background-color: #cbd5e1;
}

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

.story-quote-box {
  background: var(--ycws-primary-light);
  border-left: 3px solid var(--ycws-primary);
  padding: 0.85rem 1rem;
  margin: 1rem 0;
  font-style: italic;
  font-size: 0.875rem;
  color: #4a1d6d;
}

.story-card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.story-meta-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ycws-primary);
  margin-bottom: 0.5rem;
  display: inline-block;
}

.story-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.story-card-body p {
  font-size: 0.9rem;
  color: var(--ycws-text-muted);
  line-height: 1.6;
  flex: 1;
}

/* Partners Section */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.5rem;
  align-items: center;
}

.partner-card {
  background: #ffffff;
  padding: 1.5rem;
  border-radius: var(--ycws-radius-md);
  border: 1px solid var(--ycws-border);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 90px;
  text-align: center;
  font-weight: 700;
  color: var(--ycws-slate-700);
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.partner-card:hover {
  border-color: var(--ycws-primary);
  transform: scale(1.05);
  box-shadow: var(--ycws-shadow-md);
}

/* Donation Module */
.donation-box {
  background: #ffffff;
  border-radius: var(--ycws-radius-lg);
  padding: 2.5rem;
  box-shadow: var(--ycws-shadow-xl);
  border: 1px solid var(--ycws-border);
  max-width: 680px;
  margin: 0 auto;
}

.freq-toggle {
  display: flex;
  background: var(--ycws-bg-light);
  padding: 0.35rem;
  border-radius: var(--ycws-radius-full);
  margin-bottom: 1.75rem;
}

.freq-btn {
  flex: 1;
  padding: 0.65rem;
  border-radius: var(--ycws-radius-full);
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  background: transparent;
  color: var(--ycws-text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.freq-btn.active {
  background: var(--ycws-primary);
  color: #ffffff;
  box-shadow: var(--ycws-shadow-sm);
}

.amount-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.amount-btn {
  padding: 1rem 0.5rem;
  border: 2px solid var(--ycws-border);
  border-radius: var(--ycws-radius-md);
  background: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  color: var(--ycws-dark);
  cursor: pointer;
  transition: all 0.2s ease;
}

.amount-btn:hover, .amount-btn.active {
  border-color: var(--ycws-primary);
  background: var(--ycws-primary-light);
  color: var(--ycws-primary);
}

.custom-amount-input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 2px solid var(--ycws-border);
  border-radius: var(--ycws-radius-md);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  outline: none;
}

.custom-amount-input:focus {
  border-color: var(--ycws-primary);
}

/* Footer */
.site-footer {
  background-color: #0b1120;
  color: #94a3b8;
  padding: 5rem 0 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.footer-about p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  gap: 0.75rem;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.footer-contact-item svg,
.footer-contact-item .dashicons {
  width: 18px;
  height: 18px;
  font-size: 18px;
  line-height: 18px;
  color: var(--ycws-accent);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  color: #94a3b8;
}

.footer-bottom-links a:hover {
  color: #ffffff;
}

/* ==========================================================================
   Responsive Breakpoints & Mobile-First Tuning
   ========================================================================== */

/* Root Overflow Guards */
html, body {
  overflow-x: hidden !important;
  max-width: 100% !important;
  width: 100% !important;
  position: relative;
}

main, .hero-section, .impact-bar-wrap, .section, .site-footer {
  overflow-x: hidden;
  max-width: 100%;
}

@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .impact-bar {
    grid-template-columns: repeat(2, 1fr);
  }
  .map-sidebar-grid {
    grid-template-columns: 1fr;
  }
  .partners-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 992px) {
  /* Hide desktop CTA button on mobile */
  .desktop-only-cta {
    display: none !important;
  }

  /* Mobile Header Bar Height & Proportional Spacing */
  .site-header {
    min-height: 72px;
    display: flex;
    align-items: center;
  }

  .header-wrapper {
    width: 100%;
    padding-top: 1.15rem !important;
    padding-bottom: 1.15rem !important;
    min-height: 72px;
    box-sizing: border-box;
  }

  /* Scrolled Mobile Header State */
  .header-global.is-scrolled .site-header {
    min-height: 64px;
  }

  .header-global.is-scrolled .header-wrapper {
    padding-top: 0.85rem !important;
    padding-bottom: 0.85rem !important;
    min-height: 64px;
  }

  /* Show and format hamburger button */
  .mobile-menu-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    padding: 0 !important;
    border-radius: 10px !important;
    flex-shrink: 0;
    box-sizing: border-box;
  }

  .mobile-menu-btn svg,
  .mobile-menu-btn .dashicons {
    width: 26px !important;
    height: 26px !important;
    font-size: 26px !important;
    line-height: 26px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Hide primary nav in header bar */
  .primary-nav,
  .nav-container {
    display: none !important;
  }

  /* Compact topbar on mobile (content is inside side drawer) */
  .site-topbar {
    display: none !important;
  }

  .site-brand {
    display: flex;
    align-items: center;
  }

  .site-logo-img {
    height: 42px !important;
    max-width: 155px !important;
    width: auto !important;
    object-fit: contain;
  }

  .page-header-banner {
    padding-top: 8rem !important;
    padding-bottom: 2.75rem !important;
  }

  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 768px) {
  /* Global Container on Mobile: preserve horizontal gutters without destroying vertical padding */
  .container {
    padding-left: 1.15rem !important;
    padding-right: 1.15rem !important;
  }

  /* Hero Section on Mobile */
  .hero-section {
    padding: 8rem 0 3.5rem 0 !important;
  }

  .single-post-header {
    padding: 7.75rem 0 2rem 0 !important;
  }

  .hero-badge {
    font-size: 0.75rem !important;
    padding: 0.35rem 0.85rem !important;
    max-width: 100% !important;
    white-space: normal !important;
    line-height: 1.4 !important;
    margin-bottom: 1rem !important;
    display: inline-flex !important;
  }

  .hero-title {
    font-size: clamp(1.85rem, 5.5vw, 2.35rem) !important;
    line-height: 1.22 !important;
    margin-bottom: 1rem !important;
    word-break: break-word !important;
  }

  .hero-lead {
    font-size: 0.975rem !important;
    line-height: 1.65 !important;
    margin-bottom: 1.75rem !important;
    color: #cbd5e1 !important;
  }

  .hero-actions {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 0.75rem !important;
  }

  .hero-actions .btn {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
    padding: 0.85rem 1.25rem !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
  }

  /* Impact Numbers Bar on Mobile (2x2 Dashboard Grid) */
  .impact-bar-wrap {
    margin-top: -1.75rem !important;
  }

  .impact-bar {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.25rem 0.75rem !important;
    padding: 1.25rem 1rem !important;
    border-radius: var(--ycws-radius-lg) !important;
  }

  .impact-item {
    gap: 0.65rem !important;
  }

  .impact-icon {
    width: 42px !important;
    height: 42px !important;
    font-size: 1.25rem !important;
    border-radius: 10px !important;
    flex-shrink: 0 !important;
  }

  .impact-num {
    font-size: 1.5rem !important;
    line-height: 1.1 !important;
    margin-bottom: 0.15rem !important;
  }

  .impact-label {
    font-size: 0.725rem !important;
    line-height: 1.25 !important;
  }

  /* Section Spacing & Headings on Mobile */
  .section {
    padding: 3.25rem 0 !important;
  }

  .section-header {
    margin-bottom: 2rem !important;
  }

  .section-title {
    font-size: clamp(1.55rem, 4.5vw, 1.95rem) !important;
    line-height: 1.25 !important;
    margin-bottom: 0.5rem !important;
  }

  .section-desc {
    font-size: 0.925rem !important;
    line-height: 1.6 !important;
  }

  .section-badge {
    font-size: 0.75rem !important;
    padding: 0.25rem 0.7rem !important;
    margin-bottom: 0.65rem !important;
  }

  /* Grid Columns on Mobile */
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  /* Card Heights & Bodys on Mobile */
  .program-card-img,
  .article-card-img,
  .story-card-img {
    height: 180px !important;
  }

  .program-card-body,
  .article-card-body,
  .story-card-body {
    padding: 1.25rem 1rem !important;
  }

  .program-card-title,
  .article-title,
  .story-title {
    font-size: 1.15rem !important;
    line-height: 1.35 !important;
    margin-bottom: 0.5rem !important;
  }

  .program-card-tagline,
  .article-excerpt,
  .story-card-body p {
    font-size: 0.875rem !important;
    line-height: 1.6 !important;
  }

  .program-meta-list {
    padding: 0.75rem !important;
    margin: 1rem 0 !important;
  }

  /* Map on Mobile */
  .map-sidebar-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  .map-container-wrap {
    overflow: hidden !important;
    max-width: 100% !important;
    padding: 0.65rem !important;
  }

  #ycws-interactive-map {
    height: 280px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  .map-location-list {
    height: 240px !important;
    padding: 0.85rem !important;
  }

  .location-item-btn {
    padding: 0.75rem 0.85rem !important;
    margin-bottom: 0.5rem !important;
  }

  /* Knowledge Hub on Mobile */
  .knowledge-filter-bar {
    padding: 1rem !important;
    gap: 0.85rem !important;
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .filter-pills {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.4rem !important;
    width: 100% !important;
  }

  .filter-btn {
    padding: 0.4rem 0.75rem !important;
    font-size: 0.78rem !important;
    flex: 1 1 auto !important;
    text-align: center !important;
  }

  .search-box-input {
    min-width: 0 !important;
    width: 100% !important;
  }

  .search-box-input input {
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0.65rem 0.85rem 0.65rem 2.25rem !important;
    font-size: 0.875rem !important;
  }

  .doc-card {
    padding: 1.25rem 1rem !important;
  }

  /* Partners Grid on Mobile */
  .partners-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.65rem !important;
  }

  .partner-card {
    padding: 0.75rem 0.5rem !important;
    height: auto !important;
    min-height: 64px !important;
    font-size: 0.825rem !important;
    line-height: 1.3 !important;
  }

  /* Donation Module on Mobile */
  .donation-box {
    padding: 1.5rem 1.15rem !important;
    border-radius: var(--ycws-radius-lg) !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .freq-toggle {
    margin-bottom: 1.25rem !important;
  }

  .freq-btn {
    font-size: 0.8rem !important;
    padding: 0.55rem 0.25rem !important;
  }

  .amount-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.5rem !important;
    margin-bottom: 1.25rem !important;
  }

  .amount-btn {
    padding: 0.75rem 0.35rem !important;
    font-size: 0.875rem !important;
  }

  .custom-amount-input {
    padding: 0.75rem 0.85rem !important;
    font-size: 0.925rem !important;
    margin-bottom: 1.25rem !important;
    box-sizing: border-box !important;
    width: 100% !important;
  }

  .donation-inputs-row {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0.85rem !important;
    margin-bottom: 1.25rem !important;
  }

  .donation-inputs-row input,
  #donor_program {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Footer on Mobile */
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 2.25rem !important;
    margin-bottom: 2.5rem !important;
  }

  .site-footer {
    padding: 3.5rem 0 2rem 0 !important;
  }

  .footer-bottom {
    flex-direction: column !important;
    gap: 1rem !important;
    text-align: center !important;
  }

  .footer-bottom-links {
    justify-content: center !important;
    gap: 1rem !important;
    flex-wrap: wrap !important;
  }
}

/* ==========================================================================
   Mobile Off-Canvas Side Drawer Navigation
   ========================================================================== */

/* Drawer Backdrop Overlay */
.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 99998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* Side Drawer Panel (display: none when closed avoids horizontal overflow leak) */
.mobile-side-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 86%;
  max-width: 340px;
  height: 100%;
  background-color: #ffffff;
  z-index: 99999;
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.25);
  display: none;
  flex-direction: column;
}

.mobile-side-drawer.active {
  display: flex !important;
  animation: drawerSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes drawerSlideIn {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

/* Lock body scroll when drawer open */
body.mobile-drawer-open {
  overflow: hidden !important;
  touch-action: none;
}

/* Drawer Header */
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--ycws-border);
  background-color: #f8fafc;
}

.drawer-logo-img {
  height: 42px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  display: block;
}

.drawer-close-btn {
  background: #ffffff;
  border: 1px solid var(--ycws-border);
  color: var(--ycws-dark);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.drawer-close-btn:hover {
  background-color: #fee2e2;
  color: #dc2626;
  border-color: #fca5a5;
  transform: rotate(90deg);
}

.drawer-close-btn .dashicons {
  font-size: 22px;
  width: 22px;
  height: 22px;
  line-height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Drawer Body Scrollable */
.drawer-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
}

/* Drawer Navigation Links */
.drawer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.drawer-nav li {
  border-bottom: 1px solid #f1f5f9;
}

.drawer-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0.25rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ycws-dark);
  text-decoration: none;
  transition: all 0.2s ease;
}

.drawer-nav a:hover,
.drawer-nav a.current {
  color: var(--ycws-primary);
  padding-left: 0.5rem;
}

.drawer-nav a.current {
  color: var(--ycws-primary);
  font-weight: 800;
}

/* Drawer Donation CTA */
.drawer-cta-wrap {
  margin: 1.75rem 0;
  padding: 1.25rem;
  background: linear-gradient(135deg, rgba(92, 40, 130, 0.08) 0%, rgba(245, 158, 11, 0.12) 100%);
  border: 1px solid rgba(92, 40, 130, 0.18);
  border-radius: var(--ycws-radius-lg);
  text-align: center;
}

.drawer-donate-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 800;
  padding: 0.85rem 1rem;
  border-radius: var(--ycws-radius-md);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
  text-decoration: none;
}

.drawer-donate-btn .dashicons {
  font-size: 20px;
  width: 20px;
  height: 20px;
  line-height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.drawer-cta-subtext {
  display: block;
  font-size: 0.775rem;
  color: #64748b;
  margin-top: 0.65rem;
  line-height: 1.4;
}

/* Drawer Footer Info */
.drawer-footer-info {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid #f1f5f9;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.drawer-lang-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.drawer-lang-switch {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: #f1f5f9;
  padding: 0.25rem 0.6rem;
  border-radius: var(--ycws-radius-full);
}

.drawer-lang-switch a {
  font-size: 0.8rem;
  font-weight: 700;
  color: #64748b;
  text-decoration: none;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

.drawer-lang-switch a.active {
  background: var(--ycws-primary);
  color: #ffffff;
}

.drawer-info-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.825rem;
  color: #64748b;
}

.drawer-badge-item {
  font-weight: 600;
  color: #0f172a;
}


/* ==========================================================================
   Single Post Modern News Portal Experience
   ========================================================================== */

/* Reading Progress Bar */
.reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0%;
  background: linear-gradient(90deg, var(--ycws-primary) 0%, var(--ycws-accent) 100%);
  z-index: 99999;
  transition: width 0.1s ease-out;
}

/* Header & Breadcrumbs */
.single-post-header {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border-bottom: 1px solid var(--ycws-border);
  padding: 8.5rem 0 2.5rem 0;
}

.single-breadcrumbs-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}

.breadcrumbs-trail {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ycws-text-muted);
  flex-wrap: wrap;
}

.breadcrumbs-trail a {
  color: var(--ycws-text-muted);
  transition: color 0.2s ease;
  text-decoration: none;
}

.breadcrumbs-trail a:hover {
  color: var(--ycws-primary);
}

.breadcrumbs-separator {
  color: #cbd5e1;
}

.breadcrumbs-current {
  color: var(--ycws-dark);
  font-weight: 600;
  max-width: 280px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.article-tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tool-btn {
  background: #ffffff;
  border: 1px solid var(--ycws-border);
  color: var(--ycws-dark);
  border-radius: var(--ycws-radius-sm);
  padding: 0.35rem 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
}

.tool-btn .dashicons {
  font-size: 15px;
  width: 15px;
  height: 15px;
  line-height: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tool-btn:hover {
  background: var(--ycws-light);
  border-color: var(--ycws-primary);
  color: var(--ycws-primary);
}

.single-article-headline {
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 800;
  color: var(--ycws-dark);
  line-height: 1.25;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.single-article-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e2e8f0;
}

.meta-author-group {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.meta-author-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffffff;
  box-shadow: var(--ycws-shadow-sm);
}

.meta-author-info {
  display: flex;
  flex-direction: column;
}

.meta-author-name {
  font-weight: 700;
  color: var(--ycws-dark);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.meta-verified-badge {
  color: #0284c7;
  display: inline-flex;
  align-items: center;
}

.meta-verified-badge .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
  line-height: 16px;
  color: #0284c7;
}

.meta-author-role {
  font-size: 0.8rem;
  color: var(--ycws-text-muted);
}

.meta-stats-group {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.85rem;
  color: var(--ycws-text-muted);
  flex-wrap: wrap;
}

.meta-stat-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.meta-stat-item .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
  line-height: 16px;
  color: var(--ycws-primary);
}

/* Featured Media */
.single-featured-media {
  margin: 2rem 0 3rem 0;
  border-radius: var(--ycws-radius-lg);
  overflow: hidden;
  box-shadow: var(--ycws-shadow-lg);
  border: 1px solid var(--ycws-border);
  background-color: #f1f5f9;
}

.single-featured-media img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

.single-featured-media figcaption {
  padding: 0.75rem 1.25rem;
  background: #f8fafc;
  border-top: 1px solid var(--ycws-border);
  font-size: 0.825rem;
  color: var(--ycws-text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-style: italic;
}

/* Two-Column Grid */
.single-article-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3.5rem;
  align-items: start;
  margin-bottom: 4rem;
}

@media (max-width: 1024px) {
  .single-article-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* Social Sharing Inline & Floating */
.article-share-inline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 1rem 1.25rem;
  background: #f8fafc;
  border-radius: var(--ycws-radius-md);
  border: 1px solid var(--ycws-border);
  margin-bottom: 2.25rem;
}

.share-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ycws-dark);
  margin-right: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--ycws-radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  color: #ffffff;
}

.share-btn svg,
.share-btn .dashicons {
  width: 16px;
  height: 16px;
  font-size: 16px;
  line-height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.share-wa { background-color: #25D366; }
.share-fb { background-color: #1877F2; }
.share-tw { background-color: #0f172a; }
.share-li { background-color: #0A66C2; }
.share-tg { background-color: #229ED9; }
.share-copy { background-color: #475569; }

.share-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #0f172a;
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.75rem 1.25rem;
  border-radius: var(--ycws-radius-md);
  box-shadow: var(--ycws-shadow-xl);
  z-index: 999999;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.share-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Article Body Typography */
.article-content-body {
  font-size: 1.125rem;
  line-height: 1.9;
  color: #334155;
  transition: font-size 0.2s ease;
}

.article-lead {
  font-size: 1.25rem;
  line-height: 1.8;
  font-weight: 500;
  color: #1e293b;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid #f1f5f9;
}

.article-lead::first-letter {
  font-size: 3.2rem;
  font-weight: 800;
  float: left;
  line-height: 1;
  margin-right: 0.75rem;
  margin-top: 0.1rem;
  color: var(--ycws-primary);
  font-family: inherit;
}

.article-content-body h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--ycws-dark);
  margin: 2.5rem 0 1rem 0;
  line-height: 1.3;
  position: relative;
  padding-left: 1rem;
  border-left: 4px solid var(--ycws-primary);
}

.article-content-body h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ycws-dark);
  margin: 2rem 0 0.85rem 0;
}

.article-content-body p {
  margin-bottom: 1.6rem;
}

.article-content-body blockquote {
  position: relative;
  margin: 2.25rem 0;
  padding: 1.75rem 2rem 1.75rem 2.5rem;
  background: #fdf4ff;
  border-left: 4px solid var(--ycws-primary);
  border-radius: 0 var(--ycws-radius-md) var(--ycws-radius-md) 0;
  font-size: 1.18rem;
  font-style: italic;
  color: #4a1d96;
  line-height: 1.7;
}

.article-content-body ul, 
.article-content-body ol {
  margin: 1.5rem 0 1.75rem 1.75rem;
}

.article-content-body li {
  margin-bottom: 0.65rem;
}

/* Highlight Takeaways Callout */
.article-key-takeaways {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 4px solid var(--ycws-accent);
  border-radius: var(--ycws-radius-md);
  padding: 1.5rem 1.75rem;
  margin: 2.5rem 0;
}

.article-key-takeaways h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ycws-dark);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.article-key-takeaways ul {
  margin: 0.5rem 0 0 1.25rem;
  padding: 0;
}

.article-key-takeaways li {
  font-size: 0.95rem;
  color: #475569;
  margin-bottom: 0.5rem;
}

/* In-Article Donation Banner */
.article-cta-box {
  background: linear-gradient(135deg, rgba(92, 40, 130, 0.08) 0%, rgba(245, 158, 11, 0.12) 100%);
  border: 1px solid rgba(92, 40, 130, 0.2);
  border-radius: var(--ycws-radius-lg);
  padding: 2rem;
  margin: 3rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.article-cta-text h4 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ycws-dark);
  margin-bottom: 0.35rem;
}

.article-cta-text p {
  font-size: 0.95rem;
  color: #475569;
  margin: 0;
}

/* Article Tags */
.article-tags-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--ycws-border);
  border-bottom: 1px solid var(--ycws-border);
  margin: 2.5rem 0;
}

.tags-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ycws-dark);
  margin-right: 0.25rem;
}

.tag-pill {
  display: inline-block;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: var(--ycws-radius-full);
  transition: all 0.2s ease;
  text-decoration: none;
}

.tag-pill:hover {
  background: var(--ycws-primary);
  color: #ffffff;
}

/* Secondary Bottom Share */
.article-bottom-share {
  background: #f8fafc;
  border: 1px solid var(--ycws-border);
  border-radius: var(--ycws-radius-lg);
  padding: 1.75rem;
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
}

/* Author Box */
.article-author-card {
  display: flex;
  gap: 1.5rem;
  background: #ffffff;
  border: 1px solid var(--ycws-border);
  border-radius: var(--ycws-radius-lg);
  padding: 2rem;
  margin-bottom: 3rem;
  box-shadow: var(--ycws-shadow-sm);
  align-items: center;
}

.author-card-avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid #f1f5f9;
}

.author-card-info h4 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--ycws-dark);
  margin-bottom: 0.25rem;
}

.author-card-role {
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--ycws-primary);
  margin-bottom: 0.75rem;
  display: inline-block;
}

.author-card-bio {
  font-size: 0.925rem;
  line-height: 1.6;
  color: #475569;
  margin-bottom: 0.75rem;
}

/* Previous & Next Post Split Cards */
.post-nav-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

@media (max-width: 640px) {
  .post-nav-split {
    grid-template-columns: 1fr;
  }
}

.nav-card {
  display: flex;
  gap: 1rem;
  background: #ffffff;
  border: 1px solid var(--ycws-border);
  border-radius: var(--ycws-radius-md);
  padding: 1.25rem;
  text-decoration: none;
  transition: all 0.2s ease;
  align-items: center;
}

.nav-card:hover {
  border-color: var(--ycws-primary);
  box-shadow: var(--ycws-shadow-md);
  transform: translateY(-2px);
}

.nav-card-thumb {
  width: 72px;
  height: 72px;
  border-radius: var(--ycws-radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.nav-card-content {
  display: flex;
  flex-direction: column;
}

.nav-card-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ycws-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.nav-card-title {
  font-size: 0.925rem;
  font-weight: 700;
  color: var(--ycws-dark);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Sticky Sidebar Styles */
.article-sidebar-col {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: sticky;
  top: 95px;
}

.sidebar-widget {
  background: #ffffff;
  border-radius: var(--ycws-radius-lg);
  border: 1px solid var(--ycws-border);
  padding: 1.75rem;
  box-shadow: var(--ycws-shadow-sm);
}

.sidebar-widget-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--ycws-dark);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #f1f5f9;
  position: relative;
}

.sidebar-widget-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 40px;
  height: 2px;
  background: var(--ycws-primary);
}

/* Sidebar Post Item */
.sidebar-post-item {
  display: flex;
  gap: 0.85rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f1f5f9;
  text-decoration: none;
  align-items: center;
}

.sidebar-post-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.sidebar-post-thumb {
  width: 68px;
  height: 68px;
  border-radius: var(--ycws-radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.sidebar-post-info {
  display: flex;
  flex-direction: column;
}

.sidebar-post-cat {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--ycws-primary);
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.sidebar-post-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ycws-dark);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.sidebar-post-item:hover .sidebar-post-title {
  color: var(--ycws-primary);
}

.sidebar-post-date {
  font-size: 0.75rem;
  color: var(--ycws-text-muted);
  margin-top: 0.25rem;
}

/* Donation CTA Widget */
.sidebar-donation-widget {
  background: linear-gradient(135deg, #0f172a 0%, #3b0764 100%);
  color: #ffffff;
  border: none;
}

.sidebar-donation-widget .sidebar-widget-title {
  color: #ffffff;
  border-bottom-color: rgba(255,255,255,0.15);
}

.sidebar-donation-widget .sidebar-widget-title::after {
  background: var(--ycws-accent);
}

.sidebar-donation-widget p {
  color: #cbd5e1;
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.donation-preset-chips {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.donation-chip {
  background: rgba(255,255,255,0.12);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.65rem;
  border-radius: var(--ycws-radius-sm);
  text-decoration: none;
  transition: all 0.2s ease;
}

.donation-chip:hover {
  background: var(--ycws-accent);
  color: #0f172a;
}

/* Categories List Widget */
.sidebar-cat-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-cat-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s ease;
  text-decoration: none;
}

.sidebar-cat-item a:hover {
  color: var(--ycws-primary);
  padding-left: 0.35rem;
}

.sidebar-cat-count {
  background: #f1f5f9;
  color: #64748b;
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: var(--ycws-radius-full);
  font-weight: 700;
}

/* Safeguarding Box */
.sidebar-safeguard-box {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--ycws-radius-md);
  padding: 1.25rem;
}

.sidebar-safeguard-box h5 {
  font-size: 0.95rem;
  font-weight: 800;
  color: #92400e;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.sidebar-safeguard-box p {
  font-size: 0.8rem;
  color: #78350f;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

/* Full-Width Related Posts Section */
.related-posts-section {
  background-color: #f8fafc;
  padding: 5rem 0;
  border-top: 1px solid var(--ycws-border);
}

.related-posts-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 992px) {
  .related-posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .related-posts-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   3D Curved Panoramic Gallery (Field Documentation)
   ========================================================================== */
.section-3d-gallery {
  background-color: #ffffff;
  padding: 5rem 0 3.5rem;
  overflow: hidden;
  position: relative;
  width: 100%;
  max-width: 100vw;
  contain: paint;
}

.gallery-header-container {
  text-align: center;
}

.gallery-section-header {
  max-width: 720px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.gallery-section-header .section-badge {
  display: inline-block;
  padding: 6px 18px;
  background-color: #f3e8ff;
  color: var(--ycws-primary, #5c2882);
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.gallery-main-title {
  font-size: clamp(2rem, 3.8vw, 2.75rem);
  font-weight: 800;
  color: var(--ycws-navy, #0f172a);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 1rem;
  text-transform: uppercase;
}

.gallery-main-desc {
  font-size: 1.05rem;
  color: var(--ycws-text-muted, #64748b);
  line-height: 1.6;
  margin: 0 auto 1.75rem;
  max-width: 620px;
}

.gallery-cta-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.gallery-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  background-color: var(--ycws-navy, #0f172a);
  color: #ffffff;
  border-radius: 9999px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.15);
}

.gallery-cta-btn:hover {
  background-color: var(--ycws-primary, #5c2882);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(92, 40, 130, 0.3);
}

.gallery-cta-btn .dashicons {
  font-size: 1.1rem;
  width: 1.1rem;
  height: 1.1rem;
  line-height: 1.1rem;
  transition: transform 0.2s ease;
}

.gallery-cta-btn:hover .dashicons {
  transform: translateX(4px);
}

/* 3D Curved Perspective Viewport */
.ycws-3d-gallery-viewport {
  width: 100%;
  overflow: hidden;
  perspective: 1200px;
  perspective-origin: center center;
  padding: 40px 0 65px;
  position: relative;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
  contain: paint;
}

.ycws-3d-gallery-viewport:active {
  cursor: grabbing;
}

.ycws-3d-gallery-track {
  display: flex;
  gap: 22px;
  width: max-content;
  transform-style: preserve-3d;
  will-change: transform;
  align-items: center;
}

/* 3D Individual Card */
.ycws-3d-card {
  flex: 0 0 250px;
  height: 340px;
  border-radius: 20px;
  overflow: hidden;
  background: #1e293b;
  position: relative;
  transform-origin: center center;
  transition: box-shadow 0.35s ease, filter 0.35s ease;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.14), 0 4px 12px rgba(0, 0, 0, 0.06);
}

.ycws-3d-card:hover {
  box-shadow: 0 24px 50px rgba(92, 40, 130, 0.28), 0 8px 20px rgba(0, 0, 0, 0.12);
  z-index: 5;
}

.ycws-3d-card-inner {
  width: 100%;
  height: 100%;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
}

.ycws-3d-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.ycws-3d-card:hover .ycws-3d-card-img {
  transform: scale(1.08);
}

.ycws-3d-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.25) 50%, transparent 80%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  color: #ffffff;
  transition: background 0.3s ease;
}

.ycws-3d-card:hover .ycws-3d-card-overlay {
  background: linear-gradient(to top, rgba(92, 40, 130, 0.92) 0%, rgba(15, 23, 42, 0.35) 55%, transparent 85%);
}

.ycws-3d-card-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fde047;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.ycws-3d-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

.ycws-3d-card-link {
  position: absolute;
  inset: 0;
  z-index: 2;
  cursor: pointer;
}

/* Edge Masking / Vignette gradient for subtle depth */
.ycws-3d-gallery-viewport::before,
.ycws-3d-gallery-viewport::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 3;
  pointer-events: none;
}

.ycws-3d-gallery-viewport::before {
  left: 0;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.9) 0%, transparent 100%);
}

.ycws-3d-gallery-viewport::after {
  right: 0;
  background: linear-gradient(to left, rgba(255, 255, 255, 0.9) 0%, transparent 100%);
}

/* Mobile Responsive Optimization (Mobile First & Zero Overflow) */
@media (max-width: 768px) {
  .section-3d-gallery {
    padding: 3.5rem 0 2rem;
    max-width: 100vw;
    overflow: hidden;
  }

  .gallery-section-header {
    margin-bottom: 1.75rem;
    padding: 0 1rem;
  }

  .gallery-main-title {
    font-size: 1.65rem;
    letter-spacing: -0.02em;
  }

  .gallery-main-desc {
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
  }

  .gallery-cta-btn {
    padding: 0.65rem 1.65rem;
    font-size: 0.88rem;
  }

  .ycws-3d-gallery-viewport {
    perspective: 700px;
    padding: 20px 0 40px;
    max-width: 100vw;
    overflow: hidden;
  }

  .ycws-3d-gallery-viewport::before,
  .ycws-3d-gallery-viewport::after {
    width: 45px;
  }

  .ycws-3d-gallery-track {
    gap: 14px;
  }

  .ycws-3d-card {
    flex: 0 0 180px;
    height: 250px;
    border-radius: 16px;
  }

  .ycws-3d-card-inner {
    border-radius: 16px;
  }

  .ycws-3d-card-overlay {
    padding: 12px;
  }

  .ycws-3d-card-tag {
    font-size: 0.65rem;
    margin-bottom: 4px;
  }

  .ycws-3d-card-title {
    font-size: 0.82rem;
    line-height: 1.3;
  }
}

