/*
Theme Name: BPBS Theme
Theme URI: https://bigpicturebigsound.com
Author: Big Picture Big Sound
Author URI: https://bigpicturebigsound.com
Description: Custom theme for Big Picture Big Sound - Where Movies and Technology Meet
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
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: bpbs-theme
Tags: custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ==========================================================================
   Site Map Page
   ========================================================================== */

.page-sitemap {
    background: #fff;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.page-sitemap .entry-header {
    background: #000;
    color: #fff;
    padding: 10px 15px;
    margin: -20px -20px 20px -20px;
    border-radius: 4px 4px 0 0;
}

.page-sitemap .entry-title {
    margin: 0;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    color: #fff;
}

.sitemap-content {
    padding: 0;
}

.sitemap-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.sitemap-column {
    flex: 1;
    min-width: 180px;
    max-width: 250px;
}

.sitemap-column h3 {
    color: #000;
    background: transparent;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    margin: 0 0 8px 0;
    padding: 0;
    border-radius: 0;
}

.sitemap-column h3:not(:first-child) {
    margin-top: 20px;
}

.sitemap-column ul {
    list-style: none;
    margin: 0 0 0 5px;
    padding: 0;
}

.sitemap-column ul ul {
    margin-top: 3px;
    margin-left: 15px;
    padding-left: 10px;
    border-left: 1px solid #ddd;
}

.sitemap-column li {
    margin-bottom: 4px;
    font-size: 12px;
    line-height: 1.4;
}

.sitemap-column li::before {
    content: "•";
    color: #333;
    margin-right: 6px;
}

.sitemap-column ul ul li::before {
    content: "◦";
    color: #999;
}

.sitemap-column a {
    color: #660066;
    text-decoration: none;
}

.sitemap-column a:hover {
    color: #990099;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .sitemap-columns {
        flex-direction: column;
    }

    .sitemap-column {
        min-width: 100%;
        max-width: 100%;
    }
}

/* ==========================================================================
   About Us Page - Team Cards
   ========================================================================== */

.about-image {
    margin: 0 0 20px 20px;
}

.team-header {
    font-size: 18px;
    font-weight: bold;
    color: #000;
    text-transform: uppercase;
    margin: 40px 0 10px 0;
    padding-bottom: 10px;
    border-bottom: 3px solid #660066;
    position: relative;
}

.team-header::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100px;
    height: 3px;
    background: #990099;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.team-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.team-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    border-color: #660066;
}

.team-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.team-card-avatar {
    margin-bottom: 15px;
}

.team-card-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f0f0f0;
    transition: border-color 0.3s ease;
}

.team-card:hover .team-card-avatar img {
    border-color: #660066;
}

.team-card-info {
    padding: 0;
}

.team-card-name {
    font-size: 16px;
    font-weight: bold;
    color: #000;
    margin: 0 0 5px 0;
    line-height: 1.3;
}

.team-card-role {
    font-size: 13px;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

.team-card-link:hover .team-card-name {
    color: #660066;
}

.affiliate-notice {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    font-size: 13px;
    color: #666;
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }

    .team-card {
        padding: 15px;
    }

    .team-card-avatar img {
        width: 100px;
        height: 100px;
    }

    .team-card-name {
        font-size: 14px;
    }

    .team-card-role {
        font-size: 12px;
    }

    .about-image {
        float: none !important;
        margin: 0 auto 20px;
        text-align: center;
        max-width: 100%;
    }

    .about-image img {
        max-width: 100%;
        height: auto;
    }
}

/* ==========================================================================
   CSS Reset & Base Styles
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    background-color: #e8e8e8;
}

a {
    color: #660066;
    text-decoration: none;
}

a:hover,
a:focus {
    color: #990099;
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}

/* ==========================================================================
   Layout
   ========================================================================== */

.site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: black;
}

.site-content {
    flex: 1;
    max-width: 1170px;
    margin: 0 auto;
    width: 100%;
    background: #fff;
}

.content-sidebar-wrap {
    display: flex;
    gap: 0;
    align-items: stretch;
    /* border: 1px solid #ccc; */
    /* frame only the content + sidebar */
    border-bottom: none;
    /* footer handles the bottom */
    box-sizing: border-box;
    background: #fff;
    /* ensure white behind posts in case parent changes */
}

.site-main {
    flex: 1;
    padding: 22px 15px;
    border-right: 1px solid #ddd;
    min-width: 0;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
    background-color: #000;
    color: #fff;
}

.header-top {
    max-width: 1170px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 8px 0;
    flex-wrap: wrap;
}

