/* Departure Students Section */
.departure-students-section {
    position: relative;
    margin: 0 0 50px 0;
    overflow: hidden;
}

.departure-background {
    position: relative;
    padding: 60px 20px;
    border-radius: 0;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Title row with wings */
.departure-title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    width: 100%;
    max-width: 1000px;
}

/* Wing decorations */
.wing-left,
.wing-right {
    flex-shrink: 0;
}

.wing-left {
    transform: scaleX(-1); /* Flip horizontally */
}

.wing-right {
    /* Keep normal orientation */
}

.wing-left img,
.wing-right img {
    width: 80px;
    height: auto;
    opacity: 0.9;
    filter: brightness(1.1);
}

/* Main title */
.departure-title {
    text-align: center;
    -webkit-text-stroke-width: 1.41px;
-webkit-text-stroke-color: #FFF;
}

.departure-title h2 {
    font-family: var(--font-fz-poppins);
    font-size: 40px;
    font-weight: 900;
    color: #FF4444;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.2;
}

/* Month display */
.departure-month {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.month-label,
.year-label {
    font-family: var(--font-fz-poppins);
    font-size: 18px;
    font-weight: 700;
    color: #FF4444;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    -webkit-text-stroke-width: 0px;
}

.month-number {
    font-family: var(--font-fz-poppins);
    font-size: 24px;
    font-weight: 900;
    color: #FF4444;
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 12px;
    border-radius: 20px;
    min-width: 40px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Students grid */
.departure-students-grid {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 40px;
    z-index: 2;
    position: relative;
}

.students-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    justify-content: center;
    align-items: center;
}

/* Mobile specific styles - đảm bảo chỉ hiển thị 1 card */
@media (max-width: 576px) {
    .departure-students-grid {
        max-width: 300px;
    }
    
    .students-container {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
        display: grid !important;
    }
    
    /* Ẩn tất cả cards trừ card đầu tiên trong mỗi container */
    .students-container .student-card:not(:first-child) {
        display: none !important;
    }
    
    /* Đảm bảo chỉ có 1 card hiển thị */
    .students-container {
        grid-template-rows: auto !important;
    }
    
    /* Container ban đầu ẩn các trang khác, nhưng có thể được ghi đè bởi JavaScript */
    .departure-students-grid .students-container:not([data-page="0"]) {
        display: none;
    }
}

/* Student Card Styles */
.student-card {
    border-radius: 9.55px;
    background: #F8F8F8;
    box-shadow: 0px 2.939px 9.55px 3.673px rgba(28, 102, 213, 0.25);
    display: flex;
    width: 263px;
    height: 367.33px;
    padding: 17.63px 7.35px 17.63px 7.35px;
    flex-direction: column;
    align-items: center;
    gap: 7.35px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    justify-content: space-between;
}

.student-card:hover {
    transform: translateY(-3px);
    box-shadow: 0px 4px 12px 4px rgba(28, 102, 213, 0.35);
}

/* Card Header */
.student-card-header {
    color: white;
    padding: 10px 12px;
    text-align: center;
    border-radius: 6px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.student-name {
    font-family: var(--font-fz-poppins);
    font-size: 14px;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #13365E;
    line-height: 1.2;
}

/* Photo Container - Square Image */
.student-photo-container {
    width: 100%;
    height: 200px;
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.student-photo-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    background: lightgray;
    border-radius: 6px;
}

/* Card Footer */
.student-card-footer {
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 6px;
    flex-shrink: 0;
}

.social-reactions {
    display: flex;
    gap: 3px;
    align-items: center;
}

.reaction-like,
.reaction-love,
.reaction-care {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.reaction-like {
    background: #1877F2;
}

.reaction-love {
    background: #E74C3C;
}

.reaction-care {
    background: #F39C12;
}

.reaction-like:hover,
.reaction-love:hover,
.reaction-care:hover {
    transform: scale(1.1);
}

.comment-text {
    font-family: var(--font-fz-poppins);
    font-size: 11px;
    color: #718096;
    font-weight: 500;
}

/* Status Bar */
.student-status-bar {
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 12px;
    text-align: center;
    border-radius: 6px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.status-text {
    color: #818085;
    padding: 8px 16px;
    border-radius: 20px;
    font-family: var(--font-fz-poppins);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    line-height: 1.2;
}

/* Pagination dots */
.departure-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 3;
    position: relative;
    margin-top: 20px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.dot.active {
    background: #FFFFFF;
    width: 30px;
    border-radius: 15px;
    border: 1px solid #FFFFFF;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.8);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .departure-title-row {
        gap: 20px;
    }
    
    .wing-left img,
    .wing-right img {
        width: 70px;
    }
    
    .students-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
    
    .departure-title h2 {
        font-size: 42px;
    }
    
    .month-label {
        font-size: 16px;
    }
    
    .month-number {
        font-size: 22px;
        padding: 3px 10px;
    }
    
    .student-card {
        width: 220px;
        padding: 15px 6px;
        gap: 6px;
    }
    
    .student-photo-container {
        height: 130px;
    }
    
    .student-name {
        font-size: 13px;
    }
}

@media (max-width: 992px) {
    .departure-title-row {
        gap: 15px;
    }
    
    .wing-left img,
    .wing-right img {
        width: 60px;
    }
    
    .departure-background {
        padding: 50px 15px;
    }
    
    .students-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .departure-title h2 {
        font-size: 36px;
    }
    
    .month-label {
        font-size: 15px;
    }
    
    .month-number {
        font-size: 20px;
        padding: 3px 8px;
    }
    
    .student-card {
        width: 200px;
        padding: 14px 5px;
        gap: 5px;
    }
    
    .student-photo-container {
        height: 120px;
    }
    
    .student-name {
        font-size: 12px;
    }
    
    .student-card-header {
        padding: 6px 10px;
    }
}

@media (max-width: 768px) {
    .departure-title-row {
        gap: 10px;
    }
    
    .wing-left img,
    .wing-right img {
        width: 50px;
    }
    
    .departure-background {
        padding: 40px 15px;
        margin: -15px !important;
    }
    
    .departure-title h2 {
        font-size: 28px;
        line-height: 1.3;
    }
    
    .month-label {
        font-size: 14px;
    }
    
    .month-number {
        font-size: 18px;
        padding: 2px 6px;
    }
    
    .students-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .student-card {
        width: 180px;
        padding: 12px 5px;
        gap: 5px;
    }
    
    .student-photo-container {
        height: 110px;
    }
    
    .student-name {
        font-size: 11px;
    }
    
    .student-card-header {
        padding: 5px 8px;
    }
    
    .student-card-footer {
        padding: 6px 8px;
    }
    
    .reaction-like,
    .reaction-love,
    .reaction-care {
        width: 14px;
        height: 14px;
        font-size: 9px;
    }
    
    .comment-text {
        font-size: 10px;
    }
    
    .student-status-bar {
        padding: 5px 8px;
    }
    
    .status-text {
        font-size: 9px;
        padding: 2px 8px;
    }
}

@media (max-width: 576px) {
    .departure-title-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .wing-left,
    .wing-right {
        display: none;
    }
    
    .departure-title h2 {
        font-size: 24px;
        text-shadow: 2px 2px 0px #FFFFFF, 
                    -1px -1px 0px #FFFFFF,  
                    1px -1px 0px #FFFFFF,
                    -1px 1px 0px #FFFFFF,
                    1px 1px 0px #FFFFFF;
    }
    
    .month-label {
        font-size: 12px;
    }
    
    .month-number {
        font-size: 16px;
        padding: 2px 6px;
        min-width: 30px;
    }
    
    /* Đảm bảo chỉ hiển thị 1 card trên mobile */
    .departure-students-grid {
        max-width: 300px;
        margin: 0 auto 40px;
    }
    
    .students-container {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto !important;
        gap: 0 !important;
        justify-items: center;
        display: grid !important;
        align-items: start !important;
    }
    
    /* Ẩn tất cả student cards trừ card đầu tiên trong mỗi container */
    .students-container .student-card:not(:first-child) {
        display: none !important;
    }
    
    /* Đảm bảo container chỉ chứa 1 card */
    .students-container {
        min-height: auto !important;
        height: auto !important;
    }
    
    .student-card {
        width: 263px !important;
        height: 367.33px !important;
        padding: 17.63px 7.35px 17.63px 7.35px !important;
        gap: 7.35px !important;
        margin: 0 auto !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    .student-photo-container {
        height: 200px !important;
    }
    
    .student-name {
        font-size: 14px !important;
    }
    
    .student-card-header {
        padding: 10px 12px !important;
    }
    
    .student-card-footer {
        padding: 10px 12px !important;
    }
    
    .student-status-bar {
        padding: 8px 12px !important;
    }
    
    .status-text {
        font-size: 14px !important;
        padding: 8px 16px !important;
    }
    
    .reaction-like,
    .reaction-love,
    .reaction-care {
        width: 16px !important;
        height: 16px !important;
        font-size: 10px !important;
    }
    
    .comment-text {
        font-size: 11px !important;
    }
    
    .dot {
        width: 8px;
        height: 8px;
    }
    
    .dot.active {
        width: 20px;
        border-radius: 10px;
    }
    
    /* Đảm bảo pagination hiển thị trên mobile */
    .departure-pagination {
        display: flex !important;
        justify-content: center !important;
        gap: 10px !important;
        margin-top: 20px !important;
        z-index: 3 !important;
        position: relative !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    /* Đảm bảo dots hiển thị rõ ràng */
    .departure-pagination .dot {
        opacity: 1 !important;
        visibility: visible !important;
        background: rgba(255, 255, 255, 0.7) !important;
        border: 1px solid rgba(255, 255, 255, 0.5) !important;
    }
    
    .departure-pagination .dot.active {
        background: #FFFFFF !important;
        border-color: #FFFFFF !important;
    }
}

/* Error handling for missing images */
.student-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    border-radius: 8px;
    color: #999;
    text-align: center;
    padding: 20px;
}

.student-placeholder i {
    font-size: 48px;
    margin-bottom: 8px;
    opacity: 0.5;
}

.student-placeholder span {
    font-size: 12px;
    font-weight: 500;
} 