/* ==========================
   LUXURY EDITORIAL SAFARI ARTICLE STYLING
   ========================== */

:root {
    --article-emerald-deep: #002b23;
    --article-emerald: #004d40;
    --article-emerald-light: #007b5e;
    --article-gold: #e5b82c;
    --article-gold-light: #fef9e7;
    --article-bg-surface: #ffffff;
    --article-text-main: #243630;
    --article-text-muted: #5e726b;
    --article-border: rgba(0, 77, 64, 0.09);
    --article-border-gold: rgba(229, 184, 44, 0.3);
    --article-shadow: 0 15px 40px rgba(0, 37, 26, 0.06);
}

/* ==========================
   READING PROGRESS BAR
   ========================== */
.reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #007b5e 0%, #e5b82c 100%);
    width: 0%;
    z-index: 99999;
    transition: width 0.1s ease-out;
}

/* ==========================
   ARTICLE HERO HEADER
   ========================== */
#hero-blog {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 5rem 2rem 4.5rem;
    background: 
        radial-gradient(circle at center, transparent 15%, rgba(0, 15, 10, 0.8) 100%),
        linear-gradient(135deg, rgba(0, 21, 15, 0.92) 0%, rgba(0, 77, 64, 0.55) 55%, rgba(0, 21, 15, 0.96) 100%),
        url('../../images/blog-hero.webp');
    background-size: cover;
    background-position: center;
    color: #ffffff;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 37, 26, 0.25);
    border: 1px solid rgba(229, 184, 44, 0.25);
    margin-bottom: 2.5rem;
}

#hero-blog::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 30%, rgba(229, 184, 44, 0.1), transparent 45%);
    pointer-events: none;
    z-index: 1;
}

#hero-blog h1 {
    position: relative;
    z-index: 2;
    color: #ffffff !important;
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: 1rem;
    font-family: var(--font-display, 'Outfit', sans-serif);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.9);
    max-width: 900px;
    line-height: 1.2;
}

#hero-blog p {
    position: relative;
    z-index: 2;
    color: rgba(255, 255, 255, 0.92) !important;
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    max-width: 780px;
    margin: 0 auto 1.5rem;
    line-height: 1.65;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.8);
}

.article-date {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    background: rgba(0, 35, 28, 0.75);
    border: 1px solid rgba(229, 184, 44, 0.3);
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    font-size: 0.88rem;
    color: #e5b82c !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.article-byline {
    font-weight: 700;
    color: #ffffff;
}

.article-separator {
    color: rgba(229, 184, 44, 0.6);
}

.article-date time {
    color: rgba(255, 255, 255, 0.85);
}

/* ==========================
   MAIN ARTICLE CONTAINER
   ========================== */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.blog-post-full {
    background: var(--article-bg-surface);
    border: 1px solid var(--article-border);
    border-radius: 24px;
    padding: 3.5rem 3.5rem;
    box-shadow: var(--article-shadow);
    margin-bottom: 2rem;
    position: relative;
}

/* Featured Hero Image inside Article */
.blog-post-full > img:first-child {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: 18px;
    margin-bottom: 2.5rem;
    box-shadow: 0 12px 30px rgba(0, 37, 26, 0.12);
    border: 1px solid rgba(0, 77, 64, 0.08);
}

/* Editorial Lead Paragraph */
.blog-post-full > p:first-of-type {
    font-size: 1.18rem;
    line-height: 1.82;
    color: #1a2e27;
    font-weight: 400;
    margin-bottom: 1.8rem;
}

/* Standard Paragraphs */
.blog-post-full p {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--article-text-main);
    margin-bottom: 1.6rem;
}

/* Section Headings */
.blog-post-full h2 {
    font-size: clamp(1.6rem, 2.5vw, 2rem);
    font-weight: 800;
    color: var(--article-emerald-deep);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-left: 1rem;
    border-left: 4px solid var(--article-gold);
    font-family: var(--font-display, 'Outfit', sans-serif);
    line-height: 1.3;
    letter-spacing: -0.015em;
}

.blog-post-full h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--article-emerald);
    margin-top: 2rem;
    margin-bottom: 0.85rem;
    font-family: var(--font-display, inherit);
}

/* Lists inside articles */
.blog-post-full ul,
.blog-post-full ol {
    margin: 1.25rem 0 1.75rem 1.5rem;
    color: var(--article-text-main);
}

.blog-post-full li {
    font-size: 1.02rem;
    line-height: 1.75;
    margin-bottom: 0.6rem;
}