.site-branding {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.logo-link {
    display: block;
}

.site-logo {
    width: 271px;
    height: 100px;
    display: block;
    object-fit: contain;
}

@media (max-width: 1024px) {
    .site-logo {
        width: 215px;
        height: 79px;
    }
}

@media (max-width: 768px) {
    .site-logo {
        width: 160px;
        height: 59px;
    }
}

@media (max-width: 480px) {
    .site-logo {
        width: 100px;
        height: 37px;
    }
}

.site-title {
    margin: 0;
    font-size: 1.5rem;
}

.site-title a {
    color: #fff;
    text-decoration: none;
}

.header-right {
    /* Styles moved to after ad-masthead-top for proper cascade */
}

.header-right a {
    color: #ccc;
    font-weight: 600;
}

.header-right a:hover {
    color: #fff;
    text-decoration: none;
}

.site-description {
    display: none;
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.main-navigation {
    /* No styles here - just a wrapper */
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    max-width: 1170px;
    margin: 0 auto;
    background: linear-gradient(to bottom, #4a4a4a 0%, #1a1a1a 100%);
    border-top: 1px solid #666;
    border-bottom: 3px solid #000;
    justify-content: flex-start;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    display: block;
    padding: 12px 18px;
    color: #ccc;
    font-size: 14px;
    font-weight: normal;
    border-right: 1px solid #555;
}

.main-navigation li:first-child a {
    border-left: none;
}

.main-navigation a:hover {
    background: #111;
    color: #fff;
    text-decoration: none;
}

.main-navigation .current-menu-item>a,
.main-navigation .current_page_item>a,
.main-navigation .current-menu-ancestor>a,
.main-navigation .current_page_ancestor>a,
.main-navigation .current-menu-parent>a,
.main-navigation .current_page_parent>a {
    background: #111;
    color: #fff;
    text-decoration: none;
}

/* Dropdown menus */
.main-navigation ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #333;
    min-width: 200px;
    z-index: 999;
    flex-direction: column;
}

.main-navigation li:hover>ul {
    display: flex;
}

.main-navigation ul ul a {
    border-right: none;
    border-left: none;
    border-bottom: 1px solid #444;
    padding: 10px 15px;
}

.menu-toggle {
    display: none;
}

/* Hamburger icon - hidden by default, shown on mobile */
.hamburger-icon {
    display: none;
}

.menu-toggle-text {
    display: inline;
}

/* Mobile menu - hidden on desktop */
.mobile-menu {
    display: none !important;
}

/* ==========================================================================
   Homepage Grid Layout
   ========================================================================== */

.homepage-main {
    padding: 20px;
}

.homepage-grid {
    max-width: 100%;
}

.homepage-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.homepage-col {
    min-width: 0;
    /* Prevent grid blowout */
}

/* Responsive: Stack columns on mobile */
@media (max-width: 768px) {
    .homepage-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .homepage-main {
        padding: 15px;
    }
}

/* ==========================================================================
   Homepage Section Styling
   ========================================================================== */

.homepage-section {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s ease;
}

.homepage-section:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.homepage-section .section-header {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
    margin: 0;
    padding: 12px 18px;
    background: #1a1a1a;
}

.homepage-section .section-header a {
    color: #fff;
    text-decoration: none;
    display: inline-block;
    border-bottom: 2px solid transparent;
    transition: border-bottom 0.2s ease;
}

.homepage-section .section-header a:hover {
    color: #fff;
    border-bottom: 2px solid #fff;
    text-decoration: none;
}

.homepage-section .section-content {
    padding: 18px;
    flex: 1;
}

/* More in section styling */
.more-in-section {
    border-top: 1px solid #eee;
    padding-top: 15px;
    margin-top: 10px;
}

.more-in-section .more-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #333;
    margin: 0 0 10px 0;
}

.more-in-section .more-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.more-in-section .more-list li {
    padding: 6px 0;
    font-size: 16px;
    line-height: 1.4;
    border-bottom: 1px solid #f5f5f5;
}

.more-in-section .more-list li:last-child {
    border-bottom: none;
}

.more-in-section .more-list a {
    color: #660066;
    text-decoration: none;
    transition: color 0.15s ease;
}

.more-in-section .more-list a:hover {
    color: #990099;
    text-decoration: underline;
}

.more-in-section .more-list .star-rating {
    font-size: 16px;
    margin-left: 5px;
}

/* ==========================================================================
   Homepage Category Section (Movies, TV, etc.) - Legacy
   ========================================================================== */

.homepage-category-section {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 20px;
}

.homepage-category-section .section-header {
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    color: #fff;
    margin: 0;
    padding: 8px 15px;
    background: #000;
    border-bottom: none;
    border-radius: 4px 4px 0 0;
}

.homepage-category-section .section-content {
    padding: 15px;
}

/* Featured post in category section */
.featured-post {
    display: flex;
    gap: 15px;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.featured-post.has-border {
    border-top: 1px solid #ddd;
    padding-top: 15px;
}

/* Thumbnail layout (default): image on right */
.featured-post.layout-thumbnail {
    flex-direction: row;
}

.featured-post.layout-thumbnail .post-image {
    flex-shrink: 0;
    order: 2;
}

.featured-post.layout-thumbnail .post-image img {
    width: 120px;
    height: auto;
    display: block;
    border-radius: 4px;
}

.featured-post.layout-thumbnail .post-info {
    flex: 1;
    order: 1;
}

/* Full width layout: image below title, full width */
.featured-post.layout-full {
    flex-direction: column;
}

.featured-post.layout-full .post-image {
    order: 0;
    margin: 2px 0 4px 0;
}

.featured-post.layout-full .post-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.featured-post.layout-full .post-info {
    order: -1;
    /* Title/author above image */
    margin-bottom: 0;
}

.featured-post.layout-full .post-author {
    margin-bottom: 2px;
}

.featured-post.layout-full .post-excerpt {
    margin-top: 2px;
}

/* Legacy support for posts without layout class */
.featured-post:not(.layout-full):not(.layout-thumbnail) .post-image {
    flex-shrink: 0;
    order: 2;
}

.featured-post:not(.layout-full):not(.layout-thumbnail) .post-image img {
    width: 150px;
    height: auto;
    display: block;
}

.featured-post:not(.layout-full):not(.layout-thumbnail) .post-info {
    flex: 1;
    order: 1;
}

/* Posts without images: full width content */
.featured-post.no-image .post-info {
    flex: 1;
    width: 100%;
    max-width: 100%;
}

.featured-post.layout-thumbnail.no-image {
    /* When no image, remove gap and use full width */
    gap: 0;
}

.featured-post.layout-full.no-image .post-excerpt {
    margin-top: 8px;
}

.featured-post .post-title {
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    margin: 0 0 5px 0;
    line-height: 1.3;
}

.featured-post .post-title a {
    color: #660066;
    text-decoration: none;
}

.featured-post .post-title a:hover {
    color: #990099;
    text-decoration: underline;
}

.featured-post .post-title .star-rating {
    margin-left: 5px;
    font-size: 16px;
}

.featured-post .post-author {
    font-size: 16px;
    color: #666;
    margin: 0 0 8px 0;
}

.featured-post .post-excerpt {
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    margin: 0;
}

.featured-post .read-more {
    color: #660066;
    text-decoration: none;
    font-weight: 500;
}

.featured-post .read-more:hover {
    color: #990099;
    text-decoration: underline;
}

/* More in category section */
.more-in-category {
    border-top: 1px solid #ddd;
    padding-top: 15px;
    margin-top: 0;
}

.more-in-category .more-title {
    font-size: 12px;
    font-weight: normal;
    text-transform: uppercase;
    color: #333;
    margin: 0 0 10px 0;
}

.more-in-category .more-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.more-in-category .more-list li {
    padding: 5px 0;
    font-size: 16px;
}

.more-in-category .more-list a {
    color: #660066;
    text-decoration: none;
}

.more-in-category .more-list a:hover {
    text-decoration: underline;
}

.more-in-category .more-list .star-rating {
    font-size: 14px;
    margin-left: 5px;
}

.tagline-bar {
    height: 50px;
    padding: 20px 0 20px 0;
    background: #fff;
    padding: 25px 5px;
    display: flex;
    justify-content: space-between;

    /* border-bottom: 1px solid #ddd; */
    box-sizing: border-box;
}

.tagline {
    padding: 0px 15px;
    font-size: 20px;
    font-weight: bold;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.site-search {
    text-transform: uppercase;
    padding: 10px 10px 0 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.site-search form {
    display: flex;
    align-items: center;
    gap: 5px;
}

.site-search label {
    font-size: 16px;
    font-weight: normal;
    color: #666;
}

.site-search input[type="search"] {
    padding: 6px 10px;
    border: 1px solid #999;
    font-size: 14px;
    width: 250px;
}

.site-search button {
    background: #660066;
    color: #fff;
    border: none;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 4px;
}

.site-search button:hover {
    background: #990099;
}


/* ==========================================================================
   Category Breadcrumb
   ========================================================================== */

.category-breadcrumb {
    display: flex;
    background: #1a1a1a;
    border-radius: 8px 8px 0 0;
    margin: 0;
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
    white-space: nowrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.category-breadcrumb .categories {
    font-weight: 600;
    color: #fff;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-breadcrumb .categories a {
    color: #fff;
    text-decoration: none;
}

.category-breadcrumb .categories a:hover {
    text-decoration: underline;
}

.category-breadcrumb .published-date {
    font-size: 14px;
    color: #fff;
    font-weight: 600;
}

/* Date format switching for mobile */
.published-date .date-compact {
    display: none;
}

@media (max-width: 768px) {
    .published-date .date-full {
        display: none;
    }

    .published-date .date-compact {
        display: inline;
    }
}

.category-tabs {
    display: flex;
    /* flex-wrap: wrap; */
    gap: 15px;
    padding: 12px 0 0 0;
    margin-bottom: 25px;
    /* border-bottom: 1px solid #ddd; */
}

.category-tab {
    display: inline-block;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: bold;
    text-decoration: none;
    color: #666;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 3px;
    transition: all 0.2s ease;
    cursor: pointer;
    font-family: inherit;
}

.category-tab:hover {
    background: #e0e0e0;
    color: #333;
    text-decoration: none;
}

.category-tab.active {
    background: #660066;
    color: #fff;
    border-color: #660066;
}

.category-tab.active:hover {
    background: #550055;
}

/* Mobile filter accordions - hidden on desktop */
.mobile-filter-accordions {
    display: none;
}

/* Category Dropdown */
.category-dropdown {
    position: relative;
    display: inline-block;
}

.category-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.category-dropdown-toggle .dropdown-arrow {
    font-size: 10px;
}

.category-dropdown-toggle.has-active {
    background: #660066;
    color: #fff;
    border-color: #660066;
}

.category-dropdown-toggle .dropdown-count {
    background: #fff;
    color: #660066;
    font-size: 10px;
    padding: 1px 5px;
    border-radius: 10px;
    font-weight: bold;
}

.category-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 4px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 3px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 100;
}

.category-dropdown.open .category-dropdown-menu {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    font-size: 12px;
    color: #333;
    cursor: pointer;
    transition: background 0.15s ease;
}

.dropdown-item:hover {
    background: #f5f5f5;
}

.dropdown-item.active {
    background: #f0e6f0;
    color: #660066;
    font-weight: bold;
}

.dropdown-item input[type="checkbox"] {
    margin: 0;
    cursor: pointer;
}

/* ==========================================================================
   Content
   ========================================================================== */

.entry-header {
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.entry-title {
    margin: 0 0 8px;
    font-size: 24px;
    color: #333;
    font-weight: bold;
}

.review-subtitle {
    margin: 0 0 8px;
    font-size: 14px;
    color: #666;
    font-style: italic;
}

.page-subtitle {
    margin: 0 0 12px;
    font-size: 14px;
    color: #666;
    font-style: italic;
}

.author-title {
    margin: 0;
    font-size: 14px;
    color: #666;
    font-style: italic;
}

.section-header {
    background-color: #1a1a1a;
    padding: 8px 12px;
    margin: -12px -15px 15px -15px;
    /* extend to edges of .site-main padding */
}

.section-header span {
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.entry-meta {
    color: #666;
    font-size: 13px;
    margin-bottom: 8px;
}

.entry-meta .author {
    font-weight: bold;
}

.entry-meta .rating-stars {
    margin-left: 5px;
}

.social-share {
    float: right;
    display: flex;
    gap: 6px;
    align-items: center;
}

.social-share a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #fff;
    transition: opacity 0.2s;
}

.social-share a svg {
    width: 18px;
    height: 18px;
}

.social-share a:hover {
    opacity: 0.8;
    text-decoration: none;
}

.social-share .share-twitter {
    background: #1da1f2;
}

.social-share .share-facebook {
    background: #1877f2;
}

.social-share .share-reddit {
    background: #ff4500;
}

.social-share .share-email {
    background: #666;
}

.entry-content {
    margin-bottom: 15px;
    line-height: 1.6;
    font-size: 16px;
    overflow: visible;
}

.entry-content p {
    margin-bottom: 1em;
}

/* Fix for figures/wp-caption incorrectly wrapped in p tags */
.entry-content p:has(> figure),
.entry-content p:has(> .wp-caption) {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
    display: flex !important;
    justify-content: center !important;
}

.entry-content p:has(> figure.aligncenter),
.entry-content p:has(> .wp-caption.aligncenter) {
    justify-content: center !important;
}

.entry-content p:has(> figure.alignleft),
.entry-content p:has(> .wp-caption.alignleft) {
    justify-content: flex-start !important;
    margin: 0 12px 12px 0 !important;
}

.entry-content p:has(> figure.alignright),
.entry-content p:has(> .wp-caption.alignright) {
    justify-content: flex-end !important;
    margin: 0 0 12px 12px !important;
}

.entry-content img {
    margin: 8px 0;
}

.entry-content img.alignright {
    float: right;
    margin: 0 0 12px 12px;
    clear: right;
}

.entry-content img.alignleft {
    float: left;
    margin: 0 12px 12px 0;
}

.entry-content .alignright {
    float: right;
    margin: 0 0 12px 12px;
}

.entry-content .alignleft {
    float: left;
    margin: 0 12px 12px 0;
}

.entry-content .aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    clear: both;
}

/* Image captions - flexbox approach */
.entry-content figure:not(.alignleft):not(.alignright):not(.aligncenter),
.entry-content .wp-caption:not(.alignleft):not(.alignright):not(.aligncenter),
.entry-content figure.wp-block-image:not(.alignleft):not(.alignright):not(.aligncenter) {
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center !important;
    max-width: 100%;
}

/* Removed .wp-block-image DIV from above - it conflicts with centering */

.entry-content figure.alignright,
.entry-content .wp-caption.alignright,
.entry-content .wp-block-image.alignright,
.entry-content .wp-block-image:has(figure.alignright) {
    float: right;
    margin: 0 0 12px 12px;
    display: block;
    clear: right;
}

.entry-content figure.alignleft,
.entry-content .wp-caption.alignleft,
.entry-content .wp-block-image.alignleft,
.entry-content .wp-block-image:has(figure.alignleft) {
    float: left;
    margin: 0 12px 12px 0;
    display: block;
}

.entry-content figure.aligncenter,
.entry-content .wp-caption.aligncenter,
.entry-content .wp-block-image.aligncenter,
.entry-content .wp-block-image:has(figure.aligncenter) {
    display: table !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center;
    width: auto !important;
    max-width: 100%;
    clear: both;
    float: none !important;
}

/* Ensure centered figures are sized by their images, not captions */
.entry-content figure.aligncenter img {
    width: auto !important;
    max-width: 100% !important;
    display: block !important;
}

.entry-content figure.aligncenter figcaption,
.entry-content .wp-caption.aligncenter .wp-caption-text {
    display: table-caption !important;
    caption-side: bottom !important;
}

.entry-content figure img,
.entry-content .wp-caption img,
.entry-content .wp-block-image img {
    display: block !important;
    margin: 0 !important;
    float: none !important;
    max-width: 100%;
    height: auto;
}

.entry-content figcaption,
.entry-content .wp-caption-text,
.entry-content .wp-element-caption {
    display: block !important;
    font-size: 15px;
    color: #666;
    font-style: italic;
    text-align: center;
    margin-top: 5px;
    max-width: 100%;
}

/* Ensure captions don't expand centered figures beyond image width */
.entry-content figure.aligncenter figcaption,
.entry-content figure.aligncenter .wp-element-caption {
    width: 100%;
    box-sizing: border-box;
    display: table-caption !important;
    caption-side: bottom;
    word-wrap: break-word;
}

/* Center wp-block-image divs that don't have explicit left/right alignment */
.entry-content .wp-block-image:not(.alignleft):not(.alignright) {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: fit-content !important;
    max-width: 100% !important;
}

/* Force center alignment for wp-block-image divs with centered figures */
.entry-content .wp-block-image:has(> figure.aligncenter) {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
    width: fit-content !important;
    float: none !important;
    clear: both !important;
}

/* ==========================================================================
   Star Ratings
   ========================================================================== */

.star-rating {
    color: #660066;
    /* BPBS purple */
    font-size: 18px;
    letter-spacing: 0;
    display: inline-flex;
    gap: 2px;
    vertical-align: middle;
}

.star-rating .star {
    position: relative;
    display: inline-block;
    width: 1em;
    height: 1em;
    line-height: 1;
}

.star-rating .star.full {
    color: #660066;
}

.star-rating .star.empty {
    color: #ccc;
}

.star-rating .star.half .base {
    color: #ccc;
}

.star-rating .star.half .star-fill {
    position: absolute;
    left: 0;
    top: 0;
    width: 0.5em;
    overflow: hidden;
    color: #660066;
}

/* ==========================================================================
   Sidebar
   ========================================================================== */

.widget-area {
    width: 220px;
    min-width: 220px;
    max-width: 220px;
    flex-shrink: 0;
    margin-top: 0px;
    padding: 22px 10px 10px 10px;
    background: #f5f5f5;
    font-size: 12px;
    box-sizing: border-box;
}

.widget {
    margin: 0 0 15px 0;
    padding: 0;
    /* ensure header touches edges */
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.widget:first-child {
    margin-top: 0;
}

.widget:last-child {
    margin-bottom: 0;
}

.widget>h2,
.widget-title,
.widgettitle {
    display: block;
    font-size: 16px;
    margin: 0;
    padding: 10px 12px;
    background-color: rgb(245, 245, 245);
    background-image: linear-gradient(rgb(245, 245, 245) 0px, rgb(232, 232, 232) 100%);
    color: #000;
    font-weight: bold;
    text-transform: uppercase;
    border-bottom: 1px solid #ccc;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

/* Support block-based widgets: style their headings like panel headers */
.widget.widget_block h1,
.widget.widget_block h2,
.widget.widget_block h3,
.widget .wp-block-heading {
    display: block;
    margin: 0;
    padding: 10px 12px;
    background-color: rgb(245, 245, 245);
    background-image: linear-gradient(rgb(245, 245, 245) 0px, rgb(232, 232, 232) 100%);
    color: #000;
    font-weight: bold;
    text-transform: uppercase;
    border-bottom: 1px solid #ccc;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

/* Reset generic block wrappers so headers are flush */
.widget.widget_block .wp-widget-block,
.widget .wp-block-group {
    padding: 0;
}

/* Padding for common block widget contents */
.widget .wp-block-archives-list,
.widget .wp-block-categories-list,
.widget .wp-block-latest-posts__list,
.widget .wp-block-latest-comments,
.widget .wp-block-search__inside-wrapper,
.widget .wp-block-page-list,
.widget .wp-block-tag-cloud {
    padding: 12px 14px;
}


.widget>ul {
    list-style: none;
    margin: 0;
    padding: 12px 14px;
}

.widget .textwidget {
    padding: 12px 14px;
}

.widget li {
    padding: 6px 0;
    border-bottom: 1px dotted #ddd;
    font-size: 12px;
}

.widget li:last-child {
    border-bottom: none;
}

.widget li a {
    color: #333;
}

.widget li a:hover {
    color: #660066;
}

.widget li .star-rating {
    display: block;
    font-size: 10px;
}

/* More In Category Widget */
.more-in-category-widget {
    padding: 0;
}

.more-in-category-widget .widget-title {
    display: block;
    font-size: 14px;
    margin: 0;
    padding: 10px 12px;
    background-color: rgb(245, 245, 245);
    background-image: linear-gradient(rgb(245, 245, 245) 0px, rgb(232, 232, 232) 100%);
    color: #000;
    font-weight: bold;
    text-transform: uppercase;
    border-bottom: 1px solid #ccc;
}

.more-in-category-widget ul {
    list-style: disc;
    margin: 0;
    padding: 12px 14px 12px 28px;
}

.more-in-category-widget li {
    padding: 6px 0;
    border-bottom: 1px dotted #ddd;
    font-size: 14px;
}

.more-in-category-widget li:last-child {
    border-bottom: none;
}

.more-in-category-widget li a {
    color: #333;
    text-decoration: none;
}

.more-in-category-widget li a:hover {
    color: #660066;
}

.more-in-category-widget li .star-rating {
    display: inline-block;
    font-size: 14px;
    margin-left: 4px;
}

/* Connect With Us Widget */
.connect-widget {
    padding: 0;
}

.connect-widget .widget-title {
    display: block;
    font-size: 14px;
    margin: 0;
    padding: 10px 12px;
    background-color: rgb(245, 245, 245);
    background-image: linear-gradient(rgb(245, 245, 245) 0px, rgb(232, 232, 232) 100%);
    color: #000;
    font-weight: bold;
    text-transform: uppercase;
    border-bottom: 1px solid #ccc;
}

.connect-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 15px 12px;
}

.connect-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    color: #fff;
    transition: opacity 0.2s ease;
}

.connect-icon:hover {
    opacity: 0.8;
}

.connect-icon svg {
    width: 24px;
    height: 24px;
}

.connect-icon.facebook {
    background-color: #1877f2;
}

.connect-icon.twitter {
    background-color: #000;
}

.connect-icon.linkedin {
    background-color: #0a66c2;
}

.connect-icon.youtube {
    background-color: #ff0000;
}

.connect-icon.rss {
    background-color: #f26522;
}

/* Search widget in sidebar */
.widget_search .search-form {
    padding: 10px;
}

.widget_search label {
    display: block;
    font-size: 11px;
    margin-bottom: 5px;
}

.widget_search .search-field {
    width: 100%;
    padding: 4px 6px;
    border: 1px solid #ccc;
    font-size: 11px;
}

.widget_search .search-submit {
    margin-top: 5px;
    background: #660066;
    color: #fff;
    border: none;
    padding: 4px 10px;
    font-size: 11px;
    cursor: pointer;
}

/* Newsletter Widget */
.widget-newsletter {
    padding: 15px;
}

.widget-newsletter h4 {
    font-size: 14px;
    font-weight: bold;
    margin: 0 0 12px 0;
    text-transform: uppercase;
}

.widget-newsletter .form-row {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.widget-newsletter .form-row label {
    min-width: 50px;
    font-size: 12px;
    margin: 0;
}

.widget-newsletter input[type="email"],
.widget-newsletter input[type="text"] {
    flex: 1;
    padding: 4px 6px;
    border: 1px solid #660066;
    font-size: 11px;
}

.widget-newsletter .checkbox-row {
    margin: 10px 0;
}

.widget-newsletter .checkbox-row label {
    font-size: 12px;
    margin-right: 10px;
}

.widget-newsletter input[type="checkbox"] {
    accent-color: #660066;
}

.widget-newsletter button {
    background: #660066;
    color: #fff;
    border: none;
    padding: 6px 20px;
    font-size: 12px;
    cursor: pointer;
    border-radius: 3px;
}

.widget-newsletter button:hover {
    background: #550055;
}

/* ==========================================================================
   Footer
   ========================================================================== */

/* Footer Site Links Section */
.footer-site-links {
    background: #ddd;
    border-top: 3px solid #660066;
    padding: 20px 30px 25px;
    margin-bottom: 15px;
    border-radius: 8px;
}

.page-template-page-sitemap .footer-site-links {
    display: none;
}

.footer-site-links-inner {
    max-width: 1170px;
    margin: 0 auto;
}

.footer-links-title {
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    color: #333;
    margin: 0 0 15px 0;
    text-align: left;
}

.footer-links-columns {
    display: flex;
    justify-content: space-between;
}

.footer-links-column {
    flex: 1;
    text-align: left;
}

.footer-links-column h4 {
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    color: #333;
    margin: 0 0 8px 0;
}

.footer-links-column h4 a {
    color: #333;
    text-decoration: none;
}

.footer-links-column h4 a:hover {
    color: #660066;
    text-decoration: underline;
}

.footer-links-column h4:not(:first-child) {
    margin-top: 15px;
}

.footer-links-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links-column li {
    margin-bottom: 4px;
    font-size: 12px;
    line-height: 1.5;
}

.footer-links-column li a::before {
    content: "• ";
    color: #666;
}

.footer-links-column a {
    color: #555;
    text-decoration: none;
}

.footer-links-column a:hover {
    color: #660066;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .footer-links-columns {
        display: block;
    }

    .footer-links-column {
        display: block;
        margin-bottom: 20px;
        padding-right: 0;
    }
}

.site-footer {
    background-color: #fff;
    color: #999;
    padding: 20px;
    text-align: center;
    font-size: 12px;
}

/* Constrain footer contents to match body width */
.site-footer .footer-widgets,
.site-footer .site-info {
    max-width: 1170px;
    margin: 0 auto;
}


/* Remove panel chrome on footer widgets */
.site-footer .widget {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}

/* ==========================================================================
   Post Navigation
   ========================================================================== */

.post-navigation {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.post-navigation a {
    color: #660066;
}

article {
    padding: 0 0 0 15px;
}

.author-articles-link {
    margin: 30px 0 20px;
    text-align: center;
}

.author-articles-link .author-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: linear-gradient(135deg, #660066 0%, #440044 100%);
    color: #fff;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 0, 102, 0.3);
}

.author-articles-link .author-btn:hover {
    background: linear-gradient(135deg, #880088 0%, #660066 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 0, 102, 0.4);
}

.author-articles-link .author-btn:active {
    transform: translateY(0);
}

.author-articles-link .author-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.author-articles-link .arrow-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.author-articles-link .author-btn:hover .arrow-icon {
    transform: translateX(4px);
}

@media (max-width: 480px) {
    .author-articles-link .author-btn {
        width: 100%;
        justify-content: center;
        padding: 16px 20px;
        font-size: 14px;
    }
}

/* ==========================================================================
   Comments
   ========================================================================== */

.comments-area {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e0e0e0;
}

.comments-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comment-list {
    list-style: none;
    margin: 0 0 30px 0;
    padding: 0;
}

.comment {
    margin-bottom: 25px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 3px solid #e0e0e0;
}

.comment-author {
    font-weight: 700;
    color: #660066;
    margin-bottom: 8px;
}

.comment-metadata {
    font-size: 13px;
    color: #999;
    margin-bottom: 12px;
}

.comment-metadata a {
    color: #999;
}

.comment-content {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
}

.reply {
    margin-top: 12px;
}

.reply a {
    font-size: 13px;
    color: #660066;
    text-decoration: none;
    font-weight: 600;
}

.reply a:hover {
    color: #990099;
    text-decoration: underline;
}

/* Comment Form */
.comment-respond {
    margin-top: 40px;
}

.comment-reply-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comment-form {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.comment-form p {
    margin-bottom: 18px;
}

.comment-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #fff;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #660066;
    box-shadow: 0 0 0 3px rgba(102, 0, 102, 0.1);
}

.comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

.comment-form-cookies-consent {
    display: flex;
    align-items: center;
    gap: 8px;
}

.comment-form-cookies-consent input[type="checkbox"] {
    width: auto;
    margin: 0;
    accent-color: #660066;
}

.comment-form-cookies-consent label {
    margin: 0;
    font-weight: normal;
    font-size: 13px;
}

.form-submit {
    margin-bottom: 0;
}

.comment-form .submit,
.comment-form input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    background: linear-gradient(135deg, #660066 0%, #440044 100%);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: normal;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 0, 102, 0.3);
}

.comment-form .submit:hover,
.comment-form input[type="submit"]:hover {
    background: linear-gradient(135deg, #880088 0%, #660066 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 0, 102, 0.4);
}

.comment-form .submit:active,
.comment-form input[type="submit"]:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(102, 0, 102, 0.3);
}

/* Threaded comments */
.children {
    list-style: none;
    margin: 20px 0 0 30px;
    padding: 0;
}

.comment .children .comment {
    border-left-color: #660066;
}

/* Responsive comment form */
@media (max-width: 768px) {
    .comment-form {
        padding: 20px 15px;
    }

    .children {
        margin-left: 15px;
    }

    .comment {
        padding: 15px;
    }

    .comment-form .submit,
    .comment-form input[type="submit"] {
        width: 100%;
        padding: 16px 20px;
    }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
    .content-sidebar-wrap {
        flex-direction: column;
    }

    .site-main {
        padding: 15px;
    }

    .widget-area {
        width: 100%;
        max-width: 100%;
        min-width: auto;
        padding: 15px;
        box-sizing: border-box;
    }

    .widget-area .widget {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Reorder header elements: title, subtitle, author, then social icons */
    .entry-header {
        display: flex;
        flex-direction: column;
    }

    .entry-header .social-share {
        float: none;
        order: 4;
        justify-content: flex-start;
        margin-top: 10px;
    }

    .entry-header .entry-title {
        order: 1;
    }

    .entry-header .review-subtitle {
        order: 2;
    }

    .entry-header .entry-meta {
        order: 3;
    }

    .header-top {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        position: relative;
    }

    .header-right {
        display: none;
    }

    .tagline-bar {
        height: 60px;
        flex-direction: column;
        gap: 10px;
        text-align: center;
        padding: 0;
    }

    .tagline {
        display: none;
    }

    .site-search {
        width: 100%;
        padding: 12px;
        flex-direction: column;
        gap: 0;
        text-align: left;
        box-sizing: border-box;
    }

    .site-search form {
        width: 100%;
        flex-direction: row;
        gap: 4px;
        align-items: center;
        box-sizing: border-box;
    }

    .site-search label {
        display: none;
    }

    .site-search input[type="search"] {
        flex: 1;
        padding: 10px 12px;
        font-size: 14px;
        border: 1px solid #ccc;
        border-radius: 4px;
        min-width: 0;
        box-sizing: border-box;
    }

    .site-search button {
        padding: 10px 16px;
        font-size: 13px;
        flex-shrink: 0;
        white-space: nowrap;
    }

    .main-navigation ul {
        flex-direction: column;
    }

    .main-navigation a {
        border-right: none;
        border-bottom: 1px solid #555;
    }

    .main-navigation {
        position: absolute;
        top: 4px;
        left: 0;
        right: 0;
        /* height: 30px; */
        display: flex;
        align-items: flex-start;
        justify-content: flex-end;
        z-index: 1000;
    }

    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        background: #000;
        color: #fff;
        border: none;
        padding: 12px 16px;
        text-align: center;
        cursor: pointer;
        position: relative;
        height: auto;
        width: auto;
        margin-right: 10px;
    }

    /* Hide text, show hamburger icon on mobile */
    .menu-toggle-text {
        display: none;
    }

    .category-breadcrumb {
        white-space: normal;
    }

    .category-breadcrumb .published-label {
        display: none;
    }

    .hamburger-icon {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 24px;
        height: 18px;
    }

    .hamburger-bar {
        display: block;
        width: 100%;
        height: 3px;
        background-color: #fff;
        border-radius: 1px;
        transition: all 0.3s ease;
    }

    /* Hamburger animation when menu is open */
    .main-navigation.toggled .hamburger-bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .main-navigation.toggled .hamburger-bar:nth-child(2) {
        opacity: 0;
    }

    .main-navigation.toggled .hamburger-bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Hide desktop menu, show mobile menu on small screens */
    .main-navigation .desktop-menu {
        display: none !important;
    }

    .main-navigation .mobile-menu {
        display: none !important;
        list-style: none;
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        right: 0;
        width: 100%;
        background: linear-gradient(to bottom, #4a4a4a 0%, #1a1a1a 100%);
        border-top: 1px solid #666;
        border-bottom: 3px solid #000;
        flex-direction: column;
    }

    .main-navigation.toggled .mobile-menu {
        display: flex !important;
    }

    .mobile-menu li {
        border-bottom: 1px solid #555;
    }

    .mobile-menu a {
        display: block;
        padding: 12px 18px;
        color: #ccc;
        font-size: 14px;
    }

    .mobile-menu a:hover {
        background: #111;
        color: #fff;
        text-decoration: none;
    }

    /* Hide dropdowns from normal tabs on mobile */
    .category-tabs .category-dropdown-toggle {
        display: none !important;
    }

    .category-tabs .category-dropdown {
        display: none !important;
    }

    /* Mobile filter accordions above sort bar */
    .mobile-filter-accordions {
        display: block;
        margin-bottom: 12px;
    }

    .mobile-accordion {
        width: 100%;
        margin-bottom: 8px;
    }

    .mobile-accordion-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        background: #f5f5f5;
        border: 1px solid #ddd;
        padding: 12px 16px;
        text-align: left;
        font-size: 14px;
        cursor: pointer;
        border-radius: 4px;
        font-weight: 600;
        color: #333;
    }

    .mobile-accordion-toggle .dropdown-count {
        background: #660066;
        color: #fff;
        font-size: 11px;
        padding: 2px 8px;
        border-radius: 10px;
        margin-left: 8px;
    }

    .mobile-accordion-toggle .dropdown-arrow {
        margin-left: auto;
        transition: transform 0.2s ease;
    }

    .mobile-accordion-toggle:not(.closed) .dropdown-arrow {
        transform: rotate(180deg);
    }

    .mobile-accordion-menu {
        background: #fafafa;
        border: 1px solid #ddd;
        border-top: none;
        border-radius: 0 0 4px 4px;
        overflow: hidden;
    }

    .mobile-accordion-menu .accordion-item {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 12px 16px;
        border-bottom: 1px solid #eee;
        font-size: 14px;
        color: #333;
        cursor: pointer;
        transition: background 0.15s ease;
    }

    .mobile-accordion-menu .accordion-item:last-child {
        border-bottom: none;
    }

    .mobile-accordion-menu .accordion-item:hover {
        background: #f0f0f0;
    }

    .mobile-accordion-menu .accordion-item.active {
        background: #f0e6f0;
        color: #660066;
        font-weight: 600;
    }

    .mobile-accordion-menu .accordion-item input[type="checkbox"] {
        margin: 0;
        cursor: pointer;
    }

    /* Close accordion when in "closed" state */
    .category-dropdown[data-dropdown-name="reviews"].closed .category-dropdown-menu,
    .category-dropdown[data-dropdown-name="links"].closed .category-dropdown-menu {
        display: none !important;
    }
}

/* Very narrow screens */
@media (max-width: 400px) {
    .site-main {
        padding: 10px;
    }

    .main-navigation {
        /* height: 30px; */
        align-items: flex-start;
        padding-top: 2px;
        top: 0;
    }

    .section-header {
        margin-left: -10px;
        margin-right: -10px;
        padding: 6px 10px;
    }

    .section-header span {
        font-size: 14px;
    }

    .category-tabs {
        gap: 4px;
        padding: 8px 0;
    }

    .category-tab {
        padding: 4px 8px;
        font-size: 10px;
    }
}

/* ==========================================================================
   Posts List (Archive/Category pages)
   ========================================================================== */

.posts-list .post-summary {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    overflow: auto;
}

.posts-list .post-summary:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    border-color: #ccc;
}

.posts-list .post-summary:last-child {
    margin-bottom: 0;
}

/* Post thumbnail - floats to the right at top of card */
.posts-list .post-summary .post-thumbnail {
    width: 200px;
    height: 150px;
    margin-bottom: 0;
    margin-left: 15px;
    float: right;
}

.posts-list .post-summary .post-thumbnail img {
    width: 100% !important;
    height: 150px !important;
    display: block;
    border-radius: 6px;
    object-fit: cover;
    object-position: top;
}

/* Movies category - poster style */
.category-movies .posts-list .post-summary .post-thumbnail {
    width: 120px !important;
    height: 168px !important;
}

.category-movies .posts-list .post-thumbnail img {
    width: 120px !important;
    height: 168px !important;
    object-fit: cover;
    object-position: top;
    border: none;
    border-radius: 4px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
}

/* Fallback thumbnail for posts without featured images */
.posts-list .post-summary .post-thumbnail img.fallback-thumbnail {
    width: 100% !important;
    height: 150px !important;
    display: block;
    border-radius: 6px;
    object-fit: cover;
    object-position: top;
}

.category-movies .posts-list .post-thumbnail img.fallback-thumbnail {
    width: 120px !important;
    height: 168px !important;
    object-fit: cover;
    object-position: top;
    border: none;
    border-radius: 4px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
}

/* Fallback thumbnail for category template */
.preview-posts-list .post-thumbnail img.fallback-thumbnail {
    width: 120px !important;
    height: 168px !important;
    object-fit: cover;
    object-position: top;
    border-radius: 6px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2) !important;
}

.posts-list .post-type-label {
    display: inline-block;
    background: #f5f0f5;
    color: #7a4a7a;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 12px;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    border: 1px solid #e0d0e0;
}

.entry-excerpt .post-thumbnail {
    float: left;
    margin-right: 15px;
    margin-bottom: 10px;
}

.entry-excerpt .post-thumbnail img {
    max-width: 300px;
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
}

.posts-list .entry-excerpt {
    font-size: 14px;
    color: #444;
}

.posts-list .entry-title {
    margin: 0 0 5px;
    font-size: 18px;
    font-weight: 600;
}

.posts-list .entry-title a {
    color: #660066;
}

.posts-list .entry-title a:hover {
    text-decoration: underline;
}

.posts-list .entry-meta {
    font-size: 11px;
    color: #666;
    margin-bottom: 5px;
}

.posts-list .entry-excerpt p {
    margin: 0;
}

.page-header {
    margin-bottom: 20px;
}

.page-header .page-title {
    margin: 0;
    font-size: 14px;
    color: #fff;
    background-color: #1a1a1a;
    padding: 12px 18px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 8px 8px 0 0;
}

/* Posts navigation */
.posts-navigation {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
}

.posts-navigation a {
    color: #660066;
}

aside#secondary {
    margin-top: 2px;
    background-color: white;
    background: white;
}

#primary {
    margin-top: 2px;
    background-color: white;
    background: white;
    border: 0px;
}

/* ==========================================================================
   Ad Placeholders
   ========================================================================== */

.ad-placeholder {
    margin: 0;
}

.ad-placeholder-inner {
    background: transparent;
    border: 1px solid #e0e0e0;
    padding: 0;
    text-align: center;
    /* Default size - overridden by specific ad types */
}

.ad-label {
    display: none;
}

.ad-slot {
    background: #f5f5f5;
    margin: 0;
    display: block;
    color: #bbb;
    font-size: 11px;
    /* Default size - overridden by specific ad types */
}

.ad-slot ins.adsbygoogle {
    display: block !important;
}

.ad-slot::before {
    content: "";
}

/* Desktop floating ad - floats right alongside content */
.ad-desktop-float {
    float: right;
    margin: 0 0 15px 15px;
    width: 300px;
    position: relative;
    z-index: 1;
}

.ad-desktop-float .ad-placeholder-inner {
    width: 300px;
    height: 250px;
}

.ad-desktop-float .ad-slot {
    width: 300px;
    height: 250px;
    max-height: 250px;
}

.ad-desktop-float .ad-slot ins.adsbygoogle {
    max-width: 300px !important;
    max-height: 250px !important;
}

/* Masthead top ad - 728x90 leaderboard at top of page */
/* Masthead top ad - 728x90 leaderboard at top of page */
.ad-masthead-top {
    flex: 0 0 auto;
    margin-left: auto;
    padding: 0;
    background: transparent;
}

.ad-masthead-top .ad-slot {
    display: inline-block;
    width: 728px;
    height: 90px;
}

.header-right {
    padding-right: 5px;
    flex: 0 0 100%;
    margin-right: 5px;
    text-align: right;
    font-size: 14px;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 5px;
}

/* Mobile ads - hidden on desktop by default */
.ad-mobile-top,
.ad-mobile-mid {
    display: none;
}

.ad-mobile-top .ad-placeholder-inner,
.ad-mobile-mid .ad-placeholder-inner {
    width: 300px;
    height: 250px;
}

.ad-mobile-top .ad-slot,
.ad-mobile-mid .ad-slot {
    width: 300px;
    height: 250px;
}

/* Listing inline ad - for 728x90 leaderboard */
.ad-listing-inline {
    margin: 20px auto;
    text-align: center;
}

.ad-listing-inline .ad-placeholder-inner {
    width: 100%;
    max-width: 728px;
    height: 90px;
    margin: 0 auto;
}

.ad-listing-inline .ad-slot {
    width: 100%;
    max-width: 728px;
    height: 90px;
    margin: 0 auto;
}

/* Responsive ad behavior */
@media (max-width: 900px) {

    /* Hide desktop float ad on smaller screens */
    .ad-desktop-float {
        display: none;
    }

    /* Masthead ad adjusts on tablets/mobile */
    .ad-masthead-top {
        flex: 0 0 100%;
        text-align: center;
        margin-top: 10px;
    }

    .ad-masthead-top .ad-slot {
        max-width: 100%;
        overflow: hidden;
    }

    /* Show mobile ads */
    .ad-mobile-top,
    .ad-mobile-mid {
        display: block;
    }

    .ad-mobile-top {
        margin-bottom: 10px;
    }

    .ad-mobile-mid {
        margin: 10px 0;
    }

    /* Mobile ads stay at 300x250 */
    .ad-mobile-top .ad-slot,
    .ad-mobile-mid .ad-slot {
        width: 300px;
        max-width: 100%;
        height: 250px;
    }

    /* Listing ad adapts on mobile */
    .ad-listing-inline .ad-slot {
        height: 90px;
    }
}

@media (max-width: 480px) {
    .ad-placeholder-inner {
        padding: 0;
    }

    /* Hide masthead on very small screens (too wide) */
    .ad-masthead-top {
        display: none;
    }

    /* Scale down ads proportionally on very small screens if needed */
    .ad-mobile-top .ad-slot,
    .ad-mobile-mid .ad-slot {
        max-width: 100%;
        height: auto;
        min-height: 200px;
    }
}

/* Movie card */
.movie-info-card {
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 15px;
    margin: 20px 0;
    background: #fff;
}

.movie-info-card table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.movie-info-card table tr {
    border-bottom: 1px solid #eee;
}

.movie-info-card table tr:last-child {
    border-bottom: none;
}

.movie-info-card table td {
    padding: 8px 5px;
    vertical-align: top;
}

.movie-info-card table td:first-child {
    font-weight: bold;
    color: #333;
    width: 140px;
    text-transform: uppercase;
    font-size: 12px;
}

/* Deals Disclaimer */
.deals-disclaimer {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    margin: 25px 0;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.deals-disclaimer p {
    margin: 0;
}

.deals-disclaimer strong {
    color: #333;
}

/* ==========================================================================
   Infinite Scroll
   ========================================================================== */

.infinite-scroll-status {
    text-align: center;
    padding: 20px 10px;
    background: #f9f9f9;
    border-top: 1px solid #eee;
    margin-top: 20px;
}

.infinite-scroll-loader {
    color: #666;
    margin-bottom: 10px;
}

.infinite-scroll-loader span {
    display: inline-block;
    padding: 10px 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.infinite-scroll-loader span::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    border: 2px solid #660066;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    vertical-align: middle;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.load-more-btn {
    display: inline-block;
    padding: 12px 30px;
    background: #660066;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

.load-more-btn:hover {
    background: #880088;
}

.load-more-btn:active {
    background: #440044;
}

.infinite-scroll-end {
    padding: 10px;
    color: #999;
    font-style: italic;
    font-size: 14px;
}

.infinite-scroll-info {
    margin-top: 10px;
    font-size: 12px;
    color: #888;
}

.page-marker {
    height: 0;
    overflow: hidden;
}

/* ==========================================================================
   Listing Filters
   ========================================================================== */

.listing-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    padding: 12px 15px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin-bottom: 20px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-group label {
    font-size: 14px;
    font-weight: 600;
    color: #555;
    white-space: nowrap;
}

.filter-select {
    padding: 6px 30px 6px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><path fill="%23666" d="M6 8L1 3h10z"/></svg>') no-repeat right 10px center;
    font-size: 14px;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    min-width: 140px;
}

.filter-select:hover {
    border-color: #999;
}

.filter-select:focus {
    outline: none;
    border-color: #660066;
    box-shadow: 0 0 0 2px rgba(102, 0, 102, 0.1);
}

.clear-filters {
    font-size: 12px;
    color: #660066;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 3px;
    background: #fff;
    border: 1px solid #660066;
}

.clear-filters:hover {
    background: #660066;
    color: #fff;
}

@media (max-width: 600px) {
    .listing-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group {
        justify-content: space-between;
    }

    .filter-select {
        flex: 1;
        min-width: 0;
    }
}

/* ==========================================================================
   Author Bio Pages
   ========================================================================== */

.author-bio .entry-header {
    margin-bottom: 15px;
}

.author-bio .entry-title {
    margin: 0 0 5px 0;
}

.author-bio .entry-title .tagline {
    font-weight: normal;
    font-style: italic;
    color: #666;
}

.author-bio .author-title {
    margin: 0;
    font-size: 14px;
    color: #660066;
    font-style: italic;
}

/* Profile images with captions */
.author-bio .entry-content img {
    box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
}

.author-bio .entry-content .wp-caption,
.author-bio .entry-content figure.wp-caption {
    display: table;
    float: right;
    margin: 0 0 12px 12px;
}

.author-bio .entry-content .wp-caption.alignright,
.author-bio .entry-content figure.wp-caption.alignright {
    float: right;
    margin: 0 0 12px 12px;
}

.author-bio .entry-content .wp-caption.alignleft,
.author-bio .entry-content figure.wp-caption.alignleft {
    float: left;
    margin: 0 12px 12px 0;
}

.author-bio .entry-content .wp-caption img,
.author-bio .entry-content figure.wp-caption img {
    display: block;
    margin: 0 !important;
    float: none !important;
}

.author-bio .entry-content .wp-caption-text,
.author-bio .entry-content figure.wp-caption figcaption {
    display: table-caption;
    caption-side: bottom;
    font-size: 12px;
    color: #666;
    font-style: italic;
    margin-top: 8px;
    text-align: center;
}

.author-bio .author-quicklinks {
    margin: 20px 0;
    padding: 0;
    list-style: none;
}

.author-bio .author-quicklinks li {
    margin-bottom: 8px;
}

.author-bio .author-quicklinks a {
    color: #660066;
}

.author-bio .current-system {
    margin: 10px 0 20px 20px;
}

.author-bio .current-system li {
    margin-bottom: 4px;
}

/* ==========================================================================
   Message Boxes (use with Gutenberg Group block + CSS class)
   ========================================================================== */

.message-box {
    border: 1px solid #660066;
    padding: 15px 20px;
    margin: 20px 0;
    background: #faf5fa;
    border-radius: 4px;
}

.message-box p:last-child {
    margin-bottom: 0;
}

/* Variations - add as additional CSS class */
.message-box.info {
    border-color: #0066cc;
    background: #f0f7ff;
}

.message-box.warning {
    border-color: #cc6600;
    background: #fff8f0;
}

.message-box.success {
    border-color: #339933;
    background: #f0fff0;
}

.message-box.neutral {
    border-color: #999;
    background: #f9f9f9;
}

/* ==========================================================================
   SEO Pagination Fallback (noscript)
   ========================================================================== */

.pagination-fallback {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.pagination-fallback .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
}

.pagination-fallback .page-numbers {
    display: inline-block;
    padding: 8px 12px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 3px;
    color: #333;
    text-decoration: none;
}

.pagination-fallback .page-numbers:hover {
    background: #e0e0e0;
}

.pagination-fallback .page-numbers.current {
    background: #660066;
    color: #fff;
    border-color: #660066;
}

.pagination-fallback .page-numbers.prev,
.pagination-fallback .page-numbers.next {
    font-weight: bold;
}

/* Materials Table Styling */
.materials-table {
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    border: none !important;
}

.materials-table *,
.materials-table figure {
    border: none !important;
}

.materials-table.alignright {
    max-width: 400px;
}

.materials-table table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    font-size: 13px;
}

.materials-table tbody tr:first-child {
    background: linear-gradient(135deg, #660066 0%, #550055 100%);
}

.materials-table tbody tr:first-child td {
    color: #fff;
    padding: 10px 13px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.3px;
    line-height: 1.3;
}

.materials-table tbody tr:last-child td {
    border-bottom: none !important;
}

.materials-table tbody tr {
    transition: background-color 0.2s ease;
}

.materials-table tbody tr:not(:last-child):not(:first-child) {
    box-shadow: 0 1px 0 0 #e0e0e0;
}

.materials-table tbody tr:nth-child(even) {
    background: #f8f8f8;
}

.materials-table tbody tr:hover {
    background: #f0f0f0;
}

.materials-table tbody tr:first-child:hover {
    background: linear-gradient(135deg, #660066 0%, #550055 100%);
}

.materials-table tbody td {
    padding: 8px 12px;
    vertical-align: top;
    line-height: 1.5;
    color: #555;
}

/* Responsive design for materials tables */
@media (max-width: 768px) {
    .materials-table.alignright {
        float: none;
        max-width: 100% !important;
        margin: 20px 0;
    }

    .materials-table table {
        font-size: 12px;
    }

    .materials-table tbody td {
        padding: 6px 8px;
    }
}

/* DIY Series Sub-Navigation */
.entry-header .diy-series-nav {
    background: linear-gradient(135deg, #f8f8f8 0%, #f0f0f0 100%);
    border-radius: 8px;
    padding: 10px 12px;
    margin: 15px 0 0 0;
    border-left: 3px solid #660066;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    display: inline-block;
}

.entry-header .diy-series-nav h4 {
    display: none;
}

.entry-header .diy-series-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row;
    gap: 8px;
}

.entry-header .diy-series-nav li {
    margin: 0;
}

.entry-header .diy-series-nav a {
    display: block;
    padding: 8px 12px;
    background: #fff;
    color: #660066;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    font-size: 13px;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    text-align: center;
    white-space: nowrap;
}

.entry-header .diy-series-nav a:hover {
    background: #660066;
    color: #fff;
    border-color: #660066;
}

.entry-header .diy-series-nav a.current {
    background: #660066;
    color: #fff;
    font-weight: 600;
}

/* Manufacturer Contact Cards */
.wp-block-html .manufacturer-cards,
.entry-content .manufacturer-cards,
.manufacturer-cards {
    display: block !important;
    margin: 25px 0 !important;
    clear: both !important;
}

.wp-block-html .manufacturer-card,
.entry-content .manufacturer-card,
.manufacturer-card {
    background: #fff;
    border-radius: 8px;
    padding: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-top: 3px solid #660066;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: block !important;
    float: none !important;
    width: auto !important;
    max-width: 350px !important;
    margin-bottom: 20px !important;
}

.manufacturer-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.manufacturer-card h4 {
    margin: 0 0 12px 0;
    color: #660066;
    font-size: 16px;
    font-weight: 700;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0f0f0;
}

.manufacturer-card .address {
    font-style: normal;
    line-height: 1.5;
    color: #555;
    margin-bottom: 10px;
    font-size: 14px;
}

.manufacturer-card .contact-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.manufacturer-card .contact-info div {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #666;
}

.manufacturer-card .contact-info strong {
    min-width: 75px;
    color: #333;
    font-weight: 600;
    font-size: 12px;
}

.manufacturer-card .contact-info a {
    color: #660066;
    text-decoration: none;
}

.manufacturer-card .contact-info a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .entry-header .diy-series-nav {
        display: block;
        margin: 15px 0 0 0;
    }

    .entry-header .diy-series-nav ul {
        flex-direction: column;
    }

    .entry-header .diy-series-nav a {
        display: block;
        text-align: center;
    }
}