/*
Theme Name: Travel Blogs
Description: A clean and modern travel blog theme with neutral tones, perfect for travel bloggers and adventure enthusiasts.
Version: 4.2
Author: Travel Blogs
Text Domain: travel-blogs
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    line-height: 1.8;
    color: #2d2d2d;
    background: #fefefe;
    font-weight: 400;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: 30px; /* Reduced padding for fixed header */
}

/* Remove default bold styling from strong tags */
strong {
    font-weight: 700;
}

/* Enhanced Color Variables - Clean Neutral Travel Theme */
:root {
    /* Font Families */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-accent: 'Playfair Display', Georgia, serif;
    
    /* Primary Colors - Enhanced Neutral with Better Contrast */
    --primary-blue: #8b7355;      /* Deeper Taupe - Better contrast */
    --secondary-blue: #6b5b47;    /* Darker Warm Gray - More prominent */
    --accent-blue: #a68b73;       /* Enhanced Light Taupe */
    --light-blue: #f8f6f4;        /* Warmer Light Gray */
    
    /* Base Colors - Enhanced Contrast */
    --white: #ffffff;
    --light-gray: #f7f5f3;       /* Warmer undertone */
    --medium-gray: #8a8a8a;       /* Darker for better contrast */
    --dark-gray: #2d2d2d;         /* Much darker for better readability */
    
    /* Text Colors - Improved Contrast */
    --text-primary: #1a1a1a;      /* Near black for maximum contrast */
    --text-secondary: #4a4a4a;   /* Darker secondary text */
    --text-muted: #6b6b6b;        /* Better contrast than #999 */
    
    /* Borders & Effects - Modern Shadows */
    --border-color: #d1c7b8;      /* Warmer border color */
    --border-light: #e8e0d6;     /* Subtle warm border */
    --shadow-sm: 0 1px 3px 0 rgba(139, 115, 85, 0.1);
    --shadow-md: 0 4px 8px -2px rgba(139, 115, 85, 0.15);
    --shadow-lg: 0 10px 20px -5px rgba(139, 115, 85, 0.15);
    --shadow-xl: 0 20px 30px -10px rgba(139, 115, 85, 0.2);
    
    /* Modern Accent Colors */
    --accent-warm: #d4a574;       /* Warm accent for highlights */
    --accent-cool: #7a8b9a;       /* Cool accent for balance */
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

/* ========================================
   Enhanced Typography - Professional & Consistent
   Applied globally across all pages
   ======================================== */

h1, h2, h3, h4, h5, h6,
.post-title, .page-title, .entry-title,
.archive-title, .search-title,
.search-result-title, .nav-post-title {
    font-family: var(--font-heading) !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    letter-spacing: -0.01em !important;
}

h1 {
    font-size: 3rem;
    color: #1a1a1a;
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    font-size: 2.25rem;
    color: #2d2d2d;
    font-weight: 700;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid rgba(139, 115, 85, 0.2);
}

h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #3a3a3a;
}

h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d2d2d;
}

h5 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2d2d2d;
}

h6 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #2d2d2d;
}

/* Responsive Typography */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.375rem;
    }
}

p {
    margin-bottom: 1.5rem;
    color: #2d2d2d;
    line-height: 1.8;
    font-size: 1.125rem;
    font-weight: 400;
}

/* Content Typography */
.entry-content,
.page-content,
.post-content,
article {
    font-family: 'Inter', sans-serif;
    font-size: 1.125rem;
    line-height: 1.8;
    color: #334155;
}

.entry-content p,
.page-content p,
.post-content p,
article p {
    margin-bottom: 1.5rem;
    color: #2d2d2d;
    line-height: 1.8;
}

.entry-content a,
.page-content a,
.post-content a,
article a {
    text-decoration: none;
    transition: all 0.3s ease;
}

.entry-content a:hover,
.page-content a:hover,
.post-content a:hover,
article a:hover {
    color: #1e40af;
}

