@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: 1.8rem; 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.3rem; font-weight: 700; }
.card-header-badge i { margin-right: 10px; color: #FFD700; }
.card-body-content { padding: 40px; }

/* Buttons */
.btn-dl {
    display: inline-block; padding: 12px 20px;
    border-radius: 8px; text-decoration: none; font-weight: 600;
    transition: all 0.2s;
}
.pdf { background: #ffebee; color: #c62828; border: 1px solid #ffcdd2; }
.pdf:hover { background: #c62828; color: #fff; transform: translateY(-2px); }

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}
.gallery-img {
    width: 100%; height: 150px; object-fit: cover;
    border-radius: 8px; border: 1px solid #eee;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}
.gallery-img:hover {
    transform: scale(1.05); box-shadow: 0 5px 15px rgba(0,0,0,0.2); z-index: 10;
}

.text-red { color: #8B0000; font-weight: bold; border-left: 4px solid #FFD700; padding-left: 10px; }

/* List Group (Report List) */
.list-group-item {
    border: none; border-bottom: 1px solid #f0f0f0;
    padding: 15px 20px; font-size: 1.05rem; color: #444;
    transition: background 0.2s;
}
.list-group-item:hover {
    background: #fffbf0; color: #5A0000; font-weight: 500;
}
.list-group-item:last-child { border-bottom: none; }
.list-group-item i { color: #5A0000; }

/* Responsive */
@media (max-width: 768px) {
    .header-con h1 { font-size: 1.5rem; }
    .card-body-content { padding: 20px; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Carousel Styling */
.carousel-inner {
    border-radius: 8px;
    background-color: #f0f0f0; /* สีพื้นหลังกันรูปลอย */
}

.carousel-item img {
    height: 400px; /* ความสูงคงที่ รูปจะได้ไม่กระโดด */
    object-fit: contain; /* โชว์รูปเต็มใบ ไม่โดนตัดขอบ */
    width: 100%;
    background-color: #fff;
}

/* ปรับแต่งปุ่มเลื่อนให้เห็นชัดขึ้น */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.5); /* พื้นหลังปุ่มสีดำโปร่งแสง */
    background-size: 50%, 50%;
}

@media (max-width: 768px) {
    .carousel-item img {
        height: 250px; /* ลดความสูงเมื่อดูในมือถือ */
    }
}