/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;

  /* 🔥 FULL WEBSITE DARK GRADIENT */
  background: radial-gradient(circle at top left, #1e293b, #020617);
  color: #ffffff;

  min-height: 100vh;
  padding-top: 70px; 
}
p {
  color: #94a3b8;
}

/* HEADER */
.header {
  width: 100%;
  min-height: 65px;
  padding: 0 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;;
  background: rgba(17, 24, 39, 0.9);
  border-bottom: none;
  color: #fff;
    position: fixed;   /* 🔥 important */
  top: 0;
  left: 0;
  z-index: 1000;  
  
}


/* LOGO */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 25px;
}

.tn {
  background: #fff;
  color: #ff5a36;
  padding: 6px 10px;
  border-radius: 8px;
  font-weight: bold;
}

.title h1 {
  font-size: 20px;
}

.title small {
  font-size: 18px;
  opacity: 0.8;
}

/* ACTIONS */
.actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* TRANSLATE */
.translate-box {
  position: relative;
}

#translateBtn {
  background: rgba(255,255,255,0.2);
  border: none;
  padding: 6px 10px;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  width: 50px;
}
/* 🔥 container */
.lang-control {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* 🌐 icon */
.lang-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: none;
  background: rgba(255,255,255,0.15);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 🔥 SWITCH */
.lang-switch {
  width: 44px;
  height: 22px;
  background: #374151;
  border-radius: 20px;
  position: relative;
  cursor: pointer;
  transition: 0.3s;
}

/* thumb */
.switch-thumb {
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: 0.3s;
}

/* ✅ ACTIVE = Tamil */
.lang-switch.active {
  background: #22c55e;
}

.lang-switch.active .switch-thumb {
  transform: translateX(22px);
}

/* theme button fix */
.theme-btn {
  height: 36px;
  width: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-btn i {
  font-size: 16px;
}
/* 🔥 GOOGLE TRANSLATE FINAL FIX */
.goog-te-banner-frame {
  position: fixed !important;
  top: -100px !important;
  left: 0 !important;
  width: 100% !important;
  height: 40px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  z-index: -1 !important;
}

/* prevent layout shift */
body {
  top: 0px !important;
  position: static !important;
}

html {
  top: 0px !important;
}

/* tooltip remove */
.goog-tooltip,
.goog-tooltip:hover {
  display: none !important;
}

/* header always on top */
.header {
  z-index: 999999 !important;
}

/* DROPDOWN */
.dropdown {
  position: absolute;
  top: 40px;
  right: 0;
  background: #fff;
  color: #000;
  border-radius: 6px;
  display: none;
  overflow: hidden;
  min-width: 120px;
}

.dropdown div {
  padding: 8px;
  cursor: pointer;
}

.dropdown div:hover {
  background: #eee;
}

/* THEME */
.theme-btn {
  border: none;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  
}
.live-dot {
  width: 8px;
  height: 8px;
  background: red;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;

  /* 🔥 animation */
  animation: pulse 1s infinite;
}

/* 🔥 blinking effect */
@keyframes pulse {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(1.3);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
/* MOBILE */
@media (max-width: 500px) {
  .title h1 { font-size: 14px; }
  .title small { font-size: 10px; }
}
/* 🔥 TICKER BELOW HEADER */
.ticker {
  position: fixed;
  top: 63px; /* header height */

  width: 100%;
  overflow: hidden;

  background: #111827; /* 🔥 solid dark (no transparency issue) */
 

  z-index: 999;
}

/* TEXT */
.ticker-text {
  display: inline-block;
  white-space: nowrap;

  padding-left: 100%;

  animation: scrollText 15s linear infinite;

  font-weight: 700;
  font-size: 16px;
  color: rgba(245, 158, 11, 0.7);

   background: linear-gradient(90deg,#fbbf24,  #f59e0b,#f97316,#fbbf24);

  background-clip: text;              /* standard */
  -webkit-background-clip: text;      /* safari/chrome */

  color: transparent;  
}
/* 🔥 LIGHT MODE */
body.light .ticker {
  background: #f3f4f6; /* light gray */
 
}

body.light .ticker-text {
 background: linear-gradient(90deg,#fbbf24,  #f59e0b,#f97316,#fbbf24);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}
.ticker-logo {
  height: 20px;
  margin-right: 8px;
  vertical-align: middle;
   border-radius: 50%;
   box-shadow: 0 0 6px rgba(255,255,255,0.5);
}
/* ANIMATION */
@keyframes scrollText {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}
@media (max-width: 600px) {
  .ticker-logo {
    height: 14px;
  }
}
.hero {
  background: transparent;
  text-align: center;
  padding: 20px 20px;
  position: relative;
}

.hero h1 {
  font-size: 42px;
  font-weight: 800;
}

.hero h1 span {
  background: linear-gradient(90deg, #ff5a36, #ff8a3d);

  -webkit-background-clip: text;
  background-clip: text;

  -webkit-text-fill-color: transparent;
  color: transparent;
}
/* MOBILE ONLY */
@media (max-width: 600px) {

  .hero-heading {
    line-height: 1.3;
    text-align: center;
  }

  .hero-live {
    display: block;   /* 🔥 next line */
    margin-top: 6px;
  }
}
.card {
  width: 250px;
  padding: 25px;
  border-radius: 12px;
  height: 120px;
  text-align: center;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: center;
  backdrop-filter: blur(10px);
}
.stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: nowrap; /* 🔥 important */
}
.card h2 {
  color: #ff8a3d;
  word-break: break-word;
}
body.light {
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
  color: #111;
}

body.light p {
  color: #475569;
}

body.light .card {
  background: white;
  border: 1px solid #e2e8f0;
}

body.light .header {
  background: white;
  color: #000;
}
body.light header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}
body:not(.light) header {
  background: rgba(17, 24, 39, 0.95); /* 🔥 dark solid */
  backdrop-filter: blur(10px);        /* 🔥 glass effect */
}
body.light #translateBtn {
  color: #111 !important;
  background: #eee;
}
@media (max-width: 600px) {

  .stats {
    overflow-x: auto;   /* 👉 scroll வரும் */
    justify-content: flex-start;
    
  }

  .card {
    min-width: 200px;  /* 👉 shrink ஆகாது */
  }

}

@media (max-width: 600px) {
  .hero h1 {
    font-size: 25px; /* 🔥 reduce */
    line-height: 1.3;
  }

  .hero p {
    font-size: 13px;
    padding: 0 10px;
  }
}
body.light .header {
  background: linear-gradient(135deg, #ffffff, #f1f5f9);
  border-bottom: 1px solid #e2e8f0;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 10%;
  width: 80%;
  height: 2px;

  background: linear-gradient(90deg, transparent, #ff5a36, transparent);
}

/* CM SECTION */
.cm-section {
  padding: 40px 20px;
  text-align: center;
  position: relative;
}

.cm-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* CARD */
.cm-card {
  width: 200px;
  padding: 20px;
  border-radius: 16px;

  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.2);
  backdrop-filter: blur(10px);

  position: relative;
  transition: 0.3s;
}

.cm-card:hover {
  transform: translateY(-5px);
}

/* IMAGE */
.cm-img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
}

/* BADGE */
.badge {
  position: absolute;
  top: 10px;
  right: 10px;

  background: #ff5a36;
  color: white;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 10px;
}

/* TEXT */
.cm-card h3 {
  margin: 5px 0;
}

.cm-card p {
  font-size: 14px;
  color: #94a3b8;
}

/* STATUS */
.status {
  margin-top: 10px;
  padding: 5px;
  border-radius: 8px;
  background: #1e293b;
  font-size: 12px;
}
body.light .cm-card {
  background: white;
  border: 1px solid #e2e8f0;
}

body.light .status {
  background: #f1f5f9;
  color: #111;
}
.cm-section {
  padding: 20px 20px;
  text-align: left;   /* 🔥 center → left */
}

.cm-section h2 {
   width: 100%;
  max-width: 1200px;   /* 🔥 control layout */
  margin: auto;        /* 🔥 center whole section */
  padding: 20px 20px;
}
.cm-grid {
  display: flex;
  justify-content: center;  /* 🔥 center everything */
  gap: 25px;                /* 🔥 spacing */
  flex-wrap: wrap;         /* 🔥 one row */
}
.cm-card {
  width: 220px;
  min-height: 260px;

  display: flex;
  flex-direction: column;
  align-items: center;  /* 🔥 center align */
  justify-content: space-between; /* 🔥 equal spacing */

  text-align: center;
}
.cm-card h3 {
  margin-top: 10px;
}

.cm-card p {
  margin: 5px 0;
}

/* status always bottom */
.status {
  margin-top: auto;
}
.cm-section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 10%;
  width: 80%;
  height: 2px;

  background: linear-gradient(90deg, transparent, #ff5a36, transparent);
}
@media (max-width: 600px) {

  .cm-grid {
    flex-wrap: nowrap;        /* 🔥 no wrap */
    overflow-x: auto;         /* 🔥 scroll */
    justify-content: flex-start;
  }

  .cm-card {
    min-width: 180px;
  }

}

/* 🔥 PARTY ROW ALIGN */
.party-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* SYMBOL SIZE */
.party-symbol {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

/* MAP AREA */
.map-area {
  background: #111827;
  border-radius: 12px;
  padding: 10px;
  margin-top: 20px;
}

/* MAP SVG */
#tnMap {
  width: 100%;
  height: 500px;
}

/* CONSTITUENCY */
.constituency {
  stroke: #222;
  stroke-width: 0.5;
  cursor: pointer;
  transition: 0.2s;
}

.constituency:hover {
  stroke: #fff;
  stroke-width: 1.2;
  opacity: 0.9;
}

/* SEARCH */
.search-box {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: none;
  margin-bottom: 10px;
}

/* POPUP */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  align-items: center;
  justify-content: center;
}

.modal-backdrop.show {
  display: flex;
}

.modal-card {
  background: #1f2937;
  padding: 20px;
  border-radius: 12px;
  width: 400px;
  color: white;
}

.constituency {
  pointer-events: all;  /* 🔥 IMPORTANT */
  cursor: pointer;
  fill-opacity: 1;
}

.constituency:hover {
  stroke: #fff;
  stroke-width: 1.2;
}

/*map desgin */
/* LIGHT THEME 
body.light .map-area {
  background: #ffffff;   
}


body:not(.light) .map-area {
  background: #111827;
}

#tnMap {
  width: 100%;
  max-width: 900px;  
  height: 480px;
  margin: auto;       
}
body.light .map-area {
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  border-radius: 14px;
  padding: 15px;
}*/
.map-container {
  max-width: 1000px;
  margin: 40px auto;
  text-align: center;
}
.map-title h2 {
  font-size: 22px;
  margin-bottom: 5px;
}

.map-title p {
  font-size: 14px;
  color: #666;
}
.map-search-box {
  margin: 20px 0;
}

#mapSearch {
  width: 60%;
  max-width: 400px;
  padding: 12px 18px;
  border-radius: 30px;
  border: 1px solid #ddd;
  outline: none;
  font-size: 14px;
  transition: 0.2s;
}

#mapSearch:focus {
  border-color: #2563eb;
  box-shadow: 0 0 8px rgba(37, 99, 235, 0.2);
}
.map-area {
  background: #fff;
  border-radius: 14px;
  padding: 15px;
  position: relative;
   display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}
body:not(.light) .map-area {
  background: #111827;
}

body:not(.light) #mapSearch {
  background: #1f2937;
  color: white;
  border: 1px solid #333;
}
#tnMap {
  width: 100%;
  max-width: 900px;
  height: 480px;
  margin: auto;
}

