:root {
  --orange: #fd3101;
  --orange-dark: #e12b00;
  --navy: #0a0e27;
  --sand: #fff4ef;
  --ink: #1a1f36;
  --muted: #6c768f;
  --line: #e7eaf1;
  --white: #ffffff;
  --shadow: 0 18px 48px rgba(10, 14, 39, 0.12);
  --radius-xl: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink);
  background: #fff;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.fw-black { font-weight: 900; }
.text-orange { color: var(--orange) !important; }
.btn-orange {
  background: var(--orange);
  color: var(--white);
  border: 0;
}
.btn-orange:hover { background: var(--orange-dark); color: var(--white); }
.site-nav {
  background: rgba(10, 14, 39, 0.94);
  backdrop-filter: blur(14px);
}
.brand-logo { height: 42px; width: auto; }
.hero-section {
  position: relative;
  background:
    linear-gradient(120deg, rgba(10, 14, 39, 0.92), rgba(10, 14, 39, 0.55)),
    url('https://lh3.googleusercontent.com/aida/AP1WRLtQFaoZcgvykm4XJneTOmTDb7FMrr46aH_cIVnv-epiQuXn_JtqeC-Ft8ZAvFQJQAN659JFQ3LJdrOInzCJUSGX5cIjCDhEiSSOAXDGh0TsHcueUxeUprhiECSLCgWsMV6908GEV3q9_PK8uy4RzpU_4nfxxNwTUXq6Glw-bukwXMlPuNxvj0_AnPaTabQSdR98hqmoQKxXbQ7pK5Av0W18RLAfY6XKxHhOz8d3syscWFWORb3P6ntCyA') center/cover no-repeat;
}
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,14,39,0.7), rgba(10,14,39,0.2)); }
.hero-content { padding-top: 90px; padding-bottom: 48px; }
.eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--orange);
  font-weight: 800;
  font-size: 0.82rem;
}
.headline-accent {
  color: var(--orange);
  min-height: 1.2em;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.headline-accent.is-fading { opacity: 0; transform: translateY(-8px); }
.pillar-strip { margin-top: -72px; position: relative; z-index: 2; }
.surface-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}
.pillar-card {
  padding: 34px 28px;
  border-right: 1px solid var(--line);
  transition: background 0.25s ease, transform 0.25s ease;
}
.pillar-card:hover { background: var(--orange); color: var(--white); transform: translateY(-4px); }
.pillar-card:hover p, .pillar-card:hover .pillar-icon { color: var(--white); }
.pillar-icon { font-size: 2.3rem; color: var(--orange); margin-bottom: 16px; }
.pillar-card h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 10px; }
.pillar-card p { margin: 0; color: var(--muted); font-size: 0.95rem; line-height: 1.65; }
.section-space { padding: 96px 0; }
.section-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; margin-bottom: 18px; }
.section-copy, .vision-copy { color: var(--muted); line-height: 1.8; font-size: 1.05rem; max-width: 760px; }
.value-chip {
  display: flex; gap: 10px; align-items: center; padding: 14px 16px;
  background: #f7f8fb; border-radius: 16px; font-weight: 700;
}
.value-chip i { color: var(--orange); }
.about-gallery img {
  width: 100%;
  border-radius: 28px;
  box-shadow: var(--shadow);
  object-fit: cover;
}
.about-photo-main {
  min-height: 437px;
}
.about-photo-side:first-child {
  min-height: 190px;
}
.about-photo-side:last-child {
  min-height: 160px;
}
.quote-card {
  background: var(--orange); color: var(--white); padding: 20px; border-radius: 22px;
  box-shadow: var(--shadow);
  min-height: 114px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-top: 10px;
}
.quote-card p {
  margin: 0 0 8px;
  font-weight: 800;
  font-size: clamp(0.686rem, 0.96vw, 0.862rem);
  line-height: 1.35;
}
.quote-card span { opacity: 0.92; font-size: 0.635rem; }
.vision-band { background: linear-gradient(180deg, #101833, #0a0e27); color: var(--white); }
.vision-card {
  height: 100%;
  border-left: 4px solid var(--orange);
  background: rgba(255,255,255,0.08);
  padding: 22px;
  border-radius: 0 20px 20px 0;
}
.vision-card h3 { font-size: 1.15rem; font-weight: 800; }
.vision-card p { margin: 10px 0 0; opacity: 0.78; line-height: 1.7; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  background: rgba(255,255,255,0.08);
  border-radius: 24px; padding: 28px;
}
.stats-grid div { text-align: center; }
.stats-grid strong { display: block; font-size: 2.3rem; color: var(--orange); }
.stats-grid span { opacity: 0.8; }
.blog-band { background: #f7f8fb; }
.blog-page-body { background: #f6f8fc; }
.blog-hero {
  padding: 160px 0 64px;
  background:
    linear-gradient(135deg, rgba(10, 14, 39, 0.94), rgba(10, 14, 39, 0.72)),
    url('https://images.unsplash.com/photo-1529107386315-e1a2ed48a620?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
}
.blog-hero-copy {
  max-width: 760px;
  color: rgba(255,255,255,0.84);
  font-size: 1.08rem;
  line-height: 1.8;
}
.blog-page-main { padding-top: 48px; }
.featured-article:empty { display: none; }
.featured-article-card {
  background: var(--white);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.featured-article-media {
  min-height: 360px;
  background-size: cover;
  background-position: center;
}
.featured-article-copy {
  padding: 34px;
}
.featured-article-copy h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 900;
  margin: 18px 0 12px;
}
.featured-article-copy p {
  color: var(--muted);
  line-height: 1.9;
}
.featured-article-body {
  color: #40485c;
  line-height: 1.95;
  margin-top: 18px;
}
.featured-article-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.section-header {
  display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px;
}
.article-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 18px; background: var(--white); border-radius: 24px; box-shadow: 0 10px 30px rgba(10, 14, 39, 0.06);
  margin-bottom: 24px;
}
.category-pills { display: flex; gap: 10px; flex-wrap: wrap; }
.category-pill {
  border: 0; background: #eef1f6; color: #596178; border-radius: 999px;
  padding: 10px 16px; font-weight: 800; text-transform: uppercase; font-size: 0.74rem;
}
.category-pill.is-active { background: var(--orange); color: var(--white); }
.search-wrap {
  display: flex; align-items: center; gap: 10px; min-width: 280px;
  border: 1px solid var(--line); border-radius: 999px; background: #fbfcfe; padding: 10px 16px;
}
.search-wrap i { color: var(--muted); }
.search-wrap input {
  border: 0; outline: 0; background: transparent; width: 100%;
}
.article-card {
  background: var(--white);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 12px 34px rgba(10, 14, 39, 0.08);
  height: 100%;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.article-card:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(10, 14, 39, 0.14); }
.article-card img { width: 100%; height: 230px; object-fit: cover; }
.article-card-body { padding: 24px; }
.article-card-meta {
  color: var(--muted); font-size: 0.78rem; display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 12px;
  font-weight: 700;
}
.article-card h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 12px; }
.article-card p { color: var(--muted); line-height: 1.75; }
.article-card-footer {
  padding: 0 24px 24px; color: var(--orange); font-size: 0.8rem; font-weight: 800; text-transform: uppercase;
}
.article-badge {
  display: inline-block; padding: 8px 14px; border-radius: 999px; background: var(--orange);
  color: var(--white); font-size: 0.76rem; font-weight: 800; text-transform: uppercase;
}
.empty-state {
  padding: 54px 20px; text-align: center; border-radius: 24px; background: var(--white); color: var(--muted);
}
.cta-band { background: var(--orange); color: var(--white); padding: 90px 0; }
.cta-band h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; }
.cta-band p { max-width: 760px; margin: 16px auto 28px; opacity: 0.92; font-size: 1.08rem; }
.site-footer { background: var(--navy); color: rgba(255,255,255,0.84); padding: 72px 0 24px; }
.site-footer h3 { color: var(--white); font-size: 1rem; font-weight: 800; margin-bottom: 14px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-links a { text-decoration: none; }
.site-toast-root {
  position: fixed;
  top: 92px;
  right: 20px;
  z-index: 2000;
  display: grid;
  gap: 12px;
  width: min(360px, calc(100vw - 32px));
}
.site-toast {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(10, 14, 39, 0.96);
  color: var(--white);
  box-shadow: 0 22px 44px rgba(10, 14, 39, 0.22);
  transform: translateY(-10px);
  opacity: 0;
  transition: transform 0.26s ease, opacity 0.26s ease;
}
.site-toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}
.site-toast.is-error {
  background: #7a1324;
}
.site-toast-icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(253, 49, 1, 0.18);
  color: #ff946f;
  font-size: 1rem;
}
.site-toast.is-error .site-toast-icon {
  background: rgba(255,255,255,0.12);
  color: #ffd1d8;
}
.site-toast-body {
  font-size: 0.92rem;
  line-height: 1.6;
  font-weight: 600;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.14);
  display: flex; justify-content: space-between; gap: 16px; padding-top: 18px; font-size: 0.9rem;
}
.site-modal-header { background: var(--navy); color: var(--white); }
.article-modal-hero { position: relative; height: 320px; overflow: hidden; }
.article-modal-hero img { width: 100%; height: 100%; object-fit: cover; }
.article-modal-overlay {
  position: absolute; inset: 0; display: flex; justify-content: end; flex-direction: column;
  padding: 32px; color: var(--white); background: linear-gradient(180deg, transparent, rgba(10,14,39,0.88));
}
.article-modal-overlay h2 { margin: 14px 0 0; font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 900; }
.article-meta { display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-weight: 700; }
.article-summary {
  border-left: 4px solid var(--orange);
  background: var(--sand);
  border-radius: 0 18px 18px 0;
  padding: 16px 20px;
  font-style: italic;
  color: #3c4458;
}
.article-content { line-height: 1.9; color: #40485c; }

.admin-body { background: #f5f7fb; color: var(--ink); }
.admin-header {
  background: var(--navy); color: var(--white); padding: 18px 24px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}

.admin-header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sync-status {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: #6b7280;
  font-size: .78rem;
  font-weight: 700;
}

.sync-status.is-connected { color: #16803c; }
.sync-status.is-error { color: #c3361d; }
.admin-logo-wrap { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; }
.admin-logo { height: 42px; }
.admin-logo-wrap span { display: block; color: #f98b70; font-size: 0.78rem; text-transform: uppercase; font-weight: 800; letter-spacing: 0.12em; }
.admin-site-link {
  text-decoration: none; color: #dce1ec; background: rgba(255,255,255,0.08);
  padding: 12px 14px; border-radius: 14px; font-weight: 700;
}
.admin-layout { display: grid; grid-template-columns: 280px 1fr; min-height: calc(100vh - 78px); }
.admin-sidebar {
  background: #101833; padding: 28px 18px; display: flex; flex-direction: column; gap: 10px;
}
.admin-tab {
  border: 0; background: transparent; color: #c4cada; text-align: left;
  display: flex; align-items: center; gap: 12px; border-radius: 18px; padding: 14px 16px; font-weight: 700;
}
.admin-tab b {
  margin-left: auto; background: rgba(255,255,255,0.12); color: var(--white);
  border-radius: 999px; padding: 2px 8px; font-size: 0.75rem;
}
.admin-tab.is-active { background: var(--orange); color: var(--white); }
.admin-main { padding: 28px; }
.admin-panel { display: block; }
.admin-panel.is-hidden { display: none; }
.admin-panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 22px;
}
.admin-panel-head h1 { margin: 0; font-size: 2rem; font-weight: 900; }
.admin-panel-head p { margin: 6px 0 0; color: var(--muted); }
.admin-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 22px;
}
.admin-stats article, .admin-card, .admin-article-card, .contact-card {
  background: var(--white); border-radius: 24px; box-shadow: 0 12px 34px rgba(10,14,39,0.06);
}
.admin-stats article { padding: 24px; }
.admin-stats span { display: block; color: var(--muted); text-transform: uppercase; font-size: 0.78rem; font-weight: 800; margin-bottom: 8px; }
.admin-stats strong { font-size: 2.1rem; font-weight: 900; }
.admin-card { padding: 24px; }
.admin-card-head {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px;
}
.admin-card-head h2 { margin: 0; font-size: 1.2rem; font-weight: 800; }
.admin-card-head p { margin: 6px 0 0; color: var(--muted); font-size: 0.92rem; }
.link-button, .admin-button, .icon-button {
  border: 0; cursor: pointer; border-radius: 16px; font-weight: 800;
}
.link-button { background: transparent; color: var(--orange); }
.admin-button {
  background: var(--orange); color: var(--white); padding: 13px 18px;
}
.admin-button-dark { background: var(--navy); }
.admin-button-light { background: #eef1f6; color: #3f4962; }
.table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table th { color: var(--muted); text-transform: uppercase; font-size: 0.74rem; letter-spacing: 0.06em; }
.admin-filters {
  display: grid; grid-template-columns: minmax(260px,1fr) 230px 220px; gap: 14px; margin-bottom: 18px;
}
.search-field {
  display: flex; align-items: center; gap: 10px; background: #f7f9fc;
  border: 1px solid var(--line); border-radius: 18px; padding: 12px 14px;
}
.search-field input, .admin-filters select, .sheet-body input, .sheet-body select, .sheet-body textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; font: inherit; background: var(--white);
}
.search-field input { border: 0; padding: 0; background: transparent; outline: 0; }
.status-pill {
  display: inline-block; padding: 7px 12px; border-radius: 999px; font-size: 0.78rem; font-weight: 800;
}
.status-pending { background: #fff2cc; color: #9a6a00; }
.status-valid { background: #dff6e8; color: #1d7d42; }
.status-contact { background: #dcecff; color: #205cad; }
.status-reject { background: #ffe3e6; color: #b42334; }
.admin-articles-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px;
}
.admin-article-card img { width: 100%; height: 190px; object-fit: cover; }
.admin-article-card-body { padding: 20px; }
.admin-article-card-actions {
  display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 0 20px 20px;
}
.action-inline {
  border: 0; background: transparent; color: #49516a; font-weight: 800;
}
.action-inline.danger { color: #c0394a; }
.contacts-list { display: grid; gap: 16px; }
.contact-card { padding: 22px; }
.contact-card-head {
  display: flex; justify-content: space-between; gap: 14px; align-items: start; margin-bottom: 12px;
}
.contact-card p { margin: 0; color: var(--muted); line-height: 1.8; }
.sheet {
  position: fixed; inset: 0; background: rgba(10,14,39,0.56); backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 1000;
}
.sheet.hidden { display: none; }
.sheet-dialog {
  width: min(920px, 100%); max-height: 90vh; overflow: auto; background: var(--white);
  border-radius: 28px; box-shadow: var(--shadow);
}
.sheet-dialog-small { width: min(620px, 100%); }
.sheet-head {
  background: var(--navy); color: var(--white); padding: 22px 24px;
  display: flex; justify-content: space-between; align-items: center;
}
.sheet-head h2 { margin: 0; font-weight: 900; font-size: 1.2rem; }
.icon-button {
  width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.08); color: var(--white);
}
.sheet-body { padding: 24px; display: grid; gap: 16px; }
.sheet-body label { display: grid; gap: 8px; font-weight: 700; }
.two-col { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.sheet-actions { display: flex; justify-content: end; gap: 12px; padding-top: 10px; }
.empty-admin { padding: 34px; text-align: center; color: var(--muted); background: var(--white); border-radius: 24px; }

@media (max-width: 991px) {
  .pillar-strip { margin-top: 0; padding-top: 24px; }
  .surface-card { border-radius: 22px; }
  .about-photo-main,
  .about-photo-side:first-child,
  .about-photo-side:last-child {
    min-height: 0;
  }
  .stats-grid, .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .section-header, .article-toolbar, .admin-panel-head, .admin-card-head { flex-direction: column; align-items: stretch; }
  .search-wrap { min-width: 0; }
  .featured-article-copy { padding: 26px; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { flex-direction: row; overflow-x: auto; }
  .admin-tab { white-space: nowrap; }
  .admin-filters, .two-col { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .section-space { padding: 72px 0; }
  .hero-content { padding-top: 110px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .quote-card p { font-size: 0.686rem; }
  .site-toast-root { top: 82px; right: 16px; width: calc(100vw - 24px); }
  .footer-bottom { flex-direction: column; }
  .admin-main { padding: 18px; }
  .admin-stats { grid-template-columns: 1fr; }
}
