/* ===================================
   Growth Centers
   Organizational Color: #013f6e
=================================== */

.growth-network-section {
    --growth-primary: #013f6e;
    --growth-primary-light: #0a6da3;
    --growth-primary-soft: #e8f2f8;
    --growth-primary-border: #c8dce8;
    --growth-text: #14384f;
    --growth-muted: #666666;
    position: relative;
    isolation: isolate;
    direction: rtl;
    overflow: hidden;
    padding: 30px 0;
    color: var(--growth-text);
    background: radial-gradient( circle at 82% 20%, rgba(1, 63, 110, 0.11), transparent 250px ), linear-gradient( 135deg, #f8fbfd 0%, #edf5f9 55%, #ffffff 100% );
}

.growth-background-pattern {
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.32;
    pointer-events: none;
    background-image: radial-gradient( rgba(1, 63, 110, 0.18) 0.7px, transparent 0.7px );
    background-size: 20px 20px;
    mask-image: linear-gradient( 90deg, transparent, #000 25%, #000 75%, transparent );
}

/* Information */

.growth-info {
    position: relative;
    z-index: 5;
    max-width: 410px;
}

.growth-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 7px 12px;
    color: var(--growth-primary);
    font-size: 12px;
    font-weight: 800;
    border: 1px solid rgba(1, 63, 110, 0.12);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.75);
}

.growth-eyebrow-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--growth-primary);
    box-shadow: 0 0 0 4px rgba(1, 63, 110, 0.10);
}

.growth-title {
    margin: 0 0 10px;
    color: var(--growth-primary);
    font-size: clamp(24px, 2.4vw, 34px);
    font-weight: 900;
    line-height: 1.55;
    letter-spacing: -0.7px;
}

    .growth-title span {
        display: block;
        position: relative;
        color: var(--growth-primary-light);
    }

        .growth-title span::after {
            content: "";
            display: block;
            width: 65px;
            height: 3px;
            margin-top: 7px;
            border-radius: 4px;
            background: linear-gradient( 90deg, var(--growth-primary-light), var(--growth-primary) );
        }

.growth-description {
    max-width: 390px;
    margin: 0 0 15px;
    color: var(--growth-muted);
    font-size: 13px;
    line-height: 1.9;
}

/* Active centers count */

.growth-count-box {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding: 8px 13px;
    border: 1px solid rgba(1, 63, 110, 0.10);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.80);
    box-shadow: 0 8px 25px rgba(1, 63, 110, 0.06);
}