/* MOBILE FIX */
@media (max-width: 768px) {
  #tnMap {
    height: 350px;   /* 🔥 bigger mobile */
  }
}

@media (max-width: 480px) {
  #tnMap {
    height: 300px;
  }

  #mapSearch {
    width: 90%;   /* 🔥 full width search */
  }
}
@media (max-width: 768px) {
  #tnMap {
    height: 380px;   /* 🔥 increase */
  }
}

@media (max-width: 480px) {
  #tnMap {
    height: 320px;
  }
}


.zoom-controls {
  position: absolute;
  right: 15px;
  top: 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.zoom-controls button {
  width: 35px;
  height: 35px;
  border: none;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 18px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* NORMAL TEXT */
.map-heading {
  font-size: 22px;
  font-weight: 800;
}

/* 🔥 GRADIENT PART */
.map-heading span {
  background: linear-gradient(90deg, #ff5a36, #ff8a3d);

  -webkit-background-clip: text;
  background-clip: text;

  -webkit-text-fill-color: transparent;
  color: transparent;
}
/* MOBILE ONLY */
@media (max-width: 600px) {
  .map-heading {
    line-height: 1.3;
    text-align: center;
  }

  .live-text {
    display: block;   /* 🔥 next line */
    margin-top: 4px;
  }
}

body.light .map-area {
  background: #ffffff;

  box-shadow: 
   0 4px 10px rgba(0,0,0,0.1),
    0 10px 25px rgba(0,0,0,0.15);  /* 🔥 strong black shadow */

  border-radius: 16px;
}
body.light #tnMap {
  filter: 
    drop-shadow(0 6px 15px rgba(0,0,0.25,0.25));
}

.map-legend {
  display: flex;
  justify-content: center;
  flex-direction: column; 
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 10px;
  flex-wrap: wrap;
   position: absolute;
  left: 10px;
  top: 20px;
}

.map-legend div {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  background: rgba(255,255,255,0.9);
  padding: 6px 10px;
  border-radius: 8px;
}
body:not(.light) .map-legend div {
  background: rgba(31,41,55,0.9);
  color: white;
}

.map-legend span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.alliance-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.4);
  z-index: 2000;
}

