/* ================================
   LATEST BLOGS - PIXEL PERFECT
   Frame: 1920px
   Container: max 1215px
   ================================ */

/* Section Heading */
.latest-blogs-heading {
    text-transform: uppercase;
}

/* Main Layout */
.latest-blogs-container,
.all-blogs-container {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: clamp(1rem, 2vw, 2rem);
    /* max 32px */
}

/* ================================
   FEATURED BLOG (LEFT)
   ================================ */
.latest-blog-feature {
    flex: 0 0 50%;
    max-width: 50%;
    display: flex;
    flex-direction: column;
    gap: clamp(0.75rem, 1.5vw, 1.25rem);
    min-width: 0;
}

.latest-blog-feature-image {
    width: 100%;
    height: clamp(12rem, 20vw, 15rem);
    /* max 240px */
    border-radius: 1rem;
    overflow: hidden;
    background-color: #dbeafe;
}

.latest-blog-feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.latest-blog-feature-content {
    display: flex;
    flex-direction: column;
    gap: clamp(0.5rem, 1vw, 0.75rem);
}

/* Meta */
.latest-blog-meta {
    font-size: 0.875rem;
    font-weight: 500;
    color: #FF8674;
}

/* Featured Title */
:is(.latest-blogs-container, .all-blogs-container) .latest-blog-title {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    /* max 24px */
    line-height: 1.25;
    letter-spacing: -0.01em;
    margin: 0;
    font-weight: 700;
    margin-bottom: 0;
}

/* Featured Description */
.latest-blog-description {
    font-size: clamp(0.8125rem, 1.5vw, 1rem);
    line-height: 1.6;
    color: #6b7280;
}

/* ================================
   SIDEBAR (RIGHT)
   ================================ */
.latest-blogs-sidebar {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: clamp(1rem, 2vw, 1.5rem);
    min-width: 0;
}

/* Sidebar Card */
.latest-blog-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    /* 16px */
}


/* Sidebar Image */
.latest-blog-card-image {
    flex: 0 0 clamp(18rem, 22vw, 20rem);
    /* controls width */
    aspect-ratio: 3 / 2;
    /* ≈ 320 × 212 */
    max-height: 13.125rem;
    /* 210px max */
    border-radius: 1rem;
    overflow: hidden;
    background-color: #bfdbfe;
}

.latest-blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Sidebar Content */
.latest-blog-card-content {
    display: flex;
    flex-direction: column;
    gap: clamp(0.375rem, 0.75vw, 0.5rem);
}

/* Sidebar Title */
.latest-blog-card-title {
    font-size: 1.125rem;
    /* 18px */
    line-height: 1.35;
    letter-spacing: -0.005em;
    margin: 0;
    font-weight: 700;
}

/* Sidebar Description */
.latest-blog-card-description {
    font-size: clamp(0.8125rem, 1.4vw, 1rem);
    line-height: 1.5;
    color: #6b7280;
}

/* ================================
   TAGS
   ================================ */
.latest-blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.latest-blog-tag {
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 999px;
    line-height: 1.2;
    transition: all 0.2s ease;
}

/* Alternating Tag Colors */
.latest-blog-tag:nth-child(5n + 1) {
    background-color: #e0f2fe;
    color: #0369a1;
}

.latest-blog-tag:nth-child(5n + 2) {
    background-color: #fce7f3;
    color: #9d174d;
}

.latest-blog-tag:nth-child(5n + 3) {
    background-color: #ede9fe;
    color: #5b21b6;
}

.latest-blog-tag:nth-child(5n + 4) {
    background-color: #dcfce7;
    color: #166534;
}

.latest-blog-tag:nth-child(5n + 5) {
    background-color: #ffedd5;
    color: #9a3412;
}

.latest-blog-tag:hover {
    opacity: 0.85;
    transform: translateY(-1px);
    /* cursor: pointer; */
}

/* ================================
   HOVER POLISH
   ================================ */
.latest-blog-feature,
.latest-blog-card {
    transition: transform 0.2s ease;
}

.latest-blog-feature:hover,
.latest-blog-card:hover {
    transform: translateY(-2px);
}

/* ================================
   All Blogs
   ================================ */
.all-blogs-container {
    column-gap: clamp(1rem, 2vw, 2rem);
    row-gap: clamp(1rem, 2.515vw, 3rem);
}

.all-blogs-container .all-blog-card {
    max-width: 385px;
    width: 31.57%;
}

.all-blogs-container .all-blog-card .blog-card__image {
    max-height: 240px;
    overflow: hidden;
    border-radius: 1rem;
}

.all-blogs-container .all-blog-card .blog-card__image img {
    aspect-ratio: 3 / 2;
}

/* Content */
.blog-card__content {
    margin-top: 2rem;
}

/* Meta (Author + Date) */
.blog-card__meta {
    font-size: 14px;
    color: #FF8674;
    margin-bottom: 10px;
    font-weight: 500;
}

/* Title Row */
.blog-card__title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.blog-card__title {
    font-size: 24px;
    line-height: 1.3;
    font-weight: 700;
    color: #236192;
    margin: 0;
}

/* Arrow Icon */
.blog-card__icon {
    font-size: 20px;
    color: #123a5d;
    flex-shrink: 0;
    transform: translateY(4px);
}

/* Description */
.blog-card__description {
    margin: 12px 0 24px;
    font-size: 16px;
    line-height: 1.6;
    color: #6b7280;
}


/* Load More Button */
#load-more-blogs {
    max-width: 171px;
    border-radius: 24px;
    margin: 0 auto;
    box-shadow: 0px 0px 5px 0px rgb(0 0 0 / 30%);
    padding: 18px 64px 18px 24px;
    position: relative;
    transition: 0.3s ease;
}

#load-more-blogs:after {
    content: '';
    position: absolute;
    right: 8px;
    top: 4px;
    width: 40px;
    height: 40px;
    background-color: #236192;
    border-radius: 1rem;
    background-image: url('data:image/svg+xml,<svg width="12" height="15" viewBox="0 0 12 15" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M6 13L6 0.75" stroke="white" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/><path d="M11.25 8L6 13.25L0.75 8" stroke="white" stroke-width="1.5" stroke-linecap="round"/></svg>');
    background-size: auto;
    background-repeat: no-repeat;
    background-position: center;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .latest-blogs-container {
        flex-direction: column;
    }

    .latest-blog-feature {
        max-width: 100%;
    }
}