/* ==========================================
   GALLERY STYLES
   ========================================== */
.custom-gallery,
.custom-gallery * {
    box-sizing: border-box;
}

.custom-gallery {
    padding: 20px 0;
    max-width: 100%;
    margin: 0 auto;
    width: 100%;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 10px;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    aspect-ratio: 4 / 3;
    background: #f0f0f0;
}

.gallery-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    transition: transform 0.6s ease !important;
    border-radius: 0 !important;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* Responsive Gallery */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 100%;
    }
}

@media (max-width: 768px) {

    /* Remove gallery container padding on mobile */
    .custom-gallery {
        padding: 0 !important;
    }

    /* Gallery as a swipable slider on mobile */
    .gallery-grid {
        display: flex !important;
        grid-template-columns: none !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        gap: 0px !important;
        padding: 0px !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .gallery-grid::-webkit-scrollbar {
        display: none !important;
    }

    /* Show 1 image at a time with 320px height */
    .gallery-item {
        flex: 0 0 100% !important;
        width: 100% !important;
        scroll-snap-align: start !important;
        border-radius: 10px !important;
        padding: 5px !important;
        aspect-ratio: unset !important;
        height: 320px !important;
        min-height: 320px !important;
    }

    .gallery-item img {
        border-radius: 10px !important;
    }

    /* Hide indicator dots on mobile */
    .slider-indicator {
        display: none !important;
    }

    /* Gallery Navigation Arrows Container - Below Gallery */
    .gallery-nav-container {
        display: flex;
        justify-content: center;
        gap: 20px;
        margin-top: 10px;
        margin-bottom: 0;
    }

    /* Gallery Navigation Arrows */
    .gallery-nav-arrow {
        width: 40px;
        height: 40px;
        background: #DAA520;
        border: none;
        border-radius: 50%;
        cursor: pointer;
        z-index: 10;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 8px rgba(0,0,0,0.2);
        transition: background 0.3s ease;
    }

    .gallery-nav-arrow:hover {
        background: #B8860B;
    }

    .gallery-nav-arrow svg {
        width: 20px;
        height: 20px;
        fill: black;
    }

    .gallery-wrapper {
        position: relative;
    }
}

/* ==========================================
   REVIEWS VISIBILITY
   ========================================== */
.desktop-reviews-section {
    display: block !important;
}

.mobile-reviews-section {
    display: none;
    /* Hidden by default (Desktop) */
}

@media (max-width: 768px) {
    .desktop-reviews-section {
        display: none !important;
        /* Hide original on mobile */
    }

    .mobile-reviews-section {
        display: block !important;
        padding: 40px 0;
        background: #f9f9f9;
        overflow: hidden;
    }

    .mobile-reviews-header h2 {
        text-align: center;
        font-size: 24px;
        color: #333;
        margin-bottom: 30px;
        padding: 0;
        line-height: 1.3;
        width: 100%;
    }

    /* Slider Implementation */
    .mobile-review-slider {
        display: flex !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch !important;
        gap: 0;
        padding-bottom: 20px;
    }

    .mobile-review-slider::-webkit-scrollbar {
        display: none;
    }

    .mobile-review-card {
        flex: 0 0 100% !important;
        width: 100% !important;
        scroll-snap-align: center !important;
        padding: 30px 20px;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        box-sizing: border-box !important;
    }

    .reviewer-image {
        width: 100px;
        height: 100px;
        border-radius: 50%;
        overflow: hidden;
        margin-bottom: 15px;
        border: 4px solid #fff;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .reviewer-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        border-radius: 50% !important;
    }

    .mobile-review-card h3 {
        margin: 0 0 5px 0;
        font-size: 20px;
        color: #111;
    }

    .stars {
        color: #ffb800;
        font-size: 18px;
        margin-bottom: 15px;
    }

    .review-title {
        font-size: 18px;
        font-weight: bold;
        color: #333;
        margin-bottom: 10px;
    }

    .mobile-review-card p {
        font-size: 16px;
        line-height: 1.6;
        color: #666;
        max-width: 90%;
        margin: 0 auto;
    }

    /* Force 2 columns for Nearby Areas - Wrapped properly */
    [data-css="tve-u-18694302145"] {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
    }

    [data-css="tve-u-18694302145"]>.tcb-flex-col {
        flex: 0 0 50% !important;
        width: 50% !important;
        max-width: 50% !important;
        padding: 5px 0 !important;
        /* Removed left/right padding */
        box-sizing: border-box !important;
    }

    [data-css="tve-u-18694302145"] .tcb-styled-list-icon-text {
        font-size: 14px !important;
        /* Smaller font size */
    }
}

/* ==========================================
   SLIDER INDICATORS
   ========================================== */
.slider-indicator {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 15px 0;
}

.indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccc;
    transition: all 0.3s ease;
}

.indicator-dot.active {
    background: #012169;
    transform: scale(1.3);
}

/* ==========================================
   MACHINE TECHNOLOGY SECTION
   ========================================== */
.machine-technology-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.tech-heading {
    font-family: 'Rubik', sans-serif !important;
    font-size: 48px !important;
    line-height: 1.2 !important;
    color: #095151 !important;
    font-weight: 700 !important;
    margin-bottom: 25px !important;
    text-align: left !important;
}

