.school-menu {
    display:flex;
    gap:15px;
    list-style:none;
}

.image-card {
    position:relative;
    cursor:pointer;
}

.image-card img {
    width:100%;
    border-radius:10px;
}

.overlay {
    position:absolute;
    bottom:0;
    background:rgba(0,0,0,0.6);
    color:#fff;
    width:100%;
    padding:15px;
    border-radius:0 0 10px 10px;
}

/* ===== No Data Card Site/index===== */
.no-data-card {
    grid-column: 1 / -1;   /* กินเต็มทุกคอลัมน์ */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    text-align: center;
    background: #f8f9fa;
    border: 1px dashed #ddd;
	border-radius: 20px;
}

.no-data-content h5 {
    margin-top: 10px;
    font-weight: 600;
    color: #555;
}

.no-data-content p {
    color: #888;
    font-size: 14px;
}

.no-data-icon {
    font-size: 40px;
    opacity: 0.6;
}

/* ===== School Count Badge ===== */
.school-badge {
    display: inline-block;
    background: #eef2ff;
    color: #4e73df;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: 6px;
    font-weight: 600;
}

/* ===== FIX LOGO + BADGE INLINE ===== */

.school-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.school-logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 38px;
    width: auto;
}

.logo-text {
    font-size: 18px;
    font-weight: 600;
    color: #222;
}

/* badge ไม่ให้ตกบรรทัด */
.nav-stats {
    display: flex;
    align-items: center;
}

.badge-online {
    background: #5e9cd6;
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}


/* === YouTube-style Textarea schinfo iframe === */
.yt-textarea {
    width: 100%;
    background: #ffffff;
    border: 1px solid #d3d3d3;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 13px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    color: #0f0f0f;
    resize: vertical;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

/* hover */
.yt-textarea:hover {
    border-color: #bdbdbd;
}

/* focus */
.yt-textarea:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 1px #1a73e8;
}

/* scrollbar (Chrome) */
.yt-textarea::-webkit-scrollbar {
    width: 8px;
}
.yt-textarea::-webkit-scrollbar-thumb {
    background: #d3d3d3;
    border-radius: 10px;
}

/* === YouTube Button Group === */
.yt-btn-group {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

/* ปุ่มพื้นฐาน */
.yt-btn {
    border-radius: 999px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

/* ปุ่มหลัก (YouTube-style Primary) */
.yt-btn-primary {
    background: #065fd4; /* YouTube Blue */
    color: #fff;
}

.yt-btn-primary:hover {
    background: #0b5bd3;
    color: #fff;
}

.yt-btn-primary:active {
    transform: scale(0.97);
}

/* ปุ่มรอง */
.yt-btn-secondary {
    background: #f2f2f2;
    color: #0f0f0f;
}

.yt-btn-secondary:hover {
    background: #e5e5e5;
    color: #000;
}

.yt-btn-secondary:active {
    transform: scale(0.97);
}

/* ================= YOUTUBE STYLE PAGINATION ================= */

.yt-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 40px 0;
    list-style: none;
    padding: 0;
}

.yt-pagination li {
    display: inline-block;
}

.yt-pagination li a,
.yt-pagination li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border-radius: 18px;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 500;
    color: #0f0f0f;
    background: #f2f2f2;
    transition: all 0.2s ease;
}

.yt-pagination li a:hover {
    background: #e5e5e5;
    transform: translateY(-2px);
}

/* ปุ่มหน้าปัจจุบัน */
.yt-pagination.pagination li.active span {
    background: #1976d2;
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(25,118,210,0.3);
}

.yt-pagination li.disabled span {
    background: #fafafa;
    color: #bdbdbd;
    cursor: not-allowed;
}

.yt-pagination li:first-child a,
.yt-pagination li:last-child a {
    font-weight: 600;
}


/*=== VEDIO CONTENT===*/
.video-lightbox{
    position:fixed;
    inset:0;
    z-index:9999;
    display:flex;
    align-items:center;
    justify-content:center;
    opacity:0;
    pointer-events:none;
    transition:all .4s ease;
}

.video-lightbox.show{
    opacity:1;
    pointer-events:auto;
}

/* background */

.video-overlay{
    position:absolute;
    inset:0;
    background:rgba(0,0,0,.8);
    backdrop-filter:blur(6px);
}

/* container */

.video-container{
    position:relative;
    width:80%;
    max-width:900px;
    margin:auto;
    margin-top:50px; /* ขยับลง */
    transform:scale(.9);
    transition:all .4s ease;
}

.video-lightbox.show .video-container{
    transform:scale(1);
}

/* video ratio */

.video-wrapper{
    position:relative;
    width:100%;
    padding-top:56.25%;
    border-radius:12px;
    overflow:hidden;
}

.video-wrapper iframe{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    border:0;
}

/* close button */

.video-close{
    position:absolute;
    top:-45px;
    right:0;
    width:40px;
    height:40px;
    border-radius:50%;
    background:#fff;
    border:none;
    font-size:24px;
    cursor:pointer;
}






