/*
Theme Name: SG News Theme
Theme URI: https://sgnews.org/theme
Author: SG News Digital Media Team
Author URI: https://sgnews.org
Description: Official modern, responsive, high-performance WordPress theme for SG News Catholic and global news portal. Features editorial serif typography, breaking news ticker, video interview Soul Chats, documentaries, custom sidebar cards, donation integration, and full mobile optimization.
Version: 1.0.0
Requires at least: 5.6
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sg-news
Tags: news, magazine, grid-layout, custom-menu, featured-images, responsive-layout, block-patterns, one-column, two-columns
*/

:root {
  --sg-navy: #00234b;
  --sg-header-bg: #00234b;
  --sg-gold: #F59E0B;
  --sg-gold-hover: #D97706;
  --sg-blue-badge: #00234b;
  --sg-red-feast: #DC2626;
  --sg-text-dark: #00234b;
  --sg-text-muted: #64748B;
  --sg-bg-light: #F6F8FA;
  --sg-card-bg: #FFFFFF;
  --sg-border: #E2E8F0;
  --font-serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Dark Mode Theme Variables & Elements */
html.dark-mode,
body.dark-mode {
  --sg-navy: #001733;
  --sg-header-bg: #001733;
  --sg-bg-light: #001733;
  --sg-card-bg: #00234b;
  --sg-border: rgba(255, 255, 255, 0.12);
  --sg-text-dark: #F8FAFC;
  --sg-text-muted: #94A3B8;
  background-color: #001733;
  color: #F8FAFC;
}

body.dark-mode .sg-site-header {
  background-color: #001733;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .sg-breaking-bar {
  background-color: #001226;
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .sg-breaking-item {
  color: #E2E8F0;
}

body.dark-mode .sg-breaking-item:hover {
  color: #F59E0B;
}

body.dark-mode .sg-ticker-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #E2E8F0;
  border-color: rgba(255, 255, 255, 0.2);
}

body.dark-mode .sg-article-card {
  background-color: #00234b;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

body.dark-mode .sg-card-title,
body.dark-mode .sg-section-title,
body.dark-mode .sg-sidebar-title {
  color: #F8FAFC;
}

body.dark-mode .sg-card-meta {
  color: #94A3B8;
}

body.dark-mode .sg-sidebar-widget {
  background: #00234b;
  border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .sg-site-footer {
  background-color: #000E1F;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Header Dark/Light Toggle Button */
.sg-theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
}

.sg-theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

.sg-theme-toggle-btn .sg-theme-icon {
  font-size: 1rem;
  display: inline-block;
  line-height: 1;
}

body.dark-mode .sg-theme-toggle-btn {
  background: rgba(245, 158, 11, 0.2);
  border-color: rgba(245, 158, 11, 0.4);
  color: #FDE68A;
}

body.dark-mode .sg-theme-toggle-btn:hover {
  background: rgba(245, 158, 11, 0.3);
}

/* Footer Custom Logo & Change Option */
.sg-footer-custom-logo {
  max-height: 52px;
  max-width: 220px;
  width: auto;
  object-fit: contain;
  display: block;
}

.sg-change-logo-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #00234b;
  background: #F59E0B;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  margin-top: 0.4rem;
}

.sg-change-logo-btn:hover {
  background: #D97706;
  color: #ffffff;
  transform: translateY(-1px);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  background-color: var(--sg-bg-light);
  color: var(--sg-text-dark);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

/* Top Utility Bar */
.sg-top-bar {
  background-color: #00234B;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #94A3B8;
  font-size: 0.75rem;
  padding: 0.35rem 1.25rem;
}

.sg-top-bar-container {
  max-width: 1380px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.sg-top-bar-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.sg-top-bar-dot {
  width: 7px;
  height: 7px;
  border-radius: 9999px;
  background-color: #34D399;
  box-shadow: 0 0 6px #34D399;
  flex-shrink: 0;
  display: inline-block;
  animation: sgPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes sgPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .4; transform: scale(0.9); }
}

.sg-top-bar-text {
  color: #CBD5E1;
  font-weight: 500;
  font-size: 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sg-top-bar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.sg-top-bar-link {
  color: #F59E0B;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  transition: color 0.15s ease;
}

.sg-top-bar-link:hover {
  color: #FBBF24;
  text-decoration: underline;
}

/* Header & Nav */
.sg-site-header {
  background-color: var(--sg-header-bg);
  color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.sg-nav-container {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sg-logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.sg-custom-logo-wrap {
  display: flex;
  align-items: center;
}

.sg-header-custom-logo,
.custom-logo-link img,
.custom-logo {
  max-height: 56px;
  width: auto;
  object-fit: contain;
  display: block;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.sg-header-custom-logo:hover,
.custom-logo-link img:hover {
  opacity: 0.92;
}

.sg-logo-badge {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.sg-logo-letters {
  font-size: 2.2rem;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.05em;
  line-height: 0.9;
  display: flex;
  align-items: center;
}

.sg-logo-s {
  color: #F59E0B;
  text-shadow: 0 2px 4px rgba(245, 158, 11, 0.4);
}

.sg-logo-g {
  color: #38BDF8;
  margin-left: -3px;
}

.sg-logo-news {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.25em;
  color: #F59E0B;
  margin-top: 2px;
}

/* Navigation Links */
.sg-primary-menu {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}

.sg-primary-menu li {
  position: relative;
  display: flex;
  align-items: center;
}

.sg-primary-menu li a {
  font-size: 0.79rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #E2E8F0;
  padding: 0.45rem 0.75rem;
  border-radius: 6px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  transition: all 0.2s ease;
  line-height: 1.2;
}

.sg-primary-menu li.current-menu-item > a,
.sg-primary-menu li a.is-active {
  background-color: var(--sg-gold);
  color: #0F172A;
}

.sg-primary-menu li a:hover:not(.is-active) {
  color: var(--sg-gold);
}

/* Ensure mobile toggle button or any extra arrow is strictly hidden on desktop */
.sg-sub-toggle,
.sg-primary-menu .sg-sub-toggle,
#site-navigation .sg-sub-toggle {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* 3-Level Dropdown Sub-menu System */
.sg-primary-menu li ul.sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #001B3A;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
  min-width: 230px;
  padding: 0.4rem 0;
  list-style: none;
  margin: 0.25rem 0 0 0;
  z-index: 1000;
}

.sg-primary-menu li:hover > ul.sub-menu,
.sg-primary-menu li:focus-within > ul.sub-menu {
  display: block;
  animation: sgSlideDown 0.18s ease-out forwards;
}

.sg-primary-menu li ul.sub-menu li {
  width: 100%;
}

.sg-primary-menu li ul.sub-menu li a {
  display: block;
  padding: 0.55rem 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #CBD5E1;
  border-radius: 0;
  text-transform: none;
  letter-spacing: normal;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.sg-primary-menu li ul.sub-menu li a:hover {
  background-color: rgba(245, 158, 11, 0.15);
  color: var(--sg-gold);
  padding-left: 1.25rem;
}

/* Buttons & Actions */
.sg-header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.sg-btn-donate {
  background-color: var(--sg-gold);
  color: #00234B;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  padding: 0.45rem 1.25rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  transition: all 0.2s ease;
  white-space: nowrap !important;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.25);
  flex-shrink: 0;
}

.sg-btn-donate:hover {
  background-color: var(--sg-gold-hover);
  color: #00234B;
  transform: translateY(-1px);
}

.sg-btn-donate-short {
  display: none;
}

.sg-theme-toggle-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #E2E8F0;
  padding: 0.38rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.sg-theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.3);
}

.sg-theme-toggle-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #E2E8F0;
}

.sg-search-trigger {
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
  font-size: 1.15rem;
  padding: 0.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.sg-search-trigger:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Clean Search Modal Overlay */
.sg-search-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 15, 35, 0.8);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
}

.sg-search-modal-inner {
  background: #00234B;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 1.25rem;
  width: 90%;
  max-width: 560px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.sg-search-modal-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 0.35rem 0.6rem;
}

.sg-search-modal-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1rem;
  padding: 0.5rem 0.6rem;
  outline: none;
}

.sg-search-modal-input::placeholder {
  color: #94A3B8;
}

.sg-search-modal-submit,
.sg-search-modal-close {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  transition: background 0.15s ease;
}

.sg-search-modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
}

.sg-mobile-toggle {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  cursor: pointer;
  font-size: 1.35rem;
  padding: 0.35rem 0.55rem;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  flex-shrink: 0;
  line-height: 1;
  transition: all 0.2s ease;
}

.sg-mobile-toggle:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* Breaking News Continuous Marquee Ticker */
@keyframes sgMarquee {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

.sg-breaking-bar {
  background-color: #FFFFFF;
  border-bottom: 1px solid var(--sg-border);
  font-size: 0.85rem;
  overflow: hidden;
  position: relative;
  z-index: 20;
}

.sg-breaking-container {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0.4rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sg-breaking-badge {
  background-color: var(--sg-gold);
  color: #00234b;
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.85rem;
  border-radius: 4px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  flex-shrink: 0;
  z-index: 10;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.sg-breaking-marquee-wrap {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  position: relative;
  white-space: nowrap;
}

.sg-breaking-marquee-track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  animation: sgMarquee 38s linear infinite;
  will-change: transform;
}

.sg-breaking-marquee-wrap:hover .sg-breaking-marquee-track,
.sg-breaking-marquee-track.is-paused {
  animation-play-state: paused;
}

.sg-breaking-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 1.25rem;
  color: #1E293B;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.85rem;
}

.sg-breaking-item:hover {
  color: var(--sg-navy);
  text-decoration: underline;
}

.sg-ticker-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  z-index: 10;
}

.sg-ticker-btn {
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  color: #475569;
  border-radius: 4px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: bold;
  font-size: 0.75rem;
  transition: all 0.15s ease;
}

.sg-ticker-btn:hover {
  background: var(--sg-gold);
  color: #00234b;
  border-color: var(--sg-gold);
}

/* Main Layout Grid */
.sg-site-main {
  max-width: 1380px;
  margin: 1.5rem auto 3rem;
  padding: 0 1.5rem;
}

/* Full-width editorial hero placed above two-column layout */
.sg-hero-full-width {
  width: 100%;
  margin-bottom: 2.5rem;
}

.sg-main-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  align-items: start;
}

