/* ===================================
   HOME BOX ONE BLOCK STYLES
   =================================== */

/* Main block container - ISOLATED to prevent conflicts */
.wp-block-acf-atax-home-box-one .home-box-one-section {
    width: 100%;
    max-width: 100vw;
    margin: 0 auto;
    padding: 72px 80px 64px 80px; /* Main container controls all side spacing */
    display: flex;
    flex-direction: column;
    gap: 60px;
    box-sizing: border-box;
    background: #354477; /* Dark blue background as per design */
    position: relative;
    color: white; /* White text on dark background */
}

/* Main container - 1280px max-width as per design */
.home-box-one-container {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 60px;
    position: relative;
    z-index: 2; /* Above background logo */
    padding: 0; /* No side padding - main container controls it */
}

/* Container 1: Header with mascot, title and subtitle */
.home-box-one-header-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 32px;
    padding: 0; /* No side padding - main container controls it */
    margin-top: -110px;
}

/* Mascot section */
.home-box-one-mascot {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 0; /* No side padding - main container controls it */
}

.home-box-one-mascot-image {
    max-width: 200px; /* Reasonable mascot size */
    height: auto;
    display: block;
}

/* Header text section */
.home-box-one-header-text {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    text-align: center;
    padding: 0; /* No side padding - main container controls it */
}

/* Headline above main title */
.home-box-one-headline {
    font-size: 24px; /* Headline size */
    font-weight: 600; /* Semi-bold */
    line-height: 1.3;
    color: white; /* White text */
    margin: 0; /* No margin - gap handles spacing */
    font-family: 'Montserrat', sans-serif;
    word-wrap: break-word;
    padding: 0; /* No side padding - main container controls it */
}

/* Main title */
.home-box-one-main-title {
    font-size: 48px; /* Large title as per design */
    font-weight: 700; /* Bold */
    line-height: 1.2;
    color: white; /* White text on dark background */
    margin: 0; /* No margin - gap handles spacing */
    font-family: 'Montserrat', sans-serif;
    word-wrap: break-word;
    hyphens: auto;
    text-align: center; /* Center align text */
    padding: 0; /* No side padding - main container controls it */
}

/* Container 2: Four columns of checkmark items */
.home-box-one-items-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Four equal columns by default */
    gap: 64px; /* Space between items */
    padding: 0; /* No side padding - main container controls it */
    justify-content: center; /* Center items when fewer columns */
}

/* Auto adjust columns based on items count (<4) */
.home-box-one-items-container.items-count-0,
.home-box-one-items-container.items-count-1 {
    grid-template-columns: 1fr;
}
.home-box-one-items-container.items-count-2 {
    grid-template-columns: repeat(2, 1fr);
}
.home-box-one-items-container.items-count-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* Individual item */
.home-box-one-item {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: start;
    text-align: left;
    padding: 0; /* No side padding - main container controls it */
}

/* Checkmark icon */
.home-box-one-item-icon {
    flex-shrink: 0; /* Don't shrink icon */
    display: flex;
    justify-content: start;
    align-items: center;
}

.home-box-one-item-icon .checkmark-icon {
    width: 32px; /* Icon size */
    height: 32px;
    display: block;
}

/* Item content */
.home-box-one-item-content {
    flex: 1; /* Take remaining space */
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: start;
    text-align: left;
    padding: 0; /* No side padding - main container controls it */
}

/* Item title - Bold 16px as requested */
.home-box-one-item-title {
    font-size: 16px; /* Bold 16px as requested */
    font-weight: 700; /* Bold */
    line-height: 1.3;
    color: white; /* White text */
    margin: 0; /* No margin - gap handles spacing */
    font-family: 'Montserrat', sans-serif;
    word-wrap: break-word;
    padding: 0; /* No side padding - main container controls it */
}

/* Item description */
.home-box-one-item-description {
    font-size: 16px; /* Smaller description text */
    font-weight: 400; /* Regular weight */
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9); /* Slightly transparent white */
    margin: 0; /* No margin - gap handles spacing */
    font-family: 'Montserrat', sans-serif;
    word-wrap: break-word;
    padding: 0; /* No side padding - main container controls it */
}

/* Container 3: Bottom text and button */
.home-box-one-bottom-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    padding: 0; /* No side padding - main container controls it */
}

/* Main description - now two lines */
.home-box-one-description {
    display: flex;
    flex-direction: column;
    gap: 0px;
    align-items: center;
    text-align: center;
    padding: 0; /* No side padding - main container controls it */
}

/* Description line 1 - bold */
.home-box-one-description-line-1 {
    font-size: 16px; /* Body text size */
    font-weight: 700; /* Bold weight */
    line-height: 1.6;
    color: white; /* White text */
    margin: 0; /* No margin - gap handles spacing */
    font-family: 'Montserrat', sans-serif;
    word-wrap: break-word;
    padding: 0; /* No side padding - main container controls it */
}

/* Description line 2 - bold */
.home-box-one-description-line-2 {
    font-size: 16px; /* Body text size */
    font-weight: 700; /* Bold weight */
    line-height: 1.6;
    color: white; /* White text */
    margin: 0; /* No margin - gap handles spacing */
    font-family: 'Montserrat', sans-serif;
    word-wrap: break-word;
    padding: 0; /* No side padding - main container controls it */
}

