﻿/* --- CORE VARIABLES & RESET (from skin.css / style.css) --- */
/* Global Variables & Reset */
/* Version: 2026-03-18 09:20 UTC */
:root {

    /* Official HUB Brand Colors */
    --hub-blue: #213368;
    /* Pantone 534 C */
    --hub-red: #A71B28;
    /* Pantone 187 C */

    /* Mapping legacy vars to Brand Colors */
    --hub-gold: #A71B28;
    /* Replaced Gold with Red */
    --hub-teal: #213368;
    /* Replaced Teal with Blue */
    --hub-orange: #A71B28;
    /* Replaced Orange with Red */

    --hub-text: #333333;
    --hub-bg-light: #f8f9fa;

    /* Gradients & Overlays */
    --hub-overlay-blue: rgba(33, 51, 104, 0.85);
    /* Based on Pantone 534 C */
    --hub-overlay-red: rgba(167, 27, 40, 0.85);
    /* Based on Pantone 187 C */

    --hub-gradient-main: linear-gradient(135deg, var(--hub-blue) 0%, var(--hub-red) 100%);
    /* Blue to Red */
    --hub-gradient-gold: linear-gradient(135deg, var(--hub-red) 0%, #7d141e 100%);
    /* Red Gradient */

    --font-heading: 'Roboto', sans-serif;
    --font-body: 'Open Sans', sans-serif;

    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: 1px solid rgba(255, 255, 255, 0.3);
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.08);
}

body {
    font-family: var(--font-body);
    color: var(--hub-text);
    overflow-x: hidden;
    line-height: 1.6;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    /* Offsets sticky header for anchor links */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--hub-blue);
}

/* Utility Classes */
.text-hub-gold {
    color: var(--hub-gold) !important;
}

.text-hub-blue {
    color: var(--hub-blue) !important;
}

/* Elegant Search Box - Compact */
.search-box-elegant {
    position: relative;
    display: flex;
    align-items: center;
    background: transparent;
    border-radius: 50px;
    padding: 2px 10px;
    transition: all 0.3s ease;
    border: 1px solid #dee2e6;
}

.search-box-elegant:hover,
.search-box-elegant:focus-within {
    background: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border-color: var(--hub-blue);
}

.search-input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.85rem;
    color: var(--hub-blue);
    width: 120px;
    padding: 4px;
}

.search-btn {
    border: none;
    background: transparent;
    color: var(--hub-blue);
    cursor: pointer;
    padding: 4px;
    transition: color 0.3s;
    font-size: 0.9rem;
}

.search-btn:hover {
    color: var(--hub-gold);
}