/* Hero Section */
.sg-hero-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 1.5rem;
}

/* Main Section: Hero Lead Carousel with Changing Effects */
.sg-hero-carousel {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: var(--sg-card-bg);
  border: 1px solid var(--sg-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.sg-hero-slides-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.sg-hero-slide {
  display: none;
  opacity: 0;
  transition: opacity 0.55s ease, transform 0.55s ease;
  transform: scale(0.99);
  width: 100%;
  height: 100%;
  flex-direction: column;
}

.sg-hero-slide.active {
  display: flex;
  opacity: 1;
  transform: scale(1);
  height: 100%;
  flex: 1;
}

/* Hero Media on TOP: Clean, crisp, unobstructed photo */
.sg-hero-media-wrap {
  position: relative;
  width: 100%;
  height: 330px;
  overflow: hidden;
  background-color: #0F172A;
}

.sg-hero-media-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.sg-hero-carousel:hover .sg-hero-slide.active .sg-hero-media-wrap img {
  transform: scale(1.04);
}

.sg-hero-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: #F59E0B;
  color: #00234b;
  font-weight: 800;
  font-size: 0.72rem;
  padding: 0.35rem 0.8rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

/* Prev / Next Slide Arrows on Image */
.sg-hero-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 35, 75, 0.75);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  cursor: pointer;
  z-index: 8;
  transition: all 0.2s ease;
  line-height: 1;
}

.sg-hero-nav-arrow:hover {
  background: #F59E0B;
  color: #00234b;
  border-color: #F59E0B;
  transform: translateY(-50%) scale(1.08);
}

.sg-hero-arrow-prev {
  left: 1rem;
}

.sg-hero-arrow-next {
  right: 1rem;
}

/* Slide Indicator Dots on Image Bottom-Right */
.sg-hero-dots-wrap {
  position: absolute;
  bottom: 0.85rem;
  right: 1rem;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.sg-hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.25s ease;
}

.sg-hero-dot.active {
  width: 22px;
  border-radius: 9999px;
  background: #F59E0B;
}

.sg-hero-count {
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 700;
  margin-left: 0.35rem;
}

/* Heading & Story Content: Positioned AT BOTTOM OF IMAGE */
.sg-hero-content-body {
  padding: 1.5rem 1.75rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  background: var(--sg-card-bg);
}

.sg-hero-content-title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--sg-text-dark);
  margin: 0 0 0.65rem;
  transition: color 0.2s ease;
}

.sg-hero-carousel:hover .sg-hero-slide.active .sg-hero-content-title {
  color: #00234b;
}

body.dark-mode .sg-hero-carousel:hover .sg-hero-slide.active .sg-hero-content-title {
  color: #FBBF24;
}

.sg-hero-content-excerpt {
  font-size: 0.95rem;
  color: var(--sg-text-muted);
  line-height: 1.6;
  margin: 0 0 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sg-hero-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  border-top: 1px solid var(--sg-border);
  font-size: 0.8rem;
  color: var(--sg-text-muted);
  margin-top: auto;
}

.sg-hero-meta-items {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sg-hero-read-more {
  font-weight: 700;
  color: #00234b;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  text-decoration: none;
  transition: transform 0.2s ease, color 0.2s ease;
}

body.dark-mode .sg-hero-read-more {
  color: #F59E0B;
}

.sg-hero-carousel:hover .sg-hero-read-more {
  transform: translateX(3px);
}

/* 4 Top Right Latest Updates Column (Base Desktop Styles) */
.sg-latest-updates-column {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.85rem;
  height: 100%;
}

.sg-latest-updates-column .sg-latest-update-card,
article.sg-latest-update-card {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  min-height: 125px !important;
  height: auto !important;
  background: var(--sg-card-bg, #ffffff) !important;
  border: 1px solid var(--sg-border, #E2E8F0) !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
  flex: 1 !important;
}

body.dark-mode .sg-latest-updates-column .sg-latest-update-card,
body.dark-mode article.sg-latest-update-card {
  background: #00234b !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

.sg-latest-updates-column .sg-latest-update-card:hover,
article.sg-latest-update-card:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08) !important;
}

.sg-latest-update-thumb {
  display: block !important;
  width: 38% !important;
  min-width: 120px !important;
  max-width: 145px !important;
  height: 100% !important;
  min-height: 125px !important;
  flex-shrink: 0 !important;
  overflow: hidden !important;
  background-color: #0F172A !important;
  position: relative !important;
  align-self: stretch !important;
}

.sg-latest-update-thumb img {
  width: 100% !important;
  height: 100% !important;
  min-height: 125px !important;
  object-fit: cover !important;
  display: block !important;
  transition: transform 0.35s ease !important;
}

.sg-latest-update-card:hover .sg-latest-update-thumb img {
  transform: scale(1.05) !important;
}

.sg-latest-update-card .sg-card-body {
  padding: 0.65rem 0.85rem !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  flex: 1 !important;
  min-width: 0 !important;
  background: var(--sg-card-bg, #ffffff) !important;
}

body.dark-mode .sg-latest-update-card .sg-card-body {
  background: #00234b !important;
}

.sg-latest-update-card h3,
.sg-latest-update-title {
  font-family: var(--font-serif) !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  margin: 0 !important;
  line-height: 1.35 !important;
  color: var(--sg-text-dark, #00234b) !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  word-break: break-word !important;
}

.sg-latest-update-card h3 a,
.sg-latest-update-title a {
  color: var(--sg-text-dark, #00234b) !important;
  text-decoration: none !important;
  transition: color 0.15s ease !important;
}

body.dark-mode .sg-latest-update-card h3,
body.dark-mode .sg-latest-update-title,
body.dark-mode .sg-latest-update-card h3 a,
body.dark-mode .sg-latest-update-title a {
  color: #F8FAFC !important;
}

.sg-latest-update-card:hover h3 a,
.sg-latest-update-title a:hover {
  color: var(--sg-gold, #F59E0B) !important;
}

/* Section Titles with Golden Rule */
.sg-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  margin-top: 2rem;
  position: relative;
}

.sg-section-title-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.sg-section-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--sg-navy);
  letter-spacing: 0.02em;
  margin: 0;
  white-space: nowrap;
  text-transform: uppercase;
}

.sg-section-rule {
  flex: 1;
  height: 2px;
  background-color: var(--sg-gold);
  opacity: 0.9;
  margin-left: 0.75rem;
  border-radius: 2px;
}

.sg-view-all {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--sg-navy);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
  padding-left: 0.75rem;
}

.sg-view-all:hover {
  color: var(--sg-gold-hover);
}

/* Article Cards Grid */
.sg-articles-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.sg-article-card {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--sg-border);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sg-clickable-card {
  cursor: pointer;
}

.sg-card-thumb-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.sg-article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.sg-card-thumb-wrap {
  position: relative;
  height: 180px;
  overflow: hidden;
}

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

.sg-article-card:hover .sg-card-thumb {
  transform: scale(1.05);
}

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

.sg-category-filter-pills {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

.sg-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  text-decoration: none;
  transition: all 0.15s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.sg-cat-pill:hover,
.sg-cat-pill.active {
  background: #F59E0B;
  color: #00234B;
  border-color: #F59E0B;
}

.sg-card-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  color: #0F172A;
  margin: 0 0 0.5rem;
}

.sg-card-title a {
  color: #0F172A;
  text-decoration: none;
  transition: color 0.2s ease;
}

.sg-card-title a:hover {
  color: var(--sg-gold-hover);
}

.dark .sg-card-title a {
  color: #F8FAFC;
}

.dark .sg-card-title a:hover {
  color: #F59E0B;
}

.sg-card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--sg-text-muted);
  margin-top: auto;
}

