/*
Theme Name: Elite Services
Description: Professional plumbing and air conditioning services theme with ACF Pro integration
Author: Elite Services
Version: 1.0.0
Text Domain: elite-services
Domain Path: /languages
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
    --primary-color: #0066cc;
    --secondary-color: #004d99;
    --accent-color: #F37028;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --transition: all 0.3s ease;
}

/* Global Styles */
body {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    line-height: 1.6;
    padding-top: 0;
    color: #333;
}

/* Hero Section Enhancements */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero.has-background {
    background-attachment: fixed !important;
}

@media (max-width: 768px) {
    .hero.has-background {
        background-attachment: scroll !important;
    }
}

.hero-content {
    position: relative;
    z-index: 3;
}

.hero-contact-form {
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* Top Contact Bar */
.top-contact-bar {
    background: #2c3e50 !important;
    padding: 12px 0 !important;
    font-size: 14px !important;
    position: relative;
    z-index: 1040;
    min-height: 45px;
    display: block !important;
    width: 100% !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.top-contact-bar *,
.top-contact-bar .container,
.top-contact-bar .row,
.top-contact-bar .col-md-8,
.top-contact-bar .col-md-4 {
    background: transparent !important;
    background-color: transparent !important;
}

.top-contact-bar .container {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
}

.top-contact-bar .row {
    width: 100% !important;
    margin: 0 !important;
    background: transparent !important;
}

.top-contact-bar .contact-info {
    display: flex !important;
    align-items: center !important;
    background: transparent !important;
}

.top-contact-bar .contact-phone,
.top-contact-bar .contact-email {
    color: #ffffff !important;
    margin-right: 30px !important;
    display: inline-flex !important;
    align-items: center !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    background: transparent !important;
    background-color: transparent !important;
}

.top-contact-bar .contact-info i,
.top-contact-bar .fas {
    margin-right: 8px !important;
    color: #F37028 !important;
    font-size: 14px !important;
    display: inline-block !important;
    background: transparent !important;
}

.top-contact-bar .top-right-info {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    background: transparent !important;
}

.top-contact-bar .business-hours {
    color: #ffffff !important;
    margin-right: 20px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    background: transparent !important;
}

.top-contact-bar .language-switcher {
    display: flex !important;
    align-items: center !important;
    background: transparent !important;
}

.top-contact-bar .lang-link {
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    margin: 0 5px !important;
    font-size: 14px !important;
    background: transparent !important;
}

.top-contact-bar .lang-separator {
    color: #ffffff !important;
    margin: 0 5px !important;
    font-size: 14px !important;
    background: transparent !important;
}

.top-contact-bar .lang-link:hover {
    color: #F37028 !important;
}

/* Override Bootstrap classes that might interfere */
.top-contact-bar .container,
.top-contact-bar .container-fluid,
.top-contact-bar .row,
.top-contact-bar .col,
.top-contact-bar .col-md-8,
.top-contact-bar .col-md-4,
.top-contact-bar [class*="col-"] {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
}

.top-contact-bar .d-flex,
.top-contact-bar .align-items-center,
.top-contact-bar .justify-content-end,
.top-contact-bar .text-end {
    background: transparent !important;
    background-color: transparent !important;
}

/* Main Navigation */
.navbar {
    background: #fff !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 15px 0;
    position: relative;
    z-index: 1030;
    border-bottom: 4px solid #F37028;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: #333 !important;
    text-decoration: none;
    margin-right: 2rem;
}

.navbar-brand:hover {
    color: #333 !important;
}

/* Brand and Logo Styling */
.navbar-brand {
    text-decoration: none;
}

.custom-logo-container {
    margin-right: 15px;
}

.logo-container {
    width: 55px;
    height: 55px;
    margin-right: 15px;
    position: relative;
}

.house-base {
    position: absolute;
    bottom: 8px;
    left: 10px;
    width: 35px;
    height: 25px;
    background: #0066cc;
    border-radius: 2px;
}

.house-roof {
    position: absolute;
    top: 8px;
    left: 5px;
    width: 0;
    height: 0;
    border-left: 22.5px solid transparent;
    border-right: 22.5px solid transparent;
    border-bottom: 20px solid #F37028;
}

.house-door {
    position: absolute;
    bottom: 8px;
    left: 22px;
    width: 8px;
    height: 15px;
    background: #fff;
    border-radius: 1px;
}

.house-window-left {
    position: absolute;
    bottom: 20px;
    left: 15px;
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 1px;
}

.house-window-right {
    position: absolute;
    bottom: 20px;
    left: 34px;
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 1px;
}

.brand-text h3 {
    margin: 0;
    color: #333;
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1.2;
}

/* Navigation Toggle */
.navbar-toggler {
    border: none;
    padding: 4px 8px;
    background: transparent;
}

/* Navigation Links */
.navbar-nav .nav-link {
    color: #333 !important;
    font-weight: 500;
    padding: 8px 20px !important;
    position: relative;
    transition: all 0.3s ease;
    text-decoration: none;
}

/* Free Quote Button Styling */
.btn-quote {
    background: #F37028 !important;
    color: white !important;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-quote:hover {
    background: #E55A1C !important;
    color: white !important;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(243, 112, 40, 0.3);
}

/* Custom Logo Styling */
.custom-logo-container .custom-logo-link {
    display: block;
    line-height: 1;
}

.custom-logo-container .custom-logo {
    max-height: 55px;
    width: auto;
    height: auto;
    display: block;
    transition: all 0.3s ease;
}

.custom-logo-container .custom-logo:hover {
    transform: scale(1.05);
}

/* Responsive Logo */
@media (max-width: 767.98px) {
    .custom-logo-container .custom-logo {
        max-height: 40px;
    }
    
    .logo-container {
        width: 40px !important;
        height: 40px !important;
    }
    
    .brand-text h3 {
        font-size: 1.2rem !important;
    }
}

/* Logo styling */
.logo-icon {
    width: 50px;
    height: 50px;
    background: #F37028;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.brand-text h3 {
    margin: 0;
    color: #333;
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1.2;
}

/* Navigation Links */
.navbar-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar-nav .nav-item {
    margin: 0 5px;
}

.navbar-nav .nav-link {
    color: #333 !important;
    font-weight: 500;
    padding: 8px 20px !important;
    position: relative;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.navbar-nav .nav-link:hover {
    color: #F37028 !important;
    border-bottom-color: #F37028;
}

/* Free Quote Button */
.btn-quote {
    background: #F37028;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-quote:hover {
    background: #E55A1C;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(243, 112, 40, 0.3);
}

/* Mobile Toggle */
.navbar-toggler {
    border: none;
    padding: 4px 8px;
    background: transparent;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Responsive Navigation */
@media (max-width: 991.98px) {
    .navbar-collapse {
        margin-top: 1rem;
        border-top: 1px solid #e9ecef;
        padding-top: 1rem;
    }
    
    .navbar-nav {
        flex-direction: column;
        width: 100%;
    }
    
    .navbar-nav .nav-item {
        margin: 5px 0;
    }
    
    .navbar-nav .nav-link {
        padding: 10px 0 !important;
        border-bottom: 1px solid #e9ecef;
    }
    
    .btn-quote {
        margin-top: 1rem;
        display: inline-block;
        text-align: center;
    }
}

@media (max-width: 767.98px) {
    .top-contact-bar .contact-info {
        flex-direction: column;
        text-align: center;
    }
    
    .top-contact-bar .contact-info span {
        margin: 5px 0;
        display: block;
    }
    
    .top-contact-bar .top-right-info {
        justify-content: center !important;
        margin-top: 10px;
    }
    
    .top-contact-bar {
        text-align: center;
    }
}

.section-padding {
    padding: 100px 0;
}

.section-title {
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 600;
    position: relative;
    margin-bottom: 20px;
    padding-bottom: 20px;
}

.section-title h2::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
                url("../images/hero-bg.jpg") center/cover no-repeat;
    padding: 200px 0 150px;
    margin-bottom: 0;
    position: relative;
    color: white;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    animation: fadeInDown 1s ease;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease 0.3s;
    animation-fill-mode: both;
}

/* Service Cards */
.service-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    margin-bottom: 30px;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.service-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 25px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    color: #e68800;
}

.service-card .card-title {
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--dark-color);
}

/* Features Section */
.features {
    background-color: var(--light-color);
}

.features i {
    color: var(--primary-color);
}

/* About Section */
.about-placeholder {
    background-color: var(--primary-color) !important;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-features .d-flex {
    margin-bottom: 1rem;
}

.about-features i {
    color: var(--primary-color);
}

/* Contact Form */
.contact-form {
    background-color: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.contact-form .form-control {
    border-radius: 10px;
    padding: 12px 20px;
    margin-bottom: 20px;
    border: 1px solid #e1e1e1;
    transition: var(--transition);
}

.contact-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.15);
}

.contact-info {
    background-color: white;
}

.contact-info i {
    color: var(--primary-color);
}

.emergency-contact {
    background-color: var(--primary-color) !important;
}

/* WhatsApp Button */
.whatsapp-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
    z-index: 1000;
    text-decoration: none;
}

.whatsapp-button:hover {
    transform: scale(1.1);
    color: white;
}

/* Testimonials */
.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin: 20px 15px;
    transition: box-shadow 0.2s;
}

