/* medium green: header background, title background #b7d8b9 */
/* lighter green: leaderboard backgrounds #d0e9d6 */
/* darker green: circle in header #1d9b5c */
/* still darker green: select county, leaderboard gradient #1b9357 */
/* red donate button #c2410c */
/* orange donate now #f78f48 */

/* logo: 563 x 197 */
@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Heebo:wght@100..900&display=swap');
#main {
  background-color: #e3e3e3 !important;
  padding-top: 0!important;
}
.fusion-builder-row.fusion-row {
  max-width: 1600px!important;
}
.post-content h1 {
  margin-bottom: 0;
}
.fusion-fullwidth:has(.giving-day-board-title-logo) {
  background-image: url(https://tn4hfoundation.org/wp-content/plugins/giving-day-board/assets/images/header-left-corner.png);
  background-position: top left;
  background-size: 200px;
  background-repeat: no-repeat;
}
.fusion-fullwidth:has(.giving-day-board-title-logo):after {
  content: "";
  background-image: url(https://tn4hfoundation.org/wp-content/plugins/giving-day-board/assets/images/header-right-corner.png);
  background-size: 200px;
  display: block;
  height: 200px;
  width: 200px;
  position: absolute;
  right: 0;
  bottom: 0;
}
.leaderboards-container .gbd-panel:nth-child(2) .gbd-panel-header, .leaderboards-container .gbd-panel:nth-child(odd) .gbd-panel-body {
  background-image: url(https://tn4hfoundation.org/wp-content/plugins/giving-day-board/assets/images/recent-right-corner.png);
  background-position: bottom right;
  background-size: 55px;
  background-repeat: no-repeat;
}
.giving-day-board-title-logo {
    display: block;
    width: 400px;
    height: 140px;
    background-image: url('assets/images/giving-day-logo.svg');
    background-size: contain;
    background-repeat: no-repeat;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .gdb-heading-container {
    align-items: center;
    justify-content: flex-start;
    display: flex;
  }
  .gdb-heading-container-stats {
    text-align: center;
    margin-right: 30px;
    line-height: 1.7;
    color: #000;
    font-family: "Heebo", sans-serif;
  }

  .gdb-donation-total {
    font-family: "Inter", sans-serif;
    font-weight: 700;
    font-size: 3rem;
    line-height: 1.2;
  }

  .gbd-progress-container {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
  }

  .progress-ring {
    transform: rotate(-90deg); /* Start from the top */
    width: 120px;
    height: 120px;
  }
  
  .progress-ring__circle {
    transition: stroke-dashoffset 0.35s ease; /* Smooth filling effect */
    transform-origin: 50% 50%;
  }

  .progress-track {
    width: 100%;
    background-color: #e0e0e0;
    border-radius: 25px;
    overflow: hidden; /* Keeps the inner bar inside the rounded corners */
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.2);
  }
  
  .progress-fill {
    height: 30px;
    width: 0%; /* Initial state */
    background-color: #4caf50;
    color: white;
    text-align: center;
    line-height: 30px; /* Vertically centers the text */
    font-weight: bold;
    transition: width 0.4s ease; /* Makes progress look fluid */
  }

  .progress-text {
    position: absolute;
    font-family: sans-serif;
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
  }

  .gdb-overall-stats {
    margin-top: 70px;
    margin-bottom: 50px;
    align-items: center;
    color: #000;
    font-family: "Heebo", sans-serif;
  }

  .gdb-total-donors-container {
    position: relative;
    padding-left: 90px;
    background-image: url('assets/images/user-female.svg');
    background-position: left center;
    background-repeat: no-repeat;
    display: flex; 
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    p {
      margin-bottom: 0;
      line-height: 1;
    }

  }
  .big-text {
    font-family: "Heebo", sans-serif;
    font-size: 3rem;
    font-weight: 700;
  }

  .ycd-simple-countdown-label {
    position: absolute;
    top: -20px;
    font-weight: bold;
    font-size: .875rem !important;
  }

  .gdb-big-buttons-container {


  }
  .progress-bar-container {
    background-color: #d0e9d6;
    height: 15px;
    border-radius: 10px;
    width: 100%;
    overflow: hidden;
    position: relative;
  }
  .progress-bar-fill {
    background-color: #1d9b5c;
    width: 0;
    height: 100%;
    border-radius: 10px;
    transition: width 0.4s ease-in-out;
    position: absolute;
    left: 0;
    top: 0;
  }
  .gdb-dontate-now {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    background-color: #f78f48;
    border-radius: 10px;
    min-width: 50%;
    padding-top: 20px;
    padding-bottom: 20px;
    text-align: center;
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  }
  a.gdb-dontate-now:hover {
    color: white;
  }
  .gdb-share-container {
    min-width: 30%;
    padding-top: 15px;
    font-size: 1.5rem;
    font-weight: 700;
    padding-bottom: 15px;
    background-color: white;
    text-align: center;
    text-transform: uppercase;
    display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  }
  .gdb-share-container img {
    height: 50px;
  }
  .gdb-counties-contributing {
    display: flex; 
    flex-direction: row; 
    justify-content: flex-start; 
    align-items: center;
  }

  .gbd-panel {
    border-radius: 10px;
    width: 100%;
    box-shadow: 2px 2px 7px 0px;
    background-color: #d0e9d6;

  }
  .gbd-panel-header h2, .post-content .gbd-panel-header h2 {
    font-family: "Heebo", sans-serif;
    letter-spacing: 0;
    font-weight: 700 !important;
    font-size: 1.3rem !important;
    margin-bottom: 0;
    text-transform: uppercase !important;
  }
  .gbd-panel-header{
    background-color: #b7d8b9 !important;
    text-align: center;
    padding: 15px 0;
    font-family: "Heebo", sans-serif;
    border-radius: 10px 10px 0 0;
  }
  .gbd-most-donors-board {
    font-family: "Inter", sans-serif;
  }
  .gbd-panel-body {
    background-color: #d0e9d6;
    padding: 10px 30px 30px;
    border-radius: 0 0 10px 10px;
  }
  .gbd-panel-body ol {
    list-style-type: none !important;
    padding-left: 0;
  }
    .gbd-panel-body ol li {
    color: white;
    background-color: #1d9b5c;
    padding-left: 85px;
    position: relative;
    background-image: url('assets/images/clover-yellow.svg');
    background-repeat: no-repeat;
    background-position: 20px center;
    border-radius: 10px;
    padding-top: 10px;
    margin-bottom: 20px;
    padding-bottom: 15px;
  }
  .gbd-panel-body ol li p {
    margin-bottom: 0;
    margin-top: 7px;
    line-height: 1;
    font-size: 19px;
  }
  .gbd-panel-body ol li:first-child {
    background-image: url('assets/images/medal.svg');
    background-position: 10px -4px;
  }
  .gbd-panel-body ol li::after {
    content: '';
    position: absolute;
    width: 26px;
    height: 31px;
    background-image: url('assets/images/arrow-up.svg');
    top: 20px;
    right: 15px;
  }

  .gbd-panel-body ol li.down-trend::after {
    content: '';
    background-image: url('assets/images/arrow-down.svg');
  }
  /* .gbd-panel-body li::before {

  } */
  .gbd-panel-body ol li h3 {
    color: white;
    margin-top: 0;
    margin-bottom: 0;
    border-bottom-right-radius: 10px;
    border-bottom-left-radius: 10px;
    font-family: "Heebo", sans-serif;
    line-height: 1;
  }
  .gbd-recent-donors-list {
    padding-left: 0;
    height: 240px;
    overflow-y: auto;

  }
  .gbd-recent-donors-list li {
    border-bottom: 1px solid black;
    font-size: 1rem;
    font-weight: bold;
    line-height: 1.5;
    color: black;
    list-style: none;
    padding-top: 10px;
    padding-bottom: 10px;
    font-family: "Heebo", sans-serif;
    padding-right: 10px;
  }

  .tn-map-wrapper { 
    position: relative; 
    width: 100% !important; 
    max-width: 1200px !important; 
    margin: 0 auto; 
    font-family: sans-serif; 
}

.tn-map-container { 
    width: 100% !important; 
    display: block; 
    clear: both; 
    margin-bottom: 20px; 
}

#tn-svg-map { 
    width: 100% !important; 
    height: auto !important; 
    display: block; 
}

/* County Base Styles */
.tn-county { 
    stroke: #ffffff !important; 
    stroke-width: 1px !important; 
    vector-effect: non-scaling-stroke;
    transition: fill 0.2s ease, opacity 0.2s ease; 
    cursor: pointer; 
}
.tn-county:hover { 
    opacity: 0.85; 
}

/* 4-H Center Circle Pin Styles */
.tn-center-pin {
    stroke: #ffffff !important;
    stroke-width: 1px !important;
    vector-effect: non-scaling-stroke;
    cursor: pointer;
    transition: fill 0.2s ease, opacity 0.2s ease, r 0.2s ease;
}
.tn-center-pin:hover {
    opacity: 0.9;
    r: 1.5 !important; /* Slightly enlarges circle on hover */
}

/* Tooltip Positioning & Layout */
#tn-map-tooltip {
    position: absolute; 
    /* display: none;  */
    display: block;
    background: rgba(0, 0, 0, 0.9); 
    color: #ffffff;
    padding: 8px 12px; 
    border-radius: 4px; 
    font-size: 13px; 
    pointer-events: none; 
    z-index: 20;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    white-space: nowrap;
    text-align: center;
    line-height: 1.2;
}

.tn-county {
  /*fill: #d0e9d6;*/
  fill: rgb(136, 136, 136);
}
.tn-center-pin {
  fill: #d0e9d6;
}

.tn-county.tier-1, .tn-center-pin.tier-1 {
  fill: #bde0cc;
}
.tn-county.tier-2, .tn-center-pin.tier-2 {
  fill: #6bc390;
}
.tn-county.tier-3, .tn-center-pin.tier-3 {
  fill: #358957;
}
.tn-county.tier-4, .tn-center-pin.tier-4 {
  fill: #22623d;
}

.gdb-map-container {

}
.gdb-tooptip {
  position: fixed;
  display: none;
  background: #d0e9d6;
  color: #000;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 14px;
  pointer-events: auto; 
  z-index: 1000;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.gdb-tooltip::after {
  content: '';
  position: absolute;
  content: "";
  position: absolute;
  bottom: -6px; /* Adjust to align vertically with the bottom edge */
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  
  width: 12px;
  height: 12px;
  background-color: #d0e9d6;
  /* top: 100%;
  left: 0;
  width: 100%;
  height: 50px;  */
}
.tooltip-text {
  text-align: center;
    min-width: 150px;
    line-height: 1.5;
    margin-bottom: 5px !important;
}
.tooltip-text a {
  display: block;
  padding: 5px 10px;
  background-color: #c2410c;
  color: white;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
  border-radius: 5px;
  margin-top: 5px;
}
.tooltip-text a:hover {
  color: #000;
}
.autocomplete-wrapper {
  position: relative;
}
.autocomplete-wrapper .autocomplete-input[type=text] {
  background-color: #eee !important;
  color: #000 !important;
  text-align: center;
  font-family: "Inter", sans-serif;
  font-size: 1.5rem !important;
  font-weight: 700;
  border-radius: 5px;
}
.autocomplete-wrapper .autocomplete-input::placeholder {
  color: #333 !important;
  font-family: "Inter", sans-serif;
  font-size: 1.5rem !important;
  font-weight: 500;
  opacity: 1;
}
.autocomplete-wrapper .autocomplete-input:focus::placeholder {
  opacity: .1;
}
.autocomplete-wrapper .autocomplete-list {
  position: absolute;
  margin-top: 0;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 200px;
  overflow-y: auto;
  list-style: none;
  background-color: #1d9b5c !important;
  color: white !important;
  border-bottom: 1px solid gray;
  z-index: 1000;

}
.autocomplete-wrapper .autocomplete-list:last-child {
  border-bottom: none;
} 
.gbd-county-donate {
 text-align: center;
}
.gbd-county-donate .donate-to-county {
  background-color: #C2410C;
  display: inline-block;
  color: white !important;
  min-width: 250px;
  padding-top: 10px;
  padding-bottom: 10px;
  border-radius: 5px;
  margin-top: 10px;
}
.ninja-table-wrapper {
  height: 400px !important;
  overflow-y: auto !important;
}
.colored_table table.ninja_table_pro.inverted.table a.table-donate-now {
  color: white;
  background-color: #1b9357;
  padding: 5px;
  border-radius: 5px;
  white-space: nowrap;
}
#footable_parent_6750 {
  border-radius: 10px;
}
.table_title {
  padding-bottom: 20px;
  padding-top: 20px;
  background-color: #b7d8b9;
  font-weight: 700;
  text-align: center;
  line-height: 1.5;
  margin-bottom: 0;
}
.ninja_table_wrapper h3.table_title {
  font-family: "Heebo", sans-serif!important;
  background-image: url(https://tn4hfoundation.org/wp-content/plugins/giving-day-board/assets/images/header-left-corner.png);
  background-position: top left;
  background-size: 70px;
  background-repeat: no-repeat;
}
#footable_6750 {
  margin-top: 0;
}
#footable_6750 tbody tr td {
  background-color: #d0e9d6 !important;
  color: black !important;
}
@media only screen and (max-width: 1024px) {
  .fusion-body .fusion-page-title-bar:not(.fusion-tb-page-title-bar) {
      padding-top: 0!important;
      padding-bottom: 0!important;
    }
}
@media all and (min-width: 992px) {
  .gdb-overall-stats {
      display: flex;
      justify-content: space-around;
  }
  .gdb-big-buttons-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 35px;
  }
  .gdb-dontate-now {
    margin-right: 30px;
    
  }
  .leaderboards-container {
    display: flex;
    gap: 30px;
    width: 100%;
  }
  .gbd-panel {
    flex: 0 0 calc((100% - 60px) / 3); 
    box-sizing: border-box;
  }
}
@media all and (max-width: 991px) {
  .gdb-dontate-now {
    display: block;
    margin-bottom: 20px;
  }
  .gbd-panel {
    margin-bottom: 25px;
  }
  .gdb-overall-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    width: 100%;
    justify-content: center;
  }
  .gdb-overall-stats div:has(> .ycd-all-content-wrapper) {
    box-sizing: border-box;
    flex: 0 0 100%;
  }
  .gdb-overall-stats .gdb-total-donors-container, .gdb-overall-stats .gbd-total-donors {
    box-sizing: border-box;
    flex: 0 1 auto;
  }
  .gdb-overall-stats .gdb-total-donors-container {
    margin-right: 30px;
  }
  #footable_6750 tbody tr td {
    max-width: 200px;
  }
  #footable_6750 tbody tr td.ninja_clmn_nm_donate_now {
    min-width: 100px;
  }
}
@media all and (max-width: 500px) {
  .ycd-simple-content-wrapper-6847 .ycd-simple-current-unite-wrapper {
    padding: 10px 10px 10px 0px!important;
  }
  .ycd-simple-content-wrapper-6847 .ycd-simple-current-unite-wrapper .ycd-simple-current-unite {
    margin-right: 5px!important;
  }
  .ycd-simple-content-wrapper-6847 .ycd-simple-timer-dots {
    margin: 0 0 0 5px!important;
  }
}
@media all and (max-width: 400px) {
  .gbd-panel-body ol li h3 {
    font-size: 21px;
  }
  .gbd-panel-body ol li p {
    font-size: 16px;
  }
  .gbd-panel-body {
    padding: 10px 20px 20px;
  }
}