/* KSBE 2026-07 homepage and event-gallery update */
.ksbe-home-section {
    box-sizing: border-box;
}

.ksbe-quick-access {
    width: 100%;
    padding: 72px 0;
    background: #f4f8fc;
}

.ksbe-quick-access__inner {
    display: grid;
    grid-template-columns: 1fr 1fr 1.42fr;
    width: 1300px;
    margin: 0 auto;
    overflow: hidden;
    background: #fff;
    border: 1px solid #dce7f1;
    border-radius: 20px;
    box-shadow: 0 18px 46px rgba(18, 64, 101, .12);
}

.ksbe-quick-card {
    display: flex;
    min-height: 330px;
    box-sizing: border-box;
    flex-direction: column;
    justify-content: center;
    padding: 46px 42px;
    color: #1d2d3d;
    border-right: 1px solid #e1e9f0;
}

.ksbe-quick-card:last-child {
    border-right: 0;
}

.ksbe-quick-card__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 24px;
    color: #fff;
    font-family: Roboto, sans-serif;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: .08em;
    background: #17689c;
    border-radius: 50%;
}

.ksbe-quick-card h2 {
    margin: 0;
    color: #173a58;
    font-size: 30px;
    line-height: 1.3;
}

.ksbe-quick-card p {
    min-height: 50px;
    margin: 14px 0 26px;
    color: #657483;
    font-size: 16px;
    line-height: 1.6;
    letter-spacing: -.03em;
}

.ksbe-quick-card__link {
    display: inline-flex;
    width: fit-content;
    min-width: 165px;
    height: 52px;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    padding: 0 28px;
    color: #17689c;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid #17689c;
    border-radius: 8px;
    transition: color .2s, background .2s;
}

.ksbe-quick-card__link:hover,
.ksbe-quick-card__link:focus {
    color: #fff;
    background: #17689c;
}

.ksbe-quick-card--login {
    background: #173f61;
}

.ksbe-quick-card--login h2,
.ksbe-quick-card--login p,
.ksbe-quick-card--login .ksbe-login-state strong {
    color: #fff;
}

.ksbe-login-form {
    display: grid;
    grid-template-columns: 1fr 118px;
    gap: 10px;
}

.ksbe-login-form__fields {
    display: grid;
    gap: 10px;
}

.ksbe-login-form input {
    width: 100%;
    height: 52px;
    box-sizing: border-box;
    padding: 0 16px;
    color: #263645;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 7px;
}

.ksbe-login-form button {
    color: #173f61;
    font-size: 18px;
    font-weight: 800;
    background: #d8ec32;
    border: 0;
    border-radius: 7px;
}

.ksbe-login-form input:focus,
.ksbe-login-form button:focus,
.ksbe-quick-card__link:focus,
.ksbe-login-links a:focus {
    outline: 3px solid #f2de41;
    outline-offset: 2px;
}

.ksbe-login-links {
    display: flex;
    gap: 18px;
    margin-top: 16px;
}

.ksbe-login-links a {
    color: #dbe8f2;
    font-size: 14px;
    text-decoration: none;
}

.ksbe-login-links a:hover {
    color: #fff;
    text-decoration: underline;
}

.ksbe-login-state {
    margin-top: 26px;
}

.ksbe-login-state p {
    min-height: 0;
}

.ksbe-login-state .ksbe-login-links {
    margin-top: 22px;
}

.ksbe-login-state .ksbe-login-links a {
    display: inline-flex;
    height: 44px;
    align-items: center;
    padding: 0 18px;
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 7px;
}

.ksbe-sponsors {
    padding: 68px 0 76px;
    background: #fff;
}

.ksbe-sponsors__title {
    margin: 0 0 30px;
    color: #173a58;
    font-size: 30px;
    font-weight: 700;
    text-align: center;
}

.ksbe-sponsors__row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 1300px;
    margin: 0 auto;
}

.ksbe-sponsors__row img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 11;
    object-fit: cover;
    background: #fff;
    border: 1px solid #e6ebef;
    border-radius: 14px;
}

.ksbe-home-notices {
    height: 480px;
    padding-top: 24px;
    background: #fff;
}

.ksbe-home-notices .section2_wrap {
    margin-top: 0;
}

.ksbe-home-notices .section2_wrap .box2,
.ksbe-home-notices .section2_wrap .box3 {
    margin-top: 0;
}

.ksbe-history {
    padding: 0 0 110px;
    background: #eef8fc url('../images/section3_bg.jpg') no-repeat center top / cover;
}

.ksbe-history__intro {
    display: block;
    width: 100%;
}

.ksbe-history__intro img {
    display: block;
    width: 100%;
    height: auto;
}

.ksbe-history__events {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    width: 1300px;
    margin: 40px auto 0;
}

.ksbe-history__event {
    position: relative;
    min-height: 340px;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    color: #fff;
    text-decoration: none;
    background: #173f61;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(18, 49, 73, .16);
}

.ksbe-history__event--featured {
    grid-column: 1 / -1;
    min-height: 560px;
}

.ksbe-history__event img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.ksbe-history__event:hover img {
    transform: scale(1.035);
}

.ksbe-history__caption {
    position: absolute;
    inset: auto 0 0;
    display: flex;
    box-sizing: border-box;
    flex-direction: column;
    padding: 70px 34px 30px;
    background: linear-gradient(to bottom, rgba(9, 31, 48, 0), rgba(9, 31, 48, .92));
}

