/* assets/css/index.css */

/* ==================== PUBLICITÉS ==================== */
.pub-strip { position: relative; margin: 0; }

.pub-label {
    display: inline-block;
    font-size: .65rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text-light);
    background: var(--bg-muted);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 2px 8px;
    position: absolute;
    top: -10px;
    right: 16px;
    z-index: 2;
}

.pub-header {
    position: relative;
    background: var(--bg-muted);
    border-bottom: 1px solid var(--border-light);
    max-height: 100px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pub-header a, .pub-inline a, .pub-sidebar-item a { display: block; width: 100%; }
.pub-header img { width: 100%; height: 100px; object-fit: cover; }

.pub-inline-wrap { padding: 32px 0 0; position: relative; }

.pub-inline {
    position: relative;
    background: var(--bg-muted);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    max-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: box-shadow .3s;
}

.pub-inline:hover { box-shadow: var(--shadow-md); }
.pub-inline img { width: 100%; height: 120px; object-fit: cover; transition: transform .4s; }
.pub-inline:hover img { transform: scale(1.02); }

.pub-sidebar-item {
    position: relative;
    background: var(--bg-muted);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: box-shadow .3s;
}
.pub-sidebar-item:hover { box-shadow: var(--shadow-md); }
.pub-sidebar-item img { width: 100%; object-fit: cover; }

.pub-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 90px;
    color: var(--text-light);
    gap: 6px;
    padding: 16px;
}
.pub-placeholder i { font-size: 1.5rem; opacity: .3; }
.pub-placeholder span { font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; opacity: .5; }


/* ==================== HOME MAIN ==================== */
.home-main { position: relative; overflow-x: hidden; }


/* ==================== HERO SECTION ==================== */
.hero-section {
    position: relative;
    background: var(--text);
    padding: 120px 0 100px;
    overflow: hidden;
    color: #fff;
}

/* Animated orbs */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(80px);
}

.hero-orb-1 {
    width: 700px;
    height: 700px;
    top: -200px;
    right: -150px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.18) 0%, transparent 70%);
    animation: orbFloat1 10s ease-in-out infinite;
}

.hero-orb-2 {
    width: 500px;
    height: 500px;
    bottom: -150px;
    left: -100px;
    background: radial-gradient(circle, rgba(0, 184, 148, 0.14) 0%, transparent 70%);
    animation: orbFloat2 13s ease-in-out infinite;
}

.hero-orb-3 {
    width: 300px;
    height: 300px;
    top: 40%;
    left: 30%;
    background: radial-gradient(circle, rgba(255, 144, 104, 0.08) 0%, transparent 70%);
    animation: orbFloat3 8s ease-in-out infinite;
}

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%       { transform: translate(-40px, 30px) scale(1.1); }
    66%       { transform: translate(20px, -20px) scale(0.95); }
}
@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%       { transform: translate(30px, -40px) scale(1.12); }
}
@keyframes orbFloat3 {
    0%, 100% { transform: translate(0, 0); }
    50%       { transform: translate(-20px, 20px); }
}

/* Dot-grid pattern */
.hero-grid-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}

/* Hero inner layout */
.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 18px;
    background: rgba(255, 107, 53, 0.15);
    border: 1px solid rgba(255, 107, 53, 0.35);
    border-radius: 50px;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--primary-light);
    margin-bottom: 24px;
    animation: heroBadgePulse 3s ease infinite;
}
.hero-badge i { font-size: .85rem; }

@keyframes heroBadgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 53, 0); }
    50%       { box-shadow: 0 0 0 6px rgba(255, 107, 53, 0.06); }
}

/* Title */
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 4.5vw, 3.8rem);
    font-weight: 900;
    line-height: 1.12;
    color: #fff;
    margin-bottom: 24px;
    letter-spacing: -.03em;
    animation: heroSlideUp .9s var(--ease-out) both;
}

.hero-title em {
    color: var(--primary-light);
    font-style: normal;
    background: linear-gradient(135deg, var(--primary), var(--primary-light) 50%, var(--secondary));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 5s ease infinite;
    display: inline-block;
}

