@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@700&display=swap');

/* --- 1. QUYỂN LƯU BÚT (HERO SLIDER) --- */
.hero-swiper {
    width: 100%;
    max-width: 800px;
    height: 500px;
    margin: 40px auto;
    perspective: 1200px; /* Tạo độ sâu 3D cho hiệu ứng lật */
    position: relative;
}

/* Tạo gáy lò xo (Binding) ở lề trái */
.hero-swiper::before {
    content: "";
    position: absolute;
    left: 15px;
    top: 20px;
    bottom: 20px;
    width: 25px;
    background-image: radial-gradient(circle, #444 20%, transparent 30%);
    background-size: 25px 35px;
    z-index: 50; 
    opacity: 0.6;
}

.hero-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fdfdfd;
    border-radius: 5px 15px 15px 5px;
    border: 1px solid #ddd;
    box-shadow: 10px 10px 25px rgba(0,0,0,0.3);
    overflow: hidden;
    background-image: linear-gradient(to right, 
        rgba(0,0,0,0.15) 0%, 
        rgba(0,0,0,0.05) 3%, 
        rgba(255,255,255,0) 8%);
}

.hero-swiper .swiper-slide img {
    width: 90%;
    height: 90%;
    margin-left: 8%; 
    object-fit: cover;
    border-radius: 4px;
    filter: sepia(5%) contrast(95%);
}

/* --- 2. THÀNH VIÊN (MEMBER CAROUSEL) --- */
.member-swiper { padding: 40px 0 60px !important; }

.profile-card { 
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.profile-card:hover { 
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

/* FIX: Tránh hình bị zoom mất đầu */
.profile-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top; /* Luôn ưu tiên hiển thị từ đỉnh đầu xuống */
}

/* --- 3. BẢNG ĐEN CUỘN (GUESTBOOK) --- */
.blackboard-container {
    background-color: #2b2b2b;
    background-image: 
        radial-gradient(circle at 50% 50%, rgba(255,255,255,0.05) 0%, transparent 80%),
        url('https://www.transparenttextures.com/patterns/chalkboard.png');
    padding: 60px 40px;
    position: relative;
    border: 18px solid #5d4037; /* Khung gỗ */
    border-bottom-width: 28px;
    border-radius: 4px;
    box-shadow: inset 0 0 100px rgba(0,0,0,0.8), 0 20px 40px rgba(0,0,0,0.4);

    /* Tính năng cuộn: Giới hạn chiều cao và tự hiện thanh cuộn */
    max-height: 800px; 
    overflow-y: auto;
    scroll-behavior: smooth;
}

/* Tùy chỉnh thanh cuộn cho bảng đen (Scrollbar) */
.blackboard-container::-webkit-scrollbar {
    width: 8px;
}
.blackboard-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}
.blackboard-container::-webkit-scrollbar-thumb {
    background: #5d4037; /* Màu gỗ */
    border-radius: 10px;
    border: 2px solid #2b2b2b;
}

/* Khay để phấn bên dưới bảng */
.blackboard-container::after {
    content: "";
    position: absolute;
    bottom: -28px; left: -18px; right: -18px;
    height: 12px;
    background: #3e2723;
    border-bottom: 4px solid #2d1e16;
    border-radius: 0 0 4px 4px;
}

/* --- 4. GIẤY GHI CHÚ (STICKY NOTES) --- */
.sticky-note {
    background: #fff59d;
    padding: 25px;
    min-height: 180px;
    box-shadow: 3px 3px 10px rgba(0,0,0,0.5);
    font-family: 'Courier New', Courier, monospace;
    position: relative;
    transition: 0.3s;
}

.sticky-note::before {
    content: ""; position: absolute; top: 8px; left: 50%;
    width: 16px; height: 16px; background: #d32f2f;
    border-radius: 50%; transform: translateX(-50%);
    box-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.sticky-note:nth-child(even) { transform: rotate(1.5deg); background: #cfd8dc; }
.sticky-note:nth-child(3n) { transform: rotate(-1.5deg); background: #f8bbd0; }
.sticky-note:hover { transform: scale(1.05) rotate(0deg); z-index: 10; }

.section-title { font-family: 'Dancing Script', cursive; }

/* --- 5. TÙY CHỈNH MODAL --- */
#welcome-modal {
    transition: opacity 0.8s ease;
}