html, body {
    overflow-x: hidden;
}
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Roboto', sans-serif;
    background: #fff;
}
.leaflet-attribution-flag,
svg.leaflet-attribution-flag,
.leaflet-control-attribution svg {
    display: none !important;
}
.container {
    max-width: 1200px !important;
}

.breadcrumb {
    font-size: 0.85rem;
    padding: 0;
    margin-bottom: 0.5rem !important;
}
.breadcrumb-item + .breadcrumb-item {
    padding-left: 0.25rem;
}
.breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    padding-right: 0.2rem;
    color: #000;
}
.breadcrumb-item a {
    color: #0d6efd;
    text-decoration: none;
}
.breadcrumb-item a:hover {
    text-decoration: underline;
}
.breadcrumb-item.active {
    color: #555;
}

.un-top-bar {
    height: 30px;
    background-color: #F2F2F2;
    font-size: 11px;
    color: #333;
    line-height: 30px;
    border-bottom: 2px solid #009EDB;
}

.header-logo-row {
    height: 100px;
    background-color: #FFFFFF !important;
    position: relative;
    z-index: 1030;
}

.un-top-bar .un-top-side {
    flex: 1 1 0;
    min-width: 0;
}

.un-top-bar .un-top-center {
    flex: 0 1 auto;
    text-align: center;
    padding: 0 16px;
    min-width: 0;
}

.un-top-bar .un-top-link {
    color: #333;
    text-decoration: none;
    font-size: 11px;
    white-space: nowrap;
}

.un-top-bar .un-top-link:hover {
    color: #0d6efd;
    text-decoration: underline;
}

.un-top-bar .lang-buttons {
    display: flex;
    gap: 2px;
    justify-content: flex-end;
}

.un-top-bar .lang-btn {
    color: #333;
    text-decoration: none;
    padding: 0 6px;
    font-size: 11px;
}

.un-top-bar .lang-btn:hover {
    color: #0d6efd;
    text-decoration: underline;
}

.un-top-bar .lang-btn.active {
    font-weight: 600;
    color: #0d6efd;
}

main {
    flex: 1;
}

.stat-card-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.stat-card-hover:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1) !important;
}
.action-card-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.action-card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1) !important;
}
.quick-link-tile {
    background-color: #f8f9fa;
    transition: background-color 0.2s, transform 0.2s;
}
.quick-link-tile:hover {
    background-color: #e8f4fd;
    transform: translateY(-2px);
}
.search-autocomplete-dropdown::-webkit-scrollbar {
    width: 6px;
}
.search-autocomplete-dropdown::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}
.survey-jumbotron {
    background: linear-gradient(135deg, #0a2e4d 0%, #1a5276 40%, #1f6f8b 100%);
    color: #fff;
    padding: 3.5rem 0;
    position: relative;
    overflow: hidden;
}
.survey-jumbotron::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}
.survey-jumbotron .container {
    position: relative;
    z-index: 1;
}
.survey-jumbotron .jumbotron-inner {
    padding: 0;
}
.survey-jumbotron .auth-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}
.survey-jumbotron .auth-card .nav-tabs {
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
}
.survey-jumbotron .auth-card .nav-tabs .nav-link {
    border: none;
    color: #666;
    background: transparent;
    transition: all 0.3s ease;
}
.survey-jumbotron .auth-card .nav-tabs .nav-link.active {
    background: #fff;
    color: #333;
    border-bottom: 2px solid #0d6efd;
}
.survey-jumbotron .auth-card .tab-content {
    min-height: 420px;
    color: #333;
}
.survey-jumbotron .auth-card .form-label {
    color: #333;
}
.survey-jumbotron .auth-card .form-check-label {
    color: #333;
}
.survey-jumbotron .auth-card .form-text {
    color: #6c757d;
}
.survey-jumbotron .info-icon {
    color: #7dd3fc;
}

.header-logo-row a:hover span {
    text-decoration: none;
}

.header-brand-org {
    font-size: 1.35rem;
    line-height: 1.0;
    white-space: normal;
    letter-spacing: 0.005em;
}
.header-brand-org-2line {
    max-width: 5.5em;
}
.header-brand-sep {
    flex: 0 0 auto;
    align-self: stretch;
    width: 1px;
    margin: 2px 18px 2px 8px;
    background-color: #c9d2d8;
}
.header-brand-dept {
    font-size: 1.0rem;
    line-height: 1.2;
    letter-spacing: 0.005em;
}
.header-brand-unit {
    font-size: 0.82rem;
    line-height: 1.2;
}

.main-nav {
    background-color: #F5F5F5;
    border-top: 1px solid #e6e6e6;
    border-bottom: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    z-index: 1020;
}

.main-nav .container {
    display: flex;
    align-items: center;
}

.nav-signin-link {
    color: #0d6efd;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    padding: 0.75rem 1rem;
    transition: color 0.2s ease;
    cursor: pointer;
}

.nav-signin-link:hover {
    color: #333;
}

.main-nav .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    font-weight: 400;
    color: #333 !important;
    position: relative;
    transition: color 0.2s ease, background-color 0.2s ease;
    letter-spacing: 0.01em;
}

