/* /css/content.css */

:root {
    --accent-color: #E06D5C; /* Warm Coral/Terra Cotta - complements amber */
    --gradient-accent: linear-gradient(45deg, #E06D5C, #D19E5D); /* Adjusted gradient */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

/* --- Main Layout Containers --- */
.app-container {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    padding: 0 5%; /* Changed padding-top to 0, will apply margin-top to sections below */
    max-width: 1400px;
    margin: 0 auto; /* No margin-top here anymore, padding is on body */
}

/* Prevent horizontal scrolling and smooth scrolling */
html {
	width: 100%;
	overflow-x: hidden;
	/* scroll-padding-top is now in main.css */
	/* scroll-behavior: smooth is now in main.css */
}

.main-content {
    flex: 1;
    min-width: 0;
}

.sidebar-content {
    flex-basis: 340px;
    position: sticky;
    /* Adjust top for sidebar sticky position relative to the main header */
    top: calc(var(--header-total-height) + 2rem); /* Combined header height + extra space */
}

.sidebar-content:empty {
    display: none;
}

.main-content:has(> .placeholder-text),
.main-content:has(> .content-grid) {
    flex-basis: 100%;
}

/* --- Card Styles (Universal) --- */
.card {
	border-radius: 12px 12px 12px 0; /* Asymmetric bottom-left corner */
	background-color: var(--surface-color); /* Pure white */
	overflow: hidden;
    position: relative;
    border: none; /* REMOVED BORDER */
    border-radius: 12px;
    box-shadow: 0 4px 8px var(--shadow-color);
    display: flex;
    flex-direction: column; /* Ensure vertical stacking for consistent layout */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.card:hover .card-image {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}
.card-image {
    transition: transform 0.3s ease;
}

.card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9; /* Replaces fixed height for consistency */
    object-fit: cover;
    background-color: #eee;
}
.card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
    pointer-events: none;
}

.card-image-wrapper {
    position: relative;
}
.card-category-overlay {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Allow content to grow and push actions down */
}

.card-category {
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    background: var(--accent-color); /* Ensure this uses the new accent-color */
}

.card-title {
	font-family: var(--font-heading);
    font-size: 1.3rem;
    line-height: 1.4;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.card-summary, .card-category, .card-date {
    font-family: var(--font-body);
}
.featured-card .card-title {
    font-size: 2.2rem;
}

.card-summary {
    font-size: 0.95rem;
    color: var(--text-light-color);
    flex-grow: 1;
    margin-bottom: 1rem;
}

.card-title {
    font-variation-settings: 'wght' 600;
}
.card:hover .card-title {
    font-variation-settings: 'wght' 700; /* Bolder on hover */
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
    margin-top: auto; /* Push to bottom within normal cards */
}

/* New: Read More button style for standard cards */
.card-read-more-btn {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-block; /* Ensure it responds to padding/margin */
}

.card-read-more-btn:hover {
    color: var(--primary-color);
    transform: translateX(3px); /* Subtle slide on hover */
}


.placeholder-text {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-light-color);
    margin-top: 3rem; /* Keep some margin if content is placeholder */
}

/* --- Desktop Sidebar Styles --- */
.sidebar-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.sidebar-content .card {
    flex-direction: row;
    align-items: center;
    padding: 0.75rem;
    gap: 1rem;
    margin-bottom: 1rem;
    border: none; /* REMOVED BORDER for sidebar cards */
}

.sidebar-content .card-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.sidebar-content .card-content {
    padding: 0;
}

.sidebar-content .card-title {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.sidebar-content .card-category,
.sidebar-content .card-summary,
.sidebar-content .card-footer {
    display: none;
}

/* --- Featured Article Card Styles --- */
.featured-card {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
    background: linear-gradient(45deg, var(--primary-color), #4a5568); /* Dark slate gradient */
    color: white; /* Base color for text */
    padding: 1rem;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border: none; /* REMOVED BORDER for featured card */
}

/* Make the title use the site's accent color for visibility */
.featured-card .card-title {
    color: var(--secondary-color); /* Amber color for the title */
}

/* Ensure the summary text is a lighter, more subtle white */
.featured-card .card-summary {
    color: rgba(255, 255, 255, 0.8);
}

.featured-card .card-image {
    flex: 1 1 55%;
    height: 350px;
    border-radius: 12px;
     box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.featured-card .card-content {
    flex: 1 1 45%;
    padding: 0;
}

.featured-card .card-title {
    font-size: 2rem;
    line-height: 1.3;
}

.featured-card .card-summary {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .featured-card {
        flex-direction: column;
        gap: 0;
        padding: 1rem;
    }
    .featured-card .card-image {
        margin-bottom: 1.5rem;
        height: 200px;
    }
}

/* --- Load More Button Styles --- */
.load-more-container {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem 0;
}

.load-more-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.8rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.load-more-btn:hover {
    background-color: #1a202c;
    transform: translateY(-2px);
}

/* --- Sidebar Link Wrapper Style --- */
a.card-link-wrapper,
a.card-link-wrapper:hover {
    text-decoration: none;
    color: inherit;
}


/* --- NEW: Subscribe Banner Styles --- */
.subscribe-banner {
    background-color: var(--primary-color);
    color: white;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: none; /* REMOVED BORDER for subscribe banner (though not a "card") */
}

.subscribe-banner h3 {
    font-family: 'Poppins', var(--font-family);
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0 0 0.75rem;
}

.subscribe-banner p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0 0 1.5rem;
}

.subscribe-btn {
    background-color: var(--secondary-color); /* Amber button */
    color: var(--primary-color); /* Dark text */
    text-decoration: none;
    padding: 0.8rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 30px;
    display: inline-block;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.subscribe-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(246, 173, 85, 0.3);
}


/* --- NEW: Favorite Button Styles --- */
.favorite-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--border-color); /* Kept this border, as it's part of the button's design, not the card's */
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
}

.favorite-btn svg {
    width: 20px;
    height: 20px;
    color: var(--primary-color);
    transition: all 0.2s ease;
}

/* Style for the favorited state */
.favorite-btn.favorited {
    background: var(--accent-color);
    border-color: var(--accent-color);
}
.favorite-btn.favorited svg {
    color: white;
    fill: white;
}

.favorite-btn:hover {
    transform: scale(1.1);
    background: white;
}

.favorite-btn.favorited {
    animation: pulse 0.3s ease;
}
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Add position relative to the card so the absolute button is positioned correctly */
.card {
    position: relative;
}

.card {
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}
@keyframes fadeIn {
    to { opacity: 1; }
}
.content-grid .card:nth-child(1) { animation-delay: 0.1s; }
.content-grid .card:nth-child(2) { animation-delay: 0.2s; }
.content-grid .card:nth-child(3) { animation-delay: 0.3s; }
/* Add more as needed */


/* --- NEW: Tag Pill Styles --- */
.card-tags {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-pill {
    display: inline-block;
    background-color: var(--background-color);
    color: var(--text-light-color);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid var(--border-color); /* KEPT BORDER for tag pills, as they are smaller elements and benefit from definition */
    transition: all 0.2s ease;
}

.tag-pill:hover {
    background-color: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

/* --- Empty State Styles --- */
.empty-state-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
    margin-top: 2rem;
    border: 2px dashed var(--border-color); /* Kept this dashed border as it's a specific design for empty state */
    border-radius: 16px;
    background-color: var(--surface-color);
}

.empty-state-icon {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.empty-state-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary-color);
    margin: 0 0 0.5rem 0;
}

.empty-state-text {
    font-size: 1.1rem;
    color: var(--text-light-color);
    max-width: 450px;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.empty-state-cta {
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    padding: 0.8rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 30px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.empty-state-cta:hover {
    background-color: #1a202c;
    transform: translateY(-2px);
}

/* REVISED: Styles for Current Page Title Display (Breadcrumbs) */
.current-page-title {
    font-family: var(--font-body); /* Use body font for a subtle, modern look */
    font-size: 1.0rem; /* Smaller, more elegant size */
    font-weight: 500; /* Regular weight */
    color: var(--text-light-color); /* Muted color for the entire breadcrumb string */
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 1.5rem;
    padding: 0;
    text-align: left;
    text-transform: capitalize; /* Keep capitalization from JS */
    /* Remove default h1 margin and padding from main.css if it interferes */
}

/* Hide the main title when it's the 'home' view (globally) */
.current-page-title[data-view="home"] {
    display: none;
}

/* NEW: Styles for the breadcrumb link within the title */
.current-page-title .breadcrumb-link {
    font-weight: 500;
    color: var(--text-light-color); /* Muted color for breadcrumb links */
    text-decoration: none;
    transition: color 0.2s ease;
}

/* Make the 'Home' part golden */
.current-page-title .breadcrumb-link[href="#home"] {
    color: var(--secondary-color); /* Golden color for Home link */
    font-weight: 600; /* Slightly bolder for emphasis */
}

.current-page-title .breadcrumb-link:hover {
    color: var(--secondary-color); /* Highlight on hover */
    text-decoration: underline; /* Add underline on hover */
}

/* Style for the current active part of the breadcrumb (not a link) */
.current-page-title a + span { /* Targets the span directly after a link (e.g., / National) */
    color: var(--primary-color); /* Make the active part more prominent */
    font-weight: 600; /* Slightly bolder for clarity */
}


/* --- REVISED: Curated Highlights Section (Previously Trending Section) --- */
.trending-section {
    margin-top: 2rem; /* Add margin-top to align with sidebar-content */
    margin-bottom: 3rem; /* Space below the section */
    /* Removed padding, background-color, border-radius, box-shadow, border */

    /* Grid for the entire trending section layout */
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr; /* 3 columns: Col1 (2 cards), Col2 (1 big), Col3 (3 cards) */
    gap: 1.5rem; /* Gap between the main columns */
}

/* NEW: Heading for Trending Section */
.trending-section-heading {
    grid-column: 1 / -1; /* Span all columns */
    font-family: var(--font-heading);
    font-size: 1.25rem; /* Similar to sidebar title */
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
    text-align: left; /* Align left */
    display: block; /* Ensure it takes up space */
}

/* Removed .trending-section-title-wrapper and .trending-section-title CSS rules as the title is removed. */

/* --- Column 1: Two small cards with image --- */
.trending-col-1 {
    display: flex;
    flex-direction: column;
    gap: 1rem; /* Gap between the two cards */
}

.col1-card {
    display: flex;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-color);
    background-color: var(--background-color); /* Now pure white */
    border-radius: 8px;
    overflow: hidden;
    padding: 0.75rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none; /* REMOVED BORDER */
}

.col1-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.col1-card-image {
    width: 90px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.col1-card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.col1-card-category {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent-color);
    text-transform: uppercase;
    margin-bottom: 0.2rem;
}

.col1-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.2rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.col1-card-meta {
    font-size: 0.75rem;
    color: var(--text-light-color);
}

/* --- Column 2: Single big card (more like a content block now) --- */
.trending-col-2 {
    display: flex;
    flex-direction: column; /* Stacks image and content vertically */
}

.col2-card {
    text-decoration: none;
    color: var(--text-color);
    background-color: transparent; /* No background color on the link itself */
    border-radius: 0; /* No border radius */
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none; /* No border */
    height: 100%; /* Ensure it fills the grid cell height */
    display: flex;
    flex-direction: column; /* Stacks children (image, content) */
    box-shadow: none; /* No box shadow on the link itself */
    padding: 0; /* No padding on the link itself */
}

/* Remove hover effects that make it look like a floating card */
.col2-card:hover {
    transform: none; /* No translate Y */
    box-shadow: none; /* No box-shadow */
}


.col2-card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    border-radius: 0; /* No border radius for the image within this block */
}

.col2-card-content {
    padding: 0; /* REMOVED ALL PADDING */
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: left; /* Explicitly left-align */
    /* Add a little top padding to separate from image */
    padding-top: 0.5rem; /* Small padding at the top to visually separate from image */
}

.col2-card-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5rem; /* Keep some space below title */
    color: var(--primary-color);
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Allow more lines for big title */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left; /* Ensure title is left-aligned */
    /* Remove any implicit padding/margin that might cause "space in starting" */
    padding-left: 0;
    margin-left: 0;
}

