/* ============================================================
   Site 1: ปิดงบไม่มีรายได้.com
   Theme: Trustworthy | Primary: #0056B3 | Secondary: #FFC107
   ============================================================ */

/* ── Variables ───────────────────────────────────────────── */
:root {
  --primary:    #0056B3;
  --primary-dk: #003d80;
  --primary-lt: #EBF3FF;
  --secondary:  #FFC107;
  --secondary-dk:#e8a000;
  --dark:       #0a2a4a;
  --body-bg:    #f8fafd;
  --text:       #1a2e44;
  --text-muted: #4a5d70;
  --border:     #d0dff0;
  --white:      #ffffff;
  --success:    #28a745;
  --shadow-sm:  0 2px 8px rgba(0,86,179,.08);
  --shadow-md:  0 8px 32px rgba(0,86,179,.15);
  --shadow-lg:  0 16px 48px rgba(0,86,179,.2);
  --radius:     12px;
  --radius-lg:  20px;
  --font:       'Inter', 'Sarabun', sans-serif;
  --transition: all .3s ease;
}

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--body-bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: var(--primary); transition: var(--transition); }
a:hover { color: var(--primary-dk); }

/* ── Scrollbar ────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--primary-lt); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ── Typography ──────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 { font-weight: 700; color: var(--dark); line-height: 1.3; }
.section-title { font-size: clamp(1.5rem, 3vw, 2.2rem); color: var(--dark); }
.section-subtitle { color: var(--text-muted); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }
.text-primary-custom { color: var(--primary) !important; }
.text-secondary-custom { color: var(--secondary-dk) !important; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn { border-radius: 50px; font-weight: 600; transition: var(--transition); }
.btn-primary-custom {
  background: var(--primary); color: var(--white); border: none;
  padding: .75rem 2rem; font-size: 1rem; letter-spacing: .5px;
  box-shadow: 0 4px 15px rgba(0,86,179,.35);
}
.btn-primary-custom:hover { background: var(--primary-dk); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,86,179,.45); color: var(--white); }
.btn-cta-phone {
  background: var(--primary); color: var(--white); border: 2px solid var(--primary);
  padding: .85rem 2.2rem; font-size: 1.05rem;
  box-shadow: 0 4px 15px rgba(0,86,179,.35);
}
.btn-cta-phone:hover { background: var(--primary-dk); border-color: var(--primary-dk); transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,86,179,.5); color: var(--white); }
.btn-cta-line {
  background: #06c755; color: var(--white); border: 2px solid #06c755;
  padding: .85rem 2.2rem; font-size: 1.05rem;
  box-shadow: 0 4px 15px rgba(6,199,85,.3);
}
.btn-cta-line:hover { background: #05b34c; transform: translateY(-3px); box-shadow: 0 8px 25px rgba(6,199,85,.45); color: var(--white); }
.btn-cta-nav { border-radius: 50px; font-size: .82rem; }
.btn-line-nav { background: #06c755; color: #fff; border: none; border-radius: 50px; }
.btn-line-nav:hover { background: #05b34c; color: #fff; }

/* ── Navbar ──────────────────────────────────────────────── */
.site-navbar {
  background: var(--dark);
  box-shadow: 0 2px 20px rgba(0,0,0,.25);
  padding: .75rem 0;
  transition: var(--transition);
}
.site-navbar.scrolled { background: rgba(10,42,74,.97); backdrop-filter: blur(10px); }
.navbar-brand { font-size: 1.25rem; letter-spacing: -.5px; }
.brand-icon { color: var(--secondary); margin-right: .4rem; }
.nav-link { font-weight: 500; font-size: .93rem; padding: .5rem .8rem !important; border-radius: 8px; transition: var(--transition); }
.nav-link:hover, .nav-link.active { background: rgba(255,193,7,.15); color: var(--secondary) !important; }

/* ── Hero Section ────────────────────────────────────────── */
.hero-section {
  background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 60%, #1a6fcc 100%);
  min-height: 85vh;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding: 5rem 0 4rem;
}
.hero-section::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.03'%3E%3Ccircle cx='30' cy='30' r='30'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-badge {
  display: inline-block;
  background: var(--secondary); color: var(--dark);
  font-size: .75rem; font-weight: 800; letter-spacing: 1.5px;
  padding: .35rem 1rem; border-radius: 50px;
  text-transform: uppercase; margin-bottom: 1.25rem;
  animation: pulse-badge 2s infinite;
}
@keyframes pulse-badge { 0%,100%{box-shadow:0 0 0 0 rgba(255,193,7,.4)} 50%{box-shadow:0 0 0 10px rgba(255,193,7,0)} }
.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--white); font-weight: 800;
  line-height: 1.2; margin-bottom: 1rem;
  text-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.hero-title .highlight { color: var(--secondary); }