.main-nav .navbar-nav .nav-link:hover {
    color: #333 !important;
    background-color: #ffffff;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.08), -2px -2px 5px rgba(255, 255, 255, 0.9);
}

.main-nav .navbar-nav .nav-link:not(.dropdown-toggle):hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0.5rem;
    right: 0.5rem;
    height: 3px;
    background-color: #009edb;
    box-shadow: 0 1px 3px rgba(0, 158, 219, 0.3);
}

.main-nav .navbar-nav .nav-link.dropdown-toggle:hover {
    box-shadow: inset 0 -3px 0 #009edb, 2px 2px 5px rgba(0, 0, 0, 0.08), -2px -2px 5px rgba(255, 255, 255, 0.9);
}

.main-nav .navbar-nav .nav-item.active > .nav-link,
.main-nav .navbar-nav .nav-link.active {
    color: #333 !important;
    font-weight: 500;
    background-color: #ffffff;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.08), -2px -2px 5px rgba(255, 255, 255, 0.9);
}

.main-nav .navbar-nav .nav-link.active:not(.dropdown-toggle)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0.5rem;
    right: 0.5rem;
    height: 3px;
    background-color: #009edb;
    box-shadow: 0 1px 3px rgba(0, 158, 219, 0.3);
}

.main-nav .navbar-nav .nav-link.active.dropdown-toggle {
    box-shadow: inset 0 -3px 0 #009edb, 2px 2px 5px rgba(0, 0, 0, 0.08), -2px -2px 5px rgba(255, 255, 255, 0.9);
}

.main-nav .nav-item.dropdown {
    position: relative;
}
.main-nav .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    border: 1px solid #e6e6e6;
    border-radius: 0 0 0.375rem 0.375rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-top: 2px solid #009edb;
    padding: 0.5rem 0;
    margin-top: 0;
    z-index: 1050;
}

.main-nav .dropdown-item {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    color: #333;
}

.main-nav .dropdown-item:hover {
    background-color: #f0f7fb;
    color: #009edb;
}

.main-nav .navbar-toggler {
    border-color: #ccc;
}

.main-nav .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(51,51,51,1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.nav-search-form {
    width: 200px;
}

.nav-search-form .form-control {
    border-color: #ddd;
    font-size: 0.8rem;
}

.nav-search-form .form-control:focus {
    border-color: #009edb;
    box-shadow: 0 0 0 0.15rem rgba(0,158,219,0.15);
}

.nav-search-form .btn {
    border-color: #ddd;
    color: #666;
}

.nav-search-form .btn:hover {
    background-color: #009edb;
    border-color: #009edb;
    color: #fff;
}

.navbar-brand {
    font-weight: 600;
}

.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border-radius: 0.5rem;
}

.card-header {
    background: transparent;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    font-weight: 500;
}

.table th {
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge {
    font-weight: 500;
}

.progress {
    border-radius: 0.25rem;
}

.display-4 {
    font-weight: 600;
}

.btn-group .btn {
    border-radius: 0.375rem !important;
    margin-right: 0.25rem;
}

.form-select:focus,
.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

canvas {
    max-height: 300px;
}

.table-hover tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

footer {
    margin-top: auto;
}

.dropdown-menu {
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.accordion-button:not(.collapsed) {
    background-color: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

.itu-filter-bar {
    background: #f5f6f8;
    padding: 20px 0;
    border-bottom: 1px solid #dee2e6;
}

.chart-filter-sidebar {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 12px 10px;
    overflow: visible;
    position: relative;
    z-index: 10;
}

.filter-sidebar-group .filter-label {
    font-size: 0.65rem;
    margin-bottom: 3px;
}

.filter-sidebar-group .filter-select {
    font-size: 0.78rem;
    padding: 4px 8px;
}

.egdi-highlight-tile {
    background: linear-gradient(135deg, #e8f0fe 0%, #f0f4ff 100%);
    border: 1px solid #c5d5f0;
    border-radius: 10px;
    padding: 12px 10px;
}

.index-avg-tile {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 8px 10px;
}

.country-index-section {
    background: #eef3fc;
    border-radius: 0;
    padding: 30px 24px 26px;
    margin-top: 30px;
    margin-bottom: -30px;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding-left: calc(50vw - 50%);
    padding-right: calc(50vw - 50%);
    max-width: 100vw;
}

.country-index-card {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #d4dff0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 260px;
}

.country-index-card-header {
    padding: 12px 14px 8px;
    text-align: center;
}

.country-index-chart-area {
    flex: 1;
    padding: 4px 10px 2px;
    position: relative;
    height: 190px;
    min-height: 190px;
}

.country-index-info {
    display: none;
}

.country-index-info-title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #6495ED;
    margin-bottom: 0;
    line-height: 1.2;
}

.country-index-info-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    line-height: 1.1;
}

.country-index-info-year {
    font-size: 0.7rem;
    color: #6c757d;
    margin-top: 2px;
}

.chart-legend-row {
    display: flex;
    justify-content: center;
    gap: 16px;
    font-size: 0.72rem;
    color: #555;
    padding: 0 14px 10px;
}

.chart-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.chart-legend-line {
    display: inline-block;
    width: 20px;
    height: 2px;
    border-radius: 1px;
}

.chart-legend-dashed {
    background: transparent !important;
    border-top: 2px dotted #999;
    height: 0;
}

.chart-legend-score {
    font-weight: 600;
    color: #333;
}

.filter-label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #6c757d;
    margin-bottom: 4px;
    font-weight: 500;
}

.filter-select {
    background: #fff;
    border: 1px solid #ced4da;
    color: #333;
    font-size: 0.85rem;
    border-radius: 6px;
    padding: 6px 12px;
}

.filter-select:focus {
    background: #fff;
    border-color: #86b7fe;
    color: #333;
    box-shadow: 0 0 0 0.2rem rgba(13,110,253,0.15);
}

.filter-select option {
    background: #fff;
    color: #333;
}

.filter-select::placeholder {
    color: #999;
}

.filter-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    z-index: 1050;
    max-height: 240px;
    overflow-y: auto;
    margin-top: 4px;
}

