/* =============================================================
   CO-CURRICULAR PROGRAMMES PAGE — Page-specific CSS
   ============================================================= */


/* ───────────────────────────────────────────────────────────────
   SECTION 1: CUSTOM SPLIT HERO
   ─────────────────────────────────────────────────────────────── */

.cocurr-hero {
    background: var(--color-surface);
    padding-block: clamp(3.5rem, 7vw, 6rem) clamp(2rem, 4vw, 3.5rem);
    overflow: hidden;
    position: relative;
}

.cocurr-hero__inner {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: clamp(2rem, 4vw, 4rem);
    align-items: center;
}

/* Title */
.cocurr-hero__title {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: clamp(2rem, 5vw, 3.6rem);
    color: var(--color-primary);
    line-height: 1.1;
    margin: 0.5rem 0 0;
    text-transform: uppercase;
}

.cocurr-hero__title-accent {
    color: var(--color-secondary);
    display: block;
}

/* Red accent rule */
.cocurr-hero__rule {
    display: block;
    width: 50px;
    height: 4px;
    background: var(--color-secondary);
    border-radius: 2px;
    margin-block: 1rem 1.25rem;
}

.cocurr-hero__lead {
    font-size: clamp(0.9rem, 1.5vw, 1.02rem);
    line-height: 1.85;
    color: var(--color-muted);
    margin-bottom: 1.75rem;
    max-width: 54ch;
}

/* Goal strip */
.cocurr-hero__goal {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: var(--color-primary);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    max-width: 520px;
}

.cocurr-hero__goal-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--color-secondary);
    display: grid;
    place-items: center;
    flex-shrink: 0;
    color: #fff;
}

.cocurr-hero__goal-label {
    display: block;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    color: var(--color-highlight);
    margin-bottom: 0.3rem;
}

.cocurr-hero__goal-text {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin: 0;
}

/* Circular image */
.cocurr-hero__img-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cocurr-hero__img-circle {
    width: clamp(280px, 32vw, 420px);
    height: clamp(280px, 32vw, 420px);
    border-radius: 50%;
    overflow: hidden;
    border: 6px solid rgba(11, 36, 117, 0.12);
    box-shadow: 0 20px 60px rgba(11, 36, 117, 0.18);
    flex-shrink: 0;
}

.cocurr-hero__img-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Decorative dot grid */
.cocurr-hero__dots {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background-image: radial-gradient(rgba(11,36,117,0.15) 1.5px, transparent 1.5px);
    background-size: 12px 12px;
    z-index: -1;
    border-radius: 50%;
}


/* ───────────────────────────────────────────────────────────────
   SECTION 2: GOALS CHECKLIST
   ─────────────────────────────────────────────────────────────── */

.cocurr-goals {
    padding-block: clamp(1.5rem, 3vw, 2.5rem);
    background: var(--color-surface-soft);
    border-top: 1px solid var(--color-border);
}

.cocurr-goals__grid {
    list-style: none;
    padding: 1.5rem;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 3rem;
    background: var(--color-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    box-shadow: 0 2px 12px rgba(11, 36, 117, 0.04);
}

.cocurr-goals__grid li {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    font-size: clamp(0.84rem, 1.3vw, 0.92rem);
    color: var(--color-muted);
    line-height: 1.6;
}

.cocurr-goals__grid svg {
    flex-shrink: 0;
    margin-top: 0.25rem;
    color: var(--color-primary);
}


/* ───────────────────────────────────────────────────────────────
   SECTION 3: CLUB QUICK-NAV ICONS
   ─────────────────────────────────────────────────────────────── */

.cocurr-nav {
    background: var(--color-surface);
    padding-block: clamp(1.5rem, 3vw, 2.5rem);
    border-bottom: 1px solid var(--color-border);
}

.cocurr-nav__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.cocurr-nav__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    padding: 1rem 0.75rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    min-width: 110px;
    text-align: center;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    border: 2px solid transparent;
}

.cocurr-nav__item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(11, 36, 117, 0.14);
    text-decoration: none;
}

.cocurr-nav__icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin-bottom: 0.1rem;
    color: #fff;
    transition: transform 0.22s ease;
}

.cocurr-nav__item:hover .cocurr-nav__icon {
    transform: scale(1.1);
}

.cocurr-nav__item span {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.8rem;
    line-height: 1.35;
}

