/*
 * ROSHY Categories Page
 * Scoped to .roshy-categories.
 */

.roshy-categories {
    width: 100%;
    max-width: 1420px;
    margin: 0 auto;
    padding: 42px 20px 64px;
}

.roshy-categories__header {
    margin-bottom: 38px;
}

.roshy-categories__title {
    margin: 0 0 24px;
    font-size: 32px;
    line-height: 1.15;
    font-weight: 700;
}

.roshy-categories__search {
    display: block;
    width: 100%;
    min-height: 50px;
    padding: 0 18px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 6px;
    background: rgba(255,255,255,.045);
    color: inherit;
    font: inherit;
    outline: none;
    box-sizing: border-box;
}

.roshy-categories__search::placeholder {
    color: rgba(255,255,255,.52);
}

.roshy-categories__search:focus {
    border-color: rgba(255,255,255,.30);
}

.roshy-categories__featured {
    margin-bottom: 52px;
}

.roshy-categories__section-title {
    margin: 0 0 22px;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 700;
    text-transform: uppercase;
}

.roshy-categories__featured-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.roshy-categories__featured-card {
    display: block;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.roshy-categories__featured-media {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 6px;
    background: rgba(255,255,255,.055);
}

.roshy-categories__featured-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .2s ease;
}

.roshy-categories__featured-card:hover
.roshy-categories__featured-image {
    transform: scale(1.025);
}

.roshy-categories__featured-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,.07),
            rgba(255,255,255,.025)
        );
}

.roshy-categories__featured-meta {
    display: block;
    padding-top: 11px;
}

.roshy-categories__featured-name {
    display: block;
    overflow: hidden;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.roshy-categories__featured-count {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    line-height: 1.35;
    opacity: .62;
}

.roshy-categories__directory-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 36px 44px;
    align-items: start;
}

.roshy-categories__letter-group {
    min-width: 0;
}

.roshy-categories__letter {
    margin: 0 0 8px;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 700;
}

.roshy-categories__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.roshy-categories__item {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid rgba(255,255,255,.07);
}

.roshy-categories__link {
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    min-height: 38px;
    color: inherit;
    text-decoration: none;
}

.roshy-categories__name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.roshy-categories__count {
    flex: 0 0 auto;
    font-size: 12px;
    opacity: .52;
}

.roshy-categories__empty {
    margin: 22px 0 0;
    opacity: .7;
}

.roshy-categories [hidden] {
    display: none !important;
}

@media (max-width: 1100px) {
    .roshy-categories__featured-grid,
    .roshy-categories__directory-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .roshy-categories {
        padding: 28px 15px 44px;
    }

    .roshy-categories__header {
        margin-bottom: 30px;
    }

    .roshy-categories__title {
        margin-bottom: 18px;
        font-size: 27px;
    }

    .roshy-categories__featured {
        margin-bottom: 40px;
    }

    .roshy-categories__featured-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px 12px;
    }

    .roshy-categories__directory-grid {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .roshy-categories__featured-name {
        font-size: 14px;
    }

    .roshy-categories__section-title {
        font-size: 16px;
    }
}

/* =====================================================================
 * ROSHY Categories C4B
 * Align live page with approved Concept B mockup.
 * ================================================================== */

/* Avoid a duplicate native theme page title. */
.page-id-36240 .single-page-title {
    display: none !important;
}

/* Main Categories heading */
.roshy-categories__title {
    display: block;
    margin: 0 0 24px;
    color: #f3f3f3;
    font-size: 32px;
    line-height: 1.15;
    font-weight: 700;
    text-transform: uppercase;
}

/* Featured cards use landscape video-style thumbnails. */
.roshy-categories__featured-card {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 7px;
    background: rgba(255,255,255,.045);
    color: #fff !important;
    text-decoration: none !important;
}

.roshy-categories__featured-card:visited,
.roshy-categories__featured-card:hover,
.roshy-categories__featured-card:focus {
    color: #fff !important;
    text-decoration: none !important;
}

.roshy-categories__featured-media {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 7px;
    background: rgba(255,255,255,.055);
}

.roshy-categories__featured-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Category name/count overlay INSIDE the thumbnail. */
.roshy-categories__featured-meta {
    position: absolute;
    z-index: 2;
    right: 10px;
    bottom: 10px;
    left: 10px;

    display: block;
    padding: 10px 12px;

    border-radius: 6px;
    background: rgba(12,14,17,.91);

    pointer-events: none;
}

.roshy-categories__featured-name {
    display: block;
    overflow: hidden;

    color: #f5f5f5 !important;

    font-size: 16px;
    line-height: 1.3;
    font-weight: 600;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.roshy-categories__featured-count {
    display: block;
    margin-top: 3px;

    color: #a9afb8 !important;

    font-size: 12px;
    line-height: 1.3;

    opacity: 1;
}

/* Override theme/visited-link orange states in the directory. */
.roshy-categories__link,
.roshy-categories__link:visited {
    color: #d8dbe0 !important;
    text-decoration: none !important;
}

.roshy-categories__link:hover,
.roshy-categories__link:focus {
    color: #ffffff !important;
    text-decoration: none !important;
}

.roshy-categories__name {
    color: inherit !important;
}

.roshy-categories__count {
    color: #8e949d !important;
    opacity: 1;
}

@media (max-width: 767px) {
    .roshy-categories__title {
        margin-bottom: 18px;
        font-size: 27px;
    }

    .roshy-categories__featured-meta {
        right: 7px;
        bottom: 7px;
        left: 7px;
        padding: 8px 9px;
    }

    .roshy-categories__featured-name {
        font-size: 14px;
    }

    .roshy-categories__featured-count {
        font-size: 11px;
    }
}
