
[x-cloak] {
    display: none !important;
}

.academy-elementor-widget {
    max-width: 48rem;

    .notice {
        background-color: #FFD8A8;
        border-radius: 4px;
        padding: 12px;
        margin-bottom: 16px;
        font-size: .875rem;
        color: #31230f;
    }

    .error {
        background-color: #FEEAEA;
        border-radius: 4px;
        padding: 12px;
        margin-bottom: 16px;
        font-size: .875rem;
        color: #5F2120;
    }

    .success {
        background-color: #E1FAEA;
        border-radius: 4px;
        padding: 12px;
        margin-bottom: 16px;
        font-size: .875rem;
        color: #14532d;
    }

    .academy-details-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 15px;
        border-bottom: 2px solid var( --e-global-color-primary );
        padding: 12px 0;

        .title {
            font-size: .875rem;
            font-weight: 500;
            color: var( --e-global-color-primary );
            text-transform: uppercase;
        }

        .actions {
            display: flex;
            gap: 4px;

            button {
                background: transparent;
                color: var( --e-global-color-accent );
                border: none;
                font-size: .875rem;
                cursor: pointer;
                text-transform: uppercase;

                svg {
                    width: 16px;
                    height: 16px;
                }
            }

            .edit-details, .close-details, .save-details {
                background-color: #EAEDF4;
                color: #5F6688;
                display: flex;
                align-items: center;
                gap: 8px;
                height: 24px;
                padding: 0 8px;
                font-size: .75rem;
                font-weight: 600;

                svg {
                    fill: currentColor;
                }
            }

            .close-details:hover {
                background-color: #FEEAEA;
                color: #D03838;

                svg {
                    fill: currentColor;
                }
            }

            .save-details:hover {
                background-color: #e1faea;
                color: #14d755;
            }
        }
    }

    .academy-details-content {
        .academy-details {
            display: grid;
            grid-template-columns: repeat( 12, minmax( 0, 1fr ) );
            gap: 12px;

            .academy-detail {

                .label {
                    font-size: .75rem;
                    font-weight: 600;
                    color: var( --e-global-color-primary );
                    padding: 2px 0 2px 12px;
                }

                .value {
                    background-color: #EAEDF4;
                    border: 1px solid #EAEDF4;
                    border-radius: 4px;
                    min-height: 2.5rem;
                    display: flex;
                    align-items: center;
                    padding: 0 12px;
                    font-size: .875rem;
                }

                input.value,
                select.value {
                    background-color: #FFFFFF;
                    border: 1px solid #69707e;
                    border-radius: 4px;
                    min-height: 2.5rem;
                    padding: 0 12px;
                    font-size: .875rem;
                    width: 100%;
                }
            }
        }
    }
}

/* ——— Academies Map Widget ——— */

.academies-map-widget {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    max-width: 64rem;
}

.academies-map-placeholder {
    flex-shrink: 0;
    margin-bottom: 2rem;
    width: 65%;

    svg {
        width: 100%;
        height: auto;
        border-radius: 8px;
        margin-top: 1rem;
        
        path {
            cursor: pointer;
            fill: #fff;
            stroke: #0f172a;
            stroke-width: 1;
            transition-duration: .3s;
            transition-property: color,background-color,border-color,text-decoration-color,fill,stroke;
            transition-timing-function: cubic-bezier(.4,0,.2,1);
        }
    }
}

.academies-contacts-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;

    select {
        appearance: none;
        width: 100%;
        padding: .625rem 2.5rem .625rem 1rem;
        font-size: 1rem;
        font-family: inherit;
        color: var( --e-global-color-primary, #1a1a2e );
        background-color: #fff;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23EA672D' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right .75rem center;
        border: 2px solid #e2e8f0;
        border-radius: 8px;
        cursor: pointer;
        transition: border-color .2s, box-shadow .2s;

        &:hover {
            border-color: #EA672D;
        }

        &:focus {
            outline: none;
            border-color: #EA672D;
            box-shadow: 0 0 0 3px rgba( 234, 103, 45, .15 );
        }
    }
}

.academies-contacts-group-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var( --e-global-color-primary, #333 );
    border-bottom: 2px solid var( --e-global-color-primary, #333 );
    padding-bottom: .5rem;
    margin-bottom: 1rem;
}

.academies-contacts-group-items {
    display: grid;
    grid-template-columns: repeat( auto-fill, minmax( 280px, 1fr ) );
    gap: 1rem;
}

.academies-contact-card {
    display: flex;
    gap: 1rem;
    background: #f7f8fa;
    border-radius: 8px;
    padding: 1rem;
    align-items: flex-start;
}

.academies-contact-photo {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    background: #dce4ef;

    img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.academies-contact-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8da4bf;

    svg {
        width: 32px;
        height: 32px;
    }
}

.academies-contact-info {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    min-width: 0;
}

.academies-contact-name {
    font-weight: 600;
    font-size: .9375rem;
    color: var( --e-global-color-primary, #333 );
    margin: 0;
}

.academies-contact-institution {
    font-size: .8125rem;
    font-weight: 500;
    color: #5b7fa5;
    margin: 0;
}

.academies-contact-address {
    font-size: .8125rem;
    color: #5f6688;
    margin: 0;
    line-height: 1.4;
}

.academies-contact-phone,
.academies-contact-email {
    font-size: .8125rem;
    color: #5f6688;
    margin: 0;
    display: flex;
    align-items: center;
    gap: .375rem;

    svg {
        width: 14px;
        height: 14px;
        flex-shrink: 0;
    }

    a {
        color: var( --e-global-color-accent, #5b7fa5 );
        text-decoration: none;

        &:hover {
            text-decoration: underline;
        }
    }
}

.academies-no-contacts {
    text-align: center;
    color: #8da4bf;
    font-size: .875rem;
    padding: 2rem;
}

.col-span-1 {
    grid-column: span 1 / span 1;
}
.col-span-2 {
    grid-column: span 2 / span 2;
}
.col-span-3 {
    grid-column: span 3 / span 3;
}
.col-span-4 {
    grid-column: span 4 / span 4;
}
.col-span-5 {
    grid-column: span 5 / span 5;
}
.col-span-6 {
    grid-column: span 6 / span 6;
}
.col-span-7 {
    grid-column: span 7 / span 7;
}
.col-span-8 {
    grid-column: span 8 / span 8;
}
.col-span-9 {
    grid-column: span 9 / span 9;
}
.col-span-10 {
    grid-column: span 10 / span 10;
}
.col-span-11 {
    grid-column: span 11 / span 11;
}
.col-span-12 {
    grid-column: span 12 / span 12;
}