/*
 * WeGreen Theme - Main Stylesheet
 * 
 * IMPORTANT: We've optimized icon loading by using custom SVG icons instead of font icons.
 * This saves approximately 60KB on the frontend compared to loading external icon fonts.
 */

/*
Theme Name: WeGreen
Theme URI: https://wegreen.com
Author: WeGreen Team
Author URI: https://wegreen.com
Description: A modern, eco-friendly WordPress theme with advanced features and customization options.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wegreen
Tags: blog, news, magazine, custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* Reset and Base Styles */
:root {
    --primary-color: #4CAF50;
    --wgt-primary : #217346;
    --secondary-color: #2E7D32;
    --text-color: #333333;
    --light-text: #666666;
    --background-color: #FFFFFF;
    --light-background: #F5F5F5;
    --border-color: #E0E0E0;
}

/* Accessibility Styles */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: var(--wgt-primary);
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #ffffff;
    display: block;
    font-size: 14px;
    font-weight: bold;
    height: auto;
    left: 6px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 7px;
    width: auto;
    z-index: 100000;
}

.skip-link.screen-reader-text {
    position: absolute;
    left: -9999px;
    top: -9999px;
}

.skip-link.screen-reader-text:focus {
    position: absolute;
    left: 6px;
    top: 7px;
}

html, body {
    overflow-x: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    margin: 0;
    padding: 0;
}

/* Fix for mobile menu scrolling */
html.mobile-menu-open,
body.mobile-menu-open {
    overflow: hidden;
    height: 100%;
}

/* Basic Typography */
h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    margin-bottom: 1rem!important;
    line-height: 1.2;
}

p {
    margin-top: 0;
    margin-bottom: 1rem!important;
    text-align: justify;
}