.filter-dropdown-item {
    display: block;
    padding: 8px 14px;
    color: #333;
    text-decoration: none;
    font-size: 0.85rem;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s;
}

.filter-dropdown-item:hover {
    background: #f0f4ff;
    color: #0d6efd;
}

.itu-hero-wrapper {
    background: transparent;
    padding: 0 0 34px;
    margin: 0;
    position: relative;
}
.itu-hero-wrapper::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.itu-hero-contained {
    color: #1b2a3a;
    padding: 0 32px;
    position: relative;
    z-index: 1;
    background: #ecf4f7;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 20px 34px -18px rgba(20, 40, 80, 0.30);
}

.hero-welcome-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(20,40,80,0.08);
    padding: 52px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-welcome-title {
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.5px;
    color: #1b2a3a;
    margin-bottom: 16px;
}

.hero-welcome-lead {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #4a5b6b;
    margin-bottom: 0;
    max-width: 92%;
}

.hero-welcome-btn {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 28px;
    padding: 12px 26px;
    background-color: #ECF4F7;
    color: #1b2a3a;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}
.hero-welcome-btn:hover {
    background-color: #dbe9ef;
    color: #1b2a3a;
    box-shadow: 0 4px 12px rgba(20, 40, 80, 0.12);
}

.itu-survey-feature-section {
    background: #ffffff;
    padding: 44px 0 8px;
}

.on-focus-eyebrow {
    display: inline-block;
    margin-bottom: 26px;
}

.on-focus-label {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1565c0;
    margin-bottom: 8px;
}

.on-focus-line {
    display: block;
    width: 50%;
    height: 5px;
    background: #009EDB;
    border-radius: 2px;
}

.on-focus-carousel {
    position: relative;
    padding: 0 56px;
}

.on-focus-carousel .carousel-inner {
    min-height: 320px;
    display: flex;
    align-items: center;
}

.on-focus-carousel .carousel-item {
    width: 100%;
}

.on-focus-carousel .survey-feature-desc {
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 10.2em;
}

.on-focus-control {
    width: 44px;
    height: 44px;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    opacity: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-control-prev.on-focus-control {
    left: 0;
}

.carousel-control-next.on-focus-control {
    right: 0;
}

.on-focus-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #ECF4F7;
    color: #1565c0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 2px 10px rgba(20, 40, 80, 0.12);
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.on-focus-control:hover .on-focus-arrow {
    background-color: #dbe9ef;
    box-shadow: 0 4px 14px rgba(20, 40, 80, 0.18);
}

@media (max-width: 768px) {
    .on-focus-carousel {
        padding: 0;
    }
    .on-focus-control {
        top: auto;
        bottom: -56px;
        transform: none;
    }
    .carousel-control-prev.on-focus-control {
        left: calc(50% - 52px);
    }
    .carousel-control-next.on-focus-control {
        right: calc(50% - 52px);
    }
    .itu-survey-feature-section {
        padding-bottom: 64px;
    }
}

.survey-cover-wrap {
    display: block;
}

.survey-cover-img {
    width: 100%;
    max-width: 240px;
    border-radius: 8px;
    box-shadow: 0 14px 36px rgba(0,0,0,0.2);
    display: block;
}

.survey-feature-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1565c0;
    margin-bottom: 6px;
}

.survey-feature-subtitle {
    font-size: 1.05rem;
    font-style: italic;
    font-weight: 500;
    color: #e67e22;
    margin-bottom: 14px;
}

.survey-feature-desc {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #444;
    margin-bottom: 18px;
    text-align: justify;
}

.survey-readmore-btn {
    background: #1565c0;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 10px 24px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
}

.survey-readmore-btn:hover {
    background: #0d47a1;
    color: #fff;
}

@media (max-width: 768px) {
    .hero-welcome-card {
        padding: 30px 24px;
    }
    .hero-welcome-title {
        font-size: 1.7rem;
    }
    .hero-welcome-lead {
        font-size: 0.95rem;
        max-width: 100%;
    }
    .survey-cover-wrap {
        text-align: center;
        margin-bottom: 18px;
    }
    .survey-cover-img {
        margin: 0 auto;
        max-width: 180px;
    }
    .survey-feature-title {
        font-size: 1.3rem;
    }
    .survey-feature-desc {
        text-align: left;
    }
}

.hero-badge {
    display: inline-block;
    width: auto;
    align-self: flex-start;
    background: rgba(255, 191, 0, 0.15);
    color: #ffbf00;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 191, 0, 0.35);
    margin-bottom: 16px;
}

.itu-hero-title {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin-bottom: 18px;
}

.itu-highlight {
    color: #ffbf00;
}

.hero-cover-wrap {
    position: relative;
    display: inline-block;
    max-width: 280px;
    margin-bottom: 20px;
    overflow: hidden;
}

.hero-cover-img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
    display: block;
}