.col2-card-summary {
    font-size: 0.95rem;
    color: var(--text-light-color);
    line-height: 1.5;
    flex-grow: 1; /* Pushes content down if needed */
    display: -webkit-box;
    -webkit-line-clamp: 4; /* Limit summary lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left; /* Ensure summary is left-aligned */
    /* Remove any implicit padding/margin that might cause "space in starting" */
    padding-left: 0;
    margin-left: 0;
    margin-top: 0; /* Ensure no extra space above summary */
}


/* --- Column 3: Three cards without image --- */
.trending-col-3 {
    display: flex;
    flex-direction: column;
    gap: 1rem; /* Gap between the three cards */
}

.col3-card {
    text-decoration: none;
    color: var(--text-color);
    background-color: var(--background-color); /* Now pure white */
    border-radius: 8px;
    padding: 0.75rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none; /* REMOVED BORDER */
}

.col3-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.col3-card-category {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent-color);
    text-transform: uppercase;
    margin-bottom: 0.2rem;
}

.col3-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.2rem;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* More lines for titles without image */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.col3-card-meta {
    font-size: 0.75rem;
    color: var(--text-light-color);
}

/* Responsive adjustments for trending section */
@media (max-width: 992px) {
    .trending-section {
        grid-template-columns: 1fr 1fr; /* Two columns for tablets */
        gap: 1rem;
        padding: 1rem;
    }
    .trending-section-heading { /* Ensure heading behaves on tablet */
        font-size: 1.25rem;
        text-align: left; /* Align to left on tablet too */
    }
    .trending-col-3 {
        grid-column: 1 / -1; /* Column 3 spans full width on tablet */
        display: grid; /* Make it a grid on tablet */
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* Auto-fill for cards */
        gap: 1rem; /* Gap between cards */
        flex-direction: initial; /* Override flex-direction for grid */
    }

    /* Col 2 on tablet */
    .col2-card-image {
        border-radius: 0; /* Remove border-radius on tablet for col2 image */
    }
}