/* Links */
a {
    color: #197236;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

a:hover {
    color: var(--secondary-color);
}

/* Container (consolidated) */
.container, .content-area, .site-main, .single-post-layout {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
    position: static;
    transform: none;
}

.site-content {
    padding: 0.7rem 0;
}

.wp-block-image {
    margin-bottom: 3%;
}
/* Header Row Layout */
.wegreen-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 64px;
    background: var(--wegreen-header-row-bg, #232328);
    color: var(--wegreen-header-row-text, #fff);
    box-sizing: border-box;
}

.wegreen-header-column {
    display: flex;
    align-items: center;
    min-width: 0;
    flex: 1 1 0;
    margin: 0 12px;
}

/* Dynamic column layout adjustments */
.wegreen-header-row:has(.wegreen-header-column:nth-child(1):last-child) .wegreen-header-column {
    /* When only one column exists, center it */
    justify-content: center;
    margin: 0 auto;
}

.wegreen-header-row:has(.wegreen-header-column:nth-child(2):last-child) .wegreen-header-column:first-child {
    /* When two columns exist, left column aligns left */
    justify-content: flex-start;
    margin-left: 0;
}

.wegreen-header-row:has(.wegreen-header-column:nth-child(2):last-child) .wegreen-header-column:last-child {
    /* When two columns exist, right column aligns right */
    justify-content: flex-end;
    margin-right: 0;
}

.wegreen-header-row:has(.wegreen-header-column:nth-child(3)) .wegreen-header-column {
    /* When three columns exist, use normal spacing */
    margin: 0 12px;
}

.wegreen-header-item-wrap {
    display: flex;
    align-items: center;
    width: 100%;
}

/* Grow/Normal Modifiers */
.wegreen-header-grow {
    flex: 1 1 0%;
}
.wegreen-header-normal {
    flex: 0 0 auto;
}

.wegreen-header-left .wegreen-header-item-wrap { justify-content: flex-start; }
.wegreen-header-center .wegreen-header-item-wrap { justify-content: center; }
.wegreen-header-right .wegreen-header-item-wrap { justify-content: flex-end; }

.wegreen-header-logo-img {
    max-width: 250px;
    height: auto;
    display: block;
}

.wegreen-header-menu-wrapper,
.wegreen-header-menu-wrap {
    width: 100%;
}

.wegreen-header-menu {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
    white-space: nowrap;
    overflow: hidden;
}
.wegreen-header-menu li a {
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Search styles moved to ajax-search.css */

/* Additional MTDB-style search CSS */
.bg-chip\/40 {
    background-color: rgb(var(--be-background-chip, 255 255 255) / .4);
}
.rounded {
    border-radius: .25rem;
}
.items-center {
    align-items: center;
}
.flex-auto {
    flex: 1 1 auto;
}
.max-w-580 {
    max-width: 30.25rem;
}
.flex {
    display: flex;
}
.text {
    color: rgb(var(--be-foreground-base, 51 51 51) / var(--be-text-main-opacity, 1));
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .wegreen-header-row {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        min-height: 56px;
        padding: 0 8px;
    }
    .wegreen-header-column {
        flex: 1 1 0;
        min-width: 0;
        margin: 0;
        justify-content: center;
    }
    .wegreen-header-left, .wegreen-header-center, .wegreen-header-right {
        min-width: 0;
        margin: 0;
        padding: 0;
    }
    .wegreen-header-left {
        justify-content: flex-start;
        flex: 0 0 auto;
        max-width: 48px;
    }
    .wegreen-header-center {
        justify-content: center;
        flex: 1 1 auto;
        max-width: none;
    }
    .wegreen-header-right {
        justify-content: flex-end;
        flex: 0 0 auto;
        max-width: 48px;
    }
    .wegreen-header-logo-img, .site-title {
        margin: 0 auto;
        display: block;
        max-width: 120px;
        height: auto;
    }
    /* Hamburger menu icon */
    .wegreen-mobile-toggle {
        font-size: 2rem !important;
        color: #fff !important;
        display: flex !important;
        align-items: center;
        justify-content: flex-start;
        width: 44px;
        height: 44px;
        background: none;
        border: none;
        cursor: pointer;
        margin-left: 0;
    }
    /* Search icon on right */
    .wegreen-mobile-search-icon {
        display: flex !important;
        align-items: center;
        justify-content: flex-end;
        width: 44px;
        height: 44px;
        font-size: 1.7rem;
        background: none;
        border: none;
        color: #fff;
        cursor: pointer;
        margin-right: 0;
    }
    /* Hide login icon on mobile */
    .wegreen-header-login {
        display: none !important;
    }
    /* Mobile menu overlay */
    .wegreen-mobile-menu-overlay {
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(0,0,0,0.7);
        z-index: 99999;
        display: none !important;
        /* Overlay isolation - non-interactive by default */
        pointer-events: none;
        visibility: hidden;
        opacity: 0;
        transition: opacity 0.18s ease-in-out, visibility 0.18s ease-in-out;
    }
    
    /* Active overlay state */
    .wegreen-mobile-menu-overlay.overlay--active {
        display: block !important;
        pointer-events: auto;
        visibility: visible;
        opacity: 1;
    }
    .wegreen-mobile-menu {
        position: fixed;
        top: 0; left: 0;
        width: 82vw;
        max-width: 340px;
        height: 100vh;
        background: #18191b;
        color: #fff;
        z-index: 100000;
        box-shadow: 2px 0 16px rgba(0,0,0,0.18);
        display: flex;
        flex-direction: column;
        transform: translateX(-100%);
        transition: transform 0.25s cubic-bezier(.4,0,.2,1);
    }
    .wegreen-mobile-menu.open {
        transform: translateX(0);
    }
    .wegreen-mobile-menu-header {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 64px;
        border-bottom: 1px solid #232328;
        padding: 0 16px;
    }
    .wegreen-mobile-menu-logo {
        max-width: 120px;
        margin: 0 auto;
        display: block;
    }
    .wegreen-mobile-menu-list {
        flex: 1 1 auto;
        padding: 24px 0 0 0;
        margin: 0;
        list-style: none;
        overflow-y: auto;
    }
    .wegreen-mobile-menu-list li {
        padding: 0;
        margin: 0;
    }
    .wegreen-mobile-menu-list li a {
        display: block;
        padding: 16px 32px;
        color: #fff;
        font-size: 1.12rem;
        font-weight: 500;
        border-bottom: 1px solid #232328;
        text-decoration: none;
        transition: background 0.15s, color 0.15s;
    }
    .wegreen-mobile-menu-list li a:hover,
    .wegreen-mobile-menu-list li a:focus {
        background: #232328;
        color: #ffd700;
    }
    /* Register button at bottom */
    .wegreen-mobile-menu-register {
        display: block;
        width: 90%;
        margin: 24px auto 18px auto;
        padding: 14px 0;
        background: #2196f3;
        color: #fff;
        font-size: 1.13rem;
        font-weight: 600;
        border-radius: 8px;
        text-align: center;
        text-decoration: none;
        transition: background 0.18s;
        border: none;
        cursor: pointer;
    }
    .wegreen-mobile-menu-register:hover {
        background: #1976d2;
    }
    /* Mobile search overlay (hidden by default) */
    .wegreen-mobile-search-overlay {
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(0,0,0,0.7);
        z-index: 99999;
        display: none;
        align-items: flex-start;
        justify-content: center;
        /* Overlay isolation - non-interactive by default */
        pointer-events: none;
        visibility: hidden;
        opacity: 0;
        transition: opacity 0.18s ease-in-out, visibility 0.18s ease-in-out;
    }
    
    /* Active overlay state */
    .wegreen-mobile-search-overlay.overlay--active {
        pointer-events: auto;
        visibility: visible;
        opacity: 1;
        display: flex !important;
    }
    .wegreen-mobile-search-bar {
        margin: 80px auto 0 auto;
        width: 92vw;
        max-width: 420px;
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 4px 24px rgba(0,0,0,0.18);
        padding: 12px 18px;
        display: flex;
        align-items: center;
    }
    .wegreen-mobile-search-bar input[type="search"] {
        flex: 1 1 auto;
        border: none;
        font-size: 1.08rem;
        padding: 10px 12px;
        border-radius: 6px;
        outline: none;
        background: #f5f5f5;
        color: #222;
    }
    .wegreen-mobile-search-bar button {
        background: none;
        border: none;
        color: #232328;
        font-size: 1.3rem;
        margin-left: 8px;
        cursor: pointer;
    }
    .wegreen-mobile-header-only {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1001;
        background: #232328;
        pointer-events: none;
        transform: translateZ(0);
        will-change: transform;
    }
    .wegreen-mobile-header {
        min-width: 0;
        position: relative;
        z-index: 1002;
        pointer-events: auto;
    }
    body.admin-bar .wegreen-mobile-header-only {
        top: 46px;
    }
    body {
        padding-top: 56px !important;
        scroll-behavior: auto;
        position: relative;
    }
}

/* --- HEADER & RESPONSIVE FIXES --- */

/* Desktop header only visible above 1100px */
.wegreen-desktop-header-only { display: block !important; }
@media (max-width: 1100px) {
  .wegreen-desktop-header-only { display: none !important; }
}

/* Mobile header only visible below 1100px */
.wegreen-mobile-header-only { display: none !important; }
@media (max-width: 1100px) {
  .wegreen-mobile-header-only { display: block !important; }
}
@media (min-width: 1101px) {
  .wegreen-mobile-header-only { display: none !important; }
}

/* Hide mobile toggle/search on desktop */
@media (min-width: 1101px) {
  .wegreen-mobile-toggle,
  .wegreen-mobile-search-icon,
  .wegreen-mobile-header-only {
    display: none !important;
  }
}

/* Footer widget area responsive fix */
.footer-widgets-area {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
}
.footer-widget-col {
  flex: 1 1 260px;
  min-width: 180px;
  margin-bottom: 24px;
}
@media (max-width: 900px) {
  .footer-widgets-area {
    flex-direction: column;
    gap: 18px;
  }
  .footer-widget-col {
    min-width: 0;
    width: 100%;
    margin-bottom: 12px;
  }
}

/* Remove inline styles from header/footer if possible (handled in PHP next) */

/* --- Responsive Improvements for Whole Theme --- */
@media (max-width: 1100px) {
  .site-content {
    padding: 0.7rem 0.8rem;
  }
  .wegreen-header-row {
    flex-direction: row;
    gap: 0;
    min-width: 0;
    width: 100vw;
    max-width: 100vw;
    box-sizing: border-box;
    padding: 0 4px;
  }
  .wegreen-header-column {
    min-width: 0;
    margin: 0;
    padding: 0;
    flex: 1 1 0;
    max-width: none;
  }
  .wegreen-header-menu {
    flex-direction: column;
    gap: 0;
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    margin: 0;
    padding: 0;
  }
  .wegreen-header-menu li a {
    font-size: 1rem;
    padding: 12px 10px;
    white-space: normal;
  }
}
@media (max-width: 600px) {
  .site-content {
    padding: 0.5rem 0.5rem;
  }
  .wegreen-header-row,
  .wegreen-header-menu,
  .wegreen-header-column {
    max-width: 100vw;
    width: 100vw;
    min-width: 0;
    box-sizing: border-box;
  }
  .wegreen-header-menu li a {
    font-size: 0.97rem;
    padding: 10px 6px;
  }
}

/* Mobile menu overlay take-over and no scroll */
@media (max-width: 1100px) {
  body.mobile-menu-open {
    overflow: hidden !important;
    position: fixed;
    width: 100vw;
  }
  html.mobile-menu-open {
    margin-top: 0 !important;
  }
  .wegreen-mobile-menu-overlay {
    position: fixed !important;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.7);
    z-index: 10000;
    display: block;
    transition: opacity 0.2s;
  }
  .wegreen-mobile-menu {
    position: absolute;
    top: 0; left: 0;
    width: 92vw;
    max-width: 390px;
    height: 100vh;
    background: #18191b;
    color: #fff;
    z-index: 10001;
    box-shadow: 2px 0 16px rgba(0,0,0,0.18);
    display: flex;
    flex-direction: column;
    transform: translateX(0);
    transition: transform 0.25s cubic-bezier(.4,0,.2,1);
  }
  .wegreen-mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    border-bottom: 1px solid #232328;
    padding: 0 16px;
    background: #18191b;
    position: sticky;
    top: 0;
    z-index: 10002;
  }
  .wegreen-mobile-menu-header button[aria-label="Close menu"] {
    position: absolute;
    right: 16px;
    top: 16px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10003;
  }
  .wegreen-mobile-menu-search-bar {
    padding: 16px 16px 0 16px;
    background: #18191b;
    position: sticky;
    top: 64px;
    z-index: 10001;
  }
  .wegreen-mobile-menu-list {
    flex: 1 1 auto;
    padding: 0;
    margin: 0;
    list-style: none;
    overflow-y: auto;
    background: #18191b;
  }
  .wegreen-mobile-menu-list li a {
    display: block;
    padding: 16px 32px;
    color: #fff;
    font-size: 1.12rem;
    font-weight: 500;
    border-bottom: 1px solid #232328;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
  }
  .wegreen-mobile-menu-list li a:hover,
  .wegreen-mobile-menu-list li a:focus {
    background: #232328;
    color: #ffd700;
  }
}

/* --- Admin Bar Offset for Mobile Header and Overlays: Only when menu/search is open --- */
body.admin-bar.mobile-menu-open .wegreen-mobile-menu-overlay,
body.admin-bar.mobile-menu-open .wegreen-mobile-menu-overlay-search {
    top: 0 !important;
    height: 100vh !important;
}
body.admin-bar.mobile-menu-open .wegreen-mobile-menu {
    margin-top: 46px !important;
    top: 0 !important;
}

body.mobile-menu-open .wegreen-mobile-menu-overlay-search {
  display: none !important;
}
body.mobile-search-open .wegreen-mobile-menu-overlay {
  display: none !important;
}

/* Ensure overlays never overlap, and z-index is correct */
.wegreen-mobile-menu-overlay-search {
  position: fixed;
  left: 0;
  right: 0;
  width: 100vw !important;
  max-width: 100vw !important;
  z-index: 100000;
  background: rgba(0,0,0,0.7);
  display: none;
  align-items: flex-start;
  justify-content: center;
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden;
  /* Overlay isolation - non-interactive by default */
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.18s ease-in-out, visibility 0.18s ease-in-out;
}

/* Active overlay state */
.wegreen-mobile-menu-overlay-search.overlay--active {
  pointer-events: auto;
  visibility: visible;
  opacity: 1;
  display: flex !important;
}
.wegreen-mobile-search-bar {
  margin: 0 auto !important;
  width: 100% !important;
  max-width: 100% !important;
  background: #232328;
  border-radius: 0;
  box-shadow: none;
  padding: 12px 8px 12px 8px;
  display: flex;
  align-items: center;
  position: relative;
  box-sizing: border-box;
}

.wegreen-mobile-search-bar form {
  width: 100%;
  display: flex;
  align-items: center;
}

.wegreen-mobile-search-bar input[type="search"] {
  flex: 1 1 auto;
  border: none;
  font-size: 1.05rem;
  padding: 12px 20px;
  border-radius: 6px;
  outline: none;
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
  height: 46px;
  width: 100%;
}

.wegreen-mobile-search-bar button {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 16px;
  min-width: 42px;
}
@media (max-width: 600px) {
  .wegreen-mobile-search-bar {
    padding: 8px 2px 8px 2px;
  }
}

.wegreen-mobile-toggle,
.wegreen-mobile-search-icon {
  font-size: 2.7rem !important;
  width: 54px !important;
  height: 54px !important;
  color: #fff !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  margin: 0 4px;
  padding: 0;
}

@media (max-width: 1100px) {
  .wegreen-mobile-toggle,
  .wegreen-mobile-search-icon {
    font-size: 2.7rem !important;
    width: 54px !important;
    height: 54px !important;
    color: #fff !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    margin: 0 4px;
    padding: 0;
  }
}

/* --- Responsive Container and Content Area Improvements --- */
@media (max-width: 1100px) {
  .container, .content-area, .site-main, #secondary, .widget-area {
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
  }
}

@media (max-width: 900px) {
  .container, .content-area, .site-main, #secondary, .widget-area {
    padding-left: 12px;
    padding-right: 12px;
  }
}