.testimonial-card:hover {
    box-shadow: 0 12px 36px rgba(59,89,152,0.18);
    border-left-color: #e55a1f;
}
.testimonial-stars {
    letter-spacing: 2px;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
}

/* Partners Section */
.partners-section {
    background-color: var(--light-color);
}

.partner-logo {
    height: 80px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: var(--transition);
}

.partner-logo:hover {
    filter: grayscale(0);
    opacity: 1;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 80px 0 30px;
}

footer h5 {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 25px;
}

footer p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
}

footer .footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

footer .footer-links a:hover {
    color: var(--accent-color);
}

footer .social-links a {
    color: white;
    font-size: 1.5rem;
    transition: var(--transition);
}

footer .social-links a:hover {
    color: var(--accent-color);
}

/* Language Switcher */
.language-switcher a {
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 500;
}

.language-switcher a.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* Mobile Navigation */
.navbar-toggler {
    border: none;
    padding: 0;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    /* body {
        padding-top: 66px;
    } */
    
    .hero {
        padding: 150px 0 100px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .section-padding {
        padding: 60px 0;
    }
    
    .contact-form {
        padding: 30px;
    }
    
    .whatsapp-button {
        width: 50px;
        height: 50px;
        font-size: 24px;
        text-decoration: none;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
}

/* Pill styling for coverage section */
.pill {
    padding: 5px 12px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1rem;
    background: #fff;
    color: #1a2233;
    border: 1.5px dotted #dbe2ea;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
}

/* Bootstrap-like utilities for compatibility */
.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 576px) {
    .container { max-width: 540px; }
}

@media (min-width: 768px) {
    .container { max-width: 720px; }
}

@media (min-width: 992px) {
    .container { max-width: 960px; }
}

@media (min-width: 1200px) {
    .container { max-width: 1140px; }
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.col-md-4,
.col-md-6,
.col-lg-4,
.col-lg-6 {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

@media (min-width: 768px) {
    .col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-md-6 { flex: 0 0 50%; max-width: 50%; }
}

@media (min-width: 992px) {
    .col-lg-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
}

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: #fff;
    background-clip: border-box;
    border: 1px solid rgba(0,0,0,.125);
    border-radius: 0.375rem;
}

.card-body {
    flex: 1 1 auto;
    padding: 1.25rem;
}

.card-title {
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.card-text {
    margin-bottom: 1rem;
}

.btn {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    margin-bottom: 0;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 0.375rem;
    transition: var(--transition);
}

.btn-primary {
    color: #fff;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    color: #fff;
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-outline-light {
    color: #fff;
    border-color: #fff;
}

.btn-outline-light:hover {
    color: var(--primary-color);
    background-color: #fff;
    border-color: #fff;
}

.btn-lg {
    padding: 0.5rem 1rem;
    font-size: 1.25rem;
    border-radius: 0.5rem;
}

.btn-light {
    color: var(--dark-color);
    background-color: #fff;
    border-color: #fff;
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-center {
    text-align: center !important;
}

.text-start {
    text-align: left !important;
}

.text-end {
    text-align: right !important;
}

.text-muted {
    color: #6c757d !important;
}

.text-white {
    color: #fff !important;
}

.bg-light {
    background-color: var(--light-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-white {
    background-color: #fff !important;
}

.bg-dark {
    background-color: var(--dark-color) !important;
}

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }

.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }

.me-2 { margin-right: 0.5rem !important; }
.me-3 { margin-right: 1rem !important; }

.pt-5 { padding-top: 3rem !important; }
.pb-3 { padding-bottom: 1rem !important; }

.d-flex { display: flex !important; }
.align-items-center { align-items: center !important; }
.justify-content-center { justify-content: center !important; }

.h-100 { height: 100% !important; }

.shadow-sm { box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important; }
.shadow-lg { box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important; }

.rounded { border-radius: 0.375rem !important; }

.list-unstyled {
    padding-left: 0;
    list-style: none;
}

/* WordPress specific overrides */
.site-main { margin: 0; }
.wp-block-group { margin: 0; }

/* Brand-Aligned Section Enhancements */
.brand-aligned-section {
    position: relative;
    overflow: hidden;
    background-attachment: fixed;
}

@media (max-width: 768px) {
    .brand-aligned-section {
        background-attachment: scroll;
    }
}

.brand-aligned-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0,102,204,0.8), rgba(0,102,204,0.9));
    z-index: 1;
}

.brand-aligned-section .container {
    position: relative;
    z-index: 2;
}

.brand-aligned-section h2,
.brand-aligned-section p,
.brand-aligned-section .btn {
    position: relative;
    z-index: 3;
}

.brand-aligned-section .btn:hover {
    background-color: #E5621F !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(243, 112, 40, 0.3);
}

/* ==========================================================================
   SIDEBAR AND LAYOUT FIXES
   ========================================================================== */

/* Fix Breadcrumb Visibility */
.breadcrumb {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px);
    border-radius: 25px !important;
    padding: 0.5rem 1rem !important;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: none !important;
    font-weight: 500 !important;
}

.breadcrumb-item a:hover {
    color: white !important;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.breadcrumb-item.active {
    color: white !important;
    font-weight: 600 !important;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.7) !important;
    content: "›" !important;
    font-weight: bold;
}

/* Sidebar Container */
.sidebar-sticky {
    position: sticky;
    top: 100px;
    background: transparent !important;
}

#secondary {
    background: transparent !important;
    padding: 0;
}

