:root {
  --bg: #f6f8fb;
  --card: #ffffff;
  --text: #172033;
  --muted: #5f6b7a;
  --brand: #145c43;
  --brand-2: #20a36b;
  --line: #dfe6ef;
  --soft: #eaf7f0;
  --accent: #fff7df;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.topbar {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
}

.logo {
  font-weight: 800;
  color: var(--brand);
  font-size: 18px;
}

.logo span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.nav-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--soft);
  color: var(--brand);
}

.hero {
  padding: 70px 0 40px;
  background: linear-gradient(135deg, #eefbf4 0%, #ffffff 55%, #f6f8fb 100%);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
}

.badge {
  display: inline-block;
  background: var(--soft);
  color: var(--brand);
  padding: 7px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 14px;
}

h1 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
  margin: 0 0 18px;
}

h2 {
  font-size: 30px;
  margin: 0 0 14px;
}

h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

p { margin: 0 0 14px; }

.lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 720px;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.btn {
  display: inline-block;
  background: var(--brand);
  color: white;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 700;
  border: 1px solid var(--brand);
}

.btn.secondary {
  background: white;
  color: var(--brand);
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.section { padding: 44px 0; }

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

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

.checklist {
  padding-left: 22px;
  margin: 14px 0 0;
}

.checklist li { margin-bottom: 9px; }

.kpi-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.kpi {
  background: var(--soft);
  border-radius: 14px;
  padding: 14px;
}

.kpi strong {
  display: block;
  color: var(--brand);
  font-size: 24px;
}

.page-header {
  padding: 48px 0 26px;
  background: white;
  border-bottom: 1px solid var(--line);
}

.breadcrumb {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 10px;
}

.screenshot-box {
  min-height: 460px;
  border: 3px dashed #b8c5d6;
  background: #fbfdff;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  color: var(--muted);
  text-align: center;
  margin-top: 18px;
  overflow: hidden;
}

.screenshot-box img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--line);
}

.note {
  background: var(--accent);
  border: 1px solid #f1dfaa;
  border-radius: 16px;
  padding: 16px;
  color: #594514;
}

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

table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 14px;
  overflow: hidden;
}

th, td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

th { background: var(--soft); color: var(--brand); }

.footer {
  padding: 32px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
  background: white;
}

.portfolio-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.portfolio-card .number {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-weight: 800;
}

@media (max-width: 800px) {
  .hero-grid, .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .nav { align-items: flex-start; flex-direction: column; }
  .nav-links { justify-content: flex-start; }
  .screenshot-box { min-height: 320px; }
}


/* Updated project task page layout */
.project-layout {
  display: grid;
  gap: 24px;
}

.info-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: 22px;
  align-items: stretch;
}

.info-block {
  min-height: 300px;
}

.mini-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 20px;
}

.screenshot-section {
  margin-top: 6px;
}

.screenshot-box-large {
  min-height: 760px;
  font-size: 18px;
}

@media (max-width: 900px) {
  .info-grid,
  .mini-grid {
    grid-template-columns: 1fr;
  }

  .screenshot-box-large {
    min-height: 560px;
  }
}

/* Clean project screenshot placeholder */
.screenshot-clean { padding: 0; background: transparent; border: 0; box-shadow: none; }
.screenshot-empty {
  position: relative;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
  padding: 0;
  background: #ffffff;
}
.screenshot-title {
  width: 100%;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  font-size: 22px;
  font-weight: 800;
  color: var(--brand);
  background: var(--soft);
  border-radius: 17px 17px 0 0;
}


