:root {
  --ink: #172033;
  --muted: #667085;
  --brand: #ce4a3b;
  --brand-dark: #a9362b;
  --gold: #e7a35a;
  --paper: #f7f8fa;
  --line: rgba(23, 32, 51, 0.12);
}

* { box-sizing: border-box; }

html { font-size: 16px; }

body {
  margin: 0;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  background: #fff;
}

a { color: var(--brand-dark); text-decoration: none; }
a:hover { color: var(--brand); }

.site-header { position: sticky; top: 0; z-index: 10; background: #fff; }
.navbar-brand { color: var(--ink); }
.nav-link { color: var(--ink); font-weight: 600; }
.navbar-dark .navbar-brand,
.navbar-dark .nav-link {
  color: rgba(255,255,255,.86);
}

.navbar-dark .nav-link:hover,
.navbar-dark .nav-link:focus {
  color: #fff;
}

.btn-brand {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  font-weight: 700;
}

.btn-brand:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: #fff;
}

.hero {
  padding: 96px 0 72px;
  background:
    linear-gradient(135deg, rgba(206, 74, 59, .08), rgba(255, 255, 255, 0) 42%),
    linear-gradient(180deg, #fff 0%, #f8f9fb 100%);
  border-bottom: 1px solid var(--line);
}

.hero h1,
.page-hero h1,
.mobile-hero h1 {
  font-size: clamp(2.4rem, 7vw, 4.8rem);
  line-height: 1.02;
  margin: 0 0 22px;
  font-weight: 800;
}

.hero p,
.page-hero p,
.mobile-hero p {
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.75;
  max-width: 720px;
}

.eyebrow {
  display: inline-block;
  color: var(--brand-dark);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .78rem;
  margin-bottom: 14px;
}

.hero-panel,
.info-panel,
.message-detail,
.login-card,
.stat-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 18px 50px rgba(23, 32, 51, .08);
}

.hero-panel {
  padding: 38px;
  min-height: 260px;
  display: grid;
  align-content: center;
}

.hero-panel strong { font-size: 1.8rem; }
.hero-panel p { margin: 16px 0 0; color: var(--muted); line-height: 1.7; }

.hero-logo-panel {
  min-height: 280px;
  display: grid;
  place-items: center;
}

.hero-logo-panel img {
  width: min(280px, 72vw);
  height: auto;
  display: block;
  filter: drop-shadow(0 18px 28px rgba(206, 74, 59, .18));
}

.section { padding: 72px 0; }
.section-soft { background: var(--paper); }
.section-heading { margin-bottom: 28px; }
.section-heading h2 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; }
.section-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.section-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-weight: 800;
  white-space: nowrap;
}

.section-link:hover {
  border-color: rgba(206, 74, 59, .45);
  color: var(--brand-dark);
}
.narrow { max-width: 860px; }

.page-hero {
  padding: 72px 0 56px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.about-page-shell {
  max-width: 1120px;
}

.about-main-section {
  background: #fff;
}

.about-intro {
  display: grid;
  grid-template-columns: minmax(180px, 280px) minmax(0, 1fr);
  gap: 44px;
  align-items: center;
}

.about-logo {
  display: flex;
  justify-content: center;
}

.about-logo img {
  width: min(100%, 260px);
  height: auto;
  display: block;
}

.content-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.content-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.content-card h2,
.content-card h3 {
  font-size: 1.35rem;
  margin: 10px 0;
  font-weight: 800;
}

.content-card h2 a,
.content-card h3 a {
  color: inherit;
}

.content-card h2 a:hover,
.content-card h3 a:hover {
  color: var(--brand-dark);
}

.post-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.post-search label {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-weight: 800;
}

.post-search-meta {
  margin-bottom: 24px;
  color: var(--muted);
  font-weight: 700;
}

.post-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 34px;
}

.post-pagination a,
.post-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
}

