/* Global Black Theme Styles */
body {
    background-color: #f7f7f7 !important;
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
}

main.container {
    background-color: transparent;
    
    color: #ffffff;
    min-height: calc(100vh - 200px);
}

/* Navbar Styling */
.navbar {
    background-color: #f7f7f7 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-brand {
    color: #ffffff !important;
    font-weight: 600;
}

.nav-link {
    color: rgba(255, 255, 255, 0.7) !important;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #ffde00 !important;
}

.nav-link.active {
    color: #ffde00 !important;
}

/* Custom top navbar */
.site-nav {
    background: #f7f7f7;
    margin-top: 30px;
    padding: 0 100px;
    position: relative;
    z-index: 50;
}

.site-nav__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-rows: 1fr;
    align-items: center;
    min-height: 52px;
}

.site-nav__left-links {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
}
.site-nav__logo-link {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    align-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}
.site-nav__actions {
    grid-column: 3;
    grid-row: 1;
    align-self: center;
}
/* Spacer: remove from grid flow on desktop so it doesn't create an empty row */
.site-nav__spacer {
    display: none;
}

.site-nav--minimal .site-nav__inner {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 52px;
}
.site-nav--minimal .site-nav__logo-link--center {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.site-nav__logo {
    width: 125px;
    height: 40px;
    object-fit: contain;
    display: block;
    vertical-align: middle;
}

.site-nav__left-links {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: 30px;
}

.site-nav__actions {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    gap: 30px;
}

.site-nav__text-link {
    font-family: 'Satoshi', sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 1.2;
    color: #1d1f21;
    text-decoration: none;
}

.site-nav__text-link:hover {
    color: #1d1f21;
    text-decoration: none;
}

.site-nav__get-started {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    border-radius: 8px;
    font-family: 'Satoshi', sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 1.2;
    color: #1d1f21;
    text-decoration: none;
    overflow: hidden;
    z-index: 0;
}

.site-nav__get-started::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, #f7f7f7 0%, rgba(248, 220, 0, 0.6) 100%);
    z-index: -1;
}

.site-nav__get-started::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, #f7f7f7 0%, rgba(248, 220, 0, 0.8) 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: -1;
}

.site-nav__get-started:hover::after {
    opacity: 1;
}

.site-nav__get-started:hover {
    color: #1d1f21;
    text-decoration: none;
}

/* Desktop: menu panel is transparent (contents participate in grid) */
.site-nav__menu-panel {
    display: contents;
}
.site-nav__spacer {
    display: none;
}
.site-nav__hamburger {
    display: none;
}

/* Mobile navbar: hamburger + logo, dropdown menu */
@media (max-width: 768px) {
    .site-nav {
        padding: 0 16px;
        position: relative;
    }
    .site-nav__inner {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        min-height: 44px;
        padding: 6px 0;
    }
    .site-nav__menu-panel {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #f7f7f7;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
        padding: 0 20px;
        max-height: 0;
        overflow: hidden;
        flex-direction: column;
        gap: 12px;
        z-index: 100;
        border-top: 1px solid transparent;
        pointer-events: none;
        transition: max-height 0.35s ease, padding 0.35s ease, border-top-color 0.2s ease;
    }
    .site-nav__menu-panel.site-nav__menu--open {
        max-height: 420px;
        padding: 16px 20px 24px;
        border-top-color: rgba(0, 0, 0, 0.08);
        pointer-events: auto;
    }
    .site-nav__left-links {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        justify-self: auto;
        margin: 0;
        padding: 0;
        width: 100%;
    }
    .site-nav__actions {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        justify-self: auto;
        margin: 0;
        padding: 0;
        width: 100%;
    }
    .site-nav__text-link {
        font-size: 16px;
        padding: 6px 0;
    }
    .site-nav__get-started {
        font-size: 16px;
        padding: 6px 0;
        background: transparent;
    }
    .site-nav__get-started::before,
    .site-nav__get-started::after {
        display: none;
    }
    .site-nav__hamburger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 44px;
        height: 44px;
        padding: 0;
        border: none;
        background: transparent;
        cursor: pointer;
        gap: 4px;
        order: 3;
    }
    .site-nav__hamburger-bar {
        width: 22px;
        height: 3px;
        min-height: 3px;
        max-height: 3px;
        flex: 0 0 3px;
        background: #1d1f21;
        border-radius: 2px;
        transition: transform 0.25s ease, opacity 0.25s ease;
        flex-shrink: 0;
        box-sizing: border-box;
    }
    .site-nav__hamburger-bar:nth-child(1),
    .site-nav__hamburger-bar:nth-child(2),
    .site-nav__hamburger-bar:nth-child(3) {
        height: 2.5px;
        min-height: 3px;
        max-height: 3px;
    }
    .site-nav__hamburger--open .site-nav__hamburger-bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .site-nav__hamburger--open .site-nav__hamburger-bar:nth-child(2) {
        opacity: 0;
    }
    .site-nav__hamburger--open .site-nav__hamburger-bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
    .site-nav__logo-link {
        order: 1;
        position: static;
        left: auto;
        transform: none;
    }
    .site-nav__logo {
        width: 100px;
        height: 32px;
    }
    .site-nav__spacer {
        display: none;
    }
    .site-nav__hamburger {
        order: 2;
    }
}

