/* ==========================================================================
   Ultra-Creative Luxury Real Estate Blog Cards & Button
   ========================================================================== */
:root {
    --brand-navy: #2e2a65;
    --brand-navy-dark: #1b1842;
    --brand-blue: #3b82f6;
    --text-heading: #0a0d14;
    --text-body: #525866;
    --card-border: #e2e8f0;
}

.blogs-section {
    padding: 70px 0 110px;
    background: linear-gradient(180deg, #f8fafc 0%, #edf2f7 100%);
}

/* 3-Cards Creative Grid */
.blogs-creative-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 0 auto;
}

/* Creative Framed Card */
.creative-blog-card {
    background: #ffffff;
    border-radius: 26px;
    padding: 16px;
    border: 1px solid var(--card-border);
    box-shadow: 0 10px 30px rgba(10, 13, 20, 0.05);
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    box-sizing: border-box;
}

.creative-blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 24px 50px rgba(46, 42, 101, 0.14);
    border-color: #cbd5e1;
}

/* Image Box with Internal Rounded Corners */
.blog-card-media {
    position: relative;
    height: 240px;
    border-radius: 18px;
    overflow: hidden;
    background-color: #0f172a;
}

.blog-card-media a {
    display: block;
    width: 100%;
    height: 100%;
}

.blog-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.65s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.creative-blog-card:hover .blog-card-media img {
    transform: scale(1.09);
}

/* Subtle Gradient Vignette on Image */
.blog-media-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 13, 20, 0.1) 0%, rgba(10, 13, 20, 0) 50%, rgba(10, 13, 20, 0.5) 100%);
    pointer-events: none;
}

/* Editorial Creative Date Badge */
.editorial-date-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 8px 14px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 3;
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: transform 0.3s ease;
}

.creative-blog-card:hover .editorial-date-badge {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.editorial-date-badge .date-day {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--brand-navy);
    line-height: 1;
    font-family: "Montserrat", sans-serif;
}

.editorial-date-badge .date-col {
    display: flex;
    flex-direction: column;
    border-left: 2px solid #e2e8f0;
    padding-left: 8px;
    line-height: 1.15;
}

.editorial-date-badge .date-month {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #0a0d14;
    text-transform: uppercase;
}

.editorial-date-badge .date-year {
    font-size: 0.7rem;
    font-weight: 600;
    color: #64748b;
}

/* Card Content Area */
.blog-card-content {
    padding: 22px 10px 8px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Blog Title */
.blog-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-heading);
    margin: 0 0 12px;
    transition: color 0.25s ease;
}

.blog-card-title a {
    color: inherit;
    text-decoration: none;
    display: block;
}

.creative-blog-card:hover .blog-card-title a {
    color: var(--brand-navy);
}

/* Description */
.blog-card-desc {
    font-size: 0.93rem;
    line-height: 1.65;
    color: var(--text-body);
    margin: 0 0 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

/* Subtle Divider */
.blog-card-divider {
    height: 1px;
    background: linear-gradient(90deg, #e2e8f0 0%, rgba(226, 232, 240, 0.4) 100%);
    margin-bottom: 18px;
}

/* ==========================================================================
   Creative Dynamic Action Button
   ========================================================================== */
.blog-card-footer {
    margin-top: auto;
}

.creative-read-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 6px 10px 6px 15px;
    background: linear-gradient(135deg, #f8faff 0%, #edf2fb 100%);
    border: 1.5px solid #d4def2;
    border-radius: 12px;
    color: var(--brand-navy);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-sizing: border-box;
    overflow: hidden;
    z-index: 1;
}

/* Liquid Wave Fill on Hover */
.creative-read-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: linear-gradient(135deg, #2e2a65 0%, #1a1645 100%);
    transition: width 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: -1;
    border-radius: 12px;
}

.creative-read-btn .btn-text {
    position: relative;
    z-index: 2;
    letter-spacing: 0.02em;
    transition: color 0.35s ease, transform 0.35s ease;
}

/* Arrow Bubble with Diagonal Arrow */
.creative-read-btn .btn-arrow-icon {
    position: relative;
    z-index: 2;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--brand-navy);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 10px rgba(46, 42, 101, 0.2);
    flex-shrink: 0;
}

.creative-read-btn .btn-arrow-icon svg {
    width: 16px;
    height: 16px;
    stroke: #ffffff;
    transition: transform 0.35s cubic-bezier(0.165, 0.84, 0.44, 1), stroke 0.35s ease;
}

/* Hover States (both on Card hover & direct Button hover) */
.creative-blog-card:hover .creative-read-btn::before,
.creative-read-btn:hover::before {
    width: 100%;
}

.creative-blog-card:hover .creative-read-btn,
.creative-read-btn:hover {
    border-color: var(--brand-navy);
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(46, 42, 101, 0.28);
}

.creative-blog-card:hover .creative-read-btn .btn-text,
.creative-read-btn:hover .btn-text {
    color: #ffffff;
    transform: translateX(4px);
}

.creative-blog-card:hover .creative-read-btn .btn-arrow-icon,
.creative-read-btn:hover .btn-arrow-icon {
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.creative-blog-card:hover .creative-read-btn .btn-arrow-icon svg,
.creative-read-btn:hover .btn-arrow-icon svg {
    stroke: var(--brand-navy);
    transform: translate(2px, -2px) scale(1.1);
}

/* Responsive */
@media screen and (max-width: 991px) {
    .blogs-creative-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 26px;
        padding: 0 16px;
    }
}

@media screen and (max-width: 767px) {
    .blogs-section {
        padding: 40px 0 60px;
    }

    .blogs-creative-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 0 14px;
    }

    .blog-card-media {
        height: 210px;
    }

    .creative-blog-card {
        padding: 14px;
    }

    .blog-card-content {
        padding: 18px 6px 6px;
    }
}