.growth-count-icon {
    display: flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    border-radius: 10px;
    background: var(--growth-primary);
}

    .growth-count-icon svg {
        width: 19px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.7;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

.growth-count-box strong,
.growth-count-box span {
    display: block;
}

.growth-count-box strong {
    color: var(--growth-primary);
    font-size: 18px;
    font-weight: 900;
    line-height: 1.2;
}

.growth-count-box span {
    margin-top: 2px;
    color: var(--growth-muted);
    font-size: 10px;
    font-weight: 700;
}

/* Selected center */

.selected-center-card {
    min-height: 95px;
    padding: 14px 16px;
    border: 1px solid rgba(1, 63, 110, 0.11);
    border-radius: 17px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 15px 38px rgba(1, 63, 110, 0.09);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

    .selected-center-card.is-changing {
        opacity: 0.45;
        transform: translateY(2px);
    }

    .selected-center-card > span {
        display: block;
        margin-bottom: 7px;
        color: var(--growth-primary-light);
        font-size: 10px;
        font-weight: 800;
    }

    .selected-center-card strong {
        display: block;
        color: var(--growth-primary);
        font-size: 13px;
        font-weight: 900;
        line-height: 1.85;
    }

.growth-help {
    align-items: center;
    gap: 7px;
    margin: 10px 4px 0 0;
    color: #666666;
    font-size: 10px;
}

    .growth-help span {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: var(--growth-primary-light);
    }

/* Network */

.growth-stage {
    position: relative;
    width: min(100%, 470px);
    aspect-ratio: 1;
    margin-inline: auto;
}

    .growth-stage::before {
        content: "";
        position: absolute;
        inset: 18%;
        border-radius: 50%;
        background: radial-gradient( circle, rgba(1, 63, 110, 0.12), rgba(1, 63, 110, 0.03) 58%, transparent 72% );
    }

/* Orbits */

.growth-orbit {
    position: absolute;
    z-index: 0;
    border-radius: 50%;
    pointer-events: none;
}

.growth-orbit-outer {
    inset: 7%;
    border: 1px dashed rgba(1, 63, 110, 0.20);
    animation: growthOrbitRotate 55s linear infinite;
}

.growth-orbit-inner {
    display: none;
    inset: 22%;
    border: 1px solid rgba(1, 63, 110, 0.11);
    animation: growthOrbitReverse 40s linear infinite;
}

.growth-stage.has-two-rings .growth-orbit-inner {
    display: block;
}

.growth-orbit-outer::before,
.growth-orbit-inner::before {
    content: "";
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--growth-primary-light);
    box-shadow: 0 0 0 5px rgba(1, 63, 110, 0.08);
}

.growth-orbit-outer::before {
    top: 14%;
    left: 4%;
}

.growth-orbit-inner::before {
    right: 20%;
    bottom: 1%;
}

/* Lines */

.growth-connections {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

    .growth-connections line {
        stroke: rgba(1, 63, 110, 0.25);
        stroke-width: 0.18;
        stroke-dasharray: 0.7 1.3;
    }

/* Center */

.growth-core {
    position: absolute;
    z-index: 3;
    top: 50%;
    left: 50%;
    display: flex;
    width: 120px;
    height: 120px;
    padding: 15px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #ffffff;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.50);
    border-radius: 50%;
    background: linear-gradient( 145deg, var(--growth-primary-light), var(--growth-primary) );
    box-shadow: 0 18px 40px rgba(1, 63, 110, 0.25), inset 0 1px rgba(255, 255, 255, 0.28);
    transform: translate(-50%, -50%);
}

    .growth-core::before {
        content: "";
        position: absolute;
        inset: -7px;
        border: 1px solid rgba(1, 63, 110, 0.20);
        border-radius: 50%;
    }

.growth-core-icon {
    display: flex;
    width: 34px;
    height: 34px;
    margin-bottom: 7px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.14);
}

    .growth-core-icon svg {
        width: 23px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.7;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

.growth-core strong {
    font-size: 13px;
    font-weight: 900;
}

.growth-core small {
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 8px;
    line-height: 1.5;
}

/* Nodes */

.growth-node {
    position: absolute;
    z-index: 4;
    top: var(--y);
    left: var(--x);
    display: flex;
    width: 76px;
    height: 76px;
    padding: 9px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 2px;
    font-family: inherit;
    color: var(--growth-text);
    text-align: center;
    cursor: pointer;
    border: 1px solid var(--growth-primary-border);
    border-radius: 50%;
    outline: none;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 9px 23px rgba(1, 63, 110, 0.12), inset 0 0 0 3px rgba(255, 255, 255, 0.85);
    transform: translate(-50%, -50%);
    transition: transform 0.22s ease, color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

    .growth-node::before {
        content: "";
        position: absolute;
        inset: 3px;
        border: 1px solid rgba(1, 63, 110, 0.18);
        border-radius: 50%;
    }

.growth-node-number {
    position: relative;
    color: var(--growth-primary-light);
    font-size: 8px;
    font-weight: 900;
}

.growth-node-text {
    position: relative;
    overflow: hidden;
    display: -webkit-box;
    max-width: 62px;
    color: inherit;
    font-size: 9px;
    font-weight: 800;
    line-height: 1.45;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.growth-node:hover,
.growth-node:focus-visible,
.growth-node.is-active {
    z-index: 7;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.80);
    background: linear-gradient( 145deg, var(--growth-primary-light), var(--growth-primary) );
    box-shadow: 0 15px 30px rgba(1, 63, 110, 0.26);
    transform: translate(-50%, -50%) scale(1.08);
}

    .growth-node:hover::before,
    .growth-node:focus-visible::before,
    .growth-node.is-active::before {
        border-color: rgba(255, 255, 255, 0.27);
    }

    .growth-node:hover .growth-node-number,
    .growth-node:focus-visible .growth-node-number,
    .growth-node.is-active .growth-node-number {
        color: rgba(255, 255, 255, 0.75);
    }

/* More than 12 centers */

.growth-stage.is-dense .growth-node {
    width: 67px;
    height: 67px;
    padding: 7px;
}

.growth-stage.is-dense .growth-node-text {
    max-width: 55px;
    font-size: 8px;
}

/* Empty state */

.growth-empty {
    position: absolute;
    z-index: 8;
    right: 50%;
    bottom: 5%;
    padding: 8px 13px;
    color: var(--growth-muted);
    font-size: 11px;
    border: 1px solid var(--growth-primary-border);
    border-radius: 10px;
    background: #ffffff;
    transform: translateX(50%);
}

/* Animations */

@keyframes growthOrbitRotate {
    to {
        transform: rotate(360deg);
    }
}

@keyframes growthOrbitReverse {
    to {
        transform: rotate(-360deg);
    }
}

/* Tablet */

@media (max-width: 991.98px) {
    .growth-network-section {
        padding: 27px 0;
    }

    .growth-stage {
        width: min(100%, 420px);
    }

    .growth-core {
        width: 108px;
        height: 108px;
    }

    .growth-node {
        width: 69px;
        height: 69px;
        padding: 7px;
    }

    .growth-node-text {
        max-width: 55px;
        font-size: 8px;
    }
}

/* Mobile */

@media (max-width: 767.98px) {
    .growth-network-section {
        padding: 28px 0;
    }

    .growth-info {
        max-width: 100%;
    }

    .growth-title {
        font-size: 25px;
    }

    .selected-center-card {
        display: none;
    }

    .growth-stage {
        display: grid;
        width: 100%;
        aspect-ratio: auto;
        margin-top: 8px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

        .growth-stage::before,
        .growth-orbit,
        .growth-connections {
            display: none !important;
        }

    .growth-core {
        position: relative;
        top: auto;
        left: auto;
        width: 105px;
        height: 105px;
        margin: 0 auto 12px;
        grid-column: 1 / -1;
        transform: none;
    }

    .growth-node,
    .growth-stage.is-dense .growth-node {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        height: auto;
        min-height: 58px;
        padding: 9px 7px;
        border-radius: 13px;
        transform: none;
    }

        .growth-node::before {
            inset: 3px;
            border-radius: 10px;
        }

    .growth-node-text,
    .growth-stage.is-dense .growth-node-text {
        display: block;
        max-width: 100%;
        font-size: 10px;
        line-height: 1.55;
        -webkit-line-clamp: initial;
    }

    .growth-node:hover,
    .growth-node:focus-visible,
    .growth-node.is-active {
        transform: translateY(-2px);
    }

    .growth-empty {
        position: relative;
        right: auto;
        bottom: auto;
        grid-column: 1 / -1;
        text-align: center;
        transform: none;
    }
}

/* Very small phones */

@media (max-width: 370px) {
    .growth-stage {
        grid-template-columns: 1fr;
    }

    .growth-core {
        grid-column: 1;
    }
    .growth-particle-track {
        display: none;
    }
}

/* Accessibility */

@media (prefers-reduced-motion: reduce) {
    .growth-orbit {
        animation: none !important;
    }

    .growth-node,
    .selected-center-card {
        transition: none !important;
    }
    .growth-particle-track {
        animation: none !important;
    }
}
/* ===================================
   Animated Orbit Particles
=================================== */

/*
 * حذف نقطه قبلی متصل به مدار
 */
.growth-orbit-outer::before,
.growth-orbit-inner::before {
    display: none;
}

.growth-particle-track {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    aspect-ratio: 1;
    border-radius: 50%;
    pointer-events: none;
    transform-origin: center;
}

/* توپ اول: مدار بیرونی */

.growth-particle-track-outer {
    width: 91%;
    animation: growthParticleOuter 11s linear infinite;
}

    .growth-particle-track-outer span {
        position: absolute;
        top: 50%;
        right: -4px;
        width: 9px;
        height: 9px;
        border: 2px solid rgba(255, 255, 255, 0.85);
        border-radius: 50%;
        background: #013f6e;
        box-shadow: 0 0 0 5px rgba(1, 63, 110, 0.10), 0 4px 10px rgba(1, 63, 110, 0.30);
        transform: translateY(-50%);
    }

/* توپ دوم: مدار داخلی */

.growth-particle-track-inner {
    width: 57%;
    animation: growthParticleInner 7.5s linear infinite;
}

    .growth-particle-track-inner span {
        position: absolute;
        top: 50%;
        right: -3px;
        width: 7px;
        height: 7px;
        border: 1px solid rgba(255, 255, 255, 0.90);
        border-radius: 50%;
        background: #0a6da3;
        box-shadow: 0 0 0 4px rgba(10, 109, 163, 0.10), 0 3px 8px rgba(1, 63, 110, 0.25);
        transform: translateY(-50%);
    }

/*
 * توپ بیرونی ساعت‌گرد حرکت می‌کند.
 */
@keyframes growthParticleOuter {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/*
 * توپ داخلی خلاف ساعت‌گرد و سریع‌تر حرکت می‌کند.
 */
@keyframes growthParticleInner {
    from {
        transform: translate(-50%, -50%) rotate(360deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(0deg);
    }
}
/* ===================================
   Mobile Selected Center
=================================== */

.growth-mobile-selected {
    display: none;
}

/* فقط در موبایل نمایش داده می‌شود */

@media (max-width: 767.98px) {

    .growth-mobile-selected:not([hidden]) {
        position: relative;
        display: flex;
        grid-column: 1 / -1;
        padding: 13px 15px;
        margin: 3px 0 6px;
        flex-direction: column;
        gap: 5px;
        border: 1px solid rgba(1, 63, 110, 0.15);
        border-radius: 14px;
        background: linear-gradient( 135deg, #ffffff, #edf5f9 );
        box-shadow: 0 10px 25px rgba(1, 63, 110, 0.10);
        animation: growthMobileDetailShow 0.25s ease;
    }

    .growth-mobile-selected::before {
        content: "";
        position: absolute;
        top: 0;
        right: 16px;
        left: 16px;
        height: 2px;
        border-radius: 0 0 4px 4px;
        background: linear-gradient( 90deg, transparent, #0a6da3, #013f6e, transparent );
    }

    .growth-mobile-selected-label {
        color: #0a6da3;
        font-size: 9px;
        font-weight: 800;
    }

    .growth-mobile-selected strong {
        color: #013f6e;
        font-size: 11px;
        font-weight: 900;
        line-height: 1.8;
    }
}

@keyframes growthMobileDetailShow {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* ===================================
              Slider
=================================== */

.hero-slider-layout {
    height: clamp(430px, 41.67vw, 800px);
    overflow: hidden;
}

    .hero-slider-layout > .swiper,
    .hero-slider-layout .swiper-wrapper,
    .hero-slider-layout .swiper-slide,
    .hero-slider-layout .hero-slide,
    .hero-slider-layout .hero-slider-image {
        width: 100%;
        height: 100%;
    }

        .hero-slider-layout .hero-slider-image img {
            display: block;
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center center;
        }

@media (max-width: 767.98px) {
    .hero-slider-layout {
        height: clamp(280px, 70vw, 420px);
    }

        .hero-slider-layout .hero-slider-image img {
            object-position: center center;
        }
}
@media (max-width: 767.98px) {
    .hero-slider-layout .hero-slider-image img {
        object-position: 78% center;
    }
}

/* ===================================
   Resident Companies
=================================== */

.resident-companies-section {
    --company-primary: #013f6e;
    --company-primary-light: #0a6fa8;
    --company-primary-dark: #002c4d;
    --company-soft: #e9f2f7;
    --company-text: #12384f;
    --company-muted: #666666;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 55px 0 45px;
    direction: rtl;
    background: radial-gradient( circle at 90% 15%, rgba(1, 63, 110, 0.12), transparent 300px ), radial-gradient( circle at 5% 95%, rgba(10, 111, 168, 0.08), transparent 300px ), linear-gradient( 135deg, #f8fbfd 0%, #eef5f9 55%, #ffffff 100% );
}

    .resident-companies-section::before {
        content: "";
        position: absolute;
        z-index: -1;
        top: -170px;
        left: -150px;
        width: 360px;
        height: 360px;
        border: 1px solid rgba(1, 63, 110, 0.08);
        border-radius: 50%;
        box-shadow: 0 0 0 60px rgba(1, 63, 110, 0.025), 0 0 0 120px rgba(1, 63, 110, 0.015);
    }

.company-section-pattern {
    position: absolute;
    z-index: -2;
    inset: 0;
    opacity: 0.3;
    pointer-events: none;
    background-image: radial-gradient( rgba(1, 63, 110, 0.18) 0.7px, transparent 0.7px );
    background-size: 21px 21px;
    mask-image: linear-gradient( 90deg, transparent, #000 25%, #000 75%, transparent );
}

/* Section header */

.company-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 25px;
}

.company-header-content {
    max-width: 700px;
}

.company-section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    padding: 6px 11px;
    color: var(--company-primary);
    font-size: 11px;
    font-weight: 800;
    border: 1px solid rgba(1, 63, 110, 0.12);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.75);
}

.company-eyebrow-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--company-primary);
    box-shadow: 0 0 0 4px rgba(1, 63, 110, 0.10);
}

.company-section-title {
    margin: 0 0 6px;
    color: var(--company-primary-dark);
    font-size: clamp(26px, 2.7vw, 39px);
    font-weight: 900;
    line-height: 1.5;
    letter-spacing: -0.8px;
}

    .company-section-title span {
        color: var(--company-primary-light);
    }

.company-section-description {
    margin: 0;
    color: var(--company-muted);
    font-size: 13px;
    line-height: 1.9;
}

/* Slider navigation */

.company-slider-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.company-slider-button {
    display: flex;
    width: 43px;
    height: 43px;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    color: var(--company-primary);
    border: 1px solid rgba(1, 63, 110, 0.14);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 8px 22px rgba(1, 63, 110, 0.08);
    transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

    .company-slider-button svg {
        width: 20px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .company-slider-button:hover {
        color: #ffffff;
        border-color: var(--company-primary);
        background: var(--company-primary);
        transform: translateY(-2px);
    }

    .company-slider-button.swiper-button-disabled {
        opacity: 0.35;
        cursor: default;
        transform: none;
    }

/* Swiper */

.companyCategorySwiper {
    padding: 5px 4px 48px;
    overflow: hidden;
}

    .companyCategorySwiper .swiper-slide {
        height: auto;
    }

/* Category card */

.company-category-card {
    position: relative;
    display: block;
    height: 315px;
    overflow: hidden;
    color: #ffffff;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 23px;
    background: var(--company-primary-dark);
    box-shadow: 0 14px 34px rgba(1, 63, 110, 0.15);
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .company-category-card:focus-visible {
        outline: 3px solid rgba(10, 111, 168, 0.35);
        outline-offset: 3px;
    }

.company-category-image {
    position: absolute;
    inset: 0;
}

    .company-category-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transform: scale(1.01);
        transition: transform 0.65s cubic-bezier( 0.2, 0.75, 0.25, 1 );
    }

.company-category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( 180deg, rgba(0, 27, 48, 0.18) 0%, rgba(0, 31, 55, 0.24) 35%, rgba(0, 29, 51, 0.92) 100% );
    transition: background 0.3s ease;
}

.company-category-card::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient( 90deg, transparent, #1b95cf, #ffffff, transparent );
    opacity: 0;
    transform: scaleX(0.4);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Card header */

.company-card-header {
    position: absolute;
    z-index: 3;
    top: 14px;
    right: 14px;
    left: 14px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.company-card-number {
    display: inline-flex;
    width: 35px;
    height: 35px;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 10px;
    font-weight: 900;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 11px;
    background: rgba(0, 35, 62, 0.55);
    backdrop-filter: blur(8px);
}

.company-card-count {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 9px;
    color: #ffffff;
    font-size: 9px;
    font-weight: 800;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50px;
    background: rgba(0, 35, 62, 0.58);
    backdrop-filter: blur(8px);
}

    .company-card-count svg {
        width: 14px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

/* Card content */

.company-card-content {
    position: absolute;
    z-index: 3;
    right: 18px;
    bottom: 17px;
    left: 18px;
}

.company-card-label {
    display: block;
    margin-bottom: 5px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 9px;
    font-weight: 700;
}

.company-card-content h3 {
    overflow: hidden;
    display: -webkit-box;
    min-height: 55px;
    margin: 0 0 9px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.8;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.company-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 10px;
    font-weight: 800;
}

    .company-card-link svg {
        width: 17px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
        transition: transform 0.25s ease;
    }

/* Card hover */

.company-category-card:hover {
    color: #ffffff;
    box-shadow: 0 20px 42px rgba(1, 63, 110, 0.24);
    transform: translateY(-6px);
}

    .company-category-card:hover
    .company-category-image img {
        transform: scale(1.09);
    }

    .company-category-card:hover
    .company-category-overlay {
        background: linear-gradient( 180deg, rgba(0, 27, 48, 0.10) 0%, rgba(0, 31, 55, 0.25) 35%, rgba(0, 29, 51, 0.97) 100% );
    }

    .company-category-card:hover::after {
        opacity: 1;
        transform: scaleX(1);
    }

    .company-category-card:hover
    .company-card-link svg {
        transform: translateX(-4px);
    }

/* Pagination */

.company-swiper-pagination {
    bottom: 5px !important;
}

.companyCategorySwiper
.swiper-pagination-bullet {
    width: 7px;
    height: 7px;
    opacity: 0.25;
    background: var(--company-primary);
    transition: width 0.25s ease;
}

.companyCategorySwiper
.swiper-pagination-bullet-active {
    width: 25px;
    opacity: 1;
    border-radius: 5px;
}

/* Empty state */

.company-empty-state {
    padding: 35px 20px;
    text-align: center;
    color: var(--company-muted);
    border: 1px dashed rgba(1, 63, 110, 0.20);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.72);
}

.company-empty-icon {
    display: flex;
    width: 48px;
    height: 48px;
    margin: 0 auto 10px;
    align-items: center;
    justify-content: center;
    color: var(--company-primary);
    border-radius: 14px;
    background: var(--company-soft);
}

    .company-empty-icon svg {
        width: 25px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.7;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

.company-empty-state strong {
    font-size: 12px;
}

/* Tablet */

@media (max-width: 991.98px) {
    .resident-companies-section {
        padding: 45px 0 35px;
    }

    .company-category-card {
        height: 300px;
    }
}

/* Mobile */

@media (max-width: 767.98px) {
    .resident-companies-section {
        padding: 35px 0 25px;
    }

    .company-section-header {
        align-items: center;
        margin-bottom: 18px;
    }

    .company-section-title {
        font-size: 25px;
        line-height: 1.55;
    }

        .company-section-title span {
            display: block;
        }

    .company-section-description {
        font-size: 11px;
    }

    .company-slider-button {
        width: 38px;
        height: 38px;
        border-radius: 11px;
    }

        .company-slider-button svg {
            width: 17px;
        }

    .company-category-card {
        height: 290px;
        border-radius: 20px;
    }

    .company-card-content h3 {
        font-size: 14px;
    }
}

@media (max-width: 450px) {
    .company-section-header {
        align-items: flex-start;
    }

    .company-section-description {
        max-width: 260px;
    }

    .company-slider-controls {
        margin-top: 5px;
    }
}

/* Reduced Motion */

@media (prefers-reduced-motion: reduce) {
    .company-category-card,
    .company-category-image img,
    .company-card-link svg,
    .company-slider-button {
        transition: none !important;
    }
}