/* ====================================================
   REUSABLE CATEGORY HERO SECTION STYLES
   (Used by /tryout, /ecourse, and other catalog pages)
   ==================================================== */

.category-hero-section,
#ecourse-hero {
    position: relative;
    width: 100%;
    background-color: #f4f9ff;
    padding: 0 0 60px 0;
    overflow: hidden;
}

/* Top Yellow Textured Banner */
.category-hero-banner,
.ecourse-hero-banner {
    position: relative;
    width: 100%;
    height: 320px;
    background: linear-gradient(145deg, #FFC800 0%, #FFB400 45%, #FFA000 100%);
    overflow: hidden;
    z-index: 1;
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px;
}

.category-hero-shapes,
.ecourse-hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Left Soft Organic Curve (matches reference texture) */
.category-shape-arc-left,
.ecourse-shape-arc-left {
    position: absolute;
    top: -120px;
    left: -80px;
    width: 560px;
    height: 440px;
    border-radius: 45% 55% 65% 35% / 40% 60% 40% 60%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0.22) 50%, rgba(255, 255, 255, 0) 75%);
    filter: blur(1px);
}

/* Right Soft Curve Wave (matches reference texture) */
.category-shape-arc-right,
.ecourse-shape-arc-right {
    position: absolute;
    top: -40px;
    right: -80px;
    width: 600px;
    height: 420px;
    border-radius: 60% 40% 50% 50% / 50% 40% 60% 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.38) 0%, rgba(255, 255, 255, 0.16) 55%, rgba(255, 255, 255, 0) 75%);
    filter: blur(2px);
}

/* Center Glow */
.category-shape-glow,
.ecourse-shape-glow {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 760px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 70%);
}

/* Dot Pattern Texture Accent Left */
.category-dots-accent-left,
.ecourse-dots-accent-left {
    position: absolute;
    top: 30px;
    left: 35px;
    width: 100px;
    height: 100px;
    background-image: radial-gradient(rgba(255, 255, 255, 0.45) 2px, transparent 2px);
    background-size: 14px 14px;
    opacity: 0.85;
}

/* Dot Pattern Texture Accent Right */
.category-dots-accent-right,
.ecourse-dots-accent-right {
    position: absolute;
    top: 35px;
    right: 40px;
    width: 100px;
    height: 100px;
    background-image: radial-gradient(rgba(255, 255, 255, 0.45) 2px, transparent 2px);
    background-size: 14px 14px;
    opacity: 0.8;
}

/* Overlapping Card Container */
.category-card-container,
.ecourse-card-container {
    margin-top: -170px;
    position: relative;
    z-index: 10;
}

/* Overlapping White Options Card */
.category-options-card,
.ecourse-options-card {
    position: relative;
    background-color: #ffffff;
    border-radius: 24px !important;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.08) !important;
    padding: 30px 36px 26px 36px;
    min-height: 260px;
    display: flex;
    flex-direction: column;
}

.category-card-header,
.ecourse-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-shrink: 0;
}

.category-card-icon,
.ecourse-card-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
    flex-shrink: 0;
}

.category-card-title,
.ecourse-card-title {
    font-family: 'Mont', 'Montserrat', 'Poppins', sans-serif !important;
    font-size: 21px;
    font-weight: 800;
    color: #111827;
    margin: 0;
    letter-spacing: -0.2px;
}

/* Desktop Items Grid */
.category-items-container,
.ecourse-items-container {
    width: 100%;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.category-empty-state {
    min-height: 140px;
    width: 100%;
}

.category-item-card,
.ecourse-item-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-decoration: none !important;
    transition: transform 0.25s ease;
    padding: 8px 6px;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.category-item-card:hover,
.ecourse-item-card:hover {
    transform: translateY(-5px);
}

.category-badge-wrapper,
.ecourse-badge-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 160px;
    height: 130px;
}

.category-badge-img,
.ecourse-badge-img {
    max-width: 145px;
    max-height: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.08));
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.category-item-card:hover .category-badge-img,
.ecourse-item-card:hover .ecourse-badge-img {
    transform: scale(1.05);
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.12));
}

.category-item-label,
.ecourse-item-label {
    font-family: 'Mont', 'Montserrat', 'Poppins', sans-serif !important;
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.35;
    color: #1f2937 !important;
    margin-top: 12px;
    margin-bottom: 0;
    text-align: center;
}

/* Static Carousel Dots */
.category-carousel-dots,
.ecourse-carousel-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 26px;
    margin-bottom: 0;
}

.category-carousel-dots .dot,
.ecourse-carousel-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #cbd5e1;
    border: none;
    padding: 0;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
}