@media (max-width: 600px) {
  .container, .content-area, .site-main, #secondary, .widget-area {
    padding-left: 10px;
    padding-right: 10px;
  }
}

@media (max-width: 400px) {
  .container, .content-area, .site-main, #secondary, .widget-area {
    padding-left: 8px;
    padding-right: 8px;
  }
}

.entry-content, .post, .page, .site-main {
  word-break: break-word;
  overflow-wrap: break-word;
}
/* Responsive comments and sidebar */
@media (max-width: 900px) {
  .sidebar, #secondary, .widget-area {
    width: 100%;
    float: none;
    margin: 0 0 24px 0;
    padding: 0;
  }
}
/* Responsive pagination */
@media (max-width: 600px) {
  .pagination, .page-numbers {
    font-size: 1rem;
    padding: 6px 10px;
  }
}

/* Basic Sidebar Styling */
.sidebar {
    /* Essential spacing only - no decorative styling */
    margin-bottom: 1rem;
}

.custom-logo, .custom-logo-link {
  display: inline-block !important;
  width: auto;
  height: auto;
  vertical-align: middle;
}

/* --- Clean, Edge-to-Edge, Responsive Footer --- */
.site-footer,
.footer-widgets-area,
.footer-inner,
.site-secondary-footer,
.site-secondary-footer-inner {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  left: 0;
  right: 0;
  box-sizing: border-box;
  overflow-x: hidden;
}

.footer-inner {
    background: #18191b;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
  padding: 40px 32px 32px 32px;
  margin: 0 auto;
}
.footer-widget-col {
  min-width: 0;
  width: 100%;
}
.site-secondary-footer {
  border-top: 1px solid #232328;
  font-size: 0.98rem;
  padding: 0;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}
.site-secondary-footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin: 0 auto;
  padding: 0 32px;
  box-sizing: border-box;
  background: none;
}

/* Responsive Footer */
@media (max-width: 1100px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 32px 16px 24px 16px;
  }
  .site-secondary-footer-inner {
    padding: 0 16px;
  }
}
@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 24px 16px 16px 16px;
  }
  .site-secondary-footer-inner {
    flex-direction: column;
    gap: 10px;
    padding: 0 8px;
    text-align: center;
  }
}
@media (max-width: 600px) {
  .footer-inner {
    padding: 16px 8px 8px 8px;
    gap: 8px;
  }
  .site-secondary-footer-inner {
    padding: 0 4px;
    font-size: 0.93rem;
  }
}
@media (max-width: 480px) {
  .footer-inner {
    padding: 8px 8px 4px 8px;
      gap: 4px;
  }
  .site-secondary-footer-inner {
    padding: 0 2px;
  }
}

/* --- JNews-Style Secondary Footer (Copyright Bar) --- */
.site-secondary-footer {
    color: #ccc;
    font-size: 15px;
    border-top: 1px solid #232328;
    padding: 16px 0 10px 0;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}
.site-secondary-footer-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
}
.footer-copyright {
    flex: 1;
    text-align: left;
    color: #ccc;
    font-size: 0.98em;
    padding-left: 0;
}
.footer-menu {
    flex: 1;
    text-align: right;
}
.footer-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 18px;
}
.footer-menu-list li a {
    color: #ccc;
    opacity: 0.8;
    transition: opacity 0.2s;
    font-size: 1.1em;
}
.footer-menu-list li a:hover {
    opacity: 1;
    color: #ff5252;
}
.site-secondary-footer .social-icons,
.site-secondary-footer .social-menu {
    display: inline-flex;
    gap: 12px;
    margin-left: 18px;
}
.site-secondary-footer .social-icons a,
.site-secondary-footer .social-menu a {
    color: #ccc;
    font-size: 1.2em;
    opacity: 0.8;
    transition: color 0.2s, opacity 0.2s;
}
.site-secondary-footer .social-icons a:hover,
.site-secondary-footer .social-menu a:hover {
    color: #ff5252;
    opacity: 1;
}
@media (max-width: 900px) {
    .site-secondary-footer-inner {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        padding: 0 8px;
    }
    .footer-copyright,
    .footer-menu {
        text-align: center !important;
        flex: unset;
        padding-left: 0;
    }
}

/* Hide browser autofill icon in email fields (Chrome/Edge) */
input[type="email"]::-webkit-credentials-auto-fill-button,
input[type="email"]::-webkit-contacts-auto-fill-button {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    position: absolute !important;
    right: 0;
}

/* Single Post Title & Meta Styles */
.single-post-header {
    margin-bottom: 2.2rem;
    border-bottom: 2px solid #e0e0e0;
    padding: 0 0 1.2rem 0;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    width: 100%;
    box-sizing: border-box;
}
.single-post-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin: 0 0 0.2rem 0;
    color: #181818;
    line-height: 1.18;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
    word-break: break-word;
}
.single-post-meta {
    font-size: 1rem;
    color: #666;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
    align-items: center;
}
.single-post-author {
    color: #2E7D32;
    font-weight: 600;
}
.single-post-date, .single-post-time {
    color: #666;
}
.single-post-thumbnail {
    margin-bottom: 2rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.single-post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}
.single-post-content {
    font-size: 1.15rem;
    color: #222;
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* Single Post Social Share (top and bottom) */
.single-social-share {
    display: flex;
    gap: 16px;
    margin: 1rem 0 1.5rem 0;
    align-items: center;
}
.single-social-share .social-icon {
    font-size: 1.3rem;
    color: #666;
    background: #f5f5f5;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}
.single-social-share .social-icon:hover {
    background: #4CAF50;
    color: #fff;
}

/* Author Box */
.single-author-box {
    display: flex;
    align-items: flex-start;
    gap: 1.2em;
    background: #f5f5f5;
    border-radius: 10px;
    padding: 1.5em 1.2em;
    margin: 2.5em 0 1.5em 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.author-avatar {
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    width: 96px;
    height: 96px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}
.author-info {
    flex: 1 1 auto;
}
.author-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 0.3em;
}
.author-bio {
    color: #666;
    font-size: 1rem;
    margin-bottom: 0.7em;
}
.author-social {
    display: flex;
    gap: 12px;
    margin-top: 0.2em;
}
.author-social .social-icon {
    font-size: 1.2rem;
    color: #666;
    background: #e0e0e0;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}
.author-social .social-icon:hover {
    background: #4CAF50;
    color: #fff;
}

/* Share Count & Buttons (bottom) */
.single-share-count-box {
    display: flex;
    align-items: center;
    gap: 1.5em;
    margin: 2em 0 1em 0;
    padding: 1em 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}
.share-count {
    font-size: 1.1rem;
    color: #666;
    font-weight: 600;
}
.share-buttons {
    display: flex;
    gap: 14px;
}

/* --- Single Post Layout Improvements --- */
.single-post-article {
    max-width: var(--container-width);
    margin: 2rem auto 2rem auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.04);
    padding: 1.2rem 1rem 1.2rem 1rem;
    position: relative;
}
@media (max-width: 900px) {
    .single-post-article {
        padding: 0.7rem 0.3rem;
    }
}

/* --- Single Post Header Row: Meta left, Social right, with gap below title --- */
.single-post-header {
    margin-bottom: 2.2rem;
    border-bottom: 2px solid #e0e0e0;
    padding: 0 0 1.2rem 0;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    width: 100%;
    box-sizing: border-box;
}
.single-post-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin: 0 0 0.2rem 0;
    color: #181818;
    line-height: 1.18;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
    word-break: break-word;
}
.single-post-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: 0.2rem;
    width: 100%;
}
.single-post-meta {
    font-size: 1.08rem;
    color: #888;
    display: flex;
    flex-wrap: wrap;
    gap: 0.7em;
    align-items: center;
    font-weight: 500;
    margin-bottom: 0;
}
.single-social-share {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    align-items: center;
    margin: 0;
    position: static !important;
}
@media (max-width: 600px) {
    .single-post-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        margin-top: 1rem;
    }
    .single-social-share {
        justify-content: flex-start;
    }
}

.single-post-thumbnail {
    margin-bottom: 2.2rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.single-post-content {
    font-size: 1.18rem;
    color: #232323;
    line-height: 1.85;
    margin-bottom: 2.5rem;
}

/* Author Box */
.single-author-box {
    display: flex;
    align-items: flex-start;
    gap: 1.5em;
    background: #f5f5f5;
    border-radius: 12px;
    padding: 2em 1.5em;
    margin: 3em 0 2em 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.author-avatar {
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    width: 96px;
    height: 96px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.09);
}
.author-info {
    flex: 1 1 auto;
}
.author-name {
    font-size: 1.18rem;
    font-weight: 800;
    color: #181818;
    margin-bottom: 0.3em;
}
.author-bio {
    color: #666;
    font-size: 1.01rem;
    margin-bottom: 0.7em;
}
.author-social {
    display: flex;
    gap: 14px;
    margin-top: 0.2em;
}
.author-social .social-icon {
    font-size: 1.2rem;
    color: #666;
    background: #e0e0e0;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}
.author-social .social-icon:hover {
    background: #4CAF50;
    color: #fff;
}

/* Share Count & Buttons (bottom) */
.single-share-count-box {
    display: flex;
    align-items: center;
    gap: 1.7em;
    margin: 2.5em 0 1.5em 0;
    padding: 1.2em 0;
    border-top: 1.5px solid #e0e0e0;
    border-bottom: 1.5px solid #e0e0e0;
    background: #fafbfc;
    border-radius: 8px;
}
.share-count {
    font-size: 1.13rem;
    color: #666;
    font-weight: 700;
}
.share-buttons {
    display: flex;
    gap: 16px;
}

/* Sidebar separation */
.sidebar, #secondary, .widget-area {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.04);
}
@media (max-width: 900px) {
    .sidebar, #secondary, .widget-area {
        margin: 1rem 0 1rem 0;
        padding: 0.7rem 0.3rem;
    }
}

