@charset "UTF-8";

.sub-header { background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/nextgen/nextgen_banner.webp'); }

.dept-section { background: #f4f7fa; padding: 100px 0; }
.dept-container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.dept-card { display: flex; background: white; border-radius: 25px; overflow: hidden; margin-bottom: 60px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.dept-card:nth-child(even) { flex-direction: row-reverse; }
.dept-img { flex: 1.3; min-height: 450px; background-size: cover; background-position: center; background-repeat: no-repeat;}
.dept-info { flex: 1.2; padding: 50px; display: flex; flex-direction: column; justify-content: center; }
.dept-info h3 { font-size: 28px; font-weight: 700; margin-bottom: 15px; color: #253568; }
.dept-info p { font-size: 17px; color: #555; line-height: 1.7; margin-bottom: 20px; word-break: keep-all; }

.dept-time-info { background: #f9f9f9; padding: 15px 20px; border-radius: 10px; margin-bottom: 25px; border-left: 4px solid #253568; font-size: 15px; color: #444; }
.dept-time-info span { display: block; margin-bottom: 5px; }
.dept-time-info b { color: #222; margin-right: 5px; }

.dept-gallery { margin-top: 20px; border-top: 1px solid #eee; padding-top: 20px; }
.gallery-title { font-size: 16px; font-weight: 700; color: #333; margin-bottom: 15px; display: flex; justify-content: space-between; align-items: center; }
.btn-upload { background: #333; color: white; border: none; padding: 8px 15px; border-radius: 5px; font-size: 13px; cursor: pointer; transition: 0.3s; }
.btn-upload:hover { background: #253568; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.gallery-item { aspect-ratio: 1/1; background: #eee; border-radius: 8px; overflow: hidden; position: relative; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-item .caption { position: absolute; bottom: 0; width: 100%; background: rgba(0,0,0,0.6); color: white; font-size: 10px; padding: 4px; text-align: center; }

@media (max-width: 768px) {
    .dept-card, .dept-card:nth-child(even) { flex-direction: column; }
    .dept-img { min-height: 350px; }
    .dept-info { padding: 30px 20px; }
    .dept-info h3 { font-size: 22px; }
    .dept-info p { font-size: 15px; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
    .pc-hidden {
        display: none !important;
    }
}