/*
Theme Name: Avluz Custom Theme - Professional Edition
Theme URI: https://avluz.com
Description: Professional blog theme with modern design inspired by 10beasts.com
Author: Avluz Team
Version: 2.0
Template: twentytwentyfive
*/

/* ============================================
   GLOBAL VARIABLES & BASE STYLES
   ============================================ */
:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --border-color: #e0e0e0;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    font-size: 16px;
    background: var(--bg-light);
}

/* ============================================
   BLOG LISTING PAGE (index.php)
   ============================================ */

/* Hero Section */
.blog-listing-container {
    max-width: 100%;
    margin: 0 auto;
}

.blog-hero {
    background: var(--gradient-primary);
    color: white;
    padding: 60px 20px;
    text-align: center;
    margin-bottom: 40px;
}

.blog-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.blog-main-title {
    font-size: 3rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    letter-spacing: -0.5px;
}

.blog-subtitle {
    font-size: 1.2rem;
    opacity: 0.95;
    font-weight: 300;
    margin: 0;
}

/* Category Filter Navigation */
.category-filter-nav {
    background: var(--bg-white);
    border-bottom: 2px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.category-filter-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.category-filter-item {
    padding: 18px 24px;
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    transition: var(--transition);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
}

.category-filter-item:hover {
    color: var(--primary-color);
    background: rgba(102, 126, 234, 0.05);
}

.category-filter-item.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    font-weight: 600;
}

.category-filter-item .count {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Category Header */
.category-header {
    max-width: 1400px;
    margin: 40px auto 30px;
    padding: 0 20px;
}

.category-title {
    font-size: 2rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 10px 0;
}

.category-title .icon {
    color: var(--primary-color);
}

.category-description {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Blog Posts Grid */
.site-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

/* Featured Post (First Post - Larger) */
.blog-card.featured {
    grid-column: span 2;
    grid-row: span 1;
}

.blog-card.featured .blog-card-image {
    height: 450px;
}

.blog-card.featured .blog-card-title {
    font-size: 2rem;
}

/* Blog Card Styles */
.blog-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.blog-card-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.blog-card:hover .image-overlay {
    opacity: 1;
}

.read-more-overlay {
    color: white;
    font-weight: 600;
    padding: 12px 24px;
    background: var(--gradient-primary);
    border-radius: 50px;
    margin-bottom: 20px;
}

.post-category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--gradient-primary);
    color: white;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.post-meta-top {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.post-meta-top .icon {
    margin-right: 4px;
    vertical-align: middle;
}

.post-date, .reading-time {
    display: flex;
    align-items: center;
    gap: 4px;
}

.blog-card-title {
    margin: 0 0 15px 0;
    font-size: 1.5rem;
    line-height: 1.3;
    font-weight: 700;
}

.blog-card-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

.blog-card-title a:hover {
    color: var(--primary-color);
}

.blog-card-excerpt {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 20px;
    flex-grow: 1;
}

.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.read-more-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.read-more-button:hover {
    gap: 10px;
    color: var(--secondary-color);
}

.post-author-mini {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 60px 0 40px;
}

.pagination .page-numbers {
    padding: 12px 18px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
}

/* Newsletter Section */
.newsletter-section {
    background: var(--gradient-primary);
    padding: 60px 20px;
    margin-top: 60px;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    color: white;
}

.newsletter-content h3 {
    font-size: 2rem;
    margin: 0 0 10px 0;
}

.newsletter-content p {
    font-size: 1.1rem;
    opacity: 0.95;
    margin: 0 0 30px 0;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
}

.newsletter-button {
    padding: 15px 35px;
    background: white;
    color: var(--primary-color);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* No Results Page */
.no-results-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    padding: 60px 20px;
}

.no-results-content {
    text-align: center;
    max-width: 500px;
}

.no-results-icon {
    color: var(--text-light);
    opacity: 0.3;
    margin-bottom: 20px;
}

.no-results-content h2 {
    font-size: 2rem;
    margin: 0 0 15px 0;
}

.no-results-content p {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0 0 30px 0;
}

.button-primary {
    display: inline-block;
    padding: 15px 35px;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

.button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* ============================================
   SINGLE POST PAGE (single.php)
   ============================================ */

.single-post-container {
    max-width: 100%;
    margin: 0 auto;
    background: var(--bg-white);
}

/* Breadcrumbs */
.post-header-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px 20px;
}

.breadcrumbs {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 25px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.breadcrumbs a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumbs a:hover {
    color: var(--primary-color);
}

.breadcrumbs .separator {
    color: var(--border-color);
}

.breadcrumbs .current {
    color: var(--text-dark);
}

/* Post Header */
.entry-header {
    margin-bottom: 30px;
}

.entry-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 20px 0;
    color: var(--text-dark);
}

.entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    color: var(--text-light);
    font-size: 0.95rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.meta-item .icon {
    color: var(--primary-color);
}

.category-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.category-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Featured Image */
.post-featured-image {
    max-width: 1400px;
    margin: 0 auto 50px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Post Content Layout (with sidebar TOC) */
.post-content-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 60px;
    align-items: start;
}

/* Table of Contents Sidebar */
.toc-sidebar {
    position: relative;
}

.toc-sticky {
    position: sticky;
    top: 100px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 25px;
    border: 1px solid var(--border-color);
}

.toc-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.toc-item {
    margin: 0 0 8px 0;
}

.toc-sub-item {
    margin-left: 15px;
}

.toc-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.5;
    transition: var(--transition);
    display: block;
    padding: 5px 0;
    border-left: 2px solid transparent;
    padding-left: 12px;
}

.toc-link:hover {
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.toc-link.active {
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    font-weight: 600;
}

/* Professional Content Formatting */
.professional-content {
    max-width: 800px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.professional-content p {
    margin: 0 0 25px 0;
}

.professional-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin: 50px 0 25px 0;
    color: var(--text-dark);
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 12px;
}

.professional-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 40px 0 20px 0;
    color: var(--text-dark);
}

.professional-content h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 30px 0 15px 0;
    color: var(--text-dark);
}

