:root{
  --navy:#0b1f3a;
  --navy-2:#102a4a;
  --white:#ffffff;
  --bg:#f6f8fc;
  --text:#0f172a;
  --muted:#475569;
  --line:#e6eaf2;
  --shadow: 0 10px 30px rgba(2, 8, 23, 0.12);
  --radius: 16px;
}

*{
  box-sizing: border-box;
}

html,body{
  margin: 0;
  padding: 0;
  font-family: 
    "Sukhumvit Set",
    "Prompt",
    "Sarabun",
    system-ui,
    -apple-system,
    "Segoe UI",
    Tahoma,
    sans-serif;
  color: var(--text);
  background: var(--bg);
}
a{ color:inherit; text-decoration:none; }
.container{ width:min(1100px, 92vw); margin:0 auto; }

.topbar{
  background:var(--navy);
  color:var(--white);
  border-bottom:1px solid rgba(255,255,255,0.12);
}
.topbar__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px 0;
}

.brand{ display:flex; align-items:center; gap:12px; }
.brand__logo{
  width:44px;
  height:44px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:12px;
  background:rgba(255,255,255,0.14); 
  overflow:hidden;
}
.brand__logo img{
  width:100%;
  height:100%;
  object-fit:contain; 
}
.brand__title{ font-weight:800; }
.brand__subtitle{ font-size:12px; opacity:0.85; }

.menu-btn{
  display:none;
  border:1px solid rgba(255,255,255,0.25);
  background:rgba(255,255,255,0.1);
  color:var(--white);
  padding:10px 12px;
  border-radius:12px;
  cursor:pointer;
}

.nav{
  background:var(--navy-2);
  color:var(--white);
  position:sticky;
  top:0;
  z-index:10;
}
.nav__inner{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  padding:10px 0;
}
.nav__link{
  padding:10px 12px;
  border-radius:12px;
  font-size:14px;
  opacity:0.95;
  transition:transform .15s ease, background .15s ease;
}
.nav__link:hover{
  background:rgba(255,255,255,0.14);
  transform:translateY(-1px);
}

.page-title{
  min-height: calc(20% - 20px); 
  display: flex;
  align-items: center;            
  justify-content: center;        
  text-align: center;
  padding: 24px 16px;
  background: #ffffff;
}

.page-title__inner{
  width: 100%;
}

.page-title__h1{
  width: 100%;
  margin: 0 0 32px;
  padding: 22px 32px;

  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: 0.5px;

  color: #ffffff;
  background: linear-gradient(90deg, #0b1b3a, #132f63); /* กรมไล่เฉด */
  
  text-align: center;

  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(11,27,58,0.35);
}
@media (max-width: 768px){
  .page-title__h1{
    padding: 18px 20px;
    border-radius: 14px;
  }
}

.page-title__h1{
  border-bottom: 4px solid rgba(255,255,255,0.25);
}

  .org-section {
    padding: 60px 0;
    background: #ffffff;
  }

  .org-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 48px;
    text-align: center;
  }

  .org-item img {
    width: 140px;
    height: auto;
    object-fit: contain;
    margin-bottom: 16px;
  }

  .org-item p {
    font-size: 16px;
    color: #0f3d3e; /* โทนกรม */
    line-height: 1.6;
    font-weight: 500;
  }
  @media (max-width: 1024px) {
    .org-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  @media (max-width: 480px) {
    .org-grid {
      grid-template-columns: 1fr;
    }

    .org-item img {
      width: 120px;
    }
  }

.section-box{
  background: #ffffff;
  border-radius: 20px;              /* มุมโค้งเหมือนการ์ด */
  padding: 40px 24px;
  margin: 40px auto;
  max-width: 1200px;

  /* เงาแบบสุภาพ เว็บมหาลัย */
  box-shadow: 
    0 8px 24px rgba(0,0,0,0.06),
    0 2px 6px rgba(0,0,0,0.04);
}

.section-title{
  margin: 0;
  text-align: center;
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -0.4px;
  color: #0b1f33;
}



.hero{
  height: 400px;                 /* index========================================== 1600x400 */
  background-image: url("header/HD.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.hero__content{
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;       /* โลโก้อยู่กลาง */
}

.hero-logo{
  width: 110px;                  /* ปรับได้ */
  height: 110px;
  object-fit: contain;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,.35));
}
.hero::before{
  content:"";
  position:absolute;
  bottom:0;
  left:0;
  width:100%;
  height:4px;
  background: linear-gradient(
    to right,
    #caa75b,
    #ffffff,
    #caa75b
  );
  opacity:.6;
}
/*กล่องข้อความ*/
.section--center{
  text-align:center;
  padding: 64px 16px;
}
.cta-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:20px;
  max-width:900px;
  margin:0 auto;
}
/* ปุ่ม */
.cta-btn{
  background:#0b2545;
  color:#fff;
  padding:18px 16px;
  text-align:center;
  border-radius:20px;
  font-weight:700;
  text-decoration:none;
  transition:all .2s ease;
}
.cta-btn:hover{
  transform:translateY(-3px);
  box-shadow:0 10px 20px rgba(0,0,0,.15);
}

