/* --- IELTS EXAM EVENT shortcode styles --- */

.iee-wrap {
    max-width: 800px;
    margin: 30px auto;
    font-family: inherit;
    color: #333;
    line-height: 1.5;
}

/* HEADER */
.iee-header {
    margin-bottom: 20px;
}

.iee-date {
    color: #555;
    font-size: 15px;
    margin-bottom: 8px;
}

.iee-header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.iee-tz {
    color: #888;
    font-size: 13px;
    margin-left: 4px;
}

.iee-countdown {
    padding: 8px 12px;
    background-color: whitesmoke;
    border: 1px solid lightgray;
    border-radius: 5px;
    color: #333;
    font-size: 14px;
}

.iee-countdown-value {
    color: rgb(224, 0, 0);
    font-variant-numeric: tabular-nums;
    font-weight: bold;
}

/* PER-CATEGORY SECTION */
.iee-section {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid lightgray;
}

.iee-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.iee-section-heading {
    margin: 0 0 14px;
    font-size: 28px;
    font-weight: bold;
    color: #1a1a1a;
    line-height: 1.3;
}

/* TEST-TYPE SUB-TABS */
.iee-type-tabs {
    display: flex;
    gap: 6px;
    margin: 0 0 14px;
    flex-wrap: wrap;
}

.iee-type-tab {
    display: inline-block;
    padding: 6px 12px;
    background-color: whitesmoke;
    border: 1px solid #bbb;
    border-radius: 5px;
    color: #333 !important;
    text-decoration: none !important;
    font-size: 14px;
    line-height: 1;
}

.iee-type-tab:hover {
    background-color: rgb(232, 232, 232);
    border-color: #888;
}

.iee-type-tab.active {
    font-weight: bold;
    background-color: #333;
    border-color: #333;
    color: #fff !important;
}

/* CARD */
.iee-card {
    background-color: white;
    border: 1px solid lightgray;
    border-top: 3px solid rgb(224, 0, 0);
    border-radius: 5px;
    padding: 22px 24px;
    line-height: 1.6;
}

.iee-card-empty {
    text-align: center;
    color: #555;
    font-style: italic;
    padding: 18px 20px;
    border-top: 1px solid lightgray;
}

.iee-test-title {
    margin: 0 0 14px;
    font-size: 22px;
    font-weight: bold;
    color: #1a1a1a;
}

/* TYPE BADGE (used in recent attempts list) */
.iee-type {
    display: inline-block;
    padding: 2px 8px;
    border: 1px solid lightgray;
    border-radius: 3px;
    font-size: 12px;
    line-height: 1.2;
    background-color: white;
    color: #333;
}

.iee-type-reading {
    background-color: #e8f4fd;
    border-color: #90caf9;
    color: #1565c0;
}

.iee-type-listening {
    background-color: #eaf5ea;
    border-color: #a5d6a7;
    color: #2e7d32;
}

/* MESSAGES + ACTIONS */
.iee-message {
    color: #444;
    line-height: 1.6;
    margin: 0 0 14px;
}

.iee-actions {
    margin: 16px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.iee-btn {
    display: inline-block;
    padding: 10px 18px;
    border: 1px solid #bbb;
    border-radius: 5px;
    font-size: 15px;
    line-height: 1.4;
    text-decoration: none !important;
    cursor: pointer;
    background-color: whitesmoke;
    color: #333 !important;
}

.iee-btn:hover {
    background-color: rgb(232, 232, 232);
    border-color: #888;
}

.iee-btn-primary {
    background-color: rgb(224, 0, 0);
    border-color: rgb(224, 0, 0);
    color: #fff !important;
    font-weight: bold;
    padding: 11px 22px;
}

.iee-btn-primary:hover {
    background-color: rgb(180, 0, 0);
    border-color: rgb(180, 0, 0);
}

/* Solid accent button — secondary CTA that still draws the eye. */
.iee-btn-accent {
    background-color: rgb(224, 0, 0);
    color: #fff !important;
    border-color: rgb(224, 0, 0);
    font-weight: bold;
}

.iee-btn-accent:hover {
    background-color: rgb(180, 0, 0);
    border-color: rgb(180, 0, 0);
}

.iee-btn-small {
    padding: 5px 10px;
    font-size: 13px;
}

/* Header CTA buttons — sized to match the countdown bubble next to them */
.iee-header-actions .iee-btn {
    padding: 8px 12px;
    font-size: 14px;
    line-height: 1.5;
}

/* RESULT STATS GRID */
.iee-result-msg {
    color: #2e7d32;
    font-weight: bold;
    margin: 0 0 14px;
    font-size: 16px;
}

.iee-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.iee-stat {
    background-color: whitesmoke;
    border: 1px solid lightgray;
    border-radius: 5px;
    padding: 14px 12px;
    text-align: center;
}

.iee-stat-label {
    display: block;
    font-size: 12px;
    color: #555;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.iee-stat-value {
    display: block;
    font-size: 22px;
    font-weight: bold;
    color: rgb(224, 0, 0);
    line-height: 1.2;
}

.iee-stat-value small {
    color: #666;
    font-size: 13px;
    font-weight: normal;
}

/* RECENT ATTEMPTS LIST */
.iee-recent {
    margin-top: 24px;
}

.iee-recent-heading {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.iee-recent-list {
    list-style: none !important;
    padding: 0;
    margin: 0;
}

.iee-recent-item {
    display: grid;
    grid-template-columns: minmax(160px, auto) 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
    background-color: white;
    border: 1px solid lightgray;
    border-radius: 5px;
    margin-bottom: 6px;
}

.iee-recent-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.iee-recent-date {
    font-weight: bold;
    color: #333;
    font-size: 14px;
}

.iee-recent-status {
    font-size: 14px;
    color: #444;
}

.iee-recent-score {
    margin-right: 10px;
}

.iee-recent-score strong {
    color: rgb(224, 0, 0);
    font-size: 16px;
}

.iee-recent-detail {
    color: #666;
    font-size: 12px;
}

.iee-recent-missed-label {
    color: #888;
    font-style: italic;
}

.iee-recent-took {
    background-color: #fafffb;
}

.iee-recent-note {
    margin-top: 10px;
    color: #333;
    font-size: 14px;
    line-height: 1.5;
    font-style: italic;
    text-align: center;
}

/* MOBILE */
@media screen and (max-width: 600px) {
    .iee-recent-item {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .iee-recent-status {
        font-size: 13px;
    }
}
