/* AG Card Block Styles */
.ag-card {
    padding: 80px 0;
    background-color: transparent;
    /* Assuming section bg handles main color or let it be custom */
    direction: rtl;
    font-family: 'Al-Jazeera-Arabic', sans-serif;
}

/* LTR Direction Modifier */
.ag-card--dir-ltr {
    direction: ltr;
}

.ag-card--dir-ltr .ag-card__card-header {
    flex-direction: row;
}

.ag-card--dir-ltr .ag-card__card-title,
.ag-card--dir-ltr .ag-card__card-content {
    text-align: left;
}

.ag-card--dir-ltr .ag-card__values-list {
    direction: ltr;
}

.ag-card--dir-ltr .ag-card__value-item {
    flex-direction: row;
    justify-content: flex-start;
}

.ag-card__title-wrap {
    text-align: center;
    margin-bottom: 60px;
}

.ag-card__title {
    color: #ffffff;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

.ag-card__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.ag-card__card {
    background: #121212;
    border: 1px solid #313131;
    border-radius: 30px;
    padding: 40px;
    min-height: 265px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.ag-card__card:not(.ag-card__card--info):hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.ag-card__card--info {
    background: transparent;
    border: none;
    padding: 20px 0;
}

.ag-card__card--bg-image {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    position: relative;
    overflow: hidden;
    border: none;
}

.ag-card__card--bg-image::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    background-color: var(--ag-card-overlay, rgba(0, 0, 0, 0.5));
    border-radius: inherit;
}

.ag-card__card--bg-image .ag-card__card-header,
.ag-card__card--bg-image .ag-card__card-content,
.ag-card__card--bg-image .ag-card__values-list {
    position: relative;
    z-index: 2;
}

.ag-card__card-header {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.ag-card__card-icon {
    flex-shrink: 0;
}

.ag-card__card-icon img {
    display: block;
    height: auto;
}

.ag-card__card-title {
    color: #ffffff;
    font-size: 26px;
    font-weight: 400;
    margin: 0;
}

.ag-card__card-content {
    color: #ffffff;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
}

.ag-card__values-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 20px;
}

.ag-card__value-item {
    color: #ffffff;
    font-size: 18px;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ag-card__value-item::before {
    content: "";
    width: 6px;
    height: 6px;
    background-color: #ffffff;
    /* Or use the accent color */
    border-radius: 50%;
    flex-shrink: 0;
}

.ag-card__buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.ag-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 47px;
    padding: 0 25px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 300;
    text-decoration: none;
    transition: all 0.3s ease;
}

.ag-card__btn--primary {
    background: linear-gradient(90deg, #2673B7 0%, #3192E8 100%);
    color: #ffffff;
}

.ag-card__btn--outline {
    border: 1px solid #FAB93A;
    color: #ffffff;
}

.ag-card__btn:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

/* Responsiveness */
@media (max-width: 1024px) {
    .ag-card__grid {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }

    .ag-card__title {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .ag-card {
        padding: 50px 0;
    }

    .ag-card__title {
        font-size: 30px;
    }

    .ag-card__buttons {
        flex-direction: column;
    }
}