/*
Theme Name: CyberBless Newsletter
Theme URI: https://cyberbless.com/
Description: A clean, newsletter-focused WordPress theme based on cinematico functionality with category-based blog layout. Features a clean design inspired by modern newsletter layouts without requiring any page builder.
Author: CyberBless
Author URI: https://sblock.cc
Version: 1.0.0
Requires at least: 5.5
Tested up to: 6.5
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: cyberbless-newsletter
Tags: blog, news, newsletter, entertainment, one-column, two-columns, grid-layout, custom-colors, custom-header, custom-menu, custom-logo, featured-images, full-width-template, post-formats, sticky-post, theme-options, threaded-comments, translation-ready, footer-widgets
*/

/* ========================================
   Reset & Base Styles
======================================== */

html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    font-family: sans-serif;
}

body {
    margin: 0;
    background-color: #fff;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

/* ========================================
   Typography
======================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Niramit', sans-serif;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 1rem 0;
}

h1 { font-size: 2.44em; }
h2 { font-size: 1.95em; }
h3 { font-size: 1.56em; }
h4 { font-size: 1.25em; }
h5 { font-size: 1em; }
h6 { font-size: 0.8em; }

p {
    margin: 0 0 1.5rem 0;
}

a {
    color: #0073aa;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover, a:focus {
    color: #229fd8;
    outline: 0;
}

/* ========================================
   Layout Structure
======================================== */

.site {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-header {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 999;
}

.site-main {
    flex: 1;
    /* padding: 2rem 0; */
}

.site-footer {
    background: #444;
    color: #fff;
    padding: 2rem 0 1rem;
    margin-top: auto;
}

.container {
    max-width: 80%;
    margin: 0 auto;
    padding: 0 20px;
}

.tf_vd_lazy{
    height: 100%;
}

/* ========================================
   Header Styles
======================================== */

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.site-branding {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
}

.site-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0;
}

.site-logo a {
    color: inherit;
}

.site-description {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    font-style: italic;
}

.custom-logo-link img {
    max-height: 60px;
    width: auto;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: 2px solid #333;
    padding: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    color: #333;
    font-size: 1.2rem;
}

.menu-toggle:hover {
    background: #333;
    color: #fff;
}

.main-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 2rem;
}

.main-navigation a {
    color: #333;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.main-navigation a:hover,
.main-navigation a:focus {
    color: #0073aa;
}

/* Page Header */
.page-header {
    background: #f9f9f9;
    padding: 2rem 0;
    border-bottom: 1px solid #eee;
}

.page-title {
    margin: 0;
    font-size: 2rem;
    color: #333;
}

/* ========================================
   Categories Grid for Blog Page
======================================== */

.categories-grid-section {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-bottom: 1rem;
    padding: 2rem 0 3em 0;
    background: #f8f9fa;
}

.categories-grid-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 3rem;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

.category-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 250px;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.category-card-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: inherit;
    height: 100%;
    position: relative;
    z-index: 2;
}

/* Overlay for better text readability on background images */
.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card[style*="background-image"]::before {
    opacity: 1;
}

.category-card:hover::before {
    opacity: 0.6;
}

.category-card-content {
    text-align: left;
    padding: 1.5rem;
    max-width: 100%;
    position: relative;
    z-index: 3;
}

.category-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* White text for cards with background images */
.category-card[style*="background-image"] .category-card-title {
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
}

.category-card:hover .category-card-title {
    color: #0073aa;
}

.category-card[style*="background-image"]:hover .category-card-title {
    color: #fff;
}

.category-card-count {
    font-size: 0.9rem;
    color: #0073aa;
    font-weight: 500;
    margin-bottom: 1rem;
}

.category-card[style*="background-image"] .category-card-count {
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
}

.category-card-description {
    color: #666;
    line-height: 1.4;
    margin-bottom: 0;
    font-size: 0.9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.category-card[style*="background-image"] .category-card-description {
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
}

/* Categories Grid Responsive */
@media (max-width: 1200px) {
    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .categories-grid-section {
        padding: 3rem 0;
        margin-bottom: 2rem;
    }
    
    .categories-grid-section .container {
        padding: 0 1rem;
    }
    
    .categories-grid-title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .category-card {
        height: 200px;
    }
    
    .category-card-content {
        padding: 1rem;
    }
    
    .category-card-title {
        font-size: 1.1rem;
    }


}

@media (max-width: 480px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .category-card {
        height: 180px;
    }
}

/* ========================================
   Front Page Content
======================================== */

.front-page-content {
    margin-top: 3rem;
    margin-bottom: 2rem;
}

.front-page-content .entry-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.front-page-content .entry-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0;
    line-height: 1.2;
}

