/* ═══════════════════════════════════════════════════════ */
/* CATEGORIES DETAIL PAGE — MoroccoTales Edition          */
/* Version: 2.0 — Modern + Justified Typography           */
/* ═══════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════ */
/* 1) CATEGORY HERO                                       */
/* ═══════════════════════════════════════════════════════ */
.cat-hero {
    position: relative;
    min-height: 480px;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #fff;
    padding: 80px 0 60px;
    isolation: isolate;
}

/* ─── Background ─── */
.cat-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.cat-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.05);
    animation: catHeroKenBurns 25s ease-in-out infinite alternate;
}

@keyframes catHeroKenBurns {
    from { transform: scale(1.05); }
    to   { transform: scale(1.15); }
}

.cat-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(13,27,42,.55) 0%,
        rgba(13,27,42,.70) 40%,
        rgba(13,27,42,.88) 100%
    );
    z-index: 1;
}

.cat-hero__pattern {
    position: absolute;
    inset: 0;
    z-index: 2;
    background-image:
        radial-gradient(circle at 15% 30%, rgba(224,122,63,.18) 0%, transparent 40%),
        radial-gradient(circle at 85% 70%, rgba(212,165,116,.15) 0%, transparent 40%);
    pointer-events: none;
}

/* ─── Inner ─── */
.cat-hero__inner {
    position: relative;
    z-index: 3;
    width: 100%;
}

/* ─── Breadcrumb ─── */
.cat-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 100px;
    padding: 6px 14px;
    font-size: 11px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.cat-breadcrumb a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,.85);
    text-decoration: none;
    transition: color .25s;
}

.cat-breadcrumb a:hover { color: #FFD166; }
.cat-breadcrumb a i { font-size: 10px; color: #E07A3F; }
.cat-breadcrumb > i.fa-chevron-right {
    font-size: 8px;
    opacity: .5;
    color: #fff;
}

.cat-breadcrumb__current {
    color: #FFD166;
    font-weight: 700;
}

/* ─── Badge ─── */
.cat-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: linear-gradient(135deg, #E07A3F, #C25A2A);
    color: #fff;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: 16px;
    box-shadow: 0 8px 24px rgba(224,122,63,.4);
}

.cat-hero__badge i { font-size: 11px; }
.cat-hero__badge strong {
    font-weight: 900;
    font-size: 13px;
    margin-right: 2px;
}

/* ─── Title Wrap ─── */
.cat-hero__title-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.cat-hero__icon {
    width: 58px;
    height: 58px;
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(224,122,63,.9), rgba(194,90,42,.9));
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    box-shadow:
        0 12px 32px rgba(224,122,63,.4),
        0 0 0 1px rgba(255,255,255,.15);
    flex-shrink: 0;
    animation: catIconFloat 4s ease-in-out infinite;
}

@keyframes catIconFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-4px); }
}

.cat-hero__title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(26px, 3.6vw, 42px);
    font-weight: 700;
    line-height: 1.15;
    margin: 0;
    letter-spacing: -.02em;
    text-shadow: 0 6px 30px rgba(0,0,0,.4);
}

/* ─── Subtitle ─── */
.cat-hero__subtitle {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: clamp(14px, 1.5vw, 17px);
    line-height: 1.55;
    color: rgba(255,255,255,.92);
    margin: 0 0 12px;
    max-width: 720px;
    font-weight: 500;

    /* Justify */
    text-align: justify;
    text-justify: inter-word;
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
    overflow-wrap: break-word;
}

.cat-hero__subtitle:empty { display: none; }

/* ─── Short description ─── */
.cat-hero__short {
    font-size: 14px;
    line-height: 1.75;
    color: rgba(255,255,255,.82);
    margin: 0 0 24px;
    max-width: 720px;

    /* Justify */
    text-align: justify;
    text-justify: inter-word;
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: normal;
    line-break: auto;
    text-rendering: optimizeLegibility;
}

.cat-hero__short:empty { display: none; }

/* ─── Pills ─── */
.cat-hero__pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.cat-hero__pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255,255,255,.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,.2);
    padding: 6px 13px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 500;
    color: #fff;
    transition: all .3s ease;
}

.cat-hero__pill:hover {
    background: rgba(255,255,255,.18);
    transform: translateY(-2px);
}

.cat-hero__pill i {
    color: #FFD166;
    font-size: 10px;
}

/* ─── Scroll indicator ─── */
.cat-hero__scroll {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    text-decoration: none;
    transition: all .3s ease;
    animation: catScrollBounce 2s ease-in-out infinite;
}

.cat-hero__scroll:hover {
    background: #E07A3F;
    border-color: #E07A3F;
}

@keyframes catScrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%      { transform: translateX(-50%) translateY(6px); }
}

/* ═══════════════════════════════════════════════════════ */
/* 2) CATEGORY ABOUT — Long Description                   */
/* ═══════════════════════════════════════════════════════ */
.cat-about {
    background: #fff;
    padding: 0;
    margin-top: -50px;
    position: relative;
    z-index: 5;
}

.cat-about .container {
    position: relative;
    z-index: 6;
}

.cat-about__box {
    background: #fff;
    border-radius: 20px;
    padding: 32px 38px;
    box-shadow:
        0 30px 80px rgba(26,35,50,.12),
        0 4px 16px rgba(26,35,50,.06);
    border: 1px solid rgba(224,122,63,.1);
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.cat-about__box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #E07A3F, #D4A574, #E07A3F);
    background-size: 200% auto;
    animation: catRibbonMove 4s linear infinite;
}

@keyframes catRibbonMove {
    0%   { background-position: 0% 0; }
    100% { background-position: 200% 0; }
}

.cat-about__head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.cat-about__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    color: #E07A3F;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    padding: 6px 14px;
    background: rgba(224,122,63,.08);
    border-radius: 100px;
    border: 1px solid rgba(224,122,63,.15);
    flex-shrink: 0;
}

.cat-about__eyebrow i { font-size: 11px; }

.cat-about__line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(224,122,63,.25), transparent);
}

.cat-about__text {
    font-size: 14px;
    line-height: 1.8;
    color: #374151;

    /* Justify */
    text-align: justify;
    text-justify: inter-word;
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: normal;
    line-break: auto;
    text-rendering: optimizeLegibility;
}

.cat-about__text p {
    margin: 0 0 16px;
    text-align: justify;
    text-justify: inter-word;
    -webkit-hyphens: auto;
    hyphens: auto;
}

.cat-about__text p:last-child { margin-bottom: 0; }

.cat-about__text h2,
.cat-about__text h3,
.cat-about__text h4 {
    font-family: 'Playfair Display', serif;
    color: #1A2332;
    margin: 24px 0 12px;
    line-height: 1.3;
    letter-spacing: -.01em;
    text-align: left;
    hyphens: none;
    -webkit-hyphens: none;
}

.cat-about__text h2 { font-size: 20px; }
.cat-about__text h3 { font-size: 17px; }
.cat-about__text h4 { font-size: 15px; }

