/*
Theme Name: estatedeals
Theme URI: https://github.com/sdrahnea/estatedeals
Author: Sergiu Drahnea
Description: A premium, modern real estate theme with a focus on conversion and clean UI.
Version: 1.3.1
License: GNU General Public License v2 or later
Text Domain: estatedeals
*/

/*--------------------------------------------------------------
# 1. Fonts & Variables
--------------------------------------------------------------*/
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    /* --- Palette --- */
    --primary: #4f8a7b;        /* Sage Teal */
    --primary-dark: #3b6f63;   /* Deep Sage */
    --primary-light: #dfeee8;  /* Soft Mint */

    --secondary: #1f2933;      /* Warm Charcoal */
    --secondary-light: #4b5b6b;

    --accent: #d97745;         /* Terracotta */
    --danger: #c2413f;
    --danger-light: #f5d7d5;
    --danger-dark: #8f2b29;

    --text-inverse: #f8f5f1;
    --text-inverse-muted: #e3dcd2;

    /* --- Base --- */
    --bg-body: #f7f3ee;        /* Warm Off-White */
    --bg-white: #ffffff;
    --text-main: #1f2933;
    --text-muted: #6b6a66;
    --border: #e5ddd3;

    /* --- Spacing & Layout --- */
    --container-width: 1280px;
    --header-height: 80px;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;

    /* --- Effects --- */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
    --shadow-card: 0 20px 25px -5px rgba(0,0,0,0.05), 0 8px 10px -6px rgba(0,0,0,0.01);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/*--------------------------------------------------------------
# 2. Reset & Global Styles
--------------------------------------------------------------*/
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--secondary);
    font-weight: 700;
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.75rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.25rem;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

a {
    color: var(--primary-dark);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container Helper */
.wrapper, .site-header-inner, .site-info, .front-page-main, .price-main, .contact-main, .subscribe-main {
    max-width: var(--container-width);
    margin: 0 auto;
    padding-left: 5vw;
    padding-right: 5vw;
}

/* Entry Header Styles */
.entry-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-top: 2rem;
}

.entry-title {
    font-size: 2.75rem;
    margin-bottom: 1rem;
    color: var(--secondary);
}

.entry-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/*--------------------------------------------------------------
# 3. Header & Navigation
--------------------------------------------------------------*/
.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
}

.site-header-inner {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0; 
    padding-bottom: 0;
}

.site-title {
    font-size: 1.75rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    margin: 0;
}

.site-title a {
    color: var(--secondary);
}

.site-description {
    display: none; /* Hidden for modern look */
}

/* Main Menu */
.main-navigation ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    position: relative;
}

.main-navigation a:hover {
    color: var(--primary);
}

/* Underline Effect */
.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.main-navigation a:hover::after {
    width: 100%;
}

/* Mobile Menu Button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

@media screen and (max-width: 768px) {
    .menu-toggle {
        display: block;
        color: var(--secondary);
    }

    .main-navigation ul {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--bg-white);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        gap: 1rem;
    }

    .main-navigation.toggled ul {
        display: flex;
    }

    .main-navigation a {
        display: block;
        width: 100%;
        border-bottom: 1px solid var(--border);
    }

    .main-navigation a::after {
        display: none;
    }
}

/*--------------------------------------------------------------
# 4. Hero Section
--------------------------------------------------------------*/
.hero-search {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
    border-radius: var(--radius-lg);
    padding: 5rem 2rem;
    margin: 2rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    color: var(--text-inverse);
    box-shadow: var(--shadow-lg);
}

/* Decorative Circle */
.hero-search::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-inner {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    color: var(--text-inverse);
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.hero-subtitle {
    color: var(--text-inverse-muted);
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
}

/* Search Form */
.estate-search-form {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    padding: 1rem;
    border-radius: var(--radius-md);
    display: grid;
    grid-template-columns: 2fr 1.5fr auto;
    gap: 0.75rem;
    border: 1px solid rgba(255,255,255,0.2);
}

.estate-search-form input,
.estate-search-form select {
    width: 100%;
    border: none;
    border-radius: var(--radius-sm);
    padding: 0 1rem;
    height: 54px;
    font-size: 1rem;
    color: var(--secondary);
    background: var(--bg-white);
    font-family: inherit;
    appearance: none; /* remove default arrow */
    background-image: none;
}

.estate-search-form select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

.estate-search-form .search-submit {
    height: 54px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    padding: 0 2rem;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
}

.estate-search-form .search-submit:hover {
    background: var(--accent);
    transform: translateY(-2px);
}

@media screen and (max-width: 900px) {
    .estate-search-form {
        grid-template-columns: 1fr 1fr;
    }

    .estate-search-form .search-submit {
        grid-column: 1 / -1;
    }

    .hero-title {
        font-size: 2.5rem;
    }
}

@media screen and (max-width: 600px) {
    .estate-search-form {
        grid-template-columns: 1fr;
    }

    .hero-search {
        padding: 3rem 1rem;
    }
}

/*--------------------------------------------------------------
# 5. Property Grid & Cards
--------------------------------------------------------------*/
.latest-properties {
    padding-bottom: 3rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header p {
    max-width: 600px;
    margin: 0 auto;
}

.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
}

.property-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.property-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card);
    border-color: transparent;
}

