/* =============================================
   720 Posts Widget — Custom Card Styles
   ============================================= */

/* --- Card layout: equal height + pinned read more --- */
.elementor-widget-posts .elementor-posts-container .elementor-post.elementor-grid-item {
    display: flex;
    height: 100%;
}

.elementor-widget-posts .elementor-post__card {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    width: 100%;
}

.elementor-widget-posts .elementor-post__text {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
}

.elementor-widget-posts .elementor-post__read-more,
.elementor-widget-posts .elementor-post__read-more-wrapper {
    margin-top: auto !important;
    padding-top: 12px;
    padding-bottom: 4px;
}

/* --- Thumbnail: gradient overlay for date --- */
.elementor-widget-posts .elementor-post__thumbnail__link {
    position: relative !important;
    display: block;
    overflow: hidden;
}

.elementor-widget-posts .elementor-post__thumbnail__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.6) 100%);
    pointer-events: none;
    z-index: 1;
}

/* --- Date overlay inside image --- */
.elementor-post__meta-overlay {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    padding: 10px 14px !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 500;
    z-index: 2;
    background: none !important;
    border: none !important;
}

.elementor-post__meta-overlay span {
    color: #fff !important;
}

/* Event date — green accent */
.elementor-post-event-date {
    color: #50DD84 !important;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* Published date — subtle white */
.elementor-post-published-date {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 400;
}

/* --- Category badge (pill style) --- */
[class="720-category"] {
    display: inline-block;
    padding: 0;
    text-transform: uppercase;
    font-weight: 700 !important;
    font-size: 11px;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
    line-height: 1.4;
    background: none;
    color: #25408F;
}

/* --- Title refinement --- */
.elementor-widget-posts .elementor-post__title {
    line-height: 1.3;
}

.elementor-widget-posts .elementor-post__title a {
    transition: color 0.2s ease;
}

.elementor-widget-posts .elementor-post__title a:hover {
    color: #015D7B;
}

/* --- Read more link --- */
.elementor-widget-posts .elementor-post__read-more {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.04em;
    transition: color 0.2s ease;
}

/* --- Card hover effect --- */
.elementor-widget-posts .elementor-post__card {
    transition: box-shadow 0.25s ease;
}

.elementor-widget-posts .elementor-post:hover .elementor-post__card {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

/* --- Image hover — no zoom, keep clean --- */

/* --- Featured badge --- */
[class="720-featured-icon"] {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    left: auto !important;
    bottom: auto !important;
    z-index: 3;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 4px 12px 4px 8px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #25408F;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    pointer-events: none;
}

/* --- External link indicators --- */
.elementor-widget-posts .elementor-post__read-more .fa-external-link-alt {
    font-size: 12px;
    vertical-align: middle;
    position: relative;
    top: -2px;
}

/* =============================================
   720 Archive Page — Card Grid
   ============================================= */
.720-archive-grid,
[class="720-archive-grid"] {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

@media (max-width: 1024px) {
    .720-archive-grid,
    [class="720-archive-grid"] {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .720-archive-grid,
    [class="720-archive-grid"] {
        grid-template-columns: 1fr;
    }
}

[class="720-archive-card"] {
    display: flex;
}

[class="720-archive-card"] .elementor-post__card {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    overflow: hidden;
    transition: box-shadow 0.25s ease;
}

[class="720-archive-card"] .elementor-post__card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

[class="720-archive-card"] .elementor-post__thumbnail__link {
    position: relative;
    display: block;
    overflow: hidden;
}

[class="720-archive-card"] .elementor-post__thumbnail__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.6) 100%);
    pointer-events: none;
    z-index: 1;
}

[class="720-archive-card"] .elementor-post__thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

[class="720-archive-card"] .elementor-post__text {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 16px 20px 20px;
}

[class="720-archive-card"] .elementor-post__title {
    font-size: 18px;
    line-height: 1.3;
    margin: 0 0 12px;
}

[class="720-archive-card"] .elementor-post__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

[class="720-archive-card"] .elementor-post__title a:hover {
    color: #015D7B;
}

[class="720-archive-card"] .elementor-post__read-more {
    margin-top: auto;
    padding-top: 12px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.04em;
    text-decoration: none;
    color: #015D7B;
    transition: color 0.2s ease;
}

[class="720-archive-card"] .elementor-post__meta-overlay {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    padding: 10px 14px !important;
    z-index: 2;
    background: none !important;
}

/* Archive pagination */
.720-archive-pagination,
[class="720-archive-pagination"] {
    display: flex;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 20px 40px;
}

[class="720-archive-pagination"] a {
    color: #015D7B;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 14px;
}
