@charset "utf-8";

.program-directory {
    --program-green: var(--site-primary);
    --program-green-dark: var(--site-primary-dark);
    --program-green-deep: var(--site-primary-deep);
    --program-soft: #f3f8f5;
    --program-line: #dfe8e3;
    --program-text: #252825;
    --program-muted: #6b746f;
    width: 100%;
    min-width: 0;
    max-width: 1460px;
    color: var(--program-text);
}

.program-directory,
.program-directory *,
.program-directory *::before,
.program-directory *::after {
    box-sizing: border-box;
}

.program-directory__section + .program-directory__section {
    margin-top: 76px;
}

.program-directory__heading {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 28px;
}

.program-directory__heading-copy {
    max-width: 900px;
}

.program-directory__heading h3 {
    color: var(--program-text);
    font-family: 'Wavve PADO', 'Pretendard', sans-serif;
    font-size: 28px;
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: -0.055em;
    overflow-wrap: anywhere;
}

.program-directory__heading p {
    max-width: 860px;
    margin-top: 16px;
    color: var(--program-muted);
    font-family: 'Pretendard', sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.75;
    letter-spacing: -0.04em;
}

.program-directory__news-link {
    display: inline-flex;
    width: fit-content;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border: 1px solid var(--program-green);
    border-radius: 999px;
    color: var(--program-green-dark);
    font-family: 'Pretendard', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.04em;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.program-directory__news-link:hover,
.program-directory__news-link:focus-visible {
    background: var(--program-green);
    color: #fff;
    transform: translateY(-2px);
}

.program-directory__news-link:focus-visible,
.association-program-card__foot a:focus-visible {
    outline: 3px solid var(--site-accent);
    outline-offset: 3px;
}

.program-directory__arrow {
    width: 8px;
    height: 8px;
    margin: -2px 2px 0 12px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
}

.foundation-programs__list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
}

.foundation-program-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    padding: 24px 20px 20px;
    border: 1px solid var(--program-line);
    border-radius: 18px;
    background: #fff;
}

.foundation-program-card::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--program-green), #73c79f);
    content: '';
}

.foundation-program-card__copy h4 {
    color: #203029;
    font-family: 'Wavve PADO', 'Pretendard', sans-serif;
    font-size: 21px;
    font-weight: 400;
    line-height: 1.35;
    letter-spacing: -0.05em;
}

.foundation-program-card__copy p {
    margin-top: 10px;
    color: var(--program-muted);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.65;
    letter-spacing: -0.04em;
}

.foundation-program-card__meta {
    display: grid;
    gap: 12px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #edf1ef;
}

.foundation-program-card__meta > div {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
}

.foundation-program-card__meta dt {
    color: #7d8782;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
}

.foundation-program-card__meta dd {
    color: #334039;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
}

.association-programs {
    padding: 30px 20px 24px;
    border-radius: 24px;
    background: var(--program-soft);
}

.association-programs__list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
}

.association-program-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 20px;
    border: 1px solid #dde8e2;
    border-radius: 16px;
    background: #fff;
}

.association-program-card__head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid #edf1ef;
}

.association-program-card__region {
    display: inline-flex;
    min-height: 29px;
    flex: 0 0 auto;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: #e8f6ef;
    color: var(--program-green-deep);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.association-program-card__head h4 {
    min-width: 0;
    color: #25312b;
    font-family: 'Wavve PADO', 'Pretendard', sans-serif;
    font-size: 21px;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: -0.05em;
}

.association-program-card__resource {
    margin-top: 18px;
}

.association-program-card__resource dt,
.association-program-card__experiences h5,
.association-program-card__foot span {
    color: #849089;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.45;
    letter-spacing: -0.035em;
}

.association-program-card__resource dd {
    margin-top: 6px;
    color: #344039;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.55;
}

.association-program-card__experiences {
    flex: 1;
    margin-top: 18px;
}

.association-program-card__experiences ul {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 8px;
}

.association-program-card__experiences li {
    position: relative;
    padding: 7px 10px 7px 23px;
    border: 1px solid #e4ebe7;
    border-radius: 8px;
    background: #fafcfb;
    color: #4d5852;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
}

.association-program-card__experiences li::before {
    position: absolute;
    top: 50%;
    left: 10px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--program-green);
    content: '';
    transform: translateY(-50%);
}

.association-program-card__foot {
    display: grid;
    gap: 12px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #edf1ef;
}

.association-program-card__foot > div {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
}

.association-program-card__foot strong,
.association-program-card__foot a {
    color: #46524b;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
}

.association-program-card__foot a {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    color: var(--program-green-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.association-program-card__foot a i {
    width: 7px;
    height: 7px;
    margin: -2px 3px 0 9px;
    border-top: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
    transform: rotate(45deg);
}

.association-programs__notice {
    position: relative;
    margin: 18px 4px 0;
    padding-left: 20px;
    color: #717d76;
    font-size: 12px;
    line-height: 1.6;
    letter-spacing: -0.035em;
}

.association-programs__notice::before {
    position: absolute;
    top: 2px;
    left: 0;
    display: inline-flex;
    width: 14px;
    height: 14px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #87958d;
    color: #fff;
    content: 'i';
    font-family: Arial, sans-serif;
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
}

@media (min-width: 768px) {
    .program-directory__section + .program-directory__section {
        margin-top: 96px;
    }

    .program-directory__heading {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
        gap: 36px;
        margin-bottom: 36px;
    }

    .program-directory__heading h3 {
        font-size: 34px;
    }

    .program-directory__heading p {
        font-size: 16px;
    }

    .program-directory__news-link {
        flex: 0 0 auto;
    }

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

    .foundation-program-card {
        padding: 28px 26px 24px;
    }

    .foundation-program-card__copy h4,
    .association-program-card__head h4 {
        font-size: 23px;
    }

    .association-programs {
        padding: 42px 36px 34px;
        border-radius: 30px;
    }

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

@media (min-width: 1200px) {
    .foundation-programs__list {
        gap: 20px;
    }

    .foundation-program-card {
        display: grid;
        grid-template-columns: minmax(0, 1.05fr) minmax(270px, 0.95fr);
        gap: 30px;
        align-items: start;
    }

    .foundation-program-card__meta {
        margin-top: 0;
        padding-top: 0;
        padding-left: 28px;
        border-top: 0;
        border-left: 1px solid #edf1ef;
    }

    .association-programs__list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .program-directory__news-link {
        transition: none;
    }
}
