@charset "utf-8";

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

/* Banner */
.header-parallax {
    height: 45vh;
    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: 40px;
    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; letter-spacing: 1px; }

/* Section & Card */
.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; }

/* Text Content */
.text-red { color: #8B0000; font-weight: bold; border-left: 5px solid #FFD700; padding-left: 10px; }
.indent-text { text-indent: 2em; text-align: justify; line-height: 1.8; color: #444; }

/* Highlight Box (กรอบสรุปหน้าที่) */
.highlight-box {
    background: #fffbf0; border: 1px dashed #FFD700;
    padding: 20px; border-radius: 10px;
}
.highlight-box h6 { color: #5A0000; font-weight: bold; font-size: 1.1rem; margin-bottom: 15px; }
.highlight-box ul { padding-left: 20px; margin: 0; }
.highlight-box li { margin-bottom: 8px; color: #555; }

/* Gallery Grid (รูปภาพกิจกรรม) */
.gallery-grid {
    display: flex;             /* เปลี่ยนจาก Grid เป็น Flex เพื่อเรียงลงมาง่ายๆ */
    flex-direction: column;    /* บังคับให้เรียงแนวตั้ง (บนลงล่าง) */
    gap: 30px;                 /* ระยะห่างระหว่างรูป */
    align-items: center;       /* จัดรูปให้อยู่ตรงกลาง */
}

.gallery-item {
    width: 100%;               /* ให้กล่องกว้างเต็มพื้นที่ */
    text-align: center;        /* จัดกึ่งกลาง */
}

.gallery-item img {
    width: 100%;               /* ให้รูปขยายเต็มความกว้าง */
    max-width: 1000px;         /* (เผื่อไว้) ถ้ารูปใหญ่มาก ให้กว้างสุดแค่นี้พอ */
    height: auto; 
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.gallery-item img:hover { 
    transform: scale(1.01);    /* ขยายเล็กน้อยเมื่อเอาเมาส์ชี้ */
}

/* ลบคลาส .full-width ของเดิมออก หรือเขียนทับไปเลยก็ได้ครับ */
.full-width { 
    grid-column: auto; 
}

/* Download Buttons Grid */
.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}
.dl-btn {
    display: flex; align-items: center; justify-content: center;
    padding: 15px; background: #fff; border: 1px solid #ddd;
    border-radius: 8px; color: #333; text-decoration: none;
    font-weight: 600; transition: all 0.2s;
}
.dl-btn:hover {
    background: #5A0000; color: #fff; border-color: #5A0000;
    transform: translateY(-3px); box-shadow: 0 5px 10px rgba(90, 0, 0, 0.2);
}
.dl-btn i { margin-right: 10px; font-size: 1.2rem; }

.dl-btn.disabled {
    background: #f8f9fa; color: #999; border-color: #eee;
    pointer-events: none; /* ห้ามกด */
}

/* Responsive */
@media (max-width: 768px) {
    .header-con h1 { font-size: 1.5rem; }
    .gallery-grid { grid-template-columns: 1fr; } /* มือถือเรียงรูปยาวลงมา */
    .full-width { grid-column: span 1; }
    .card-body-content { padding: 20px; }
}