/* Button container */
.home-box-one-button {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0; /* No side padding - main container controls it */
}

/* Reusable ATAX button styles */
.atax-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px; /* Space between icon and text */
    padding: 16px 32px;
    background-color: #FFD700; /* Yellow background */
    color: #354477; /* Dark blue text */
    text-decoration: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    min-height: 48px;
}

.atax-button:hover {
    background-color: #FFED4E; /* Lighter yellow on hover */
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}


.atax-button-text {
    color: inherit;
    font-weight: inherit;
}

/* Background logo watermark - positioned on left side */
.home-box-one-background-logo {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 70%; 
    opacity: 0.08;
    pointer-events: none; 
    z-index: 1; 
    overflow: hidden; 
}

.home-box-one-background-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: bottom left;
    display: block;
    position: relative;
    top: 400px; 
    right: 250px;
}

/* ===================================
   RESPONSIVE DESIGN - GLOBAL FRAMEWORK
   =================================== */

/* Laptop (1151px-1600px) - Same layout, reduced gaps only */
@media (max-width: 1600px) {
    .wp-block-acf-atax-home-box-one .home-box-one-section {
        padding: 72px 80px 64px 80px; /* Reduced top padding */
        gap: 50px; /* Reduced gap */
    }
    .home-box-one-container {
        gap: 50px; /* Reduced gap */
    }
    .home-box-one-items-container {
        gap: 28px; /* Reduced gap between items */
    }
    /* NO font size changes - same fonts as desktop */
}

/* Tablet (768px-1150px) - Layout optimization, columns stack */
@media (max-width: 1150px) {
    .wp-block-acf-atax-home-box-one .home-box-one-section {
        padding: 64px 32px 64px 32px;
        gap: 45px;
    }
    .home-box-one-container {
        max-width: 100%;
        gap: 45px; /* Reduced gap */
        padding: 0; /* No side padding - main container controls it */
    }
    .home-box-one-items-container {
        grid-template-columns: repeat(2, 1fr); /* Two columns on tablet */
        gap: 24px; /* Reduced gap for tablet */
    }
    .home-box-one-header-container {
        gap: 28px; /* Reduced gap for tablet */
    }
    .home-box-one-bottom-container {
        gap: 28px; /* Reduced gap for tablet */
    }
    .home-box-one-background-logo {
        width: 80%;
    }
    /* NO font size changes - same fonts as desktop */
}

/* Mobile (0px-767px) - Stacked layout, mobile optimization */
@media (max-width: 767px) {
    .wp-block-acf-atax-home-box-one .home-box-one-section {
        padding: 48px 16px 48px 16px; /* Proper mobile padding with bottom */
        gap: 40px;
    }
    .home-box-one-container {
        gap: 40px; /* Scaled down for mobile */
        padding: 0; /* No side padding - main container controls it */
    }
    .home-box-one-items-container {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 24px; /* Reduced gap for mobile */
    }
    .home-box-one-header-container {
        gap: 24px; /* Reduced gap for mobile */
    }
    .home-box-one-bottom-container {
        gap: 24px; /* Reduced gap for mobile */
    }
    .home-box-one-mascot-image {
        max-width: 150px; /* Smaller mascot on mobile */
    }
    .home-box-one-main-title {
        font-size: 36px; /* 48px → 36px for mobile readability (framework exception) */
    }
    .home-box-one-description-line-1,
    .home-box-one-description-line-2 {
        font-size: 16px; /* 18px → 16px for mobile readability */
    }
    .home-box-one-background-logo {
        width: 100%;
    }
    .home-box-one-background-logo img {
        top: 200px;
    }
    /* NO other font size changes - same fonts as desktop */
}

/* ===================================
   ALIGNMENT SUPPORT
   =================================== */

/* Wide alignment support */
.wp-block-acf-atax-home-box-one .home-box-one-section.alignwide {
    max-width: var(--wide-width, 1280px);
}

/* Full width alignment support */
.wp-block-acf-atax-home-box-one .home-box-one-section.alignfull {
    max-width: 100%;
}

/* ===================================
   OVERFLOW PROTECTION & TEXT HANDLING
   =================================== */

/* Prevent text overflow on all screen sizes */
.wp-block-acf-atax-home-box-one .home-box-one-main-title,
.wp-block-acf-atax-home-box-one .home-box-one-headline,
.wp-block-acf-atax-home-box-one .home-box-one-description-line-1,
.wp-block-acf-atax-home-box-one .home-box-one-description-line-2,
.wp-block-acf-atax-home-box-one .home-box-one-item-title,
.wp-block-acf-atax-home-box-one .home-box-one-item-description {
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    max-width: 100%;
    margin: 0px;
}

/* Ensure containers don't cause horizontal scroll */
.wp-block-acf-atax-home-box-one .home-box-one-section {
    max-width: 100%;
}

/* Ensure grid containers don't overflow */
.wp-block-acf-atax-home-box-one .home-box-one-container {
    min-width: 0;
}

/* Ensure grid doesn't overflow */
.wp-block-acf-atax-home-box-one .home-box-one-items-container {
    min-width: 0;
}
