@media (min-width: 601px) {
    .splide__slide {
        position: relative !important;
        height: 350px !important;
        min-height: 350px !important;
        max-height: 350px !important;
        width: 100% !important;
        display: block !important;
        background: #222 !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .splide__slide .vce-grid-item {
        position: absolute !important;
        top: 0; left: 0; right: 0; bottom: 0;
        width: 100% !important;
        height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-end !important;
        align-items: center !important;
        background: transparent !important;
        z-index: 2 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .splide__slide .vce-grid-image {
        position: absolute !important;
        top: 0; left: 0; right: 0; bottom: 0;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        z-index: 1 !important;
        margin: 0 !important;
        padding: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        background: #222 !important;
    }
    .splide__slide .vce-grid-text {
        position: relative !important;
        z-index: 3 !important;
        width: 100% !important;
        background: none !important;
        padding-bottom: 1em !important;
        margin: 0 !important;
    }
    .splide__slide .vce-featured-info {
        background: rgba(34,34,34,0.7) !important;
        padding: 0.5em 1em !important;
        border-radius: 0.5em !important;
        margin-bottom: 0.5em !important;
        width: auto !important;
        max-width: 90% !important;
        color: #fff !important;
    }
}
@media (min-width: 601px) {
    .splide__slide {
        position: relative;
        height: 350px;
        display: flex;
        align-items: stretch;
        justify-content: center;
        background: #222 !important;
        overflow: hidden;
    }
    .splide__slide .vce-grid-item {
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        align-items: center;
        background: transparent;
        position: relative;
    }
    .splide__slide .vce-grid-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 1;
    }
    .splide__slide .vce-grid-text {
        position: relative;
        z-index: 2;
        width: 100%;
        background: none;
        padding-bottom: 1em;
    }
    .splide__slide .vce-featured-info {
        background: rgba(34,34,34,0.7);
        padding: 0.5em 1em;
        border-radius: 0.5em;
        margin-bottom: 0.5em;
    }
}
@media (min-width: 601px) {
        .splide__slide {
            margin: 0 !important;
            padding: 0 !important;
            background: #222 !important;
            box-sizing: border-box;
        }
    .splide__track {
        background: #222 !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    .splide__list {
        gap: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}
/* Remove gray gaps between Splide slides and track */
.splide__track,
.splide__slide {
    background: #222 !important;
}
@media (min-width: 601px) {
    .splide__slide .vce-grid-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        border-radius: 0;
        box-shadow: none;
    }
    .splide__slide {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 350px;
        background: #222;
        position: relative;
    }
    .splide__slide .vce-grid-item {
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        align-items: center;
        background: transparent;
        box-shadow: none;
    }
}
/* Force all footer text to white, including paragraphs and copyright */
.site-footer,
.site-footer * {
    color: #fff !important;
}
/* Additional CSS for HTML Theme - Override WordPress specific styles */

/* TYPOGRAPHY FIXES - Make text readable */
body {
    font-size: 16px !important;
    line-height: 1.6 !important;
    color: #333 !important;
}

.entry-content {
    font-size: 16px !important;
    line-height: 1.7 !important;
}

.entry-content p {
    font-size: 16px !important;
    line-height: 1.7 !important;
    margin-bottom: 20px !important;
}

.entry-content h2 {
    font-size: 28px !important;
    margin-bottom: 20px !important;
}

.entry-content h3 {
    font-size: 24px !important;
    margin-bottom: 15px !important;
}

.entry-content h4 {
    font-size: 20px !important;
    margin-bottom: 15px !important;
}

.entry-content ul, .entry-content ol {
    font-size: 16px !important;
    line-height: 1.7 !important;
    margin-bottom: 20px !important;
}

.entry-content li {
    margin-bottom: 8px !important;
}

/* Article Title */
.entry-title {
    font-size: 36px !important;
    line-height: 1.3 !important;
    margin-bottom: 20px !important;
}

/* Article Meta */
.entry-meta {
    font-size: 14px !important;
    margin-bottom: 30px !important;
}

/* Featured Area Styles */
.vce-featured-area {
    background: #f8f9fa;
    padding: 30px 0;
    margin-bottom: 40px;
    min-height: 540px !important; /* Ensure container is tall enough */
    width: 100% !important; /* Full width */
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: none !important;
}

/* Force the featured grid container to be tall enough */
.vce-featured-grid {
    min-height: 500px !important;
    height: auto !important;
    width: 100% !important; /* Full width carousel */
    max-width: none !important;
}

/* Owl Carousel for Featured Grid - All Items Same Size */
.vce-featured-grid.owl-carousel {
    display: block;
    position: relative;
}

.vce-featured-grid .owl-stage {
    display: flex !important;
    align-items: stretch !important;
}

.vce-featured-grid .owl-stage-outer {
    overflow: hidden !important;
}

.vce-featured-grid .owl-item {
    display: inline-block !important;
}