/* Lists */
.entry-content ul,
.page-content ul,
.post-content ul,
article ul,
.entry-content ol,
.page-content ol,
.post-content ol,
article ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    color: #2d2d2d;
}

.entry-content li,
.page-content li,
.post-content li,
article li {
    margin-bottom: 0.75rem;
    line-height: 1.8;
    font-size: 1.125rem;
}

/* Blockquotes */
.entry-content blockquote,
.page-content blockquote,
.post-content blockquote,
article blockquote {
    border-left: 4px solid #3b82f6;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    background: rgba(239, 246, 255, 0.5);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #475569;
    font-size: 1.125rem;
}

/* Code */
.entry-content code,
.page-content code,
.post-content code,
article code {
    background: #f1f5f9;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #1e40af;
}

.entry-content pre,
.page-content pre,
.post-content pre,
article pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.entry-content pre code,
.page-content pre code,
.post-content pre code,
article pre code {
    background: transparent;
    padding: 0;
    color: #e2e8f0;
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-blue);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Professional Header */
.site-header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border-light);
    transition: all 0.3s ease;
    padding: 1rem 2rem;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
}


.site-header.scrolled {
    box-shadow: var(--shadow-md);
}

/* Add margin to main element to push it below fixed header */
main {
    margin-top: 80px !important;
    min-height: calc(100vh - 80px);
}

@media (max-width: 768px) {
    main {
        margin-top: 100px !important;
        min-height: calc(100vh - 100px);
    }
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.site-branding {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.site-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    letter-spacing: -0.03em;
    margin: 0;
}

.site-title:hover {
    color: var(--primary-blue);
    transform: translateY(-1px);
}

/* Clean Navigation */
.main-navigation {
    display: flex;
    list-style: none;
    gap: 0.25rem;
    align-items: center;
    flex-direction: row;
    flex-wrap: nowrap;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 0.25rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    position: relative;
    white-space: nowrap;
}

.main-navigation a {
    font-weight: 500;
    color: var(--text-secondary);
    padding: 0.625rem 1rem;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    position: relative;
    font-size: 0.9375rem;
    letter-spacing: 0.01em;
}

.main-navigation a:hover {
    color: var(--primary-blue);
    background: var(--light-blue);
}

.main-navigation a.current {
    color: var(--primary-blue);
    font-weight: 600;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: linear-gradient(135deg, #9b8579, #7d6e63);
    color: var(--white);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.mobile-menu-toggle:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #7d6e63, #666666);
}

.mobile-menu-toggle.active {
    background: linear-gradient(135deg, #7d6e63, #666666);
}

.menu-icon {
    font-size: 1.2rem;
}

/* Hero Section */
.hero-section {
    padding: 2rem 2rem;
    overflow: visible;
}

.hero-section .container {
    max-width: 1200px;
    margin: 0 auto;
    overflow: visible;
}

.hero-section .hero-wrapper {
    /* Enhanced background with stronger contrast overlay - WebP with JPEG fallback */
    background-image: 
        linear-gradient(135deg, rgba(139, 115, 85, 0.6) 0%, rgba(107, 91, 71, 0.65) 50%, rgba(166, 139, 115, 0.6) 100%),
        url('images/hero-background.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--white);
    padding: 4rem 3rem;
    text-align: center;
    position: relative;
    overflow: visible;
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(139, 115, 85, 0.2);
}

/* Fallback for browsers that don't support WebP */
.no-webp .hero-section .hero-wrapper {
    background-image: 
        linear-gradient(135deg, rgba(139, 115, 85, 0.6) 0%, rgba(107, 91, 71, 0.65) 50%, rgba(166, 139, 115, 0.6) 100%),
        url('images/hero-background.jpg');
}

.hero-section .hero-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%"><stop offset="0%" stop-color="rgba(255,255,255,0.1)"/><stop offset="100%" stop-color="rgba(255,255,255,0)"/></radialGradient></defs><circle cx="200" cy="200" r="100" fill="url(%23a)"/><circle cx="800" cy="300" r="150" fill="url(%23a)"/><circle cx="400" cy="700" r="120" fill="url(%23a)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    color: var(--white);
    font-size: 3.5rem;
    margin-top: -2rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), 0 2px 6px rgba(0, 0, 0, 0.3);
    letter-spacing: -1px;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}

.hero-content p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
    font-weight: 400;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.2));
}