.ksbe-history__year {
    margin-bottom: 6px;
    color: #d8ec32;
    font-family: Roboto, sans-serif;
    font-size: 18px;
    font-weight: 800;
}

.ksbe-history__caption strong {
    font-size: 26px;
    line-height: 1.35;
}

.ksbe-history__more {
    margin-top: 10px;
    color: #e4edf4;
    font-size: 14px;
}

.ksbe-event-albums,
.ksbe-event-detail {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto 90px;
    color: #263645;
}

.ksbe-event-albums__head,
.ksbe-event-detail__head {
    padding: 12px 0 42px;
    text-align: center;
}

.ksbe-event-albums__head p,
.ksbe-event-detail__head p {
    margin: 0 0 10px;
    color: #1b6e9e;
    font-family: Roboto, sans-serif;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .22em;
}

.ksbe-event-albums__head h2,
.ksbe-event-detail__head h2 {
    margin: 0 0 14px;
    color: #173f61;
    font-size: 42px;
    line-height: 1.3;
}

.ksbe-event-albums__head > span,
.ksbe-event-detail__head > span {
    color: #667684;
    font-size: 16px;
}

.ksbe-event-albums__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

.ksbe-event-albums__card {
    overflow: hidden;
    color: #263645;
    text-decoration: none;
    background: #fff;
    border: 1px solid #e0e8ee;
    border-radius: 14px;
    box-shadow: 0 10px 26px rgba(24, 58, 82, .09);
    transition: transform .2s, box-shadow .2s;
}

.ksbe-event-albums__card:hover,
.ksbe-event-albums__card:focus {
    transform: translateY(-5px);
    box-shadow: 0 16px 34px rgba(24, 58, 82, .16);
}

.ksbe-event-albums__image {
    display: block;
    overflow: hidden;
    aspect-ratio: 14 / 9;
    background: #edf3f6;
}

.ksbe-event-albums__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}

.ksbe-event-albums__card:hover img {
    transform: scale(1.035);
}

.ksbe-event-albums__body {
    display: flex;
    box-sizing: border-box;
    min-height: 155px;
    flex-direction: column;
    padding: 24px 25px;
}

.ksbe-event-albums__year {
    margin-bottom: 7px;
    color: #1b6e9e;
    font-family: Roboto, sans-serif;
    font-size: 15px;
    font-weight: 800;
}

.ksbe-event-albums__body strong {
    color: #173f61;
    font-size: 21px;
    line-height: 1.4;
}

.ksbe-event-albums__body > span:last-child {
    margin-top: auto;
    padding-top: 14px;
    color: #75838e;
    font-size: 14px;
}

.ksbe-event-detail__back {
    display: inline-flex;
    min-height: 44px;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    padding: 0 20px;
    color: #1b6e9e;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid #1b6e9e;
    border-radius: 7px;
}

.ksbe-event-detail__back::before {
    content: "←";
    margin-right: 8px;
}

.ksbe-event-detail__photos {
    display: grid;
    gap: 26px;
}

.ksbe-event-detail__photos figure {
    margin: 0;
    padding: 10px;
    background: #fff;
    border: 1px solid #e1e8ed;
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(24, 58, 82, .09);
}

.ksbe-event-detail__photos img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.ksbe-event-detail__foot {
    padding-top: 40px;
    text-align: center;
}

@media (max-width: 767px) {
    .ksbe-sponsors {
        padding: 8vw 4vw 10vw;
    }

    .ksbe-sponsors__title {
        margin-bottom: 5vw;
        font-size: 5vw;
    }

    .ksbe-sponsors__row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 2.4vw;
        width: 100%;
    }

    .ksbe-sponsors__row img {
        border-radius: 2vw;
    }

    .ksbe-history {
        padding-bottom: 12vw;
    }

    .ksbe-history__events {
        display: grid;
        grid-template-columns: 1fr;
        gap: 4vw;
        width: auto;
        margin: 6vw 4vw 0;
    }

    .ksbe-history__event,
    .ksbe-history__event--featured {
        grid-column: auto;
        min-height: 58vw;
        border-radius: 2.5vw;
    }

    .ksbe-history__caption {
        padding: 16vw 5vw 5vw;
    }

    .ksbe-history__year {
        margin-bottom: 1vw;
        font-size: 3.4vw;
    }

    .ksbe-history__caption strong {
        font-size: 5vw;
    }

    .ksbe-history__more {
        margin-top: 1.5vw;
        font-size: 3vw;
    }

    .ksbe-event-albums,
    .ksbe-event-detail {
        width: calc(100% - 32px);
        margin-bottom: 55px;
    }

    .ksbe-event-albums__head,
    .ksbe-event-detail__head {
        padding: 8px 0 30px;
    }

    .ksbe-event-albums__head h2,
    .ksbe-event-detail__head h2 {
        font-size: 30px;
    }

    .ksbe-event-albums__head > span,
    .ksbe-event-detail__head > span {
        font-size: 14px;
        line-height: 1.6;
    }

    .ksbe-event-albums__grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .ksbe-event-albums__body {
        min-height: 136px;
        padding: 20px;
    }

    .ksbe-event-albums__body strong {
        font-size: 19px;
    }

    .ksbe-event-detail__photos {
        gap: 18px;
    }

    .ksbe-event-detail__photos figure {
        padding: 6px;
        border-radius: 10px;
    }
}
