.upload-section-heading {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    width: 100%;
    text-align: center;
}

@media (min-width: 576px) {
    .upload-section-heading {
        flex-direction: row;
        text-align: initial;
    }
}

@media (min-width: 992px) {
    .upload-section-heading {
        justify-content: center;
    }
}
body.body-bg {
    background-color: #f5f7f6;
}

pre.log-output {
    background-color: #212529;
    color: #e9ecef;
    padding: 1rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    max-height: 240px;
    overflow-y: auto;
}

.table td,
.table th {
    vertical-align: middle;
}

/* Landing page accents */
:root {
    --forest-900: #0f3b2e;
    --forest-600: #1c614a;
    --forest-100: #e6f0ec;
    --neutral-50: #f5f7f6;
    --neutral-200: #e5ebe8;
    --neutral-500: #6b7a73;
}

/* Footer logo sizing */
.footer-logo img {
    max-height: 145px;
    width: auto;
}

.slider-area.hero-static {
    background: linear-gradient(135deg, rgba(15, 59, 46, 0.85), rgba(28, 97, 74, 0.85));
}

.header-sticky.sticky-bar,
.header-sticky.sticky-bar.sticky {
    background-color: var(--neutral-50);
    backdrop-filter: blur(14px);
    box-shadow: 0 12px 28px rgba(15, 59, 46, 0.16);
}

.slider-area.hero-static .single-slider {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-title {
    color: #ffffff;
    font-size: clamp(2rem, 3vw + 1rem, 3rem);
    font-weight: 600;
}

.hero-eyebrow,
.section-eyebrow {
    display: inline-block;
    letter-spacing: 0.1em;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.hero-eyebrow {
    color: rgba(255, 255, 255, 0.7);
}

.section-eyebrow {
    color: rgba(15, 59, 46, 0.65);
}

/* Smooth scroll offset for anchor links */
#how-it-works {
    scroll-margin-top: 80px;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.85);
    max-width: 42rem;
}

.hero-highlights {
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero-pill {
    background-color: rgba(230, 240, 236, 0.18);
    border: 1px solid rgba(230, 240, 236, 0.35);
    border-radius: 999px;
    color: #f4fbf8;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    padding: 0.4rem 1.2rem;
    text-transform: uppercase;
}

.hero-pill.hero-pill-long {
    display: block;
    font-size: 0.95rem;
    letter-spacing: 0.015em;
    line-height: 1.45;
    text-transform: none;
}

.hero-card {
    border-radius: 1.5rem;
    overflow: hidden;
    background-color: #ffffff;
}


.hero-card.hero-card-transparent {
    background-color: transparent;
    backdrop-filter: none;
}

.hero-card-body {
    padding: 1.25rem 1.5rem;
}

.hero-card-body.hero-card-overlay {
    background-color: rgba(230, 240, 236, 0.18);
    border: 1px solid rgba(230, 240, 236, 0.35);
    border-top: none;
    border-bottom-left-radius: 1.25rem;
    border-bottom-right-radius: 1.25rem;
    color: #ffffff;
    line-height: 1.5;
}

.hero-card-body.hero-card-overlay p {
    color: #ffffff;
}

#why-castana-matters .why-castana-image-wrapper {
    width: 100%;
    position: relative;
    background: linear-gradient(180deg, rgba(15, 59, 46, 0.15), rgba(15, 59, 46, 0.05));
    display: flex;
    justify-content: center;
    padding: 0;
}

#why-castana-matters .why-castana-hero-image {
    width: 100%;
    height: auto;
    max-height: 360px;
    object-fit: cover;
    display: block;
    filter: saturate(1.05);
}

#why-castana-matters .why-castana-caption {
    padding: 0.75rem 1rem 0;
}

#why-castana-matters .why-castana-caption a {
    color: inherit;
    text-decoration: underline;
}