.professional-content ul,
.professional-content ol {
    margin: 0 0 25px 0;
    padding-left: 30px;
}

.professional-content li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.professional-content a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.professional-content a:hover {
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
}

/* Product Cards in Content */
.professional-content .button,
.professional-content a.button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--gradient-primary);
    color: white !important;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    transition: var(--transition);
    border: none;
    margin: 10px 0;
}

.professional-content .button:hover,
.professional-content a.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
    border-bottom: none;
}

.professional-content strong {
    font-weight: 600;
    color: var(--text-dark);
}

.professional-content em {
    font-style: italic;
    color: var(--text-light);
}

.professional-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 20px 30px;
    margin: 30px 0;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    font-style: italic;
    color: var(--text-light);
}

.professional-content table {
    width: 100%;
    margin: 30px 0;
    border-collapse: collapse;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.professional-content table th {
    background: var(--gradient-primary);
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.professional-content table td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
}

.professional-content table tr:nth-child(even) {
    background: var(--bg-light);
}

.professional-content table tr:hover {
    background: rgba(102, 126, 234, 0.05);
}

.professional-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 30px 0;
    box-shadow: var(--shadow-sm);
}

/* Post Footer */
.entry-footer {
    max-width: 1200px;
    margin: 60px auto 0;
    padding: 40px 20px;
    border-top: 2px solid var(--border-color);
}

/* Tags */
.tags-container {
    margin-bottom: 40px;
}

.tags-container h4 {
    font-size: 1.1rem;
    margin: 0 0 15px 0;
    color: var(--text-dark);
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tags-list a {
    padding: 8px 16px;
    background: var(--bg-light);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 50px;
    font-size: 0.9rem;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.tags-list a:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
}

/* Post Navigation */
.post-navigation-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.nav-item {
    padding: 25px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.nav-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.nav-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-color);
}

