html,
body {
    overflow-x: hidden !important;
}

.ad-container {
    min-height: 10px;
    min-width: 100%;
    /* Ensure there's a width */
    background-color: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem 0;
    border: 1px dashed #e5e7eb;
    overflow: hidden;
    /* Prevent content from overflowing */
}

.ad-sidebar {
    min-height: 600px;
    min-width: 300px;
    /* Specify minimum width */
    width: 100%;
    /* Take full width of parent */
    background-color: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem 0;
    border: 1px dashed #e5e7eb;
    overflow: hidden;
}

.ad-in-article {
    min-height: 280px;
    min-width: 100%;
    /* Ensure there's a width */
    background-color: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem 0;
    border: 1px dashed #e5e7eb;
    overflow: hidden;
}

/* Article content styling */
.article-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #1f2937;
}

.article-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #1f2937;
}

.article-content p {
    margin-bottom: 1.25rem;
    line-height: 1.7;
}

.article-content ul,
.article-content ol {
    margin-bottom: 1.25rem;
    padding-left: 2rem;
}

.article-content ul {
    list-style-type: disc;
}

.article-content ol {
    list-style-type: decimal;
}

.article-content li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.article-content blockquote {
    border-left: 4px solid #e5e7eb;
    padding-left: 1rem;
    font-style: italic;
    margin: 1.5rem 0;
    color: #4b5563;
}

.article-content a {
    color: #4f46e5;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.article-content a:hover {
    color: #4338ca;
}

.article-content img {
    margin: 1.5rem 0;
    border-radius: 0.5rem;
}

.article-content .table-container {
    overflow-x: auto;
    margin: 1.5rem 0;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
}

.article-content table th,
.article-content table td {
    border: 1px solid #e5e7eb;
    padding: 0.75rem;
    text-align: left;
}

.article-content table th {
    background-color: #f9fafb;
    font-weight: 600;
}

/* Animation for flyout */
@keyframes slideIn {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.cookie-consent {
    animation: slideIn 0.5s ease-out forwards;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1);
}

.cookie-backdrop {
    animation: fadeIn 0.5s ease-out forwards;
}

/* For detailed settings panel */
.settings-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
}

.settings-panel.open {
    max-height: 400px;
}

iframe,
img {
    max-width: 100% !important;
}