:root{
  --bg:#f5f6f8;
  --card:#ffffff;
  --text:#111827;
  --muted:#6b7280;
  --border:#e5e7eb;
  --dark:#111111;
  --shadow: 0 6px 18px rgba(0,0,0,.06);
  --radius:14px;
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  background:var(--bg);
  color:var(--text);
}

.layout{
  display:grid;
  grid-template-columns: 280px 1fr;
  min-height:100vh;
}

.sidebar{
  padding:18px;
  border-right:1px solid var(--border);
  background:#fbfbfc;
}

.side-card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow: var(--shadow);
  padding:14px;
  margin-bottom:14px;
}

.side-card h3{
  margin:0 0 10px 0;
  font-size:14px;
  letter-spacing:.02em;
}

.stats{display:flex; flex-direction:column; gap:8px;}
.stat{display:flex; justify-content:space-between; font-size:13px; color:var(--muted);}
.stat b{color:var(--text)}

.tips{margin:8px 0 0 18px; padding:0; color:var(--muted); font-size:13px; line-height:1.4;}
.tips li{margin:6px 0;}

.main{padding:22px;}
.page{
  max-width: 980px;
  margin: 0 auto;
}

.header-row{
  display:grid;
  grid-template-columns: 1fr 220px;
  gap:14px;
  align-items:start;
}

.card, .actions-card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow: var(--shadow);
  padding:14px;
}

.actions-card{
  display:flex;
  flex-direction:column;
  gap:10px;
  position:sticky;
  top:16px;
}

.actions-title{font-size:12px; color:var(--muted); font-weight:700; letter-spacing:.04em;}

.label{
  display:block;
  font-size:12px;
  font-weight:800;
  color:#111;
  margin-bottom:8px;
  letter-spacing:.04em;
  text-transform:uppercase;
}

.hint{
  margin:8px 0 0 0;
  font-size:12px;
  color:var(--muted);
}

.input, .textarea{
  width:100%;
  border:1px solid var(--border);
  border-radius:12px;
  padding:12px 12px;
  font-size:14px;
  outline:none;
  background:#fff;
}
.input:focus, .textarea:focus{border-color:#c7c9d1; box-shadow:0 0 0 3px rgba(17,24,39,.06);}

.textarea{resize:vertical; min-height:88px;}

.grid-2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:14px;
  margin-top:14px;
}

