/*
Theme Name: Labora
Theme URI: https://pendari.com/labora
Description: A modern WordPress theme with Tailwind CSS and Alpine.js
Version: 1.0.0
Author: Pendari
Author URI: https://pendari.com
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: labora
Requires at least: 6.0
Requires PHP: 8.3
*/ 

/* CSS Variables */
:root {
    /* Colors */
    --color-primary: #011f5b;
    --color-secondary: #990000;
    --color-accent: #48a2de;
    --color-text: #222222;
    --color-text-light: #e0e0e0;
    --color-link: #990000;
    --color-menu-text: #222222;
    --color-menu-current-text: #990000;
    --color-menu-hover-text: #000000;
    --color-menu-bg: #00000000;
    --color-menu-current-bg: #00000000;
    --color-menu-hover-bg: #48a2de;
    --color-button-text: #ffffff;
    --color-button-text-hover: #ffffff;
    --color-button-bg: #011f5b;
    --color-button-bg-hover: #48a2de;
    --color-bg-light: #f3f3f3;
    --color-bg-dark: #303030;
    --body-bg-light: #f9f9f9;
    --body-bg-dark: #202020;

    /* Layout */
    --header-height: 80px;
    --logo-height: 50px;
    --logo-width: auto;
}

/* Base styles */
body {
    margin: 0;
    padding: 0;
    font-family: var(--body-font, 'Inter'), sans-serif;
    color: var(--color-text);
    background-color: var(--body-bg-light);
}

body.dark-mode {
    color: var(--color-text-light);
    background-color: var(--body-bg-dark);
}

/* Layout */
.site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-content {
    flex: 1 0 auto;
    padding-top: var(--header-height);
}

/* Container */
#content .container,
header .container,
.title-bar .container,
.footer-widgets .container,
.subfooter .container {
    max-width: var(--container-max-width, 1400px); /* Use CSS variable */
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
    width: 100%; /* Ensure it takes full width up to max-width */
}

.vc_row {
    padding-top: 70px;
    padding-bottom: 50px;
}
.vc_row .vc_row {
    padding-top: 0;
    padding-bottom: 0;
}
body.home .vc_row.slider-row {
    padding-top: 0;
    padding-bottom: 0;
}

.vc_row .vc_column-inner {
    padding-top: 0 !important;
}

body.layout-boxed .container {
    max-width: 1200px;
}

body.home #content > .container {
    padding-top: 0;
    padding-bottom: 0;
}

#primary > .container {
    padding-top: 50px;
    padding-bottom: 70px;
}

/* Content styles */
.text-center {
    text-align: center;
}

.info-boxes.vc_row.vc_row-flex {
    display: flex;
    flex-wrap: nowrap;
    gap: 1.5rem;
}
.info-boxes > .wpb_column {
    padding: 1.5rem;
    background-color: #f0f0f0;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

#TB_caption {
    height: auto !important;
}
#TB_closeWindowButton {
    position: relative !important;
    right: -1em;
}

/* Hero */
.banner-content {
    color: #fff;
}
.banner-content h1,
.hero-banner h1 {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    font-size: 48px;
    line-height: 1.2;
    color: #fff;
}
.banner-content p,
.hero-banner p {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    color: #fff;
}
.hero-banner {
    padding: 120px 30px;
}
.hero-content > .vc_column-inner {
    padding: 30px !important;
    background-color: #00000033;
}

/* Header */
.site-header {
    position: relative;
    background-color: transparent !important;
    transition: all 0.1s ease;
    z-index: 50;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}
body.layout-boxed .site-header {
    max-width: var(--container-max-width, 1400px);
    padding-left: 0.5em;
    padding-right: 0.5em;
}
body.layout-boxed .site-header.is-sticky {
    max-width: 100%;
    padding-left: 1em;
    padding-right: 1em;
}

.site-header::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: var(--header-bg-opacity, 1);
    xtransition: opacity 0.3s ease, background-color 0.3s ease;
}

