/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #444441;
  background: #F8F8F7;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #185FA5; }
a:hover { color: #042C53; }

/* Layout */
.site-wrapper { min-height: 100vh; display: flex; flex-direction: column; }
.site-main { flex: 1; }
.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 32px; }
.content-grid {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 48px;
  padding: 48px 0 72px;
}

/* Header */
.site-header {
  background: linear-gradient(180deg, #F4F8FD 0%, #FFFFFF 100%);
  border-bottom: 1px solid #D9E4F2;
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 113px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.site-logo {
  font-size: 24px;
  font-weight: 700;
  color: #042C53;
  text-decoration: none;
  display: flex;
  align-items: center;
  padding-right: 0;
  margin-right: auto;
  white-space: nowrap;
}
.site-logo:hover { color: #185FA5; }
.site-nav { display: flex; align-items: center; margin-left: auto; flex-wrap: wrap; }
.site-nav a {
  font-size: 15px;
  color: #444441;
  text-decoration: none;
  padding: 0 20px;
  display: flex;
  align-items: center;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.site-nav a:last-child { padding-right: 0; }
.site-nav a:hover,
.site-nav a.current { color: #185FA5; border-bottom-color: #185FA5; }

/* Breadcrumb */
.ap-breadcrumb {
  background: #E8F0FB !important;
  border-bottom: 1px solid #B5D4F4 !important;
  padding: 9px 0;
  font-size: 12px;
  color: #888780;
}
.ap-breadcrumb a { color: #185FA5; text-decoration: none; }
.ap-breadcrumb a:hover { text-decoration: underline; }
.ap-breadcrumb .sep { margin: 0 7px; color: #B4B2A9; }

/* Entry header */
.entry-header {
  padding-bottom: 24px;
  margin-bottom: 28px;
  border-bottom: 1px solid #D3D1C7;
}
.entry-category {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #185FA5;
  margin-bottom: 10px;
}
.entry-title {
  font-size: 31px;
  font-weight: 700;
  color: #042C53;
  line-height: 1.28;
  margin-bottom: 14px;
}
.entry-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #888780;
}
.entry-tag {
  background: #E6F1FB;
  color: #185FA5;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  text-decoration: none;
}
.entry-tag:hover { background: #B5D4F4; color: #042C53; }

/* Highlight box */
.highlight-box {
  background: #E6F1FB;
  border-left: 3px solid #185FA5;
  border-radius: 0 6px 6px 0;
  padding: 16px 20px;
  margin-bottom: 28px;
  color: #0C447C;
  font-size: 15px;
  line-height: 1.7;
}
.highlight-box strong {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #185FA5;
  margin-bottom: 6px;
}
.highlight-box a { color: #185FA5; }

/* Entry content */
.entry-content { font-size: 16px; line-height: 1.8; color: #444441; }
.entry-content p { margin-bottom: 20px; }
.entry-content h2 {
  font-size: 22px;
  font-weight: 700;
  color: #042C53;
  margin: 36px 0 12px;
  line-height: 1.3;
}
.entry-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: #185FA5;
  margin: 24px 0 8px;
}
.entry-content h4 {
  font-size: 15px;
  font-weight: 700;
  color: #2C2C2A;
  margin: 18px 0 6px;
}
.entry-content a { color: #185FA5; text-decoration: underline; }
.entry-content a:hover { color: #042C53; }
.entry-content ul,
.entry-content ol { margin: 0 0 20px 24px; }
.entry-content li { margin-bottom: 6px; }
.entry-content blockquote {
  background: #E6F1FB;
  border-left: 3px solid #185FA5;
  border-radius: 0 6px 6px 0;
  padding: 16px 20px;
  margin: 24px 0;
  color: #0C447C;
  font-style: normal;
}
.entry-content blockquote p { color: #0C447C; margin-bottom: 0; }

/* Tables */
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 24px 0;
  border: 1px solid #B5D4F4;
  border-radius: 6px;
  overflow: hidden;
}
.entry-content table thead th {
  background: #E6F1FB;
  color: #185FA5;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: left;
  padding: 10px 18px;
  border-bottom: 1px solid #B5D4F4;
}
.entry-content table tbody td {
  padding: 12px 18px;
  border-bottom: 1px solid #D3D1C7;
  color: #444441;
  vertical-align: top;
}
.entry-content table tbody td:first-child {
  font-weight: 700;
  color: #042C53;
  white-space: nowrap;
}
.entry-content table tbody tr:last-child td { border-bottom: none; }
.entry-content table tbody tr:nth-child(even) td { background: #F6FAFF; }

/* Internal link cards */
.ilink-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin: 28px 0;
}
.ilink-card {
  display: block;
  background: #E8F0FB;
  border: 1px solid #D3D1C7;
  border-radius: 6px;
  padding: 14px 16px;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}
.ilink-card:hover { border-color: #85B7EB; background: #E6F1FB; }
.ilink-card-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #888780;
  margin-bottom: 5px;
}
.ilink-card-title { font-size: 13px; color: #185FA5; line-height: 1.4; text-decoration: underline; }

/* Blog archive cards */
.post-list { display: flex; flex-direction: column; gap: 20px; }
.post-card {
  background: #ffffff;
  border: 1px solid #D3D1C7;
  border-radius: 8px;
  padding: 24px 28px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.post-card:hover {
  border-color: #85B7EB;
  box-shadow: 0 2px 10px rgba(24, 95, 165, 0.07);
}
.post-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 12px;
  color: #888780;
}
.post-card-title { font-size: 18px; font-weight: 700; margin-bottom: 8px; line-height: 1.3; }
.post-card-title a { color: #042C53; text-decoration: none; }
.post-card-title a:hover { color: #185FA5; }
.post-card-excerpt { font-size: 14px; color: #5F5E5A; line-height: 1.7; margin-bottom: 14px; }
.read-more { font-size: 13px; font-weight: 600; color: #185FA5; text-decoration: none; }
.read-more:hover { text-decoration: underline; }

/* Archive header */
.archive-header {
  padding: 40px 0 32px;
  border-bottom: 1px solid #D3D1C7;
  margin-bottom: 36px;
}
.archive-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #185FA5;
  margin-bottom: 8px;
}
.archive-title { font-size: 31px; font-weight: 700; color: #042C53; line-height: 1.28; }
.page-id-128 .entry-title { font-size: 31px; }
.archive-description { margin-top: 10px; font-size: 15px; color: #5F5E5A; max-width: 600px; }

/* Sidebar */
.sidebar { padding-top: 4px; }
.sidebar-section { margin-bottom: 32px; }
.sidebar-heading {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #888780;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #D3D1C7;
}
.sidebar-links { list-style: none; }
.sidebar-links li { border-bottom: 1px solid #D3D1C7; }
.sidebar-links li:last-child { border-bottom: none; }
.sidebar-links a {
  display: block;
  font-size: 13px;
  color: #444441;
  text-decoration: none;
  padding: 7px 0;
  transition: color 0.15s;
}
.sidebar-links a:hover { color: #185FA5; }
.sidebar-links.pillar a { color: #185FA5; text-decoration: underline; }

/* Pagination */
.pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin: 48px 0 0;
  flex-wrap: wrap;
}
.pagination a,
.pagination span {
  font-size: 13px;
  padding: 7px 14px;
  border: 1px solid #D3D1C7;
  border-radius: 4px;
  color: #185FA5;
  text-decoration: none;
  transition: background 0.15s;
}
.pagination a:hover { background: #E6F1FB; border-color: #85B7EB; }
.pagination .current { background: #185FA5; color: #ffffff; border-color: #185FA5; }

/* Footer */
.site-footer {
  background: #042C53;
  color: #85B7EB;
  padding: 36px 0;
  font-size: 13px;
}
.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-brand { font-weight: 700; color: #ffffff; font-size: 14px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: #85B7EB; text-decoration: none; }
.footer-links a:hover { color: #ffffff; }
.footer-copy { color: #5F7D9E; font-size: 12px; }

/* Homepage references list */
.homepage-refs { list-style: none; padding: 0; margin: 0 0 36px; }
.homepage-refs li { padding: 14px 0; border-bottom: 1px solid #D9E4F2; }
.homepage-refs li:last-child { border-bottom: none; }
.homepage-refs li strong a { font-size: 16px; }

/* Contact form — modern, stacked, aligned */
.ap-contact-form {
  max-width: 640px;
  margin: 12px 0 0;
}
.ap-contact-form .form-intro {
  color: #2C2C2A;
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 36px;
}
.ap-contact-form .form-field {
  margin-bottom: 28px;
}
.ap-contact-form label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #042C53;
  margin-bottom: 10px;
  letter-spacing: 0;
}
.ap-contact-form input[type="text"],
.ap-contact-form input[type="email"],
.ap-contact-form textarea {
  display: block;
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  font-family: inherit;
  color: #2C2C2A;
  background: #FFFFFF;
  border: 1px solid #D9E4F2;
  border-radius: 8px;
  line-height: 1.5;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}
.ap-contact-form input[type="text"]:hover,
.ap-contact-form input[type="email"]:hover,
.ap-contact-form textarea:hover {
  border-color: #85B7EB;
}
.ap-contact-form input[type="text"]:focus,
.ap-contact-form input[type="email"]:focus,
.ap-contact-form textarea:focus {
  outline: none;
  border-color: #185FA5;
  box-shadow: 0 0 0 4px rgba(24, 95, 165, 0.12);
}
.ap-contact-form textarea {
  min-height: 184px;
  resize: vertical;
  line-height: 1.6;
}
.ap-contact-form .submit-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.ap-contact-form button[type="submit"] {
  background: #042C53;
  color: #FFFFFF;
  border: none;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: background 0.18s ease, transform 0.1s ease, box-shadow 0.18s ease;
}
.ap-contact-form button[type="submit"]:hover {
  background: #185FA5;
}
.ap-contact-form button[type="submit"]:hover .submit-arrow {
  transform: translateX(3px);
}
.ap-contact-form button[type="submit"]:active { transform: translateY(1px); }
.ap-contact-form button[type="submit"]:focus {
  outline: none;
  background: #185FA5;
  box-shadow: 0 0 0 4px rgba(24, 95, 165, 0.28);
}
.ap-contact-form .submit-arrow {
  display: inline-block;
  transition: transform 0.18s ease;
  font-size: 17px;
  line-height: 1;
}
.ap-contact-form .submit-note {
  font-size: 13px;
  color: #5F5E5A;
}
.ap-contact-form .ap-field-error {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: #B33A3A;
  font-weight: 500;
}
.ap-form-success {
  background: #E8F0FB;
  border: 1px solid #B5D4F4;
  padding: 24px 28px;
  color: #021E38;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 24px;
  border-radius: 8px;
}
.ap-form-success strong {
  display: block;
  font-size: 17px;
  margin-bottom: 4px;
  color: #042C53;
}
.ap-form-error {
  background: #FBEAEA;
  border: 1px solid #E9C3C3;
  padding: 18px 22px;
  color: #5A1F1F;
  font-size: 15px;
  margin-bottom: 24px;
  border-radius: 8px;
}
.ap-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
@media (max-width: 600px) {
  .ap-contact-form .form-field { margin-bottom: 24px; }
  .ap-contact-form button[type="submit"] { width: 100%; justify-content: center; }
}

/* Responsive */
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .content-grid { grid-template-columns: 1fr; gap: 32px; }
  .sidebar { border-top: 1px solid #D3D1C7; padding-top: 32px; }
  .entry-title { font-size: 22px; }
  .site-nav { display: none; }
}