.front-page-content .entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    /* max-width: 800px; */
    margin: 0 auto;
}

.front-page-content .entry-content h2,
.front-page-content .entry-content h3,
.front-page-content .entry-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #333;
}

.front-page-content .entry-content p {
    margin-bottom: 1.5rem;
}

.front-page-content .entry-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.front-page-content .edit-link a {
    color: #0073aa;
    text-decoration: none;
    font-size: 0.9rem;
}

.front-page-content .edit-link a:hover {
    color: #229fd8;
}

/* Front Page Content Responsive */
@media (max-width: 768px) {
    .front-page-content {
        margin-top: 2rem;
    }
    
    .front-page-content .entry-title {
        font-size: 2rem;
    }
    
    .front-page-content .entry-content {
        font-size: 1rem;
        padding: 0 1rem;
    }
}

/* ========================================
   Blog Hero Section
======================================== */

.blog-hero-section {
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.blog-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    max-width: 100%;
    align-items: stretch; /* Ensure all columns stretch to same height */
}

/* First Column - 4 posts vertically */
.blog-hero-column-1 {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    height: 100%; /* Take full height of grid row */
}

/* Second Column - 5th post */
.blog-hero-column-2 {
    display: flex;
    flex-direction: column;
    height: 100%; /* Take full height of grid row */
}

/* Third Column - 6th post */
.blog-hero-column-3 {
    display: flex;
    flex-direction: column;
    height: 100%; /* Take full height of grid row */
}

/* Small posts in first column */
.blog-hero-post-small {
    display: flex;
    gap: 1rem;
    background: #fff;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.blog-hero-post-small:hover {
    transform: translateY(-2px);
}

.blog-hero-post-small .blog-hero-thumbnail {
    flex-shrink: 0;
    width: 120px;
    height: 80px;
    overflow: hidden;
    border-radius: 4px;
}

.blog-hero-post-small .blog-hero-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-hero-post-small:hover .blog-hero-thumbnail img {
    transform: scale(1.05);
}

.blog-hero-post-small .blog-hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
} 

.blog-hero-post-small .entry-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    height: 75px;
}

.blog-hero-post-small .entry-title a {
    color: #333;
    text-decoration: none;

}

.blog-hero-post-small .entry-title a:hover {
    color: #0073aa;
}

.blog-hero-post-small .entry-meta {
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 0.5rem;
    height: 40px;
  display: block;
}

.blog-hero-post-small .entry-summary {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
    margin-top: auto;
}

/* Large posts in second column */
.blog-hero-post-large {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%; /* Fill available height in column */
}

.blog-hero-post-large:hover {
    transform: translateY(-5px);
}

.blog-hero-post-large .blog-hero-thumbnail {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.blog-hero-post-large .blog-hero-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-hero-post-large:hover .blog-hero-thumbnail img {
    transform: scale(1.05);
}

.blog-hero-post-large .blog-hero-content {
    padding: 1.5rem;
    flex: 1; /* Expand to fill remaining space */
    display: flex;
    flex-direction: column;
}

.blog-hero-post-large .entry-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    height: 100px;
}

.blog-hero-post-large .entry-title a {
    color: #333;
    text-decoration: none;
}

.blog-hero-post-large .entry-title a:hover {
    color: #0073aa;
}

.blog-hero-post-large .entry-meta {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 1rem;
}

.blog-hero-post-large .entry-summary {
    color: #666;
    line-height: 1.6;
    flex: 1; /* Use remaining space for summary */
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    max-height: 330px;
}

.blog-hero-post-large .entry-summary .excerpt-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0;
    position: relative;
}

.blog-hero-post-large .entry-summary .excerpt-text p {
    margin: 0;
    line-height: 1.6;
}

/* Create a fade effect at the bottom if text overflows */
.blog-hero-post-large .entry-summary .excerpt-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2rem;
    background: linear-gradient(transparent, #fff);
    pointer-events: none;
}

.blog-hero-post-large .entry-summary .read-more-link {
    margin-top: auto; /* This pushes the link to the bottom */
    align-self: flex-start;
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.75rem 0 0 0;
    border-top: 1px solid #eee;
    transition: color 0.3s ease;
    display: block;
    width: 100%;
    flex-shrink: 0; /* Prevent the link from shrinking */
}