.header-white {
    background-color: #ffffff;
}

.header-light {
    background-color: var(--color-bg-light);
}

.header-dark {
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
}

.header-black {
    background-color: #000000;
    color: var(--color-text-light);
}

/* Logo */
.logo-wrapper {
    height: 100%;
    padding: 0.5rem 0;
    flex-shrink: 0;
    max-width: 200px;
}

.custom-logo-link {
    display: block;
    height: 100%;
}

.custom-logo {
    height: 100%;
    width: auto;
    max-height: calc(var(--header-height) - 1rem);
    object-fit: contain;
}

/* Navigation */
.main-navigation {
    height: 100%;
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-header .container > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 2rem;
}

/* Menu Toggle Button */
.menu-toggle {
    display: none;
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-menu-text);
}

.menu-toggle svg {
    width: 24px;
    height: 24px;
}

/* Primary Menu */
.primary-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
    height: 100%;
}

.primary-menu li {
    height: 100%;
    display: flex;
    align-items: center;
}

.primary-menu a {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    color: var(--color-menu-text);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    background-color: var(--color-menu-bg);
    height: 100%;
}

.primary-menu a:hover {
    color: var(--color-menu-hover-text);
    background-color: var(--color-menu-hover-bg);
}

.primary-menu .current-menu-item > a {
    color: var(--color-menu-current-text);
    background-color: var(--color-menu-current-bg);
}

/* Buttons */
.wp-element-button,
.wp-block-button__link {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    color: var(--color-button-text) !important;
    background-color: var(--color-button-bg);
    border: none;
    border-radius: 0.25rem;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.wp-element-button:hover,
.wp-block-button__link:hover {
    color: var(--color-button-text-hover) !important;
    background-color: var(--color-button-bg-hover);
}

/* Links */
a {
    color: var(--color-link);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-accent);
}

/* Typography */
.site-content h1, 
.site-content h2, 
.site-content h3, 
.site-content h4, 
.site-content h5, 
.site-content h6 {
    font-family: var(--heading-font, 'Inter'), sans-serif;
    color: var(--color-text);
    margin: 0 0 1rem;
}

.dark-mode .site-content h1,
.dark-mode .site-content h2,
.dark-mode .site-content h3,
.dark-mode .site-content h4,
.dark-mode .site-content h5,
.dark-mode .site-content h6 {
    color: var(--color-text-light);
}

.site-content h1 { font-size: var(--h1-size, 48px); }
.site-content h2 { font-size: var(--h2-size, 36px); }
.site-content h3 { font-size: var(--h3-size, 24px); }
.site-content h4 { font-size: var(--h4-size, 20px); }

/* Admin Bar Adjustments */
.admin-bar .site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }
}

@media screen and (max-width: 600px) {
    .admin-bar .site-header.sticky {
        top: 0;
    }
}