.hero-cover-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    border-radius: 0 0 8px 8px;
    background: linear-gradient(to top, rgba(13,27,62,0.95) 0%, rgba(13,27,62,0.6) 40%, transparent 100%);
    pointer-events: none;
}

.hero-download-btn-inline {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 8px;
    margin-right: 8px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-body-text {
    color: rgba(255,255,255,0.78);
    font-size: 0.92rem;
    line-height: 1.7;
    max-width: 85%;
}

.hero-body-text p {
    margin-bottom: 14px;
}

.hero-body-text p:last-child {
    margin-bottom: 0;
}

.hero-subtitle-theme {
    font-size: 1.1rem;
    font-weight: 500;
    color: #ffbf00;
    font-style: italic;
    margin-bottom: 14px;
}

.hero-readmore-btn {
    font-size: 0.9rem;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
}

.hero-readmore-btn:hover {
    background: rgba(255,255,255,0.12);
    color: #ffbf00;
    border-color: #ffbf00;
}
.hero-sidebar-card {
    background: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
#heroSidebarTabs .nav-link {
    color: #1A5377;
    opacity: 0.6;
    font-size: 0.82rem;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    transition: opacity 0.2s, border-color 0.2s;
}
#heroSidebarTabs .nav-link.active {
    color: #1A5377;
    opacity: 1;
    border-bottom: 2px solid #1A5377;
    background: rgba(26,83,119,0.05) !important;
}
#heroSidebarTabs .nav-link:hover {
    opacity: 0.9;
    color: #1A5377;
}
.hero-event-item {
    background: rgba(26,83,119,0.04);
    transition: background 0.2s;
}
.hero-event-item:hover {
    background: rgba(26,83,119,0.1);
}
#heroEventsPane::-webkit-scrollbar,
#heroWhatsNewPane::-webkit-scrollbar {
    width: 4px;
}
#heroEventsPane::-webkit-scrollbar-thumb,
#heroWhatsNewPane::-webkit-scrollbar-thumb {
    background: rgba(26,83,119,0.2);
    border-radius: 4px;
}

.hero-report-links {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 18px;
}

.hero-links-group {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 14px 16px;
}

.hero-links-heading {
    color: #ffbf00;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.hero-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hero-links-list li {
    margin-bottom: 5px;
}

.hero-links-list li:last-child {
    margin-bottom: 0;
}

.hero-links-list a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: 0.8rem;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    padding: 3px 0;
    transition: color 0.2s;
}

.hero-links-list a i {
    color: rgba(255,255,255,0.4);
    margin-top: 2px;
    flex-shrink: 0;
}

.hero-links-list a:hover {
    color: #ffbf00;
}

.hero-links-list a:hover i {
    color: #ffbf00;
}

.hero-lang-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.hero-lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.75);
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.hero-lang-btn span {
    font-weight: 600;
    color: rgba(255,255,255,0.5);
    font-size: 0.7rem;
}

.hero-lang-btn:hover {
    background: rgba(255,191,0,0.15);
    color: #ffbf00;
    border-color: rgba(255,191,0,0.3);
}

.hero-lang-btn:hover span {
    color: #ffbf00;
}

.itu-country-section {
    background: #fff;
    padding: 40px 0 30px;
}

.itu-country-header {
    margin-bottom: 24px;
}

.itu-country-name {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.itu-country-rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #0d6efd;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
}

.itu-country-context {
    display: block;
    font-size: 0.85rem;
    color: #888;
    margin-top: 2px;
}

.itu-section-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 4px;
    display: inline-block;
}

.itu-section-title::after {
    content: "";
    display: block;
    width: 50%;
    height: 5px;
    margin-top: 8px;
    background: #009EDB;
    border-radius: 2px;
}

.itu-data-card {
    background: #fff;
    border: 1px solid #e8ecf1;
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow 0.25s, border-color 0.25s;
    height: 100%;
}

.itu-data-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    border-color: #c8d0dc;
}

.itu-data-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
    padding: 20px;
}

.itu-data-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.itu-data-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 14px;
}

.itu-data-card-title {
    font-size: 0.82rem;
    color: #555;
    font-weight: 500;
    line-height: 1.3;
    flex: 1;
    padding-right: 10px;
}

.itu-category-badge {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}