.text-hub-gold-gradient {
    background: var(--hub-gradient-gold);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.tracking-wider {
    letter-spacing: 0.1em;
}

/* Navbar - White Theme with Blue Tint - Compact */
.navbar {
    padding: 8px 0;
    /* Háº¡ tháº¥p thanh (Compact) */
    transition: all 0.4s ease;
    background: rgba(244, 249, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.navbar-brand span {
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
    /* Crisp text on tint */
}

.navbar-scrolled {
    padding: 5px 0;
    background: rgba(235, 245, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.nav-link {
    color: var(--hub-blue) !important;
    font-size: 1.1rem;
    /* Slightly smaller to balance single line text */
    font-weight: 700;
    margin: 0 10px;
    /* Reduced margin slightly to fit everything */
    position: relative;
    opacity: 1;
    transition: color 0.3s;
    white-space: nowrap;
    /* Forces "Trang chá»§", "MÃ´ hÃ¬nh..." to be on 1 line */
}

.nav-link:hover,
.nav-link.active {
    color: var(--hub-orange) !important;
    /* Orange Highlight */
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--hub-orange);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Navbar Toggler (Hamburger) - Make Dark */
.navbar-toggler {
    border-color: rgba(0, 0, 0, 0.1);
}

.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(0, 64, 128, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero Section - UEH Style (HUB Theme) */
.hero-section {
    position: relative;
    min-height: 85vh;
    /* Flexible height */
    padding: 8rem 0;
    /* consistent padding */
    background-image: url('../images/gallery/campus.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Gradient Overlay - Darker for Readability */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            rgba(0, 0, 0, 0.7) 0%,
            rgba(0, 0, 0, 0.4) 50%,
            rgba(0, 0, 0, 0.2) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

/* Typography - UEH Style - Responsive Units */
.hero-title-ueh {
    font-size: 3.5rem;
    /* Base size */
    font-weight: 800;
    line-height: 1.1;
    color: white;
    text-shadow: 2px 2px 15px rgba(0, 0, 0, 0.8);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.hero-subtitle-ueh {
    font-size: 1.25rem;
    font-weight: 500;
    color: white;
    text-shadow: 1px 1px 8px rgba(0, 0, 0, 0.8);
    margin-bottom: 0;
    position: relative;
    top: -5px;
}

/* Floating News Card - Glassmorphism */
.news-card-ueh {
    background: rgba(33, 51, 104, 0.45);
    /* Much more transparent */
    padding: 15px;
    /* Reduced padding to fit text */
    width: fit-content;
    max-width: 450px;
    color: white;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    /* Subtle border */
    border-left: 6px solid var(--hub-red);
    /* Keep accent but rounded */
    border-radius: 12px;
    /* Soft corners */
    backdrop-filter: blur(25px);
    /* Strong blur for readability */
    margin-left: auto;
    margin-bottom: 60px;
    /* Push up from bottom */
}

/* Brighter Date Text */
.news-card-ueh .text-white-50 {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
}

/* Increased Nav Spacing */
.navbar-nav .nav-item {
    padding: 0 12px;
}

.news-link:hover {
    color: var(--hub-gold) !important;
    text-decoration: underline !important;
}

.btn-link-ueh {
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid white;
    padding-bottom: 5px;
    transition: all 0.3s;
    display: inline-block;
}

.btn-link-ueh:hover {
    color: var(--hub-gold);
    border-color: var(--hub-gold);
}


/* Responsive adjustments */
@media (max-width: 991px) {
    .hero-title-ueh {
        font-size: 2.2rem;
    }

    .news-card-ueh {
        margin-top: 40px;
        padding: 20px;
        width: 100%;
    }

    .hero-section {
        height: auto;
        padding: 120px 0 60px;
    }
}

/* Add padding to push content down - Adjusted to be higher */
.hero-content-left {
    padding-top: 15vh;
    /* Moved down as requested */
}

/* Buttons Updated */
.btn-hub-red {
    background-color: var(--hub-red);
    color: white;
    border: none;
    font-weight: 700;
    padding: 12px 35px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(167, 27, 40, 0.5);
    transition: all 0.3s;
}

.btn-hub-red:hover {
    background-color: #8a1520;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(167, 27, 40, 0.7);
    color: white;
}

.btn-hub-outline-white {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: white;
    font-weight: 600;
    padding: 12px 35px;
    border-radius: 50px;
    transition: all 0.3s;
}

.btn-hub-outline-white:hover {
    background: white;
    color: var(--hub-blue);
    border-color: white;
}

/* White Button (Red Text) */
.btn-hub-white {
    background-color: white;
    color: var(--hub-red);
    border: none;
    font-weight: 700;
    padding: 12px 35px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
}

.btn-hub-white:hover {
    background-color: #f0f0f0;
    color: #8a1520;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

/* Custom Buttons */
.btn-hub-primary {
    background: var(--hub-red);
    /* Brand Red */
    color: white;
    font-weight: 700;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(167, 27, 40, 0.4);
    transition: all 0.3s ease;
}

.btn-hub-primary:hover {
    transform: translateY(-3px);
    background: #c8102e;
    /* Slightly brighter red for hover */
    box-shadow: 0 10px 25px rgba(167, 27, 40, 0.6);
    color: white;
}

/* Ghost Button */
.btn-hub-ghost {
    background: transparent;
    border: 2px solid white;
    color: white;
    font-weight: 600;
    padding: 15px 40px;
    border-radius: 50px;
    margin-right: 15px;
    transition: all 0.3s ease;
}

.btn-hub-ghost:hover {
    background: white;
    color: var(--hub-blue);
    /* Brand Blue on Hover */
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

.btn-hub-secondary {
    background: var(--hub-blue);
    /* Brand Blue */
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-weight: 600;
    padding: 15px 40px;
    border-radius: 50px;
    margin-left: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(33, 51, 104, 0.3);
}

.btn-hub-secondary:hover {
    background: #17244a;
    /* Darker Blue */
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(33, 51, 104, 0.5);
}

/* Animations */
.animate-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Scroll Indicator */
.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    opacity: 0.8;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid white;
    border-radius: 20px;
    margin: 0 auto 10px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: white;
    border-radius: 2px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% {
        top: 10px;
        opacity: 1;
    }

    100% {
        top: 30px;
        opacity: 0;
    }
}

/* About Section */
.about-section {
    background-color: white;
    position: relative;
    padding: 100px 0;
}

.about-img {
    border-radius: 20px;
    box-shadow: var(--shadow-hover);
    transition: transform 0.4s ease;
}

.about-img:hover {
    transform: scale(1.02);
}

.section-label {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--hub-gold);
    margin-bottom: 10px;
    display: block;
}

.check-list li {
    padding-left: 35px;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.check-list li::before {
    font-size: 1.2rem;
}

/* SDG Section */
.sdg-section {
    background-color: var(--hub-bg-light);
    padding: 100px 0;
}

.flip-card {
    background-color: transparent;
    perspective: 1000px;
    margin-bottom: 25px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-radius: 12px;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 12px;
    overflow: hidden;
}

.flip-card-front {
    background-color: #fff;
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.flip-card-back {
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 12px;
    color: white;
    position: relative;
}

.flip-card-back::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(0,0,0,0.1) 100%);
    z-index: 1;
}

.flip-card-back > * {
    position: relative;
    z-index: 2;
}

.flip-sdg-title {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.flip-stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: #ffd700; /* Rich Gold */
    margin-bottom: 0px;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.flip-stat-label {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.btn-flip-detail {
    background-color: white !important;
    color: #333 !important;
    border: none !important;
    border-radius: 20px !important;
    padding: 4px 18px !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15) !important;
    text-transform: none !important;
}

.btn-flip-detail:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2) !important;
    background-color: #fff !important;
    opacity: 0.95;
}

.flip-card-sm {
    height: 165px;
}

/* Achievements Section */
/* Achievements Section Revamp */
.achievements-section {
    padding: 100px 0;
    position: relative;
}

.bg-pattern-grey {
    background-color: #f8f9fa;
    background-image: radial-gradient(#cfd4da 1.5px, transparent 1.5px);
    background-size: 24px 24px;
}

.floating-icon {
    display: inline-block;
    font-size: 3rem;
    color: var(--hub-blue);
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.counter-number {
    font-family: var(--font-heading);
    color: var(--hub-gold);
    font-weight: 900;
    font-size: 3.5rem;
    line-height: 1;
    display: block;
    margin-bottom: 10px;
    /* Text Shadow for pop */
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.1);
}

.counter-label {
    color: var(--hub-blue);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.counter-label::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background-color: var(--hub-gold);
    border-radius: 2px;
}

/* Footer */
.footer-section {
    background-color: #001a33;
    padding-top: 80px;
    padding-bottom: 30px;
    font-size: 0.95rem;
}

/* Glass Card (Hero) */
.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: var(--glass-border);
    border-radius: 15px;
    padding: 2rem;
    color: white;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

.glass-card h3 {
    color: var(--hub-gold);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Overlay Gradient Helper */
.overlay-gradient {
    position: relative;
    background-size: cover;
    background-position: center;
}

/* 3D Flip Cards */
.flip-card {
    background-color: transparent;
    width: 100%;
    height: 400px;
    perspective: 1000px;
    margin-bottom: 30px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    border-radius: 20px;
    box-shadow: var(--shadow-card);
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 20px;
    overflow: hidden;
    /* Ensure content obeys border-radius */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
}

.flip-card-front {
    background-color: white;
    color: var(--hub-blue);
}

.flip-card-front img {
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.flip-card-back {
    color: white;
    transform: rotateY(180deg);
    justify-content: center;
    align-items: center;
    padding: 12px;
    /* Prevent edge overflow */
    /* Background color set via JS */
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    /* Tighter gap */
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.1);
    /* Inner shadow for depth */
}

/* Back Title: "SDG 1" */
.flip-card-back h3 {
    margin-bottom: 2px;
    font-size: 1.2rem;
    /* Compact */
    font-weight: 800;
    text-transform: uppercase;
}

/* Stats Value: "100%" */
.flip-stat-number {
    font-size: 2rem;
    /* Still Big but focused */
    font-weight: 900;
    line-height: 1;
    color: #ffc107;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Stats Label: "Suáº¥t Äƒn" */
.flip-stat-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffc107;
    line-height: 1.1;
    margin-bottom: 5px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Detail Button */
.btn-detail-custom {
    background-color: white;
    color: #333;
    /* Darker text for contrast */
    font-weight: 800;
    border-radius: 50px;
    padding: 6px 20px;
    /* Compact padding */
    font-size: 0.85rem;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.1);
    /* "Pop up" 3D effect */
    transition: all 0.2s ease;
    border: none;
    text-transform: capitalize;
}

.btn-detail-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
    background-color: #fff;
    color: #000;
}

.flip-action {
    margin-top: 20px;
    font-size: 0.9rem;
    font-style: italic;
    opacity: 0.9;
}

/* Small Flip Card for Grid */
.flip-card-sm {
    height: 180px;
    /* More square-like */
    margin-bottom: 0;
}

.flip-card-sm .flip-card-front,
.flip-card-sm .flip-card-back {
    padding: 15px;
}

.flip-card-sm .flip-stat-number {
    font-size: 1.1rem;
}

.flip-card-sm img {
    width: 60px;
    height: 60px;
}

.overlay-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 64, 128, 0.7) 0%, rgba(0, 42, 92, 0.9) 100%);
    z-index: 1;
}

.overlay-gradient>* {
    position: relative;
    z-index: 2;
}


/* New SDG Icon Image Style - User Provided Images */
/* Compact SDG Grid - UEH Style (6 Cols) */
.flip-card {
    background-color: transparent;
    width: 100%;
    height: 160px;
    /* Taller to fit content */
    perspective: 1000px;
    margin-bottom: 0;
}

/* Gallery Hover Effect */
.hover-zoom {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.hover-zoom:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15) !important;
    z-index: 10;
}

/* New SDG Icon Image Style */
.sdg-icon-img {
    width: 100px;
    /* Big & Balanced */
    height: 100px;
    object-fit: contain;
    /* Show Original Colors (No Filter) */
    opacity: 1;
    transition: transform 0.3s ease;
    display: block;
    z-index: 10;
}

.flip-card:hover .sdg-icon-img {
    transform: scale(1.15);
}

/* Strategy Diagram (SVG) */
.strategy-wrapper {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.strategy-svg {
    width: 100%;
    height: auto;
    overflow: visible;
}

.strategy-icons-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.strategy-icon {
    position: absolute;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 1.5rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    z-index: 10;
}

/* Tooltip or interactions can be added here */
.strategy-svg path:hover {
    filter: brightness(1.1);
    cursor: pointer;
    transition: filter 0.3s;
}

/* Sankey Diagram Container */
#sankey-chart {
    width: 100%;
    height: 600px;
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: var(--shadow-card);
}

/* --- IMPACT DASHBOARD STYLES --- */
.dashboard-section {
    background-color: #f8f9fa;
    padding-top: 50px;
    padding-bottom: 80px;
}

.dashboard-title {
    color: var(--hub-blue);
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 20px;
}

.dashboard-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--hub-gold);
}

/* Metric Cards */
.dash-metric-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    border-left: 5px solid var(--hub-blue);
    transition: transform 0.3s;
    margin-bottom: 20px;
}

.dash-metric-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.dash-metric-icon {
    font-size: 2.5rem;
    color: var(--hub-gold);
    margin-right: 20px;
    width: 50px;
    text-align: center;
}

.dash-metric-info h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--hub-blue);
    margin: 0;
    line-height: 1;
}