@media (max-width: 480px) {
    .site-nav {
        padding: 0 12px;
    }
    .site-nav__inner {
        min-height: 40px;
        padding: 4px 0;
    }
    .site-nav__text-link,
    .site-nav__get-started {
        font-size: 15px;
    }
    .site-nav__logo {
        width: 90px;
        height: 28px;
    }
}

/* Button Overrides - Yellow Theme */
.btn-primary {
    background-color: #ffde00 !important;
    border-color: #ffde00 !important;
    color: #000000 !important;
}

.btn-primary:hover {
    background-color: #ffd700 !important;
    border-color: #ffd700 !important;
    color: #000000 !important;
}

.btn-success {
    background-color: #ffde00 !important;
    border-color: #ffde00 !important;
    color: #000000 !important;
}

.btn-success:hover {
    background-color: #ffd700 !important;
    border-color: #ffd700 !important;
    color: #000000 !important;
}

.btn-warning {
    background-color: #ffde00 !important;
    border-color: #ffde00 !important;
    color: #000000 !important;
}

.btn-warning:hover {
    background-color: #ffd700 !important;
    border-color: #ffd700 !important;
    color: #000000 !important;
}

.btn-outline-primary {
    border-color: #ffde00 !important;
    color: #ffde00 !important;
}

.btn-outline-primary:hover {
    background-color: #ffde00 !important;
    border-color: #ffde00 !important;
    color: #000000 !important;
}

.btn-outline-secondary {
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: rgba(255, 255, 255, 0.7) !important;
}

.btn-outline-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
}

/* Card Styling */
.card {
    background-color: #1a1a1a !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}

.card-header {
    background-color: #1a1a1a !important;
    border-bottom-color: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}

.card-body {
    color: #ffffff !important;
}

/* Form Controls */
.form-control {
    background-color: #1a1a1a !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
}

.form-control:focus {
    background-color: #1a1a1a !important;
    border-color: #ffde00 !important;
    color: #ffffff !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 222, 0, 0.25) !important;
}

.form-label {
    color: #ffffff !important;
}

/* Alert Styling */
.alert {
    background-color: #1a1a1a !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}

.alert-info {
    background-color: #1a1a1a !important;
    border-color: rgba(255, 222, 0, 0.3) !important;
    color: #ffffff !important;
}

.alert-success {
    background-color: #1a1a1a !important;
    border-color: rgba(255, 222, 0, 0.3) !important;
    color: #ffffff !important;
}

.alert-warning {
    background-color: #1a1a1a !important;
    border-color: rgba(255, 222, 0, 0.3) !important;
    color: #ffffff !important;
}

/* Text Colors */
.text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
}

.text-primary {
    color: #ffde00 !important;
}

.text-warning {
    color: #ffde00 !important;
}

.text-success {
    color: #ffde00 !important;
}

.corporate-index-page .corporate-index-heading {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 50px;
    letter-spacing: -0.07em;
    color: #1d1f21 !important;
    margin-bottom: 0 !important;
}

.corporate-index-page .corporate-index-subheading {
    font-family: 'Satoshi', sans-serif;
    font-weight: 500;
    font-size: 24px;
    color: rgba(29, 31, 33, 0.8) !important;
    margin-top: 0;
    margin-bottom: 0;
}

/* New Problem button – same fill and hover as Start Innovating (hero-minimal-btn) */
.corporate-new-problem-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    border-radius: 8px;
    font-family: 'Satoshi', sans-serif;
    font-weight: 500;
    font-size: 20px;
    letter-spacing: -0.03em;
    color: #1d1f21;
    text-decoration: none;
    overflow: hidden;
    z-index: 0;
    white-space: nowrap;
}
.corporate-new-problem-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, #f7f7f7 0%, rgba(255, 215, 0, 0.6) 100%);
    z-index: -1;
}
.corporate-new-problem-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, #f7f7f7 0%, rgba(255, 215, 0, 0.8) 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: -1;
}
.corporate-new-problem-btn:hover::after {
    opacity: 1;
}
.corporate-new-problem-btn:hover {
    color: #1d1f21;
    text-decoration: none;
}