.cocurr-nav__item small {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Per-club colours */
.cocurr-nav__item--chess   { color: var(--color-primary); border-color: rgba(11,36,117,0.1); background: rgba(11,36,117,0.03); }
.cocurr-nav__item--chess   .cocurr-nav__icon { background: var(--color-primary); }
.cocurr-nav__item--chess   small { color: var(--color-primary); }

.cocurr-nav__item--scrabble { color: #7b2fa6; border-color: rgba(123,47,166,0.1); background: rgba(123,47,166,0.03); }
.cocurr-nav__item--scrabble .cocurr-nav__icon { background: #7b2fa6; }
.cocurr-nav__item--scrabble small { color: #7b2fa6; }

.cocurr-nav__item--debate  { color: var(--color-secondary); border-color: rgba(230,31,42,0.1); background: rgba(230,31,42,0.03); }
.cocurr-nav__item--debate  .cocurr-nav__icon { background: var(--color-secondary); }
.cocurr-nav__item--debate  small { color: var(--color-secondary); }

.cocurr-nav__item--painting { color: #d4730a; border-color: rgba(212,115,10,0.1); background: rgba(212,115,10,0.03); }
.cocurr-nav__item--painting .cocurr-nav__icon { background: #d4730a; }
.cocurr-nav__item--painting small { color: #d4730a; }

.cocurr-nav__item--robotics { color: #1a7a3c; border-color: rgba(26,122,60,0.1); background: rgba(26,122,60,0.03); }
.cocurr-nav__item--robotics .cocurr-nav__icon { background: #1a7a3c; }
.cocurr-nav__item--robotics small { color: #1a7a3c; }

.cocurr-nav__item--spelling { color: #0d7aa8; border-color: rgba(13,122,168,0.1); background: rgba(13,122,168,0.03); }
.cocurr-nav__item--spelling .cocurr-nav__icon { background: #0d7aa8; }
.cocurr-nav__item--spelling small { color: #0d7aa8; }


/* ───────────────────────────────────────────────────────────────
   SECTION 4: EXPLORE OUR CLUBS CARDS
   ─────────────────────────────────────────────────────────────── */

.cocurr-clubs {
    padding-block: var(--space-section);
    background: var(--color-surface-soft);
}

.cocurr-clubs__header {
    text-align: center;
    margin-bottom: clamp(2rem, 3.5vw, 3rem);
}

.cocurr-clubs__heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0;
}

.cocurr-clubs__heading-dash {
    display: block;
    width: 40px;
    height: 3px;
    background: var(--color-secondary);
    border-radius: 2px;
    flex-shrink: 0;
}

/* 3×2 card grid */
.cocurr-clubs__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1rem, 2vw, 1.75rem);
}

/* Club card */
.club-card {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--color-border);
    box-shadow: 0 2px 12px rgba(11, 36, 117, 0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.club-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 36px rgba(11, 36, 117, 0.13);
}

.club-card__img-wrap {
    position: relative;
    height: clamp(160px, 18vw, 220px);
    overflow: hidden;
    flex-shrink: 0;
}

.club-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.45s ease;
}

.club-card:hover .club-card__img {
    transform: scale(1.07);
}

/* Coloured circular icon badge overlapping bottom of photo */
.club-card__icon-wrap {
    position: absolute;
    bottom: -18px;
    left: 1.1rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    border: 3px solid var(--color-surface);
    box-shadow: 0 2px 10px rgba(0,0,0,0.18);
    z-index: 2;
}

/* Per-club icon colours */
.club-card__icon-wrap--chess    { background: var(--color-primary); }
.club-card__icon-wrap--scrabble { background: #7b2fa6; }
.club-card__icon-wrap--debate   { background: var(--color-secondary); }
.club-card__icon-wrap--painting { background: #d4730a; }
.club-card__icon-wrap--robotics { background: #1a7a3c; }
.club-card__icon-wrap--spelling { background: #0d7aa8; }

.club-card__body {
    padding: 1.75rem 1.1rem 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.club-card__title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    color: var(--color-primary);
    margin: 0 0 0.55rem;
    line-height: 1.3;
}

.club-card__desc {
    font-size: clamp(0.82rem, 1.2vw, 0.88rem);
    color: var(--color-muted);
    line-height: 1.75;
    flex: 1;
    margin-bottom: 0.9rem;
}

.club-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    color: var(--color-primary);
    text-decoration: none;
    transition: gap 0.2s ease, color 0.2s ease;
}

.club-card__link:hover {
    color: var(--color-secondary);
    gap: 0.55rem;
}


/* ───────────────────────────────────────────────────────────────
   SECTION 5: ALTERNATING FEATURE ROWS
   ─────────────────────────────────────────────────────────────── */

.cocurr-features {
    padding-block: var(--space-section);
    background: var(--color-surface);
    display: flex;
    flex-direction: column;
    gap: clamp(2.5rem, 5vw, 5rem);
}

.cocurr-features .container {
    display: flex;
    flex-direction: column;
    gap: clamp(2.5rem, 5vw, 5rem);
}

.cocurr-feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 4vw, 4rem);
    align-items: center;
}

.cocurr-feature--img-right {
    /* text first visually — grid order stays natural */
}

/* Icon badge */
.cocurr-feature__icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--color-primary);
    display: grid;
    place-items: center;
    color: #fff;
    margin-bottom: 1rem;
    box-shadow: 0 4px 16px rgba(11, 36, 117, 0.25);
}

.cocurr-feature__icon svg {
    width: 26px;
    height: 26px;
}

.cocurr-feature__title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(1.1rem, 2.2vw, 1.5rem);
    color: var(--color-primary);
    margin: 0 0 0.65rem;
}

.cocurr-feature__rule {
    display: block;
    width: 40px;
    height: 3px;
    background: var(--color-secondary);
    border-radius: 2px;
    margin-bottom: 1rem;
}

.cocurr-feature__desc {
    font-size: clamp(0.9rem, 1.4vw, 1rem);
    line-height: 1.85;
    color: var(--color-muted);
    margin: 0;
}

/* Image treatments */
.cocurr-feature__img-wrap {
    overflow: hidden;
}

.cocurr-feature__img {
    width: 100%;
    height: clamp(260px, 30vw, 420px);
    object-fit: cover;
    display: block;
}

/* Row 1 image: rounded left corners + bottom-right diagonal clip */
.cocurr-feature__img--rounded {
    border-radius: 40% 8px 8px 8px;
    box-shadow: 0 16px 40px rgba(11, 36, 117, 0.14);
}

/* Row 2 image: rounded right corners */
.cocurr-feature__img--rounded-alt {
    border-radius: 8px 40% 8px 8px;
    box-shadow: 0 16px 40px rgba(11, 36, 117, 0.14);
}


/* ───────────────────────────────────────────────────────────────
   SECTION 6: "THINK. SPEAK. WIN." CTA BANNER
   ─────────────────────────────────────────────────────────────── */

.cocurr-cta {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 60%, #1a3ea0 100%);
    padding-block: clamp(2.5rem, 5vw, 4rem);
    overflow: hidden;
    position: relative;
}

.cocurr-cta__inner {
    display: flex;
    align-items: center;
    gap: clamp(2rem, 4vw, 4rem);
    position: relative;
    z-index: 1;
}

.cocurr-cta__trophy {
    flex-shrink: 0;
    width: clamp(80px, 12vw, 120px);
    height: clamp(80px, 12vw, 120px);
}

.cocurr-cta__trophy svg {
    width: 100%;
    height: 100%;
}

.cocurr-cta__text {
    flex: 1;
}

.cocurr-cta__heading {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: clamp(1.5rem, 4vw, 2.6rem);
    color: #fff;
    margin: 0 0 0.5rem;
    letter-spacing: -0.01em;
}

.cocurr-cta__rule {
    display: block;
    width: 50px;
    height: 3px;
    background: var(--color-secondary);
    border-radius: 2px;
    margin-bottom: 0.85rem;
}

.cocurr-cta__desc {
    font-size: clamp(0.88rem, 1.4vw, 1rem);
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.75;
    margin: 0 0 1.5rem;
    max-width: 48ch;
}

.cocurr-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.75rem;
    border-radius: 999px;
    background: var(--color-secondary);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.92rem;
    letter-spacing: 0.06em;
    text-decoration: none;
    transition: background 0.22s ease, transform 0.22s ease;
}

.cocurr-cta__btn:hover {
    background: #c41523;
    transform: translateY(-2px);
    color: #fff;
    text-decoration: none;
}

/* Decorative dots right */
.cocurr-cta__deco {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 200px;
    height: 200px;
    background-image: radial-gradient(rgba(255,255,255,0.08) 1.5px, transparent 1.5px);
    background-size: 16px 16px;
    border-radius: 50%;
    pointer-events: none;
}


/* ───────────────────────────────────────────────────────────────
   RESPONSIVE
   ─────────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
    .cocurr-hero__inner {
        grid-template-columns: 1fr 340px;
    }

    .cocurr-clubs__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 820px) {
    .cocurr-hero__inner {
        grid-template-columns: 1fr;
    }

    .cocurr-hero__img-wrap {
        order: -1;
        justify-content: flex-start;
    }

    .cocurr-hero__img-circle {
        width: clamp(220px, 55vw, 320px);
        height: clamp(220px, 55vw, 320px);
    }

    .cocurr-feature {
        grid-template-columns: 1fr;
    }

    .cocurr-feature--img-left .cocurr-feature__img-wrap {
        order: -1;
    }
}

@media (max-width: 640px) {
    .cocurr-goals__grid {
        grid-template-columns: 1fr;
    }

    .cocurr-clubs__grid {
        grid-template-columns: 1fr;
    }

    .cocurr-cta__inner {
        flex-direction: column;
        text-align: center;
    }

    .cocurr-cta__rule {
        margin-inline: auto;
    }

    .cocurr-cta__btn {
        align-self: center;
    }

    .cocurr-cta__deco {
        display: none;
    }
}

@media (max-width: 480px) {
    .cocurr-nav__list {
        gap: 0.5rem;
    }

    .cocurr-nav__item {
        min-width: 90px;
        padding: 0.75rem 0.5rem;
    }

    .cocurr-nav__icon {
        width: 48px;
        height: 48px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .club-card,
    .club-card__img,
    .club-card__link,
    .cocurr-nav__item,
    .cocurr-nav__icon,
    .cocurr-cta__btn {
        transition: none !important;
        transform: none !important;
    }
}
