/* ==================================================
   AFAG ALMAJD - TANK CARDS
   ================================================== */

.afag-tanks-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;

    width: 100%;
    max-width: 1250px;
    margin: 0 auto;
}


.afag-tank-card {
    overflow: hidden;

    background: #ffffff;

    border: 1px solid #e4edf1;
    border-radius: 16px;

    box-shadow: 0 8px 30px rgba(16, 42, 67, 0.07);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


.afag-tank-card:hover {
    transform: translateY(-6px);

    box-shadow:
        0 16px 40px rgba(16, 42, 67, 0.12);
}


/* -----------------------------------------
   IMAGE
   ----------------------------------------- */

.afag-tank-image {
    display: block;

    overflow: hidden;

    aspect-ratio: 4 / 3;

    background: #f3f7f9;
}


.afag-tank-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.5s ease;
}


.afag-tank-card:hover
.afag-tank-image img {
    transform: scale(1.05);
}


.afag-tank-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    padding: 20px;

    color: #607481;

    font-size: 15px;
    font-weight: 600;

    text-align: center;
}


/* -----------------------------------------
   CONTENT
   ----------------------------------------- */

.afag-tank-content {
    padding: 25px;
}


.afag-tank-title {
    margin: 0 0 12px;

    font-size: 21px;
    line-height: 1.3;
}


.afag-tank-title a {
    color: #102a43;

    text-decoration: none;
}


.afag-tank-title a:hover {
    color: #159bd3;
}


.afag-tank-description {
    margin: 0 0 20px;

    color: #607481;

    font-size: 15px;
    line-height: 1.7;
}


/* -----------------------------------------
   VIEW TANK LINK
   ----------------------------------------- */

.afag-tank-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    color: #159bd3;

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 0.5px;

    text-decoration: none;
    text-transform: uppercase;
}


.afag-tank-link span {
    transition: transform 0.2s ease;
}


.afag-tank-link:hover span {
    transform: translateX(4px);
}


/* -----------------------------------------
   TABLET
   ----------------------------------------- */

@media (max-width: 991px) {

    .afag-tanks-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 22px;
    }
}


/* -----------------------------------------
   MOBILE
   ----------------------------------------- */

@media (max-width: 600px) {

    .afag-tanks-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .afag-tank-content {
        padding: 21px;
    }
}