/* ============================================
   ARTICLE STYLES - Matching Main Landing Page - Updated
   TeamGrow Article Pages - Unified Design System
   ============================================ */

/* ===== CSS Variables - From Main Landing Page ===== */
:root {
    /* Primary Colors - From Hexagon Logo */
    --color-blue: #5C7AFF;
    --color-purple: #A855F7;
    --color-red: #EF4444;
    --color-orange: #F59E0B;
    --color-yellow: #FCD34D;
    --color-green: #10B981;
    --color-teal: #14B8A6;

    /* Neutrals */
    --color-white: #FFFFFF;
    --color-off-white: #FAFAFA;
    --color-cream: #F8F7F4;
    --color-gray-50: #F9FAFB;
    --color-gray-100: #F3F4F6;
    --color-gray-200: #E5E7EB;
    --color-gray-300: #D1D5DB;
    --color-gray-400: #9CA3AF;
    --color-gray-500: #6B7280;
    --color-gray-600: #4B5563;
    --color-gray-700: #374151;
    --color-gray-800: #1F2937;
    --color-gray-900: #111827;
    --color-black: #0A0A0A;

    /* Typography */
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Functional */
    --color-primary: #0A0A0A;
    --color-primary-hover: #1F2937;
}

/* ===== Article Page Base - Cream Background ===== */
.article-page,
body {
    background: var(--color-cream);
    font-family: var(--font-sans);
}

/* ===== Black CTA Buttons - Matching Main Navbar ===== */
.btn-primary,
.cta-button,
.article-cta .btn,
.article-cta a,
.article-page-cta-section .btn,
.article-page-cta-section a,
button.cta {
    background: #0A0A0A !important;
    color: #FFFFFF !important;
    border: none;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary:hover,
.cta-button:hover,
.article-cta .btn:hover,
.article-cta a:hover {
    background: #1F2937 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* ============================================
   AEO ARTICLE STYLES
   TeamGrow Answer Engine Optimized Content
============================================ */

/* Base Article Layout */
.article-page {
    padding-top: 100px;
}

.article-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

/* Breadcrumb */
.article-breadcrumb {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 32px;
}

.article-breadcrumb a {
    color: #666;
    text-decoration: none;
}

.article-breadcrumb a:hover {
    color: #8B5CF6;
}

.article-breadcrumb span {
    color: #999;
}

/* Article Header */
.article-header {
    margin-bottom: 40px;
}

.article-category {
    display: inline-block;
    background: #E4D3FF;
    color: #5B21B6;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.article-category.founders {
    background: #FEF3C7;
    color: #92400E;
}

.article-category.managers {
    background: #DBEAFE;
    color: #1E40AF;
}

.article-category.chro {
    background: #D1FAE5;
    color: #065F46;
}

.article-category.topics {
    background: #F3E8FF;
    color: #7C3AED;
}

.article-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #0A0A0A;
    margin-bottom: 16px;
}

.article-meta {
    display: flex;
    gap: 24px;
    font-size: 0.9rem;
    color: #666;
}

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

.article-meta i {
    width: 16px;
    height: 16px;
}

/* Quick Answer Box (Featured Snippet Target) */
.quick-answer {
    background: linear-gradient(135deg, #F5F3FF 0%, #EDE9FE 100%);
    border-left: 4px solid #8B5CF6;
    padding: 24px 28px;
    border-radius: 0 16px 16px 0;
    margin-bottom: 40px;
}

.quick-answer-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #7C3AED;
    margin-bottom: 12px;
}

.quick-answer p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #1F2937;
    margin: 0;
}

/* Article Content */
.article-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #374151;
}

.article-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0A0A0A;
    margin: 48px 0 20px;
    letter-spacing: -0.01em;
}

.article-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #0A0A0A;
    margin: 32px 0 16px;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content ul,
.article-content ol {
    margin: 20px 0;
    padding-left: 24px;
}

.article-content li {
    margin-bottom: 12px;
}

.article-content blockquote {
    border-left: 3px solid #8B5CF6;
    padding-left: 20px;
    margin: 32px 0;
    font-style: italic;
    color: #4B5563;
}

