@import url('https://fonts.googleapis.com/css2?family=Nourde:wght@400;500;700&display=swap');

:root {
    --primary-green: #2e7d32;
    --dark-green: #1b5e20;
    --light-green: #4caf50;
    --accent-green: #81c784;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --dark-gray: #424242;
}

* {
    font-family: 'Nourde';
}

a:focus,
button:focus,
.nav-link:focus {
    outline: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

html {
    overflow-x: hidden;
    width: 100%;
}

body {
    color: var(--dark-gray);
    scroll-behavior: smooth;
    padding-top: 70px !important;
    overflow-x: hidden;
}

/* FIXED NAVBAR STYLES */
.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s;
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    width: 100%;
    transition: transform 0.3s ease, background-color 0.3s ease, padding 0.3s ease;
    transform: translateY(0);
}

.navbar.scrolled {
    padding: 5px 0;
    background-color: rgba(255, 255, 255, 0.95);
    transform: translateY(0) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
}

/* Hide navbar when modal is open on mobile */
@media (max-width: 768px) {
    body.modal-open .navbar {
        display: none !important;
    }
}

/* Ensure navbar container doesn't cause overflow */
.navbar > .container,
.navbar > .container-fluid {
    max-width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Fix for Bootstrap navbar-toggler alignment */
.navbar-toggler {
    border: none !important;
    padding: 0.25rem 0.5rem !important;
}

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

/* Fix for iOS Safari */
@supports (-webkit-touch-callout: none) {
    .navbar {
        position: fixed !important;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
    color: var(--primary-green) !important;
}

.navbar-brand img {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.nav-link {
    color: var(--dark-gray) !important;
    font-weight: 500;
    transition: color 0.3s;
}

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

.hero-section {
    background: linear-gradient(rgba(46, 125, 50, 0.356), rgba(46, 125, 50, 0.8)), 
                url('../images/coverITD.jpg');          
    background-size: auto;
    background-position: center;
    color: var(--white);
    padding: 180px 0 150px;
    text-align: center;
    position: relative;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.btn-primary {
    background-color: var(--white);
    color: var(--primary-green);
    border-color: var(--white);
    padding: 12px 35px;
    font-weight: 600;
    transition: all 0.3s;
    border-radius: 30px;
}

.btn-primary:hover {
    background-color: var(--light-green);
    color: var(--white);
    border-color: var(--light-green);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.section-title {
    position: relative;
    margin-bottom: 40px;
    text-align: center;
    color: var(--primary-green);
}

.section-title:after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background-color: var(--light-green);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

/* ===== SERVICES SECTION ===== */
.services-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(46, 125, 50, 0.05) 0%, transparent 70%);
    z-index: 1;
}

.services-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(76, 175, 80, 0.05) 0%, transparent 70%);
    z-index: 1;
}

.section-subtitle {
    text-align: center;
    color: var(--dark-gray);
    font-size: 1.2rem;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
    line-height: 1.6;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
    position: relative;
    z-index: 2;
}

/* Service Card Styling - Icon on Right */
.service-card {
    background: var(--white);
    border-radius: 15px;
    padding: 35px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    border: 1px solid rgba(46, 125, 50, 0.1);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-green), var(--light-green));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(46, 125, 50, 0.15);
    border-color: var(--primary-green);
}

.service-card-inner {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: flex-start;
    gap: 25px;
}

.service-content-left {
    flex: 1;
    min-width: 0;
}

.service-title {
    color: var(--primary-green);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
    transition: all 0.3s ease;
}

.service-card:hover .service-title {
    color: var(--dark-green);
    transform: translateX(3px);
}

.service-description {
    color: var(--dark-gray);
    opacity: 0.8;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 1rem;
    flex-grow: 1;
}

.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.service-feature {
    background: rgba(46, 125, 50, 0.08);
    color: var(--primary-green);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.service-card:hover .service-feature {
    background: rgba(46, 125, 50, 0.15);
    transform: translateY(-2px);
}

/* Icon on Right */
.service-icon-right {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.1), rgba(76, 175, 80, 0.1));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary-green);
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 8px;
}

.service-card:hover .service-icon-right {
    background: linear-gradient(135deg, var(--primary-green), var(--light-green));
    color: white;
    transform: scale(1.1) rotate(5deg);
}

