:root {
    --primary: #a90000;
    --secondary: #000000;
    --light: #f8f9fa;
}

::selection {
    background-color: var(--primary);
    color: var(--light);
}

a {
    text-decoration: none;
    color: var(--primary);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
}

.bg-primary{
    background-color: #a90000 !important;
}

.bg-dark{
    background-color: #141414 !important;
}

.text-light-red{
    color: #ff0000 !important;
}

.top-nav {
    background-color: var(--primary);
    color: white;
    padding: 5px 0;
    font-size: 14px;
}

.main-nav {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar{
    border-bottom: 4px solid var(--primary);
    padding-block: 0;
    z-index: 40;
}

.navbar-brand {
    font-weight: 700;
    color: var(--secondary);
}

.navbar-brand img {
    max-height: 50px;
    width: auto;
}

.navbar-toggler {
    border: none !important;
}

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

.navbar-brand span {
    color: var(--primary);
}

.nav-link {
    font-weight: 500;
    color: var(--secondary);
    transition: all 0.3s;
}

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

/* Dropdown menu on hover */
.dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.dropdown-menu {
    border-radius: 0;
    border: none;
}

.dropdown-item {
    transition: all 0.3s;
}

.dropdown-item:hover {
    background-color: var(--primary);
    color: white;
}

/* Hero Slider */


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

.btn-primary {
    background-color: var(--primary)!important;
    border-color: var(--primary)!important;
    color: white!important;
    font-weight: 600;
    padding: 10px 25px;
    transition: all 0.3s;
}

.btn-primary:hover, 
.btn-primary:focus {
    background-color: var(--secondary)!important;
    border-color: var(--secondary)!important;
    color: var(--light)!important;
}

.btn-outline-light {
    border-width: 2px;
    font-weight: 600;
    padding: 10px 25px;
    transition: all 0.3s;
}

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

.btn-custom {
    background-color: var(--primary);
    color: white;
    border-radius: 30px;
    padding: 10px 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-custom:hover, .btn-custom:focus {
    background-color: var(--secondary);
    color: var(--light);
    text-decoration: none;
}

.certification-badge {
    background-color: var(--primary);
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 12px;
    display: inline-block;
    margin-bottom: 15px;
    border: none;
}

.hero-slider {
    position: relative;
    height: 620px;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    pointer-events: none;
}

.slider-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.4);
}

.slide.active {
    opacity: 1;
    z-index: 1;
    pointer-events: auto;
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 12px;
    z-index: 20;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background-color: var(--primary);
    transform: scale(1.2);
}

.slider-content-wrapper {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.slider-content {
    max-width: 600px;
    color: var(--light);
}

.slider-content h1, .slider-content span {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    line-height: 1.2;
}

.slider-content p {
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* Single Form Container - Fixed Position */
.slider-form-container {
    position: absolute;
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.98);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
    z-index: 15;
}

.slider-form .form-control {
    border-radius: 5px;
    border: 1px solid #ddd;
    padding: 12px 15px;
}

.slider-form .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(169, 0, 0, 0.25);
}

.slider-form textarea.form-control {
    min-height: 80px;
    resize: vertical;
}

.certification-badge {
    background-color: var(--primary);
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 12px;
    display: inline-block;
    margin-bottom: 15px;
    border: none;
}

/* Hide arrows on desktop */
.slider-arrow {
    display: none;
}