.sg-articles-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.sg-edit-section-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #0284C7;
  background: #E0F2FE;
  border: 1px solid #BAE6FD;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  text-decoration: none;
  margin-left: 0.5rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.sg-edit-section-btn:hover {
  background: #0284C7;
  color: #ffffff;
}

.dark .sg-edit-section-btn {
  background: rgba(14, 165, 233, 0.2);
  color: #38BDF8;
  border-color: rgba(56, 189, 248, 0.3);
}

.dark .sg-edit-section-btn:hover {
  background: #0284C7;
  color: #ffffff;
}

/* Soul Chats 4-Grid */
.sg-soul-chats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.sg-soul-chat-card {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--sg-border);
}

.sg-soul-photo-wrap {
  position: relative;
  height: 210px;
}

.sg-duration-pill {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background-color: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Sidebar Custom Cards - Uniform 420px Height Matching Feast Card */
.sg-sidebar-widget {
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid var(--sg-border);
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.sg-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem 0.5rem;
}

.sg-sidebar-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0;
  color: var(--sg-navy);
}

.sg-sidebar-title.is-feast {
  color: var(--sg-red-feast);
}

.sg-sidebar-widget.is-feast .sg-section-rule {
  background-color: var(--sg-red-feast);
}

.sg-sidebar-widget.is-feast .sg-sidebar-card-arrow:hover,
.sg-sidebar-widget.is-feast .sg-carousel-arrow-btn:hover {
  background-color: var(--sg-red-feast);
  color: #ffffff;
}

/* Announcement Box Styles (Red Title & Red Divider Line) */
.sg-sidebar-title.is-announcement {
  color: #DC2626;
}

.sg-sidebar-widget.is-announcement .sg-section-rule {
  background-color: #DC2626;
}

.sg-sidebar-widget.is-announcement .sg-sidebar-card-arrow:hover,
.sg-sidebar-widget.is-announcement .sg-carousel-arrow-btn:hover {
  background-color: #DC2626;
  color: #ffffff;
}

/* All Sidebar Cards & Carousel Stages have exact same 420px height as Feast Card */
.sg-sidebar-card-body,
.sg-carousel-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 420px;
  min-height: 420px;
  max-height: 420px;
  background: #0B132B;
}

.sg-sidebar-card-body img,
.sg-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Carousel Slide Animation & Rotation Transitions */
.sg-carousel-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.95) rotateY(10deg);
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1), transform 0.55s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.55s;
  z-index: 1;
}

.sg-carousel-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1) rotateY(0);
  z-index: 2;
}

.sg-carousel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 35, 75, 0.88) 0%, rgba(0, 0, 0, 0.25) 45%, transparent 100%);
  pointer-events: none;
}

.sg-carousel-caption {
  position: absolute;
  bottom: 1.15rem;
  left: 1rem;
  right: 4.5rem;
  color: #ffffff;
  z-index: 3;
  pointer-events: none;
  text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

.sg-carousel-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #F59E0B;
  margin-bottom: 0.2rem;
}

.is-announcement .sg-carousel-tag {
  color: #FCA5A5;
}

.sg-carousel-caption h4 {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.25;
  color: #ffffff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Carousel Header Nav Controls */
.sg-carousel-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.sg-carousel-dots {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.sg-carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: #CBD5E1;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.sg-carousel-dot.active {
  width: 16px;
  background: #F59E0B;
}

.is-announcement .sg-carousel-dot.active {
  background: #DC2626;
}

.sg-carousel-count {
  font-size: 0.68rem;
  font-weight: 700;
  color: #64748B;
  margin-left: 0.2rem;
}

/* Slide Bottom Action Buttons */
.sg-carousel-arrow-btn,
.sg-sidebar-card-arrow {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  color: #00234b;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  z-index: 10;
  font-size: 1.15rem;
  font-weight: bold;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.sg-carousel-arrow-btn:hover,
.sg-sidebar-card-arrow:hover {
  background-color: var(--sg-gold);
  color: #00234b;
  transform: scale(1.1);
}

.sg-carousel-prev-btn {
  position: absolute;
  bottom: 1rem;
  right: 3.8rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #00234b;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  z-index: 10;
  font-size: 0.95rem;
  font-weight: bold;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.sg-carousel-prev-btn:hover {
  background-color: var(--sg-gold);
  transform: scale(1.08);
}

/* Big Screen Image Lightbox Modal & Zoom Trigger Buttons */
.sg-card-zoom-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 35, 75, 0.85);
  color: #F59E0B;
  border: 1px solid rgba(245, 158, 11, 0.4);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  z-index: 15;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.sg-card-zoom-btn:hover {
  transform: scale(1.15);
  background: #00234B;
  color: #ffffff;
  border-color: #F59E0B;
}

.sg-image-modal {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 15, 35, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: sgModalFadeIn 0.22s ease-out;
}

@keyframes sgModalFadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

.sg-image-modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.sg-image-modal-content img {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: #0F172A;
}

.sg-image-modal-caption {
  margin-top: 0.75rem;
  color: #F8FAFC;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.sg-image-modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sg-image-modal-close:hover {
  background: #DC2626;
  border-color: #DC2626;
  transform: scale(1.1);
}

/* Footer */
.sg-site-footer {
  background-color: var(--sg-navy);
  color: #E2E8F0;
  padding: 3rem 1.5rem 1.5rem;
  font-size: 0.875rem;
}

.sg-footer-container {
  max-width: 1380px;
  margin: 0 auto;
}

.sg-footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Footer Categories Grouping */
.sg-footer-categories-col .sg-cat-group-title {
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  display: block;
  margin-bottom: 0.25rem;
  transition: color 0.2s;
}

.sg-footer-categories-col .sg-cat-group-title:hover {
  color: var(--sg-gold);
}

.sg-footer-categories-col .sg-cat-sublinks {
  color: #94A3B8;
  font-size: 0.825rem;
  line-height: 1.5;
}

.sg-footer-categories-col .sg-cat-sublinks a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.sg-footer-categories-col .sg-cat-sublinks a:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

/* Custom Navigation Menu Support in Footer Categories Column */
.sg-footer-categories-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.sg-footer-categories-menu > li > a {
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  text-decoration: none;
  display: block;
  margin-bottom: 0.25rem;
  transition: color 0.2s;
}

.sg-footer-categories-menu > li > a:hover {
  color: var(--sg-gold);
}

.sg-footer-categories-menu > li > ul.sub-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  color: #94A3B8;
  font-size: 0.825rem;
  line-height: 1.5;
}

.sg-footer-categories-menu > li > ul.sub-menu li {
  display: inline-flex;
  align-items: center;
}

.sg-footer-categories-menu > li > ul.sub-menu li:not(:last-child)::after {
  content: "•";
  margin-left: 0.5rem;
  color: #64748B;
  font-size: 0.75rem;
}

.sg-footer-categories-menu > li > ul.sub-menu li a {
  color: #94A3B8;
  text-decoration: none;
  font-size: 0.825rem;
  transition: color 0.2s;
}

.sg-footer-categories-menu > li > ul.sub-menu li a:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

.sg-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  font-size: 0.8rem;
  color: #94A3B8;
}

/* Responsive Navigation & Mobile Layout System */
@keyframes sgSlideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   Comprehensive Responsive System (Tablet & Mobile Perfection)
   ========================================================================== */

/* Universal Mobile Overflow Protection */
@media (max-width: 1024px) {
  html, body {
    overflow-x: hidden;
    max-width: 100vw;
  }
}