.alliance-card {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  min-width: 250px;
  text-align: center;
}

body:not(.light) .alliance-card {
  background: #1f2937;
  color: #fff;
}
@media (max-width: 768px) {

  .map-legend {
   position: static;

    display: flex;
    flex-direction: row;

    justify-content: center;
    align-items: center;

    gap: 12px;

    flex-wrap: nowrap;   /* 🔥 VERY IMPORTANT */
    overflow-x: auto;    /* 🔥 if space illa scroll */

    margin-top: 15px;
  }
  .map-legend div {
    font-size: 12px;
    padding: 5px 8px;
    white-space: nowrap; /* 🔥 prevent break */
  }
  .map-area {
    display: block;   /* 🔥 VERY IMPORTANT */
  }

}
.party-row {
  display: flex;
  align-items: start;

  padding-left: 10px;   /* 🔥 left gap */
  gap: 10px;            /* 🔥 space between symbol & text */

  margin: 8px 0;
}
.party-symbol {
  width: 28px;
  height: 28px;
  object-fit: contain;
  margin-right: 12px;
  flex-shrink: 0;   /* 🔥 prevent shrink */
}
.party-row span {
  font-size: 14px;
  font-weight: 600;
}
.party-row {
  border-bottom: 1px solid rgba(0,0,0,0.05);
  padding-bottom: 6px;
}
body:not(.light) .party-row {
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/*popup design */
.popup-header h2 {
  text-align: center;
  margin-bottom: 10px;
}
.leader-card {
  display: flex;
  align-items: center;
  gap: 15px;

  padding: 12px;
  border-radius: 12px;

  background: rgba(34,197,94,0.1);
}
.leader-symbol {
  width: 45px;
  height: 45px;
  object-fit: contain;
}
.leader-info h3 {
  margin: 0;
  font-size: 16px;
}

.leader-info p {
  margin: 2px 0;
  font-weight: 600;
}

.leader-info span {
  font-size: 13px;
  color: #22c55e;
}
.candidate-list {
  max-height: 250px;
  overflow-y: auto;
}
.candidate-row {
  display: flex;
  align-items: center;

  padding: 8px 10px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.symbol-box {
  width: 35px;
  display: flex;
  justify-content: center;
}
.candidate-info {
  flex: 1;
}

.name {
  display: block;
  font-weight: 600;
}

.party {
  font-size: 12px;
  color: #666;
}
.votes {
  font-weight: 700;
}
body:not(.light) .leader-card {
  background: rgba(34,197,94,0.2);
}

body:not(.light) .candidate-row {
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.modal-card {
  position: relative;
  border-radius: 14px;
  padding: 18px;
}

/* ❌ CLOSE */
.popup-close {
  position: absolute;
  top: 10px;
  right: 12px;

  border: none;
  background: transparent;
  cursor: pointer;

  font-size: 18px;
}
body.light .modal-backdrop {
  background: rgba(0,0,0,0.3); /* 🔥 light overlay */
}
body:not(.light) .modal-backdrop {
  background: rgba(0,0,0,0.7); /* 🔥 dark strong */
}
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  display: none;
  justify-content: center;
  align-items: center;

  z-index: 2000;
}
body.light .modal-card {
  background: #ffffff;   /* 🔥 pure white */
  color: #000;
}
.lead-text {
  font-size: 13px;
  font-weight: 600;
  color: #22c55e;
}
.votes-box {
  display: flex;
  gap: 8px;
  font-weight: 700;
}

.percent {
  color: #3b82f6;
  font-weight: 600;
}

.lead-text {
  margin-top: 4px;
  font-size: 13px;
  color: #22c55e;
  font-weight: 600;
}
.map-tooltip {
  position: absolute;
  pointer-events: none;

  background: #111;
  color: #fff;

  padding: 5px 10px;
  border-radius: 6px;

  font-size: 12px;
  white-space: nowrap;

  display: none;
  z-index: 3000;
}

/* light theme */
body.light .map-tooltip {
  background: #000;
  color: #fff;
}
.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;

  margin-top: 8px;

  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);

  border-radius: 14px;

  box-shadow: 0 15px 35px rgba(0,0,0,0.12);

  max-height: 250px;
  overflow-y: auto;

  display: none;
  z-index: 4000;

  padding: 6px 0;
}
.map-search-box {
  position: relative;
  width: 600px;        /* 🔥 set your size */
  margin: auto;    /* 🔥 VERY IMPORTANT */
}
.map-search-box input {
  width: 100%;
}
/* item */
.search-item {
  padding: 10px 14px;
  cursor: pointer;

  font-size: 14px;
  font-weight: 500;

  display: flex;
  align-items: center;

  transition: all 0.2s ease;
}