/* Mobile styles */
@media (max-width: 991px) {
    .menu-toggle {
        display: block;
        order: 3;
        padding: 0.5rem;
        margin-left: 0.5rem;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 1010;
    }

    .menu-toggle svg {
        width: 24px;
        height: 24px;
        display: block;
    }

    .menu-toggle .sr-only {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .main-navigation {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
        padding: 0;
        z-index: 1000;
    }

    .main-navigation.is-active {
        display: block;
    }

    .admin-bar .main-navigation {
        top: 0;
    }

    .primary-menu {
        position: fixed;
        top: var(--header-height);
        right: 0;
        width: 300px;
        max-height: calc(100vh - var(--header-height));
        background-color: #ffffff;
        flex-direction: column;
        gap: 0;
        margin: 0;
        padding: 1rem 0;
        overflow-y: auto;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 1001;
    }

    .is-active .primary-menu {
        transform: translateX(0);
    }

    .admin-bar .primary-menu {
        top: calc(var(--header-height) + 32px);
        max-height: calc(100vh - var(--header-height) - 32px);
    }

    @media screen and (max-width: 782px) {
        .admin-bar .primary-menu {
            top: calc(var(--header-height) + 46px);
            max-height: calc(100vh - var(--header-height) - 46px);
        }
    }

    .header-dark .primary-menu,
    .header-black .primary-menu {
        background-color: var(--color-bg-dark);
    }

    .primary-menu li {
        width: 100%;
        height: auto;
        margin: 0;
        padding: 0;
    }

    .primary-menu a {
        width: 100%;
        padding: 1rem;
        height: auto;
        justify-content: flex-start;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    .header-dark .primary-menu a,
    .header-black .primary-menu a {
        border-bottom-color: rgba(255, 255, 255, 0.1);
    }

    .primary-menu li:last-child a {
        border-bottom: none;
    }

    /* Mobile search */
    .search-toggle {
        order: 2;
        padding: 0.5rem;
        margin: 0 0.5rem 0 auto;
    }

    .header-search {
        left: 0;
        right: 0;
        width: auto;
        margin-top: 0;
        border-radius: 0;
    }

    .search-form {
        max-width: 600px;
        margin: 0 auto;
    }

    .header-dark .header-search,
    .header-black .header-search {
        background-color: var(--color-bg-dark);
    }

    .search-form {
        width: 100%;
    }
}

/* Title Bar */
.title-bar {
    position: relative;
    padding-top: calc(var(--header-height) + 3rem);
    padding-bottom: 5rem;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--color-primary);
    color: #ffffff;
    margin-bottom: 0;
}

/* Admin Bar Adjustments */
.admin-bar .title-bar {
    xpadding-top: calc(var(--header-height) + 32px + 3rem);
}
@media screen and (max-width: 782px) {
    .admin-bar .title-bar {
        xpadding-top: calc(var(--header-height) + 46px + 3rem);
    }
}

.title-bar .absolute {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
}

.title-bar h1 {
    position: relative;
    z-index: 1;
    margin: 0;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    font-size: 2.5rem;
    line-height: 1.2;
}

.title-bar #breadcrumbs {
    margin: 0;
    color: #ffffff;
    font-size: 0.875rem;
}

.title-bar #breadcrumbs a {
    color: #ffffff;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.title-bar #breadcrumbs a:hover {
    opacity: 1;
}

/* Search Styles */
.search-toggle {
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-menu-text);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    margin-left: 1rem;
}

.search-toggle:hover {
    color: var(--color-menu-hover-text);
}

.search-toggle svg {
    width: 20px;
    height: 20px;
}

/* Search Form */
.search-form {
    display: grid;
    grid-template-columns: 1fr 48px;
    gap: 0.5rem;
    align-items: stretch;
    width: 100%;
}

.search-form label {
    margin: 0;
    width: 100%;
}

.search-field {
    width: 100%;
    height: 48px;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.25rem;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--color-text);
    background-color: #ffffff;
}

.search-field:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 2px rgba(72, 162, 222, 0.2);
}

.search-submit {
    width: 48px;
    height: 48px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-button-bg);
    color: var(--color-button-text);
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-submit:hover {
    background-color: var(--color-button-bg-hover);
}

.search-submit svg {
    width: 20px;
    height: 20px;
}

/* Header Search Container */
.header-search {
    position: absolute;
    top: 100%;
    right: 0;
    width: 300px;
    padding: 1rem;
    background-color: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 1002;
    border-radius: 0.25rem;
    margin-top: 0.5rem;
}

/* Dark Theme Adjustments */
.header-dark .search-field,
.header-black .search-field {
    background-color: var(--color-bg-dark);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--color-text-light);
}

.header-dark .header-search,
.header-black .header-search {
    background-color: var(--color-bg-dark);
}

/* Mobile Styles */
@media (max-width: 991px) {
    .search-toggle {
        order: 2;
        padding: 0.5rem;
        margin: 0 0.5rem 0 auto;
    }

    .header-search {
        left: -400%;
        right: 0;
        margin-top: 0;
        border-radius: 0;
    }

    .search-form {
        max-width: 600px;
        margin: 0 auto;
    }
}