/* Related Posts */
.related-posts {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid var(--border-color);
}

.related-posts h3 {
    font-size: 2rem;
    margin: 0 0 30px 0;
    color: var(--text-dark);
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.related-post-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.related-post-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.related-post-image {
    display: block;
    height: 200px;
    overflow: hidden;
}

.related-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.related-post-card:hover .related-post-image img {
    transform: scale(1.05);
}

.related-post-content {
    padding: 20px;
}

.related-post-content h4 {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
}

.related-post-content h4 a {
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

.related-post-content h4 a:hover {
    color: var(--primary-color);
}

.related-post-date {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    .blog-main-title {
        font-size: 2.5rem;
    }
    
    .post-content-layout {
        grid-template-columns: 200px 1fr;
        gap: 40px;
    }
    
    .blog-card.featured {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .blog-main-title {
        font-size: 2rem;
    }
    
    .blog-subtitle {
        font-size: 1rem;
    }
    
    .blog-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-card.featured {
        grid-column: span 1;
    }
    
    .blog-card.featured .blog-card-image {
        height: 300px;
    }
    
    .blog-card.featured .blog-card-title {
        font-size: 1.5rem;
    }
    
    /* Single Post Responsive */
    .entry-title {
        font-size: 2rem;
    }
    
    .post-content-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .toc-sidebar {
        display: none; /* Hide TOC on mobile */
    }
    
    .professional-content {
        font-size: 1rem;
    }
    
    .professional-content h2 {
        font-size: 1.6rem;
    }
    
    .professional-content h3 {
        font-size: 1.3rem;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .post-navigation-wrapper {
        grid-template-columns: 1fr;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .blog-hero {
        padding: 40px 15px;
    }
    
    .blog-main-title {
        font-size: 1.75rem;
    }
    
    .category-filter-item {
        padding: 15px 18px;
        font-size: 0.9rem;
    }
    
    .entry-title {
        font-size: 1.6rem;
    }
    
    .professional-content .button,
    .professional-content a.button {
        padding: 12px 30px;
        font-size: 0.95rem;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

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

.icon {
    display: inline-block;
    vertical-align: middle;
}
/* ============================================
   HEADER & FOOTER STYLES - AVLUZ.COM BRANDING
   Single-Strip Header (10beasts.com inspired)
   Color Scheme: Avluz.com (#0058A3 Blue)
   ============================================ */

/* ============================================
   HEADER STYLES
   ============================================ */

.site-header {
    background-color: #0058A3; /* Avluz.com blue */
    box-shadow: 0 2px 8px rgba(0, 88, 163, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

/* Logo Styles */
.site-logo {
    display: flex;
    align-items: baseline;
    gap: 8px;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.site-logo:hover {
    opacity: 0.9;
}

.logo-text {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.logo-subtitle {
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
}

/* Main Navigation */
.main-navigation {
    display: flex;
    align-items: center;
    gap: 35px;
    margin: 0 auto;
}

.main-navigation a {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 0;
    position: relative;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #ffffff;
    transition: width 0.3s ease;
}

.main-navigation a:hover {
    color: rgba(255, 255, 255, 0.85);
}

.main-navigation a:hover::after {
    width: 100%;
}

/* Header CTA Button */
.header-cta-btn {
    background-color: #ffffff;
    color: #0058A3;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-cta-btn:hover {
    background-color: #f5f5f5;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Navigation */
.mobile-navigation {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background-color: #0058A3;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 88, 163, 0.2);
}

.mobile-navigation.active {
    max-height: 500px;
}

.mobile-navigation a {
    display: block;
    padding: 15px 20px;
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

.mobile-navigation a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.mobile-navigation .mobile-cta {
    background-color: #ffffff;
    color: #0058A3;
    margin: 15px 20px;
    padding: 12px;
    text-align: center;
    border-radius: 6px;
    font-weight: 600;
    border-bottom: none;
}

.mobile-navigation .mobile-cta:hover {
    background-color: #f5f5f5;
}

/* Prevent body scroll when mobile menu is open */
body.menu-open {
    overflow: hidden;
}

/* ============================================
   FOOTER STYLES
   ============================================ */

.site-footer {
    background-color: #1a1a1a;
    color: #cccccc;
    padding: 50px 0 0;
    margin-top: 60px;
    border-top: 4px solid #0058A3;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

/* Footer Brand Column */
.footer-brand {
    max-width: 350px;
}

.footer-logo {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 15px 0;
}

.footer-tagline {
    font-size: 15px;
    line-height: 1.6;
    color: #999999;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #cccccc;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background-color: #0058A3;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Footer Columns */
.footer-column h4 {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 20px 0;
}

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

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: #999999;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: #ffffff;
    padding-left: 5px;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px 0;
    text-align: center;
}

.footer-bottom p {
    margin: 5px 0;
    font-size: 14px;
    color: #999999;
}

.footer-bottom strong {
    color: #ffffff;
}

.footer-tagline-small {
    font-size: 13px;
    color: #777777;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .footer-brand {
        max-width: 100%;
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    /* Header Mobile Styles */
    .header-container {
        height: 60px;
    }
    
    .logo-text {
        font-size: 24px;
    }
    
    .logo-subtitle {
        font-size: 12px;
    }
    
    .main-navigation,
    .header-cta-btn {
        display: none;
    }
    
    .mobile-menu-toggle,
    .mobile-navigation {
        display: flex;
    }
    
    /* Footer Mobile Styles */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .site-footer {
        padding: 40px 0 0;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0 15px;
    }
    
    .logo-text {
        font-size: 22px;
    }
    
    .footer-container {
        padding: 0 15px;
    }
    
    .footer-logo {
        font-size: 28px;
    }
    
    .footer-social a {
        width: 36px;
        height: 36px;
    }
}

/* ============================================
   ACCESSIBILITY & UTILITY
   ============================================ */

/* Focus states for keyboard navigation */
.site-header a:focus,
.site-footer a:focus,
.mobile-menu-toggle:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Print styles */
@media print {
    .site-header,
    .site-footer {
        display: none;
    }
}

/* ============================================
   MOBILE-RESPONSIVE TABLES FIX
   Added: 2025-11-27
   Purpose: Make comparison tables mobile-friendly
   ============================================ */

/* Base table responsiveness */
@media screen and (max-width: 768px) {
    /* Override inline styles for mobile */
    .wp-block-table,
    div[style*="overflow-x: auto"] {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        margin: 16px -20px !important;
        padding: 0 20px !important;
    }
    
    /* Make tables scrollable but with better UX */
    .wp-block-table table,
    div[style*="overflow-x: auto"] table {
        min-width: 600px !important;
        font-size: 14px !important;
    }
    
    /* Reduce padding on table cells for mobile */
    .wp-block-table th,
    .wp-block-table td,
    div[style*="overflow-x: auto"] th,
    div[style*="overflow-x: auto"] td {
        padding: 12px 8px !important;
        font-size: 13px !important;
    }
    
    /* Hide less critical columns on very small screens */
    @media screen and (max-width: 480px) {
        /* Hide "Price Category" and "Key Features" columns on mobile */
        .wp-block-table tr th:nth-child(4),
        .wp-block-table tr td:nth-child(4),
        .wp-block-table tr th:nth-child(6),
        .wp-block-table tr td:nth-child(6) {
            display: none !important;
        }
        
        div[style*="overflow-x: auto"] table tr th:nth-child(4),
        div[style*="overflow-x: auto"] table tr td:nth-child(4),
        div[style*="overflow-x: auto"] table tr th:nth-child(6),
        div[style*="overflow-x: auto"] table tr td:nth-child(6) {
            display: none !important;
        }
    }
    
    /* Scroll indicator hint */
    div[style*="overflow-x: auto"]::after {
        content: "← Scroll for more →";
        display: block;
        text-align: center;
        font-size: 12px;
        color: #718096;
        padding: 8px;
        background: linear-gradient(90deg, transparent, rgba(102,126,234,0.1), transparent);
        margin-top: -4px;
        border-radius: 0 0 12px 12px;
    }
}

/* Better button styling on mobile */
@media screen and (max-width: 768px) {
    .cta-button,
    a[class*="cta"] {
        font-size: 14px !important;
        padding: 10px 20px !important;
        min-height: 40px !important;
    }
}

/* Ensure images are responsive */
@media screen and (max-width: 768px) {
    .wp-block-image img,
    figure img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
}


/* ============================================
   COLLAPSIBLE TABLE TOGGLE BUTTON
   Added: 2025-11-27
   Purpose: Toggle button for mobile table collapse/expand
   ============================================ */

.table-toggle-btn {
    display: none; /* Hidden by default, shown on mobile via JS */
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 20px;
    margin: 16px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    text-align: left;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.table-toggle-btn:hover,
.table-toggle-btn:focus {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.table-toggle-btn:active {
    transform: translateY(0);
}

.table-toggle-btn .table-icon {
    font-size: 20px;
    margin-right: 12px;
    display: inline-block;
}

.table-toggle-btn .table-text {
    flex: 1;
    line-height: 1.4;
}

.table-toggle-btn .table-expand-icon {
    font-size: 18px;
    margin-left: 12px;
    transition: transform 0.3s ease;
    display: inline-block;
}

.table-toggle-btn.expanded .table-expand-icon {
    transform: rotate(180deg);
}

/* Collapsed table state */
.table-collapsed {
    max-height: 0 !important;
    opacity: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
}

/* Expanded table state */
.table-expanded {
    max-height: none !important;
    opacity: 1 !important;
    overflow: auto !important;
}

/* Animation states */
.table-expanding,
.table-collapsing {
    transition: max-height 0.4s ease, opacity 0.3s ease !important;
}

/* Mobile-specific styles */
@media screen and (max-width: 768px) {
    .table-toggle-btn {
        display: flex !important;
    }
    
    /* Ensure smooth scrolling on mobile */
    html {
        scroll-behavior: smooth;
    }
    
    /* Add subtle pulse animation on first load */
    @keyframes pulse-hint {
        0%, 100% { transform: scale(1); }
        50% { transform: scale(1.02); }
    }
    
    .table-toggle-btn:not(.expanded) {
        animation: pulse-hint 2s ease-in-out 1;
    }
}

/* Desktop: hide toggle button, always show tables */
@media screen and (min-width: 769px) {
    .table-toggle-btn {
        display: none !important;
    }
    
    /* Reset any collapsed states on desktop */
    div[data-table-id] {
        max-height: none !important;
        opacity: 1 !important;
        overflow: auto !important;
    }
}

/* Accessibility: Focus styles */
.table-toggle-btn:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .table-toggle-btn {
        border: 2px solid white;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .table-toggle-btn,
    .table-expanding,
    .table-collapsing {
        transition: none !important;
    }
    
    .table-toggle-btn:not(.expanded) {
        animation: none !important;
    }
}


/* ============================================================================
   AGGRESSIVE MOBILE TABLE FIX - Override All Inline Styles
   Target: Product category comparison tables with 8 columns
   Problem: Inline styles prevent responsive behavior
   Solution: Use !important to force mobile-friendly styles
   ============================================================================ */

/* Mobile-only fixes (phones and small tablets) */
@media screen and (max-width: 768px) {
    
    /* Force table containers to respect viewport */
    div[style*="overflow-x: auto"] {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        margin: 16px -15px !important; /* Extend to screen edges */
        padding: 0 15px !important;
        max-width: 100vw !important;
    }
    
    /* Force tables to be scrollable */
    div[style*="overflow-x: auto"] table {
        min-width: 600px !important; /* Minimum width to show key columns */
        width: auto !important;
        display: table !important;
    }
    
    /* Reduce padding on ALL table cells to fit more content */
    div[style*="overflow-x: auto"] table th,
    div[style*="overflow-x: auto"] table td {
        padding: 8px 6px !important; /* Reduced from 18px */
        font-size: 13px !important; /* Slightly smaller text */
        white-space: nowrap !important; /* Prevent text wrapping */
    }
    
    /* Make first column (Product name) sticky for easier reading */
    div[style*="overflow-x: auto"] table th:first-child,
    div[style*="overflow-x: auto"] table td:first-child {
        position: sticky !important;
        left: 0 !important;
        background: white !important;
        z-index: 10 !important;
        box-shadow: 2px 0 4px rgba(0,0,0,0.1) !important;
        min-width: 120px !important;
        max-width: 150px !important;
        white-space: normal !important; /* Allow product names to wrap */
        word-break: break-word !important;
    }
    
    /* Ensure header first column has gradient background */
    div[style*="overflow-x: auto"] table thead th:first-child {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    }
    
    /* Hide less critical columns on very small screens */
    @media screen and (max-width: 480px) {
        /* Hide "Price Category" and "Best For" columns (4th and 7th) */
        div[style*="overflow-x: auto"] table th:nth-child(4),
        div[style*="overflow-x: auto"] table td:nth-child(4),
        div[style*="overflow-x: auto"] table th:nth-child(7),
        div[style*="overflow-x: auto"] table td:nth-child(7) {
            display: none !important;
        }
        
        /* Make first column even narrower */
        div[style*="overflow-x: auto"] table th:first-child,
        div[style*="overflow-x: auto"] table td:first-child {
            min-width: 100px !important;
            max-width: 120px !important;
            font-size: 12px !important;
        }
    }
    
    /* Add scroll indicator shadow */
    div[style*="overflow-x: auto"]::after {
        content: '→ Scroll →' !important;
        display: block !important;
        text-align: center !important;
        color: #667eea !important;
        font-size: 12px !important;
        font-weight: 600 !important;
        margin-top: 8px !important;
        animation: fade-scroll-hint 3s ease-in-out infinite !important;
    }
    
    @keyframes fade-scroll-hint {
        0%, 100% { opacity: 0.4; }
        50% { opacity: 1; }
    }
    
    /* Improve CTA button visibility on mobile */
    div[style*="overflow-x: auto"] table .cta-button,
    div[style*="overflow-x: auto"] table a[class*="cta"] {
        padding: 8px 12px !important;
        font-size: 12px !important;
        border-radius: 20px !important;
        white-space: nowrap !important;
    }
    
    /* Force all images in product posts to be responsive */
    .wp-block-image img,
    img[style*="width"] {
        max-width: 100% !important;
        height: auto !important;
        width: auto !important;
    }
    
    /* Fix any fixed-width containers */
    [style*="width: "][style*="px"] {
        max-width: 100% !important;
    }
    
    /* Ensure main content area is responsive */
    .entry-content,
    .post-content,
    article {
        max-width: 100% !important;
        overflow-x: hidden !important;
        padding: 0 15px !important;
    }
}

/* Extra small screens - even more aggressive */
@media screen and (max-width: 375px) {
    div[style*="overflow-x: auto"] table th,
    div[style*="overflow-x: auto"] table td {
        padding: 6px 4px !important;
        font-size: 12px !important;
    }
    
    div[style*="overflow-x: auto"] table th:first-child,
    div[style*="overflow-x: auto"] table td:first-child {
        min-width: 80px !important;
        max-width: 100px !important;
    }
}