.blog-hero-post-large .entry-summary .read-more-link:hover {
    color: #229fd8;
}

/* Blog Hero Responsive */
@media (max-width: 1200px) {
    .blog-hero-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
    
    .blog-hero-column-3 {
        grid-column: 1 / -1;
    }
}

@media (max-width: 1024px) {
    .blog-hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .blog-hero-column-3 {
        grid-column: auto;
    }
    
    .blog-hero-post-large .blog-hero-thumbnail {
        height: 180px;
    }
}

@media (max-width: 768px) {
    .blog-hero-section {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .blog-hero-post-small {
        flex-direction: column;
        gap: 1rem;
    }
    
    .blog-hero-post-small .blog-hero-thumbnail {
        width: 100%;
        height: 150px;
    }
    
    .blog-hero-post-large .blog-hero-thumbnail {
        height: 160px;
    }
    
    .blog-hero-post-large .blog-hero-content {
        padding: 1rem;
    }
    
    .blog-hero-post-large .entry-title {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .blog-hero-section {
        padding: 1rem;
    }
    
    .blog-hero-grid {
        gap: 1.5rem;
    }
    
    .blog-hero-column-1 {
        gap: 1rem;
    }
}

/* ========================================
   Blog Section Titles
======================================== */

.first-posts-section,
.remaining-posts-section {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #0073aa;
}

/* ========================================
   Blog Layout - Categories in Rows
======================================== */

.category-section {
    margin-bottom: 3rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 2rem;
}

.category-section:last-child {
    border-bottom: none;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #0073aa;
}

.category-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.category-link {
    color: #0073aa;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
}

.category-link:hover {
    color: #229fd8;
}

.category-posts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* ========================================
   Post Cards
======================================== */

.post-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.post-thumbnail {
    position: relative;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-content {
    padding: 1.5rem;
}

.post-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.post-title a {
    color: #333;
}

.post-title a:hover {
    color: #0073aa;
}

.post-meta {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 1rem;
}

.post-meta a {
    color: #666;
}

.post-meta a:hover {
    color: #0073aa;
}

.post-excerpt {
    color: #666;
    line-height: 1.6;
}

/* ========================================
   Sidebar
======================================== */

.sidebar {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 8px;
}

.widget {
    margin-bottom: 2rem;
}

.widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #333;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 0.5rem;
}

.widget ul {
    list-style: none;
    padding: 0;
}

.widget li {
    margin-bottom: 0.5rem;
}

.widget a {
    color: #666;
}

.widget a:hover {
    color: #0073aa;
}

/* ========================================
   Footer
======================================== */

.site-footer .container {
    text-align: center;
}

.footer-info {
    margin-bottom: 1rem;
}

.footer-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.footer-menu a {
    color: #ccc;
}

.footer-menu a:hover {
    color: #fff;
}

.copyright {
    font-size: 0.9rem;
    color: #ccc;
}

/* ========================================
   Single Post Styles
======================================== */

.single-post-content {
    max-width: 800px;
    margin: 0 auto;
}

.single-post .entry-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.single-post .entry-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.single-post .entry-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.single-post .entry-meta > * {
    margin-right: 1rem;
}

.single-post .post-thumbnail {
    margin-bottom: 2rem;
    text-align: center;
}

.single-post .post-thumbnail img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.single-post .entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.single-post .entry-content p {
    margin-bottom: 1.5rem;
}

.single-post .entry-content h2,
.single-post .entry-content h3,
.single-post .entry-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.single-post .entry-footer {
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.tags-links {
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.tags-title {
    font-weight: 600;
    color: #333;
}

/* Post Navigation */
.post-navigation {
    display: flex;
    justify-content: space-between;
    padding: 2rem 0;
}

.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 2rem;
}

.post-navigation a {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background: #f9f9f9;
    border-radius: 12px;
    text-decoration: none;
    border: 1px solid #eee;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 120px;
    height: 120px;
}

.post-navigation a:hover {
    background: #fff;
    border-color: #0073aa;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 115, 170, 0.1);
}

.post-navigation .nav-previous {
    text-align: left;
}

.post-navigation .nav-previous .nav-subtitle {
    left: 3rem; /* Account for arrow space */
}

.post-navigation .nav-next {
    text-align: right;
    justify-content: flex-end;
}

.post-navigation .nav-next .nav-subtitle {
    right: 3rem; /* Account for arrow space */
    left: auto;
}

.nav-arrow {
    font-size: 1.5rem;
    font-weight: bold;
    color: #0073aa;
    transition: transform 0.3s ease;
}

.nav-arrow-left {
    margin-right: 1rem;
}

.nav-arrow-right {
    margin-left: 1rem;
}

.post-navigation a:hover .nav-arrow-left {
    transform: translateX(-3px);
}

.post-navigation a:hover .nav-arrow-right {
    transform: translateX(3px);
}

.nav-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.nav-subtitle {
    display: block;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.5rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: absolute;
    top: 1rem;
    left: 0;
    right: 0;
}

.nav-title {
    display: block;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
    font-size: 1rem;
    margin-top: 0.25rem;
}

/* Author Info */
.author-info {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.author-avatar img {
    border-radius: 50%;
    width: 80px;
    height: 80px;
}

.author-description {
    flex: 1;
}

.author-title {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.author-bio {
    color: #666;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.author-link {
    color: #0073aa;
    font-weight: 500;
}

/* Page Links */
.page-links {
    margin: 2rem 0;
    text-align: center;
}

.page-links a,
.page-links > span {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 4px;
    text-decoration: none;
}

.page-links a:hover {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

/* Comments */
.comments-area {
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.comments-title {
    margin-bottom: 2rem;
    font-size: 1.5rem;
    color: #333;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.comment-list .comment {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #0073aa;
}

.comment-list .children {
    list-style: none;
    margin-top: 1.5rem;
    margin-left: 2rem;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.comment-author img {
    border-radius: 50%;
    width: 60px;
    height: 60px;
}

.comment-meta {
    flex: 1;
}

.comment-meta .fn {
    font-weight: 600;
    font-style: normal;
    color: #333;
    font-size: 1.1rem;
}

.comment-metadata {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.25rem;
}

.comment-metadata a {
    color: #666;
}

.comment-content {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.comment-awaiting-moderation {
    color: #0073aa;
    font-style: italic;
    padding: 0.5rem;
    background: #e7f3ff;
    border-radius: 4px;
    display: block;
    margin-bottom: 1rem;
}

.reply {
    text-align: right;
}

.comment-reply-link {
    color: #0073aa;
    font-size: 0.9rem;
    text-decoration: none;
    padding: 0.5rem 1rem;
    background: #fff;
    border: 1px solid #0073aa;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.comment-reply-link:hover {
    background: #0073aa;
    color: #fff;
}

/* Comment Form */
.comment-form {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.comment-reply-title {
    margin-bottom: 1.5rem;
    color: #333;
}

.comment-form p {
    margin-bottom: 1rem;
}

.comment-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #0073aa;
}

.comment-form .required {
    color: #e74c3c;
}

.comment-form .form-submit {
    margin-top: 1rem;
}

.comment-form .submit {
    background: #0073aa;
    color: #fff;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.comment-form .submit:hover {
    background: #229fd8;
}

/* Comment Navigation */
.comment-navigation {
    margin: 2rem 0;
    text-align: center;
}

.comment-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.comment-navigation a {
    padding: 0.5rem 1rem;
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.comment-navigation a:hover {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

/* Search Form */
.search-form {
    margin-bottom: 2rem;
}

.search-form-wrapper {
    display: flex;
    max-width: 400px;
    margin: 0 auto;
}

.search-field {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #eee;
    border-right: none;
    border-radius: 25px 0 0 25px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-field:focus {
    border-color: #0073aa;
}

.search-submit {
    padding: 0.75rem 1.5rem;
    background: #0073aa;
    color: #fff;
    border: 2px solid #0073aa;
    border-radius: 0 25px 25px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-submit:hover {
    background: #229fd8;
    border-color: #229fd8;
}

.search-icon {
    font-size: 1rem;
}

/* Search Results Styling */
.search-suggestions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.search-suggestions h3 {
    grid-column: 1 / -1;
    margin-bottom: 1rem;
    color: #333;
}

.search-suggestions h4 {
    color: #333;
    margin-bottom: 1rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

.search-suggestions ul {
    list-style: none;
    padding: 0;
}

.search-suggestions li {
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f5f5f5;
}

.search-suggestions li:last-child {
    border-bottom: none;
}

.search-suggestions .post-date {
    display: block;
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.25rem;
}

/* No Results/404 Styling */
.error-404-widgets,
.no-results,
.no-posts {
    text-align: center;
    padding: 3rem 0;
}

.error-404-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    text-align: left;
}

.read-more-link {
    color: #0073aa;
    font-weight: 500;
    text-decoration: none;
    font-size: 0.9rem;
}

.read-more-link:hover {
    color: #229fd8;
}

/* Posts Grid for Archive Pages */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.posts-grid .post-card {
    height: fit-content;
}

/* Pagination */
.pagination-wrapper {
    text-align: center;
    margin: 3rem 0;
}

.page-numbers {
    display: inline-block;
    padding: 0.75rem 1rem;
    margin: 0 0.25rem;
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.page-numbers:hover,
.page-numbers.current {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

/* ========================================
   Responsive Design
======================================== */

@media (max-width: 768px) {
    /* Post Navigation Responsive */
    .post-navigation {
        gap: 1rem;
        margin: 2rem 0 1rem 0;
        padding: 1.5rem 0;
    }
    
    .post-navigation .nav-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .post-navigation a {
        max-width: 100%;
        padding: 1rem;
        height: 100px;
        min-height: 100px;
    }
    
    .post-navigation .nav-previous .nav-subtitle,
    .post-navigation .nav-next .nav-subtitle {
        left: 2.5rem;
        right: 2.5rem;
    }
    
    .nav-arrow {
        font-size: 1.2rem;
    }
    
    .nav-arrow-left {
        margin-right: 0.75rem;
    }
    
    .nav-arrow-right {
        margin-left: 0.75rem;
    }
    
    .nav-title {
        font-size: 0.9rem;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .main-navigation ul {
        display: none;
        flex-direction: column;
        gap: 1rem;
        width: 33%;
        background: #fff;
        padding: 1rem;
        border: 1px solid #eee;
        margin: 1rem;

        z-index: 20;
        position: absolute;
        right: 0px;
        text-align: right;
    }

    
    .main-navigation ul.show {
        display: flex;
    }
    
/*    .site-header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }
    */
    
    .category-posts {
        grid-template-columns: 1fr;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .footer-menu ul {
        flex-direction: column;
        gap: 1rem;
    }
    
    .single-post .entry-title {
        font-size: 1.8rem;
    }
    
    .post-navigation {
        flex-direction: column;
    }
    
    .author-info {
        flex-direction: column;
        text-align: center;
    }
    
    .container {
        padding: 0 15px;
    }
    
    h1 { font-size: 1.8em; }
    h2 { font-size: 1.5em; }
    h3 { font-size: 1.3em; }
}

/* ========================================
   Colors from Cinematico Theme
======================================== */

:root {
    --primary-color: #0073aa;
    --secondary-color: #229fd8;
    --light-gray: #eee;
    --dark-gray: #444;
    --text-color: #333;
    --light-text: #666;
    --white: #fff;
    --black: #000;
}

/* ========================================
   Utility Classes
======================================== */

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    word-wrap: normal !important;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    position: absolute !important;
    width: 1px;
}

.screen-reader-text:focus {
    clip: auto !important;
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0,0,0,.6);
    color: #21759b;
    display: block;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

.alignleft {
    display: inline;
    float: left;
    margin-right: 1.5em;
}

.alignright {
    display: inline;
    float: right;
    margin-left: 1.5em;
}

.aligncenter {
    clear: both;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* ========================================
   Hero Section
======================================== */

.hero-section {
    position: relative;
    width: 100%;
    /* min-height: 500px; */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* margin-bottom: 3rem; */
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
} 

.hero-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-color: #000;
}

.hero-image,
.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#hero-video{
    position: relative;
    top: 190px;
}

.hero-slideshow {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slideshow .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.hero-slideshow .slide.active {
    opacity: 1;
}

.hero-slideshow .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slideshow-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    transform: translateY(-50%);
    z-index: 2;
}

.slideshow-controls button {
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background-color 0.3s ease;
}

.slideshow-controls button:hover {
    background: rgba(0, 0, 0, 0.8);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    padding: 2rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
    text-align: left;
}

.hero-subtitle p {
    margin-bottom: 1rem;
}

.hero-subtitle p:last-child {
    margin-bottom: 0;
}

.hero-subtitle a {
    color: inherit;
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

.hero-subtitle a:hover {
    opacity: 0.8;
}

.hero-subtitle strong,
.hero-subtitle b {
    font-weight: 600;
}

.hero-subtitle em,
.hero-subtitle i {
    font-style: italic;
}

/* Hero Section Responsive */
@media (max-width: 768px) {
    .hero-section {
        /* min-height: 400px; */
        margin-bottom: 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .slideshow-controls {
        padding: 0 1rem;
    }
    
    .slideshow-controls button {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* ========================================
   Services Section
======================================== */

.services-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

.services-header {
    text-align: center;
    margin-bottom: 3rem;
}

.services-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}

.services-subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.service-item {
    background: #fff;
    /* padding: 2rem; */
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.service-content {
    padding: 0 2em;
}

.service-icon-wrapper {
    /* margin-bottom: 1.5rem; */
}

.service-icon {
    height: auto;
    object-fit: contain;
    margin: 0;
    display: block;
    width: 100%;
    border-radius: 8px;
}

.service-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

.service-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.service-title a:hover {
    color: #0073aa;
}

.service-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.service-link {
    display: inline-flex;
    align-items: center;
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.service-link:hover {
    color: #229fd8;
}

/* Services Section Responsive */
@media (max-width: 768px) {
    
    #hero-video{
        position: relative;
        top: 150px;
    }

    .services-section {
        padding: 3rem 0;
    }
    
    .services-title {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    @media (max-width: 480px) {
        .services-grid {
            grid-template-columns: 1fr;
        }
    }
    
    .service-item {
        padding: 1.5rem;
    }
}

/* ========================================
   Single Post Hero Section
======================================== */

.single-post-hero {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-bottom: 2rem;
    height: 60vh;
    min-height: 400px;
    max-height: 700px;
    overflow: hidden;
}

.single-post-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.single-post-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.single-post-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.2) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.7) 100%
    );
    z-index: 3;
    display: flex;
    align-items: flex-end;
    padding-bottom: 3rem;
    pointer-events: none; /* Allow clicks to pass through to image below */
}

.single-post-hero-content {
    width: 100%;
    pointer-events: auto; /* Re-enable pointer events for the content */
}

.single-post-hero .entry-header {
    margin-bottom: 0;
}

.single-post-hero .entry-title {
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.single-post-hero .entry-meta {
    color: #ffffff;
    opacity: 0.9;
    font-size: 0.9rem;
}

.single-post-hero .entry-meta a {
    color: #ffffff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: border-color 0.3s ease;
}

.single-post-hero .entry-meta a:hover {
    border-bottom-color: rgba(255, 255, 255, 0.8);
}

.single-post-hero .entry-meta .posted-on,
.single-post-hero .entry-meta .byline,
.single-post-hero .entry-meta .cat-links {
    margin-right: 1rem;
}

/* Single Post Hero Responsive */
@media (max-width: 1024px) {
    .single-post-hero {
        height: 50vh;
        min-height: 350px;
    }
    
    .single-post-hero .entry-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .single-post-hero {
        height: 45vh;
        min-height: 300px;
    }
    
    .single-post-hero-overlay {
        padding-bottom: 2rem;
    }
    
    .single-post-hero .entry-title {
        font-size: 1.8rem;
    }
    
    .single-post-hero .entry-meta {
        font-size: 0.85rem;
    }
    
    .single-post-hero .entry-meta .posted-on,
    .single-post-hero .entry-meta .byline,
    .single-post-hero .entry-meta .cat-links {
        margin-right: 0.75rem;
        display: block;
        margin-bottom: 0.25rem;
    }
}

@media (max-width: 480px) {
    .single-post-hero {
        height: 40vh;
        min-height: 250px;
    }
    
    .single-post-hero-overlay {
        padding-bottom: 1.5rem;
    }
    
    .single-post-hero .entry-title {
        font-size: 1.5rem;
    }
    
    .single-post-hero .entry-meta {
        font-size: 0.8rem;
    }
}

/* Single Post Content Adjustments */
.single-post-content {
    margin-top: 0;
}

.single-post-content .entry-header {
    display: none; /* Hide duplicate header when featured image is shown */
}

/* ========================================
   Image Popup Modal
======================================== */

.image-popup-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    animation: fadeIn 0.3s ease-in-out;
}

.image-popup-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    box-sizing: border-box;
}

.image-popup-container {
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.image-popup-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 1000001;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: background-color 0.3s ease;
}

.image-popup-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

#popup-image {
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.image-popup-caption {
    margin-top: 1rem;
    text-align: center;
    color: #ffffff;
    max-width: 600px;
}

.image-popup-caption h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
}

/* Popup Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.image-popup-modal.hiding {
    animation: fadeOut 0.3s ease-in-out;
}

/* Popup Responsive */
@media (max-width: 768px) {
    .image-popup-overlay {
        padding: 1rem;
    }
    
    .image-popup-close {
        top: -40px;
        font-size: 1.5rem;
        width: 35px;
        height: 35px;
    }
    
    #popup-image {
        max-height: 70vh;
    }
    
    .image-popup-caption h3 {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .image-popup-overlay {
        padding: 0.5rem;
    }
    
    .image-popup-close {
        top: -35px;
        right: -5px;
    }
    
    #popup-image {
        max-height: 65vh;
    }
}

/* ========================================
   Video Background & Streaming
======================================== */

/* Standard video elements */
video {
    width: 100%;
    height: auto;
    max-width: 100%;
    background: transparent;
}

/* Background video container */
.background-video-container {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 400px;
    overflow: hidden;
    background: transparent;
}

.background-video-container video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.background-video-container video.loaded {
    opacity: 1;
}

/* Video Preloader - Made More Explicit */
.video-preloader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100 !important;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 1s ease-in-out;
    display: block !important;
    opacity: 1 !important;
    background-color: #ff0000; /* Bright red fallback for debugging */
}

.video-preloader.fade-out {
    opacity: 0 !important;
}

/* Solid Color Preloader */
.video-preloader.solid_color,
.video-preloader.solid-color {
    background-color: var(--preloader-color, #ff0000) !important;
    background-image: none !important;
}

/* Gradient Preloader */
.video-preloader.gradient {
    background: linear-gradient(
        135deg,
        var(--preloader-color, #ff0000) 0%,
        var(--preloader-color-2, #0000ff) 100%
    ) !important;
    background-image: none !important;
}

/* Custom Image Preloader */
.video-preloader.custom_image,
.video-preloader.custom-image {
    background-image: var(--preloader-image) !important;
    background-color: #ff0000 !important;
}

/* Auto Poster Preloader */
.video-preloader.auto_poster,
.video-preloader.auto-poster {
    background-image: var(--poster-image) !important;
    background-color: #ff0000 !important;
}

/* Force video to be hidden initially */
.background-video-container video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
    opacity: 0 !important;
    transition: opacity 1s ease-in-out;
}

.background-video-container video.loaded {
    opacity: 1 !important;
}

/* Loading indicator */
.video-loading-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    text-align: center;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.video-loading-indicator.hidden {
    opacity: 0;
}

.loading-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Hero Section Specific Styles */
.hero-section {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
}

.hero-section .background-video-container {
    margin: 0;
}

.hero-section .video-overlay-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-section .hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.7);
}

.hero-section .hero-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 2rem;
    line-height: 1.5;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Responsive */
@media (max-width: 1024px) {
    .hero-section .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-section .hero-subtitle {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .hero-section .video-overlay-content {
        padding: 0 1rem;
    }
    
    .hero-section .hero-title {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }
    
    .hero-section .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-section .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-section .hero-subtitle {
        font-size: 0.9rem;
    }
}

/* Video overlay for content */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.video-overlay-content {
    text-align: center;
    color: white;
    pointer-events: auto;
}

.video-overlay-content h1,
.video-overlay-content h2,
.video-overlay-content h3 {
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
    margin-bottom: 1rem;
}

.video-overlay-content p {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
    font-size: 1.1rem;
}

/* Standard video container */
.video-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: transparent;
}

.video-container video {
    display: block;
    width: 100%;
    height: auto;
}

/* Video loading states - Remove checkered pattern */
video:not([src]) {
    background: transparent;
}

/* Remove the old loading animation */
@keyframes loading {
    0% { opacity: 1; }
    100% { opacity: 1; }
}

/* Responsive video */
@media (max-width: 1024px) {
    .background-video-container {
        height: 50vh;
        min-height: 350px;
    }
}

@media (max-width: 768px) {
    video {
        preload: none; /* On mobile, don't preload to save bandwidth */
    }
    
    .background-video-container {
        height: 40vh;
        min-height: 300px;
    }
    
    .video-overlay-content h1,
    .video-overlay-content h2,
    .video-overlay-content h3 {
        font-size: 1.5rem;
    }
    
    .video-overlay-content p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .background-video-container {
        height: 35vh;
        min-height: 250px;
    }
}