.trending{
  margin-top:14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.trending-title{font-weight:800; font-size:14px;}

.dropzone{
  border:1.5px dashed #d1d5db;
  border-radius:14px;
  padding:18px;
  text-align:center;
  position:relative;
  background:#fcfcfd;
}
.dropzone:focus{outline:none; box-shadow:0 0 0 3px rgba(17,24,39,.08);}
.dropzone.dragover{border-color:#111; background:#f7f7f7;}

.dropzone-inner{display:flex; flex-direction:column; gap:10px; align-items:center;}
.dropzone-text{color:var(--muted); font-size:14px;}

.preview{
  margin-top:14px;
  display:flex;
  flex-direction:column;
  gap:10px;
  align-items:center;
}
.preview img{
  max-width:100%;
  border-radius:12px;
  border:1px solid var(--border);
}

.editor{
  border:1px solid var(--border);
  border-radius:12px;
  overflow:hidden;
  background:#fff;
}
.ql-toolbar.ql-snow{border:0; border-bottom:1px solid var(--border);}
.ql-container.ql-snow{border:0; min-height:220px;}

.urdu-card{margin-top:18px;}
.urdu-head{display:flex; flex-direction:column; gap:4px; margin-bottom:14px;}
.urdu-title{font-weight:900;}

.mt{margin-top:14px;}

.rtl{direction:rtl; text-align:right;}
.rtl-editor .ql-editor{direction:rtl; text-align:right; font-family: "Noto Nastaliq Urdu", "Noto Naskh Arabic", system-ui, serif;}

.category-box{
  border:1px solid var(--border);
  border-radius:12px;
  padding:10px;
}
.category-selected{
  font-size:13px;
  color:var(--muted);
  margin-bottom:10px;
}
.category-list{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.chip{
  border:1px solid var(--border);
  border-radius:999px;
  padding:8px 10px;
  font-size:13px;
  display:flex;
  align-items:center;
  gap:8px;
  background:#fff;
}

.btn{
  border:1px solid transparent;
  border-radius:12px;
  padding:10px 12px;
  font-weight:800;
  cursor:pointer;
  font-size:14px;
}
.btn-small{padding:8px 10px; font-size:13px;}

.btn-primary{
  background:#0f172a;
  color:#fff;
}
.btn-dark{
  background:#000;
  color:#fff;
}
.btn-outline{
  background:#fff;
  border-color:#cfd2da;
  color:#111;
}
.btn-ghost{
  background:#fff;
  border-color:var(--border);
  color:#111;
}

.w-full{width:100%}

.error{
  margin-top:6px;
  color:#b91c1c;
  background:#fee2e2;
  border:1px solid #fecaca;
  padding:10px;
  border-radius:12px;
  width:100%;
  max-width:520px;
  text-align:left;
}

.hidden{display:none}

.footer-hint{
  margin:18px 0 6px;
  text-align:center;
  color:var(--muted);
  font-size:12px;
}

/* Switch */
.switch{position:relative; display:inline-block; width:48px; height:26px;}
.switch input{opacity:0; width:0; height:0;}
.slider{
  position:absolute; cursor:pointer;
  top:0; left:0; right:0; bottom:0;
  background:#d1d5db;
  transition:.2s;
  border-radius:999px;
}
.slider:before{
  position:absolute; content:"";
  height:20px; width:20px;
  left:3px; top:3px;
  background:white;
  transition:.2s;
  border-radius:50%;
  border:1px solid rgba(0,0,0,.08);
}
.switch input:checked + .slider{background:#111;}
.switch input:checked + .slider:before{transform: translateX(22px);}

/* Toast */
.toast{
  position:fixed;
  right:16px;
  bottom:16px;
  background:#111;
  color:#fff;
  padding:12px 14px;
  border-radius:12px;
  box-shadow: var(--shadow);
  font-size:13px;
  max-width:360px;
  z-index:9999;
}

@media (max-width: 980px){
  .layout{grid-template-columns: 1fr;}
  .sidebar{border-right:none; border-bottom:1px solid var(--border);}
  .header-row{grid-template-columns: 1fr;}
  .actions-card{position:relative; top:auto;}
  .grid-2{grid-template-columns: 1fr;}
}

/* ===== Public website styles ===== */
.public-header{background:#111;color:#fff;padding:16px 0;margin-bottom:22px}.public-wrap{max-width:1100px;margin:0 auto;padding:0 18px}.nav{display:flex;align-items:center;justify-content:space-between;gap:16px}.nav h1{margin:0;font-size:24px}.nav a{color:#fff;text-decoration:none;margin-left:14px;font-weight:800}.hero{background:#fff;border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);padding:22px;margin-bottom:20px}.hero h2{margin:0 0 8px;font-size:34px}.public-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:14px 0 26px}.public-grid.one{grid-template-columns:1fr}.pub-card{background:#fff;border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden}.pub-card-img{width:100%;height:190px;object-fit:cover;display:block;background:#e5e7eb}.pub-card-img.placeholder{display:flex;align-items:center;justify-content:center;color:var(--muted);font-weight:800}.pub-card-body{padding:14px}.pub-card h2{font-size:20px;margin:10px 0}.pub-card h2 a{color:#111;text-decoration:none}.pub-card p{color:var(--muted);line-height:1.5}.pub-meta{display:flex;flex-wrap:wrap;gap:8px;align-items:center;color:var(--muted);font-size:12px}.pub-pill{background:#f3f4f6;border:1px solid var(--border);border-radius:999px;padding:4px 8px;color:#111}.article-card{background:#fff;border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);padding:22px;margin-bottom:30px}.article-img{width:100%;max-height:520px;object-fit:cover;border-radius:14px;margin-bottom:16px}.article-card h1{font-size:40px;margin:14px 0}.article-excerpt{font-size:18px;color:var(--muted);line-height:1.6}.article-content{font-size:17px;line-height:1.8}.article-content img{max-width:100%;height:auto}.article-urdu{font-family:"Noto Nastaliq Urdu","Noto Naskh Arabic",serif;font-size:18px;line-height:2}.pagination{display:flex;gap:8px;justify-content:center;margin:22px 0}.public-footer{text-align:center;color:var(--muted);padding:30px}.table-wrap{overflow-x:auto}.admin-table{width:100%;border-collapse:collapse;margin-top:14px}.admin-table th,.admin-table td{border-bottom:1px solid var(--border);padding:10px;text-align:left;vertical-align:top}.table-actions{display:flex;flex-wrap:wrap;gap:6px}@media(max-width:900px){.public-grid{grid-template-columns:1fr}.nav{align-items:flex-start;flex-direction:column}.nav a{margin-left:0;margin-right:12px}.article-card h1{font-size:30px}}

/* ===== Public Website Styles ===== */

.public-header {
  background: #0f172a;
  color: #fff;
  padding: 18px 0;
  box-shadow: 0 4px 14px rgba(0,0,0,.12);
}

.public-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 18px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.public-header h1 {
  margin: 0;
  font-size: 28px;
  letter-spacing: .02em;
}

.public-header nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.public-header nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  padding: 8px 12px;
  border-radius: 10px;
}

.public-header nav a:hover {
  background: rgba(255,255,255,.12);
}

.hero {
  margin: 24px 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
}

.hero h2 {
  margin: 0 0 14px;
  font-size: 36px;
  color: #111827;
}

.public-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 22px 0;
}

.public-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
}

.public-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  background: #e5e7eb;
}

.public-card-body {
  padding: 16px;
}

.public-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.25;
}

.public-card h3 a {
  color: #111827;
  text-decoration: none;
}

.public-card h3 a:hover {
  text-decoration: underline;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 6px 10px;
  color: #4b5563;
  background: #f9fafb;
  font-size: 13px;
}

.excerpt {
  color: #6b7280;
  line-height: 1.6;
  margin: 10px 0 14px;
}

.read-more {
  display: inline-block;
  background: #111827;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  padding: 10px 14px;
  border-radius: 12px;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 28px 0;
}

.pagination button {
  border: 1px solid #d1d5db;
  background: #fff;
  padding: 9px 13px;
  border-radius: 10px;
  font-weight: 800;
  cursor: pointer;
}

.pagination button.active {
  background: #111827;
  color: #fff;
}

.empty-state {
  background: #fff;
  border: 1px dashed #d1d5db;
  border-radius: 18px;
  padding: 28px;
  text-align: center;
  color: #6b7280;
}

.article {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 24px;
  margin: 24px 0;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
}