/* Updated clean project page layout */
.step-list {
  margin: 12px 0 0 20px;
  padding: 0;
  line-height: 1.8;
}
.step-list li {
  margin-bottom: 10px;
}
.screenshot-clean {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.screenshot-box-large {
  min-height: 720px;
  border: 2px dashed #cbd5e1;
  border-radius: 24px;
  background: #ffffff;
  overflow: hidden;
}
.screenshot-title {
  width: 100%;
  padding: 18px 24px;
  font-weight: 800;
  color: #0f172a;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}
.screenshot-empty {
  display: block;
}
@media (max-width: 800px) {
  .screenshot-box-large { min-height: 480px; }
}

/* Reports page layout */
.report-layout {
  display: grid;
  gap: 28px;
}

.report-checklist-card {
  max-width: 100%;
}

.report-checklist {
  columns: 2;
  column-gap: 42px;
  font-size: 18px;
}

.report-screenshot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
}

.report-card-large h2 {
  margin-bottom: 8px;
}

.report-card-large p {
  color: var(--muted);
  margin-bottom: 18px;
}

.report-screenshot-box {
  min-height: 620px;
  border: 2px dashed #cbd5e1;
  border-radius: 24px;
  background: #ffffff;
  overflow: hidden;
}

.report-screenshot-box .screenshot-title {
  width: 100%;
  padding: 18px 24px;
  font-weight: 800;
  color: #0f172a;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

@media (max-width: 800px) {
  .report-checklist { columns: 1; }
  .report-screenshot-box { min-height: 460px; }
}

/* Screenshot image upload support */
.screenshot-img {
  display: block;
  width: calc(100% - 36px);
  max-width: 100%;
  min-height: 560px;
  margin: 18px auto;
  object-fit: contain;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #ffffff;
}
.report-img {
  min-height: 480px;
}
.screenshot-img[src=""],
.screenshot-img:not([src]) {
  display: none;
}
@media (max-width: 800px) {
  .screenshot-img { min-height: 320px; }
  .report-img { min-height: 300px; }
}

/* Home page side-by-side layout */
.home-hero {
  padding: 56px 0;
}
.home-side-by-side {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: 24px;
  align-items: stretch;
}
.home-side-by-side .card {
  height: 100%;
}
.snapshot-card .kpi-list {
  grid-template-columns: repeat(2, 1fr);
}
.snapshot-card .kpi:last-child {
  grid-column: 1 / -1;
}
@media (max-width: 950px) {
  .home-side-by-side {
    grid-template-columns: 1fr;
  }
}

/* Dashboard analysis table */
.dashboard-analysis-section {
  padding-top: 0;
}
.analysis-card h2 {
  margin-bottom: 14px;
}
.analysis-table th,
.analysis-table td {
  vertical-align: top;
  line-height: 1.6;
}
.analysis-table th:nth-child(2),
.analysis-table td:nth-child(2) {
  white-space: nowrap;
  text-align: right;
}
.dashboard-review-note {
  margin-top: 22px;
}
.dashboard-review-note p {
  font-size: 18px;
  line-height: 1.75;
  color: var(--muted);
}
.highlight-note {
  background: var(--soft);
  border-left: 5px solid var(--brand);
  padding: 14px 16px;
  border-radius: 12px;
  color: var(--text) !important;
}
@media (max-width: 800px) {
  .analysis-table th:nth-child(2),
  .analysis-table td:nth-child(2) {
    text-align: left;
  }
}


/* Decision rule, analysis, and result updates */
.decision-rule-card {
  border-left: 5px solid var(--brand);
}
.analysis-card,
.result-card,
.monthly-summary-document,
.services-intro {
  margin-top: 0;
}
.result-card {
  background: #f8fffb;
  border-color: #bfe8d3;
}
.analysis-card p,
.result-card p,
.monthly-summary-document p,
.monthly-summary-document li {
  font-size: 17px;
  line-height: 1.75;
}
.analysis-mini,
.result-mini {
  margin-top: 18px;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #ffffff;
}
.result-mini {
  background: #f8fffb;
  border-color: #bfe8d3;
}
.screenshot-img {
  max-height: 680px;
  object-fit: contain;
  background: #ffffff;
}
.report-img {
  max-height: 620px;
}
.services-intro {
  margin-bottom: 22px;
}
.services-table td,
.services-table th {
  vertical-align: top;
}
.monthly-summary-document h3 {
  margin-top: 22px;
  color: var(--brand);
}


/* Final portfolio updates */
.service-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}
.service-card h2 {
  margin-bottom: 10px;
  color: #064e3b;
}
.service-card p {
  margin: 0;
  color: #334155;
  line-height: 1.7;
}
.screenshot-box-large,
.report-screenshot-box {
  overflow: hidden;
}
.screenshot-img,
.report-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 780px;
  object-fit: contain;
  object-position: top center;
  background: #fff;
}
.report-screenshot-box .screenshot-img {
  max-height: 680px;
}
.monthly-summary-document h3 {
  margin-top: 24px;
}
@media (max-width: 800px) {
  .service-card-grid { grid-template-columns: 1fr; }
}

.service-card p strong { color: #005c45; }
.service-card p { margin: 0.55rem 0; }

/* Resume PDF page */
.resume-viewer {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: #ffffff;
}
.resume-viewer object {
  display: block;
  width: 100%;
  height: 900px;
}
@media (max-width: 800px) {
  .resume-viewer object { height: 620px; }
}


/* Certificates page */
.certificate-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
.certificate-card h2 {
  color: var(--brand);
}
.certificate-image-box {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  overflow: hidden;
}
.certificate-image-box img {
  display: block;
  width: 100%;
  height: auto;
}
@media (min-width: 1000px) {
  .certificate-grid {
    grid-template-columns: 1fr;
  }
}
