
/* Media Queries */
@media (max-width: 480px) {
    .logo .company-logo-landing {
        width: 150px!important;
        height: 120px!important;
        margin: 0!important;
        display: block!important;
        margin-left: -10px!important;
        margin-top: -30px!important;
    }
}

@media (max-width: 835px) {
    nav.top-nav a:nth-child(2) {
        display: none;
    }
}

@media (min-width: 480px) {
    .container {
        padding-left: 28px;
        padding-right: 28px;
    }

    .container[class*=style-grid-] {
        padding-left: 28px;
        padding-right: 28px;
        max-width: 1024px;
    }

    .header-wrapper {
        padding-bottom: var(--padding-big);
    }

    header #mm-open {
        display: none !important;
    }

    nav.top-nav {
        display: flex;
        align-items: center;
        column-gap: 24px;
        font-weight: 500;
        line-height: 100%;
        user-select: none;
    }

    main section {
        padding-top: var(--padding-big);
        padding-bottom: var(--padding-big);
    }

    .pb-big {
        padding-bottom: var(--padding-big) !important;
    }

    .text-big {
        font-size: 20px;
    }

    h1, .h1 {
        font-size: 64px;
    }

    h2, .h2 {
        font-size: 48px;
    }
}

/* Mobile styles - consolidated media query for screens below 480px only */
@media (max-width: 480px) {
    /* Fix hero section height issue on mobile - allow it to expand beyond 100vh */
    .height-100vh.header-wrapper {
        height: auto !important;
        min-height: 100vh;
    }
    
    /* Ensure the hero container can expand and has enough padding */
    .height-100vh.header-wrapper .container {
        min-height: auto;
        padding-bottom: 40px; /* Add more bottom padding to ensure button is visible */
    }

    /* Reset cards to mobile layout */
    .cards {
        grid-template-columns: 1fr;
        gap: 16px;
        padding-bottom: 32px;
    }

    .cards.full-width {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
    }

    .cards.full-width .card {
        flex-direction: column;
        text-align: center;
        padding: 32px 24px;
        gap: 32px;
        min-height: 320px;
        align-items: center;
        max-width: 100%;
        margin: 0 0 30px 0;
    }

    .cards.full-width .card .feature-image {
        width: 120%;
        max-width: none;
        height: 100%;
        min-height: 200px;
        object-fit: contain;
        border-radius: 8px;
        flex-shrink: 1;
        margin-bottom: 10px;
        object-position: center;
    }

    .cards.full-width .content-block {
        gap: 16px;
        flex: none;
        min-width: auto;
        align-items: center;
        justify-content: flex-start;
        padding-right: 0;
        text-align: center;
        padding: 15px 10px;
    }

    .cards.full-width .card:nth-child(even) {
        flex-direction: column;
    }

    .cards.full-width .card:nth-child(even) .content-block {
        padding-right: 0;
        padding-left: 0;
        padding: 15px 10px;
    }

    .cards.full-width .card h3 {
        font-size: 36px;
        margin-bottom: 10px;
    }

    .cards .card h3 {
        font-size: 36px;
    }

    /* Pattern background adjustments */
    .pattern-background {
        background-size: 600px auto;
    }

    /* Homepage hero mobile fixes */
    .cards.full-width .card.homepage-hero {
        flex-direction: column !important;
    }

    .cards.full-width .card.homepage-hero .content-block {
        position: static !important;
        z-index: auto !important;
        background: transparent !important;
        padding: 15px 10px !important;
        width: 100% !important;
        max-width: none !important;
    }

    .cards.full-width .card.homepage-hero .entry-content {
        width: 100% !important;
        overflow: visible !important;
        display: block !important;
    }

    .cards.full-width .card.homepage-hero .entry-content p {
        margin-bottom: 1.5rem !important;
        line-height: 1.6 !important;
        width: 100% !important;
        display: block !important;
    }

    .cards.full-width .card.homepage-hero .btn-group {
        width: 100% !important;
        justify-content: center !important;
        margin-top: 1rem !important;
        display: flex !important;
        flex-direction: column;
        align-items: center;
    }

    /* Reset homepage hero video positioning for mobile */
    .cards.full-width .card.homepage-hero .feature-image {
        position: static !important;
        transform: none !important;
        width: 175% !important;
        height: auto !important;
        max-height: 400px !important;
        object-fit: contain !important;
        margin-bottom: 20px !important;
        top: auto !important;
        left: auto !important;
        z-index: auto !important;
        opacity: 1 !important;
        border-radius: 8px;
        margin-left: 5% !important; /* Center the oversized video */
    }

    /* Ensure the homepage hero card container can accommodate larger video */
    .cards.full-width .card.homepage-hero {
        flex-direction: column !important;
        overflow: visible !important; /* Allow video to extend beyond card boundaries */
        padding: 32px 0 !important; /* Reduce horizontal padding to give more space */
    }

    /* Header adjustments */
    .homepage header {
        background-color: transparent;
        backdrop-filter: none;
        border-radius: 25px;
        padding: 8px 16px;
    }

    .heading-wrapper.pb-9.about-page {
        margin-left: 0;
        text-align: center;
        flex-direction: column;
    }

    /* Button group mobile styling */
    .btn-group {
        justify-content: center;
        display: flex;
        gap: 12px;
        align-items: center;
        flex-direction: column;
        width: 100%;
    }

    .btn-group .btn {
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* Ensure images are fully visible without zooming */
    .cards.full-width .card .feature-image {
        transform: none;
        transition: transform 0.3s ease;
        border-radius: 8px;
    }

    .cards.full-width .card:nth-child(2) .feature-image,
    .cards.full-width .card:nth-child(3) .feature-image {
        transform: none;
    }

    /* Background image mobile adjustments */
    .background-image.feature-image {
        position: absolute;
        top: auto;
        bottom: 0;
        left: 0;
        width: 100%;
        height: auto;
        max-height: 60vh;
        z-index: -1;
        opacity: 0.3;
        transform: none;
        object-fit: contain;
    }

    .height-100vh.header-wrapper::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(24, 24, 26, 0.8);
        z-index: -1;
    }

    /* Footer mobile styles */
    .footer-container {
        padding: 0 1rem;
    }

    .footer-left {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .footer-company-logo {
        height: 80px;
    }

    .footer-content {
        margin-bottom: 1rem;
    }

    .tos-custom-header {
        padding: 1.5rem 1rem 0.5rem 1rem;
    }
    
    .tos-custom-header h1 {
        font-size: 2rem;
    }
    
    .tos-custom-content {
        padding: 0 1rem;
    }
    
    .tos-section {
        margin-bottom: 1rem !important;
    }
    
    .tos-section h2 {
        font-size: 1.3rem !important;
    }
}