.corporate-problems-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 30px;
    margin-bottom: 50px;
}

.corporate-problem-card {
    width: 100%;
    height: 350px;
    max-width: none;
    background:
        linear-gradient(45deg, rgba(248, 220, 0, 0.05) 0%, rgba(247, 247, 247, 0.05) 100%),
        #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.15);
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.corporate-problem-card::before {
    content: "";
    position: absolute;
    left: -100px;
    bottom: -100px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: #f8dc00;
    filter: blur(150px);
    z-index: 0;
    pointer-events: none;
}

.corporate-problem-card > * {
    position: relative;
    z-index: 1;
}

.corporate-problem-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
}

.corporate-problem-card__brand {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 10px;
    flex: 1 1 auto;
}

.corporate-problem-card__logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    display: block;
    flex: 0 0 auto;
}

.corporate-problem-card__logo-placeholder {
    height: 40px;
    min-width: 40px;
    border-radius: 8px;
    background: #e6e5df;
    color: #1d1f21;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    flex: 0 0 auto;
}

.corporate-problem-card__brand-divider {
    width: 0.5px;
    height: 40px;
    background: rgba(0, 0, 0, 0.25);
    flex: 0 0 auto;
}

.corporate-problem-card__card-header {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 20px;
    line-height: 1;
    letter-spacing: -0.07em;
    color: #1d1f21;
    min-width: 0;
    flex: 1 1 auto;
    overflow-wrap: anywhere;
}

.corporate-problem-card__view-link {
    margin-left: 50px;
    flex: 0 0 auto;
    font-family: 'Satoshi', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1;
    color: rgba(29, 31, 33, 0.9) !important;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.corporate-problem-card__view-link:hover {
    color: rgba(29, 31, 33, 0.9) !important;
}

.corporate-problem-card__innovation-type {
    margin: 18px 0 0 0;
    font-family: 'Satoshi', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.2;
    color: rgba(29, 31, 33, 0.8);
}

.corporate-problem-card__tags {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.corporate-problem-card__tag {
    border-radius: 999px;
    background: #dcdcd3;
    padding: 8px 14px;
    font-family: 'Satoshi', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 1;
    color: rgba(29, 31, 33, 0.65);
}

.corporate-problem-card__description {
    margin: 16px 0 0 0;
    font-family: 'Satoshi', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.35;
    color: rgba(29, 31, 33, 0.9);
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.corporate-problem-card__footer {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
}

.corporate-problem-card__adopt-form {
    margin: 0;
}

.corporate-problem-card__adopt-btn {
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #1d1f21;
    font-family: 'Satoshi', sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 1;
    padding: 14px 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 0;
    text-decoration: none;
}
.corporate-problem-card__adopt-btn:hover {
    color: #1d1f21;
    text-decoration: none;
}

.corporate-problem-card__adopt-btn::before,
.corporate-problem-detail-adopt-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(247, 247, 247, 1) 0%, rgba(255, 215, 0, 0.6) 100%);
    z-index: -1;
}

.corporate-problem-card__adopt-btn::after,
.corporate-problem-detail-adopt-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(247, 247, 247, 1) 0%, rgba(255, 215, 0, 0.8) 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: -1;
}

.corporate-problem-card__adopt-btn:hover::after,
.corporate-problem-detail-adopt-btn:hover::after {
    opacity: 1;
}

.corporate-problem-card__adopt-icon {
    width: 17px;
    height: 17px;
    display: block;
    object-fit: contain;
}

.corporate-problem-card__adopted-copy {
    margin: 0 0 0 auto;
    max-width: none;
    font-family: 'Satoshi', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.1;
    color: rgba(29, 31, 33, 0.7);
    text-align: right;
}

.corporate-problem-show-page {
    color: #1d1f21;
}

