/* ===================================
   ATAX BANNER TWO BLOCK STYLES
   =================================== */

 .wp-block-group.atax-banner-three.alignwide {
    margin-top: -180px;
}
/* Main banner section wrapper */
.atax-banner-three-section {
    width: 100%;
    position: relative;
}

/* Background container with gradient */
.atax-banner-three-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, #EDEFF4 0%, #EDEFF4 30%, var(--accent-color, #10A1DC) 30%, var(--primary-color, #354477) 100%);
    z-index: 1;
}

/* Content container with max-width */
.atax-banner-three-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-three-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-three-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-three-person-img {
    width: 550px;
    height: auto;
    object-fit: cover;
    position: relative;
    z-index: 2; /* Image above background but below gradient */
    margin-bottom: -4px;
    max-width: 100%;
}

/* Content area styling (LEFT SIDE) */
.atax-banner-three-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-three-title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    color: white;
    margin: 0;
    font-family: 'Montserrat', sans-serif;
}

/* Banner description */
.atax-banner-three-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-three-button {
    margin-top: 8px;
}

/* ===================================
   RESPONSIVE DESIGN - GLOBAL FRAMEWORK
   =================================== */

/* Laptop (1151px-1600px) - Same layout, reduced gaps only */
@media (max-width: 1600px) {
    .atax-banner-three-container {
        gap: 50px; /* Reduced gap */
        padding: 0px 40px 0px 40px; /* Maintain desktop padding */
        max-width: 1280px;
    }
    .atax-banner-three-person-img {
        width: 550px; /* Consistent with desktop */
    }


}

/* Tablet (768px-1150px) - Layout optimization, content on top, image on bottom */
@media (max-width: 1150px) {
    .atax-banner-three-background {
        background: linear-gradient(180deg, var(--accent-color, #10A1DC) 0%, var(--primary-color, #354477) 100%); /* Remove white part */
    }
    .atax-banner-three-container {
        flex-direction: column; /* Stack content first, image at bottom */
        text-align: center;
        gap: 40px; /* Reduced gap for tablet */
        padding: 60px 20px 40px 20px; /* Container-first spacing with bottom padding for image */
        min-height: auto;
        align-items: center; /* Center align for tablet column layout */
        justify-content: flex-start; /* Start from top */
        max-width: 1280px;
    }
    
    /* Ensure image is at the bottom */
    .atax-banner-three-image {
        order: 2; /* Image comes last (at bottom) */
        margin-top: auto; /* Push to bottom */
    }
    
    /* Ensure content is at the top */
    .atax-banner-three-content {
        order: 1; /* Content comes first (at top) */
        padding: 0; /* No side padding - main container controls it */
        padding-bottom: 0; /* Remove bottom padding since image is below */
        text-align: center;
        gap: 20px;
        max-width: 100%; /* Full width on tablet */
        flex: 0 0 auto; /* Don't take remaining space, just fit content */
    }
    
    .atax-banner-three-person-img {
        width: 400px; /* Appropriate size for tablet */
        margin: 0 auto;
        flex-shrink: 0; /* Prevent image from shrinking */
    }
    
    .atax-banner-three-title {
        font-size: 32px; /* Maintain desktop size */
        color: white !important; /* Ensure white color */
    }
    
    .atax-banner-three-description {
        font-size: 18px; /* Maintain desktop size */
        max-width: 100%;
        color: rgba(255, 255, 255, 0.95) !important; /* Ensure white color */
    }
    
    /* Ensure all text is white on tablet */
    .atax-banner-three-content,
    .atax-banner-three-content * {
        color: white !important;
    }
    
    /* Ensure any paragraphs or other elements inside description are white */
    .atax-banner-three-description p,
    .atax-banner-three-description div,
    .atax-banner-three-description span {
        color: rgba(255, 255, 255, 0.95) !important;
    }
    
    .wp-block-group.atax-banner-three.alignwide {
        margin-top: -0px;
    }
    /* NO font size changes - same fonts as desktop */
}

/* Mobile (0px-767px) - Stacked layout, mobile optimization */
@media (max-width: 767px) {
    .atax-banner-three-background {
        background: linear-gradient(180deg, var(--accent-color, #10A1DC) 0%, var(--primary-color, #354477) 100%); /* Remove white part */
    }
    .wp-block-group.atax-banner-three.alignwide {
        margin-top: -0px;
    }
    .atax-banner-three-container {
        flex-direction: column; /* Stack content first, image at bottom */
        gap: 30px; /* Reduced gap for mobile */
        padding: 50px 16px 40px 16px; /* Container-first spacing with mobile padding, bottom padding for image */
        align-items: center; /* Center align for mobile */
        justify-content: flex-start; /* Start from top */
        max-width: 1280px;
    }
    
    /* Ensure image is at the bottom */
    .atax-banner-three-image {
        order: 2; /* Image comes last (at bottom) */
        margin-top: auto; /* Push to bottom */
    }
    
    /* Ensure content is at the top */
    .atax-banner-three-content {
        order: 1; /* Content comes first (at top) */
        padding: 0; /* No side padding - main container controls it */
        padding-bottom: 0; /* Remove bottom padding since image is below */
        text-align: center;
        gap: 18px; /* Slightly tighter spacing on mobile */
        max-width: 100%; /* Full width on mobile */
        flex: 0 0 auto; /* Don't take remaining space, just fit content */
    }
    
    .atax-banner-three-person-img {
        width: 360px; /* Appropriate size for mobile */
        margin: 0 auto;
        flex-shrink: 0; /* Prevent image from shrinking */
    }
    
    /* Ensure all text is white in mobile */
    .atax-banner-three-content,
    .atax-banner-three-content * {
        color: white !important;
    }
    
    .atax-banner-three-title {
        font-size: 28px; /* 36px → 28px for mobile readability (framework exception) */
        color: white !important; /* Force white color */
    }
    
    .atax-banner-three-description {
        font-size: 16px; /* 18px → 16px for mobile readability */
        max-width: 100%;
        color: rgba(255, 255, 255, 0.95) !important; /* Force white color */
    }
    
    /* Ensure any paragraphs or other elements inside description are white */
    .atax-banner-three-description p,
    .atax-banner-three-description div,
    .atax-banner-three-description span {
        color: rgba(255, 255, 255, 0.95) !important;
    }
    
    .atax-banner-three-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-three .atax-banner-three-section {
    width: 100%;
    max-width: 100%;
    padding: 0; /* Remove horizontal padding for full-width */
}

/* Wide alignment support */
.wp-block-acf-atax-banner-three.alignwide .atax-banner-three-container {
    max-width: 1280px;
    margin: 0 auto;
}

.wp-block-acf-atax-banner-three.alignfull .atax-banner-three-container {
    max-width: 1280px;
    margin: 0 auto;
}