/* --------------------------------------------------------------------------
   1. Tablet & Mobile Navigation Drawer (<= 1024px)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .sg-nav-container {
    position: relative;
    padding: 0.65rem 1rem;
    justify-content: space-between;
  }
  .sg-mobile-toggle {
    display: inline-flex !important;
  }
  .sg-main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #001f42;
    padding: 1.15rem 1.25rem 1.75rem;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    z-index: 9999;
    max-height: calc(100vh - 75px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .sg-main-nav.is-open {
    display: block;
    animation: sgSlideDown 0.22s ease-out forwards;
  }

  /* Mobile Drawer Search Form */
  .sg-mobile-search-wrap {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .sg-mobile-search-form {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    overflow: hidden;
    padding: 0.25rem 0.6rem;
  }
  .sg-mobile-search-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 0.92rem;
    padding: 0.45rem 0.5rem;
    outline: none;
  }
  .sg-mobile-search-input::placeholder {
    color: rgba(255, 255, 255, 0.55);
  }
  .sg-mobile-search-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.1rem;
    padding: 0.4rem 0.6rem;
    cursor: pointer;
  }

  /* Primary Menu Links on Mobile & Tablet Drawer */
  .sg-primary-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
    margin-bottom: 1.25rem;
    width: 100%;
    padding: 0;
  }
  .sg-primary-menu li {
    width: 100%;
    position: relative;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
  }
  .sg-primary-menu li a {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0;
    font-size: 0.92rem;
    font-weight: 700;
    color: #E2E8F0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
  }
  .sg-primary-menu li a:hover,
  .sg-primary-menu li.current-menu-item > a {
    background-color: var(--sg-gold);
    color: #00234b;
  }

  /* Sub-menu Dropdowns inside Mobile/Tablet Drawer */
  .sg-primary-menu li ul.sub-menu {
    display: none;
    position: static;
    top: auto;
    left: auto;
    width: 100%;
    min-width: 0;
    background: rgba(0, 15, 35, 0.5);
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0;
    box-shadow: none;
    margin: 0;
    padding: 0.35rem 0.5rem 0.5rem;
  }
  .sg-primary-menu li.is-expanded > ul.sub-menu {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    animation: sgSlideDown 0.18s ease-out forwards;
  }
  .sg-primary-menu li ul.sub-menu li {
    background: transparent;
    border: none;
    border-radius: 4px;
  }
  .sg-primary-menu li ul.sub-menu li a {
    padding: 0.45rem 0.75rem;
    font-size: 0.84rem;
    font-weight: 600;
    color: #CBD5E1;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .sg-primary-menu li ul.sub-menu li a:hover {
    background-color: rgba(245, 158, 11, 0.2);
    color: var(--sg-gold);
    padding-left: 0.9rem;
  }

  /* Sub-menu Toggle Arrow Button */
  .sg-sub-toggle {
    position: absolute;
    top: 0;
    right: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #94A3B8;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.2s ease, color 0.2s ease;
    z-index: 10;
  }
  .sg-sub-toggle:hover {
    color: #FFFFFF;
  }
  .sg-primary-menu li.is-expanded > .sg-sub-toggle {
    transform: rotate(180deg);
    color: var(--sg-gold);
  }

  /* Mobile Drawer Donate CTA */
  .sg-mobile-drawer-footer {
    padding-top: 0.5rem;
  }
  .sg-mobile-drawer-donate-btn {
    display: block;
    width: 100%;
    text-align: center;
    background: var(--sg-gold);
    color: #00234b;
    font-weight: 900;
    font-size: 0.88rem;
    letter-spacing: 0.04em;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    transition: all 0.2s ease;
  }
  .sg-mobile-drawer-donate-btn:hover {
    background: var(--sg-gold-hover);
    color: #ffffff;
  }
}

/* --------------------------------------------------------------------------
   2. Tablet Screens (769px to 1024px)
   -------------------------------------------------------------------------- */
@media (min-width: 769px) and (max-width: 1024px) {
  .sg-site-main {
    padding: 0 1.25rem;
    margin: 1.25rem auto 2.5rem;
  }

  /* Main Layout & Hero Grid stack cleanly */
  .sg-main-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .sg-hero-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .sg-hero-carousel {
    min-height: auto;
  }
  .sg-hero-media-wrap {
    height: 280px;
  }

  /* 4 Top Right Latest Updates transform into a 2x2 Grid on Tablet */
  .sg-latest-updates-column {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
  }
  .sg-latest-update-card,
  .sg-latest-updates-column .sg-article-card {
    min-height: 105px;
    height: auto !important;
  }
  .sg-latest-update-thumb,
  .sg-latest-updates-column .sg-article-card img {
    width: 120px !important;
    min-width: 120px !important;
  }

  /* Article Grids on Tablet: 2 Columns */
  .sg-articles-grid-3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
  .sg-articles-grid-4,
  .sg-soul-chats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  /* Sidebar Cards on Tablet: 2-Column Grid instead of 4 towering blocks */
  .sg-sidebar-column {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem !important;
  }
  .sg-sidebar-widget {
    margin-bottom: 0;
  }
  .sg-sidebar-card-body,
  .sg-carousel-container {
    height: 380px;
    min-height: 380px;
    max-height: 380px;
  }

  /* Footer on Tablet: 2 Columns */
  .sg-footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.25rem;
  }
}

/* --------------------------------------------------------------------------
   3. Mobile Screens (<= 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  /* Top Utility Bar */
  .sg-top-bar-full {
    display: none;
  }
  .sg-top-bar-short {
    display: inline;
  }
  .sg-top-bar {
    font-size: 0.72rem;
    padding: 0.35rem 0.5rem;
  }

  /* Header Controls */
  .sg-nav-container {
    padding: 0.5rem 0.85rem;
    gap: 0.5rem;
  }
  .sg-logo-wrap {
    gap: 0.5rem;
  }
  .sg-logo-svg {
    height: 38px !important;
  }
  .sg-custom-logo-wrap img {
    max-height: 38px !important;
    width: auto;
  }
  .sg-header-actions {
    gap: 0.45rem;
  }
  .sg-theme-toggle-label {
    display: none;
  }
  .sg-theme-toggle-btn {
    width: 34px;
    height: 34px;
    padding: 0;
    font-size: 0.95rem;
  }
  .sg-search-trigger {
    width: 32px;
    height: 32px;
    padding: 0;
    font-size: 1rem;
  }
  .sg-mobile-toggle {
    width: 34px;
    height: 34px;
    padding: 0;
    font-size: 1.3rem;
  }
  .sg-btn-donate {
    padding: 0.42rem 0.85rem;
    font-size: 0.76rem;
    letter-spacing: 0.04em;
  }

  /* Breaking News Marquee */
  .sg-breaking-container {
    padding: 0.35rem 0.75rem;
    gap: 0.5rem;
  }
  .sg-breaking-badge {
    font-size: 0.68rem;
    padding: 0.22rem 0.55rem;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .sg-ticker-nav {
    display: none;
  }

  /* Main Container */
  .sg-site-main {
    margin: 1rem auto 2rem;
    padding: 0 0.85rem;
  }

  /* Layout & Grids */
  .sg-main-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .sg-hero-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .sg-hero-carousel {
    min-height: auto;
  }
  .sg-hero-media-wrap {
    height: 220px;
  }
  .sg-hero-content-body {
    padding: 1rem 0.85rem 0.75rem;
  }
  .sg-hero-content-title {
    font-size: 1.25rem;
    line-height: 1.3;
    margin-bottom: 0.45rem;
  }
  .sg-hero-content-excerpt {
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .sg-hero-meta-bar {
    font-size: 0.72rem;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .sg-hero-meta-items {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  /* 4 Top Right Latest Updates on Mobile */
  .sg-latest-updates-column {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
  }
  .sg-latest-update-card,
  .sg-latest-updates-column .sg-article-card {
    display: flex !important;
    flex-direction: row !important;
    height: auto !important;
    min-height: 96px;
  }
  .sg-latest-update-thumb,
  .sg-latest-updates-column .sg-article-card img {
    width: 105px !important;
    min-width: 105px !important;
    height: 100% !important;
    min-height: 96px !important;
    object-fit: cover !important;
    display: block !important;
  }
  .sg-latest-update-card .sg-card-body,
  .sg-latest-updates-column .sg-article-card .sg-card-body {
    padding: 0.5rem 0.75rem !important;
  }

  /* Grids & Cards */
  .sg-articles-grid-3 {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .sg-articles-grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .sg-soul-chats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  /* Section Title */
  .sg-section-header {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
  }
  .sg-section-title {
    font-size: 1.15rem;
  }

  /* Sidebar Cards on Mobile: Responsive 320px Height */
  .sg-sidebar-column {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.5rem !important;
  }
  .sg-sidebar-widget {
    margin-bottom: 0;
  }
  .sg-sidebar-card-body,
  .sg-carousel-container {
    height: 320px !important;
    min-height: 320px !important;
    max-height: 320px !important;
  }

  /* Archive & Category Header on Mobile */
  .sg-archive-header {
    padding: 1.25rem 1rem !important;
    border-radius: 8px !important;
  }
  .sg-archive-header h1 {
    font-size: 1.5rem !important;
  }
  .sg-archive-subcats {
    gap: 0.35rem !important;
  }
  .sg-cat-pill {
    font-size: 0.75rem !important;
    padding: 0.25rem 0.65rem !important;
  }

  /* Footer on Mobile */
  .sg-footer-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .sg-footer-container {
    padding: 2.25rem 1rem 1.5rem;
  }
}

/* --------------------------------------------------------------------------
   4. Very Small Mobile Screens (<= 480px, e.g. iPhone SE, Galaxy S)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
  .sg-nav-container {
    padding: 0.4rem 0.6rem;
    gap: 0.3rem;
  }
  .sg-logo-wrap {
    gap: 0.35rem;
  }
  .sg-logo-svg {
    height: 33px !important;
  }
  .sg-custom-logo-wrap img {
    max-height: 33px !important;
  }
  .sg-header-actions {
    gap: 0.3rem;
  }

  /* Switch "DONATIONS" -> "DONATE" to guarantee no text wrapping */
  .sg-btn-donate-full {
    display: none !important;
  }
  .sg-btn-donate-short {
    display: inline !important;
  }
  .sg-btn-donate {
    padding: 0.35rem 0.62rem;
    font-size: 0.72rem;
    letter-spacing: 0.03em;
    border-radius: 5px;
  }
  .sg-theme-toggle-btn {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
    border-radius: 5px;
  }
  .sg-search-trigger {
    width: 30px;
    height: 30px;
    font-size: 0.95rem;
  }
  .sg-mobile-toggle {
    width: 32px;
    height: 32px;
    font-size: 1.25rem;
    border-radius: 5px;
  }

  /* Top bar hide right customize button on tiny screens */
  .sg-top-bar-right {
    display: none;
  }

  /* Hero adjustments for small phones */
  .sg-hero-media-wrap {
    height: 190px;
  }
  .sg-hero-content-body {
    padding: 0.85rem 0.75rem 0.7rem;
  }
  .sg-hero-content-title {
    font-size: 1.12rem;
    line-height: 1.28;
  }
  .sg-hero-content-excerpt {
    font-size: 0.8rem;
    -webkit-line-clamp: 2;
  }
  .sg-hero-nav-arrow {
    width: 32px;
    height: 32px;
    font-size: 1.1rem;
  }

  /* Grids to 1 column on small phones */
  .sg-articles-grid-4,
  .sg-soul-chats-grid {
    grid-template-columns: 1fr;
  }

  /* Sidebar Card Height for Small Screens */
  .sg-sidebar-card-body,
  .sg-carousel-container {
    height: 290px !important;
    min-height: 290px !important;
    max-height: 290px !important;
  }

  /* Footer on small devices */
  .sg-footer-container {
    padding: 2rem 0.85rem 1.25rem;
  }
  .sg-footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}

/* WordPress Customizer Shortcut Compatibility */
.customize-partial-edit-shortcut {
  flex-shrink: 0;
  margin-right: 2px;
}
.customize-partial-edit-shortcut button {
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  min-height: 24px !important;
}

/* Post Share Box & Related News Styling */
.sg-share-btn {
  transition: transform 0.18s ease, opacity 0.18s ease;
  user-select: none;
}
.sg-share-btn:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}
.sg-share-btn:active {
  transform: translateY(0);
}
.dark-mode .sg-share-post-wrapper {
  background: #111E38 !important;
  border-color: #1E293B !important;
}
.dark-mode .sg-share-post-wrapper h3 {
  color: #F8FAFC !important;
}
.dark-mode .sg-share-post-wrapper p {
  color: #94A3B8 !important;
}
.dark-mode .sg-related-news-section {
  border-top-color: #1E293B !important;
}
.dark-mode .sg-sponsor-ad-widget {
  background: #0B132B !important;
  border-color: #1E293B !important;
}
.dark-mode .sg-sponsor-ad-widget .sg-sidebar-header {
  border-bottom-color: #1E293B !important;
}


/* SG News: Unknown Stories section uses three equal cards across the full
   available main-column width instead of leaving a fourth-column gap. */
#sg-sec-unknown-stories .sg-articles-grid-4 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

#sg-sec-unknown-stories .sg-article-card {
    width: 100%;
    min-width: 0;
}

@media (max-width: 768px) {
    #sg-sec-unknown-stories .sg-articles-grid-4 {
        grid-template-columns: 1fr;
    }
}