.cat-about__text ul,
.cat-about__text ol {
    padding-left: 24px;
    margin: 12px 0 18px;
}

.cat-about__text li {
    margin-bottom: 8px;
    line-height: 1.75;
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    -webkit-hyphens: auto;
}

.cat-about__text strong {
    color: #1A2332;
    font-weight: 600;
}

.cat-about__text a {
    color: #E07A3F;
    text-decoration: underline;
    text-decoration-color: rgba(224,122,63,.3);
    text-underline-offset: 3px;
    transition: all .25s;
}

.cat-about__text a:hover {
    color: #C25A2A;
    text-decoration-color: #C25A2A;
}

/* ═══════════════════════════════════════════════════════ */
/* 3) CATEGORY STATS — AEO                                */
/* ═══════════════════════════════════════════════════════ */
.cat-stats {
    background: #fff;
    padding: 32px 0 24px;
}

.cat-stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 1000px;
    margin: 0 auto;
}

.cat-stats__item {
    background: linear-gradient(180deg, #FFFBF5, #FFFFFF);
    border: 1px solid rgba(224,122,63,.12);
    border-radius: 14px;
    padding: 18px 14px;
    text-align: center;
    transition: all .35s ease;
    position: relative;
    overflow: hidden;
}

.cat-stats__item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(224,122,63,.15);
    border-color: rgba(224,122,63,.3);
}

.cat-stats__icon {
    width: 38px;
    height: 38px;
    margin: 0 auto 10px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(224,122,63,.12), rgba(212,165,116,.12));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: #E07A3F;
    transition: all .35s ease;
}

.cat-stats__item:hover .cat-stats__icon {
    background: linear-gradient(135deg, #E07A3F, #C25A2A);
    color: #fff;
    transform: rotate(-6deg) scale(1.08);
}

.cat-stats__value {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 800;
    color: #1A2332;
    line-height: 1;
    margin-bottom: 4px;
    letter-spacing: -.02em;
}

.cat-stats__label {
    font-size: 9.5px;
    font-weight: 600;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 1.1px;
    text-align: center;
    hyphens: none;
}

/* ═══════════════════════════════════════════════════════ */
/* 4) CATEGORY TOURS — Modern Cards Section               */
/* ═══════════════════════════════════════════════════════ */
.cat-tours {
    background: #FAF6F0;
    padding: 48px 0 56px;
    position: relative;
}

.cat-tours__head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 30px;
}

.cat-tours__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(224,122,63,.1);
    color: #E07A3F;
    padding: 5px 12px;
    border-radius: 100px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.cat-tours__eyebrow i { font-size: 10px; }

.cat-tours__title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(22px, 2.8vw, 30px);
    font-weight: 700;
    color: #1A2332;
    margin: 0 0 8px;
    line-height: 1.2;
    letter-spacing: -.015em;
}

.cat-tours__sub {
    font-size: 13px;
    line-height: 1.6;
    color: #6B7280;
    margin: 0;
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    -webkit-hyphens: auto;
}

.cat-tours__sub:empty { display: none; }

.cat-tours__empty {
    text-align: center;
    padding: 50px 20px;
    background: #fff;
    border-radius: 18px;
    border: 2px dashed rgba(224,122,63,.2);
}
.cat-tours__empty i {
    font-size: 42px;
    color: rgba(224,122,63,.4);
    display: block;
    margin-bottom: 14px;
}
.cat-tours__empty h3 {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    color: #1A2332;
    margin: 0 0 8px;
}
.cat-tours__empty p {
    font-size: 13px;
    color: #6B7280;
    margin: 0 0 18px;
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    hyphens: none;
}

/* ═══════════════════════════════════════════════════════ */
/* 5) TOUR CARDS GRID — Responsive                        */
/* ═══════════════════════════════════════════════════════ */
.tc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 1024px) {
    .tc-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 640px) {
    .tc-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

/* ═══════════════════════════════════════════════════════ */
/* 6) TOUR CARD — Modern Compact Design                   */
/* ═══════════════════════════════════════════════════════ */
.tc {
    position: relative;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(26,35,50,.06);
    box-shadow: 0 2px 12px rgba(26,35,50,.05);
    transition: all .4s cubic-bezier(.2,.9,.3,1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tc:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 44px rgba(26,35,50,.14);
    border-color: rgba(224,122,63,.25);
}

/* ─── Media (image) ─── */
.tc__media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #F0EBE3;
    flex-shrink: 0;
}

.tc__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .7s cubic-bezier(.2,.9,.3,1);
}

.tc:hover .tc__media img {
    transform: scale(1.08);
}

.tc__media-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0,0,0,.25) 0%,
        rgba(0,0,0,0) 30%,
        rgba(0,0,0,0) 55%,
        rgba(0,0,0,.7) 100%
    );
    pointer-events: none;
    z-index: 1;
}

/* ─── Badge (top-left) ─── */
.tc__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px;
    border-radius: 100px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #fff;
    box-shadow: 0 4px 14px rgba(0,0,0,.25);
    backdrop-filter: blur(8px);
    line-height: 1;
}

.tc__badge i { font-size: 9px; }