.hero-subtitle { font-size: 1.15rem; color: rgba(255,255,255,.85); margin-bottom: 2rem; }
.hero-cta-group { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-promo-box {
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-lg);
  padding: 2rem; color: var(--white);
  box-shadow: var(--shadow-lg);
}
.promo-flash { font-size: .7rem; letter-spacing: 2px; text-transform: uppercase; color: var(--secondary); font-weight: 700; }
.promo-big-price { font-size: 3.5rem; font-weight: 800; color: var(--secondary); line-height: 1; }
.promo-save-label { font-size: .9rem; color: rgba(255,255,255,.8); }
.promo-checkmarks { list-style: none; padding: 0; margin: 1rem 0; }
.promo-checkmarks li { padding: .3rem 0; font-size: .93rem; }
.promo-checkmarks li::before { content: '✓ '; color: #06c755; font-weight: 700; }
.promo-footnote-small { font-size: .7rem; color: rgba(255,255,255,.5); margin-top: .75rem; }
.hero-scroll-hint { color: rgba(255,255,255,.65); font-size: .82rem; margin-top: 2rem; animation: bounce-down 1.5s infinite; }
@keyframes bounce-down { 0%,100%{transform:translateY(0)} 50%{transform:translateY(6px)} }

/* ── Section Spacing ─────────────────────────────────────── */
.section-pad { padding: 5rem 0; }
.section-pad-sm { padding: 3.5rem 0; }
.section-divider { width: 60px; height: 4px; background: var(--primary); border-radius: 2px; margin: 1rem auto 1.5rem; }
.section-divider.amber { background: var(--secondary); }

/* ── Cards ───────────────────────────────────────────────── */
.feature-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 2rem; text-align: center;
  border: 1px solid var(--border); transition: var(--transition);
  height: 100%;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--primary); }
.feature-icon {
  width: 70px; height: 70px; border-radius: 50%;
  background: var(--primary-lt); color: var(--primary);
  font-size: 1.8rem; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem; transition: var(--transition);
}
.feature-card:hover .feature-icon { background: var(--primary); color: var(--white); }
.feature-card h5 { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; }
.feature-card p { font-size: .9rem; color: var(--text-muted); margin: 0; }

/* ── Problem Section ─────────────────────────────────────── */
.problem-section { background: linear-gradient(135deg, #fff8e1 0%, #fffde7 100%); }
.problem-item {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--white); border-radius: var(--radius); padding: 1.25rem;
  border-left: 4px solid var(--secondary); box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.problem-item:hover { transform: translateX(6px); box-shadow: var(--shadow-md); }
.problem-icon { color: var(--secondary-dk); font-size: 1.4rem; flex-shrink: 0; margin-top: .1rem; }

/* ── Service Section ─────────────────────────────────────── */
.service-section { background: var(--dark); color: var(--white); }
.service-card {
  background: rgba(255,255,255,.06); border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.12); padding: 1.75rem;
  text-align: center; transition: var(--transition);
}
.service-card:hover { background: rgba(255,193,7,.12); border-color: var(--secondary); transform: translateY(-4px); }
.service-card .icon { font-size: 2.5rem; color: var(--secondary); margin-bottom: 1rem; }
.service-card h5 { color: var(--white); font-size: 1rem; }
.service-card p { color: rgba(255,255,255,.7); font-size: .88rem; }

/* ── Timeline ────────────────────────────────────────────── */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before { content: ''; position: absolute; left: .5rem; top: 0; bottom: 0; width: 2px; background: var(--border); }
.timeline-item { position: relative; margin-bottom: 2rem; }
.timeline-item::before {
  content: ''; position: absolute; left: -1.6rem; top: .4rem;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--primary); border: 3px solid var(--white);
  box-shadow: 0 0 0 3px var(--primary);
}
.timeline-item h6 { font-weight: 700; color: var(--dark); }
.timeline-item p { color: var(--text-muted); font-size: .9rem; }

/* ── Highlight Stats ─────────────────────────────────────── */
.stat-box { text-align: center; padding: 1.5rem; }
.stat-number { font-size: 2.8rem; font-weight: 800; color: var(--primary); line-height: 1; }
.stat-label { font-size: .9rem; color: var(--text-muted); margin-top: .3rem; }

