/*
Theme Name: BlogCoderLook
Theme URI: https://coderlook.com
Description: A modern tech-focused WordPress theme built with Bootstrap 5 and Vue.js
Version: 1.0.0
Author: CoderLook
Author URI: https://coderlook.com
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: blogcoderlook
Tags: blog, tech, bootstrap, vue, modern, responsive

This theme is licensed under the GPL.
*/

/* Custom Properties */
:root {
    --primary-color: #212529;
    --secondary-color: #2b2b2b;
    --accent-color: #00c2cb;
    --text-color: #2b2b2b;
    --light-bg: #f8f9fa;
    --dark-bg: #2b2b2b;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
    --header-height: 70px;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
    --spacing-xxxl: 5rem;
    --spacing-xxxxl: 6rem;
    --spacing-xxxxxl: 7rem;
}

/* Base Typography */
body {
    font-family: var(--font-family);
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family);
    font-weight: 700;
    line-height: 1.3;
    color: var(--secondary-color);
}

.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-family: var(--font-family);
    font-weight: 800;
    line-height: 1.2;
}

/* Font Weight Utilities */
.fw-medium {
    font-weight: 500 !important;
}

.fw-semibold {
    font-weight: 600 !important;
}

.fw-bold {
    font-weight: 700 !important;
}

.fw-extrabold {
    font-weight: 800 !important;
}

/* Update specific components */
.navbar-nav .nav-link {
    font-weight: 500;
}

.btn {
    font-weight: 500;
}

.category-badge {
    font-weight: 500;
}

.post-hero .entry-title {
    font-weight: 800;
}

.card-title {
    font-weight: 700;
}

.sidebar-title {
    font-weight: 600;
}

.widget-title {
    font-weight: 700;
}

.comment-author {
    font-weight: 600;
}

/* --- Sticky Header Styles --- */
.site-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 2000 !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
    height: 80px !important;
    padding: 0.75rem 0 !important;
    display: flex !important;
    align-items: center !important;
}

body.scrolled .site-header {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1) !important;
    height: 60px !important;
    padding: 0.5rem 0 !important;
}

/* Admin bar adjustment */
.admin-bar .site-header {
    top: 32px !important;
}

@media (max-width: 991.98px) {
    .site-header {
        height: 70px !important;
        padding: 0.5rem 0 !important;
    }
    
    body.scrolled .site-header {
        height: 55px !important;
        padding: 0.4rem 0 !important;
    }
    
    /* Tablet-specific improvements */
    .site-header .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    .site-header .site-branding {
        max-width: 180px;
    }
    
    .site-header .custom-logo {
        max-height: 36px !important;
    }
    
    body.scrolled .site-header .custom-logo {
        max-height: 32px !important;
    }
}

@media (max-width: 575.98px) {
    .site-header {
        height: 65px !important;
        padding: 0.4rem 0 !important;
    }
    
    body.scrolled .site-header {
        height: 50px !important;
        padding: 0.3rem 0 !important;
    }
    
    /* Mobile-specific header improvements */
    .site-header .container {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
    
    .site-header .site-branding {
        max-width: 150px;
    }
    
    .site-header .custom-logo {
        max-height: 32px !important;
    }
    
    body.scrolled .site-header .custom-logo {
        max-height: 28px !important;
    }
    
    .site-header .btn-link {
        padding: 0.25rem !important;
        font-size: 1.1rem !important;
    }
    
    .site-header .btn-primary {
        padding: 0.375rem 0.75rem !important;
        font-size: 0.875rem !important;
        min-width: 70px !important;
    }
}

/* --- End Sticky Header --- */

/* Update font stack for body */
body {
    font-family: 'Inter', 'IBM Plex Sans', 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background: #f4f7ff;
}
.site-main {
    background: #f4f7ff;
}
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}



/* Header Styles - Removed conflicting styles */

.site-branding {
    max-width: 200px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-branding .custom-logo {
    max-height: 40px;
    width: auto;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.scrolled .site-branding .custom-logo {
    max-height: 35px;
}

.site-title {
    font-size: 1.5rem;
    margin: 0;
}

.site-title a {
    color: var(--primary-color);
    text-decoration: none;
}

/* Navigation */
.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    color: var(--secondary-color);
    transition: var(--transition);
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color);
}