.search-item:hover {
  background: linear-gradient(90deg, #ff5a36, #ff8a3d);
  color: white;

  transform: translateX(4px);
}
.search-item:not(:last-child) {
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

/* dark */
body:not(.light) .search-results {
  background: rgba(31,41,55,0.95);
  color: white;
}

body:not(.light) .search-item:not(:last-child) {
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.search-results::-webkit-scrollbar {
  width: 5px;
}

.search-results::-webkit-scrollbar-thumb {
  background: #ff5a36;
  border-radius: 10px;
}
@media (max-width: 768px) {
  .map-search-box {
    width: 90%;   /* mobile full width */
  }
}

.chart-section {
  display: flex;
  gap: 25px;
  margin: 40px auto;
  padding: 0 20px; /* 🔥 left-right space */
  max-width: 1200px;
}

.chart-card {
  flex: 1;

  background: #ffffff; /* 🔥 white */
  border-radius: 20px;

  padding: 18px;

  box-shadow: 
    0 10px 25px rgba(0,0,0,0.08),
    0 2px 6px rgba(0,0,0,0.05);

  min-height: 320px;   /* 🔥 equal height */
  max-height: 320px;

  overflow-y: auto;
}
.chart-card {
  overflow: hidden; /* 🔥 prevents bleed */
}
#partyChart,
#allianceChart {
  max-height: 250px;
  overflow-y: auto;
  padding-right: 5px;
}

/* BAR */
.bar {
  margin: 12px 0;
}

.bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: #333;
}

.bar-track {
  height: 10px;
  background: #f1f5f9;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 5px;
}

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

/* MOBILE */
@media (max-width: 768px) {
  .chart-section {
    flex-direction: column;
  }
}
.bar-fill {
  transition: width 0.5s ease;
}

.chart-card::-webkit-scrollbar {
  width: 6px;
}

.chart-card::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.15);
  border-radius: 10px;
}
@media (max-width: 768px) {
  .chart-card {
    max-height: 250px;
  }
}
.chart-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #111;

  position: sticky;
  top: 0;

  background: #ffffff;   /* 🔥 solid white */
  z-index: 10;           /* 🔥 important */

  padding: 10px 0;       /* 🔥 give space */
  border-bottom: 1px solid #eee; /* clean separation */
}
.chart-card h3 {
  position: sticky;
  top: 0;
  z-index: 5;

  background: inherit;
  padding: 8px 0;
  margin-bottom: 10px;
}
@media (max-width: 768px) {

  .chart-section {
    flex-direction: column;
    gap: 15px;
    padding: 0 10px;
  }

  .chart-card {
    min-height: 260px;
    max-height: 260px;
  }
}
body.light .chart-card {
  background: #ffffff;
  color: #111;

  box-shadow:
    0 10px 25px rgba(0,0,0,0.08),
    0 2px 6px rgba(0,0,0,0.05);
}