/* Empty/duplicate topic categories are filtered server-side. */
.sg-archive-subcats .sg-cat-pill { white-space: nowrap; }


/* Main content and WordPress page/article text */
body.dark-mode .sg-site-main,
body.dark-mode .sg-content-column,
body.dark-mode .sg-archive-main,
body.dark-mode .entry-content,
body.dark-mode .entry-content p,
body.dark-mode .entry-content li,
body.dark-mode .entry-content span,
body.dark-mode .entry-content label,
body.dark-mode .sg-archive-description,
body.dark-mode .sg-archive-header p,
body.dark-mode .sg-category-block,
body.dark-mode .sg-category-block p {
  color: #F8FAFC;
}

/* Headings */
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6,
body.dark-mode .sg-archive-title,
body.dark-mode .sg-section-title,
body.dark-mode .sg-card-title,
body.dark-mode .sg-sidebar-title {
  color: #F8FAFC;
}

/* Links in normal content */
body.dark-mode .entry-content a,
body.dark-mode .sg-content-column a:not(.sg-edit-section-btn):not(.sg-view-all),
body.dark-mode .sg-archive-description a {
  color: #F8FAFC;
}

body.dark-mode .entry-content a:hover,
body.dark-mode .sg-content-column a:not(.sg-edit-section-btn):not(.sg-view-all):hover,
body.dark-mode .sg-archive-description a:hover {
  color: #F59E0B;
}

/* Article cards */
body.dark-mode .sg-article-card,
body.dark-mode .sg-article-card .sg-card-body {
  color: #F8FAFC;
  background-color: #00234B;
}

body.dark-mode .sg-card-title,
body.dark-mode .sg-card-title a {
  color: #F8FAFC;
}

body.dark-mode .sg-card-title a:hover {
  color: #F59E0B;
}

body.dark-mode .sg-card-meta {
  color: #CBD5E1;
}

/* Section "View All" and small labels */
body.dark-mode .sg-view-all {
  color: #F8FAFC;
}

body.dark-mode .sg-view-all:hover {
  color: #F59E0B;
}

/* Latest updates */
body.dark-mode .sg-latest-update-card h3,
body.dark-mode .sg-latest-update-card h3 a,
body.dark-mode .sg-latest-update-title,
body.dark-mode .sg-latest-update-title a {
  color: #F8FAFC;
}

/* Archive topic pills remain readable */
body.dark-mode .sg-cat-pill {
  color: #FFFFFF;
}

/* Form/input text */
body.dark-mode input,
body.dark-mode textarea,
body.dark-mode select {
  color: #F8FAFC;
  background-color: #001B3A;
  border-color: rgba(255,255,255,.2);
}

body.dark-mode input::placeholder,
body.dark-mode textarea::placeholder {
  color: #94A3B8;
}

/* Share/related/content widgets */
body.dark-mode .sg-share-post-wrapper,
body.dark-mode .sg-share-post-wrapper h3,
body.dark-mode .sg-share-post-wrapper p,
body.dark-mode .sg-related-news-section,
body.dark-mode .sg-related-news-section h2,
body.dark-mode .sg-related-news-section h3,
body.dark-mode .sg-related-news-section a {
  color: #F8FAFC;
}

/* Support themes that toggle the generic "dark" class instead of
   "dark-mode". */
html.dark,
body.dark {
  color: #F8FAFC;
}

body.dark .sg-card-title,
body.dark .sg-card-title a,
body.dark .sg-section-title,
body.dark .sg-sidebar-title,
body.dark .sg-archive-title,
body.dark .entry-content,
body.dark .entry-content p,
body.dark .entry-content li {
  color: #F8FAFC;
}


/* ================================================================
   SG NEWS DARK MODE — targeted text colors
   Only text on dark-background components becomes light.
   White/light sections intentionally keep dark text.
   ================================================================ */

/* Dark navigation/header */
body.dark-mode .sg-site-header,
body.dark-mode .sg-main-nav,
body.dark-mode .sg-topbar,
body.dark-mode .sg-header,
body.dark-mode .sg-nav,
body.dark-mode .sg-main-nav a,
body.dark-mode .sg-site-header a {
  color: #FFFFFF;
}

body.dark-mode .sg-main-nav a:hover,
body.dark-mode .sg-site-header a:hover {
  color: #F59E0B;
}

/* Dark section headers / archive banners */
body.dark-mode .sg-section-header.sg-dark,
body.dark-mode .sg-section-dark,
body.dark-mode .sg-dark-section,
body.dark-mode .sg-archive-header,
body.dark-mode .sg-archive-header h1,
body.dark-mode .sg-archive-header h2,
body.dark-mode .sg-archive-header p {
  color: #FFFFFF;
}

/* Dark blue article/card bodies */
body.dark-mode .sg-article-card.sg-dark-card,
body.dark-mode .sg-dark-card,
body.dark-mode .sg-card-dark,
body.dark-mode .sg-article-card .sg-dark-body,
body.dark-mode .sg-card-dark .sg-card-title,
body.dark-mode .sg-card-dark .sg-card-title a {
  color: #FFFFFF;
}

/* Dark footer */
body.dark-mode .site-footer,
body.dark-mode .sg-footer,
body.dark-mode .sg-footer a,
body.dark-mode .sg-footer h2,
body.dark-mode .sg-footer h3,
body.dark-mode .sg-footer h4,
body.dark-mode .sg-footer p {
  color: #FFFFFF;
}

body.dark-mode .sg-footer a:hover,
body.dark-mode .site-footer a:hover {
  color: #F59E0B;
}

/* Dark topic/category pills */
body.dark-mode .sg-cat-pill {
  color: #FFFFFF;
}