.dash-metric-info p {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* SDG Filter Scroll */
.sdg-filter-container {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding: 10px 5px 20px 5px;
    margin-bottom: 30px;
    scrollbar-width: thin;
    scrollbar-color: var(--hub-blue) #eee;
    justify-content: flex-start;
    /* Or center if few items */
}

/* Hide scrollbar for Chrome/Safari/Opera */
.sdg-filter-container::-webkit-scrollbar {
    height: 8px;
}

.sdg-filter-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.sdg-filter-container::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.sdg-filter-container::-webkit-scrollbar-thumb:hover {
    background: var(--hub-blue);
}

.sdg-filter-item {
    min-width: 60px;
    width: 60px;
    height: 60px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0.5;
    filter: grayscale(100%);
    border: 3px solid transparent;
    overflow: hidden;
    position: relative;
    background: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.sdg-filter-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sdg-filter-item:hover,
.sdg-filter-item.active {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.15);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.sdg-filter-item.active {
    border-color: var(--hub-blue);
}

/* Dashboard Pillar Grid */
.dash-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    padding: 25px;
    height: 100%;
    border-top: 5px solid var(--hub-blue);
    position: relative;
    overflow: hidden;
}

/* Color Coding Pillars */
.border-research {
    border-top-color: var(--hub-blue);
}

.border-teaching {
    border-top-color: #b38600;
    /* Match text color */
}

.border-steward {
    border-top-color: #28a745;
}

/* Green */
.border-outreach {
    border-top-color: var(--hub-red);
}

.dash-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.dash-card-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--hub-blue);
    text-transform: uppercase;
    margin: 0;
    letter-spacing: 0.5px;
}