.corporate-problem-detail-box {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.corporate-problem-detail-box::before {
    content: "";
    position: absolute;
    left: -250px;
    bottom: -250px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: #f8dc00;
    filter: blur(500px);
    z-index: 0;
    pointer-events: none;
}

.corporate-problem-detail-box > * {
    position: relative;
    z-index: 1;
}

.corporate-problem-detail-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.corporate-problem-detail-brand-wrap {
    display: flex;
    align-items: flex-start;
    min-width: 0;
}

.corporate-problem-detail-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
    display: block;
    flex: 0 0 auto;
}

.corporate-problem-detail-stroke {
    width: 0.5px;
    height: 60px;
    margin-left: 10px;
    margin-right: 10px;
    background: rgba(0, 0, 0, 0.25);
    flex: 0 0 auto;
}

.corporate-problem-detail-title-wrap {
    min-width: 0;
}

.corporate-problem-detail-heading {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 32px;
    letter-spacing: -0.07em;
    line-height: 1.2;
    color: #1d1f21;
}

.corporate-problem-detail-company {
    margin: 5px 0 0 0;
    font-family: 'Satoshi', sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 1.2;
    color: rgba(29, 31, 33, 0.7);
}

.corporate-problem-detail-other-link {
    flex: 0 0 auto;
    font-family: 'Satoshi', sans-serif;
    font-weight: 500;
    font-size: 22px;
    line-height: 1.2;
    color: rgba(29, 31, 33, 0.9) !important;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.corporate-problem-detail-other-link:hover {
    color: rgba(29, 31, 33, 0.9) !important;
}

.corporate-problem-detail-date {
    margin: 25px 0 0 0;
    font-family: 'Satoshi', sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 1.2;
    color: rgba(29, 31, 33, 0.7);
}

.corporate-problem-detail-meta-block {
    margin-top: 20px;
}

.corporate-problem-detail-label {
    margin: 0;
    font-family: 'Satoshi', sans-serif;
    font-weight: 500;
    font-size: 22px;
    line-height: 1.2;
    color: #1d1f21;
}

.corporate-problem-detail-value {
    margin: 10px 0 0 0;
    font-family: 'Satoshi', sans-serif;
    font-weight: 500;
    font-size: 20px;
    line-height: 1.2;
    color: rgba(29, 31, 33, 0.7);
}

.corporate-problem-detail-pills {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.corporate-problem-detail-pill {
    padding: 7px 12px;
    border-radius: 999px;
    background: #dcdcd3;
    font-family: 'Satoshi', sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 1;
    color: rgba(29, 31, 33, 0.7);
}

.corporate-problem-detail-content-block {
    margin-top: 30px;
}

.corporate-problem-detail-content-heading {
    margin: 0;
    font-family: 'Satoshi', sans-serif;
    font-weight: 500;
    font-size: 22px;
    line-height: 1.25;
    color: #1d1f21;
}

.corporate-problem-detail-content-body {
    margin: 10px 0 0 0;
    font-family: 'Satoshi', sans-serif;
    font-weight: 500;
    font-size: 20px;
    line-height: 1.35;
    color: rgba(29, 31, 33, 0.8);
}

.corporate-problem-detail-footer {
    margin-top: 60px;
    padding-top: 25px;
    border-top: 1px solid rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
}

.corporate-problem-detail-adopt-form {
    margin: 0;
}

.corporate-problem-detail-adopt-btn {
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #1d1f21;
    font-family: 'Satoshi', sans-serif;
    font-weight: 500;
    font-size: 22px;
    line-height: 1;
    padding: 14px 14px;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 0;
}

.corporate-problem-detail-adopt-icon {
    width: 20px;
    height: 20px;
    display: block;
    object-fit: contain;
}

/* Edit button – same style as adopt button */
.corporate-problem-detail-edit-btn {
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #1d1f21;
    font-family: 'Satoshi', sans-serif;
    font-weight: 500;
    font-size: 22px;
    line-height: 1;
    padding: 14px 14px;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 0;
    text-decoration: none;
}
.corporate-problem-detail-edit-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(247, 247, 247, 1) 0%, rgba(255, 215, 0, 0.6) 100%);
    z-index: -1;
}
.corporate-problem-detail-edit-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(247, 247, 247, 1) 0%, rgba(255, 215, 0, 0.8) 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: -1;
}
.corporate-problem-detail-edit-btn:hover {
    color: #1d1f21;
    text-decoration: none;
}
.corporate-problem-detail-edit-btn:hover::after {
    opacity: 1;
}

