/* =============================================================
   HOME PAGE — PORTFOLIO CATEGORIES SLIDER (FULL SCREEN EDGE-TO-EDGE)
   Fixed Nav Button Overlap Bug & Card Text Truncation
   ============================================================= */

.home-cat-section {
    padding-top: 15px !important;
    padding-bottom: 25px !important;
    position: relative;
    overflow: hidden;
    background: #000000 !important;
}

/* OVERRIDE SEC-INNER 1200PX MAX-WIDTH CONSTRAINT TO GO FULL SCREEN WIDTH */
.home-cat-section .sec-inner {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.home-cat-header {
    text-align: center;
    margin-bottom: 15px;
    padding: 0 20px;
}

.home-cat-header .sec-label {
    margin-bottom: 6px;
    justify-content: center;
}

.home-cat-header .sec-title {
    font-size: clamp(28px, 3vw, 42px) !important;
    margin-bottom: 6px !important;
}

.home-cat-header .sec-subtitle {
    margin: 0 auto 10px !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    color: rgba(255, 255, 255, 0.6) !important;
}

/* 98% Viewport Width Slider Container (Stretches edge-to-edge across entire screen) */
.home-cat-slider-wrapper {
    position: relative;
    width: 98% !important;
    max-width: 100% !important;
    margin: 0 auto;
    padding: 0 70px; /* 70px side padding keeps nav buttons outside viewport cards */
    box-sizing: border-box;
}

.home-cat-viewport {
    width: 100%;
    overflow: hidden;
    border-radius: 20px;
    touch-action: pan-y;
    padding: 40px 0; /* Plenty of room for scale(1.22) center card */
}

.home-cat-track {
    display: flex;
    gap: 20px;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
    align-items: center;
}

/* 5 CARDS IN VIEWPORT LAYOUT */
.home-cat-card-wrapper {
    flex: 0 0 calc((100% - 80px) / 5);
    min-width: 0;
    box-sizing: border-box;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease, filter 0.5s ease;
    display: flex;
    justify-content: center;
    cursor: pointer;
}

/* 1. Center Active Card: BIGGEST, SHARPEST, BOLD GLOWING FOCUS */
.home-cat-card-wrapper.is-center {
    opacity: 1;
    filter: blur(0px);
    transform: scale(1.22);
    z-index: 10;
}

/* 2. Next Near Cards (2nd and 4th visible cards): Little Big */
.home-cat-card-wrapper.is-near {
    opacity: 0.88;
    filter: blur(0px);
    transform: scale(0.95);
    z-index: 5;
}

/* 3. Outer Edge Cards (1st and 5th visible cards): Small */
.home-cat-card-wrapper.is-edge {
    opacity: 0.55;
    filter: blur(1px);
    transform: scale(0.78);
    z-index: 2;
}

/* 4. Far Cards (Outside visible window) */
.home-cat-card-wrapper.is-far {
    opacity: 0.15;
    filter: blur(3px);
    transform: scale(0.62);
    z-index: 1;
}

.home-cat-card-wrapper:hover {
    z-index: 12 !important;
}

/* Interactive Hover Enhancements */
.home-cat-card-wrapper.is-near:hover {
    opacity: 0.98;
    filter: blur(0px);
    transform: scale(0.98);
}

.home-cat-card-wrapper.is-edge:hover {
    opacity: 0.82;
    filter: blur(0px);
    transform: scale(0.82);
}

/* Category Card Design — Taller, Premium Proportions */
.home-cat-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: rgba(14, 13, 18, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.home-cat-card-wrapper.is-center .home-cat-card {
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.95);
}

.home-cat-card-wrapper.is-center .home-cat-arrow-btn {
    background: #ff6814;
    border-color: #ff6814;
    color: #ffffff;
    transform: rotate(45deg);
}

.home-cat-card:hover {
    border-color: rgba(255, 104, 20, 0.85);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.95);
}

.home-cat-thumb-box {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10.5;
    overflow: hidden;
    background: #0d0c10;
}

.home-cat-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.home-cat-card:hover .home-cat-thumb-img {
    transform: scale(1.08);
}

.home-cat-arrow-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(12, 11, 16, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease, color 0.3s ease;
    z-index: 2;
}

.home-cat-card:hover .home-cat-arrow-btn {
    background: #ff6814;
    border-color: #ff6814;
    color: #ffffff;
    transform: rotate(45deg);
}

