.wp-block-amphibee-bullet-point.alignwide {
    max-width: var(--gbg-wide-width) !important;
    margin: auto;
}

.wp-block-amphibee-bullet-point:not(.alignwide) .text-image-wrapper {
    max-width: var(--gbg-wide-width);
    margin: auto;
}

.wp-block-amphibee-bullet-point {
    margin: 0 !important;
    padding: 0 !important;
}

.wp-block-amphibee-bullet-point:not(.alignwide).wp-block {
    max-width: inherit;
}

.wp-block-amphibee-bullet-point .text-image-wrapper {
    padding: 48px 32px;
}

/* Background support */
.wp-block-amphibee-bullet-point.background-light {
    background-color: var(--gbg-color-light);
}

.wp-block-amphibee-bullet-point.background-grey {
    background-color: var(--gbg-color-grey);
}

.wp-block-amphibee-bullet-point.background-primary {
    background-color: var(--gbg-color-primary);
    color: #ffffff;
}

.wp-block-amphibee-bullet-point.background-primary .bullet-point-title, 
.wp-block-amphibee-bullet-point.background-primary .bullet-point-subtitle {
    color: #ffffff;
}

.wp-block-amphibee-bullet-point.background-secondary {
    background-color: var(--gbg-color-secondary);
    color: #ffffff;
}

.wp-block-amphibee-bullet-point.background-secondary .bullet-point-title, 
.wp-block-amphibee-bullet-point.background-secondary .bullet-point-subtitle {
    color: #ffffff;
}

.wp-block-amphibee-bullet-point.background-light-citron {
    background-color: var(--gbg-color-light-citron);
    color: #000;
}

.wp-block-amphibee-bullet-point.background-light-citron .bullet-point-title, 
.wp-block-amphibee-bullet-point.background-light-citron .bullet-point-subtitle {
    color: #000;
}

.wp-block-amphibee-bullet-point.background-dark-citron {
    background-color: var(--gbg-color-dark-citron);
    color: #ffffff;
}

.wp-block-amphibee-bullet-point.background-dark-citron .bullet-point-title, 
.wp-block-amphibee-bullet-point.background-dark-citron .bullet-point-subtitle {
    color: #ffffff;
}

/* Mobile styles (default) */
.wp-block-amphibee-bullet-point .text-image-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-size: 16px !important;
}

/* Mobile image positioning */
.wp-block-amphibee-bullet-point .text-image-wrapper.mobile-image-top {
    flex-direction: column;
}

.wp-block-amphibee-bullet-point .text-image-wrapper.mobile-image-bottom {
    flex-direction: column-reverse;
}

.wp-block-amphibee-bullet-point .text-image-wrapper.mobile-image-bottom .wp-element-button {
    margin-bottom: 16px;
}

/* Image area */
.wp-block-amphibee-bullet-point .text-image-media {
    flex: none;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wp-block-amphibee-bullet-point .text-image-media img {
    max-width: 100%;
    height: auto;
}

/* Content area */
.wp-block-amphibee-bullet-point .text-image-content {
    flex: 1;
}

/* Left side and Right side layout */
.wp-block-amphibee-bullet-point .text-image-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.wp-block-amphibee-bullet-point .left-side {
    order: 1;
}

.wp-block-amphibee-bullet-point .right-side,
.editor-styles-wrapper .wp-block-amphibee-bullet-point .right-side .block-editor-block-list__layout{
    position: relative;
    order: 2;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.wp-block-amphibee-bullet-point .right-side .wp-block-amphibee-bullet-point-item {
    margin: 0;
}

/* Animation: Initial state (hidden) */
body:not(.block-editor-page) .wp-block-amphibee-bullet-point .right-side .wp-block-amphibee-bullet-point-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Animation: Animated state (visible) */
body:not(.block-editor-page) .wp-block-amphibee-bullet-point .right-side .wp-block-amphibee-bullet-point-item.bullet-point-animate {
    opacity: 1;
    transform: translateY(0);
}

/* Disable animations in editor */
.editor-styles-wrapper .wp-block-amphibee-bullet-point .right-side .wp-block-amphibee-bullet-point-item {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

.wp-block-amphibee-bullet-point .right-side .wp-block-amphibee-bullet-point-item:not(:last-child) .bullet-point-item-wrapper::before {
    content: '';
    border: 1px dashed var(--gbg-color-primary);
    position: absolute;
    top: 28px;
    left: 28px;
    bottom: -24px;
}

section.wp-block-amphibee-bullet-point.background-primary .right-side .wp-block-amphibee-bullet-point-item:not(:last-child) .bullet-point-item-wrapper::before {
    border-color: var(--gbg-color-light-citron);
}

@media screen and (min-width: 998px) {
    .wp-block-amphibee-bullet-point .right-side .wp-block-amphibee-bullet-point-item:not(:last-child) .bullet-point-item-wrapper::before {
        top: 36px;
        left: 36px;
        bottom: -32px;
    }
}

/* Styles for left-side content */
.wp-block-amphibee-bullet-point .bullet-point-title {
    color: var(--gbg-color-primary);
    margin: 0;
    font-size: clamp(30px, 4vw, 56px) !important;
    font-size: var(--title-font-size, clamp(30px, 4vw, 56px)) !important;
    letter-spacing: 0;
    line-height: 1.2 !important;
}

.wp-block-amphibee-bullet-point .bullet-point-subtitle {
    display: block;
    color: var(--gbg-color-primary);
    font-size: clamp(18px, 4vw, 20px);
    margin: 0 0 8px 0;
}

.wp-block-amphibee-bullet-point .text-image-content .wp-block-buttons .wp-element-button{
    padding: 16px 32px !important;
    border-radius: 9999px;
    font-size: var(--gbg-font-size-xl);
    color: var(--gbg-color-primary);
    margin-top: 0;
}

@media screen and (min-width: 998px) {
    .wp-block-amphibee-bullet-point .text-image-wrapper {
        padding: 128px 0;
    }

    .wp-block-amphibee-bullet-point .bullet-point-title {
        margin-bottom: 32px;
        letter-spacing: -2px;
        line-height: 1 !important;
        max-width: 85%;
    }

    .wp-block-amphibee-bullet-point .bullet-point-subtitle {
        max-width: 85%;
        margin: 0 0 24px 0;
        line-height: 1.5;
    }

    .wp-block-amphibee-bullet-point .text-image-wrapper {
        flex-direction: row;
        align-items: center;
        gap: var(--gbg-spacing-2xl);
    }

    .wp-block-amphibee-bullet-point .text-image-media {
        flex: 0 0 50%;
        width: auto;
    }

    /* Left and Right side responsive layout */
    .wp-block-amphibee-bullet-point .text-image-content {
        flex-direction: row;
        align-items: flex-start;
        gap: 96px;
    }

    .wp-block-amphibee-bullet-point .left-side {
        flex: 0 0 45%;
        order: 1;
    }

    .wp-block-amphibee-bullet-point .right-side {
        flex: 1;
        gap: 32px;
    }
}
