html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

:root {
    --primary-color: #8B0000;
    --primary-dark: #5D0000;
    --primary-soft: #F8EAEA;
    --accent-gold: #C9922C;
    --accent-green: #2F7D5B;
    --ink: #1D1D1F;
    --muted: #69707A;
    --line: #E9E2E2;
    --surface: #FFFFFF;
    --surface-soft: #FBF7F5;
    --shadow: 0 18px 45px rgba(77, 38, 38, 0.10);
}

* {
    letter-spacing: 0;
}

body {
    font-family: 'Prompt', sans-serif;
    color: var(--ink);
    background: #fff;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: var(--primary-color);
}

.rdi-pattern {
    background:
        linear-gradient(180deg, rgba(139, 0, 0, 0.045) 0%, rgba(255, 255, 255, 0.92) 320px),
        repeating-linear-gradient(90deg, rgba(139, 0, 0, 0.035) 0 1px, transparent 1px 96px);
}

.rdi-blur {
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.glass-effect {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: 0 10px 30px rgba(77, 38, 38, 0.08);
}

.top-border {
    border-top: 4px solid var(--primary-color);
}

.wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
}

#content {
    width: 100%;
    min-height: 100vh;
}

.rdi-navbar {
    padding: 0.9rem 0;
}

.navbar-brand {
    color: var(--ink);
    text-decoration: none;
}

.brand-mark {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--primary-color);
}

.brand-mark img {
    width: 82%;
    height: 82%;
    object-fit: contain;
}

.brand-title {
    color: var(--ink);
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.15;
}

.brand-title span {
    color: var(--primary-color);
}

.brand-subtitle {
    color: var(--muted);
    font-size: 0.8rem;
    margin-top: 0.2rem;
}

.navbar .nav-link {
    color: #42464D;
    font-weight: 500;
    padding: 0.62rem 1rem;
    border-radius: 8px;
}

.navbar .nav-link:hover {
    color: var(--primary-color);
    background: var(--primary-soft);
}

.navbar .nav-link.active {
    color: #fff;
    background: var(--primary-color);
}

.navbar .nav-link.nav-link-plain {
    color: var(--primary-color);
}

.navbar .nav-link.nav-link-plain:hover {
    color: #fff;
    background: var(--primary-color);
}

@media (min-width: 992px) {
    .rdi-navbar .navbar-nav {
        gap: 0.9rem;
    }
}

.home-hero,
.page-hero {
    padding: 2.5rem 0 2.5rem;
}

.compact-hero {
    padding-bottom: 3.3rem;
}

.home-hero h1,
.page-hero h1 {
    max-width: 850px;
    margin: 0.65rem 0 1rem;
    color: var(--ink);
    font-size: clamp(2.15rem, 4vw, 4.25rem);
    font-weight: 800;
    line-height: 1.15;
}

.home-hero h1 {
    max-width: 780px;
}

.hero-lead,
.page-hero p,
.section-heading p {
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.8;
}

.hero-lead {
    max-width: 700px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.8rem;
}

.btn-red {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    border-radius: 8px;
    font-weight: 600;
}

.btn-red:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white;
}

.btn-outline-red {
    border-color: rgba(139, 0, 0, 0.35);
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.72);
    border-radius: 8px;
    font-weight: 600;
}

.btn-outline-red:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.snapshot-wheel {
    border-radius: 12px;
    background: transparent;
    border: none;
    box-shadow: none;
    overflow: visible;
}

.snapshot-wheel__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.25rem;
    border-bottom: none;
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 500;
}

.snapshot-wheel__year {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--primary-color);
    background: var(--primary-soft);
    padding: 0.18rem 0.55rem;
    border-radius: 5px;
    letter-spacing: 0.5px;
}

.snapshot-wheel__canvas {
    position: relative;
    padding: 0.5rem;
}

.snapshot-svg {
    width: 100%;
    height: auto;
    display: block;
}

/* ===== ARC REACTOR RING ANIMATIONS ===== */

/* Outer ring: slow clockwise rotation */
.arc-ring-outer {
    transform-origin: 220px 220px;
    animation: rotateClockwise 90s linear infinite;
}

/* Middle ring: very slow counter-clockwise */
.arc-ring-mid {
    transform-origin: 220px 220px;
    animation: rotateCounter 120s linear infinite;
}

/* Inner ring: subtle pulse */
.arc-ring-inner {
    transform-origin: 220px 220px;
    animation: rotateClockwise 60s linear infinite;
}

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

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

/* SDG tick marks */
.sdg-tick {
    transition: stroke-opacity 0.4s ease;
}

/* Arc segments */
.arc-segment {
    transition: stroke-opacity 0.4s ease;
}

/* Connection lines flowing dash */
.snap-line {
    animation: dashFlow 12s linear infinite;
}

@keyframes dashFlow {
    to { stroke-dashoffset: -64; }
}

/* Stat pods */
.snap-node {
    cursor: default;
}

.snap-node circle:first-child {
    transition: stroke-opacity 0.3s ease, stroke-width 0.3s ease;
}

.snap-node:hover circle:first-child {
    stroke-opacity: 0.22;
    stroke-width: 2;
}

/* SDG color bars */
.sdg-bar {
    transition: stroke-opacity 0.4s ease, stroke-width 0.3s ease;
}

.sdg-bar:hover {
    stroke-opacity: 0.85;
    stroke-width: 8;
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .arc-ring-outer,
    .arc-ring-mid,
    .arc-ring-inner {
        animation: none;
    }
    .snap-line {
        animation: none;
    }
}


.content-section {
    padding: 3.8rem 0;
}