/* CTA Card Styling */
.service-cta-card {
    background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(46, 125, 50, 0.3);
    grid-column: span 2;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-icon {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 25px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.cta-content h3 {
    color: var(--white);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

.btn-cta {
    display: inline-block;
    background: var(--white);
    color: var(--primary-green);
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-size: 1.1rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.btn-cta:hover {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.about-section {
    padding: 100px 0;
    background-color: var(--white);
}

.about-section p {
    text-align: justify;
    line-height: 1.2;
    text-indent: 30px;
}

.about-section .paragraph {
    padding-top: 20px;
    padding-bottom: 20px;
}

#itdteam {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.location-badge {
    background-color: var(--light-green);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 30px;
    display: inline-block;
    margin: 5px;
    font-weight: 500;
}

/* ===== STATS SECTION - COMPLETELY FIXED ===== */
.stats-section {
    background: linear-gradient(rgba(46, 125, 50, 0.9), rgba(46, 125, 50, 0.9)), 
                #1b5e20;
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 80px 0;
}

/* RESET Bootstrap grid for stats section */
.stats-section .row {
    display: flex !important;
    flex-wrap: wrap !important;
    margin-left: -15px !important;
    margin-right: -15px !important;
}

.stats-section .row > [class*="col-"] {
    padding-left: 15px;
    padding-right: 15px;
    margin-bottom: 30px;
    box-sizing: border-box;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.stat-title {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Desktop (768px and above) - 4 PER ROW */
@media (min-width: 768px) {
    .stats-section .row > .col-md-3 {
        width: 25% !important;
        flex: 0 0 25% !important;
        max-width: 25% !important;
    }
}

/* Tablet (577px to 767px) - 2 PER ROW */
@media (min-width: 577px) and (max-width: 767px) {
    .stats-section {
        padding: 60px 0 !important;
    }
    
    .stats-section .row > .col-sm-6 {
        width: 50% !important;
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
    
    .stat-number {
        font-size: 2.5rem !important;
    }
    
    .stat-title {
        font-size: 1rem !important;
    }
}

/* Mobile (576px and below) - 2 PER ROW - FORCE IT */
@media (max-width: 576px) {
    .stats-section {
        padding: 50px 0 !important;
    }
    
    .stats-section .row {
        margin-left: -10px !important;
        margin-right: -10px !important;
    }
    
    .stats-section .row > .col-6 {
        width: 50% !important;
        flex: 0 0 50% !important;
        max-width: 50% !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
        margin-bottom: 20px !important;
    }
    
    .stat-number {
        font-size: 2rem !important;
        margin-bottom: 5px !important;
    }
    
    .stat-title {
        font-size: 0.9rem !important;
        line-height: 1.3 !important;
    }
}

/* Very small devices (phones, less than 400px) */
@media (max-width: 400px) {
    .stats-section .row > .col-6 {
        padding-left: 5px !important;
        padding-right: 5px !important;
    }
    
    .stat-number {
        font-size: 1.8rem !important;
    }
    
    .stat-title {
        font-size: 0.8rem !important;
    }
}

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

.partners-carousel {
    overflow: hidden;
    position: relative;
    width: 100%;
    background-color: #f5f5f5;
    padding: 20px 0;
}

.partners-track {
    display: flex;
    align-items: center;
    gap: 40px;
    animation: scroll-left 40s linear infinite;
    width: max-content;
}

.partners-track a {
    display: inline-block;
}

.partner-logo {
    height: 80px;
    width: auto;
    object-fit: contain;
    opacity: 0.7;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

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

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-100% / 2));
    }
}

/* ===== SOLUTIONS SECTION ===== */
.solutions-section {
    padding: 100px 0;
    background-color: var(--white);
}

/* ===== CATEGORY CAROUSEL STYLES ===== */
.category-carousel-container {
    position: relative;
    margin-bottom: 40px;
    padding: 0 60px;
    overflow: hidden !important;
    transition: all 0.5s ease;
    max-width: 100%;
    width: 100%;
}

.category-carousel-container.hidden {
    opacity: 0;
    visibility: hidden;
    height: 0;
    margin-bottom: 0;
    overflow: hidden;
}

.category-carousel {
    display: flex;
    gap: 25px;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: grab;
    padding: 10px 0;
    will-change: transform;
    width: auto;
}

.category-carousel.grabbing {
    cursor: grabbing;
}

/* Category Card adjustments for carousel */
.category-carousel .category-card {
    width: 280px !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    user-select: none;
    pointer-events: auto;
    height: 320px !important;
    min-height: 320px !important;
    align-items: center;
    background: white;
    border-radius: 12px;
    padding: 30px 25px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 2px solid #e8f5e9;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.category-carousel .category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(46, 125, 50, 0.15);
}

/* Category Item */
.category-item {
    position: relative;
    width: 280px;
    flex-shrink: 0;
    margin-bottom: 20px;
    height: 320px;
}

/* For carousel cards specifically - Ensure icon centering */
.category-carousel .category-card-icon {
    margin: 0 auto 20px auto !important;
    width: 70px;
    height: 70px;
    background: rgba(46, 125, 50, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary-green);
    transition: all 0.3s ease;
}

.category-card:hover .category-card-icon {
    background: var(--primary-green);
    color: white;
    transform: scale(1.1);
}

.category-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--dark-gray);
    transition: color 0.3s ease;
    text-align: center;
    width: 100%;
}

.category-card-desc {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 20px;
    transition: color 0.3s ease;
    flex-grow: 1;
    text-align: center;
    width: 100%;
}

.category-card-arrow {
    color: var(--primary-green);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    margin-top: auto;
    display: flex;
    justify-content: center;
    width: 100%;
}

/* Carousel Navigation */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: var(--white);
    border: 2px solid var(--primary-green);
    border-radius: 50%;
    color: var(--primary-green);
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0.9;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.carousel-nav:hover {
    background: var(--primary-green);
    color: var(--white);
    transform: translateY(-50%) scale(1.1);
    opacity: 1;
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.3);
}

.carousel-nav.prev {
    left: 0;
}

.carousel-nav.next {
    right: 0;
}

.carousel-nav.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.carousel-nav.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

/* Carousel Indicators */
.carousel-indicators {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 12px !important;
    margin-top: 30px !important;
    padding: 0 !important;
    list-style: none !important;
    height: 20px;
}

.carousel-indicators .indicator {
    display: block !important;
    width: 12px !important;
    height: 12px !important;
    min-width: 12px !important;
    min-height: 12px !important;
    background: rgba(46, 125, 50, 0.3) !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    text-indent: -9999px !important;
    overflow: hidden !important;
}

.carousel-indicators .indicator.active {
    background: var(--primary-green) !important;
    transform: scale(1.3) !important;
}

.carousel-indicators .indicator:hover:not(.active) {
    background: rgba(46, 125, 50, 0.6) !important;
}

/* ===== CATEGORY MODAL STYLES ===== */
.category-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-modal.active {
    display: block;
    opacity: 1;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    animation: modalSlideIn 0.4s ease forwards;
}

@keyframes modalSlideIn {
    to {
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-header {
    padding: 25px 30px;
    background: var(--primary-green);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid var(--light-green);
    flex-shrink: 0;
}

.modal-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    color: white;
}

.close-modal-btn {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    position: relative !important;
    z-index: 10 !important;
}

.close-modal-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

.modal-body {
    display: flex;
    flex: 1;
    overflow: hidden;
    min-height: 400px;
}

/* Category Navigation in Modal */
.modal-categories-nav {
    width: 280px;
    background: #f8f9fa;
    border-right: 1px solid #e9ecef;
    padding: 25px 0;
    overflow-y: auto;
    flex-shrink: 0;
}

.modal-category-tab {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    position: relative;
}

.modal-category-tab:hover {
    background: rgba(46, 125, 50, 0.05);
}

.modal-category-tab.active {
    background: rgba(46, 125, 50, 0.1);
    border-left-color: var(--primary-green);
}

.modal-category-tab.active:after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 8px solid white;
}

.modal-category-icon {
    width: 40px;
    height: 40px;
    background: rgba(46, 125, 50, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-green);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.modal-category-tab.active .modal-category-icon {
    background: var(--primary-green);
    color: white;
}

.modal-category-info {
    flex: 1;
    min-width: 0;
}

.modal-category-name {
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 4px;
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.modal-category-tab.active .modal-category-name {
    color: var(--primary-green);
}

.modal-category-desc {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== MODAL SCROLLING FIXES ===== */
.modal-main-content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    background: white;
    position: relative;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    max-height: calc(100vh - 180px);
    height: auto;
}

/* Custom scrollbar styling */
.modal-main-content::-webkit-scrollbar {
    width: 8px;
}

.modal-main-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.modal-main-content::-webkit-scrollbar-thumb {
    background: var(--primary-green);
    border-radius: 4px;
}

.modal-main-content::-webkit-scrollbar-thumb:hover {
    background: var(--dark-green);
}

/* iOS specific fixes */
@supports (-webkit-touch-callout: none) {
    .modal-main-content {
        -webkit-overflow-scrolling: touch !important;
    }
}

.modal-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #666;
    font-size: 1.1rem;
}

.modal-loading i {
    font-size: 2.5rem;
    color: var(--primary-green);
    margin-bottom: 20px;
}

.modal-category-content {
    display: none;
    animation: fadeInContent 0.4s ease;
    height: auto;
    min-height: 100%;
}

.modal-category-content.active {
    display: block;
}

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

.modal-category-content h4 {
    color: var(--primary-green);
    font-size: 1.8rem;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e8f5e9;
}

/* ===== SOLUTION CARDS (Detailed content) ===== */
.solution-img {
    height: 280px;
    overflow: hidden;
    background-color: #f8f9fa00;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 10px;
}

.solution-img img {
    width: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.solution-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    margin-bottom: 30px;
    background: white;
    height: 100%;
    border: none;
    border: 2px solid #e8f5e9;
}

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

.solution-content {
    padding: 25px;
}

.solution-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.solution-links li {
    margin-bottom: 8px;
}

.solution-links a {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

.solution-links a:hover {
    color: var(--light-green);
    padding-left: 5px;
}

.solution-links a:before {
    content: '▸';
    margin-right: 8px;
    font-size: 0.9rem;
}

.solution-img img {
    min-width: 100%;
    min-height: 100%;
}

/* To Be Announced Placeholder */
.tba-placeholder {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.tba-content {
    text-align: center;
    padding: 60px 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border: 3px dashed #e0e0e0;
    max-width: 600px;
    width: 100%;
    transition: all 0.3s ease;
}

.tba-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    border-color: var(--primary-green);
}

.tba-icon {
    font-size: 5rem;
    color: var(--primary-green);
    margin-bottom: 25px;
    opacity: 0.7;
    animation: gentle-pulse 3s ease-in-out infinite;
}

@keyframes gentle-pulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 0.7;
    }
    50% { 
        transform: scale(1.05);
        opacity: 0.9;
    }
}

.tba-content h3 {
    color: var(--dark-gray);
    font-size: 2.2rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.tba-content p {
    color: var(--dark-gray);
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: 0.8;
}

.status-badge {
    background: linear-gradient(135deg, var(--primary-green), var(--light-green));
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(46, 125, 50, 0.3);
}

/* ===== MODAL SCROLL TO TOP BUTTON ===== */
.modal-scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.scroll-top-btn {
    width: 40px;
    height: 40px;
    background: var(--primary-green);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background: var(--dark-green);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
    color: var(--white);
}

.contact-form-wrapper {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    height: 100%;
}

.form-title {
    color: var(--dark-gray);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
}

.contact-form .form-label {
    color: var(--dark-gray);
    font-weight: 600;
    margin-bottom: 8px;
}

.contact-form .form-control {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 0.2rem rgba(46, 125, 50, 0.25);
}

/* File Input Styling */
.file-input-wrapper {
    margin-bottom: 15px;
}

.file-input-custom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 15px;
    background: #f8f9fa;
}

.file-placeholder {
    color: #6c757d;
    font-size: 1rem;
}

.btn-browse {
    background: var(--primary-green);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-browse:hover {
    background: var(--dark-green);
    transform: translateY(-2px);
}

/* Submit Button */
.btn-submit {
    background: var(--primary-green);
    color: white;
    border: none;
    padding: 15px 30px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.btn-submit:hover {
    background: var(--dark-green);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.captcha-notice {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.captcha-notice a {
    color: var(--primary-green);
    text-decoration: none;
}

.captcha-notice a:hover {
    text-decoration: underline;
}

/* Contact Section - Responsive Tabs & Carousel */
.location-tabs-wrapper {
    margin-bottom: 30px;
    width: 100%;
}

/* Desktop Tabs */
.desktop-tabs {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 5px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.desktop-tabs .nav-link {
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
    margin: 0 2px;
    cursor: pointer;
}

.desktop-tabs .nav-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.151);
}

.desktop-tabs .nav-link.active {
    background: var(--white);
    color: white;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

/* Desktop Tab Content */
.desktop-content .location-info {
    display: none;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 25px;
    border-left: 4px solid var(--light-green);
    animation: fadeIn 0.3s ease;
    width: 100%;
}

.desktop-content .location-info.active {
    display: block;
}

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

/* Mobile Carousel */
.mobile-carousel {
    position: relative;
    margin-bottom: 20px;
    width: 100%;
}

.carousel-inner {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    width: 100%;
}

.carousel-item {
    display: none;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 25px;
    border-left: 4px solid var(--light-green);
    animation: slideIn 0.3s ease;
    width: 100%;
}

.carousel-item.active {
    display: block;
}

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

.location-card h5 {
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.location-card h5:before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--light-green);
    border-radius: 50%;
    margin-right: 10px;
}

.location-card p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
}

.location-card i {
    color: var(--light-green);
    margin-top: 2px;
    min-width: 20px;
}

/* Carousel Controls */
.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 15px;
    gap: 15px;
    width: 100%;
}

.carousel-prev,
.carousel-next {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: var(--light-green);
    transform: scale(1.1);
}

/*Carousel Indicators - Circles between arrows */
.carousel-indicators {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 12px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    flex: 1 !important;
}

.indicator {
    width: 12px !important;
    height: 12px !important;
    background: rgba(255, 255, 255, 0.3) !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    text-indent: -9999px !important;
    overflow: hidden !important;
    display: block !important;
    flex-shrink: 0 !important;
}

.indicator.active {
    background: var(--light-green) !important;
    transform: scale(1.3) !important;
}

.indicator:hover:not(.active) {
    background: rgba(255, 255, 255, 0.6) !important;
}

/* ===== BUSINESS HOURS FIX ===== */
.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 25px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border-left: 4px solid var(--light-green);
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 20px;
}

/* Icon and Title Wrapper */
.icon-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    width: 100%;
    flex-wrap: wrap;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.2rem;
    color: white;
}