/* Image */
.property-card-thumbnail {
    position: relative;
    height: 0px;
    overflow: hidden;
}

.property-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.property-card:hover .property-card-thumbnail img {
    transform: scale(1.08);
}

/* Badges */
.property-card-meta {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    gap: 0.5rem;
    z-index: 2;
}

.property-location, .property-type {
    background: rgba(255, 255, 255, 0.95);
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: var(--shadow-sm);
}

.property-location {
    color: var(--primary-dark);
}

.property-type {
    color: var(--secondary);
}

/* Content */
.property-card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.property-card-title {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.property-card-title a {
    color: var(--text-main);
}

.property-card-title a:hover {
    color: var(--primary);
}

.property-card-excerpt {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    flex-grow: 1;
}

/* Footer / Button inside card (if exists) */
.property-card-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 1.1rem;
}

/*--------------------------------------------------------------
# 6. Pricing Section
--------------------------------------------------------------*/
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.pricing-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    text-align: center;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.pricing-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
    transform: scale(1.02);
}

/* Highlight 'Premium' or middle card */
.pricing-card:nth-child(2) {
    border: 2px solid var(--primary);
    position: relative;
}

.pricing-card:nth-child(2)::before {
    content: 'Most Popular';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--primary);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
}

.pricing-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.pricing-price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--secondary);
    font-family: 'Outfit', sans-serif;
    margin-bottom: 2rem;
    display: block;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
    text-align: left;
}

.pricing-features li {
    padding: 0.75rem 0;
    border-bottom: 1px dashed var(--border);
    color: var(--text-muted);
    display: flex;
    align-items: center;
}

.pricing-features li::before {
    content: "✔";
    color: var(--primary);
    margin-right: 0.75rem;
    font-weight: bold;
}

/*--------------------------------------------------------------
# 7. Subscribe Section
--------------------------------------------------------------*/
.subscribe-main {
    max-width: var(--container-width);
    margin: 0 auto;
    padding-left: 5vw;
    padding-right: 5vw;
}

.subscribe-forms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.subscribe-form-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    text-align: center;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.subscribe-form-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
    transform: scale(1.02);
}

.register-form-card {
    border: 2px solid var(--primary);
    position: relative;
}

.register-form-card::before {
    content: 'New User';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--primary);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
}

.subscribe-form-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--secondary);
}

.subscribe-form-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.subscribe-form-card form {
    text-align: left;
}

.subscribe-form-card form p {
    margin-bottom: 1.5rem;
}

.subscribe-form-card form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--secondary);
    font-size: 0.95rem;
}

.subscribe-form-card form .input,
.subscribe-form-card form input[type="text"],
.subscribe-form-card form input[type="email"],
.subscribe-form-card form input[type="password"] {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-white);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    box-sizing: border-box;
}

.subscribe-form-card form .input:focus,
.subscribe-form-card form input[type="text"]:focus,
.subscribe-form-card form input[type="email"]:focus,
.subscribe-form-card form input[type="password"]:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.subscribe-form-card form input[type="checkbox"] {
    margin-right: 0.5rem;
    width: auto;
}

.subscribe-form-card form .forgetmenot {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.subscribe-form-card form .forgetmenot label {
    margin-bottom: 0;
    font-weight: 400;
    cursor: pointer;
}

.subscribe-form-card form .button {
    width: 100%;
    background: var(--primary-dark);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    font-size: 1rem;
}

.subscribe-form-card form .button:hover {
    background: var(--primary);
    transform: translateY(-1px);
}

.subscribe-form-links {
    text-align: center;
    margin-top: 1rem;
}

.subscribe-form-links a {
    color: var(--primary-dark);
    font-size: 0.9rem;
    text-decoration: underline;
}

.subscribe-form-links a:hover {
    color: var(--primary);
}

.subscribe-register-note {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
    text-align: center;
    margin-bottom: 1rem;
}

.subscribe-message {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
    border: 1px solid var(--border);
}

.subscribe-message.success {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary-dark);
}

