.programs-container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.programs-eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    color: #ff8a00;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1.2;
    text-transform: uppercase;
}

.programs-hero-section {
    width: 100%;
    padding: 0;
    background: #ffffff;
}

.programs-hero-image {
    width: 100%;
    height: 590px;
    object-fit: cover;
    object-position: center;
    display: block;
}

.programs-intro-section {
    width: 100%;
    padding: 48px 0 28px;
    background: #ffffff;
    text-align: center;
}

.programs-intro-card {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 64px 32px 56px;
    border: 0;
    background: linear-gradient(135deg, #6b281a 0%, #551e15 100%);
    overflow: hidden;
}

.programs-intro-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 226px;
    height: 8px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #ff8a00 0%, #ff1010 100%);
    border-radius: 0 0 8px 8px;
}

.programs-intro-card h1 {
    max-width: 960px;
    margin: 0 auto 18px;
    color: #ff8a00;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    line-height: 1.12;
}

.programs-intro-card p {
    max-width: 750px;
    margin: 0 auto;
    color: #ffffff;
    font-size: 1.5rem;
    line-height: 1.8;
}

.programs-primary-section {
    padding: 40px 0 24px;
    background: #ffffff;
}

.programs-primary-card-grid {
    max-width: 1250px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 46px;
    align-items: stretch;
}

.programs-showcase-section {
    padding: 10px 0 24px;
    background: #ffffff;
}

.programs-showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.programs-showcase-image-wrap {
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 14px;
    background: #f8fafc;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.10);
}

.programs-showcase-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    border: 0;
    transition: transform 0.35s ease;
}

.programs-showcase-image-wrap:hover .programs-showcase-image {
    transform: scale(1.05);
}

.programs-secondary-section {
    padding: 24px 0 40px;
    background: #ffffff;
}

.programs-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
}

.program-card {
    min-height: 520px;
    display: flex;
    flex-direction: column;
    padding: 34px 30px;
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.programs-primary-card-grid .program-card {
    width: 100%;
    min-height: 500px;
    aspect-ratio: 1 / 1;
    justify-content: flex-start;
}

.program-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.14);
}

.emergency-card {
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
    border-color: #bfdbfe;
}