/* Featured Posts Section */
.featured-posts {
    background: linear-gradient(135deg, var(--light-bg) 0%, #ffffff 100%);
    padding: 6rem 0 4rem;
    margin-top: var(--header-height);
}

.featured-posts .card {
    border: none;
    background: #ffffff;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.featured-posts .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

/* Blog Cards */
.blog-card {
    border: none;
    background: #ffffff;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.blog-card .card-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.blog-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Single Post */
.single-post-content {
    font-size: 1.125rem;
    line-height: 1.8;
}

.single-post-content p {
    margin-bottom: 1.5rem;
}

.single-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

/* Author Bio */
.author-bio {
    background: #fff;
    border-radius: var(--border-radius);
    margin: 2rem 0;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
}

.author-bio:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.author-avatar-wrapper {
    position: relative;
    display: inline-block;
}

.author-avatar {
    width: 120px !important;
    height: 120px !important;
    border: 4px solid var(--primary-color);
    padding: 4px;
    background: #fff;
    transition: all 0.3s ease;
}

.author-bio:hover .author-avatar {
    transform: scale(1.05);
    border-color: var(--accent-color);
}

.author-info h3 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.author-info p {
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.author-links {
    gap: 0.75rem;
}

.author-links .btn {
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.author-links .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Category Filter */
.category-filter button {
    margin: 0.25rem;
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Search Component */
.search-form {
    position: relative;
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1060;
    background: #ffffff;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.search-suggestions a {
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

.search-suggestions a:hover {
    background: var(--light-bg);
}

/* Footer */
.site-footer {
    background: var(--dark-bg);
    color: #ffffff;
    padding: 4rem 0 0;
}

.site-footer h3 {
    color: #ffffff;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.site-footer a:hover {
    color: var(--accent-color);
}

.site-footer .custom-logo {
    max-height: 40px;
    width: auto;
}

.site-info {
    padding: 1.5rem 0;
    background: rgba(0, 0, 0, 0.2);
    margin-top: 3rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }

    .featured-posts {
        padding: 4rem 0 2rem;
    }

    .blog-card .card-img-top {
        height: 160px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-card {
    animation: fadeIn 0.6s ease-out;
}

/* Utility Classes */
.hover-bg-light:hover {
    background-color: var(--light-bg);
}

.text-primary {
    color: var(--primary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #fff !important;
    transition: background 0.15s, border 0.15s, color 0.15s;
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background-color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    color: #fff !important;
}

.btn-outline-primary {
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    background: transparent !important;
    transition: background 0.15s, border 0.15s, color 0.15s;
}

.btn-outline-primary:hover, .btn-outline-primary:focus, .btn-outline-primary:active {
    background-color: var(--primary-color) !important;
    color: #fff !important;
    border-color: var(--primary-color) !important;
}

/* Code Syntax Highlighting */
pre {
    background: #f8f9fa;
    border-radius: var(--border-radius);
    padding: 1rem;
    overflow-x: auto;
}

code {
    font-family: 'Fira Code', monospace;
    font-size: 0.9em;
    padding: 0.2em 0.4em;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
}

/* Post Hero Section */
.post-hero {
    min-height: 300px;
    display: flex;
    align-items: center;
    background-color: var(--dark-bg);
    background-size: cover;
    background-position: center;
    position: relative;
    margin-bottom: 3rem;
    padding: 4rem 0;
}

.post-hero.has-featured-image {
    padding: 5rem 0;
}

.category-badge {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.category-badge:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: #ffffff;
    padding: 8rem 0;
    margin-top: var(--header-height);
}

.hero-section .display-4 {
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-section .lead {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* Category Pills */
.category-pills .btn {
    transition: var(--transition);
    font-weight: 500;
}

.category-pills .btn:hover {
    transform: translateY(-2px);
}

.category-pills .badge {
    font-weight: 500;
}

/* Blog Cards Enhanced */
.blog-card {
    transition: var(--transition);
    border: none;
    background: #ffffff;
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.blog-card .card-img-top {
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

.blog-card:hover .card-img-top {
    transform: scale(1.05);
}

.hover-zoom {
    transition: var(--transition);
}

.hover-zoom:hover {
    transform: scale(1.05);
}

/* Post Content */
.single-post-content {
    font-size: 1.125rem;
    line-height: 1.8;
}

.single-post-content p {
    margin-bottom: 1.5rem;
}

.single-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin: 2rem 0;
}

.single-post-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    background: rgba(0, 194, 203, 0.05);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.single-post-content blockquote p:last-child {
    margin-bottom: 0;
}

.single-post-content h2,
.single-post-content h3,
.single-post-content h4 {
    margin-top: 2.5rem;
    margin-bottom: 1.2rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.single-post-content ul,
.single-post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.2rem;
}

.single-post-content li {
    margin-bottom: 0.5rem;
}

/* Tags */
.tags-links a {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    margin: 0.25rem;
    background: var(--light-bg);
    color: var(--secondary-color);
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition);
}

.tags-links a:hover {
    background: var(--primary-color);
    color: #ffffff;
}

/* Share Buttons */
.share-buttons .btn {
    width: 40px;
    height: 40px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.share-buttons .btn:hover {
    transform: translateY(-2px);
}

/* Footer Links */
.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.footer-links a:hover {
    color: #ffffff;
    transform: translateX(5px);
}

/* Newsletter Form */
.newsletter-form .form-control {
    border-radius: 20px;
    padding: 0.75rem 1.25rem;
}

.newsletter-form .btn {
    border-radius: 20px;
    padding: 0.75rem 1.5rem;
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-card {
    animation: slideUp 0.6s ease-out;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--light-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 6px;
    border: 3px solid var(--light-bg);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* Loading Skeleton */
.skeleton {
    background: linear-gradient(
        90deg,
        var(--light-bg) 0%,
        #f0f0f0 50%,
        var(--light-bg) 100%
    );
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: 6rem 0;
    }

    .post-hero {
        padding: 6rem 0;
    }

    .post-hero.has-featured-image {
        padding: 8rem 0;
    }

    .blog-card .card-img-top {
        height: 160px;
    }

    .share-buttons .btn {
        width: 36px;
        height: 36px;
    }
}

/* Print Styles */
@media print {
    .site-header,
    .site-footer,
    .share-buttons,
    .related-posts {
        display: none;
    }

    .single-post-content {
        font-size: 12pt;
        line-height: 1.6;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }
} 

/* --- Header Component Styles --- */
.site-header .navbar {
    min-height: 56px;
    padding-top: 0;
    padding-bottom: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    width: 100%;
}
.site-header .site-branding {
    min-width: 180px;
    font-size: 1.25rem;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
}
.site-header .navbar-nav {
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    align-items: center;
}
.site-header .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    color: var(--secondary-color);
    border-radius: 6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
}
.site-header .nav-link:hover, .site-header .nav-link.active {
    background: var(--light-bg);
    color: var(--primary-color);
    transform: translateY(-1px);
}
.site-header .btn-primary {
    font-weight: 600;
    font-size: 1rem;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(0,123,255,0.08);
    padding: 0.5rem 1.5rem;
    letter-spacing: 0.01em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
}
.site-header .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,123,255,0.15);
}
.site-header .btn-link {
    color: var(--secondary-color);
    font-size: 1.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}
.site-header .btn-link:hover {
    background: var(--light-bg);
    transform: translateY(-1px);
}
.site-header .navbar-toggler {
    font-size: 1.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}
.site-header .navbar-toggler:focus {
    outline: 2px solid var(--primary-color);
    transform: translateY(-1px);
}
@media (max-width: 991.98px) {
    .site-header .navbar-nav {
        gap: 0;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    .site-header .navbar-collapse {
        background: #fff;
        box-shadow: 0 8px 24px rgba(0,0,0,0.04);
        border-radius: 0 0 12px 12px;
    }
    .site-header .btn-primary {
        padding: 0.5rem 1rem;
        font-size: 0.95rem;
    }
}
@media (max-width: 575.98px) {
    .site-header .site-branding {
        min-width: 120px;
        font-size: 1rem;
    }
    .site-header .btn-primary {
        font-size: 0.9rem;
        padding: 0.5rem 0.75rem;
    }
}
/* --- End Header Component Styles --- */ 

/* --- Glossy & Premium Hero Section Enhancements --- */
.hero-section {
    min-height: 380px;
    padding: 8.5rem 0 4.5rem 0;
    background: radial-gradient(ellipse at 60% 0%, #00a4ef 0%, #0078d4 60%, #003366 100%);
    position: relative;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.07);
    overflow: hidden;
    margin-bottom: 0;
}
.hero-section::before {
    /* Glossy shine overlay */
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 80px;
    background: linear-gradient(180deg, rgba(255,255,255,0.38) 0%, rgba(255,255,255,0.08) 80%, transparent 100%);
    opacity: 0.7;
    pointer-events: none;
    z-index: 2;
}
.hero-section::after {
    /* Subtle pattern overlay */
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="%23ffffff22"/></svg>');
    opacity: 0.10;
    pointer-events: none;
    z-index: 1;
}
.hero-section .display-4,
.hero-section h1 {
    font-size: 2.9rem;
    font-weight: 900;
    letter-spacing: -0.01em;
    margin-bottom: 1.2rem;
    color: #fff;
    text-shadow: 0 4px 24px rgba(0,0,0,0.13), 0 1px 0 #fff2;
    position: relative;
    z-index: 3;
}
.hero-section .lead {
    font-size: 1.38rem;
    font-weight: 500;
    color: #eaf6fb;
    margin-bottom: 2.7rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.10);
    position: relative;
    z-index: 3;
}
.category-pills {
    position: relative;
    z-index: 3;
}
/* Curved SVG divider at bottom of hero */
.hero-divider {
    display: block;
    width: 100%;
    height: 60px;
    margin-top: -1px;
    position: relative;
    z-index: 4;
}
@media (max-width: 991.98px) {
    .hero-section {
        padding: 5.5rem 0 2.5rem 0;
        min-height: 220px;
    }
    .hero-section .display-4,
    .hero-section h1 {
        font-size: 2.1rem;
    }
}
@media (max-width: 575.98px) {
    .hero-section {
        padding: 2.5rem 0 1.5rem 0;
        min-height: 120px;
    }
    .hero-section .display-4,
    .hero-section h1 {
        font-size: 1.2rem;
    }
}
/* --- End Glossy & Premium Hero Section Enhancements --- */

/* Ensure no awkward gap between header and hero */
.site-header + .hero-section { margin-top: 0; }
.hero-section + section, .hero-section + .featured-posts { margin-top: 0; } 

/* --- Featured Latest Post Banner (Homepage) --- */
.featured-latest-post {
    margin-top: 2rem;
    margin-bottom: 3.5rem;
}
.latest-post-card {
    display: flex;
    flex-direction: row;
    min-height: 320px;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.10);
    background: #fff;
    overflow: hidden;
}
.latest-post-img-wrap {
    width: 44%;
    min-width: 260px;
    max-width: 420px;
    background: #f3f4f8;
    display: flex;
    align-items: stretch;
    justify-content: center;
}
.latest-post-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    min-height: 220px;
    aspect-ratio: 16/9;
    transition: filter 0.18s, transform 0.18s;
}
.latest-post-img-wrap:hover .latest-post-img {
    filter: brightness(0.93) saturate(1.1);
    transform: scale(1.03);
}
.latest-post-card .card-body {
    flex: 1 1 0%;
    min-width: 0;
    background: #fff;
    border-radius: 0 18px 18px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.latest-post-card .badge {
    font-size: 0.98rem;
    font-weight: 600;
    border-radius: 999px;
    letter-spacing: 0.01em;
}
.latest-post-card .card-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}
.latest-post-card .card-text {
    font-size: 1.13rem;
    color: #444;
    margin-bottom: 1.2rem;
}
.latest-post-card .btn {
    font-size: 1.08rem;
    padding: 0.6rem 2rem;
    border-radius: 999px;
    font-weight: 600;
}
@media (max-width: 991.98px) {
    .latest-post-card {
        flex-direction: column;
        min-height: 0;
    }
    .latest-post-img-wrap {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        min-height: 180px;
    }
    .latest-post-card .card-body {
        border-radius: 0 0 18px 18px;
        padding: 2rem 1.2rem;
    }
    .latest-post-card .card-title {
        font-size: 1.3rem;
    }
}
@media (max-width: 575.98px) {
    .featured-latest-post {
        margin-top: 1.2rem;
        margin-bottom: 1.5rem;
    }
    .latest-post-card .card-title {
        font-size: 1.05rem;
    }
    .latest-post-card .card-text {
        font-size: 0.98rem;
    }
    .latest-post-img {
        min-height: 120px;
    }
}
/* --- End Featured Latest Post Banner --- */

/* --- Recent Posts Sidebar Widget (Full-Width Thumbnails) --- */
.sidebar-widget, .card.sidebar-widget {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: none;
    margin-bottom: 2rem;
}
.recent-posts-list {
    margin: 0;
    padding: 0;
}
.recent-posts-list li {
    margin-bottom: 2.2rem;
    padding-bottom: 0;
    border-bottom: none;
}
.sidebar-thumb-link {
    display: block;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 10px;
    background: #f3f4f8;
    box-shadow: 0 1px 8px rgba(0,0,0,0.08);
    margin-bottom: 0.5rem;
    transition: box-shadow 0.18s, transform 0.18s;
}
.sidebar-thumb {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    border-radius: 10px !important;
    background: #f3f4f8;
    aspect-ratio: 16/9;
    display: block;
}
.sidebar-thumb-link:hover .sidebar-thumb {
    filter: brightness(0.92) saturate(1.1);
    transform: scale(1.03);
}
.sidebar-title {
    font-size: 1.08rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0.15rem;
    transition: color 0.18s;
}
.sidebar-title:hover {
    color: var(--primary-color);
    text-decoration: underline;
}
.sidebar-date {
    font-size: 0.93rem;
    color: #8a99b3;
}
@media (max-width: 991.98px) {
    .sidebar-widget, .card.sidebar-widget {
        margin-bottom: 1.2rem;
    }
    .sidebar-thumb-link {
        aspect-ratio: 16/10;
    }
}
/* --- End Recent Posts Sidebar Widget --- */

/* Remove spacing for other sidebar widgets */
/* .widget-area > *:not(.sidebar-widget) { display: none !important; } */

/* --- Popular Posts Sidebar Widget --- */
.sidebar-widget.popular-posts, .card.sidebar-widget {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: none;
    margin-bottom: 2rem;
}
.popular-posts-list {
    margin: 0;
    padding: 0;
}
.popular-posts-list li {
    border-bottom: 1px solid #f1f3f6;
    padding-bottom: 0.7rem;
    margin-bottom: 0.7rem;
    transition: background 0.18s;
}
.popular-posts-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.popular-thumb-link {
    display: block;
    width: 54px;
    height: 54px;
    overflow: hidden;
    border-radius: 8px;
    background: #f3f4f8;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}
.popular-thumb {
    width: 54px !important;
    height: 54px !important;
    object-fit: cover;
    border-radius: 8px !important;
    background: #f3f4f8;
}
.popular-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0.15rem;
    transition: color 0.18s;
}
.popular-title:hover {
    color: var(--primary-color);
    text-decoration: underline;
}
.popular-date {
    font-size: 0.92rem;
    color: #8a99b3;
}
@media (max-width: 991.98px) {
    .sidebar-widget.popular-posts, .card.sidebar-widget {
        margin-bottom: 1.2rem;
    }
    .popular-thumb-link, .popular-thumb {
        width: 44px !important;
        height: 44px !important;
    }
}
/* --- End Popular Posts Sidebar Widget --- */ 

/* --- Featured Latest Split Card (Arista-like) --- */
.latest-split-card {
    display: flex;
    flex-direction: row;
    min-height: 320px;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.10);
    background: #fff;
    overflow: hidden;
    margin-bottom: 2.5rem;
}
.latest-split-img-wrap {
    width: 48%;
    min-width: 260px;
    max-width: 600px;
    background: #f3f4f8;
    display: flex;
    align-items: stretch;
    justify-content: center;
}
.latest-split-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    min-height: 220px;
    aspect-ratio: 16/9;
    transition: filter 0.18s, transform 0.18s;
}
.latest-split-img-wrap:hover .latest-split-img {
    filter: brightness(0.93) saturate(1.1);
    transform: scale(1.03);
}
.latest-split-card .card-body {
    flex: 1 1 0%;
    min-width: 0;
    background: #fff;
    border-radius: 0 8px 8px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2.5rem 2.5rem 2.5rem 2rem;
}
.latest-split-card .card-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
    line-height: 1.15;
}
.latest-split-card .card-text {
    font-size: 1.18rem;
    color: #444;
    margin-bottom: 1.2rem;
}
.latest-split-card .btn {
    font-size: 1.08rem;
    padding: 0.6rem 2rem;
    border-radius: 999px;
    font-weight: 600;
}
.latest-split-card .badge {
    font-size: 0.98rem;
    font-weight: 600;
    border-radius: 999px;
    letter-spacing: 0.01em;
}
.latest-split-card .display-6 {
    font-size: 2.2rem;
    font-weight: 800;
}
@media (max-width: 991.98px) {
    .latest-split-card {
        flex-direction: column;
        min-height: 0;
    }
    .latest-split-img-wrap {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        min-height: 180px;
    }
    .latest-split-card .card-body {
        border-radius: 0 0 8px 8px;
        padding: 2rem 1.2rem;
    }
    .latest-split-card .card-title, .latest-split-card .display-6 {
        font-size: 1.3rem;
    }
}
@media (max-width: 575.98px) {
    .latest-split-card .card-title, .latest-split-card .display-6 {
        font-size: 1.05rem;
    }
    .latest-split-card .card-text {
        font-size: 0.98rem;
    }
    .latest-split-img {
        min-height: 120px;
    }
    .latest-split-card .card-body {
        padding: 1.2rem 0.7rem;
    }
}
/* --- End Featured Latest Split Card --- */ 

/* --- Unified Card Shadow & Border Radius --- */
.card, .post-card, .latest-split-card, .sidebar-widget, .card.sidebar-widget {
    box-shadow: 0 2px 12px rgba(0,0,0,0.06) !important;
    border-radius: 8px !important;
    background: #fff;
    border: none;
}
/* Remove heavier shadow from split card */
.latest-split-card {
    /* box-shadow now unified above */
    margin-bottom: 2.5rem;
}
/* Remove any extra shadow from other cards */
.post-card, .sidebar-widget, .card.sidebar-widget {
    /* box-shadow now unified above */
}
/* --- End Unified Card Shadow & Border Radius --- */ 

/* --- Card Hover Animations --- */
.card, .post-card, .latest-split-card, .sidebar-widget, .card.sidebar-widget {
    transition: box-shadow 0.22s cubic-bezier(.4,0,.2,1), transform 0.22s cubic-bezier(.4,0,.2,1);
}
.card:hover, .post-card:hover, .latest-split-card:hover, .sidebar-widget:hover, .card.sidebar-widget:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.13) !important;
    transform: translateY(-4px) scale(1.01);
    z-index: 2;
}
/* Image zoom on card hover */
.card:hover img, .post-card:hover img, .latest-split-card:hover img, .sidebar-widget:hover img, .card.sidebar-widget:hover img {
    transform: scale(1.035);
    transition: transform 0.22s cubic-bezier(.4,0,.2,1);
}
.card img, .post-card img, .latest-split-card img, .sidebar-widget img, .card.sidebar-widget img {
    transition: transform 0.22s cubic-bezier(.4,0,.2,1);
}

/* Main Posts Section - Post Cards with Dynamic Thumbnails */
.main-posts {
    padding: var(--spacing-3xl) 0;
}

.main-posts .vue-category-filter {
    margin-bottom: var(--spacing-xl);
}

.main-posts .post-card {
    margin-bottom: var(--spacing-xl);
    border: none;
    background: #ffffff;
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    transition: var(--transition);
    overflow: hidden;
    min-height: 200px;
    margin-bottom: 2rem;
}

/* Post Card Thumbnail and Content Layout */
.post-thumbnail-wrap {
    position: relative;
    min-height: 200px;
}

.post-thumbnail-wrap a {
    display: block;
    height: 100%;
    position: relative;
}

.post-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.post-thumbnail-wrap:hover .post-thumbnail {
    transform: scale(1.05);
}

.post-content-wrap {
    padding: var(--card-padding);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: .5rem 2rem 1rem 1rem;
}

.post-content-wrap .entry-header {
    margin-bottom: var(--spacing-md);
}

.post-content-wrap .entry-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.post-content-wrap .entry-content .btn {
    align-self: flex-start;
    margin-top: var(--spacing-md);
}

/* Read More Link Styling */
.read-more-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    margin-top: -1rem;
    align-self: flex-end;
    margin-left: auto;
}

.read-more-link:hover {
    color: var(--accent-color);
    text-decoration: none;
    transform: translateX(4px);
}

.read-more-link .bi {
    transition: var(--transition);
    margin-left: 0.25rem;
}

.read-more-link:hover .bi {
    transform: translateX(2px);
}

/* Responsive adjustments for post cards */
@media (max-width: 991.98px) {
    .post-thumbnail-wrap {
        min-height: 180px;
    }
    
    .post-content-wrap {
        padding: var(--card-padding-sm);
    }
}

@media (max-width: 575.98px) {
    .post-thumbnail-wrap {
        min-height: 160px;
    }
    
    .post-content-wrap {
        padding: var(--spacing-md);
    }
}

/* Category Page Styles */
.category-page {
    background: #f8f9fa;
}

.category-hero {
    min-height: 300px;
    display: flex;
    align-items: center;
    background-color: var(--dark-bg);
    background-size: cover;
    background-position: center;
    position: relative;
    margin-bottom: 3rem;
    padding: 4rem 0;
}

.category-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    opacity: 0.9;
}

.category-hero .container {
    position: relative;
    z-index: 1;
}

.category-hero .entry-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.category-hero .category-badge {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.category-hero .category-badge:hover {
    background: rgba(255, 255, 255, 0.3);
    color: #ffffff;
    text-decoration: none;
}

/* Category Posts Grid */
.category-posts {
    background: #ffffff;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.category-post-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-post-card:hover {
    transform: translateY(-5px);
}

.category-post-card .card {
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.category-post-card:hover .card {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

.post-image-wrap {
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
}

.post-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-post-card:hover .post-image {
    transform: scale(1.05);
}

.category-post-card .card-body {
    padding: 1.5rem;
}

.category-post-card .category-link {
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-post-card .entry-title {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

.category-post-card .entry-title a {
    color: var(--text-color, #333);
    text-decoration: none;
    transition: color 0.2s ease;
}

.category-post-card .entry-title a:hover {
    color: var(--primary-color);
}

.category-post-card .entry-meta {
    font-size: 0.85rem;
}

.category-post-card .entry-meta a {
    color: var(--text-muted, #6c757d);
    text-decoration: none;
    transition: color 0.2s ease;
}

.category-post-card .entry-meta a:hover {
    color: var(--primary-color);
}

.category-post-card .entry-excerpt {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-muted, #6c757d);
}

.category-post-card .entry-footer {
    padding-top: 0;
    border: none;
}

.author-post-card .entry-footer {
    padding-top: 0;
    border: none;
}

/* Entry Footer Styling for Read More Links */
.entry-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #f1f3f4;
    margin-top: auto;
}

/* Responsive Category Page */
@media (max-width: 991.98px) {
    .posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 1.5rem;
    }
    
    .category-hero {
        padding: 3rem 0;
    }
    
    .category-hero .entry-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 767.98px) {
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .category-hero {
        padding: 2rem 0;
        min-height: 250px;
    }
    
    .category-hero .entry-title {
        font-size: 2rem;
    }
    
    .category-post-card .card-body {
        padding: 1.25rem;
    }
}

@media (max-width: 575.98px) {
    .category-hero {
        padding: 1.5rem 0;
        min-height: 200px;
    }
    
    .category-hero .entry-title {
        font-size: 1.75rem;
    }
    
    .category-post-card .card-body {
        padding: 1rem;
    }
}

/* Author Page Styles */
.author-page {
    background: #f8f9fa;
}

.author-hero {
    min-height: 300px;
    display: flex;
    align-items: center;
    background-color: var(--dark-bg);
    background-size: cover;
    background-position: center;
    position: relative;
    margin-bottom: 3rem;
    padding: 4rem 0;
}

.author-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    opacity: 0.9;
}

.author-hero .container {
    position: relative;
    z-index: 1;
}

.author-hero .entry-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.author-hero .author-avatar-wrapper {
    position: relative;
    display: inline-block;
}

.author-hero .author-avatar {
    width: 120px;
    height: 120px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.author-hero:hover .author-avatar {
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

/* Author Posts Grid */
.author-posts {
    background: #ffffff;
}

.author-post-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.author-post-card:hover {
    transform: translateY(-5px);
}

.author-post-card .card {
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.author-post-card:hover .card {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

/* Responsive Author Page */
@media (max-width: 991.98px) {
    .author-hero {
        padding: 3rem 0;
    }
    
    .author-hero .entry-title {
        font-size: 2.5rem;
    }
    
    .author-hero .author-avatar {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 767.98px) {
    .author-hero {
        padding: 2rem 0;
        min-height: 250px;
    }
    
    .author-hero .entry-title {
        font-size: 2rem;
    }
    
    .author-hero .author-avatar {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 575.98px) {
    .author-hero {
        padding: 1.5rem 0;
        min-height: 200px;
    }
    
    .author-hero .entry-title {
        font-size: 1.75rem;
    }
    
    .author-hero .author-avatar {
        width: 70px;
        height: 70px;
    }
}

/* --- Ultra Minimal Modern Pagination (No Item Borders) --- */
.pagination {
    display: inline-flex;
    flex-wrap: wrap;
    padding-left: 0;
    list-style: none;
    margin: 0;
    box-shadow: none;
    overflow: hidden;
    min-height: 48px;
}

.pagination .page-item {
    margin: 0;
    border: none;
    background: none;
}

.pagination .page-link {
    border: none;
    background: none;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 1.25rem;
    padding: 0.5rem 0.9rem;
    min-width: 36px;
    text-align: center;
    border-radius: 0;
    box-shadow: none;
    transition: color 0.15s, text-decoration 0.15s, background 0.15s;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.pagination .page-link:focus,
.pagination .page-link:hover {
    color: var(--accent-color);
    text-decoration: underline;
    background: none;
}

.pagination .page-item.active .page-link {
    color: #fff;
    background: var(--primary-color);
    font-weight: 700;
    text-decoration: underline;
    pointer-events: none;
    box-shadow: none;
}

.pagination .page-item.disabled .page-link {
    color: #b0b0b0;
    background: none;
    pointer-events: none;
    opacity: 0.7;
    text-decoration: none;
}

.pagination .bi {
    font-size: 1.25rem;
    font-weight: 600;
}

.pagination .nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination .page-numbers {
    min-width: 36px;
    height: 36px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2px;
    color: var(--accent-color   );
}

.pagination .page-numbers.current {
    border: 1px solid #e3e6e8;
    box-shadow: var(--box-shadow);
    border-radius: 2rem;
    background: var(--primary-color);
    color: #fff;
}

/* Remove extra spacing for sidebar/main wrappers */
.sidebar-pagination, .pagination-wrapper {
    border: none;
    padding-top: 0;
    margin-top: 2rem;
    background: none;
    box-shadow: none;
}

@media (max-width: 575.98px) {
    .pagination .page-link {
        padding: 0.4rem 0.6rem;
        font-size: 1.05rem;
        min-width: 28px;
    }
    .pagination {
        min-height: 38px;
    }
}

/* All Posts List Styling */
.all-posts-list li {
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.all-posts-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.all-posts-thumb {
    width: 50px;
    height: 50px;
    object-fit: cover;
    transition: var(--transition);
}

.all-posts-thumb-link:hover .all-posts-thumb {
    transform: scale(1.05);
}

.all-posts-title {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 0.25rem;
    transition: var(--transition);
}

.all-posts-title:hover {
    color: var(--primary-color) !important;
    text-decoration: none;
}

.all-posts-date {
    font-size: 0.8rem;
}

/* Popular Posts Styling */
.popular-post-card {
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 120, 212, 0.15);
}

.popular-post-card:hover {
    box-shadow: 0 6px 20px rgba(0, 120, 212, 0.25);
}

.popular-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--primary-color);
    color: #ffffff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.popular-badge .bi {
    font-size: 0.75rem;
}

.popularity-score {
    font-weight: 600;
    font-size: 0.8rem;
}

.popularity-score .bi {
    font-size: 0.7rem;
}
/* --- End Card Hover Animations --- */ 

/* --- Sidebar Header Styles --- */
.sidebar-header {
    padding-left: 2px;
    padding-right: 2px;
    margin-bottom: 1.5rem;
    border-bottom: 1.5px solid #e5e7eb;
    padding-bottom: 0.7rem;
}
.sidebar-header .bi {
    vertical-align: middle;
    opacity: 0.85;
}
.sidebar-header h3 {
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    margin-bottom: 0;
}
@media (max-width: 991.98px) {
    .sidebar-header {
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
    }
    .sidebar-header h3 {
        font-size: 1rem;
    }
}
/* --- End Sidebar Header Styles --- */ 

/* --- Header & Hero Background Image (Unified) --- */
.header-hero-bg {
    position: relative;
    background-image: url('/blog-coderlook/wp-content/uploads/2025/07/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.header-hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.15) 100%);
    z-index: 0;
    pointer-events: none;
}
.header-hero-bg > * {
    position: relative;
    z-index: 1;
}

.site-header, .featured-latest-post {
    background: none !important;
    color: #fff;
}

@media (max-width: 991.98px) {
    .header-hero-bg {
        background-size: cover;
    }
}
/* --- End Header & Hero Background Image (Unified) --- */ 

/* --- Modern Header Redesign --- */
.site-header {
    background: #ffffff !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background 0.3s, box-shadow 0.3s;
}

.site-title, .navbar-brand {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    margin: 0;
    color: var(--primary-color);
    transition: color 0.2s, text-decoration 0.2s;
}
.site-title a, .navbar-brand {
    color: var(--primary-color) !important;
    text-decoration: none !important;
    border-bottom: 2px solid transparent;
}

.site-header .navbar-nav {
    gap: 1.5rem;
}
.site-header .nav-link {
    font-size: 1.08rem;
    font-weight: 600;
    color: #222;
    padding: 0.5rem 0.75rem;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-bottom 0.2s;
}
.site-header .nav-link:hover, .site-header .nav-link.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    background: none;
}

.site-header .btn-primary {
    padding: 0.5rem 2rem;
    font-size: 1.1rem;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(0,194,203,0.10);
    font-weight: 700;
    letter-spacing: 0.01em;
    margin-left: 1rem;
}
.site-header .btn-primary:hover, .site-header .btn-primary:focus {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
    box-shadow: 0 4px 16px rgba(0,194,203,0.13);
}

.site-header .btn-link {
    color: #222;
    font-size: 1.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 50%;
    transition: background 0.2s, color 0.2s;
    margin-right: 0.5rem;
}
.site-header .btn-link:hover, .site-header .btn-link:focus {
    color: var(--primary-color);
}

.site-header .container {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

@media (max-width: 991.98px) {
    .site-header .navbar-nav {
        gap: 0.5rem;
    }
    .site-header .btn-primary {
        padding: 0.5rem 1.2rem;
        font-size: 1rem;
        margin-left: 0.5rem;
    }
    .site-header .container {
        min-height: 48px;
    }
}

@media (max-width: 575.98px) {
    .site-header {
        padding: 0.4rem 0;
    }
    .site-header .navbar-brand, .site-title {
        font-size: 1.2rem;
    }
    .site-header .btn-primary {
        padding: 0.4rem 0.9rem;
        font-size: 0.95rem;
    }
} 

/* Comments Styling */
.comments-area {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.comments-title {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.comments-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
}

.comment-list {
    margin: 0;
    padding: 0;
}

.comment-list .children {
    margin-left: 4rem;
    padding-left: 0;
    list-style: none;
}

@media (max-width: 768px) {
    .comment-list .children {
        margin-left: 2rem;
    }
}

.comment-body {
    transition: transform 0.2s ease-in-out;
}

.comment-body:hover {
    transform: translateY(-2px);
}

.comment-author .avatar {
    width: 50px;
    height: 50px;
    border: 2px solid var(--primary-color);
    padding: 2px;
}

.comment-metadata a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.2s ease;
}

.comment-metadata a:hover {
    color: var(--primary-color);
}

.comment-content {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
}

.comment-content p:last-child {
    margin-bottom: 0;
}

.reply-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.reply-link a:hover {
    color: var(--accent-color);
    text-decoration: none;
}

.comment-respond {
    margin-top: 3rem;
    padding: 2rem;
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.comment-form label {
    font-weight: 500;
    color: var(--secondary-color);
}

.comment-form .required {
    color: #dc3545;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    border: 1px solid #dee2e6;
    transition: all 0.2s ease;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 194, 203, 0.25);
}

.comment-form .btn-primary {
    padding: 0.5rem 2rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.comment-notes {
    color: #6c757d;
    font-size: 0.9rem;
}

.comment-navigation {
    margin: 2rem 0;
}

.comment-navigation .nav-links {
    display: flex;
    justify-content: space-between;
}

.comment-navigation a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.comment-navigation a:hover {
    color: var(--accent-color);
}

.no-comments {
    margin: 2rem 0;
    padding: 1rem;
    background: #e9ecef;
    border-radius: var(--border-radius);
    text-align: center;
    color: #6c757d;
}

/* Comment Reply Title */
.reply-title {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

#cancel-comment-reply-link {
    color: #dc3545;
    text-decoration: none;
    font-size: 0.9rem;
    margin-left: 1rem;
    transition: color 0.2s ease;
}

#cancel-comment-reply-link:hover {
    color: #c82333;
}

/* Nested Comments Styling */
.comment-list .children .comment-body {
    background: rgba(255, 255, 255, 0.8);
    border-left: 3px solid var(--primary-color);
}

/* Comment Form Submit Button Animation */
.form-submit .btn-primary {
    position: relative;
    overflow: hidden;
}

.form-submit .btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease-out, height 0.3s ease-out;
}

.form-submit .btn-primary:hover::after {
    width: 200%;
    height: 200%;
}

/* Comment Author Name Highlight */
.bypostauthor > .comment-body {
    border: 1px solid var(--primary-color);
}

.bypostauthor > .comment-body::before {
    content: 'Author';
    position: absolute;
    top: 0;
    right: 1rem;
    background: var(--primary-color);
    color: #fff;
    padding: 0.2rem 0.8rem;
    font-size: 0.8rem;
    border-radius: 0 0 8px 8px;
} 

/* Single Post Layout */
.single-post {
    margin-bottom: 2rem;
}

.single-post .entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
}

.single-post .entry-content p {
    margin-bottom: 1.5rem;
}

.single-post .entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin: 2rem 0;
}

.single-post .entry-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    background: rgba(0, 194, 203, 0.05);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.single-post .entry-content blockquote p:last-child {
    margin-bottom: 0;
}

.single-post .entry-content h2,
.single-post .entry-content h3,
.single-post .entry-content h4 {
    margin-top: 2.5rem;
    margin-bottom: 1.2rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.single-post .entry-content ul,
.single-post .entry-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.2rem;
}

.single-post .entry-content li {
    margin-bottom: 0.5rem;
}

/* Post Hero Section */
.post-hero {
    min-height: 300px;
    display: flex;
    align-items: center;
    background-color: var(--dark-bg);
    background-size: cover;
    background-position: center;
    position: relative;
    margin-bottom: 3rem;
    padding: 4rem 0;
}

.post-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.8) 100%);
    z-index: 1;
}

.post-hero .container {
    position: relative;
    z-index: 2;
}

.post-hero .entry-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.category-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 20px;
    font-size: 0.9rem;
    text-decoration: none;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.category-badge:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: translateY(-2px);
}

/* Author Bio Card */
.author-bio {
    margin: 3rem 0;
}

.author-bio .avatar {
    width: 120px;
    height: 120px;
    border: 3px solid var(--primary-color);
    padding: 3px;
}

/* Related Posts */
.related-posts {
    margin: 3rem 0;
}

.related-posts .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-posts .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

.related-posts .card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Share Buttons */
.share-buttons .btn {
    width: 35px;
    height: 35px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.share-buttons .btn:hover {
    transform: translateY(-2px);
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .post-hero {
        min-height: 250px;
        padding: 3rem 0;
    }

    .post-hero .entry-title {
        font-size: 2rem;
    }

    .single-post .entry-content {
        font-size: 1rem;
    }
}

@media (max-width: 767.98px) {
    .post-hero {
        min-height: 200px;
        padding: 2.5rem 0;
    }

    .post-hero .entry-title {
        font-size: 1.8rem;
    }

    .author-avatar {
        width: 80px !important;
        height: 80px !important;
    }

    .author-info h3 {
        font-size: 1.1rem;
    }

    .author-info p {
        font-size: 0.95rem;
    }

    .author-links {
        flex-direction: column;
        gap: 0.5rem;
    }

    .author-links .btn {
        width: 100%;
        justify-content: center;
    }

    .related-posts .card-img-top {
        height: 160px;
    }
} 

/* Home Page Specific Styles */
.site-main.home-page {
    background: transparent !important;
    padding-top: 2rem;
}

.site-main.home-page .featured-latest-post {
    margin-top: 0;
}

.site-main.home-page .latest-split-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.site-main.home-page .latest-split-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.site-main.home-page .post-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.site-main.home-page .post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.site-main.home-page .sidebar-widget {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.site-main.home-page .post-thumbnail-wrap {
    overflow: hidden;
    border-radius: 12px 0 0 12px;
}

@media (max-width: 767.98px) {
    .site-main.home-page .post-thumbnail-wrap {
        border-radius: 12px 12px 0 0;
    }
    
    .site-main.home-page {
        padding-top: 1rem;
    }
} 

/* Elementor Compatibility */
.elementor-page .site-header {
    z-index: 1000;
}

.elementor-page .site-main {
    padding: 0;
}

.elementor-page .content-area {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
}

.elementor-page .entry-content {
    margin: 0;
}

/* Fix Elementor section full width */
.elementor-section.elementor-section-boxed > .elementor-container {
    max-width: 1140px;
}

/* Elementor buttons match theme style */
.elementor-button {
    font-family: var(--font-family);
    font-weight: 500;
    border-radius: var(--border-radius) !important;
    transition: var(--transition);
}

/* Elementor widget titles match theme style */
.elementor-widget-heading .elementor-heading-title {
    font-family: var(--font-family);
    line-height: 1.3;
}

/* Elementor text widget match theme style */
.elementor-widget-text-editor {
    font-family: var(--font-family);
    line-height: 1.6;
}

/* Elementor form fields match theme style */
.elementor-field-group .elementor-field-textual {
    font-family: var(--font-family);
    border-radius: var(--border-radius);
}

.elementor-field-group .elementor-button {
    border-radius: var(--border-radius);
}

/* Elementor lightbox z-index fix */
.elementor-lightbox {
    z-index: 999999;
}

/* Elementor accordion match theme style */
.elementor-accordion .elementor-accordion-item {
    border-radius: var(--border-radius);
    overflow: hidden;
}

/* Elementor tabs match theme style */
.elementor-widget-tabs .elementor-tab-title {
    font-family: var(--font-family);
    font-weight: 600;
}

/* Elementor testimonial widget match theme style */
.elementor-testimonial-content {
    font-family: var(--font-family);
    line-height: 1.6;
}

.elementor-testimonial-name {
    font-family: var(--font-family);
    font-weight: 600;
}

/* Elementor icon box match theme style */
.elementor-icon-box-title {
    font-family: var(--font-family);
    font-weight: 600;
}

.elementor-icon-box-description {
    font-family: var(--font-family);
    line-height: 1.6;
}

/* Responsive Elementor styles */
@media (max-width: 1199px) {
    .elementor-section.elementor-section-boxed > .elementor-container {
        max-width: 960px;
    }
}

@media (max-width: 991px) {
    .elementor-section.elementor-section-boxed > .elementor-container {
        max-width: 720px;
    }
}

@media (max-width: 767px) {
    .elementor-section.elementor-section-boxed > .elementor-container {
        max-width: 540px;
    }
} 

/* Search Modal Styles */
.modal-backdrop {
    z-index: 1040;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.modal {
    z-index: 1050;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    outline: 0;
}

#searchModal {
    background: rgba(0, 0, 0, 0.5);
}

#searchModal .modal-dialog {
    position: relative;
    max-width: 600px;
    margin: 1.75rem auto;
    pointer-events: none;
}

#searchModal .modal-content {
    position: relative;
    background: #ffffff;
    border: none;
    border-radius: 16px;
    max-height: calc(100vh - 3.5rem);
    display: flex;
    flex-direction: column;
    pointer-events: auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

#searchModal .modal-header {
    position: sticky;
    top: 0;
    background: #ffffff;
    border-bottom: none;
    padding: 1.5rem 1.5rem 1rem;
    z-index: 1060;
    border-radius: 16px 16px 0 0;
}

#searchModal .modal-body {
    padding: 0 1.5rem 1.5rem;
    overflow-y: auto;
    flex: 1 1 auto;
}

#searchModal .search-form {
    position: relative;
    margin-bottom: 1rem;
}

#searchModal .input-group {
    background: var(--light-bg);
    border-radius: 12px;
    padding: 0.5rem;
}

#searchModal .form-control {
    background: transparent;
    border: none;
    padding: 0.75rem 1rem;
    font-size: 1.1rem;
    box-shadow: none !important;
}