.corporate-problem-detail-edit-icon {
    width: 20px;
    height: 20px;
    display: block;
    object-fit: contain;
}

.corporate-problem-detail-adopted-copy {
    margin: 0 0 0 auto;
    font-family: 'Satoshi', sans-serif;
    font-weight: 500;
    font-size: 20px;
    line-height: 1.1;
    color: rgba(29, 31, 33, 0.7);
}

.corporate-problem-detail-manage {
    margin-top: 0;
    display: flex;
    gap: 10px;
}

/* Delete button – no fill, 2px red border and content (#DC3545) */
.corporate-problem-detail-delete-btn {
    border: 2px solid #DC3545;
    border-radius: 8px;
    background: transparent;
    color: #DC3545;
    font-family: 'Satoshi', sans-serif;
    font-weight: 500;
    font-size: 22px;
    line-height: 1;
    padding: 14px 14px;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    white-space: nowrap;
}
.corporate-problem-detail-delete-btn:hover {
    color: #DC3545;
    background: transparent;
    border-color: #DC3545;
}
.corporate-problem-detail-delete-icon {
    width: 20px;
    height: 20px;
    display: block;
    object-fit: contain;
}

/* Delete confirmation modal – overlay with blur and dim, 300×200 white dialog */
.delete-confirm-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.delete-confirm-overlay[hidden] {
    display: none;
}
.delete-confirm-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.delete-confirm-dialog {
    position: relative;
    width: 300px;
    height: 200px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    text-align: center;
}
.delete-confirm-title {
    margin: 0;
    font-family: 'Satoshi', sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.2;
    color: #1d1f21;
}
.delete-confirm-question {
    margin: 0;
    font-family: 'Satoshi', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.2;
    color: #1d1f21;
}
.delete-confirm-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}
.delete-confirm-cancel,
.delete-confirm-delete {
    padding: 10px 20px;
    border-radius: 8px;
    font-family: 'Satoshi', sans-serif;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    border: none;
}
.delete-confirm-cancel {
    background: #e5e5e5;
    color: #1d1f21;
}
.delete-confirm-cancel:hover {
    background: #d0d0d0;
}
.delete-confirm-delete {
    background: #DC3545;
    color: #ffffff;
}
.delete-confirm-delete:hover {
    background: #c82333;
}

/* Adopters working on this problem – 60px below delete button, admin only */
.corporate-problem-adopters-section {
    margin-top: 60px;
    padding: 40px 0 40px 0;
    background: #f5f5f5;
}

.corporate-problem-adopters-heading {
    margin: 0 0 24px 0;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 50px;
    line-height: 1.1;
    letter-spacing: -0.07em;
    color: #1d1f21;
    text-align: left;
}

.corporate-problem-adopters-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.corporate-problem-adopter-card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.25);
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    gap: 0;
    text-align: left;
    align-items: flex-start;
}

.corporate-problem-adopter-card__user {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
}

.corporate-problem-adopter-card__avatar {
    height: 20px;
    width: auto;
    min-width: 0;
    display: block;
    object-fit: contain;
    flex-shrink: 0;
}

.corporate-problem-adopter-card__meta {
    min-width: 0;
}

.corporate-problem-adopter-card__name-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 6px;
}

.corporate-problem-adopter-card__name {
    font-family: 'Satoshi', sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 1.2;
    color: #1d1f21;
}

.corporate-problem-adopter-card__tag {
    font-family: 'Satoshi', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 1;
    color: rgba(29, 31, 33, 0.7);
    background: #e5e5e5;
    padding: 4px 10px;
    border-radius: 4px;
}

.corporate-problem-adopter-card__line {
    margin: 0 0 2px 0;
    font-family: 'Satoshi', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.3;
    color: rgba(29, 31, 33, 0.7);
    width: 100%;
}
.corporate-problem-adopter-card__line:first-of-type {
    margin-top: 0;
}
.corporate-problem-adopter-card__line:last-of-type {
    margin-top: 2px;
    margin-bottom: 8px;
}

.corporate-problem-adopter-card__completed-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    margin-bottom: 10px;
    padding: 0;
}

.corporate-problem-adopter-card__completed-text {
    font-family: 'Satoshi', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.3;
    color: rgba(29, 31, 33, 0.7);
}

