/* =========================================
   PUBLIC FACING BRANDING ENHANCEMENT - DEFAULT
   Default GWS Universal Public branding variation
   ========================================= */

/* =========================================
   CSS VARIABLES - Typography Only
   Brand colors are loaded from database via brand_loader.php
   ========================================= */
:root {
    /* Typography */
    --brand-font-weight-bold: 600;
    --brand-font-weight-normal: 400;
}

/* Note: Above variables are overridden by database values from brand_loader.php */
/* Legacy gws-universal-branding.css import removed to prevent conflicts */

/* =========================================
   GLOBAL BRAND APPLICATIONS
   Site-wide brand color implementations
   ========================================= */

/* Header and Navigation */
.navbar {
    background: var(--brand-primary) !important;
}

/* GWS Universal Public Template Header Override - Keep white background */
.header {
    background-color: #ffffff !important;
}

.navbar-brand {
    color: white !important;
    font-weight: var(--brand-font-weight-bold);
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: white !important;
}

/* Secondary Buttons */
.btn-secondary {
    background-color: var(--brand-secondary) !important;
    border-color: var(--brand-secondary) !important;
    color: white !important;
}

.btn-secondary:hover {
    background-color: #26a085 !important;
    border-color: #26a085 !important;
}

/* Brand Buttons - Shop System */
.btn-brand-primary {
    background: var(--brand-primary) !important;
    border: none !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
}

.btn-brand-primary:hover,
.btn-brand-primary:focus,
.btn-brand-primary:active {
    background: var(--brand-secondary) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-outline-brand-primary {
    background: transparent !important;
    border: 2px solid var(--brand-primary) !important;
    color: var(--brand-primary) !important;
    font-weight: 600 !important;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
}

.btn-outline-brand-primary:hover,
.btn-outline-brand-primary:focus,
.btn-outline-brand-primary:active {
    background: var(--brand-primary) !important;
    color: #ffffff !important;
    border-color: var(--brand-primary) !important;
    transform: translateY(-1px);
}

/* Cards and Content Blocks */
.card {
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.card-header {
    background: var(--brand-primary) !important;
    color: white !important;
    font-weight: var(--brand-font-weight-semibold);
}

/* Footer card headers inherit the global .card-header theme styles */

/* Links */
a {
    color: var(--brand-primary, inherit);
    text-decoration: none;
}

a:hover {
    color: var(--brand-secondary, inherit);
    text-decoration: underline;
}

/* Form Controls */
.form-control:focus,
.form-select:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.25);
}

/* Hero Sections - Accessibility Compliant Text Over Images */
.hero {
    color: white !important;
    position: relative;
}

/* Add subtle gradient overlay for better text contrast */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(0, 0, 0, 0.4) 0%,
            rgba(0, 0, 0, 0.2) 50%,
            rgba(0, 0, 0, 0.4) 100%);
    pointer-events: none;
    z-index: 1;
}

/* Ensure content is above overlay */
.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    color: white !important;
    font-weight: 900 !important;
    /* Multi-layer text shadow for accessibility compliance */
    text-shadow:
        /* Dark outline */
        -2px -2px 0 rgba(0, 0, 0, 0.8),
        2px -2px 0 rgba(0, 0, 0, 0.8),
        -2px 2px 0 rgba(0, 0, 0, 0.8),
        2px 2px 0 rgba(0, 0, 0, 0.8),
        /* Softer glow */
        0 0 8px rgba(0, 0, 0, 0.9),
        0 0 16px rgba(0, 0, 0, 0.7);
    /* Ensure minimum font size for readability */
    font-size: clamp(2rem, 5vw, 4rem) !important;
    line-height: 1.2 !important;
}