/* Tablet View (768px - 991px) */
@media (max-width: 991px) {
    .hero-slider {
        height: auto;
        min-height: 850px;
    }
    
    .slide {
        height: auto;
        min-height: 850px;
    }
    
    .slider-content-wrapper {
        flex-direction: column;
        justify-content: flex-start;
        padding: 60px 20px 100px;
        min-height: 850px;
    }
    
    .slider-content {
        text-align: center;
        max-width: 100%;
        margin-bottom: 30px;
        padding-top: 40px;
    }
    
    .slider-content .d-flex {
        justify-content: center;
    }
    
    /* Form moves below content on tablet */
    .slider-form-container {
        position: static;
        transform: none;
        margin: 30px auto 0;
        max-width: 500px;
        width: 90%;
        right: auto;
    }
    
    .slider-dots {
        bottom: 20px;
        z-index: 25;
    }

    /* Show arrows on tablet */
    .slider-arrow {
        display: flex;
        position: absolute;
        top: 25%;
        transform: translateY(-50%);
        width: 45px;
        height: 45px;
        background-color: rgba(255, 255, 255, 0.25);
        color: white;
        border-radius: 50%;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 30;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
        transition: all 0.3s ease;
    }
    
    .slider-arrow:hover {
        background-color: rgba(255, 255, 255, 0.4);
        transform: translateY(-50%) scale(1.1);
    }
    
    .slider-arrow.prev {
        left: 20px;
    }
    
    .slider-arrow.next {
        right: 20px;
    }
    
    .slider-arrow i {
        color: #fff;
        font-size: 20px;
    }
}