/* ปุ่มแถวล่างให้อยู่ตรงกลาง */
.cta-btn--center{
  grid-column:3 / 3; 
}

.cta-btn:hover {
  background: #ffffff;
  color: #0b2a4a;
  border: 2px solid #0b2a4a;
  transform: translateY(-3px);
}
@media (max-width: 768px){
  .cta-grid{
    grid-template-columns: 1fr; /* 1 ปุ่มต่อแถว */
  }

  .cta-btn--center{
    grid-column: auto; /* ยกเลิกบังคับกลาง */
  }

  .cta-btn{
    font-size:16px;
    padding:16px;
  }
}

h3{
  text-align:center;
  font-size:22px;
  font-weight:700;
  color:#0b2545;
  margin:40px 0 24px;
  position:relative;
}

/* เส้นตกแต่งด้านล่าง */
h3::after{
  content:"";
  display:block;
  width:80px;
  height:4px;
  background:linear-gradient(90deg, #0b2545, #1e90ff);
  margin:12px auto 0;
  border-radius:2px;
}

.hero__content{ padding:28px 0; }
.pill{
  display:inline-block;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(255,255,255,0.16);
  border:1px solid rgba(255,255,255,0.18);
  font-size:12px;
  margin:0 0 10px 0;
}
.hero h1{
  margin:0;
  font-size:40px;
  letter-spacing:0.2px;
}
.hero__desc{
  margin:10px 0 18px 0;
  max-width:640px;
  opacity:0.92;
}

.hero__cta{ display:flex; gap:10px; flex-wrap:wrap; }
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 14px;
  border-radius:14px;
  font-weight:700;
  border:1px solid transparent;
  transition:transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover{ transform:translateY(-1px); box-shadow:var(--shadow); }
.btn--primary{
  background:var(--white);
  color:var(--navy);
}
.btn--ghost{
  background:rgba(255,255,255,0.12);
  border-color:rgba(255,255,255,0.25);
  color:var(--white);
}
/* Main */
.main{ padding:28px 0 36px; }

.cards{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:14px;
  margin-top:-44px; /* lift cards into hero */
}
.card{
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:16px;
  box-shadow:0 8px 20px rgba(2,8,23,0.08);
}
.card h2{ margin:0 0 6px 0; font-size:18px; }
.card p{ margin:0 0 10px 0; color:var(--muted); font-size:14px; line-height:1.5; }
.card__link{
  display:inline-block;
  font-weight:800;
  color:var(--navy);
}

.section{
  margin-top:18px;
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:18px;
}
.section__head h2{ margin:0; font-size:18px; }
.section__head p{ margin:6px 0 14px; color:var(--muted); font-size:14px; }

.quick{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:10px;
}
.quick__btn{
  padding:12px 12px;
  border-radius:14px;
  border:1px solid var(--line);
  background:#fbfcff;
  font-weight:800;
  color:var(--navy);
  transition:transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.quick__btn:hover{
  transform:translateY(-1px);
  box-shadow:0 10px 25px rgba(2,8,23,0.10);
  background:#ffffff;
}

/* Footer 
.footer{
  margin-top:20px;
  background:var(--navy);
  color:var(--white);
}
.footer__inner{
  padding:18px 0;
  display:flex;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
}
.footer__title{ font-weight:900; }
.footer__meta{ opacity:0.85; font-size:13px; }
*/

@media (max-width: 980px){
  .cards{ grid-template-columns:repeat(2, 1fr); margin-top:14px; }
  .quick{ grid-template-columns:repeat(2, 1fr); }
  .hero h1{ font-size:34px; }
}

@media (max-width: 620px){
  .menu-btn{ display:inline-flex; }
  .nav__inner{ display:none; }
  .nav.nav--open .nav__inner{ display:flex; }
  .cards{ grid-template-columns:1fr; }
  .quick{ grid-template-columns:1fr; }
  .hero{ height:400px; }
  .hero h1{ font-size:28px; }
}

.footer {
  background: #0b4f8a;
  color: #fff;
  padding-top: 40px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 2fr 2fr;
  gap: 32px;
  align-items: start;
}
/*โลโก้ su logo/LOGO-02.png รอปรับ 21/1 footer */
.footer__brand {
  margin-top: -55px;
  display: flex;
  align-items: center;
  justify-content: center;   /* จัดกึ่งกลางแนวนอน */
  gap: 14px;
}

.footer__logo {
  width: 330px;
  height: auto;
}

.footer__brand-title {
  font-size: 20px;
  font-weight: 700;
}

.footer__brand-sub {
  font-size: 12px;
  opacity: 0.9;
}


.footer__info h3 {
  margin-bottom: 10px;
  font-size: 18px;
}

.footer__info p {
  margin: 4px 0;
  font-size: 14px;
  line-height: 1.6;
}


.footer__map iframe {
  width: 100%;
  height: 180px;
  border: 0;
  border-radius: 8px;
}


.footer__bottom {
  margin-top: 32px;
  padding: 12px 0;
  text-align: center;
  font-size: 13px;
  background: #083b68;
}

@media (max-width: 900px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .footer__map iframe {
    height: 220px;
  }
}

/* Grid-9 for images เผื่อจะเปลี่ยน */

.grid-9 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}

/* ครอบรูปเป็นการ์ด */
.grid-9 a {
  display: block;
  overflow: hidden;
  border-radius: 16px;      /* ขอบมนเท่ากัน 4 มุม */
  pointer-events: none;     /* กดแล้วไม่ลิงก์ */
  cursor: default;
}

/* รูปภาพ */
.grid-9 img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  border-radius: 16px;      /* กันบางเบราว์เซอร์มุมไม่ตรง */
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}