.article h1 {
  font-size: 42px;
  margin: 0 0 14px;
}

.article-banner {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: 18px;
  margin: 18px 0;
}

.article-content {
  font-size: 18px;
  line-height: 1.8;
  color: #111827;
}

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

  .nav {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

  .hero h2 {
    font-size: 28px;
  }

  .public-header h1 {
    font-size: 24px;
  }

  .public-header nav {
    flex-wrap: wrap;
  }
}

/* ===== Public Website Styles ===== */
.public-header {
  background: #0f172a;
  color: #fff;
  padding: 18px 0;
  box-shadow: 0 4px 14px rgba(0,0,0,.12);
}

.public-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 18px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.public-header h1 {
  margin: 0;
  font-size: 28px;
}

.public-header nav {
  display: flex;
  gap: 14px;
}

.public-header nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  padding: 8px 12px;
  border-radius: 10px;
}

.public-header nav a:hover {
  background: rgba(255,255,255,.12);
}

.hero {
  margin: 24px 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
}

.hero h2 {
  margin: 0 0 14px;
  font-size: 36px;
}

.public-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 22px 0;
}

.public-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
}

.public-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  background: #e5e7eb;
}

.public-card-body {
  padding: 16px;
}

.public-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.25;
}

.public-card h3 a {
  color: #111827;
  text-decoration: none;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}

.badge {
  display: inline-flex;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 6px 10px;
  color: #4b5563;
  background: #f9fafb;
  font-size: 13px;
}

.excerpt {
  color: #6b7280;
  line-height: 1.6;
  margin: 10px 0 14px;
}

.read-more {
  display: inline-block;
  background: #111827;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  padding: 10px 14px;
  border-radius: 12px;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 28px 0;
}

.pagination button {
  border: 1px solid #d1d5db;
  background: #fff;
  padding: 9px 13px;
  border-radius: 10px;
  font-weight: 800;
  cursor: pointer;
}

.pagination button.active {
  background: #111827;
  color: #fff;
}

.empty-state {
  background: #fff;
  border: 1px dashed #d1d5db;
  border-radius: 18px;
  padding: 28px;
  text-align: center;
  color: #6b7280;
}

.article {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 24px;
  margin: 24px 0;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
}

.article h1 {
  font-size: 42px;
  margin: 0 0 14px;
}

.article-banner {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: 18px;
  margin: 18px 0;
}

.article-content {
  font-size: 18px;
  line-height: 1.8;
}

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

  .nav {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

  .hero h2 {
    font-size: 28px;
  }
}



/* ===== Additional fixed public/admin styles ===== */
.public-grid.one {
  grid-template-columns: 1fr;
  max-width: 760px;
}

.public-card-placeholder {
  width: 100%;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #111827, #374151);
  color: #fff;
  font-weight: 900;
  font-size: 28px;
  text-decoration: none;
}

.article-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 28px;
  margin: 28px 0;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
}

.article-card h1 {
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.1;
  margin: 18px 0;
}

.article-img {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 18px;
  display: block;
}

.article-excerpt {
  color: #4b5563;
  font-size: 20px;
  line-height: 1.7;
}

.pub-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #6b7280;
  margin: 8px 0 12px;
}

.pub-pill {
  display: inline-flex;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 6px 10px;
  background: #f9fafb;
}

.public-footer {
  max-width: 1180px;
  margin: 40px auto 20px;
  padding: 0 18px;
  color: #6b7280;
}

.section-title {
  margin-top: 28px;
}

.table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.admin-table th,
.admin-table td {
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
  padding: 12px;
  vertical-align: top;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 640px) {
  .article-card {
    padding: 18px;
  }

  .public-header nav {
    gap: 8px;
  }
}

/* ===== Admin Login Security Styles ===== */
.login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--bg, #f5f6f8);
}
.login-card {
  width: min(460px, 100%);
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 22px;
  padding: 28px;
  box-shadow: 0 12px 30px rgba(0,0,0,.08);
}
.login-card h1 { margin: 0 0 8px; font-size: 34px; }
.login-error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
  padding: 12px 14px;
  border-radius: 14px;
  margin: 16px 0;
  font-weight: 700;
}
.mt { margin-top: 16px; }

/* ===== Final Polish: public homepage + admin management ===== */
.text-center { text-align: center; display: inline-block; text-decoration: none; }
.input-lg { font-size: 20px; padding: 16px; }

.site-header {
  background: #0f172a;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 10px 30px rgba(15,23,42,.18);
}
.site-nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  font-size: 20px;
}
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #0f172a;
  font-weight: 1000;
  letter-spacing: -.04em;
}
.site-nav nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.site-nav nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  padding: 10px 12px;
  border-radius: 12px;
}
.site-nav nav a:hover { background: rgba(255,255,255,.12); }

