/* =========================================================
   SAHADEV LATEST ARTICLES
   SCREENSHOT MATCH DESIGN
========================================================= */

.sahadev-latest-articles {
    width: 100%;
    margin: 0;
    padding: 0;
}


/* =========================================================
   GRID
========================================================= */

.sahadev-articles-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;

    width: 100%;
}


/* =========================================================
   CARD
========================================================= */

.sahadev-article-card {
    display: flex;
    flex-direction: column;

    width: 100%;
    min-width: 0;
    overflow: hidden;

    background: #fbf9f5;

    border: 1px solid #ddd4c7;
    border-radius: 16px;

    text-decoration: none !important;

    box-shadow: none;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}


/* =========================================================
   CARD HOVER
========================================================= */

.sahadev-article-card:hover {
    transform: translateY(-3px);

    border-color: #d5c9ba;

    box-shadow:
        0 14px 32px rgba(61, 42, 28, 0.09);
}


/* =========================================================
   IMAGE
========================================================= */

.sahadev-article-image-wrap {
    position: relative;

    width: 100%;

    aspect-ratio: 16 / 9;

    overflow: hidden;

    background: #e8ded2;

    flex-shrink: 0;
}


.sahadev-article-image {
    display: block;

    width: 100% !important;
    height: 100% !important;

    max-width: none !important;

    object-fit: cover;
    object-position: center;

    transition: transform 0.45s ease;
}


/* =========================================================
   IMAGE HOVER
========================================================= */

.sahadev-article-card:hover .sahadev-article-image {
    transform: scale(1.035);
}


/* =========================================================
   NO IMAGE
========================================================= */

.sahadev-article-no-image {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    background: #3c2519;

    color: #e1a925;

    font-family: 'Cinzel', serif;
    font-size: 40px;
}


/* =========================================================
   CONTENT
========================================================= */

.sahadev-article-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 27px 28px 28px;
}


/* =========================================================
   META
========================================================= */

.sahadev-article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 8px 12px;

    margin: 0 0 17px;

    color: #755f52;

    font-family: 'Inter', sans-serif;

    font-size: 12px;
    font-weight: 400;

    line-height: 18px;
}


/* =========================================================
   CATEGORY PILL
========================================================= */

.sahadev-article-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 24px;

    padding: 3px 12px;

    border-radius: 20px;

    background: #eee2d9;

    color: #963b30 !important;

    font-family: 'Inter', sans-serif;

    font-size: 12px;
    font-weight: 400;

    line-height: 17px;

    white-space: nowrap;
}


/* =========================================================
   DATE / READING
========================================================= */

.sahadev-article-info {
    display: inline-flex;
    align-items: center;

    gap: 5px;

    color: #755f52;

    font-family: 'Inter', sans-serif;

    font-size: 12px;
    font-weight: 400;

    line-height: 18px;

    white-space: nowrap;
}


/* =========================================================
   META ICON
========================================================= */

.sahadev-article-info svg {
    display: block;

    width: 13px;
    height: 13px;

    flex-shrink: 0;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.5;

    stroke-linecap: round;
    stroke-linejoin: round;
}


/* =========================================================
   TITLE
========================================================= */

.sahadev-article-title {
    display: -webkit-box;

    overflow: hidden;

    margin: 0 0 14px;

    color: #422a20 !important;

    font-family: 'Cinzel', serif;

    font-size: 21px;
    font-weight: 500;

    line-height: 1.47;

    letter-spacing: 0;

    text-transform: none;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;

    transition: color 0.25s ease;
}


/* =========================================================
   TITLE HOVER
========================================================= */

.sahadev-article-card:hover .sahadev-article-title {
    color: #8f342b !important;
}


/* =========================================================
   EXCERPT
========================================================= */

.sahadev-article-excerpt {
    display: -webkit-box;

    overflow: hidden;

    margin: 0;

    color: #77665d;

    font-family: 'Inter', sans-serif;

    font-size: 15px;
    font-weight: 400;

    line-height: 1.7;

    letter-spacing: 0;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}


/* =========================================================
   FOOTER
========================================================= */

.sahadev-article-footer {
    display: flex;
    align-items: center;

    margin-top: auto;

    padding-top: 27px;
}


/* =========================================================
   READ ARTICLE
========================================================= */

.sahadev-article-read {
    display: inline-flex;
    align-items: center;

    color: #963b30 !important;

    font-family: 'Inter', sans-serif;

    font-size: 14px;
    font-weight: 600;

    line-height: 20px;

    text-decoration: none !important;

    white-space: nowrap;

    transition: color 0.25s ease;
}


/* =========================================================
   ARROW
========================================================= */

.sahadev-article-arrow {
    display: inline-block;

    margin-left: 8px;

    color: #963b30;

    font-family: Arial, sans-serif;

    font-size: 18px;
    font-weight: 400;

    line-height: 1;

    transition: transform 0.25s ease;
}


.sahadev-article-card:hover .sahadev-article-arrow {
    transform: translateX(4px);
}


/* =========================================================
   DESKTOP - SCREENSHOT SIZE
========================================================= */

@media (min-width: 992px) {

    .sahadev-article-title {
        font-size: 21px;
        line-height: 1.48;
    }

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991px) {

    .sahadev-articles-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }

    .sahadev-article-content {
        padding: 23px 22px 24px;
    }

    .sahadev-article-title {
        font-size: 19px;
        line-height: 1.45;
    }

    .sahadev-article-excerpt {
        font-size: 14px;
        line-height: 1.7;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .sahadev-articles-grid {
        grid-template-columns: 1fr;

        gap: 20px;
    }


    .sahadev-article-card {
        border-radius: 14px;
    }


    .sahadev-article-image-wrap {
        aspect-ratio: 16 / 9;
    }


    .sahadev-article-content {
        padding: 21px 19px 22px;
    }


    .sahadev-article-meta {
        gap: 7px 9px;

        margin-bottom: 14px;

        font-size: 11px;
    }


    .sahadev-article-tag {
        min-height: 23px;

        padding: 3px 10px;

        font-size: 11px;
    }


    .sahadev-article-info {
        font-size: 11px;
    }


    .sahadev-article-title {
        margin-bottom: 11px;

        font-size: 18px;

        line-height: 1.45;
    }


    .sahadev-article-excerpt {
        font-size: 14px;

        line-height: 1.7;

        -webkit-line-clamp: 4;
    }


    .sahadev-article-footer {
        padding-top: 23px;
    }


    .sahadev-article-read {
        font-size: 13px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .sahadev-article-content {
        padding: 18px 16px 20px;
    }


    .sahadev-article-title {
        font-size: 17px;
    }

}