.impact-image-pair {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.impact-image-wrapper {
    flex: 1 1 320px;
    max-width: 420px;
    height: 320px;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 18px 36px rgba(15, 59, 46, 0.15);
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.impact-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.impact-image-wrapper.rotate img {
    width: auto;
}

.impact-rotate-90 {
    display: block;
    height: 180%;
    width: auto;
    transform: rotate(90deg) scale(1.35);
    transform-origin: center center;
}

.hero-btn {
    display: inline-block;
    background-color: #1f7a57;
    color: #ffffff;
    padding: 0.75rem 1.75rem;
    border-radius: 999px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: all 0.2s ease;
}

.hero-btn:hover,
.hero-btn:focus {
    background-color: #237d5f;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn-outline {
    display: inline-block;
    border: 2px solid rgba(255, 255, 255, 0.7);
    background-color: transparent;
    border-radius: 999px;
    color: #ffffff;
    padding: 0.75rem 1.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: all 0.2s ease;
}

.btn-outline:hover,
.btn-outline:focus {
    border-color: rgba(255, 255, 255, 0.95);
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.section-title {
    font-weight: 600;
    color: #0f3b2e;
}

.mission-card,
.info-tile,
.audience-card,
.stat-card,
.deliverable-card {
    background-color: #ffffff;
    border-radius: 1.5rem;
    box-shadow: 0 20px 40px rgba(15, 59, 46, 0.08);
    padding: 2rem;
}

.stat-card {
    border: 1px solid rgba(28, 97, 74, 0.12);
    text-align: left;
}

.stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--forest-900);
    color: #ffffff;
    border-radius: 0.75rem;
    padding: 0.35rem 0.75rem;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.stat-title {
    margin-top: 1rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--neutral-500);
}

.material-dot {
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    background-color: var(--forest-600);
    border-radius: 9999px;
    margin-top: 0.4rem;
}

.timeline {
    border-left: 2px solid var(--forest-100);
    padding-left: 1.25rem;
}

.how-tabs {
    margin: 0;
    padding-left: 0;
}

.how-tabs li {
    list-style: none;
}

.timeline-step-button {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    display: block;
    padding: 0.25rem 0.75rem 0.75rem 0.75rem;
    text-align: left;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
}

.timeline-step-button:focus {
    outline: none;
}

.timeline-step-button:focus-visible {
    outline: 2px solid var(--forest-300);
    outline-offset: 4px;
    border-radius: 14px;
}

.timeline-step-button.active {
    background-color: rgba(15, 59, 46, 0.08);
    box-shadow: 0 12px 32px rgba(15, 59, 46, 0.12);
    border-radius: 14px;
}

.timeline-step-button.active h3 {
    color: #0a221a;
}

.timeline-step-button.active .step-marker {
    background-color: var(--forest-600);
    transform: scale(1.18);
    font-size: 1.05rem;
}

.timeline-step {
    position: relative;
    margin-bottom: 1.75rem;
}

.timeline-step:last-child {
    margin-bottom: 0;
}

.timeline-step .step-marker {
    position: absolute;
    left: -2rem;
    top: 0;
    background-color: var(--forest-600);
    color: #ffffff;
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.timeline-step h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #0f3b2e;
}

.deliverable-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.deliverables-grid .deliverable-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    padding: 2.5rem 2.25rem;
}

.deliverables-grid > [class*="col-"] {
    margin-bottom: 10px;
}

.deliverable-card:hover,
.deliverable-card:focus-within {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(15, 59, 46, 0.16);
}

/* Dashboard upload card states */
.upload-card {
    border: 1px solid rgba(15, 59, 46, 0.1);
    border-radius: 1.5rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    background-color: #ffffff;
    margin: 0.9rem 0;
}

.upload-card input[type="file"].form-control {
    padding: 0.75rem 1rem;
    height: auto;
}

.upload-card input[type="file"].form-control::file-selector-button {
    padding: 0.6rem 1.25rem;
    height: 100%;
    border: none;
    border-right: 1px solid rgba(15, 59, 46, 0.12);
    background-color: rgba(15, 59, 46, 0.08);
    color: #0f3b2e;
}

.upload-card input[type="file"].form-control:hover::file-selector-button,
.upload-card input[type="file"].form-control:focus-visible::file-selector-button {
    background-color: rgba(15, 59, 46, 0.16);
}

.upload-card-grid {
    justify-items: center;
    gap: 1.75rem;
}
@media (min-width: 768px) {
    .upload-section-heading {
        flex-direction: row;
    }
}

.upload-card-grid .upload-card {
    width: min(100%, 680px);
}

@media (min-width: 992px) {
    .upload-card-grid .upload-card {
        width: min(100%, 520px);
    }
}

.upload-lead {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    max-width: min(100%, 680px);
}

@media (min-width: 992px) {
    .upload-lead {
        max-width: 520px;
    }
}

.upload-card__status,
.upload-card__error {
    margin-top: 0.75rem;
}

.upload-card__status {
    display: none;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.upload-card__status-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    border: 2px solid #198754;
    position: relative;
}

.upload-card__status-icon::after {
    content: "";
    display: block;
    width: 0.35rem;
    height: 0.7rem;
    border-right: 2px solid #198754;
    border-bottom: 2px solid #198754;
    transform: rotate(45deg);
}

.upload-card__error {
    display: none;
    font-weight: 500;
}

.upload-card__warning {
    display: none;
    margin-top: 0.75rem;
    font-weight: 500;
}

.upload-card.is-success {
    border-color: #198754;
    box-shadow: 0 0 0 0.3rem rgba(25, 135, 84, 0.12);
    background-color: #f5fdf7;
}

.upload-card.is-success .upload-card__status {
    display: inline-flex;
}

.upload-card.is-success .upload-card__status-icon,
.upload-card.is-success .upload-card__status-icon::after {
    border-color: #198754;
}

.upload-card.is-success .upload-card__error {
    display: none;
}