.contact-text {
    width: 100%;
}

.contact-text h5 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
    color: white;
}

.hours-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.hour-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
}

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

.hour-item span:first-child {
    font-weight: 600;
    text-align: left;
    flex: 1;
}

.hour-item span:last-child {
    text-align: right;
    white-space: nowrap;
    flex: 1;
}

/* Footer Styles */
.footer {
    background: linear-gradient(135deg, var(--dark-green), #144218);
    color: var(--white);
    padding: 60px 0 20px;
    margin-top: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .footer-logo {
    height: 50px;
    margin-bottom: 20px;
}

.footer-description {
    opacity: 0.8;
    line-height: 1.6;
    margin-bottom: 0;
}

.footer-links h5,
.footer-locations h5,
.footer-social h5 {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
}

.footer-links h5:after,
.footer-locations h5:after,
.footer-social h5:after {
    content: '';
    position: absolute;
    width: 30px;
    height: 2px;
    background: var(--light-green);
    bottom: -8px;
    left: 0;
}

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

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
}

.footer-links a:hover {
    color: var(--light-green);
    transform: translateX(5px);
}

.locations {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.location {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.8);
}

.location i {
    color: var(--light-green);
    width: 16px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--light-green);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    opacity: 0.8;
    font-size: 0.9rem;
}

.contact-info i {
    color: var(--light-green);
    width: 16px;
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright p {
    margin: 0;
    opacity: 0.8;
    font-size: 0.9rem;
}

.footer-locations-bottom span {
    opacity: 0.8;
    font-weight: 500;
}

.card {
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
}

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

.card-icon {
    font-size: 3rem;
    color: var(--primary-green);
    margin-bottom: 20px;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary-green);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    transition: all 0.3s;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
}

.back-to-top:hover {
    background-color: var(--dark-green);
    color: var(--white);
    transform: translateY(-5px);
}

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

.contact-form .form-control:focus {
    border-color: var(--light-green);
    box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.25);
}

.contact-form .btn-submit {
    background-color: var(--white);
    color: var(--primary-green);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s;
}

.contact-form .btn-submit:hover {
    background-color: var(--light-green);
    color: var(--white);
    transform: translateY(-3px);
}

/* Remove text cursor and prevent selection from ALL elements */
* {
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    caret-color: transparent !important;
}

/* Ensure specific elements also have proper cursor */
body, html {
    cursor: default !important;
}

/* But allow text selection in form inputs and textareas for usability */
input, 
textarea, 
[contenteditable="true"] {
    user-select: text !important;
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    caret-color: auto !important;
    cursor: text !important;
}

/* Ensure buttons and links have pointer cursor */
a, 
button, 
.btn, 
.nav-link,
[role="button"] {
    cursor: pointer !important;
}

/* ===== SCROLL ANIMATIONS ===== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Slide in from left */
.animate-left {
    transform: translateX(-100px);
}

.animate-left.animated {
    transform: translateX(0);
}

/* Slide in from right */
.animate-right {
    transform: translateX(100px);
}

.animate-right.animated {
    transform: translateX(0);
}

/* Scale up animation */
.animate-scale {
    transform: scale(0.8);
}

.animate-scale.animated {
    transform: scale(1);
}

/* Fade in with delay */
.animate-delay-1 { transition-delay: 0.2s; }
.animate-delay-2 { transition-delay: 0.4s; }
.animate-delay-3 { transition-delay: 0.6s; }
.animate-delay-4 { transition-delay: 0.8s; }

/* Bounce animation for stats */
@keyframes bounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); opacity: 1; }
}

.animate-bounce {
    animation: bounceIn 1s ease;
}