.itu-cat-egdi { background: #e3f2fd; color: #1565c0; }
.itu-cat-osi { background: #e8f5e9; color: #2e7d32; }
.itu-cat-tii { background: #fff3e0; color: #e65100; }
.itu-cat-hci { background: #f3e5f5; color: #7b1fa2; }
.itu-cat-epi { background: #fce4ec; color: #c62828; }
.itu-cat-level { background: #e0f2f1; color: #00695c; }

.itu-data-card-body {
    flex: 1;
    margin-bottom: 14px;
}

.itu-data-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.itu-data-value-text {
    font-size: 1.4rem;
}

.itu-data-meta {
    display: flex;
    gap: 12px;
    margin-top: 4px;
}

.itu-data-unit {
    font-size: 0.75rem;
    color: #999;
}

.itu-data-year {
    font-size: 0.75rem;
    color: #999;
    font-weight: 600;
}

.itu-data-card-footer {
    margin-top: auto;
}

.itu-comparison-bar {
    width: 100%;
}

.itu-bar-track {
    position: relative;
    height: 6px;
    background: #eee;
    border-radius: 3px;
    margin-bottom: 6px;
}

.itu-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s ease;
}

.itu-bar-country {
    background: #0d6efd;
}

.itu-bar-marker {
    position: absolute;
    top: -4px;
    width: 2px;
    height: 14px;
    background: #ff6b35;
    border-radius: 1px;
    transform: translateX(-50%);
}

.itu-bar-legend {
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.itu-bar-label-country::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #0d6efd;
    border-radius: 2px;
    margin-right: 4px;
    vertical-align: middle;
}

.itu-bar-label-world::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #ff6b35;
    border-radius: 2px;
    margin-right: 4px;
    vertical-align: middle;
}

.itu-level-pill {
    display: inline-block;
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: 10px;
    margin-right: 4px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.itu-level-vh { background: #e3f2fd; color: #1565c0; }
.itu-level-h { background: #e8f5e9; color: #2e7d32; }
.itu-level-m { background: #fff8e1; color: #f57f17; }
.itu-level-l { background: #ffebee; color: #c62828; }

.itu-level-active {
    font-weight: 800;
    box-shadow: 0 0 0 2px currentColor;
    transform: scale(1.1);
}

.itu-global-averages-section {
    padding: 40px 0 30px;
    background: #fff;
}

.chart-panel {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px 24px;
}

.chart-panel-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.itu-chart-container {
    position: relative;
    height: 320px;
}

.itu-ranking-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8f9fb;
    border: 1px solid #e8ecf1;
    border-radius: 8px;
    padding: 14px 16px;
    transition: all 0.2s;
}

.itu-ranking-card:hover {
    background: #eef3ff;
    border-color: #b8ccef;
}

.itu-ranking-active {
    background: #eef3ff;
    border-color: #0d6efd;
    border-width: 2px;
}

.itu-ranking-rank {
    font-size: 1.1rem;
    font-weight: 800;
    color: #0d6efd;
    min-width: 36px;
}

.itu-ranking-info {
    flex: 1;
    min-width: 0;
}

.itu-ranking-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.itu-ranking-region {
    font-size: 0.7rem;
    color: #999;
}

.itu-ranking-score {
    font-size: 0.95rem;
    font-weight: 700;
    color: #333;
    font-variant-numeric: tabular-nums;
}

.itu-view-more-link {
    display: inline-block;
    color: #0d6efd;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    padding: 8px 0;
    transition: color 0.2s;
}

.itu-view-more-link:hover {
    color: #0a58ca;
}

.itu-region-section {
    background: #f7f8fa;
    padding: 40px 0 30px;
}

.itu-region-card {
    background: #fff;
    border: 1px solid #e8ecf1;
    border-radius: 8px;
    padding: 18px 16px;
    transition: box-shadow 0.2s;
    height: 100%;
}

.itu-region-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.itu-region-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 12px;
    margin-bottom: 10px;
}

.itu-region-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1a1a1a;
}

.itu-region-count {
    font-size: 0.7rem;
    color: #999;
}

.itu-region-score {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
}

.itu-region-bar {
    height: 4px;
    background: #eee;
    border-radius: 2px;
    margin-bottom: 8px;
}

.itu-region-bar-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.5s ease;
}

.itu-region-top {
    font-size: 0.72rem;
    color: #888;
    display: flex;
    align-items: center;
    gap: 5px;
}

.itu-dashboards-section {
    background: #fff;
    padding: 40px 0 50px;
}

.itu-ekap-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
    padding: 24px 18px;
    border-radius: 12px;
    transition: transform 0.25s, background 0.25s, box-shadow 0.25s;
}

.itu-ekap-card:hover {
    background: #f6f9ff;
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(13, 110, 253, 0.08);
}

.itu-ekap-icon {
    font-size: 2.6rem;
    line-height: 1;
    color: #2ba6cb;
    margin-bottom: 18px;
    transition: color 0.25s, transform 0.25s;
}

.itu-ekap-card:hover .itu-ekap-icon {
    color: #1f8db0;
    transform: scale(1.06);
}

.itu-ekap-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1b3a5b;
    margin-bottom: 10px;
}

.itu-ekap-desc {
    font-size: 0.82rem;
    color: #6b7785;
    margin: 0;
    line-height: 1.6;
    max-width: 240px;
}

.itu-footer-note {
    background: #f0f2f5;
    padding: 20px 0;
    border-top: 1px solid #e0e0e0;
    margin-bottom: 0;
}

.itu-footer-note p {
    font-size: 0.78rem;
    color: #888;
    margin: 0;
}

.itu-footer-note a {
    color: #0d6efd;
    text-decoration: none;
}

.itu-footer-note a:hover {
    text-decoration: underline;
}

.un-global-footer {
    background: #2d2d2d;
    border-top: 3px solid #009edb;
    padding: 22px 0 18px;
    color: #fff;
}

.un-footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding-bottom: 16px;
}

.un-footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #fff;
}

.un-footer-logo {
    height: 50px;
    width: auto;
}

.un-footer-social {
    display: flex;
    align-items: center;
    gap: 20px;
}

.un-footer-social a {
    color: #fff;
    font-size: 1.3rem;
    line-height: 1;
    transition: color 0.2s;
}

.un-footer-social a:hover {
    color: #009edb;
}

.un-footer-links {
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    padding-top: 14px;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
}

.un-footer-links a {
    color: #fff;
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: color 0.2s;
}

.un-footer-links a:hover {
    color: #009edb;
    text-decoration: underline;
}

.un-footer-links span {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.72rem;
}

@media (max-width: 768px) {
    .un-footer-top {
        justify-content: center;
        text-align: center;
    }
    .un-footer-links {
        justify-content: center;
        gap: 6px;
    }
    .un-footer-links a {
        font-size: 0.66rem;
    }
}

.footer-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #1C457E;
    color: #fff !important;
    font-size: 1rem;
    text-decoration: none !important;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}