.post-pagination a:hover,
.post-pagination .active {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.post-pagination .disabled {
  color: var(--muted);
  background: var(--paper);
  opacity: .72;
}

.empty-state {
  margin: 22px 0 30px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.empty-state h2 {
  margin: 0 0 8px;
  font-size: 1.45rem;
  font-weight: 800;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
}

.meta {
  color: var(--muted);
  font-size: .92rem;
}

.rich-text {
  color: #2c3446;
  font-size: 1.08rem;
  line-height: 1.85;
}

.services-content {
  max-width: 1180px;
}

.services-intro {
  max-width: 880px;
  margin-bottom: 34px;
}

.service-feature {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 24px;
  align-items: start;
  margin: 24px 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(23, 32, 51, .055);
}

.service-feature-alt .service-visual {
  order: 0;
}

.service-visual {
  position: relative;
  width: 76px;
  height: 76px;
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(206,74,59,.12), rgba(23,32,51,.04)),
    #fff;
  border: 1px solid rgba(206, 74, 59, .16);
}

.service-visual::before,
.service-visual::after {
  content: "";
  position: absolute;
  inset: 0;
}

.service-visual-awareness::before {
  background:
    radial-gradient(circle at 50% 50%, transparent 0 7px, var(--brand) 8px 10px, transparent 11px),
    radial-gradient(circle at 50% 50%, transparent 0 21px, rgba(206,74,59,.34) 22px 24px, transparent 25px),
    radial-gradient(circle at 50% 50%, transparent 0 34px, rgba(231,163,90,.38) 35px 37px, transparent 38px);
}

.service-visual-awareness::after {
  background:
    linear-gradient(var(--brand), var(--brand)) 50% 18% / 2px 14px no-repeat,
    linear-gradient(var(--brand), var(--brand)) 50% 82% / 2px 14px no-repeat,
    linear-gradient(90deg, var(--brand), var(--brand)) 18% 50% / 14px 2px no-repeat,
    linear-gradient(90deg, var(--brand), var(--brand)) 82% 50% / 14px 2px no-repeat;
}

.service-visual-family::before {
  background:
    radial-gradient(circle at 38% 34%, var(--brand) 0 8px, transparent 9px),
    radial-gradient(circle at 62% 34%, var(--gold) 0 8px, transparent 9px),
    radial-gradient(circle at 50% 62%, #44546a 0 7px, transparent 8px),
    radial-gradient(ellipse at 38% 72%, rgba(206,74,59,.76) 0 19px, transparent 20px),
    radial-gradient(ellipse at 62% 72%, rgba(231,163,90,.74) 0 19px, transparent 20px),
    radial-gradient(ellipse at 50% 86%, rgba(68,84,106,.80) 0 16px, transparent 17px);
}

.service-visual-education::before {
  background:
    linear-gradient(90deg, transparent 12%, rgba(206,74,59,.78) 13% 48%, transparent 49% 51%, rgba(231,163,90,.72) 52% 87%, transparent 88%) 50% 54% / 76% 44% no-repeat,
    linear-gradient(90deg, rgba(23,32,51,.55), rgba(23,32,51,.55)) 50% 76% / 70% 3px no-repeat,
    radial-gradient(circle at 50% 30%, rgba(206,74,59,.16) 0 20px, transparent 21px);
  clip-path: polygon(10% 28%, 50% 42%, 90% 28%, 90% 72%, 50% 84%, 10% 72%);
}

.service-visual-corporate::before {
  background:
    linear-gradient(var(--brand), var(--brand)) 50% 28% / 2px 34px no-repeat,
    linear-gradient(90deg, var(--brand), var(--brand)) 25% 62% / 50% 2px no-repeat,
    radial-gradient(circle at 50% 24%, var(--brand) 0 9px, transparent 10px),
    radial-gradient(circle at 25% 66%, var(--gold) 0 9px, transparent 10px),
    radial-gradient(circle at 50% 66%, #44546a 0 9px, transparent 10px),
    radial-gradient(circle at 75% 66%, rgba(206,74,59,.70) 0 9px, transparent 10px);
}

.service-visual-approach::before {
  background:
    conic-gradient(from 30deg, rgba(206,74,59,.84), rgba(231,163,90,.64), rgba(68,84,106,.62), rgba(206,74,59,.84));
  width: 50px;
  height: 50px;
  inset: calc(50% - 25px) auto auto calc(50% - 25px);
  border-radius: 50%;
  mask: radial-gradient(circle, transparent 0 14px, #000 15px);
}

.service-visual-approach::after {
  background:
    radial-gradient(circle at 50% 50%, var(--brand) 0 18px, transparent 19px),
    linear-gradient(90deg, rgba(23,32,51,.38), rgba(23,32,51,.38)) 50% 50% / 72% 2px no-repeat,
    linear-gradient(rgba(23,32,51,.38), rgba(23,32,51,.38)) 50% 50% / 2px 72% no-repeat;
}

.service-feature h2 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: clamp(1.35rem, 2.3vw, 1.9rem);
  font-weight: 800;
}

.featured-image {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 32px;
}

.books-hero {
  background:
    linear-gradient(rgba(247,245,240,.92), rgba(247,245,240,.96)),
    url("https://images.unsplash.com/photo-1521587760476-6c12a4b040da?auto=format&fit=crop&w=1600&q=80") center/cover;
}

.books-section {
  border-top: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(206,74,59,.04) 0, transparent 26%, transparent 74%, rgba(206,74,59,.04) 100%),
    #fff;
}

.author-profile {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 42px;
  align-items: start;
  margin-bottom: 70px;
  padding: 34px;
  border: 1px solid rgba(23, 32, 51, .10);
  border-radius: 8px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 20px 50px rgba(62, 45, 31, .10);
}

.author-photo {
  position: sticky;
  top: 96px;
  padding: 16px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(206,74,59,.10), rgba(255,255,255,.88)),
    #fff;
}

.author-photo img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 18px 36px rgba(23, 32, 51, .18);
}