/* Override main.css grid item sizing - force bigger size! */
.vce-featured-grid .vce-grid-item {
    position: relative;
    width: 634px !important; /* Force the original big grid width */
    height: 500px !important; /* Increased height for more prominence */
    min-height: 500px !important; /* Force minimum height */
    max-height: none !important; /* Remove any height limits */
    flex: 0 0 634px !important; /* Override the flex sizing */
    display: block !important;
    float: none !important; /* Prevent any float that would stack items */
    clear: none !important; /* Prevent clearing that would stack items */
}

/* Force Owl Carousel items to respect our sizing */
.vce-featured-grid.owl-carousel .owl-item {
    height: 500px !important;
    min-height: 500px !important;
    max-height: none !important;
}

/* Force the Owl stage to respect height */
.vce-featured-grid.owl-carousel .owl-stage {
    height: 500px !important;
    min-height: 500px !important;
}

/* Consistent image sizing - match original vce-fa-big-grid (634x433) */
.vce-featured-grid .vce-grid-image,
.vce-featured-grid .size-vce-fa-grid,
.vce-featured-grid .vce-featured-image {
    width: 100% !important;
    height: 500px !important; /* Increased height to match container */
    object-fit: cover !important;
    display: block !important;
}

.vce-grid-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 30px 20px 20px 20px;
}

.vce-grid-text .vce-featured-title a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    line-height: 1.4;
    font-weight: 600;
}

.vce-grid-text .vce-featured-title a:hover {
    color: #007cba;
}

.vce-grid-text .vce-featured-section a {
    background: #007cba;
    color: white;
    padding: 4px 8px;
    font-size: 12px;
    text-transform: uppercase;
    text-decoration: none;
    margin-bottom: 10px;
    display: inline-block;
}

.vce-grid-text .entry-meta {
    margin-top: 10px;
    font-size: 14px;
    opacity: 0.9;
}

/* Responsive grid for featured items */
@media (max-width: 768px) {
    .vce-featured-grid .vce-grid-item {
        height: 300px !important; /* Larger mobile size to match proportions */
        width: 100% !important; /* Full width on mobile */
        flex: 0 0 100% !important; /* Override flex on mobile */
    }
    
    .vce-featured-grid .vce-grid-image,
    .vce-featured-grid .size-vce-fa-grid,
    .vce-featured-grid .vce-featured-image {
        height: 300px !important; /* Larger mobile size */
    }
    
    .vce-grid-text {
        padding: 20px 15px 15px 15px;
    }
    
    .vce-grid-text .vce-featured-title a {
        font-size: 16px;
    }
}

.vce-grid-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 20px;
}

.vce-grid-text .vce-featured-title a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    line-height: 1.4;
}

.vce-grid-text .vce-featured-title a:hover {
    color: #007cba;
}

.vce-section-title {
    margin: 40px 0 30px 0;
    padding-bottom: 15px;
    border-bottom: 3px solid #007cba;
}

.vce-section-title h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

/* Responsive grid for featured items */
@media (max-width: 768px) {
    .vce-featured-grid {
        grid-template-columns: 1fr;
    }
    
    .vce-featured-area {
        padding: 20px 0;
    }
    
    .vce-grid-text {
        padding: 15px;
    }
}

/* Ensure proper layout without WordPress body classes */

/* Ensure proper layout without WordPress body classes */
body {
    margin: 0;
    padding: 0;
    font-family: 'IBM Plex Sans', 'IBM Plex Sans SC', 'IBM Plex Sans TC', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
}

/* Fix container layout */
.container {
    margin: 0 auto;
    max-width: 1140px;
    padding: 0 15px;
}

/* Fix main content and sidebar layout */
.site-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.vce-main-content {
    flex: 1;
    min-width: 0; /* Prevent flex item overflow */
    width: calc(100% - 330px);
}

.sidebar {
    width: 300px;
    flex-shrink: 0;
}

/* Fix article layout structure - this is crucial */
.vce-lay-a {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #f0f0f0;
}

.vce-lay-a:last-child {
    border-bottom: none;
}

/* Image should come first in layout-a */
.vce-lay-a .meta-image {
    margin-bottom: 20px;
}

.vce-lay-a .meta-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

/* Header styling */
.vce-lay-a .entry-header {
    margin-bottom: 15px;
}

.vce-lay-a .meta-category {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.vce-lay-a .meta-category a {
    color: #007cba;
    text-decoration: none;
}

.vce-lay-a .entry-title {
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
}

.vce-lay-a .entry-title a {
    color: #333;
    text-decoration: none;
}

.vce-lay-a .entry-title a:hover {
    color: #007cba;
}

.vce-lay-a .entry-meta {
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
}

.vce-lay-a .entry-meta span {
    margin-right: 15px;
}

.vce-lay-a .entry-meta a {
    color: #666;
    text-decoration: none;
}

.vce-lay-a .entry-meta a:hover {
    color: #007cba;
}

/* Content styling */
.vce-lay-a .entry-content {
    margin-bottom: 15px;
    font-size: 15px;
    line-height: 1.6;
    color: #555;
}

.vce-lay-a .entry-content p {
    margin: 0;
}

/* Read more button */
.vce-read-more {
    display: inline-block;
    color: #007cba;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vce-read-more:hover {
    color: #005a87;
    text-decoration: underline;
}

/* Pagination fixes */
#vce-pagination {
    text-align: center;
    margin: 40px 0;
    clear: both;
}