.cta-button {
    display: inline-block;
    background: rgba(255, 255, 255, 0.98);
    color: var(--primary-blue);
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    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.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    background: var(--white);
    color: var(--secondary-blue);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25), 0 8px 20px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Hero Search Section */
.hero-search-section {
    max-width: 600px;
    margin: 3rem auto 0 auto;
    overflow: visible;
}

.search-container {
    position: relative;
    overflow: visible;
}

.search-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 50px;
    padding: 0.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.search-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.search-icon {
    font-size: 1.2rem;
    margin: 0 1rem;
    opacity: 0.7;
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 1rem 0.5rem;
    font-size: 1rem;
    color: var(--dark-gray);
    outline: none;
}

.search-input::placeholder {
    color: var(--medium-gray);
    font-weight: 400;
}

.search-btn {
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-btn:hover {
    background: linear-gradient(135deg, var(--secondary-blue), var(--primary-blue));
    transform: scale(1.05);
}

.content-area {
    margin-bottom: 3rem;
}

.content-area.centered {
    display: block;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding: 2rem;
}

/* Blog Posts */
.posts-container {
    display: grid;
    gap: 2.5rem;
}

.post-card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-light);
    position: relative;
}

.post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-blue));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.post-card:hover::before {
    transform: scaleX(1);
}

.post-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-blue);
}

