/**
 * About Third Section Block Styles
 * 
 * @package ACF Child Theme
 */

/* Section Wrapper - Full width */
.about-third-section {
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Background Wrapper - Full width background image */
.about-third-section .ats-background-wrapper {
    position: relative;
    width: 100%;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    padding: 80px 0;
    display: flex;
    align-items: center;
}

/* Content Container - Standard width */
.about-third-section .block-container {
    max-width: var(--theme-normal-container-max-width, 1290px);
    width: var(--theme-container-width, 100%);
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* Cards Container with beige background */
.about-third-section .ats-cards-container {
    background-color: var(--color-secondary, #f9f6f1);
    width: 100%;
}

/* Cards Grid Layout */
.about-third-section .ats-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

/* Individual Card */
.about-third-section .ats-card {
    background-color: transparent;
    position: relative;
}

/* Add vertical dividers between cards */
.about-third-section .ats-card:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 10%;
    right: 0;
    width: 2px;
    height: 80%;
    background-color: rgba(37, 37, 37, 0.2);
}

/* Card Inner Content */
.about-third-section .ats-card-inner {
    padding: 40px 60px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Card Title */
.about-third-section .ats-card-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 400;
    color: var(--color-text, #252525);
    margin: 0 0 15px 0;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Card Divider */
.about-third-section .ats-card-divider {
    width: 80px;
    height: 4px;
    background-color: var(--color-primary, #b2762a);
    margin: 0 0 25px 0;
}

/* Card Description */
.about-third-section .ats-card-description {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-text, #252525);
    margin: 0;
}

/* Tablet Styles */
@media (max-width: 1024px) {
    .about-third-section .ats-background-wrapper {
        min-height: 500px;
        padding: 60px 0;
    }
    
    .about-third-section .ats-card-inner {
        padding: 35px 40px;
    }
    
    .about-third-section .ats-card-title {
        font-size: 18px;
    }
    
    .about-third-section .ats-card-description {
        font-size: 14px;
        line-height: 1.6;
    }
}

/* Small Tablet Styles */
@media (max-width: 900px) {
    .about-third-section .ats-cards-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .about-third-section .ats-card::after {
        display: none;
    }
    
    /* Add horizontal dividers instead */
    .about-third-section .ats-card:not(:last-child) {
        border-bottom: 1px solid rgba(37, 37, 37, 0.2);
    }
    
    .about-third-section .ats-background-wrapper {
        min-height: auto;
        padding: 50px 0;
    }
    
    .about-third-section .ats-card-inner {
        padding: 40px 30px;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .about-third-section .ats-background-wrapper {
        padding: 40px 0;
        background-attachment: scroll;
    }
    
    .about-third-section .ats-card-inner {
        padding: 35px 25px;
    }
    
    .about-third-section .ats-card-title {
        font-size: 17px;
        margin-bottom: 12px;
    }
    
    .about-third-section .ats-card-divider {
        width: 60px;
        height: 2px;
        margin-bottom: 20px;
    }
    
    .about-third-section .ats-card-description {
        font-size: 14px;
        line-height: 1.6;
    }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
    .about-third-section .ats-background-wrapper {
        padding: 30px 0;
    }
    
    .about-third-section .ats-card-inner {
        padding: 30px 20px;
    }
    
    .about-third-section .ats-card-title {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .about-third-section .ats-card-divider {
        width: 50px;
        margin-bottom: 18px;
    }
    
    .about-third-section .ats-card-description {
        font-size: 13px;
        line-height: 1.5;
    }
}

/* Editor Styles */
.wp-block[data-type="acf/about-third-section"] {
    margin: 0;
}