@media (max-width: 768px) {
    .trending-section {
        grid-template-columns: 1fr; /* Single column for mobile */
        gap: 1.5rem;
        padding: 0 1%; /* Use the standard mobile content padding for full width */
        margin-left: 0;
        margin-right: 0;
        margin-bottom: 2rem;
    }
    
    .feed-main-section {
     padding: 0 2%; /* Use the standard mobile content padding for full width */
    }

    .trending-section-heading { /* Show heading on mobile now */
        display: block; /* Change from none to block */
        font-size: 1.1rem; /* Adjust font size for mobile */
        margin-bottom: 1rem;
        text-align: center; /* Center on mobile for better appearance */
    }

    .trending-col-1,
    .trending-col-2,
    .trending-col-3 {
        gap: 1rem; /* Standard gap on mobile */
        grid-column: auto; /* Reset grid-column to auto */
    }

    /* Adjustments for trending Col1 & Col3 cards on mobile to match feed padding */
    .col1-card, .col3-card {
        padding: 0.75rem 4%; /* Match horizontal padding of feed simple cards */
    }
    .col1-card-image { /* Restore full width behavior for image */
        width: auto; /* Allow image to be flexible */
        flex-shrink: 1; /* Allow image to shrink */
    }
    .col1-card-content {
        padding-left: 0; /* Ensure no extra padding inside content */
    }


    .col2-card-image {
        height: 180px; /* Adjust height for mobile */
        border-radius: 0; /* No border-radius on mobile for col2 image */
    }

    .col2-card-title {
        font-size: 1.3rem; /* Adjust font size for mobile */
    }

    .col3-card-title {
        font-size: 0.9rem;
    }
    .trending-col-3 {
        grid-template-columns: 1fr; /* Stack col3 cards on very small screens */
    }
}

