/* Custom Two Column Layout */
.ad-layout-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
    align-items: start;
    margin-top: 40px;
    padding-bottom: 80px;
    width: 100%;
}

@media (max-width: 1199px) {
    .ad-layout-container {
        padding-left: 42px;
        padding-right: 42px;
    }
}

@media (max-width: 991px) {
    .ad-layout-container {
        padding-left: 30px;
        padding-right: 30px;
        gap: 32px;
    }
}

@media (max-width: 479px) {
    .ad-layout-container {
        padding-left: 18px;
        padding-right: 18px;
    }
}

/* On large screens, switch to two columns */
@media (min-width: 1200px) {
    .ad-layout-container {
        grid-template-columns: minmax(0, 1fr) 300px;
        max-width: 1320px; /* Slightly wider to accommodate sidebar comfortably */
        margin-left: auto;
        margin-right: auto;
        padding-left: 42px;
        padding-right: 42px;
    }
}


.post-content-main {
    min-width: 0;
}

.post-ad-sidebar {
    position: sticky;
    top: 120px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Sidebar for mobile */
@media (max-width: 1199px) {
    .post-ad-sidebar {
        position: static;
        margin-top: 60px;
    }
}

.sidebar-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #999;
    margin-bottom: 12px;
    display: block;
    text-align: center;
}

.ad-zone {
    background: #ffffff;
    border: 1px solid #e1e1e1;
    padding: 10px;
    text-align: center;
    border-radius: 4px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.ad-zone:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.ad-box {
    background: #f0f0f0;
    color: #888;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    border: 1px dashed #ccc;
    border-radius: 2px;
}

.ad-box.large {
    height: 600px;
}

/* Premium Sidebar Content Styling */
.sidebar-articles .section-heading {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--ghost-accent-color, #15171a);
}

/* Version 2 Layout Adjustments */
.ad-layout-container.v2-layout {
    margin-top: 60px;
}

.v2-header {
    border-bottom: 1px solid #eee;
    margin-bottom: 48px;
    padding-bottom: 32px;
}

.v2-header .post-tag {
    color: var(--ghost-accent-color, #15171a);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.v2-header .post-heading {
    font-family: var(--font2);
    font-size: 52px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    color: #000;
}

@media (max-width: 991px) {
    .v2-header .post-heading {
        font-size: 40px;
    }
}

@media (max-width: 479px) {
    .v2-header .post-heading {
        font-size: 32px;
    }
}

.v2-header .post-excerpt-wrapper p {
    font-size: 1.25rem;
    color: #444;
    line-height: 1.6;
    font-weight: 400;
    margin-bottom: 24px;
}


/* Scale down Featured Articles in sidebar for 2-column templates */
.two-column-post .post-ad-sidebar .extra-small-side-card,
.two-column-post-v2 .post-ad-sidebar .extra-small-side-card {
    gap: 12px;
    margin-bottom: 20px;
}

.two-column-post .post-ad-sidebar .extra-small-side-card-image-link,
.two-column-post-v2 .post-ad-sidebar .extra-small-side-card-image-link {
    height: 60px !important;
    min-width: 60px !important;
    width: 60px !important;
}

.two-column-post .post-ad-sidebar .extra-small-side-card-heading,
.two-column-post-v2 .post-ad-sidebar .extra-small-side-card-heading {
    font-size: 15px !important;
    line-height: 1.3 !important;
}

/* Newsletter Redesign for Sidebar */
.two-column-post .post-ad-sidebar .newsletter,
.two-column-post-v2 .post-ad-sidebar .newsletter {
    padding: 30px 20px !important;
    margin: 0 !important;
    border-radius: 4px;
    background: #f8f9fa;
    border: 1px solid #e1e1e1;
    min-height: auto !important;
}

.two-column-post .post-ad-sidebar .newsletter-heading,
.two-column-post-v2 .post-ad-sidebar .newsletter-heading {
    font-size: 18px !important;
    margin-bottom: 20px;
    line-height:1.4 !important;
    font-weight: 600;
}

.two-column-post .post-ad-sidebar .subscribe-with-alerts,
.two-column-post-v2 .post-ad-sidebar .subscribe-with-alerts {
    max-width: 100% !important;
}

.two-column-post .post-ad-sidebar .subscribe-wrapper,
.two-column-post-v2 .post-ad-sidebar .subscribe-wrapper {
    flex-direction: column !important;
    gap: 12px;
}

.two-column-post .post-ad-sidebar .subscribe-input,
.two-column-post-v2 .post-ad-sidebar .subscribe-input {
    width: 100% !important;
    border-radius: 4px !important;
    height: 48px;
    text-align: center;
}

.two-column-post .post-ad-sidebar .submit-button,
.two-column-post-v2 .post-ad-sidebar .submit-button {
    width: 100% !important;
    border-radius: 4px !important;
    height: 48px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Ensure all sidebar blocks work on responsive */
@media (max-width: 1199px) {
    .post-ad-sidebar {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 30px;
        width: 100%;
        position: static;
    }
    
    .ad-zone-wrapper, .sidebar-articles, .sidebar-newsletter-container {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .post-ad-sidebar {
        grid-template-columns: 1fr;
    }
}