.article-content strong {
    color: #0A0A0A;
    font-weight: 600;
}

/* Key Takeaways Box */
.key-takeaways {
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    padding: 28px;
    margin: 40px 0;
}

.key-takeaways h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #0A0A0A;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.key-takeaways ul {
    margin: 0;
    padding-left: 20px;
}

.key-takeaways li {
    margin-bottom: 8px;
    color: #374151;
}

/* Stats/Numbers Callout */
.stat-callout {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #0A0A0A;
    color: #fff;
    padding: 24px 28px;
    border-radius: 16px;
    margin: 32px 0;
}

.stat-callout .stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: #A78BFA;
    line-height: 1;
}

.stat-callout .stat-text {
    font-size: 1rem;
    line-height: 1.5;
    opacity: 0.9;
}

/* Related Questions (PAA Section) */
.related-questions {
    background: #FFFBEB;
    border: 1px solid #FDE68A;
    border-radius: 16px;
    padding: 28px;
    margin: 48px 0;
}

.related-questions h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #92400E;
    margin: 0 0 16px;
}

.related-questions ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.related-questions li {
    margin-bottom: 12px;
}

.related-questions a {
    color: #B45309;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.related-questions a:hover {
    color: #92400E;
    text-decoration: underline;
}

.related-questions i {
    width: 16px;
    height: 16px;
}

/* FAQ Section (AEO Enhancement) */
.article-cta .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    /* Softer shadow */
    background: #F3F4F6 !important;
    /* Subtle Grey like Landing Page */
    color: #0A0A0A !important;
}

/* FAQ Accordion Styles */
.faq-section {
    margin: 80px 0;
    padding-top: 60px;
    border-top: 2px solid #F3F4F6;
}

.faq-section h2 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 48px;
    text-align: center;
    color: #0A0A0A;
    letter-spacing: -0.02em;
}

.faq-item {
    margin: 0 0 16px;
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    padding: 0;
    /* Remove default padding, controlled by children */
    transition: all 0.2s ease;
    overflow: hidden;
    cursor: pointer;
}

.faq-item:hover {
    border-color: #D1D5DB;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.15rem;
    font-weight: 700;
    color: #1F2937;
    margin: 0;
    padding: 24px;
    /* Clickable area */
    line-height: 1.4;
    user-select: none;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 400;
    color: #6B7280;
    line-height: 1;
    margin-left: 16px;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question {
    color: #7C3AED;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
    /* Turns + to x */
    content: '+';
    /* Keep plus, rotate it */
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, opacity 0.3s ease;
    padding: 0 24px;
    opacity: 0;
    color: #4B5563;
    font-size: 1.05rem;
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    /* Arbitrary large height */
    padding-bottom: 24px;
    opacity: 1;
}


/* Article CTA */
/* Article CTA - Matched to Main Site */
.article-cta {
    background: #0A0A0A;
    /* Main Primary Color */
    color: #FFFFFF;
    padding: 60px 40px;
    border-radius: 24px;
    text-align: center;
    margin: 60px 0;
    position: relative;
    overflow: hidden;
}

/* Subtle Gradient Overlay like Home CTA */
.article-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(92, 122, 255, 0.2), transparent 50%),
        radial-gradient(circle at 70% 50%, rgba(168, 85, 247, 0.2), transparent 50%);
    opacity: 0.6;
    pointer-events: none;
}

.article-cta h3 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 16px;
    color: #FFFFFF !important;
    position: relative;
    z-index: 1;
}

.article-cta p {
    color: rgba(255, 255, 255, 0.8) !important;
    margin: 0 auto 32px;
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 600px;
    position: relative;
    z-index: 1;
}

.article-cta .btn {
    background: #FFFFFF !important;
    color: #0A0A0A !important;
    padding: 16px 32px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    z-index: 1;
}

.article-cta .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
    background: #F3F4F6;
}

/* Author Box */
.author-box {
    display: flex;
    gap: 20px;
    padding: 28px;
    background: #F9FAFB;
    border-radius: 16px;
    margin: 48px 0;
}