.tc__badge--featured {
    background: linear-gradient(135deg, #FFD166, #E0A800);
    color: #1A2332;
}

.tc__badge--discount {
    background: linear-gradient(135deg, #FF4D4D, #C22020);
    color: #fff;
}

/* ─── Duration chip ─── */
.tc__duration {
    position: absolute;
    top: 46px;
    left: 12px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    background: rgba(13,27,42,.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.15);
    line-height: 1;
}

.tc__duration i { font-size: 9px; color: #FFD166; }

/* ─── Quick view button ─── */
.tc__quick {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,.25);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    text-decoration: none;
    transition: all .3s ease;
}

.tc__quick:hover {
    background: #E07A3F;
    border-color: #E07A3F;
    transform: scale(1.1) rotate(-8deg);
}

/* ─── Location chip ─── */
.tc__location {
    position: absolute;
    bottom: 12px;
    left: 12px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 10px;
    font-weight: 600;
    color: #fff;
    background: rgba(255,255,255,.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.2);
    line-height: 1;
}

.tc__location i { font-size: 9px; color: #E07A3F; }

/* ─── Body ─── */
.tc__body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

/* ─── Meta row (rating) ─── */
.tc__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 16px;
}

.tc__rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #6B7280;
}

.tc__rating i {
    color: #F59E0B;
    font-size: 11px;
}

.tc__rating strong {
    color: #1A2332;
    font-weight: 700;
    font-size: 12px;
}

.tc__rating-count {
    color: #9CA3AF;
    font-size: 10px;
}

/* ─── Title ─── */
.tc__title {
    font-family: 'Playfair Display', serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    color: #1A2332;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 38px;
    letter-spacing: -.005em;
    text-align: left;
}

.tc__title a {
    color: inherit;
    text-decoration: none;
    transition: color .25s;
}

.tc__title a:hover { color: #E07A3F; }

/* ─── Description ─── */
.tc__desc {
    font-size: 12px;
    line-height: 1.55;
    color: #6B7280;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 36px;

    /* Justify */
    text-align: justify;
    text-justify: inter-word;
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    hyphens: auto;
    overflow-wrap: break-word;
    word-break: normal;
}

/* ─── Tags ─── */
.tc__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 2px;
}

.tc__tags span {
    background: rgba(74,124,89,.1);
    color: #4A7C59;
    padding: 3px 9px;
    border-radius: 100px;
    font-size: 9.5px;
    font-weight: 600;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ─── Footer ─── */
.tc__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(26,35,50,.06);
}

/* ─── Price Block ─── */
.tc__price {
    display: flex;
    flex-direction: column;
    gap: 1px;
    line-height: 1;
}

.tc__price-label {
    font-size: 9px;
    font-weight: 600;
    color: #9CA3AF;
    text-transform: uppercase;
    letter-spacing: .06em;
    text-align: left;
    hyphens: none;
}

.tc__price-value {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 800;
    color: #E07A3F;
    line-height: 1;
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
}

.tc__price-value small {
    font-size: 11px;
    font-weight: 700;
    color: #C25A2A;
    opacity: .85;
}

.tc__price-unit {
    font-size: 9.5px;
    color: #9CA3AF;
    font-weight: 500;
    text-align: left;
    hyphens: none;
}

/* ─── Price on Request ─── */
.tc__price--request {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    background: linear-gradient(135deg, rgba(37,211,102,.12), rgba(16,185,129,.12));
    border-radius: 8px;
    color: #059669;
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1;
}

.tc__price--request i {
    font-size: 11px;
    color: #10B981;
}

/* ─── CTA Button ─── */
.tc__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #1A2332;
    color: #fff;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: .02em;
    transition: all .3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.tc__cta i {
    font-size: 9px;
    transition: transform .3s ease;
}

.tc:hover .tc__cta {
    background: #E07A3F;
    box-shadow: 0 8px 20px rgba(224,122,63,.35);
}

.tc:hover .tc__cta i {
    transform: translateX(3px);
}

/* ═══════════════════════════════════════════════════════ */
/* 7) SKELETON for Tour Cards                             */
/* ═══════════════════════════════════════════════════════ */
.tc-skeleton {
    background: linear-gradient(90deg, #F0EBE3 25%, #FAF6F0 50%, #F0EBE3 75%);
    background-size: 200% 100%;
    animation: tcShimmer 1.4s infinite;
    border-radius: 16px;
    aspect-ratio: 16 / 13;
    min-height: 340px;
}

@keyframes tcShimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ═══════════════════════════════════════════════════════ */
/* 8) CATEGORY FAQ — AEO                                  */
/* ═══════════════════════════════════════════════════════ */
.cat-faq {
    background: #fff;
    padding: 48px 0 56px;
}

.cat-faq__head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 30px;
}

.cat-faq__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #E07A3F;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.cat-faq__title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(20px, 2.5vw, 26px);
    font-weight: 700;
    color: #1A2332;
    margin: 0;
    line-height: 1.2;
}

.cat-faq__list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cat-faq__item {
    background: #FAF6F0;
    border: 1.5px solid rgba(224,122,63,.12);
    border-radius: 14px;
    overflow: hidden;
    transition: all .3s ease;
}

.cat-faq__item:hover {
    border-color: rgba(224,122,63,.3);
    background: #fff;
    box-shadow: 0 8px 24px rgba(224,122,63,.08);
}

.cat-faq__item.is-open {
    background: #fff;
    border-color: #E07A3F;
    box-shadow: 0 12px 32px rgba(224,122,63,.12);
}

.cat-faq__q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 15px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: #1A2332;
    text-align: left;
    line-height: 1.4;
    transition: color .25s;
    hyphens: none;
}

.cat-faq__q:hover { color: #E07A3F; }

.cat-faq__q-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(224,122,63,.1);
    color: #E07A3F;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
    transition: all .35s ease;
}

.cat-faq__item.is-open .cat-faq__q-icon {
    background: #E07A3F;
    color: #fff;
    transform: rotate(180deg);
}

.cat-faq__a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s cubic-bezier(.4,0,.2,1),
                padding .4s cubic-bezier(.4,0,.2,1);
    padding: 0 20px;
}

.cat-faq__item.is-open .cat-faq__a {
    max-height: 400px;
    padding: 0 20px 20px;
}

.cat-faq__a p {
    font-size: 13px;
    line-height: 1.75;
    color: #4B5563;
    margin: 0;

    /* Justify */
    text-align: justify;
    text-justify: inter-word;
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: normal;
}

/* ═══════════════════════════════════════════════════════ */
/* 9) CATEGORY CTA                                        */
/* ═══════════════════════════════════════════════════════ */
.cat-cta {
    background: linear-gradient(135deg, #1A2332 0%, #243044 50%, #1A2332 100%);
    padding: 52px 0;
    position: relative;
    overflow: hidden;
}

.cat-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 15% 30%, rgba(224,122,63,.15) 0%, transparent 45%),
        radial-gradient(circle at 85% 70%, rgba(212,165,116,.12) 0%, transparent 45%);
    pointer-events: none;
}

.cat-cta__card {
    position: relative;
    background: #fff;
    border-radius: 20px;
    padding: 38px 44px;
    box-shadow:
        0 40px 90px rgba(0,0,0,.4),
        0 8px 24px rgba(224,122,63,.2);
    max-width: 820px;
    margin: 0 auto;
    overflow: hidden;
    z-index: 2;
}

.cat-cta__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #E07A3F, #D4A574, #E07A3F);
    background-size: 200% auto;
    animation: catRibbonMove 4s linear infinite;
}

.cat-cta__deco {
    position: absolute;
    bottom: 24px;
    right: 32px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(212,165,116,.12), rgba(224,122,63,.06));
    border: 2px dashed rgba(224,122,63,.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #E07A3F;
    opacity: .7;
    animation: catDecoRotate 30s linear infinite;
    pointer-events: none;
}

@keyframes catDecoRotate {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.cat-cta__inner {
    position: relative;
    z-index: 3;
}

.cat-cta__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: #E07A3F;
    margin-bottom: 14px;
    padding: 6px 14px;
    background: rgba(224,122,63,.08);
    border-radius: 100px;
    border: 1px solid rgba(224,122,63,.15);
}

.cat-cta__title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(22px, 2.6vw, 30px);
    font-weight: 700;
    line-height: 1.2;
    color: #1A2332;
    margin: 0 0 12px;
    letter-spacing: -.015em;
}

.cat-cta__text {
    font-size: 13.5px;
    line-height: 1.7;
    color: #6B7280;
    margin: 0 0 22px;
    max-width: 620px;

    /* Justify */
    text-align: justify;
    text-justify: inter-word;
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: normal;
}

.cat-cta__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cat-cta__btn {
    padding: 11px 24px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 10px 26px rgba(224,122,63,.3);
    transition: all .3s ease;
}

.cat-cta__btn:hover {
    box-shadow: 0 14px 34px rgba(224,122,63,.45);
    transform: translateY(-2px);
}

