/* ============================================
   BV Quick Links Widget
   Version: 1.0.0
   ============================================ */

/* ── Wrapper ── */
.bv-ql-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* ── Row ── */
.bv-ql-row {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 40px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.bv-ql-row--img-right {
    flex-direction: row;
}

.bv-ql-row--img-left {
    flex-direction: row-reverse;
}

/* ── Content Column ── */
.bv-ql-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    min-width: 0; /* prevent flex overflow */
}

/* ── Title ── */
.bv-ql-title {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.3;
    color: #1a3a4a;
    margin: 0 0 16px 0;
    padding: 0;
}

/* ── Links List ── */
.bv-ql-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 420px;
}

/* ── Button ── */
.bv-ql-btn {
    display: block;
    width: 100%;
    padding: 14px 24px;
    background-color: #f5ead6;
    color: #1a3a4a;
    text-align: center;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.4;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 300ms ease;
}

.bv-ql-btn:hover,
.bv-ql-btn:focus {
    background-color: #e8d9be;
    color: #1a3a4a;
    text-decoration: none;
}

/* ── Image Column ── */
.bv-ql-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0; /* prevent flex overflow */
}

.bv-ql-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    transition: all 300ms ease;
}

/* ── Tablet (max 1024px) ── */
@media (max-width: 1024px) {
    .bv-ql-row {
        padding: 30px;
        gap: 30px;
    }

    .bv-ql-title {
        font-size: 1.5rem;
    }

    .bv-ql-image img {
        height: 280px;
    }

    .bv-ql-btn {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
}

/* ── Mobile (max 767px) ── */
@media (max-width: 767px) {
    .bv-ql-row {
        flex-direction: column !important;
        padding: 24px;
        gap: 20px;
    }

    /* Default: image on top */
    .bv-ql-image {
        order: -1;
        width: 100%;
    }

    /* Modifier: image below content */
    .bv-ql--mob-img-bottom .bv-ql-image {
        order: 1;
    }

    /* Modifier: hide image on mobile */
    .bv-ql--mob-img-hidden .bv-ql-image {
        display: none;
    }

    .bv-ql-content {
        align-items: center;
        text-align: center;
        width: 100%;
    }

    .bv-ql-links {
        max-width: 100%;
        align-items: stretch;
    }

    .bv-ql-title {
        font-size: 1.35rem;
    }

    .bv-ql-image img {
        height: 220px;
        border-radius: 10px;
    }

    .bv-ql-btn {
        padding: 12px 18px;
        font-size: 0.9rem;
    }
}

/* ── Small Mobile (max 480px) ── */
@media (max-width: 480px) {
    .bv-ql-row {
        padding: 18px;
        gap: 16px;
        border-radius: 10px;
    }

    .bv-ql-title {
        font-size: 1.2rem;
    }

    .bv-ql-image img {
        height: 180px;
        border-radius: 8px;
    }

    .bv-ql-btn {
        padding: 11px 16px;
        font-size: 0.875rem;
        border-radius: 6px;
    }
}