.tech-description {
    font-size: 18px !important;
    line-height: 1.7 !important;
    color: #4a4a4a !important;
    margin-bottom: 20px !important;
    text-align: left !important;
}

/* Diagonal Mosaic Collage */
.machine-collage-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(10, 40px);
    /* Reduced for desktop to keep it compact */
    gap: 12px;
    width: 100%;
    max-width: 450px;
    /* Smaller desktop collage */
    margin-left: auto;
    /* Push to right */
    min-height: 350px;
}

.collage-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
}

.collage-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    transition: transform 0.6s ease !important;
}

.collage-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.collage-item:hover img {
    transform: scale(1.1);
}

/* Replicating the diagonal/mosaic pattern */
.collage-item:nth-child(1) {
    grid-row: 1 / span 6;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.collage-item:nth-child(2) {
    grid-row: 1 / span 4;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 70%);
}

.collage-item:nth-child(3) {
    grid-row: 7 / span 4;
    clip-path: polygon(0 15%, 100% 0, 100% 100%, 0 100%);
}

.collage-item:nth-child(4) {
    grid-row: 5 / span 6;
    clip-path: polygon(0 30%, 100% 0, 100% 100%, 0 100%);
}

@media (max-width: 768px) {
    .machine-technology-section {
        padding: 40px 0;
    }

    .tech-heading {
        font-size: 32px !important;
        text-align: left !important;
        /* Kept on left side as per user request */
        line-height: 1.3 !important;
    }

    .tech-description {
        text-align: left !important;
        /* Kept on left side as per user request */
        font-size: 16px !important;
    }

    .machine-collage-grid {
        display: flex !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        gap: 0px !important;
        padding: 0px !important;
        margin-top: 30px !important;
        -webkit-overflow-scrolling: touch !important;
        min-height: 350px !important;
        /* Fix for the 5px height issue on mobile */
    }

    .machine-collage-grid::-webkit-scrollbar {
        display: none !important;
    }

    .collage-item {
        flex: 0 0 100% !important;
        width: 100% !important;
        min-width: 100% !important;
        scroll-snap-align: center !important;
        clip-path: none !important;
        aspect-ratio: 4 / 3 !important;
        /* Explicit ratio for better mobile viewing */
        border-radius: 10px !important;
        height: auto !important;
        min-height: 300px !important;
    }
}

/* ==========================================
   STICKY HEADER BUTTON
   ========================================== */
.sticky-header-btn {
    position: fixed;
    top: -120px;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 999998;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 25px 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: none;
    /* Hidden on desktop */
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.sticky-header-btn.visible {
    top: 0;
}

.sticky-call-btn {
    background: #FFD100;
    /* Yellow background */
    color: #111 !important;
    text-decoration: none !important;
    padding: 16px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-family: 'Rubik', sans-serif;
    font-size: 18px;
    box-shadow: 0 4px 10px rgba(255, 209, 0, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    max-width: 1200px;
    box-sizing: border-box;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sticky-call-btn:hover {
    background: #e6bc00;
    /* Slightly darker yellow on hover */
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .sticky-header-btn {
        display: flex;
        /* Show only on mobile */
        padding: 20px 20px;
    }

    .sticky-call-btn {
        font-size: 16px;
        padding: 14px 20px;
    }
}

/* Full Width Footer */
[data-css="tve-u-16eac5b5a3a"] {
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    width: 100vw !important;
    box-sizing: border-box !important;
}

.symbol-section-out[data-css="tve-u-16eac5b5a3a"] {
    background-color: #095151 !important;
}

.google-verified-text {
    font-size: 29px !important;
    font-weight: 700 !important;
    font-family: 'Rubik', sans-serif !important;
    color: #095151 !important;
}

/* Mobile Tech Accordion */
.mobile-tech-accordion {
    border-top: 1px solid #eee;
    margin-top: 20px;
}

.mobile-tech-item {
    border-bottom: 1px solid #eee;
    margin-bottom: 0 !important;
    padding: 0 !important;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    cursor: pointer;
    width: 100%;
    background: none;
    border: none;
    outline: none;
}

.accordion-header h3 {
    margin-bottom: 0 !important;
    font-size: 17px !important;
    text-align: left !important;
    /* Strictly left-aligned */
    flex: 1;
    /* Take up available space to keep alignment left */
}

.accordion-icon {
    width: 20px;
    height: 20px;
    position: relative;
    transition: transform 0.3s ease;
}

.accordion-icon::before,
.accordion-icon::after {
    content: '';
    position: absolute;
    background-color: #095151;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.accordion-icon::before {
    width: 14px;
    height: 2px;
}

.accordion-icon::after {
    width: 2px;
    height: 14px;
    transition: opacity 0.3s ease;
}

.mobile-tech-item.active .accordion-icon {
    transform: rotate(180deg);
}

.mobile-tech-item.active .accordion-icon::after {
    opacity: 0;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
    text-align: left !important;
    /* Strictly left-aligned */
}

.mobile-tech-item.active .accordion-content {
    max-height: 1000px;
    transition: max-height 0.4s ease-in;
    padding-bottom: 20px;
}