.cat-cta__btn--wa {
    background: #25D366;
    color: #fff;
    box-shadow: 0 10px 26px rgba(37,211,102,.3);
}

.cat-cta__btn--wa:hover {
    background: #1EA855;
    box-shadow: 0 14px 34px rgba(37,211,102,.45);
}

/* ═══════════════════════════════════════════════════════ */
/* 10) CATEGORY RELATED                                   */
/* ═══════════════════════════════════════════════════════ */
.cat-related {
    background: #FAF6F0;
    padding: 48px 0 56px;
}

.cat-related__head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 30px;
}

.cat-related__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #E07A3F;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.cat-related__title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(20px, 2.5vw, 26px);
    font-weight: 700;
    color: #1A2332;
    margin: 0;
    line-height: 1.2;
}

.cat-related__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.cat-related__card {
    position: relative;
    aspect-ratio: 4 / 4.6;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    display: block;
    transition: transform .4s cubic-bezier(.2,.9,.3,1),
                box-shadow .4s ease;
    box-shadow: 0 4px 16px rgba(26,35,50,.08);
    background: #1A2332;
}

.cat-related__card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(26,35,50,.2);
}

.cat-related__card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .8s cubic-bezier(.2,.9,.3,1);
}

.cat-related__card:hover img { transform: scale(1.08); }

.cat-related__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        transparent 40%,
        rgba(13,27,42,.5) 65%,
        rgba(13,27,42,.95) 100%
    );
    z-index: 1;
}

.cat-related__content {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    z-index: 2;
    padding: 16px 14px 16px;
}

.cat-related__content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 6px;
    line-height: 1.25;
    text-shadow: 0 2px 10px rgba(0,0,0,.5);
    text-align: left;
}

.cat-related__content h3::after {
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    background: #E07A3F;
    border-radius: 2px;
    margin-top: 6px;
    transition: width .35s ease;
}

.cat-related__card:hover .cat-related__content h3::after {
    width: 42px;
}

.cat-related__content p {
    font-size: 10.5px;
    color: rgba(255,255,255,.8);
    margin: 0 0 8px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;

    /* Justify */
    text-align: justify;
    text-justify: inter-word;
    -webkit-hyphens: auto;
    hyphens: auto;
    overflow-wrap: break-word;
}

.cat-related__count {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 700;
    color: #FFD166;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.cat-related__count i {
    font-size: 10px;
    color: #E07A3F;
}

/* ═══════════════════════════════════════════════════════ */
/* 11) RESPONSIVE — Tablet                                */
/* ═══════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .cat-hero {
        min-height: 440px;
        padding: 70px 0 60px;
    }

    .cat-hero__icon {
        width: 52px;
        height: 52px;
        font-size: 22px;
        border-radius: 14px;
    }

    .cat-about__box {
        padding: 28px 30px;
    }

    .cat-stats__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cat-cta__card {
        padding: 34px 36px;
    }

    .cat-related__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ═══════════════════════════════════════════════════════ */
/* 12) RESPONSIVE — Mobile                                */
/* ═══════════════════════════════════════════════════════ */
@media (max-width: 640px) {
    .cat-hero {
        min-height: 400px;
        padding: 60px 0 40px;
    }

    .cat-breadcrumb {
        font-size: 10px;
        padding: 5px 11px;
        gap: 6px;
        margin-bottom: 14px;
    }

    .cat-breadcrumb a i { font-size: 9px; }

    .cat-hero__badge {
        padding: 5px 12px;
        font-size: 10px;
        margin-bottom: 12px;
    }

    .cat-hero__title-wrap {
        gap: 12px;
        margin-bottom: 10px;
    }

    .cat-hero__icon {
        width: 46px;
        height: 46px;
        font-size: 18px;
        border-radius: 12px;
    }

    .cat-hero__title {
        font-size: 24px;
    }

    .cat-hero__subtitle {
        font-size: 13.5px;
        margin-bottom: 10px;

        /* Mobile: no hyphens */
        -webkit-hyphens: none;
        -moz-hyphens: none;
        -ms-hyphens: none;
        hyphens: none;
        word-spacing: -0.02em;
    }

    .cat-hero__short {
        font-size: 13px;
        line-height: 1.7;
        margin-bottom: 18px;

        /* Mobile: no hyphens */
        -webkit-hyphens: none;
        -moz-hyphens: none;
        -ms-hyphens: none;
        hyphens: none;
        word-spacing: -0.02em;
    }

    .cat-hero__pills {
        gap: 6px;
    }

    .cat-hero__pill {
        padding: 5px 10px;
        font-size: 10px;
    }

    .cat-hero__scroll {
        width: 32px;
        height: 32px;
        font-size: 11px;
        bottom: 14px;
    }

    /* About */
    .cat-about {
        margin-top: -36px;
    }

    .cat-about__box {
        padding: 22px 18px;
        border-radius: 16px;
    }

    .cat-about__head {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 16px;
    }

    .cat-about__line {
        width: 100%;
    }

    .cat-about__text {
        font-size: 13px;
        line-height: 1.75;

        /* Mobile: no hyphens */
        -webkit-hyphens: none;
        -moz-hyphens: none;
        -ms-hyphens: none;
        hyphens: none;
        word-spacing: -0.02em;
    }

    .cat-about__text p,
    .cat-about__text li {
        -webkit-hyphens: none;
        hyphens: none;
    }

    .cat-about__text h2 { font-size: 17px; }
    .cat-about__text h3 { font-size: 15px; }
    .cat-about__text h4 { font-size: 14px; }

    /* Stats */
    .cat-stats {
        padding: 28px 0 20px;
    }

    .cat-stats__grid {
        gap: 10px;
    }

    .cat-stats__item {
        padding: 14px 10px;
        border-radius: 12px;
    }

    .cat-stats__icon {
        width: 34px;
        height: 34px;
        font-size: 14px;
        margin-bottom: 8px;
        border-radius: 9px;
    }

    .cat-stats__value {
        font-size: 18px;
        margin-bottom: 3px;
    }

    .cat-stats__label {
        font-size: 8.5px;
        letter-spacing: 0.9px;
    }

    /* Tours */
    .cat-tours {
        padding: 36px 0 44px;
    }

    .cat-tours__head {
        margin-bottom: 22px;
    }

    .cat-tours__title { font-size: 20px; }
    .cat-tours__sub {
        font-size: 12px;
        -webkit-hyphens: none;
        hyphens: none;
    }

    .cat-tours__empty {
        padding: 36px 18px;
    }

    .cat-tours__empty i { font-size: 34px; }
    .cat-tours__empty h3 { font-size: 17px; }

    /* Tour Card */
    .tc {
        border-radius: 14px;
    }

    .tc__media {
        aspect-ratio: 16 / 10;
    }

    .tc__badge {
        top: 10px;
        left: 10px;
        padding: 4px 9px;
        font-size: 9px;
    }

    .tc__duration {
        top: 40px;
        left: 10px;
        padding: 3px 8px;
        font-size: 9px;
    }

    .tc__quick {
        top: 10px;
        right: 10px;
        width: 30px;
        height: 30px;
        font-size: 10px;
    }

    .tc__location {
        bottom: 10px;
        left: 10px;
        padding: 3px 8px;
        font-size: 9px;
    }

    .tc__body {
        padding: 12px 14px 14px;
        gap: 6px;
    }

    .tc__title {
        font-size: 14px;
        min-height: 36px;
    }

    .tc__desc {
        font-size: 11.5px;
        min-height: 34px;

        /* Mobile: no hyphens */
        -webkit-hyphens: none;
        -moz-hyphens: none;
        -ms-hyphens: none;
        hyphens: none;
        word-spacing: -0.02em;
    }

    .tc__tags span {
        font-size: 9px;
        padding: 2px 8px;
    }

    .tc__footer {
        padding-top: 10px;
    }

    .tc__price-value {
        font-size: 18px;
    }

    .tc__cta {
        padding: 7px 12px;
        font-size: 10.5px;
    }

    /* FAQ */
    .cat-faq {
        padding: 36px 0 44px;
    }

    .cat-faq__head {
        margin-bottom: 20px;
    }

    .cat-faq__title { font-size: 20px; }

    .cat-faq__q {
        padding: 13px 16px;
        font-size: 13px;
    }

    .cat-faq__q-icon {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }

    .cat-faq__a {
        padding: 0 16px;
    }

    .cat-faq__item.is-open .cat-faq__a {
        padding: 0 16px 16px;
    }

    .cat-faq__a p {
        font-size: 12.5px;
        line-height: 1.7;

        /* Mobile: no hyphens */
        -webkit-hyphens: none;
        -moz-hyphens: none;
        -ms-hyphens: none;
        hyphens: none;
        word-spacing: -0.02em;
    }

    /* CTA */
    .cat-cta {
        padding: 40px 0;
    }

    .cat-cta__card {
        padding: 26px 20px;
        border-radius: 16px;
    }

    .cat-cta__title { font-size: 20px; }

    .cat-cta__text {
        font-size: 12.5px;

        /* Mobile: no hyphens */
        -webkit-hyphens: none;
        -moz-hyphens: none;
        -ms-hyphens: none;
        hyphens: none;
        word-spacing: -0.02em;
    }

    .cat-cta__actions {
        flex-direction: column;
        gap: 10px;
    }

    .cat-cta__btn {
        width: 100%;
        justify-content: center;
        padding: 12px 22px;
    }

    .cat-cta__deco { display: none; }

    /* Related */
    .cat-related {
        padding: 36px 0 44px;
    }

    .cat-related__head {
        margin-bottom: 20px;
    }

    .cat-related__title { font-size: 20px; }

    .cat-related__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .cat-related__card {
        aspect-ratio: 1 / 1.15;
        border-radius: 12px;
    }

    .cat-related__content {
        padding: 12px 12px 14px;
    }

    .cat-related__content h3 { font-size: 13px; }
    .cat-related__content p {
        display: none;
    }
    .cat-related__count { font-size: 9px; }
}