.dash-card-icon {
    font-size: 1.2rem;
    color: #ccc;
}

.border-research .dash-card-title {
    color: var(--hub-blue);
}

.border-teaching .dash-card-title {
    color: #b38600;
}

/* Darker Gold */
.border-steward .dash-card-title {
    color: #1e7e34;
}

.border-outreach .dash-card-title {
    color: var(--hub-red);
}

/* Charts */
.dash-chart-container {
    width: 100%;
    min-height: 280px;
}

/* Progress Bars Custom */
.progress-wrapper {
    margin-bottom: 15px;
}

.progress-label {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #555;
    display: flex;
    justify-content: space-between;
}

.progress-custom {
    height: 12px;
    border-radius: 6px;
    background-color: #e9ecef;
    overflow: hidden;
}

.progress-bar-custom {
    height: 100%;
    border-radius: 6px;
    background: linear-gradient(90deg, #28a745, #20c997);
    transition: width 1s ease-in-out;
}

/* Submit Button Area */
.dash-submit-area {
    margin-top: 50px;
    text-align: center;
}

.btn-submit-evidence {
    background: var(--hub-red);
    color: white;
    font-weight: 700;
    padding: 15px 40px;
    border-radius: 50px;
    border: none;
    box-shadow: 0 5px 15px rgba(167, 27, 40, 0.3);
    transition: all 0.3s;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-submit-evidence:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(167, 27, 40, 0.5);
    background: #8a1520;
    color: white;
}

/* Chatbot Widget (Hubi) */
.hubi-chatbot-widget {
    position: fixed;
    bottom: 30px;
    left: 15px;
    /* Moved further Left */
    z-index: 9999;
    font-family: 'Roboto', sans-serif;
}

.hubi-mascot {
    width: 120px;
    height: 120px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* 3D Floating Effect */
    box-shadow:
        0 10px 20px rgba(0, 0, 0, 0.15),
        inset 0 4px 8px rgba(255, 255, 255, 0.5),
        inset 0 -4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    background: white;
    /* Fallback */
    border: 5px solid white;
    /* Thicker white border */
    /* Thicker white border */
    padding: 0;
    overflow: hidden;
    position: relative;
    animation: float 3s ease-in-out infinite;
    /* Force Circle Clipping */
    clip-path: circle(50% at 50% 50%);
    -webkit-clip-path: circle(50% at 50% 50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.hubi-mascot:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow:
        0 15px 30px rgba(0, 0, 0, 0.2),
        inset 0 4px 8px rgba(255, 255, 255, 0.8);
}

.hubi-mascot img {
    width: 85%;
    /* Shrink to fit inside without corners touching */
    height: 85%;
    object-fit: contain;
    border-radius: 50%;
    /* Double safety */
}

/* Notification Badge */
.hubi-notification {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 15px;
    height: 15px;
    background-color: var(--hub-red);
    border-radius: 50%;
    border: 2px solid white;
    z-index: 2;
}

/* Chat Popup */
.hubi-popup {
    position: absolute;
    bottom: 130px;
    /* Adjusted for smaller mascot/popup spacing */
    left: 0;
    /* Align to left now */
    width: 250px;
    /* Smaller width */
    background: rgba(108, 149, 219, 0.95);
    /* Blue Glass based on User Request */
    backdrop-filter: blur(10px);
    border-radius: 15px;
    /* Smaller border radius */
    padding: 15px 15px;
    /* Smaller padding */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    transform-origin: bottom left;
    /* Origin changed to left */
    transform: scale(0);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
}

.hubi-popup.active {
    transform: scale(1);
    opacity: 1;
    pointer-events: all;
}

.hubi-avatar-small {
    width: 60px;
    /* Smaller avatar */
    height: 60px;
    background: white;
    border-radius: 50%;
    margin: -45px auto 10px;
    /* Adjusted margin */
    padding: 3px;
    /* Reduced padding slightly */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    /* Fix for square corners */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    clip-path: circle(50% at 50% 50%);
    -webkit-clip-path: circle(50% at 50% 50%);
}

.hubi-avatar-small img {
    width: 90%;
    height: 90%;
    object-fit: contain;
    border-radius: 50%;
}

.hubi-title {
    font-size: 1.1rem;
    /* Smaller title */
    font-weight: 700;
    margin-bottom: 5px;
}

.hubi-message {
    font-size: 0.85rem;
    /* Smaller message */
    margin-bottom: 15px;
    line-height: 1.4;
    opacity: 0.95;
}

.hubi-hotline {
    font-size: 1rem;
    /* Smaller hotline */
    font-weight: 700;
    margin-bottom: 15px;
    display: block;
    color: white;
    text-decoration: none;
}

.hubi-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.hubi-btn {
    width: 35px;
    /* Smaller buttons */
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    color: #0084FF;
    /* Messenger Blue */
    font-size: 1.1rem;
    text-decoration: none;
    transition: transform 0.2s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.hubi-btn:hover {
    transform: translateY(-3px);
}

.hubi-btn.phone {
    color: #4CAF50;
}

/* Modern Footer - Blue Theme & Compact */
.footer-modern {
    background-color: #003B70;
    /* HUB Blue */
    color: white;
    padding-top: 0;
    /* Reduced to 0 as requested */
    padding-bottom: 0;
    /* Reduced to save height */
    font-size: 0.8rem;
    /* Slightly smaller font */
    font-family: 'Roboto', sans-serif;
}

.footer-modern h5 {
    color: white;
    /* White titles */
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
    /* Reduced from 15px */
    font-size: 0.95rem;
    /* Slightly smaller title */
    position: relative;
    padding-bottom: 5px;
    /* Reduced from 8px */
    display: inline-block;
    /* Make underline width match text */
}

/* Underline for titles */
.footer-modern h5::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    /* Match text width */
    height: 2px;
    /* Reduced height */
    background-color: #DDA63A;
    /* Gold underline for contrast on blue */
}

/* Desktop alignment for footer headers (Cols 2, 3, 4) */
@media (min-width: 992px) {

    .footer-modern .col-lg-2 h5,
    .footer-modern .col-lg-3 h5 {
        margin-top: 1.75rem;
        /* 28px -> 1.75rem */
    }

    /* Negative margin ONLY on Desktop to avoid mobile overlap */
    .footer-link-raise-desktop {
        margin-top: -3.75rem !important;
        /* -60px -> -3.75rem */
    }
}

/* Mobile & Tablet Adjustments */
@media (max-width: 991px) {

    .footer-modern .col-lg-2 h5,
    .footer-modern .col-lg-3 h5 {
        margin-top: 1.5rem;
        /* Standard spacing on mobile */
    }

    .footer-link-raise-desktop {
        margin-top: 0 !important;
        /* Reset on mobile */
    }

    .strategy-wrapper {
        margin-top: 3rem;
        max-width: 80%;
        margin-left: auto;
        margin-right: auto;
    }
}

.footer-logo-white {
    filter: brightness(0) invert(1);
    /* Turns colored logo to white */
    opacity: 0.95;
    margin-bottom: 10px;
    height: 60px !important;
    /* Force smaller logo */
    width: auto;
}

.footer-modern a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: all 0.2s;
    display: block;
    margin-bottom: 4px;
    /* Reduced from 6px */
}

.footer-modern a:hover {
    color: #DDA63A;
    /* Gold hover */
    text-decoration: none;
    transform: translateX(3px);
}

.footer-logo-white {
    filter: brightness(0) invert(1);
    /* Turns colored logo to white */
    opacity: 0.95;
    margin-bottom: 10px;
    /* Reduced from 15px */
    height: 70px !important;
    /* Force smaller logo */
}

.footer-modern .social-icons a {
    display: inline-block;
    margin-right: 8px;
    /* Reduced from 10px */
    font-size: 1rem;
    /* Slightly smaller icons */
    color: white;
    background: rgba(255, 255, 255, 0.1);
    width: 30px;
    /* Smaller icon circle */
    height: 30px;
    border-radius: 50%;
    text-align: center;
    line-height: 30px;
    transition: all 0.3s;
}

.footer-modern .social-icons a:hover {
    background: #DDA63A;
    /* Gold background on hover */
    color: #003B70;
    /* Blue icon on hover */
    transform: translateY(-3px);
}

.footer-bottom-modern {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: 0;
    /* Removed to save height */
    padding-top: 0;
    /* Removed to save height */
    text-align: center;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

.hubi-btn.zalo {
    color: #0068FF;
    font-weight: 900;
    font-family: sans-serif;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- PDCA REPLICA STYLES --- */
.hub-pdca-container {
    --plan-color: #00ac4e;
    --do-color: #006eb6;
    --check-color: #e31837;
    --act-color: #f7a800;
    position: relative;
    width: 700px;
    height: 700px;
    margin: 0 auto;
}

/* Outer Rings Backgrounds & Glowing Effects */
.glow-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    pointer-events: none;
}

.ring-1 {
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0) 60%, rgba(200, 200, 200, 0.1) 70%);
}

