/* =========================================================
   Company Home - Cards Section Styles (مستقل عن باقي السكاشن)
   ========================================================= */

:root {
    --ch-main: #222168;
    --ch-second: #6bbdcd;
    --ch-white: #ffffff;
    --ch-text: #4a4a5a;
    --ch-font: 'Plus Jakarta Sans', sans-serif;
}

.ch-cards * {
    box-sizing: border-box;
}

.ch-cards {
    direction: ltr;
    font-family: var(--ch-font);
    padding: 70px 32px;

    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.ch-cards.ch-in-view {
    opacity: 1;
    transform: translateY(0);
}

.ch-cards__grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.ch-card {
    background: var(--ch-white);
    border: 1px solid #eef0f4;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(34, 33, 104, 0.06);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    display: flex;
    flex-direction: column;
}

.ch-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(34, 33, 104, 0.12);
}

.ch-card__image-wrap {
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.ch-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.ch-card:hover .ch-card__image {
    transform: scale(1.06);
}

.ch-card__body {
    padding: 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ch-card__label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--ch-second);
    margin-bottom: 10px;
}

.ch-card__title {
    font-size: 21px;
    font-weight: 700;
    color: var(--ch-main);
    margin: 0 0 12px;
    position: relative;
    padding-bottom: 12px;
}

.ch-card__title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 34px;
    height: 3px;
    background: var(--ch-second);
    border-radius: 2px;
}

.ch-card__desc {
    color: var(--ch-text);
    font-size: 14px;
    line-height: 1.75;
    margin: 0 0 20px;
    flex: 1;
}

.ch-card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ch-main);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    width: fit-content;
}

.ch-card__link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1.5px solid var(--ch-second);
    color: var(--ch-second);
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.ch-card__link:hover .ch-card__link-icon {
    background: var(--ch-second);
    color: var(--ch-white);
    transform: translateX(3px);
}

/* ---------- Responsive: 2 في الصف كمبيوتر - 1 في الصف موبايل ---------- */
@media (max-width: 767px) {
    .ch-cards__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .ch-cards {
        padding: 48px 20px;
    }
}