/* Single Post Two-Column Layout */
.single-post-layout {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    justify-content: center !important;
    gap: 1.2rem !important;
    margin: 0 auto !important;
    padding: 1.2rem 0 !important;
    width: 100% !important;
    max-width: var(--container-width) !important;
}

/* Main content area with strict width containment */
.single-post-layout .site-main {
    flex: 0 0 calc(100% - 320px - 1.2rem) !important;
    width: calc(100% - 320px - 1.2rem) !important;
    min-width: 0 !important;
    max-width: calc(100% - 320px - 1.2rem) !important;
    /* Removed overflow: hidden and contain properties to allow third-party floating ads */
    /* overflow: hidden !important; */
    /* contain: layout style paint; */
    /* isolation: isolate; */
}

/* Ensure entertainment template content takes full width of main area */
.ext-body,
.entertainment-videos-content,
.entertainment-photos-content,
.entertainment-episodes-content,
.entertainment-people-section,
.entertainment-people-list {
    width: 100%;
    display: block;
    max-width: 100%;
    box-sizing: border-box;
}

/* Ensure images and grids don't overflow */
.entertainment-person-image img,
.ext-body img,
.entertainment-videos-content img,
.entertainment-photos-content img,
.entertainment-episodes-content img {
    max-width: 100%;
    height: auto;
}

/* Fix layout for entertainment subpages */
.entertainment-people-list {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
}

.single-post-layout .single-post-article {
    max-width: var(--container-width);
    margin: 0;
}

.single-post-layout .single-post-sidebar {
    width: 320px !important;
    flex: 0 0 320px !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    display: block !important;
    position: sticky !important;
    top: 1.2rem !important;
}

/* Style corrections for entertainment content */
.ext-body {
    padding: 1rem;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.04);
}

/* Responsive breakpoints with strict ad containment */
@media (max-width: 1200px) {
    .single-post-layout .site-main {
        flex: 0 0 calc(100% - 300px - 1.2rem) !important;
        width: calc(100% - 300px - 1.2rem) !important;
        max-width: calc(100% - 300px - 1.2rem) !important;
    }
    .single-post-layout .single-post-sidebar {
        width: 300px !important;
        flex: 0 0 300px !important;
    }
}

@media (max-width: 1100px) {
    .single-post-layout {
        flex-direction: column !important;
        gap: 0.7rem !important;
        padding: 0.7rem 0 !important;
    }
    .single-post-layout .site-main {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    .single-post-layout .single-post-sidebar {
        width: 100% !important;
        flex: 0 0 100% !important;
        margin: 0 !important;
        position: static !important;
    }
    .single-post-layout .single-post-article {
        max-width: 100%;
    }
}


/* --- Comments Section --- */
.comments-area {
    margin-top: 2.5rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    padding: 2rem 1.5rem;
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
}
.comments-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #222;
    margin-bottom: 1.5rem;
    border-bottom: 1.5px solid #e0e0e0;
    padding-bottom: 0.7rem;
}
.comment-list {
    list-style: none;
    margin: 0 0 2rem 0;
    padding: 0;
}
.comment-list li {
    margin-bottom: 1.5rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid #f0f0f0;
}
.comment-list li:last-child {
    border-bottom: none;
}
.comment-form-wrap {
    margin-top: 2rem;
}
.logged-in-user {
    display: flex;
    align-items: center;
    gap: 0.7em;
    margin-bottom: 1.2em;
}
.logged-in-user img {
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}
.logged-in-name {
    font-weight: 700;
    color: #4CAF50;
    font-size: 1.08rem;
}
.comment-login-prompt {
    background: #f7fafd;
    border-left: 4px solid #2196f3;
    padding: 1rem 1.2rem;
    border-radius: 6px;
    color: #222;
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}
.comment-form textarea {
    width: 100%;
    min-height: 120px;
    border-radius: 8px;
    border: 1.5px solid #e0e0e0;
    font-size: 1.08rem;
    margin-bottom: 1.2rem;
    background: #fafbfc;
    color: #222;
    resize: vertical;
}
.comment-form .button {
    background: #4CAF50;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.7em 2.2em;
    font-size: 1.08rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.18s;
}
.comment-form .button:hover {
    background: #2196f3;
}

@media (min-width: 601px) {
    .single-social-share {
        position: absolute;
        top: 1.2rem;
        right: 0;
        display: flex;
        gap: 12px;
        z-index: 2;
        margin-top: 0;
    }
}
@media (max-width: 600px) {
    .single-social-share {
        position: static;
        margin: 1.2rem 0 0.5rem 0;
        justify-content: flex-start;
    }
    .single-post-header {
        padding-right: 0;
    }
}

/* Unified style for both auto and manual related boxes as clickable boxes */
.single-related-box {
    display: flex;
    align-items: center;
    width: 100%;
    background: #f7fafd;
    border-left: 5px solid #2196f3;
    padding: 0.25em 0.25em;
    margin: 1.5em 0;
    border-radius: 7px;
    color: #222;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s, background 0.2s;
    font-size: 1.08em;
    box-shadow: 0 1px 6px rgba(33, 150, 243, 0.07);
    line-height: 1.6;
    gap: 0.7em;
    cursor: pointer;
}

.single-related-box:hover {
    background: #e3f2fd;
    color: #2196f3;
}

.single-related-box .also-read-label {
    font-weight: 700;
    color: #222;
    letter-spacing: 0.01em;
    font-size: 0.98em;
    text-transform: uppercase;
    margin-bottom: 0;
    margin-right: 0.2em;
    white-space: nowrap;
}

.single-related-box a {
    color: #222;
    font-weight: 700;
    text-decoration: none;
    font-size: 1.08em;
    transition: color 0.2s, background 0.2s;
}

.single-related-box:hover a {
    color: #2196f3;
    text-decoration: underline;
}

@media (max-width: 900px) {
    .single-related-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0.5em 0.7em;
        gap: 0.3em;
        padding-right: 0;
        width: auto;
    }

    .single-related-box .also-read-label {
        margin-bottom: 0.2em;
        margin-right: 0;
        font-size: 0.92em;
        text-align: center;
        width: 100%;
    }

    .single-related-box a {
        font-size: 1em;
        width: 100%;
        display: block;
        text-align: center;
    }
}

/* Style normal links in single post content, but NOT in related boxes */
.single-post-content a:not(.single-related-link):not(.also-read-label):not(.single-related-box a) {
    color: #ffffff;
    background-color: #097056;
    padding: 3px 3px;
    text-decoration: none !important;
    border-radius: 3px;
    transition: background 0.2s, color 0.2s;
}
.single-post-content a:not(.single-related-link):not(.also-read-label):not(.single-related-box a):hover {
    background-color: #06543e;
    color: #fff;
    text-decoration: underline !important;
}

.single-post-meta .single-post-views {
    color: #555;
    display: inline-flex;
    align-items: center;
    font-size: 1.08rem;
    font-weight: 500;
    gap: 0.3em;
}
.single-post-meta .single-post-views svg {
    width: 1.1em;
    height: 1.1em;
    vertical-align: -0.15em;
    margin-right: 0.18em;
    fill: #888;
}
.single-post-meta .single-post-views .divider {
    margin: 0 0.5em;
    color: #888;
    font-weight: 400;
}

/* Single Post Tags */
.single-post-tags {
    margin: 2em 0;
    padding: 1.5em;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.7em;
}

.single-post-tags .tags-label {
    font-weight: 600;
    color: #333;
    margin-right: 0.7em;
    display: inline-block;
    vertical-align: middle;
}

.single-post-tags .tag-link {
    color: #ffffff;
    background-color: #097056;
    padding: 5px 5px;
    text-decoration: none !important;
    border-radius: 3px;
    transition: background 0.2s, color 0.2s;
    font-size: 0.98em;
    margin-right: 0.4em;
    display: inline-block;
}

.single-post-tags .tag-link:hover {
    background-color: #06543e;
    color: #fff;
    text-decoration: underline !important;
}

/* Remove old tag-link and tags-list styles if present */
.single-post-tags .tags-list { display: contents; }

