/* =========================================================
   AL KARAMA - CONTENT PAGES
========================================================= */

/* GENERAL */

.content-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.content-card {
    background: white;
    border: 1px solid #e9e9e9;
    border-radius: 22px;
    overflow: hidden;
    transition: .25s;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
}

.content-card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: #eee;
}

.content-card-body {
    padding: 22px;
}

.content-card-kicker {
    color: var(--karama-red);
    font-size: 11px;
    font-weight: 900;
}

.content-card-title {
    font-size: 23px;
    line-height: 1.3;
    font-weight: 900;
    margin-top: 5px;
}

.content-card-description {
    color: var(--karama-gray-700);
    font-size: 14px;
    margin-top: 10px;
}

.content-card-meta {
    color: var(--karama-gray-500);
    font-size: 12px;
    margin-top: 12px;
}


/* =========================================================
   ACADEMY
========================================================= */

.academy-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 45px;
    align-items: center;
}

.academy-philosophy {
    background: var(--karama-black);
    color: white;
    border-radius: 28px;
    padding: 38px;
}

.academy-philosophy h2 {
    font-size: 38px;
    line-height: 1.15;
    font-weight: 900;
}

.academy-philosophy p {
    color: #bbb;
    margin-top: 15px;
}

.academy-points {
    display: grid;
    gap: 12px;
}

.academy-point {
    border: 1px solid #e6e6e6;
    background: white;
    border-radius: 17px;
    padding: 18px;
    font-weight: 800;
}

.academy-point strong {
    color: var(--karama-red);
    margin-inline-end: 7px;
}

.academy-register-link {
    display: inline-flex;
    margin-top: 18px;
    color: var(--karama-red);
    font-weight: 900;
}


/* ACADEMY FORM */

.k-form-shell {
    max-width: 950px;
    margin: auto;
}

.k-form-card {
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 26px;
    padding: 35px;
}

.k-form-title {
    font-size: 30px;
    font-weight: 900;
    margin-bottom: 28px;
}

.k-form-section-title {
    grid-column: 1 / -1;
    margin-top: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ececec;
    font-size: 18px;
    font-weight: 900;
}

.k-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 19px;
}

.k-field {
    display: grid;
    gap: 7px;
}

.k-field-full {
    grid-column: 1 / -1;
}

.k-field label {
    font-size: 13px;
    font-weight: 900;
}

.k-required {
    color: var(--karama-red);
}

.k-field input,
.k-field select,
.k-field textarea {
    width: 100%;
    border: 1px solid #d8d8d8;
    background: white;
    border-radius: 13px;
    padding: 13px 14px;
    transition: .15s;
}

.k-field input:focus,
.k-field select:focus,
.k-field textarea:focus {
    outline: none;
    border-color: var(--karama-red);
    box-shadow: 0 0 0 3px rgba(201,21,34,.08);
}

.k-field textarea {
    resize: vertical;
}

.k-submit {
    margin-top: 26px;
    width: 100%;
    min-height: 50px;
    border: 0;
    border-radius: 999px;
    background: var(--karama-red);
    color: white;
    font-weight: 900;
    cursor: pointer;
}

.k-submit:hover {
    background: var(--karama-red-dark);
}

.k-success {
    margin-bottom: 22px;
    padding: 17px;
    border-radius: 14px;
    background: #e9f7ed;
    color: #16672a;
    font-weight: 800;
}

.k-errors {
    margin-bottom: 22px;
    padding: 17px;
    border-radius: 14px;
    background: #fdeced;
    color: #981b25;
}

.k-errors ul {
    padding-inline-start: 22px;
}


/* =========================================================
   CLUB
========================================================= */

.club-story-layout {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 50px;
    align-items: start;
}

.club-story-side {
    position: sticky;
    top: 120px;
}

.club-story-logo {
    width: 150px;
    height: 150px;
    object-fit: contain;
}

.club-story-year {
    margin-top: 20px;
    color: var(--karama-red);
    font-size: 54px;
    line-height: 1;
    font-weight: 900;
}

.club-story-year-label {
    color: var(--karama-gray-500);
    font-size: 12px;
    margin-top: 5px;
}

.club-story-text {
    font-size: 17px;
    color: #444;
    line-height: 2;
}

.club-story-text p {
    margin-bottom: 16px;
}

.club-identity-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.club-identity-card {
    min-height: 250px;
    padding: 28px;
    border-radius: 22px;
    background: white;
    border: 1px solid #e8e8e8;
}