/* Mobile View (Below 768px) */
@media (max-width: 767px) {
    .hero-slider {
        height: auto;
        min-height: 100vh;
        display: flex;
        align-items: center;
    }
    
    .slide {
        height: auto;
        min-height: 100vh;
        align-items: center;
        justify-content: center;
        padding: 0;
    }
    
    .slider-img {
        filter: brightness(0.3);
    }
    
    .slider-content-wrapper {
        flex-direction: column;
        padding: 80px 15px 120px;
        min-height: 100vh;
        justify-content: center;
        align-items: center;
    }
    
    .slider-content {
        text-align: center;
        margin-bottom: 25px;
        width: 100%;
    }
    
    .slider-content h1 {
        font-size: 1.75rem !important;
    }
    
    .slider-content span.display-4 {
        font-size: 1.75rem !important;
    }
    
    .slider-content p.lead {
        font-size: 0.95rem;
        margin-bottom: 1.5rem !important;
    }
    
    .slider-content .certification-badge {
        font-size: 11px;
        padding: 6px 12px;
        margin-bottom: 10px;
    }
    
    .slider-content .d-flex {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        margin-bottom: 20px;
    }
    
    .slider-content .btn {
        width: 100%;
        max-width: 280px;
        margin: 0 !important;
        padding: 12px 20px;
        font-size: 0.95rem;
    }
    
    /* Form positioning on mobile */
    .slider-form-container {
        position: static;
        transform: none;
        width: 100%;
        max-width: 100%;
        padding: 20px;
        margin: 0 auto;
        border-radius: 8px;
        right: auto;
    }
    
    .slider-form .form-label {
        font-size: 0.9rem;
        margin-bottom: 5px;
    }
    
    .slider-form .form-control {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .slider-form .form_box {
        margin-bottom: 15px !important;
    }
    
    .slider-form textarea.form-control {
        min-height: 70px;
    }
    
    .slider-form .btn-primary {
        width: 100%;
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    .slider-dots {
        bottom: 80px;
        gap: 8px;
        z-index: 25;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
    
    /* Arrows positioning for mobile */
    .slider-arrow {
        display: flex;
        top: 20%;
        width: 40px;
        height: 40px;
        background-color: rgba(255, 255, 255, 0.2);
    }
    
    .slider-arrow.prev {
        left: 15px;
    }
    
    .slider-arrow.next {
        right: 15px;
    }
    
    .slider-arrow i {
        color: #fff;
        font-size: 18px;
    }
    
    /* Ensure form doesn't overflow */
    .slide .container {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
    }
}

/* Extra Small Mobile (Below 400px) */
@media (max-width: 399px) {
    .slider-content h1 {
        font-size: 1.5rem !important;
    }
    
    .slider-content span.display-4 {
        font-size: 1.5rem !important;
    }
    
    .slider-content p.lead {
        font-size: 0.85rem;
    }
    
    .slider-form-container {
        padding: 15px;
    }
    
    .slider-form .form-control {
        padding: 8px 10px;
        font-size: 0.85rem;
    }

    .slider-arrow {
        width: 35px;
        height: 35px;
    }
    
    .slider-arrow i {
        font-size: 16px;
    }
}

.section-title {
    font-size: 32px;
    font-weight: 600;
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 30px;
}

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

.service-card {
    transition: all 0.3s;
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    height: 100%;
}

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


footer {
    background-color: var(--secondary);
    color: white;
    padding: 60px 0 30px;
}

.footer-link {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s;
}

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

.footer-topic{
    font-size: 20px!important;
    font-weight: 700!important;
    color: var(--primary);
}

.footer-topic:after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    border-radius: 20px;
    background-color: white;
    margin-top: 10px;
    margin-bottom: 20px;
}

.nav-social-icon {
    font-size: 16px;
    width: 25px;
    height: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

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

.social-icon:hover {
    background-color: var(--primary);
    color: var(--secondary);
}

.expertise-card{
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s;
    height: 260px;
    border-radius: 15px;
}

.expertise-card:hover{
    transform: translateY(-5px);
    background-color: var(--primary);
    color: var(--light);
    box-shadow: 0 15px 30px rgba(68, 0, 0, 0.526);
}

.expertise-title{
    font-size: 20px;
    font-weight: 700;
    margin-top: 15px;
}

.expertise-info{
    font-size: 20px;
    font-weight: 700;
    padding: 4px 0;
    color: var(--primary);
}

.expertise-sub-title{
    font-size: 16px;
    color: var(--secondary);
}

.expertise-card:hover .expertise-icon i, .expertise-card:hover .expertise-info, .expertise-card:hover .expertise-sub-title{
    color: var(--light);
}

.image-container{
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    height: 100%;
    width: 40%;
    z-index: 4;
}

@media (max-width: 991.98px) {
    .image-container{
        width: 100%;
        margin-bottom: 20px;

    }
    .image-container img{
        width: 100%;
        height: auto;
    }

    .section-cards{
        padding-inline: 20px;
    }
}

.about-card{
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-bottom: 10px;
    padding: 10px 10px;
    border: none;
    background-color: var(--primary);
    color: var(--light);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.card-title{
    font-size: 18px;
    font-weight: 600;
}

.service-sidebar{
    position: sticky;
    top: 80px;
}

.st__service__box {
    position: relative;
    overflow: hidden;
    border: 2px solid #ddd;
    border-radius: 10px;
    background-color: #ffffff;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.st__service__box:hover {
    transform: translateY(-10px);
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
    border-color: #007bff;
}

.st__service__thumb {
    position: relative;
}

.st__service__thumb img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.st__service__box:hover .st__service__thumb img {
    transform: scale(1.1);
}

.st__service__thumb::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.st__service__box:hover .st__service__thumb::after {
    opacity: 1;
}

.st__service__content {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(45deg, #007bff, #00c6ff);
    padding: 10px 20px;
    border-radius: 20px;
    transition: all 0.3s ease;
    z-index: 2;
}

.st__service__box:hover .st__service__content {
    bottom: 35%;
    transform: translateX(-50%);
    background: transparent;
    font-size: 18px;
    color: #fff;
    font-weight: 700;
    border-radius: 0;
}

.state_title {
    text-wrap-mode: nowrap;
}

.testimonials-container {
    position: relative;
    overflow: hidden;
    min-height: 360px;
}

.client-name{
    font-weight: 600;
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--secondary);
}

.testimonial-slide {
    display: none;
    animation:0.5s ease-in;
}

.testimonial-slide.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

.testimonial-card {
    min-height: 300px;
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.star-rating {
    color: #dc3545;
    font-size: 1.2rem;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #dc3545;
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.carousel-nav:hover {
    background: #b02a37;
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav.prev {
    left: 15px;
}

.carousel-nav.next {
    right: 15px;
}

.carousel-indicators {
    text-align: center;
    margin-top: 30px;
}

.indicator-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator-dot.active {
    background: #b00000;
    transform: scale(1.2);
}

.bg-gray{
    background-color: #F8FAFB !important;
}

@media (max-width: 767px) {
    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    .carousel-indicators{
        display: none;
    }
    .carousel-nav.prev { left: 10px; }
    .carousel-nav.next { right: 10px; }
}

.testimonial-card:hover {
    background: linear-gradient(135deg, #dc3545, #e85a5a)!important;
    color: rgb(255, 255, 255)!important;
}

.testimonial-card:hover .testimonial-text,
.testimonial-card:hover .client-name{
    color: #ffffff!important
}

.testimonial-card:hover .star-rating {
    color: #ffffff!important;
}

/* Modal Customization */
.custom-modal {
    z-index: 10000 !important;
}

#qteModal .modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

#qteModal .modal-header {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    border-radius: 12px 12px 0 0;
    padding: 1.2rem 1.5rem;
    border-bottom: none;
}

#qteModal .modal-title {
    font-weight: 600;
    font-size: 1.4rem;
}

#qteModal .btn-close {
    filter: invert(1);
    opacity: 0.8;
}

#qteModal .btn-close:hover {
    opacity: 1;
}

#qteModal .modal-body {
    padding: 1.8rem;
}

#qteModal .form-floating {
    margin-bottom: 0.5rem;
}

#qteModal .form-control {
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    padding: 0.75rem 1rem;
    transition: all 0.3s;
}

#qteModal .form-control:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.15);
}

