/**
 * Regional Expert Panel Widget Styles
 */


/* ========== FONTAWESOME ICON STYLES ========== */


/* 
 * FontAwesome icon styles for the Regional Expert Panel widget.
 * Ensures icons display correctly with fallbacks.
 */

.regional-expert-panel .fas,
.regional-expert-panel .fa {
    font-family: "Font Awesome 5 Free", "Font Awesome 5 Pro", "FontAwesome", sans-serif;
    font-style: normal;
    font-weight: 900;
    /* FontAwesome solid icons require font-weight: 900 */
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    display: inline-block;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


/* Ensure proper FontAwesome icon display */

.regional-expert-panel .fa-check:before {
    content: "\f00c";
}

.regional-expert-panel .fa-chevron-right:before {
    content: "\f054";
}


/* Fallback for when FontAwesome is not loaded */

.regional-expert-panel .fas.fa-check:before,
.regional-expert-panel .fa.fa-check:before {
    content: "\f00c";
    /* FontAwesome check icon */
    font-family: "Font Awesome 5 Free", "Font Awesome 5 Pro", "FontAwesome", "Arial Unicode MS", "Apple Symbols", sans-serif;
}

.regional-expert-panel .fas.fa-chevron-right:before,
.regional-expert-panel .fa.fa-chevron-right:before {
    content: "\f054";
    /* FontAwesome chevron-right icon */
    font-family: "Font Awesome 5 Free", "Font Awesome 5 Pro", "FontAwesome", "Arial Unicode MS", "Apple Symbols", sans-serif;
}


/* Ultimate fallback using Unicode symbols if FontAwesome fails */

@supports not (font-family: "Font Awesome 5 Free") {
    .regional-expert-panel .fa-check:before {
        content: "✓";
        font-family: "Arial Unicode MS", "Apple Symbols", "Segoe UI Symbol", sans-serif;
        font-weight: normal;
    }
    .regional-expert-panel .fa-chevron-right:before {
        content: "›";
        font-family: "Arial Unicode MS", "Apple Symbols", "Segoe UI Symbol", sans-serif;
        font-weight: normal;
    }
}


/* ========== WIDGET STYLES ========== */


/* Main Container */

.regional-expert-panel {
    display: flex;
    flex-direction: column;
    gap: 1.875rem;
    box-sizing: border-box;
}


/* Header Section */

.regional-expert-panel__header {
    margin-bottom: 1.25rem;
}

.regional-expert-panel__small-title {
    font-size: 1em;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.625rem;
}


/* Features Section */

.regional-expert-panel__content {
    width: 100%;
    /* Default full width on mobile */
}

.regional-expert-panel__features-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.regional-expert-panel__feature-item {
    margin-bottom: 0.9375rem;
}

.regional-expert-panel__feature-item:last-child {
    margin-bottom: 0;
}

.regional-expert-panel__feature {
    display: flex;
    align-items: flex-start;
}

.regional-expert-panel__feature-icon {
    margin-right: 0.625rem;
    color: #004494;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    line-height: 1.5;
}


/* Regions Section */

.regional-expert-panel__regions {
    padding: 1.25rem;
    background-color: #004494;
    color: #FFFFFF;
    border-radius: 0.25rem;
    width: 100%;
    /* Default full width on mobile */
}

.regional-expert-panel__regions-header {
    margin-bottom: 1.25rem;
    border-radius: .5rem .5rem 0rem 0rem;
}

.regional-expert-panel__regions-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    color: #FFFFFF;
}

.regional-expert-panel__regions-list {
    list-style: none;
    margin: 0;
    padding: 0.5rem 2rem 2rem 2rem;
}

.regional-expert-panel__region-item {
    margin-bottom: 0.9375rem;
}

.regional-expert-panel__region-item:last-child {
    margin-bottom: 0;
}

.regional-expert-panel__region-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #FFFFFF;
    text-decoration: none;
    transition: color 0.3s ease;
}

.regional-expert-panel__region-link:hover {
    color: #F57021 !important;
}

.regional-expert-panel__region-icon {
    margin-right: 0.625rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}


/* Alternative View Styles */

.regional-expert-panel__alt-content {
    width: 100%;
}

.regional-expert-panel__alt-description {
    margin-bottom: 1.25rem;
}


/* Contact Information Styles */

.regional-expert-panel__contact-info {
    margin-bottom: 1.875rem;
}

.regional-expert-panel__contact-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #004494;
    margin-bottom: 1rem;
    margin-top: 0;
}

.regional-expert-panel__contact-item {
    margin-bottom: 0.75rem;
}

.regional-expert-panel__contact-item:last-child {
    margin-bottom: 0;
}

.regional-expert-panel__contact-label {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #333;
}

.regional-expert-panel__contact-value a {
    color: #F57021;
    text-decoration: none;
    transition: color 0.3s ease;
    word-break: break-word;
}

.regional-expert-panel__contact-value a:hover {
    color: #004494;
    text-decoration: underline;
}


/* Full Width View Styles */

.regional-expert-panel--full-width {
    flex-direction: column;
}

.regional-expert-panel--full-width .regional-expert-panel__content {
    width: 100% !important;
    margin-bottom: 0;
}

.regional-expert-panel--full-width .regional-expert-panel__regions {
    display: none;
}


/* Responsive Styles */

@media (min-width: 768px) {
    .regional-expert-panel {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }
    .regional-expert-panel__content {
        margin-bottom: 0;
        /* Width will be controlled by elementor width control */
    }
    .regional-expert-panel__regions {
        /* Width will be controlled by elementor width control */
        min-width: 250px;
        /* Ensures a minimum width for readability */
    }
    .regional-expert-panel--full-width {
        flex-direction: column;
    }
}

@media (max-width: 767px) {
    .regional-expert-panel__content {
        margin-bottom: 1.875rem;
        width: 100%;
        /* Force full width on mobile */
    }
    .regional-expert-panel__regions {
        width: 100%;
        /* Force full width on mobile */
    }
}