.club-identity-card.red {
    background: var(--karama-red);
    color: white;
    border-color: var(--karama-red);
}

.club-identity-card.dark {
    background: var(--karama-black);
    color: white;
    border-color: var(--karama-black);
}

.club-identity-card h3 {
    font-size: 25px;
    font-weight: 900;
}

.club-identity-card .rich {
    margin-top: 12px;
    color: #555;
}

.club-identity-card.red .rich,
.club-identity-card.dark .rich {
    color: rgba(255,255,255,.76);
}

.club-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.club-info-item {
    background: var(--karama-gray-100);
    padding: 22px;
    border-radius: 17px;
}

.club-info-label {
    color: var(--karama-gray-500);
    font-size: 11px;
}

.club-info-value {
    margin-top: 4px;
    font-size: 17px;
    font-weight: 900;
}


/* HISTORY */

.history-timeline {
    max-width: 950px;
    margin: auto;
    position: relative;
    display: grid;
    gap: 28px;
}

.history-timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    inset-inline-start: 35px;
    width: 2px;
    background: #e7c3c6;
}

.history-item {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 20px;
    position: relative;
}

.history-year {
    position: relative;
    z-index: 2;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--karama-red);
    color: white;
    display: grid;
    place-items: center;
    font-size: 11px;
    font-weight: 900;
}

.history-card {
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 22px;
    overflow: hidden;
}

.history-card img {
    width: 100%;
    max-height: 430px;
    object-fit: cover;
}

.history-body {
    padding: 25px;
}

.history-date {
    color: var(--karama-red);
    font-size: 11px;
    font-weight: 900;
}

.history-title {
    font-size: 25px;
    font-weight: 900;
    margin-top: 5px;
}

.history-description {
    margin-top: 11px;
    color: #555;
    white-space: pre-line;
}


/* ACHIEVEMENTS */

.achievements-page-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.achievement-page-card {
    border-radius: 22px;
    overflow: hidden;
    background: #171717;
    color: white;
    transition: .25s;
}

.achievement-page-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-strong);
}

.achievement-page-card img {
    width: 100%;
    height: 270px;
    object-fit: cover;
}

.achievement-page-body {
    padding: 23px;
}

.achievement-page-year {
    color: #ff8d95;
    font-size: 12px;
    font-weight: 900;
}

.achievement-page-title {
    font-size: 23px;
    font-weight: 900;
    margin-top: 5px;
}

.achievement-page-position {
    margin-top: 8px;
    font-weight: 800;
}

.achievement-page-description {
    margin-top: 12px;
    color: #bbb;
    font-size: 14px;
}


/* BOARD + STAFF */

.people-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.person-card {
    background: white;
    border: 1px solid #e7e7e7;
    border-radius: 22px;
    overflow: hidden;
    transition: .25s;
}

.person-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
}

.person-photo {
    width: 100%;
    height: 310px;
    object-fit: cover;
    background: #eee;
}

.person-body {
    padding: 20px;
}

.person-role {
    color: var(--karama-red);
    font-size: 11px;
    font-weight: 900;
}

.person-name {
    font-size: 21px;
    font-weight: 900;
    margin-top: 3px;
}

.person-meta {
    color: var(--karama-gray-500);
    font-size: 12px;
    margin-top: 5px;
}

.person-bio {
    color: #666;
    font-size: 13px;
    margin-top: 10px;
}


/* =========================================================
   KARAMA TV
========================================================= */

.tv-filter-bar {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
    margin-bottom: 35px;
}

.tv-filter-button {
    border: 1px solid #383838;
    background: #222;
    color: white;
    border-radius: 999px;
    padding: 9px 15px;
    cursor: pointer;
    font-weight: 900;
}

.tv-filter-button.active,
.tv-filter-button:hover {
    background: var(--karama-red);
    border-color: var(--karama-red);
}

.tv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.tv-card {
    background: #1e1e1e;
    color: white;
    border: 1px solid #303030;
    border-radius: 22px;
    overflow: hidden;
    transition: .25s;
}

.tv-card:hover {
    transform: translateY(-5px);
}

.tv-thumb {
    position: relative;
    height: 235px;
    background: #292929;
}

.tv-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tv-placeholder {
    height: 100%;
    display: grid;
    place-items: center;
    color: #777;
    font-weight: 900;
}

.tv-play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 62px;
    height: 62px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: var(--karama-red);
    display: grid;
    place-items: center;
}