.ring-2 {
    width: 580px;
    height: 580px;
    border: 1px solid rgba(220, 220, 220, 0.4);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.02), 0 0 20px rgba(0, 0, 0, 0.02);
    background: white;
}

/* Outer Text Path Ring */
.text-ring-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.text-path-top,
.text-path-bottom {
    fill: none;
}

.circular-text {
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 5px;
    fill: #004080;
    text-anchor: middle;
    text-transform: uppercase;
}

/* The Main SVG for PDCA Segments */
.pdca-svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.1));
    z-index: 5;
}

/* Segment Styling */
.pdca-segment {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: 250px 250px;
    cursor: pointer;
}

.pdca-segment:hover {
    transform: scale(1.05);
    filter: brightness(1.1) drop-shadow(0 10px 15px rgba(0, 0, 0, 0.2));
    z-index: 10;
}

/* Hover effects for specific segments to show outer glowing dot */
.pdca-segment:hover~.glowing-dots .dot {
    opacity: 0;
}

.pdca-segment[data-phase="plan"]:hover~.glowing-dots .dot-plan {
    opacity: 1;
    transform: scale(1.5);
}

.pdca-segment[data-phase="do"]:hover~.glowing-dots .dot-do {
    opacity: 1;
    transform: scale(1.5);
}

.pdca-segment[data-phase="check"]:hover~.glowing-dots .dot-check {
    opacity: 1;
    transform: scale(1.5);
}

.pdca-segment[data-phase="act"]:hover~.glowing-dots .dot-act {
    opacity: 1;
    transform: scale(1.5);
}

.segment-path {
    stroke-width: 60;
    fill: none;
    stroke-linecap: butt;
}

/* Arrows between segments */
.segment-arrow {
    fill: white;
    pointer-events: none;
}

/* Text inside segments */
.segment-text {
    font-size: 20px;
    font-weight: 700;
    fill: white;
    text-anchor: middle;
    dominant-baseline: middle;
    pointer-events: none;
    letter-spacing: 1px;
}

/* Segment Icons */
.segment-icon-g {
    fill: white;
    pointer-events: none;
}

/* Center Circle Area */
.center-area {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    height: 250px;
    background: white;
    border-radius: 50%;
    z-index: 20;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.05), 0 0 30px rgba(0, 0, 0, 0.05);
    border: 8px solid white;
}

