/* =============================================
   Exam Card Widget — Base Styles
   exam-card-widget.css
============================================= */

.ecw-card {
    font-family: Arial, Helvetica, sans-serif;
    border-radius: 14px;
    overflow: hidden;
    border: 2px solid #1a3a6e;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    background: #fff;
}

/* --- HEADER --- */
.ecw-header {
    background-color: #0d1b3e;
    padding: 18px 18px 16px;
    position: relative;
    overflow: hidden;
}

.ecw-badge {
    background-color: #e74c3c;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 20px;
    float: right;
    margin-left: 8px;
    line-height: 1.6;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.ecw-title {
    color: #ffffff;
    font-size: 20px;
    font-weight: 800;
    margin: 8px 0 4px;
    line-height: 1.3;
    clear: both;
}

.ecw-subtitle {
    color: #aac4e8;
    font-size: 13px;
    margin: 0;
    line-height: 1.4;
}

/* --- IMAGE --- */
.ecw-image-wrap {
    width: 100%;
    height: 150px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ecw-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ecw-image-placeholder {
    background-color: #1a3a6e;
    color: #7fa8d8;
    font-size: 13px;
}

/* --- BODY --- */
.ecw-body {
    background-color: #ffffff;
    padding: 16px;
}

/* --- FEATURES --- */
.ecw-features-wrap {
    margin-bottom: 0;
}

.ecw-features {
    list-style: none;
    padding: 0;
    margin: 0 0 14px;
}

.ecw-features li {
    font-size: 13px;
    color: #222222;
    padding: 4px 0;
    display: flex;
    gap: 8px;
    align-items: flex-start;
    line-height: 1.5;
}

.ecw-features li::before {
    content: "●";
    color: #e74c3c;
    font-size: 9px;
    margin-top: 4px;
    flex-shrink: 0;
}

/* --- STATS --- */
.ecw-stats {
    display: flex;
    border-top: 1px solid #dddddd;
    border-bottom: 1px solid #dddddd;
    padding: 10px 0;
    margin-bottom: 14px;
    background-color: #f8f8f8;
}

.ecw-stat {
    flex: 1;
    text-align: center;
}

.ecw-stat:last-child {
    border-left: 1px solid #dddddd;
}

.ecw-stat-num {
    font-size: 16px;
    font-weight: 800;
    color: #111111;
    line-height: 1.3;
}

.ecw-stat-label {
    font-size: 10px;
    color: #888888;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-top: 2px;
}

/* --- PRICING --- */
.ecw-pricing {
    text-align: center;
    margin-bottom: 14px;
}

.ecw-price-top {
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.ecw-orig-price {
    text-decoration: line-through;
    color: #999999;
    font-size: 14px;
}

.ecw-discount {
    background-color: #e74c3c;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.3px;
}

.ecw-price-main {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
    margin: 4px 0;
}

.ecw-price-label {
    font-size: 15px;
    font-weight: 700;
    color: #111111;
}

.ecw-sale-price {
    font-size: 28px;
    font-weight: 900;
    color: #e74c3c;
    line-height: 1;
}

.ecw-price-note {
    font-size: 12px;
    color: #777777;
    margin: 2px 0 6px;
}

.ecw-save-wrap {
    margin: 6px 0 0;
}

.ecw-save {
    display: inline-block;
    background-color: #27ae60;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 20px;
}

/* --- BUTTON --- */
.ecw-btn {
    display: block;
    width: 100%;
    background-color: #0d1b3e;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
    transition: background-color 0.2s ease, transform 0.15s ease;
    line-height: 1.4;
}

.ecw-btn:hover {
    background-color: #1a2f5e;
    color: #ffffff;
    text-decoration: none;
}

.ecw-btn:active {
    transform: scale(0.98);
}

/* --- FOOTER NOTE --- */
.ecw-footer-note {
    text-align: center;
    font-size: 11px;
    color: #999999;
    margin: 10px 0 0;
    line-height: 1.4;
}

/* =============================================
   HOVER EFFECTS
============================================= */

/* Lift Up */
.ecw-hover-lift:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.15);
}

/* Scale Up */
.ecw-hover-scale:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* Glow Border */
.ecw-hover-glow:hover {
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.35), 0 8px 24px rgba(0,0,0,0.12);
}

/* =============================================
   ELEMENTOR EDITOR — Widget Icon Category
============================================= */
.elementor-element .elementor-widget-exam_card_widget .eicon-price-list:before {
    font-size: 20px;
}
