/* ============================================================
   group-students.css – Kembata Zone Education Bureau
   Styles for the Group Students page
   ============================================================ */

:root {
    --primary: #003366;      /* Academic dark blue */
    --accent: #1b6ec2;       /* Link/Accent blue */
    --dark: #222222;
    --light: #ffffff;
    --bg-alt: #f8f9fa;
    --border-color: #cccccc;
    --text-soft: #555555;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
}

[data-theme="dark"] {
    --dark: #f4f4f4;
    --light: #222222;
    --bg-alt: #1a1a1a;
    --border-color: #444444;
    --text-soft: #bbb;
    --shadow: 0 4px 12px rgba(0,0,0,0.4);
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: Arial, Helvetica, sans-serif; 
}

body { 
    background: var(--bg-alt); 
    color: var(--dark); 
    line-height: 1.5;
    overflow-x: hidden; 
    max-width: 100%;
}

/* --- Hero Section --- */
.page-hero {
    background: var(--primary);
    padding: 60px 20px;
    text-align: center;
    color: #fff;
    border-bottom: 3px solid var(--accent);
}

.hero-label {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.hero-label i { margin-right: 8px; }

.page-hero h1 {
    font-size: 2.2rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.page-hero p {
    font-size: 1.05rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Group Meta Section --- */
.group-meta-section {
    padding: 40px 20px;
    background: var(--bg-alt);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

.group-meta-card {
    background: var(--light);
    border-radius: 6px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    padding: 25px 30px;
    border: 1px solid var(--border-color);
    border-top: 3px solid var(--primary);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1 1 180px;
}

.meta-item i {
    font-size: 1.8rem;
    color: var(--primary);
    flex-shrink: 0;
}

.meta-item div {
    display: flex;
    flex-direction: column;
}

.meta-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-soft);
    font-weight: bold;
    margin-bottom: 2px;
}

.meta-value {
    font-size: 0.95rem;
    font-weight: bold;
    color: var(--dark);
}

.meta-divider {
    width: 1px;
    height: 45px;
    background: var(--border-color);
    flex-shrink: 0;
}

/* --- Students Section --- */
.students-section {
    padding: 20px 20px 80px;
    background: var(--bg-alt);
}

.section-header {
    text-align: center;
    margin-bottom: 35px;
}

.section-header h2 {
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.section-header p {
    color: var(--text-soft);
    font-size: 0.95rem;
}

/* --- Students Grid --- */
.students-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 22px;
}

.student-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background: var(--light);
    border-radius: 6px;
    padding: 16px 12px 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    text-align: center;
    position: relative;
}

.student-card:hover {
    border-color: var(--accent);
}

.student-photo-wrap {
    width: 100px;
    height: 125px;
    border-radius: 4px;
    overflow: hidden;
    border: 2px solid var(--primary);
    flex-shrink: 0;
}

.student-photo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.student-name {
    font-size: 0.88rem;
    font-weight: bold;
    color: var(--dark);
    line-height: 1.2;
}

/* --- Badges --- */
.role-badge {
    display: inline-block;
    padding: 3px 8px;
    font-size: 0.68rem;
    font-weight: bold;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.role-badge.leader {
    background-color: var(--primary);
    color: #ffffff;
}

.role-badge.member {
    background-color: var(--bg-alt);
    color: var(--text-soft);
    border: 1px solid var(--border-color);
}

/* --- Responsive Layout --- */
@media (max-width: 768px) {
    .group-meta-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }
    .meta-divider { display: none; }

    .students-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 16px;
    }
    .student-photo-wrap {
        width: 85px;
        height: 110px;
    }
}

@media (max-width: 480px) {
    .students-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}