/* Fix for textarea text visibility */
#qteModal textarea.form-control {
    min-height: 100px;
    padding-top: 1.625rem;
    line-height: 1.5;
    resize: vertical;
}

#qteModal .form-floating > textarea.form-control ~ label {
    padding-top: 0.625rem;
}

#qteModal .form-label {
    color: #6c757d;
    font-weight: 500;
}

#qteModal .btn-primary {
    background: linear-gradient(135deg, #dc3545, #c82333);
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s;
}

#qteModal .btn-primary:hover {
    background: linear-gradient(135deg, #c82333, #bd2130);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

#qteModal .btn-outline-secondary {
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s;
}

#qteModal .btn-outline-secondary:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
}

#qteModal .modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 1.5rem 0 0;
}

/* Success message styling */
#qteModal .alert-success {
    border-radius: 8px;
    border: none;
    background-color: #d4edda;
    color: #155724;
    padding: 0.75rem 1rem;
    margin-bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    #qteModal .modal-body {
        padding: 1.2rem;
    }
    
    #qteModal .modal-footer {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    #qteModal .modal-footer .btn {
        width: 100%;
    }
}

.city-card{
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 15px 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s;
    background-color: white;
}

.city-card:hover{
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    border-color: var(--primary);
}
.services_lists ol {
    list-style-type: decimal;
    margin-left: 20px;
}

.services_lists ol li {
    margin: 10px 0;
}

.services_lists li {
    list-style: decimal;
}

.quote-mdl {
    padding-right: 0px;
    padding-left: 0px;
}

#content {
    padding: 0px !important;
}

.city__content h2, .city__content h3, .city__content h4, .city__content h5, .city__content h6 {
    color: var(--primary);
    font-size: 28px;
    margin-bottom: 10px;
    font-weight: 700;
}

.city__content p, .city__content ul, .city__content ol {
    font-size: 18px;
    line-height: 1.6;
    color: #000000;
}

.city__content li{
    font-weight: 700;
    font-size: 18px;
}

.city__content ul::marker, .city__content ol::marker {
    
    color: var(--primary);
    font-weight: 700;
}

.marquee{
    width:100%;
    overflow:hidden;
    white-space:nowrap;
    position:relative;
}
.marquee-inner{
    display:inline-flex;
    position:relative;
    z-index: 1;
}
.st_brand_thumb{
    display:inline-block;margin-right:20px;width:100px;height:100px;
    margin-right:20px;
    width:100px;
    height:100px;
}
.st_brand_thumb img{
    width:100%;
    height:100%;
    object-fit:contain;
}

.hero-slider {
    position: relative;
}

.slider-form-container {
    position: absolute;
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
    z-index: 10;
    padding-right: 15px;
}

/* Ensure proper spacing on mobile */
@media (max-width: 991px) {
    .slider-form-container {
        position: static;
        transform: none;
        margin-top: 2rem;
        padding: 0 15px;
    }
}
