/* Mobile-First Responsive Styles */
@media (max-width: 992px) {

    /* General Styles */
    html,
    body {
        width: 100% !important;
        overflow-x: hidden !important;
    }

    .container {
        padding: 0 15px !important;
        max-width: 100% !important;
    }

    /* Typography */
    h1,
    .h1,
    h1 * {
        font-size: 28px !important;
        line-height: 1.3 !important;
        margin-bottom: 15px !important;
    }

    h2,
    .h2,
    h2 * {
        font-size: 24px !important;
        line-height: 1.3 !important;
        margin-bottom: 15px !important;
    }

    p,
    li,
    a,
    span,
    div,
    button,
    input,
    textarea,
    select {
        font-size: 16px !important;
        line-height: 1.6 !important;
    }

    /* Navigation */
    .mobile-menu-btn {
        display: block !important;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -300px;
        width: 280px;
        height: 100vh;
        background: white;
        padding: 80px 20px 20px;
        transition: right 0.3s ease;
        z-index: 1000;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        right: 0;
    }

    /* Filter Section */
    .filter-section {
        padding: 15px 0 !important;
        background: white;
        position: sticky;
        top: 0;
        z-index: 1000;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }


    .filter-section .container {
        display: flex;
        flex-direction: column;
        width: 100%;
        max-width: 100%;
        padding: 0 15px 15px !important;
        box-sizing: border-box;
        gap: 15px;
    }

    .filter-row {
        display: flex;
        width: 100%;
        align-items: center;
        gap: 10px;
    }

    .filter-toggle-group {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        width: 100%;
        max-width: 600px;
    }

    .segmented-group {
        display: flex;
        align-items: center;
        gap: 0;
        width: auto;
        margin: 0 auto;
    }

    .segmented-control {
        display: flex;
        background: #e2e2e2;
        height: 44px;
        border-top-left-radius: 9999px;
        border-bottom-left-radius: 9999px;
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
        overflow: hidden;
    }

    .seg-btn {
        appearance: none;
        border: 0;
        background: transparent;
        color: #6c757d;
        font-weight: 600;
        font-size: 14px;
        padding: 0 22px;
        display: flex;
        align-items: center;
        gap: 10px;
        cursor: pointer;
        height: 100%;
        transition: background .2s ease, color .2s ease;
    }

    .seg-btn i {
        font-size: 16px;
        color: #6c757d;
    }

    .seg-btn:first-child {
        border-top-left-radius: 9999px;
        border-bottom-left-radius: 9999px;
    }

    .seg-btn:last-child {
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
    }

    .seg-btn.active {
        background: #145B59;
        color: #fff;
    }

    .seg-btn.active i {
        color: #ffffff;
    }

    .attached-dropdown {
        display: flex;
        align-items: center;
        background: #e2e2e2;
        height: 44px;
        padding: 0 14px 0 12px;
        border-top-right-radius: 9999px;
        border-bottom-right-radius: 9999px;
        margin-left: 0;
        transition: none;
    }

    .attached-dropdown:hover {
        background: #e2e2e2;
    }

    .attached-dropdown select {
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        border: 0;
        background: transparent;
        padding-right: 22px;
        font-size: 14px;
        font-weight: 600;
        color: #4b5563;
        line-height: 44px;
        height: 44px;
        outline: none;
        min-width: 160px;
        border-radius: 0;
        cursor: pointer;
        box-shadow: none;
    }

    .attached-dropdown select:focus {
        outline: none;
    }

    .attached-dropdown .chevron {
        margin-left: -20px;
        pointer-events: none;
        color: #6b7280;
        font-size: 12px;
        flex: 1;
        min-width: 100%;
    }


    .filter-section .search-bar {
        display: flex !important;
        align-items: stretch !important;
        border: 1px solid #dee2e6 !important;
        border-radius: 30px !important;
        overflow: hidden !important;
        background: white !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        height: 45px !important;
        box-sizing: border-box !important;
    }




    .filter-section .search-bar .search-wrapper {
        flex: 1 !important;
        display: flex !important;
        align-items: center !important;
        padding: 0 15px !important;
    }

    .filter-section .search-bar input {
        width: 100% !important;
        border: none !important;
        outline: none !important;
        background: transparent !important;
        font-size: 14px !important;
        color: #333 !important;
        margin: 0 !important;
        padding: 0 0 0 10px !important;
        text-align: left !important;
    }

    .filter-section .search-bar input::placeholder {
        color: #adb5bd;
        text-align: left !important;
        opacity: 1 !important;
    }

    .filter-section .search-bar .btn-search {
        background-color: #145B59 !important;
        color: white !important;
        border: none !important;
        padding: 0 15px !important;
        height: 47px !important;
        /* 45px + 2px for border */
        min-width: 45px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        transition: background-color 0.3s !important;
        font-size: 14px !important;
        line-height: 1 !important;
        border-radius: 0 30px 30px 0 !important;
        margin: -1px -1px -1px 0 !important;
        border-left: 1px solid rgba(255, 255, 255, 0.2) !important;
        position: relative;
        top: -1px;
    }

    .search-bar .btn-search:hover {
        background-color: #0a4d42;
    }

    @media (max-width: 768px) {
        .filter-row {
            flex-wrap: wrap;
        }

        .segmented-group {
            flex: 1;
            min-width: 100%;
            margin-bottom: 8px;
        }

        .search-bar {
            flex-direction: row !important;
        }

        .search-bar .btn-search {
            width: auto !important;
            padding: 0 15px !important;
        }
    }

    /* Hero Section */
    .hero {
        padding: 0 !important;
        background: #ffffff !important;
        margin: -10px 0 -120px 0 !important;
        /* Increased negative bottom margin */
    }

    .hero .container {
        display: flex;
        flex-direction: column;
        position: relative;
    }

    .hero-content {
        padding: 20px 15px 0 !important;
        /* Reduced bottom padding */
        text-align: center;
        order: 1;
    }

    .hero-buttons {
        margin: 0 0 -10px 0 !important;
        /* Adjusted margins */
        padding: 0 15px 0 !important;
        justify-content: center;
        z-index: 3;
        position: relative;
    }

    .hero-images {
        order: 2;
        width: 100%;
        margin: -30px 0 0 0 !important;
        /* Increased negative margin */
        padding: 0;
        position: relative;
        top: -20px;
        /* Additional upward movement */
    }

    .hero-images img {
        width: 100%;
        max-width: 100%;
        height: auto;
        max-height: 380px;
        display: block;
        margin: 0 auto -15px !important;
        /* Added negative bottom margin */
        object-fit: contain;
    }

    /* Logo Carousel Adjustments */
    .logo-item {
        min-width: 300px !important;
        margin: 0 10px !important;
        padding: 20px 0 !important;
    }

    .logo-item img {
        height: 250px !important;
        max-width: 380px !important;
        opacity: 1 !important;
    }

    .partner-logos {
        padding: 20px 0 !important;
    }

    @keyframes scrollLogos {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(calc(-50% - 10px));
        }
    }

    .hero-content h1 {
        font-size: 26px !important;
        line-height: 1.2;
        margin-bottom: 8px !important;
    }

    .hero-content p {
        font-size: 15px !important;
        margin-bottom: 8px !important;
        line-height: 1.3;
    }

    .hero-images {
        margin: -5px auto 0;
        padding: 0 10px;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        position: relative;
        display: flex;
        justify-content: center;
    }

    .hero-images img {
        max-height: 400px;
        width: 100%;
        height: auto;
        object-fit: contain;
        margin: -12px auto -35px;
        display: block;
    }

    /* Removed duplicate search bar styles */

    /* Hide the original location search in hero */
    .location-search {
        display: none !important;
    }

    .location-search i {
        color: #666;
        margin-right: 10px;
    }

    .location-search input {
        border: none;
        outline: none;
        width: 100%;
        font-size: 14px;
        padding: 8px 0;
    }

    .location-search button {
        background: #D7B434;
        border: none;
        color: white;
        padding: 8px 15px;
        border-radius: 20px;
        font-weight: 600;
        cursor: pointer;
        white-space: nowrap;
    }

    .hero-buttons {
        flex-direction: column !important;
        gap: 10px !important;
        padding: 0 15px !important;
        margin: 15px 0 5px !important;
    }

    .hero-buttons .btn {
        width: 100% !important;
        margin: 0 !important;
        padding: 12px 20px !important;
        font-size: 15px !important;
    }

    /* Logo Carousel - Base Styles */
    .scroll-container {
        width: 100%;
        overflow: hidden;
        padding: 30px 0 !important;
        margin: 40px 0 !important;
        background: #fff;
    }

    .partner-logos {
        display: flex;
        width: max-content;
        animation: scrollLogos 60s linear infinite;
        /* Slower animation */
        padding: 20px 0;
    }

    .logo-item {
        flex: 0 0 auto;
        margin: 0 40px !important;
        display: flex;
        align-items: center;
        transition: transform 0.3s ease;
    }

    .logo-item img {
        height: 80px !important;
        width: auto;
        max-width: 160px !important;
        object-fit: contain;
        filter: grayscale(0%) !important;
        /* Force color */
        opacity: 0.7;
        transition: all 0.3s ease;
    }

    .logo-item:hover img {
        transform: scale(1.1);
        opacity: 1;
    }

    @keyframes scrollLogos {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(-50%);
        }
    }

    @keyframes scrollLogos {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(-50%);
        }
    }

    /* Property Grids */
    .property-grid,
    .projects-grid,
    .team-container {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
        max-width: 100% !important;
    }

    /* Video Section */
    .video-grid {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
    }

    /* Testimonials */
    .testimonials .container>div {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    /* Contact Form */
    .contact-form {
        padding: 20px !important;
    }

    .form-row {
        flex-direction: column !important;
    }

    .form-group {
        width: 100% !important;
        margin-bottom: 15px !important;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        text-align: left;
        padding: 0 15px !important;
    }

    .footer-column {
        margin-bottom: 25px;
    }

    .footer-column h3 {
        font-size: 18px !important;
        margin-bottom: 15px !important;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        padding: 30px 15px 60px !important;
        position: relative;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        margin-top: 20px;
    }

    .footer-bottom #para1 {
        text-align: left;
        width: 100%;
        margin: 0 0 25px 0;
        font-size: 14px !important;
        color: rgba(255, 255, 255, 0.7);
    }

    .social-icons {
        position: absolute !important;
        right: 15px;
        bottom: 15px;
        display: flex;
        gap: 12px;
        margin: 0 !important;
    }

    .social-icons a {
        width: 36px !important;
        height: 36px !important;
        font-size: 14px !important;
    }

    .footer-bottom #para1::-webkit-scrollbar {
        display: none;
    }

    .footer-bottom .social-icons {
        position: absolute;
        bottom: 30px;
        left: 0;
        right: 0;
        margin: 0 auto;
        display: flex;
        justify-content: center;
        gap: 15px;
        /* Reduced gap between icons */
    }

    /* Property Cards - Enhanced Layout */
    .find-home {
        padding: 0 !important;
        margin: 0 !important;
        overflow: hidden;
        width: 100% !important;
        max-width: 100% !important;
        position: relative;
        left: -1px;
    }

    .find-home .container {
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
    }

    .find-home-content {
        text-align: center;
        margin-bottom: 30px;
        padding: 0 15px;
    }

    .find-home h2 {
        font-size: 26px !important;
        line-height: 1.3 !important;
        margin-bottom: 12px !important;
        color: #1a1a1a;
    }

    .find-home p {
        font-size: 15px !important;
        color: #555;
        margin: 0 auto 25px !important;
        max-width: 550px;
        line-height: 1.6;
    }

    .find-home-image {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box;
    }

    .image-grid1 {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr);
        gap: 2px !important;
        margin: 0 auto !important;
        width: calc(100% - 4px) !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        position: relative;
    }

    .image-grid1>div {
        position: relative;
        width: calc(100% - 2px) !important;
        height: 280px;
        overflow: hidden !important;
        transition: all 0.3s ease;
        margin: 0 auto !important;
        padding: 0 !important;
        background: #fff;
        border-radius: 16px;
    }

    .image-grid1>div:first-child,
    .image-grid1>div:last-child {
        height: 270px;
        margin-top: 15px;
    }

    .image-grid1>div:nth-child(2) {
        height: 330px;
        margin-top: 0;
    }

    .image-grid1 img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 16px;
    }

    .image-grid1>div:hover img {
        transform: scale(1.03);
    }

    .image-grid1 button {
        position: absolute;
        bottom: 12px;
        left: 50%;
        transform: translateX(-50%);
        margin: 0;
        width: 90%;
        max-width: 120px;
        padding: 5px 6px;
        border: 1.5px solid rgba(255, 255, 255, 0.4) !important;
        border-radius: 15px;
        background: rgba(255, 255, 255, 0.15) !important;
        backdrop-filter: blur(12px) saturate(180%);
        -webkit-backdrop-filter: blur(12px) saturate(180%);
        color: white !important;
        font-weight: 500;
        font-size: 0.7rem;
        line-height: 1.1;
        cursor: pointer;
        transition: all 0.3s ease;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        z-index: 2;
    }

    .image-grid1 button:hover {
        background: rgba(255, 255, 255, 0.25) !important;
        transform: translateX(-50%) translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    /* Partner Logos - Auto-scrolling Carousel */
    .properties-highlight {
        padding: 10px 0 20px !important;
        width: 100% !important;
        overflow: hidden !important;
    }

    .properties-highlight .container {
        max-width: 100% !important;
        padding: 0 !important;
        overflow: hidden !important;
    }

    .partner-logos-wrapper {
        width: 100%;
        overflow: hidden;
        position: relative;
    }

    .partner-logos {
        display: flex !important;
        width: max-content !important;
        padding: 10px 5px !important;
        gap: 10px !important;
        animation: scrollLogos 300s linear infinite !important;
        /* 5 minutes */
        margin: 0 -2.5px !important;
    }

    @keyframes scrollMobile {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(calc(-100% / 5 * 5 - 5px * 2));
        }

        /* Adjusted calculation for 5px gap */
    }

    @-webkit-keyframes scrollMobile {
        0% {
            -webkit-transform: translateX(0);
        }

        100% {
            -webkit-transform: translateX(calc(-100% / 5 * 5 - 5px * 2));
        }

        /* Adjusted calculation for 5px gap */
    }

    .logo-item {
        flex: 0 0 32% !important;
        /* Slightly increased to compensate for negative margin */
        width: 32% !important;
        max-width: 140px !important;
        height: 100px !important;
        margin: 0 -2.5px !important;
        /* Negative margin to reduce gap */
        display: flex !important;
        align-items: center;
        justify-content: center;
        padding: 0 2.5px !important;
        /* Reduced padding */
        box-sizing: content-box;
    }

    .logo-item img {
        width: auto !important;
        height: 100% !important;
        max-width: 100% !important;
        max-height: 100% !important;
        object-fit: contain !important;
    }

    /* About Section Mobile Styles */
    @media (max-width: 768px) {
        .featured-villas {
            padding: 40px 0 !important;
            margin: 0 !important;
            position: relative;
            background: #0D5F52 !important;
            min-height: auto !important;
        }

        .featured-villas>div {
            position: relative !important;
            height: auto !important;
            min-height: 0 !important;
        }

        .featured-villas>div>div:first-child {
            position: absolute !important;
            top: 0;
            left: 0;
            width: 100%;
            height: 100% !important;
            z-index: 1;
        }

        .featured-villas .container {
            padding: 30px 15px !important;
            position: relative !important;
            z-index: 2;
            height: auto !important;
            top: 0 !important;
        }

        /* Headings */
        .featured-villas h2 {
            position: relative !important;
            font-size: 2.5rem !important;
            line-height: 1.2 !important;
            width: 100% !important;
            left: 0 !important;
            text-align: center !important;
            padding: 0 !important;
            margin: 0 0 5px 0 !important;
            color: white !important;
            height: auto !important;
            top: 0 !important;
            text-shadow: none !important;
        }

        .featured-villas h2:last-of-type {
            margin-bottom: 20px !important;
        }

        /* Content */
        .featured-villas>div>div:last-child>div[style*="margin: 120px auto"] {
            margin: 20px 0 !important;
            padding: 0 10px !important;
            text-align: center !important;
            max-width: 100% !important;
            font-size: 16px !important;
            line-height: 1.6 !important;
            color: white !important;
        }

        /* Stats container */
        .featured-villas>div>div:last-child>div:first-child {
            position: relative !important;
            display: flex !important;
            flex-direction: row !important;
            flex-wrap: wrap;
            justify-content: center;
            gap: 10px;
            margin: 30px 0 20px !important;
            padding: 0 10px !important;
            left: 0 !important;
            right: 0 !important;
            top: 0 !important;
        }

        /* Stat items */
        .featured-villas>div>div:last-child>div:first-child>div {
            background: rgba(255, 255, 255, 0.15) !important;
            border-radius: 8px;
            padding: 15px 10px !important;
            margin: 5px !important;
            text-align: center;
            flex: 1;
            min-width: 100px;
        }

        /* Stat numbers */
        .featured-villas>div>div:last-child>div:first-child>div>div:first-child {
            font-size: 1.8rem !important;
            margin-bottom: 5px !important;
            color: #d4af37 !important;
            font-weight: 700;
        }

        /* Stat labels */
        .featured-villas>div>div:last-child>div:first-child>div>div:last-child {
            font-size: 0.9rem !important;
            color: white !important;
            font-weight: 500;
        }
    }

    /* Property Cards Mobile Styles */
    @media (max-width: 768px) {
        .property-card {
            height: 320px;
            margin-bottom: 20px;
        }

        .property-image {
            height: 160px;
        }

        .property-info {
            height: 160px;
            padding: 12px;
            justify-content: flex-start;
        }

        .property-info h3 {
            font-size: 15px !important;
            margin-bottom: 6px;
        }

        .property-info h5,
        .property-info p {
            font-size: 12px !important;
            margin: 2px 0;
        }

        .property-actions {
            margin: -15px 0 5px 0;
            justify-content: flex-end;
            align-self: flex-end;
            width: auto;
            position: relative;
            top: -15px;
        }

        .property-info .btn {
            padding: 6px 20px;
            font-size: 11px;
            min-width: auto;
            width: auto;
            margin: 0;
            border-radius: 20px;
            background: linear-gradient(45deg, #a37100, #e6c05e, #a37100);
            color: white;
            border: none;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        }

        /* Specific styles for Ready to Move section */
        .ready-to-move .property-card {
            margin-bottom: 25px;
        }

        .ready-to-move .property-info {
            padding: 12px 15px;
        }

        .ready-to-move .explore {
            margin-top: 5px;
            margin-bottom: -5px;
            display: flex;
            justify-content: flex-end;
            position: relative;
            top: -8px;
        }

        .ready-to-move .explore .btn {
            margin-right: 0;
        }
    }

    /* Testimonials Section Mobile Styles */
    .testimonials {
        padding: 40px 0 !important;
    }

    .testimonials h2 {
        font-size: 2rem !important;
        margin-bottom: 40px !important;
        padding: 0 15px !important;
        text-align: center !important;
    }

    .testimonials>.container>div {
        grid-template-columns: 1fr !important;
        gap: 60px !important;
        padding: 10px 10px !important;
        max-width: 90% !important;
        margin: 0 auto !important;
    }

    .testimonials>.container>div>div {
        min-height: auto !important;
        padding: 60px 15px 20px !important;
        margin: 15px 0 0 0 !important;
        border-radius: 12px !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
        position: relative;
        text-align: left;
    }

    .testimonials>.container>div>div>div:first-child {
        width: 140px !important;
        height: 140px !important;
        position: absolute;
        top: -55px;
        left: 50%;
        transform: translateX(-50%);
        margin: 0 !important;
        z-index: 10;
    }

    .testimonials>.container>div>div>div:first-child img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        border-radius: 50% !important;
        display: block;
    }

    .testimonials>.container>div>div>p {
        font-size: 14px !important;
        line-height: 1.5 !important;
        margin: 0 0 12px 0 !important;
        padding: 0 5px 0 0 !important;
        text-align: left;
    }

    .testimonials>.container>div>div>div:last-child {
        padding-left: 5px;
    }

    .testimonials>.container>div>div>div:last-child h4 {
        font-size: 1.1rem !important;
        margin: 0 0 4px 0 !important;
        text-align: left;
        padding-left: 5px;
    }

    .testimonials>.container>div>div>div:last-child p {
        font-size: 0.9rem !important;
        opacity: 0.9;
    }

    /* Additional optimizations for very small devices */
    @media (max-width: 480px) {
        .hero {
            padding: 20px 0 10px !important;
        }

        h1,
        .h1,
        h1 * {
            font-size: 24px !important;
        }

        h2,
        .h2,
        h2 * {
            font-size: 22px !important;
        }

        .btn {
            padding: 10px 20px !important;
            font-size: 15px !important;
        }

        .logo-item img {
            height: 60px !important;
            max-width: 120px !important;
        }

        /* Video Gallery - Matches Desktop Styles */
        .video-gallery {
            text-align: center;
            padding: 80px 0 !important;
            background-color: var(--light-bg);
        }

        .video-gallery h2 {
            font-size: 2.5rem !important;
            margin-bottom: 15px !important;
            color: var(--primary-color);
        }

        .video-gallery p {
            max-width: 700px !important;
            margin: 0 auto 40px !important;
            color: var(--text-color);
            font-size: 1.1rem !important;
            line-height: 1.6;
        }

        .video-container {
            position: relative;
            max-width: 100%;
            margin: 0 auto;
            padding: 0;
            /* Remove horizontal padding */
            overflow: visible;
        }

        .video-grid {
            display: flex;
            gap: 15px;
            padding: 20px 0;
            overflow-x: auto;
            scroll-behavior: smooth;
            -webkit-overflow-scrolling: touch;
            width: 100%;
            scroll-snap-type: x mandatory;
            scroll-padding: 0 15px;
        }

        .video-grid::-webkit-scrollbar {
            display: none;
        }

        .map-container {
            flex: 2;
            min-width: 280px;
            margin-left: 12px;
            margin-right: 8px;
            width: calc(100% - 20px);
        }

        .video-card {
            flex: 0 0 85%;
            max-width: 320px;
            margin: 0 10px;
            background: white;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            scroll-snap-align: center;
            /* Changed to center for better mobile feel */
            flex-shrink: 0;
        }

        .video-card.active {
            transform: scale(1.05);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
        }

        .video-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
        }

        .video-thumbnail {
            position: relative;
            width: 100%;
            aspect-ratio: 16 / 9;
            overflow: hidden;
            cursor: pointer;
            background: #000;
            /* Black background for contain bars */
        }

        .video-thumbnail img {
            width: 100% !important;
            height: 100% !important;
            object-fit: contain !important;
            /* Ensure full image is visible */
            display: block !important;
            transition: transform 0.5s ease;
        }

        .video-card:hover .video-thumbnail img {
            transform: scale(1.05);
        }

        .video-card p {
            display: none;
            /* Hide text in mobile layout */
        }

        .play-button {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 60px;
            /* Slightly smaller for mobile */
            height: 60px;
            background-color: rgba(0, 0, 0, 0.7);
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            color: white;
            font-size: 20px;
            transition: all 0.3s ease;
            border: none;
            outline: none;
            cursor: pointer;
            z-index: 5;
        }

        .play-button i {
            color: white;
            font-size: 20px;
            margin-left: 3px;
        }

        /* Navigation arrows - Mobile specific */
        .video-nav {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 36px;
            height: 36px;
            background: white;
            border-radius: 50%;
            border: none;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
            display: flex !important;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            z-index: 100;
            /* Ensure arrows are above cards */
            opacity: 0.9;
            transition: all 0.2s ease;
        }

        .video-nav.prev {
            left: 5px;
        }

        .video-nav.next {
            right: 5px;
        }
    }
}




/* Tablet Styles - For screens between 768px and 1023px */
@media (min-width: 768px) and (max-width: 992px) {
    .find-home-image {
        width: 100%;
        max-width: 650px;
        margin: 0 auto !important;
    }


    .image-grid1 {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        width: 100%;
    }

    .image-grid1>div {
        position: relative;
        height: 350px;
        overflow: hidden;
        border-radius: 45px;
    }

    .image-grid1>div:first-child,
    .image-grid1>div:last-child {
        width: calc(100% - 20px) !important;
        max-width: 300px !important;
        height: 350px !important;
        margin: 0 auto !important;
        justify-self: center;
    }

    .image-grid1>div:nth-child(2) {
        height: 400px !important;
        width: 100% !important;
    }

    .image-grid1 img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 30px;
        transition: transform 0.3s ease;
    }

}