[x-cloak] {
    display: none !important;
}

/* Search Results */
.search-results {
    margin-bottom: 2rem;
}

.search-results .content-wrapper {
    width: 100%;
}

.search-results .content-wrapper > .grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1.5rem;
    width: 100%;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .search-results .content-wrapper > .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .search-results .content-wrapper > .grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.search-results article {
    margin: 0;
    padding: 1.5rem;
    border: none;
    background-color: #ffffff;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.search-results article .entry-header {
    margin-bottom: 1rem;
}

.search-results article .flex {
    align-items: flex-start;
}

.search-results article .block {
    width: 50px;
    height: 50px;
}

.search-results article img {
    width: 50px;
    height: 50px;
    object-fit: cover;
}

.search-results article .site-icon {
    xwidth: 32px;
    xheight: 32px;
    xmargin: 9px;
}

.search-results article .entry-summary {
    flex-grow: 1;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.search-results article .entry-footer {
    margin-top: auto;
}

.search-results article:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.search-results .entry-title {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    line-height: 1.2;
}

.search-results .entry-title a {
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.2s ease;
}

.search-results .entry-title a:hover {
    color: var(--color-accent);
}

.search-results .entry-summary p {
    margin: 0;
}

.search-no-results .page-content {
    text-align: center;
    padding: 3rem 0;
    max-width: 600px;
    margin: 0 auto;
}

.search-no-results .search-form {
    max-width: 500px;
    margin: 2rem auto;
}

/* Pagination */
.navigation.pagination {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.navigation.pagination .nav-links {
    display: flex;
    gap: 0.5rem;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.5rem;
    border-radius: 0.25rem;
    background-color: #ffffff;
    color: var(--color-text);
    text-decoration: none;
    transition: all 0.2s ease;
}

.page-numbers.current {
    background-color: var(--color-accent);
    color: #ffffff;
}

.page-numbers:hover:not(.current) {
    background-color: var(--color-bg-light);
}

/* Footer */
.site-footer {
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
}

.footer-widgets {
    padding: 3rem 0;
}

.footer-widgets .widget {
    margin-bottom: 2rem;
}

.footer-widgets .widget:last-child {
    margin-bottom: 0;
}

.footer-widgets .widget-title {
    color: #ffffff;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-widgets a {
    color: var(--color-text-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-widgets a:hover {
    color: #ffffff;
}

.footer-logo img {
    max-width: 200px;
    height: auto;
    margin-bottom: 1rem;
}

.subfooter {
    text-align: center;
    border-top: 1px solid #ffffff22;
}

.subfooter .container {
    padding: 1rem 0;
}

.subfooter a {
    color: var(--color-text-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

.subfooter a:hover {
    color: #ffffff;
}

@media (max-width: 767px) {
    .footer-widgets {
        padding: 2rem 0;
    }

    .footer-widgets .widget {
        margin-bottom: 1.5rem;
    }
}

/* Prose Styles */
.prose {
    max-width: 65ch;
}

.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6,
.prose p,
.prose ul,
.prose ol {
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.prose > *:last-child {
    margin-bottom: 0;
}

.prose ul,
.prose ol {
    padding-left: 1.5em;
}

.prose ul {
    list-style-type: disc;
}

.prose ol {
    list-style-type: decimal;
}

.prose li {
    margin-bottom: 0.5em;
}

.prose li > ul,
.prose li > ol {
    margin: 0.5em 0;
}

@media (max-width: 1023px) {
    .content-area > div[style*="grid-template-columns"] {
        grid-template-columns: 100% !important;
    }
}

/* Primary Menu Dropdown */
.primary-menu .menu-item-has-children {
    position: relative;
}

.primary-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 100;
    padding: 0.5rem 0;
}

.primary-menu .menu-item-has-children:hover > .sub-menu {
    display: block;
}

.primary-menu .sub-menu li {
    display: block;
    padding: 0;
}

.primary-menu .sub-menu a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--color-menu-text);
    transition: all 0.2s ease;
}

.primary-menu .sub-menu a:hover {
    background-color: var(--color-menu-hover-bg);
    color: var(--color-menu-hover-text);
}

/* Post Grid Styles */
.news-card .vc_grid-item-mini,
.news-grid-item .vc_grid-item-mini {
    background: #fff !important;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-card .vc_grid-item-mini:hover,
.news-grid-item .vc_grid-item-mini:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}


.news-card .vc_gitem-zone-a,
.news-grid-item .vc_gitem-zone-a {
    background-size: cover !important;
    background-position: center !important;
}

.news-card .vc_gitem-zone-b,
.news-grid-item .vc_gitem-zone-c {
    background-color: #fff !important;
    padding: 1.5rem !important;
}

.news-card .vc_gitem-post-data-source-post_title h3,
.news-grid-item .vc_gitem-post-data-source-post_title h3 {
    font-size: 1.5rem;
    line-height: 1.3;
    margin: 0 0 0.75rem;
}

.news-card .vc_gitem-post-data-source-post_title a,
.news-grid-item .vc_gitem-post-data-source-post_title a {
    color: var(--color-text);
    text-decoration: none;
}

.news-card .vc_gitem-post-data-source-post_title a:hover,
.news-grid-item .vc_gitem-post-data-source-post_title a:hover {
    color: var(--color-primary);
}

.news-card .vc_gitem-post-data-source-post_date,
.news-grid-item .vc_gitem-post-data-source-post_date {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0.75rem;
}

.news-card .vc_gitem-post-data-source-post_excerpt,
.news-grid-item .vc_gitem-post-data-source-post_excerpt {
    margin-bottom: 1.5rem;
}

.news-card .vc_btn3.vc_btn3-color-primary,
.news-grid-item .vc_btn3.vc_btn3-color-primary,
.news-list-item .vc_btn3.vc_btn3-color-primary {
    background-color: var(--color-button-bg) !important;
    color: var(--color-button-text) !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 4px;
    font-weight: 500;
}

.news-card .vc_btn3.vc_btn3-color-primary:hover,
.news-grid-item .vc_btn3.vc_btn3-color-primary:hover,
.news-list-item .vc_btn3.vc_btn3-color-primary:hover {
    background-color: var(--color-button-bg-hover) !important;
}

/* List Layout */
.news-list-item {
    display: flex !important;
    background: #fff !important;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 2rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    padding: 0 !important;
}
.news-list-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.news-list-item .vc_grid-item-mini {
    display: flex;
}

.news-list-item .vc_gitem-animated-block {
    flex: 0 0 33%;
}

.news-list-item .vc_gitem-zone-a {
    background-size: cover !important;
    background-position: center !important;
    height: 100% !important;
}

.news-list-item .vc_gitem-zone-c {
    flex: 1;
    background-color: #fff !important;
    padding: 2rem !important;
}

.news-list-item .vc_gitem-post-data-source-post_title h3 {
    font-size: 1.75rem;
    line-height: 1.3;
    margin: 0 0 1rem;
}

.news-list-item .vc_gitem-post-data-source-post_date {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 1rem;
}

.news-list-item .vc_gitem-post-data-source-post_excerpt {
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .news-list-item {
        flex-direction: column;
    }
    
    .news-list-item .vc_gitem-animated-block {
        flex: none;
        height: 200px;
    }
    
    .news-list-item .vc_gitem-zone-b {
        padding: 1.5rem !important;
    }
}

/* Custom News Grid */
.vc_grid-item.vc_custom_news_grid {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.vc_grid-item.vc_custom_news_grid:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.vc_grid-item.vc_custom_news_grid .vc_gitem-zone-a {
    background-size: cover;
    background-position: center;
}

.vc_grid-item.vc_custom_news_grid .vc_gitem-zone-c {
    background-color: transparent !important;
}

.vc_grid-item.vc_custom_news_grid .vc_gitem-post-data-source-post_title h3 {
    font-size: 1.25rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.vc_grid-item.vc_custom_news_grid .vc_gitem-post-data-source-post_date {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0.75rem;
}

.vc_grid-item.vc_custom_news_grid .vc_gitem-post-data-source-post_excerpt {
    margin-bottom: 1rem;
    color: var(--color-text);
}

.vc_grid-item.vc_custom_news_grid .vc_btn3 {
    padding: 0.5rem 1rem !important;
    font-size: 0.875rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

/* Grid Template Styles */
x.vc_grid-item-mini {
    background-color: #fff;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

x.vc_grid-item-mini:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

x.vc_gitem-zone-c {
    background-color: #fff;
}

/* Adjust grid spacing */
x.vc_grid.vc_row {
    margin-left: -1rem;
    margin-right: -1rem;
}

x.vc_grid.vc_row .vc_grid-item {
    padding-left: 1rem;
    padding-right: 1rem;
    padding-bottom: 2rem;
}

/* Button Styles */
.vc_btn3.vc_btn3-color-primary,
.vc_general.vc_btn3.vc_btn3-color-primary {
    background-color: var(--color-button-bg) !important;
    color: var(--color-button-text) !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 4px;
    font-weight: 500;
}

.vc_btn3.vc_btn3-color-primary:hover,
.vc_general.vc_btn3.vc_btn3-color-primary:hover {
    background-color: var(--color-button-bg-hover) !important;
}

/* Outline Button Styles */
.vc_btn3.vc_btn3-style-outline.vc_btn3-color-primary {
    background-color: #ffffff !important;
    color: #000 !important;
    font-weight: 600 !important;
    border-color: var(--color-button-bg) !important;
    border-width: 3px !important;
}

.vc_btn3.vc_btn3-style-outline.vc_btn3-color-primary:hover {
    background-color: var(--color-button-bg) !important;
    color: #fff !important;
    border-color: var(--color-button-bg) !important;
}

/*--------------------------------------------------------------
# Site Header
--------------------------------------------------------------*/
.site-header {
    /* Basic header styles */
    height: var(--header-height);
    transition: all 0.3s ease;
}

.site-header::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: var(--header-bg-opacity, 1);
    transition: opacity 0.3s ease, background-color 0.3s ease;
}

/* Sticky Header Styles */
.site-header.is-sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Adjustments for admin bar WHEN STICKY */
.admin-bar .site-header.is-sticky {
    top: 32px;
}
@media screen and (max-width: 782px) {
    .admin-bar .site-header.is-sticky {
        top: 46px;
    }
}

/* Header Background Color Classes */
.site-header.header-white::before {
    background-color: #ffffff;
}
.site-header.header-white .main-navigation a,
.site-header.header-white .search-toggle,
.site-header.header-white .menu-toggle,
.site-header.header-white .logo-wrapper a:not(.custom-logo-link) {
    color: var(--color-menu-text, #222222);
}
.site-header.header-white .search-toggle svg,
.site-header.header-white .menu-toggle svg {
    stroke: var(--color-menu-text, #222222);
}


.site-header.header-light::before {
    background-color: var(--color-bg-light, #f3f3f3);
}
.site-header.header-light .main-navigation a,
.site-header.header-light .search-toggle,
.site-header.header-light .menu-toggle,
.site-header.header-light .logo-wrapper a:not(.custom-logo-link) {
    color: var(--color-menu-text, #222222);
}
.site-header.header-light .search-toggle svg,
.site-header.header-light .menu-toggle svg {
    stroke: var(--color-menu-text, #222222);
}


.site-header.header-dark::before {
    background-color: var(--color-bg-dark, #303030);
}
.site-header.header-dark .main-navigation a,
.site-header.header-dark .search-toggle,
.site-header.header-dark .menu-toggle,
.site-header.header-dark .logo-wrapper a:not(.custom-logo-link) {
    color: var(--color-text-light, #e0e0e0);
}
.site-header.header-dark .search-toggle svg,
.site-header.header-dark .menu-toggle svg {
    stroke: var(--color-text-light, #e0e0e0);
}


.site-header.header-black::before {
    background-color: #000000;
}
.site-header.header-black .main-navigation a,
.site-header.header-black .search-toggle,
.site-header.header-black .menu-toggle,
.site-header.header-black .logo-wrapper a:not(.custom-logo-link) {
    color: var(--color-text-light, #e0e0e0);
}
.site-header.header-black .search-toggle svg,
.site-header.header-black .menu-toggle svg {
    stroke: var(--color-text-light, #e0e0e0);
}

/* Style for custom background */
.site-header.header-custom::before {
    background-color: var(--header-custom-bg-color, #ffffff);
}
.site-header.header-custom .main-navigation a,
.site-header.header-custom .search-toggle,
.site-header.header-custom .menu-toggle,
.site-header.header-custom .logo-wrapper a:not(.custom-logo-link) {
    color: var(--color-menu-text, #222222);
}
.site-header.header-custom .search-toggle svg,
.site-header.header-custom .menu-toggle svg {
    stroke: var(--color-menu-text, #222222);
}

/* Restore mobile adjustments if they were removed */
@media (max-width: 991px) {
    .title-bar {
        padding-top: calc(var(--header-height) + 2rem);
        padding-bottom: 2rem;
    }

    .title-bar h1 {
        font-size: 2rem;
    }
}

/* Default #page styles (implicitly wide) */
#page {
    background-color: transparent;
    width: 100%; 
}

body.dark-mode #page {
    background-color: var(--color-bg-dark);
}

/* Boxed Layout Styles */
body.layout-boxed #page {
    max-width: var(--container-max-width, 1400px);
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); 
}

body.layout-boxed #page #content > .container {
    padding-left: 2em;
    padding-right: 2em;
}

/* Optional: Ensure full-width elements can still break out if needed */
/* WPBakery Stretch Row support might already handle this */
/* body.layout-boxed #page .vc_row[data-vc-full-width="true"] { ... } */

/* End Dark Mode Specific Styles --- */

/* People Grid Styles */
.pendari_people_grid_item {

}

.pendari_people_grid_item .item-inner,
.pendari-layout-grid .vc_grid-item-mini {
    background-color: #fff;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
    border: none; /* No border */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); /* Subtle base shadow */
}

.pendari_people_grid_item .item-inner:hover,
.pendari-layout-grid .vc_grid-item-mini:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Hover shadow */
    transform: translateY(-2px);
}

.pendari_people_grid_item .info,
.pendari-layout-grid .vc_gitem-zone-c {
    background-color: #fff;
    padding: 1rem !important;
    padding-bottom: 0 !important;
    border: none !important;
}

/* Remove bottom margin from title if it's the last element in its column */
.pendari-layout-grid .vc_gitem-col > :last-child {
    margin-bottom: .5em !important;
}

/* People grid title: target margin AND padding */
.pendari_people_grid_item .info > :last-child {
    margin-bottom: 1em !important;
    padding-bottom: 0 !important; /* Remove padding */
}

body.dark-mode .pendari_people_grid_item .item-inner,
body.dark-mode .pendari-layout-grid .vc_grid-item-mini,
body.dark-mode .pendari_people_grid_item .info,
body.dark-mode .pendari-layout-grid .vc_gitem-zone-c {
    background-color: var(--body-bg-dark);
}

/* Dark Mode Shadow Overrides for Grid Items */
body.dark-mode .pendari_people_grid_item .item-inner,
body.dark-mode .pendari-layout-grid .vc_grid-item-mini {
    /* Subtle light shadow for dark backgrounds */
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.08);
}

body.dark-mode .pendari_people_grid_item .item-inner:hover,
body.dark-mode .pendari-layout-grid .vc_grid-item-mini:hover {
    /* Slightly stronger light shadow on hover */
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.15);
    /* Keep the transform from light mode */
    transform: translateY(-2px);
}
