/* === Blogs Page Specific Styles (Medium Inspired) === */

.blogs-main {
    background-color: #fff;
    /* Crisp white for a pristine reading environment */
    color: #242424;
    font-family: 'Inter', sans-serif;
}

/* Hero Section */
.blogs-hero {
    background-color: var(--deep-navy);
    color: var(--ivory);
    margin-top: 65px;
    /* Start below navbar */
    padding: 6rem 4rem;
    position: relative;
    overflow: hidden;
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.blogs-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.15) 0%, rgba(13, 27, 62, 0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.blogs-hero-container {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.hero-eyebrow {
    color: var(--sovereign-gold);
    font-size: 1rem;
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}

.blogs-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem;
}

/* Featured Section */
.featured-post-section {
    padding: 4rem 0 3rem 0;
    border-bottom: 1px solid rgba(230, 230, 230, 1);
}

.blogs-page-title {
    font-size: 3.2rem;
    font-weight: 600;
    font-family: 'Helvetica', sans-serif;
    color: var(--ivory);
    margin: 0 0 1rem 0;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.blogs-page-subtitle {
    font-size: 1rem;
    /* Reduced from 1.25rem */
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-weight: 400;
    line-height: 1.6;
}

.featured-post-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.featured-post-image {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 4px;
    overflow: hidden;
    background-color: #f9f9f9;
}

.featured-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.featured-post-card:hover .featured-post-image img {
    transform: scale(1.04);
}

.featured-post-content {
    display: flex;
    flex-direction: column;
}

.post-category {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: var(--sovereign-gold);
    margin-bottom: 1.2rem;
    display: inline-block;
}

.post-title {
    font-size: 2rem;
    font-family: 'Helvetica', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--deep-navy);
    margin-bottom: 1rem;
    cursor: pointer;
    letter-spacing: -0.01em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-excerpt {
    font-size: 1rem;
    color: #6b6b6b;
    line-height: 1.6;
    margin-bottom: 2rem;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar-wrap {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--ivory);
    border: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #888;
    font-size: 1.2rem;
}

.author-name {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: #242424;
}

.post-date {
    display: block;
    font-size: 0.85rem;
    color: #6b6b6b;
    margin-top: 2px;
}

/* Latest Articles & Sidebar */
.latest-articles-section {
    padding: 3.5rem 0 6rem 0;
}

.latest-articles-section .blogs-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 5rem;
}

/* Feed List */
.articles-feed {
    display: flex;
    flex-direction: column;
}

.feed-item {
    display: flex;
    justify-content: space-between;
    gap: 2.5rem;
    padding: 3rem 0;
    border-bottom: 1px solid rgba(230, 230, 230, 1);
}

.feed-item:first-child {
    padding-top: 0;
}

.feed-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.feed-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feed-meta-top {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.feed-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--ivory);
    border: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 0.7rem;
}

.feed-author {
    font-size: 0.85rem;
    font-weight: 500;
    color: #242424;
}

.feed-dot {
    color: #ccc;
    font-size: 0.8rem;
}

.feed-date-sm {
    font-size: 0.85rem;
    color: #6b6b6b;
}

.feed-title {
    font-size: 1.4rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    line-height: 1.2;
    color: #242424;
    margin-bottom: 0.6rem;
    cursor: pointer;
    letter-spacing: -0.01em;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.feed-excerpt {
    font-size: 1rem;
    color: #6b6b6b;
    line-height: 1.5;
    margin-bottom: 1.2rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 400;
}

.feed-meta-bottom {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.85rem;
    color: #6b6b6b;
}

.feed-tag {
    background-color: #f2f2f2;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.85rem;
    color: #242424;
    font-weight: 500;
}

.feed-read-time {
    font-size: 0.85rem;
}

.feed-image {
    width: 200px;
    aspect-ratio: 16/9;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
    background-color: #f9f9f9;
}

.feed-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Sidebar */
.sidebar-widget {
    position: sticky;
    top: 120px;
}

.sidebar-widget h4 {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #242424;
}

.topic-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.topic-tag {
    background-color: #f2f2f2;
    color: #242424;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background-color 0.2s ease;
    font-weight: 400;
}

.topic-tag:hover {
    background-color: #e6e6e6;
}

.topic-tag.active {
    background-color: var(--sovereign-gold);
    color: var(--ivory);
}

.sidebar-divider {
    height: 1px;
    background-color: rgba(230, 230, 230, 1);
    margin: 2rem 0;
}

.sidebar-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.sidebar-footer-links a {
    color: #6b6b6b;
    font-size: 0.85rem;
    text-decoration: none;
}

.sidebar-footer-links a:hover {
    color: #242424;
}

/* Responsive */
@media (max-width: 992px) {
    .blogs-container {
        padding: 0 2rem;
    }

    .featured-post-card {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .featured-post-image {
        aspect-ratio: 16/9;
    }

    .latest-articles-section .blogs-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .blogs-sidebar {
        margin-top: 0;
        padding-top: 3rem;
        border-top: 1px solid rgba(230, 230, 230, 1);
    }
}

@media (max-width: 600px) {
    .blogs-container {
        padding: 0 1rem;
    }

    .blogs-hero {
        padding: 4rem 1rem;
    }

    .blogs-page-title {
        font-size: 2.2rem !important;
    }

    .post-title {
        font-size: 1.4rem !important;
    }

    .feed-item {
        flex-direction: column-reverse;
        gap: 1.5rem;
        padding: 2rem 0;
    }

    .feed-image {
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
    }

    .feed-excerpt {
        display: none;
        /* Hide excerpt on very small screens like Medium does */
    }
}