.department-mobile-grid {
    display: grid;
    gap: 14px;
}

.department-mobile-card {
    --department-primary: var(--mobile-primary);
    --department-secondary: var(--mobile-secondary);
    align-items: center;
    background: linear-gradient(145deg, var(--department-primary), var(--department-secondary));
    background-position: center;
    background-size: cover;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 18px;
    box-shadow: 0 16px 34px rgba(10, 47, 71, 0.16);
    color: #fff;
    display: grid;
    gap: 12px;
    grid-template-columns: 76px 1fr;
    min-height: 142px;
    overflow: hidden;
    padding: 16px;
    position: relative;
    text-decoration: none;
}

.department-mobile-card::before {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0));
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
}

.department-mobile-orb {
    background: rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    height: 118px;
    position: absolute;
    right: -34px;
    top: -42px;
    width: 118px;
}

.department-mobile-logo {
    align-items: center;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 18px;
    display: flex;
    height: 76px;
    justify-content: center;
    overflow: hidden;
    padding: 10px;
    position: relative;
    width: 76px;
    z-index: 1;
}

.department-mobile-logo img {
    max-height: 54px;
    max-width: 58px;
    object-fit: contain;
}

.department-mobile-logo i {
    color: rgba(255, 255, 255, 0.9);
    font-size: 34px;
}

.department-mobile-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.department-mobile-copy small {
    color: rgba(255, 255, 255, 0.78);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.department-mobile-copy strong {
    color: #fff;
    font-size: 19px;
    font-weight: 950;
    line-height: 22px;
}

.department-mobile-copy em {
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    color: rgba(255, 255, 255, 0.86);
    display: -webkit-box;
    font-size: 12px;
    font-style: normal;
    line-height: 17px;
    overflow: hidden;
}

.department-detail-mobile {
    --department-primary: var(--mobile-primary);
    --department-secondary: var(--mobile-secondary);
    background: linear-gradient(145deg, var(--department-primary), var(--department-secondary));
    background-position: center;
    background-size: cover;
    border-radius: 22px;
    color: #fff;
    display: grid;
    gap: 10px;
    margin-bottom: 14px;
    overflow: hidden;
    padding: 24px 18px;
    position: relative;
    text-align: center;
}

.department-detail-mobile::before {
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.22), transparent 42%);
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
}

.department-detail-logo {
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 22px;
    display: flex;
    height: 92px;
    justify-content: center;
    justify-self: center;
    padding: 14px;
    position: relative;
    width: 92px;
    z-index: 1;
}

.department-detail-logo img {
    max-height: 64px;
    max-width: 70px;
    object-fit: contain;
}

.department-detail-logo i {
    font-size: 42px;
}

.department-detail-mobile small,
.department-detail-mobile h2,
.department-detail-mobile p,
.department-detail-actions {
    position: relative;
    z-index: 1;
}

.department-detail-mobile small {
    color: rgba(255, 255, 255, 0.78);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.department-detail-mobile h2 {
    font-size: 26px;
    font-weight: 950;
    margin: 0;
}

.department-detail-mobile p {
    color: rgba(255, 255, 255, 0.86);
    font-size: 13px;
    line-height: 19px;
    margin: 0;
}

.department-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 6px;
}

.department-detail-actions a,
.department-inline-action {
    align-items: center;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: 12px;
    font-weight: 900;
    gap: 6px;
    min-height: 36px;
    padding: 0 12px;
    text-decoration: none;
}

.department-detail-section {
    background: #fff;
    border: 1px solid var(--mobile-border);
    border-radius: 18px;
    box-shadow: var(--mobile-shadow);
    display: grid;
    gap: 12px;
    margin-bottom: 14px;
    padding: 14px;
}

.department-about-image {
    border-radius: 14px;
    max-height: 240px;
    object-fit: cover;
    width: 100%;
}

.department-about-content {
    color: var(--mobile-text);
    font-size: 13px;
    line-height: 20px;
}

.department-about-content p:last-child {
    margin-bottom: 0;
}

.department-stats-mobile {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 14px;
}

.department-stats-mobile article {
    align-items: center;
    background: #fff;
    border: 1px solid var(--mobile-border);
    border-radius: 16px;
    box-shadow: var(--mobile-shadow);
    display: grid;
    gap: 4px;
    justify-items: center;
    min-height: 98px;
    padding: 10px 6px;
    text-align: center;
}

