/* Featured Post block on the Blog page. Scoped to .mahima-featured-post so it never bleeds into other Elementor sections. */
.mahima-featured-post {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #ececec;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 40px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mahima-featured-post:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1);
}

.mahima-featured-post__image-link {
    position: relative;
    display: block;
    line-height: 0;
    overflow: hidden;
}

.mahima-featured-post__image {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.mahima-featured-post:hover .mahima-featured-post__image {
    transform: scale(1.05);
}

.mahima-featured-post__badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 1;
    background: #25377C;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 4px;
}

.mahima-featured-post__body {
    padding: 24px 28px 28px;
    font-family: "Sentinel Pro", sans-serif;
}

.mahima-featured-post__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.mahima-featured-post__category {
    color: #25377C;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.mahima-featured-post__date {
    color: #767676;
    font-size: 13px;
}

.mahima-featured-post__title {
    margin: 0 0 12px;
    font-size: 26px;
    line-height: 1.3;
}

.mahima-featured-post__title a {
    color: #232323;
    text-decoration: none;
}

.mahima-featured-post__title a:hover {
    color: #25377C;
}

.mahima-featured-post__excerpt {
    margin: 0 0 16px;
    color: #5a5a5a;
    font-size: 15px;
    line-height: 1.6;
}

.mahima-featured-post__read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #25377C;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.03em;
}

.mahima-featured-post__read-more:hover {
    text-decoration: underline;
}

@media (min-width: 768px) {
    .mahima-featured-post__title {
        font-size: 30px;
    }
}

/* Blog grid cards below: force a uniform image height so cards with differently-shaped
   photos don't stretch (via the loop-grid's "equal height" setting) and leave blank
   space above the title. */
.elementor-element-bb21b74 .elementor-widget-theme-post-featured-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

/* Grid card hover: lift + shadow, same clean-minimal treatment as the Featured card,
   plus a subtle image zoom. Scoped to this loop-grid instance and its card wrapper
   (elementor-element-c9c0ee5, shared by every repeated card) so it never affects other
   loop-grid usages elsewhere on the site. */
.elementor-element-bb21b74 .elementor-element-c9c0ee5 {
    background: #ffffff;
    border: 1px solid #ececec;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* Elementor's grid stretches items to match the row's tallest card by default
       (align-items: stretch), which left dead white space below shorter cards'
       content once they had a visible box. Each card keeps its own natural height
       instead, top-aligned in its grid cell. */
    align-self: start !important;
}

.elementor-element-bb21b74 .elementor-element-c9c0ee5:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1);
}

.elementor-element-bb21b74 .elementor-element-c9c0ee5:hover .elementor-widget-theme-post-featured-image img {
    transform: scale(1.05);
}

/* Grid card category label — styled to match the grid card's "Read More" button
   (same color/weight/size/case), overriding Elementor's own heading-title defaults
   which win over a color/font-size set on the wrapper div alone since they're more specific. */
.mahima-featured-post__category .elementor-heading-title {
    color: #25377C;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: normal;
    text-transform: none;
    margin: 0 0 8px;
}
