/* ===== BASE STYLES ===== */

:root {
    --h1-color: #A8D5A8;
    --h2-color: #88b588;
    --h3-color: #78A378;
    --p-color: #6B926B;
    --story-color: #59965E;
    --background-color: #02281B;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: sans-serif;
}

h1 {

    font-size: 2.7rem;
    max-width: 100%;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    color: var(--h1-color);
    margin-bottom: 1.5rem;

}

h2 {

    font-size: 2.3rem;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--h2-color);

}

h3 {

    font-size: 1.2rem;
    text-align: center;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
    color: var(--h3-color);

}

p {

    font-size: 1.2rem;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--p-color);

}


body {
    line-height: 1.6;
    color: var(--p-color);
    background-image: url('../images/background/darkflag.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;   
}

/* Enable smooth scroll snapping */
html {
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}


/* ===== TITLE SECTION WITH SLIDESHOW ===== */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    color: var(--p-color);
    text-align: center;
    padding: 20px;
    scroll-snap-align: start;
}

.hero h1 {
    width: 100%;
}


/* Slideshow images */
.title-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.title-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
}

.title-slide.active {
    opacity: 1;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.title-content {
    position: relative;
    font-family: 'Inter', sans-serif; 
    z-index: 2;
    margin-bottom: 300px;  
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
}

.overlay-img {
    position: absolute;                 
    top: 120px;                         
    right: 249px;                    
    width: 250px;                      
    z-index: 3;                        
}

.title-content.show {
    opacity: 1;
    transform: translateY(0);
}

.hero h1 {
    font-size: 3rem;
    font-family: 'Inter', sans-serif;  

    margin-bottom: 1rem;
    font-weight: bold;
    color: white;
}


/* ===== NAVIGATION DOTS ===== */

#navigation-dots {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 1000;
    pointer-events: none; 
    opacity: 0; 
    transition: opacity 0.5s ease;
}

#navigation-dots.visible {
    opacity: 1;
}

.nav-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #d3d3d3;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
    outline: none;
}

.nav-dot:hover {
    background-color: #b0b0b0;
    transform: scale(1.2);
}

.nav-dot.active {
    width: 12px;
    height: 12px;
    background-color: #a0a0a0; 
}

@media (max-width: 768px) {
    #navigation-dots {
        right: 10px;
        gap: 10px;
    }
    
    .nav-dot {
        width: 6px;
        height: 6px;
    }
    
    .nav-dot.active {
        width: 10px;
        height: 10px;
    }
}

/* ===== SECTION STYLES ===== */
section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    scroll-snap-align: start;
}

/* ===== INTRODUCTION SECTION ===== */
.intro {
    padding: 0 !important;
}

.intro-content {
    max-width: 100%;
    width: 100%;
    text-align: center;
    padding: 60px 0px 20px; 
    color: var(--p-color);
}

.intro-fade {
    opacity: 0;
    transform: translateY(24px);
    width: 100%
}

.intro-fade.is-visible {
    animation: fadeInParagraph 1.8s ease forwards;
}

