/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Font Awesome Icons */
.fas,
.far,
.fab {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
    font-weight: 900;
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background-color: #0a0a0a;
    scroll-behavior: smooth;
}

/* Variables */
:root {
    --primary-color: #b98333;
    --secondary-color: #ffffff;
    --dark-color: #0a0a0a;
    --gray-color: #333333;
    --light-gray: #666666;
    --transition: all 0.3s ease;
}

/* Breadcrumb Styles - Clean Reference Style */
.breadcrumb-section {
    background: transparent;
    padding: 0;
    margin: 0;
    position: relative;
}

.breadcrumb-nav {
    background: transparent;
    padding: 0;
    margin: 20px 0 0 0;
    font-size: 14px;
    display: flex;
    justify-content: center;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
    font-size: 14px;
    text-transform: none;
    letter-spacing: 0;
}

.breadcrumb-item+.breadcrumb-item::before {
    content: "/";
    color: rgba(255, 255, 255, 0.6);
    margin: 0 8px;
    font-weight: normal;
    font-size: 14px;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0;
    border-radius: 0;
    position: relative;
}

.breadcrumb-item a:hover {
    color: #ffffff;
    text-decoration: none;
}

.breadcrumb-item.active {
    color: #ffffff;
    font-weight: 400;
}

.breadcrumb-icon {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .breadcrumb-nav {
        font-size: 13px;
    }

    .breadcrumb-item {
        font-size: 13px;
    }

    .breadcrumb-item+.breadcrumb-item::before {
        margin: 0 6px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .breadcrumb-nav {
        font-size: 12px;
    }

    .breadcrumb-item {
        font-size: 12px;
    }

    .breadcrumb-item+.breadcrumb-item::before {
        margin: 0 5px;
        font-size: 12px;
    }
}

/* Header Styles - Updated for better mobile responsiveness */
.header-section {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 9999 !important;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100% !important;
    transition: all 0.3s ease;
    transform: translateZ(0);
    will-change: transform;
}

/* Body spacing adjustment */
body {
    padding-top: 120px; /* Account for fixed header height */
}

/* UNIVERSAL BANNER SPACING - Apply to ALL page headers/banners */
.hero-section,
.page-banner,
.page-header,
.banner-section,
.page-title-section,
.inner-banner {
    margin-top: 0 !important;
    padding-top: 80px !important;
    padding-bottom: 80px !important;
    min-height: auto !important;
}

/* Override Bootstrap py-5 and other padding classes for consistent spacing */
section.py-5,
.py-5 {
    padding-top: 80px !important;
    padding-bottom: 80px !important;
}

/* Page content spacing */
.page-content,
.main-content,
section:first-of-type {
    margin-top: 0;
    padding-top: 40px;
}

/* Consistent section spacing for all pages */
.container section,
.main-section,
.content-section {
    padding-top: 60px;
    padding-bottom: 60px;
}

/* About page specific spacing */
.about-hero,
.about-content {
    padding-top: 80px;
    padding-bottom: 80px;
}

/* Gallery page spacing */
.gallery-hero,
.gallery-content {
    padding-top: 80px;
    padding-bottom: 60px;
}

/* Contact page spacing */
.contact-hero,
.contact-content {
    padding-top: 80px;
    padding-bottom: 80px;
}

/* Footer spacing */
.footer-section {
    margin-top: 60px;
    padding-top: 60px;
    padding-bottom: 40px;
}

/* Content sections after banners */
.content-wrapper,
.page-wrapper,
.main-wrapper {
    padding-top: 60px;
    padding-bottom: 60px;
}

/* Ensure no double spacing */
.hero-section+section,
.page-banner+section,
.banner-section+section {
    padding-top: 60px;
}

.top-bar {
    background: var(--primary-color);
    padding: 10px 0;
    font-size: 14px;
}

.contact-info {
    color: white;
    font-size: 14px;
}

.contact-info i {
    margin-right: 8px;
}

.top-bar .btn {
    font-size: 12px;
    padding: 6px 12px;
    font-weight: 500;
}

.main-nav {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-collapse {
    flex-basis: 100%;
    flex-grow: 1;
    align-items: center;
}

.navbar-toggler {
    border: none;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.navbar-toggler:hover {
    background: rgba(255, 255, 255, 0.2);
}

.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%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 24px;
    height: 24px;
}

/* Header Logo */
.header-logo {
    height: 50px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.navbar-brand {
    margin-right: auto;
    padding: 0;
}

.navbar-nav {
    margin-left: auto;
}

/* Legacy logo styles (kept for other pages if needed) */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    display: flex;
    gap: 2px;
}

.logo-square {
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 2px;
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    color: white;
}

.navbar-nav {
    align-items: center;
}

.navbar-nav .nav-link {
    color: white !important;
    font-weight: 500;
    margin: 0 8px;
    padding: 12px 16px !important;
    position: relative;
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
    white-space: nowrap;
    border-radius: 6px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
    background: rgba(220, 53, 69, 0.1);
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    width: 60%;
    height: 2px;
    background: var(--primary-color);
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    width: 60%;
    height: 2px;
    background: var(--primary-color);
    transform: translateX(-50%);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes dropdownSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dropdown Menu Styles */
.dropdown-menu {
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    margin-top: 12px;
    padding: 15px 0;
    min-width: 250px;
    animation: dropdownFadeIn 0.3s ease-out;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    color: #333 !important;
    padding: 12px 25px;
    font-size: 14px;
    font-weight: 400;
    transition: all 0.3s ease;
    border: none;
    background: transparent;
    text-decoration: none;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: var(--primary-color) !important;
    color: white !important;
    transform: translateX(8px);
    text-decoration: none;
}

.dropdown-divider {
    border-top: 1px solid rgba(220, 53, 69, 0.3);
    margin: 12px 0;
}

.dropdown-toggle::after {
    margin-left: 8px;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.dropdown-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

/* Perfect Responsive Dropdown Media Queries */

/* Large Desktop (1200px and up) - Default styles already applied */

/* Medium Desktop (992px to 1199px) */
@media (max-width: 1199.98px) {
    .dropdown-menu {
        min-width: 220px;
        font-size: 13px;
    }

    .dropdown-item {
        padding: 10px 20px;
        font-size: 13px;
    }
}

/* Tablet Landscape (768px to 991px) */
@media (max-width: 991.98px) {
    .navbar-nav .dropdown-menu {
        position: absolute !important;
        background: #ffffff;
        backdrop-filter: blur(15px);
        border: 1px solid rgba(220, 53, 69, 0.3);
        border-radius: 12px;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
        min-width: 200px;
        margin-top: 8px;
        padding: 10px 0;
        z-index: 1050;
    }

    .dropdown-item {
        padding: 10px 18px;
        font-size: 13px;
        color: #333 !important;
        transition: all 0.3s ease;
    }

    .dropdown-item:hover,
    .dropdown-item:focus {
        background: var(--primary-color) !important;
        color: white !important;
        transform: translateX(5px);
    }
}

/* Tablet Portrait & Mobile Landscape (576px to 767px) */
@media (max-width: 767.98px) {
    #mainNavbar.collapse:not(.show) {
        display: none !important;
    }

    #mainNavbar.collapse.show {
        display: block !important;
        background: #ffffff;
        border-radius: 0 0 15px 15px;
        margin-top: 10px;
        padding: 20px 0;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        z-index: 1000;
        position: relative;
    }

    .navbar-nav     .dropdown-menu {
        position: static !important;
        transform: none !important;
        background: #ffffff;
        border: 1px solid rgba(0, 0, 0, 0.1);
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        margin: 10px 20px;
        padding: 10px 0;
        min-width: auto;
        width: calc(100% - 40px);
        display: none !important;
    }
    
    .dropdown-menu.show {
        display: block !important;
        animation: dropdownSlideIn 0.3s ease-out;
    }

    .dropdown-item {
        padding: 12px 25px;
        font-size: 14px;
        color: #333333 !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
    }

    .dropdown-item:last-child {
        border-bottom: none;
    }

    .dropdown-item:hover,
    .dropdown-item:focus,
    .dropdown-item.active {
        background: rgba(0, 0, 0, 0.05) !important;
        color: #333333 !important;
        transform: translateX(8px);
        text-decoration: none;
    }

    .dropdown-divider {
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        margin: 8px 20px;
    }

    /* Enhanced touch targets for mobile */
    .nav-link.dropdown-toggle {
        padding: 15px 20px;
        font-size: 15px;
        font-weight: 600;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        color: #333333 !important;
    }

    .dropdown-toggle::after {
        margin-left: auto;
        transition: transform 0.3s ease;
    }
}

/* Mobile Portrait (up to 575px) */
@media (max-width: 575.98px) {
    #mainNavbar.collapse.show {
        padding: 15px 0;
        margin-top: 5px;
    }

    .navbar-nav .dropdown-menu {
        margin: 8px 15px;
        width: calc(100% - 30px);
        border-radius: 6px;
    }

    .dropdown-item {
        padding: 14px 20px;
        font-size: 14px;
        min-height: 48px;
        display: flex;
        align-items: center;
    }

    .nav-link.dropdown-toggle {
        padding: 12px 15px;
        font-size: 14px;
        min-height: 44px;
    }

    .dropdown-divider {
        margin: 6px 15px;
    }
}

/* Extra Small Mobile (up to 479px) */
@media (max-width: 479.98px) {
    .navbar-nav .dropdown-menu {
        margin: 5px 10px;
        width: calc(100% - 20px);
    }

    .dropdown-item {
        padding: 12px 15px;
        font-size: 13px;
        min-height: 44px;
    }

    .nav-link.dropdown-toggle {
        padding: 10px 12px;
        font-size: 13px;
        min-height: 40px;
    }
}

/* Enhanced Visual Feedback for All Devices */
.dropdown-toggle {
    position: relative;
    transition: all 0.3s ease;
}

.dropdown-toggle:hover {
    background-color: rgba(220, 53, 69, 0.1) !important;
    transform: translateY(-1px);
}

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

.dropdown-item {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    background: var(--primary-color);
    transition: width 0.3s ease;
    z-index: -1;
}

.dropdown-item:hover::before,
.dropdown-item:focus::before {
    width: 100%;
}

.dropdown-item.active {
    background: var(--primary-color) !important;
    color: white !important;
    font-weight: 600;
}

.dropdown-item.active::before {
    width: 100%;
}

/* Loading state for dropdown items */
.dropdown-item.loading {
    opacity: 0.7;
    pointer-events: none;
}

.dropdown-item.loading::after {
    content: '';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: translateY(-50%) rotate(0deg);
    }

    100% {
        transform: translateY(-50%) rotate(360deg);
    }
}