.hero .col-xl-7 p, .hero .col-lg-9 p {
    color: white !important;
    font-weight: 600 !important;
    /* Multi-layer text shadow for paragraphs */
    text-shadow:
        -1px -1px 0 rgba(0, 0, 0, 0.8),
        1px -1px 0 rgba(0, 0, 0, 0.8),
        -1px 1px 0 rgba(0, 0, 0, 0.8),
        1px 1px 0 rgba(0, 0, 0, 0.8),
        0 0 6px rgba(0, 0, 0, 0.9),
        0 0 12px rgba(0, 0, 0, 0.6);
    /* Responsive font sizing */
    font-size: clamp(1.1rem, 2.5vw, 1.5rem) !important;
    line-height: 1.4 !important;
    /* Background moved to hero image overlay for better effect */
    /* background: linear-gradient(
        45deg,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.2) 50%,
        rgba(0, 0, 0, 0.1) 100%
    ); */
    padding: 0.5rem 1rem;
    border-radius: 4px;
    /* backdrop-filter: blur(2px); - REMOVED as requested */
}

/* Accessible button styling */
.hero .btn {
    background: white !important;
    color: var(--brand-primary) !important;
    border: 3px solid white !important;
    font-weight: 700 !important;
    font-size: 1.1rem !important;
    padding: 0.75rem 2rem !important;
    text-shadow: none !important;
    /* High contrast shadow for button */
    box-shadow:
        0 0 0 2px rgba(0, 0, 0, 0.3),
        0 4px 8px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.hero .btn:hover {
    background: rgba(255, 255, 255, 0.9) !important;
    color: var(--brand-primary, inherit) !important;
    border-color: white !important;
    transform: translateY(-2px);
    box-shadow:
        0 0 0 2px rgba(0, 0, 0, 0.4),
        0 6px 12px rgba(0, 0, 0, 0.5);
}

.hero .btn:focus {
    outline: 3px solid #ffff00 !important;
    outline-offset: 2px !important;
}

/* Footer */
.footer {
    background-color: #ffffff !important;
    color: #333333;
    border-top: 1px solid #e2e8f0;
}

.footer a {
    color: var(--brand-primary);
}

.footer a:hover {
    color: var(--brand-secondary);
}

/* =========================================
   RESPONSIVE ENHANCEMENTS
   Mobile-friendly brand styling
   ========================================= */

@media (max-width: 768px) {
    .navbar {
        padding: 0.75rem 1rem;
    }

    .card {
        margin-bottom: 1rem;
    }

    .btn {
        padding: 12px 20px;
        font-size: 1rem;
    }
}

/* =========================================
   ACCESSIBILITY ENHANCEMENTS
   Ensure proper contrast and usability
   ========================================= */

/* Focus indicators */
:focus {
    outline: 2px solid var(--brand-primary);
    outline-offset: 2px;
}

/* Skip links */
.skip-link {
    background: var(--brand-primary);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    position: absolute;
    top: -40px;
    left: 6px;
    z-index: 1000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 6px;
}

/* =========================================
   MOBILE NAVIGATION TOGGLE
   Hamburger menu button styling
   ========================================= */

.mobile-nav-toggle {
    display: none;
    cursor: pointer;
    color: var(--brand-secondary) !important;
    background: #fff !important;
    border: 2px solid var(--brand-secondary) !important;
    width: 40px !important;
    height: 40px !important;
    font-size: 20px !important;
    font-weight: 900 !important;
    border-radius: 4px !important;
    transition: all 0.3s ease;
    align-items: center;
    justify-content: center;
}

.mobile-nav-toggle:hover {
    background: var(--brand-secondary) !important;
    color: #fff !important;
    transform: scale(1.05);
}

.mobile-nav-toggle:focus {
    outline: 2px solid var(--brand-primary);
    outline-offset: 2px;
}

@media (max-width: 991.98px) {
    .mobile-nav-toggle {
        display: flex !important;
    }
}

/* =========================================
   HERO OFFER FORM SECTION
   Accessible teal form below hero image
   ========================================= */

.hero-offer-section {
    display: flex;
    align-items: center;
    min-height: 40vh;
}

.hero-offer-form {
    transition: all 0.3s ease;
}

.hero-offer-form:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25) !important;
}

/* Form Input Accessibility & Styling */
.hero-offer-form .form-control {
    transition: all 0.3s ease;
}

.hero-offer-form .form-control:focus {
    border-color: #20B2AA !important;
    box-shadow: 0 0 0 0.2rem rgba(32, 178, 170, 0.25) !important;
    transform: translateY(-1px);
}

