/* =========================================================
   XT Projects Category Landing Shortcode - v1.3.1
   Loaded only when [xt_project_landing] exists on a normal page.
   It does not load on single xt_project detail pages.
   ========================================================= */

.xt-project-category-landing {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    background: #f7f3ed !important;
    color: #111827 !important;
    overflow: hidden !important;
    padding: clamp(56px, 7vw, 104px) 0 !important;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
}

.xt-project-category-landing,
.xt-project-category-landing * {
    box-sizing: border-box !important;
}

.xt-project-category-landing a {
    color: inherit !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

.xt-project-category-landing__inner {
    display: block !important;
    width: min(1440px, calc(100% - 40px)) !important;
    max-width: none !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

.xt-project-category-landing__hero {
    max-width: 880px !important;
    margin: 0 auto clamp(28px, 4vw, 48px) !important;
    text-align: center !important;
}

.xt-project-category-landing__hero h1 {
    margin: 0 !important;
    color: #111827 !important;
    font-size: clamp(34px, 5vw, 72px) !important;
    line-height: 0.95 !important;
    letter-spacing: -0.055em !important;
    font-weight: 650 !important;
}

.xt-project-category-landing__hero p {
    margin: 20px auto 0 !important;
    max-width: 720px !important;
    color: #5f6b7a !important;
    font-size: clamp(15px, 1.4vw, 18px) !important;
    line-height: 1.75 !important;
}

.xt-project-category-landing__nav {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
    margin: 0 auto clamp(36px, 5vw, 72px) !important;
}

.xt-project-category-landing__nav a {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 42px !important;
    padding: 10px 18px !important;
    border: 1px solid rgba(17, 24, 39, 0.12) !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.62) !important;
    color: #111827 !important;
    font-size: 13px !important;
    font-weight: 650 !important;
    letter-spacing: 0.02em !important;
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease !important;
}

.xt-project-category-landing__nav a:hover {
    transform: translateY(-2px) !important;
    background: #ffffff !important;
    border-color: rgba(197, 122, 65, 0.45) !important;
}

.xt-project-category-section {
    display: block !important;
    margin-top: clamp(46px, 7vw, 92px) !important;
    scroll-margin-top: 120px !important;
}

.xt-project-category-section:first-of-type {
    margin-top: 0 !important;
}

.xt-project-category-section__head {
    display: grid !important;
    grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.55fr) !important;
    align-items: end !important;
    gap: clamp(22px, 4vw, 70px) !important;
    margin-bottom: clamp(20px, 3.4vw, 36px) !important;
    padding-bottom: 18px !important;
    border-bottom: 1px solid rgba(17, 24, 39, 0.12) !important;
}

.xt-project-category-section__kicker {
    display: inline-block !important;
    margin-bottom: 12px !important;
    color: #9b6b44 !important;
    font-size: 12px !important;
    font-weight: 760 !important;
    letter-spacing: 0.16em !important;
    text-transform: uppercase !important;
}

.xt-project-category-section__head h2 {
    margin: 0 !important;
    color: #111827 !important;
    font-size: clamp(28px, 3.6vw, 52px) !important;
    line-height: 1.02 !important;
    letter-spacing: -0.04em !important;
    font-weight: 650 !important;
}

.xt-project-category-section__head p {
    margin: 0 !important;
    color: #5f6b7a !important;
    font-size: 15px !important;
    line-height: 1.75 !important;
}

.xt-project-category-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: clamp(16px, 2.2vw, 28px) !important;
}

.xt-project-category-card {
    min-width: 0 !important;
}

.xt-project-category-card__link {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    overflow: hidden !important;
    border: 1px solid rgba(17, 24, 39, 0.08) !important;
    border-radius: 24px !important;
    background: #ffffff !important;
    color: inherit !important;
    box-shadow: 0 24px 70px rgba(17, 24, 39, 0.07) !important;
    transition: transform 0.32s ease, box-shadow 0.32s ease, border-color 0.32s ease !important;
}

.xt-project-category-card__link:hover {
    transform: translateY(-6px) !important;
    border-color: rgba(197, 122, 65, 0.32) !important;
    box-shadow: 0 32px 82px rgba(17, 24, 39, 0.12) !important;
}

.xt-project-category-card__media {
    position: relative !important;
    aspect-ratio: 16 / 10 !important;
    margin: 0 !important;
    overflow: hidden !important;
    background: #e8e0d6 !important;
}

.xt-project-category-card__media img {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: cover !important;
    transition: transform 0.45s ease !important;
}

.xt-project-category-card__link:hover .xt-project-category-card__media img {
    transform: scale(1.045) !important;
}

.xt-project-category-card__tag {
    position: absolute !important;
    left: 16px !important;
    top: 16px !important;
    display: inline-flex !important;
    align-items: center !important;
    min-height: 30px !important;
    padding: 7px 12px !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.88) !important;
    color: #111827 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    backdrop-filter: blur(12px) !important;
}

.xt-project-category-card__body {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    padding: clamp(20px, 2.4vw, 28px) !important;
}

.xt-project-category-card__body h3 {
    margin: 0 !important;
    color: #111827 !important;
    font-size: clamp(18px, 1.7vw, 24px) !important;
    line-height: 1.18 !important;
    letter-spacing: -0.02em !important;
    font-weight: 650 !important;
}

.xt-project-category-card__body p {
    margin: 12px 0 0 !important;
    color: #667085 !important;
    font-size: 14px !important;
    line-height: 1.7 !important;
}

.xt-project-category-card__button {
    display: inline-flex !important;
    align-items: center !important;
    gap: 9px !important;
    margin-top: auto !important;
    padding-top: 22px !important;
    color: #111827 !important;
    font-size: 13px !important;
    font-weight: 760 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.09em !important;
}

.xt-project-category-card__button svg {
    width: 16px !important;
    height: 16px !important;
    transition: transform 0.25s ease !important;
}

.xt-project-category-card__link:hover .xt-project-category-card__button svg {
    transform: translateX(4px) !important;
}

.xt-project-category-landing__empty {
    width: min(720px, 100%) !important;
    margin: 0 auto !important;
    padding: 34px !important;
    border: 1px solid rgba(17, 24, 39, 0.1) !important;
    border-radius: 22px !important;
    background: rgba(255, 255, 255, 0.72) !important;
    text-align: center !important;
}

.xt-project-category-landing__empty--section {
    width: 100% !important;
    margin: 0 !important;
}

.xt-project-category-landing__empty h2,
.xt-project-category-landing__empty h3 {
    margin: 0 !important;
    color: #111827 !important;
}

.xt-project-category-landing__empty p {
    margin: 10px 0 0 !important;
    color: #667085 !important;
}

@media (max-width: 1180px) {
    .xt-project-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 760px) {
    .xt-project-category-landing {
        padding: 44px 0 !important;
    }

    .xt-project-category-landing__inner {
        width: min(100% - 28px, 1440px) !important;
    }

    .xt-project-category-section__head {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .xt-project-category-grid {
        grid-template-columns: 1fr !important;
    }

    .xt-project-category-card__link {
        border-radius: 18px !important;
    }
}