.subscribe-message.error {
    background: var(--danger-light);
    border-color: var(--danger);
    color: var(--danger-dark);
}

.subscribe-message p {
    margin-bottom: 1rem;
    font-weight: 500;
}

.subscribe-message .button {
    display: inline-block;
    background: var(--primary-dark);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.subscribe-message .button:hover {
    background: var(--primary);
    transform: translateY(-1px);
}

@media screen and (max-width: 768px) {
    .subscribe-forms-grid {
        grid-template-columns: 1fr;
    }
}

/*--------------------------------------------------------------
# 8. Contact Section
--------------------------------------------------------------*/
.contact-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-card {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-align: center;
    border: 1px solid var(--border);
}

.contact-card h2 {
    font-size: 1.25rem;
    color: var(--primary-dark);
}

.contact-card p {
    font-size: 1.1rem;
    color: var(--secondary);
    font-weight: 500;
}

/*--------------------------------------------------------------
# 8. Footer
--------------------------------------------------------------*/
.site-footer {
    background: var(--secondary);
    color: var(--text-inverse-muted);
    padding: 4rem 0 2rem;
    margin-top: 5rem;
    font-size: 0.95rem;
}

.site-footer a {
    color: var(--text-inverse);
    opacity: 0.8;
}

.site-footer a:hover {
    color: var(--accent);
    opacity: 1;
}

.footer-ad-area {
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 2rem;
}

.site-info {
    text-align: center;
    padding-top: 1rem;
}

/*--------------------------------------------------------------
# 9. WordPress Standard Elements (Forms, Posts)
--------------------------------------------------------------*/
input[type="text"], input[type="email"], input[type="url"], input[type="password"], textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-white);
    font-family: inherit;
    font-size: 1rem;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

button, input[type="submit"], .button {
    background: var(--primary-dark);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

button:hover, input[type="submit"]:hover {
    background: var(--primary);
    transform: translateY(-1px);
}

/*--------------------------------------------------------------
# 10. Single post & entry content
--------------------------------------------------------------*/
.site-main {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 2rem 5vw 4rem;
}

.site-main .entry-header,
.site-main .entry-content,
.site-main .entry-footer {
    padding-left: 0;
    padding-right: 0;
}

/* Post Content */
.entry-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 0.5rem;
}

.entry-content > *:first-child {
    margin-top: 0;
}

.entry-content h2 {
    font-size: 1.75rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    color: var(--secondary);
}

.entry-content h2:first-child {
    margin-top: 0;
}

.entry-content h3 {
    font-size: 1.35rem;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
    color: var(--secondary-light);
}

.entry-content p {
    margin-bottom: 1rem;
}

.entry-content ul,
.entry-content ol {
    margin: 1rem 0 1.5rem;
    padding-left: 2rem;
}

.entry-content ul {
    list-style-type: disc;
}

.entry-content ol {
    list-style-type: decimal;
}

.entry-content li {
    margin-bottom: 0.5rem;
    padding-left: 0.25rem;
}

.entry-content li:last-child {
    margin-bottom: 0;
}

.entry-content strong {
    color: var(--text-main);
    font-weight: 600;
}