.hero-offer-form .form-control:hover {
    border-color: #008B8B !important;
}

/* Button Accessibility */
.hero-offer-form .btn:focus {
    outline: 3px solid #fff !important;
    outline-offset: 3px !important;
}

/* =========================================
   HERO INLINE FORM
   Full-width horizontal form within hero section
   ========================================= */

.hero-inline-form {
    background: var(--custom-color-1, #008B8B) !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    color: #fff;
    font-family: var(--brand-font, 'Segoe UI', Arial, sans-serif);
    transition: all 0.3s ease;
    width: 100% !important;
    margin: 0 !important;
    padding: 1.25rem;
    border-radius: 12px;
    overflow: visible;
    max-width: 100%;
    box-sizing: border-box;
    min-height: auto;
    height: auto;
}

.hero-inline-form:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4) !important;
}

/* Full Width Form Container */
.hero-inline-form form {
    width: 100%;
    max-width: none !important;
}

/* Top Text Section */
.hero-form-text-top {
    width: 100%;
    margin-bottom: 0.5rem;
}

/* Input Fields Container - Full Width */
.hero-form-inputs {
    width: 100% !important;
    justify-content: space-between !important;
    gap: 0.875rem !important;
    display: flex !important;
    align-items: stretch !important;
    flex-wrap: nowrap !important;
}

/* Form fields wrapper */
#hero-form-fields {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Individual Input Styling */
.hero-inline-form .form-control {
    transition: all 0.3s ease;
    background: white;
    color: #2c3e50;
    font-weight: 500;
    border: 3px solid white !important;
    flex: 1 !important;
    min-width: 0 !important;
    width: auto !important;
    height: 45px;
    box-sizing: border-box;
}

.hero-inline-form .form-control:nth-child(3) {
    flex: 1.2 !important;
}

.hero-inline-form .form-control:focus {
    border-color: #FFD700 !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 215, 0, 0.25) !important;
    transform: translateY(-1px);
    background: #fff;
}

.hero-inline-form .form-control:hover {
    border-color: #FFA500 !important;
    background: #f8f9fa;
}

.hero-inline-form .form-control::placeholder {
    color: #6c757d;
    font-weight: 400;
}

