/* ============================================
   Guide Article Page — Shared Styles
   Used by: guide-pet.html, guide-rain.html,
            guide-bbq.html, guide-star.html
   ============================================ */

/* --- Article Hero --- */
.article-hero {
    position: relative;
    width: 100%;
    max-height: 500px;
    overflow: hidden;
    border-radius: 0 0 30px 30px;
    margin-bottom: 50px;
}

.article-hero img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
    filter: brightness(0.65);
}

.article-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px 40px 40px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent);
    color: #fff;
}

.article-hero h1 {
    font-size: 2.6rem;
    line-height: 1.3;
    margin-bottom: 12px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.article-meta {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.article-meta i {
    margin-right: 6px;
}

@media (max-width: 768px) {
    .article-hero {
        border-radius: 0;
        max-height: 350px;
    }

    .article-hero img {
        height: 350px;
    }

    .article-hero h1 {
        font-size: 1.8rem;
    }

    .article-hero-overlay {
        padding: 40px 20px 25px;
    }
}

/* --- Breadcrumbs --- */
.breadcrumbs {
    max-width: 1200px;
    margin: 25px auto 0;
    padding: 0 20px;
    font-size: 0.9rem;
    color: #999;
}

.breadcrumbs a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumbs a:hover {
    color: var(--accent);
}

.breadcrumbs span {
    color: #666;
    font-weight: 600;
}

/* --- Table of Contents --- */
.table-of-contents {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px 35px;
    background: linear-gradient(135deg, #f8faf8, #f0f4ef);
    border-left: 4px solid var(--accent);
    border-radius: 0 15px 15px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.04);
}

.table-of-contents h3.h4-visual {
    font-size: 1.15rem;
    color: var(--primary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.table-of-contents h3.h4-visual::before {
    content: '\f03a';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--accent);
}

.table-of-contents ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.table-of-contents li {
    margin-bottom: 10px;
}

.table-of-contents a {
    color: #444;
    text-decoration: none;
    font-size: 1.05rem;
    padding: 6px 12px;
    border-radius: 8px;
    display: inline-block;
    transition: all 0.3s ease;
}

.table-of-contents a:hover {
    color: var(--primary);
    background: rgba(0, 109, 91, 0.08);
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .table-of-contents {
        margin: 30px 15px;
        padding: 20px 25px;
    }
}

/* --- Article Intro --- */
.article-intro {
    max-width: 800px;
    margin: 0 auto 50px;
    padding: 0 20px;
    text-align: center;
}

.article-intro p {
    font-size: 1.15rem;
    line-height: 1.9;
    color: #555;
}

/* --- CTA Box --- */
.article-cta-box {
    max-width: 800px;
    margin: 60px auto;
    padding: 50px 40px;
    text-align: center;
    background: linear-gradient(135deg, var(--primary), #00836e);
    border-radius: 20px;
    color: #fff;
    box-shadow: 0 20px 50px rgba(0, 109, 91, 0.3);
    position: relative;
    overflow: hidden;
}

.article-cta-box::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
}

.article-cta-box h3 {
    font-size: 1.8rem;
    margin-bottom: 12px;
    color: #fff !important;
}

.article-cta-box p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85) !important;
    margin-bottom: 25px;
}

.article-cta-box .btn {
    display: inline-block;
    padding: 15px 35px;
    font-size: 1.1rem;
    background: var(--accent);
    color: #fff;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(212, 163, 115, 0.4);
}

.article-cta-box .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(212, 163, 115, 0.5);
}

@media (max-width: 768px) {
    .article-cta-box {
        margin: 40px 15px;
        padding: 35px 25px;
    }

    .article-cta-box h3 {
        font-size: 1.4rem;
    }
}

/* --- Related Guides --- */
.related-guides {
    max-width: 1200px;
    margin: 0 auto 80px;
    padding: 0 20px;
}

.related-guides h3 {
    font-size: 1.6rem;
    color: var(--primary);
    text-align: center;
    margin-bottom: 35px;
}

.related-guides-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.related-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
}

.related-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.related-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.related-card-body {
    padding: 20px;
}

.related-card-body h4 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 8px;
}

.related-card-body p {
    font-size: 0.9rem;
    color: #777;
    line-height: 1.5;
}

@media (max-width: 991px) {
    .related-guides-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .related-guides-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Shared Navbar for Article Pages --- */
.article-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    padding: 12px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.article-navbar .nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.1rem;
}

.article-navbar .nav-logo img {
    height: 35px;
    width: 35px;
    border-radius: 50%;
    object-fit: cover;
}

.article-navbar .nav-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 18px;
    border-radius: 50px;
    border: 2px solid var(--accent);
    transition: all 0.3s ease;
}

.article-navbar .nav-back:hover {
    background: var(--accent);
    color: #fff;
}

