

/* ── Team card grid (pr-about, pa-about) ── */
.team-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}
.team-card {
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    max-width: 300px;
    width: 100%;
    transition: var(--transition);
}
.team-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.team-img {
    height: 250px;
    overflow: hidden;
    background: var(--background-alt);
}
.team-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s var(--ease-out);
}
.team-card:hover .team-img img { transform: scale(1.1); }

.team-info { padding: 1.5rem; text-align: center; }
.team-name { font-size: 1.3rem; margin-bottom: .5rem; color: var(--dark); }
.team-role { color: var(--primary); font-weight: 600; margin-bottom: 1rem; }
.team-session {
    color: var(--text-muted);
    font-size: .87rem;
    margin-bottom: .8rem;
    font-weight: 500;
}
.team-session i { color: var(--primary); margin-right: .3rem; }
.team-social { display: flex; justify-content: center; gap: 1rem; }
.team-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px; height: 35px;
    background: var(--background-alt);
    color: var(--dark);
    border-radius: 50%;
    transition: var(--transition);
}
.team-social a:hover {
    background: var(--primary);
    color: #fff;
    transform: scale(1.1);
}
.team-social a.phone-link:hover { background: #27ae60; }

.past-section { margin-bottom: 4rem; }
.past-section:last-child { margin-bottom: 0; }

.section-divider {
    width: 100%;
    max-width: 800px;
    margin: 2rem auto;
    border: 0; height: 2px;
    background: linear-gradient(to right, transparent, var(--primary), transparent);
}

/* ── Dept cards (division.html) ── */
.dept-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.dept-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
}
.dept-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.dept-img { height: 200px; overflow: hidden; }
.dept-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .5s var(--ease-out);
}
.dept-card:hover .dept-img img { transform: scale(1.1); }

.dept-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.dept-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}
.dept-card h3 {
    font-size: 1.35rem;
    color: var(--dark);
    text-align: center;
    margin-bottom: 1rem;
}
.dept-card p {
    color: var(--text-muted);
    line-height: 1.6;
    flex-grow: 1;
    text-align: center;
    margin-bottom: 1.5rem;
}
.dept-card .btn { align-self: center; }

/* ── Dept detail panel (division.html + pr-about.html) ── */
.dept-detail {
    display: none;
    padding: 3rem 0;
    border: none;
}
.dept-detail.active {
    display: block;
    animation: revealUp .7s var(--ease-out) forwards;
}
.dept-header { text-align: center; margin-bottom: 3rem; }
.dept-header-icon {
    display: flex;
    justify-content: center;
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}
.dept-header h2 { font-size: 2rem; color: var(--primary); margin-bottom: .5rem; }
.dept-header p { color: var(--text-muted); }

.dept-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}
.dept-about, .dept-activities {
    background: var(--surface);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
}
.dept-about:hover, .dept-activities:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}
.dept-about h3, .dept-activities h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    padding-bottom: .5rem;
    border-bottom: 2px solid var(--background-alt);
}
.dept-activities ul { list-style: none; padding-left: 0; }
.dept-activities li {
    margin-bottom: .75rem;
    display: flex;
    align-items: center;
    gap: .5rem;
    color: var(--text-muted);
}
.dept-activities li i { color: var(--primary); width: 1.5rem; }

/* ── Instructor / director cards ── */
.instructor-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}
.instructor-card {
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    text-align: center;
    max-width: 260px;
    width: 100%;
    transition: var(--transition);
}
.instructor-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.instructor-img { height: 220px; overflow: hidden; }
.instructor-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s var(--ease-out);
}
.instructor-card:hover .instructor-img img { transform: scale(1.08); }
.instructor-info { padding: 1.2rem; }
.instructor-name { font-size: 1.15rem; color: var(--dark); margin-bottom: .3rem; }
.instructor-role { color: var(--primary); font-weight: 600; font-size: .9rem; }

/* ── Dept tab buttons ── */
.dept-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
}
.dept-tab {
    display: inline-block;
    background: var(--surface);
    color: var(--dark);
    padding: 1rem 1.8rem;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 1rem;
    border: 2px solid var(--primary);
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}
.dept-tab:hover,
.dept-tab.is-active {
    background: var(--primary);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(30,77,59,.28);
}
.dept-tab:active { transform: scale(.96); }

.division-title {
    text-align: center;
    margin-bottom: 3rem;
    margin-top: 3rem;
}
.division-title h2 {
    font-size: 2rem;
    color: var(--primary);
    display: inline-block;
    padding-bottom: 10px;
    position: relative;
}
.division-title h2::after {
    content: '';
    position: absolute;
    left: 50%; bottom: 0;
    transform: translateX(-50%);
    width: 80px; height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--brand-orange));
    border-radius: 2px;
}

@keyframes revealUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .team-card { max-width: 280px; }
    .team-img { height: 200px; }
    .dept-grid { grid-template-columns: 1fr; }
    .dept-header h2 { font-size: 1.6rem; }
}