/* Inner glowing border of the center circle */
.center-area::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border-radius: 50%;
    border: 1px solid rgba(0, 64, 128, 0.1);
    pointer-events: none;
}

.center-logo {
    width: 140px;
    margin-bottom: 5px;
    z-index: 21;
}

.center-title {
    color: #00ac4e;
    font-size: 16px;
    font-weight: 800;
    margin: 0;
    line-height: 1.1;
    text-align: center;
    letter-spacing: 0.5px;
    z-index: 21;
}

.center-subtitle {
    color: #888;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    margin-top: 2px;
    z-index: 21;
}

/* The horizontal separator line in center */
.center-divider {
    width: 50px;
    height: 2px;
    background-color: #006eb6;
    margin-top: 8px;
    z-index: 21;
}

/* Outer Glowing Dots and Dashed Lines */
.dotted-rings {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    animation: spin-slow 60s linear infinite;
}

@keyframes spin-slow {
    100% {
        transform: rotate(360deg);
    }
}

.glowing-dots {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

.dot {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: white;
    transition: all 0.3s ease;
}

/* Position the 4 dots exactly at the middle of the outer ring for each quadrant */
/* Top (Plan) */
.dot-plan {
    top: 8%;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 10px 3px var(--plan-color);
    background: var(--plan-color);
}

/* Right (Do) */
.dot-do {
    top: 50%;
    right: 8%;
    transform: translateY(-50%);
    box-shadow: 0 0 10px 3px var(--do-color);
    background: var(--do-color);
}

/* Bottom (Check) */
.dot-check {
    bottom: 8%;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 10px 3px var(--check-color);
    background: var(--check-color);
}

/* Left (Act) */
.dot-act {
    top: 50%;
    left: 8%;
    transform: translateY(-50%);
    box-shadow: 0 0 10px 3px var(--act-color);
    background: var(--act-color);
}

/* Sparkles for modern look */
.sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 0 8px 2px rgba(255, 255, 255, 0.8);
    animation: twinkle 3s infinite alternate;
    z-index: 1;
}

.sp-1 {
    top: 20%;
    left: 20%;
    box-shadow: 0 0 12px 3px rgba(247, 168, 0, 0.6);
}

.sp-2 {
    bottom: 15%;
    right: 25%;
    box-shadow: 0 0 10px 2px rgba(0, 110, 182, 0.6);
}

.sp-3 {
    top: 30%;
    right: 15%;
    box-shadow: 0 0 8px 2px rgba(0, 172, 78, 0.6);
}

@keyframes twinkle {
    0% {
        opacity: 0.2;
        transform: scale(0.8);
    }

    100% {
        opacity: 1;
        transform: scale(1.2);
    }
}
/* --- INDEX SPECIFIC STYLES --- */
@keyframes spin-cw {
                            from {
                                transform: rotate(0deg);
                            }

                            to {
                                transform: rotate(360deg);
                            }
                        }

                        @keyframes pulse-glow {
                            0% {
                                box-shadow: 0 0 20px rgba(0, 172, 78, 0.2), inset 0 0 20px rgba(0, 172, 78, 0.1);
                            }

                            50% {
                                box-shadow: 0 0 40px rgba(0, 172, 78, 0.5), inset 0 0 30px rgba(0, 172, 78, 0.2);
                            }

                            100% {
                                box-shadow: 0 0 20px rgba(0, 172, 78, 0.2), inset 0 0 20px rgba(0, 172, 78, 0.1);
                            }
                        }

                        .rich-pdca-wrapper {
                            position: relative;
                            width: 600px;
                            height: 600px;
                            margin: 0 auto;
                            border-radius: 50%;
                            padding: 10px;
                            background: linear-gradient(135deg, white 0%, #f8f9fa 100%);
                            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1), inset 0 -5px 15px rgba(0, 0, 0, 0.05);
                        }

                        .rich-pdca-wheel {
                            width: 100%;
                            height: 100%;
                            border-radius: 50%;
                            overflow: hidden;
                            position: relative;
                            -webkit-mask-image: -webkit-radial-gradient(white, black);
                            mask-image: radial-gradient(white, black);
                            animation: spin-cw 30s linear infinite;
                        }

                        .rich-pdca-wheel img {
                            width: 105%;
                            height: 105%;
                            object-fit: center;
                            position: absolute;
                            top: 50%;
                            left: 50%;
                            transform: translate(-50%, -50%);
                        }

                        .rich-pdca-center {
                            position: absolute;
                            top: 50%;
                            left: 50%;
                            transform: translate(-50%, -50%);
                            width: 220px;
                            height: 220px;
                            background: white;
                            border-radius: 50%;
                            z-index: 10;
                            display: flex;
                            flex-direction: column;
                            align-items: center;
                            justify-content: center;
                            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15), inset 0 0 15px rgba(242, 169, 0, 0.1);
                            animation: pulse-glow 4s ease-in-out infinite;
                            border: 5px solid white;
                        }

                        .rich-pdca-center::before {
                            content: '';
                            position: absolute;
                            top: -12px;
                            left: -12px;
                            right: -12px;
                            bottom: -12px;
                            border: 2px dashed rgba(242, 169, 0, 0.4);
                            border-radius: 50%;
                            animation: spin-cw 20s linear infinite;
                            pointer-events: none;
                        }