#searchModal .form-control:focus {
    background: transparent;
}

#searchModal .btn-primary {
    border-radius: 8px;
    padding: 0.75rem 1.25rem;
    transition: all 0.2s;
}

#searchModal .btn-primary:disabled {
    opacity: 0.7;
}

/* Search Results Styling */
.search-results {
    border-radius: 12px;
    background: var(--light-bg);
    overflow: hidden;
}

.search-result-item {
    padding: 1.25rem;
    transition: all 0.2s;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: rgba(var(--primary-color-rgb), 0.05);
}

.search-result-item .bi {
    font-size: 1.1rem;
    opacity: 0.8;
    flex-shrink: 0;
}

.search-result-item h4 {
    color: var(--heading-color);
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    line-height: 1.4;
}

.search-result-item p {
    color: var(--text-color);
    font-size: 0.875rem;
    margin: 0;
    opacity: 0.75;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-item .search-meta {
    margin-top: 0.5rem;
}

.search-result-item .badge {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
}

.search-result-item .badge i {
    font-size: 0.7rem;
}

.search-result-item .badge.bg-light {
    background-color: #f8f9fa !important;
    color: #6c757d !important;
    border-color: #dee2e6 !important;
}

/* Quick Search Filters Styles */
.quick-filters {
    border-top: 1px solid #e9ecef;
    padding-top: 1rem;
}

.quick-filters .form-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: #6c757d;
}

