.apps-section {
    padding: 2rem 0 2rem 0;
    background-color: var(--color-bg-white);
    border-top: none;
    border-bottom: none;
}

.apps-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.apps-header {
    text-align: center;
    margin-bottom: 4rem;
}

.apps-header h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--color-bg-dark);
    margin-bottom: 1rem;
}

.apps-header p {
    font-size: 1.15rem;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.apps-carousel-wrapper {
    position: relative;
    width: 100%;
}

.apps-nav-btn {
    display: none;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.app-card {
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.app-image {
    width: 280px;
    max-width: 100%;
    height: 280px;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    margin-bottom: 0;
}

.app-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.app-content {
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.app-badge {
    width: 40px;
    height: 40px;
    background-color: var(--color-brand-yellow);
    color: var(--color-bg-dark);
    font-weight: 800;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(255,194,68,0.4);
    margin-top: -35px;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.app-content h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--color-bg-dark);
}

.app-content p {
    font-size: 1rem;
    color: var(--color-text-gray);
    line-height: 1.6;
    margin-bottom: 2rem;
    flex: 1;
    max-width: 300px;
}

.app-content .btn {
    padding: 12px 30px;
    font-weight: 700;
    background-color: var(--color-bg-dark);
    color: var(--color-fg-light);
    border: 2px solid var(--color-bg-dark);
    border-radius: 30px;
    text-decoration: none;
}

@media (max-width: 1024px) {
    .apps-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .app-image {
        width: 200px;
        height: 200px;
    }

    .app-content h3 {
        font-size: 1.1rem;
    }

    .app-content p {
        font-size: 0.9rem;
    }

    .app-content .btn {
        padding: 10px 24px;
        font-size: 0.9rem;
    }
}

@media (max-width: 479px) {
    .apps-grid {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 1.5rem;
        padding: 0 24px 1rem 24px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .apps-grid::-webkit-scrollbar {
        display: none;
    }

    .app-card {
        flex: 0 0 100%;
        scroll-snap-align: center;
    }

    .app-image {
        width: 200px;
        height: 200px;
    }

    .app-content h3 {
        font-size: 1rem;
    }

    .app-content p {
        font-size: 0.85rem;
    }

    .app-content .btn {
        padding: 10px 24px;
        font-size: 0.85rem;
    }

    .apps-nav-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background-color: var(--color-bg-dark);
        color: var(--color-brand-yellow);
        border: none;
        cursor: pointer;
        z-index: 10;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        -webkit-tap-highlight-color: transparent;
    }

    .apps-nav-btn svg {
        width: 20px;
        height: 20px;
    }

    .apps-nav-btn:focus {
        outline: none;
    }

    .apps-nav-btn:focus-visible {
        outline: 2px solid var(--color-brand-yellow);
        outline-offset: 3px;
        border-radius: 50%;
    }

    .prev-btn {
        left: 0;
    }

    .next-btn {
        right: 0;
    }
}
