@charset "utf-8";

body {
    background-color: #f4f1ea;
    margin: 0; padding: 0;
}

.header-parallax {
    height: 60vh;
    min-height: 400px;
    background: linear-gradient(135deg, #961919 0%, #610505 50%, #2e0202 100%);
    display: flex; justify-content: center; align-items: center; text-align: center;
    position: relative;
    overflow: hidden;
}

.custom-shape-divider-bottom {
    position: absolute; bottom: 0; left: 0; width: 100%;
    overflow: hidden; line-height: 0; transform: rotate(180deg);
}
.custom-shape-divider-bottom svg {
    position: relative; display: block; width: calc(130% + 1.3px); height: 100px;
}
.custom-shape-divider-bottom .shape-fill { 
    fill: #f4f1ea; 
}

.header-parallax::before {
    content: ''; position: absolute; top:0; left:0; width:100%; height:100%;
    background: rgba(0,0,0,0.1); 
}
.header-con { 
    position: relative; z-index: 1; color: #fff; padding: 30px; 
}
.header-con h1 { 
    font-size: 3rem; font-weight: 700; margin-bottom: 5px; 
    color: #FFD700; text-shadow: 0 3px 10px rgba(0,0,0,0.8);
}
.header-con p { font-size: 1.2rem; font-family: 'Sarabun'; color: #ddd; margin: 0; letter-spacing: 1px; }

.section-padding { 
    padding: 40px 20px;
    margin: 30px auto;
    max-width: 1140px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.container { max-width: 1140px; margin: 0 auto; padding: 0 15px; }

.section-title {
    text-align: center; font-size: 1.6rem; font-weight: 700; color: #5A0000;
    margin-bottom: 25px; position: relative;
    text-shadow: 1px 1px 0px rgba(255,255,255,0.7);
}
.section-title::after {
    content: ''; display: block; width: 60px; height: 3px; 
    background: #FFD700; margin: 8px auto 0; border-radius: 2px;
}

.commander-grid { 
    display: flex; flex-direction: column; align-items: center; gap: 20px; 
}
.commander-grid img { 
    max-width: 650px; width: 100%;
    border-radius: 10px; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    border: 3px solid rgba(255,255,255,0.8);
    transition: transform 0.3s;
}
.commander-grid img:hover { transform: translateY(-5px); border-color: #FFD700; }

.lang-switch-container { display: flex; justify-content: center; gap: 10px; margin-bottom: 20px; }
.lang-btn {
    padding: 5px 20px; border: 1px solid #5A0000; background: rgba(255, 255, 255, 0.5);
    color: #5A0000; font-weight: 600; font-size: 0.9rem; border-radius: 50px; cursor: pointer; transition: 0.3s;
}
.lang-btn:hover { transform: translateY(-2px); box-shadow: 0 3px 10px rgba(90, 0, 0, 0.2); }
.lang-btn.active { background: #5A0000; color: #FFD700; border-color: #5A0000; }
.d-none { display: none !important; }

.announce-grid { display: flex; flex-direction: column; align-items: center; }
.announce-grid img { 
    width: 100%; max-width: 700px;
    border-radius: 10px; margin-bottom: 15px; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); 
}

.eservice-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 15px; 
    justify-items: center;
}
.icon-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); 
    gap: 15px; 
}

.icon-item {
    background: rgba(255, 255, 255, 0.6); 
    backdrop-filter: blur(5px);
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05); transition: 0.3s;
    border: 1px solid rgba(255,255,255,0.8); 
    height: 160px; width: 100%;
    display: flex; justify-content: center; align-items: center; padding: 15px;
    overflow: hidden;
}
.icon-item:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(184, 134, 11, 0.2); border-color: #FFD700; background: #fff; }

.icon-item img { 
    max-width: 100%; max-height: 100%; 
    object-fit: contain; 
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}
.icon-item a { display: flex; justify-content: center; align-items: center; width: 100%; height: 100%; }

.area-layout {
    display: flex; flex-direction: column; 
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1); overflow: hidden;
}
.area-info {
    width: 100%; padding: 30px;
    background: linear-gradient(135deg, #5A0000, #3a0000); color: #fff;
}
.area-info h5 { 
    font-size: 1.4rem; color: #FFD700; margin-bottom: 15px; border-bottom: 1px solid rgba(255,255,255,0.2); padding-bottom: 10px;
}
.area-info p { font-size: 0.95rem; line-height: 1.6; margin-bottom: 10px; color: #f0f0f0; }
.area-info i { color: #FFD700; margin-right: 8px; }
.area-map { width: 100%; height: 400px; min-height: 300px; }
.area-map iframe { width: 100%; height: 100%; border: 0; }

@media (max-width: 900px) {
    .eservice-grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
}