/* IMPORTANT:
   Do not globally recolor .entry-content, normal cards, archive grids,
   white panels, sidebar cards, or page text. Those keep their original
   black/dark text even when Dark Mode is enabled. */

/* Generic dark backgrounds used by the theme's blue panels. */
body.dark-mode .sg-dark-bg,
body.dark-mode .dark-bg,
body.dark-mode .bg-dark,
body.dark-mode [data-dark-bg="true"] {
  color: #FFFFFF;
}

body.dark-mode .sg-dark-bg h1,
body.dark-mode .sg-dark-bg h2,
body.dark-mode .sg-dark-bg h3,
body.dark-mode .sg-dark-bg h4,
body.dark-mode .sg-dark-bg h5,
body.dark-mode .sg-dark-bg h6,
body.dark-mode .sg-dark-bg p,
body.dark-mode .sg-dark-bg a,
body.dark-mode .dark-bg h1,
body.dark-mode .dark-bg h2,
body.dark-mode .dark-bg h3,
body.dark-mode .dark-bg h4,
body.dark-mode .dark-bg h5,
body.dark-mode .dark-bg h6,
body.dark-mode .dark-bg p,
body.dark-mode .dark-bg a,
body.dark-mode .bg-dark h1,
body.dark-mode .bg-dark h2,
body.dark-mode .bg-dark h3,
body.dark-mode .bg-dark h4,
body.dark-mode .bg-dark h5,
body.dark-mode .bg-dark h6,
body.dark-mode .bg-dark p,
body.dark-mode .bg-dark a,
body.dark-mode [data-dark-bg="true"] h1,
body.dark-mode [data-dark-bg="true"] h2,
body.dark-mode [data-dark-bg="true"] h3,
body.dark-mode [data-dark-bg="true"] h4,
body.dark-mode [data-dark-bg="true"] h5,
body.dark-mode [data-dark-bg="true"] h6,
body.dark-mode [data-dark-bg="true"] p,
body.dark-mode [data-dark-bg="true"] a {
  color: #FFFFFF;
}

/* Same targeted behavior for themes using a generic .dark class. */
body.dark .sg-dark-bg,
body.dark .dark-bg,
body.dark .bg-dark,
body.dark [data-dark-bg="true"] {
  color: #FFFFFF;
}


/* ================================================================
   SOUL CHATS — Dark Mode card readability
   The section background stays dark, but its white article cards
   must use dark text for contrast.
   ================================================================ */

body.dark-mode #sg-sec-soul-chats .sg-article-card,
body.dark-mode #sg-sec-soul-chats .sg-card,
body.dark-mode #sg-sec-soul-chats .sg-post-card {
    background: #FFFFFF;
    color: #111827;
}

body.dark-mode #sg-sec-soul-chats .sg-article-card .sg-card-body,
body.dark-mode #sg-sec-soul-chats .sg-card .sg-card-body,
body.dark-mode #sg-sec-soul-chats .sg-post-card .sg-card-body {
    background: #FFFFFF;
    color: #111827;
}

body.dark-mode #sg-sec-soul-chats .sg-article-card h1,
body.dark-mode #sg-sec-soul-chats .sg-article-card h2,
body.dark-mode #sg-sec-soul-chats .sg-article-card h3,
body.dark-mode #sg-sec-soul-chats .sg-article-card h4,
body.dark-mode #sg-sec-soul-chats .sg-article-card p,
body.dark-mode #sg-sec-soul-chats .sg-article-card span,
body.dark-mode #sg-sec-soul-chats .sg-article-card .sg-card-title,
body.dark-mode #sg-sec-soul-chats .sg-article-card .sg-card-title a,
body.dark-mode #sg-sec-soul-chats .sg-card h1,
body.dark-mode #sg-sec-soul-chats .sg-card h2,
body.dark-mode #sg-sec-soul-chats .sg-card h3,
body.dark-mode #sg-sec-soul-chats .sg-card h4,
body.dark-mode #sg-sec-soul-chats .sg-card p,
body.dark-mode #sg-sec-soul-chats .sg-card span,
body.dark-mode #sg-sec-soul-chats .sg-card .sg-card-title,
body.dark-mode #sg-sec-soul-chats .sg-card .sg-card-title a,
body.dark-mode #sg-sec-soul-chats .sg-post-card h1,
body.dark-mode #sg-sec-soul-chats .sg-post-card h2,
body.dark-mode #sg-sec-soul-chats .sg-post-card h3,
body.dark-mode #sg-sec-soul-chats .sg-post-card h4,
body.dark-mode #sg-sec-soul-chats .sg-post-card p,
body.dark-mode #sg-sec-soul-chats .sg-post-card span,
body.dark-mode #sg-sec-soul-chats .sg-post-card .sg-card-title,
body.dark-mode #sg-sec-soul-chats .sg-post-card .sg-card-title a {
    color: #111827;
}

body.dark-mode #sg-sec-soul-chats .sg-article-card .sg-card-meta,
body.dark-mode #sg-sec-soul-chats .sg-card .sg-card-meta,
body.dark-mode #sg-sec-soul-chats .sg-post-card .sg-card-meta {
    color: #64748B;
}

body.dark-mode #sg-sec-soul-chats .sg-section-title,
body.dark-mode #sg-sec-soul-chats .sg-section-title a,
body.dark-mode #sg-sec-soul-chats .sg-view-all {
    color: #FFFFFF;
}

body.dark-mode #sg-sec-soul-chats .sg-view-all:hover {
    color: #F59E0B;
}


/* ================================================================
   SOUL CHATS — FINAL DARK MODE CONTRAST FIX
   Actual markup: #sg-sec-soul-chats .sg-soul-chat-card
   White card = dark text. Dark section heading = white text.
   ================================================================ */

html.dark-mode #sg-sec-soul-chats .sg-soul-chat-card,
body.dark-mode #sg-sec-soul-chats .sg-soul-chat-card {
    background-color: #FFFFFF !important;
    color: #00234B !important;
}

html.dark-mode #sg-sec-soul-chats .sg-soul-chat-card h3,
html.dark-mode #sg-sec-soul-chats .sg-soul-chat-card h3 a,
body.dark-mode #sg-sec-soul-chats .sg-soul-chat-card h3,
body.dark-mode #sg-sec-soul-chats .sg-soul-chat-card h3 a {
    color: #00234B !important;
}

html.dark-mode #sg-sec-soul-chats .sg-soul-chat-card > div:last-child,
body.dark-mode #sg-sec-soul-chats .sg-soul-chat-card > div:last-child {
    background-color: #FFFFFF !important;
    color: #00234B !important;
}

html.dark-mode #sg-sec-soul-chats .sg-soul-chat-card > div:last-child p,
body.dark-mode #sg-sec-soul-chats .sg-soul-chat-card > div:last-child p {
    color: #64748B !important;
}

html.dark-mode #sg-sec-soul-chats .sg-section-title,
html.dark-mode #sg-sec-soul-chats .sg-section-title a,
html.dark-mode #sg-sec-soul-chats .sg-view-all,
body.dark-mode #sg-sec-soul-chats .sg-section-title,
body.dark-mode #sg-sec-soul-chats .sg-section-title a,
body.dark-mode #sg-sec-soul-chats .sg-view-all {
    color: #FFFFFF !important;
}

/* Also support the generic .dark class used by older theme states. */
html.dark #sg-sec-soul-chats .sg-soul-chat-card,
body.dark #sg-sec-soul-chats .sg-soul-chat-card {
    background-color: #FFFFFF !important;
    color: #00234B !important;
}

html.dark #sg-sec-soul-chats .sg-soul-chat-card h3,
html.dark #sg-sec-soul-chats .sg-soul-chat-card h3 a,
body.dark #sg-sec-soul-chats .sg-soul-chat-card h3,
body.dark #sg-sec-soul-chats .sg-soul-chat-card h3 a {
    color: #00234B !important;
}


/* ================================================================
   SG NEWS HEADER — small dropdown arrows
   Down arrow when closed; up arrow while dropdown is open.
   Header only; footer menus are unaffected.
   ================================================================ */

.sg-main-nav .sg-primary-menu > li.menu-item-has-children > a::after,
.sg-main-nav .sg-primary-menu > li:has(> ul.sub-menu) > a::after {
    content: "⌄";
    display: inline-block;
    margin-left: 0.35rem;
    font-size: 0.72rem;
    line-height: 1;
    font-weight: 800;
    color: currentColor;
    transform: translateY(-1px);
    transition: transform 0.18s ease;
}

/* Arrow points upward while the dropdown is active/open. */
.sg-main-nav .sg-primary-menu > li.menu-item-has-children:hover > a::after,
.sg-main-nav .sg-primary-menu > li.menu-item-has-children:focus-within > a::after,
.sg-main-nav .sg-primary-menu > li.is-expanded > a::after,
.sg-main-nav .sg-primary-menu > li:has(> ul.sub-menu):hover > a::after,
.sg-main-nav .sg-primary-menu > li:has(> ul.sub-menu):focus-within > a::after,
.sg-main-nav .sg-primary-menu > li.is-expanded:has(> ul.sub-menu) > a::after {
    content: "⌃";
    transform: translateY(1px);
}

