/* ============================================
   Co-Curricular Activities Page Styles
   ============================================ */

.cocurr-hero {
    position: relative;
    height: 420px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}
.cocurr-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    border-radius: 50%;
    animation: cc-pulse 8s ease-in-out infinite;
}
.cocurr-hero::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -15%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(91,80,214,0.18) 0%, transparent 60%);
    border-radius: 50%;
    animation: cc-pulse 10s ease-in-out infinite reverse;
}
@keyframes cc-pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50%      { transform: scale(1.1); opacity: 0.8; }
}
.cocurr-hero .hero-content { position: relative; z-index: 10; }
.cocurr-hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
    letter-spacing: 2px;
}
.cocurr-hero p {
    font-size: 1.2rem;
    opacity: 0.95;
    max-width: 680px;
    margin: 0 auto;
}

/* Intro */
.cocurr-intro {
    padding: 80px 0 40px;
    background: linear-gradient(180deg, #ffffff 0%, #f6f7ff 100%);
}
.cocurr-intro .badge {
    display: inline-block;
    background: linear-gradient(135deg, #31287e, #1a1556);
    color: #fff;
    padding: 8px 22px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 18px;
}
.cocurr-intro h2 {
    font-size: 2.4rem;
    font-weight: 800;
    color: #1a1556;
    margin: 0 0 18px;
    line-height: 1.22;
}
.cocurr-intro h2 .accent {
    background: linear-gradient(120deg, #31287e 0%, #5b50d6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.cocurr-intro p {
    font-size: 16px;
    line-height: 1.85;
    color: #5a5a72;
    max-width: 880px;
    margin: 0 auto 16px;
}

/* Pillars grid */
.cocurr-pillars {
    padding: 60px 0 90px;
    background: linear-gradient(180deg, #f6f7ff 0%, #ffffff 100%);
}

.pillar-card {
    background: #ffffff;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(49, 40, 126, 0.08);
    box-shadow: 0 18px 44px rgba(49, 40, 126, 0.08);
    margin-bottom: 30px;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    align-items: stretch;
    transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
                box-shadow 0.45s ease;
}
.pillar-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 60px rgba(49, 40, 126, 0.18);
}
.pillar-card.reverse { grid-template-columns: 1.2fr 1fr; }
.pillar-card.reverse .pillar-visual { order: 2; }
.pillar-card.reverse .pillar-body   { order: 1; }

.pillar-visual {
    position: relative;
    overflow: hidden;
    min-height: 280px;
}
.pillar-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}
.pillar-card:hover .pillar-visual img { transform: scale(1.08); }

.pillar-visual .pillar-icon {
    position: absolute;
    bottom: 18px;
    left: 18px;
    width: 60px;
    height: 60px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--p-c1, #31287e), var(--p-c2, #5b50d6));
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 14px 28px var(--p-shadow, rgba(49, 40, 126, 0.32));
    z-index: 2;
}

.pillar-body { padding: 34px 36px 32px; }
.pillar-body h3 {
    font-family: "Catamaran", sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: #1a1556;
    margin: 0 0 14px;
}
.pillar-body p {
    font-family: "Roboto", sans-serif;
    font-size: 15px;
    line-height: 1.8;
    color: #5a5a72;
    margin: 0 0 16px;
}
.pillar-body .pillar-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--p-c1, #31287e);
    background: var(--p-soft, rgba(49, 40, 126, 0.1));
    padding: 5px 14px;
    border-radius: 30px;
    margin-bottom: 14px;
}

/* Per-pillar colors */
.pillar-card.pillar-1 { --p-c1: #ff5e62; --p-c2: #ff9966; --p-soft: rgba(255, 94, 98, 0.1);  --p-shadow: rgba(255, 94, 98, 0.4); }
.pillar-card.pillar-2 { --p-c1: #e91e63; --p-c2: #ff6ec7; --p-soft: rgba(233, 30, 99, 0.1);  --p-shadow: rgba(233, 30, 99, 0.4); }
.pillar-card.pillar-3 { --p-c1: #7c3aed; --p-c2: #a855f7; --p-soft: rgba(124, 58, 237, 0.1); --p-shadow: rgba(124, 58, 237, 0.4); }
.pillar-card.pillar-4 { --p-c1: #10b981; --p-c2: #34d399; --p-soft: rgba(16, 185, 129, 0.1); --p-shadow: rgba(16, 185, 129, 0.4); }
.pillar-card.pillar-5 { --p-c1: #f59e0b; --p-c2: #fbbf24; --p-soft: rgba(245, 158, 11, 0.1); --p-shadow: rgba(245, 158, 11, 0.4); }

/* Closing balance card */
.cocurr-closing {
    background: linear-gradient(135deg, #31287e 0%, #5b50d6 100%);
    color: #fff;
    border-radius: 24px;
    padding: 44px 38px;
    margin-top: 16px;
    text-align: center;
    box-shadow: 0 24px 60px rgba(49, 40, 126, 0.25);
    position: relative;
    overflow: hidden;
}
.cocurr-closing::before {
    content: '';
    position: absolute;
    inset: -40px;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.18), transparent 60%);
    pointer-events: none;
}
.cocurr-closing h3 {
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 14px;
    position: relative;
}
.cocurr-closing p {
    font-size: 15px;
    line-height: 1.8;
    color: rgba(255,255,255,0.92);
    max-width: 760px;
    margin: 0 auto;
    position: relative;
}

@media (max-width: 991px) {
    .pillar-card,
    .pillar-card.reverse { grid-template-columns: 1fr; }
    .pillar-card.reverse .pillar-visual { order: 1; }
    .pillar-card.reverse .pillar-body   { order: 2; }
    .pillar-visual { min-height: 220px; }
    .cocurr-intro h2 { font-size: 1.9rem; }
}

@media (max-width: 575px) {
    .cocurr-hero { height: 360px; }
    .cocurr-hero h1 { font-size: 2.2rem; }
    .pillar-body { padding: 24px 22px 22px; }
    .cocurr-closing { padding: 32px 22px; border-radius: 18px; }
    .cocurr-closing h3 { font-size: 20px; }
}