/* ── CTA Mid Section ─────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
  color: var(--white); padding: 5rem 0; text-align: center;
}
.cta-section h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); color: var(--white); }
.cta-section p { color: rgba(255,255,255,.85); }

/* ── Keyword Section ─────────────────────────────────────── */
.keyword-section { background: var(--primary-lt); }
.keyword-tag {
  display: inline-block; margin: .3rem;
  background: var(--white); border: 1px solid var(--border);
  color: var(--primary); padding: .4rem 1rem; border-radius: 50px;
  font-size: .88rem; font-weight: 500; transition: var(--transition);
}
.keyword-tag:hover { background: var(--primary); color: var(--white); border-color: var(--primary); text-decoration: none; }

/* ── Blog Cards ──────────────────────────────────────────── */
.blog-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden;
  border: 1px solid var(--border); transition: var(--transition); height: 100%;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.blog-card img { width: 100%; height: 200px; object-fit: cover; }
.blog-card-body { padding: 1.25rem; }
.blog-card-cat { font-size: .75rem; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: .5px; }
.blog-card-title { font-size: 1rem; font-weight: 700; margin: .5rem 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card-excerpt { font-size: .88rem; color: var(--text-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ── FAQ Accordion ───────────────────────────────────────── */
.faq-accordion .accordion-button { font-weight: 600; font-size: .95rem; color: var(--dark); background: var(--white); }
.faq-accordion .accordion-button:not(.collapsed) { background: var(--primary-lt); color: var(--primary); box-shadow: none; }
.faq-accordion .accordion-button::after { filter: invert(24%) sepia(95%) saturate(700%) hue-rotate(200deg); }
.faq-accordion .accordion-item { border: 1px solid var(--border); margin-bottom: .5rem; border-radius: var(--radius) !important; overflow: hidden; }
.faq-accordion .accordion-body { font-size: .93rem; color: var(--text-muted); }

/* ── Location Grid ───────────────────────────────────────── */
.location-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .75rem; }
.location-link {
  display: block; text-align: center; padding: .75rem .5rem;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  font-size: .85rem; font-weight: 500; color: var(--text); text-decoration: none;
  transition: var(--transition);
}
.location-link:hover { background: var(--primary); color: var(--white); border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-sm); }

/* ── Breadcrumb ──────────────────────────────────────────── */
.site-breadcrumb { background: var(--primary-lt); padding: .75rem 0; font-size: .85rem; }
.site-breadcrumb .breadcrumb-item a { color: var(--primary); text-decoration: none; }
.site-breadcrumb .breadcrumb-item.active { color: var(--text-muted); }

/* ── Area Page ───────────────────────────────────────────── */
.area-hero { background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%); color: var(--white); padding: 3rem 0; }
.area-hero h1 { color: var(--white); }
.area-cta-box { background: var(--primary-lt); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; }