.category-carousel-dots .dot.active,
.ecourse-carousel-dots .dot.active {
    width: 22px;
    border-radius: 10px;
    background-color: #94a3b8;
}

/* ====================================================
   HERO CATEGORY PEEK CAROUSEL (MOBILE & TABLET)
   - Mobile (< 768px): 2 items per slide
   - Tablet (768px - 991.98px): 3 items per slide
   ==================================================== */

.hero-category-carousel {
    position: relative;
    width: 100%;
}

.hero-category-carousel .peek-carousel-viewport {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding-top: 6px;
    padding-bottom: 6px;
}

.hero-category-carousel .peek-carousel-track {
    display: flex;
    gap: 0px;
    width: 100%;
    will-change: transform;
}

/* Desktop default (>= 992px): 5 items per slide (20% each) */
.hero-category-carousel .hero-slide {
    flex: 0 0 20%;
    width: 20%;
    box-sizing: border-box;
    padding: 0 8px;
    display: flex;
    justify-content: center;
}

.hero-category-carousel .hero-slide.hero-slide-centered {
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: 220px !important;
    min-width: 170px !important;
}

.hero-category-carousel .peek-carousel-track.justify-content-center {
    justify-content: center !important;
    width: 100% !important;
    transform: none !important;
}

.hero-category-carousel .hero-item-main {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.hero-category-carousel .category-badge-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 160px;
    height: 125px;
    margin: 0 auto;
}

.hero-category-carousel .category-badge-img {
    max-width: 140px;
    max-height: 115px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.08));
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-category-carousel .category-item-card:hover .category-badge-img {
    transform: scale(1.05);
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.12));
}

.hero-category-carousel .category-item-label {
    font-family: 'Mont', 'Montserrat', 'Poppins', sans-serif !important;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    color: #1f2937 !important;
    margin-top: 10px;
    margin-bottom: 0;
    text-align: center;
    min-height: 38px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

/* Hero Carousel Controls & Indicators Base */
.category-card-footer.peek-carousel-controls,
.hero-category-carousel .peek-carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 18px !important;
    margin-bottom: 2px !important;
    padding: 0 !important;
    border: none !important;
    border-top: none !important;
    box-shadow: none !important;
    position: relative;
    z-index: 5;
    width: 100%;
}

@media (min-width: 992px) {
    .category-card-footer.peek-carousel-controls,
    .hero-category-carousel .peek-carousel-controls {
        margin-top: 30px !important;
    }
}

/* Tablet view (768px - 991.98px): 3 items per slide */
@media (min-width: 768px) and (max-width: 991.98px) {
    .category-card-header,
    .ecourse-card-header {
        margin-bottom: 14px !important;
    }
    .hero-category-carousel .hero-slide {
        flex: 0 0 33.333% !important;
        width: 33.333% !important;
        padding: 0 10px !important;
    }
    .hero-category-carousel .hero-slide.hero-slide-centered {
        flex: 0 0 auto !important;
        width: auto !important;
        max-width: 220px !important;
        min-width: 170px !important;
    }
    .hero-category-carousel .category-badge-wrapper {
        max-width: 145px !important;
        height: 110px !important;
    }
    .hero-category-carousel .category-badge-img {
        max-width: 130px !important;
        max-height: 100px !important;
    }
    .hero-category-carousel .category-item-label {
        font-size: 13.5px !important;
        min-height: 36px;
    }
    .category-card-footer.peek-carousel-controls,
    .hero-category-carousel .peek-carousel-controls {
        margin-top: 24px !important;
    }
}

/* Mobile view (< 768px): 2 items per slide */
@media (max-width: 767.98px) {
    .category-card-header,
    .ecourse-card-header {
        margin-bottom: 12px !important;
    }
    .hero-category-carousel .hero-slide {
        flex: 0 0 50% !important;
        width: 50% !important;
        padding: 0 6px !important;
    }
    .hero-category-carousel .hero-slide.hero-slide-centered {
        flex: 0 0 auto !important;
        width: auto !important;
        max-width: 170px !important;
        min-width: 130px !important;
    }
    .hero-category-carousel .category-badge-wrapper {
        max-width: 120px !important;
        height: 95px !important;
    }
    .hero-category-carousel .category-badge-img {
        max-width: 105px !important;
        max-height: 85px !important;
    }
    .hero-category-carousel .category-item-label {
        font-size: 12.5px !important;
    }
    .category-card-footer.peek-carousel-controls,
    .hero-category-carousel .peek-carousel-controls {
        margin-top: 22px !important;
    }
}

