/* ==========================================================================
   1. BASE STYLES & MOBILE DEFAULT (Viewport < 568px)
   ========================================================================== */
.section-bg-icon-container {
    position: relative;
    width: 100%;
    min-height: auto;
    margin: 10px auto;
    padding: 10px 20px;
    box-sizing: border-box;
    display: block;
}

.section-bg-icon-content {
    max-width: 100%;
    text-align: center;
    z-index: 2;
    padding: 0;
    margin: 0 auto 40px;
}

.section-bg-icon-title {
    color: #0c3c86;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.section-bg-icon-title::before {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    background-color: #ff0000;
    border-radius: 3px;
}

.section-bg-icon-body p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* ==========================================================================
   Floating Icon
   ========================================================================== */

.bg-icon-item {
    position: static;
    display: none;
    width: 95px;
    height: auto;
    transition: transform .4s ease, filter .3s ease;
}

.bg-icon-item img,
.cms-animated-preview {
    max-width: 95px;
    height: 95px;
    object-fit: contain;
    display: block;
}

.bg-icon-item:hover {
    transform: scale(1.1) translateY(-10px);
    filter: drop-shadow(0 10px 15px rgba(12, 60, 134, 0.2));
}

.icon-pos-0 { top:10%; left:20%; animation:floatAnimation 6s ease-in-out infinite; }
.icon-pos-1 { top:22%; left:5%; animation:floatAnimation 7s ease-in-out infinite 1s; }
.icon-pos-2 { bottom:30%; left:14%; animation:floatAnimation 5.5s ease-in-out infinite .5s; }
.icon-pos-3 { bottom:5%; left:6%; animation:floatAnimation 6.5s ease-in-out infinite 1.5s; }
.icon-pos-4 { top:10%; right:22%; animation:floatAnimation 5.8s ease-in-out infinite .2s; }
.icon-pos-5 { top:40%; right:6%; animation:floatAnimation 6.8s ease-in-out infinite 1.2s; }
.icon-pos-6 { bottom:5%; right:18%; animation:floatAnimation 6.2s ease-in-out infinite .7s; }

@keyframes floatAnimation {
    0% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0); }
}

/* ==========================================================================
   CMS Editor
   ========================================================================== */

.cms-icon-wrapper {
    position: relative;
    width: 95px;
    height: 125px;
}

.cms-action-overlay {
    position: absolute;
    bottom: -25px;
    left: 0;
    width: 100%;
    display: flex;
    gap: 2px;
    justify-content: center;
    z-index: 9999;
}

.cms-btn {
    flex: 1;
    font-size: 9px;
    font-weight: bold;
    padding: 3px 0;
    border: 1px solid #ccc;
    background: #fff;
    border-radius: 3px;
    cursor: pointer;
    text-align: center;
    color: #333;
}

.cms-btn-remove {
    color: #b32d2e;
    border-color: #b32d2e;
}

.cms-btn:hover {
    background: #f0f0f1;
}

.cms-upload-placeholder {
    width: 95px;
    padding: 5px;
    font-size: 10px;
    text-align: center;
}

.section-bg-icon-editor {
    width: 100%;
}

.section-bg-icon-editor-content {
    margin-bottom: 40px;
}

.section-bg-icon-editor-icons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.cms-bg-icon-item {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}
/* ==========================================================================
   2. BREAKPOINT SM (Viewport >= 568px)
   ========================================================================== */

@media (min-width: 568px) {

    .section-bg-icon-container {
        padding: 50px 20px;
    }

    .section-bg-icon-content {
        max-width: 540px;
        margin: 0 auto 40px;
    }

    .bg-icon-item {
        display: none;
    }

    /* CMS */
    .section-bg-icon-editor-icons {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 24px;
    }

    .cms-bg-icon-item {
        display: flex;
        justify-content: center;
        align-items: flex-start;
    }

    .cms-icon-wrapper {
        width: 95px;
        height: 125px;
    }

}
/* ==========================================================================
   3. BREAKPOINT MD (Viewport >= 768px)
   ========================================================================== */

@media (min-width: 768px) {

    .section-bg-icon-container {
        padding: 60px 20px;
    }

    .section-bg-icon-content {
        max-width: 600px;
        margin: 0 auto 40px;
        padding: 0 40px;
    }

    .bg-icon-item {
        display: none;
    }

    /* CMS Editor */
    .section-bg-icon-editor {
        width: 100%;
    }

    .section-bg-icon-editor-content {
        margin-bottom: 40px;
    }

    .section-bg-icon-editor-icons {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 24px;
    }

    .cms-bg-icon-item {
        display: flex;
        justify-content: center;
        align-items: flex-start;
    }

    .cms-icon-wrapper {
        width: 95px;
        height: 125px;
    }

}
/* ==========================================================================
   4. BREAKPOINT LG (Viewport >= 1024px)
   ========================================================================== */

@media (min-width: 1024px) {

    /* Container */
    .section-bg-icon-container {
        position: relative;
        width: 100%;
        min-height: 550px;
        margin: 40px auto;
        padding: 60px 20px;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Content */
    .section-bg-icon-content {
        max-width: 600px;
        padding: 0 40px;
        margin: 0;
        text-align: center;
        z-index: 2;
    }

    /* Floating Icon */
    .bg-icon-item {
        display: block;
        position: absolute;
        z-index: 1;
        width: 95px;
        height: auto;
    }

    .bg-icon-item img,
    .cms-animated-preview {
        max-width: 95px;
        height: 95px;
        object-fit: contain;
        display: block;
    }

    .icon-pos-0 {
        top: 10%;
        left: 20%;
    }

    .icon-pos-1 {
        top: 22%;
        left: 5%;
    }

    .icon-pos-2 {
        bottom: 30%;
        left: 14%;
    }

    .icon-pos-3 {
        bottom: 5%;
        left: 6%;
    }

    .icon-pos-4 {
        top: 10%;
        right: 22%;
    }

    .icon-pos-5 {
        top: 40%;
        right: 6%;
    }

    .icon-pos-6 {
        bottom: 5%;
        right: 18%;
    }

    /* CMS */
    .section-bg-icon-editor-icons {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 24px;
    }

}