.custom-scroll-thumb {
    --scrollbar-width: 3px;
    --scrollbar-radius: 999px;
    --scrollbar-track-color: rgba(1, 72, 185, 0.08);
    --scrollbar-track-highlight: rgba(255, 255, 255, 0.6);
    --scrollbar-thumb-color: rgba(1, 72, 185, 0.75);
    --scrollbar-thumb-hover-color: rgba(1, 72, 185, 0.95);
    --scrollbar-thumb-active-color: rgba(1, 72, 185, 1);
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb-color) var(--scrollbar-track-color);
}

.custom-scroll-thumb::-webkit-scrollbar {
    width: var(--scrollbar-width);
    height: var(--scrollbar-width);
}

.custom-scroll-thumb::-webkit-scrollbar-track {
    background: linear-gradient(180deg,
            var(--scrollbar-track-highlight) 0%,
            var(--scrollbar-track-color) 40%,
            var(--scrollbar-track-color) 100%);
    border-radius: var(--scrollbar-radius);
}

.custom-scroll-thumb::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(1, 133, 242, 0.9), rgba(0, 41, 129, 0.9));
    border-radius: var(--scrollbar-radius);
    box-shadow: 0 0 6px rgba(1, 72, 185, 0.25);
}

.custom-scroll-thumb::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--scrollbar-thumb-hover-color), rgba(0, 41, 129, 0.95));
}

.custom-scroll-thumb::-webkit-scrollbar-thumb:active {
    background: linear-gradient(180deg, var(--scrollbar-thumb-active-color), rgba(0, 41, 129, 1));
}


.card-service-content {
    border-radius: 1.5rem;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
    border: 2px solid var(--color-main);
    padding: 2rem;
    color: black;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1), 0 4px 8px rgba(0, 0, 0, 0.06);
}

.card-service-content:hover,
.card-service-content:active,
.card-service-content:focus {
    box-shadow: 0 4px 24px 0 rgba(1, 72, 185, 0.10);
    background-color: var(--color-main);
    border-color: white;
    color: white;
    transform: translateY(-4px);
}

.card-service-title {
    font-size: 1.25rem;
    line-height: 1.3;
    color: black;
    height: 3.5rem;
    transition: color 0.3s ease-in-out;
}

.card-service-content:hover .card-service-title,
.card-service-content:active .card-service-title,
.card-service-content:focus .card-service-title {
    color: white;
}

.card-service-description {
    font-size: 1rem;
    line-height: 1.5;
    color: inherit;
    transition: color 0.3s ease-in-out;
}

.card-service-content:hover .card-service-description,
.card-service-content:active .card-service-description,
.card-service-content:focus .card-service-description {
    color: white;
}

.card-service-features {
    margin-bottom: 2rem;
}

.card-features-list {
    list-style-type: disc;
    padding-left: 1.25rem;
    font-size: 0.875rem;
    color: #222;
    overflow-x: hidden;
    overflow-y: auto;
    height: 180px;
    max-height: 200px;
    transition: color 0.3s ease;
}

.card-features-list li:not(:last-child) {
    line-height: 1.4;
    margin-block-start: 0;
    margin-block-end: 1rem;
}

.card-service-content:hover .card-features-list,
.card-service-content:active .card-features-list,
.card-service-content:focus .card-features-list {
    color: white;
}

.card-service-content:hover .card-contact-btn,
.card-service-content:active .card-contact-btn,
.card-service-content:focus .card-contact-btn {
    background: linear-gradient(to bottom, white, white);
    color: var(--color-main);
}

/*=========================================
=            Pricing Card CSS            =
=========================================*/
.pricing-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: white;
    min-width: 324px;
    width: auto;
    max-width: 380px;
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--color-main);
    transition: all 0.3s ease-in-out;
    cursor: pointer;
    user-select: none;
    overflow: hidden;
}

.border_1 {
    border: 1px solid var(--color-main) !important;
}

.pricing-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-color: transparent;
    transform: translateY(-2px);
}