/* Perfect touch feedback */
@media (hover: none) and (pointer: coarse) {
    .dropdown-toggle:active {
        background-color: rgba(220, 53, 69, 0.2) !important;
        transform: scale(0.98);
    }

    .dropdown-item:active {
        background-color: var(--primary-color) !important;
        color: white !important;
        transform: translateX(8px) scale(0.98);
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: auto;
    display: flex;
    align-items: center;
    padding-top: 100px !important;
    padding-bottom: 100px !important;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgb(255 161 9), rgba(10, 10, 10, 0.9));
}

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

.hero-title .subtitle {
    display: block;
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-title .main-title {
    display: block;
    font-size: 60px;
    font-weight: bold;
    color: white;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-description h2 {
    font-size: 24px;
    color: white;
    margin-bottom: 15px;
    font-weight: 600;
}

.hero-description p {
    font-size: 16px;
    color: #cccccc;
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    padding: 15px 35px;
    font-size: 16px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.4s ease;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    border-width: 2px;
}

/* Enhanced Hero Button Hover Effects */
.hero-buttons .btn-danger {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.hero-buttons .btn-danger:hover {
    background: transparent !important;
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.4);
}

.hero-buttons .btn-danger:active,
.hero-buttons .btn-danger:focus {
    background: #c82333 !important;
    border-color: #c82333 !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.6);
    outline: none;
}

.hero-buttons .btn-outline-light {
    background: transparent;
    border-color: white;
    color: white;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.hero-buttons .btn-outline-light:hover {
    background: white !important;
    color: var(--dark-color) !important;
    border-color: white !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

.hero-buttons .btn-outline-light:active,
.hero-buttons .btn-outline-light:focus {
    background: #f8f9fa !important;
    border-color: #f8f9fa !important;
    color: var(--dark-color) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.5);
    outline: none;
}

/* Button Click Ripple Effect */
.hero-buttons .btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: 0;
}

.hero-buttons .btn:active::before {
    width: 300px;
    height: 300px;
}

.hero-buttons .btn span,
.hero-buttons .btn {
    position: relative;
    z-index: 1;
}

/* Hexagon Grid */
.hexagon-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 400px;
    margin: 0 auto;
}

.hexagon {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    cursor: pointer;
}

.hexagon:hover {
    transform: scale(1.1);
    background: white;
}

.hexagon:hover .hex-icon i {
    color: var(--primary-color);
}

.hex-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.hex-icon i {
    font-size: 24px;
    color: white;
    transition: var(--transition);
}

/* Stats Section */
.stats-section {
    padding: 80px 0;
    background: var(--gray-color);
}

.stat-card {
    text-align: center;
    padding: 30px;
    background: var(--dark-color);
    border-radius: 10px;
    margin-bottom: 30px;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(220, 53, 69, 0.3);
}

.stat-number {
    font-size: 48px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 18px;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* About Preview Section */
.about-preview-section {
    padding: 100px 0;
    background: var(--dark-color);
}

.about-image img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.about-content h2 {
    font-size: 36px;
    color: white;
    margin-bottom: 20px;
    font-weight: bold;
}

.about-content p {
    font-size: 16px;
    color: white!important;
    margin-bottom: 20px;
    line-height: 1.8;
}

/* Case Studies Preview */
.case-studies-preview {
    padding: 120px 0 100px 0;
    background: var(--gray-color);
    position: relative;
}

.section-header {
    margin-bottom: 80px;
    padding: 0 15px;
}

.section-header h2 {
    font-size: 42px;
    color: white;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.section-header p {
    font-size: 18px;
    color: #cccccc;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.case-card {
    background: var(--dark-color);
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    height: 100%;
    border: 1px solid var(--gray-color) !important;
    padding: 40px 30px;
    margin-bottom: 30px;
}

.case-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(220, 53, 69, 0.3);
    border-color: var(--primary-color) !important;
}

.case-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #e74c3c 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    box-shadow: 0 10px 30px rgba(220, 53, 69, 0.3);
}

.case-icon i {
    font-size: 35px;
    color: white !important;
    font-weight: 900 !important;
}

.case-card h3 {
    font-size: 26px;
    color: white;
    margin-bottom: 20px;
    font-weight: 600;
    line-height: 1.3;
}

.case-card p {
    color: #cccccc;
    margin-bottom: 30px;
    line-height: 1.7;
    font-size: 16px;
}

.case-card .btn {
    margin-top: auto;
    padding: 12px 30px;
    font-weight: 500;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: var(--primary-color);
}

.cta-section h2 {
    font-size: 36px;
    color: white;
    margin-bottom: 15px;
    font-weight: bold;
}

.cta-section p {
    font-size: 18px;
    color: white;
    margin-bottom: 0;
}

.cta-section .btn {
    background: white;
    color: var(--primary-color);
    border: 2px solid white;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 5px;
    text-decoration: none;
    transition: var(--transition);
}

.cta-section .btn:hover {
    background: transparent;
    color: white;
}

/* Footer */
.footer-section {
    background: #092143;
    padding: 60px 0 20px;
}

.footer-widget {
    margin-bottom: 40px;
}

.footer-widget h4,
.footer-widget h5 {
    color: white;
    margin-bottom: 20px;
    font-weight: bold;
    font-size: 18px;
}

.footer-widget p {
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 15px;
}

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

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

.footer-widget ul li a {
    color: #cccccc;
    text-decoration: none;
    transition: var(--transition);
    font-size: 14px;
    display: inline-block;
}

.footer-widget ul li a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.contact-info i {
    color: var(--primary-color);
    width: 18px;
    text-align: center;
    font-size: 16px;
    flex-shrink: 0;
}

.contact-info span {
    color: #cccccc;
    font-size: 14px;
    line-height: 1.4;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
    font-size: 16px;
}

.social-links a:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid var(--gray-color);
}