#secondary * {
    background-color: transparent !important;
}

/* Widget Styling */
.widget {
    background: white !important;
    border: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    margin-bottom: 2rem;
    padding: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
}

.widget * {
    background: transparent !important;
    background-color: transparent !important;
}

.widget:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
}

.widget-title {
    color: #2c3e50 !important;
    font-weight: 600;
    font-size: 1.2rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    display: block;
    background: transparent !important;
}

.widget p {
    color: #555 !important;
    line-height: 1.6;
    background: transparent !important;
}

.widget ul {
    list-style: none;
    padding-left: 0;
    background: transparent !important;
}

.widget li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
    background: transparent !important;
    color: #555 !important;
}

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

.widget a {
    color: #444 !important;
    text-decoration: none;
    transition: var(--transition);
    background: transparent !important;
}

.widget a:hover {
    color: var(--primary-color) !important;
    text-decoration: none;
}

/* WordPress Default Widgets Override */
.widget_recent_comments,
.widget_recent_entries,
.widget_categories,
.widget_archive,
.widget_search {
    background: white !important;
}

/* Fix WordPress Recent Comments Widget Dark Background */
.widget_recent_comments {
    background: white !important;
}

.widget_recent_comments ul,
.widget_recent_comments li {
    background: transparent !important;
    color: #555 !important;
}