@keyframes fadeInParagraph {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ===== buffer sections ===== */
.buffer {
    padding: 0 !important; 
    overflow: visible; 
}

@media only screen and (min-width: 600px) {
  .buffer {
    padding: 0 150px !important;
  }
}

.buffer-content {
    max-width: 75%;
    text-align: center;
    padding: 60px 0px 20px;  
}

.buffer h3 {
    max-width: 90%;  
    width: 100%;
  
}

.dramatic-intro {
    position: relative;
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.dramatic-intro.is-visible {
    animation: typingEffect 2.6s steps(30, end) forwards;
}

.dramatic-intro.is-visible::after {
    content: '';
    position: absolute;
    top: 10%;
    right: -0.35rem;
    width: 3px;
    height: 80%;
    background: var(--h2-color);
    animation: caretBlink 0.55s step-end infinite, caretHide 0s linear forwards;
    animation-delay: 0s, 2.6s;
    animation-fill-mode: none, forwards;
}

@keyframes typingEffect {
    0%   { width: 0; }
    100% { width: 100%; }
}

@keyframes caretBlink {
    from { opacity: 1; }
    to   { opacity: 0; }
}

@keyframes caretHide {
    to { opacity: 0; }
}

/* ===== text sections ===== */
.text {
    color: var(--p-color);
    padding: 0 !important;  
}

.text-content {
    max-width: 75%;
    width: 100%;
    text-align: center;
    padding: 60px 0px 20px;  
}

/* Story Boxes Container - Full Width */
.story-boxes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;  
    height: 90vh;  
    width: 100%;
    margin-top: 3rem;
}

/* Individual Story Box - Large and Full Height */
.story-box {
    background: white;
    padding: 60px;  
    border-right: 2px solid #e9ecef;  
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.story-box:last-child {
    border-right: none;  
}

.story-box:hover {
    background: #f8f9fa;
    transform: scale(1.02);
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Square Photo Placeholder */
.story-image-placeholder {
    width: 350px;  
    height: 350px;  
    margin: 0 auto 30px;
    background: #6B926B;
    border: 3px dashed #adb5bd;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #6c757d;
    font-size: 1.5rem;
}

/* Responsive: Stack on smaller screens */
@media (max-width: 768px) {
    .story-boxes {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .story-box {
        border-right: none;
        border-bottom: 2px solid #e9ecef;
        min-height: 100vh;
    }
    
    .story-box:last-child {
        border-bottom: none;
    }
    
    .story-image-placeholder {
        width: 200px;
        height: 200px;
    }
}



/* ===== VISUALIZATION SECTIONS ===== */

.viz-container {
    max-width: 1200px;
    width: 100%;
}

.viz-placeholder {
    width: 100%;
    height: 500px;
    background: #e9ecef;
    border: 3px dashed #adb5bd;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: var(--p-color);
    margin-bottom: 2rem;
    border-radius: 8px;
}

.viz-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--p-color);
}



/* ===== INTERACTIVE MAP SECTION ===== */

.map-section {
    background: transparent;
    position: relative;
    padding: 40px 20px;
}

.map-section .map-intro {
    text-align: center;
    font-size: 1.2rem;
    color: var(--p-color);
}

.map-section h2.panel-open {
    transform: translateX(-20%);
}


.map-content-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    transition: transform 0.4s ease;
}


.map-content-wrapper.panel-open {
    transform: translateX(-17%);  
}

.map-display {
    flex: 0 0 100%;
    transform: translateX(-2.5%);
}

/* US Map Wrapper */
.us-map-wrapper {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    background: transparent;
    border-radius: 12px;
    transform: translateX(5%);

}

#us-map {
    width: 100%;
    height: auto;
    display: block;
}

.state {
    fill: #d3d3d3;
    stroke: #999;
    stroke-width: 1;
    transition: fill 0.3s ease;
}

.state.highlighted {
    fill: #248924;
}

.story-marker {
    fill: #6B926B;
    stroke: white;
    stroke-width: 2;
    cursor: pointer;
    transition: all 0.3s ease;
}

.story-marker:hover {
    fill: #4bb052;
    stroke-width: 3;
}

.story-marker:active {
    fill: #8df598;
}

.story-side-panel {
    position: fixed;
    right: -30%;
    top: 0;
    width: 30%;
    height: 100vh;
    background: white;
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.3);
    z-index: 2000;
    transition: right 0.4s ease;
    overflow-y: auto;
    padding: 80px 20px 20px;
}

.story-side-panel.open {
    right: 0;
}

/* Close Button */
.panel-close {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    left: auto;  
    right: -100px;  
    background: #6B926B;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    z-index: 2001;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.3);
}

.panel-close.visible {
    right: calc(28%); 
}

.panel-close:hover {
    background: #4bb052;
    transform: translateY(-50%) scale(1.1);
}

.panel-close::before {
    content: '›'; 
    font-size: 2rem;
    line-height: 1;
}

/* panel content */

.story-image {
    width: 75%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    margin: 1rem auto 1.5rem auto;
    display: block;
}

.panel-story-content h3 {
    font-size: 1.3rem;  
    margin-bottom: 0.5rem;  
    margin-top: -0.5rem; 
    color: #4a774a;
    font-weight: bold;
}

.panel-story-content p strong {
    color: var(--background-color);
    font-weight: 700;
}

.story-text {
    margin-top: 1rem;
    margin-bottom: 0.5rem;  
    text-align: justify;
    color: #2d5a2d;  
    font-size: 0.95rem;  

}

