/* Reuse variables */
:root {
    --primary-blue: #0d1b3e;
    --accent-orange: #ff8c00;
    --text-color: #333;
}

/* Hero Banner for Detail Page */
.detail-hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #1a2f5e 100%);
    padding: 60px 20px;
    color: white;
    text-align: center;
}

.detail-hero h1 {
    font-size: 2.5rem;
    max-width: 900px;
    margin: 0 auto 15px;
    line-height: 1.2;
}

.detail-meta {
    font-size: 0.95rem;
    opacity: 0.9;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.detail-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Main Content Container */
.detail-container {
    max-width: 900px;
    /* Reading width */
    margin: -40px auto 60px;
    /* Pull up into hero */
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* Featured Image */
.featured-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    /* Desktop max height */
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
    background: #fff;
}

/* --- WORDPRESS CONTENT STYLING --- */
/* This makes the raw HTML from WP look good */
.blog-content {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    font-family: 'Segoe UI', sans-serif;
    color: var(--text-color);
    line-height: 1.4;
    font-size: 1.1rem;
}

.blog-content h1,
.blog-content h2,
.blog-content h3,
.blog-content h4 {
    color: var(--primary-blue);
    margin-top: 1.5em;
    margin-bottom: 0.6em;
    font-weight: 700;
    line-height: 1.3;
}

.blog-content h2 {
    font-size: 1.8rem;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.blog-content h3 {
    font-size: 1.5rem;
}

.blog-content p {
    margin-bottom: 1.5em;
}

.blog-content ul,
.blog-content ol {
    margin-bottom: 1.5em;
    padding-left: 25px;
}

.blog-content li {
    margin-bottom: 0.5em;
}

/* Blockquotes styling */
.blog-content blockquote {
    border-left: 5px solid var(--accent-orange);
    background: #fdfdfd;
    padding: 15px 25px;
    margin: 30px 0;
    font-style: italic;
    color: #555;
}

/* Images inside content */
.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

/* Links inside content */
.blog-content a {
    color: var(--accent-orange);
    text-decoration: underline;
}

/* === MOBILE RESPONSIVENESS FIXES === */
@media (max-width: 768px) {
    .detail-hero h1 {
        font-size: 1.8rem;
    }

    .blog-content {
        padding: 20px;
        font-size: 1rem;
    }

    /* Adjust container margin to sit right below the hero on mobile */
    .detail-container {
        margin-top: -20px;
        /* Less aggressive pull up */
    }

    /* FIX: Ensure image scales fully and naturally on mobile */
    .featured-image {
        max-height: 300px;
        /* Reduced max height for mobile viewports */
        object-fit: cover;
        /* Keeps it covering the area */
        border-radius: 8px;
        /* Slightly smaller radius for mobile */
        margin-bottom: 20px;
        /* Less spacing */
    }
}