/* ═══════════════════════════════════════════════════════ */
/* 13) RTL SUPPORT — Arabic / Hebrew                      */
/* ═══════════════════════════════════════════════════════ */
[dir="rtl"] .cat-breadcrumb a,
[dir="rtl"] .cat-hero__title-wrap,
[dir="rtl"] .cat-about__head {
    flex-direction: row-reverse;
}

[dir="rtl"] .cat-hero__short,
[dir="rtl"] .cat-hero__subtitle,
[dir="rtl"] .cat-about__text,
[dir="rtl"] .cat-about__text p,
[dir="rtl"] .cat-about__text li,
[dir="rtl"] .cat-faq__a p,
[dir="rtl"] .cat-cta__text,
[dir="rtl"] .tc__desc,
[dir="rtl"] .cat-related__content p {
    text-align: justify;
    text-justify: inter-word;
    -webkit-hyphens: none;
    -moz-hyphens: none;
    -ms-hyphens: none;
    hyphens: none;
    word-spacing: 0.02em;
    line-height: 1.9;
}

[dir="rtl"] .cat-about__text h2,
[dir="rtl"] .cat-about__text h3,
[dir="rtl"] .cat-about__text h4,
[dir="rtl"] .cat-faq__q {
    text-align: right;
}

[dir="rtl"] .cat-faq__q {
    flex-direction: row-reverse;
}

[dir="rtl"] .cat-cta__deco {
    right: auto;
    left: 32px;
}

[dir="rtl"] .cat-related__content h3 {
    text-align: right;
}

[dir="rtl"] .cat-related__content h3::after {
    margin-left: auto;
    margin-right: 0;
}

[dir="rtl"] .cat-hero__badge,
[dir="rtl"] .cat-hero__pill,
[dir="rtl"] .cat-hero__scroll {
    flex-direction: row-reverse;
}

[dir="rtl"] .tc__badge,
[dir="rtl"] .tc__duration {
    left: auto;
    right: 12px;
}

[dir="rtl"] .tc__quick {
    right: auto;
    left: 12px;
}

[dir="rtl"] .tc__location {
    left: auto;
    right: 12px;
}

[dir="rtl"] .tc__title,
[dir="rtl"] .tc__price-label,
[dir="rtl"] .tc__price-unit {
    text-align: right;
}

[dir="rtl"] .tc__cta i {
    transform: rotate(180deg);
}

[dir="rtl"] .tc:hover .tc__cta i {
    transform: rotate(180deg) translateX(-3px);
}

[dir="rtl"] .tc__rating,
[dir="rtl"] .tc__tags,
[dir="rtl"] .tc__footer {
    flex-direction: row-reverse;
}

/* RTL Mobile — line-height */
@media (max-width: 640px) {
    [dir="rtl"] .cat-hero__short,
    [dir="rtl"] .cat-hero__subtitle,
    [dir="rtl"] .cat-about__text,
    [dir="rtl"] .cat-about__text p,
    [dir="rtl"] .cat-about__text li,
    [dir="rtl"] .cat-faq__a p,
    [dir="rtl"] .cat-cta__text,
    [dir="rtl"] .tc__desc {
        word-spacing: 0.01em;
        line-height: 1.85;
    }

    [dir="rtl"] .tc__badge,
    [dir="rtl"] .tc__duration {
        right: 10px;
    }

    [dir="rtl"] .tc__quick {
        left: 10px;
    }

    [dir="rtl"] .tc__location {
        right: 10px;
    }
}

