/* ===== BLOG PAGES ===== */

/* ── Hero with animated blobs (duplicated from tour-index.css for blog pages) ── */
.hero {
    position: relative;
    min-height: 55vh;
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fef3e2, #fde2c8);
    padding: 120px 24px 80px;
    overflow: hidden;
    text-align: center;
    margin-top: -76px;
}
.hero-blob {
    position: absolute;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    opacity: 0.12;
    pointer-events: none;
    z-index: 0;
}
.hero-blob-1 {
    width: 450px;
    height: 400px;
    background: #e8734a;
    top: -80px;
    right: -100px;
    animation: blobFloat1 18s ease-in-out infinite;
}
.hero-blob-2 {
    width: 350px;
    height: 320px;
    background: #8fae8b;
    bottom: -60px;
    left: -80px;
    border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
    animation: blobFloat2 22s ease-in-out infinite;
}
.hero-blob-3 {
    width: 200px;
    height: 200px;
    background: #fbbf24;
    top: 40%;
    left: 15%;
    border-radius: 50% 50% 30% 70% / 60% 40% 60% 40%;
    animation: blobFloat3 15s ease-in-out infinite;
}
@keyframes blobFloat1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, 20px) rotate(5deg); }
    66% { transform: translate(-20px, -10px) rotate(-3deg); }
}
@keyframes blobFloat2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(-25px, -15px) rotate(-4deg); }
    66% { transform: translate(15px, 25px) rotate(6deg); }
}
@keyframes blobFloat3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -20px) scale(1.1); }
}
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 780px;
}
.hero-content h1 {
    font-size: 3.2rem;
    color: #2d3436;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}
.hero-content h1 span {
    color: #f97316;
}
.hero-subtitle {
    font-size: 1.15rem;
    color: #4a4a4a;
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ── Category filter ── */
.blog-categories {
    background: #fffbf5;
    padding: 60px 24px 40px;
}
.categories-wrapper {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}
.category-btn {
    padding: 10px 24px;
    border-radius: 50px;
    border: 2px solid rgba(249, 115, 22, 0.2);
    background: #fff;
    color: #555;
    font-size: 0.92rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}
.category-btn:hover {
    border-color: #f97316;
    color: #f97316;
    background: rgba(249, 115, 22, 0.05);
}
.category-btn.active {
    background: linear-gradient(135deg, #f97316, #e8734a);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

/* ── Blog section (listing grid) ── */
.blog-section {
    background: #fef3e2;
    padding: 60px 24px 80px;
}
.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

/* ── Blog card ── */
.blog-card {
    background: #fff;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    display: flex;
    flex-direction: column;
}
.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.1);
}

/* Card image */
.blog-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}
.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

/* Category badge on image */
.blog-category {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 14px;
    border-radius: 50px;
    background: linear-gradient(135deg, #f97316, #fbbf24);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3);
}

/* Card body */
.blog-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.blog-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.82rem;
    color: #888;
    margin-bottom: 12px;
}
.blog-meta i {
    font-size: 0.78rem;
}
.blog-title {
    font-size: 1.2rem;
    color: #2d3436;
    margin-bottom: 10px;
    line-height: 1.4;
}
.blog-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}
.blog-title a:hover {
    color: #f97316;
}
.blog-excerpt {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.7;
    flex: 1;
    margin-bottom: 16px;
}
.read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #f97316;
    text-decoration: none;
    transition: all 0.3s ease;
}
.read-more:hover {
    gap: 10px;
}
.read-more i {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}
.read-more:hover i {
    transform: translateX(3px);
}

/* ── Featured card ── */
.blog-card.featured {
    grid-column: 1 / -1;
    flex-direction: row;
}
.blog-card.featured .blog-image {
    width: 50%;
    height: auto;
    min-height: 320px;
}
.blog-card.featured .blog-content {
    width: 50%;
    padding: 32px;
    justify-content: center;
}
.blog-card.featured .blog-title {
    font-size: 1.5rem;
}
.blog-card.featured .blog-excerpt {
    font-size: 0.95rem;
}

