/**
 * App Feature Block - Frontend Styles
 * Matches VIPBC theme styling - same structure as app-block
 */

.app-block-wrapper {
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    overflow: hidden;
}

.app-block-container {
    display: flex;
    flex-direction: row;
    min-height: 500px;
    width: 100%;
    --left-side-percentage: 50%;
}

.app-block-left {
    flex: 0 0 var(--left-side-percentage);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.app-block-top-title {
    font-size: 0.875rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: #957A36;
}

.app-block-main-heading {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 1rem 0;
    color: #172541;
    font-family: 'Roboto', sans-serif;
}

.app-block-subtext {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 2rem 0;
    color: #172541;
    font-family: 'Roboto', sans-serif;
}

.app-buttons-wrapper {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.app-feature-button {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: opacity 0.3s ease, transform 0.2s ease, background-color 0.3s ease;
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
}

.app-feature-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    text-decoration: none;
}

.app-feature-button.button-primary {
    background-color: #CCA43B;
    color: #FFFFFF;
    border-color: #CCA43B;
}

.app-feature-button.button-primary:hover {
    background-color: #C8921E;
}

.app-feature-button.button-secondary {
    background-color: transparent;
    color: #CCA43B;
    border-color: #CCA43B;
    background-color: #FBF9F5;
}

.app-feature-button.button-secondary:hover {
    background-color: #F4EFE6;
}

.app-block-right {
    flex: 0 0 calc(100% - var(--left-side-percentage));
    position: relative;
    display: flex;
    align-items: stretch;
    justify-content: center;
    min-height: 500px;
}

.app-block-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

/* Image Alignment Options */
.app-image-align-center {
    align-items: center;
    justify-content: center;
}

.app-image-align-top {
    align-items: flex-start;
    justify-content: center;
}

.app-image-align-right {
    align-items: center;
    justify-content: flex-end;
}

.app-image-align-bottom {
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 0;
}

.app-image-align-left {
    align-items: center;
    justify-content: flex-start;
}

.app-right-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

/* Responsive Design */
@media screen and (max-width: 992px) {
    .app-block-container {
        flex-direction: column;
        min-height: auto;
    }

    .app-block-left {
        flex: 1;
        min-height: 400px;
    }

    .app-block-right {
        flex: 1;
        min-height: 400px;
    }
}

@media screen and (max-width: 768px) {
    .app-block-left {
        padding: 2rem 1.5rem !important;
    }

    .app-block-main-heading {
        font-size: 1.75rem;
    }

    .app-feature-button {
        width: 100%;
        text-align: center;
    }
}

/* Wide and Full Width Support */
.app-block-wrapper.alignwide,
.app-block-wrapper.alignfull {
    max-width: 100%;
}