/* Keep arrows small and aligned on mobile navigation too. */
@media (max-width: 992px) {
    .sg-main-nav .sg-primary-menu > li.menu-item-has-children > a::after,
    .sg-main-nav .sg-primary-menu > li:has(> ul.sub-menu) > a::after {
        margin-left: 0.4rem;
        font-size: 0.7rem;
    }
}






/* ================================================================
   SG NEWS — FINAL RESPONSIVE CARD FIX
   1. Full thumbnail visible on desktop/tablet/mobile.
   2. Normal compact date/comments metadata.
   3. Never render calendar/comment artwork for post metadata.
   ================================================================ */

/* Card thumbnail: preserve complete source image. */
.sg-article-card .sg-card-image,
.sg-post-card .sg-card-image,
.sg-news-card .sg-card-image,
.sg-card-image,
.sg-thumbnail,
.sg-post-thumbnail {
    overflow: hidden !important;
    position: relative;
}

.sg-article-card .sg-card-image img,
.sg-post-card .sg-card-image img,
.sg-news-card .sg-card-image img,
.sg-card-image img,
.sg-thumbnail img,
.sg-post-thumbnail img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center center !important;
}

/* Compact post metadata. */
.sg-card-meta,
.sg-article-card .sg-card-meta,
.sg-post-card .sg-card-meta,
.sg-news-card .sg-card-meta {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 6px 0 !important;
    margin: 0 !important;
    background: transparent !important;
    color: #64748B !important;
    font-size: 11px !important;
    line-height: 1.35 !important;
}

.sg-card-meta > *,
.sg-article-card .sg-card-meta > *,
.sg-post-card .sg-card-meta > *,
.sg-news-card .sg-card-meta > * {
    display: inline-flex !important;
    align-items: center !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}

/* If a metadata icon is used, keep it tiny. */
.sg-card-meta svg,
.sg-card-meta img,
.sg-card-meta i {
    width: 12px !important;
    height: 12px !important;
    max-width: 12px !important;
    max-height: 12px !important;
    object-fit: contain !important;
}

/* Prevent decorative calendar/comment blocks from appearing in card meta. */
.sg-card-meta .calendar,
.sg-card-meta .calendar-icon,
.sg-card-meta .comment,
.sg-card-meta .comment-icon,
.sg-card-meta .date-icon,
.sg-card-meta .comments-icon {
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    background: none !important;
}

/* Mobile: no fixed image height and no crop. */
@media (max-width: 768px) {
    .sg-article-card .sg-card-image,
    .sg-post-card .sg-card-image,
    .sg-news-card .sg-card-image,
    .sg-card-image,
    .sg-thumbnail,
    .sg-post-thumbnail {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
    }

    .sg-article-card .sg-card-image img,
    .sg-post-card .sg-card-image img,
    .sg-news-card .sg-card-image img,
    .sg-card-image img,
    .sg-thumbnail img,
    .sg-post-thumbnail img {
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
        object-fit: contain !important;
    }

    .sg-card-meta,
    .sg-article-card .sg-card-meta,
    .sg-post-card .sg-card-meta,
    .sg-news-card .sg-card-meta {
        font-size: 10px !important;
        gap: 8px !important;
    }
}

/* Tablet: same full-image behavior. */
@media (min-width: 769px) and (max-width: 1100px) {
    .sg-article-card .sg-card-image img,
    .sg-post-card .sg-card-image img,
    .sg-news-card .sg-card-image img,
    .sg-card-image img,
    .sg-thumbnail img,
    .sg-post-thumbnail img {
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
    }
}


/* Compact date/comment icons: do not use emoji glyphs, which become
   oversized calendar/speech-bubble artwork on some mobile browsers. */
.sg-card-meta .sg-meta-date,
.sg-card-meta .sg-meta-comments {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    color: #64748B !important;
    font-size: 11px !important;
    line-height: 1.35 !important;
    font-weight: 400 !important;
}

.sg-card-meta .sg-meta-date::before {
    content: "▣";
    display: inline-block;
    font-size: 9px;
    line-height: 1;
    color: #64748B;
}

.sg-card-meta .sg-meta-comments::before {
    content: "●";
    display: inline-block;
    font-size: 7px;
    line-height: 1;
    color: #64748B;
}

@media (max-width: 768px) {
    .sg-card-meta .sg-meta-date,
    .sg-card-meta .sg-meta-comments {
        font-size: 10px !important;
        line-height: 1.3 !important;
    }

    .sg-card-meta .sg-meta-date::before {
        font-size: 8px;
    }

    .sg-card-meta .sg-meta-comments::before {
        font-size: 6px;
    }
}
/* SG News - Article content typography */
.single-post .entry-content h1,
.single-post .entry-content h2,
.single-post .entry-content h3,
.single-post .entry-content h4,
.single-post .entry-content h5,
.single-post .entry-content h6 {
    display: block;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.35;
    text-align: left;
}

.single-post .entry-content p {
    margin-top: 0;
    margin-bottom: 1rem;
    line-height: 1.65;
    text-align: left;
}/* SG News - Stable navigation dropdown hover area */
.sg-primary-menu > li.menu-item-has-children {
    position: relative;
}

.sg-primary-menu > li.menu-item-has-children::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 8px;
    background: transparent;
    z-index: 999;
}

.sg-primary-menu > li.menu-item-has-children > ul.sub-menu {
    top: calc(100% + 1px);
}

.sg-primary-menu > li.menu-item-has-children:hover > ul.sub-menu,
.sg-primary-menu > li.menu-item-has-children:focus-within > ul.sub-menu {
    display: block;
}/* SG News - Mobile dropdown: disable desktop hover effects */
@media (max-width: 768px) {

    .sg-primary-menu li:hover > ul.sub-menu {
        display: block;
    }

    .sg-primary-menu li.menu-item-has-children > ul.sub-menu li:hover > a {
        background: transparent;
        color: inherit;
    }

    .sg-primary-menu li.menu-item-has-children > ul.sub-menu li:first-child > a {
        background: transparent;
    }

}/* SG News - Disable submenu hover highlight on touch/mobile */
@media (max-width: 768px) {
    .sg-primary-menu li ul.sub-menu li:hover {
        background-color: transparent !important;
        color: #CBD5E1 !important;
        padding-left: 0 !important;
    }

    .sg-primary-menu li ul.sub-menu li:hover > a {
        background-color: transparent !important;
        color: #CBD5E1 !important;
    }
}/* SG News - Page content typography and spacing */
.page .entry-content h1,
.page .entry-content h2,
.page .entry-content h3,
.page .entry-content h4,
.page .entry-content h5,
.page .entry-content h6 {
    display: block;
    margin-top: 1.6rem;
    margin-bottom: 0.8rem;
    line-height: 1.35;
    text-align: left;
}

.page .entry-content p {
    margin-top: 0;
    margin-bottom: 1.15rem;
    line-height: 1.65;
    text-align: left;
}

.page .entry-content ul,
.page .entry-content ol {
    margin-top: 0.5rem;
    margin-bottom: 1.3rem;
}

.page .entry-content li {
    margin-bottom: 0.35rem;
    line-height: 1.6;
}/* =========================================================
   SG NEWS - ABOUT US PAGE
   ========================================================= */

