/* Modern Home Page Styles */
:root {
    --mh-primary: #ff6b6b;
    --mh-secondary: #4ecdc4;
    --mh-dark: #1a1a1a;
    --mh-light: #ffffff;
    --mh-surface: #f8f9fa;
    --mh-surface-dark: #2d3436;
    --mh-glass: rgba(255, 255, 255, 0.1);
    --mh-glass-border: rgba(255, 255, 255, 0.2);
    --mh-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    --mh-font-heading: 'Playfair Display', serif;
    --mh-font-body: 'Inter', sans-serif;
}

body.page-template-page-modern-home,
body.page-template-page-categories,
body.post-type-archive-web-story,
body.tax-web_story_category {
    background-color: var(--mh-surface);
    color: var(--mh-dark);
    font-family: var(--mh-font-body);
}

body.page-template-page-modern-home .site-shell,
body.page-template-page-categories .site-shell,
body.post-type-archive-web-story .site-shell,
body.tax-web_story_category .site-shell {
    background: none;
    background-color: transparent;
}

/* Dark Mode Support (matching theme class) */
body.theme-dark.page-template-page-modern-home,
body.theme-dark.page-template-page-categories,
body.theme-dark.post-type-archive-web-story,
body.theme-dark.tax-web_story_category {
    background-color: var(--mh-dark);
    color: var(--mh-light);
    --mh-surface: #1a1a1a;
}

/* Hero Section - Artistic Redesign */
.mh-hero {
    position: relative;
    height: 95vh;
    min-height: 650px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax feel */
    overflow: hidden;
    margin-top: -50px; /* Adjusted negative margin to close gap */
}

/* Vignette Overlay to focus on food */
.mh-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at center, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.6) 70%, rgba(0,0,0,0.8) 100%);
    z-index: 1;
}

/* Decorative "Food Elements" - Abstract Organic Shapes */
.mh-hero::after {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, var(--mh-primary) 0%, transparent 70%);
    opacity: 0.15;
    filter: blur(80px);
    z-index: 1;
    border-radius: 50%;
    animation: pulseGlow 10s infinite alternate;
}

@keyframes pulseGlow {
    0% { transform: scale(1); opacity: 0.15; }
    100% { transform: scale(1.2); opacity: 0.25; }
}

.mh-hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    max-width: 900px;
    padding: 3.5rem;
    
    /* Artistic "Glass Card" with Organic Borders */
    background: rgba(20, 20, 20, 0.4); /* Darker glass for contrast */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    
    /* Organic Shape: Top-Left and Bottom-Right rounded differently */
    border-radius: 60px 4px 60px 4px;
    
    /* Double Border Effect via Box Shadow */
    outline: 1px solid rgba(255, 255, 255, 0.1);
    outline-offset: -12px;
}

.mh-hero-title {
    font-family: 'Mallanna';
    font-size: 5rem; /* Huge Typography */
    font-weight: 200;
    margin-bottom: 1rem;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0,0,0,0.4);
    letter-spacing: 0px;
    color: #f77945;
}

.mh-hero-title span {
    color: var(--mh-primary);
    font-style: normal;
}

.mh-hero-subtitle {
    font-family: 'Mallanna';
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
    letter-spacing: 0px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Stylish Button */
.mh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 3rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 300;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0px;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(4px);
    position: relative;
    overflow: hidden;
    font-family: 'Mallanna', sans-serif; /* Set font to Mallanna initially as well for consistency */
}

.mh-btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 0%; height: 100%;
    background: #f77945; /* Updated Hover Background Color */
    transition: width 0.4s ease;
    z-index: -1;
}

.mh-btn:hover {
    color: white;
    border-color: #f77945; /* Updated Border Color on Hover */
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(247, 121, 69, 0.4); /* Shadow matches new color */
    font-family: 'Mallanna', sans-serif; /* Ensure Mallanna font on hover */
}

.mh-btn:hover::before {
    width: 100%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .mh-hero-title { font-size: 3rem; }
    .mh-hero-content { 
        padding: 2rem; 
        width: 90%;
        border-radius: 30px 4px 30px 4px;
    }
}

