/**
 * Accolade EPC Member States CSS
 * Design System Compliant: border-radius: 0, #062250, #1d82ea
 */

.accolade-epc {
    width: 100%;
    box-sizing: border-box;
}

.accolade-epc__container {
    width: 100%;
    max-width: 1340px;
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
}

/* Card Outer Box */
.accolade-epc__card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #1d82ea;
    border-radius: 0 !important;
    padding: 24px;
    box-sizing: border-box;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    overflow: hidden;
}

.accolade-epc__card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(6, 34, 80, 0.08);
}

/* Header Row Layout */
.accolade-epc__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.accolade-epc__title-group {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex: 1;
}

.accolade-epc__icon-box {
    width: 44px;
    height: 44px;
    border-radius: 0 !important;
    background-color: #e8f3fe;
    color: #1d82ea;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.accolade-epc__title-content {
    flex: 1;
}

/* Double-Dot Label */
.accolade-epc__label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: "Inter", sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    color: #1d82ea;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.accolade-epc__dots {
    position: relative;
    width: 30px;
    height: 16px;
    display: inline-block;
}

.accolade-epc__dots span {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
}

.accolade-epc__dots span:first-child {
    left: 0;
    background-color: #1d82ea;
    z-index: 1;
}

.accolade-epc__dots span:last-child {
    left: 10px;
    background-color: #0A3681;
    z-index: 2;
}

.accolade-epc__heading {
    font-family: "Outfit", sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #062250;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.accolade-epc__desc {
    font-family: "Inter", sans-serif;
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
    margin: 0;
}

/* Accordion Expand Button */
.accolade-epc__toggle-btn {
    background: none;
    border: 1px solid #cbd5e1;
    border-radius: 0 !important;
    padding: 8px 16px;
    color: #062250;
    font-family: "Inter", sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.accolade-epc__toggle-btn:hover {
    background-color: #e8f3fe;
    border-color: #1d82ea;
    color: #1d82ea;
}

.accolade-epc__toggle-btn i {
    transition: transform 0.3s ease;
}

.accolade-epc__card.is-expanded .accolade-epc__toggle-btn i {
    transform: rotate(180deg);
}

/* Accordion Body */
.accolade-epc__accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1), opacity 0.3s ease, margin-top 0.3s ease;
    opacity: 0;
    margin-top: 0;
}

.accolade-epc__card.is-expanded .accolade-epc__accordion-body {
    max-height: 1200px;
    opacity: 1;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed #cbd5e1;
    transition: max-height 0.4s ease-in-out, opacity 0.3s ease, margin-top 0.3s ease;
}

/* Search Bar Inside Accordion */
.accolade-epc__search-wrapper {
    margin-bottom: 16px;
    position: relative;
}

.accolade-epc__search-input {
    width: 100%;
    padding: 10px 16px 10px 38px;
    font-family: "Inter", sans-serif;
    font-size: 13px;
    border: 1px solid #cbd5e1;
    border-radius: 0 !important;
    outline: none;
    background-color: #ffffff;
    color: #062250;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.accolade-epc__search-input:focus {
    border-color: #1d82ea;
    box-shadow: 0 0 0 2px rgba(29, 130, 234, 0.15);
}

.accolade-epc__search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 13px;
}

/* Country Tags Cloud Grid */
.accolade-epc__country-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.accolade-epc__country-tag {
    font-family: "Inter", sans-serif;
    font-size: 13px;
    padding: 6px 12px;
    background-color: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 0 !important;
    color: #062250;
    font-weight: 500;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.accolade-epc__country-tag:hover {
    background-color: #e8f3fe;
    border-color: #1d82ea;
    color: #1d82ea;
}

.accolade-epc__country-tag.is-highlighted {
    background-color: #1d82ea;
    color: #ffffff;
    border-color: #1d82ea;
}

.accolade-epc__country-tag.is-hidden {
    display: none !important;
}

/* Mobile Responsiveness */
@media (max-width: 767px) {
    .accolade-epc__header {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .accolade-epc__toggle-btn {
        width: 100%;
        justify-content: center;
    }

    .accolade-epc__heading {
        font-size: 18px;
    }

    .accolade-epc__card {
        padding: 18px;
    }
}