.quick-filters .form-select {
    font-size: 0.875rem;
    border-color: #dee2e6;
    border-radius: 6px;
}

.quick-filters .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 194, 203, 0.25);
}

.active-filters .badge {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
}

.active-filters .btn-close {
    padding: 0;
    margin: 0;
    background: none;
    border: none;
    opacity: 0.8;
}

.active-filters .btn-close:hover {
    opacity: 1;
}

/* Loading and No Results States */
.spinner-border {
    width: 2rem;
    height: 2rem;
    border-width: 0.15em;
}

.no-results-message {
    padding: 2rem 1rem;
    background: var(--light-bg);
    border-radius: 12px;
}

.no-results-message i {
    font-size: 2rem;
    opacity: 0.5;
}

.no-results-message p {
    font-size: 0.95rem;
    opacity: 0.7;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    #searchModal .modal-dialog {
        margin: 1rem;
    }

    #searchModal .modal-content {
        border-radius: 12px;
    }

    #searchModal .form-control {
        font-size: 1rem;
        padding: 0.625rem 0.875rem;
    }

    #searchModal .btn-primary {
        padding: 0.625rem 1rem;
    }

    .search-result-item {
        padding: 0.875rem 1rem;
    }
} 

/* Logo and Site Title Styles */
.site-branding .custom-logo-link {
    display: flex;
    align-items: center;
}