/* Categories Section - Modern Grid Redesign */
.mh-categories {
    padding: 1rem 2rem;
    background: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Background Pattern: Subtle kitchen utensil outlines or abstract organic shapes */
.mh-categories::before {
    content: '';
    position: absolute;
    top: -50px; left: -50px;
    width: 200px; height: 200px;
    background: radial-gradient(circle, #ffecec 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    opacity: 0.6;
}

.mh-categories::after {
    content: '';
    position: absolute;
    bottom: -50px; right: -50px;
    width: 300px; height: 300px;
    background: radial-gradient(circle, #e0f7fa 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    opacity: 0.6;
}

.mh-section-header {
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
}

.mh-categories-title {
    font-family: var(--mh-font-heading);
    font-size: 3rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    color: var(--mh-dark);
    z-index: 1;
}

/* Artistic Underline */
.mh-categories-title::after {
    content: '';
    display: block;
    width: 60%;
    height: 4px;
    background: var(--mh-primary);
    margin: 10px auto 0;
    border-radius: 2px;
}

.mh-categories-subtitle {
    font-family: var(--mh-font-body);
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 1rem auto 0;
}

.mh-category-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Responsive Breakpoints */
@media (max-width: 1200px) {
    .mh-category-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .mh-category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Rectangular Card */
.mh-category-card {
    position: relative;
    display: block;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 3/4; /* Slightly shorter portrait rectangle */
    background-color: var(--mh-surface);
    background-size: cover;
    background-position: center;
    text-decoration: none;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

/* Fallback for no image */
.mh-category-card.no-image {
    background: linear-gradient(135deg, var(--mh-primary), var(--mh-secondary));
}

/* Hover Effect */
.mh-category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

/* Overlay */
.mh-cat-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.85) 100%);
    transition: background 0.4s ease;
}

.mh-category-card:hover .mh-cat-overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.95) 100%);
}

/* Content */
.mh-cat-content {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    text-align: center;
    color: white;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Count Badge */
.mh-cat-count {
    display: inline-block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(4px);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 500;
}

/* Title */
.mh-cat-title {
    font-family: var(--mh-font-heading);
    font-size: 1.8rem;
    margin: 0;
    font-weight: 600;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Arrow */
.mh-cat-arrow {
    position: absolute;
    right: 2rem;
    bottom: 2rem;
    font-size: 1.5rem;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.4s ease;
    color: white;
}

.mh-category-card:hover .mh-cat-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Responsive */
@media (max-width: 768px) {
    .mh-category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .mh-category-card {
        aspect-ratio: 1/1;
    }
    
    .mh-cat-content {
        padding: 1rem;
    }
    
    .mh-cat-title {
        font-size: 1.2rem;
    }
    
    .mh-cat-count {
        font-size: 0.7rem;
        padding: 3px 8px;
    }
    
    .mh-categories-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .mh-category-grid {
        grid-template-columns: 1fr;
    }
}

/* Dark Mode Adjustments */
body.theme-dark .mh-categories {
    background: var(--mh-dark);
}

body.theme-dark .mh-categories-title {
    color: var(--mh-light);
}

body.theme-dark .mh-categories-subtitle {
    color: #aaa;
}

/* Section Titles */
.mh-section-title {
    font-family: var(--mh-font-heading);
    font-size: 2.5rem;
    text-align: center;
    margin: 4rem 0 2rem;
    position: relative;
    color: var(--mh-dark);
}

body.theme-dark .mh-section-title {
    color: var(--mh-light);
}

.mh-section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--mh-primary);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* Masonry Grid (Trending) */
.mh-grid-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.mh-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    display: flex;
    flex-direction: column;
}

body.theme-dark .mh-card {
    background: var(--mh-surface-dark);
}

.mh-card:hover {
    transform: translateY(-10px);
    z-index: 10;
}

.mh-card-img {
    width: 100%;
    height: auto;
    aspect-ratio: 3/2;
    object-fit: cover;
}

.mh-card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.mh-card-meta {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mh-card-title {
    font-family: var(--mh-font-heading);
    font-size: 1.5rem;
    margin: 0 0 1rem;
    line-height: 1.3;
}

.mh-card-title a {
    color: var(--mh-dark);
    text-decoration: none;
    transition: color 0.2s;
}

body.theme-dark .mh-card-title a {
    color: var(--mh-light);
}

.mh-card-title a:hover {
    color: var(--mh-primary);
}

.mh-card-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #666;
}

body.theme-dark .mh-card-footer {
    border-top-color: #444;
    color: #aaa;
}