.news-hero, .admin-hero {
  margin: 28px 0;
  border-radius: 26px;
  padding: clamp(26px, 5vw, 52px);
  background: linear-gradient(135deg, #0f172a, #1e293b 55%, #334155);
  color: #fff;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  box-shadow: 0 16px 35px rgba(15,23,42,.18);
}
.news-hero.slim, .admin-hero { padding: 34px; }
.news-hero h1, .admin-hero h1 {
  margin: 6px 0 10px;
  font-size: clamp(36px, 6vw, 70px);
  line-height: .98;
  letter-spacing: -.05em;
  max-width: 850px;
}
.admin-hero h1 { font-size: clamp(30px, 4vw, 48px); }
.news-hero p, .admin-hero p { color: #dbeafe; margin: 0; font-size: 18px; }
.eyebrow {
  margin: 0 0 8px;
  color: #2563eb;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: .12em;
}
.news-hero .eyebrow, .admin-hero .eyebrow { color: #93c5fd; }
.hero-cta {
  background: #fff;
  color: #0f172a;
  text-decoration: none;
  font-weight: 900;
  padding: 14px 18px;
  border-radius: 16px;
  white-space: nowrap;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 32px 0 14px;
}
.section-head h2, .section-head h3 { margin: 0; }
.section-head a { color: #0f172a; font-weight: 900; }
.section-head span { color: #64748b; font-weight: 700; }
.section-head.compact { margin: 0 0 12px; }

.home-feature-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, .8fr);
  gap: 22px;
  align-items: start;
}
.featured-slot .public-card { display: grid; grid-template-columns: 1.15fr 1fr; }
.featured-slot .public-card img,
.featured-slot .public-card-placeholder { height: 100%; min-height: 360px; }
.featured-card h3 { font-size: clamp(28px, 4vw, 46px); }
.side-latest {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
}
.compact-post {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  color: #111827;
  padding: 12px 0;
  border-bottom: 1px solid #eef2f7;
}
.compact-post:last-child { border-bottom: 0; }
.compact-thumb {
  width: 86px;
  height: 64px;
  border-radius: 14px;
  overflow: hidden;
  background: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
  color: #64748b;
}
.compact-thumb img { width: 100%; height: 100%; object-fit: cover; }
.compact-post strong { display: block; line-height: 1.25; }
.compact-post small { color: #64748b; display: block; margin-top: 5px; }
.category-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.category-block {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
}

.admin-logo {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 6px 4px 18px;
}
.admin-logo .brand-mark { background: #0f172a; color: #fff; }
.admin-logo strong { display: block; }
.admin-logo span { color: #64748b; font-size: 13px; }
.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.admin-topbar h1 { margin: 0; font-size: clamp(28px, 4vw, 42px); }
.admin-filter-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 22px;
  padding: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
  display: grid;
  grid-template-columns: 1fr 220px 220px;
  gap: 12px;
  margin-bottom: 18px;
}
.public-filter { grid-template-columns: 1fr 260px; }
.admin-post-grid {
  display: grid;
  gap: 16px;
  margin: 18px 0 36px;
}
.admin-post-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 22px;
  padding: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
}
.admin-thumb {
  min-height: 150px;
  border-radius: 18px;
  overflow: hidden;
  background: #e5e7eb;
}
.admin-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.admin-thumb-placeholder {
  height: 100%;
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-weight: 900;
}
.admin-post-main h3 { margin: 8px 0 4px; font-size: 24px; }
.slug-line { color: #64748b; word-break: break-all; }
.badge-green { background: #dcfce7; border-color: #bbf7d0; color: #166534; }
.badge-yellow { background: #fef9c3; border-color: #fde68a; color: #854d0e; }
.btn-danger { background: #fff; border-color: #fecaca; color: #b91c1c; }
.btn-danger:hover { background: #fee2e2; }

@media (max-width: 980px) {
  .home-feature-layout { grid-template-columns: 1fr; }
  .featured-slot .public-card { grid-template-columns: 1fr; }
  .admin-filter-card, .public-filter { grid-template-columns: 1fr; }
  .admin-post-card { grid-template-columns: 1fr; }
  .category-sections { grid-template-columns: 1fr; }
  .news-hero, .admin-hero { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 640px) {
  .site-nav { align-items: flex-start; flex-direction: column; padding: 14px 18px; }
  .site-nav nav { gap: 6px; }
  .site-nav nav a { padding: 8px 9px; }
  .admin-topbar { align-items: flex-start; flex-direction: column; }
}

/* ===== SEO package public polish ===== */
.main-nav{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.main-nav a{color:#fff;text-decoration:none;font-weight:800;padding:8px 11px;border-radius:10px}
.main-nav a:hover{background:rgba(255,255,255,.12)}
.seo-hero h1{max-width:760px}
.category-menu{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0}
.category-menu a{background:#fff;border:1px solid var(--border);border-radius:999px;padding:9px 13px;text-decoration:none;color:#111827;font-weight:800;box-shadow:var(--shadow)}
.category-menu a:hover{background:#111827;color:#fff}
.ad-slot{border:1px dashed #cbd5e1;background:#f8fafc;color:#64748b;border-radius:16px;text-align:center;font-weight:800;letter-spacing:.02em}
.ad-wide{padding:18px;margin:18px 0}.ad-sidebar{padding:28px 10px;margin-top:18px}
.footer-grid{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;flex-wrap:wrap}.footer-grid p{margin:8px 0 0;color:#cbd5e1}.footer-links{display:flex;gap:12px;flex-wrap:wrap}.footer-links a{color:#fff;text-decoration:none;font-weight:700}.footer-links a:hover{text-decoration:underline}
.static-page{padding-top:24px;padding-bottom:24px}.static-page .article-card{max-width:900px;margin:0 auto}.static-page h1{font-size:42px;margin-top:0}.static-page h2{margin-top:26px}.static-page p,.static-page li{font-size:17px;line-height:1.8}.contact-card{background:#f8fafc;border:1px solid #e5e7eb;border-radius:16px;padding:16px;margin:16px 0}
.article-card{background:#fff;border:1px solid #e5e7eb;border-radius:18px;padding:24px;margin:24px 0;box-shadow:var(--shadow)}
.article-img{width:100%;max-height:540px;object-fit:cover;border-radius:18px;margin-bottom:18px}.article-excerpt{font-size:20px;line-height:1.6;color:#475569}.article-content{font-size:18px;line-height:1.85}.pub-meta{display:flex;gap:8px;flex-wrap:wrap;color:#64748b;margin:12px 0}.pub-pill{background:#f1f5f9;border:1px solid #e2e8f0;border-radius:999px;padding:6px 10px;font-weight:800;color:#334155}
@media(max-width:720px){.main-nav{gap:6px}.main-nav a{padding:7px 9px;font-size:13px}.static-page h1{font-size:32px}.footer-grid{display:block}.footer-links{margin-top:14px}.ad-wide{padding:14px}.article-card{padding:16px}}


/* ===== SEO Next Step: Header polish, category menu, AdSense-ready layout v900 ===== */
.site-header{
  position:sticky;
  top:0;
  z-index:100;
  background:#0f172a;
  border-bottom:1px solid rgba(255,255,255,.08);
  box-shadow:0 8px 24px rgba(15,23,42,.16);
}
.site-nav{
  min-height:76px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}
.brand{
  display:inline-flex;
  align-items:center;
  gap:12px;
  color:#fff;
  text-decoration:none;
  font-weight:900;
  letter-spacing:.01em;
}
.brand-mark{
  width:42px;
  height:42px;
  border-radius:14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg,#22c55e,#0ea5e9);
  color:#fff;
  font-weight:950;
  box-shadow:0 8px 20px rgba(14,165,233,.25);
}
.brand-text{font-size:22px;}
.main-nav{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.main-nav a,.nav-dropbtn{
  color:#fff;
  text-decoration:none;
  font-weight:900;
  padding:10px 13px;
  border-radius:12px;
  line-height:1;
}
.main-nav a:hover,.nav-dropdown:hover .nav-dropbtn{background:rgba(255,255,255,.12);}
.nav-dropdown{position:relative;display:inline-flex;}
.nav-dropmenu{
  display:none;
  position:absolute;
  top:100%;
  left:0;
  min-width:210px;
  padding:10px;
  border-radius:16px;
  background:#fff;
  border:1px solid var(--border);
  box-shadow:0 18px 40px rgba(15,23,42,.18);
}
.nav-dropdown:hover .nav-dropmenu{display:grid;gap:4px;}
.nav-dropmenu a{
  color:#0f172a;
  padding:11px 12px;
  border-radius:10px;
}
.nav-dropmenu a:hover{background:#f1f5f9;color:#0f172a;}
.news-hero{
  margin:28px 0;
  background:linear-gradient(135deg,#ffffff,#f8fafc);
  border:1px solid #e5e7eb;
  border-radius:26px;
  padding:34px;
  box-shadow:0 10px 28px rgba(15,23,42,.07);
}
.news-hero h1{font-size:clamp(34px,5vw,58px);line-height:1.05;margin:8px 0 12px;}
.news-hero p{font-size:18px;line-height:1.7;color:#475569;max-width:760px;}
.eyebrow{text-transform:uppercase;letter-spacing:.12em;font-size:12px!important;font-weight:950;color:#2563eb!important;}
.hero-actions{display:flex;gap:12px;flex-wrap:wrap;align-items:center;}
.hero-cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:#0f172a;
  color:#fff;
  text-decoration:none;
  font-weight:950;
  padding:13px 18px;
  border-radius:14px;
  box-shadow:0 10px 20px rgba(15,23,42,.18);
}
.hero-cta.secondary{background:#fff;color:#0f172a;border:1px solid #e5e7eb;box-shadow:none;}
.ad-slot{
  min-height:90px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1.5px dashed #cbd5e1;
  background:repeating-linear-gradient(45deg,#f8fafc,#f8fafc 10px,#f1f5f9 10px,#f1f5f9 20px);
  color:#64748b;
  border-radius:18px;
  text-align:center;
  font-weight:900;
  letter-spacing:.04em;
}
.ad-wide{margin:22px 0;padding:18px;}
.ad-sidebar{min-height:260px;margin-top:18px;}
.ad-bottom{margin-top:28px;}
.category-menu{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0 24px;}
.category-menu a{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:999px;
  padding:10px 15px;
  text-decoration:none;
  color:#0f172a;
  font-weight:900;
  box-shadow:0 6px 16px rgba(15,23,42,.06);
}
.category-menu a:hover{background:#0f172a;color:#fff;}
.home-feature-layout{display:grid;grid-template-columns:minmax(0,2fr) minmax(280px,1fr);gap:22px;align-items:start;}
.section-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:24px 0 14px;}
.section-head h2,.section-head h3{margin:0;}
.section-head span,.section-head a{color:#64748b;font-weight:800;text-decoration:none;}
.public-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;}
.public-card{border-radius:24px;transition:transform .15s ease, box-shadow .15s ease;}
.public-card:hover{transform:translateY(-2px);box-shadow:0 14px 34px rgba(15,23,42,.12);}
.public-card img,.public-card-placeholder{height:245px;}
.public-card-placeholder{
  display:flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  background:linear-gradient(135deg,#0f172a,#334155);
  color:#fff;
  font-size:30px;
  font-weight:950;
}
.featured-card img,.featured-card .public-card-placeholder{height:390px;}
.side-latest{background:#fff;border:1px solid #e5e7eb;border-radius:24px;padding:18px;box-shadow:0 10px 26px rgba(15,23,42,.07);}
.compact-post{display:grid;grid-template-columns:82px 1fr;gap:12px;text-decoration:none;color:#0f172a;padding:10px;border-radius:16px;}
.compact-post:hover{background:#f8fafc;}
.compact-thumb{height:62px;border-radius:12px;overflow:hidden;background:#0f172a;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:900;}
.compact-thumb img{width:100%;height:100%;object-fit:cover;}
.compact-post small{display:block;color:#64748b;margin-top:5px;}
.public-footer{margin-top:40px;background:#0f172a;color:#cbd5e1;text-align:left;padding:34px 0;}
.public-footer strong{color:#fff;}
.footer-grid{display:flex;justify-content:space-between;gap:20px;align-items:center;}
.footer-links{display:flex;gap:14px;flex-wrap:wrap;}
.footer-links a{color:#e2e8f0;text-decoration:none;font-weight:800;}
.static-page{padding-top:24px;}
.article-card{border-radius:26px;padding:clamp(22px,4vw,46px);}
.article-card h1{font-size:clamp(36px,5vw,60px);line-height:1.05;}
.article-content{font-size:18px;line-height:1.85;}
.article-content h2{font-size:32px;margin-top:30px;}
.article-img{border-radius:24px;}
@media(max-width:980px){
  .site-nav{align-items:flex-start;flex-direction:column;padding:12px 18px;}
  .main-nav{justify-content:flex-start;}
  .home-feature-layout{grid-template-columns:1fr;}
  .public-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:680px){
  .brand-text{font-size:18px;}
  .main-nav{gap:4px;}
  .main-nav a,.nav-dropbtn{font-size:13px;padding:9px 10px;}
  .nav-dropdown{display:block;}
  .nav-dropmenu{position:static;display:grid;background:rgba(255,255,255,.08);border:0;box-shadow:none;margin-top:6px;}
  .nav-dropmenu a{color:#fff;}
  .news-hero{padding:24px;}
  .public-grid{grid-template-columns:1fr;}
  .featured-card img,.featured-card .public-card-placeholder{height:260px;}
  .footer-grid{display:block;}
  .footer-links{margin-top:14px;}
}
/* Fix article page spacing below header */
.article-wrap,
.single-post,
.post-detail,
.article-page,
main.public-wrap {
  padding-top: 70px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.article-hero,
.post-hero {
  margin-top: 24px;
}
/* Fix archive/category hero heading visibility */
.archive-hero h1,
.archive-hero .hero-title,
.posts-hero h1,
.posts-hero .hero-title,
.hero h1,
.hero h2 {
  color: #111827 !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

.archive-hero .eyebrow,
.posts-hero .eyebrow {
  color: #2563eb !important;
  opacity: 1 !important;
}
/* Fix categories dropdown visibility */
.nav-dropdown,
.dropdown,
.categories-dropdown {
  position: relative;
}

.dropdown-menu,
.categories-menu,
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.18);
  padding: 12px;
  z-index: 9999;
}

.nav-dropdown:hover .dropdown-menu,
.dropdown:hover .dropdown-menu,
.categories-dropdown:hover .categories-menu,
.nav-dropdown:hover .nav-dropdown-menu {
  display: block;
}

.dropdown-menu a,
.categories-menu a,
.nav-dropdown-menu a {
  display: block;
  color: #111827 !important;
  background: #ffffff;
  text-decoration: none;
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 800;
}

.dropdown-menu a:hover,
.categories-menu a:hover,
.nav-dropdown-menu a:hover {
  background: #f3f4f6;
  color: #2563eb !important;
}
/* Fix archive/category heading visibility */
.archive-hero h1,
.archive-hero h2,
.posts-hero h1,
.posts-hero h2,
.hero h1,
.hero h2,
.page-hero h1,
.page-hero h2 {
  color: #111827 !important;
  opacity: 1 !important;
  text-shadow: none !important;
  filter: none !important;
}

.archive-hero,
.posts-hero,
.page-hero {
  color: #111827 !important;
}
/* FINAL FIX: Categories dropdown links visibility */
.nav-dropdown {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
}

.nav-dropmenu {
  display: none !important;
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  width: 260px !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 18px !important;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.18) !important;
  padding: 12px !important;
  z-index: 99999 !important;
}

.nav-dropdown:hover .nav-dropmenu {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
}

.nav-dropmenu a {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  color: #111827 !important;
  background: #ffffff !important;
  text-decoration: none !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
  padding: 12px 14px !important;
  border-radius: 12px !important;
  white-space: nowrap !important;
}

.nav-dropmenu a:hover {
  background: #f3f4f6 !important;
  color: #2563eb !important;
}

/* FINAL FIX: Archive/category heading visibility */
.seo-hero h1,
.news-hero h1,
.posts-hero h1,
.archive-hero h1,
.page-hero h1 {
  color: #111827 !important;
  opacity: 1 !important;
  filter: none !important;
  text-shadow: none !important;
}
/* Compact categories dropdown */
.nav-dropmenu {
  width: 240px !important;
  min-width: 220px !important;
  max-width: 260px !important;
  padding: 10px !important;
  border-radius: 18px !important;
}

.nav-dropmenu a {
  font-size: 18px !important;
  padding: 10px 14px !important;
  margin: 2px 0 !important;
  line-height: 1.25 !important;
}

.nav-dropdown:hover .nav-dropmenu {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
}
/* ===============================
   Professional Header + Dropdown Polish
   =============================== */

.site-header {
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
}

.main-nav {
  gap: 14px !important;
  align-items: center !important;
}

.main-nav > a,
.main-nav .nav-link {
  padding: 12px 18px !important;
  border-radius: 14px !important;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease !important;
}

.main-nav > a:hover,
.main-nav .nav-link:hover,
.nav-dropdown:hover > .nav-link {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

/* Professional compact categories dropdown */
.nav-dropdown {
  position: relative !important;
}

.nav-dropmenu {
  display: none !important;
  position: absolute !important;
  top: calc(100% + 10px) !important;
  left: 50% !important;
  transform: translateX(-50%) !important;

  width: 220px !important;
  min-width: 220px !important;
  max-width: 220px !important;

  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 18px !important;
  box-shadow: 0 22px 45px rgba(15, 23, 42, 0.20) !important;

  padding: 8px !important;
  z-index: 999999 !important;
}

/* small arrow above dropdown */
.nav-dropmenu::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 16px;
  height: 16px;
  background: #ffffff;
  border-left: 1px solid #e5e7eb;
  border-top: 1px solid #e5e7eb;
}

.nav-dropdown:hover .nav-dropmenu {
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
}

.nav-dropmenu a {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;

  color: #111827 !important;
  background: transparent !important;
  text-decoration: none !important;

  font-size: 15px !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;

  padding: 10px 12px !important;
  margin: 0 !important;
  border-radius: 12px !important;

  white-space: nowrap !important;
  transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease !important;
}

.nav-dropmenu a:hover {
  background: #f3f4f6 !important;
  color: #2563eb !important;
  padding-left: 16px !important;
}

/* Mobile safety */
@media (max-width: 768px) {
  .nav-dropmenu {
    position: static !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
    box-shadow: none !important;
    margin-top: 8px !important;
  }

  .nav-dropmenu::before {
    display: none !important;
  }
}
/* Final compact dropdown polish */
.nav-dropmenu {
  width: 210px !important;
  min-width: 210px !important;
  max-width: 210px !important;
  padding: 8px !important;
  border-radius: 16px !important;
}

.nav-dropmenu a {
  font-size: 14px !important;
  padding: 8px 12px !important;
  line-height: 1.2 !important;
}

.nav-dropdown:hover .nav-dropmenu {
  gap: 1px !important;
}

/* Give homepage hero a little breathing room under header */
.hero,
.seo-hero,
.news-hero,
.posts-hero,
.archive-hero {
  margin-top: 24px !important;
}
/* Move categories dropdown slightly left so it does not cover hero buttons */
.nav-dropmenu {
  left: 45% !important;
  transform: translateX(-50%) !important;
  width: 200px !important;
  min-width: 200px !important;
  max-width: 200px !important;
}

.nav-dropmenu a {
  font-size: 14px !important;
  padding: 7px 11px !important;
}
/* v907 admin manage table helpers */
.table-wrap{overflow:auto}.admin-table{width:100%;border-collapse:collapse}.admin-table th,.admin-table td{padding:14px;border-bottom:1px solid #e5e7eb;text-align:left;vertical-align:top}.admin-table th{font-weight:900;color:#111827}.row-actions{white-space:nowrap}.btn-small{padding:8px 12px;font-size:14px}.btn-danger{background:#b91c1c;color:#fff;border-color:#b91c1c}.category-pill{display:inline-flex;align-items:center;gap:8px;margin:8px 8px 0 0;padding:10px 14px;border:1px solid #e5e7eb;border-radius:999px;background:#fff}.category-pill input{width:18px;height:18px}.toast.success{background:#064e3b;color:#fff}.toast.error{background:#7f1d1d;color:#fff}

/* ===== v912 FIX: wider hover area for Categories dropdown ===== */
/* This creates an invisible hover bridge between the Categories button
   and its dropdown so the menu does not disappear while moving the mouse. */
.nav-dropdown {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  padding-top: 14px !important;
  padding-bottom: 18px !important;
}

.nav-dropdown > .nav-link,
.nav-dropdown > a {
  position: relative !important;
  z-index: 2 !important;
}

/* Keep the dropdown close to Categories and make the hover area forgiving */
.nav-dropmenu {
  top: calc(100% - 2px) !important;
  left: 45% !important;
  transform: translateX(-50%) !important;
  width: 220px !important;
  min-width: 220px !important;
  max-width: 220px !important;
  padding: 10px !important;
  border-radius: 18px !important;
  z-index: 999999 !important;
}

/* Invisible bridge above dropdown */
.nav-dropmenu::after {
  content: "" !important;
  position: absolute !important;
  left: -30px !important;
  right: -30px !important;
  top: -32px !important;
  height: 36px !important;
  background: transparent !important;
  pointer-events: auto !important;
}

/* Keep arrow visible */
.nav-dropmenu::before {
  content: "" !important;
  position: absolute !important;
  top: -8px !important;
  left: 50% !important;
  transform: translateX(-50%) rotate(45deg) !important;
  width: 16px !important;
  height: 16px !important;
  background: #ffffff !important;
  border-left: 1px solid #e5e7eb !important;
  border-top: 1px solid #e5e7eb !important;
  z-index: 1 !important;
}

.nav-dropdown:hover .nav-dropmenu,
.nav-dropdown:focus-within .nav-dropmenu {
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
  pointer-events: auto !important;
}

.nav-dropmenu a {
  font-size: 15px !important;
  padding: 10px 14px !important;
  line-height: 1.25 !important;
}

/* Larger hover target for each dropdown item */
.nav-dropmenu a:hover {
  background: #f3f4f6 !important;
  color: #2563eb !important;
  padding-left: 18px !important;
}

/* Mobile safety */
@media (max-width: 768px) {
  .nav-dropdown {
    display: block !important;
    width: 100% !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .nav-dropmenu {
    position: static !important;
    transform: none !important;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    margin-top: 8px !important;
  }

  .nav-dropmenu::before,
  .nav-dropmenu::after {
    display: none !important;
  }
}

/* ===== Contact page professional layout v913 ===== */
.contact-page-v913 {
  padding-top: 34px;
  padding-bottom: 48px;
}

.contact-hero-v913 {
  margin: 28px 0 28px;
  border: 1px solid #e5e7eb;
  border-radius: 28px;
  padding: clamp(28px, 5vw, 54px);
  background: linear-gradient(135deg, #ffffff, #f8fafc 62%, #eef2ff);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
  text-align: center;
}

.contact-hero-v913 h1 {
  margin: 8px 0 12px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1;
  letter-spacing: -0.05em;
  color: #0f172a;
}

.contact-hero-v913 p:not(.eyebrow) {
  max-width: 760px;
  margin: 0 auto;
  color: #475569;
  font-size: 19px;
  line-height: 1.7;
}

.contact-breadcrumb-v913 {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #64748b;
  font-weight: 800;
}

.contact-breadcrumb-v913 a {
  color: #0f172a;
  text-decoration: none;
}

.contact-breadcrumb-v913 a:hover {
  text-decoration: underline;
}

.contact-layout-v913 {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.25fr);
  gap: 24px;
  align-items: start;
}

.contact-info-panel-v913,
.contact-form-panel-v913 {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 26px;
  padding: clamp(22px, 3vw, 34px);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.contact-info-panel-v913 h2,
.contact-form-panel-v913 h2 {
  margin: 0 0 10px;
  color: #0f172a;
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -0.03em;
}

.contact-note-v913,
.contact-form-panel-v913 > p {
  margin: 0 0 22px;
  color: #64748b;
  font-size: 16px;
  line-height: 1.7;
}

.contact-info-item-v913 {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 14px;
  align-items: start;
  padding: 18px 0;
  border-top: 1px solid #eef2f7;
}

.contact-icon-v913 {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #22c55e, #0ea5e9);
  color: #ffffff;
  font-weight: 950;
  font-size: 22px;
  box-shadow: 0 10px 22px rgba(14, 165, 233, 0.18);
}

.contact-info-item-v913 h3 {
  margin: 0 0 6px;
  color: #0f172a;
  font-size: 18px;
}

.contact-info-item-v913 p {
  margin: 0;
  color: #475569;
  line-height: 1.6;
}

.contact-info-item-v913 a {
  color: #2563eb;
  font-weight: 900;
  text-decoration: none;
  word-break: break-word;
}

.contact-info-item-v913 a:hover {
  text-decoration: underline;
}

.contact-form-v913 {
  display: grid;
  gap: 16px;
}

.contact-form-grid-v913 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form-v913 label {
  display: grid;
  gap: 8px;
  color: #0f172a;
  font-weight: 900;
}

.contact-form-v913 input,
.contact-form-v913 textarea {
  width: 100%;
  border: 1px solid #dbe1ea;
  border-radius: 16px;
  background: #ffffff;
  color: #0f172a;
  font: inherit;
  font-size: 16px;
  padding: 14px 16px;
  outline: none;
}

.contact-form-v913 textarea {
  resize: vertical;
  min-height: 180px;
}

.contact-form-v913 input:focus,
.contact-form-v913 textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10);
}

.contact-form-v913 button {
  justify-self: start;
  border: 0;
  border-radius: 16px;
  padding: 14px 28px;
  background: #0f172a;
  color: #ffffff;
  font-size: 16px;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
}

.contact-form-v913 button:hover {
  background: #1e293b;
}

@media (max-width: 860px) {
  .contact-layout-v913,
  .contact-form-grid-v913 {
    grid-template-columns: 1fr;
  }

  .contact-hero-v913 {
    text-align: left;
  }

  .contact-hero-v913 p:not(.eyebrow) {
    margin-left: 0;
  }
}

@media (max-width: 520px) {
  .contact-info-item-v913 {
    grid-template-columns: 1fr;
  }

  .contact-form-v913 button {
    width: 100%;
  }
}


/* ===== Contact page mailto safety fix v914 ===== */
.contact-actions-v914 {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.contact-form-v913 .contact-copy-btn-v914 {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #dbe1ea;
  box-shadow: none;
}

.contact-form-v913 .contact-copy-btn-v914:hover {
  background: #f8fafc;
  color: #0f172a;
}

.contact-form-help-v914 {
  margin: 0;
  color: #64748b;
  font-size: 15px;
  line-height: 1.6;
}

@media (max-width: 520px) {
  .contact-actions-v914 {
    display: grid;
    grid-template-columns: 1fr;
  }

  .contact-actions-v914 button {
    width: 100%;
  }
}


/* ===== Contact real submit form fix v915 ===== */
.contact-hp-v915 {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.contact-status-v915 {
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 800;
  line-height: 1.5;
}

.contact-success-v915 {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.contact-error-v915 {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}