.footer-bottom p {
    color: #cccccc;
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

/* Footer Responsive Styles */
@media (max-width: 1199.98px) {

    .footer-widget h4,
    .footer-widget h5 {
        font-size: 17px;
    }

    .footer-widget p {
        font-size: 14px;
    }
}

@media (max-width: 991.98px) {
    .footer-section {
        padding: 50px 0 20px;
    }

    .footer-widget {
        margin-bottom: 35px;
        text-align: left;
        /* Keep left alignment like reference */
    }

    .footer-widget h4,
    .footer-widget h5 {
        font-size: 16px;
        margin-bottom: 15px;
        text-align: left;
    }

    .footer-widget p {
        font-size: 14px;
        margin-bottom: 15px;
        text-align: left;
    }

    .contact-info li {
        justify-content: flex-start;
        /* Left align contact info */
        margin-bottom: 12px;
    }

    .social-links {
        justify-content: flex-start;
        /* Left align social links */
        margin-top: 15px;
    }

    .footer-bottom {
        margin-top: 30px;
        padding-top: 20px;
        text-align: center;
    }

    .footer-bottom .row>div {
        margin-bottom: 10px;
    }

    .footer-bottom .text-end {
        text-align: center !important;
    }
}

@media (max-width: 767.98px) {
    .footer-section {
        padding: 40px 0 15px;
    }

    .footer-widget {
        margin-bottom: 30px;
        text-align: left;
        /* Maintain left alignment on mobile */
    }

    .footer-widget h4,
    .footer-widget h5 {
        font-size: 15px;
        margin-bottom: 12px;
        text-align: left;
        font-weight: bold;
    }

    .footer-widget p {
        font-size: 13px;
        margin-bottom: 12px;
        text-align: left;
        line-height: 1.5;
    }

    .footer-widget ul {
        text-align: left;
    }

    .footer-widget ul li {
        margin-bottom: 8px;
        text-align: left;
    }

    .footer-widget ul li a {
        font-size: 13px;
        text-align: left;
        display: block;
        padding: 2px 0;
    }

    .contact-info li {
        margin-bottom: 10px;
        justify-content: flex-start;
        text-align: left;
    }

    .contact-info i {
        font-size: 14px;
        width: 16px;
        margin-right: 8px;
    }

    .contact-info span {
        font-size: 13px;
    }

    .social-links {
        justify-content: flex-start;
    }

    .social-links a {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }

    .footer-bottom {
        margin-top: 25px;
        padding-top: 15px;
        text-align: center;
    }

    .footer-bottom p {
        font-size: 12px;
        margin-bottom: 8px;
    }
}

/* Scroll to Top */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* Hero Section Responsive */
@media (max-width: 1199.98px) {
    .hero-section {
        padding: 80px 0;
    }

    .hero-title .main-title {
        font-size: 3.5rem;
    }

    .hero-description h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 991.98px) {
    .hero-section {
        padding: 60px 0;
        text-align: center;
    }

    .hero-title .main-title {
        font-size: 3rem;
    }

    .hero-description h2 {
        font-size: 1.6rem;
        margin-bottom: 20px;
    }

    .hero-description p {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }

    .hero-buttons .btn {
        min-width: 200px;
    }

    .hero-icons {
        margin-top: 40px;
    }

    .hexagon-grid {
        justify-content: center;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        padding: 40px 0;
    }

    .hero-title .subtitle {
        font-size: 14px;
    }

    .hero-title .main-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .hero-description h2 {
        font-size: 1.4rem;
        line-height: 1.3;
    }

    .hero-description p {
        font-size: 15px;
    }

    .hero-buttons .btn {
        font-size: 14px;
        padding: 12px 24px;
        min-width: 180px;
    }

    .hexagon {
        width: 60px;
        height: 60px;
    }

    .hex-icon i {
        font-size: 20px;
    }
}

@media (max-width: 575.98px) {
    .hero-title .main-title {
        font-size: 2rem;
    }

    .hero-description h2 {
        font-size: 1.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }

    .hexagon {
        width: 50px;
        height: 50px;
    }

    .hex-icon i {
        font-size: 18px;
    }
}

/* Stats Section Responsive */
@media (max-width: 991.98px) {
    .stats-section {
        padding: 50px 0;
    }

    .stat-card {
        margin-bottom: 30px;
        text-align: center;
    }
}

@media (max-width: 767.98px) {
    .stats-section {
        padding: 40px 0;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .stat-label {
        font-size: 14px;
    }
}

@media (max-width: 575.98px) {
    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 13px;
    }
}

/* About Preview Section Responsive */
@media (max-width: 991.98px) {
    .about-preview-section {
        padding: 60px 0 !important;
    }

    .about-preview-section .row {
        text-align: center;
    }

    .about-content {
        padding: 30px 20px !important;
    }

    .about-content h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 767.98px) {
    .about-preview-section {
        padding: 50px 0 !important;
    }

    .about-content h2 {
        font-size: 2rem;
        margin-bottom: 20px !important;
    }

    .about-content .lead {
        font-size: 16px;
    }

    .about-content p {
        font-size: 15px;
    }

    .about-content .btn {
        padding: 12px 30px;
        font-size: 14px;
    }
}

@media (max-width: 575.98px) {
    .about-content h2 {
        font-size: 1.8rem;
    }

    .about-content .btn {
        width: 100%;
        max-width: 280px;
    }
}

/* Case Studies Preview Responsive */
@media (max-width: 991.98px) {
    .case-studies-preview {
        padding: 60px 0;
    }

    .case-card {
        margin-bottom: 30px;
    }
}

@media (max-width: 767.98px) {
    .case-studies-preview {
        padding: 50px 0;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .case-card {
        padding: 30px 20px;
    }

    .case-card h3 {
        font-size: 1.3rem;
    }

    .case-card p {
        font-size: 14px;
    }
}

@media (max-width: 575.98px) {
    .section-header h2 {
        font-size: 1.8rem;
    }

    .case-card {
        padding: 25px 15px;
    }

    .case-card .btn {
        width: 100%;
        max-width: 200px;
    }
}

/* CTA Section Responsive */
@media (max-width: 991.98px) {
    .cta-section {
        text-align: center !important;
    }

    .cta-section h2 {
        font-size: 2.5rem;
    }

    .cta-section .col-lg-4 {
        margin-top: 20px;
    }
}

@media (max-width: 767.98px) {
    .cta-section h2 {
        font-size: 2rem;
        margin-bottom: 15px !important;
    }

    .cta-section .lead {
        font-size: 16px;
    }

    .cta-section .btn {
        padding: 15px 30px;
        font-size: 14px;
    }
}

@media (max-width: 575.98px) {
    .cta-section h2 {
        font-size: 1.8rem;
    }

    .cta-section .btn {
        width: 100%;
        max-width: 280px;
    }
}

/* Buttons */
.btn-danger {
    background: var(--primary-color);
    border: 2px solid var(--primary-color);
    color: white;
    transition: all 0.3s ease;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* .btn-danger:hover {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
} */

.btn-danger:active,
.btn-danger:focus {
    background: #c82333 !important;
    border-color: #c82333 !important;
    color: white !important;
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.4);
    outline: none;
}

.btn-outline-danger {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    transition: all 0.3s ease;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-outline-danger:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.btn-outline-danger:active,
.btn-outline-danger:focus {
    background: #c82333 !important;
    border-color: #c82333 !important;
    color: white !important;
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.4);
    outline: none;
}

.btn-outline-light {
    background: transparent;
    border: 2px solid white;
    color: white;
    transition: all 0.3s ease;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-outline-light:hover {
    background: white;
    color: var(--dark-color);
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.btn-outline-light:active,
.btn-outline-light:focus {
    background: #f8f9fa !important;
    border-color: #f8f9fa !important;
    color: var(--dark-color) !important;
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.4);
    outline: none;
}

/* General Button Enhancements */
.btn {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    user-select: none;
    border-radius: 5px;
    font-size: 14px;
    padding: 12px 30px;
    transition: all 0.3s ease;
}

.btn:before {
    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.6s, height 0.6s;
}

.btn:active:before {
    width: 300px;
    height: 300px;
}

/* Button Click Animation */
.btn:active {
    transform: scale(0.98);
}

/* Primary Button Variations */
.btn-primary {
    background: var(--primary-color);
    border: 2px solid var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #c82333;
    border-color: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.btn-primary:active,
.btn-primary:focus {
    background: #a71e2a !important;
    border-color: #a71e2a !important;
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.4);
    outline: none;
}

/* Secondary Button */
.btn-secondary {
    background: #6c757d;
    border: 2px solid #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    border-color: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.btn-secondary:active,
.btn-secondary:focus {
    background: #4e555b !important;
    border-color: #4e555b !important;
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.4);
    outline: none;
}

/* Additional Fixes */
.text-muted {
    color:white!important;
}

.border {
    border-color: var(--gray-color) !important;
}

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(220, 53, 69, 0.075) !important;
}

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

/* Header scroll effect */
.header-section.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* Ensure header is always sticky */
.header-section {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 9999 !important;
    width: 100% !important;
    background: #fff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* Prevent any other elements from interfering */
body {
    padding-top: 120px !important;
}

/* Ensure content doesn't overlap header */
main, .main-content, .content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Animation classes */
.animate-in {
    animation: fadeInUp 0.6s ease-out;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading state */
body:not(.loaded) {
    overflow: hidden;
}

body:not(.loaded)::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-color);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Form validation styles */
.is-invalid {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

/* Responsive Design */
@media (max-width: 991px) {
    .navbar-nav {
        width: 100%;
        text-align: left;
        padding: 20px 0;
    }

    .navbar-nav .nav-link {
        margin: 0;
        padding: 15px 20px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        display: block;
        width: 100%;
        font-size: 16px;
        border-radius: 0;
    }

    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }

    .navbar-nav .nav-link.active::after,
    .navbar-nav .nav-link:hover::after {
        display: none;
    }

    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link.active {
        background: rgba(220, 53, 69, 0.2);
        color: var(--primary-color) !important;
    }

    #mainNavbar.collapse:not(.show) {
        display: none;
    }

    #mainNavbar.collapse.show {
        display: block;
        background: white !important;
        backdrop-filter: blur(15px);
        border-radius: 0 0 15px 15px;
        margin-top: 10px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

    .dropdown-menu {
        position: static !important;
        transform: none !important;
        background: rgba(0, 0, 0, 0.3);
        border: none;
        box-shadow: none;
        margin: 0;
        padding: 0;
        border-radius: 0;
        display: none !important;
    }
    
    .dropdown-menu.show {
        display: block !important;
        animation: dropdownSlideIn 0.3s ease-out;
    }

    .dropdown-item {
        padding: 12px 40px;
        font-size: 14px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .dropdown-item:last-child {
        border-bottom: none;
    }
}

/* Enhanced dropdown functionality for Case Studies and Active Lawsuit */
#caseStudiesDropdown,
#activeLawsuitDropdown {
    position: relative;
    cursor: pointer;
}

#caseStudiesDropdown::after,
#activeLawsuitDropdown::after {
    margin-left: 8px;
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
}

@media (max-width: 768px) {

    /* Mobile spacing adjustments */
    body {
        padding-top: 100px !important; /* Account for fixed header on mobile */
    }

    /* UNIVERSAL MOBILE BANNER SPACING */
    .hero-section,
    .page-banner,
    .page-header,
    .banner-section,
    .page-title-section,
    .inner-banner {
        padding-top: 40px !important;
        padding-bottom: 60px !important;
    }

    /* Override Bootstrap py-5 for mobile */
    section.py-5,
    .py-5 {
        padding-top: 60px !important;
        padding-bottom: 60px !important;
    }

    .page-content,
    .main-content,
    section:first-of-type {
        padding-top: 30px;
    }

    .container section,
    .main-section,
    .content-section {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .about-hero,
    .about-content,
    .gallery-hero,
    .gallery-content,
    .contact-hero,
    .contact-content {
        padding-top: 60px;
        padding-bottom: 50px;
    }

    .footer-section {
        margin-top: 40px;
        padding-top: 40px;
        padding-bottom: 30px;
    }

    /* Top Bar Mobile Styles */
    .top-bar {
        padding: 8px 0;
        font-size: 12px;
    }

    .contact-info {
        font-size: 12px;
    }

    .contact-info i {
        margin-right: 6px;
    }

    .top-bar .btn {
        font-size: 11px;
        padding: 5px 10px;
    }
    
    /* Ensure contact info is visible on mobile */
    .top-bar .contact-info {
        display: flex !important;
        align-items: center;
    }
    
    .top-bar .contact-info a {
        font-size: 11px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* Responsive contact info for smaller screens */
    .top-bar .col-sm-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .top-bar .contact-info .me-4 {
        margin-right: 0.5rem !important;
    }

    .hero-title .main-title {
        font-size: 40px;
    }

    .hero-description h2 {
        font-size: 20px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    .hexagon-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .case-studies-preview {
        padding: 80px 0 60px 0;
    }

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

    .section-header h2 {
        font-size: 32px;
    }

    .section-header p {
        font-size: 16px;
    }

    .case-card {
        padding: 30px 20px;
        margin-bottom: 25px;
    }

    .case-icon {
        width: 75px;
        height: 75px;
        margin-bottom: 25px;
    }

    .case-icon i {
        font-size: 28px;
    }

    .case-card h3 {
        font-size: 22px;
        margin-bottom: 15px;
    }

    .case-card p {
        font-size: 15px;
        margin-bottom: 25px;
    }

    .cta-section h2 {
        font-size: 28px;
    }

    .cta-section .text-end {
        text-align: center !important;
        margin-top: 20px;
    }

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

    .w-lg-auto {
        width: 100% !important;
    }
}

@media (max-width: 576px) {

    /* Top Bar Extra Small Mobile Styles */
    .top-bar {
        padding: 6px 0;
        font-size: 11px;
    }

    .contact-info {
        font-size: 11px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .contact-info i {
        margin-right: 4px;
        font-size: 10px;
    }

    .top-bar .btn {
        font-size: 10px;
        padding: 4px 8px;
        white-space: nowrap;
    }

    .hero-title .main-title {
        font-size: 32px;
    }

    .hero-description h2 {
        font-size: 18px;
    }

    .stat-number {
        font-size: 36px;
    }

    .hexagon {
        width: 60px;
        height: 60px;
    }

    .hex-icon i {
        font-size: 20px;
    }

    /* Case Studies Mobile Styles */
    .case-studies-preview {
        padding: 60px 0 50px 0;
    }

    .section-header {
        margin-bottom: 50px;
        padding: 0 10px;
    }

    .section-header h2 {
        font-size: 28px;
        margin-bottom: 15px;
    }

    .section-header p {
        font-size: 15px;
    }

    .case-card {
        padding: 25px 20px;
        margin-bottom: 20px;
        border-radius: 12px;
    }

    .case-icon {
        width: 65px;
        height: 65px;
        margin-bottom: 20px;
    }

    .case-icon i {
        font-size: 24px;
    }

    .case-card h3 {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .case-card p {
        font-size: 14px;
        margin-bottom: 20px;
        line-height: 1.6;
    }

    .case-card .btn {
        padding: 10px 25px;
        font-size: 14px;
    }

    /* Simple Form Mobile Styles */
    .simple-form-group {
        margin-bottom: 18px;
    }

    .simple-form-control {
        padding: 14px 16px;
        font-size: 16px;
        border-radius: 6px;
        min-height: 52px;
    }

    .simple-form-control::placeholder {
        font-size: 15px;
    }

    .simple-form-control[rows] {
        min-height: 100px;
    }
}

/* Contact Form Styles - Modern Design */
.contact-form-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 80px 0;
    position: relative;
}

/* Simple Form Fields - Reference Website Style */
.simple-form-group {
    margin-bottom: 20px;
}

.simple-form-control {
    width: 100%;
    padding: 16px 18px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f8f9fa;
    font-size: 16px;
    color: #333;
    transition: all 0.3s ease;
    outline: none;
    font-family: inherit;
    box-sizing: border-box;
    min-height: 56px;
}

.simple-form-control:focus {
    border-color: #aaa;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.simple-form-control::placeholder {
    color: #999;
    font-size: 16px;
    opacity: 1;
}

.simple-form-control:focus::placeholder {
    color: #bbb;
}

/* Select dropdown styling */
.simple-form-control[type="select"],
select.simple-form-control {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
    appearance: none;
}

/* Date input specific styling */
.simple-form-control[type="date"] {
    cursor: pointer;
    color: #666;
    position: relative;
}

.simple-form-control[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    color: #666;
    font-size: 16px;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.simple-form-control[type="date"]::-webkit-calendar-picker-indicator:hover {
    background: rgba(0, 0, 0, 0.1);
}

.simple-form-control[type="date"]:focus,
.simple-form-control[type="date"]:valid {
    color: #333;
}

/* Textarea specific styling */
.simple-form-control[rows] {
    resize: vertical;
    min-height: 120px;
    line-height: 1.5;
}



.contact-form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url("https://legalactionhelp.com/assets/css/%23grid")"/></svg>');
    opacity: 0.5;
}

.contact-wrapper {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

/* Left Side - Content */
.contact-content-side {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    padding: 60px 50px;
    color: white;
    position: relative;
}

.contact-content-side::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(220, 53, 69, 0.1) 0%, transparent 50%);
}

.contact-content {
    position: relative;
    z-index: 1;
}

.content-header {
    margin-bottom: 40px;
}

.section-badge {
    background: var(--primary-color);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 20px;
}

.contact-content h2 {
    color: white;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.lead-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 0;
}

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

/* Large Desktop (1200px and up) - Default styles already applied */

/* Medium Desktop (992px to 1199px) */
@media (max-width: 1199.98px) {
    .container {
        max-width: 960px;
    }

    /* General section padding adjustments */
    .section-padding {
        padding: 80px 0;
    }

    /* Typography adjustments */
    h1 {
        font-size: 2.8rem;
    }

    h2 {
        font-size: 2.4rem;
    }

    h3 {
        font-size: 1.8rem;
    }

    h4 {
        font-size: 1.4rem;
    }

    /* Banner sections */
    .banner-section {
        padding: 100px 0;
    }

    .banner-content h1 {
        font-size: 3rem;
    }

    .banner-content p {
        font-size: 16px;
    }
}

/* Tablet (768px to 991px) */
@media (max-width: 991.98px) {
    .container {
        max-width: 720px;
    }

    /* General section padding */
    .section-padding {
        padding: 60px 0;
    }

    /* Typography */
    h1 {
        font-size: 2.4rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.6rem;
    }

    h4 {
        font-size: 1.3rem;
    }

    /* Banner sections */
    .banner-section {
        padding: 80px 0;
        text-align: center;
    }

    .banner-content h1 {
        font-size: 2.5rem;
        margin-bottom: 20px;
    }

    .banner-content p {
        font-size: 15px;
        margin-bottom: 30px;
    }

    /* Navigation adjustments */
    .navbar-nav .nav-link {
        padding: 10px 15px;
        text-align: center;
    }

    .header-logo {
        height: 45px;
        max-width: 180px;
    }

    .dropdown-menu {
        position: static !important;
        transform: none !important;
        border: none;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.1);
        margin-top: 0;
    }

    /* Content sections */
    .content-section {
        padding: 50px 0;
    }

    /* Cards and widgets */
    .card,
    .widget,
    .feature-box {
        margin-bottom: 30px;
        text-align: center;
    }

    /* Images */
    .img-responsive {
        width: 100%;
        height: auto;
    }

    /* Buttons */
    .btn-group {
        flex-direction: column;
        gap: 10px;
    }

    .btn-group .btn {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* Mobile Large (576px to 767px) */
@media (max-width: 767.98px) {
    .container {
        max-width: 540px;
        padding: 0 20px;
    }

    /* General section padding */
    .section-padding {
        padding: 50px 0;
    }

    /* Typography */
    h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    h2 {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    h3 {
        font-size: 1.4rem;
        line-height: 1.3;
    }

    h4 {
        font-size: 1.2rem;
        line-height: 1.3;
    }

    h5 {
        font-size: 1.1rem;
    }

    h6 {
        font-size: 1rem;
    }

    p,
    .lead {
        font-size: 14px;
        line-height: 1.5;
    }

    /* Banner sections */
    .banner-section {
        padding: 60px 0;
    }

    .banner-content h1 {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .banner-content p {
        font-size: 14px;
        margin-bottom: 25px;
    }

    /* Content sections */
    .content-section {
        padding: 40px 0;
    }

    /* Cards and components */
    .card {
        margin-bottom: 25px;
    }

    .card-body {
        padding: 20px 15px;
    }

    /* Tables */
    .table-responsive {
        font-size: 12px;
    }

    /* Forms */
    .form-group {
        margin-bottom: 20px;
    }

    .form-control {
        font-size: 14px;
        padding: 12px 15px;
    }

    /* Buttons */
    .btn {
        font-size: 14px;
        padding: 12px 20px;
    }

    .btn-lg {
        font-size: 15px;
        padding: 15px 25px;
    }

    .btn-sm {
        font-size: 12px;
        padding: 8px 15px;
    }

    /* Spacing utilities */
    .mb-4 {
        margin-bottom: 20px !important;
    }

    .mb-5 {
        margin-bottom: 30px !important;
    }

    .py-5 {
        padding: 40px 0 !important;
    }

    /* Text alignment */
    .text-center-mobile {
        text-align: center !important;
    }
}

/* Mobile Small (up to 575px) */
@media (max-width: 575.98px) {
    .container {
        max-width: 100%;
        padding: 0 15px;
    }

    /* General section padding */
    .section-padding {
        padding: 40px 0;
    }

    /* Typography */
    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    h3 {
        font-size: 1.3rem;
    }

    h4 {
        font-size: 1.1rem;
    }

    p,
    .lead {
        font-size: 13px;
    }

    /* Banner sections */
    .banner-section {
        padding: 50px 0;
    }

    .banner-content h1 {
        font-size: 1.8rem;
    }

    .banner-content p {
        font-size: 13px;
    }

    /* Content sections */
    .content-section {
        padding: 30px 0;
    }

    /* Cards */
    .card-body {
        padding: 15px 12px;
    }

    /* Buttons */
    .btn {
        font-size: 13px;
        padding: 10px 18px;
        width: 100%;
        margin-bottom: 10px;
    }

    .btn-group .btn {
        margin-bottom: 8px;
    }

    /* Navigation */
    .navbar-brand {
        font-size: 18px;
    }

    .header-logo {
        height: 40px;
        max-width: 150px;
    }

    .nav-link {
        font-size: 14px;
        padding: 8px 12px;
    }

    /* Footer Mobile Specific */
    .footer-section {
        padding: 30px 0 15px;
    }

    .footer-widget {
        margin-bottom: 25px;
        text-align: left !important;
    }

    .footer-widget h4,
    .footer-widget h5 {
        font-size: 16px;
        margin-bottom: 15px;
        font-weight: bold;
        color: white;
        text-align: left;
    }

    .footer-widget p {
        font-size: 14px;
        line-height: 1.6;
        text-align: left;
        margin-bottom: 15px;
    }

    .footer-widget ul {
        list-style: none;
        padding: 0;
        margin: 0;
        text-align: left;
    }

    .footer-widget ul li {
        margin-bottom: 10px;
        text-align: left;
    }

    .footer-widget ul li a {
        color: #cccccc;
        text-decoration: none;
        font-size: 14px;
        display: block;
        padding: 3px 0;
        text-align: left;
        transition: color 0.3s ease;
    }

    .footer-widget ul li a:hover {
        color: var(--primary-color);
    }

    .contact-info li {
        display: flex;
        align-items: flex-start;
        margin-bottom: 12px;
        text-align: left;
        justify-content: flex-start;
    }

    .contact-info i {
        color: var(--primary-color);
        width: 18px;
        font-size: 14px;
        margin-right: 10px;
        margin-top: 2px;
        flex-shrink: 0;
    }

    .contact-info span {
        color: #cccccc;
        font-size: 14px;
        line-height: 1.4;
        text-align: left;
    }

    .social-links {
        display: flex;
        gap: 12px;
        margin-top: 15px;
        justify-content: flex-start;
    }

    .social-links a {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    /* Form Check Mobile */
    .form-check {
        margin: 15px 0;
        gap: 10px;
        align-items: flex-start;
    }

    .form-check-input {
        width: 20px;
        height: 20px;
        margin-top: 2px;
    }

    .form-check-input:checked::after {
        font-size: 13px;
    }

    .form-check-label {
        font-size: 13px;
        line-height: 1.4;
        text-align: left;
    }

    /* Spacing */
    .mb-3 {
        margin-bottom: 15px !important;
    }

    .mb-4 {
        margin-bottom: 20px !important;
    }

    .py-4 {
        padding: 30px 0 !important;
    }

    .py-5 {
        padding: 35px 0 !important;
    }
}

/* Extra Small Mobile (up to 480px) */
@media (max-width: 479.98px) {
    .container {
        padding: 0 12px;
    }

    /* Typography */
    h1 {
        font-size: 1.6rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    /* Banner sections */
    .banner-content h1 {
        font-size: 1.6rem;
    }

    /* Buttons */
    .btn {
        font-size: 12px;
        padding: 8px 15px;
    }

    /* Cards */
    .card-body {
        padding: 12px 10px;
    }

    /* Forms */
    .form-control {
        font-size: 13px;
        padding: 10px 12px;
    }
}

.benefits-grid {
    margin: 40px 0;
}

.benefit-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    gap: 20px;
}

.benefit-icon {
    background: rgba(220, 53, 69, 0.15);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.benefit-icon i {
    color: var(--primary-color);
    font-size: 20px;
}

.benefit-text h4 {
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.benefit-text p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-bottom: 0;
    line-height: 1.4;
}

.case-types {
    margin-top: 40px;
}

.case-types h4 {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

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

.case-tag {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.case-tag:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Right Side - Form */
.contact-form-side {
    background: #ffffff;
    padding: 60px 40px;
}

.contact-form-container {
    max-width: 100%;
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-header h3 {
    color:white;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
}

.form-header p {
    color: white;
    font-size: 16px;
    margin-bottom: 0;
}

/* Form Styling */
.contact-form-container .form-group {
    margin-bottom: 20px;
}

.contact-form-container .form-control,
.contact-form-container .form-select {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 16px 20px;
    font-size: 16px;
    color: #333;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.contact-form-container .form-control:focus,
.contact-form-container .form-select:focus {
    background: white;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.15);
    outline: none;
    transform: translateY(-2px);
}

.contact-form-container .form-control::placeholder {
    color: #999;
    opacity: 1;
}

.contact-form-container textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* Form Check */
.form-check {
    padding: 0;
    margin: 20px 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.form-check-input {
    width: 18px;
    height: 18px;
    margin: 0;
    border: 2px solid #ddd;
    border-radius: 4px;
    background-color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    position: relative;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-input:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.form-check-input:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.1);
}

.form-check-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.2);
}

.form-check-label {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    cursor: pointer;
    flex: 1;
    margin: 0;
    padding: 0;
}

/* Submit Button */
.contact-form-container .submit-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, #c82333 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 18px 30px;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.contact-form-container .submit-btn:hover {
    background: linear-gradient(135deg, #c82333 0%, var(--primary-color) 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.4);
}

.contact-form-container .submit-btn:active {
    transform: translateY(-1px);
}

.form-footer {
    text-align: center;
    margin-top: 20px;
}

.form-footer p {
    color: #999;
    font-size: 13px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.form-footer i {
    color: #28a745;
}

/* Responsive Design */
@media (max-width: 991.98px) {

    .contact-content-side,
    .contact-form-side {
        padding: 50px 40px;
    }

    .contact-content h2 {
        font-size: 32px;
    }

    .form-header h3 {
        font-size: 24px;
    }

    .benefit-item {
        margin-bottom: 20px;
    }

    .case-tags {
        justify-content: center;
    }
}

@media (max-width: 767.98px) {
    .contact-form-section {
        padding: 60px 0;
    }

    .contact-content-side,
    .contact-form-side {
        padding: 40px 30px;
    }

    .contact-content h2 {
        font-size: 28px;
    }

    .form-header h3 {
        font-size: 22px;
    }

    .lead-text {
        font-size: 16px;
    }

    .benefit-item {
        gap: 15px;
    }

    .benefit-icon {
        width: 45px;
        height: 45px;
    }

    .benefit-icon i {
        font-size: 18px;
    }

    /* Contact Form Checkbox Mobile */
    .form-check {
        margin: 20px 0;
        gap: 12px;
        display: flex;
        align-items: flex-start;
    }

    .form-check-input {
        width: 20px;
        height: 20px;
        margin-top: 2px;
        flex-shrink: 0;
    }

    .form-check-label {
        font-size: 14px;
        line-height: 1.5;
        color: #666;
        text-align: left;
        flex: 1;
    }
}

@media (max-width: 575.98px) {

    .contact-content-side,
    .contact-form-side {
        padding: 30px 20px;
    }

    .contact-content h2 {
        font-size: 24px;
    }

    .form-header h3 {
        font-size: 20px;
    }

    .case-tags {
        gap: 8px;
    }

    .case-tag {
        font-size: 12px;
        padding: 6px 12px;
    }

    /* Contact Form Checkbox Small Mobile */
    .form-check {
        margin: 18px 0;
        gap: 10px;
        display: flex;
        align-items: flex-start;
    }

    .form-check-input {
        width: 18px;
        height: 18px;
        margin-top: 2px;
        flex-shrink: 0;
    }

    .form-check-input:checked::after {
        font-size: 11px;
    }

    .form-check-label {
        font-size: 13px;
        line-height: 1.4;
        color: #666;
        text-align: left;
        flex: 1;
    }
}

/* ===== ENHANCED HOVER DROPDOWN FOR ALL DEVICES ===== */

/* Universal Hover Dropdown - Works on All Screen Sizes */
/* Default dropdown state - hidden but ready */
.nav-item.dropdown .dropdown-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px);
    transition: all 0.25s ease-in-out;
   /*  display: block !important;
    pointer-events: none; */
    margin-top: 0;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

/* Hover state - show dropdown with smooth animation - ALL DEVICES */
.nav-item.dropdown:hover .dropdown-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
    animation: dropdownSlideIn 0.3s ease-out forwards;
}

/* Enhanced animation for dropdown appearance */
@keyframes dropdownSlideIn {
    0% {
        opacity: 0;
        transform: translateY(-15px) scale(0.95);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Ensure dropdown stays open when hovering over the menu itself */
.dropdown-menu:hover {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
}

/* Create a hover bridge between toggle and menu */
.nav-item.dropdown {
    position: relative;
}

.nav-item.dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 10px;
    background: transparent;
    z-index: 1000;
}

/* Enhanced dropdown toggle styling */
.dropdown-toggle {
    transition: all 0.3s ease;
    position: relative;
    z-index: 1001;
}

.dropdown-toggle:hover {
    background-color: rgba(220, 53, 69, 0.1) !important;
    transform: translateY(-1px);
    color: var(--primary-color) !important;
}

/* Case Studies specific cursor */
#caseStudiesDropdown {
    cursor: pointer;
}

/* Desktop Specific Positioning (992px and up) */
@media (min-width: 992px) {
    .dropdown-menu {
        top: 100% !important;
        left: 50% !important;
        transform-origin: top center;
        min-width: 280px;
        z-index: 1050;
    }

    /* Perfect positioning for dropdown */
    .nav-item.dropdown:hover .dropdown-menu {
        left: 50% !important;
        transform: translateX(-50%) translateY(0) !important;
    }

    .dropdown-menu {
        transform: translateX(-50%) translateY(-15px);
    }
}

/* Tablet Specific Positioning (768px to 991px) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .dropdown-menu {
        top: 100% !important;
        left: 0 !important;
        transform-origin: top left;
        min-width: 250px;
        z-index: 1050;
    }

    .nav-item.dropdown:hover .dropdown-menu {
        left: 0 !important;
        transform: translateY(0) !important;
    }

    .dropdown-menu {
        transform: translateY(-15px);
    }

    /* Tablet navigation adjustments */
    .navbar-nav .nav-link {
        padding: 12px 15px !important;
    }
}

/* Mobile Specific Positioning (beLaw 768px) */
@media (max-width: 767.98px) {

    /* Hide dropdowns by default on mobile */
    .dropdown-menu {
        position: static !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        min-width: auto;
        width: calc(100% - 40px);
        margin: 0 20px;
        border-radius: 8px;
        background: rgba(220, 53, 69, 0.1);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(220, 53, 69, 0.2);
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        display: none !important;
        max-height: 0;
        overflow: hidden;
        transition: all 0.3s ease;
    }

    /* Show dropdown only when explicitly shown */
    .nav-item.dropdown .dropdown-menu.show {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        display: block !important;
        max-height: 500px;
        margin: 10px 20px;
        animation: mobileDropdownSlide 0.3s ease-out;
    }

    /* Mobile dropdown slide animation */
    @keyframes mobileDropdownSlide {
        0% {
            opacity: 0;
            max-height: 0;
            transform: translateY(-10px);
        }

        100% {
            opacity: 1;
            max-height: 500px;
            transform: translateY(0);
        }
    }

    /* Enhanced mobile dropdown items */
    .dropdown-item {
        padding: 15px 25px;
        font-size: 14px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        color: #f8f9fa !important;
        transition: all 0.3s ease;
        min-height: 48px;
        display: flex;
        align-items: center;
    }

    .dropdown-item:last-child {
        border-bottom: none;
    }

    .dropdown-item:hover,
    .dropdown-item:focus {
        background: var(--primary-color) !important;
        color: white !important;
        transform: translateX(8px);
    }

    /* Mobile navigation links */
    .navbar-nav .nav-link {
        padding: 15px 20px !important;
        font-size: 16px;
        font-weight: 600;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }

    /* Dropdown toggle arrow */
    .dropdown-toggle::after {
        margin-left: auto;
        transition: transform 0.3s ease;
    }

    .dropdown-toggle[aria-expanded="true"]::after {
        transform: rotate(180deg);
    }
}

/* ===== ENHANCED TOUCH SUPPORT FOR ALL DEVICES ===== */

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {

    /* Touch-specific hover behavior */
    .nav-item.dropdown {
        -webkit-tap-highlight-color: transparent;
    }

    .dropdown-toggle {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

    /* Enhanced touch feedback */
    .dropdown-toggle:active {
        background-color: rgba(220, 53, 69, 0.2) !important;
        transform: scale(0.98);
    }

    .dropdown-item:active {
        background-color: var(--primary-color) !important;
        color: white !important;
        transform: scale(0.98);
    }
}

/* Hybrid devices (touch + mouse) support */
@media (hover: hover) and (pointer: coarse) {

    /* Devices that support both hover and touch */
    .nav-item.dropdown:hover .dropdown-menu {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
        pointer-events: auto !important;
    }
}

/* Enhanced accessibility for all input methods */
.dropdown-toggle:focus,
.dropdown-item:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    background-color: rgba(220, 53, 69, 0.1) !important;
}

/* Keyboard navigation support */
.dropdown-toggle:focus+.dropdown-menu,
.dropdown-menu:focus-within {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
}

/* Perfect responsive behavior for all screen sizes */
@media (max-width: 575.98px) {

    /* Extra small mobile devices */
    .dropdown-menu {
        font-size: 14px;
        border-radius: 6px;
    }

    .dropdown-item {
        padding: 14px 20px;
        min-height: 48px;
        display: flex;
        align-items: center;
    }

    .dropdown-toggle {
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
}

/* Mobile Dropdown Max Height Styles */
@media (max-width: 768px) {
    .dropdown-menu {
        max-height: 0 !important;
        overflow: hidden !important;
        transition: max-height 0.3s ease, opacity 0.3s ease !important;
        opacity: 0 !important;
        border: none !important;
        box-shadow: none !important;
    }

    .dropdown-menu.show {
        max-height: 300px !important;
        overflow-y: auto !important;
        opacity: 1 !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: thin !important;
        scrollbar-color: #dc3545 #f8f9fa !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
        border: 1px solid #dee2e6 !important;
    }

    .dropdown-menu::-webkit-scrollbar {
        width: 6px !important;
    }

    .dropdown-menu::-webkit-scrollbar-track {
        background: #f8f9fa !important;
        border-radius: 3px !important;
    }

    .dropdown-menu::-webkit-scrollbar-thumb {
        background: #dc3545 !important;
        border-radius: 3px !important;
    }

    .dropdown-menu::-webkit-scrollbar-thumb:hover {
        background: #c82333 !important;
    }

    /* Ensure dropdown items are properly spaced on mobile */
    .dropdown-item {
        padding: 12px 16px !important;
        font-size: 14px !important;
        line-height: 1.4 !important;
    }
}

@media (max-width: 575px) {
    .dropdown-menu.show {
        max-height: 250px !important;
    }

    .dropdown-item {
        padding: 10px 14px !important;
        font-size: 13px !important;
    }
}

.dropdown-menu {
    padding: 0 !important;
}
/* Make nav links black on white navbar */
.navbar .nav-link {
    color: #000 !important;
    transition: all 0.3s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: #d82332 !important; /* Highlight on hover/active */
    font-weight: bold;
}

/* Top bar red background */
.top-bar {
    background-color: #d82332;
}

.top-bar a {
}

/* Testimonials Section Styles */
.testimonials-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.testimonials-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="%23ffffff" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="%23ffffff" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url("https://legalactionhelp.com/assets/css/%23grain")"/></svg>');
    pointer-events: none;
}

.testimonials-swiper {
    position: relative;
    padding: 0 60px;
    margin-bottom: 0;
}

.testimonials-swiper-container {
    overflow: hidden;
    position: relative;
    padding-bottom: 80px;
}

.testimonial-card {
    background: #ffffff;
    border-radius: 15px;
    padding: 35px 25px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #dc3545, #e74c3c, #c0392b);
    border-radius: 15px 15px 0 0;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.testimonial-content {
    text-align: center;
    color: #333;
}

.quote-icon {
    color: #dc3545 !important;
    opacity: 0.8;
    margin-bottom: 20px;
}

.quote-icon i {
    color: #dc3545 !important;
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #333;
    font-style: italic;
    margin-bottom: 25px;
    position: relative;
    padding-left: 20px;
}

.testimonial-text::before {
    content: '"';
    font-size: 3rem;
    color: #dc3545;
    opacity: 0.3;
    position: absolute;
    top: -15px;
    left: -5px;
    font-family: serif;
    font-weight: bold;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.author-info {
    text-align: center;
}

.author-name {
    color: #dc3545;
    font-weight: 700;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.author-location {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
    font-weight: 500;
}

/* Swiper Navigation Styles */
.testimonials-swiper-button-next,
.testimonials-swiper-button-prev {
    width: 50px !important;
    height: 50px !important;
    background: #ffffff !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    color: #dc3545 !important;
    transition: all 0.3s ease;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    border: 2px solid #dc3545;
}

.testimonials-swiper-button-next:hover,
.testimonials-swiper-button-prev:hover {
    background: #dc3545 !important;
    color: #ffffff !important;
    transform: translateY(-50%) scale(1.1);
}

.testimonials-swiper-button-next::after,
.testimonials-swiper-button-prev::after {
    font-size: 18px !important;
    font-weight: bold !important;
    color: inherit !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.testimonials-swiper-button-next {
    right: -30px;
}

.testimonials-swiper-button-prev {
    left: -30px;
}

/* Swiper Pagination Styles */
.testimonials-swiper-pagination {
    position: relative;
    margin-top: 60px;
    text-align: center;
    bottom: auto !important;
    top: auto !important;
    z-index: 5;
}

.testimonials-swiper-pagination .swiper-pagination-bullet {
    width: 12px !important;
    height: 12px !important;
    background: #ddd !important;
    opacity: 1 !important;
    margin: 0 5px !important;
    transition: all 0.3s ease;
    border-radius: 50% !important;
    position: relative;
    z-index: 10;
}

.testimonials-swiper-pagination .swiper-pagination-bullet-active {
    background: #dc3545 !important;
    transform: scale(1.2);
}

/* Responsive Design */
@media (max-width: 1199.98px) {
    .testimonial-card {
        padding: 35px 25px;
    }
    
    .testimonial-text {
        font-size: 1rem;
    }
    
    .testimonials-swiper-button-next {
        right: -20px;
    }
    
    .testimonials-swiper-button-prev {
        left: -20px;
    }
}

@media (max-width: 991.98px) {
    .testimonials-swiper {
        padding: 0 15px;
    }
    
    .testimonial-card {
        padding: 30px 20px;
    }
    
    .testimonial-text {
        font-size: 0.95rem;
    }
    
    .testimonials-swiper-button-next,
    .testimonials-swiper-button-prev {
        width: 45px;
        height: 45px;
    }
    
    .testimonials-swiper-button-next::after,
    .testimonials-swiper-button-prev::after {
        font-size: 16px;
    }
}

@media (max-width: 767.98px) {
    .testimonials-section {
        padding: 60px 0;
    }
    
    .testimonial-card {
        padding: 25px 20px;
        margin: 0 10px;
    }
    
    .testimonial-text {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .quote-icon {
        margin-bottom: 15px;
    }
    
    .quote-icon i {
        font-size: 2rem !important;
    }
    
    .testimonials-swiper-button-next,
    .testimonials-swiper-button-prev {
        width: 40px;
        height: 40px;
        display: none;
    }
    
    .testimonials-swiper-pagination {
        margin-top: 40px;
    }
}

@media (max-width: 575.98px) {
    .testimonials-section {
        padding: 50px 0;
    }
    
    .testimonial-card {
        padding: 20px 15px;
    }
    
    .testimonial-text {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    .author-name {
        font-size: 1rem;
    }
    
    .author-location {
        font-size: 0.8rem;
    }
    
    .testimonials-swiper-pagination .swiper-pagination-bullet {
        width: 10px;
        height: 10px;
        margin: 0 3px;
    }
}

/* Override default Swiper styles */
.swiper-button-next,
.swiper-button-prev {
    color: #dc3545 !important;
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    border: 2px solid #dc3545 !important;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    color: #ffffff !important;
    background: #dc3545 !important;
}

.swiper-button-next::after,
.swiper-button-prev::after {
    color: inherit !important;
    font-size: 18px !important;
    font-weight: bold !important;
}

.swiper-pagination-bullet {
    background: #ddd !important;
    width: 12px !important;
    height: 12px !important;
    border-radius: 50% !important;
}

.swiper-pagination-bullet-active {
    background: #dc3545 !important;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .testimonials-section {
        background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    }
    
    .testimonial-card {
        background: #2d3748;
        color: #e2e8f0;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .testimonial-content {
        color: #e2e8f0;
    }
    
    .testimonial-text {
        color: #cbd5e0;
    }
    
    .author-name {
        color: #e2e8f0;
    }
    
    .author-location {
        color: #a0aec0;
    }
    
    .testimonials-swiper-button-next,
    .testimonials-swiper-button-prev {
        background: #2d3748;
        color: #dc3545;
    }
    
    .testimonials-swiper-button-next:hover,
    .testimonials-swiper-button-prev:hover {
        background: #dc3545;
        color: #ffffff;
    }
}