@keyframes heroSlideUp {
    from { opacity: 0; transform: translateY(50px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50%       { background-position: 100% 50%; }
}

/* Text */
.hero-text {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, .65);
    line-height: 1.75;
    margin-bottom: 36px;
    max-width: 460px;
    animation: heroSlideUp .9s .15s var(--ease-out) both;
}

/* Buttons */
.hero-btns {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 44px;
    animation: heroSlideUp .9s .25s var(--ease-out) both;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: .9rem;
    letter-spacing: .02em;
    transition: all .3s var(--ease-spring);
    white-space: nowrap;
}

.hero-btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 8px 32px rgba(255, 107, 53, .45);
}
.hero-btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(255, 107, 53, .55);
    color: #fff;
}

.hero-btn-ghost {
    background: rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .9);
    border: 1.5px solid rgba(255, 255, 255, .2);
    backdrop-filter: blur(8px);
}
.hero-btn-ghost:hover {
    background: rgba(255, 255, 255, .16);
    transform: translateY(-4px);
    color: #fff;
    border-color: rgba(255, 255, 255, .35);
}

/* Stats */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 28px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    animation: heroSlideUp .9s .35s var(--ease-out) both;
}

.hero-stat { text-align: center; }

.hero-count {
    display: block;
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    margin-bottom: 4px;
    transition: color .3s;
}

.hero-stat:hover .hero-count { color: var(--primary-light); }

.hero-stat span {
    display: block;
    font-size: .72rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: rgba(255, 255, 255, .45);
}

.hero-stat-sep {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, .12);
    flex-shrink: 0;
}

/* Visual: floating cards */
.hero-visual {
    position: relative;
    height: 440px;
    animation: heroSlideUp .9s .1s var(--ease-out) both;
}

.hero-cards { position: relative; width: 100%; height: 100%; }

.hero-card {
    position: absolute;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
    transition: transform .4s var(--ease-spring), box-shadow .4s;
    display: block;
    text-decoration: none;
}
.hero-card:hover { box-shadow: 0 32px 80px rgba(0, 0, 0, .55); }

.hero-card img, .hero-card-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-card-placeholder { background: var(--bg-muted); }

.hero-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.85) 0%, transparent 55%);
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 6px;
}

.hero-card-cat {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #fff;
    align-self: flex-start;
}

.hero-card-overlay p {
    font-size: .78rem;
    font-weight: 600;
    color: rgba(255,255,255,.9);
    line-height: 1.35;
    margin: 0;
}

/* Card positions & animations */
.hero-card-0 {
    width: 72%;
    height: 300px;
    top: 0;
    right: 0;
    z-index: 3;
    animation: floatCard0 7s ease-in-out infinite;
}
.hero-card-1 {
    width: 58%;
    height: 220px;
    bottom: 40px;
    left: 0;
    z-index: 2;
    animation: floatCard1 9s ease-in-out infinite;
}
.hero-card-2 {
    width: 44%;
    height: 170px;
    bottom: 0;
    right: 12%;
    z-index: 1;
    opacity: .75;
    animation: floatCard2 8s ease-in-out infinite;
}

@keyframes floatCard0 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%       { transform: translateY(-18px) rotate(.8deg); }
}
@keyframes floatCard1 {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50%       { transform: translateY(-12px) rotate(-1deg); }
}
@keyframes floatCard2 {
    0%, 100% { transform: translateY(0) rotate(3deg); }
    50%       { transform: translateY(-14px) rotate(2deg); }
}

/* Floating badges */
.hero-float {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 50px;
    font-size: .8rem;
    font-weight: 700;
    box-shadow: 0 8px 32px rgba(0,0,0,.3);
    backdrop-filter: blur(16px);
    z-index: 10;
    animation: floatBadge 5s ease-in-out infinite;
    pointer-events: none;
}
.hero-float-1 {
    background: rgba(255, 107, 53, .9);
    color: #fff;
    top: 24px;
    left: -10px;
    animation-delay: .5s;
}
.hero-float-2 {
    background: rgba(255, 255, 255, .92);
    color: var(--text);
    bottom: 80px;
    right: -10px;
    animation-delay: 1.5s;
}
.hero-float i { font-size: .85rem; }