@media (max-width: 768px) {
    .story-side-panel {
        width: 85%;
        right: -85%;
    }
    
    .story-side-panel.open {
        right: 0;
    }
    
    .map-content-wrapper.panel-open {
        transform: translateX(-30%);
    }
    
    .panel-close.visible {
        right: calc(85% + 10px);
    }
    
    .map-section h2 {
        font-size: 2rem;
    }
    
    .panel-story-content {
        padding: 20px;
    }
}



/* === WHERE AM I VIZ ====*/

/* Person Scroll Section */
.person-scroll-section {
    position: relative;
    min-height: 500vh;
    z-index: 1;
    overflow: visible; 
    scroll-snap-type: y mandatory; 

}

/* .scroll-trigger {
    height: 100vh;
    position: relative;
    scroll-snap-align: start; 
} */

.scroll-trigger {
    height: 100vh;
    position: relative;
    scroll-snap-align: center;  /* Snap to center */
    scroll-snap-stop: always;  /* Force stop at each trigger */
}

.person-fixed-container {
    position: fixed;
    left: 50%;
    top: 50%; 
    transform: translate(-50%, -50%);

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;

    z-index: 10;
    pointer-events: none;

    opacity: 0; 
    transition: opacity 0.3s ease;  

    width: 90vw;  
    max-width: 1400px;  
}


.scroll-trigger {
    height: 100vh;
    position: relative;
}

.person-text {
    font-size: 1.5rem;
    text-align: center;
    max-width: 1000px;
    padding: 2rem;
    transition: opacity 0.3s ease;
}

.zoom-section {
    position: relative;
    min-height: 300vh;
    background: #f8f9fa;
    overflow: hidden;
}

.zoom-container {
    position: sticky;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    transition: transform 0.5s ease;
}

#zoom-single-person {
    transition: all 1s ease;
}

.grid-reveal {
    position: sticky;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    opacity: 0;
    transition: opacity 1s ease;
}

.grid-reveal.visible {
    opacity: 1;
}



/* ===== STACKPLOT CONTAINER  ===== */
.container {
    display: flex;
    flex-direction: column;
    padding: 20px;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.stackplot-container select {
    padding: 5px 10px;
    border-radius: 10px;
}

.sp-filter {
    margin-bottom: 0.5rem;
}

#sp-scrolly .sp-view { 
    display: none !important; 
}

#sp-scrolly .scene {
    display: grid;
    grid-template-columns: minmax(380px, 1fr) minmax(320px, 420px);
    gap: 2rem;
    align-items: start;
}

.vis {
    position: sticky;
    top: 0.25rem;
    height: 500px;
    border: 1px solid rgba(107, 146, 107, 0.3);
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1), 0 0 20px rgba(107, 146, 107, 0.3);
    padding: 16px 16px 8px;
    display: flex;
    flex-direction: column;
    gap: .1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
}

#sp-scrolly .vis .title { 
    font-weight: 600; 
    font-size: .95rem; 
    color: white; 
    text-align: center; 
}

#sp-scrolly #sp-area { 
    flex: 1; 
    min-height: auto; 
    display: flex;
    align-items: center;
    justify-content: center; 
}

#sp-scrolly .legend-note { 
    font-size: 12px; 
    color: white; 
    margin-top: .25rem; 
}

#sp-scrolly .steps { 
    display: flex; 
    flex-direction: column; 
    gap: 75vh; 
    padding-bottom: 50vh; 
}

#sp-scrolly .step { 
     border: 1px solid rgba(107, 146, 107, 0.3);
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1), 0 0 20px rgba(107, 146, 107, 0.3);
    padding: 16px 16px 8px;
    padding: 1rem; 
}

#sp-scrolly .step h3 {
    font-size: 1rem; 
    color: white; 
    text-align: center;  
    max-width: 80%; 
    margin-left: auto; 
    margin-right: auto; 
}

#sp-scrolly .stat-box { 
    background: #f3f4f6; 
    padding: .75rem; 
    border-radius: 10px; 
    font-size: .95rem; 
}

#sp-scrolly .muted { 
    color: white; 
}

#sp-scrolly .row { 
    display: flex; 
    gap: .5rem; 
    align-items: center; 
    flex-wrap: wrap; 
}