.author-bio h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 800;
  margin-bottom: 20px;
}

.books-heading {
  margin-bottom: 30px;
}

.book-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
}

.book-card {
  position: relative;
  display: grid;
  grid-template-columns: 250px 1fr auto;
  gap: 34px;
  align-items: start;
  border: 1px solid rgba(23, 32, 51, .10);
  border-radius: 8px;
  padding: 34px 34px 42px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,252,246,.98));
  box-shadow: 0 18px 44px rgba(62, 45, 31, .10);
  overflow: hidden;
}

.book-card::after {
  content: "";
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 20px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(23,32,51,.10), rgba(206,74,59,.20), rgba(23,32,51,.10));
}

.book-cover-wrap {
  position: relative;
  display: grid;
  place-items: center;
  padding: 18px 14px 24px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(206,74,59,.10), rgba(255,255,255,.78)),
    #fff;
}

.book-cover-wrap::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(62, 45, 31, .20);
  filter: blur(8px);
}

.book-card img {
  position: relative;
  z-index: 1;
  width: 200px;
  min-height: 300px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 20px 36px rgba(23, 32, 51, .24);
}

.book-card h2 {
  font-size: clamp(1.65rem, 2.7vw, 2.45rem);
  font-weight: 800;
  margin-bottom: 10px;
}

.book-card p {
  color: #3b4456;
  line-height: 1.65;
  margin-bottom: 8px;
}

.book-copy {
  padding-top: 6px;
}

.book-publisher {
  display: inline-block;
  color: var(--brand-dark);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.book-author {
  margin-top: 14px;
}

.book-description {
  margin-top: 18px;
}

.book-description p {
  margin-bottom: 12px;
}

.book-card .book-action {
  justify-self: end;
  white-space: nowrap;
  margin-top: 8px;
}

.mobile-hero {
  padding: 76px 0 64px;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 48%, rgba(206,74,59,.10), rgba(206,74,59,0) 34%),
    linear-gradient(120deg, rgba(255,255,255,.98), rgba(247,248,250,.94)),
    #fff;
  border-bottom: 1px solid var(--line);
}

