/* ═══════════════════════════════════════════
   FL Page Builder – Frontend Blocks CSS
   ═══════════════════════════════════════════ */

.fpb-content {
    margin: 0;
    padding: 0;
}

/* ── Section / Row / Column Structure ── */
.fpb-section {
    box-sizing: border-box;
}

.fpb-section-inner {
    box-sizing: border-box;
}

.fpb-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
    box-sizing: border-box;
}

.fpb-column {
    box-sizing: border-box;
    padding: 0 15px;
}

/* ── Button Block ── */
.fpb-button-block {
    margin: 14px 0;
}

.fpb-btn {
    display: inline-block;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: opacity .2s, transform .15s;
    cursor: pointer;
    line-height: 1.5;
}

.fpb-btn:hover {
    opacity: .88;
    transform: translateY(-1px);
}

.fpb-btn-primary {
    background: #e30613;
    color: #fff;
    border: none;
}

.fpb-btn-secondary {
    background: #333;
    color: #fff;
    border: none;
}

.fpb-btn-outline {
    background: transparent;
    color: #333;
    border: 2px solid #333;
}

/* ── Divider ── */
.fpb-divider {
    margin: 16px 0;
}

/* ── Gap ── */
.fpb-gap {
    display: block;
}

/* ── Heading Block ── */
.fpb-heading-block {
    margin: 28px 0 18px;
}

.fpb-heading {
    font-weight: 900;
    color: #111;
    line-height: 1.25;
    letter-spacing: -.3px;
}

h2.fpb-heading {
    font-size: 22px;
}

h3.fpb-heading {
    font-size: 18px;
}

h4.fpb-heading {
    font-size: 15px;
}

.fpb-heading-line {
    width: 48px;
    height: 3px;
    background: #e30613;
    border-radius: 2px;
    margin-top: 8px;
}

/* ── Rich Text Block ── */
.fpb-richtext-block {
    margin: 16px 0;
    font-size: 14px;
    line-height: 1.75;
    color: #333;
}

.fpb-richtext-block p {
    margin-bottom: 12px;
}

.fpb-richtext-block img {
    max-width: 100%;
    border-radius: 10px;
}

.fpb-richtext-block ul,
.fpb-richtext-block ol {
    padding-left: 22px;
    margin-bottom: 12px;
}

.fpb-richtext-block li {
    margin-bottom: 4px;
}

/* ── Image Box Block ── */
.fpb-imagebox-block {
    margin: 18px auto;
    text-align: center;
}

.fpb-imagebox-img {
    width: 100%;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .08);
}

.fpb-imagebox-caption {
    font-size: 12px;
    color: #999;
    margin-top: 8px;
    font-style: italic;
}

/* ── Grid (Table) Block ── */
.fpb-grid-block {
    margin: 18px 0;
    overflow-x: auto;
}

.fpb-grid-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eee;
}

.fpb-grid-table thead th {
    background: #e30613;
    color: #fff;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

.fpb-grid-table thead th:first-child {
    text-align: left;
}

.fpb-grid-table tbody tr:nth-child(even) {
    background: #fafafa;
}

.fpb-grid-table tbody tr:hover {
    background: #fff5f5;
}

.fpb-grid-table tbody td {
    padding: 11px 16px;
    font-size: 13px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.fpb-grid-table tbody td:not(:first-child) {
    text-align: center;
    color: #555;
}

.fpb-grid-label {
    font-weight: 600;
    color: #1a1a1a !important;
}

/* ── Video Block ── */
.fpb-video-block {
    margin: 18px 0;
}

.fpb-video-wrap {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .1);
}

.fpb-video-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 14px;
}

.fpb-video-native {
    width: 100%;
    border-radius: 14px;
}

.fpb-video-caption {
    font-size: 12px;
    color: #999;
    margin-top: 8px;
    text-align: center;
    font-style: italic;
}

/* ── Image Box Text ── */
.fpb-imagebox-text {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.65;
    color: #444;
}

/* ── Slider Block ── */
.fpb-slider-block {
    margin: 18px 0;
    position: relative;
}

.fpb-slider-track {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
}

.fpb-slider-slide {
    display: none;
    animation: fpbFadeIn .5s ease;
}

.fpb-slider-slide.active {
    display: block;
}

.fpb-slider-slide img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 14px;
}

.fpb-slider-caption {
    font-size: 12px;
    color: #999;
    margin-top: 6px;
    text-align: center;
    font-style: italic;
}

.fpb-slider-dots {
    text-align: center;
    padding: 10px 0;
}

.fpb-slider-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    margin: 0 4px;
    cursor: pointer;
    transition: background .2s;
}

.fpb-slider-dot.active {
    background: #e30613;
}

@keyframes fpbFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ── IconBox Block ── */
.fpb-iconbox-block {
    display: grid;
    gap: 14px;
    margin: 18px 0;
}

.fpb-iconbox-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.fpb-iconbox-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.fpb-iconbox-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.fpb-iconbox-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #f8f8fa;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 16px;
    transition: border-color .18s, box-shadow .18s, transform .18s;
}

.fpb-iconbox-card:hover {
    border-color: #e30613;
    box-shadow: 0 4px 18px rgba(227, 6, 19, .08);
    transform: translateY(-2px);
}

.fpb-iconbox-icon {
    font-size: 24px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fff0f0, #fff);
    border: 1px solid #fce7e7;
    border-radius: 10px;
    flex-shrink: 0;
}

.fpb-iconbox-title {
    font-size: 13px;
    font-weight: 800;
    color: #e30613;
    text-transform: uppercase;
    letter-spacing: .3px;
    margin-bottom: 3px;
}

.fpb-iconbox-desc {
    font-size: 12.5px;
    color: #666;
    line-height: 1.55;
}

/* ── Responsive ── */
@media (max-width: 768px) {

    .fpb-row {
        flex-direction: column;
    }

    .fpb-column {
        width: 100% !important;
    }

    .fpb-iconbox-cols-3,
    .fpb-iconbox-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    h2.fpb-heading {
        font-size: 19px;
    }
}

@media (max-width: 480px) {
    .fpb-iconbox-block {
        grid-template-columns: 1fr !important;
    }

    .fpb-grid-table {
        font-size: 12px;
    }

    .fpb-grid-table thead th,
    .fpb-grid-table tbody td {
        padding: 8px 10px;
    }
}