@import url('https://fonts.googleapis.com/css2?family=Sarabun:wght@300;400;600;700;800&display=swap');

  :root {
    --navy:    #0a1628;
    --blue:    #1a3a6e;
    --mid:     #2356a8;
    --sky:     #3b82d4;
    --accent:  #f5a623;
    --light:   #e8f0fb;
    --white:   #ffffff;
    --gray:    #6b7a90;
    --text:    #1c2a3d;
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }

  body {
    font-family: 'Sarabun', sans-serif;
    background: var(--white);
    color: var(--text);
    font-size: 17px;
    line-height: 1.7;
  }

  /* ===== NAV ===== */
  nav {
    background: var(--navy);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 16px rgba(0,0,0,.35);
  }
  .nav-inner {
    max-width: 1100px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: 64px;
  }
  .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    text-decoration: none;
  }
  .logo-icon {
    width: 40px; height: 40px;
    background: var(--accent);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
  }
  .logo-text { color: var(--white); font-weight: 800; font-size: 1.15rem; line-height: 1.2; }
  .logo-sub  { color: var(--sky);   font-size: .75rem; font-weight: 400; }

  .nav-links { display: flex; gap: 4px; }
  .nav-links a {
    color: #b0c4de;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: .95rem;
    transition: background .2s, color .2s;
  }
  .nav-links a:hover, .nav-links a.active {
    background: var(--mid);
    color: var(--white);
  }

  /* ===== PAGE SYSTEM ===== */
  .page { display: none; }
  .page.active { display: block; }

  /* ===== HERO ===== */
  .hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 55%, var(--mid) 100%);
    color: var(--white);
    padding: 80px 24px 70px;
    text-align: center;
    position: relative;
    overflow: hidden;
  }
  .hero::before {
    content: '';
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  }
  .hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.2;
    position: relative;
  }
  .hero h1 span { color: var(--accent); }
  .hero p {
    margin: 18px auto 0;
    max-width: 560px;
    font-size: 1.1rem;
    color: #c5d8f0;
    position: relative;
  }
  .hero-btns {
    margin-top: 32px;
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
  }
  .btn {
    display: inline-block;
    padding: 13px 28px;
    border-radius: 8px;
    font-family: 'Sarabun', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: transform .15s, box-shadow .15s;
    text-decoration: none;
  }
  .btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.25); }
  .btn-accent  { background: var(--accent); color: var(--navy); }
  .btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.5); }
  .btn-blue    { background: var(--mid); color: var(--white); }
  .btn-sm { padding: 9px 20px; font-size: .9rem; }

  /* ===== SECTION WRAPPER ===== */
  .section { padding: 64px 24px; }
  .section-alt { background: var(--light); }
  .container { max-width: 1100px; margin: auto; }

  .section-label {
    display: inline-block;
    background: var(--mid);
    color: var(--white);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 10px;
  }
  h2.section-title {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 12px;
  }
  .section-desc { color: var(--gray); max-width: 560px; margin-bottom: 40px; }

  /* ===== CATEGORY CARDS (home) ===== */
  .cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 18px;
  }
  .cat-card {
    background: var(--white);
    border: 2px solid var(--light);
    border-radius: 14px;
    padding: 28px 16px 22px;
    text-align: center;
    cursor: pointer;
    transition: border-color .2s, transform .2s, box-shadow .2s;
    text-decoration: none;
    color: inherit;
  }
  .cat-card:hover {
    border-color: var(--sky);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(35,86,168,.12);
  }
  .cat-icon {
    font-size: 2.4rem;
    margin-bottom: 12px;
    display: block;
  }
  .cat-card h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
  .cat-card p  { font-size: .85rem; color: var(--gray); line-height: 1.5; }

  /* ===== STEPS ===== */
  .steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
  .step {
    display: flex;
    gap: 16px;
    align-items: flex-start;
  }
  .step-num {
    flex-shrink: 0;
    width: 44px; height: 44px;
    background: var(--mid);
    color: var(--white);
    font-weight: 800;
    font-size: 1.1rem;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
  }
  .step h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
  .step p  { font-size: .9rem; color: var(--gray); }

  /* ===== GALLERY ===== */
  .gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
  }
  .gallery-item {
    border-radius: 12px;
    overflow: hidden;
    background: var(--light);
    aspect-ratio: 4/3;
    display: flex; align-items: center; justify-content: center;
    flex-direction: column;
    gap: 10px;
    font-size: 2.5rem;
    color: var(--sky);
    border: 2px solid #d0dff5;
    position: relative;
  }
  .gallery-label {
    font-size: .85rem;
    color: var(--blue);
    font-weight: 600;
  }

  /* ===== ABOUT ===== */
  .about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
  @media (max-width: 700px) { .about-grid { grid-template-columns: 1fr; } }
  .about-visual {
    background: linear-gradient(135deg, var(--blue), var(--mid));
    border-radius: 18px;
    padding: 48px 32px;
    text-align: center;
    color: var(--white);
  }
  .about-visual .big-icon { font-size: 5rem; display: block; margin-bottom: 18px; }
  .about-visual h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: 8px; }
  .about-visual p  { font-size: .95rem; color: #c5d8f0; }
  .stat-row { display: flex; gap: 24px; margin-top: 28px; justify-content: center; flex-wrap: wrap; }
  .stat { text-align: center; }
  .stat .num { font-size: 2rem; font-weight: 800; color: var(--accent); }
  .stat .lbl { font-size: .8rem; color: #b0c4de; }

  .value-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
  .value-list li {
    display: flex; align-items: flex-start; gap: 12px;
    background: var(--light);
    padding: 14px 18px;
    border-radius: 10px;
    border-left: 4px solid var(--mid);
  }
  .value-list li .icon { font-size: 1.3rem; flex-shrink: 0; }
  .value-list li strong { display: block; color: var(--navy); margin-bottom: 2px; }
  .value-list li span { font-size: .9rem; color: var(--gray); }

  /* ===== TYPES PAGE ===== */
  .type-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
  .type-card {
    background: var(--white);
    border: 2px solid var(--light);
    border-radius: 16px;
    overflow: hidden;
    transition: box-shadow .2s, transform .2s;
  }
  .type-card:hover {
    box-shadow: 0 10px 30px rgba(35,86,168,.15);
    transform: translateY(-4px);
  }
  .type-thumb {
    background: linear-gradient(135deg, var(--blue), var(--mid));
    height: 160px;
    display: flex; align-items: center; justify-content: center;
    font-size: 4rem;
    position: relative;
  }
  .type-thumb-alt { background: linear-gradient(135deg, #1a4a6e, #2356a8); }
  .type-thumb-alt2 { background: linear-gradient(135deg, #0a2a50, #1a3a6e); }
  .type-body { padding: 22px; }
  .type-body h3 { font-size: 1.2rem; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
  .type-body p  { font-size: .9rem; color: var(--gray); margin-bottom: 14px; }
  .tag { display: inline-block; background: var(--light); color: var(--mid); font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; margin: 3px 3px 0 0; }

  /* ===== CONTACT ===== */
  .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
  @media (max-width: 700px) { .contact-grid { grid-template-columns: 1fr; } }
  .contact-box {
    background: var(--light);
    border-radius: 16px;
    padding: 32px;
  }
  .contact-box h3 { font-size: 1.2rem; font-weight: 800; color: var(--navy); margin-bottom: 20px; }
  .contact-item {
    display: flex; align-items: center; gap: 16px;
    background: var(--white);
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 14px;
    text-decoration: none;
    color: var(--text);
    transition: box-shadow .2s, transform .2s;
    border: 2px solid transparent;
  }
  .contact-item:hover {
    box-shadow: 0 4px 16px rgba(35,86,168,.15);
    border-color: var(--sky);
    transform: translateX(4px);
  }
  .ci-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
  }
  .ci-phone { background: #dbeafe; }
  .ci-line  { background: #dcfce7; }
  .ci-label { font-size: .78rem; color: var(--gray); }
  .ci-value { font-weight: 700; color: var(--navy); font-size: 1.05rem; }
  .hours-box {
    background: linear-gradient(135deg, var(--navy), var(--blue));
    border-radius: 16px;
    padding: 32px;
    color: var(--white);
  }
  .hours-box h3 { font-weight: 800; font-size: 1.2rem; margin-bottom: 20px; color: var(--white); }
  .hour-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.1); font-size: .95rem; }
  .hour-row:last-of-type { border-bottom: none; }
  .hour-row span:first-child { color: #b0c4de; }
  .hour-row span:last-child  { font-weight: 700; color: var(--accent); }
  .map-placeholder {
    margin-top: 20px;
    background: rgba(255,255,255,.08);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
  }
  .map-placeholder .map-icon { font-size: 2.5rem; margin-bottom: 8px; }
  .map-placeholder p { font-size: .9rem; color: #b0c4de; }

  /* ===== FOOTER ===== */
  footer {
    background: var(--navy);
    color: #8a9bb5;
    text-align: center;
    padding: 28px 24px;
    font-size: .88rem;
  }
  footer strong { color: var(--white); }

  /* ===== MOBILE NAV ===== */
  .hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
  .hamburger span { display: block; width: 24px; height: 2px; background: var(--white); margin: 5px 0; border-radius: 2px; transition: .3s; }
  @media (max-width: 680px) {
    .hamburger { display: flex; flex-direction: column; }
    .nav-links {
      display: none;
      position: absolute;
      top: 64px; left: 0; right: 0;
      background: var(--navy);
      flex-direction: column;
      padding: 12px 16px 20px;
      border-top: 1px solid rgba(255,255,255,.1);
    }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 11px 16px; border-radius: 8px; }
  }