/* Modern Grid Layout & Components */
.content-wrapper {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.category-card {
    background: #FFFFFF;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.08);
    height: auto;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
}

.hover-shadow:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.image-wrapper {
    position: relative;
    padding-top: 80%;
    width: 100%;
}

.category-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-content {
    padding: 0.75rem;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 20%;
}

.category-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1A202C;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    line-height: 1.4;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-card {
    animation: fadeIn 0.3s ease-out;
}




/* Swiper Styles */
.carousel-container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    overflow: hidden;
}

.category-carousel {
    width: 100%;
    padding: 0.2rem 0;
    box-sizing: border-box;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    box-sizing: border-box;
}

.swiper-button-next,
.swiper-button-prev {
    color: #0F1729;
}

.carousel-instructions {
    font-size: 1rem;
    color: #6c757d;
}

.instruction-icon {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-inline-end: 4px;
}

/* Business Card Carousel */
.biz-card-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 24px;
    background: #f5f5f5;
}

.biz-carousel-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
    position: relative;
    width: 100%;
    min-height: 200px;
}

.biz-carousel-item {
    min-width: 100%;
    flex: 0 0 auto;
    display: none;
    position: relative;
    text-align: center;
}

.biz-carousel-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 100%);
    border-radius: 0 0 24px 24px;
    pointer-events: none;
}

.biz-carousel-item.active {
    display: block;
}

.biz-carousel-img {
    width: auto;
    height: 100%;
    max-height: 450px;
    max-width: 100vw;
    display: inline-block;
    background: transparent;
    border-radius: 24px;
}

.biz-carousel-prev,
.biz-carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.biz-carousel-prev {
    left: 20px;
}

.biz-carousel-next {
    right: 20px;
}

.biz-carousel-prev:hover,
.biz-carousel-next:hover {
    background: rgba(0, 0, 0, 0.7);
}

.biz-carousel-prev-icon,
.biz-carousel-next-icon {
    width: 24px;
    height: 24px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.biz-carousel-prev-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='15 18 9 12 15 6'%3E%3C/polyline%3E%3C/svg%3E");
}

.biz-carousel-next-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'%3E%3C/polyline%3E%3C/svg%3E");
}

.biz-carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 1;
}

.biz-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.biz-carousel-dot.active {
    background: white;
    transform: scale(1.2);
}

@media (max-width: 1024px) {
    .category-card {
        height: auto;
        max-width: 260px;
    }
}

@media (max-width: 768px) {
    .content-wrapper {
        padding: 0 1rem;
    }

    .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 1rem;
        margin-top: 2rem;
    }

    .category-card {
        height: auto;
        max-width: 230px;
    }

    .category-title {
        font-size: 1rem;
    }

    .image-wrapper {
        padding-top: 80%;
    }

    .carousel-container {
        width: 100%;
        padding: 0.5rem;
    }

    .carousel-instructions {
        font-size: 0.9rem;
    }

    .instruction-icon {
        width: 14px;
        height: 14px;
    }
    
    
    
    
    
    
    
    .biz-carousel-container {
    min-height: 100px;
}

.biz-carousel-img {
    display: flex;
    justify-content: center;
    align-items: center;
    max-height: 200px;
    width: 100%;
   overflow: hidden;
}

.biz-carousel-img img {
    max-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* iPhone X/11/12/13 Mini (375px) */
@media screen and (min-width: 375px) {
    .biz-carousel-container {
        min-height: 120px;
    }
    
    .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }
    
    .category-card {
        height: 180px;
    }
}

/* iPhone 12/13/14/15 Pro (390px) */
@media screen and (min-width: 390px) {
    .biz-carousel-container {
        min-height: 130px;
    }
    
    .biz-carousel-img {
        max-height: 220px;
    }
}

/* iPhone 12/13/14/15 Pro Max (428px) */
@media screen and (min-width: 428px) {
    .biz-carousel-container {
        min-height: 150px;
    }
    
    .biz-carousel-img {
        max-height: 250px;
    }
    
    .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
    
    .category-card {
        height: 200px;
    }
}

.biz-carousel-prev,
.biz-carousel-next {
    width: 36px;
    height: 36px;
}

.biz-carousel-prev {
    left: 10px;
}

.biz-carousel-next {
    right: 10px;
}

.biz-carousel-prev-icon,
.biz-carousel-next-icon {
    width: 20px;
    height: 20px;
}

.biz-carousel-dots {
    bottom: 10px;
}

.biz-carousel-dot {
    width: 8px;
    height: 8px;
}

.category-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
}

.category-card {
    height: auto;
    max-width: 100%;
}

.category-title {
    font-size: 0.9rem;
    -webkit-line-clamp: 2;
}

.image-wrapper {
    padding-top: 80%;
}

.category-content {
    padding: 0.75rem;
}

.carousel-container {
    width: 100%;
    padding: 0.5rem;
}