.page .sg-about-page {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Intro text */
.page .sg-about-intro {
    margin-bottom: 2.5rem;
}

.page .sg-about-intro p {
    margin: 0 0 1.25rem;
    line-height: 1.75;
}

/* Individual sections */
.page .sg-about-section {
    margin: 2.5rem 0;
}

/* Section heading box */
.page .sg-about-heading {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;

    width: 100%;
    min-height: 76px;

    padding: 0.8rem 1.25rem;

    box-sizing: border-box;

    background: linear-gradient(
        90deg,
        #eef4fa 0%,
        #f4f7fa 100%
    );

    border-radius: 14px;

    border: 1px solid #e1e9f1;

    box-shadow: 0 4px 14px rgba(1, 45, 85, 0.06);
}

/* Icon */
.page .sg-about-icon {
    width: 48px;
    height: 48px;

    flex: 0 0 48px;

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

    background: #062d57;
    color: #ffffff;

    border-radius: 11px;

    font-size: 25px;
    font-weight: 700;

    box-shadow: 0 4px 10px rgba(6, 45, 87, 0.18);
}

/* Gold vertical line */
.page .sg-about-line {
    width: 3px;
    height: 40px;

    flex: 0 0 3px;

    background: #e89a00;

    border-radius: 3px;
}

/* Section heading */
.page .sg-about-heading h2 {
    margin: 0 !important;

    color: #062d57;

    font-family: var(--font-serif, Georgia, serif);

    font-size: clamp(1.5rem, 3vw, 2rem);

    line-height: 1.2;

    font-weight: 700;
}

/* Section paragraph */
.page .sg-about-section > p {
    margin-top: 1.2rem;
    margin-bottom: 1rem;

    line-height: 1.75;
}

/* List */
.page .sg-about-list {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 0.65rem 2.5rem;

    margin: 1.25rem 0 0;

    padding-left: 1.5rem;
}

/* List items */
.page .sg-about-list li {
    position: relative;

    line-height: 1.6;

    padding-left: 0.2rem;
}

/* Gold bullets */
.page .sg-about-list li::marker {
    color: #e89a00;
    font-size: 1.1em;
}

/* Mobile */
@media (max-width: 768px) {

    .page .sg-about-heading {
        min-height: 68px;
        padding: 0.7rem 0.9rem;
        gap: 0.75rem;
    }

    .page .sg-about-icon {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
        font-size: 21px;
    }

    .page .sg-about-line {
        height: 34px;
    }

    .page .sg-about-heading h2 {
        font-size: 1.4rem;
    }

    .page .sg-about-list {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .page .sg-about-section {
        margin: 2rem 0;
    }

}

/* Small mobile */
@media (max-width: 480px) {

    .page .sg-about-heading {
        border-radius: 10px;
    }

    .page .sg-about-icon {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

    .page .sg-about-heading h2 {
        font-size: 1.25rem;
    }

}/* =========================================================
   SG NEWS - PRIVACY POLICY CLEAN ICONS
   ========================================================= */

/* Hide the text symbols */
.page .sg-privacy-icon {
    font-size: 0 !important;
    position: relative;
}

/* Information / document */
.page .sg-privacy-section:nth-of-type(1) .sg-privacy-icon::before {
    content: "▤";
    font-size: 24px;
}

/* How we use information */
.page .sg-privacy-section:nth-of-type(2) .sg-privacy-icon::before {
    content: "◎";
    font-size: 27px;
}

/* Contact form */
.page .sg-privacy-section:nth-of-type(3) .sg-privacy-icon::before {
    content: "✉";
    font-size: 23px;
}

/* Cookies */
.page .sg-privacy-section:nth-of-type(4) .sg-privacy-icon::before {
    content: "◌";
    font-size: 27px;
}

/* Analytics */
.page .sg-privacy-section:nth-of-type(5) .sg-privacy-icon::before {
    content: "◈";
    font-size: 24px;
}

/* Third-party services */
.page .sg-privacy-section:nth-of-type(6) .sg-privacy-icon::before {
    content: "◇";
    font-size: 26px;
}

/* Data security */
.page .sg-privacy-section:nth-of-type(7) .sg-privacy-icon::before {
    content: "♢";
    font-size: 28px;
}

/* Privacy rights */
.page .sg-privacy-section:nth-of-type(8) .sg-privacy-icon::before {
    content: "✓";
    font-size: 25px;
}

/* Contact Us */
.page .sg-privacy-section:nth-of-type(9) .sg-privacy-icon::before {
    content: "✉";
    font-size: 23px;
}/* =========================================================
   SG NEWS - PRIVACY POLICY SECTION BOXES
   ========================================================= */

.page .sg-privacy-heading {
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;

    width: 100% !important;
    min-height: 76px !important;

    padding: 0.8rem 1.25rem !important;
    box-sizing: border-box !important;

    background: linear-gradient(
        90deg,
        #eef4fa 0%,
        #f4f7fa 100%
    ) !important;

    border: 1px solid #dfe8f0 !important;
    border-radius: 14px !important;

    box-shadow: 0 4px 14px rgba(1, 45, 85, 0.07) !important;

    margin-bottom: 1.25rem !important;
}

/* Navy icon box */
.page .sg-privacy-heading .sg-privacy-icon {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    flex: 0 0 48px !important;

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

    background: #062d57 !important;
    color: #ffffff !important;

    border-radius: 11px !important;

    font-size: 0 !important;

    box-shadow: 0 4px 10px rgba(6, 45, 87, 0.18) !important;
}

/* Gold vertical divider */
.page .sg-privacy-heading .sg-privacy-line {
    display: block !important;

    width: 3px !important;
    height: 40px !important;
    min-width: 3px !important;

    background: #e89a00 !important;

    border-radius: 3px !important;
}

/* Heading text */
.page .sg-privacy-heading h2 {
    margin: 0 !important;
    padding: 0 !important;

    color: #062d57 !important;

    font-family: var(--font-serif, Georgia, serif) !important;

    font-size: clamp(1.35rem, 3vw, 1.9rem) !important;
    line-height: 1.2 !important;

    font-weight: 700 !important;
}

/* Space after each section */
.page .sg-privacy-section {
    margin: 2.5rem 0 !important;
}

.page .sg-privacy-section > p {
    margin-top: 1.1rem !important;
    margin-bottom: 1rem !important;
    line-height: 1.75 !important;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

    .page .sg-privacy-heading {
        min-height: 68px !important;
        padding: 0.7rem 0.9rem !important;
        gap: 0.75rem !important;
    }

    .page .sg-privacy-heading .sg-privacy-icon {
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
        flex-basis: 42px !important;
    }

    .page .sg-privacy-heading .sg-privacy-line {
        height: 34px !important;
    }

    .page .sg-privacy-heading h2 {
        font-size: 1.3rem !important;
    }
}.page .sg-terms-page {
    width: 100%;
    box-sizing: border-box;
}

.page .sg-terms-intro {
    margin-bottom: 2.5rem;
}

.page .sg-terms-intro p {
    margin: 0 0 1.25rem;
    line-height: 1.75;
}

.page .sg-terms-updated {
    font-size: .9rem;
}

.page .sg-terms-section {
    margin: 2.5rem 0;
}

.page .sg-terms-heading {
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
    width: 100% !important;
    min-height: 76px !important;
    padding: .8rem 1.25rem !important;
    box-sizing: border-box !important;
    background: linear-gradient(90deg,#eef4fa 0%,#f4f7fa 100%) !important;
    border: 1px solid #dfe8f0 !important;
    border-radius: 14px !important;
    box-shadow: 0 4px 14px rgba(1,45,85,.07) !important;
    margin-bottom: 1.25rem !important;
}

.page .sg-terms-heading .sg-terms-icon {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    flex: 0 0 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #062d57 !important;
    color: #fff !important;
    border-radius: 11px !important;
    font-size: 0 !important;
    box-shadow: 0 4px 10px rgba(6,45,87,.18) !important;
}

.page .sg-terms-heading .sg-terms-line {
    display: block !important;
    width: 3px !important;
    height: 40px !important;
    min-width: 3px !important;
    background: #e89a00 !important;
    border-radius: 3px !important;
}

.page .sg-terms-heading h2 {
    margin: 0 !important;
    padding: 0 !important;
    color: #062d57 !important;
    font-family: var(--font-serif,Georgia,serif) !important;
    font-size: clamp(1.35rem,3vw,1.9rem) !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
}

.page .sg-terms-section > p {
    margin-top: 1.1rem !important;
    margin-bottom: 1rem !important;
    line-height: 1.75 !important;
}


/* Section icons */

.page .sg-terms-icon {
    position: relative;
    font-size: 0 !important;
}

.page .sg-terms-section:nth-of-type(1) .sg-terms-icon::before {
    content: "▤";
    font-size: 24px;
}

.page .sg-terms-section:nth-of-type(2) .sg-terms-icon::before {
    content: "◎";
    font-size: 27px;
}

.page .sg-terms-section:nth-of-type(3) .sg-terms-icon::before {
    content: "✦";
    font-size: 25px;
}

.page .sg-terms-section:nth-of-type(4) .sg-terms-icon::before {
    content: "◇";
    font-size: 26px;
}

.page .sg-terms-section:nth-of-type(5) .sg-terms-icon::before {
    content: "↗";
    font-size: 27px;
}

.page .sg-terms-section:nth-of-type(6) .sg-terms-icon::before {
    content: "✉";
    font-size: 23px;
}

.page .sg-terms-section:nth-of-type(7) .sg-terms-icon::before {
    content: "✓";
    font-size: 25px;
}

.page .sg-terms-section:nth-of-type(8) .sg-terms-icon::before {
    content: "◈";
    font-size: 24px;
}

.page .sg-terms-section:nth-of-type(9) .sg-terms-icon::before {
    content: "↻";
    font-size: 27px;
}

.page .sg-terms-section:nth-of-type(10) .sg-terms-icon::before {
    content: "✉";
    font-size: 23px;
}


/* Mobile */

@media (max-width: 768px) {

    .page .sg-terms-heading {
        min-height: 68px !important;
        padding: .7rem .9rem !important;
        gap: .75rem !important;
    }

    .page .sg-terms-heading .sg-terms-icon {
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
        flex-basis: 42px !important;
    }

    .page .sg-terms-heading .sg-terms-line {
        height: 34px !important;
    }

    .page .sg-terms-heading h2 {
        font-size: 1.3rem !important;
    }
}