/* ==========================================================================
   GUIDE DETAIL PAGE STYLES
   ========================================================================== */

.guide-detail-page {
    display: flex;
    flex-direction: column;
    width: 100%;
    background-color: var(--color-white);
}

.guide-detail-page__container--narrow {
    max-width: 800px;
    margin: 0 auto;
}

/* ==========================================================================
   1. HERO HEADER
   ========================================================================== */

.guide-detail-page__hero-section {
    position: relative;
    overflow: hidden;
}

/* Reusable Calm Teal radial glow */
.guide-detail-page__hero-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(31, 138, 112, 0.20) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.guide-detail-page__hero {
    position: relative;
    z-index: 1; /* Keeps content above the glow */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 800px;
}

.guide-detail-page__back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px; /* Space between icon and text */
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7); /* Slightly dimmed white to establish hierarchy */
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none; /* Removes default link underline */
    cursor: pointer;
    padding: 8px 16px; /* Adds clickable area */
    margin-left: -16px; /* Offsets padding so the text aligns perfectly with the title below it */
    margin-bottom: 32px;
    border-radius: 999px; /* Pill shape for hover state */
    transition: all 0.2s ease;
}

.guide-detail-page__back-btn:hover {
    color: var(--color-white); 
    background-color: rgba(255, 255, 255, 0.1); /* Subtle white highlight on hover */
    text-decoration: none;
}

/* Animate the arrow slightly to the left on hover */
.guide-detail-page__back-btn:hover .fa-arrow-left {
    transform: translateX(-4px);
}

.guide-detail-page__back-btn .fa-arrow-left {
    font-size: 14px;
    transition: transform 0.2s ease;
}

.guide-detail-page__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}

/* Inverted tags for Dark Background */
.guide-detail-page__tag {
    background-color: rgba(255, 255, 255, 0.1); /* Translucent white */
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-white);
    font-family: 'Inter', -apple-system, sans-serif;
    padding: 4px 12px;
    border-radius: 9999px; /* Pill shape matches badge component */
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.guide-detail-page__time {
    font-family: 'Inter', -apple-system, sans-serif;
    color: var(--color-soft-grey);
    font-size: 14px;
    font-weight: 500;
}

/* Enlarged White Title with Teal Emphasis */
.guide-detail-page__title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 56px;
    font-weight: 700;
    color: var(--color-white);
    margin: 0 0 24px 0;
    line-height: 1.15;
    letter-spacing: -1px;
}

.guide-detail-page__title em {
    font-style: normal;
    color: var(--color-calm-teal); 
}

/* Lightened, readable subtitle */
.guide-detail-page__subtitle {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 18px;
    color: var(--color-off-white); 
    line-height: 1.6;
    margin: 0;
    max-width: 800px;
}

/* ==========================================================================
   2. ARTICLE CONTENT
   ========================================================================== */

.guide-detail-page__content {
    padding: 24px 0 64px 0;
}

.guide-detail-page__heading-2 {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--color-trust-blue); 
    margin: 48px 0 24px 0;
    letter-spacing: -0.5px;
}

.guide-detail-page__paragraph {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 18px; /* Slightly larger, modern article reading size */
    color: var(--color-charcoal); 
    line-height: 1.8;
    margin-bottom: 24px;
}

.guide-detail-page__paragraph strong {
    color: var(--color-trust-blue); 
    font-weight: 600;
}

.guide-detail-page__list {
    margin-bottom: 32px;
    padding-left: 24px;
}

.guide-detail-page__list-item {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 18px;
    color: var(--color-charcoal); 
    line-height: 1.8;
    margin-bottom: 16px;
}

/* ==========================================================================
   3. CALLOUT BOX
   ========================================================================== */

.guide-detail-page__callout {
    background-color: var(--color-off-white); 
    border-left: 4px solid var(--color-calm-teal); 
    padding: 32px;
    border-radius: 0 12px 12px 0;
    margin: 48px 0;
    box-shadow: 0 4px 12px rgba(11, 60, 93, 0.05); 
}

.guide-detail-page__callout-title {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--color-trust-blue);
    margin: 0 0 12px 0;
}

.guide-detail-page__callout-text {
    font-family: 'Inter', -apple-system, sans-serif;
    color: var(--color-charcoal); 
    font-size: 16px;
    line-height: 1.7;
    margin: 0 0 24px 0;
}

/* ==========================================================================
   3. CALLOUT BOX
   ========================================================================== */

/* ... (keep your existing callout styles) ... */

.guide-detail-page__callout-btn {
    display: inline-block; /* Critical for 'a' tags to act like buttons */
    padding: 10px 24px;
    color: var(--color-trust-blue); 
    border: 2px solid var(--color-trust-blue); 
    border-radius: 6px; 
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none; /* Removes the underline */
    background-color: transparent;
    transition: all 0.2s ease;
    cursor: pointer;
}

.guide-detail-page__callout-btn:hover {
    background-color: var(--color-trust-blue);
    color: var(--color-white);
    text-decoration: none;
}
/* ==========================================================================
   4. RESPONSIVE SCALING
   ========================================================================== */

@media screen and (max-width: 1023px) {
    .guide-detail-page__title {
        font-size: 44px;
    }
}

@media screen and (max-width: 639px) {
    .guide-detail-page__title {
        font-size: 36px;
    }
    
    .guide-detail-page__subtitle {
        font-size: 16px;
    }

    .guide-detail-page__heading-2 {
        font-size: 24px;
        margin-top: 32px;
    }

    .guide-detail-page__paragraph,
    .guide-detail-page__list-item {
        font-size: 16px;
    }

    .guide-detail-page__callout {
        padding: 24px;
    }
}