/* East Africa Flags Section Styling */

.ea_flags_section {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.ea_flags_header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.ea_flags_header span:first-child {
    font-size: 20px;
}

.ea_flags_title {
    font-size: 13px;
    letter-spacing: 2px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    text-transform: uppercase;
}

.ea_flags_grid {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.ea_flag_item {
    cursor: pointer;
    display: inline-block;
    position: relative;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.4);
}

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

.ea_flag_item:hover {
    transform: scale(1.12) translateY(-4px);
    border-color: rgba(255, 255, 255, 1);
    box-shadow: 0 6px 20px rgba(255, 140, 0, 0.5);
}

/* Flag Bounce Animation */
@keyframes flagBounce {
    0% {
        opacity: 0;
        transform: translateY(12px) scale(0.85);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.ea_flag_item[data-country="Kenya"] {
    animation: flagBounce 0.5s ease-out 0.1s both;
}

.ea_flag_item[data-country="Uganda"] {
    animation: flagBounce 0.5s ease-out 0.12s both;
}

.ea_flag_item[data-country="Tanzania"] {
    animation: flagBounce 0.5s ease-out 0.14s both;
}

.ea_flag_item[data-country="Rwanda"] {
    animation: flagBounce 0.5s ease-out 0.16s both;
}

.ea_flag_item[data-country="Burundi"] {
    animation: flagBounce 0.5s ease-out 0.18s both;
}

.ea_flag_item[data-country="DRC"] {
    animation: flagBounce 0.5s ease-out 0.2s both;
}

.ea_flag_item[data-country="Somalia"] {
    animation: flagBounce 0.5s ease-out 0.22s both;
}

.ea_flag_item[data-country="Sudan"] {
    animation: flagBounce 0.5s ease-out 0.24s both;
}