/* เอฟเฟกต์ hover (ไม่ลิงก์) */
.grid-9 img:hover {
  transform: scale(1.05);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.18);
}


/* hover effect */
.grid-9 a:hover img {
  transform: scale(1.06);
}

@media (max-width: 900px) {
  .grid-9 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .grid-9 {
    grid-template-columns: 1fr;
  }
}

/* ===== Instagram Reels Section ===== */
#reels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

/* การ์ดแต่ละ Reel */
.reel-card {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.reel-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
}

/* ปรับ iframe / embed ให้เต็มการ์ด */
.reel-card blockquote.instagram-media {
  margin: 0 !important;
  min-width: 100% !important;
  width: 100% !important;
  background: #000;
}

/* ปุ่มเปิด Instagram */
.reel-link {
  display: block;
  text-align: center;
  padding: 14px;
  font-weight: 600;
  text-decoration: none;
  color: #1877f2;
  background: #f5f7fb;
  border-top: 1px solid #e6e9f0;
  transition: background 0.2s ease, color 0.2s ease;
}

.reel-link:hover {
  background: #1877f2;
  color: #ffffff;
}

/* ===== Section Wrapper (ถ้ามี) ===== */
section {
  padding: 40px 0;
}

/* ===== Mobile Fine-tune ===== */
@media (max-width: 480px) {
  #reels-grid {
    gap: 16px;
  }

  .reel-link {
    font-size: 14px;
    padding: 12px;
  }
}

/* ===== Contact Page ===== */
.contact-section {
  padding: 60px 0;
}

.contact-title {
  text-align: center;
  font-size: 36px;
  color: #0f3d3e;
  margin-bottom: 8px;
}

.contact-subtitle {
  text-align: center;
  color: #555;
  margin-bottom: 48px;
}

/* Grid */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

/* Info */
.contact-info {
  background: #ffffff;
  padding: 32px;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.12);
}

.contact-info h2 {
  margin-bottom: 20px;
}

.contact-info p {
  margin-bottom: 16px;
  line-height: 1.6;
}

.contact-social a {
  display: inline-block;
  margin-right: 12px;
  color: #1877f2;
  text-decoration: none;
  font-weight: 600;
}

/* Form */
.contact-form {
  background: #ffffff;
  padding: 32px;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.12);
}

.contact-form h2 {
  margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 14px;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-size: 15px;
}

.contact-form button {
  width: 100%;
  padding: 14px;
  background: #0f3d3e;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.contact-form button:hover {
  background: #145c5e;
}

/* Responsive */
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
