:root {
  --bg: #ffffff;
  --fg: #1a2332;
  --muted: #667085;
  --muted-bg: #f4f7fb;
  --primary: #1e5fbf;
  --primary-dark: #164a97;
  --primary-fg: #ffffff;
  --accent: #e8f0fc;
  --border: #e2e8f0;
  --card: #ffffff;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(16,24,40,.08), 0 1px 2px rgba(16,24,40,.04);
  --shadow-lg: 0 10px 30px rgba(16,24,40,.10);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--fg); line-height: 1.6; background: var(--bg); }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: var(--radius);
  font-weight: 600; font-size: 15px; cursor: pointer; border: 1px solid transparent; transition: .15s; text-decoration: none; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--primary); color: var(--primary-fg); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: #fff; color: var(--primary); border-color: var(--border); }
.btn-secondary:hover { background: var(--muted-bg); }
.btn-white { background: #fff; color: var(--primary); }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-block { width: 100%; justify-content: center; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--fg); }
.logo:hover { text-decoration: none; }
.logo .mark { width: 38px; height: 38px; background: var(--primary); color: #fff; border-radius: 8px;
  display: grid; place-items: center; font-size: 18px; }
.logo img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--fg); font-weight: 500; padding: 8px 12px; border-radius: 8px; font-size: 15px; }
.nav a:hover { background: var(--muted-bg); text-decoration: none; color: var(--primary); }
.header-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 8px;
  padding: 8px 10px; cursor: pointer; font-size: 18px; }