/* ═══════════════════════════════════════════════════════ */
/* 14) SMALL SCREENS (≤380px)                             */
/* ═══════════════════════════════════════════════════════ */
@media (max-width: 380px) {
    .cat-hero__short,
    .cat-hero__subtitle,
    .cat-about__text,
    .cat-about__text p,
    .cat-about__text li,
    .cat-faq__a p,
    .cat-cta__text,
    .tc__desc {
        text-align: justify;
        text-justify: inter-word;
        -webkit-hyphens: none;
        -moz-hyphens: none;
        -ms-hyphens: none;
        hyphens: none;
        word-spacing: -0.03em;
        line-height: 1.7;
    }

    [dir="rtl"] .cat-hero__short,
    [dir="rtl"] .cat-hero__subtitle,
    [dir="rtl"] .cat-about__text,
    [dir="rtl"] .cat-about__text p,
    [dir="rtl"] .cat-about__text li,
    [dir="rtl"] .cat-faq__a p,
    [dir="rtl"] .cat-cta__text,
    [dir="rtl"] .tc__desc {
        word-spacing: 0.02em;
        line-height: 1.8;
    }

    .cat-hero__title { font-size: 22px; }
    .cat-hero__icon { width: 42px; height: 42px; font-size: 17px; }
    .cat-stats__value { font-size: 17px; }
    .cat-related__content h3 { font-size: 12px; }
    .tc__title { font-size: 13.5px; }
    .tc__desc { font-size: 11px; }
}

/* ═══════════════════════════════════════════════════════ */
/* 15) REDUCED MOTION                                     */
/* ═══════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    .cat-hero__bg img,
    .cat-hero__icon,
    .cat-hero__scroll,
    .cat-about__box::before,
    .cat-cta__card::before,
    .cat-cta__deco {
        animation: none !important;
    }

    .tc,
    .tc__media img,
    .cat-related__card,
    .cat-related__card img,
    .cat-stats__item {
        transition: none !important;
    }
}



/* ═══════════════════════════════════════════════════════ */
/* ALL CATEGORIES PAGE — FINAL (Centered on Mobile)       */
/* ═══════════════════════════════════════════════════════ */

/* ─── Page Hero ─── */
.page-hero {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #fff;
    padding: 80px 0 60px;
}

.page-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.page-hero__bg img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: brightness(0.42);
}

.page-hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        rgba(13,27,42,.85) 0%,
        rgba(13,27,42,.55) 55%,
        rgba(224,122,63,.35) 100%
    );
}

.page-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 780px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    margin-bottom: 20px;
    color: rgba(255,255,255,.75);
    flex-wrap: wrap;
}

.breadcrumb a {
    color: rgba(255,255,255,.9);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color .25s;
}

.breadcrumb a:hover { color: #FFD166; }
.breadcrumb a i { font-size: 12px; }
.breadcrumb > i { font-size: 10px; opacity: .6; }
.breadcrumb__current { color: #FFD166; font-weight: 600; }

.page-hero__title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(30px, 5vw, 52px);
    margin: 0 0 14px;
    line-height: 1.12;
    letter-spacing: -.02em;
    text-shadow: 0 4px 20px rgba(0,0,0,.35);
}

.page-hero__sub {
    font-size: 16px;
    line-height: 1.65;
    opacity: .92;
    max-width: 620px;
    margin: 0 0 24px;
}

.page-hero__count {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.2);
    padding: 9px 18px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
}

.page-hero__count i {
    color: #E07A3F;
    font-size: 14px;
}

/* ═══════════════════════════════════════════════════════ */
/* SEARCH & FILTERS                                       */
/* ═══════════════════════════════════════════════════════ */

.categories-search {
    background: #FFFBF5;
    padding: 24px 0 12px;
    position: relative;
    z-index: 5;
    margin-top: -40px;
}

.categories-search__box {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 12px;
    align-items: center;
    background: #fff;
    border-radius: 16px;
    padding: 12px;
    box-shadow: 0 10px 34px rgba(26,35,50,.10);
    border: 1px solid rgba(224,122,63,.1);
}

/* ─── Search Input ─── */
.categories-search__input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 0;
}

.categories-search__icon {
    position: absolute;
    left: 18px;
    color: #E07A3F;
    font-size: 15px;
    pointer-events: none;
    z-index: 1;
}

.categories-search__input {
    width: 100%;
    padding: 12px 46px 12px 46px;
    border: 1.5px solid transparent;
    background: #FFFBF5;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #1A2332;
    transition: border-color .25s, box-shadow .25s, background .25s;
    outline: none;
}

.categories-search__input::placeholder {
    color: #9CA3AF;
}

.categories-search__input:focus {
    border-color: #E07A3F;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(224,122,63,.1);
}

.categories-search__clear {
    position: absolute;
    right: 12px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #F3F4F6;
    border: none;
    color: #6B7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    transition: background .2s, color .2s;
    z-index: 1;
}

.categories-search__clear:hover {
    background: #E07A3F;
    color: #fff;
}

/* ─── Sort ─── */
.categories-search__sort {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #FFFBF5;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1.5px solid transparent;
    transition: border-color .25s, box-shadow .25s, background .25s;
}

.categories-search__sort:focus-within {
    border-color: #E07A3F;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(224,122,63,.1);
}

.categories-search__sort i {
    color: #E07A3F;
    font-size: 14px;
}

.categories-search__sort select {
    border: none;
    outline: none;
    background: transparent;
    font-family: 'Inter', sans-serif;
    font-size: 13.5px;
    font-weight: 500;
    color: #1A2332;
    cursor: pointer;
    padding-right: 4px;
}

/* ─── View Toggle ─── */
.categories-search__view {
    display: flex;
    gap: 4px;
    background: #FFFBF5;
    padding: 4px;
    border-radius: 12px;
}

.categories-search__view-btn {
    width: 40px;
    height: 40px;
    border-radius: 9px;
    background: transparent;
    border: none;
    color: #9CA3AF;
    font-size: 14px;
    cursor: pointer;
    transition: background .25s, color .25s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.categories-search__view-btn:hover {
    color: #E07A3F;
    background: rgba(224,122,63,.08);
}

.categories-search__view-btn.active {
    background: #1A2332;
    color: #fff;
}

/* ─── Chips ─── */
.categories-search__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.categories-search__chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #1A2332;
    color: #fff;
    padding: 6px 8px 6px 14px;
    border-radius: 100px;
    font-size: 12.5px;
    font-weight: 500;
}

.categories-search__chip i {
    color: #E07A3F;
    font-size: 11px;
}

.categories-search__chip-remove {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
}

.categories-search__chip-remove:hover {
    background: #E07A3F;
}

/* ═══════════════════════════════════════════════════════ */
/* CATEGORIES ALL — GRID (✅ متوازن ومتوسط)              */
/* ═══════════════════════════════════════════════════════ */

.categories-all {
    background: #FFFBF5;
    padding: 32px 0 60px;
}

.categories-all__info {
    text-align: center;
    margin-bottom: 24px;
}

.categories-all__info-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #6B7280;
    font-weight: 500;
}

.categories-all__info-text i {
    color: #10b981;
    font-size: 14px;
}

/* ✅ الشبكة الأساسية — grid مع auto-fit */
.categories-all__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    justify-content: center;
    align-items: start;
    width: 100%;
}

/* ═══════════════════════════════════════════════════════ */
/* LIST VIEW                                              */
/* ═══════════════════════════════════════════════════════ */

.categories-all__grid.view-list {
    grid-template-columns: 1fr;
    gap: 14px;
    max-width: 100%;
    margin: 0 auto;
}

.categories-all__grid.view-list .cat-card {
    aspect-ratio: auto;
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: 180px;
    max-width: none;
    width: 100%;
}