@keyframes floatBadge {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-8px); }
}

/* Scroll hint */
.hero-scroll-hint {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    z-index: 2;
    opacity: .5;
    transition: opacity .3s;
}
.hero-scroll-hint:hover { opacity: 1; }

.hero-scroll-mouse {
    width: 24px;
    height: 38px;
    border: 2px solid rgba(255,255,255,.5);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}

.hero-scroll-wheel {
    width: 3px;
    height: 8px;
    background: rgba(255,255,255,.7);
    border-radius: 2px;
    animation: scrollWheel 2s ease infinite;
}

@keyframes scrollWheel {
    0%   { transform: translateY(0); opacity: 1; }
    60%  { transform: translateY(12px); opacity: 0; }
    61%  { transform: translateY(0); opacity: 0; }
    100% { opacity: 1; }
}


/* ==================== SECTION COMMONS ==================== */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 52px;
    gap: 24px;
}

.section-header.centered {
    justify-content: center;
    text-align: center;
    flex-direction: column;
    align-items: center;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .73rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 10px;
}
.section-eyebrow::before {
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 700;
    color: var(--text);
    margin: 0 0 10px;
    line-height: 1.2;
    letter-spacing: -.02em;
}

.section-description { font-size: .95rem; color: var(--text-muted); margin: 0; }

.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 12px 26px;
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 50px;
    font-weight: 700;
    font-size: .875rem;
    white-space: nowrap;
    transition: all .25s var(--ease-spring);
    flex-shrink: 0;
}
.btn-view-all:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(255, 107, 53, .28);
}
.btn-view-all i { transition: transform .25s; font-size: .8rem; }
.btn-view-all:hover i { transform: translateX(4px); }


/* ==================== FEATURED SECTION ==================== */
.featured-section {
    padding: 96px 0 100px;
    background: var(--bg);
    position: relative;
}

/* Subtle top border accent */
.featured-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}


/* ==================== ARTICLES GRID ==================== */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.articles-grid .article-card:first-child { grid-column: span 2; }
.articles-grid .article-card:first-child .article-image { height: 340px; }

.article-card {
    background: var(--bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: all .4s var(--ease-spring);
    box-shadow: var(--shadow-xs);
    position: relative;
    display: block;
}

.article-link { display: block; }

.article-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    box-shadow: 0 0 0 2px var(--primary);
    opacity: 0;
    transition: opacity .3s;
    pointer-events: none;
}
.article-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); border-color: transparent; }
.article-card:hover::after { opacity: 1; }

.article-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: var(--bg-muted);
}
.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .7s var(--ease-out);
}
.article-card:hover .article-image img { transform: scale(1.08); }

.article-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: var(--text-light);
    opacity: .18;
}

.article-badge {
    position: absolute;
    bottom: 14px;
    left: 14px;
    padding: 5px 14px;
    border-radius: 30px;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #fff;
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, .2);
    z-index: 2;
}

/* Read-time badge on hover */
.article-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.45) 0%, transparent 50%);
    opacity: 0;
    transition: opacity .4s;
    z-index: 1;
}
.article-card:hover .article-image::before { opacity: 1; }

.article-content { padding: 22px 24px 24px; }

.article-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 10px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .2s;
}
.article-card:hover .article-title { color: var(--primary); }

.article-excerpt {
    font-size: .875rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin: 0 0 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: .8rem;
    color: var(--text-light);
    border-top: 1px solid var(--border-light);
    padding-top: 14px;
}

.meta-item { display: flex; align-items: center; gap: 6px; }
.meta-item i { color: var(--secondary); font-size: .8rem; }


/* ==================== MAP SECTION ==================== */
.map-section {
    padding: 96px 0 100px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, #f4f6fa 0%, #eaecf4 60%, #e4eef5 100%);
}

.map-section::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(255, 107, 53, .06) 0%, transparent 65%);
    pointer-events: none;
}
.map-section::after {
    content: '';
    position: absolute;
    bottom: -200px;
    left: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 184, 148, .05) 0%, transparent 65%);
    pointer-events: none;
}

.map-wrapper {
    display: grid;
    gap: 18px;
    position: relative;
    z-index: 2;
}