/* --- Footer for Article Pages --- */
.article-footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    padding: 60px 20px;
    font-size: 0.95rem;
}

.article-footer a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s;
}

.article-footer a:hover {
    color: #fff;
}

.footer-contact {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    color: #fff;
    opacity: 0.9;
}

.footer-contact a {
    border-bottom: 1px solid rgba(212, 163, 115, 0.4);
    padding-bottom: 2px;
}

.footer-divider {
    opacity: 0.3;
}

@media (max-width: 768px) {
    .footer-contact {
        flex-direction: column;
        gap: 10px;
    }
    .footer-divider { display: none; }
}

/* Body spacing for fixed navbar */
.article-page {
    padding-top: 60px;
}

main {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* Ensure no horizontal scroll on the entire document */
html, body {
    overflow-x: hidden !important;
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
}

@media (max-width: 991px) {
    .guide-chapter {
        padding: 60px 0;
        overflow: hidden; /* Prevent AOS overflow */
    }
}

/* --- Timeline Section --- */
.guide-timeline-section {
    padding: 80px 0;
}

.timeline-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding: 20px 0;
}

.timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    width: 4px;
    background: rgba(0, 109, 91, 0.15);
    border-radius: 4px;
}

@media (min-width: 768px) {
    .timeline-container::before {
        left: 50%;
        transform: translateX(-50%);
    }
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    width: 100%;
    padding-left: 60px;
}

@media (min-width: 768px) {
    .timeline-item {
        width: 50%;
        padding-left: 0;
        padding-right: 40px;
    }
    
    .timeline-item:nth-child(even) {
        margin-left: auto;
        padding-right: 0;
        padding-left: 40px;
    }
}

.timeline-time {
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 4px 10px rgba(212, 163, 115, 0.4);
    z-index: 2;
    border: 3px solid var(--light);
}

@media (min-width: 768px) {
    .timeline-time {
        left: auto;
        right: -20px;
        width: 46px;
        height: 46px;
        font-size: 0.95rem;
    }
    
    .timeline-item:nth-child(even) .timeline-time {
        right: auto;
        left: -20px;
    }
}

.timeline-content {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: var(--transition);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
    .timeline-content::before {
        content: '';
        position: absolute;
        top: 15px;
        right: -10px;
        border-width: 10px 0 10px 10px;
        border-style: solid;
        border-color: transparent transparent transparent #fff;
    }
    
    .timeline-item:nth-child(even) .timeline-content::before {
        right: auto;
        left: -10px;
        border-width: 10px 10px 10px 0;
        border-color: transparent #fff transparent transparent;
    }
}

.timeline-content h4 {
    color: var(--primary);
    font-size: 1.15rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.timeline-content p {
    color: #666;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- Premium AEO Tables --- */
.aeo-table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin: 40px 0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 109, 91, 0.08), 0 5px 15px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 109, 91, 0.1);
}

.aeo-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: transparent;
    text-align: left;
    min-width: 600px;
}

.aeo-table th {
    background: linear-gradient(135deg, var(--primary) 0%, #004d40 100%);
    color: #fff;
    padding: 20px 25px;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    border-bottom: 3px solid var(--accent);
}

.aeo-table th:first-child {
    border-top-left-radius: 12px;
}
.aeo-table th:last-child {
    border-top-right-radius: 12px;
}

.aeo-table td {
    padding: 18px 25px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    color: #4a4a4a;
    line-height: 1.6;
    transition: background 0.3s ease;
}

.aeo-table tbody tr:nth-child(even) td {
    background-color: rgba(0, 109, 91, 0.015);
}

.aeo-table tbody tr:hover td {
    background-color: #fdfaf6;
    color: var(--primary);
}

.aeo-table tr:last-child td {
    border-bottom: none;
}
.aeo-table tr:last-child td:first-child {
    border-bottom-left-radius: 12px;
}
.aeo-table tr:last-child td:last-child {
    border-bottom-right-radius: 12px;
}

.aeo-table td:first-child {
    font-weight: 600;
    color: var(--primary);
}

/* --- AEO FAQ Styling --- */
.aeo-faq-box {
    background: #fff;
    border-left: 4px solid var(--accent);
    padding: 20px 25px;
    margin: 25px 0;
    border-radius: 0 12px 12px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.04);
}

.aeo-faq-box h3 {
    color: var(--primary);
    font-size: 1.15rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.aeo-faq-box h3::before {
    content: "Q:";
    color: var(--accent);
    font-weight: 900;
    font-size: 1.3rem;
}

.aeo-faq-box p {
    margin: 0;
    color: #555;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.aeo-faq-box p::before {
    content: "A:";
    color: var(--primary);
    font-weight: 900;
    font-size: 1.2rem;
    padding-top: 2px;
}
.aeo-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    display: block;
}