.site-header {
    background-color: var(--header-bg);
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

body {
    padding-bottom: 100px; /* Space for footer ad */
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.title-container {
    display: flex;
    flex-direction: column;
}

.main-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.2rem;
}

.subtitle {
    font-size: 0.85rem;
    color: var(--text-color); /* Kept dynamic for dark mode, but defaults to black-ish in light mode */
    font-weight: 400;
}

.header-controls {
    display: flex;
    gap: 1rem;
    position: relative;
}

.main-container {
    max-width: 1200px;
    margin: 1rem auto;
    padding: 0 1rem;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.calculator-wrapper {
    flex: 1;
    min-width: 0; /* Fix flex child overflow */
}

.ad-container {
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent; /* Text hidden as requested */
    font-size: 0.875rem;
    border: none;
}

/* 
.horizontal-ad {
    width: 100%;
    max-width: 728px;
    height: 90px;
    margin: 1rem auto;
} 
*/

.vertical-ad {
    width: 300px;
    height: 600px;
    flex-shrink: 0;
    position: sticky;
    top: 5rem; /* Sticky position when scrolling */
}

.footer-ad {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 90px; /* Or auto based on ad size */
    background-color: transparent; /* No background as requested */
    border-top: none; /* No border as requested */
    z-index: 90;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.5rem;
    pointer-events: none; /* Let clicks pass through if empty, though ad script handles this */
}

.footer-ad > * {
    pointer-events: auto; /* Re-enable clicks for ad content */
}

.ad-placeholder {
    border: none; /* No border */
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent; /* No background */
}

/* Responsive */
@media (max-width: 1024px) {
    .main-container {
        flex-direction: column;
        align-items: center; /* Center content when stacked */
    }

    .vertical-ad {
        margin: 1rem auto;
        width: 100%;
        max-width: 300px;
        height: 250px; /* Smaller height for mobile if responsive, or keep 600 */
        position: static; /* Remove sticky on mobile */
        /* display: none; Removed to show on mobile if desired, or keep hidden */
    }
    
    /* Adjust footer ad height for mobile if needed */
    .footer-ad {
        height: 60px;
    }
}