/* --- MAIN CONTENT GRID (Now used for categories, favorites, tags, and search) --- */
.content-grid {
    margin-top: 2rem; /* Add margin-top to align with sidebar-content */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* 3 columns, responsive */
    gap: 1.5rem; /* Gap between cards */
    margin-bottom: 3rem; /* Space below the grid */
}

/* --- FEED SECTION STYLES --- */
.feed-main-section {
    margin-top: 2rem; /* Add margin-top to align with sidebar-content */
    margin-bottom: 3rem; /* Space below the section */
    /* No border, shadow, background on the main section */
}

.feed-section-title {
    font-family: var(--font-heading);
    font-size: 2.2rem; /* Larger title for the feed section */
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2rem; /* More space below title */
    text-align: left;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.feed-row-1 {
    display: grid;
    grid-template-columns: 7fr 3fr; /* 70% and 30% columns */
    gap: 1.5rem; /* Gap between columns */
    margin-bottom: 2rem; /* Space below row 1 */
}

/* --- Feed Column 1 (70%) Styles --- */
.feed-col-70 {
    display: flex;
    flex-direction: column; /* Changed to column to stack image and text */
    gap: 0.5rem; /* Reduced gap between image and text */
    text-decoration: none;
    color: var(--text-color);
    overflow: hidden;
}

.feed-col-70:hover .feed-featured-70-title {
    color: var(--secondary-color); /* Highlight title on hover */
}
.feed-col-70:hover .feed-featured-70-image {
    transform: scale(1.05); /* Zoom effect on image */
}

.feed-featured-70-image-wrapper {
    width: 100%; /* Image takes full width of its column */
    height: 180px; /* Current desktop height for col1 image */
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--shadow-color); /* Small shadow for image */
    margin-bottom: 0.5rem; /* Space below image */
}