.section-soft {
    background: rgba(251, 247, 245, 0.88);
    border-top: 1px solid rgba(139, 0, 0, 0.08);
    border-bottom: 1px solid rgba(139, 0, 0, 0.08);
}

.section-heading {
    max-width: 760px;
    margin: 0 auto 2.2rem;
    text-align: center;
}

.section-heading h2 {
    margin: 0.45rem 0 0.75rem;
    font-size: clamp(1.65rem, 2.6vw, 2.45rem);
    font-weight: 800;
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
}

.service-card,
.news-card,
.grant-card,
.award-card,
.value-card {
    height: 100%;
    padding: 1.35rem;
    border-radius: 8px;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: 0 12px 34px rgba(77, 38, 38, 0.07);
}

.service-card h3,
.news-card h3,
.grant-card h2,
.award-card h2,
.value-card h3 {
    margin: 0.9rem 0 0.65rem;
    color: var(--ink);
    font-size: 1.15rem;
    font-weight: 750;
    line-height: 1.45;
}

.service-card p,
.news-card p,
.grant-card p,
.award-card p,
.value-card p {
    color: var(--muted);
    line-height: 1.75;
    margin-bottom: 0;
}

.icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    height: 40px;
    padding: 0 0.65rem;
    border-radius: 8px;
    background: var(--primary-soft);
    color: var(--primary-color);
    font-weight: 800;
    font-size: 0.82rem;
}

.focus-list,
.timeline,
.info-grid {
    display: grid;
    gap: 0.9rem;
}

.focus-item,
.timeline-item,
.info-grid > div,
.document-item {
    padding: 1.15rem;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--line);
}

.focus-item strong,
.timeline-item strong,
.info-grid strong {
    display: block;
    color: var(--ink);
    font-weight: 750;
    margin-bottom: 0.35rem;
}

.focus-item span,
.timeline-item span,
.info-grid span {
    color: var(--muted);
    line-height: 1.7;
}

.news-card span,
.grant-status,
.award-year,
.status-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.28rem 0.65rem;
    font-size: 0.78rem;
    font-weight: 700;
}

.news-card span,
.grant-status {
    color: var(--primary-color);
    background: var(--primary-soft);
}

.grant-status.soon {
    color: #7B5814;
    background: #FFF2D7;
}

.grant-card.featured {
    border-color: rgba(139, 0, 0, 0.25);
    background: linear-gradient(180deg, #fff 0%, #fff7f6 100%);
}

.grant-meta {
    display: grid;
    gap: 0.45rem;
    margin-top: 1.2rem;
    color: var(--muted);
    font-size: 0.92rem;
}

.document-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.9rem;
}

.award-card.gold {
    border-color: rgba(201, 146, 44, 0.35);
    background: linear-gradient(180deg, #fff 0%, #fff8eb 100%);
}

.award-year {
    color: #7B5814;
    background: #FFF2D7;
}

.rdi-table-wrap {
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: var(--shadow);
}

.rdi-table {
    margin-bottom: 0;
}

.rdi-table th {
    color: var(--ink);
    background: var(--surface-soft);
    border-bottom-color: var(--line);
    font-weight: 750;
}

.rdi-table td {
    color: #42464D;
    border-color: var(--line);
    line-height: 1.65;
}

.status-pill {
    color: var(--accent-green);
    background: #E9F6F0;
    white-space: nowrap;
}

.feature-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.check-list {
    display: grid;
    gap: 0.75rem;
}

.check-list span {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    color: #42464D;
    line-height: 1.65;
}

.check-list span::before {
    content: "";
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    margin-top: 0.55rem;
    border-radius: 50%;
    background: var(--accent-green);
}

.about-panel {
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    background:
        linear-gradient(135deg, rgba(139, 0, 0, 0.08), rgba(201, 146, 44, 0.11)),
        #fff;
}

.about-panel img {
    width: 112px;
    height: 112px;
    object-fit: contain;
}

.about-panel strong {
    display: block;
    font-size: 2rem;
    color: var(--primary-color);
}

.about-panel span {
    color: var(--muted);
}

.contact-card {
    height: 100%;
    padding: 1.4rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.contact-card span {
    color: var(--primary-color);
    font-weight: 750;
}

.contact-card h2 {
    margin: 0.5rem 0;
    font-size: 1.35rem;
    font-weight: 800;
}

.contact-card p {
    color: var(--muted);
    margin-bottom: 0;
}

.site-footer {
    padding: 2.2rem 0;
    color: #fff;
    background: #2A1C1C;
}

.site-footer h2 {
    font-size: 1.1rem;
    font-weight: 750;
    margin-bottom: 0.35rem;
}

.site-footer p {
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 0;
}

.footer-contact {
    font-size: 0.92rem;
}

@media (max-width: 991px) {
    .rdi-navbar .navbar-nav {
        gap: 0.25rem;
        padding-top: 0.65rem;
    }

    .navbar .nav-link {
        margin-top: 0.3rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .home-hero,
    .page-hero {
        padding: 4rem 0 3rem;
    }

    .document-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    .brand-title {
        font-size: 0.94rem;
    }

    .brand-subtitle {
        font-size: 0.72rem;
    }

    .brand-mark {
        width: 40px;
        height: 40px;
    }

    .home-hero h1,
    .page-hero h1 {
        font-size: 2rem;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .snapshot-wheel__canvas {
        padding: 0.5rem;
    }

    .document-grid {
        grid-template-columns: 1fr;
    }

    .content-section {
        padding: 0.5rem 0;
    }

    .about-panel {
        flex-direction: column;
        text-align: center;
    }
}