.mobile-hero h1 {
  max-width: 680px;
}

.store-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.store-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  flex: 0 0 auto;
}

.mobile-showcase {
  display: grid;
  place-items: center;
  position: relative;
  min-height: 430px;
  margin-left: -18px;
}

.mobile-showcase::before {
  content: "";
  position: absolute;
  width: min(420px, 78vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(206, 74, 59, .08);
  border: 1px solid rgba(206, 74, 59, .10);
}

.mobile-app-img {
  position: relative;
  width: min(100%, 390px);
  filter: drop-shadow(0 24px 32px rgba(23, 32, 51, .12));
}

.mobile-features-section {
  background: #fff;
}

.mobile-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.mobile-feature-grid article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.mobile-feature-grid span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: rgba(139, 94, 47, .12);
  color: var(--brand-dark);
  font-weight: 800;
}

.mobile-feature-grid h3,
.report-list h3 {
  font-size: 1.15rem;
  font-weight: 800;
}

.mobile-feature-grid p,
.mobile-reports-section p,
.report-list p {
  color: var(--muted);
  line-height: 1.7;
}

.report-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.report-list div {
  padding: 20px;
  border: 1px solid rgba(23, 32, 51, .10);
  border-radius: 8px;
  background: rgba(255,255,255,.78);
}

.report-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: 8px;
  background: rgba(206, 74, 59, .08);
  color: var(--brand);
}

.report-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-form label,
.admin-form label,
.login-card label {
  margin-top: 14px;
  margin-bottom: 6px;
  font-weight: 700;
}

.info-panel,
.message-detail { padding: 28px; }
.info-panel h2 { font-size: 1.15rem; font-weight: 800; margin-top: 18px; }

.admin-body { background: #f4f6f8; }
.admin-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.admin-title h1 { margin: 0; font-size: 2rem; font-weight: 800; }
.admin-table,
.admin-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.admin-image-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8f9fb;
}

.admin-image-preview img {
  width: 92px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(23, 32, 51, .10);
}

.admin-image-preview span {
  color: var(--muted);
  font-size: .92rem;
}

.stat-card { padding: 24px; }
.stat-card span { display: block; color: var(--muted); font-weight: 700; }
.stat-card strong { display: block; font-size: 2.3rem; margin-top: 8px; }

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: var(--paper);
  padding: 20px;
}

.login-card {
  width: min(100%, 420px);
  padding: 30px;
}

.login-card h1 { font-size: 1.8rem; font-weight: 800; margin-bottom: 22px; }

@media (max-width: 768px) {
  .hero,
  .page-hero,
  .mobile-hero,
  .section { padding: 52px 0; }

  .book-card {
    grid-template-columns: 1fr;
    padding: 24px 20px 38px;
  }
  .book-cover-wrap {
    justify-self: start;
    width: min(100%, 250px);
  }
  .book-card img { width: 180px; min-height: 270px; }
  .book-card .book-action { justify-self: start; }
  .mobile-feature-grid,
  .report-list {
    grid-template-columns: 1fr;
  }
  .post-search {
    grid-template-columns: 1fr;
  }
  .mobile-showcase {
    min-height: 320px;
    margin-left: 0;
    margin-top: 12px;
  }
  .mobile-app-img {
    width: min(100%, 300px);
  }
  .author-profile {
    grid-template-columns: 1fr;
    padding: 22px;
  }
  .about-intro {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .about-logo {
    justify-content: flex-start;
  }
  .about-logo img {
    width: min(100%, 220px);
  }
  .author-photo {
    position: static;
    width: min(100%, 320px);
  }
  .service-feature {
    grid-template-columns: 1fr;
    padding: 18px;
  }
  .section-heading-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .service-feature-alt .service-visual {
    order: 0;
  }
  .admin-title { align-items: flex-start; flex-direction: column; }
}