/* Newsletter Section */
.mh-newsletter {
    background: linear-gradient(135deg, var(--mh-primary) 0%, #f77945 100%);
    padding: 5rem 2rem;
    text-align: center;
    color: white;
    margin: 1rem 0;
    position: relative;
    overflow: hidden;
}

.mh-newsletter::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.mh-newsletter-content {
    position: relative;
    z-index: 10;
    max-width: 600px;
    margin: 0 auto;
}

.mh-newsletter h2 {
    font-family: var(--mh-font-heading);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.mh-newsletter-form {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.mh-newsletter-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    border: none;
    font-size: 1rem;
    outline: none;
}

.mh-newsletter-btn {
    padding: 1rem 2rem;
    background: var(--mh-primary);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.mh-newsletter-btn:hover {
    background: #ff5252;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mh-animate {
    animation: fadeInUp 0.8s ease forwards;
}

/* Responsive */
@media (max-width: 768px) {
    .mh-hero-title { font-size: 2.5rem; }
    .mh-newsletter-form { flex-direction: column; }
    .mh-grid-container { grid-template-columns: 1fr; }
}

/* =========================================
   Web Stories Section (Jan 2026 Premium Design)
   ========================================= */
.mh-web-stories {
   overflow: hidden;
    /* Soft, modern Aurora Mesh Gradient background - Enriched */
    background: 
        radial-gradient(at 0% 0%, rgba(255, 107, 107, 0.08) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(78, 205, 196, 0.08) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(255, 107, 107, 0.08) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(78, 205, 196, 0.08) 0px, transparent 50%),
        #ffffff;
    background-size: 200% 200%;
    animation: auroraFlow 15s ease infinite; /* Faster, smoother flow */
    position: relative;
}

@keyframes auroraFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

body.theme-dark .mh-web-stories {
    background: 
        radial-gradient(at 0% 0%, rgba(255, 107, 107, 0.12) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(78, 205, 196, 0.12) 0px, transparent 50%),
        var(--mh-dark);
}

/* Centered Header with Premium Typography */
.mh-web-stories .mh-section-header {
    margin-bottom: 2rem;
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 95%;
    width: 1400px;
    margin-inline: auto;
    padding: 0 1rem;
}

.mh-web-stories .mh-section-title {
    margin: 0;
    position: relative;
    display: inline-block;
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    letter-spacing: -0.5px;
}

/* View All Link - Minimal Mini Version */
.mh-view-all-mini {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--mh-dark);
    text-decoration: none;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.mh-view-all-mini:hover {
    opacity: 1;
    color: var(--mh-primary);
    transform: translateY(-50%) translateX(3px); /* Subtle slide right on hover */
}

body.theme-dark .mh-view-all-mini {
    color: rgba(255, 255, 255, 0.8);
}

body.theme-dark .mh-view-all-mini:hover {
    color: #fff;
}

@media (max-width: 768px) {
    .mh-view-all-mini {
        position: relative;
        top: auto;
        right: auto;
        transform: none;
        display: inline-block;
        margin-top: 0.5rem;
    }
    .mh-view-all-mini:hover {
        transform: translateX(3px);
    }
}

@media (max-width: 768px) {
    .mh-view-all-overlay {
        position: relative;
        top: auto;
        right: auto;
        margin-bottom: 1rem;
        width: fit-content;
    }
    
    .mh-stories-container {
        flex-direction: column;
        padding-top: 1rem;
    }
}

.mh-stories-container {
    position: relative;
    max-width: 100%;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mh-stories-scroller {
    display: flex;
    gap: 2rem; /* More breathing room */
    overflow-x: auto;
    padding: 2rem 1rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    align-items: center;
    width: 100%;
    z-index: 2;
}

.mh-stories-scroller::-webkit-scrollbar {
    display: none;
}

/* Navigation Buttons - Glassmorphism */
.mh-story-nav {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    color: var(--mh-primary);
    width: 56px; /* Larger touch target */
    height: 56px;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .mh-story-nav {
        display: none; /* Hide nav buttons on mobile, use natural scrolling */
    }
    
    .mh-stories-scroller {
        gap: 1rem; /* Reduce gap on mobile */
        padding: 1.5rem 1rem;
    }
}

.mh-story-nav:hover {
    background: var(--mh-primary);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(255, 107, 107, 0.5);
}

.mh-story-prev { margin-right: 1rem; }
.mh-story-next { margin-left: 1rem; }

/* Story Card - Ultra Premium Vertical Design */
.mh-story-card {
    flex: 0 0 240px; /* Slightly wider for presence */
    height: 400px;
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    scroll-snap-align: center;
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 15px 35px -5px rgba(0,0,0,0.2);
    text-decoration: none;
    background: #000;
    transform-origin: center center;
    border: 1px solid rgba(255,255,255,0.15);
}

/* Play Icon Overlay */
.mh-story-card::before {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 20;
    padding-left: 4px;
    pointer-events: none; /* Let clicks pass through */
}

.mh-story-card:hover::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    background: rgba(255, 107, 107, 0.95);
    border-color: transparent;
    box-shadow: 0 10px 25px rgba(255, 107, 107, 0.5);
}

.mh-story-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 
        0 30px 60px -12px rgba(0,0,0,0.35),
        0 0 0 1px rgba(255, 107, 107, 0.4); /* Colored border glow */
    z-index: 10;
    cursor: pointer;
}

/* HD Image Background */
.mh-story-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 1.5s cubic-bezier(0.1, 0.9, 0.2, 1);
    will-change: transform;
}

.mh-story-card:hover .mh-story-bg {
    transform: scale(1.15);
}

/* Overlay - Cinematic Gradient */
.mh-story-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0) 0%,
        rgba(0,0,0,0) 0%,
        rgba(0,0,0,0.1) 40%,
        rgba(0,0,0,0.7) 80%,
        rgba(0,0,0,0.95) 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.8rem;
    color: white;
}