#sp-scrolly input[type="number"] { 
    width: 8rem; 
    padding: .4rem .5rem; 
    border: 1px solid #d1d5db; 
    border-radius: 8px; 
    font: inherit; 
}

#sp-scrolly button { 
    padding: .5rem .75rem; 
    border-radius: 10px; 
    border: 1px solid #11182722; 
    background: #111827; 
    color: white; 
    cursor: pointer; 
}

#sp-scrolly button.secondary { 
    background: white; 
    color: #111827; 
}

#sp-scrolly .hint { 
    font-size: .85rem; 
    color: #e3e3e3; 
}

#sp-area.hide-2023 [data-year="2023"],
#sp-area.hide-2024 [data-year="2024"] { 
    opacity: 0; 
    transition: opacity .5s ease; 
}

#sp-area.dim-sep .roe-label, 
#sp-area.dim-sep line[data-role="sep"] {
    opacity: 0; 
    transition: opacity .5s ease; 
}

#sp-area .guess rect { 
    fill: none; 
    stroke: white; 
    stroke-width: 2; 
    stroke-dasharray: 6 6; 
}

#sp-area .guess text { 
    font-size: 11px; 
    fill: white; 
    text-anchor: middle; }

#sp-scrolly .sp-filter {
    display: none; 
}

#sp-scrolly.show-filter .sp-filter {
    display: block; 
}

#sp-area svg text,
#sp-area svg tspan,
#sp-area .tick text {
fill: white !important; 
opacity: 1 !important;    
}

#state-area select,
#state-area p {
color: white !important;
}

html.scroll-lock,
body.scroll-lock {
  overflow: hidden;
  height: 100vh;
}

html.scroll-lock {
  scroll-snap-type: none;
}

/* ==== STATE PLOT ===== */
.viz-card {
    border: 1px solid rgba(107, 146, 107, 0.3);
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border-radius: 14px;
    box-shadow: 
        0 4px 12px rgba(0,0,0,0.1), 
        0 0 20px rgba(107, 146, 107, 0.3);
    padding: 16px 16px 8px;
    margin: 20px 0;
    justify-content: flex-start;
    text-align: start;
}

#state-area svg text {
  text-shadow: none !important;
  -webkit-text-stroke: 0 !important;
  stroke: none !important;
}

#state-area svg {
  width: 100% !important;
  height: auto;
}

.state-cards {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: stretch;
  width: 100%;
}

.state-cards .viz-card {
  min-height: 360px;
}

.state-cards .viz-card:first-child {
  flex: 4; 
}
.state-cards .viz-card.state-detail-card {
  flex: 1;
  min-height: 360px;
}

.state:hover {
  cursor: pointer!important;
}

.state-detail-card {
  color: white;
}

.state-detail-card h3 {
  margin-bottom: 0.75rem;
}

.state-detail-card p {
  max-width: 100%;
  text-align: left;
  margin-bottom: 0.75rem;
}

@media (max-width: 900px) {
  .state-cards {
    flex-direction: column;
  }
}


/* ===== CONCLUSION SECTION ===== */

.conclusion {
    color: white;
}

.conclusion-content {
    max-width: 2000px;  
    text-align: center;
}

.conclusion-content h1 {
    width: 100%;  
    text-align: center;
}

.conclusion-content h2 {
    width: 100%;  
    font-size: 1.25rem;
    text-align: center;
}

.conclusion-content p {
    max-width: 800px;  
    margin: 0 auto 2rem auto;
    
}

strong {
    color: #b4d0b4; 
    font-weight: bold;
}


/* ==== Women's Health Rankings Visualization ==== */
#womens-health-metric-select {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: 1px solid rgba(107, 146, 107, 0.5);
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

#womens-health-metric-select:hover {
    border-color: rgba(107, 146, 107, 0.8);
    box-shadow: 0 2px 8px rgba(107, 146, 107, 0.2);
}

#womens-health-metric-select:focus {
    outline: none;
    border-color: var(--h2-color);
    box-shadow: 0 0 0 3px rgba(136, 181, 136, 0.3);
}

#womens-health-rankings {
    display: flex;
    flex-direction: column;
}

#rankings-list-container {
    max-height: 450px;
    overflow-y: auto;
}