/* Post thumbnail on single view */
.single .post-thumbnail {
    margin-bottom: 2rem;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.single .post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

/* Entry footer (Posted in, Tagged, etc.) */
.entry-footer {
    max-width: 800px;
    margin: 2.5rem auto 0;
    padding: 1.5rem 0.5rem 0;
    border-top: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.entry-footer .cat-links,
.entry-footer .tags-links {
    display: block;
    margin-bottom: 0.5rem;
}

.entry-footer .cat-links:last-child,
.entry-footer .tags-links:last-child {
    margin-bottom: 0;
}

.entry-footer a {
    color: var(--primary-dark);
}

.entry-footer a:hover {
    color: var(--primary);
}

.entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    justify-content: center;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.entry-meta .posted-on,
.entry-meta .byline {
    margin: 0;
}

blockquote {
    border-left: 4px solid var(--primary);
    margin: 2rem 0;
    padding-left: 1.5rem;
    font-style: italic;
    color: var(--secondary);
    background: var(--primary-light);
    padding: 1.5rem;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* Utilities */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

.aligncenter {
    display: block;
    margin: 0 auto;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
}

.alignleft {
    float: left;
    margin-right: 1.5rem;
}

/*--------------------------------------------------------------
# Google AdSense Styles
--------------------------------------------------------------*/

/* Ad Container Styles */
.header-ad-area,
.footer-ad-area,
.front-page-ad-section {
    width: 100%;
    margin: 2rem auto;
    text-align: center;
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.front-page-ad-section {
    max-width: var(--container-width);
    margin: 3rem auto;
}

.ad-container {
    max-width: 100%;
    overflow: hidden;
}

/* In-Article Ad */
.post-content-ad,
.in-article-ad {
    margin: 2.5rem auto;
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

/* Multiplex Ad */
.multiplex-ad {
    margin: 3rem auto;
    max-width: var(--container-width);
}

/* AdSense Responsive Behavior */
.adsbygoogle {
    display: block;
    margin: 0 auto;
}

/* Ad Label (Optional - for transparency) */
.ad-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

/* Sidebar Ad Widget */
.widget-header-ad,
.widget-footer-ad {
    background: transparent;
    border: none;
    padding: 0;
}

/* Responsive Adjustments */
@media screen and (max-width: 768px) {
    .header-ad-area,
    .footer-ad-area,
    .front-page-ad-section {
        margin: 1.5rem auto;
        padding: 1rem;
    }

    .post-content-ad,
    .in-article-ad {
        margin: 2rem auto;
        padding: 1.5rem 0;
    }
}

@media screen and (max-width: 480px) {
    .header-ad-area,
    .footer-ad-area,
    .front-page-ad-section {
        padding: 0.75rem;
        border-radius: var(--radius-sm);
    }
}

/* Ensure ads don't break layout */
ins.adsbygoogle {
    overflow: hidden;
    max-width: 100%;
}

/* Vertical Ad Sidebars */
.site {
    position: relative;
    display: grid;
    grid-template-columns: 160px 1fr 160px;
    grid-template-rows: auto auto;
    gap: 1.5rem;
    max-width: 100%;
}

.site-content-wrapper {
    grid-column: 2;
    grid-row: 1 / -1;
    display: flex;
    flex-direction: column;
}

.vertical-ad-sidebar {
    width: 100%;
    position: sticky;
    top: 100px;
    height: fit-content;
}

.vertical-ad-sidebar-left {
    grid-column: 1;
    grid-row: 2;
}

.vertical-ad-sidebar-right {
    grid-column: 3;
    grid-row: 2;
}

.vertical-ad-sidebar .adsbygoogle {
    display: block;
    margin: 0 auto;
}

/* Top Ad Area (Full Width) */
.top-ad-area {
    width: 100%;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.top-ad-area .adsbygoogle {
    display: block;
    margin: 0 auto;
    max-width: 100%;
}

.top-ad-area .widget-top-ad {
    width: 100%;
    background: transparent;
    border: none;
    padding: 0;
}

/* Bottom Ad Area (Full Width) */
.bottom-ad-area {
    width: 100%;
    background: var(--bg-white);
    border-top: 1px solid var(--border);
    padding: 1rem 0;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bottom-ad-area .adsbygoogle {
    display: block;
    margin: 0 auto;
    max-width: 100%;
}

.bottom-ad-area .widget-bottom-ad {
    width: 100%;
    background: transparent;
    border: none;
    padding: 0;
}

/* Header spans all columns */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

/* Main content and footer in center column */
.site-main {
    width: 100%;
    max-width: 100%;
    padding: 2rem 5vw 4rem;
    margin: 0;
}

.site-main .entry-header,
.site-main .entry-content,
.site-main .entry-footer {
    max-width: 100%;
}

/* Hide vertical ads on small screens */
@media screen and (max-width: 1200px) {
    .site {
        grid-template-columns: 1fr;
    }

    .vertical-ad-sidebar {
        display: none;
    }

    .top-ad-area {
        padding: 0.75rem;
    }
}

@media screen and (max-width: 768px) {
    .site {
        grid-template-columns: 1fr;
    }

    .vertical-ad-sidebar {
        display: none;
    }

    .top-ad-area {
        padding: 0.5rem;
    }
}
