/* =======================
   GLOBAL STYLE
======================= */

body {
    scroll-behavior: smooth;
}

/* News card */
.news-card {
    transition: 0.3s ease;
    border-radius: 10px;
    background: #fff;
}
.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}
.news-img {
    height: 200px;
    object-fit: cover;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

/* Statistics Box */
.stat-box {
    transition: 0.3s ease;
    background: #fff;
    border-radius: 12px;
}
.stat-box:hover {
    transform: translateY(-5px);
}
.stat-icon {
    font-size: 40px;
    margin-bottom: 10px;
}
.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: #0d6efd;
}

/* Gallery Multi Slider */
.carousel-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
}
.carousel-track {
    display: flex;
    gap: 15px;
    animation: scroll 35s linear infinite;
}
.carousel-item-custom {
    flex: 0 0 calc(20% - 15px); /* 5 items per row */
    height: 180px;
}
.carousel-item-custom img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

@media (max-width: 767px) {
    .carousel-item-custom {
        flex: 0 0 calc(50% - 10px); /* 2 items */
        height: 140px;
    }
}
@media (min-width: 768px) and (max-width: 1023px) {
    .carousel-item-custom {
        flex: 0 0 calc(33.33% - 10px); /* 3 items */
        height: 160px;
    }
}
/* infinite animation */
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Hero section optimization */
.hero-section {
    min-height: 350px;
    padding: 50px 0;
    display: flex;
    align-items: center;
    color: #fff;
    text-align: center;
}

/* Teacher cards */
.teacher-card img {
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
}

/* === FOOTER STYLE === */
.site-footer {
    background: #111;
}

.site-footer h5 {
    color: #fff;
    margin-bottom: 15px;
}

.footer-links a {
    color: #ddd;
    text-decoration: none;
    display: block;
    margin-bottom: 6px;
    transition: 0.2s;
}

.footer-links a:hover {
    color: #0d6efd;
    padding-left: 3px;
}

/* Social icons */
.social-icon {
    width: 38px;
    height: 38px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #222;
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    transition: 0.3s;
}

.social-icon:hover {
    background: #0d6efd;
    transform: scale(1.15);
}

/* Facilities Section */
.facility-card {
    border-radius: 10px;
    overflow: hidden;
    transition: 0.3s;
    background: #fff;
}

.facility-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.facility-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.facility-body {
    padding: 15px;
}

.facility-body h5 {
    font-weight: 600;
    margin-bottom: 5px;
}



.video-wrapper {
    max-width: 450px;  /* Tik video uchun ideal */
    max-height: 60vh;  /* Ekranning 60% dan oshmaydi */
    margin: 0 auto;
    overflow: hidden;
    border-radius: 12px;
}

.video-wrapper video {
    width: 100%;
    height: auto;
    max-height: 60vh;
    object-fit: contain;   /* Videoni qirqmaydi */
    background: black;     /* Tik videoda yonlarga qora fon */
}