/* Blockquotes / Key Safari Advice Callouts */
.blog-post-full blockquote {
    background: #fbf8ee;
    border-left: 4px solid var(--article-gold);
    border-radius: 0 16px 16px 0;
    padding: 1.5rem 1.75rem;
    margin: 2rem 0;
    font-style: italic;
    color: #384d45;
    font-size: 1.1rem;
    line-height: 1.75;
    box-shadow: 0 4px 15px rgba(229, 184, 44, 0.08);
}

/* ==========================
   AUTHOR BIO SIGNATURE CARD
   ========================== */
.article-author-signature {
    background: linear-gradient(135deg, #f7fbf9 0%, #edf7f2 100%);
    border: 1px solid rgba(0, 77, 64, 0.12);
    border-radius: 18px;
    padding: 1.75rem;
    margin: 3rem 0 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.author-sig-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #004d40;
    color: #e5b82c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
    box-shadow: 0 6px 15px rgba(0, 77, 64, 0.2);
}

.author-sig-info h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1.15rem;
    color: var(--article-emerald-deep);
}

.author-sig-role {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--article-emerald-light);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.4rem;
}

.author-sig-bio {
    margin: 0;
    font-size: 0.92rem;
    color: var(--article-text-muted);
    line-height: 1.55;
}

/* ==========================
   RELATED GUIDES SECTION
   ========================== */
.related-guides {
    max-width: 900px;
    margin: 3.5rem auto 2.5rem;
    padding: 0 1.25rem;
}

.related-guides-inner {
    background: #ffffff;
    border: 1px solid var(--article-border);
    border-radius: 24px;
    padding: 2.5rem 2.5rem;
    box-shadow: var(--article-shadow);
}

.related-guides-kicker {
    color: #007b5e;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.35rem;
}

.related-guides h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--article-emerald-deep);
    margin-bottom: 0.5rem;
    font-family: var(--font-display, inherit);
}

.related-guides-intro {
    color: var(--article-text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.related-guides-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.related-guides-list li {
    margin: 0;
}

.related-guides-list a {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.25rem;
    background: #f7fbf9;
    border: 1px solid rgba(0, 77, 64, 0.08);
    border-radius: 14px;
    color: var(--article-emerald-deep);
    font-weight: 700;
    font-size: 0.98rem;
    line-height: 1.45;
    text-decoration: none;
    transition: all 0.25s ease;
}

.related-guides-list a:hover {
    background: #ffffff;
    border-color: var(--article-gold);
    color: #007b5e;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 37, 26, 0.08);
}

/* ==========================
   CALL TO ACTION
   ========================== */
#cta-blog {
    max-width: 900px;
    margin: 3rem auto 4rem;
    background: linear-gradient(135deg, #002b23 0%, #004d40 100%);
    color: #fff;
    text-align: center;
    padding: 3.5rem 2rem;
    border-radius: 24px;
    border: 1px solid rgba(229, 184, 44, 0.3);
    box-shadow: 0 20px 45px rgba(0, 37, 26, 0.2);
}

#cta-blog h2 {
    font-size: clamp(1.8rem, 3vw, 2.3rem);
    font-weight: 800;
    color: #ffffff !important;
    margin-bottom: 0.75rem;
    font-family: var(--font-display, inherit);
}

#cta-blog p {
    color: rgba(255, 255, 255, 0.88) !important;
    font-size: 1.05rem;
    max-width: 620px;
    margin: 0 auto 1.8rem;
}

#cta-blog .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #e5b82c;
    color: #002b23;
    font-weight: 800;
    font-size: 1.05rem;
    padding: 0.9rem 2rem;
    border-radius: 12px;
    transition: all 0.25s ease;
    box-shadow: 0 6px 20px rgba(229, 184, 44, 0.3);
    text-decoration: none;
}

#cta-blog .btn:hover {
    background-color: #f59e0b;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(229, 184, 44, 0.45);
}

/* ==========================
   BACK BUTTON UPGRADE IN HEADER
   ========================== */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    background: rgba(0, 77, 64, 0.1);
    color: #004d40;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.25s ease;
}

.back-button:hover {
    background: #004d40;
    color: #ffffff;
    transform: translateX(-3px);
}

/* ==========================
   RESPONSIVE ARTICLE
   ========================== */
@media (max-width: 992px) {
    .blog-post-full {
        padding: 2.5rem 2rem;
    }
    .related-guides-list {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .blog-post-full {
        padding: 2rem 1.5rem;
        border-radius: 18px;
    }
    .article-author-signature {
        flex-direction: column;
        text-align: center;
    }
    .related-guides-inner {
        padding: 1.75rem 1.25rem;
    }
}