.corporate-problem-adopter-card__progress-wrap {
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0;
    margin-top: 0;
    margin-bottom: 16px;
}

.corporate-problem-adopter-card__progress-track {
    flex: 1;
    min-width: 0;
    height: 8px;
    background: #e5e5e5;
    border-radius: 4px;
    overflow: hidden;
}

.corporate-problem-adopter-card__progress-fill {
    height: 100%;
    background: #f8dc00;
    border-radius: 4px;
    transition: width 0.2s ease;
}

.corporate-problem-adopter-card__progress-pct {
    font-family: 'Satoshi', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 1;
    color: rgba(29, 31, 33, 0.7);
    flex-shrink: 0;
}

.corporate-problem-adopter-card__open-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 8px;
    background: transparent;
    color: #1d1f21;
    font-family: 'Satoshi', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    z-index: 0;
    margin-top: 0;
}
.corporate-problem-adopter-card__open-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(247, 247, 247, 1) 0%, rgba(255, 215, 0, 0.6) 100%);
    z-index: -1;
}
.corporate-problem-adopter-card__open-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(247, 247, 247, 1) 0%, rgba(255, 215, 0, 0.8) 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: -1;
}
.corporate-problem-adopter-card__open-btn:hover {
    color: #1d1f21;
    text-decoration: none;
}
.corporate-problem-adopter-card__open-btn:hover::after {
    opacity: 1;
}

.corporate-problem-adopter-card__open-icon {
    width: 18px;
    height: 18px;
    display: block;
    object-fit: contain;
}

/* Links */
a {
    color: #ffde00;
}

a:hover {
    color: #ffd700;
}

/* Map Styles */
#cluster-map {
    width: 100%;
    height: 500px;
}

#map {
    width: 100%;
    height: 300px;
}

/* Table Styling */
.table {
    color: #ffffff !important;
}

.table-dark {
    background-color: #1a1a1a !important;
}

/* Badge Styling */
.badge {
    background-color: #ffde00 !important;
    color: #000000 !important;
}

.badge.bg-secondary {
    background-color: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
}

/* Modal Styling */
.modal-content {
    background-color: #1a1a1a !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}

.modal-header {
    border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

.modal-footer {
    border-top-color: rgba(255, 255, 255, 0.1) !important;
}

.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.8) !important;
}

/* Dropdown Styling */
.dropdown-menu {
    background-color: #1a1a1a !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.dropdown-item {
    color: rgba(255, 255, 255, 0.7) !important;
}

.dropdown-item:hover {
    background-color: rgba(255, 222, 0, 0.1) !important;
    color: #ffde00 !important;
}

