/* ================================================================
   BLOG PAGE STYLES - ENHANCED VERSION 3.1 - GRID FIXED
   Professional WordPress blog layout with QA-approved optimizations
   ================================================================ */

/* CSS Custom Properties for Easy Maintenance - ENHANCED COLOR THEORY */
:root {
    /* === PRIMARY COLOR PALETTE (Nature-inspired Travel Theme) === */
    --blog-primary-color: #2C5F2D;           /* Forest Green - trust, nature */
    --blog-primary-light: #4CAF50;           /* Lighter Green - growth, harmony */
    --blog-primary-dark: #1B4332;            /* Dark Green - sophistication */
    
    /* === ACCENT COLORS (Warm Complement) === */
    --blog-accent-color: #FF6B35;            /* Warm Orange - energy, adventure */
    --blog-accent-light: #FF8A65;            /* Light Orange - warmth */
    --blog-accent-dark: #E55A2B;             /* Dark Orange - action */
    
    /* === SECONDARY COLORS (Supporting Palette) === */
    --blog-secondary-blue: #3B82C7;          /* Travel Blue - sky, ocean */
    --blog-secondary-purple: #8B5A96;        /* Sunset Purple - luxury */
    --blog-secondary-teal: #2D7D89;          /* Ocean Teal - adventure */
    
    /* === NEUTRAL COLORS (Text & Backgrounds) === */
    --blog-text-dark: #2c3e50;               /* Primary text */
    --blog-text-medium: #495057;             /* Secondary text */
    --blog-text-light: #6c757d;              /* Tertiary text */
    --blog-text-muted: #adb5bd;              /* Muted text */
    
    /* === BACKGROUND COLORS === */
    --blog-white: #ffffff;                   /* Pure white */
    --blog-background: #f8f9fa;              /* Light background */
    --blog-background-alt: #e9ecef;          /* Alternative background */
    --blog-background-dark: #343a40;         /* Dark background */
    
    /* === STATUS COLORS === */
    --blog-success: #28a745;                 /* Success state */
    --blog-warning: #ffc107;                 /* Warning state */
    --blog-danger: #dc3545;                  /* Error state */
    --blog-info: #17a2b8;                    /* Information state */
    
    /* === DESIGN SYSTEM === */
    --blog-border-radius: 12px;
    --blog-border-radius-small: 8px;
    --blog-border-radius-large: 16px;
    --blog-shadow: 0 4px 6px rgba(44, 95, 45, 0.1);
    --blog-shadow-hover: 0 8px 25px rgba(44, 95, 45, 0.15);
    --blog-shadow-focus: 0 0 0 3px rgba(44, 95, 45, 0.2);
    --blog-transition: all 0.3s ease;
    --blog-z-index-header: 10;
    --blog-z-index-overlay: 20;
    --blog-z-index-modal: 30;
}

/* Critical Grid Fix for Blog Cards */
.blog-posts-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)) !important;
    gap: 2.5rem !important;
    margin-bottom: 4rem !important;
    align-items: start !important;
    width: 100% !important;
    clear: both !important;
    grid-auto-flow: row !important;
    contain: layout !important;
    background: transparent !important;
}

/* Blog Archive Hero Section */
.blog-archive-hero {
    background: linear-gradient(135deg, var(--blog-primary-color) 0%, var(--blog-primary-light) 100%);
    color: white;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
    border-bottom: 4px solid var(--blog-accent-color);
}

.blog-archive-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="80" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="60" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    animation: float 20s infinite linear;
}

.archive-hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

/* Breadcrumb Navigation */
.breadcrumb {
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: #fff;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.breadcrumb a:hover {
    opacity: 1;
}

.breadcrumb span {
    margin: 0 0.5rem;
    opacity: 0.6;
}

.archive-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.archive-description {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2rem auto;
    line-height: 1.6;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 2;
}

/* Blog Archive Content */
.blog-archive-content {
    padding: 4rem 0;
    background: #f8f9fa;
}

/* Blog Hero Section */
.blog-hero {
    background: linear-gradient(135deg, var(--blog-primary-color) 0%, var(--blog-primary-light) 100%);
    color: white;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
    border-bottom: 4px solid var(--blog-accent-color);
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="80" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="60" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    animation: float 20s infinite linear;
}

