/* ===================================
   ATAX BANNER TWO BLOCK STYLES
   =================================== */


/* Main banner section wrapper */
.atax-banner-blog-section {
    width: 100%;
    position: relative;
}

/* Background container with gradient */
.atax-banner-blog-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, #FFFFFF 0%, #ffffff 30%, var(--accent-color, #10A1DC) 30%, var(--primary-color, #354477) 100%);
    z-index: 1;
}

/* Content container with max-width */
.atax-banner-blog-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
    padding: 0px 40px 0px 40px; /* Main container controls all spacing - top padding for white area */
    display: flex;
    align-items: end;
    gap: 60px;
    min-height: 400px;
    justify-content: space-around;
    z-index: 2;
}

/* Person image container - positioned to extend into white area (RIGHT SIDE) */
.atax-banner-blog-image {
    position: relative;
    flex-shrink: 0;
    z-index: 1; /* Image container below the gradient overlay */
    padding: 0px;
}

/* Gradient overlay container - covers the whole banner area */
.atax-banner-blog-gradient-overlay {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, transparent 50%, var(--primary-color, #354477) 100%);
    z-index: 3; /* Gradient overlay above the image */
    pointer-events: none; /* Allow clicks to pass through */
}

/* Person image styling */
.atax-banner-blog-person-img {
    width: 550px;
    height: auto;
    object-fit: cover;
    position: relative;
    z-index: 2; /* Image above background but below gradient */
    margin-bottom: -4px;
}

/* Content area styling (LEFT SIDE) */
.atax-banner-blog-content {
    flex: 1;
    color: white;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 0; /* No side padding - main container controls it */
    padding-bottom: 64px; /* Keep bottom padding for content spacing */
    max-width: 500px;
    position: relative;
    z-index: 4; /* Content above everything else */
}

/* Banner title */
.atax-banner-blog-title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    color: white;
    margin: 0;
    font-family: 'Montserrat', sans-serif;
}

/* Banner description */
.atax-banner-blog-description {
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    max-width: 600px;
}

/* Button container */
.atax-banner-blog-button {
    margin-top: 24px;
    display: flex;
    justify-content: flex-start;
}

/* Button styling within banner */
.atax-banner-blog-button .atax-button {
    background: #FFC845;
    color: #354477;
    border: none;
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.atax-banner-blog-button .atax-button:hover {
    background: #FFD966;
    color: #354477;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 200, 69, 0.3);
}

/* ===================================
   RESPONSIVE DESIGN - GLOBAL FRAMEWORK
   =================================== */

/* Laptop (1151px-1600px) - Same layout, reduced gaps only */
@media (max-width: 1600px) {
    .atax-banner-blog-container {
        gap: 50px; /* Reduced gap */
        padding: 0px 40px 0px 40px; /* Maintain desktop padding */
        max-width: 1280px;
    }
    .atax-banner-blog-person-img {
        width: 550px; /* Consistent with desktop */
    }
    /* NO font size changes - same fonts as desktop */
}

/* Tablet (768px-1150px) - Layout optimization, content on top, image on bottom */
@media (max-width: 1150px) {
    .atax-banner-blog-background {
        background: linear-gradient(180deg, var(--accent-color, #10A1DC) 0%, var(--primary-color, #354477) 100%); /* Remove white part */
    }
    .atax-banner-blog-container {
        flex-direction: column-reverse; /* Stack image below content */
        text-align: center;
        gap: 40px; /* Reduced gap for tablet */
        padding: 60px 20px 0px 20px; /* Container-first spacing */
        min-height: auto;
        align-items: center; /* Center align for tablet column layout */
        justify-content: center; /* Center justify for tablet column layout */
        max-width: 1280px;
    }
    
    .atax-banner-blog-person-img {
        width: 400px; /* Appropriate size for tablet */
        margin: 0 auto;
        flex-shrink: 0; /* Prevent image from shrinking */
    }
    
    .atax-banner-blog-content {
        padding: 0; /* No side padding - main container controls it */
        padding-bottom: 20px; /* Small bottom padding for content */
        text-align: center;
        gap: 20px;
        max-width: 100%; /* Full width on tablet */
        flex: 1; /* Take remaining space */
    }
    
    .atax-banner-blog-button {
        justify-content: center; /* Center button on tablet */
    }
    
    .atax-banner-blog-title {
        font-size: 32px; /* Maintain desktop size */
    }
    
    .atax-banner-blog-description {
        font-size: 18px; /* Maintain desktop size */
        max-width: 100%;
    }
    /* NO font size changes - same fonts as desktop */
}

/* Mobile (0px-767px) - Stacked layout, mobile optimization */
@media (max-width: 767px) {
    .atax-banner-blog-background {
        background: linear-gradient(180deg, var(--accent-color, #10A1DC) 0%, var(--primary-color, #354477) 100%); /* Remove white part */
    }
    .atax-banner-blog-container {
        flex-direction: column-reverse; /* Stack image below content */
        gap: 30px; /* Reduced gap for mobile */
        padding: 50px 16px 0px 16px; /* Container-first spacing with mobile padding */
        align-items: center; /* Center align for mobile */
        justify-content: center; /* Center justify for mobile */
        max-width: 1280px;
    }
    
    .atax-banner-blog-person-img {
        width: 360px; /* Appropriate size for mobile */
        margin: 0 auto;
        flex-shrink: 0; /* Prevent image from shrinking */
    }
    
    .atax-banner-blog-content {
        padding: 0; /* No side padding - main container controls it */
        padding-bottom: 20px; /* Small bottom padding for content */
        text-align: center;
        gap: 18px; /* Slightly tighter spacing on mobile */
        max-width: 100%; /* Full width on mobile */
        flex: 1; /* Take remaining space */
    }
    
    .atax-banner-blog-button {
        justify-content: center; /* Center button on mobile */
    }
    
    .atax-banner-blog-title {
        font-size: 28px; /* 36px → 28px for mobile readability (framework exception) */
    }
    
    .atax-banner-blog-description {
        font-size: 16px; /* 18px → 16px for mobile readability */
        max-width: 100%;
    }
    
    .atax-banner-blog-button .atax-button {
        padding: 14px 28px;
        font-size: 15px;
    }
    /* NO other font size changes - same fonts as desktop */
}

/* ===================================
   WORDPRESS BLOCK WRAPPER STYLES
   =================================== */

/* WordPress block wrapper - handles WordPress integration */
.wp-block-acf-atax-banner-blog .atax-banner-blog-section {
    width: 100%;
    max-width: 100%;
    padding: 0; /* Remove horizontal padding for full-width */
}

/* Wide alignment support */
.wp-block-acf-atax-banner-blog.alignwide .atax-banner-blog-container {
    max-width: 1280px;
    margin: 0 auto;
}

.wp-block-acf-atax-banner-blog.alignfull .atax-banner-blog-container {
    max-width: 1280px;
    margin: 0 auto;
}