/* Background Logo */
.pricing-card-bg-logo {
    pointer-events: none;
    position: absolute;
    inset: 0;
    background-image: url('https://connecttech.vn/assets/client/images/connecttech-logo-final.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.05;
    z-index: 1;
}

/* Card Header */
.pricing-card-header {
    text-align: left;
    /* margin-bottom: 0.5rem; */
    height: auto;
    position: relative;
    z-index: 5;
}

.pricing-card-title {
    font-size: 1.55rem;
    font-weight: bold;
    color: rgb(17, 24, 39);
    /* margin-bottom: 0.7rem; */
    line-height: 1.3;
    cursor: default;
}

.pricing-divider {
    border: none;
    border-top: 1px solid #d1d5db;
    margin: 1rem 0;
}

/* Card Features */
.pricing-features {
    width: 100%;
    font-size: 0.875rem;
    flex: 1;
    position: relative;
    z-index: 5;
}

.pricing-features-list {
    list-style: none;
    padding-left: 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #222;
    margin: 0 0 1.5rem 0;
    height: 100%;
    min-height: 350px;
    max-height: 350px;
    overflow-y: scroll;
    padding-right: 0.5rem;
    gap: 0.75rem;
}

.pricing-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.25rem 0;
    margin-bottom: 0.75rem;
}

.pricing-feature-icon {
    width: 1rem;
    height: 1rem;
    background: #dbeafe;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.pricing-icon {
    width: 0.75rem;
    height: 0.75rem;
}

.pricing-feature-text {
    color: #374151;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.6;
    word-break: break-words;
}

/* Card Footer */
.pricing-card-footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    height: 100%;
    max-height: 104px;
    position: relative;
    z-index: 5;
}

.pricing-price-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    height: 2rem;
}

.pricing-price {
    font-size: 1.125rem;
    color: var(--color-main);
    transition: all 0.3s ease;
}

.pricing-card:hover .pricing-price {
    opacity: 0.9;
}

.pricing-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: bold;
    height: 3.5rem;
    width: 100%;
    border-radius: 37px;
    background: linear-gradient(to bottom, #0148B9, #002981);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pricing-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

@media (max-width: 576px) and (min-width: 368px) {
    .pricing-card {
        padding: 1rem;
    }
}
@media (max-width: 768px) {}

/*=========================================
=                CARD BOX                 =
=========================================*/
.box-card {
    position: relative;
    inset: 0;
    border-radius: 1rem;
    overflow: hidden;
    cursor: pointer;
    width: auto;
    min-width: 12rem;
    max-height: 20rem;
    will-change: transform;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.box-card:hover {
    transform: translateY(-4px);
}

.card-background {
    top: 0;
    left: 0;
    will-change: transform, filter;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        filter 0.3s ease-out;
}

.box-card:hover .card-background {
    transform: scale(1.05);
    filter: brightness(0.7);
}

.bg-brightness-card {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.8) 0%,
            rgba(0, 0, 0, 0.4) 50%,
            transparent 70%);
    opacity: 0;
    will-change: opacity;
    transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.box-card:hover .bg-brightness-card {
    opacity: 1;
}

.content-card {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    color: #fff;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    will-change: transform, opacity;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
        opacity 0.4s ease-out 0.1s;
}

.box-card:hover .content-card {
    transform: translateY(0);
    opacity: 1;
}

.content-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.content-card p {
    font-size: 0.875rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .box-card {
        min-width: 100%;
        height: 200px;
    }

    .content-card h3 {
        font-size: 1rem;
    }

    .content-card p {
        font-size: 0.75rem;
    }

}

/* Performance optimization for touch devices */
@media (hover: none) {
    .box-card:active .card-background {
        transform: scale(1.02);
        filter: brightness(0.8);
    }

    .box-card:active .bg-brightness-card {
        opacity: 1;
    }

    .box-card:active .content-card {
        transform: translateY(0);
        opacity: 1;
    }
}