.home-cat-content {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(18, 16, 22, 0.96);
    flex-grow: 1;
}

.home-cat-name {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.3px;
    margin: 0;
    line-height: 1.25;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 36px;
}

/* Nav Prev/Next Buttons — Placed outside viewport cards */
.home-cat-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(14, 13, 18, 0.94);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 104, 20, 0.6);
    color: #ff6814;
    font-size: 17px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 30;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.8);
}

.home-cat-nav-btn:hover {
    background: #ff6814;
    color: #ffffff;
    border-color: #ff6814;
    transform: translateY(-50%) scale(1.1);
}

.home-cat-nav-btn.prev-btn {
    left: 10px;
}

.home-cat-nav-btn.next-btn {
    right: 10px;
}

/* RESPONSIVE MEDIA QUERIES */
@media (max-width: 1400px) {
    .home-cat-slider-wrapper {
        width: 98% !important;
        padding: 0 60px;
    }
    .home-cat-track {
        gap: 16px;
    }
    .home-cat-card-wrapper {
        flex: 0 0 calc((100% - 64px) / 5);
    }
    .home-cat-name {
        font-size: 13px;
        min-height: 32px;
    }
    .home-cat-nav-btn.prev-btn {
        left: 6px;
    }
    .home-cat-nav-btn.next-btn {
        right: 6px;
    }
}

@media (max-width: 1024px) {
    .home-cat-slider-wrapper {
        width: 100% !important;
        padding: 0 50px;
    }
    .home-cat-track {
        gap: 14px;
    }
    .home-cat-card-wrapper {
        flex: 0 0 calc((100% - 56px) / 5);
    }
    .home-cat-card-wrapper.is-center {
        transform: scale(1.15);
    }
    .home-cat-card-wrapper.is-near {
        transform: scale(0.92);
    }
    .home-cat-card-wrapper.is-edge {
        transform: scale(0.76);
    }
    .home-cat-nav-btn.prev-btn {
        left: 4px;
    }
    .home-cat-nav-btn.next-btn {
        right: 4px;
    }
}

@media (max-width: 768px) {
    .home-cat-slider-wrapper {
        width: 100% !important;
        padding: 0 10px !important;
    }
    .home-cat-viewport {
        padding: 20px 0 !important;
        border-radius: 16px;
    }
    .home-cat-track {
        gap: 16px !important;
    }
    .home-cat-card-wrapper {
        flex: 0 0 82% !important;
        max-width: 82% !important;
        opacity: 0.45;
        filter: blur(1.5px);
        transform: scale(0.88);
        transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease, filter 0.5s ease;
    }
    .home-cat-card-wrapper.is-center {
        opacity: 1 !important;
        filter: blur(0px) !important;
        transform: scale(1.04) !important;
        z-index: 10 !important;
    }
    .home-cat-card {
        border-radius: 16px;
    }
    .home-cat-thumb-box {
        aspect-ratio: 16 / 10;
    }
    .home-cat-content {
        padding: 14px 16px;
    }
    .home-cat-name {
        font-size: 16px !important;
        min-height: auto !important;
    }
    .home-cat-nav-btn {
        display: flex !important;
        width: 42px !important;
        height: 42px !important;
        font-size: 16px !important;
        background: rgba(14, 13, 18, 0.92) !important;
        border: 1px solid rgba(255, 104, 20, 0.6) !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.8) !important;
        z-index: 30 !important;
    }
    .home-cat-nav-btn.prev-btn {
        left: 2px !important;
    }
    .home-cat-nav-btn.next-btn {
        right: 2px !important;
    }
}

/* Home Category Cards Interaction Refinements */
.home-cat-card,
.home-cat-card-wrapper,
.home-cat-thumb-box,
.home-cat-thumb-img {
    -webkit-tap-highlight-color: transparent !important;
    -webkit-touch-callout: none !important;
    -webkit-user-drag: none !important;
    user-select: none !important;
    -webkit-user-select: none !important;
}

.home-cat-thumb-box {
    overflow: hidden !important;
    position: relative;
    border-radius: 18px 18px 0 0;
}

.home-cat-card {
    outline: none !important;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.home-cat-card:focus:not(:focus-visible) {
    outline: none !important;
    box-shadow: none !important;
}

.home-cat-card:focus-visible {
    outline: 2px solid rgba(255, 170, 0, 0.85) !important;
    outline-offset: 4px !important;
}

.home-cat-card:active {
    transform: scale(0.985) !important;
    transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

