/* ================== Global Base ================== */

/* ฟอนต์ Noto Sans Thai */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@300;400;500;600;700&display=swap');

*,
*::before,
*::after{
  box-sizing: border-box;
}

html, body{
  margin: 0;
  padding: 0;
  font-family: "Noto Sans Thai", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(1200px 600px at 10% -20%, #fff7f0 10%, transparent 40%),
    linear-gradient(180deg, #ffe3d1, #ffd3c3);
  color: #111827;
}

/* ให้ bootstrap container กว้างสูงสุด ไม่ชิดซ้ายเกินไป */
.container{
  max-width: 1140px;
}

/* สีหลัก */
:root{
  --brand: #ff7a00;             /* สีส้มหลัก */
  --brand-soft: #ff9a57;
  --cta: #ff7a00;
  --ink: #111827;
  --muted: #6b7280;
  --card: #ffffff;
  --shadow-lg: 0 22px 60px rgba(15,23,42,.16);
  --shadow-md: 0 14px 36px rgba(15,23,42,.12);
  --radius-xl: 24px;
  --radius-lg: 18px;
}

/* ลิงก์เนื้อหา */
a{
  color: var(--cta);
  text-decoration: none;
}
a:hover{
  text-decoration: underline;
}

/* ================== Navbar แบบแคปซูลส้ม ================== */

.navbar{
  background:#ffffff !important;
  border-bottom:1px solid #e5e7eb;
  box-shadow:0 6px 22px rgba(15,23,42,.05);
}

.navbar .navbar-brand{
  font-weight:700;
  color:#111827 !important;
  letter-spacing:.1px;
}

.navbar .nav-link{
  position:relative;
  padding:.40rem 1.1rem;
  margin:0 .15rem;
  border-radius:999px;
  color:#4b5563 !important;
  font-weight:500;
  transition:all .18s ease-out;
}

.navbar .nav-link:hover:not(.active){
  color:#111827 !important;
  background:rgba(0,0,0,.02);
}

.navbar .nav-link.active,
.navbar .dropdown.show > .nav-link{
  color:#ffffff !important;
  background:linear-gradient(90deg,#ff9a57,#ff7a00);
  box-shadow:0 8px 20px rgba(255,122,0,.35);
}

/* dropdown ให้ขอบหวาน ๆ */
.dropdown-menu{
  border-radius:16px;
  border:1px solid #e5e7eb;
  box-shadow:0 18px 40px rgba(15,23,42,.16);
}

/* ================== Layout หลัก ================== */

/* แผ่นงานใหญ่ของแต่ละหน้า (เอาไปครอบใน index, benefits, contact, profile ฯลฯ) */
.sheet{
  width: min(1200px, 96%);
  margin: 32px auto;
  border-radius: var(--radius-xl);
  background: var(--card);
  box-shadow: var(--shadow-lg);
  padding: 8px 0 32px;
}

/* กล่องเนื้อหาย่อยที่อยากให้เด้ง ๆ */
.surface{
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 24px 24px;
  transition: transform .18s ease-out, box-shadow .18s ease-out;
}

.surface:hover{
  transform: translateY(-4px);
  box-shadow:0 20px 50px rgba(15,23,42,.18);
}

/* ช่องว่างแต่ละ section */
.section-pad{
  padding-top: 3rem;
  padding-bottom: 3rem;
}

/* ================== ปุ่มหลัก/รอง ================== */

.btn-brand,
.btn-peach{
  background: linear-gradient(90deg,#ff9a57,#ff7a00);
  border: none;
  color:#ffffff;
  font-weight:600;
  border-radius: 999px;
  padding:.65rem 1.6rem;
  box-shadow:0 12px 28px rgba(255,122,0,.32);
  transition:transform .15s ease-out, box-shadow .15s ease-out, filter .15s ease-out;
}

.btn-brand:hover,
.btn-peach:hover{
  color:#ffffff;
  filter:brightness(.96);
  transform: translateY(-1px);
  box-shadow:0 16px 38px rgba(255,122,0,.36);
}

.btn-outline-dark{
  border-radius:999px;
  padding:.6rem 1.4rem;
  border-color:#d1d5db;
  color:#111827;
  background:#ffffff;
}

.btn-outline-dark:hover{
  background:#111827;
  color:#ffffff;
}

/* ปุ่มเล็กใส ๆ บนการ์ด */
.btn-chip{
  border-radius:999px;
  padding:.25rem .9rem;
  font-size:.85rem;
}

/* ================== Hero / Index ================== */

.hero-shell{
  max-width: 1040px;
  margin: 0 auto 24px;
}

.hero-card{
  border-radius: 26px;
  padding: 48px 32px 40px;
  background: linear-gradient(135deg,#ffb26b,#ff7a00);
  color:#ffffff;
  box-shadow:0 24px 60px rgba(255,122,0,.4);
}

.hero-card h1{
  font-weight:800;
  letter-spacing:.3px;
  margin-bottom:.6rem;
}

.hero-card p{
  font-size:1rem;
  opacity:.94;
}

.hero-card .hero-cta{
  margin-top: 1.6rem;
}

/* รูป/สไลด์ใต้ hero */
.hero-media{
  max-width: 1040px;
  margin: 0 auto;
  border-radius: 24px;
  overflow:hidden;
  box-shadow:0 22px 60px rgba(15,23,42,.20);
}

/* ================== Card พิเศษบางหน้า ================== */

/* card ข่าว, สิทธิประโยชน์ ฯลฯ */
.news-card,
.plan-card,
.contact-card{
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow-md);
  transition: transform .18s ease-out, box-shadow .18s ease-out;
}

.news-card:hover,
.plan-card:hover,
.contact-card:hover{
  transform: translateY(-4px);
  box-shadow:0 20px 50px rgba(15,23,42,.2);
}

/* badge อ่อน */
.badge-soft{
  background:#fff7f0;
  color:#c85f00;
  border:1px solid #ffe1c4;
  border-radius:999px;
}

/* ================== ฟอร์ม ================== */

.form-control,
.form-select{
  border-radius: 999px;
  border:1px solid #e5e7eb;
  padding:.55rem 1.05rem;
  min-height:48px;
}

.form-control:focus,
.form-select:focus{
  border-color:#ffb26b;
  box-shadow:0 0 0 .16rem rgba(255,122,0,.20);
}

/* textarea ให้โค้งน้อยลงหน่อย */
textarea.form-control{
  border-radius:18px;
}

/* ================== Profile / Avatar (ใช้ร่วมกับ profile.php) ================== */

.profile-hero{
  max-width: 960px;
  margin: 24px auto;
  border-radius: 26px;
  background:#fdf2e9;
  box-shadow: var(--shadow-md);
  padding: 24px 28px 32px;
}

.profile-header-row{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:20px;
}

.profile-avatar-wrap{
  width:110px;
  height:110px;
  border-radius:50%;
  border:4px solid #ffffff;
  overflow:hidden;
  box-shadow:0 10px 26px rgba(15,23,42,.28);
  flex-shrink:0;
}

.profile-avatar-wrap img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.profile-main-info{
  flex:1 1 auto;
  min-width:220px;
}

.profile-main-info h3{
  margin:0 0 .25rem;
  font-weight:700;
  color:#111827;
}

.profile-status-pill{
  display:inline-flex;
  align-items:center;
  gap:.35rem;
  padding:.25rem .75rem;
  border-radius:999px;
  background:rgba(16,185,129,.08);
  color:#047857;
  font-size:.85rem;
  font-weight:600;
}

/* กล่องเนื้อหาข้อมูลส่วนตัวด้านล่าง */
.profile-section{
  max-width:960px;
  margin: 0 auto 32px;
}

/* ================== Footer ================== */

footer.bg-dark{
  background:#111827 !important;
}

footer .container{
  max-width: 1140px;
}