.upload-card.is-error {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.3rem rgba(220, 53, 69, 0.12);
    background-color: #fff5f6;
}

.upload-card.is-error .upload-card__status {
    display: none;
}

.upload-card.is-error .upload-card__error {
    display: block;
}

.upload-card.has-warning .upload-card__warning {
    display: block;
}

.deliverable-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 24px;
    background-color: var(--forest-100);
    color: var(--forest-600);
    font-weight: 700;
    letter-spacing: 0.05em;
}

.deliverable-title {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.img-block {
    border-radius: 1.5rem;
    overflow: hidden;
}

.how-image-container {
    position: relative;
    background-color: rgba(0, 0, 0, 0.1);
}

.how-image {
    transition: opacity 0.35s ease;
    opacity: 1;
}

.how-image.is-fading {
    opacity: 0;
}

.footer-wrapper {
    margin-top: 0;
}

.mobile-logout-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.75rem 0;
    width: 100%;
    text-align: left;
}

.mobile-only-text {
    display: block;
    padding: 0.75rem 0;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.mobile-logout-btn:hover,
.mobile-logout-btn:focus {
    color: #e6f0ec;
}

/* Recent Jobs Section */
#recent-jobs-card {
    margin-bottom: 3rem;
}

#recent-jobs-card .card-body {
    padding: 2rem;
}

.job-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.job-actions .btn {
    white-space: nowrap;
}

.job-status-badge {
    font-weight: 600;
    padding: 0.35rem 0.75rem;
}

/* Methodology page content links */
.container a:not(.btn):not(.hero-btn):not(.btn-outline) {
    color: #1c614a;
    text-decoration: none;
    border-bottom: 1px solid rgba(28, 97, 74, 0.3);
    transition: all 0.2s ease;
}

.container a:not(.btn):not(.hero-btn):not(.btn-outline):hover {
    color: #0f3b2e;
    border-bottom-color: #0f3b2e;
}

/* Restore bullet points for content lists */
.container ul:not(.list-unstyled) {
    list-style-type: disc;
    padding-left: 2rem;
}

.container ul:not(.list-unstyled) li {
    list-style: disc;
    margin-bottom: 0.5rem;
}

/* Ensure footer lists remain styled correctly */
footer ul li,
.footer-area ul li,
.single-footer-caption ul li {
    list-style: none !important;
}

footer ul,
.footer-area ul,
.single-footer-caption ul {
    padding-left: 0 !important;
    margin-left: 0 !important;
}

footer ul li a,
.footer-area ul li a,
.single-footer-caption ul li a {
    color: #fff !important;
    border-bottom-color: rgba(255, 255, 255, 0.3) !important;
}

footer ul li a:hover,
.footer-area ul li a:hover,
.single-footer-caption ul li a:hover {
    color: #fff !important;
    border-bottom-color: #fff !important;
}

/* Remove underline from footer logo */
.footer-logo a {
    border-bottom: none !important;
}

/* Align logo section with column headings */
.footer-logo {
    margin-top: -25px;
}

/* Model Limitations page styles */
.note-box {
    background-color: #f5f2e7;
    padding: 1.5rem;
    border-left: 4px solid #d2a679;
    margin-bottom: 2rem;
    border-radius: 0.25rem;
}

.metric-table td,
.metric-table th {
    vertical-align: middle;
}

/* Team page styles */
.team-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.125);
    border-radius: 0.5rem;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.team-card .card-img-top {
    object-fit: cover;
    border-radius: 0.5rem 0.5rem 0 0;
}

.social-links a {
    margin-right: 1rem;
    font-size: 1.1rem;
    color: #555;
    text-decoration: none;
}

.social-links a:hover {
    color: #1c614a;
}

.read-more {
    display: none;
}

.show-more-btn {
    cursor: pointer;
    color: #1c614a;
    font-weight: 500;
    text-decoration: underline;
}

.show-more-btn:hover {
    color: #0f3b2e;
}

/* Footer bottom links (Privacy, Terms) */
.footer-copy-right a {
    color: #fff !important;
    border-bottom-color: rgba(255, 255, 255, 0.3) !important;
}

.footer-copy-right a:hover {
    color: #fff !important;
    border-bottom-color: #fff !important;
}

/* Output gallery images - consistent heights per row */
.output-example img {
    width: 100%;
}

/* First row: annotated imagery + offline interactive map */
.output-example:nth-child(1) img,
.output-example:nth-child(2) img {
    height: 250px;
}

/* Second row: printable maps + orthomosaic */
.output-example:nth-child(3) img,
.output-example:nth-child(4) img {
    height: 200px;
}

@media (max-width: 767.98px) {
    .job-actions {
        flex-direction: column;
    }
    
    .job-actions .btn {
        width: 100%;
    }
    
    .hero-btn,
    .btn-outline {
        width: 100%;
        text-align: center;
    }
}