/* Small Mobile (< 576px) */
@media (max-width: 575.98px) {
    .category-card-header,
    .ecourse-card-header {
        margin-bottom: 10px !important;
    }
    .hero-category-carousel .category-badge-wrapper {
        max-width: 105px !important;
        height: 85px !important;
    }
    .hero-category-carousel .category-badge-img {
        max-width: 95px !important;
        max-height: 75px !important;
    }
    .hero-category-carousel .category-item-label {
        font-size: 12px !important;
    }
    .category-card-footer.peek-carousel-controls,
    .hero-category-carousel .peek-carousel-controls {
        margin-top: 20px !important;
    }
}

.hero-category-carousel .carousel-btn {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 50%;
    background-color: #00A99D;
    color: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 169, 157, 0.25);
    font-size: 13px;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
    position: static !important;
}

.hero-category-carousel .carousel-btn:hover {
    background-color: #00877D;
    transform: scale(1.08);
}

.hero-category-carousel .custom-carousel-indicators {
    position: static !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 6px !important;
    width: auto !important;
}

.hero-category-carousel .custom-carousel-indicators button {
    width: 8px !important;
    height: 8px !important;
    min-width: 8px !important;
    min-height: 8px !important;
    border-radius: 50% !important;
    background-color: #CBD5E1 !important;
    border: none !important;
    outline: none !important;
    opacity: 0.7 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    padding: 0 !important;
    margin: 0 3px !important;
    cursor: pointer !important;
    display: inline-block !important;
    box-sizing: border-box !important;
}

.hero-category-carousel .custom-carousel-indicators button.active {
    width: 24px !important;
    height: 8px !important;
    border-radius: 10px !important;
    background-color: #00A99D !important;
    opacity: 1 !important;
}

/* Responsive Breakpoints */
@media (max-width: 991.98px) {
    .category-hero-section,
    #ecourse-hero {
        padding: 0 0 45px 0;
    }

    .category-hero-banner,
    .ecourse-hero-banner {
        height: 270px;
        border-bottom-left-radius: 40px;
        border-bottom-right-radius: 40px;
    }

    .category-card-container,
    .ecourse-card-container {
        margin-top: -150px;
    }

    .category-options-card,
    .ecourse-options-card {
        padding: 24px 20px 20px 20px;
        border-radius: 20px !important;
        min-height: 220px;
    }

    .category-empty-state {
        min-height: 120px;
    }

    .category-card-title,
    .ecourse-card-title {
        font-size: 18px;
    }

    .category-card-icon,
    .ecourse-card-icon {
        width: 32px;
        height: 32px;
    }

    .category-badge-wrapper,
    .ecourse-badge-wrapper {
        max-width: 130px;
        height: 110px;
    }

    .category-badge-img,
    .ecourse-badge-img {
        max-width: 115px;
        max-height: 100px;
    }

    .category-item-label,
    .ecourse-item-label {
        font-size: 13px;
        margin-top: 8px;
    }
}

@media (max-width: 767.98px) {
    .category-hero-banner,
    .ecourse-hero-banner {
        height: 230px;
        border-bottom-left-radius: 30px;
        border-bottom-right-radius: 30px;
    }

    .category-card-container,
    .ecourse-card-container {
        margin-top: -130px;
    }

    .category-options-card,
    .ecourse-options-card {
        min-height: 200px;
    }

    .category-empty-state {
        min-height: 110px;
    }
}

@media (max-width: 575.98px) {
    .category-hero-section,
    #ecourse-hero {
        padding: 0 0 35px 0;
    }

    .category-hero-banner,
    .ecourse-hero-banner {
        height: 210px;
        border-bottom-left-radius: 24px;
        border-bottom-right-radius: 24px;
    }

    .category-card-container,
    .ecourse-card-container {
        margin-top: -120px;
    }

    .category-options-card,
    .ecourse-options-card {
        padding: 16px 12px 14px 12px;
        border-radius: 18px !important;
        min-height: 180px;
    }

    .category-empty-state {
        min-height: 95px;
    }

    .category-card-title,
    .ecourse-card-title {
        font-size: 16px;
    }

    .category-card-icon,
    .ecourse-card-icon {
        width: 28px;
        height: 28px;
    }

    .category-badge-wrapper,
    .ecourse-badge-wrapper {
        max-width: 115px;
        height: 95px;
    }

    .category-badge-img,
    .ecourse-badge-img {
        max-width: 100px;
        max-height: 85px;
    }

    .category-item-label,
    .ecourse-item-label {
        font-size: 12px;
        margin-top: 6px;
    }

    .category-dots-accent-right,
    .ecourse-dots-accent-right {
        display: none;
    }
}