.author-avatar {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #8B5CF6, #EC4899);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.author-info h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #0A0A0A;
    margin: 0 0 4px;
}

.author-info p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* Article Footer */
.article-footer {
    border-top: 1px solid #E5E7EB;
    padding-top: 32px;
    margin-top: 48px;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.article-tag {
    background: #F3F4F6;
    color: #4B5563;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Related Articles Grid */
.related-articles {
    margin-top: 64px;
    padding-top: 48px;
    border-top: 1px solid #E5E7EB;
}

.related-articles h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.related-article-card {
    background: #F9FAFB;
    border-radius: 16px;
    padding: 24px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.related-article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.related-article-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #0A0A0A;
    margin: 0 0 8px;
    line-height: 1.4;
}

.related-article-card p {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .article-container {
        padding: 0 16px 60px;
    }

    .article-title {
        font-size: 1.75rem;
    }

    .article-meta {
        flex-direction: column;
        gap: 8px;
    }

    .stat-callout {
        flex-direction: column;
        text-align: center;
    }

    .related-articles-grid {
        grid-template-columns: 1fr;
    }

    .author-box {
        flex-direction: column;
        text-align: center;
    }
}

/* ===== Dark Footer for Articles ===== */

/* ===== Footer styles now inherited from webflow-design.css ===== */


/* ===== Full Width CTA Section Above Footer ===== */
.article-page-cta-section {
    background: linear-gradient(135deg, #A855F7 0%, #7C3AED 100%);
    padding: 80px 24px;
    text-align: center;
    margin-top: 60px;
}

.article-page-cta-section h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 16px;
}

.article-page-cta-section p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

.article-page-cta-section .btn {
    background: #FFFFFF;
    color: #7C3AED;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.article-page-cta-section .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .article-page-body .footer-content {
        flex-direction: column;
        gap: 32px;
    }

    .article-page-body .footer-links {
        flex-wrap: wrap;
        gap: 16px;
    }

    .article-page-body .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

/* ===== Booking Popup Styles ===== */
.booking-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.booking-popup-overlay.active {
    display: flex;
}

.booking-popup-content {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    max-width: 450px;
    width: 90%;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.booking-popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #64748B;
}

.booking-popup-close:hover {
    color: #1E293B;
}

/* Social Share Bar */
.social-share-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 48px 0;
    padding: 24px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
}

.share-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.share-buttons {
    display: flex;
    gap: 12px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    color: #64748B;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    cursor: pointer;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    color: #7C3AED;
    border-color: #7C3AED;
}

.share-btn i {
    width: 20px;
    height: 20px;
}

.share-btn.linkedin:hover {
    color: #0077b5;
    border-color: #0077b5;
}

.share-btn.twitter:hover {
    color: #000000;
    border-color: #000000;
}

.share-btn.whatsapp:hover {
    color: #25D366;
    border-color: #25D366;
}

@media (max-width: 640px) {
    .social-share-bar {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }
}

/* ===== Global CTA Section Overrides ===== */
/* Ensure the button in the injected CTA is visible (White on Dark) */
.cta-section .btn-primary {
    background: #FFFFFF !important;
    color: #0A0A0A !important;
}

.cta-section .btn-primary:hover {
    background: #F3F4F6 !important;
    color: #0A0A0A !important;
}
/* Inline Newsletter Banner for Articles */
.article-newsletter-banner {
    background: #0A0A0A;
    color: #FFFFFF;
    padding: 32px;
    border-radius: 20px;
    margin: 48px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.article-newsletter-banner .banner-text h4 {
    color: #FFFFFF !important;
    margin: 0 0 8px 0;
    font-size: 1.25rem;
    font-weight: 700;
}

.article-newsletter-banner .banner-text p {
    color: rgba(255, 255, 255, 0.7) !important;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.article-newsletter-banner .banner-btn {
    background: #FFFFFF !important;
    color: #0A0A0A !important;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.article-newsletter-banner .banner-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

@media (max-width: 600px) {
    .article-newsletter-banner {
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }
    
    .article-newsletter-banner .banner-btn {
        width: 100%;
        justify-content: center;
    }
}