#vce-pagination .pagination-wrap {
    display: inline-block;
}

#vce-pagination .page-numbers {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 2px;
    text-decoration: none;
    border: 1px solid #ddd;
    color: #333;
    background: #fff;
    border-radius: 3px;
}

#vce-pagination .page-numbers:hover,
#vce-pagination .page-numbers.current {
    background: #007cba;
    color: white;
    border-color: #007cba;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .site-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .vce-main-content {
        width: 100%;
        padding: 0;
    }
    
    .sidebar {
        width: 100%;
        margin-top: 30px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .vce-lay-a .entry-title {
        font-size: 20px;
    }
}

/* Widget styling improvements */
.widget {
    margin-bottom: 30px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 4px;
}

.widget-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #007cba;
    color: #333;
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.widget li:last-child {
    border-bottom: none;
}

.widget li a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
}

.widget li a:hover {
    color: #007cba;
}

.widget .post-date {
    display: block;
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}

/* Search form improvements */
.search-form {
    position: relative;
    margin-bottom: 20px;
}

.search-form .search-field {
    width: 100%;
    padding: 10px 45px 10px 15px;
    border: 1px solid #ddd;
    border-radius: 3px;
    box-sizing: border-box;
    font-size: 14px;
}

.search-form .search-submit {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: #007cba;
    border: none;
    color: white;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 3px;
}

.search-form .search-submit:hover {
    background: #005a87;
}

/* Header fixes */
.main-header {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1000;
}

.header-main-area {
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-branding .vce-logo {
    max-height: 60px;
    width: auto;
}

.header-bottom-wrapper {
    background: #f8f9fa;
    border-top: 1px solid #eee;
}

.main-navigation {
    padding: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    display: block;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-menu a:hover,
.nav-menu .current-menu-item > a {
    color: #007cba;
    background: #c97c36;
}

/* Sub-menu styling */
.nav-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    min-width: 200px;
    display: none;
    flex-direction: column;
    z-index: 1001;
}

.nav-menu .menu-item-has-children:hover .sub-menu {
    display: flex;
}

.nav-menu .sub-menu a {
    padding: 10px 20px;
    border-bottom: 1px solid #f0f0f0;
    text-transform: none;
    font-weight: 400;
}

.nav-menu .sub-menu a:hover {
    background: #f8f9fa;
}

/* Mobile navigation toggle */
.vce-res-nav {
    display: none;
}

@media (max-width: 768px) {
    .vce-res-nav {
        display: block;
    }
    
    .nav-menu {
        display: none;
    }
    
    .header-main-area {
        padding: 15px 0;
    }
}

/* Footer styling */
/* Footer styling */
/* Footer styling */
.site-footer {
    color: #fff !important;
    background: #2c3e50;
    margin-top: 50px;
}

/* Footer widget titles */
.site-footer .widget-title {
    color: #fff !important;
    border-bottom-color: #007cba;
}

/* Footer widget content */
.site-footer .widget {
    color: #fff !important;
    background: transparent;
}

/* Footer links */
.site-footer a {
    color: #fff !important;
}

.site-footer a:hover {
    color: #007cba;
}

.site-info {
    color: #fff !important;
    background: #34495e;
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
/* Force widget content and copyright text to white */
.site-footer .widget-content,
.site-footer .copyright-text,
.site-footer .widget p {
    color: #fff !important;
}
}

/* Social icons */
.social-icons {
    display: flex;
    gap: 10px;
}

.social-icon {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: #007cba;
    color: white;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: #005a87;
    transform: translateY(-2px);
}

/* Force Font Awesome font-family for all icons in the footer */
.site-footer .fa, .site-footer [class^="fa-"], .site-footer [class*=" fa-"] {
    font-family: 'FontAwesome' !important;
    font-style: normal;
    font-weight: normal;
    speak: none;
    display: inline-block;
    text-decoration: inherit;
    text-align: center;
}

/* Force Font Awesome font-family for all icons */
.fa, [class^="fa-"], [class*=" fa-"] {
    font-family: 'FontAwesome' !important;
    font-style: normal;
    font-weight: normal;
    speak: none;
    display: inline-block;
    text-decoration: inherit;
    text-align: center;
}

/* Desktop-only Splide adjustments: 3 slides, centered, no gap */
@media (min-width: 1024px) {
  .splide__slide {
    width: 33.3333% !important;
    flex: 0 0 33.3333% !important;
    /* Each slide takes up 1/3 of the carousel width */
  }
  .splide__list {
    gap: 0 !important;
  }
}
