/* ==========================================
   BLENTREE ABOUT SECTION
   ========================================== */

.bln-about-section {
    position: relative;
    overflow: hidden;
    background-color: #FFFFFF;
    width: 100%;
    box-sizing: border-box;
}

.bln-about-section * { box-sizing: border-box; }

.bln-about-section.bln-about-fullwidth {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

/* ===========================================
   WAVE BACKGROUND (e.g. "Our Story")
   =========================================== */
/* Allow top wave to rise above the section */
.bln-about-section.bln-about-haswaves {
    overflow: visible;
}

.bln-about-wave-top,
.bln-about-wave-bottom {
    position: absolute;
    left: 0;
    width: 100%;
    height: 80px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
    z-index: 1;
    pointer-events: none;
    display: block;
}

/* Top wave overhangs ABOVE the section (rises into section above) */
.bln-about-wave-top {
    top: 0;
    transform: translateY(-99%);
}

/* Bottom wave sits at the bottom edge */
.bln-about-wave-bottom {
    bottom: 0;
}
/* Note: Section Padding control (default 100px top/bottom) already
   clears the 80px waves — adjust it per-instance in the editor. */

/* Background Decorations */
.bln-decor-topright {
    position: absolute;
    top: 0;
    right: 0;
    pointer-events: none;
    z-index: 1;
    width: 300px;
    height: auto;
    opacity: 0.3;
    user-select: none;
}

.bln-decor-bottomleft {
    position: absolute;
    bottom: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
    width: 300px;
    height: auto;
    opacity: 0.3;
    user-select: none;
}

/* Inner wrapper */
.bln-about-inner {
    position: relative;
    z-index: 2;
    padding: 100px 40px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* Grid layout */
.bln-about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}

.bln-about-section.bln-about-image-right .bln-about-grid {
    grid-template-columns: 1fr 1fr;
}

.bln-about-section.bln-about-image-right .bln-about-image {
    order: 2;
}

.bln-about-section.bln-about-image-right .bln-about-content {
    order: 1;
}

/* Image */
.bln-about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.bln-about-image img {
    width: 100%;
    max-width: 600px;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Content */
.bln-about-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
}

/* Eyebrow */
.bln-about-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(12px, 0.9vw, 14px);
    font-weight: 700;
    color: #1A1A1A;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
}

.bln-about-eyebrow::after {
    content: '';
    display: block;
    width: 50px;
    height: 1px;
    background: currentColor;
}

/* Heading */
.bln-about-heading {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(24px, 2.8vw, 40px);
    font-weight: 800;
    color: #F5A623;
    line-height: 1.2;
    margin: 0;
}

/* Body */
.bln-about-body {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(14px, 1vw, 16px);
    color: #1A1A1A;
    line-height: 1.7;
}

.bln-about-body p {
    margin: 0 0 16px;
}

.bln-about-body p:last-child {
    margin-bottom: 0;
}

.bln-about-body strong {
    font-weight: 700;
    color: inherit;
}

/* Button */
.bln-about-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    background-color: #F5A623;
    color: #FFFFFF;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.bln-about-button:hover {
    background-color: #E59410;
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 166, 35, 0.3);
}

/* ===========================================
   RESPONSIVE
   =========================================== */
/* Mobile + Tablet: stack to 1 column, IMAGE ALWAYS ON TOP, then content.
   Breakpoint 1024px so tablets stack too. Alignment is handled by the
   "Content Text Alignment" control (tablet/mobile default = center). */
@media (max-width: 1024px) {
    /* high-specificity selectors so this beats the desktop
       .bln-about-image-right .bln-about-grid { 1fr 1fr } rule */
    .bln-about-grid,
    .bln-about-section.bln-about-image-left  .bln-about-grid,
    .bln-about-section.bln-about-image-right .bln-about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* image first, content second — override both left/right desktop orders */
    .bln-about-section.bln-about-image-left  .bln-about-image,
    .bln-about-section.bln-about-image-right .bln-about-image {
        order: -1;
    }
    .bln-about-section.bln-about-image-left  .bln-about-content,
    .bln-about-section.bln-about-image-right .bln-about-content {
        order: 1;
    }

    /* keep image from stretching too tall on stacked view */
    .bln-about-image img {
        margin-left: auto;
        margin-right: auto;
    }

    .bln-decor-topright,
    .bln-decor-bottomleft {
        opacity: 0.15;
        width: 200px;
    }
}

@media (max-width: 768px) {
    .bln-about-inner {
        padding: 80px 24px;
    }

    .bln-decor-topright,
    .bln-decor-bottomleft {
        width: 150px;
        opacity: 0.1;
    }
}

@media (max-width: 480px) {
    .bln-about-inner {
        padding: 60px 16px;
    }

    .bln-about-grid {
        gap: 24px;
    }

    .bln-about-button {
        padding: 14px 24px;
        font-size: 13px;
    }
}