/* Badge - Glassmorphism Pill */
.mh-story-badge {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    z-index: 5;
    transition: all 0.3s ease;
}

.mh-story-card:hover .mh-story-badge {
    background: rgba(255, 107, 107, 0.9);
    border-color: transparent;
}

/* Typography & Content Animations */
.mh-story-content {
    transform: translateY(0);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.mh-story-card:hover .mh-story-content {
    transform: translateY(-4px);
}

.mh-story-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    line-height: 1.2;
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    letter-spacing: 0.3px;
}

.mh-story-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap; /* Allow wrapping for long names/dates */
    gap: 0.5rem; /* Reduced gap for wrapping */
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    line-height: 1.4;
}

.mh-story-author {
    font-weight: 600;
    color: #fff;
    position: relative;
    padding-right: 0.6rem;
}

.mh-story-author::after {
    content: '•';
    position: absolute;
    right: 0;
    color: rgba(255,255,255,0.5);
}

/* Responsive */
@media (max-width: 768px) {
    .mh-story-nav { display: none; } 
    .mh-stories-container { padding: 0; }
    
    .mh-story-card {
        flex: 0 0 190px; 
        height: 340px;
    }
    .mh-stories-scroller {
        padding-inline: 1.5rem;
        gap: 1.2rem;
    }
    .mh-story-title {
        font-size: 1.2rem;
    }
    .mh-web-stories .mh-section-title {
        font-size: 2.2rem;
    }
}

/* =========================================
   Web Stories Archive & Category Pages
   ========================================= */

/* Breadcrumbs */
.archive-breadcrumbs {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    text-align: left;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem; /* Add padding for mobile */
}

/* Sections */
.mh-browse-categories {
    max-width: 1400px;
    margin: 0 auto;
    margin-bottom: 4rem;
    padding: 0 1rem; /* Add padding for mobile */
}

.mh-grouped-stories {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem; /* Add padding for mobile */
}

.mh-category-group {
    margin-bottom: 3rem;
}

/* Section Header */
.mh-archive-header {
    text-align: left;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 1rem;
}

.mh-archive-header .mh-section-title {
    text-align: left;
}

.mh-archive-header .mh-section-title::after {
    margin-left: 0;
    margin-right: 0;
}

/* Stories Grid */
.mh-stories-grid-archive {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columns on desktop */
    gap: 1.5rem;
}

/* Story Card Height Override */
.mh-story-card.archive-card {
    height: 380px; /* Taller for better presence */
    flex: none; /* Reset flex behavior from scroller */
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .mh-stories-grid-archive {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .mh-stories-grid-archive {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .mh-story-card.archive-card {
        height: 320px;
    }
    
    .mh-archive-header {
        flex-direction: row; /* Keep row but maybe adjust if needed */
        align-items: center;
    }
    
    .mh-section-title {
        font-size: 1.5rem !important; /* Force smaller size */
    }
}

@media (max-width: 480px) {
    .mh-stories-grid-archive {
        grid-template-columns: repeat(2, 1fr); /* Keep 2 columns even on small mobile, looks like Instagram/Pinterest */
        gap: 0.8rem;
    }
    
    .mh-story-card.archive-card {
        height: 250px; /* Smaller height for small screens */
        border-radius: 16px;
    }

    .mh-story-title {
        font-size: 1rem;
    }
}
