﻿/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */
/* CSS để tạo khung và màu nền xanh nhạt */
.container.custom-style {
    border: 1px solid #007bff; /* Viền màu xanh */
    background-color: #e9f7ff; /* Màu nền xanh nhạt */
    padding: 20px; /* Thêm padding để nội dung không bị dính vào viền */
    border-radius: 8px; /* Bo góc khung */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Đổ bóng nhẹ */
} 

.custom-margin-bottom {
    margin-bottom: 50px; /* Khoảng cách 50px */
}

a.navbar-brand {
  white-space: normal;
  text-align: center;
  word-break: break-all;
}

/* Provide sufficient contrast against white background */
a {
  color: #0366d6;
}

.btn-primary {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
  font-size: 14px;
}
@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.border-top {
  border-top: 1px solid #e5e5e5;
}
.border-bottom {
  border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
  box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
  font-size: 1rem;
  line-height: inherit;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
  position: relative;
  min-height: 100%;
}

body {
  /* Margin bottom by footer height */
  margin-bottom: 60px;
}
.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  white-space: nowrap;
  line-height: 60px; /* Vertically center the text there */
}
/* wwwroot/css/public-home.css */

/* --- Biến màu (Tùy chọn) --- */
:root {
    --school-primary: #004a99; /* Màu xanh đậm chủ đạo */
    --school-secondary: #f0ad4e; /* Màu vàng nhấn */
}

/* --- Tiêu đề chung --- */
.section-title {
    font-weight: 700;
    color: var(--school-primary);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #eee;
}

    .section-title::after {
        content: '';
        display: block;
        width: 70px;
        height: 4px;
        background-color: var(--school-secondary);
        position: absolute;
        bottom: -2px; /* Nằm trên border */
        left: 0;
    }

    .section-title.text-center::after {
        left: 50%;
        transform: translateX(-50%);
    }

/* --- 1. Hero Section --- */
.hero-section .carousel-item {
    height: 65vh; /* Chiều cao của slideshow */
    min-height: 450px;
    background-color: #333; /* Màu nền dự phòng */
}

    .hero-section .carousel-item img {
        height: 100%;
        object-fit: cover; /* Đảm bảo ảnh luôn vừa vặn */
        opacity: 0.8; /* Làm ảnh tối đi một chút để nổi bật text */
    }

.hero-section .carousel-caption {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    padding: 1.5rem;
    border-radius: 0.5rem;
    bottom: 10%;
}

/* --- 2. Thông báo --- */
.notification-date {
    width: 65px;
    height: 65px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    font-weight: bold;
}

    .notification-date .day {
        font-size: 1.75rem;
        line-height: 1.1;
    }

    .notification-date .month {
        font-size: 0.8rem;
        text-transform: uppercase;
    }

.notification-list .list-group-item {
    transition: background-color 0.2s ease-in-out;
}

    .notification-list .list-group-item:hover {
        background-color: #f8f9fa;
    }

/* --- 3. Liên kết nhanh --- */
.quick-links .list-group-item {
    font-size: 1.1rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out, color 0.2s ease-out;
}

    .quick-links .list-group-item:hover {
        transform: translateX(5px);
        box-shadow: 0 4px 10px rgba(0,0,0,0.05);
        color: var(--school-primary);
    }

/* --- 4. Tin tức & Sự kiện --- */
.news-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 0.5rem;
}

    .news-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }

    .news-card .card-img-top {
        height: 220px;
        object-fit: cover;
        border-radius: 0.5rem 0.5rem 0 0;
    }

    .news-card .card-title {
        color: var(--school-primary);
        font-weight: 600;
    }

/* --- 5. Thống kê --- */
.intro-stats {
    background-color: #f8f9fa; /* Màu nền nhẹ */
}

.stats-counter h3 {
    font-weight: 700;
    color: var(--school-primary);
}

.stats-counter i {
    color: var(--school-secondary);
    filter: brightness(1.1);
}

/* --- 6. Thư viện --- */
.media-gallery img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.media-gallery a {
    display: block;
    overflow: hidden;
    border-radius: 0.375rem; /* Bootstrap's rounded */
}

    .media-gallery a:hover img {
        transform: scale(1.1);
        opacity: 0.8;
    }

.media-video-thumb {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}
    /* Icon play video */
    .media-video-thumb .bi-play-circle-fill {
        position: absolute;
        font-size: 3rem;
        color: white;
        opacity: 0.8;
        transition: transform 0.3s ease;
    }

.media-gallery a:hover .bi-play-circle-fill {
    transform: scale(1.2);
    opacity: 1;
}
/* Bảo đảm footer KHÔNG đè nội dung */
.footer {
    position: relative;
    z-index: 0;
}

/* Bảo đảm các section nội dung nằm TRÊN footer */
.page-content,
.media-gallery-block,
.intro-stats,
section.my-4 {
    position: relative;
    z-index: 1;
}

/* Nếu có overlay/element position:absolute nào kéo trùm (ví dụ icon/video overlay) */
.media-video-thumb i {
    pointer-events: none;
}