.tv-featured {
    position: absolute;
    top: 13px;
    inset-inline-start: 13px;
    background: var(--karama-red);
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 900;
}

.tv-body {
    padding: 19px;
}

.tv-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: #ff8c94;
    font-size: 10px;
    font-weight: 900;
}

.tv-title {
    font-size: 19px;
    line-height: 1.4;
    font-weight: 900;
    margin-top: 7px;
}

.video-player-shell {
    max-width: 1180px;
    margin: auto;
}

.video-player {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 26px;
    overflow: hidden;
    background: black;
}

.video-player iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.video-external {
    position: relative;
    height: 100%;
    display: grid;
    place-items: center;
    text-align: center;
    overflow: hidden;
}

.video-external > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .45;
}

.video-external-content {
    position: relative;
    z-index: 2;
    color: white;
}

.video-external-play {
    width: 78px;
    height: 78px;
    margin: auto;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--karama-red);
    font-size: 27px;
}

.video-title-large {
    font-size: clamp(34px, 5vw, 54px);
    font-weight: 900;
    line-height: 1.15;
}

.video-description {
    max-width: 850px;
    margin-top: 18px;
    color: #555;
    font-size: 16px;
    white-space: pre-line;
}


/* =========================================================
   GALLERY
========================================================= */

.gallery-page-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-page-card {
    border-radius: 22px;
    overflow: hidden;
    background: #222;
    position: relative;
    min-height: 320px;
}

.gallery-page-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .4s;
}

.gallery-page-card:hover img {
    transform: scale(1.05);
}

.gallery-page-placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #888;
}

.gallery-page-overlay {
    position: absolute;
    inset: 0;
    padding: 22px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(0deg, rgba(0,0,0,.88), transparent 70%);
}

.gallery-page-title {
    font-size: 22px;
    font-weight: 900;
}

.gallery-page-meta {
    margin-top: 5px;
    font-size: 12px;
    opacity: .75;
}

.album-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.album-image {
    min-height: 270px;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    background: #eee;
    cursor: pointer;
}

.album-image img {
    width: 100%;
    height: 100%;
    min-height: 270px;
    object-fit: cover;
    transition: .35s;
}

.album-image:hover img {
    transform: scale(1.04);
}

.album-caption {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    padding: 25px 16px 14px;
    color: white;
    font-size: 12px;
    background: linear-gradient(0deg, rgba(0,0,0,.85), transparent);
}

.k-lightbox {
    display: none;
    position: fixed;
    z-index: 5000;
    inset: 0;
    background: rgba(0,0,0,.95);
    align-items: center;
    justify-content: center;
    padding: 25px;
}

.k-lightbox.active {
    display: flex;
}

.k-lightbox img {
    max-width: 95vw;
    max-height: 88vh;
    object-fit: contain;
}

.k-lightbox-close {
    position: fixed;
    top: 20px;
    inset-inline-end: 25px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 0;
    background: white;
    color: #111;
    font-size: 23px;
    cursor: pointer;
}

.k-lightbox-caption {
    position: fixed;
    bottom: 18px;
    inset-inline: 20px;
    text-align: center;
    color: #ddd;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1000px) {

    .content-cards-grid,
    .achievements-page-grid,
    .tv-grid,
    .gallery-page-grid,
    .album-grid {
        grid-template-columns: 1fr 1fr;
    }

    .academy-intro-grid,
    .club-story-layout {
        grid-template-columns: 1fr;
    }

    .club-story-side {
        position: static;
    }

    .club-identity-grid {
        grid-template-columns: 1fr;
    }

    .club-info-grid,
    .people-grid {
        grid-template-columns: 1fr 1fr;
    }

}

@media (max-width: 650px) {

    .content-cards-grid,
    .achievements-page-grid,
    .tv-grid,
    .gallery-page-grid,
    .album-grid,
    .club-info-grid,
    .people-grid {
        grid-template-columns: 1fr;
    }

    .k-form-grid {
        grid-template-columns: 1fr;
    }

    .k-field-full,
    .k-form-section-title {
        grid-column: auto;
    }

    .k-form-card {
        padding: 22px;
    }

    .history-item {
        grid-template-columns: 50px 1fr;
        gap: 11px;
    }

    .history-year {
        width: 50px;
        height: 50px;
        font-size: 9px;
    }

    .history-timeline::before {
        inset-inline-start: 24px;
    }

}