#rankings-list-container::-webkit-scrollbar {
    width: 8px;
}

#rankings-list-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

#rankings-list-container::-webkit-scrollbar-thumb {
    background: rgba(107, 146, 107, 0.5);
    border-radius: 4px;
}

#rankings-list-container::-webkit-scrollbar-thumb:hover {
    background: rgba(107, 146, 107, 0.7);
}

.rankings-list {
    max-height: 400px;
    overflow-y: auto;
}

.ranking-item {
    user-select: none;
}

.ranking-item-top,
.ranking-item-bottom {
    font-weight: 500;
}

.ranking-item-middle {
    font-size: 0.9rem;
}

.ranking-item-ellipses {
    user-select: none;
}

.ranking-item-ellipses:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    #womens-health-layout {
        flex-direction: column;
    }
    
    #womens-health-map-wrapper,
    #womens-health-rankings {
        flex: 1 1 100%;
    }
}

/* === helen map & circle stuff :) === */

.viz-container-map {
    max-width: 1750px;
    width: 100%;
}

.viz-placeholder-map {
    width: 100%;
    height: 500px;
    display: flex;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: #6c757d;
    border-radius: 8px;
}

.tooltip {
    position: absolute;
    padding: 12px;
    background: var(--background-color);
    color: white;
    border-radius: 6px;
    pointer-events: none;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 1000;
}

.flow-path {
    transition: opacity 0.2s;
}

.flow-path.highlighted {
    opacity: 0.9 !important;
    filter: drop-shadow(0 0 4px rgba(0,0,0,0.3));
}

.flow-path.dimmed {
    opacity: 0.1 !important;
}

.ranking-chart {
    height: 230px;
    width: 100%;
    max-width: 300px;  
    margin: 15px auto; 
    background: rgba(209, 213, 219, 0.14); 
    border-radius: 14px;
    overflow: scroll;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 0 20px rgba(107, 146, 107, 0.3);
}

.ranking-chart li {
    color: var(--background-color);  
    margin-bottom: 8px;
    font-size: 15px;
    padding: 8px 12px;
    background: rgba(168, 213, 168, 0.2);  
    border-radius: 8px;
    border-left: 3px solid var(--h1-color); 
}

.ranking-chart li:hover {
    background: rgba(168, 213, 168, 0.35);
    transform: translateX(5px);
    transition: all 0.2s ease;
}


/* ===== DONATION SECTION ===== */
.donation-section {
    padding: 80px 20px;
}

.donation-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}
.donation-intro {
    font-size: 1.2rem;
    color: var(--p-color);
    margin-bottom: 3rem;
}

/* Donation Boxes Grid */
.donation-boxes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 3rem;
}

/* Individual Donation Box */
.donation-box {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 35px;
    border: 1px solid rgba(107, 146, 107, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1),
                0 0 20px rgba(107, 146, 107, 0.3);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
}

.donation-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15),
                0 0 30px rgba(107, 146, 107, 0.6); 
}

.donation-box img,
.donation-box h3 {
    flex-shrink: 0;
}

.org-logo-placeholder {
    width: 120px;
    height: 120px;
    background: #e9ecef;
    border: 3px dashed #adb5bd;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #6c757d;
    font-size: 1rem;
    margin-bottom: 20px;
    flex-shrink: 0;  
}

.org-description {
    font-size: 1rem;
    color: #ffffff;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1; 
    display: flex;
    align-items: center; 
    max-width: 100%;
}

.donate-btn {
    display: inline-block;
    padding: 12px 30px;
    background: #045816;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    transition: background 0.3s ease;
    flex-shrink: 0;  
    margin-top: auto;  
}

.donate-btn:hover {
    background: #764ba2;
}

@media (max-width: 768px) {
    .donation-boxes {
        grid-template-columns: 1fr;
    }
    
    .donation-container h2 {
        font-size: 2rem;
        color: var(--h2-color);
    }
}

.container-wrapper {
    display: flex;
    max-width: 80%;
    gap: 20px;  
    align-items: flex-start;  
}

.tooltip {
    flex: 0 0 100px;  
}

.container {
    flex: 1;  
}

@media (max-width: 768px) {
    .container-wrapper {
        flex-direction: column;
    }
    
    .tooltip {
        flex: 1;
    }
}