.channel-taxonomy-wrapper {
    display: flex;
    gap: 30px;
    margin: 40px auto;
    max-width: 1200px;
}
.channel-taxonomy-main {
    flex: 3;
}
.channel-title {
    font-size: 2rem;
    margin-bottom: 20px;
}
.drama-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 25px;
}
.drama-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    text-align: center;
    transition: box-shadow 0.2s;
}
.drama-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.drama-thumb img {
    width: 100%;
    height: 360px;
    object-fit: cover;
}
.drama-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 12px 0 16px 0;
}
.load-more {
    text-align: center;
    margin: 30px 0;
}
.channel-taxonomy-sidebar {
    flex: 1;
    background: #f7f7f7;
    padding: 20px;
    border-radius: 8px;
}
.latest-news-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.latest-news-list li {
    margin-bottom: 10px;
}
.latest-news-list a {
    color: #222;
    text-decoration: none;
    font-size: 1rem;
}
.latest-news-list a:hover {
    text-decoration: underline;
}
.drama-img {
    width: 100%;
    aspect-ratio: 4/5;
    height: auto;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
    display: block;
    background: #eee;
}

/* Category Page Custom Styles */
.category-page-wrapper {
    display: flex;
    gap: 32px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}
.category-main {
    flex: 3;
}
.category-title {
    font-size: 2.2rem !important;
}
.category-featured {
    margin-bottom: 32px;
}
.featured-top-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 16px;
    align-items: stretch;
}
.featured-grid-card {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    display: block;
    aspect-ratio: 1/1;
    min-width: 0;
}
.featured-grid-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.featured-grid-content {
    position: absolute;
    left: 0; right: 0; top: 0; bottom: 0;
    z-index: 2;
    color: #fff;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 24px 24px 24px;
    pointer-events: none;
}
.featured-title-wrap {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.featured-grid-title {
    font-size: 2.1rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.85);
    line-height: 1.15;
    margin: 0 0 2px 0;
    background: none;
    pointer-events: auto;
    width: 100%;
}
.featured-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 0.92rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 6px;
    z-index: 3;
    letter-spacing: 0.01em;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    border: 1px solid rgba(255,255,255,0.12);
    pointer-events: auto;
}
.featured-grid-card::before {
    content: '';
    position: absolute;
    left: 0; right: 0; top: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.65) 100%);
    z-index: 1;
    border-radius: 16px;
}
/* Optionally style the first card differently */
.featured-hero-card .featured-grid-title {
    font-size: 2.1rem;
}

@media (max-width: 1100px) {
    .featured-top-row {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
    }
    .featured-hero-card img, .featured-grid-card img {
        min-height: 120px;
    }
    .featured-hero-title, .featured-grid-title {
        font-size: 1.2rem;
    }
    .featured-grid-2x2 {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr;
    }
}
@media (max-width: 700px) {
    .featured-hero-card img, .featured-grid-card img {
        min-height: 80px;
    }
    .featured-hero-title, .featured-grid-title {
        font-size: 1rem;
    }
    .featured-grid-2x2 {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 1fr);
    }
}

/* --- CATEGORY FEATURED BAR (collider.com style, exact match) --- */
.category-featured-bar {
    margin-bottom: 32px;
    max-width: 1170px;
    margin-left: auto;
    margin-right: auto;
}
.featured-bar-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 24px;
    width: 100%;
}
.featured-bar-card {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    background: #181818;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.hero-card {
    grid-row: 1 / span 2;
    grid-column: 1 / span 2;
    aspect-ratio: 16/9;
}
.secondary-card.card2 { grid-row: 1; grid-column: 2; }
.secondary-card.card3 { grid-row: 1; grid-column: 3; }
.secondary-card.card4 { grid-row: 2; grid-column: 2; }
.secondary-card.card5 { grid-row: 2; grid-column: 3; }
.secondary-card {
    aspect-ratio: 1/1;
}
.featured-bar-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.featured-bar-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    color: inherit;
    text-decoration: none;
}
.featured-bar-content {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    width: 100%;
    padding: 24px 18px 18px 18px;
    background: linear-gradient(to top, rgba(0,0,0,0.82) 70%, rgba(0,0,0,0.12) 100%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 60px;
}
.featured-bar-title {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.85);
    line-height: 1.18;
    margin: 0;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
}
.secondary-card .featured-bar-title {
    font-size: 1.08rem;
    font-weight: 700;
}
@media (max-width: 1100px) {
    .category-featured-bar {
        max-width: 100vw;
        padding: 0 8px;
    }
    .featured-bar-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto auto;
        gap: 12px;
    }
    .hero-card {
        grid-row: 1 / span 1;
        grid-column: 1 / span 2;
        aspect-ratio: 16/9;
    }
    .secondary-card.card2 { grid-row: 2; grid-column: 1; }
    .secondary-card.card3 { grid-row: 2; grid-column: 2; }
    .secondary-card.card4 { grid-row: 3; grid-column: 1; }
    .secondary-card.card5 { grid-row: 3; grid-column: 2; }
    .secondary-card { aspect-ratio: 1/1; }
}
@media (max-width: 700px) {
    .featured-bar-grid {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    .hero-card, .secondary-card { aspect-ratio: 16/9; }
}

/* --- CATEGORY LATEST LIST --- */
.category-latest-list {
    margin-bottom: 32px;
    max-width: 1170px;
    margin-left: auto;
    margin-right: auto;
}

.category-latest-heading {
    font-size: 1.8rem !important;
    font-weight: 800;
    margin: 0 0 18px 0;
    letter-spacing: 0.01em;
    color: #222;
    border-bottom: 2px solid #eee;
    padding-bottom: 8px;
}

.category-list-item {
    display: flex;
    align-items: stretch;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    border: 1.5px solid #eee;
    margin-bottom: 28px;
    overflow: hidden;
    transition: box-shadow 0.18s;
    min-height: 180px;
}

.category-list-item:hover {
    box-shadow: 0 4px 18px rgba(0,0,0,0.13);
}

.category-list-thumb {
    position: relative;
    min-width: 260px;
    max-width: 320px;
    width: 320px;
    height: 180px;
    overflow: hidden;
    display: block;
    border-radius: 14px 0 0 14px;
    background: #eee;
}

.category-list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 14px 0 0 14px;
    transition: transform 0.3s ease;
}

.category-list-thumb:hover img {
    transform: scale(1.05);
}

.category-list-badge {
    position: absolute;
    left: 10px;
    bottom: 6px;
    background: rgba(34, 34, 34, 0.92);
    color: #fff;
    font-size: 1.01rem;
    font-weight: 500;
    padding: 6px 6px;
    border-radius: 7px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    letter-spacing: 0.01em;
    pointer-events: none;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.category-list-content {
    flex: 1 1 0;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.category-list-title {
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 10px 0;
    color: #181818;
    line-height: 1.18;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
}
.load-more-button{
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border-radius: 8px;
    font-family: Roboto Condensed, sans-serif;
    font-size: 1.2rem;
    line-height: 1.3em;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    background: #fff;
    width: 50% !important;
    border: 1px solid #777;
    line-height: 1em;
    padding: 1rem 0;
}
.category-list-title a {
    color: #181818;
    text-decoration: none;
}

.category-list-title a:hover {
    color: #197236;
    text-decoration: underline;
}

.category-list-excerpt {
    margin: 0 0 12px 0;
    color: #333;
    font-size: 1.13em;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category-list-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #eee;
}

.category-list-meta .meta-left {
    display: flex;
    align-items: center;
    gap: 18px;
}

.category-list-meta .meta-right {
    display: flex;
    align-items: center;
}

.category-list-meta .author {
    color: #197236;
    font-weight: 700;
    font-size: 1.08em;
}

.category-list-meta .date {
    color: #333;
    font-weight: 400;
    font-size: 1.08em;
}

.category-list-meta .comments {
    color: #888;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 1.08em;
}

.category-list-meta .comments svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

@media (max-width: 900px) {
    .category-list-content {
        padding: 16px;
    }
    
    .category-list-title {
        font-size: 1.3rem;
    }
    
    .category-list-excerpt {
        font-size: 1.08em;
        margin-bottom: 10px;
    }
    
    .category-list-meta {
        padding-top: 10px;
    }
    
    .category-list-meta .meta-left {
        gap: 12px;
    }
    
    .category-list-meta .author,
    .category-list-meta .date,
    .category-list-meta .comments {
        font-size: 1em;
    }
}

@media (max-width: 600px) {
    .category-list-content {
        padding: 14px 12px 12px 12px;
    }
    
    .category-list-title {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }
    
    .category-list-excerpt {
        font-size: 1em;
        margin-bottom: 8px;
    }
    
    .category-list-meta {
        padding-top: 8px;
    }
    
    .category-list-meta .meta-left {
        gap: 10px;
    }
    
    .category-list-meta .author,
    .category-list-meta .date,
    .category-list-meta .comments {
        font-size: 0.95em;
    }
}

/* Parent grid for featured section */
.listing-featured.featured-5-pin-large {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "f-primary f-secondary";
    gap: 1rem;
    margin: 0 auto 2rem auto;
}
.featured-primary {
    grid-area: f-primary;
    display: flex;
    flex-direction: column;
}
.featured-secondary {
    grid-area: f-secondary;
    display: flex;
    flex-direction: column;
}
.featured-primary-article {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #181818;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.featured-primary-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}
.featured-primary-article img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
}
.featured-primary-content {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    width: 100%;
    padding: 24px 18px 18px 18px;
    background: linear-gradient(to top, rgba(0,0,0,0.82) 70%, rgba(0,0,0,0.12) 100%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.featured-primary-title {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.85);
    margin: 0;
    line-height: 1.18;
}

/* Secondary grid (2x2) */
.featured-secondary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 1rem;
    height: 100%;
}
.featured-secondary-article {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #181818;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
}
.featured-secondary-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}
.featured-secondary-article img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    display: block;
}
.featured-secondary-content {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    width: 100%;
    padding: 16px 12px 10px 12px;
    background: linear-gradient(to top, rgba(0,0,0,0.82) 70%, rgba(0,0,0,0.12) 100%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.featured-secondary-title {
    font-size: 1.08rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.85);
    margin: 0;
    line-height: 1.18;
}



@media (max-width: 1024px) {
    .category-sidebar, #secondary, .widget-area {
        display: block !important; /* Override display:none from line ~2451 */
    }
}