@keyframes float {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.blog-hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.blog-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.blog-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Blog Content Layout */
.blog-content {
    padding: 4rem 0;
    background: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.blog-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.blog-main {
    background: transparent;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
}

/* Blog Posts Grid - Enhanced Card Layout */
.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    padding: 2rem;
    max-width: none;
    background: var(--blog-background);
}

/* Professional Blog Post Card - UNIFIED LAYOUT */
.blog-post-card {
    background: var(--blog-white) !important;
    border-radius: var(--blog-border-radius) !important;
    overflow: hidden !important;
    box-shadow: var(--blog-shadow) !important;
    transition: var(--blog-transition) !important;
    position: relative !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    border: 1px solid #e9ecef !important;
    transform: translateY(0);
    break-inside: avoid !important;
}

.blog-post-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s;
    pointer-events: none;
}

.blog-post-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--blog-shadow-hover);
    border-color: var(--blog-primary-color);
}

.blog-post-card:hover::after {
    left: 100%;
}

/* Enhanced destination badge for travel blogs */
.post-destination-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, var(--blog-accent-color), #FF8A65);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: var(--blog-z-index-overlay);
    animation: pulse 2s infinite;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* Blog Card Hover Effects */
.blog-post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--blog-primary-color), var(--blog-primary-light));
    transform: scaleY(0);
    transition: transform 0.3s ease;
    transform-origin: bottom;
    z-index: 1;
}

.blog-post-card:hover::before {
    transform: scaleY(1);
}

.blog-post-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--blog-shadow-hover);
    border-color: var(--blog-primary-color);
}

.blog-post-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s;
    pointer-events: none;
    z-index: 1;
}

.blog-post-card:hover::after {
    left: 100%;
}

/* Post Thumbnail */
.post-thumbnail {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    height: 250px;
    flex-shrink: 0;
    background: var(--blog-background);
}

.post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    background: var(--blog-background);
}

.blog-post-card:hover .post-image {
    transform: scale(1.05);
}

.post-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 3;
}

/* Enhanced category badge with travel theme */
.category-badge {
    background: linear-gradient(135deg, var(--blog-primary-color), var(--blog-primary-light));
    color: white !important;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(44, 95, 45, 0.3);
    backdrop-filter: blur(10px);
    border: none;
}

/* Post Content */
.post-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 1.5rem;
    flex-grow: 1;
    background: white !important;
    position: relative;
    z-index: 2;
}

.post-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--blog-text-light) !important;
    flex-wrap: wrap;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--blog-text-light) !important;
}

.post-meta i {
    font-size: 0.8rem;
    color: var(--blog-text-light) !important;
}

.post-title {
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
    line-height: 1.3;
}

.post-title a {
    color: var(--blog-text-dark) !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: var(--blog-primary-color) !important;
}

.post-excerpt {
    color: var(--blog-text-light) !important;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    background: transparent;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Enhanced read more button with travel theme */
.read-more-btn {
    background: linear-gradient(135deg, var(--blog-primary-color), #8db40e) !important;
    color: white !important; 
    padding: 0.5rem 1rem;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: none;
    
}

.read-more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
    z-index: 1;
}

.read-more-btn:hover::before {
    left: 100%;
}

.read-more-btn:hover {
    background: linear-gradient(135deg, #4CAF50, var(--blog-primary-color)) !important;
    color: white !important;
    transform: translateX(5px) translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 95, 45, 0.3);
    text-decoration: none;
}

.post-tags {
    font-size: 0.8rem;
}

.post-tags a {
    background: var(--blog-background) !important;
    color: var(--blog-text-light) !important;
    padding: 0.25rem 0.5rem;
    border-radius: 15px;
    text-decoration: none;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.post-tags a:hover {
    background: var(--blog-primary-color) !important;
    color: white !important;
    border-color: var(--blog-primary-color);
    text-decoration: none;
}

.tag-label {
    font-weight: 600;
    margin-right: 0.5rem;
    color: var(--blog-text-dark) !important;
}

/* Blog Sidebar */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.widget {
    padding: 10px;
    border-radius: var(--blog-border-radius);
    border: 1px solid #e9ecef;
}

.widget-title {
    color: var(--blog-text-dark) !important;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--blog-primary-color);
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--blog-background);
}

.widget li:last-child {
    border-bottom: none;
}