.masonry-grid {
                    column-count: 1;
                    column-gap: 1.5rem;
                }

                @media (min-width: 768px) {
                    .masonry-grid {
                        column-count: 2;
                    }
                }

                @media (min-width: 992px) {
                    .masonry-grid {
                        column-count: 3;
                    }
                }

                .masonry-item {
                    break-inside: avoid;
                    margin-bottom: 1.5rem;
                    display: inline-block;
                    width: 100%;
                }

                .hover-scale {
                    transition: transform 0.2s;
                }

                .hover-scale:hover {
                    transform: scale(1.1);
                }

                .hide-scrollbar::-webkit-scrollbar {
                    display: none;
                }

                .hide-scrollbar {
                    -ms-overflow-style: none;
                    scrollbar-width: none;
                }

                .tag-cloud-btn {
                    background-color: transparent;
                    border: 1px solid #dee2e6;
                    color: #495057;
                    border-radius: 50rem;
                    padding: 0.4rem 1.2rem;
                    font-size: 0.9rem;
                    font-weight: 600;
                    transition: all 0.2s;
                }

                .tag-cloud-btn:hover,
                .tag-cloud-btn.active {
                    background-color: #004080;
                    color: white;
                    border-color: #004080;
                }

                /* Custom Horizontal Timeline Filter */
                .news-timeline-container {
                    position: relative;
                    max-width: 600px;
                    margin: 0 auto;
                    padding: 20px 0;
                }

                .news-timeline-line {
                    position: absolute;
                    top: 29px;
                    left: 20px;
                    right: 20px;
                    height: 1px;
                    background-color: #dee2e6;
                    z-index: 1;
                }

                .news-timeline-steps {
                    display: flex;
                    justify-content: space-between;
                    position: relative;
                    z-index: 2;
                }

                .news-timeline-step {
                    display: flex;
                    flex-direction: column;
                    align-items: center;
                    cursor: pointer;
                    width: 40px;
                }

                .news-timeline-dot {
                    width: 18px;
                    height: 18px;
                    border-radius: 50%;
                    background-color: white;
                    border: 2px solid #aeb2b7;
                    transition: all 0.3s ease;
                    margin-bottom: 8px;
                }

                .news-timeline-step:hover .news-timeline-dot {
                    border-color: #A21942;
                }

                .news-timeline-step.active .news-timeline-dot {
                    background-color: #A21942;
                    border-color: #A21942;
                    box-shadow: 0 0 0 3px rgba(162, 25, 66, 0.2);
                }

                .news-timeline-year {
                    font-size: 0.85rem;
                    font-weight: 600;
                    color: #6c757d;
                    transition: all 0.3s ease;
                }

                .news-timeline-step:hover .news-timeline-year,
                .news-timeline-step.active .news-timeline-year {
                    color: #A21942;
                }

                .sdg-map-icon {
                    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.3s ease, opacity 0.3s ease;
                    filter: grayscale(100%);
                    opacity: 0.6;
                }

                .sdg-map-icon-container:hover .sdg-map-icon {
                    transform: translateY(-4px) scale(1.1);
                    filter: grayscale(0%);
                    opacity: 1;
                }

                .sdg-map-icon-container {
                    position: relative;
                    display: inline-block;
                    margin: 0 4px;
                    padding-bottom: 22px;
                    cursor: pointer;
                }

                .sdg-map-icon-container.focus .sdg-map-icon {
                    transform: translateY(-6px) scale(1.15);
                    filter: grayscale(0%);
                    opacity: 1;
                    border: 2px solid;
                    border-radius: 8px;
                    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
                    padding: 2px;
                    background: white;
                }

                .focus-badge {
                    position: absolute;
                    bottom: 0px;
                    left: 50%;
                    transform: translateX(-50%) scale(0);
                    font-size: 0.65rem;
                    font-weight: 700;
                    padding: 3px 8px;
                    border-radius: 50px;
                    color: white;
                    opacity: 0;
                    transition: transform 0.3s ease, opacity 0.3s ease;
                    pointer-events: none;
                    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
                }

                .sdg-map-icon-container.focus .focus-badge {
                    transform: translateX(-50%) scale(1);
                    opacity: 1;
                }

                .sdg-c-4 {
                    border-color: #C5192D !important;
                }

                .sdg-bg-4 {
                    background-color: #C5192D !important;
                }

                .sdg-c-8 {
                    border-color: #A21942 !important;
                }

                .sdg-bg-8 {
                    background-color: #A21942 !important;
                }

                .sdg-c-16 {
                    border-color: #00689D !important;
                }

                .sdg-bg-16 {
                    background-color: #00689D !important;
                }

                .sdg-c-17 {
                    border-color: #19486A !important;
                }

                .sdg-bg-17 {
                    background-color: #19486A !important;
                }

.custom-modal-tabs .nav-link.active {
                    color: #fff !important;
                }