.certification-card {
    background: linear-gradient(135deg, #fff7ed 0%, #ffffff 100%);
    border-color: #fed7aa;
}

.mentorship-card {
    background: linear-gradient(135deg, #ecfdf5 0%, #ffffff 100%);
    border-color: #bbf7d0;
}

.workshop-card {
    background: linear-gradient(135deg, #faf5ff 0%, #ffffff 100%);
    border-color: #e9d5ff;
}

.webinar-card {
    background: linear-gradient(135deg, #fefce8 0%, #ffffff 100%);
    border-color: #fde68a;
}

.research-card {
    background: linear-gradient(135deg, #ecfeff 0%, #ffffff 100%);
    border-color: #a5f3fc;
}

.program-icon {
    width: 62px;
    height: 62px;
    margin-bottom: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    color: #ffffff;
    font-size: 1.65rem;
}

.emergency-card .program-icon {
    background: #2563eb;
}

.certification-card .program-icon {
    background: #f97316;
}

.mentorship-card .program-icon {
    background: #16a34a;
}

.workshop-card .program-icon {
    background: #a855f7;
}

.webinar-card .program-icon {
    background: #d97706;
}

.research-card .program-icon {
    background: #0891b2;
}

.program-card h2 {
    margin: 0 0 18px;
    color: #111827;
    font-size: 1.35rem;
    font-weight: 900;
    line-height: 1.25;
}

.program-card p {
    margin: 0 0 22px;
    color: #475569;
    font-size: 0.96rem;
    line-height: 1.7;
}

.program-card ul {
    margin: 0 0 28px;
    padding: 0;
    list-style: none;
}

.program-card li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    color: #334155;
    font-size: 0.92rem;
    line-height: 1.5;
}

.program-card li:last-child {
    margin-bottom: 0;
}

.program-card li i {
    margin-top: 3px;
    flex-shrink: 0;
    font-size: 0.9rem;
}

.emergency-card li i {
    color: #2563eb;
}

.certification-card li i {
    color: #f97316;
}

.mentorship-card li i {
    color: #16a34a;
}

.workshop-card li i {
    color: #a855f7;
}

.webinar-card li i {
    color: #d97706;
}

.research-card li i {
    color: #0891b2;
}

.program-meta-box {
    margin-top: auto;
    padding: 18px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    border-radius: 14px;
    background: #ffffff;
}

.program-meta-box div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.program-meta-box span {
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.4;
}

.program-meta-box strong {
    color: #111827;
    font-size: 0.86rem;
    font-weight: 900;
    line-height: 1.4;
}

.programs-impact-section {
    padding: 54px 0 80px;
    background: #ffffff;
}

.programs-cta-card {
    max-width: 1040px;
    margin: 0 auto;
    padding: 42px 28px;
    text-align: center;
    border-radius: 10px;
    background: #287CC5;
    box-shadow: 0 26px 70px rgba(37, 99, 235, 0.22);
}

.programs-cta-card h2 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.2;
}

.programs-cta-card p {
    max-width: 680px;
    margin: 0 auto 28px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.65;
}

.programs-cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.programs-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 11px 28px;
    border: 1px solid #ffffff;
    border-radius: 6px;
    background: #ffffff;
    color: #255cf4;
    font-size: 0.95rem;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.programs-cta-button:hover {
    background: #f8fafc;
    color: #1d4ed8;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.18);
}

.join-modal-opened {
    overflow: hidden;
}

.join-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 23, 42, 0.72);
}

.join-modal-overlay.active {
    display: flex;
}

.join-modal-card {
    width: min(980px, 100%);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 34px 90px rgba(15, 23, 42, 0.32);
}

.join-modal-header {
    position: sticky;
    top: 0;
    z-index: 5;
    padding: 22px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    background: linear-gradient(135deg, #42180f 0%, #1c0805 100%);
    border-radius: 20px 20px 0 0;
}

.join-modal-header h2 {
    margin: 0;
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: 900;
    line-height: 1.25;
}

.join-modal-close {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border: 0;
    border-radius: 50%;
    background: #ef1111;
    color: #ffffff;
    font-size: 1.7rem;
    line-height: 1;
    cursor: pointer;
}

.join-modal-form {
    padding: 28px;
}

.join-modal-form h3 {
    margin: 28px 0 18px;
    color: #111827;
    font-size: 1.12rem;
    font-weight: 900;
    line-height: 1.3;
}

.join-modal-form h3:first-of-type {
    margin-top: 0;
}

.join-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.join-form-group {
    margin-bottom: 18px;
}

.join-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #111827;
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.4;
}

.join-form-group input,
.join-form-group select,
.join-form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #ffffff;
    color: #111827;
    font-size: 0.92rem;
    line-height: 1.4;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.join-form-group input:focus,
.join-form-group select:focus,
.join-form-group textarea:focus {
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.14);
}

.join-form-group textarea {
    resize: vertical;
    min-height: 110px;
}

.join-input-error {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12) !important;
}

.join-field-error {
    display: block;
    min-height: 16px;
    margin-top: 5px;
    color: #dc2626;
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.35;
}

.join-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    padding: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #f8fafc;
}

.join-radio-group label {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #334155;
    font-size: 0.9rem;
    font-weight: 700;
}

.join-radio-group input {
    width: auto;
}

.join-consent {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #f8fafc;
    color: #334155;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.55;
}

.join-consent input {
    margin-top: 4px;
    flex-shrink: 0;
}

.join-form-submit {
    width: 100%;
    margin-top: 22px;
    padding: 14px 18px;
    border: 0;
    border-radius: 10px;
    background: #ef1111;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.join-form-submit:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(220, 38, 38, 0.22);
}

.join-form-submit:disabled,
.join-form-submit.is-submitting {
    cursor: not-allowed;
    opacity: 0.68;
    pointer-events: none;
    transform: none;
    box-shadow: none;
}

.join-submit-spinner {
    width: 14px;
    height: 14px;
    margin-right: 8px;
    display: inline-block;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: #ffffff;
    border-radius: 50%;
    vertical-align: middle;
    animation: joinSpin 0.8s linear infinite;
}

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

.join-form-group .iti {
    width: 100%;
    display: block;
}

.join-form-group .iti__flag,
.join-form-group .iti__flag-box {
    display: none !important;
}

.join-form-group .iti__tel-input,
.join-form-group input.join-phone-input {
    width: 100%;
    height: 45px;
    padding-top: 12px;
    padding-right: 14px;
    padding-bottom: 12px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #ffffff;
    color: #111827;
    font-size: 0.92rem;
    line-height: 1.4;
}

