.teachers {
    width: 80%;
    margin: 32px auto 0 auto;
    padding: 32px 24px 24px 24px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 6px 32px rgba(10,61,145,0.10), 0 2px 8px rgba(0,0,0,0.04);
}

.teachers h2 {
    font-size: 1.5rem;
    color: #fff;
    background: linear-gradient(90deg, #0a3d91 60%, #fedd03 100%);
    border-radius: 10px;
    padding: 14px 0;
    margin-bottom: 28px;
    letter-spacing: 1px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.row-4 {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 32px;
    width: 100%;
    margin: 0 auto;
    flex-wrap: wrap;
}

.col-head-teacher {
    flex: 1 1 220px;
    max-width: 320px;
    min-width: 220px;
    min-height: 340px;
    background: #f7f7fa;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(10,61,145,0.08);
    padding: 28px 18px 18px 18px;
    margin: 0 auto;
    text-align: center;
    transition: box-shadow 0.2s, transform 0.2s, background 0.2s;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.col-head-teacher:hover {
    background: #fffbe6;
    box-shadow: 0 8px 32px rgba(254,221,3,0.13), 0 2px 8px rgba(10,61,145,0.10);
    transform: translateY(-2px) scale(1.03);
}

.col-header {
    width: 100%;
    background: linear-gradient(90deg, #0a3d91 60%, #fedd03 100%);
    color: #fff;
    border-radius: 10px 10px 0 0;
    padding: 10px 0;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.col-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 1px;
    color: #fff; /* Ensure header text is always white */
}

.teacher-img {
    margin-top:20px;
    width: 110px;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
    margin: 0 auto 14px auto;
    box-shadow: 0 2px 8px rgba(10,61,145,0.10);
    border: 2px solid #fedd03;
    background: #f9f9f9;
    display: block;
}

/* Only style the name h3 after the image */
.col-head-teacher img + h3 {
    color: #0a3d91;
    font-size: 1.08rem;
    font-weight: 600;
    margin: 10px 0 0 0;
}

.assistant-row {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    justify-content: center;
    margin: 24px 0 0 0;
}

.assistant-card {
    background: #f7f7fa;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(10,61,145,0.08);
    padding: 18px 16px 14px 16px;
    width: 180px;
    min-width: 150px;
    max-width: 210px;
    min-height: 210px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: box-shadow 0.2s, transform 0.2s, background 0.2s;
    margin-bottom: 8px;
    text-align: center;
}

.assistant-card:hover {
    background: #fffbe6;
    box-shadow: 0 8px 32px rgba(254,221,3,0.13), 0 2px 8px rgba(10,61,145,0.10);
    transform: translateY(-2px) scale(1.03);
}

.assistant-img {
    width: 80px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(10,61,145,0.10);
    border: 2px solid #fedd03;
    background: #f9f9f9;
}

.assistant-info h4 {
    color: #0a3d91;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 6px 0;
}

.assistant-info span {
    color: #222;
    font-size: 0.97rem;
    font-weight: 500;
    background: #fff;
    border-radius: 6px;
    padding: 4px 10px;
    display: inline-block;
    margin: 0;
}

.teachers-print-btn {
    background: #0a3d91;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 7px 22px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(10,61,145,0.10);
    transition: background 0.2s, color 0.2s;
}

.teachers-print-btn:hover {
    background: #fedd03;
    color: #0a3d91;
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: inline-block;
}
.card-link:visited,
.card-link:active {
    color: inherit;
}

@media (max-width: 900px) {
    .teachers {
        width: 98%;
        padding: 18px 6vw 14px 6vw;
    }
    .teachers h2 {
        font-size: 1.15rem;
        padding: 10px 0;
    }
    .row-4 {
        gap: 18px;
    }
    .col-head-teacher {
        max-width: 98vw;
        min-width: 160px;
        padding: 18px 8px 12px 8px;
        min-height: 260px;
    }
    .teacher-img {
        width: 90px;
        height: 115px;
    }
    .assistant-row {
        gap: 16px;
    }
    .assistant-card {
        width: 44vw;
        min-width: 120px;
        max-width: 180px;
        padding: 12px 6px 10px 6px;
        min-height: 150px;
    }
    .assistant-img {
        width: 60px;
        height: 75px;
    }
    .assistant-info h4 {
        font-size: 0.97rem;
    }
    .assistant-info span {
        font-size: 0.93rem;
        padding: 3px 8px;
    }
}

@media (max-width: 700px) {
    .teachers {
        width: 100vw;
        max-width: 100vw;
        border-radius: 0;
        margin: 0;
        padding: 10px 0 4px 0;
        box-shadow: none;
    }
    .teachers h2 {
        font-size: 1rem;
        padding: 7px 0;
        border-radius: 6px;
        margin-bottom: 10px;
    }
    .row-4 {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        width: 100%;
    }
    .col-head-teacher {
        max-width: 98vw;
        min-width: 0;
        padding: 12px 4vw 10px 4vw;
        border-radius: 10px;
        margin-bottom: 8px;
        min-height: 0;
    }
    .col-header {
        padding: 8px 0;
        margin-bottom: 10px;
        border-radius: 8px 8px 0 0;
    }
    .col-header h3 {
        font-size: 0.97rem;
    }
    .teacher-img {
        width: 70px;
        height: 90px;
        margin-bottom: 8px;
    }
    .col-head-teacher h3:last-child {
        font-size: 0.95rem;
        margin-top: 7px;
    }
    .assistant-row {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        margin: 10px 0 0 0;
    }
    .assistant-card {
        width: 96vw;
        min-width: 0;
        max-width: 98vw;
        padding: 10px 4vw 8px 4vw;
        border-radius: 10px;
        margin-bottom: 6px;
        min-height: 0;
    }
    .assistant-img {
        width: 55px;
        height: 70px;
        margin-bottom: 7px;
    }
    .assistant-info h4 {
        font-size: 0.93rem;
        margin-bottom: 4px;
    }
    .assistant-info span {
        font-size: 0.90rem;
        padding: 2px 7px;
    }
}