/* ── Contact Page ────────────────────────────────────────── */
.contact-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 2rem; }
.contact-info-item { display: flex; gap: 1rem; margin-bottom: 1.25rem; }
.contact-info-icon { width: 48px; height: 48px; border-radius: 50%; background: var(--primary-lt); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer { background: var(--dark); color: rgba(255,255,255,.8); padding: 4rem 0 2rem; }
.footer-brand { color: var(--white); font-size: 1.3rem; font-weight: 800; margin-bottom: .75rem; }
.footer-tagline { color: var(--secondary); font-size: .9rem; font-weight: 600; margin-bottom: .75rem; }
.footer-heading { color: var(--secondary); font-size: .82rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .4rem; }
.footer-links a { color: rgba(255,255,255,.65); text-decoration: none; font-size: .88rem; transition: var(--transition); }
.footer-links a:hover { color: var(--secondary); padding-left: 4px; }
.footer-contact-btn {
  display: flex; align-items: center; gap: .5rem;
  padding: .6rem 1.2rem; border-radius: 50px; font-size: .9rem; font-weight: 600;
  text-decoration: none; margin-bottom: .6rem; transition: var(--transition);
  background: var(--primary); color: var(--white);
}
.footer-contact-btn:hover { background: var(--primary-dk); transform: translateX(4px); color: var(--white); }
.footer-contact-btn.line { background: #06c755; }
.footer-contact-btn.line:hover { background: #05b34c; }
.footer-promo-box { background: rgba(255,193,7,.1); border: 1px solid rgba(255,193,7,.3); border-radius: var(--radius); padding: 1.5rem; }
.footer-promo-box .promo-badge { font-size: .7rem; letter-spacing: 1.5px; color: var(--secondary); font-weight: 700; text-transform: uppercase; }
.footer-promo-box .promo-price { font-size: 2.5rem; font-weight: 800; color: var(--secondary); }
.footer-promo-box .promo-note { font-size: .85rem; color: rgba(255,255,255,.7); }
.footer-promo-box .promo-footnote { font-size: .68rem; color: rgba(255,255,255,.4); margin: .5rem 0 0; }
.footer-divider { border-color: rgba(255,255,255,.1); margin: 2rem 0 1.25rem; }

/* ── Floating CTA ────────────────────────────────────────── */
.float-cta {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  display: flex; flex-direction: column; gap: .6rem;
  z-index: 9999;
}
.float-btn {
  display: flex; align-items: center; gap: .5rem;
  padding: .75rem 1.25rem; border-radius: 50px;
  font-weight: 700; font-size: .9rem; text-decoration: none;
  box-shadow: 0 4px 20px rgba(0,0,0,.3); transition: var(--transition);
}
.float-phone { background: var(--primary); color: var(--white); }
.float-phone:hover { background: var(--primary-dk); transform: scale(1.05); color: var(--white); }
.float-line { background: #06c755; color: var(--white); }
.float-line:hover { background: #05b34c; transform: scale(1.05); color: var(--white); }
@media (min-width: 992px) {
  .float-cta { display: none; }
}

/* ── Backend Admin Styles ────────────────────────────────── */
.admin-sidebar { width: 260px; background: var(--dark); min-height: 100vh; color: var(--white); flex-shrink: 0; }
.admin-main { flex: 1; background: #f0f4f8; min-height: 100vh; }
.admin-layout { display: flex; }
.sidebar-brand { padding: 1.5rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.sidebar-nav { list-style: none; padding: 1rem 0; margin: 0; }
.sidebar-nav .nav-item a {
  display: flex; align-items: center; gap: .75rem;
  padding: .75rem 1.5rem; color: rgba(255,255,255,.7); text-decoration: none;
  font-size: .9rem; transition: var(--transition);
}
.sidebar-nav .nav-item a:hover, .sidebar-nav .nav-item a.active {
  background: rgba(255,193,7,.15); color: var(--secondary); border-left: 3px solid var(--secondary);
}
.admin-topbar { background: var(--white); box-shadow: var(--shadow-sm); padding: 1rem 1.5rem; display: flex; justify-content: space-between; align-items: center; }
.stat-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 1.5rem; border-left: 4px solid var(--primary); }
.stat-card.amber { border-color: var(--secondary-dk); }
.stat-card.green { border-color: var(--success); }
.stat-card .stat-value { font-size: 2rem; font-weight: 800; color: var(--dark); }
.stat-card .stat-key { font-size: .82rem; color: var(--text-muted); }
.admin-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 1.5rem; margin-bottom: 1.5rem; }
.admin-card h5 { font-size: 1rem; font-weight: 700; border-bottom: 2px solid var(--primary); padding-bottom: .75rem; margin-bottom: 1rem; }

/* ── Utilities ───────────────────────────────────────────── */
.bg-primary-custom { background: var(--primary) !important; }
.bg-secondary-custom { background: var(--secondary) !important; }
.bg-dark-custom { background: var(--dark) !important; }
.rounded-custom { border-radius: var(--radius) !important; }
.shadow-custom { box-shadow: var(--shadow-md) !important; }
.badge-primary { background: var(--primary); color: var(--white); padding: .3rem .75rem; border-radius: 50px; font-size: .78rem; }
.badge-amber { background: var(--secondary); color: var(--dark); padding: .3rem .75rem; border-radius: 50px; font-size: .78rem; font-weight: 700; }

/* ── Animations ──────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in-up { animation: fadeInUp .6s ease forwards; }
.fade-in-up.delay-1 { animation-delay: .15s; opacity: 0; }
.fade-in-up.delay-2 { animation-delay: .3s;  opacity: 0; }
.fade-in-up.delay-3 { animation-delay: .45s; opacity: 0; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-section { min-height: auto; padding: 3rem 0; }
  .section-pad { padding: 3rem 0; }
  .hero-cta-group { flex-direction: column; }
  .hero-cta-group .btn { width: 100%; justify-content: center; }
  .stat-number { font-size: 2rem; }
}

/* ── Page Hero (Inner Pages) ─────────────────────────────── */
.page-hero { background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%); padding: 3rem 0; color: var(--white); }
.page-hero h1 { color: var(--white); font-size: clamp(1.5rem,3vw,2.2rem); }
.page-hero p { color: rgba(255,255,255,.8); }
