:root{
  --pale-yellow:#fff9e6;
  --accent:#d9c37a;
  --text:#222;
  --muted:#555;
  --max-width:1100px;
}

*{box-sizing:border-box;margin:0;padding:0;}
body{
  font-family:"Noto Sans Thai","Helvetica",Arial,sans-serif;
  color:var(--text);
  background:var(--pale-yellow);
  line-height:1.6;
}

.wrap{
  max-width:var(--max-width);
  margin:24px auto;
  background:rgba(255,255,255,0.6);
  border-radius:12px;
  overflow:hidden;
  box-shadow:0 6px 18px rgba(0,0,0,0.08);
}

/* Header & Nav */
header{
  display:flex;
  flex-direction:column;
  padding:18px 24px;
  background:linear-gradient(180deg,var(--pale-yellow),#fff);
  border-bottom:1px solid rgba(0,0,0,0.04);
}

.top-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.site-title{font-weight:700;font-size:26px;cursor:pointer;color:var(--text);}

nav{
  display:flex;
  justify-content:flex-end;
  gap:15px;
}

nav a{
  text-decoration:none;
  color:var(--text);
  font-weight:600;
  padding:6px 12px;
  border-radius:6px;
}

nav a:hover{background:rgba(217,195,122,0.3);}

/* Hamburger มือถือ */
.hamburger{
  display:none;
  flex-direction:column;
  justify-content:space-between;
  width:28px;
  height:20px;
  cursor:pointer;
}

.hamburger span{
  display:block;
  height:3px;
  background:#222;
  border-radius:2px;
}

/* Mobile Menu Overlay */
.mobile-menu{
  display:none;
  position:fixed;
  top:0; left:0;
  width:100%; height:100%;
  background: rgba(255,255,255,0.95);
  z-index:999;
  flex-direction:column;
  align-items:center;
  justify-content:center;
}

.mobile-menu a{
  color:var(--text);
  text-decoration:none;
  font-size:1.5rem;
  margin:15px 0;
}

.mobile-menu.active{display:flex;}

/* Banner */
.banner img{width:100%;height:auto;object-fit:cover;}

/* Section */
section{padding:30px;}

h2{
  text-align:center;
  color:#004aad;
  background:#cfe2ff;
  padding:10px;
  border-radius:8px;
  margin-bottom:20px;
}

/* รูปที่มาของชื่อวัด */
.image-top{
  text-align:center;
  margin-top:15px;
}
.image-top img{
  width:60%;
  max-width:500px;
  border-radius:10px;
  display:block;
  margin:0 auto 15px;
}
.image-top p{
  font-size:16px;
  color:var(--muted);
  text-align:center;
  max-width:800px;
  margin:0 auto;
}

/* ตำนานวัด */
.three-cols{
  display:flex;
  justify-content:space-between;
  gap:20px;
  flex-wrap:wrap;
  margin-top:20px;
}
.three-cols .col{
  flex:1;
  min-width:250px;
  background:rgba(255,255,255,0.7);
  padding:15px;
  border-radius:10px;
  box-shadow:0 2px 6px rgba(0,0,0,0.05);
}
.three-cols h3{
  color:#004aad;
  margin-top:0;
}

/* เจ้าอาวาส */
.two-cols{
  display:flex;
  justify-content:space-between;
  gap:20px;
  flex-wrap:wrap;
}
.image-left{
  display:flex;
  align-items:center;
  flex:1;
  min-width:280px;
  gap:15px;
  background:rgba(255,255,255,0.7);
  padding:10px;
  border-radius:10px;
  box-shadow:0 2px 6px rgba(0,0,0,0.05);
}
.image-left img{
  width:120px;
  height:120px;
  object-fit:cover;
  border-radius:8px;
}
.image-left .text p{
  margin:0;
  color:var(--muted);
  line-height:1.6;
}

/* วัตถุมงคล */
.amulets{
  display:flex;
  flex-direction:column;
  gap:15px;
}
.amulet-item{
  display:flex;
  align-items:flex-start;
  gap:15px;
  background:rgba(255,255,255,0.7);
  padding:15px;
  border-radius:10px;
  box-shadow:0 2px 6px rgba(0,0,0,0.05);
}
.amulet-item img{
  width:180px;
  height:180px;
  object-fit:cover;
  border-radius:10px;
}
.amulet-item .text p{
  margin:0;
  color:var(--muted);
  line-height:1.6;
}

/* Footer */
footer{
  background:#fff;
  border-top:1px solid rgba(0,0,0,0.04);
  padding:12px 24px;
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  color:var(--muted);
  font-size:14px;
  line-height:1.2;
}

/* =========================
   Responsive
========================= */
@media(max-width:900px){
  .image-top img{width:80%;}
  .three-cols{flex-direction:column;}
  .image-left{flex-direction:column;align-items:flex-start;}
  .amulet-item{flex-direction:column;align-items:center;text-align:center;}
}

@media(max-width:768px){
  .hamburger{display:flex;}    /* แสดง hamburger มือถือ */
  nav{display:none;}            /* ซ่อน nav ปกติ */
}
