/* Fixes for article layout issues */

/* Ensure content is not cut off */
body {
    overflow-x: hidden;
    overflow-y: auto !important;
    min-height: 100vh;
}

/* Fix for any fixed positioning issues */
.knowledge-article {
    position: relative;
    overflow: visible !important;
    padding-bottom: 50px; /* Ensure space at bottom */
}

/* Ensure CTA buttons are fully visible */
.cta-section {
    position: relative;
    z-index: 10;
    margin-bottom: 0;
    padding: 60px 20px;
    overflow: visible !important;
}

.cta-button {
    display: inline-block;
    margin-bottom: 20px;
}

/* Fix footer positioning */
.footer-luxury {
    position: relative;
    z-index: 1;
    margin-top: 0;
}

/* Ensure interactive elements are clickable */
button, a, .cta-button, .cta-luxury {
    position: relative;
    z-index: 100;
}

/* Fix for executive summary / what you'll learn sections */
.executive-summary {
    max-height: none !important;
    overflow: visible !important;
    margin: 30px 0;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 10px;
}

.executive-summary h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #333;
}

.executive-summary ul {
    list-style: none;
    padding: 0;
}

.executive-summary li {
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
    line-height: 1.6;
}

.executive-summary li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #B8956A;
    font-weight: bold;
}

/* Responsive fixes */
@media (max-width: 768px) {
    .article-content {
        padding: 20px 15px;
    }
    
    .cta-section {
        padding: 40px 15px;
    }
    
    .executive-summary {
        padding: 20px;
        margin: 20px 0;
    }
    
    .footer-luxury {
        padding-top: 40px;
    }
}

/* Ensure proper spacing between sections */
.article-content > * {
    margin-bottom: 25px;
}

.article-content h2 {
    margin-top: 40px;
    margin-bottom: 20px;
}

.article-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
}

/* Fix table responsiveness */
.comparison-table, .data-table, .credits-table {
    overflow-x: auto;
    display: block;
    max-width: 100%;
}

@media (max-width: 768px) {
    table {
        font-size: 0.9rem;
    }
}