@charset "utf-8";

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

/* Banner Parallax */
.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: 2.2rem; font-weight: 700; margin-bottom: 10px; color: #FFD700; }
.header-con p { font-size: 1.1rem; color: #ddd; margin: 0; letter-spacing: 1px; }

/* --- Card Style --- */
.oit-section { margin-bottom: 30px; }
.oit-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    overflow: hidden;
    border: 1px solid #eaeaea;
    height: 100%; 
    display: flex;
    flex-direction: column;
}
.card-header-badge {
    background: linear-gradient(135deg, #4a0000 0%, #2a0000 100%);
    padding: 15px 25px;
    border-bottom: 4px solid #f4c430;
}
.card-header-badge h3 { 
    margin: 0; color: #fff; font-size: 1.25rem; font-weight: 600; 
    display: flex; align-items: center; gap: 10px;
}
.card-header-badge i { color: #f4c430; font-size: 1.4rem; }
.card-body-content { 
    padding: 25px; 
    flex-grow: 1; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
}

/* --- Premium Red Button Style --- */
.btn-action-red {
    background: linear-gradient(180deg, #d32f2f 0%, #b71c1c 100%);
    border: 1px solid #b71c1c;
    color: #ffffff;
    padding: 15px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center; 
    text-align: center;
    gap: 10px;
    width: 100%;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.2s ease-in-out;
    line-height: 1.3;
}
.btn-action-red i { font-size: 1.3rem; flex-shrink: 0; }
.btn-action-red:hover {
    background: linear-gradient(180deg, #b71c1c 0%, #9b0000 100%);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(211, 47, 47, 0.25);
}
.btn-action-blue {
    background: linear-gradient(180deg, #0d6efd 0%, #0a58ca 100%);
    border-color: #0a58ca;
}
.btn-action-blue:hover { 
    background: linear-gradient(180deg, #0a58ca 0%, #084298 100%);
    box-shadow: 0 8px 15px rgba(13, 110, 253, 0.25);
}

/* --- Showcase Image Frame (ดีไซน์กรอบรูปใหม่ให้ดูสมมาตร) --- */
.img-showcase-frame {
    background: #ffffff;
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #f0f0f0;
}
.img-showcase-frame img {
    max-width: 100%;
    border-radius: 6px;
    border: 1px solid #e9e9e9; /* เส้นขอบบางๆ ให้รูป */
}
.img-showcase-frame:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    border-color: #f4c430; /* โฮเวอร์แล้วขอบเป็นสีทอง */
}
/* --- เมาส์ชี้ที่รูปให้เป็นสัญลักษณ์แว่นขยาย --- */
.img-showcase-frame img {
    cursor: zoom-in;
}

/* --- Lightbox / Popup Image Modal --- */
.custom-lightbox {
    display: none;
    position: fixed;
    z-index: 99999; /* ให้อยู่บนสุดของหน้าเว็บ */
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.85); /* พื้นหลังดำโปร่งใส */
    backdrop-filter: blur(5px); /* เบลอพื้นหลัง */
}
.lightbox-img {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s ease; /* แอนิเมชันตอนเด้งขึ้นมา */
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 50px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}
.lightbox-close:hover,
.lightbox-close:focus {
    color: #f4c430; /* ชี้ที่กากบาทแล้วเป็นสีทอง */
    text-decoration: none;
    cursor: pointer;
}
@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}