@media (max-width: 768px) {
    .category-content-sidebar-wrapper {
        flex-direction: column !important;
        gap: 0 !important;
    }
    .category-latest-list {
        width: 100% !important;
        max-width: 100vw !important;
        margin: 0 auto 18px auto !important;
        padding: 0 0 0 0 !important;
    }
    .category-list-item {
        flex-direction: column !important;
        min-height: unset !important;
        margin-bottom: 16px !important;
        border-radius: 12px !important;
        box-shadow: 0 1px 4px rgba(0,0,0,0.07) !important;
    }
    .category-list-thumb {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: 180px !important;
        border-radius: 12px 12px 0 0 !important;
        margin: 0 !important;
    }
    .category-list-thumb img {
        border-radius: 12px 12px 0 0 !important;
        width: 100% !important;
        height: 180px !important;
        object-fit: cover !important;
    }
    .category-list-content {
        padding: 14px 10px 10px 10px !important;
        display: flex;
        flex-direction: column;
        gap: 0.5em;
    }
    .category-list-title {
        font-size: 1.1rem !important;
        margin-bottom: 6px !important;
    }
    .category-list-excerpt {
        font-size: 0.98em !important;
        margin-bottom: 8px !important;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
    .category-list-meta {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding-top: 6px !important;
        border-top: 1px solid #eee !important;
        font-size: 0.97em !important;
        gap: 0 !important;
    }
    .category-list-meta .meta-left {
        gap: 8px !important;
    }
    .category-list-meta .author,
    .category-list-meta .date,
    .category-list-meta .comments {
        font-size: 0.97em !important;
    }
    .category-list-meta .comments svg {
        width: 15px !important;
        height: 15px !important;
    }
    .load-more-container {
        margin: 18px 0 0 0 !important;
        text-align: center !important;
    }
    .load-more-button {
        padding: 10px 22px !important;
        font-size: 1em !important;
        border-radius: 7px !important;
    }
}

@media (max-width: 900px) {
    /* Featured section: main post large on top, secondary in 2-column grid */
    .listing-featured.featured-5-pin-large {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
    }
    .featured-primary {
        width: 100% !important;
        margin-bottom: 10px !important;
    }
    .featured-primary-article {
        width: 100% !important;
        border-radius: 16px !important;
        overflow: hidden !important;
    }
    .featured-secondary {
        width: 100% !important;
    }
    .featured-secondary-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
        width: 100% !important;
    }
    .featured-secondary-article {
        min-width: 0 !important;
        width: 100% !important;
        border-radius: 12px !important;
        overflow: hidden !important;
    }
    .featured-secondary-article img {
        width: 100% !important;
        height: auto !important;
        object-fit: cover !important;
        border-radius: 12px !important;
    }
}

/* --- WeGreen Footer Widget Styles (Restored & Modernized) --- */

/* Info Widget */
.widget_wegreen_info_widget .footer-logo {
  margin-bottom: 18px;
}
.widget_wegreen_info_widget .footer-social-icons {
  margin-top: 10px;
  display: flex;
  gap: 10px;
}

/* Categories Widget */
.widget_wegreen_categories_widget .widget-title,
.footer-widget-col-2 .widgettitle,
.footer-widget-col-2 .widget-title {
  color: #ff5252;
  font-size: 1.18em;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: 0.5px;
  background: none;
  border: none;
  padding: 0;
  display: block;
}
.footer-categories {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 3 120px;
  column-gap: 32px;
}
.footer-categories li {
  margin-bottom: 10px;
  font-size: 1.08em;
  font-weight: 700;
  color: #eee;
  break-inside: avoid;
}
.footer-categories li a {
  color: #eee;
  text-decoration: none;
  transition: color 0.2s;
  font-weight: 700;
}
.footer-categories li a:hover {
  color: #ff5252;
  text-decoration: underline;
}
@media (max-width: 900px) {
  .footer-categories { columns: 2 100px; }
}
@media (max-width: 600px) {
  .footer-categories { columns: 1 100px; }
}

/* Newsletter Widget */
.widget_wegreen_newsletter_widget .widget-title,
.footer-widget-col-3 .widgettitle,
.footer-widget-col-3 .widget-title {
  color: #ff5252;
  font-size: 1.18em;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: 0.5px;
  background: none;
  border: none;
  padding: 0;
  display: block;
}
.footer-newsletter-desc {
  color: #ccc;
  margin-bottom: 10px;
  font-size: 1.08em;
  text-align: left;
}
.footer-newsletter-form {
  display: flex;
  width: 100%;
  margin-bottom: 8px;
  gap: 0;
}
.footer-newsletter-input {
  flex: 1 1 auto;
  padding: 12px 14px;
  border: none;
  background: #232328;
  color: #fff;
  border-radius: 2px 0 0 2px;
  font-size: 1em;
  margin-right: -4px;
}
.footer-newsletter-btn {
  background: #ff5252;
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 0 2px 2px 0;
  font-weight: 700;
  cursor: pointer;
  font-size: 1em;
  transition: background 0.2s;
}
.footer-newsletter-btn:hover {
  background: #e53935;
}
.footer-newsletter-note {
  color: #ccc;
  font-size: 0.97em;
  margin-top: 2px;
  text-align: left;
}

/* Desktop: Table takes full width */
@media (min-width: 769px) {
  .wp-block-table.aligncenter,
  .wp-block-table.alignleft,
  .wp-block-table.alignright {
    display: table;
    width: 100%;
    overflow-x: visible;
  }
}

/* Mobile: Table is scrollable horizontally, does not shrink/stretch */
@media (max-width: 768px) {
  .wp-block-table.aligncenter,
  .wp-block-table.alignleft,
  .wp-block-table.alignright {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .wp-block-table.aligncenter table,
  .wp-block-table.alignleft table,
  .wp-block-table.alignright table {
    width: max-content;
    min-width: 100%;
  }
  .wp-block-table.aligncenter td,
  .wp-block-table.alignleft td,
  .wp-block-table.alignright td {
    white-space: nowrap;
  }
}

@media (max-width: 726px) {
  .listing-featured.featured-5-pin-large {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
  }
  .featured-primary {
    width: 100% !important;
    margin-bottom: 10px !important;
  }
  .featured-primary-article {
    width: 100% !important;
    border-radius: 16px !important;
    overflow: hidden !important;
  }
  .featured-secondary {
    width: 100% !important;
  }
  .featured-secondary-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    width: 100% !important;
  }
  .featured-secondary-article {
    min-width: 0 !important;
    width: 100% !important;
    border-radius: 12px !important;
    overflow: hidden !important;
  }
  .featured-secondary-article img {
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
    border-radius: 12px !important;
  }
}

/* Desktop/tablet: wider aspect ratio */
@media (min-width: 768px) {
  .category-list-thumb {
    aspect-ratio: 360 / 240;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    width: 100% !important;
    display: block;
    overflow: hidden;
  }
  .category-list-thumb img {
    aspect-ratio: 360 / 240;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
    border-radius: 12px 12px 0 0 !important;
  }
}

/* Mobile: taller aspect ratio */
@media (max-width: 767px) {
  .category-list-thumb {
    aspect-ratio: 825 / 440;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    width: 100% !important;
    display: block;
    overflow: hidden;
  }
  .category-list-thumb img {
    aspect-ratio: 825 / 440;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
    border-radius: 12px 12px 0 0 !important;
  }
}

/* Style corrections for entertainment content */
.ext-body {
    padding: 1rem;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.04);
}

/* Entertainment Cast/People Styles */
.entertainment-people-section {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.entertainment-people-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.entertainment-people-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--wgt-secondary);
    margin: 0 0 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--wgt-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 2%;
}

.entertainment-people-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 25px;
}

.entertainment-person-card {
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.08);
    margin-bottom: 5px;
}

.entertainment-person-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}

.entertainment-person-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.entertainment-person-image {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 133%;
    overflow: hidden;
}

.entertainment-person-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.entertainment-person-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 12px 12px 6px;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 0 !important;
}