body.light .chart-card h3 {
  color: #111;
  border-bottom: 1px solid #eee;
}
body:not(.light) .chart-card {
 
  color: #fff;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.2);
  backdrop-filter: blur(12px);

  box-shadow:
    0 10px 30px rgba(0,0,0,0.7),
    0 0 10px rgba(255,255,255,0.05);
}

body:not(.light) .chart-card h3 {
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
body:not(.light) .bar-label {
  color: #ddd;
}

body.light .bar-label {
  color: #333;
}
.chart-card {
  max-height: 320px;
  overflow-y: auto;
}

.chart-card::-webkit-scrollbar {
  width: 6px;
}

.chart-card::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.2);
  border-radius: 10px;
}
body:not(.light) .chart-card::-webkit-scrollbar {
  width: 6px;
}

body:not(.light) .chart-card::-webkit-scrollbar-track {
  background: transparent; /* 🔥 no white bg */
}

body:not(.light) .chart-card::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.15); /* soft gray */
  border-radius: 10px;
}

body:not(.light) .chart-card::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.3); /* hover highlight */
}
body.light .chart-card::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.2);
}
.chart-card {
  scrollbar-width: thin;              /* Firefox */
  scrollbar-color: rgba(255,255,255,0.2) transparent;
}
.map-container::after {
  content: "";
  display: block;

  margin: 40px auto 0;   /* 🔥 spacing top */
  width: 80%;
  height: 2px;

  background: linear-gradient(
    90deg,
    transparent,
    #ff5a36,
    transparent
  );
}