.footer-social-btn svg {
    fill: #fff;
}

.footer-social-btn:hover {
    background: #1565c0;
    color: #fff;
    transform: translateY(-2px);
    text-decoration: none;
}

.cta-section {
    background: linear-gradient(135deg, #1a237e 0%, #0d47a1 100%);
}

.hover-card {
    transition: all 0.3s ease;
    border-width: 2px !important;
}

.hover-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

@media (max-width: 991px) {
    .col-lg-8 > .d-flex.align-items-center {
        flex-direction: column;
        text-align: center;
    }
    .col-lg-8 > .d-flex.align-items-center .hero-cover-wrap {
        margin-bottom: 1rem;
    }
    .hero-body-text {
        max-width: 100%;
    }
    .country-profile-actions {
        width: 100%;
        margin-top: 0.5rem;
    }
    .country-profile-actions .btn {
        width: 100%;
    }
    .country-year-controls {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.5rem;
    }
    .country-year-controls .btn-group {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .un-top-bar {
        height: auto;
        line-height: 1.4;
        padding: 4px 0;
    }
    .un-top-bar .container {
        flex-direction: column;
        gap: 2px;
    }
    .un-top-bar .lang-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }
    .header-logo-row {
        height: auto;
        padding: 10px 0;
    }
    .header-logo-row .container {
        flex-direction: column;
        gap: 8px;
    }
    .header-brand-org {
        font-size: 1.1rem;
    }
    .header-brand-dept {
        font-size: 0.9rem;
    }
    .header-brand-unit {
        font-size: 0.75rem;
    }
    .header-brand-sep {
        margin: 2px 10px;
    }
    .itu-hero-title {
        font-size: 1.3rem;
    }
    .hero-cover-wrap {
        max-width: 150px;
    }
    .hero-body-text {
        font-size: 0.85rem;
        max-width: 100%;
    }
    .hero-download-btn-inline {
        font-size: 0.8rem;
        padding: 7px 14px;
        width: 100%;
        text-align: center;
        margin-right: 0;
    }
    .hero-readmore-btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    .itu-data-value {
        font-size: 1.6rem;
    }
    .itu-country-name {
        font-size: 1.2rem;
        flex-wrap: wrap;
    }
    .display-4 {
        font-size: 2rem;
    }
    .display-5 {
        font-size: 1.75rem;
    }
    .display-6 {
        font-size: 1.5rem;
    }
    .btn-group {
        flex-wrap: wrap;
    }
    .btn-group .btn {
        margin-bottom: 0.25rem;
    }
    .itu-filter-bar .row {
        gap: 8px;
    }
    .itu-ekap-card {
        padding: 16px;
    }
    .itu-ekap-icon {
        font-size: 2.2rem;
        margin-bottom: 12px;
    }
    .chart-filter-sidebar {
        flex-direction: row !important;
        flex-wrap: wrap;
        gap: 8px;
    }
    .chart-filter-sidebar > * {
        flex: 1;
        min-width: 120px;
    }
    .country-index-card {
        min-height: auto;
    }
    .country-index-chart-area {
        min-height: 180px;
    }
    .country-index-section {
        padding: 20px 12px;
    }
    .itu-section-title {
        font-size: 1.1rem;
    }
    .itu-region-score {
        font-size: 1.3rem;
    }
    .chart-panel {
        padding: 12px;
    }
    .itu-chart-container {
        height: 250px;
    }
    .mobile-scroll-table {
        position: relative;
        -webkit-overflow-scrolling: touch;
    }
    .mobile-scroll-table::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 24px;
        background: linear-gradient(to left, rgba(0,0,0,0.06), transparent);
        pointer-events: none;
        z-index: 3;
    }
    .mobile-scroll-table table {
        font-size: 0.78rem;
    }
    .mobile-scroll-table table th,
    .mobile-scroll-table table td {
        white-space: nowrap;
        padding: 0.5rem 0.4rem;
    }
    .mobile-scroll-table table th:first-child,
    .mobile-scroll-table table td:first-child {
        position: sticky;
        left: 0;
        z-index: 2;
        background: #fff;
        min-width: 120px;
        max-width: 150px;
        white-space: normal;
        word-break: break-word;
        box-shadow: 2px 0 4px rgba(0,0,0,0.06);
    }
    .mobile-scroll-table table thead th:first-child {
        background: #f8f9fa;
        z-index: 3;
    }
    .mobile-scroll-table .scroll-hint {
        display: block;
    }
    #worldMap {
        height: 280px !important;
    }
    .sdg-wheel-float-card {
        float: none !important;
        width: 100% !important;
        margin: 0 0 16px 0 !important;
    }
    .sdg-wheel-float-card #sdgWheel {
        width: 200px !important;
        height: 200px !important;
    }
    .map-legend {
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        margin-bottom: 8px;
    }
    .event-timeline {
        padding-left: 1.5rem;
    }
    .event-card {
        padding: 0.85rem 1rem;
    }
    .year-collapse-btn {
        margin-left: -1.5rem;
        padding-left: 1.5rem;
    }
    .event-card .event-dot {
        left: -1.5rem;
    }
    footer .container .d-flex {
        flex-direction: column;
        gap: 4px;
    }
    footer .mx-2 {
        display: none;
    }
    .tab-content {
        padding: 1rem !important;
    }
    .nav-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .nav-tabs .nav-link {
        white-space: nowrap;
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }
    .hero-actions {
        flex-direction: column;
    }
    .info-stat-grid {
        grid-template-columns: 1fr 1fr;
    }
    .itu-region-card {
        padding: 12px 10px;
    }
    .itu-ranking-card {
        padding: 10px 12px;
    }
    .itu-ranking-rank {
        font-size: 0.95rem;
        min-width: 28px;
    }
    .itu-ranking-name {
        font-size: 0.8rem;
    }
    .survey-jumbotron .auth-card .tab-content {
        min-height: auto;
    }
    h1.h3 {
        font-size: 1.25rem;
    }
    h1.h4 {
        font-size: 1.1rem;
    }
}

