/* Hide default theme elements when using Birthly template */
.birthly-template .entry-header,
.birthly-template .post-meta-wrapper,
.birthly-template .post-navigation {
    display: none !important;
}

/* Birthly Article Styles */
.birthly-article-wrapper {
    max-width: 1440px;
    margin: 0 auto;
    background: #fffdf0;
    width: 100%;
}

.birthly-article-wrapper.alignfull {
    max-width: 100%;
}

/* Hero Section */
.article-hero {
    display: flex;
    margin-left: 24px;
    margin-right: 24px;
    margin-bottom: 24px;
    min-height: 604px;
    gap: 0;
}

.hero-content {
    background: #d9f0ee;
    flex: 1;
    padding: 69px 68px;
    border-radius: 24px 0 0 24px;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.article-category {
    font-weight: 800;
    font-size: 16px;
    line-height: normal;
    letter-spacing: 0.32px;
    text-transform: uppercase;
    color: #007187;
    margin: 0;
}

.article-title {
    font-family: 'Instrument Serif', Georgia, serif;
    font-weight: 400;
    font-size: clamp(48px, 7vw, 96px);
    line-height: 0.9;
    color: #181815;
    margin: 0;
}

.author-info {
    display: flex;
    gap: 12px;
    align-items: center;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.author-details {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.author-label {
    font-size: 12px;
    line-height: normal;
    letter-spacing: 0.24px;
    color: #181815;
}

.author-name {
    font-size: 16px;
    line-height: normal;
    letter-spacing: 0.32px;
    color: #181815;
}

.hero-image {
    width: 45%;
    max-width: 675px;
    border-radius: 0 24px 24px 0;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Content Layout */
.article-content-wrapper {
    display: flex;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
}

.toc-sidebar {
    width: 200px;
    max-width: 200px;
    padding: 24px 36px 0 48px;
    border-right: 1px solid #cdbcb4;
    position: sticky;
    top: 100px;
    height: fit-content;
}

.toc-title {
    font-weight: 800;
    font-size: 18px;
    line-height: 1.4;
    letter-spacing: 0.36px;
    text-transform: uppercase;
    color: #926a58;
    margin-bottom: 24px;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-list li {
    margin-bottom: 16px;
}

.toc-link {
    font-size: 18px;
    line-height: 1.4;
    color: #1d1d1d;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

.toc-link:hover {
    color: #007187;
}

.toc-link.active {
    color: #007187;
    font-weight: 600;
}

.article-main {
    flex: 1;
    padding: 0 96px 96px 96px;
}

.article-intro {
    font-size: 18px;
    line-height: 1.6;
    color: #1d1d1d;
    margin-bottom: 48px;
}

.article-intro p {
    margin-bottom: 16px;
}

/* Key Takeaways */
.key-takeaways {
    background: #efe4d5;
    border-radius: 24px;
    padding: 54px;
    margin-bottom: 48px;
}

.key-takeaways-title {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 48px;
    line-height: 68px;
    color: #181815;
    margin: 0 0 32px 0;
}

.takeaway-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.takeaway-item {
    display: flex;
    gap: 24px;
    align-items: center;
}

.takeaway-number {
    width: 48px;
    height: 48px;
    background: #ffffff;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 24px;
    color: #926a58;
    flex-shrink: 0;
}

.takeaway-text {
    font-size: 20px;
    line-height: 1.4;
    color: #181815;
}

/* Content Sections */
.content-section {
    margin-bottom: 76px;
    scroll-margin-top: 100px;
}

.section-title {
    font-weight: 600;
    font-size: 36px;
    line-height: 1.2;
    color: #181815;
    margin-bottom: 24px;
}

.section-content {
    font-size: 18px;
    line-height: 1.6;
    color: #1d1d1d;
}

.section-content p {
    margin-bottom: 16px;
}

.section-content ul {
    margin: 16px 0;
    padding-left: 27px;
}

.section-content li {
    margin-bottom: 8px;
}

.section-content h3 {
    font-weight: 600;
    font-size: 24px;
    margin: 24px 0 16px 0;
    color: #181815;
}

/* Class Promo */
.class-promo-wrapper {
    background: #d9f0ee;
    border-radius: 24px;
    padding: 32px;
    margin: 48px -96px;
}

.promo-unit {
    display: flex;
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
}

.promo-image {
    width: 380px;
    flex-shrink: 0;
}

.promo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.promo-content {
    flex: 1;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.promo-label {
    font-weight: 700;
    font-size: 16px;
    line-height: 14px;
    color: #926a58;
    margin-bottom: 10px !important;
}

.promo-title {
    font-family: 'Instrument Serif', serif;
    font-size: 56px;
    line-height: 1;
    color: #1d1d1d;
    margin-bottom: 20px !important;
    margin-top: 10px !important;
}

.promo-title em {
    font-style: italic;
}

.promo-description {
    font-size: 16px;
    line-height: 24px;
    color: #555151;
}

.promo-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.btn {
    height: 52px;
    border-radius: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 18px;
    letter-spacing: 0.18px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-outline {
    border: 1px solid #926a58;
    color: #926a58;
    background: transparent;
}

.btn-outline:hover {
    background: #926a58;
    color: white;
}

.btn-primary {
    background: #fdd26a;
    color: #181815;
    border: none;
}

.btn-primary:hover {
    background: #fcc94d;
}

/* Bottom Line Section */
.bottom-line-section {
    background: #d9f0ee;
    border-radius: 24px;
    padding: 48px;
    margin: 76px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    scroll-margin-top: 100px;
}

.bottom-line-title {
    font-family: 'Instrument Serif', Georgia, serif;
    font-weight: 400;
    font-size: 48px;
    line-height: 68px;
    color: #181815;
    margin: 0 0 8px 0;
}

.bottom-line-title em {
    font-style: italic;
}

.bottom-line-content {
    font-size: 18px;
    line-height: 160%;
    color: #181815;
}

.bottom-line-content p {
    margin: 0;
}

/* FAQs Section */
.faqs-section {
    margin-top: 76px;
    scroll-margin-top: 100px;
}

.faq-item {
    border-bottom: 1px solid #cdbcb4;
    padding: 24px 16px 24px 0;
}

.faq-question {
    font-weight: 600;
    font-size: 24px;
    line-height: 1.2;
    color: #181815;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    margin: 0;
}

.faq-arrow {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(90deg);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-arrow {
    transform: rotate(270deg);
}

.faq-answer {
    font-size: 16px;
    line-height: 1.6;
    color: #181815;
    margin-top: 20px;
    display: none;
}

.faq-answer p {
    margin-bottom: 16px;
}

.faq-answer a {
    color: #007187;
    text-decoration: none;
}

.faq-answer a:hover {
    text-decoration: underline;
}

.faq-item.active .faq-answer {
    display: block;
}

/* Article Sources Section */
.article-sources-section {
    background: rgba(239, 228, 213, 0.5);
    border-radius: 24px;
    padding: 40px;
    margin-top: 76px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sources-title {
    font-weight: 700;
    font-size: 16px;
    line-height: 14px;
    color: #926a58;
    margin: 0;
}

.sources-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.source-link {
    font-size: 16px;
    line-height: 140%;
    text-decoration: underline;
    color: #181815;
    word-break: break-word;
}

.source-link:hover {
    color: #926a58;
}

/* Responsive */
@media (max-width: 1024px) {
    .article-hero {
        flex-direction: column;
        height: auto;
    }

    .hero-content {
        border-radius: 24px 24px 0 0;
        padding: 48px;
    }

    .hero-image {
        width: 100%;
        height: 400px;
        border-radius: 0 0 24px 24px;
    }

    .article-content-wrapper {
        flex-direction: column;
    }

    .toc-sidebar {
        width: 100%;
        padding: 24px;
        border-right: none;
        border-bottom: 1px solid #cdbcb4;
        position: static;
    }

    .article-main {
        padding: 48px 24px;
    }

    .class-promo-wrapper {
        margin: 48px -24px;
        padding: 24px;
    }

    .promo-unit {
        flex-direction: column;
    }

    .promo-image {
        width: 100%;
        height: 300px;
    }

    .bottom-line-section {
        padding: 32px;
    }

    .bottom-line-title {
        font-size: 36px;
        line-height: 48px;
    }

    .article-sources-section {
        padding: 24px;
    }
}

@media (max-width: 768px) {
    .hero-content {
        padding: 32px 24px;
        gap: 32px;
    }

    .article-title {
        font-size: clamp(36px, 8vw, 56px);
    }

    .article-main {
        padding: 24px;
    }

    .key-takeaways {
        padding: 32px 24px;
    }

    .key-takeaways-title {
        font-size: 36px;
        line-height: 48px;
    }

    .section-title {
        font-size: 28px;
    }

    .class-promo-wrapper {
        margin: 48px 0;
    }

    .promo-title {
        font-size: 36px;
    }

    .faq-question {
        font-size: 20px;
    }
}