/* --- SDG DETAIL STYLES --- */
:root {
            --sdg-color: #E5243B; /* Default SDG 1 */
        }

        .sdg-header-bar {
            background-color: var(--sdg-color);
            padding: 140px 0 40px 0;
            display: flex;
            align-items: center;
            min-height: 280px;
        }

        .sdg-icon-box {
            width: 80px;
            height: 80px;
            background: rgba(255, 255, 255, 0.15);
            border-radius: 12px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            font-weight: 900;
            line-height: 1;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.3);
            backdrop-filter: blur(5px);
        }

        .sdg-number {
            font-size: 1.5rem;
            color: white;
            margin-bottom: 0;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
        }

        .sdg-title-text {
            font-family: 'Roboto', sans-serif;
            font-weight: 700;
            text-transform: uppercase;
            line-height: 1.2;
            font-size: 1.8rem;
            color: white;
            margin-bottom: 4px;
        }

        .sdg-subtitle-text {
            font-family: 'Open Sans', sans-serif;
            font-size: 1.1rem;
            color: rgba(255, 255, 255, 0.85);
            line-height: 1.3;
            font-weight: 400;
        }

        .infographic-strip {
            background-color: #fcfcfc;
            padding: 60px 0;
            position: relative;
            text-align: center;
        }

        .infographic-header {
            margin-bottom: 40px;
        }

        .infographic-badge {
            background: var(--sdg-color);
            color: white;
            padding: 4px 15px;
            border-radius: 6px;
            font-size: 0.75rem;
            font-weight: 700;
            display: inline-block;
            margin-bottom: 15px;
            text-transform: uppercase;
        }

        .infographic-title {
            font-family: 'Roboto', sans-serif;
            color: #1a365d;
            font-weight: 700;
            font-size: 1.8rem;
            max-width: 800px;
            margin: 0 auto;
            line-height: 1.3;
            text-transform: uppercase;
            position: relative;
            padding-bottom: 15px;
        }

        .infographic-title::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 300px;
            height: 3px;
            background-color: var(--sdg-color);
        }

        .info-highlight-box {
            border: 2px solid var(--sdg-color);
            padding: 35px 20px;
            border-radius: 8px;
            height: 100%;
            background: white;
            transition: all 0.3s ease;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }

        .info-highlight-box:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 30px rgba(0,0,0,0.08);
        }

        .info-icon {
            font-size: 1.8rem;
            color: #718096;
            margin-bottom: 20px;
        }

        .info-stat {
            font-size: 2.8rem;
            font-weight: 700;
            color: var(--sdg-color);
            line-height: 1;
            margin-bottom: 15px;
        }

        .info-label {
            font-weight: 700;
            font-size: 0.75rem;
            color: #4a5568;
            line-height: 1.6;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        /* Image Gallery */
        .image-gallery-section {
            background-color: #f8fafc;
            border-radius: 12px;
            padding: 30px;
            margin-top: 40px;
        }
        
        .gallery-img-wrapper {
            position: relative;
            border-radius: 12px;
            overflow: hidden;
            aspect-ratio: 16/9;
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        }

        .gallery-img-wrapper img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }

        .gallery-img-wrapper:hover img {
            transform: scale(1.05);
        }

        /* Footer Synced with index.html */
        .footer-modern {
            background-color: #003B70;
            color: white;
            padding: 40px 0 0;
            font-size: 0.85rem;
            font-family: 'Roboto', sans-serif;
        }
        .footer-modern h5 {
            color: white;
            font-weight: 700;
            text-transform: uppercase;
            margin-bottom: 20px;
            font-size: 1rem;
            position: relative;
            padding-bottom: 8px;
            display: inline-block;
        }
        .footer-modern h5::after {
            content: '';
            position: absolute;
            left: 0;
            bottom: 0;
            width: 100%;
            height: 2px;
            background-color: #DDA63A;
        }
        .footer-modern a {
            color: rgba(255, 255, 255, 0.8);
            text-decoration: none;
            transition: all 0.2s;
            display: block;
            margin-bottom: 8px;
        }
        .footer-modern a:hover {
            color: #DDA63A;
            transform: translateX(5px);
        }
        .footer-logo-white {
            filter: brightness(0) invert(1);
            height: 60px;
            margin-bottom: 20px;
        }
        .footer-bottom-modern {
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            margin-top: 30px;
            padding: 20px 0;
            text-align: center;
            font-size: 0.8rem;
            color: rgba(255, 255, 255, 0.5);
        }
        .social-icons a {
            display: inline-block;
            width: 35px;
            height: 35px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            text-align: center;
            line-height: 35px;
            color: white;
            margin-right: 10px;
            transition: all 0.3s;
        }
        .social-icons a:hover {
            background: #DDA63A;
            color: #003B70;
            transform: translateY(-3px);
        }

        /* Sidebar Enhancements */
        .sidebar-card {
            border: none;
            overflow: hidden;
            transition: transform 0.3s;
        }
        .sidebar-card:hover {
            transform: translateY(-5px);
        }
        .report-cta-card {
            background: linear-gradient(135deg, #A71B28 0%, #7d141e 100%);
            color: white;
        }
        .report-cta-card .btn-light {
            color: #A71B28;
            font-weight: 700;
        }
        .contact-sidebar-card {
            border-left: 4px solid var(--sdg-color);
        }

/* --- NEWS DETAIL STYLES --- */
/* Specific Styles for News Detail */
        .article-title {
            font-family: 'Roboto', sans-serif;
            font-size: 2.2rem;
            font-weight: 700;
            color: #004080;
            /* HUB Blue */
            line-height: 1.3;
            margin-bottom: 20px;
        }

        .article-meta {
            font-size: 0.95rem;
            color: #666;
            margin-bottom: 30px;
            padding-bottom: 15px;
            border-bottom: 1px solid #eee;
        }

        .article-content {
            font-family: 'Inter', sans-serif;
            font-size: 1.1rem;
            line-height: 1.8;
            color: #333;
        }

        .article-content h3 {
            color: #004080;
            font-weight: 700;
            margin-top: 30px;
            margin-bottom: 15px;
        }

        .article-content img {
            max-width: 100%;
            height: auto;
            border-radius: 8px;
            margin: 20px 0;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
        }

        .article-content ul,
        .article-content ol {
            padding-left: 20px;
            margin-bottom: 20px;
        }

        .article-content li {
            margin-bottom: 10px;
        }

        .sidebar-title {
            font-size: 1.2rem;
            font-weight: 700;
            color: #004080;
            border-bottom: 3px solid #F2A900;
            /* HUB Gold */
            padding-bottom: 10px;
            margin-bottom: 20px;
            display: inline-block;
        }

        .related-news-item {
            margin-bottom: 20px;
            transition: all 0.3s ease;
        }

        .related-news-item:hover {
            transform: translateX(5px);
        }

        .related-news-item a {
            color: #333;
            text-decoration: none;
            font-weight: 600;
            line-height: 1.4;
            display: block;
        }

        .related-news-item a:hover {
            color: #004080;
        }

        /* Breadcrumb customization */
        .breadcrumb-item a {
            color: #004080;
            text-decoration: none;
        }

        .breadcrumb-item a:hover {
            text-decoration: underline;
        }

        .breadcrumb-item.active {
            color: #666;
        }

        /* Top Banner for inner page */
        .inner-page-banner {
            background: linear-gradient(135deg, #002a5c 0%, #004080 100%);
            padding: 80px 0 40px;
            color: white;
            margin-bottom: 40px;
        }



