/* Banner at the top of each page */
.page-banner {
    background: #800000;
    color: #ffffff;
    padding: 30px 80px;
}

.page-banner h1 {
    font-size: 30px;
    margin-bottom: 6px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.page-banner p {
    font-size: 15px;
    max-width: 650px;
    line-height: 1.5;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

/* Content area */
.content {
    flex: 1;
    background: #f4f4f4;
    padding: 50px 80px;
}

.section-title {
    color: #800000;
    font-size: 26px;
    margin-bottom: 6px;
}

.section-sub {
    color: #666666;
    margin-bottom: 25px;
    font-size: 15px;
}

/* Cards */
.org-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 45px;
}

.org-card {
    background: #ffffff;
    border-top: 4px solid #800000;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.org-card .abbr {
    font-size: 24px;
    font-weight: bold;
    color: #800000;
}

.org-card .full {
    font-size: 14px;
    font-weight: bold;
    color: #333333;
    margin: 4px 0 12px;
}

.org-card p {
    font-size: 14px;
    color: #555555;
    line-height: 1.5;
}

.org-card .tag {
    display: inline-block;
    margin-top: 14px;
    padding: 3px 12px;
    border-radius: 12px;
    background: #f8e5e5;
    color: #800000;
    font-size: 12px;
    font-weight: bold;
}

.org-card .tag.gray {
    background: #eeeeee;
    color: #666666;
}

/* Steps (About page) */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 45px;
}

.step {
    background: #ffffff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.step .num {
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background: #800000;
    color: #ffffff;
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 12px;
}

.step h3 {
    color: #800000;
    margin-bottom: 6px;
}

.step p {
    font-size: 14px;
    color: #555555;
    line-height: 1.5;
}

.about-text {
    max-width: 800px;
    font-size: 16px;
    color: #444444;
    line-height: 1.7;
    margin-bottom: 45px;
}

.cta {
    text-align: center;
    padding-top: 10px;
}

/* Footer */
.footer {
    background: #2b0000;
    color: #dddddd;
    text-align: center;
    padding: 20px;
    font-size: 14px;
}

/* Organization logos */
.logo-card {
    text-align: center;
}

.org-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    display: block;
    margin: 0 auto 15px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #eeeeee;
}

/* Three columns on the Organizations page */
.org-grid.three-cols {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 900px) {
    .org-grid.three-cols {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .org-grid.three-cols {
        grid-template-columns: 1fr;
    }

    .page-banner {
        padding: 22px 25px;
    }

    .page-banner h1 {
        font-size: 24px;
    }

    .content { padding: 30px 25px;
    }
}
/* Floating org logos in the background */
.content.has-bg {
    position: relative;
    overflow: hidden;
}

.content.has-bg > *:not(.float-logos) {
    position: relative;
    z-index: 1;
}

.float-logos {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
}

.float-logos img {
    position: absolute;
    object-fit: contain;
    border-radius: 30px;
    opacity: 0.3;
    mix-blend-mode: multiply;
    animation: floatLogo 16s ease-in-out infinite;
}

.float-logos img:nth-child(1) { width: 300px; height: 300px; left: -2%; top: 2%;  animation-duration: 15s; animation-delay: -2s; }
.float-logos img:nth-child(2) { width: 240px; height: 240px; left: 72%; top: 5%;  animation-duration: 18s; animation-delay: -7s; }
.float-logos img:nth-child(3) { width: 340px; height: 340px; left: 80%; top: 34%; animation-duration: 17s; animation-delay: -4s; }
.float-logos img:nth-child(4) { width: 260px; height: 260px; left: 2%;  top: 40%; animation-duration: 19s; animation-delay: -10s; }
.float-logos img:nth-child(5) { width: 280px; height: 280px; left: 56%; top: 66%; animation-duration: 16s; animation-delay: -6s; }
.float-logos img:nth-child(6) { width: 320px; height: 320px; left: 14%; top: 72%; animation-duration: 20s; animation-delay: -12s; }

@keyframes floatLogo {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25%      { transform: translate(28px, -36px) rotate(5deg); }
    50%      { transform: translate(-16px, -64px) rotate(-4deg); }
    75%      { transform: translate(-32px, -26px) rotate(4deg); }
}

/* Slightly see-through cards so the logos show behind them */
.content.has-bg .step,
.content.has-bg .org-card {
    background: rgba(255, 255, 255, 0.85);
}

@media (prefers-reduced-motion: reduce) {
    .float-logos img {
        animation: none;
    }
}

@media (max-width: 600px) {
    .float-logos img {
        width: 150px !important;
        height: 150px !important;
    }
}