/* Pagination */
.page-link {
    background-color: #1a1a1a !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}

.page-link:hover {
    background-color: rgba(255, 222, 0, 0.1) !important;
    border-color: #ffde00 !important;
    color: #ffde00 !important;
}

.page-item.active .page-link {
    background-color: #ffde00 !important;
    border-color: #ffde00 !important;
    color: #000000 !important;
}

/* List Group */
.list-group-item {
    background-color: #1a1a1a !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}

/* Footer */
.site-footer {
    background-color: #f7f7f7;
    padding: 20px 100px;
    position: relative;
}

.site-footer__inner {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.site-footer__inner::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -20px;
    height: 2.5px;
    background: rgba(0, 0, 0, 0.15);
    z-index: 0;
}

.site-footer__logo {
    width: 125px;
    height: 40px;
    display: block;
    object-fit: contain;
    justify-self: start;
    position: relative;
    z-index: 1;
}

.site-footer__nav {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    justify-self: center;
    position: relative;
    z-index: 1;
}

.site-footer__link,
.site-footer__copyright {
    font-family: 'Satoshi', sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: rgba(29, 31, 33, 0.8);
    line-height: 1.2;
    letter-spacing: 0;
    margin: 0;
    text-decoration: none;
}

.site-footer__link:hover {
    text-decoration: none;
    color: rgba(29, 31, 33, 0.8);
}

.site-footer__copyright {
    justify-self: end;
    position: relative;
    z-index: 1;
}

/* Footer: mobile layout – logo, Terms, Privacy, Copyright */
@media (max-width: 768px) {
    .site-footer {
        padding: 24px 20px 28px;
    }
    .site-footer__inner {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }
    .site-footer__inner::before {
        top: -24px;
        width: 100%;
    }
    .site-footer__logo {
        order: 1;
        margin-bottom: 16px;
    }
    .site-footer__nav {
        order: 2;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 16px;
    }
    .site-footer__copyright {
        order: 3;
        justify-self: auto;
        margin-bottom: 0;
        font-size: 15px;
    }
    .site-footer__link {
        display: block;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .site-footer {
        padding: 20px 16px 24px;
    }
    .site-footer__copyright {
        font-size: 14px;
        margin-bottom: 14px;
    }
    .site-footer__nav {
        gap: 10px;
    }
    .site-footer__link {
        font-size: 14px;
    }
}

/* Enhanced Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

/* Smooth Transitions */
* {
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* Enhanced Card Hover Effects */
.card {
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 222, 0, 0.1) !important;
}

/* Better Button Styles */
.btn {
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Enhanced Form Inputs */
.form-control, .form-select {
    border-radius: 6px;
    padding: 0.625rem 0.875rem;
    transition: all 0.2s ease;
}

.form-control:focus, .form-select:focus {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 222, 0, 0.15) !important;
}

/* Improved Navbar */
.navbar {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Better Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Focus States for Accessibility */
*:focus-visible {
    outline: 2px solid #ffde00;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Smooth Page Transitions */
main.container {
    background-color: transparent;
    animation: fadeIn 0.3s ease-in;
}

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

/* Enhanced Link Styles */
a {
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Better Spacing */
.container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* Improved Alert Styles */
.alert {
    border-radius: 8px;
    padding: 1rem 1.25rem;
    border-left: 4px solid;
}

.alert-success {
    border-left-color: #ffde00;
}

.alert-info {
    border-left-color: #ffde00;
}

.alert-warning {
    border-left-color: #ffde00;
}

.alert-danger {
    border-left-color: #dc3545;
}

/* Excite and Enrol page: all text black */
.excite-enrol-page,
.excite-enrol-page main.container {
    color: #000000 !important;
}
.excite-enrol-page h1,
.excite-enrol-page h2,
.excite-enrol-page h3,
.excite-enrol-page .form-label,
.excite-enrol-page .form-check-label,
.excite-enrol-page .valid-feedback,
.excite-enrol-page .text-muted,
.excite-enrol-page .text-white,
.excite-enrol-page label {
    color: #000000 !important;
}
.excite-enrol-page .form-control,
.excite-enrol-page .form-select,
.excite-enrol-page textarea.form-control {
    color: #000000 !important;
    background-color: #ffffff !important;
}
.excite-enrol-page .form-control::placeholder {
    color: rgba(0, 0, 0, 0.5);
}
.excite-enrol-page select.form-control option,
.excite-enrol-page .form-select option {
    color: #000000;
    background: #ffffff;
}

/* Register & Login pages – minimal centered layout (reference style) */
body.register-page-body .site-nav,
body.login-page-body .site-nav {
    background: transparent !important;
    margin-top: 12px;
    margin-bottom: 0;
}
body.register-page-body,
body.login-page-body {
    background: #fff !important;
    padding-bottom: 0 !important;
    min-height: 100vh;
    overflow-x: hidden;
}
body.register-page-body main.container,
body.login-page-body main.container {
    max-width: 100%;
    background: transparent;
    padding-top: 1rem;
    padding-bottom: 0;
    flex: 1 0 auto;
}
.register-page {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 1.5rem 1.5rem 1.5rem;
    color: #000;
    background: #fff;
}
.register-page__inner {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}
.register-card {
    text-align: center;
}
.register-card-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 32px;
    letter-spacing: -0.04em;
    color: #1d1f21;
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
}
.register-card-subtitle {
    font-family: 'Satoshi', sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: rgba(0, 0, 0, 0.6);
    margin: 0 0 2rem 0;
    line-height: 1.4;
    white-space: nowrap;
}
.register-google-wrap {
    margin-bottom: 1.5rem;
}
.register-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.5rem 1.25rem;
    font-family: 'Satoshi', sans-serif;
    font-weight: 500;
    font-size: 16px;
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
}
.register-btn--google {
    background: #fff;
    color: #1d1f21;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.register-btn--google:hover {
    background: #f8f8f8;
    border-color: rgba(0, 0, 0, 0.25);
    color: #1d1f21;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.register-btn__icon {
    font-size: 1.1rem;
}
.register-google-stroke {
    width: 100%;
    height: 1px;
    background: rgba(0, 0, 0, 0.12);
    margin-top: 1rem;
}
.register-or {
    font-family: 'Satoshi', sans-serif;
    font-size: 14px;
    color: rgba(0, 0, 0, 0.5);
    margin: 0 0 1.5rem 0;
}
.register-form {
    text-align: left;
    margin-bottom: 1.5rem;
}
.register-field {
    margin-bottom: 20px;
}
.register-label {
    display: block;
    font-family: 'Satoshi', sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: rgba(0, 0, 0, 0.6);
    margin-bottom: 0.35rem;
}
.register-form-hint {
    font-family: 'Satoshi', sans-serif;
    font-size: 14px;
    color: rgba(0, 0, 0, 0.5);
    margin-top: 0.35rem;
}
.register-input,
.register-page .register-input.form-control {
    display: block;
    width: 100%;
    padding: 0.5rem 1rem;
    font-family: 'Satoshi', sans-serif;
    font-size: 16px;
    color: #1d1f21 !important;
    background: #fff !important;
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
    border-radius: 8px;
    box-sizing: border-box;
}
.register-input::placeholder {
    color: rgba(0, 0, 0, 0.4);
}
.register-input:focus,
.register-page .register-input.form-control:focus {
    outline: none;
    transform: none;
    border-color: rgba(0, 0, 0, 0.35) !important;
    background: #fff !important;
    color: #1d1f21 !important;
    box-shadow: none !important;
}
.register-btn--primary {
    width: 100%;
    margin-top: 0.5rem;
    font-family: 'Satoshi', sans-serif;
    font-weight: 500;
    letter-spacing: normal;
    background: rgba(248, 220, 0, 0.8);
    color: #1d1f21;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    appearance: none;
}
.register-btn--primary:hover {
    background: rgba(230, 199, 0, 0.8);
    color: #1d1f21;
}
.register-btn--secondary {
    width: 100%;
    margin-top: 0.5rem;
    font-family: 'Satoshi', sans-serif;
    font-weight: 500;
    letter-spacing: normal;
    background: transparent;
    color: #1d1f21;
    border: 1px solid rgba(0, 0, 0, 0.25);
    cursor: pointer;
}
.register-btn--secondary:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.35);
}
/* Login page – Individual / Team segmented control */
.login-segment-wrap {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}
.login-segment {
    display: inline-flex;
    width: 100%;
    max-width: 280px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
    box-sizing: border-box;
}
.login-segment__option {
    flex: 1;
    padding: 0.6rem 1rem;
    font-family: 'Satoshi', sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: rgba(0, 0, 0, 0.5);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
    appearance: none;
}
.login-segment__option:hover {
    color: rgba(0, 0, 0, 0.7);
}
.login-segment__option--active {
    background: rgba(248, 220, 0, 0.15);
    color: #1d1f21;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}
.login-panel {
    display: none;
    text-align: left;
}
.login-panel.login-panel--active {
    display: block;
}

.login-divider {
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
    margin: 1.5rem 0 1rem 0;
}
.login-team-label {
    margin-bottom: 1rem;
    text-align: left;
}
.register-have-account {
    font-family: 'Satoshi', sans-serif;
    font-size: 16px;
    color: rgba(0, 0, 0, 0.3);
    margin: 0;
}
.register-have-account .register-link {
    color: rgba(0, 0, 0, 0.6);
    text-decoration: none;
    border-bottom: 1px solid currentColor;
}
.register-have-account .register-link:hover {
    color: rgba(0, 0, 0, 0.85);
}
.register-alert {
    margin-bottom: 1.5rem;
    color: #000;
}

/* Register page – Forgot password link below password field */
.register-forgot-wrap {
    text-align: right;
    margin-top: 0.35rem;
}
.register-forgot-link {
    font-family: 'Satoshi', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: rgba(0, 0, 0, 0.6);
    text-decoration: none;
    border-bottom: 1px solid currentColor;
}
.register-forgot-link:hover {
    color: rgba(0, 0, 0, 0.85);
}

/* Login page – Forgot password link below password field */
.login-forgot-wrap {
    text-align: right;
    margin-top: 0.35rem;
}
.login-forgot-link {
    font-family: 'Satoshi', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: rgba(0, 0, 0, 0.6);
    text-decoration: none;
    border-bottom: 1px solid currentColor;
}
.login-forgot-link:hover {
    color: rgba(0, 0, 0, 0.85);
}