/* Button Styling - Theme Colors with Database Variables */
.hero-inline-form .btn,
.hero-form-submit,
#hero-form-cta .hero-form-submit,
.contact-form .hero-form-submit,
form .hero-form-submit {
    background: var(--brand_accent_color, #FFD700) !important;
    color: #2c3e50 !important;
    border: 3px solid var(--brand_accent_color, #FFA500) !important;
    font-weight: 700 !important;
    font-family: var(--brand-font, 'Segoe UI', Arial, sans-serif);
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex: 0 0 auto;
    min-width: 140px;
    max-width: 180px;
    white-space: nowrap;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(255,215,0,0.4);
    box-sizing: border-box;
}

.hero-inline-form .btn:hover,
.hero-form-submit:hover,
#hero-form-cta .hero-form-submit:hover,
.contact-form .hero-form-submit:hover,
form .hero-form-submit:hover {
    background: var(--brand-secondary) !important;
    color: #2c3e50 !important;
    border-color: var(--brand-secondary) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(255,215,0,0.6);
}

.hero-inline-form .btn:focus {
    outline: 3px solid #fff !important;
    outline-offset: 3px !important;
}

/* CTA Button Styling - Matches Form Submit Button */
.hero-cta-button {
    background: var(--brand_accent_color, #FFD700) !important;
    color: #2c3e50 !important;
    border: 3px solid var(--brand_accent_color, #FFA500) !important;
    font-weight: 700 !important;
    font-family: var(--brand-font, 'Segoe UI', Arial, sans-serif) !important;
    border-radius: 12px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    padding: 0.75rem 1.5rem !important;
    font-size: 1rem !important;
    white-space: nowrap !important;
    box-shadow: 0 3px 8px rgba(255,215,0,0.4) !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    text-shadow: none !important;
    line-height: normal !important;
    margin: 0 !important;
}

.hero-cta-button:hover {
    background: var(--brand_accent_color, #FFA500) !important;
    color: #2c3e50 !important;
    border-color: var(--brand_accent_color, #FF8C00) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 12px rgba(255,215,0,0.6) !important;
}

/* Responsive Design for Full Width Form */
@media (max-width: 768px) {
    .hero-inline-form {
        padding: 1rem !important;
        width: 100% !important;
        margin: 0 !important;
    }

    .hero-inline-form form {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 1rem !important;
        width: 100% !important;
    }

    .hero-form-inputs {
        flex-direction: column !important;
        gap: 0.75rem !important;
        width: 100% !important;
        align-items: stretch !important;
    }

    .hero-form-inputs .form-control {
        min-width: auto !important;
        max-width: none !important;
        flex: none !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .hero-inline-form .btn {
        min-width: auto !important;
        flex: none !important;
        width: 100%;
        padding: 1rem !important;
        font-size: 1.1rem !important;
    }

    .hero-form-text-top h3 {
        font-size: 1.5rem !important;
    }

    .hero-form-text-top p {
        font-size: 1rem !important;
    }
}

@media (max-width: 576px) {
    .hero-inline-form {
        padding: 0.75rem !important;
        margin-top: 1rem !important;
    }

    .hero-form-text-top h3 {
        font-size: 1.3rem !important;
        margin-bottom: 0.25rem !important;
    }

    .hero-form-text-top p {
        font-size: 0.9rem !important;
        line-height: 1.2 !important;
    }

    .hero-inline-form .form-control {
        padding: 0.75rem !important;
        font-size: 1rem !important;
    }
}

@media (min-width: 992px) {

    /* Desktop - ensure inputs and button align nicely */
    .hero-form-inputs {
        align-items: stretch;
    }

    .hero-form-inputs .form-control {
        height: auto;
    }

    .hero-inline-form .btn {
        height: auto;
        align-self: stretch;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .hero-inline-form {
        border: 3px solid #000 !important;
    }

    .hero-inline-form .form-control {
        border: 3px solid #000 !important;
        background: white !important;
        color: #000 !important;
    }

    .hero-inline-form .btn {
        border: 4px solid #000 !important;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-offer-section {
        padding: 40px 0 !important;
        min-height: auto;
    }

    .hero-offer-form {
        padding: 1.5rem !important;
    }

    .hero-offer-form .btn {
        font-size: 1rem !important;
        padding: 0.8rem 2rem !important;
        min-width: 240px !important;
    }

    /* Inline Form Mobile Responsive */
    .hero-inline-form {
        padding: 1rem !important;
    }

    .hero-inline-form form {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 1rem !important;
    }

    .hero-form-text {
        text-align: center !important;
        min-width: auto !important;
        flex: none !important;
    }

    .hero-form-inputs {
        flex-direction: column !important;
        min-width: auto !important;
        flex: none !important;
    }

    .hero-form-inputs .form-control {
        min-width: auto !important;
        flex: none !important;
    }

    .hero-form-button {
        flex: none !important;
        text-align: center;
    }

    .hero-form-button .btn {
        min-width: 200px !important;
        font-size: 0.9rem !important;
        padding: 0.7rem 1.2rem !important;
    }
}

@media (max-width: 576px) {
    .hero-offer-section h2 {
        font-size: 1.8rem !important;
    }

    .hero-offer-section p {
        font-size: 1rem !important;
    }

    /* Smaller mobile adjustments for inline form */
    .hero-inline-form .hero-form-text h3 {
        font-size: 1.3rem !important;
    }

    .hero-inline-form .hero-form-text p {
        font-size: 0.9rem !important;
    }
}

@media (max-width: 992px) and (min-width: 769px) {

    /* Tablet view - stack inputs vertically but keep horizontal layout */
    .hero-form-inputs {
        flex-direction: column !important;
        min-width: 250px !important;
    }

    .hero-form-inputs .form-control {
        min-width: auto !important;
        margin-bottom: 0.5rem;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .hero-offer-form {
        background: white !important;
        border: 3px solid #000 !important;
    }

    .hero-offer-form .form-control {
        border: 2px solid #000 !important;
    }

    .hero-offer-form .btn {
        border: 3px solid #000 !important;
    }

    .hero-inline-form {
        border: 3px solid #000 !important;
    }

    .hero-inline-form .form-control {
        border: 2px solid #000 !important;
        background: white !important;
        color: #000 !important;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {

    .hero-offer-form,
    .hero-offer-form .form-control,
    .hero-offer-form .btn,
    .hero-inline-form,
    .hero-inline-form .form-control,
    .hero-inline-form .btn {
        transition: none !important;
    }

    .hero-offer-form:hover,
    .hero-inline-form:hover {
        transform: none !important;
    }
}

/* =========================================
   SERVICES SECTION - BRAND INTEGRATION
   Professional services cards with brand colors
   ========================================= */

/* Global section title styling */
.section-title {
    text-align: center;
    padding-bottom: 60px;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--brand-primary);
    position: relative;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
    border-radius: 2px;
}

.section-title p {
    margin-bottom: 0;
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Services section container */
.services {
    padding: 80px 0;
    background: #f8f9fa;
}

.services .section-header-box p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 0;
}

/* New Service Card Design */
.service-card {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid rgba(54, 113, 201, 0.1);
    overflow: hidden;
    position: relative;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    border-color: rgba(54, 113, 201, 0.2);
}

.service-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.service-card-link:hover {
    text-decoration: none;
    color: inherit;
}

/* Service Header - Image or Icon */
.service-header {
    position: relative;
    height: 200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(54, 113, 201, 0.1) 0%, rgba(47, 192, 144, 0.1) 100%);
}

.service-image {
    width: 100%;
    height: 100%;
    position: relative;
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(54, 113, 201, 0.15);
    transition: all 0.3s ease;
}

.service-icon i {
    font-size: 3rem;
    color: var(--brand-primary);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: var(--brand-primary);
    transform: scale(1.1);
}

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

/* Service Title Header with Brand Styling */
.service-title-header {
    background: var(--brand-primary);
    color: #ffffff;
    padding: 20px 25px;
    text-align: center;
    position: relative;
}

.service-title-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-secondary) 0%, var(--brand-primary) 100%);
}

.service-title {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    transition: all 0.3s ease;
}

.service-card:hover .service-title-header {
    background: var(--brand-secondary);
}

/* Service Content Area */
.service-content {
    padding: 25px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-description {
    line-height: 1.6;
    font-size: 1rem;
    margin: 0;
    color: #666;
}

/* Responsive design */
@media (max-width: 768px) {
    .service-header {
        height: 150px;
    }
    
    .service-icon {
        width: 80px;
        height: 80px;
    }
    
    .service-icon i {
        font-size: 2.5rem;
    }
    
    .service-title {
        font-size: 1.2rem;
    }
    
    .service-title-header {
        padding: 15px 20px;
    }
    
    .service-content {
        padding: 20px;
    }
}

/* =========================================
   FOOTER STYLING - COMPREHENSIVE
   Complete footer styling with icons and links
   ========================================= */

/* Footer Background */
.footer {
    background-color: #ffffff !important;
    color: #333333 !important;
    border-top: 1px solid #e2e8f0;
}

/* Override all footer links to use brand colors - except design link */
.footer a:not(.footer-special-btn):not(.social-link):not(.footer-design-link) {
    color: var(--brand-primary) !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

.footer a:not(.footer-special-btn):not(.social-link):not(.footer-design-link):hover {
    color: var(--brand-secondary) !important;
    text-decoration: none !important;
    font-weight: bold !important;
}

/* Footer Card Headers */
.useful-links-card h4,
.services-card h4,
.contact-us-card h4 {
    color: var(--brand-primary) !important;
    text-shadow: none;
}

/* Footer Section Links - Comprehensive Coverage */
.footer .footer-section-link,
.footer .link-list-item a,
.footer .service-list-item a,
.footer .contact-link,
.footer .useful-links-card a,
.footer .services-card a,
.footer .contact-us-card a,
footer .footer-section-link,
footer .link-list-item a,
footer .service-list-item a,
footer .contact-link,
footer .useful-links-card a,
footer .services-card a,
footer .contact-us-card a,
#footer .footer-section-link,
#footer .link-list-item a,
#footer .service-list-item a,
#footer .contact-link,
#footer .useful-links-card a,
#footer .services-card a,
#footer .contact-us-card a {
    color: var(--brand-primary) !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

.footer .footer-section-link:hover,
.footer .link-list-item a:hover,
.footer .service-list-item a:hover,
.footer .contact-link:hover,
.footer .useful-links-card a:hover,
.footer .services-card a:hover,
.footer .contact-us-card a:hover,
footer .footer-section-link:hover,
footer .link-list-item a:hover,
footer .service-list-item a:hover,
footer .contact-link:hover,
footer .useful-links-card a:hover,
footer .services-card a:hover,
footer .contact-us-card a:hover,
#footer .footer-section-link:hover,
#footer .link-list-item a:hover,
#footer .service-list-item a:hover,
#footer .contact-link:hover,
#footer .useful-links-card a:hover,
#footer .services-card a:hover,
#footer .contact-us-card a:hover {
    color: var(--brand-secondary) !important;
    text-decoration: none !important;
    font-weight: bold !important;
}

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

/* Footer Icons - Comprehensive Coverage with Bootstrap Override */
.footer .link-list-item i.bi,
.footer .service-list-item i.bi,
.footer .contact-item i.bi,
.footer .useful-links-card i.bi,
.footer .services-card i.bi,
.footer .contact-us-card i.bi,
footer .link-list-item i.bi,
footer .service-list-item i.bi,
footer .contact-item i.bi,
footer .useful-links-card i.bi,
footer .services-card i.bi,
footer .contact-us-card i.bi,
#footer .link-list-item i.bi,
#footer .service-list-item i.bi,
#footer .contact-item i.bi,
#footer .useful-links-card i.bi,
#footer .services-card i.bi,
#footer .contact-us-card i.bi,
.footer .link-list-item i,
.footer .service-list-item i,
.footer .contact-item i,
.footer .useful-links-card i,
.footer .services-card i,
.footer .contact-us-card i,
footer .link-list-item i,
footer .service-list-item i,
footer .contact-item i,
footer .useful-links-card i,
footer .services-card i,
footer .contact-us-card i,
#footer .link-list-item i,
#footer .service-list-item i,
#footer .contact-item i,
#footer .useful-links-card i,
#footer .services-card i,
#footer .contact-us-card i {
    color: var(--brand-primary) !important;
    fill: var(--brand-primary) !important;
    transition: all 0.3s ease !important;
}

/* Footer Icon Hover States */
.footer .link-list-item:hover i.bi,
.footer .service-list-item:hover i.bi,
.footer .contact-item:hover i.bi,
.footer .useful-links-card .link-list-item:hover i.bi,
.footer .services-card .service-list-item:hover i.bi,
.footer .contact-us-card .contact-item:hover i.bi,
footer .link-list-item:hover i.bi,
footer .service-list-item:hover i.bi,
footer .contact-item:hover i.bi,
footer .useful-links-card .link-list-item:hover i.bi,
footer .services-card .service-list-item:hover i.bi,
footer .contact-us-card .contact-item:hover i.bi,
#footer .link-list-item:hover i.bi,
#footer .service-list-item:hover i.bi,
#footer .contact-item:hover i.bi,
#footer .useful-links-card .link-list-item:hover i.bi,
#footer .services-card .service-list-item:hover i.bi,
#footer .contact-us-card .contact-item:hover i.bi,
.footer .link-list-item:hover i,
.footer .service-list-item:hover i,
.footer .contact-item:hover i,
.footer .useful-links-card .link-list-item:hover i,
.footer .services-card .service-list-item:hover i,
.footer .contact-us-card .contact-item:hover i,
footer .link-list-item:hover i,
footer .service-list-item:hover i,
footer .contact-item:hover i,
footer .useful-links-card .link-list-item:hover i,
footer .services-card .service-list-item:hover i,
footer .contact-us-card .contact-item:hover i,
#footer .link-list-item:hover i,
#footer .service-list-item:hover i,
#footer .contact-item:hover i,
#footer .useful-links-card .link-list-item:hover i,
#footer .services-card .service-list-item:hover i,
#footer .contact-us-card .contact-item:hover i {
    color: var(--brand-secondary) !important;
    fill: var(--brand-secondary) !important;
}

/* Social Media Icons */
.social-link {
    color: var(--brand-primary) !important;
    border-color: var(--brand-primary) !important;
}

.social-link:hover {
    color: var(--brand-secondary) !important;
    border-color: var(--brand-secondary) !important;
    transform: scale(1.1);
}

/* Scroll to Top Button */
#scroll-top {
    background-color: var(--brand-primary-color) !important;
    color: #ffffff !important;
}

#scroll-top:hover {
    background-color: var(--brand-secondary-color) !important;
    transform: translateY(-2px);
}

/* Footer Special Buttons */
.footer-special-btn {
    border-color: var(--brand-primary) !important;
    color: var(--brand-primary) !important;
    background: transparent !important;
}

.footer-special-btn:hover {
    background-color: var(--brand-primary, currentColor) !important;
    color: #ffffff !important;
    border-color: var(--brand-primary, currentColor) !important;
}

/* Pricing Section - Featured Column Button Text */
.pricing .featured .buy-btn {
    color: white !important;
}

/* Copyright Section */
.footer-copyright {
    background-color: var(--brand-primary) !important;
    color: #ffffff !important;
    font-size: 1em !important;
}

.footer-design-link {
    color: #ffffff !important;
    font-size: 1em !important;
}

.footer-design-link:hover {
    color: var(--brand-secondary) !important;
}

/* Ensure design link stays white in copyright section */
.footer-copyright .footer-design-link,
#footer .footer-copyright .footer-design-link,
.footer .footer-copyright .footer-design-link {
    color: #ffffff !important;
    text-decoration: none !important;
}

.footer-copyright .footer-design-link:hover,
#footer .footer-copyright .footer-design-link:hover,
.footer .footer-copyright .footer-design-link:hover {
    color: var(--brand-secondary) !important;
    text-decoration: none !important;
}

/* =========================================
   BLOG PAGINATION STYLING
   Accessible and brand-consistent pagination for blog.php
   ========================================= */

/* Blog pagination container */
.blog-pagination {
    margin: 30px 0;
    text-align: center;
}

.blog-pagination .btn {
    margin: 0 3px;
    min-width: 40px;
    border-radius: 6px;
    transition: all 0.3s ease;
    text-decoration: none !important;
    font-weight: 500;
}

/* Default pagination buttons */
.blog-pagination .btn-default {
    background-color: transparent !important;
    border: 2px solid var(--brand-primary) !important;
    color: var(--brand-primary) !important;
}

.blog-pagination .btn-default:hover,
.blog-pagination .btn-default:focus {
    background-color: var(--brand-primary) !important;
    color: #ffffff !important;
    border-color: var(--brand-primary) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Active/current page button - accessible outline style */
.blog-pagination .btn-current {
    background-color: transparent !important;
    border: 3px solid var(--brand-primary) !important;
    color: var(--brand-primary) !important;
    font-weight: 700 !important;
    position: relative;
}

.blog-pagination .btn-current::after {
    content: '';
    position: absolute;
    inset: 2px;
    border: 1px solid var(--brand-primary);
    border-radius: 3px;
    pointer-events: none;
}

/* Focus states for accessibility */
.blog-pagination .btn:focus {
    outline: 3px solid var(--brand-secondary) !important;
    outline-offset: 2px;
    box-shadow: 0 0 0 2px #ffffff, 0 0 0 5px var(--brand-secondary);
}

/* Ensure good contrast and readability */
.blog-pagination .btn {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* =========================================
   BLOG MARQUEE STYLING
   Font size and styling for the scrolling text
   ========================================= */

.marquee-wrapper {
    font-size: 1em !important;
    line-height: 1.4;
    overflow: hidden;
}

.marquee-wrapper a {
    font-size: 1em !important;
    color: inherit;
    text-decoration: none;
}

.marquee-wrapper a:hover {
    text-decoration: underline;
}