body.rtl .itu-region-card-header {
    border-left: none !important;
    border-right: 4px solid;
}

body.rtl .hero-cover-img {
    margin-left: auto;
}

body.rtl .lang-buttons {
    direction: ltr;
}

.chat-widget {
    position: fixed;
    bottom: calc(24px + var(--cookie-banner-height, 0px));
    right: 24px;
    z-index: 9999;
}

.chat-toggle-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a3a6a, #1e4d8c);
    color: #fff;
    border: none;
    font-size: 1.5rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-toggle-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 24px rgba(0,0,0,0.35);
}

.chat-panel {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 380px;
    max-width: calc(100vw - 32px);
    height: 500px;
    max-height: calc(100vh - 120px - var(--cookie-banner-height, 0px));
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-header {
    background: linear-gradient(135deg, #1a3a6a, #1e4d8c);
    color: #fff;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.95rem;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #f8f9fa;
}

.chat-msg {
    display: flex;
}

.chat-msg.user {
    justify-content: flex-end;
}

.chat-msg.bot {
    justify-content: flex-start;
}

.chat-bubble {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 0.875rem;
    line-height: 1.45;
    word-wrap: break-word;
}
.user-bubble {
    white-space: pre-wrap;
}

.bot-bubble {
    background: #e9ecef;
    color: #212529;
    border-bottom-left-radius: 4px;
}

.user-bubble {
    background: #1a3a6a;
    color: #fff;
    border-bottom-right-radius: 4px;
}

.bot-bubble h1, .bot-bubble h2, .bot-bubble h3, .bot-bubble h4, .bot-bubble h5, .bot-bubble h6 {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 8px 0 4px;
}
.bot-bubble p { margin: 0 0 6px; }
.bot-bubble ul, .bot-bubble ol { margin: 4px 0 6px 16px; padding: 0; }
.bot-bubble table { font-size: 0.8rem; width: 100%; border-collapse: collapse; margin: 6px 0; }
.bot-bubble th, .bot-bubble td { border: 1px solid #ccc; padding: 3px 6px; }
.bot-bubble th { background: #dee2e6; }
.bot-bubble a { color: #1565c0; font-weight: 600; text-decoration: underline; cursor: pointer; word-break: break-word; }
.bot-bubble a:hover { color: #0d47a1; }
.bot-bubble code { font-size: 0.82rem; background: #f1f3f5; padding: 1px 4px; border-radius: 3px; }
.bot-bubble pre { background: #f1f3f5; padding: 8px; border-radius: 6px; overflow-x: auto; font-size: 0.8rem; }

.chat-feedback {
    display: flex;
    gap: 4px;
    margin-top: 6px;
    justify-content: flex-end;
}
.chat-feedback-btn {
    background: none;
    border: 1px solid #ced4da;
    border-radius: 6px;
    padding: 2px 8px;
    font-size: 0.78rem;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.15s;
}
.chat-feedback-btn:hover {
    background: #e9ecef;
    color: #495057;
}
.chat-feedback-btn.active {
    background: #1565c0;
    color: #fff;
    border-color: #1565c0;
}
.chat-feedback-btn:disabled {
    opacity: 0.5;
    cursor: default;
}

.chat-input-area {
    padding: 12px;
    border-top: 1px solid #dee2e6;
    background: #fff;
}

.chat-input-area .form-control {
    border-radius: 20px;
    font-size: 0.875rem;
}

.chat-send-btn {
    border-radius: 50%;
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

body.rtl .chat-widget {
    right: auto;
    left: 24px;
}

body.rtl .chat-panel {
    right: auto;
    left: 0;
}

body.rtl .chat-msg.user {
    justify-content: flex-start;
}

body.rtl .chat-msg.bot {
    justify-content: flex-end;
}

@media (max-width: 480px) {
    .chat-panel {
        width: calc(100vw - 16px);
        height: calc(100vh - 80px);
        bottom: -16px;
        right: -16px;
        border-radius: 12px 12px 0 0;
    }
}

.admin-sidebar {
    border-radius: 14px;
    border: 1px solid #e6ecf1;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(16, 51, 76, 0.06);
    position: sticky;
    top: 90px;
}

.admin-sidebar-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #fff;
    background: linear-gradient(135deg, #1A5377 0%, #2c6f99 100%);
}

.admin-sidebar-header i {
    font-size: 1.1rem;
    opacity: 0.92;
}

.admin-sidebar-section {
    padding: 6px 8px;
    border-bottom: 1px solid #f1f4f7;
}

.admin-sidebar-section:last-child {
    border-bottom: none;
}

.admin-section-toggle {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    border-radius: 8px;
    transition: color 0.15s;
}

.admin-section-toggle:hover {
    color: #1A5377;
}

.admin-toggle-icon {
    font-size: 0.6rem;
    color: #9aa9b5;
    transition: transform 0.2s;
}

.admin-section-toggle.collapsed .admin-toggle-icon {
    transform: rotate(-90deg);
}

.admin-sidebar-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px 4px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #8595a3;
}

.admin-sidebar-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 12px;
    margin: 2px 0;
    color: #44525e;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 8px;
    transition: background 0.15s, color 0.15s;
}

.admin-sidebar-item i {
    font-size: 0.95rem;
    width: 18px;
    text-align: center;
    color: #8595a3;
    transition: color 0.15s;
}

.admin-sidebar-item:hover {
    background: #eef4f9;
    color: #1A5377;
    text-decoration: none;
}

.admin-sidebar-item:hover i {
    color: #1A5377;
}

.admin-sidebar-item.active {
    background: #1A5377;
    color: #fff;
    box-shadow: 0 3px 8px rgba(26, 83, 119, 0.25);
}

.admin-sidebar-item.active i {
    color: #fff;
}

.admin-sidebar-item.active:hover {
    background: #164863;
    color: #fff;
}

@media (max-width: 991.98px) {
    .admin-sidebar {
        position: static;
        top: auto;
    }
}

.admin-card-header {
    background-color: #E3F0FF !important;
    border-bottom: 1px solid #cce0ff;
}


.admin-tabs .nav-link {
    color: #495057;
    border: none;
    border-bottom: 2px solid transparent;
    background: transparent;
    padding: 8px 16px;
}

.admin-tabs .nav-link.active {
    color: #0d6efd;
    background-color: #E3F0FF;
    border-bottom: 2px solid #0d6efd;
}

.admin-tabs .nav-link:hover:not(.active) {
    background-color: #f0f7ff;
}

.management-tile {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.management-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12) !important;
}

.azure-ad-btn {
    background: transparent;
    border: 1.5px solid #0078d4;
    color: #0078d4;
    transition: all 0.2s ease;
}

.azure-ad-btn:hover {
    background: rgba(0, 120, 212, 0.08);
    border-color: #005a9e;
    color: #005a9e;
}

.azure-ad-btn:active {
    background: rgba(0, 120, 212, 0.15);
}

.confirm-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.confirm-modal-overlay.active {
    opacity: 1;
}

.confirm-modal-box {
    background: #fff;
    border-radius: 16px;
    padding: 32px 28px 24px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    transform: scale(0.9) translateY(10px);
    transition: transform 0.2s ease;
}

.confirm-modal-overlay.active .confirm-modal-box {
    transform: scale(1) translateY(0);
}

.confirm-modal-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #fff3e0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.6rem;
    color: #e65100;
}

.confirm-modal-title {
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
    font-size: 1.15rem;
}

.confirm-modal-message {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 24px;
    line-height: 1.5;
}

.confirm-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.confirm-modal-cancel {
    flex: 1;
    border-radius: 10px;
    padding: 10px 20px;
    font-weight: 600;
    border: 1px solid #dee2e6;
}

.confirm-modal-confirm {
    flex: 1;
    border-radius: 10px;
    padding: 10px 20px;
    font-weight: 600;
}

/* Scoped to the EGDI facts card; retain semantic list markers and hanging indents. */
.egdi-key-facts {
    margin: 0;
    padding-inline-start: 1.3rem;
    list-style-type: disc;
}

.egdi-key-facts > li {
    padding-inline-start: .35rem;
    line-height: 1.6;
}

.egdi-key-facts > li + li {
    margin-top: .85rem;
}

.egdi-key-facts > li::marker {
    color: #1565c0;
    font-size: 1.1em;
}