.department-stats-mobile i {
    color: var(--mobile-primary);
    font-size: 21px;
}

.department-stats-mobile strong {
    color: var(--mobile-text);
    font-size: 20px;
    font-weight: 950;
    line-height: 20px;
}

.department-stats-mobile span {
    color: var(--mobile-muted);
    font-size: 10px;
    font-weight: 800;
    line-height: 13px;
}

.department-uniform-mobile {
    grid-template-columns: 1fr;
}

.department-uniform-mobile p {
    color: var(--mobile-muted);
    font-size: 13px;
    line-height: 19px;
}

.department-uniform-mobile img {
    background: linear-gradient(135deg, var(--mobile-primary), var(--mobile-secondary));
    border-radius: 14px;
    max-height: 230px;
    object-fit: contain;
    width: 100%;
}

.department-inline-action {
    background: var(--mobile-primary);
    border-color: var(--mobile-primary);
    margin-top: 4px;
}

.department-events-mobile {
    display: grid;
    gap: 10px;
}

.department-event-mobile-card {
    align-items: center;
    background: #f8fafc;
    border: 1px solid var(--mobile-border);
    border-radius: 16px;
    color: inherit;
    display: grid;
    gap: 10px;
    grid-template-columns: 72px 1fr;
    min-height: 88px;
    overflow: hidden;
    padding: 10px;
    text-decoration: none;
}

.department-event-mobile-card img {
    border-radius: 12px;
    height: 68px;
    object-fit: cover;
    width: 72px;
}

.department-event-date {
    align-items: center;
    background: linear-gradient(135deg, var(--mobile-primary), var(--mobile-secondary));
    border-radius: 12px;
    color: #fff;
    display: grid;
    height: 68px;
    justify-items: center;
    padding: 7px;
    width: 72px;
}

.department-event-date strong {
    font-size: 22px;
    font-weight: 950;
    line-height: 20px;
}

.department-event-date small {
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.department-event-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.department-event-copy small {
    color: var(--mobile-secondary);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.department-event-copy strong {
    color: var(--mobile-text);
    font-size: 14px;
    font-weight: 950;
    line-height: 18px;
}

.department-event-copy em {
    color: var(--mobile-muted);
    font-size: 11px;
    font-style: normal;
    line-height: 15px;
}

.department-members-mobile,
.department-leaders-mobile {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.department-member-mobile,
.department-leader-mobile {
    align-items: center;
    background: #f8fafc;
    border: 1px solid var(--mobile-border);
    border-radius: 16px;
    color: var(--mobile-text);
    display: grid;
    gap: 6px;
    justify-items: center;
    min-height: 104px;
    padding: 10px 6px;
    text-align: center;
    text-decoration: none;
}

.department-member-mobile img,
.department-leader-mobile img {
    border-radius: 999px;
    height: 54px;
    object-fit: cover;
    width: 54px;
}

.department-member-mobile span,
.department-leader-mobile strong {
    font-size: 12px;
    font-weight: 900;
    line-height: 14px;
}

.department-member-mobile.more {
    align-content: center;
    background: linear-gradient(135deg, var(--mobile-primary), var(--mobile-secondary));
    color: #fff;
}

.department-member-mobile.more strong {
    font-size: 22px;
    font-weight: 950;
    line-height: 22px;
}

.department-leader-mobile span {
    align-items: center;
    color: var(--mobile-secondary);
    display: inline-flex;
    font-size: 10px;
    font-weight: 900;
    gap: 4px;
    line-height: 13px;
}

.department-final-mobile {
    --department-primary: var(--mobile-primary);
    --department-secondary: var(--mobile-secondary);
    background: linear-gradient(135deg, var(--department-primary), var(--department-secondary));
    border-radius: 18px;
    color: #fff;
    display: grid;
    gap: 6px;
    margin-bottom: 12px;
    padding: 18px;
}

.department-final-mobile span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.department-final-mobile strong {
    font-size: 20px;
    font-weight: 950;
}

.department-final-mobile p {
    color: rgba(255, 255, 255, 0.84);
    font-size: 13px;
    line-height: 18px;
    margin: 0;
}

@media (min-width: 520px) {
    .department-mobile-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .department-uniform-mobile {
        grid-template-columns: 1.15fr 0.85fr;
    }
}