.site-branding .custom-logo {
    max-height: 40px;
    width: auto;
}

.footer-brand .custom-logo-link {
    display: flex;
    align-items: center;
}

.footer-brand .custom-logo {
    max-height: 35px;
    width: auto;
}

.site-info .custom-logo-link {
    display: flex;
    align-items: center;
}

.site-info .custom-logo {
    max-height: 25px;
    width: auto;
}

/* Company Logo Styles */
.footer-brand .company-logo {
    max-height: 45px;
    width: auto;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-brand .company-logo.logo-only {
    max-height: 60px;
    margin: 0;
}

.footer-brand:hover .company-logo {
    transform: scale(1.05);
}

/* Company Social Links Styles */
.company-social-links {
    margin-top: 2rem;
}

.company-social-links h4 {
    font-weight: 600;
    margin-bottom: 1.25rem;
    font-size: 1rem;
}

.company-social-links .social-icons {
    gap: 0.75rem;
}

.company-social-links .btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-width: 1px;
    transition: all 0.3s ease;
}

.company-social-links .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.company-social-links .btn i {
    font-size: 1.1rem;
}

/* Footer General Spacing Improvements */
.site-footer .container {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.site-footer .row > div {
    margin-bottom: 2rem;
}

.site-footer h3, 
.site-footer h4, 
.site-footer h5 {
    margin-bottom: 1.25rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.site-footer p {
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.footer-brand {
    margin-bottom: 2rem;
}

.footer-brand h3 {
    margin-bottom: 1.25rem;
    font-size: 1.3rem;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    line-height: 1.5;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #fff !important;
    text-decoration: none;
    padding-left: 0.25rem;
}

@media (max-width: 768px) {
    .site-branding .custom-logo {
        max-height: 35px;
    }
    
    .footer-brand .custom-logo {
        max-height: 30px;
    }
    
    .footer-brand .company-logo {
        max-height: 50px;
    }
    
    .footer-brand .company-logo {
        max-height: 35px;
    }
    
    .footer-brand .company-logo.logo-only {
        max-height: 45px;
    }
    
    .company-social-links {
        margin-top: 1.5rem;
    }
    
    .company-social-links .btn {
        width: 32px;
        height: 32px;
    }
    
    .company-social-links .btn i {
        font-size: 0.9rem;
    }
    
    .site-footer .container {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    .site-footer .row > div {
        margin-bottom: 1.5rem;
    }
    
    .site-footer h3, 
    .site-footer h4, 
    .site-footer h5 {
        margin-bottom: 1rem;
        font-size: 1rem;
    }
    
    .site-footer p {
        line-height: 1.5;
        margin-bottom: 1.25rem;
        font-size: 0.9rem;
    }
    
    .footer-brand {
        margin-bottom: 1.5rem;
    }
    
    .footer-brand h3 {
        font-size: 1.2rem;
    }
    
    .footer-links li {
        margin-bottom: 0.5rem;
    }
    
    .footer-links a {
        font-size: 0.85rem;
    }
    
    .company-social-links h4 {
        font-size: 0.95rem;
    }
    
    .site-info .custom-logo {
        max-height: 20px;
    }
}

/* Pagination Styles */
.pagination-wrapper {
    border-top: 1px solid #e5e7eb;
    padding-top: 2rem;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

/* Mobile-friendly pagination */
@media (max-width: 768px) {
    .pagination-wrapper {
        padding-top: 1.5rem;
    }
    
    .pagination .page-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
        min-width: 40px;
        min-height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .pagination .page-item:not(:first-child) .page-link,
    .pagination .page-item:not(:last-child) .page-link {
        margin: 0 0.125rem;
    }
}

/* Hide Screen Reader Text */
.screen-reader-text,
.sr-only {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Subscribe Modal Styles */
#subscribeModal .modal-content {
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

#subscribeModal .modal-header {
    padding: 1.5rem 1.5rem 0.5rem;
    border-bottom: none;
}

#subscribeModal .modal-body {
    padding: 0.5rem 1.5rem 1.5rem;
}

#subscribeModal .modal-title {
    font-weight: 700;
    color: var(--secondary-color);
}

.subscribe-form .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border: 1px solid #e5e7eb;
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
}

.subscribe-form .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    padding: 0.75rem 1.5rem;
}

.subscribe-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 194, 203, 0.1);
}

.subscribe-form .alert {
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
}

.subscribe-form .alert-success {
    background-color: rgba(0, 194, 203, 0.1);
    border-color: rgba(0, 194, 203, 0.2);
    color: var(--primary-color);
}

.subscribe-form .alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    border-color: rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

@media (max-width: 768px) {
    .subscribe-form .form-control,
    .subscribe-form .btn {
        padding: 0.625rem 1rem;
        font-size: 0.95rem;
    }
    
    #subscribeModal .modal-dialog {
        margin: 1rem;
    }
}

/* Mobile touch improvements for header */
@media (max-width: 768px) {
    .site-header .btn-link {
        min-width: 40px;
        min-height: 40px;
        padding: 0.375rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .site-header .btn-primary {
        min-height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Improve touch targets */
    .site-header .btn-link,
    .site-header .btn-primary {
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Better spacing for mobile */
    .site-header .container {
        gap: 0.5rem;
    }
}