/**
 * Become Part Section Block Styles
 * 
 * @package ACF Child Theme
 */

/* Full-width section wrapper */
.become-part-section-block {
    width: 100%;
    position: relative;
}

/* Background section with image */
.become-part-section-background {
    width: 100%;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    padding: 80px 0;
}

/* Optional overlay for better text readability */
.become-part-section-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    pointer-events: none;
    z-index: 1;
}

/* Container with WordPress layout width */
.become-part-section-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;
}

/* Content Card */
.become-part-card {
    background-color: #ffffff;
    border-radius: 0;
    padding: 60px;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    position: relative;
    text-align: center;
}

.become-part-card::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 4px solid #d98b20;
    pointer-events: none;
}

/* Card Title */
.become-part-card-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 32px;
    line-height: 1.3;
    color: #000000;
    margin: 0 0 24px 0;
    position: relative;
    z-index: 1;
}

/* Card Description */
.become-part-card-description {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.6;
    color: #000000;
    margin: 0 0 32px 0;
    position: relative;
    z-index: 1;
}

.become-part-card-description p {
    margin: 0 0 16px 0;
}

.become-part-card-description p:last-child {
    margin-bottom: 0;
}

.become-part-card-description ul,
.become-part-card-description ol {
    margin: 0 0 16px 20px;
    padding-left: 20px;
}

.become-part-card-description li {
    margin-bottom: 8px;
}

.become-part-card-description strong {
    font-weight: 600;
}

/* Button */
.become-part-card-button {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.become-part-card-button .btn {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    white-space: nowrap;
}

.become-part-card-button .btn-default {
    background: linear-gradient(to right, #c67ffb, #8c47c0);
    color: #ffffff;
    border: none;
}

.become-part-card-button .btn-default:hover {
    background: #d98b20;
    color: #ffffff;
}

/* Tablet Layout (768px - 1024px) */
@media screen and (max-width: 1024px) {
    .become-part-section-background {
        min-height: 500px;
        padding: 60px 0;
    }

    .become-part-card {
        padding: 50px;
        max-width: 600px;
    }

    .become-part-card-title {
        font-size: 36px;
    }

    .become-part-card-description {
        font-size: 17px;
    }
}

/* Mobile Layout (below 768px) */
@media screen and (max-width: 767px) {
    .become-part-section-background {
        min-height: auto;
        padding: 50px 0;
    }

    .become-part-section-container {
        padding: 0 15px;
    }

    .become-part-card {
        padding: 40px 30px;
        max-width: 100%;
    }

    .become-part-card-title {
        font-size: 30px;
        margin-bottom: 20px;
    }

    .become-part-card-description {
        font-size: 16px;
        margin-bottom: 28px;
    }

    .become-part-card-button .btn {
        font-size: 16px;
        padding: 12px 28px;
    }
}

/* Small Mobile (below 480px) */
@media screen and (max-width: 480px) {
    .become-part-section-background {
        padding: 40px 0;
    }

    .become-part-card {
        padding: 30px 20px;
    }

    .become-part-card-title {
        font-size: 26px;
        margin-bottom: 18px;
    }

    .become-part-card-description {
        font-size: 15px;
        margin-bottom: 24px;
    }

    .become-part-card-button .btn {
        font-size: 15px;
        padding: 11px 24px;
        width: 100%;
        justify-content: center;
    }
}

/* Gutenberg Editor Styles */
.block-editor-block-list__block[data-type="acf/become-part-section"] {
    margin-left: 0;
    margin-right: 0;
}

/* Ensure full width alignment works properly */
.alignfull.become-part-section-block {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

/* Preview mode adjustments */
.become-part-section-background:not([style*="background-image"]) {
    background-color: #f5f5f5;
    border: 2px dashed #cccccc;
}

.become-part-section-background:not([style*="background-image"])::before {
    content: "Background Image Preview";
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    color: #666666;
    background: #ffffff;
    padding: 5px 15px;
    border-radius: 4px;
    z-index: 3;
}
