/**
 * Custom Style Overrides for Replicated Ad Zones
 * These rules sit alongside the original Znews stylesheet.
 */

.znews-banner {
    display: block !important;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
    transition: all 0.3s ease;
    margin: 15px auto;
    border-radius: 4px;
}

/* Specific Slot Sizes to prevent layout shifting */
#ZingNews_Masthead {
    max-width: 1160px;
    width: 100%;
    aspect-ratio: 1160 / 250;
    height: auto;
    margin: 10px auto;
}

#ZingNews_Halfpage {
    max-width: 300px;
    width: 100%;
    aspect-ratio: 300 / 600;
    height: auto;
    margin: 5px auto !important;
    display: block !important;
}

#ZingNews_PrBox_2 {
    max-width: 300px;
    width: 100%;
    aspect-ratio: 300 / 600;
    height: auto;
    margin: 5px auto !important;
    display: block !important;
}

#ZingNews_R3 {
    display: none !important;
}

#ZingNews_Masthead_Inline_1 {
    max-width: 1000px;
    width: 100%;
    aspect-ratio: 1000 / 250;
    height: auto;
    margin: 25px auto;
}

/* Loaded state */
.znews-banner.loaded {
    border-style: solid;
    border-color: transparent;
    background: transparent;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* Loader style */
.ad-loader {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #64748b;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 13px;
    background: #f1f5f9;
}

.spinner {
    width: 28px;
    height: 28px;
    border: 3px solid rgba(7, 130, 67, 0.1);
    border-top-color: #078243;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.ad-empty-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #f8fafc;
    color: #94a3b8;
}

.placeholder-tag {
    background: #e2e8f0;
    color: #64748b;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 3px;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.placeholder-size {
    font-size: 11px;
    font-family: monospace;
}

/* Hide TV360 ad container as the original live site does */
#ZingNews_TV360 {
    display: none !important;
}

#Zingnews_SiteHeader { width: 100%; display: flex; justify-content: center; align-items: center; }

/* Category Layout Styles */
.layout-two-col {
    display: flex;
    max-width: 1160px;
    margin: 0 auto;
    gap: 20px;
    padding-top: 20px;
}

.main-content {
    flex: 1;
    max-width: 840px;
}

.sidebar {
    width: 300px;
    flex-shrink: 0;
}

.category-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #222;
    text-transform: uppercase;
    border-bottom: 3px solid #078243;
    display: inline-block;
}

