/* =================================================================== */
/* STYLES FOR THE MODERN SEO ARTICLE TEMPLATE
/* =================================================================== */

/* --- Reading Progress Bar --- */
#progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 5px;
    background: linear-gradient(90deg, #00796b, #80cbc4);
    width: 0%;
    z-index: 9999;
    transition: width 0.1s ease-out;
}

/* --- Floating Social Share --- */
.floating-share-desktop {
    display: flex;
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    left: 20px;
    flex-direction: column;
    gap: 1rem;
    z-index: 100;
}
.floating-share-desktop a {
    font-size: 1.2rem;
    color: #555;
    text-decoration: none;
    transition: transform 0.3s, color 0.3s;
}
.floating-share-desktop a:hover {
    transform: scale(1.2);
    color: #00796b;
}
.floating-share-mobile {
    display: none; /* Shown on mobile via media query */
}

/* --- Article Hero Header --- */
.article-hero {
    position: relative; /* Establishes a positioning context for its children */
    width: 100%;
    padding: 1rem 0; /* Increased padding for better spacing */
    background-size: cover;
    background-position: center;
    color: #ffffff;
    text-align: center;
    /* This display property ensures vertical centering of the content inside */
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* FINAL FIX: Increased opacity to 0.9 to fully obscure any background text */
    background-color: rgba(0, 58, 51, 0.9); 
    z-index: 1; /* Sits on top of the background image */
}
.hero-content {
    position: relative; /* This is crucial for z-index to work */
    z-index: 2; /* Sits on top of the overlay, preventing any overlap */
    width: 90%;
    margin: 0 auto;
}
.article-hero h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 3.5rem;
    line-height: 1.2;
    margin: 1rem 0; /* Restored margin for spacing */
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}
.breadcrumb {
    font-size: 0.9rem;
    margin-bottom: 1rem; /* Added space below breadcrumbs */
}
.breadcrumb a {
    color: #e0f2f1;
    text-decoration: none;
}
.breadcrumb a:hover {
    text-decoration: underline;
}
.breadcrumb-separator {
    margin: 0 0.5rem;
}
.breadcrumb-current {
    font-weight: bold;
    color: #ffffff;
}
.author-info {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    font-size: 0.9rem;
    opacity: 0.9;
}
.author-info .separator {
    display: inline-block;
}
.reading-time i {
    margin-right: 0.3rem;
}

/* --- Main Article Body --- */
.article-body {
    max-width: 800px;
    padding-top: 1rem;
    margin: 0 auto;
}
.intro-paragraph {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #333;
    font-weight: 600;
}
.article-body p, .article-body li {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 1.5rem;
}
.article-body h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.2rem;
    margin: 3rem 0 1.5rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #e0f2f1;
}
.article-body h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.6rem;
    margin: 2.5rem 0 1rem 0;
    color: #00796b;
}
.article-body ul {
    list-style-type: none;
    padding-left: 0;
}
.article-body ul li {
    padding-left: 1.5rem;
    position: relative;
}
.article-body ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #00796b;
    font-weight: bold;
}
.article-body a {
    color: #00796b;
    text-decoration: underline;
    font-weight: 600;
}

/* --- Special Content Blocks --- */
.key-takeaways {
    background-color: #e0f2f1;
    border-left: 5px solid #00796b;
    border-radius: 0 8px 8px 0;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
}
.key-takeaways h3 {
    font-family: 'Poppins', sans-serif;
    margin: 0 0 1rem 0;
    color: #004d40;
}
.key-takeaways h3 i {
    margin-right: 0.5rem;
}
blockquote {
    border-left: 5px solid #00796b;
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    font-size: 1.3rem;
    font-style: italic;
    color: #333;
    background-color: #f8f9fa;
}
blockquote footer {
    font-size: 1rem;
    font-style: normal;
    color: #555;
    margin-top: 1rem;
    text-align: right;
}
blockquote footer::before {
    content: '— ';
}

/* --- NEW: Table Styles --- */
.table-container {
    overflow-x: auto; /* For responsiveness on small screens */
    margin: 2rem 0;
}
table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Inter', sans-serif;
}
table th, table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}
table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
}
table tbody tr:hover {
    background-color: #f5f5f5;
}
table td strong {
    color: #00796b;
}

/* --- NEW: PDF Download Card --- */
.pdf-download-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-left: 5px solid #d32f2f; /* Red accent for PDFs */
    border-radius: 8px;
    padding: 1.25rem;
    margin: 2rem 0;
}
.pdf-download-card .fa-file-pdf {
    font-size: 2.5rem;
    color: #d32f2f;
}
.pdf-info {
    flex-grow: 1;
}
.pdf-info strong {
    display: block;
    font-size: 1.1rem;
    color: #333;
}
.pdf-info span {
    font-size: 0.9rem;
    color: #555;
}
.download-btn {
    text-decoration: none;
    background-color: #8ed4c6;
    color: #ffffff; 
    text-decoration-color: #f8f9fa;
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}
.download-btn:hover {
    background-color: #b71c1c;
}


/* --- Interactive FAQ Section --- */
.faq-section {
    margin-top: 3rem;
}
.faq-item {
    border-bottom: 1px solid #e0e0e0;
}
.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 1.5rem 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-question i {
    transition: transform 0.3s ease;
}
.faq-question.active i {
    transform: rotate(180deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
}
.faq-answer p {
    padding: 0 1rem 1.5rem 1rem;
    margin: 0;
}

/* --- Images --- */
.article-image {
    margin: 2rem 0;
}
.article-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.article-image figcaption {
    font-size: 0.9rem;
    color: #555;
    margin-top: 0.75rem;
    font-style: italic;
    text-align: center;
}


/* --- Responsive Adjustments --- */
@media (max-width: 1200px) {
    .floating-share-desktop {
        /* This rule correctly hides the desktop share bar on tablets and smaller screens. */
        display: none;
    }
}
@media (max-width: 768px) {
    .article-hero h1 {
        font-size: 2.5rem;
    }
    .article-body {
        max-width: 100%;
        /* Add horizontal padding on mobile for readability */
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .floating-share-mobile {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        z-index: 100;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0.75rem;
        gap: 1.5rem;
    }
    .floating-share-mobile span {
        font-weight: bold;
    }
    .floating-share-mobile a {
        font-size: 1.5rem;
        color: #555;
        text-decoration: none;
    }
    /* This padding prevents the floating mobile share bar from hiding the last bit of content. */
    body {
        padding-bottom: 70px;
    }
}