.map-container {
    background: var(--bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

#ci-map {
    width: 100%;
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--text-muted);
    padding: 24px;
    text-align: center;
}

.map-loading-state i {
    font-size: 1.9rem;
    color: var(--primary);
}

.map-fallback-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.map-fallback-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px;
    background: var(--bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    transition: all .2s var(--ease-spring);
}

.map-fallback-item:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.map-fallback-name {
    font-size: .86rem;
    font-weight: 700;
    color: var(--text);
}

.map-fallback-stats {
    font-size: .74rem;
    color: var(--text-muted);
}

.map-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 48px;
    align-items: start;
    position: relative;
    z-index: 2;
}

/* SVG Map Container */
.ci-svg-wrapper {
    background: var(--bg);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    position: relative;
    transition: box-shadow .3s;
}
.ci-svg-wrapper:hover { box-shadow: var(--shadow-lg); }
.ci-svg-wrapper svg { width: 100%; height: auto; display: block; }

/* Map Legend */
.map-legend {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-top: 16px;
    padding: 14px 20px;
    background: var(--bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-xs);
    flex-wrap: wrap;
}
.legend-item { display: flex; align-items: center; gap: 8px; font-size: .78rem; color: var(--text-muted); }
.legend-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }

/* Map Sidebar */
.map-sidebar-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: var(--bg);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    padding: 24px;
}

.map-sidebar-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 2px;
}
.map-sidebar-subtitle { font-size: .82rem; color: var(--text-muted); margin-bottom: 4px; }

.region-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 440px;
    overflow-y: auto;
    padding-right: 4px;
}
.region-list::-webkit-scrollbar { width: 4px; }
.region-list::-webkit-scrollbar-track { background: var(--bg-muted); border-radius: 4px; }
.region-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.region-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: var(--bg-soft);
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text);
    transition: all .2s var(--ease-spring);
    cursor: pointer;
}
.region-list-item:hover,
.region-list-item.hovered {
    background: var(--bg);
    border-color: var(--primary);
    transform: translateX(5px);
    box-shadow: var(--shadow-xs);
}
.region-list-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.region-list-nom { font-size: .83rem; font-weight: 500; flex: 1; line-height: 1.2; }
.region-list-count { font-size: .72rem; color: var(--text-light); white-space: nowrap; }

/* Tooltip */
.ci-tooltip {
    position: fixed;
    pointer-events: none;
    z-index: 9990;
    opacity: 0;
    transform: translateY(8px) scale(.95);
    transition: opacity .2s, transform .2s;
    max-width: 230px;
}
.ci-tooltip.visible { opacity: 1; transform: translateY(0) scale(1); }

.ci-tooltip-inner {
    background: rgba(15, 25, 40, .96);
    color: #fff;
    border-radius: var(--radius-md);
    padding: 14px 16px;
    box-shadow: 0 16px 48px rgba(0,0,0,.35);
    border: 1px solid rgba(255,255,255,.08);
    backdrop-filter: blur(12px);
}
.ci-tooltip-nom { display: block; font-family: var(--font-display); font-size: 1rem; font-weight: 700; margin-bottom: 2px; }
.ci-tooltip-capital { display: block; font-size: .73rem; color: rgba(255,255,255,.5); margin-bottom: 10px; font-style: italic; }
.ci-tooltip-stats { display: flex; gap: 14px; font-size: .78rem; color: rgba(255,255,255,.8); }
.ci-tooltip-stat { display: flex; align-items: center; gap: 5px; }
.ci-tooltip-stat i { font-size: .7rem; }
.ci-tooltip-cta {
    font-size: .7rem;
    color: var(--primary-light);
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,.1);
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

/* pub sidebar in map */
.map-pub-item {
    position: relative;
    background: var(--bg-muted);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-top: 16px;
}
.map-pub-item img { width: 100%; display: block; }