.entertainment-person-role {
    font-size: 0.9rem;
    color: #666;
    margin: 0 12px 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Responsive adjustments for entertainment content */
@media (max-width: 767px) {
    .entertainment-people-section {
        margin-bottom: 30px;
        padding-bottom: 15px;
    }
    
    .entertainment-people-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .entertainment-person-image {
        padding-bottom: 140%;
    }
    

    
    .entertainment-person-name {
        font-size: 1rem;
        margin: 10px 10px 5px;
    }
    
    .entertainment-person-role {
        font-size: 0.85rem;
        margin: 0 10px 10px;
    }
    
    .entertainment-videos-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .entertainment-people-section {
        margin-bottom: 25px;
    }
    
    .entertainment-people-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .entertainment-person-image {
        padding-bottom: 145%;
    }
    

    
    .entertainment-person-card {
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    .ext-body {
        padding: 0.75rem;
    }
    
    .entertainment-people-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .entertainment-person-image {
        padding-bottom: 150%;
    }
    

    
    .entertainment-person-name {
        font-size: 0.85rem;
        margin: 6px 6px 2px;
    }
    
    .entertainment-person-role {
        font-size: 0.7rem;
        margin: 0 6px 6px;
    }
}

.entertainment-no-cast {
    padding: 30px 20px;
    background-color: #f8f8f8;
    border-radius: 8px;
    text-align: center;
}

.entertainment-no-cast p {
    font-size: 1.1rem;
    color: #666;
}

/* Entertainment Videos Styles */
.entertainment-videos-content {
    padding: 20px 0;
}

.entertainment-videos-content .entry-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #333;
    font-weight: 600;
}

.entertainment-videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 10px;
}

.entertainment-video-item {
    margin-bottom: 20px;
}

.entertainment-video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
}

.entertainment-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.entertainment-video-title {
    font-size: 1.1rem;
    margin: 10px 0 0;
    color: #333;
}

.entertainment-no-videos {
    padding: 30px 20px;
    background-color: #f8f8f8;
    border-radius: 8px;
    text-align: center;
}

.entertainment-no-videos p {
    font-size: 1.1rem;
    color: #666;
    margin: 0;
}

/* Entertainment Episodes Styles */
.entertainment-episodes-content {
    padding: 20px 0;
}

.entertainment-episodes-content .entry-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #333;
    font-weight: 600;
}

.entertainment-season {
    margin-bottom: 30px;
}

.entertainment-season-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e1e1e1;
    color: #70ac3a;
}

.entertainment-episode-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.entertainment-episode {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.entertainment-episode:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.entertainment-episode-header {
    padding: 12px 15px;
    background: #f8f8f8;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.entertainment-episode-number {
    font-weight: bold;
    color: #70ac3a;
}

.entertainment-episode-date {
    color: #777;
    font-size: 0.9em;
}

.entertainment-episode-image {
    position: relative;
    overflow: hidden;
}

.entertainment-episode-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.entertainment-episode:hover .entertainment-episode-image img {
    transform: scale(1.05);
}

.entertainment-episode-content {
    padding: 15px;
}

.entertainment-episode-title {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.2rem;
    color: #333;
}

.entertainment-episode-summary p {
    margin: 0;
    color: #666;
    line-height: 1.5;
}

.entertainment-no-episodes {
    padding: 30px;
    text-align: center;
    background: #f9f9f9;
    border-radius: 8px;
    color: #666;
}

/* Additional responsive styles in the section below */

/* Entertainment Photos Styles */
.entertainment-photos-content {
    padding: 20px 0;
}

.entertainment-photos-content .entry-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #333;
    font-weight: 600;
}

.entertainment-photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.entertainment-photo-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 1/1;
}

.entertainment-photo-link {
    display: block;
    width: 100%;
    height: 100%;
}

.entertainment-photo-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.entertainment-photo-link:hover img {
    transform: scale(1.05);
}

.entertainment-no-photos {
    padding: 30px 20px;
    background-color: #f8f8f8;
    border-radius: 8px;
    text-align: center;
}

.entertainment-no-photos p {
    font-size: 1.1rem;
    color: #666;
    margin: 0;
}

/* Modal styles */
.modal-content {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

#main-modal {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80%;
}

#image-box {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

#image-box img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

/* Modal navigation */
.mfp-arrow {
    position: absolute;
    top: 50%;
    margin-top: -25px;
    width: 50px;
    height: 50px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.mfp-arrow-left {
    left: 20px;
}

.mfp-arrow-right {
    right: 20px;
}

.mfp-arrow-left:before,
.mfp-arrow-right:before {
    content: "";
    display: block;
    width: 30px;
    height: 30px;
    border-top: 3px solid white;
    border-left: 3px solid white;
    position: absolute;
    top: 10px;
}

.mfp-arrow-left:before {
    left: 10px;
    transform: rotate(-45deg);
}

.mfp-arrow-right:before {
    right: 10px;
    transform: rotate(135deg);
}

#close-button {
    position: absolute;
    right: 20px;
    top: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
}

/* Update responsive styles to include photos grid */
@media (max-width: 767px) {
    .entertainment-episode-grid {
        grid-template-columns: 1fr;
    }
    
    .entertainment-photos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .entertainment-photos-grid {
        grid-template-columns: 1fr;
    }
    
    #main-modal {
        max-width: 95%;
    }
}

/* --- Episode Card Redesign --- */
.entertainment-episode {
  display: flex;
  align-items: stretch;
  gap: 20px;
  padding: 18px 24px;
  margin-bottom: 18px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  border: 1px solid #e0e0e0;
}
.episode-badge {
  background: #065f46;
  color: #fff;
  font-weight: 700;
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 1rem;
  align-self: flex-start;
  margin-right: 18px;
  margin-top: 8px;
  min-width: 90px;
  text-align: center;
}
.entertainment-episode-image {
  width: 80px;
  height: 80px;
  background: #f3f3f3;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-right: 18px;
  flex-shrink: 0;
  border: 1px solid #e0e0e0;
}
.entertainment-episode-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bbb;
  font-size: 2rem;
}
.entertainment-episode-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.episode-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.entertainment-episode-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
}
.entertainment-episode-date {
  color: #888;
  font-size: 1rem;
  margin-left: 20px;
  white-space: nowrap;
}
.entertainment-episode-summary p {
  margin: 8px 0 0 0;
  color: #555;
}
/* --- End Episode Card Redesign --- */

/* --- Modern Episodes List/Card Design --- */
.episodes-section {
    margin-top: 40px;
    margin-bottom: 60px;
}
.episodes-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e7eb;
    color: #1e293b;
}
.episodes-list, .episodes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 100%;
}

.episode-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    display: block;
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.episode-card:hover {
    border-color: #d1d5db;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
}

.episode-content {
    width: 100%;
}

.episode-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.episode-title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
    color: #111827;
    flex: 1;
}

.episode-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    flex-shrink: 0;
}

.episode-badge--upcoming {
    background: #047857;
    color: #ffffff;
}

.episode-badge--current {
    background: #d97706;
    color: #ffffff;
}

.episode-badge--previous {
    background: #374151;
    color: #ffffff;
}

.episode-meta {
    margin-bottom: 0.75rem;
}

.episode-date {
    font-size: 14px;
    color: #6b7280;
}