.join-form-group .iti--separate-dial-code .iti__tel-input {
    padding-left: 76px !important;
}

.join-form-group .iti__selected-country {
    height: 45px;
    min-width: 66px;
    border-right: 1px solid #d1d5db;
    border-radius: 10px 0 0 10px;
    background-color: #f8fafc;
}

.join-form-group .iti__selected-dial-code {
    color: #111827;
    font-size: 0.9rem;
    font-weight: 800;
}

.join-form-group .iti__dropdown-content {
    z-index: 999999;
    border-radius: 10px;
}

.join-form-group .iti__country-list {
    z-index: 999999;
    max-width: 340px;
}

@media (max-width: 1199px) {
    .programs-card-grid,
    .programs-primary-card-grid,
    .programs-showcase-grid {
        gap: 22px;
    }

    .program-card {
        padding: 30px 24px;
    }

    .programs-primary-card-grid {
        max-width: 860px;
    }

    .programs-showcase-image-wrap {
        height: 180px;
    }
}

@media (max-width: 991px) {
    .programs-hero-image {
        height: 420px;
    }

    .programs-card-grid,
    .programs-showcase-grid {
        grid-template-columns: 1fr;
    }

    .programs-primary-card-grid {
        max-width: 560px;
        grid-template-columns: 1fr;
    }

    .program-card {
        min-height: auto;
    }

    .programs-primary-card-grid .program-card {
        min-height: auto;
        aspect-ratio: auto;
    }

    .programs-showcase-image-wrap {
        height: 300px;
    }
}

@media (max-width: 767px) {
    .programs-container {
        width: min(100% - 24px, 1180px);
    }

    .programs-hero-section {
        padding: 0;
    }

    .programs-hero-image {
        height: 300px;
    }

    .programs-intro-section {
        padding: 34px 0 20px;
    }

    .programs-intro-card {
        padding: 50px 18px 44px;
    }

    .programs-intro-card::before {
        width: 170px;
        height: 7px;
    }

    .programs-intro-card h1 {
        font-size: 1.9rem;
    }

    .programs-intro-card p {
        font-size: 0.98rem;
    }

    .programs-eyebrow {
        font-size: 1.35rem;
    }

    .programs-primary-section {
        padding: 28px 0 18px;
    }

    .programs-showcase-section {
        padding: 8px 0 18px;
    }

    .programs-secondary-section {
        padding: 18px 0 28px;
    }

    .program-card {
        padding: 26px 20px;
    }

    .programs-primary-card-grid {
        max-width: 100%;
    }

    .programs-showcase-image-wrap {
        height: 240px;
    }

    .program-meta-box {
        grid-template-columns: 1fr;
    }

    .programs-impact-section {
        padding: 38px 0 60px;
    }

    .programs-cta-card {
        padding: 34px 18px;
    }

    .programs-cta-card h2 {
        font-size: 1.55rem;
    }

    .programs-cta-card p {
        font-size: 0.92rem;
    }

    .programs-cta-actions {
        flex-direction: column;
    }

    .programs-cta-button {
        width: 100%;
        max-width: 260px;
    }

    .join-modal-overlay {
        padding: 14px;
    }

    .join-modal-card {
        max-height: calc(100vh - 28px);
        border-radius: 16px;
    }

    .join-modal-header {
        padding: 18px;
        border-radius: 16px 16px 0 0;
    }

    .join-modal-header h2 {
        font-size: 1.12rem;
    }

    .join-modal-form {
        padding: 20px 16px;
    }

    .join-form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .join-radio-group {
        flex-direction: column;
        gap: 10px;
    }

    .join-consent {
        font-size: 0.82rem;
    }
}

@media (max-width: 480px) {
    .programs-hero-image {
        height: 240px;
    }

    .programs-intro-card {
        padding: 44px 14px 40px;
    }

    .programs-intro-card::before {
        width: 140px;
        height: 6px;
    }

    .programs-intro-card h1 {
        font-size: 1.7rem;
    }

    .programs-showcase-image-wrap {
        height: 190px;
        border-radius: 12px;
    }

    .program-icon {
        width: 54px;
        height: 54px;
        font-size: 1.4rem;
    }

    .program-card h2 {
        font-size: 1.2rem;
    }

    .join-modal-close {
        width: 36px;
        height: 36px;
        min-width: 36px;
        font-size: 1.45rem;
    }
}