/* ==================== EVENTS SECTION ==================== */
.events-section {
    padding: 96px 0 100px;
    background: var(--bg);
    position: relative;
}
.events-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--secondary), transparent);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.event-card {
    display: flex;
    background: var(--bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: all .4s var(--ease-spring);
    box-shadow: var(--shadow-xs);
    position: relative;
}
.event-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    box-shadow: 0 0 0 2px var(--secondary);
    opacity: 0;
    transition: opacity .3s;
    pointer-events: none;
}
.event-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.event-card:hover::after { opacity: 1; }

.event-card-left {
    position: relative;
    width: 180px;
    flex-shrink: 0;
    overflow: hidden;
    background: var(--bg-muted);
}
.event-card-left img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.event-card:hover .event-card-left img { transform: scale(1.07); }

.event-placeholder {
    width: 100%;
    height: 100%;
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--text-light);
    opacity: .2;
}

.event-date-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    border-radius: var(--radius-md);
    padding: 10px 12px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(255, 107, 53, .4);
    z-index: 2;
}
.event-day { display: block; font-size: 1.6rem; font-weight: 700; line-height: 1; }
.event-month { display: block; font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; opacity: .9; margin-top: 3px; }

.event-content {
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    min-width: 0;
}

.event-type {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(0, 184, 148, .1);
    color: var(--secondary);
    border-radius: 20px;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: 10px;
    align-self: flex-start;
}

.event-title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 12px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .2s;
}
.event-card:hover .event-title { color: var(--secondary); }

.event-info { display: flex; flex-direction: column; gap: 6px; }

.info-item { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--text-muted); }
.info-item i { color: var(--primary); font-size: .8rem; width: 14px; }

.event-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--secondary);
    font-weight: 700;
    font-size: .82rem;
    margin-top: 14px;
    transition: gap .2s;
}
.event-link i { font-size: .75rem; transition: transform .2s; }
.event-link:hover { gap: 11px; }
.event-link:hover i { transform: translateX(3px); }


/* ==================== EMPTY STATE ==================== */
.empty-state { text-align: center; padding: 90px 30px; color: var(--text-muted); }
.empty-state i { font-size: 4rem; margin-bottom: 20px; color: var(--border); display: block; }
.empty-state p { font-size: 1.05rem; color: var(--text-muted); }


/* ==================== FADE IN ==================== */
.fade-in { animation: fadeUp .7s var(--ease-out) both; }
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}


/* ==================== RESPONSIVE ==================== */
@media (max-width: 1200px) {
    .hero-title { font-size: 3.2rem; }
    .articles-grid { grid-template-columns: repeat(2, 1fr); }
    .articles-grid .article-card:first-child { grid-column: span 2; }
    .map-layout { grid-template-columns: 1fr 260px; gap: 32px; }
}

@media (max-width: 991px) {
    .hero-inner { grid-template-columns: 1fr; gap: 48px; }
    .hero-visual { height: 320px; }
    .hero-card-0 { width: 65%; height: 240px; }
    .hero-card-1 { width: 52%; height: 180px; }
    .hero-card-2 { width: 40%; height: 140px; }
    .map-layout { grid-template-columns: 1fr; }
    .map-sidebar-panel { order: -1; }
    .region-list { max-height: 200px; }
    #ci-map { min-height: 320px; }
    .events-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .hero-section { padding: 80px 0 70px; }
    .hero-stats { gap: 18px; flex-wrap: wrap; }
    .hero-count { font-size: 1.5rem; }
    .featured-section, .map-section, .events-section { padding: 64px 0 72px; }
    .articles-grid { grid-template-columns: 1fr; gap: 20px; }
    .articles-grid .article-card:first-child { grid-column: span 1; }
    .articles-grid .article-card:first-child .article-image { height: 240px; }
    .section-header { flex-direction: column; align-items: flex-start; margin-bottom: 36px; }
    .event-card { flex-direction: column; }
    .event-card-left { width: 100%; height: 180px; }
    .event-placeholder { min-height: 180px; }
    .pub-inline { max-height: 90px; }
    .pub-inline img { height: 90px; }
    .pub-header { max-height: 72px; }
    .pub-header img { height: 72px; }
}

@media (max-width: 576px) {
    .hero-btns { flex-direction: column; }
    .hero-btn { justify-content: center; }
    .hero-float { display: none; }
    .map-legend { flex-wrap: wrap; gap: 10px; }
}
