/* ===== BLOG LAYOUT STYLES ===== */
.card-shadow {
  box-shadow: 0 10px 25px -5px rgba(0, 89, 179, 0.15),
    0 10px 10px -5px rgba(0, 89, 179, 0.08);
}

.checkmark-container {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem auto;
}

.responsive-card {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 1280px !important;
  box-sizing: border-box !important;
}

@media (max-width: 767px) {
  .responsive-card {
    max-width: 98vw !important;
    border-radius: 1.25rem !important;
    margin-left: 1vw !important;
    margin-right: 1vw !important;
  }
}

/* ===== PROSE CONTENT STYLES ===== */
.prose {
  text-align: left !important;
  font-size: 1.08rem;
  line-height: 1.8;
  color: #222;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 0.5rem;
}
.prose h1,
.prose h2,
.prose h3 {
  color: #0a3a6a;
  font-weight: 700;
  margin-top: 2.2em;
  margin-bottom: 0.7em;
  line-height: 1.3;
}
.prose h1 {
  font-size: 2.1rem;
}
.prose h2 {
  text-align: center;
  font-size: 1.4rem;
}
.prose h3 {
  font-size: 1.15rem;
}
.prose .table-blog-wrapper h3 {
  font-size: 1.4rem;
}
.prose p,
.prose ul,
.prose ol {
  margin-bottom: 1.1em;
}
.prose ul,
.prose ol {
  padding-left: 1.5em;
}
.prose ul {
  list-style-type: disc !important;
  list-style-position: outside !important;
}
.prose ol {
  list-style-type: decimal !important;
  list-style-position: outside !important;
}
.prose li {
  margin-bottom: 0.5em;
}
.prose strong:not(.cbp-color) {
  color: #1f2937;
}

.prose a {
  color: #1769aa;
  text-decoration: underline;
}

.prose code {
  background: #f3f4f6;
  padding: 0.1em 0.3em;
  border-radius: 0.2em;
  font-size: 0.98em;
}

/* ===== BUTTON STYLES ===== */
.btn-primary {
  background-color: #0059b3 !important;
  color: white !important;
  border: none !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-primary:hover {
  background-color: rgb(
    59,
    130,
    246
  ) !important; /* Lighter blue-500 instead of darker */
  color: white !important;
  transform: translateY(-2px);
  text-decoration: none !important;
}

.btn-primary:visited,
.btn-primary:focus {
  color: white !important;
  background-color: #0059b3 !important;
  outline: none !important;
}

/* ===== TABLE STYLES ===== */
.table-blog {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  table-layout: auto;
  box-sizing: border-box;
}

.table-blog th,
.table-blog td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-top: 1px solid #d1d5db;
  border-left: 1px solid #d1d5db;
  box-sizing: border-box;
  vertical-align: top;
  font-size: 1.15rem;
}

.table-blog th {
  background: #eff6ff;
  color: #1e3a8a;
  font-weight: 600;
}

.table-blog th:first-child,
.table-blog td:first-child {
  border-left: none;
}

.table-blog tr:first-child th,
.table-blog tr:first-child td {
  border-top: none;
}

.table-blog thead th:first-child {
  border-top-left-radius: 0.5rem;
}

.table-blog thead th:last-child {
  border-top-right-radius: 0.5rem;
}

.table-blog tbody tr:last-child td:first-child {
  border-bottom-left-radius: 0.5rem;
}

.table-blog tbody tr:last-child td:last-child {
  border-bottom-right-radius: 0.5rem;
}

/* Table responsive styles */
@media (max-width: 768px) {
  .table-blog th,
  .table-blog td {
    padding: 0.5rem 0.4rem;
    font-size: 0.9rem;
    word-wrap: break-word;
    hyphens: auto;
    line-height: 1.4;
    white-space: normal;
  }

  .table-blog th:first-child,
  .table-blog td:first-child {
    width: 25%;
    min-width: 80px;
  }

  .table-blog th:nth-child(2),
  .table-blog td:nth-child(2),
  .table-blog th:nth-child(3),
  .table-blog td:nth-child(3) {
    width: 37.5%;
  }
}

@media (max-width: 480px) {
  .table-blog th,
  .table-blog td {
    padding: 0.4rem 0.3rem;
    font-size: 0.85rem;
  }
}

/* ===== PROCESS STEPS STYLES ===== */
.process-wrapper {
  margin: 3em 0;
  padding: 2em 0;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.process-steps {
  display: flex;
  justify-content: space-between;
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
}

.process-steps::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #cbd5e1;
  transform: translateY(-50%);
  z-index: 1;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 18%;
  position: relative;
  z-index: 2;
  background-color: #ffffff;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 2px solid #0a3a6a;
  color: #0a3a6a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  transition: all 0.3s ease;
}

.step:hover .step-number {
  background-color: #0a3a6a;
  color: #ffffff;
  transform: scale(1.1);
}

.step-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1769aa;
  line-height: 1.4;
}

/* ===== MOBILE RESPONSIVE PROCESS STEPS ===== */
@media (max-width: 768px) {
  .process-steps {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .process-steps::before {
    display: none; /* Hide horizontal line on mobile */
  }

  .step {
    width: 100% !important;
    max-width: 300px !important;
    flex-direction: row !important;
    text-align: left !important;
    padding: 1rem !important;
    background-color: #f8fafc !important;
    border-radius: 0.75rem !important;
    border: 1px solid #e2e8f0 !important;
    margin-bottom: 0.5rem !important;
    margin-top: 0 !important;
  }

  .step:last-child {
    margin-bottom: 0 !important;
  }

  /* Override any paragraph margins from Markdown processing */
  .process-wrapper p {
    margin: 0 !important;
    padding: 0 !important;
  }

  .step-number {
    margin-bottom: 0;
    margin-right: 1rem;
    flex-shrink: 0;
  }

  .step-title {
    font-size: 1rem;
    margin: 0;
    align-self: center;
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  .step {
    padding: 0.75rem;
  }

  .step-number {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    margin-right: 0.75rem;
  }

  .step-title {
    font-size: 0.9rem;
  }
}

/* ===== PORTFOLIO SECTION SPACING ===== */
#portfolio {
  padding-top: 1em !important;
  padding-bottom: 3rem !important;
}

#portfolio .mb-16 {
  margin-bottom: 2.5rem !important;
}