.feed-featured-70-image {
    width: 100%;
    height: 100%; /* Fill wrapper height */
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.feed-featured-70-text-content {
    flex: 1; /* Takes available space */
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Removed specific padding as it will be determined by overall flow */
}

.feed-featured-70-title {
    font-family: var(--font-heading);
    font-size: 1.8rem; /* Larger title */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
    display: -webkit-box;
    -webkit-line-clamp: 4; /* Allow more lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.feed-featured-70-meta {
    font-size: 0.85rem;
    color: var(--text-light-color);
}

.feed-featured-70-category {
    text-transform: uppercase;
    font-weight: 600;
    color: var(--primary-color);
}


/* --- Feed Column 2 (30%) Styles --- */
.feed-col-30 {
    display: flex;
    flex-direction: column; /* Image on top, text below */
    text-decoration: none;
    color: var(--text-color);
    background-color: var(--surface-color); /* White background for this smaller card */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px var(--shadow-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feed-col-30:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}
.feed-col-30:hover .feed-featured-30-image {
    transform: scale(1.05); /* Zoom effect on image */
}
.feed-col-30:hover .feed-featured-30-title {
    color: var(--secondary-color); /* Highlight title on hover */
}


.feed-featured-30-image {
    width: 100%;
    height: 180px; /* MATCHED HEIGHT OF COL1 IMAGE */
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.feed-featured-30-text-content {
    padding: 0.8rem; /* Reduced padding for text content (from 1rem) */
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Push meta to bottom */
}

.feed-featured-30-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.feed-featured-30-meta {
    font-size: 0.8rem;
    color: var(--text-light-color);
}
.feed-featured-30-category {
    text-transform: uppercase;
    font-weight: 600;
    color: var(--primary-color);
}


/* --- Feed Row 2 (Simple Cards) Styles --- */
.feed-row-2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Three columns */
    gap: 1.5rem; /* Gap between cards */
}

.feed-simple-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--text-color);
    background-color: var(--surface-color); /* White background */
    border-radius: 8px;
    padding: 1.2rem; /* Ample padding for text-only card */
    box-shadow: 0 4px 8px var(--shadow-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%; /* Ensure cards in a row have equal height */
}

.feed-simple-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.feed-simple-card-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Allow multiple lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.feed-simple-card-meta {
    font-size: 0.8rem;
    color: var(--text-light-color);
}
.feed-simple-card-category {
    text-transform: uppercase;
    font-weight: 600;
    color: var(--primary-color);
}

/* Responsive adjustments for the new feed section */
@media (max-width: 992px) {
    .feed-row-1 {
        grid-template-columns: 1fr; /* Stack columns on tablet */
        gap: 2rem;
    }
    .feed-col-70 {
        flex-direction: column; /* Stack image and text vertically */
    }
    .feed-featured-70-image-wrapper {
        width: 100%; /* Full width image */
        height: 200px; /* Fixed height for featured image on tablet */
    }
    .feed-row-2 {
        grid-template-columns: repeat(2, 1fr); /* Two columns for simple cards on tablet */
    }
}

@media (max-width: 768px) {
    .feed-section-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    .feed-row-1 {
        gap: 1.5rem;
    }
    .feed-col-70 {
        gap: 0.25rem; /* Tighter gap on mobile */
    }
    .feed-featured-70-image-wrapper {
        height: 150px; /* Further adjust featured image height for mobile */
    }
    .feed-featured-70-title {
        font-size: 1.5rem;
    }
    .feed-col-30 {
        /* No specific changes needed, it's already a stacked column */
    }
    .feed-featured-30-image {
        height: 150px; /* MATCHED MOBILE HEIGHT OF COL1 IMAGE */
    }
    .feed-featured-30-title {
        font-size: 1.1rem;
    }
    .feed-row-2 {
        grid-template-columns: 1fr; /* Stack simple cards on mobile */
        gap: 1rem;
    }
    .feed-simple-card {
        padding: 1rem;
    }
    .feed-simple-card-title {
        font-size: 1rem;
        -webkit-line-clamp: 4;
    }
    .feed-simple-card-meta { /* Ensure meta text color is consistent */
        color: var(--text-light-color);
    }
    .feed-simple-card-category { /* Ensure category text color is consistent */
        color: var(--primary-color);
    }
}