.post-thumbnail {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.post-card:hover .post-thumbnail {
    transform: scale(1.05);
}

.post-content {
    padding: 2rem;
}

.post-title {
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
    line-height: 1.3;
    font-weight: 700;
}

.post-title a {
    color: var(--dark-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: var(--primary-blue);
}

.post-meta {
    color: var(--medium-gray);
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.8rem;
    background: rgba(37, 99, 235, 0.05);
    border-radius: 20px;
    font-weight: 500;
}

.post-excerpt {
    color: var(--medium-gray);
    line-height: 1.7;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
    color: var(--white);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.read-more:hover {
    background: linear-gradient(135deg, var(--secondary-blue), var(--primary-blue));
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Sidebar */
.sidebar {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.8) 100%);
    padding: 2.5rem;
    border-radius: 20px;
    height: fit-content;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(37, 99, 235, 0.1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 100px;
}

.widget {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(37, 99, 235, 0.1);
}

.widget:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.widget-title {
    font-size: 1.3rem;
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 3px solid var(--primary-blue);
    font-weight: 700;
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 30px;
    height: 3px;
    background: var(--accent-blue);
}

.widget ul {
    list-style: none;
}

.widget li {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(37, 99, 235, 0.05);
    transition: all 0.3s ease;
}

.widget li:last-child {
    border-bottom: none;
}

.widget li:hover {
    background: rgba(37, 99, 235, 0.05);
    padding-left: 0.5rem;
    border-radius: 8px;
}

.widget li a {
    color: var(--medium-gray);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.widget li a:hover {
    color: var(--primary-blue);
}

/* Footer */
/* ========================================
   Footer Styles - Clean & Modern
   ======================================== */

.site-footer {
    background: linear-gradient(135deg, #2c1810 0%, #3e2415 100%);
    color: var(--white);
    padding: 2rem 0;
    position: relative;
    overflow: hidden;
    border-top: 4px solid #9b8579;
}

/* Subtle pattern overlay */
.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(230, 126, 34, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(243, 156, 18, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 6rem;
    position: relative;
    z-index: 2;
}

.footer-copyright {
    text-align: center;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.8;
    margin: 0;
    letter-spacing: 0.3px;
}

.footer-divider {
    margin: 0 1rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 300;
}

.footer-link {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 2px;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.9);
    transition: width 0.3s ease;
}

.footer-link:hover {
    color: var(--white);
}

.footer-link:hover::after {
    width: 100%;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .site-footer {
        padding: 1.5rem 0;
        margin-top: 4rem;
    }
    
    .footer-container {
        padding: 0 3rem;
    }
    
    .footer-copyright {
        font-size: 0.85rem;
        line-height: 2;
    }
    
    .footer-divider {
        margin: 0 0.5rem;
    }
}

@media (max-width: 480px) {
    .footer-container {
        padding: 0 1.5rem;
    }
    
    .footer-copyright {
        font-size: 0.8rem;
        line-height: 2.2;
    }
    
    /* Stack on mobile for better readability */
    .footer-divider {
        display: inline-block;
    }
}

/* Single Post Styles */
.single-post {
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: visible;
}

.post-header {
    padding: 2rem 2rem 1rem;
}

.post-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.post-meta-single {
    color: var(--medium-gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.post-content-single {
    padding: 0 2rem 2rem;
}

.post-content-single img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 1rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    main {
        min-height: calc(100vh - 120px);
        padding: 0 !important;
    }
    
    .header-content {
        display: flex;
        flex-wrap: nowrap;
        gap: 0.5rem;
        align-items: center;
        position: relative;
    }
    
    .site-branding {
        width: 100%;
        text-align: center;
        order: 1;
        margin-bottom: 0;
    }
    
    .site-title {
        font-size: 1.6rem;
    }
    
    /* Mobile menu toggle */
    .mobile-menu-toggle {
        display: block;
        order: 2;
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    
    /* Theme switcher - icon only on mobile */
    .theme-switcher {
        order: 3;
        display: flex;
        justify-content: flex-end;
        margin-left: 0;
    }
    
    .theme-toggle-btn {
        padding: 0.5rem 0.75rem;
    }
    
    .theme-text {
        display: none;
    }
    
    /* Plan Your Trip button - shorter text on mobile */
    .plan-trip-button {
        order: 4;
        justify-content: center;
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
    }
    
    .plan-trip-button .button-text {
        display: none;
    }
    
    /* Hide main navigation on mobile - toggle shows it */
    .main-navigation {
        display: none;
        order: 5;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        box-shadow: var(--shadow-md);
        border-top: 1px solid var(--border-light);
        z-index: 9998;
    }
    
    .main-navigation.active {
        display: block;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 0;
        padding: 0.5rem 0;
        list-style: none;
        margin: 0;
    }
    
    .main-navigation li {
        border-bottom: 1px solid var(--border-light);
    }
    
    .main-navigation li:last-child {
        border-bottom: none;
    }
    
    .main-navigation a {
        padding: 1rem 1.5rem;
        font-size: 0.95rem;
        font-weight: 500;
        display: block;
        text-align: left;
        transition: all 0.3s ease;
    }
    
    .main-navigation a:hover {
        background: var(--light-blue);
        padding-left: 2rem;
    }
    
    .hero-section {
        padding: 2rem 1.5rem;
    }
    
    .hero-section .hero-wrapper {
        padding: 4rem 2rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .hero-search-section {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .search-box {
        padding: 0.3rem;
    }
    
    .search-input {
        padding: 0.8rem 0.3rem;
        font-size: 0.9rem;
    }
    
    .search-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.8rem;
    }
    
    .content-area {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .sidebar {
        position: static;
        margin-top: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .post-header h1 {
        font-size: 1.8rem;
    }
    
    .post-content-single {
        padding: 0 1rem 1rem;
    }
    
    .post-card {
        margin-bottom: 1.5rem;
    }
    
    .post-content {
        padding: 1.5rem;
    }
    
    .widget {
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-section {
        padding: 1.5rem 1rem;
    }
    
    .hero-section .hero-wrapper {
        padding: 3rem 1.5rem;
        border-radius: 20px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .cta-button {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    main {
        padding: 2rem 0;
    }
    
    .sidebar {
        padding: 1.5rem;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .post-meta span {
        font-size: 0.8rem;
    }
}

/* Additional Modern Enhancements */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.post-card {
    animation: fadeInUp 0.6s ease-out;
}

.widget {
    animation: slideInLeft 0.6s ease-out;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus states for accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* Loading animation for images */
.post-thumbnail {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.post-thumbnail img {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.post-thumbnail img.loaded {
    opacity: 1;
}

/* Global Image Alignment Styles - Apply to All Pages */
/* Gutenberg Block Images */
.wp-block-image,
figure.wp-block-image {
    margin: 1.5rem 0;
}

.wp-block-image.alignleft,
.wp-block-image.alignright,
figure.wp-block-image.alignleft,
figure.wp-block-image.alignright {
    max-width: 45%;
}

.wp-block-image.alignleft,
figure.wp-block-image.alignleft {
    float: left !important;
    margin: 0.5rem 2rem 1.5rem 0 !important;
}

.wp-block-image.alignright,
figure.wp-block-image.alignright {
    float: right !important;
    margin: 0.5rem 0 1.5rem 2rem !important;
}

.wp-block-image.aligncenter,
figure.wp-block-image.aligncenter {
    text-align: center;
    margin: 2rem auto;
    display: block;
}

.wp-block-image img,
figure.wp-block-image img {
    display: block;
    width: 100%;
    height: auto;
}

/* Gutenberg figure captions */
figure.wp-block-image figcaption {
    font-size: 0.875rem;
    color: #64748b;
    text-align: center;
    padding: 0.5rem 0.75rem;
    font-style: italic;
    margin-top: 0.5rem;
}

/* Classic Editor Image Alignment */
img.alignleft {
    float: left !important;
    margin: 0.5rem 2rem 1.5rem 0 !important;
    max-width: 45%;
}

img.alignright {
    float: right !important;
    margin: 0.5rem 0 1.5rem 2rem !important;
    max-width: 45%;
}

img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    clear: both;
}

img.alignnone {
    margin: 1.5rem 0;
}

/* Image captions for classic editor */
.wp-caption {
    max-width: 100%;
}

.wp-caption.alignleft {
    float: left !important;
    margin: 0.5rem 2rem 1.5rem 0 !important;
    max-width: 45%;
}

.wp-caption.alignright {
    float: right !important;
    margin: 0.5rem 0 1.5rem 2rem !important;
    max-width: 45%;
}

.wp-caption.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    clear: both;
}

.wp-caption img {
    display: block;
    width: 100%;
    height: auto;
}

.wp-caption-text {
    font-size: 0.875rem;
    color: #64748b;
    text-align: center;
    padding: 0.5rem 0.75rem;
    font-style: italic;
    background: rgba(241, 245, 249, 0.5);
    border-radius: 0 0 8px 8px;
}

/* Ensure content areas support floated images */
.entry-content,
.page-content,
.post-content,
article {
    overflow: visible !important;
}

.entry-content::after,
.page-content::after,
.post-content::after,
article::after {
    content: "";
    display: table;
    clear: both;
}

/* Responsive: Full width images on mobile */
@media (max-width: 768px) {
    .alignleft,
    .alignright,
    img.alignleft,
    img.alignright,
    .wp-caption.alignleft,
    .wp-caption.alignright,
    .wp-block-image.alignleft,
    .wp-block-image.alignright,
    figure.wp-block-image.alignleft,
    figure.wp-block-image.alignright {
        float: none !important;
        max-width: 100% !important;
        margin: 1.5rem 0 !important;
        display: block !important;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* Responsive Typography */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    h4 {
        font-size: 1.25rem;
    }
    
    h5 {
        font-size: 1.125rem;
    }
    
    h6 {
        font-size: 1rem;
    }
    
    p,
    .entry-content p,
    .page-content p,
    .post-content p,
    article p,
    .entry-content li,
    .page-content li,
    .post-content li,
    article li {
        font-size: 1rem;
    }
    
    .entry-content,
    .page-content,
    .post-content,
    article {
        font-size: 1rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.625rem;
    }
}