/* Hero slider */
.hero { position: relative; overflow: hidden; }
.slides { position: relative; height: 560px; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; }
.slide.active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16,32,60,.78) 0%, rgba(16,32,60,.35) 70%); }
.slide-content { position: absolute; inset: 0; display: flex; align-items: center; }
.slide-content .container { color: #fff; }
.slide-content h2 { font-size: 44px; line-height: 1.15; max-width: 640px; text-shadow: 0 2px 12px rgba(0,0,0,.3); }
.slide-content p { font-size: 19px; margin-top: 16px; max-width: 560px; color: #eaf1fb; }
.slide-dots { position: absolute; bottom: 22px; left: 0; right: 0; display: flex; justify-content: center; gap: 10px; z-index: 5; }
.slide-dots button { width: 12px; height: 12px; border-radius: 50%; border: none; background: rgba(255,255,255,.5); cursor: pointer; }
.slide-dots button.active { background: #fff; width: 30px; border-radius: 6px; }
.slide-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.2);
  border: none; color: #fff; width: 46px; height: 46px; border-radius: 50%; cursor: pointer; font-size: 22px; z-index: 5; }
.slide-arrow:hover { background: rgba(255,255,255,.35); }
.slide-arrow.prev { left: 20px; } .slide-arrow.next { right: 20px; }

/* Sections */
section { padding: 72px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section-head .eyebrow { color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 13px; }
.section-head h2 { font-size: 34px; margin-top: 8px; }
.section-head p { color: var(--muted); margin-top: 12px; font-size: 17px; }

/* Services grid */
.grid { display: grid; gap: 24px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: .2s; }
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.service-card img { width: 100%; height: 180px; object-fit: cover; }
.service-card .body { padding: 20px; }
.service-card h3 { font-size: 19px; margin-bottom: 8px; }
.service-card p { color: var(--muted); font-size: 15px; }

/* Features */
.features { background: var(--muted-bg); }
.feature { text-align: center; padding: 24px; }
.feature .icon { width: 60px; height: 60px; margin: 0 auto 16px; background: var(--accent); color: var(--primary);
  border-radius: 50%; display: grid; place-items: center; font-size: 26px; font-weight: 700; }
.feature h3 { font-size: 18px; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 15px; }

/* Provinces */
.province-search { max-width: 420px; margin: 0 auto 32px; }
.province-search input { width: 100%; padding: 13px 16px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 15px; }
.province-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.province-item { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); color: var(--fg); font-weight: 500; transition: .15s; }
.province-item:hover { border-color: var(--primary); background: var(--accent); text-decoration: none; color: var(--primary); }
.province-item .count { font-size: 12px; color: var(--muted); background: var(--muted-bg); padding: 2px 8px; border-radius: 20px; }

/* Contact */
.contact { background: var(--muted-bg); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-info .item { display: flex; gap: 14px; margin-bottom: 20px; align-items: flex-start; }
.contact-info .item .ic { width: 44px; height: 44px; background: var(--accent); color: var(--primary);
  border-radius: 10px; display: grid; place-items: center; flex: none; font-weight: 700; }
.contact-info .item h4 { font-size: 15px; } .contact-info .item p { color: var(--muted); }
.contact-form { background: #fff; padding: 28px; border-radius: var(--radius); border: 1px solid var(--border); }
.contact-form label { display: block; font-weight: 600; font-size: 14px; margin: 14px 0 6px; }
.contact-form input, .contact-form textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 8px; font-family: inherit; font-size: 15px; }

/* CTA banner */
.cta-band { background: var(--primary); color: #fff; }
.cta-band .inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { font-size: 28px; } .cta-band p { color: #dbe7fb; margin-top: 6px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Footer */
.site-footer { background: #0f1e33; color: #c7d3e3; padding: 56px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: 16px; margin-bottom: 14px; }
.site-footer a { color: #c7d3e3; font-size: 14px; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; } .site-footer li { margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 20px; text-align: center; font-size: 13px; color: #8ea2bd; }

/* WhatsApp float */
.wa-float { position: fixed; bottom: 24px; right: 24px; width: 56px; height: 56px; background: #25d366; color: #fff;
  border-radius: 50%; display: grid; place-items: center; font-size: 28px; z-index: 60; box-shadow: var(--shadow-lg); }
.wa-float:hover { text-decoration: none; transform: scale(1.05); }

/* Place page */
.page-hero { background: linear-gradient(135deg, #12315f, #1e5fbf); color: #fff; padding: 56px 0; }
.breadcrumb { font-size: 14px; color: #cddcf3; margin-bottom: 14px; }
.breadcrumb a { color: #cddcf3; } .breadcrumb a:hover { color: #fff; }
.page-hero h1 { font-size: 38px; max-width: 800px; }
.page-hero .sub { margin-top: 12px; color: #dbe7fb; font-size: 18px; }
.content-body { max-width: 820px; }
.content-body p { margin: 16px 0; color: #374151; }
.content-section { margin-top: 32px; }
.content-section h2 { font-size: 24px; margin-bottom: 10px; }
.content-section p { color: #4b5563; }
.district-links { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-top: 20px; }
.district-links a { padding: 10px 14px; background: #fff; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; color: var(--fg); }
.district-links a:hover { border-color: var(--primary); color: var(--primary); background: var(--accent); text-decoration: none; }

/* FAQ */
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; background: #fff; overflow: hidden; }
.faq-item summary { padding: 18px 20px; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 22px; color: var(--primary); }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item .answer { padding: 0 20px 18px; color: var(--muted); }

/* Blog */
.blog-card img { height: 200px; width: 100%; object-fit: cover; }
.blog-card .body { padding: 20px; }
.blog-card h3 { font-size: 20px; margin-bottom: 8px; }
.blog-card .meta { color: var(--muted); font-size: 13px; margin-bottom: 10px; }
.blog-card p { color: var(--muted); font-size: 15px; }
.article { max-width: 800px; margin: 0 auto; }
.article h1 { font-size: 36px; margin-bottom: 10px; }
.article .meta { color: var(--muted); margin-bottom: 24px; }
.article img.cover { border-radius: var(--radius); margin-bottom: 28px; }
.prose h2 { font-size: 26px; margin: 28px 0 12px; }
.prose h3 { font-size: 21px; margin: 22px 0 10px; }
.prose p { margin: 14px 0; color: #374151; }
.prose ul { margin: 14px 0 14px 22px; } .prose li { margin: 6px 0; color: #374151; }

/* Admin */
.admin-body { background: var(--muted-bg); min-height: 100vh; }
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login-card { background: #fff; padding: 36px; border-radius: 14px; box-shadow: var(--shadow-lg); width: 100%; max-width: 400px; }
.login-card h1 { font-size: 24px; margin-bottom: 6px; text-align: center; }
.login-card p.hint { text-align: center; color: var(--muted); margin-bottom: 24px; font-size: 14px; }
.admin-topbar { background: #0f1e33; color: #fff; padding: 14px 0; }
.admin-topbar .inner { display: flex; justify-content: space-between; align-items: center; }
.admin-topbar a { color: #cddcf3; }
.admin-tabs { display: flex; gap: 6px; flex-wrap: wrap; background: #fff; padding: 8px; border-radius: 12px;
  border: 1px solid var(--border); margin: 24px 0; }
.admin-tabs a { padding: 10px 16px; border-radius: 8px; color: var(--fg); font-weight: 600; font-size: 14px; }
.admin-tabs a.active { background: var(--primary); color: #fff; }
.admin-tabs a:hover { text-decoration: none; }
.panel { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 24px; margin-bottom: 24px; }
.panel h2 { font-size: 18px; margin-bottom: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.field input, .field textarea, .field select { width: 100%; padding: 11px 13px; border: 1px solid var(--border); border-radius: 8px; font-family: inherit; font-size: 15px; }
.field .help { color: var(--muted); font-size: 13px; margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 20px; font-size: 14px; }
.alert-success { background: #e6f6ed; color: #106b3c; border: 1px solid #a9e0c1; }
.alert-error { background: #fdeaea; color: #a32020; border: 1px solid #f3bcbc; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 12px; border-bottom: 1px solid var(--border); font-size: 14px; }
.table th { color: var(--muted); font-weight: 600; }
.repeater-item { border: 1px solid var(--border); border-radius: 10px; padding: 16px; margin-bottom: 14px; background: var(--muted-bg); }
.badge { display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.badge-green { background: #e6f6ed; color: #106b3c; } .badge-gray { background: #eef1f5; color: #667085; }
.inline-actions { display: flex; gap: 8px; }
.btn-sm { padding: 7px 12px; font-size: 13px; }
.btn-danger { background: #dc2626; color: #fff; } .btn-danger:hover { background: #b91c1c; }

/* Responsive */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .province-grid { grid-template-columns: repeat(3, 1fr); }
  .district-links { grid-template-columns: repeat(3, 1fr); }
  .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .slide-content h2 { font-size: 32px; }
}
@media (max-width: 640px) {
  .nav { display: none; position: absolute; top: 70px; left: 0; right: 0; flex-direction: column;
    background: #fff; border-bottom: 1px solid var(--border); padding: 12px; align-items: stretch; }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
  .nav-toggle { display: block; }
  .header-cta .btn { display: none; }
  .grid-4, .grid-3, .grid-2, .province-grid, .district-links { grid-template-columns: 1fr 1fr; }
  .slides { height: 440px; }
  .slide-content h2 { font-size: 26px; }
  .slide-content p { font-size: 16px; }
  .section-head h2 { font-size: 26px; }
  .form-row { grid-template-columns: 1fr; }
  .cta-band .inner { flex-direction: column; text-align: center; }
}
