/*==================================================================
# Custom Types — Shared Design Language
# Applies to Service / Team / Portfolio archive templates.
# Single templates use assets/css/single-cpt.css
==================================================================*/

/*--------------------------------------------------------------
# Shared Hero (Title Section)
--------------------------------------------------------------*/
.cpt-hero {
    position: relative;
    overflow: hidden;
    padding: 88px 0 68px;
    background: linear-gradient(135deg, var(--accent-color) 0%, #1a2a4a 100%);
}

.cpt-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.10), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(250, 153, 2, 0.14), transparent 50%);
    pointer-events: none;
}

.cpt-hero__content {
    position: relative;
    z-index: 2;
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
}

.cpt-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 18px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 18px;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.cpt-hero__eyebrow i {
    font-size: 0.95rem;
}

.cpt-hero__title {
    color: #fff;
    font-size: clamp(1.8rem, 3.5vw, 2.75rem);
    font-weight: 800;
    line-height: 1.35;
    margin: 0 0 16px;
    letter-spacing: -0.01em;
}

.cpt-hero__subtitle {
    color: rgba(255, 255, 255, 0.78);
    font-size: clamp(0.95rem, 1.2vw, 1.05rem);
    line-height: 1.9;
    max-width: 640px;
    margin: 0 auto;
}

.cpt-hero--service::before {
    background: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.10), transparent 42%),
    radial-gradient(circle at 78% 78%, rgba(77, 107, 254, 0.20), transparent 50%);
}

.cpt-hero--team::before {
    background: radial-gradient(circle at 15% 25%, rgba(255, 255, 255, 0.10), transparent 45%),
    radial-gradient(circle at 82% 75%, rgba(250, 153, 2, 0.18), transparent 52%);
}

.cpt-hero--portfolio::before {
    background: radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.10), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(250, 153, 2, 0.20), transparent 48%);
}

/*--------------------------------------------------------------
# Breadcrumb (Archive)
--------------------------------------------------------------*/
.cpt-breadcrumb {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
    margin: 0 auto 32px;
}

.cpt-breadcrumb a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.25s ease;
}

.cpt-breadcrumb a:hover {
    color: #fff;
}

.cpt-breadcrumb .current {
    color: #fff;
    font-weight: 600;
}

.cpt-breadcrumb__sep {
    color: rgba(255, 255, 255, 0.35);
}

/*--------------------------------------------------------------
# Pagination (Archive)
--------------------------------------------------------------*/
.cpt-pagination {
    margin-top: 50px;
}

.cpt-pagination .pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.cpt-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid color-mix(in srgb, var(--accent-color) 15%, transparent);
    color: var(--dark-heading-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.25s ease;
}

.cpt-pagination .page-numbers:hover,
.cpt-pagination .page-numbers.current {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px -8px color-mix(in srgb, var(--accent-color) 60%, transparent);
}

/*--------------------------------------------------------------
# Empty State
--------------------------------------------------------------*/
.cpt-empty {
    background: #fff;
    border-radius: 22px;
    border: 1px dashed color-mix(in srgb, var(--accent-color) 25%, transparent);
    padding: 60px 24px;
    text-align: center;
}

.cpt-empty__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--accent-color) 8%, transparent);
    color: var(--accent-color);
    font-size: 2rem;
    margin-bottom: 20px;
}

.cpt-empty__title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--dark-heading-color);
    margin: 0;
}

/*--------------------------------------------------------------
# Common Card Base
--------------------------------------------------------------*/
.cpt-card {
    position: relative;
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 4px 10px -4px rgba(16, 22, 43, 0.08),
    0 12px 30px -20px rgba(16, 22, 43, 0.20);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
    height: 100%;
}

.cpt-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 24px -10px rgba(2, 51, 130, 0.20),
    0 30px 60px -25px rgba(2, 51, 130, 0.35);
}

.cpt-card__link {
    display: block;
    color: inherit;
    text-decoration: none;
    height: 100%;
}

/*--------------------------------------------------------------
# Responsive
--------------------------------------------------------------*/
@media (max-width: 576px) {
    .cpt-hero {
        padding: 60px 0 45px;
    }

    .cpt-breadcrumb {
        font-size: 0.78rem;
        margin-bottom: 22px;
    }

    .cpt-pagination {
        margin-top: 36px;
    }

    .cpt-pagination .page-numbers {
        min-width: 38px;
        height: 38px;
        font-size: 0.85rem;
    }

    .cpt-empty {
        padding: 46px 18px;
        border-radius: 18px;
    }

    .cpt-empty__icon {
        width: 66px;
        height: 66px;
        font-size: 1.75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cpt-card,
    .cpt-pagination .page-numbers {
        transition: none !important;
        transform: none !important;
    }
}