.footer {
  margin-top: 50px;
  padding: 20px;
  text-align: center;
   background: linear-gradient(
    135deg,
    #fde68a,   /* light yellow */
    #fbbf24,   /* soft gold */
    #f59e0b    /* main orange */
  );

  color: #111;
}

.team-title {
  font-weight: 700;
  font-size: 15px;
  color: white;
}

.guide {
  margin-top: 8px;
  font-size: 13px;
  opacity: 0.9;
}

.footer .copyright {
  margin-top: 8px;
  font-size: 12px;
  opacity: 0.7;
}
body.light .footer {
  background: linear-gradient(
    135deg,
    #ffedd5,  /* 🔥 very light orange */
    #fed7aa,  /* 🔥 soft peach */
    #fdba74   /* 🔥 mild orange */
  );

  
}
body.light .team-title {
  color: #111;
}
body:not(.light) .footer {
  background: linear-gradient(
    135deg,
    #1e293b,
    #334155,
    #c2410c
  );
}
body:not(.light) .team-title {
  color: #fff;
}
@media (max-width: 600px) {

  .footer-box {
    padding: 15px;
  }

  .footer-title {
    font-size: 16px;
  }

  .team-grid {
    font-size: 12px;
    gap: 3px 12px;
  }

}
/* 🔥 GRID LAYOUT */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 per row */
  gap: 20px;
  margin-top: 15px;
}

/* 🔥 CARD */
.team-card {
  text-align: center;
}

/* 🔥 IMAGE */
.team-card img {
  width: 70px;
  height: 70px;
  border-radius: 30%;
  object-fit: cover;
  margin-top: 6px; 
  border: 2px solid #fff;
  margin-bottom: 6px;
}

/* 🔥 NAME */
.team-card .name {
  font-weight: 700;
  font-size: 14px;
}

/* 🔥 ROLE */
.team-card .role {
  font-size: 12px;
  opacity: 0.8;
}
.fix-face {
   object-fit: cover;
  object-position: center 10%; /* 🔥 IMPORTANT change */
  transform: translateY(6px)
}
@media (max-width: 600px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 per row */
  }
}
.popular-section {
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 20px;
}

.popular-section h3 {
  margin-bottom: 15px;
  font-size: 18px;
}

/* list */
.popular-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* card */
.popular-card {
  display: flex;
  align-items: center;
  gap: 12px;

  padding: 10px;
  border-radius: 10px;

  background: rgba(30,41,59,0.6);
}

/* image */
.popular-card img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
}

/* text */
.popular-info {
  flex: 1;
}


.popular-info h4 {
  margin: 0;
  font-size: 14px;
}

.popular-info p {
  font-size: 12px;
  opacity: 0.7;
}

/* votes */
.popular-votes {
  font-weight: 700;
}