.episode-description {
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 768px) {
    .episodes-list, .episodes-grid {
        grid-template-columns: 1fr;
    }
    
    .episode-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    .episode-title {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .episode-card {
        padding: 0.75rem;
    }
    
    .episode-header {
        gap: 0.25rem;
    }
    
    .episode-title {
        font-size: 0.95rem;
        line-height: 1.3;
    }
    
    .episode-badge {
        font-size: 0.55rem;
        padding: 3px 6px;
    }
}
/* --- End Modern Episodes List/Card Design --- */

/* start page dev menu design */

div.scrollmenu {
    background-color: #ededed;
    overflow: auto;
    white-space: nowrap;
}
.topnav {
    overflow: auto;
    border: 2px;
    border-radius: 10px;
}

.topnav a.active {
    border-bottom: 3px solid #217346;
    color: #217346;
}
div.scrollmenu a {
    display: inline-block;
    color: black;
    text-align: center;
    padding: 14px;
    text-decoration: none;
}
.topnav a {
    margin: 0 14px;
    font-size: 16px;
    font-weight: 700;
    border-bottom: 3px solid transparent;
}

.moviebutton {
    display: flex;
    gap: 3%;
    margin-left: 10px;
}

.moviebutton .active {
    background-color: white;
    border-bottom: 2px solid #217346;
    box-shadow: 0 -1px 5px rgba(0, 0, 0, .2);
}

.moviebutton .button {
    height: 40px;
    font-size: 17px;
    text-align: center;
    padding: 2px 0;
    font-weight: 600;
    border-radius: 10px 10px 0 0;
    flex-basis: 48%;
    color: black;
    background-color: #ededed;
    line-height: 1.9;
    display: block;
    overflow: hidden;
    text-transform: capitalize;
}

/* end page dev menu design */

.wp-block-search__label{
    display: none;
}

.wp-block-search__inside-wrapper {
    margin-bottom: 2rem;
}

/* Page layout - Main content and sidebar */
.main-content {
    display: flex;
    flex-direction: row;
    gap: 30px;
    margin-top: 24px;
    margin-bottom: 40px;
    /* Remove any position:relative that interferes with sticky positioning */
    position: static;
    transform: none;
    min-height: 70vh; /* Give enough height for scrolling */
    align-items: flex-start;
}

.content {
    flex: 1;
    min-width: 0; /* Fix for flexbox overflow issues */
    position: relative; /* Allow absolute positioning within content */
}



/* High-resolution image and responsive text fixes */
.custom-logo-link img, .custom-logo {
    max-height: 35px;
    width: auto;
    height: auto;
    object-fit: contain;
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .custom-logo-link img, .custom-logo {
        max-height: 48px;
    }
}

/* Ensure legible font sizes on mobile */
@media (max-width: 768px) {
    body, p, li, td, input, button, select, textarea {
        font-size: 14px !important;
    }
    h1, .h1 { font-size: 24px !important; }
    h2, .h2 { font-size: 22px !important; }
    h3, .h3 { font-size: 20px !important; }
    h4, .h4 { font-size: 18px !important; }
    h5, .h5 { font-size: 16px !important; }
    h6, .h6 { font-size: 15px !important; }
    .wegreen-header-menu li a,
    .wegreen-mobile-menu-list li a {
        font-size: 15px !important;
    }
    .wegreen-mobile-menu-list li a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    input[type="text"],
    input[type="email"],
    input[type="url"],
    input[type="password"],
    input[type="search"],
    input[type="number"],
    input[type="tel"],
    input[type="range"],
    input[type="date"],
    input[type="month"],
    input[type="week"],
    input[type="time"],
    input[type="datetime"],
    input[type="datetime-local"],
    input[type="color"],
    select,
    textarea,
    button {
        min-height: 44px;
        font-size: 16px !important;
    }
}

/* Mobile logo styles */
.mobile-logo-container .custom-logo-link img {
    max-height: 48px;
    width: auto;
    height: auto;
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .mobile-logo-container .custom-logo-link img {
        max-height: 48px;
    }
}

.section-heading {
    font-size: 1.2em;
    font-weight: 600;
    color: #222;
    margin: 20px 0 10px;
    padding: 0;
    border-left: 4px solid #00cc66;
    padding-left: 10px;
  }
  
  @media screen and (max-width: 768px) {
    .section-heading {
      font-size: 1.1em;
      margin: 16px 0 10px;
      padding: 10px 12px;
    }
  }
    
  
/* YouTube Player Popup Fix */
.video-popup-overlay.active #video {
    z-index: 10000 !important;
}

.video-popup-overlay.active #video .video-controls {
    opacity: 1 !important;
    pointer-events: auto !important;
    z-index: 1000 !important;
    display: flex !important;
}

.video-popup-overlay.active #video iframe {
    opacity: 1 !important;
    pointer-events: auto !important;
    z-index: 999 !important;
}

.video-popup-overlay.active #video .playercover {
    opacity: 0 !important;
    pointer-events: none !important;
}

.video-popup-content {
    overflow: visible !important;
}

/* Social Share Count System Styles */
.single-share-count-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    margin: 30px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.single-share-count-box:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.share-count {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.share-count-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1;
    transition: all 0.3s ease;
}

.share-count-number.loading {
    color: #6c757d;
    font-style: italic;
}

.share-count-number.error {
    color: #dc3545;
}

.share-count-label {
    font-size: 1.1rem;
    font-weight: 500;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.single-social-share {
    display: flex;
    gap: 12px;
    align-items: center;
}

.social-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-decoration: none;
    color: #6c757d;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border: 2px solid #dee2e6;
    background: #f8f9fa;
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    background: #e9ecef;
    border-color: #adb5bd;
    color: #495057;
}

.social-icon:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

.social-icon.focused {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

/* Keep original grey styling - no platform-specific colors */
.social-icon.facebook,
.social-icon.twitter,
.social-icon.whatsapp,
.social-icon.linkedin,
.social-icon.website {
    background: #f8f9fa;
    border-color: #dee2e6;
    color: #6c757d;
}

.social-icon.facebook:hover,
.social-icon.twitter:hover,
.social-icon.whatsapp:hover,
.social-icon.linkedin:hover,
.social-icon.website:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    color: #495057;
}

/* Meta section social sharing icons */
.single-post-social-share {
    display: flex;
    align-items: center;
    gap: 8px;
}

.single-social-share-meta {
    display: flex;
    gap: 8px;
    align-items: center;
}

.single-social-share-meta .social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    color: #6c757d;
}

.single-social-share-meta .social-icon:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    color: #495057;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.single-social-share-meta .social-icon svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.social-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}



/* Responsive Design for Share Counts */
@media (max-width: 768px) {
    .single-share-count-box {
        flex-direction: column;
        gap: 20px;
        padding: 16px;
        margin: 20px 0;
    }
    
    .share-count {
        flex-direction: column;
        text-align: center;
        gap: 4px;
    }
    
    .share-count-number {
        font-size: 2rem;
    }
    
    .share-count-label {
        font-size: 1rem;
    }
    
    .single-social-share {
        gap: 8px;
    }
    
    .social-icon {
        width: 50px;
        height: 50px;
    }
    
    .social-icon svg {
        width: 1.3rem;
        height: 1.3rem;
    }
    

}

@media (max-width: 480px) {
    .single-share-count-box {
        padding: 12px;
        margin: 15px 0;
    }
    
    .share-count-number {
        font-size: 1.8rem;
    }
    
    .share-count-label {
        font-size: 0.9rem;
    }
    
    .single-social-share {
        gap: 6px;
    }
    
    .social-icon {
        width: 45px;
        height: 45px;
    }
    
    .social-icon svg {
        width: 1.2rem;
        height: 1.2rem;
    }
}

/* Loading and Error States */
.share-count-number.loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #6c757d;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    margin-left: 8px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Accessibility Enhancements */
.social-icon:focus-visible {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .social-icon {
        border: 2px solid #000000;
    }
    
    .share-count-number {
        color: #000000;
    }
    
    .share-count-label {
        color: #000000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .social-icon,
    .share-count-number,
    .single-share-count-box {
        transition: none;
    }
    
    .social-icon:hover {
        transform: none;
    }
    
    .single-share-count-box:hover {
        transform: none;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .single-share-count-box {
        background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
        border-color: #4a5568;
        color: #e2e8f0;
    }
    
    .share-count-number {
        color: #e2e8f0;
    }
    
    .share-count-label {
        color: #a0aec0;
    }
    
    .share-count-platform {
        background: rgba(255, 255, 255, 0.1);
        color: #e2e8f0;
    }
}

/* Animation for count updates */
.share-count-number.updating {
    transform: scale(1.1);
    color: #007bff;
}

/* Hover effects for social icons */
.social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s ease;
}

.social-icon:hover::before {
    transform: scale(1);
}

/* Active state for social icons */
.social-icon:active {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Disabled state */
.social-icon.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.social-icon.disabled:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* FAQ Answer Visibility Classes - Prevents Forced Reflows */
.faq-answer-hidden {
    display: none !important;
}

/* Lightbox Body State - Prevents Forced Reflows */
body.lightbox-open {
    overflow: hidden;
}

/* Gallery Lightbox Styles */
.gallery-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    padding: 5px;
}

.lightbox-close:hover {
    opacity: 0.7;
}

/* Responsive Design for Share Counts */
@media (max-width: 768px) {
    .single-share-count-box {
        flex-direction: column;
        gap: 20px;
        padding: 16px;
        margin: 20px 0;
    }
    
    .share-count {
        flex-direction: column;
        text-align: center;
        gap: 4px;
    }
    
    .share-count-number {
        font-size: 2rem;
    }
    
    .share-count-label {
        font-size: 1rem;
    }
    
    .single-social-share {
        gap: 8px;
    }
    
    .social-icon {
        width: 50px;
        height: 50px;
    }
    
    .social-icon svg {
        width: 1.3rem;
        height: 1.3rem;
    }
}

@media (max-width: 480px) {
    .single-share-count-box {
        padding: 12px;
        margin: 15px 0;
    }
    
    .share-count-number {
        font-size: 1.8rem;
    }
    
    .share-count-label {
        font-size: 0.9rem;
    }
    
    .single-social-share {
        gap: 6px;
    }
    
    .social-icon {
        width: 45px;
        height: 45px;
    }
    
    .social-icon svg {
        width: 1.2rem;
        height: 1.2rem;
    }
}

/* Comment Content Visibility Classes - Prevents Forced Reflows */
.comment-content-hidden {
    display: none !important;
}

/* Comment Loading and Deletion States - Prevents Forced Reflows */
.comment-loading {
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.comment-deleted {
    opacity: 0;
    transform: translateX(-100%);
    transition: all 0.3s ease;
}

/* Gallery Lightbox Styles */
.gallery-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    padding: 5px;
}

.lightbox-close:hover {
    opacity: 0.7;
}