/* ===== Reset & Base ===== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Times New Roman", serif;
}

/* ===== Banner ===== */
.banner {
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #0101DF;
    color: #BFFF00;
    overflow: hidden;
}

.banner__left,
.banner__right {
    flex: 0 0 10%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner__center {
    flex: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 5px;
}

/* --- Text lines --- */
.banner__center .line1 {
    font-size: 30px;
    font-weight: 800;
    color: #FFD700;
    text-shadow: 0 1px 0 #b8860b, 0 2px 0 #8b7500, 0 3px 3px rgba(0, 0, 0, 0.5);
}

.banner__center .line2 {
    font-size: 32px;
    font-weight: 800;
    text-transform: uppercase;
    color: #FFD700;
    text-shadow: 0 1px 0 #b8860b, 0 2px 0 #8b7500, 0 3px 3px rgba(0, 0, 0, 0.6);
    position: relative;
    overflow: hidden;
}

/* --- Light shine effect --- */
.banner__center .line2::after {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.8) 50%,
            rgba(255, 255, 255, 0) 100%);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        left: -75%;
    }

    100% {
        left: 125%;
    }
}

/* --- Images --- */
img.logo {
    height: 80px;
    width: auto;
}

img.flag {
    height: 100px;
    width: auto;
    animation: wave 1.5s infinite ease-in-out alternate;
    transform-origin: left;
}

@keyframes wave {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(2deg);
    }
}

/* ===== Thanh đăng nhập ===== */
.dangnhap-bar {
    width: 100%;
    background: #0101DF;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 28px;
    padding: 0 10px;
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    overflow: hidden;
}

.scroll-left {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.scroll-text {
    display: inline-block;
    position: relative;
    animation: scrollText 15s linear infinite;
}

@keyframes scrollText {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* --- Buttons --- */
.dangnhap-right {
    display: flex;
    gap: 6px;
}

.dangnhap-right a {
    height: 20px;
    line-height: 20px;
    padding: 0 8px;
    text-decoration: none;
    border-radius: 3px;
    font-weight: bold;
    font-size: 11px;
    display: inline-block;
    transition: opacity 0.3s;
}

.btn-logout {
    background: #BDBDBD;
    color: red;
}

.btn-changepw {
    background: red;
    color: #fff;
}

.dangnhap-right a:hover {
    opacity: 0.85;
}

/* ===== Menu giáo viên ===== */
#teacherMenu {
    width: 100%;
    background: #f0f0f0;
    padding: 10px 0;
}

.menu-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    padding: 0 10px;
}

.item {
    flex: 1 1 120px;
    display: flex;
}

.item a {
    flex: 1;
    padding: 8px 15px;
    text-align: center;
    text-decoration: none;
    color: #fff;
    background: #086A87;
    border-radius: 5px;
    transition: background 0.3s;
    font-size: 14px;
    white-space: nowrap;
}

.item a:hover {
    background: #0B0B61;
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
    .banner {
        flex-direction: column;
        height: auto;
        padding: 10px 0;
    }

    .banner__left,
    .banner__right {
        flex: 0 0 auto;
    }

    .banner__center .line1 {
        font-size: 20px;
    }

    .banner__center .line2 {
        font-size: 22px;
    }

    .menu-wrapper {
        flex-direction: column;
        align-items: stretch;
    }

    .item a {
        width: 100%;
    }
}

.dangnhap-left {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 40px;
    padding: 0 15px;
    background: linear-gradient(90deg, #004aad, #007bff);
    border-radius: 6px;
}

.dangnhap-left .btn-logout {
    display: inline-block;
    padding: 6px 16px;
    background-color: #ffffff;
    color: #004aad;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.dangnhap-left .btn-logout:hover {
    background-color: #004aad;
    color: #ffffff;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
    transform: translateY(-1px);
}

/* ===== 3 cột sau menu ===== */
.three-columns {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 15px;
    box-sizing: border-box;
    gap: 10px;
}

.col {
    background: #f9f9f9;
    border: 1px solid #ccc;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
    min-height: 200px;
    /* bạn có thể chỉnh độ cao tùy nội dung */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Tỉ lệ cột */
.col1 {
    flex: 0 0 30%;
}

.col2 {
    flex: 0 0 40%;
}

.col3 {
    flex: 0 0 30%;
}

/* Responsive cho điện thoại */
@media (max-width: 768px) {
    .three-columns {
        flex-direction: column;
    }

    .col1,
    .col2,
    .col3 {
        flex: 1 1 100%;
    }
}

/* ===== Tin tức PDF ===== */
.col-title {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #2c3e50;
    text-align: left;
}

.news-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.news-list li {
    margin: 6px 0;
    font-size: 0.95rem;
}

.news-list a {
    text-decoration: none;
    color: #0056b3;
}

.news-list a:hover {
    text-decoration: underline;
    color: #003f7f;
}

.news-list .date {
    font-size: 0.85rem;
    color: #777;
}

/* ===== Cột 2: Nội dung chính (thông báo có thanh cuộn) ===== */
.col2 .thongbao-list {
    max-height: 320px;
    /* Giới hạn chiều cao hiển thị */
    overflow-y: auto;
    /* Cho phép cuộn dọc khi vượt quá */
    padding-right: 6px;
    /* tránh che chữ khi có thanh cuộn */
    display: flex;
    flex-direction: column;
    gap: 10px;
    scrollbar-width: thin;
    scrollbar-color: #ccc #f9f9f9;
}

.thongbao-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
}

/* Tuỳ chỉnh thanh cuộn (Chrome/Edge) */
.col2 .thongbao-list::-webkit-scrollbar {
    width: 6px;
}

.col2 .thongbao-list::-webkit-scrollbar-thumb {
    background-color: #bbb;
    border-radius: 3px;
}

.col2 .thongbao-list::-webkit-scrollbar-thumb:hover {
    background-color: #888;
}

/* Mỗi thông báo */
.thongbao-item {
    background: #f8faff;
    border-left: 4px solid #007bff;
    padding: 10px 12px;
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.thongbao-date {
    font-size: 0.85rem;
    color: blue;
    margin-bottom: 4px;
}

.thongbao-content {
    font-size: 0.95rem;
    color: #222;
    line-height: 1.5;
    white-space: pre-wrap;
}

.thongbao-title {
    color: blue;
    font-weight: bold;
}






