@charset "utf-8";

* { font-family: 'Bai Jamjuree', sans-serif; }

/* Banner */
.header-parallax {
    height: 40vh;
    background-size: cover; background-position: center; background-attachment: fixed;
    display: flex; justify-content: center; align-items: center; text-align: center;
    position: relative; margin-bottom: 40px;
}
.header-parallax::before {
    content: ''; position: absolute; top:0; left:0; width:100%; height:100%;
    background: rgba(0,0,0,0.6);
}
.header-con { 
    position: relative; z-index: 1; color: #fff; padding: 30px 50px;
    background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 215, 0, 0.5); border-radius: 10px; 
}
.header-con h1 { font-size: 2rem; font-weight: 700; margin-bottom: 10px; color: #FFD700; }
.header-con p { font-size: 1.1rem; color: #ddd; margin: 0; }

/* Card Section */
.oit-section { margin-bottom: 40px; }
.oit-card {
    background: #fff; border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden; border: 1px solid rgba(0,0,0,0.05);
}
.card-header-badge {
    background: linear-gradient(135deg, #5A0000, #3a0000);
    padding: 15px 30px; border-bottom: 4px solid #FFD700;
}
.card-header-badge h3 { margin: 0; color: #fff; font-size: 1.4rem; font-weight: 700; }
.card-header-badge i { margin-right: 10px; color: #FFD700; }
.card-body-content { padding: 40px; }

/* Icons & Buttons */
.icon-big { font-size: 3rem; color: #5A0000; margin-bottom: 10px; opacity: 0.8; }

.btn-group-vertical { display: flex; flex-direction: column; gap: 10px; }
.btn-dl {
    display: flex; align-items: center; justify-content: center;
    padding: 12px 20px; border-radius: 8px; text-decoration: none;
    font-size: 1rem; font-weight: 600; transition: all 0.2s;
}
.btn-dl i { margin-right: 10px; font-size: 1.2rem; }

.pdf { background: #ffebee; color: #c62828; border: 1px solid #ffcdd2; }
.pdf:hover { background: #c62828; color: #fff; transform: translateY(-2px); }

/* Images */
.responsive-img { width: 100%; height: auto; border-radius: 10px; }
.shadow-img { box-shadow: 0 5px 20px rgba(0,0,0,0.15); border: 1px solid #eee; }

/* --- Slider Animation (Marquee) --- */
.slider-container {
    width: 100%;
    overflow: hidden; /* ซ่อนส่วนที่ล้น */
    position: relative;
    padding: 20px 0;
    background: #f9f9f9;
    border-radius: 10px;
}

.slider-track {
    display: flex;
    width: calc(300px * 20); /* คำนวณความกว้างตามจำนวนรูป x 2 (10รูป x 2ชุด) */
    animation: scroll 40s linear infinite; /* ความเร็วในการเลื่อน */
}

.slide {
    width: 300px; /* ความกว้างต่อรูป */
    padding: 0 15px;
    display: flex; align-items: center; justify-content: center;
}

.slide img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.slide img:hover { transform: scale(1.05); }

/* Keyframes for Scrolling */
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-300px * 10)); } /* เลื่อนไปทางซ้ายเท่ากับความกว้างของรูปชุดแรก */
}

/* Responsive */
@media (max-width: 768px) {
    .header-con h1 { font-size: 1.5rem; }
    .card-body-content { padding: 20px; }
    
    /* ปรับ slider บนมือถือ */
    .slide { width: 250px; }
    .slider-track { width: calc(250px * 20); }
    @keyframes scroll {
        100% { transform: translateX(calc(-250px * 10)); }
    }
}