/* Typewriter effect for hero */
@keyframes typewriter {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blinkCursor {
    from, to { border-color: transparent; }
    50% { border-color: var(--light-green); }
}

/* Hero text animation */
.hero-text-animate {
    overflow: hidden;
    border-right: 3px solid var(--light-green);
    white-space: nowrap;
    margin: 0 auto;
    animation: typewriter 3.5s steps(40, end), blinkCursor 0.75s step-end infinite;
}

/* Partner logo animation */
.partner-logo {
    transition: all 0.5s ease;
}

/* Enhanced hover effects */
.solution-card {
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.solution-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

/* Stats counter animation */
.stat-number, .stat {
    transition: all 1s ease;
}

/* Fix for textarea and form elements */
textarea {
    resize: vertical !important;
    min-height: 120px;
    user-select: text !important;
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    cursor: text !important;
}

/* Ensure all form elements are interactive */
input, 
textarea, 
select {
    user-select: text !important;
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    cursor: text !important;
    resize: vertical !important;
}

/* Specific fix for contact form textarea */
.contact-form textarea {
    resize: vertical !important;
    min-height: 150px;
    max-height: 300px;
    user-select: text !important;
    cursor: text !important;
}

/* Override the global user-select for form elements */
form * {
    user-select: auto !important;
    -webkit-user-select: auto !important;
    -moz-user-select: auto !important;
    -ms-user-select: auto !important;
}

/* Specifically allow text selection in form controls */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="number"],
textarea,
select {
    user-select: text !important;
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    cursor: text !important;
}

/* ===== FIX: MODAL MOBILE SCROLLING ===== */
@media (max-width: 768px) {
    /* Fix modal for mobile scrolling */
    .category-modal.active {
        display: block !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        z-index: 99999 !important;
        opacity: 1 !important;
    }
    
    .modal-content {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        max-height: 100vh !important;
        border-radius: 0 !important;
        transform: none !important;
        animation: none !important;
        margin: 0 !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    .modal-header {
        flex-shrink: 0 !important;
        padding: 15px 20px !important;
    }
    
    .modal-body {
        display: flex !important;
        flex-direction: column !important;
        flex: 1 !important;
        min-height: 0 !important;
        overflow: hidden !important;
        height: calc(100% - 70px) !important;
    }
    
    /* Fix category tabs - make them horizontally scrollable */
    .modal-categories-nav {
        flex-shrink: 0 !important;
        width: 100% !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        white-space: nowrap !important;
        padding: 10px 15px !important;
        height: auto !important;
        max-height: 120px !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 10px !important;
        border-bottom: 1px solid #e9ecef !important;
    }
    
    .modal-categories-nav::-webkit-scrollbar {
        display: none !important;
    }
    
    .modal-category-tab {
        display: inline-flex !important;
        flex-direction: column !important;
        align-items: center !important;
        min-width: 120px !important;
        padding: 10px 15px !important;
        border-left: none !important;
        border-bottom: 3px solid transparent !important;
        flex-shrink: 0 !important;
    }
    
    .modal-category-tab.active {
        border-left: none !important;
        border-bottom-color: var(--primary-green) !important;
    }
    
    .modal-category-tab.active:after {
        display: none !important;
    }
    
    /* Fix the main content scrolling */
    .modal-main-content {
        flex: 1 !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 15px !important;
        height: auto !important;
        min-height: 0 !important;
        position: relative !important;
        overscroll-behavior: contain !important;
        touch-action: pan-y !important;
        max-height: calc(100vh - 200px) !important;
    }
    
    /* Enable scrolling for content */
    .modal-main-content > * {
        position: static !important;
        overflow: visible !important;
        height: auto !important;
    }
    
    /* Fix body scroll locking */
    body.modal-open {
        overflow: hidden !important;
        position: fixed !important;
        width: 100% !important;
        height: 100% !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
    }
    
    /* Hide navbar when modal is open */
    body.modal-open .navbar {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
    
    /* Fix solution cards scrolling */
    .modal-category-content {
        position: relative !important;
        height: auto !important;
        min-height: auto !important;
        overflow: visible !important;
    }
    
    .row {
        overflow: visible !important;
        height: auto !important;
    }
    
    .solution-card {
        overflow: visible !important;
        height: auto !important;
    }
    
    /* Improve mobile modal scrolling */
    .modal-main-content {
        scroll-behavior: smooth !important;
        -webkit-overflow-scrolling: touch !important;
        overscroll-behavior: contain !important;
    }
    
    /* Adjust modal scroll-to-top button for mobile */
    .modal-scroll-top {
        bottom: 20px !important;
        right: 20px !important;
    }
    
    .scroll-top-btn {
        width: 35px !important;
        height: 35px !important;
        font-size: 0.9rem !important;
    }
}

/* Force touch scrolling to work */
.modal-main-content {
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

/* Ensure content doesn't get cut off */
.modal-category-content {
    min-height: 100%;
}

/* Fix for iOS Safari */
@supports (-webkit-touch-callout: none) {
    .modal-main-content {
        -webkit-overflow-scrolling: touch !important;
        overflow-y: scroll !important;
    }
}

/* Prevent horizontal scrolling in content */
.modal-category-content .row {
    max-width: 100%;
    overflow-x: hidden;
}

/* Ensure content columns are properly sized */
.modal-category-content .col-lg-6,
.modal-category-content .col-lg-8 {
    max-width: 100%;
    overflow: visible;
}

/* ===== MODAL MOBILE RESPONSIVENESS FIXES ===== */

@media (max-width: 768px) {
    /* Fix category navigation tabs on mobile */
    .modal-category-tab {
        display: inline-flex !important;
        flex-direction: column !important;
        align-items: center !important;
        padding: 10px 15px !important;
        min-width: 140px !important;
        border-left: none !important;
        border-bottom: 3px solid transparent !important;
        flex-shrink: 0 !important;
    }
    
    .modal-category-tab.active {
        border-left: none !important;
        border-bottom-color: var(--primary-green) !important;
    }
    
    .modal-category-tab.active:after {
        display: none !important;
    }
    
    .modal-category-icon {
        margin-bottom: 5px !important;
        width: 35px !important;
        height: 35px !important;
        font-size: 1rem !important;
    }
    
    .modal-category-info {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }
    
    .modal-category-name {
        font-size: 0.85rem !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 100% !important;
    }
    
    .modal-category-desc {
        display: none !important; /* Hide description on mobile */
    }
    
    /* Fix content layout for mobile */
    .modal-category-content h4 {
        font-size: 1.4rem !important;
        margin-bottom: 20px !important;
        padding-bottom: 10px !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    /* Fix solution cards for mobile */
    .row.mt-4 {
        margin-left: -8px !important;
        margin-right: -8px !important;
    }
    
    .col-lg-6, 
    .col-lg-8 {
        padding-left: 8px !important;
        padding-right: 8px !important;
        width: 100% !important;
        flex: 0 0 100% !important;
    }
    
    .solution-card {
        margin-bottom: 15px !important;
        height: auto !important;
        min-height: auto !important;
    }
    
    .solution-img {
        height: 180px !important;
        padding: 10px !important;
    }
    
    .solution-content {
        padding: 15px !important;
    }
    
    .solution-links {
        display: flex !important;
        flex-direction: column !important;
        gap: 5px !important;
    }
    
    .solution-links li {
        margin-bottom: 5px !important;
    }
    
    .solution-links a {
        font-size: 0.9rem !important;
        line-height: 1.4 !important;
        word-break: break-word !important;
        display: block !important;
        padding: 6px 0 !important;
    }
}

@media (max-width: 576px) {
    /* Further improvements for very small screens */
    .modal-content {
        width: 100vw !important;
        height: 100vh !important;
        max-height: 100vh !important;
        border-radius: 0 !important;
        top: 0 !important;
        left: 0 !important;
        transform: none !important;
        animation: modalSlideInMobile 0.3s ease forwards !important;
    }
    
    @keyframes modalSlideInMobile {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .modal-header {
        padding: 12px 15px !important;
    }
    
    .modal-title {
        font-size: 1.2rem !important;
    }
    
    .close-modal-btn span {
        display: none !important;
    }
    
    .close-modal-btn {
        padding: 6px 8px !important;
        font-size: 0.9rem !important;
    }
    
    .modal-categories-nav {
        padding: 8px 10px !important;
        gap: 8px !important;
    }
    
    .modal-category-tab {
        min-width: 120px !important;
        padding: 8px 10px !important;
    }
    
    .modal-category-icon {
        width: 30px !important;
        height: 30px !important;
        font-size: 0.9rem !important;
    }
    
    .modal-category-name {
        font-size: 0.8rem !important;
    }
    
    .modal-main-content {
        padding: 12px !important;
        max-height: calc(100vh - 180px) !important;
    }
    
    .modal-category-content h4 {
        font-size: 1.2rem !important;
        margin-bottom: 15px !important;
    }
    
    .solution-img {
        height: 150px !important;
    }
    
    .solution-links a {
        font-size: 0.85rem !important;
    }
    
    /* Make sure content columns stack properly */
    .row {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
    }
    
    .col-lg-6, 
    .col-lg-8 {
        width: 100% !important;
        padding: 0 !important;
    }
    
    /* Adjust modal scroll-to-top button for very small screens */
    .modal-scroll-top {
        bottom: 15px !important;
        right: 15px !important;
    }
    
    .scroll-top-btn {
        width: 30px !important;
        height: 30px !important;
        font-size: 0.8rem !important;
    }
}

@media (max-width: 480px) {
    /* Extra small screens */
    .modal-category-tab {
        min-width: 110px !important;
        padding: 6px 8px !important;
    }
    
    .modal-category-icon {
        width: 28px !important;
        height: 28px !important;
        font-size: 0.85rem !important;
    }
    
    .modal-category-name {
        font-size: 0.75rem !important;
    }
    
    .solution-img {
        height: 130px !important;
    }
}

/* Ensure modal content is scrollable */
.modal-main-content::-webkit-scrollbar {
    width: 6px;
}

.modal-main-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.modal-main-content::-webkit-scrollbar-thumb {
    background: var(--primary-green);
    border-radius: 10px;
}

.modal-main-content::-webkit-scrollbar-thumb:hover {
    background: var(--dark-green);
}

/* Improve modal animation for mobile */
@supports (-webkit-touch-callout: none) {
    .modal-main-content {
        -webkit-overflow-scrolling: touch !important;
    }
}

/* ===== ORIGINAL RESPONSIVE STYLES ===== */

@media (max-width: 992px) {
    /* Services Section Responsive */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .service-cta-card {
        grid-column: span 2;
    }
    
    .service-title {
        font-size: 1.6rem;
    }
    
    .service-icon-right {
        width: 60px;
        height: 60px;
        font-size: 1.6rem;
    }
    
    .modal-content {
        width: 95%;
        height: 95vh;
        max-height: 95vh;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    
    .modal-body {
        flex-direction: column;
    }
    
    .modal-categories-nav {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e9ecef;
        padding: 15px 0;
        overflow-x: auto;
        overflow-y: hidden;
        flex-shrink: 0;
        display: flex;
        flex-wrap: nowrap;
        gap: 10px;
    }
    
    .modal-category-tab {
        flex-direction: column;
        text-align: center;
        padding: 15px;
        min-width: 140px;
        border-left: none;
        border-bottom: 3px solid transparent;
        gap: 10px;
    }
    
    .modal-category-tab.active {
        border-left: none;
        border-bottom-color: var(--primary-green);
    }
    
    .modal-category-tab.active:after {
        display: none;
    }
    
    .modal-category-icon {
        margin-bottom: 0;
    }
    
    .modal-main-content {
        padding: 20px;
        max-height: calc(95vh - 180px);
    }
    
    .modal-category-content h4 {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    /* MOBILE NAVBAR FIXES */
    .navbar {
        position: fixed !important;
        width: 100% !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
        left: 0 !important;
        right: 0 !important;
        margin: 0 !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    /* Services Section Mobile */
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-cta-card {
        grid-column: span 1;
        padding: 30px 20px;
    }
    
    .service-card {
        padding: 30px 25px;
        flex-direction: column;
    }
    
    .service-card-inner {
        flex-direction: column;
        gap: 20px;
    }
    
    .service-icon-right {
        width: 60px;
        height: 60px;
        font-size: 1.6rem;
        margin-top: 0;
        align-self: flex-end;
    }
    
    .cta-content h3 {
        font-size: 1.6rem;
    }
    
    .cta-icon {
        font-size: 3rem;
    }
    
    .service-title {
        font-size: 1.5rem;
    }
    
    /* MOBILE CAROUSEL CENTERING FIX - IMPROVED */
    .category-carousel-container {
        padding: 0 60px !important; /* Space for arrows */
        overflow: visible !important;
        position: relative;
    }
    
    /* Center the carousel content properly */
    .category-carousel {
        gap: 15px;
        padding: 10px 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    /* Adjust card sizing for mobile */
    .category-carousel .category-card {
        width: 250px !important;
        height: 300px !important;
        min-height: 300px !important;
        padding: 20px 15px;
    }
    
    .category-item {
        width: 250px !important;
        height: 300px !important;
    }
    
    /* Arrow positioning - ensure proper placement */
    .carousel-nav.prev {
        left: 5px !important;
    }
    
    .carousel-nav.next {
        right: 5px !important;
    }
    
    .carousel-nav {
        width: 45px;
        height: 45px;
        background: var(--white) !important;
        border: 2px solid var(--primary-green);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        z-index: 30;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Ensure body padding matches navbar height on mobile */
    body {
        padding-top: 65px !important;
    }
    
    .navbar-collapse {
        background-color: var(--white);
        padding: 15px;
        margin-top: 10px;
        border-radius: 8px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
    
    .hero-section h1 {
        font-size: 2.2rem;
    }
    
    .hero-section {
        padding: 250px 0 100px;
    }
    
    .navbar-brand img {
        height: 35px;
    }
    
    .partners-track {
        gap: 20px;
    }
    
    .partner-logo {
        height: 60px;
    }
    
    .solution-img {
        height: 200px;
        padding: 15px;
    }
    
    .solution-content {
        padding: 20px;
    }
    
    /* Category Cards Responsive */
    .category-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .category-card {
        padding: 25px 20px;
        align-items: center;
    }
    
    .category-card-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin: 0 auto 15px auto;
    }
    
    .category-card-title {
        font-size: 1.1rem;
        text-align: center;
    }
    
    .category-card-desc {
        font-size: 0.85rem;
        text-align: center;
    }

    /* Mobile carousel adjustments */
    .category-carousel {
        gap: 15px;
    }
    
    .category-carousel .category-card {
        width: 250px !important;
        height: 300px !important;
        min-height: 300px !important;
        padding: 20px 15px;
    }
    
    .category-item {
        height: 300px;
    }
    
    .category-card-icon {
        width: 55px;
        height: 55px;
        font-size: 1.5rem;
        margin: 0 auto 15px auto;
    }
    
    .category-card-title {
        font-size: 1.1rem;
        line-height: 1.3;
        text-align: center;
    }
    
    .category-card-desc {
        font-size: 0.85rem;
        text-align: center;
    }
    
    /* Modal mobile adjustments */
    .modal-header {
        padding: 20px;
    }
    
    .modal-title {
        font-size: 1.5rem;
    }
    
    .close-modal-btn span {
        display: none;
    }
    
    .close-modal-btn {
        padding: 8px 12px;
    }
    
    .modal-categories-nav {
        padding: 10px 15px;
    }
    
    .modal-category-tab {
        min-width: 130px;
        padding: 12px;
    }
    
    .modal-category-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .modal-category-name {
        font-size: 0.9rem;
    }
    
    .modal-category-desc {
        font-size: 0.8rem;
        -webkit-line-clamp: 1;
    }
    
    .modal-main-content {
        padding: 15px;
        max-height: calc(100vh - 200px);
    }
    
    .modal-category-content h4 {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }
    
    /* LOCATION CARD FIX - Keep icon and text inline AT 768px */
    .location-card p,
    .location-info p {
        display: flex !important;
        flex-direction: row !important;
        align-items: flex-start !important;
        margin-bottom: 10px !important;
    }
    
    .location-card i,
    .location-info i {
        margin-right: 10px !important;
        margin-bottom: 0 !important;
        flex-shrink: 0;
        margin-top: 2px;
        line-height: 1.4;
    }
    
    .location-card .contact-phone,
    .location-info .contact-phone {
        display: flex !important;
        align-items: center !important;
    }
    
    .location-card br,
    .location-info br {
        display: none;
    }
    
    /* Carousel and indicator styles */
    .carousel-indicators {
        gap: 8px !important;
        flex: 1 !important;
        justify-content: center !important;
    }
    
    .indicator {
        width: 10px !important;
        height: 10px !important;
        flex-shrink: 0 !important;
    }
    
    /* Business Hours - Mobile */
    .contact-item {
        width: 100% !important;
        padding: 20px !important;
    }
    
    .icon-title-wrapper {
        flex-direction: row !important;
        justify-content: center !important;
        gap: 10px !important;
    }
    
    .contact-icon {
        width: 45px !important;
        height: 45px !important;
        font-size: 1.1rem !important;
    }
    
    .contact-text h5 {
        font-size: 1.2rem !important;
        margin-bottom: 15px !important;
    }
    
    .hours-list {
        width: 100% !important;
    }
    
    .hour-item {
        flex-direction: row !important;
        justify-content: space-between !important;
        padding: 8px 0 !important;
    }
    
    .hour-item span:first-child {
        text-align: left !important;
        flex: 1 !important;
        font-size: 0.95rem !important;
    }
    
    .hour-item span:last-child {
        text-align: right !important;
        flex: 1 !important;
        white-space: nowrap !important;
        font-size: 0.95rem !important;
    }

    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-links h5:after,
    .footer-locations h5:after,
    .footer-social h5:after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .contact-info {
        text-align: center;
    }
    
    .contact-info p {
        justify-content: center;
    }

    /* SPECIFIC FIX FOR FOOTER LOCATIONS CENTERING */
    .footer-locations {
        text-align: center;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-locations .locations {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
    }
    
    .footer-locations .location {
        justify-content: center;
        text-align: center;
        width: auto;
        display: flex;
        margin: 0 auto;
    }
    
    /* Also ensure all footer sections are properly centered */
    .footer-brand,
    .footer-links,
    .footer-social {
        text-align: center;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-links ul {
        display: inline-block;
        text-align: center;
    }
    
    .footer-links li {
        text-align: center;
    }
    
    .footer-links a {
        text-align: center;
        display: inline-block;
    }
    
    /* Fix for the footer bottom locations */
    .footer-locations-bottom {
        text-align: center;
        width: 100%;
        margin-top: 10px;
    }
    
    /* Ensure footer content items are centered properly */
    .footer-content > div {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    /* Improve touch handling for mobile */
    .category-card {
        -webkit-tap-highlight-color: transparent;
        touch-action: pan-y;
    }
}

@media (max-width: 576px) {
    body {
        padding-top: 60px !important;
    }
    
    .navbar {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    
    /* Services Section Small Mobile */
    .services-section {
        padding: 70px 0;
    }
    
    .section-subtitle {
        font-size: 1rem;
        padding: 0 15px;
    }
    
    .service-features {
        gap: 6px;
    }
    
    .service-feature {
        font-size: 0.85rem;
        padding: 6px 12px;
    }
    
    .btn-cta {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .service-card {
        padding: 25px 20px;
    }
    
    .service-title {
        font-size: 1.4rem;
    }
    
    .service-icon-right {
        width: 55px;
        height: 55px;
        font-size: 1.5rem;
    }
    
    .category-cards-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .category-card {
        padding: 20px 15px;
        align-items: center;
    }
    
    .category-carousel-container {
        padding: 0 50px !important;
    }
    
    /* Arrow positioning for small screens */
    .carousel-nav.prev {
        left: 0 !important;
    }
    
    .carousel-nav.next {
        right: 0 !important;
    }
    
    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .category-carousel .category-card {
        width: 220px !important;
        height: 280px !important;
        min-height: 280px !important;
        align-items: center;
    }
    
    .category-item {
        width: 220px !important;
        height: 280px !important;
    }
    
    /* Center icons for small screens */
    .category-carousel .category-card-icon {
        margin: 0 auto 15px auto !important;
    }
    
    /* Modal mobile adjustments for small screens */
    .modal-content {
        width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
        top: 0;
        left: 0;
        transform: none;
        animation: modalSlideInMobile 0.4s ease forwards;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-title {
        font-size: 1.3rem;
    }
    
    .modal-categories-nav {
        padding: 8px 10px;
        gap: 5px;
    }
    
    .modal-category-tab {
        min-width: 120px;
        padding: 10px;
        gap: 8px;
    }
    
    .modal-category-icon {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
    
    .modal-category-name {
        font-size: 0.85rem;
    }
    
    .modal-category-desc {
        display: none;
    }
    
    .modal-main-content {
        padding: 15px 10px;
        max-height: calc(100vh - 180px);
    }
    
    .modal-category-content h4 {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }
    
    .contact-details {
        gap: 20px;
    }
    
    /* FIXED: Keep location icon and text aligned at 576px */
    .location-card p,
    .location-info p {
        flex-direction: row !important;
        align-items: flex-start !important;
    }
    
    .location-card i,
    .location-info i {
        margin-bottom: 0 !important;
        margin-right: 10px !important;
    }

    .about-location{
        display: none;
    }
}

@media (max-width: 480px) {
    .category-carousel-container {
        padding: 0 45px !important;
    }
    
    /* Arrow positioning for very small screens */
    .carousel-nav.prev {
        left: -5px !important;
    }
    
    .carousel-nav.next {
        right: -5px !important;
    }
    
    .carousel-nav {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }
    
    .category-carousel .category-card {
        width: 200px !important;
        height: 260px !important;
        min-height: 260px !important;
        padding: 18px 12px;
        align-items: center;
    }
    
    .category-item {
        width: 200px !important;
        height: 260px !important;
    }
    
    /* Center icons for very small screens */
    .category-card-icon {
        margin: 0 auto 15px auto !important;
    }
    
    /* Make sure content scrolls properly on mobile */
    .category-full-content.active {
        position: relative;
        z-index: 100;
    }
    
    /* Improve touch targets */
    .category-card {
        min-height: 180px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
    }
    
    .category-card-arrow {
        margin-top: auto;
        justify-content: center;
    }
    
    .carousel-controls {
        flex-direction: row !important;
        justify-content: space-between !important;
        display: flex !important;
        gap: 10px !important;
    }
    
    .carousel-prev,
    .carousel-next {
        order: 0 !important;
        width: 35px !important;
        height: 35px !important;
    }
    
    .carousel-indicators {
        order: 0 !important;
        flex: 1 !important;
        justify-content: center !important;
    }
    
    .indicator {
        width: 8px !important;
        height: 8px !important;
        flex-shrink: 0 !important;
    }
    
    .about-location{
        display: none;
    }
    
    /* Business Hours - Very Small Mobile */
    .icon-title-wrapper {
        flex-direction: row !important;
        gap: 10px !important;
    }
    
    .contact-icon {
        width: 40px !important;
        height: 40px !important;
        font-size: 1rem !important;
    }
    
    .contact-text h5 {
        font-size: 1.1rem !important;
    }
    
    .hour-item {
        flex-direction: column !important;
        align-items: center !important;
        gap: 3px !important;
        text-align: center !important;
    }
    
    .hour-item span:first-child,
    .hour-item span:last-child {
        text-align: center !important;
        width: 100% !important;
        font-size: 0.9rem !important;
    }

    .footer-content {
        gap: 25px;
    }
    
    .social-links {
        gap: 10px;
    }
    
    .social-link {
        width: 35px;
        height: 35px;
    }
    
    /* FIXED: Keep location icon and text aligned at 480px */
    .location-card p,
    .location-info p {
        flex-direction: row !important;
        align-items: flex-start !important;
    }
    
    .location-card i,
    .location-info i {
        margin-bottom: 0 !important;
        margin-right: 8px !important;
    }
}

@media (max-width: 360px) {
    .stat-number {
        font-size: 1.8rem !important;
    }
    
    .stat-title {
        font-size: 0.75rem !important;
    }
}

@media (max-width: 992px) {
    .contact-info-wrapper {
        padding: 40px 20px;
        margin-top: 40px;
    }
    
    .contact-form-wrapper {
        padding: 30px 25px;
    }
    
    /* Business Hours - Tablet */
    .contact-item {
        width: 100% !important;
    }
    
    .icon-title-wrapper {
        flex-direction: row !important;
        justify-content: center !important;
        gap: 15px !important;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

/* Add this new media query between your 768px and 992px queries */
@media (min-width: 769px) and (max-width: 991px) {
    /* Business Hours section fix for tablet sizes */
    .contact-item {
        width: 100% !important;
    }
    
    .icon-title-wrapper {
        flex-direction: row !important;
        justify-content: center !important;
        gap: 15px !important;
    }
    
    .hour-item {
        flex-direction: row !important;
        justify-content: space-between !important;
    }
    
    /* Also fix the location cards for this range */
    .location-card p,
    .location-info p {
        display: flex !important;
        flex-direction: row !important;
        align-items: flex-start !important;
        margin-bottom: 10px !important;
    }
    
    .location-card i,
    .location-info i {
        margin-right: 10px !important;
        margin-bottom: 0 !important;
        flex-shrink: 0 !important;
        margin-top: 2px !important;
    }
    
    .location-card .contact-phone,
    .location-info .contact-phone {
        display: flex !important;
        align-items: center !important;
    }

    .modal-content {
        width: 95% !important;
        max-width: 95% !important;
        height: 90vh !important;
        max-height: 90vh !important;
    }
    
    .modal-body {
        flex-direction: column;
        height: calc(100% - 80px) !important; /* Account for header height */
    }
    
    /* Fix for compressed category navigation tabs */
    .modal-categories-nav {
        width: 100% !important;
        flex-shrink: 0 !important;
        border-right: none !important;
        border-bottom: 1px solid #e9ecef !important;
        padding: 12px 15px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        white-space: nowrap !important;
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 12px !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: thin !important;
        scrollbar-color: var(--primary-green) #f1f1f1 !important;
        max-height: 120px !important;
        min-height: 100px !important;
    }
    
    /* Custom scrollbar for tablet */
    .modal-categories-nav::-webkit-scrollbar {
        height: 6px !important;
    }
    
    .modal-categories-nav::-webkit-scrollbar-track {
        background: #f1f1f1 !important;
        border-radius: 3px !important;
    }
    
    .modal-categories-nav::-webkit-scrollbar-thumb {
        background: var(--primary-green) !important;
        border-radius: 3px !important;
    }
    
    .modal-categories-nav::-webkit-scrollbar-thumb:hover {
        background: var(--dark-green) !important;
    }
    
    /* Adjust tab sizing for tablet */
    .modal-category-tab {
        display: inline-flex !important;
        flex-direction: column !important;
        align-items: center !important;
        padding: 12px 15px !important;
        min-width: 150px !important;
        max-width: 180px !important;
        border-left: none !important;
        border-bottom: 3px solid transparent !important;
        flex-shrink: 0 !important;
        height: 100% !important;
        justify-content: center !important;
    }
    
    .modal-category-tab.active {
        border-left: none !important;
        border-bottom-color: var(--primary-green) !important;
    }
    
    .modal-category-tab.active:after {
        display: none !important;
    }
    
    /* Adjust icon size for tablet */
    .modal-category-icon {
        margin-bottom: 8px !important;
        width: 40px !important;
        height: 40px !important;
        font-size: 1.1rem !important;
        flex-shrink: 0 !important;
    }
    
    /* Adjust text for tablet */
    .modal-category-info {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        min-width: 0 !important;
        width: 100% !important;
    }
    
    .modal-category-name {
        font-size: 0.9rem !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 100% !important;
        line-height: 1.2 !important;
        margin-bottom: 4px !important;
    }
    
    .modal-category-desc {
        font-size: 0.75rem !important;
        line-height: 1.1 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 1 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        width: 100% !important;
    }
    
    /* Adjust main content area for tablet */
    .modal-main-content {
        flex: 1 !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 20px !important;
        min-height: 0 !important;
        max-height: calc(100% - 120px) !important; /* Account for nav height */
    }
    
    /* Adjust content heading for tablet */
    .modal-category-content h4 {
        font-size: 1.5rem !important;
        margin-bottom: 20px !important;
        padding-bottom: 12px !important;
    }
    
    /* Adjust solution cards for tablet */
    .row.mt-4 {
        margin-left: -10px !important;
        margin-right: -10px !important;
    }
    
    .col-lg-6 {
        padding-left: 10px !important;
        padding-right: 10px !important;
        width: 50% !important;
        flex: 0 0 50% !important;
    }
    
    .col-lg-8 {
        padding-left: 10px !important;
        padding-right: 10px !important;
        width: 66.6667% !important;
        flex: 0 0 66.6667% !important;
        margin: 0 auto !important;
        float: none !important;
    }
    
    .solution-card {
        margin-bottom: 20px !important;
        height: auto !important;
        min-height: auto !important;
    }
    
    .solution-img {
        height: 220px !important;
        padding: 15px !important;
    }
    
    .solution-content {
        padding: 18px !important;
    }
    
    .solution-links {
        display: flex !important;
        flex-direction: column !important;
        gap: 6px !important;
    }
    
    .solution-links li {
        margin-bottom: 6px !important;
    }
    
    .solution-links a {
        font-size: 0.9rem !important;
        line-height: 1.3 !important;
    }
    
    /* Fix close button for tablet */
    .close-modal-btn span {
        display: inline !important;
        font-size: 0.9rem !important;
    }
    
    .close-modal-btn {
        padding: 8px 15px !important;
        font-size: 0.9rem !important;
    }
    
}

@media (min-width: 992px) and (max-width: 1024px) and (orientation: portrait) {
    .modal-content {
        width: 90% !important;
        max-width: 90% !important;
        height: 85vh !important;
        max-height: 85vh !important;
    }
    
    .modal-body {
        flex-direction: row !important; /* Keep side-by-side layout for larger tablets */
    }
    
    .modal-categories-nav {
        width: 240px !important; /* Slightly narrower nav */
        border-right: 1px solid #e9ecef !important;
        border-bottom: none !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        white-space: normal !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        padding: 20px 0 !important;
        max-height: none !important;
    }
    
    .modal-category-tab {
        flex-direction: row !important;
        text-align: left !important;
        padding: 12px 20px !important;
        min-width: 100% !important;
        max-width: 100% !important;
        border-left: 4px solid transparent !important;
        border-bottom: none !important;
    }
    
    .modal-category-tab.active {
        border-left-color: var(--primary-green) !important;
        border-bottom: none !important;
    }
    
    .modal-category-icon {
        margin-bottom: 0 !important;
        margin-right: 12px !important;
    }
    
    .modal-category-info {
        align-items: flex-start !important;
        text-align: left !important;
    }
    
    .modal-main-content {
        max-height: none !important;
    }
}

@media (min-width: 769px) and (max-width: 850px) {
    .modal-category-tab {
        min-width: 140px !important;
        max-width: 160px !important;
        padding: 10px 12px !important;
    }
    
    .modal-category-icon {
        width: 36px !important;
        height: 36px !important;
        font-size: 1rem !important;
    }
    
    .modal-category-name {
        font-size: 0.85rem !important;
    }
    
    .modal-category-desc {
        font-size: 0.7rem !important;
    }
    
    /* For tablets in portrait mode */
    .modal-content {
        width: 98% !important;
        max-width: 98% !important;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    /* Business Hours - Large Desktop */
    .contact-item {
        width: 100% !important;
    }
    
    .icon-title-wrapper {
        flex-direction: row !important;
        justify-content: center !important;
        gap: 15px !important;
    }
    
    .contact-text h5 {
        font-size: 1.4rem !important;
        margin: 0 !important;
    }
    
    .hour-item {
        flex-direction: row !important;
        justify-content: space-between !important;
    }
}

@media (min-width: 1200px) {
    /* Services Section Large Screens */
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .service-cta-card {
        grid-column: span 3;
    }
    
    /* Business Hours - Extra Large Desktop */
    .contact-item {
        width: 100% !important;
    }
    
    .icon-title-wrapper {
        flex-direction: row !important;
        justify-content: center !important;
        gap: 15px !important;
    }
    
    .contact-text h5 {
        font-size: 1.5rem !important;
    }
    
    .hour-item {
        font-size: 1.05rem !important;
    }
}

/* FORCE CENTERING OF ICONS - Add at the end to ensure it overrides any other styles */
.category-card-icon,
.category-carousel .category-card-icon {
    margin-left: auto !important;
    margin-right: auto !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.category-card {
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

.category-card-title,
.category-card-desc {
    text-align: center !important;
    width: 100% !important;
}

/* ===== NAVBAR WIDTH FIX ===== */
/* Fixed navbar container to prevent full-width stretching */
.navbar .container {
    max-width: 1140px !important;
    margin: 0 auto !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
}

/* Override the problematic rules that were causing full-width */
.navbar > .container,
.navbar > .container-fluid {
    max-width: 1140px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Ensure navbar background stays full-width but content is contained */
.navbar {
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100% !important;
}

/* Custom stats grid - no Bootstrap */
.stats-container {
    display: flex;
    flex-wrap: wrap;
    margin: -15px;
    width: calc(100% + 30px);
}

.stat-box {
    width: 100%;
    padding: 15px;
    text-align: center;
    box-sizing: border-box;
}

/* Desktop: 4 per row */
@media (min-width: 768px) {
    .stat-box {
        width: 25%;
    }
}

/* Tablet: 2 per row */
@media (min-width: 577px) and (max-width: 767px) {
    .stat-box {
        width: 50%;
    }
}

/* Mobile: 2 per row */
@media (max-width: 576px) {
    .stats-container {
        margin: -10px;
        width: calc(100% + 20px);
    }
    
    .stat-box {
        width: 50%;
        padding: 10px;
    }
}

/* ===== FIX: HIDE NAVBAR WHEN MODAL IS OPEN ON MOBILE ===== */
@media (max-width: 768px) {
    /* Force hide the navbar when modal is open */
    .category-modal.active ~ .navbar,
    body.modal-open .navbar {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        z-index: -1 !important;
    }
    
    /* Also ensure body doesn't have extra padding */
    body.modal-open {
        padding-top: 0 !important;
    }
    
    /* Make sure modal is on top of everything */
    .category-modal {
        z-index: 99999 !important;
    }
    
    .modal-overlay {
        z-index: 99998 !important;
    }
    
    .modal-content {
        z-index: 99999 !important;
    }
}

/* Add this to your existing CSS for better mobile modal nav scrolling */
@media (max-width: 768px) {
    .modal-categories-nav {
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
        scroll-behavior: smooth !important;
    }
    
    .modal-categories-nav::-webkit-scrollbar {
        display: none !important;
    }
}

/* ===== SERVICE INQUIRY DROPDOWN STYLES ===== */
#service-inquiry {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: white;
    color: var(--dark-gray);
    width: 100%;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232e7d32' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    cursor: pointer;
}

#service-inquiry:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 0.2rem rgba(46, 125, 50, 0.25);
    outline: none;
}

#service-inquiry option {
    padding: 10px;
    background-color: white;
    color: var(--dark-gray);
}

#service-inquiry option:first-child {
    color: #6c757d;
    font-style: italic;
}

/* Make sure the label is styled properly */
.form-label[for="service-inquiry"] {
    color: var(--dark-gray);
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

/* Mobile responsiveness for dropdown */
@media (max-width: 768px) {
    #service-inquiry {
        padding: 10px 12px;
        font-size: 0.95rem;
        background-position: right 12px center;
    }
}

/* ===== FIX: DOWNLOAD BUTTON STYLES ===== */
.btn-pdf {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
    color: white !important;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none !important;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.2);
    margin-top: 10px;
    width: 100%;
    justify-content: center;
    text-align: center;
}

.btn-pdf:hover {
    background: linear-gradient(135deg, var(--dark-green), var(--primary-green));
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(46, 125, 50, 0.3);
    color: white !important;
}

.btn-pdf:active {
    transform: translateY(-1px);
}

.btn-pdf i {
    font-size: 1.2rem;
}

.btn-pdf span {
    flex: 1;
    text-align: center;
}

.file-size {
    font-size: 0.85rem;
    opacity: 0.9;
    font-weight: normal;
    margin-left: 5px;
}

/* PDF download section container */
.solution-files {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e8f5e9;
}

.solution-files h6 {
    color: var(--primary-green);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.solution-files h6 i {
    font-size: 1.1rem;
}

.single-file-download {
    display: flex;
    justify-content: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .btn-pdf {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .btn-pdf span {
        font-size: 0.9rem;
    }
    
    .file-size {
        font-size: 0.8rem;
    }
}

/* ===== FIX: MODAL NAVIGATION STYLES ===== */
.modal-categories-nav {
    width: 280px;
    background: #f8f9fa;
    border-right: 1px solid #e9ecef;
    padding: 25px 0;
    overflow-y: auto;
    flex-shrink: 0;
}

.modal-category-nav-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    position: relative;
    margin: 0;
    font-family: 'Nourde', sans-serif;
    color: var(--dark-gray);
}

.modal-category-nav-btn:hover {
    background: rgba(46, 125, 50, 0.05);
    color: var(--primary-green);
}

.modal-category-nav-btn.active {
    background: rgba(46, 125, 50, 0.1);
    border-left-color: var(--primary-green);
    color: var(--primary-green);
    font-weight: 600;
}

.modal-category-nav-btn.active:after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 8px solid white;
}

.modal-category-nav-btn i {
    width: 24px;
    text-align: center;
    font-size: 1.2rem;
    color: var(--primary-green);
    flex-shrink: 0;
}

.modal-category-nav-btn.active i {
    color: var(--primary-green);
}

.modal-category-nav-btn span {
    flex: 1;
    font-size: 1rem;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .modal-categories-nav {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        padding: 10px 15px;
        border-right: none;
        border-bottom: 1px solid #e9ecef;
        display: flex;
        flex-wrap: nowrap;
        gap: 10px;
    }
    
    .modal-category-nav-btn {
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        min-width: 120px;
        padding: 10px 15px;
        border-left: none;
        border-bottom: 3px solid transparent;
        flex-shrink: 0;
    }
    
    .modal-category-nav-btn.active {
        border-left: none;
        border-bottom-color: var(--primary-green);
    }
    
    .modal-category-nav-btn.active:after {
        display: none;
    }
}

/* Ensure navigation is properly aligned */
.modal-main-content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    background: white;
    position: relative;
}

/* Make sure the active state is visible */
.modal-category-nav-btn.active {
    background: linear-gradient(90deg, rgba(46, 125, 50, 0.1), rgba(46, 125, 50, 0.05));
}

/* Ensure icons are properly sized */
.modal-category-nav-btn .fas {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

/* Make download button stand out */
.btn-pdf {
    background: linear-gradient(135deg, #2e7d32, #1b5e20);
    border: 2px solid transparent;
}

.btn-pdf:hover {
    background: linear-gradient(135deg, #1b5e20, #2e7d32);
    border-color: rgba(255, 255, 255, 0.2);
}