.widget_recent_comments .recentcomments {
    background: transparent !important;
    padding: 0.75rem !important;
    margin: 0.5rem 0 !important;
    border-radius: 4px !important;
    border: 1px solid #f0f0f0 !important;
}

.widget_recent_comments .recentcomments a {
    color: #444 !important;
    background: transparent !important;
}

.widget_recent_comments .recentcomments:hover {
    background: #f8f9fa !important;
    border-color: var(--primary-color) !important;
}

.widget_recent_comments .recentcomments:hover a {
    color: var(--primary-color) !important;
}

.widget_recent_comments ul li,
.widget_recent_comments .recentcomments,
.widget_recent_comments .recentcomments span,
.widget_recent_comments .recentcomments a {
    background: transparent !important;
    background-color: transparent !important;
}

/* Ensure single post layout works properly */
.single .container .row {
    display: flex !important;
    flex-wrap: wrap !important;
}

.single .col-lg-8 {
    order: 1;
}

.single .col-lg-4 {
    order: 2;
}

/* Force widget backgrounds to be white */
.widget,
.widget_search,
.widget_recent_entries,
.widget_recent_comments,
.widget_categories,
.widget_archives,
.widget_text {
    background: white !important;
    border: none !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08) !important;
}

/* Search Form Improvements */
.search-form {
    background: transparent !important;
    position: relative;
}

.search-input-wrapper {
    display: flex;
    background: white;
    border: 1px solid #ddd;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.search-input-wrapper:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 2px 10px rgba(0, 102, 204, 0.2);
}

.search-field {
    flex: 1;
    border: none !important;
    padding: 0.75rem 1rem !important;
    background: transparent !important;
    color: #333 !important;
    font-size: 14px !important;
    outline: none !important;
}

.search-field::placeholder {
    color: #999;
}

.search-submit {
    background: var(--primary-color) !important;
    color: white !important;
    border: none !important;
    padding: 0.75rem 1rem !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
}

.search-submit:hover {
    background: var(--secondary-color) !important;
}

.search-submit i {
    color: white !important;
}

/* Mobile responsive fixes */
@media (max-width: 991px) {
    .single .col-lg-4 {
        order: 1;
        margin-bottom: 2rem;
    }
    
    .single .col-lg-8 {
        order: 2;
    }
}