/* Blog Post Detail */
.blog-post-hero {
    position: relative;
    min-height: 45vh;
    min-height: 350px;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
    padding: 0 24px 50px;
    overflow: hidden;
}
.blog-post-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(44,30,19,0.1) 0%, rgba(44,30,19,0.55) 100%);
    z-index: 0;
}
.blog-post-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}
.blog-post-hero h1 {
    font-size: 2.6rem;
    color: #fff;
    margin-bottom: 12px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.blog-post-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
}
.blog-post-meta i {
    font-size: 0.82rem;
}

.blog-post-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}
.blog-post-content h2 {
    font-size: 1.8rem;
    color: #2d3436;
    margin: 40px 0 16px;
}
.blog-post-content h3 {
    font-size: 1.4rem;
    color: #2d3436;
    margin: 32px 0 12px;
}
.blog-post-content p {
    font-size: 1.02rem;
    color: #555;
    line-height: 1.85;
    margin-bottom: 20px;
}
.blog-post-content .blog-content ul,
.blog-post-content .blog-content ol {
    padding-left: 24px;
    margin-bottom: 20px;
}
.blog-post-content .blog-content li {
    font-size: 1rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 8px;
    list-style: disc;
}
.blog-post-content .blog-content ol li {
    list-style: decimal;
}
.blog-post-content img {
    max-width: 100%;
    width: 100%;
    height: auto;
    border-radius: 1rem;
    margin: 24px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.blog-post-content blockquote {
    border-left: 4px solid #f97316;
    padding: 16px 24px;
    margin: 24px 0;
    background: #fef3e2;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: #555;
}

/* ── Blog Post Detail: Two-column layout ── */
.blog-container {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 40px;
}

/* Scoped to blog post detail — prevent collision with listing-page .blog-content */
.blog-post-content .blog-content h2 {
    font-size: 1.8rem;
    color: #2d3436;
    margin: 40px 0 16px;
}
.blog-post-content .blog-content h3 {
    font-size: 1.4rem;
    color: #2d3436;
    margin: 32px 0 12px;
}
.blog-post-content .blog-content p {
    font-size: 1.02rem;
    color: #555;
    line-height: 1.85;
    margin-bottom: 20px;
}

/* Blog post images */
.blog-post-image {
    width: 100%;
    border-radius: 1rem;
    margin: 24px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Sidebar */
.blog-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ── Shared sidebar card base ── */
.blog-toc,
.tour-categories {
    background: linear-gradient(165deg, #fffcf8 0%, #fef8f0 100%);
    border-radius: 1rem;
    padding: 20px;
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.04),
        0 6px 24px rgba(139, 90, 43, 0.06);
    border: 1px solid rgba(249, 115, 22, 0.08);
    margin-bottom: 0;
}

/* ── Shared heading style ── */
.blog-toc h3,
.tour-categories h3 {
    font-size: 0.82rem;
    font-weight: 700;
    color: #c2410c;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 14px;
    padding: 0 0 10px 12px;
    border-bottom: none;
    border-left: 3px solid #f97316;
    line-height: 1;
}

/* ── Shared list reset ── */
.blog-toc ul,
.tour-categories ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* ── Table of Contents ── */
.blog-toc li {
    margin-bottom: 1px;
}
.blog-toc a {
    display: block;
    font-size: 0.85rem;
    color: #5a5148;
    text-decoration: none;
    padding: 5px 10px 5px 12px;
    border-left: 2px solid transparent;
    border-radius: 0 6px 6px 0;
    line-height: 1.5;
    transition: all 0.2s ease;
}
.blog-toc a:hover {
    color: #ea580c;
    background: rgba(249, 115, 22, 0.06);
    border-left-color: #f97316;
}

/* ── Tour Categories ── */
.tour-categories li {
    margin-bottom: 0;
}

/* Parent category links (non-subcategory items) */
.tour-categories > ul > li:not(.subcategory) > a {
    display: flex;
    align-items: center;
    font-size: 0.88rem;
    font-weight: 600;
    color: #3d3229;
    text-decoration: none;
    padding: 8px 10px 8px 0;
    transition: color 0.2s ease;
}
.tour-categories > ul > li:not(.subcategory) > a::before {
    content: '\203A';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    flex-shrink: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #f97316;
    transition: transform 0.2s ease;
}
.tour-categories > ul > li:not(.subcategory) > a:hover {
    color: #ea580c;
}
.tour-categories > ul > li:not(.subcategory) > a:hover::before {
    transform: translateX(2px);
}

/* Subcategory items */
.tour-categories .subcategory {
    padding-left: 20px;
    margin-top: 0;
    position: relative;
}
.tour-categories .subcategory::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(249, 115, 22, 0.15);
}
.tour-categories .subcategory a {
    display: block;
    font-size: 0.82rem;
    font-weight: 400;
    color: #78716c;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}
.tour-categories .subcategory a:hover {
    color: #ea580c;
    background: rgba(249, 115, 22, 0.06);
}

/* CTA box */
.blog-cta-box {
    background: #fef3e2;
    border-radius: 1rem;
    padding: 28px 24px;
    margin-bottom: 24px;
    text-align: center;
}
.blog-cta-box h3 {
    font-size: 1.1rem;
    color: #2d3436;
    margin: 0 0 12px;
}
.blog-cta-box p {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 16px;
}
.blog-cta-box .btn,
.blog-cta-box a.btn {
    display: inline-block;
    padding: 10px 24px;
    background: linear-gradient(135deg, #f97316, #e8734a);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.blog-cta-box .btn:hover,
.blog-cta-box a.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

/* Related tours — inherit sidebar card style */
.blog-related-tours {
    background: linear-gradient(165deg, #fffcf8 0%, #fef8f0 100%);
    border-radius: 1rem;
    padding: 20px;
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.04),
        0 6px 24px rgba(139, 90, 43, 0.06);
    border: 1px solid rgba(249, 115, 22, 0.08);
    margin-bottom: 0;
}
.blog-related-tours h3 {
    font-size: 0.82rem;
    font-weight: 700;
    color: #c2410c;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 14px;
    padding: 0 0 10px 12px;
    border-bottom: none;
    border-left: 3px solid #f97316;
    line-height: 1;
}
.blog-related-tours ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.blog-related-tours li {
    margin-bottom: 1px;
}
.blog-related-tours a {
    display: block;
    font-size: 0.85rem;
    color: #5a5148;
    text-decoration: none;
    padding: 5px 10px 5px 12px;
    border-left: 2px solid transparent;
    border-radius: 0 6px 6px 0;
    line-height: 1.5;
    transition: all 0.2s ease;
}
.blog-related-tours a:hover {
    color: #ea580c;
    background: rgba(249, 115, 22, 0.06);
    border-left-color: #f97316;
}

@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.4rem; }
    .hero-subtitle { font-size: 1rem; }
    .blog-grid { grid-template-columns: 1fr; max-width: 500px; }
    .blog-card.featured { flex-direction: column; }
    .blog-card.featured .blog-image { width: 100%; min-height: 220px; }
    .blog-card.featured .blog-content { width: 100%; padding: 24px; }
    .blog-card.featured .blog-title { font-size: 1.3rem; }
    .category-btn { padding: 8px 18px; font-size: 0.85rem; }
    .blog-post-hero h1 { font-size: 2rem; }
    .blog-container { grid-template-columns: 1fr; }
    .blog-sidebar { position: static; }
    .hero-blob-1,
    .hero-blob-2,
    .hero-blob-3 {
        display: none;
    }
    .blog-container,
    .blog-content,
    .blog-sidebar {
        max-width: 100%;
        overflow-x: hidden;
    }
}
@media (max-width: 480px) {
    .hero-content h1 { font-size: 1.9rem; }
    .hero { min-height: 300px; padding: 100px 16px 60px; }
    .category-btn { padding: 7px 14px; font-size: 0.8rem; }
    .blog-categories { padding: 40px 16px 30px; }
    .blog-section { padding: 40px 16px 60px; }
    .blog-post-hero h1 { font-size: 1.6rem; }
}
