/* ===================================================
   QA Promo Card Widget — Frontend Styles
   Plugin: qa-promo-card-widget v1.0.0
   =================================================== */

/* --- Base Card --- */
.qa-promo-card {
    position: relative;
    overflow: hidden;
    background-color: #ffffff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.qa-promo-card:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* --- Badge --- */
.qa-promo-card__badge {
    display: inline-block;
    position: absolute;
    top: 14px;
    right: 14px;
    background-color: #185FA5;
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    padding: 3px 10px;
    border-radius: 4px;
    line-height: 1.5;
    text-transform: uppercase;
}

/* --- Ribbon --- */
.qa-promo-card__ribbon {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 60px 60px 0 0;
    border-color: #E24B4A transparent transparent transparent;
}

.qa-promo-card__ribbon span {
    position: absolute;
    top: -52px;
    left: 4px;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    transform: rotate(-45deg);
    display: block;
    width: 40px;
    text-align: center;
}

/* --- Title --- */
/*
 * CATATAN UNTUK QA:
 * Class ini adalah `.qa-promo-card__title` (satu 'e').
 * Selector pada control Elementor menggunakan `.qa-promo-card__titlee` (dua 'e')
 * sehingga style font-size dari panel tidak pernah diterapkan ke elemen ini.
 */
.qa-promo-card__title {
    margin: 0;
    font-size: 24px;         /* nilai default — tidak berubah walaupun slider digeser */
    font-weight: 600;
    line-height: 1.3;
    color: #1a1a1a;
    word-break: break-word;
}

/* --- Description --- */
.qa-promo-card__description {
    margin: 0;
    font-size: 15px;
    line-height: 1.65;
    color: #555555;
    word-break: break-word;
}

.qa-promo-card__description p {
    margin: 0 0 8px;
}

.qa-promo-card__description p:last-child {
    margin-bottom: 0;
}

/* --- Button Wrap --- */
.qa-promo-card__button-wrap {
    margin-top: 6px;
}

/* --- Button --- */
.qa-promo-card__button {
    display: inline-block;
    background-color: #185FA5;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    padding: 10px 22px;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.2s ease, opacity 0.2s ease;
    border: none;
    cursor: pointer;
}

.qa-promo-card__button:hover {
    opacity: 0.88;
    color: #ffffff;
    text-decoration: none;
}

.qa-promo-card__button:focus {
    outline: 2px solid #185FA5;
    outline-offset: 3px;
}

/* ===================================================
   Entrance Animations
   =================================================== */

/* Fade In */
.qa-promo-card--anim-fadeIn {
    animation: qa-fadeIn 0.6s ease both;
}

@keyframes qa-fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Slide Up */
.qa-promo-card--anim-slideUp {
    animation: qa-slideUp 0.55s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

@keyframes qa-slideUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Zoom In */
.qa-promo-card--anim-zoomIn {
    animation: qa-zoomIn 0.5s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

@keyframes qa-zoomIn {
    from { opacity: 0; transform: scale(0.88); }
    to   { opacity: 1; transform: scale(1); }
}

/* ===================================================
   Responsive
   =================================================== */
@media (max-width: 767px) {
    .qa-promo-card {
        padding: 18px;
    }

    .qa-promo-card__title {
        font-size: 20px;
    }

    .qa-promo-card__description {
        font-size: 14px;
    }
}