.categories-all__grid.view-list .cat-card__img {
    position: relative;
    inset: auto;
    height: 100%;
    min-height: 180px;
    border-radius: 18px 0 0 18px;
}

.categories-all__grid.view-list .cat-card__overlay {
    background: linear-gradient(
        90deg,
        rgba(13,27,42,.05) 0%,
        rgba(13,27,42,.35) 100%
    );
    border-radius: 18px 0 0 18px;
}

.categories-all__grid.view-list .cat-card__content {
    position: relative;
    inset: auto;
    padding: 24px 28px;
    background: #fff;
    border-radius: 0 18px 18px 0;
    justify-content: center;
    color: #1A2332;
}

.categories-all__grid.view-list .cat-card__name {
    color: #1A2332;
    font-size: 20px;
    text-shadow: none;
    -webkit-line-clamp: 3;
}

.categories-all__grid.view-list .cat-card__sub {
    color: #6B7280;
    text-shadow: none;
    font-size: 13.5px;
    -webkit-line-clamp: 3;
}

.categories-all__grid.view-list .cat-card__count-badge {
    top: 14px;
    right: 14px;
}

/* ─── Skeleton ─── */
.cat-card-skeleton {
    aspect-ratio: 3 / 4;
    border-radius: 18px;
    background: linear-gradient(90deg, #F0EBE3 25%, #FAF6F0 50%, #F0EBE3 75%);
    background-size: 200% 100%;
    animation: catShimmer 1.4s infinite;
    width: 100%;
}

/* ─── Empty State ─── */
.categories-all__empty {
    text-align: center;
    padding: 70px 20px;
    background: #fff;
    border-radius: 20px;
    border: 2px dashed rgba(224,122,63,.2);
    max-width: 520px;
    margin: 0 auto;
}

.categories-all__empty i {
    font-size: 52px;
    color: rgba(224,122,63,.4);
    display: block;
    margin-bottom: 18px;
}

.categories-all__empty h3 {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    color: #1A2332;
    margin: 0 0 8px;
}

.categories-all__empty p {
    font-size: 14px;
    color: #6B7280;
    margin: 0 0 22px;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

/* ─── Load More ─── */
.categories-all__more {
    text-align: center;
    margin-top: 42px;
}

/* ═══════════════════════════════════════════════════════ */
/* RESPONSIVE — TABLET (≤1024px) : 3 columns              */
/* ═══════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .categories-all__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }

    .categories-all__grid.view-list .cat-card {
        grid-template-columns: 200px 1fr;
        min-height: 160px;
    }

    .categories-all__grid.view-list .cat-card__img {
        min-height: 160px;
    }
}

/* ═══════════════════════════════════════════════════════ */
/* RESPONSIVE — MOBILE (≤768px)                           */
/* ═══════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .categories-search {
        margin-top: -30px;
        padding: 20px 0 10px;
    }

    .categories-search__box {
        grid-template-columns: 1fr;
        padding: 10px;
        gap: 10px;
    }

    .categories-search__input {
        padding: 11px 42px 11px 42px;
        font-size: 13.5px;
    }

    .categories-search__icon {
        left: 16px;
        font-size: 14px;
    }

    .categories-search__clear {
        right: 10px;
    }

    .categories-search__sort {
        padding: 11px 14px;
        justify-content: space-between;
    }

    .categories-search__sort select {
        flex: 1;
        font-size: 13px;
    }

    .categories-search__view {
        justify-content: center;
    }

    .categories-search__view-btn {
        flex: 1;
        height: 42px;
    }

    /* ✅ Mobile: 2 أعمدة موزعة بالتساوي */
    .categories-all__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        justify-content: center;
    }

    .categories-all__grid.view-list {
        grid-template-columns: 1fr;
    }

    .categories-all__grid.view-list .cat-card {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .categories-all__grid.view-list .cat-card__img {
        border-radius: 16px 16px 0 0;
        min-height: 200px;
        aspect-ratio: 16/10;
    }

    .categories-all__grid.view-list .cat-card__overlay {
        border-radius: 16px 16px 0 0;
    }

    .categories-all__grid.view-list .cat-card__content {
        border-radius: 0 0 16px 16px;
        padding: 18px 18px 20px;
    }

    .categories-all__grid.view-list .cat-card__name {
        font-size: 17px;
    }
}

/* ═══════════════════════════════════════════════════════ */
/* RESPONSIVE — MOBILE (≤640px)                           */
/* ═══════════════════════════════════════════════════════ */

@media (max-width: 640px) {
    .page-hero {
        min-height: 340px;
        padding: 68px 0 42px;
    }

    .page-hero__title { font-size: 24px; }
    .page-hero__sub { font-size: 13.5px; }
    .page-hero__count { font-size: 12.5px; padding: 7px 14px; }

    .categories-search {
        padding: 16px 0 8px;
        margin-top: -24px;
    }

    .categories-all {
        padding: 24px 0 44px;
    }

    /* ✅ 2 أعمدة — مع justify-content للتوسيط */
    .categories-all__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        justify-content: center;
        justify-items: stretch;
    }

    /* ✅ في حال عنصر واحد — يتمركز */
    .categories-all__grid > .cat-card:only-child {
        grid-column: 1 / -1;
        max-width: 320px;
        margin: 0 auto;
    }

    .categories-all__empty {
        padding: 50px 18px;
        max-width: 100%;
    }

    .categories-all__empty i { font-size: 42px; }
    .categories-all__empty h3 { font-size: 18px; }
    .categories-all__empty p { font-size: 13px; }
}

/* ═══════════════════════════════════════════════════════ */
/* RESPONSIVE — SMALL MOBILE (≤380px)                     */
/* ═══════════════════════════════════════════════════════ */

@media (max-width: 380px) {
    .page-hero { min-height: 320px; }
    .page-hero__title { font-size: 22px; }
    .page-hero__sub { font-size: 12.5px; }

    .categories-search__input {
        font-size: 13px;
        padding: 10px 40px 10px 40px;
    }

    .categories-search__sort select { font-size: 12.5px; }

    .categories-all__grid {
        gap: 10px;
    }
}

/* ═══════════════════════════════════════════════════════ */
/* ✅ RTL SUPPORT                                         */
/* ═══════════════════════════════════════════════════════ */

[dir="rtl"] .categories-search__icon {
    left: auto;
    right: 18px;
}

[dir="rtl"] .categories-search__input {
    padding: 12px 46px 12px 46px;
    text-align: right;
}

[dir="rtl"] .categories-search__clear {
    right: auto;
    left: 12px;
}

[dir="rtl"] .breadcrumb > i {
    transform: scaleX(-1);
}

[dir="rtl"] .categories-all__grid.view-list .cat-card__img {
    border-radius: 0 18px 18px 0;
}

[dir="rtl"] .categories-all__grid.view-list .cat-card__content {
    border-radius: 18px 0 0 18px;
    text-align: right;
}