.widget a {
    color: var(--blog-text-light) !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.widget a:hover {
    color: var(--blog-primary-color) !important;
    text-decoration: none;
}

/* ================================================================
   FEATURED STORIES SECTION STYLES
   Professional featured posts layout with enhanced visual appeal
   ================================================================ */

/* Featured Stories Section */
.featured-posts {
    background: linear-gradient(135deg, var(--blog-background) 0%, #e9ecef 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.featured-posts::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(44,95,45,0.05)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23dots)"/></svg>');
    pointer-events: none;
}

/* Featured Stories Heading Styles */
.featured-stories-title,
.section-header h2 {
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    color: var(--blog-primary-color) !important;
    margin-bottom: 1rem !important;
    text-align: center !important;
    position: relative !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

/* Enhanced "Featured Stories" specific styling */
h2:contains("Featured Stories"),
.featured-stories-heading {
    background: linear-gradient(135deg, var(--blog-primary-color), #4CAF50) !important;
    background-clip: text !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    font-size: 2.8rem !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em !important;
    margin-bottom: 2rem !important;
}

.featured-stories-heading::before {
    content: '✨' !important;
    margin-right: 0.5rem !important;
    -webkit-text-fill-color: var(--blog-accent-color) !important;
}

.featured-stories-heading::after {
    content: '✨' !important;
    margin-left: 0.5rem !important;
    -webkit-text-fill-color: var(--blog-accent-color) !important;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--blog-primary-color);
    margin-bottom: 1rem;
    position: relative;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, var(--blog-accent-color), #FF8A65);
    border-radius: 2px;
}

/* Universal "Featured Stories" Styling - Practical Implementation */
.featured-stories-title,
.featured-heading,
.section-title,
h1[class*="featured"],
h2[class*="featured"],
h3[class*="featured"],
.entry-title:contains("Featured"),
.archive-title:contains("Featured") {
    font-size: 2.8rem !important;
    font-weight: 800 !important;
    background: linear-gradient(135deg, var(--blog-primary-color), #4CAF50) !important;
    background-clip: text !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    text-align: center !important;
    margin: 2rem 0 !important;
    padding: 1rem 0 !important;
    position: relative !important;
    letter-spacing: -0.02em !important;
    line-height: 1.2 !important;
    display: block !important;
}

/* Decorative styling for Featured Stories */
.featured-stories-title::before,
.featured-heading::before {
    content: '⭐' !important;
    margin-right: 0.5rem !important;
    color: var(--blog-accent-color) !important;
    -webkit-text-fill-color: var(--blog-accent-color) !important;
    font-size: 0.8em !important;
}

.featured-stories-title::after,
.featured-heading::after {
    content: '⭐' !important;
    margin-left: 0.5rem !important;
    color: var(--blog-accent-color) !important;
    -webkit-text-fill-color: var(--blog-accent-color) !important;
    font-size: 0.8em !important;
}

/* Generic heading styling with enhanced visual appeal */
.blog-section-title,
.content-title,
.page-title {
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    color: var(--blog-text-dark) !important;
    text-align: center !important;
    margin: 2rem 0 1.5rem 0 !important;
    padding: 1rem 0 !important;
    position: relative !important;
    line-height: 1.3 !important;
}

.blog-section-title::after,
.content-title::after,
.page-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(135deg, var(--blog-accent-color), #FF8A65);
    border-radius: 2px;
}

/* Enhanced text contrast and readability */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: #007cba !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
}

/* Ensure proper text visibility on all backgrounds */
.blog-post-card h1,
.blog-post-card h2,
.blog-post-card h3,
.blog-post-card h4,
.blog-post-card h5,
.blog-post-card h6,
.widget h1,
.widget h2,
.widget h3,
.widget h4,
.widget h5,
.widget h6 {
    color: var(--blog-text-dark) !important;
}

/* Alternative approach using attribute selectors */
[title*="Featured Stories"],
[data-title*="Featured Stories"],
.featured-title {
    font-size: 2.8rem !important;
    font-weight: 800 !important;
    background: linear-gradient(135deg, var(--blog-primary-color), #4CAF50) !important;
    background-clip: text !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    text-align: center !important;
    margin: 2rem 0 !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--blog-text-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Featured Posts Grid */
.featured-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    position: relative;
    z-index: 2;
}

/* Featured Post Card */
.featured-post-card {
    background: var(--blog-white);
    border-radius: var(--blog-border-radius);
    overflow: hidden;
    box-shadow: var(--blog-shadow);
    transition: var(--blog-transition);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    transform: translateY(0);
}

.featured-post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, var(--blog-primary-color), #4CAF50);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
    z-index: 3;
}

.featured-post-card:hover::before {
    transform: scaleX(1);
}

.featured-post-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 15px 40px rgba(44, 95, 45, 0.2);
}

/* Featured Post Thumbnail */
.featured-post-card .post-thumbnail {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.featured-post-card .post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-post-card:hover .post-image {
    transform: scale(1.08);
}

/* Featured Badge */
.featured-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: linear-gradient(135deg, var(--blog-accent-color), #FF8A65);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 4;
    box-shadow: 0 3px 10px rgba(255, 107, 53, 0.4);
    animation: featuredPulse 3s infinite;
}

@keyframes featuredPulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 3px 10px rgba(255, 107, 53, 0.4);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 5px 15px rgba(255, 107, 53, 0.6);
    }
}

/* Featured Post Content */
.featured-post-card .post-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.featured-post-card .post-meta {
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.featured-post-card .post-title {
    font-size: 1.4rem;
    line-height: 1.3;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.featured-post-card .post-title a {
    color: var(--blog-text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.featured-post-card .post-title a:hover {
    color: var(--blog-primary-color);
}

.featured-post-card .post-excerpt {
    color: var(--blog-text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Featured Post Footer */
.featured-post-card .post-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #f1f3f4;
}

.featured-post-card .read-more-btn {
    background: linear-gradient(135deg, var(--blog-primary-color), #4CAF50);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.featured-post-card .read-more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.featured-post-card .read-more-btn:hover::before {
    left: 100%;
}

.featured-post-card .read-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(44, 95, 45, 0.3);
}

/* Reading Time for Featured Posts */
.featured-reading-time {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--blog-text-light);
    font-size: 0.85rem;
}

.featured-reading-time i {
    font-size: 0.8rem;
}

/* Responsive Design for Featured Posts */
@media (max-width: 768px) {
    .featured-posts {
        padding: 3rem 0;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .featured-posts-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .featured-post-card .post-thumbnail {
        height: 200px;
    }

    .featured-post-card .post-content {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .section-header h2 {
        font-size: 1.8rem;
    }

    .featured-post-card .post-title {
        font-size: 1.2rem;
    }

    .featured-badge {
        font-size: 0.7rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Pagination */
.blog-pagination {
    padding: 2rem;
    text-align: center;
    border-top: 1px solid #e9ecef;
    background: var(--blog-white);
}

.page-numbers {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
}

.page-numbers a,
.page-numbers span {
    padding: 0.75rem 1rem;
    background: var(--blog-white);
    border: 1px solid #e9ecef;
    border-radius: var(--blog-border-radius-small);
    color: var(--blog-text-light);
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-numbers a:hover,
.page-numbers .current {
    background: var(--blog-primary-color) !important;
    color: white !important;
    border-color: var(--blog-primary-color) !important;
    text-decoration: none;
}

.page-numbers .prev,
.page-numbers .next {
    font-weight: 600;
}

/* No Posts Found */
.no-posts-found {
    padding: 4rem 2rem;
    text-align: center;
    background: var(--blog-white);
}

.no-posts-content {
    max-width: 500px;
    margin: 0 auto;
}

.no-posts-content i {
    color: var(--blog-text-light);
    margin-bottom: 2rem;
}

.no-posts-content h2 {
    color: var(--blog-text-dark);
    margin-bottom: 1rem;
}

.no-posts-content p {
    color: var(--blog-text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Search Form */
.search-form {
    display: flex;
    gap: 0.5rem;
    max-width: 300px;
    margin: 0 auto;
}

.search-field {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #e9ecef;
    border-radius: var(--blog-border-radius-small);
    font-size: 0.9rem;
    background: var(--blog-white);
    color: var(--blog-text-dark);
}

.search-field:focus {
    outline: none;
    border-color: var(--blog-primary-color);
    box-shadow: 0 0 0 3px rgba(44, 95, 45, 0.1);
}

.search-submit {
    background: var(--blog-primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--blog-border-radius-small);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.search-submit:hover {
    background: #4CAF50;
    transform: translateY(-1px);
}

/* Enhanced Responsive Design */
@media (max-width: 1024px) {
    .blog-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .blog-posts-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
        padding: 1.5rem;
    }

    .blog-post-card {
        grid-template-columns: 250px 1fr;
        gap: 1rem;
    }

    .post-thumbnail {
        height: 150px;
    }
}

@media (max-width: 768px) {
    .blog-title {
        font-size: 2.5rem;
    }

    .blog-subtitle {
        font-size: 1rem;
    }

    .container {
        padding: 0 1rem;
    }

    .blog-content {
        padding: 2rem 0;
    }

    .blog-posts-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 1.5rem;
    }

    .blog-post-card {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .post-thumbnail {
        height: 200px;
    }

    .post-meta {
        gap: 0.5rem;
        font-size: 0.8rem;
        flex-wrap: wrap;
    }

    .post-title {
        font-size: 1.3rem;
    }

    .post-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .widget {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .blog-title {
        font-size: 2rem;
    }

    .blog-hero {
        padding: 2rem 0;
    }

    .blog-posts-grid {
        gap: 1rem;
    }

    .blog-post-card {
        padding: 1rem;
    }

    .post-title {
        font-size: 1.2rem;
    }

    .read-more-btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .post-destination-badge {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }
}

/* Additional Professional Enhancements */

/* Loading animation for blog posts */
.blog-post-card.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Smooth scroll for pagination */
.blog-pagination a {
    scroll-behavior: smooth;
}

/* Enhanced focus states for accessibility */
.blog-post-card:focus-within {
    outline: 2px solid var(--blog-primary-color);
    outline-offset: 4px;
}

/* Modern Accessibility and Performance Enhancements */
@media (prefers-reduced-motion: reduce) {

    .blog-post-card,
    .read-more-btn,
    .post-image,
    .post-destination-badge {
        animation: none;
        transition: none;
    }
}

/* Print styles for blog posts */
@media print {

    .blog-hero,
    .blog-sidebar,
    .read-more-btn,
    .post-destination-badge {
        display: none;
    }

    .blog-post-card {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
        margin-bottom: 2rem;
    }

    .post-title a {
        color: #000 !important;
        text-decoration: underline;
    }

    .post-title a::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }

    .post-image {
        max-height: 200px;
        object-fit: cover;
    }
}

/* Enhanced Loading States */
.blog-post-card.loading {
    opacity: 0.6;
    pointer-events: none;
}

.blog-post-card.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 32px;
    height: 32px;
    margin: -16px 0 0 -16px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--blog-primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Modern Container Queries (Future-Proof) */
@supports (container-type: inline-size) {
    .blog-posts-grid {
        container-type: inline-size;
    }

    @container (min-width: 768px) {
        .blog-post-card {
            grid-template-columns: 300px 1fr;
        }
    }
}

/* Dark Mode Support - Unified and Fixed */
@media (prefers-color-scheme: dark) {
    :root {
        --blog-background: #ffffff;
        --blog-white: #2d2d2d;
        --blog-text-dark: #e0e0e0;
        --blog-text-light: #b0b0b0;
    }

    .blog-post-card {
        background: var(--blog-white) !important;
        color: var(--blog-text-dark) !important;
        border-color: #404040 !important;
    }

    .post-content {
        background: white !important;
    }

    .post-title a {
        color: var(--blog-text-dark) !important;
    }

    .post-title a:hover {
        color: #4CAF50 !important;
    }

    .post-excerpt {
        color: var(--blog-text-light) !important;
    }

    .post-meta,
    .post-meta span,
    .post-meta i {
        color: var(--blog-text-light) !important;
    }

    .widget {
        border-color: #404040 !important;
    }

    .widget-title {
        color: var(--blog-text-dark) !important;
    }

    .widget a {
        color: var(--blog-text-light) !important;
    }

    .widget a:hover {
        color: #4CAF50 !important;
    }

    .blog-content {
        background: var(--blog-background) !important;
    }
}

/* Destination-specific styling for travel blogs */
.destination-info-banner {
    background: linear-gradient(135deg, rgba(44, 95, 45, 0.1), rgba(76, 175, 80, 0.1));
    border-left: 4px solid #2C5F2D;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 0 8px 8px 0;
}

.destination-info-banner .destination-name {
    font-weight: 600;
    color: #2C5F2D;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.destination-info-banner .destination-name i {
    color: #FF6B35;
}

/* Related destinations in blog posts */
.related-destinations-tags {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.related-destinations-tags .destination-tag {
    display: inline-block;
    padding: 0.3rem 0.6rem;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(255, 138, 101, 0.1));
    color: #FF6B35;
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 15px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.related-destinations-tags .destination-tag:hover {
    background: #FF6B35;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

/* ================================================================
   ENHANCED BLOG LIST FEATURES - PROFESSIONAL UPGRADE
   ================================================================ */

/* Enhanced Blog Post Card Animations */
.blog-post-card {
    position: relative;
    overflow: hidden;
}

.blog-post-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(44, 95, 45, 0.05), transparent);
    transition: left 0.6s ease;
    pointer-events: none;
}

.blog-post-card:hover::after {
    left: 100%;
}

/* Enhanced Featured Image Effects */
.post-thumbnail {
    overflow: hidden;
    position: relative;
}

.post-thumbnail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.blog-post-card:hover .post-thumbnail::before {
    opacity: 1;
}

/* Enhanced Typography Hierarchy */
.post-title {
    position: relative;
    line-height: 1.3;
}

.post-title a {
    background: linear-gradient(to right, #2c3e50, #2c3e50);
    background-size: 0% 2px;
    background-repeat: no-repeat;
    background-position: bottom left;
    transition: all 0.3s ease;
}

.post-title a:hover {
    background-size: 100% 2px;
    background-image: linear-gradient(to right, #2C5F2D, #4CAF50);
}

/* Smart Excerpt Handling */
.post-excerpt {
    position: relative;
    max-height: 4.8em;
    /* Exactly 3 lines for consistency */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    /* Standard property for compatibility */
    -webkit-box-orient: vertical;
}

/* Advanced Meta Information Display */
.post-meta {
    position: relative;
}

.post-meta span::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 12px;
    background: #e9ecef;
}

.post-meta span:first-child::before {
    display: none;
}

/* Enhanced Destination Badge */
.post-destination-badge {
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
    }
}

/* Advanced Hover States */
.read-more-btn {
    position: relative;
    overflow: hidden;
}

.read-more-btn::after {
    content: '\f061';
    /* FontAwesome arrow-right */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 10px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.read-more-btn:hover::after {
    opacity: 1;
    transform: translateX(0);
}

.read-more-btn:hover i {
    transform: translateX(5px);
}

/* Enhanced Loading States */
.blog-posts-grid.loading .blog-post-card {
    opacity: 0.7;
    pointer-events: none;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.blog-post-card.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* Enhanced Pagination */
.page-numbers {
    position: relative;
}

.page-numbers a::before,
.page-numbers span::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, #2C5F2D, #4CAF50);
    transition: width 0.3s ease;
    z-index: -1;
    border-radius: 8px;
}

.page-numbers a:hover::before,
.page-numbers .current::before {
    width: 100%;
}

/* Advanced Accessibility Enhancements */
.blog-post-card:focus-within {
    outline: 3px solid #2C5F2D;
    outline-offset: 3px;
    box-shadow: 0 0 0 6px rgba(44, 95, 45, 0.2);
}

/* Skip to content for screen readers */
.screen-reader-text {
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    position: fixed !important;
    top: 10px;
    left: 10px;
    width: auto;
    height: auto;
    clip: auto !important;
    background: #2C5F2D;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    z-index: 100;
}

/* Enhanced Micro-interactions */
.widget {
    transition: transform 0.2s ease;
}

.widget:hover {
    transform: translateY(-2px);
}

.widget-title {
    position: relative;
    overflow: hidden;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(to right, #2C5F2D, #4CAF50);
    transition: width 0.3s ease;
}

.widget:hover .widget-title::after {
    width: 60px;
}

/* Performance Optimizations */
.blog-post-card,
.post-image,
.read-more-btn {
    will-change: transform;
}

/* Modern Image Lazy Loading Support */
.post-image {
    background: #f8f9fa;
    transition: opacity 0.3s ease;
}

.post-image[loading="lazy"] {
    opacity: 0;
}

.post-image.loaded,
.post-image[loading="lazy"]:not([data-src]) {
    opacity: 1;
}

/* Enhanced Grid Consistency */
.blog-posts-grid {
    display: grid;
    gap: 2rem;
    grid-auto-rows: 1fr;
    /* Equal height cards */
}

/* Advanced Typography Scale */
@media (min-width: 1200px) {
    .blog-title {
        font-size: 3.5rem;
    }

    .post-title {
        font-size: 1.6rem;
    }
}

/* Enhanced Mobile Experience */
@media (max-width: 768px) {
    .blog-post-card::after {
        display: none;
        /* Remove sweep animation on mobile for performance */
    }

    .post-destination-badge {
        animation: none;
        /* Remove pulsing animation on mobile */
    }
}

/* Advanced Print Styles */
@media print {
    .blog-post-card {
        break-inside: avoid;
        margin-bottom: 2rem;
    }

    .post-image {
        max-height: 200px;
        object-fit: cover;
    }

    .read-more-btn {
        display: none;
    }

    .post-title a::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }
}