@media (max-width: 768px) {
    [dir="rtl"] .categories-search__icon {
        right: 16px;
        left: auto;
    }

    [dir="rtl"] .categories-search__clear {
        left: 10px;
        right: auto;
    }
}

@media (max-width: 640px) {
    [dir="rtl"] .categories-all__grid.view-list .cat-card__img {
        border-radius: 16px 16px 0 0;
    }

    [dir="rtl"] .categories-all__grid.view-list .cat-card__content {
        border-radius: 0 0 16px 16px;
    }
}

/* ═══════════════════════════════════════════════════════ */
/* REDUCED MOTION                                         */
/* ═══════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
    .categories-search__box,
    .categories-search__input,
    .categories-search__sort,
    .categories-search__view-btn,
    .categories-search__chip,
    .categories-all__grid .cat-card,
    .categories-all__grid .cat-card__img {
        transition: none !important;
        animation: none !important;
    }
}

/* ═══════════════════════════════════════════════════════ */
/* ✅ FIX: ALL CATEGORIES GRID — Perfect Centering        */
/* ═══════════════════════════════════════════════════════ */

/* ─── Grid الأساسي (Desktop) ─── */
.categories-all__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    justify-content: center;
    justify-items: stretch;
    align-content: start;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* ─── List View ─── */
.categories-all__grid.view-list {
    grid-template-columns: 1fr;
    gap: 14px;
    max-width: 100%;
    margin: 0 auto;
}

.categories-all__grid.view-list .cat-card {
    aspect-ratio: auto;
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: 180px;
    max-width: none;
    width: 100%;
}

.categories-all__grid.view-list .cat-card__img {
    position: relative;
    inset: auto;
    height: 100%;
    min-height: 180px;
    border-radius: 18px 0 0 18px;
}

.categories-all__grid.view-list .cat-card__overlay {
    background: linear-gradient(90deg, rgba(13,27,42,.05) 0%, rgba(13,27,42,.35) 100%);
    border-radius: 18px 0 0 18px;
}

.categories-all__grid.view-list .cat-card__content {
    position: relative;
    inset: auto;
    padding: 24px 28px;
    background: #fff;
    border-radius: 0 18px 18px 0;
    justify-content: center;
    color: #1A2332;
}

.categories-all__grid.view-list .cat-card__name {
    color: #1A2332;
    font-size: 20px;
    text-shadow: none;
    -webkit-line-clamp: 3;
}

.categories-all__grid.view-list .cat-card__sub {
    color: #6B7280;
    text-shadow: none;
    font-size: 13.5px;
    -webkit-line-clamp: 3;
}

.categories-all__grid.view-list .cat-card__count-badge {
    top: 14px;
    right: 14px;
}

/* ═══════════════════════════════════════════════════════ */
/* 📱 TABLET (≤1024px) : 3 أعمدة                          */
/* ═══════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .categories-all__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

/* ═══════════════════════════════════════════════════════ */
/* 📱 MOBILE (≤640px) : عمودان متوازنان تماماً            */
/* ═══════════════════════════════════════════════════════ */
@media (max-width: 640px) {

    /* ✅ الحاوية الرئيسية — بدون حشوة زائدة */
    .categories-all {
        padding: 20px 0 40px;
        overflow-x: hidden;             /* منع التمرير الأفقي */
    }

    .categories-all .container {
        padding-left: 12px;
        padding-right: 12px;
        margin: 0 auto;
    }

    /* ═══ الشبكة: عمودان بعرض متساوٍ ═══ */
    .categories-all__grid {
        display: grid;
        grid-template-columns: 1fr 1fr;   /* ✅ عرض متساوٍ تماماً */
        gap: 10px;
        justify-content: center;
        justify-items: stretch;
        align-content: start;
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
    }

    /* ═══ البطاقة: عرض كامل للعمود ═══ */
    .categories-all__grid .cat-card {
        width: 100%;
        max-width: 100%;
        min-width: 0;                    /* ✅ مهم: لمنع تجاوز */
        margin: 0;
        flex: none;
        box-sizing: border-box;
    }

    /* ═══ إلغاء التوسيط الديناميكي على الجوال ═══ */
    /* نستخدم شبكة 2 أعمدة دائمة حتى لو كانت بطاقة واحدة */
    .categories-all__grid[style*="grid-template-columns"] {
        grid-template-columns: 1fr 1fr !important;
        max-width: 100% !important;
    }

    /* ═══ في حال بطاقة واحدة → تتمدد ═══ */
    .categories-all__grid > .cat-card:only-child {
        grid-column: 1 / -1;
        max-width: 280px;
        margin: 0 auto;
    }

    /* ═══ في حال 3 بطاقات → الثالثة تتمدد ═══ */
    .categories-all__grid > .cat-card:nth-child(odd):last-child {
        grid-column: 1 / -1;
        max-width: 280px;
        margin: 0 auto;
    }

    /* ═══ List View على الجوال ═══ */
    .categories-all__grid.view-list {
        grid-template-columns: 1fr !important;
        max-width: 100% !important;
    }

    .categories-all__grid.view-list .cat-card {
        grid-template-columns: 1fr;
        min-height: auto;
        max-width: 100%;
    }

    .categories-all__grid.view-list .cat-card__img {
        border-radius: 16px 16px 0 0;
        min-height: 180px;
        aspect-ratio: 16/10;
    }

    .categories-all__grid.view-list .cat-card__overlay {
        border-radius: 16px 16px 0 0;
    }

    .categories-all__grid.view-list .cat-card__content {
        border-radius: 0 0 16px 16px;
        padding: 16px 16px 18px;
    }

    .categories-all__grid.view-list .cat-card__name {
        font-size: 16px;
    }

    /* ─── Skeleton ─── */
    .cat-card-skeleton {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }
}

/* ═══════════════════════════════════════════════════════ */
/* 📱 SMALL MOBILE (≤380px) : عمودان أكثر إحكاماً         */
/* ═══════════════════════════════════════════════════════ */
@media (max-width: 380px) {
    .categories-all {
        padding: 18px 0 32px;
    }

    .categories-all .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .categories-all__grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 8px;
        max-width: 100% !important;
    }

    .categories-all__grid .cat-card {
        max-width: 100%;
        min-width: 0;
    }

    .categories-all__grid[style*="grid-template-columns"] {
        grid-template-columns: 1fr 1fr !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* ═══════════════════════════════════════════════════════ */
/* ✅ RTL — نفس السلوك لكن مع العربية                     */
/* ═══════════════════════════════════════════════════════ */
[dir="rtl"] .categories-all__grid {
    direction: rtl;
}

[dir="rtl"] .categories-all__grid.view-list .cat-card__img {
    border-radius: 0 18px 18px 0;
}

[dir="rtl"] .categories-all__grid.view-list .cat-card__content {
    border-radius: 18px 0 0 18px;
    text-align: right;
}

@media (max-width: 640px) {
    [dir="rtl"] .categories-all__grid.view-list .cat-card__img {
        border-radius: 16px 16px 0 0;
    }

    [dir="rtl"] .categories-all__grid.view-list .cat-card__content {
        border-radius: 0 0 16px 16px;
    }
}