/* ═══ BLOG POST LAYOUT ═══ */
.blog-post { padding: 48px 0 72px; background: var(--white); }
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}

/* ═══ MAIN CONTENT ═══ */
.blog-main { min-width: 0; }

.blog-header { margin-bottom: 40px; }
.blog-header h1 {
  font-family: 'CoHeadline', sans-serif;
  font-size: 38px; font-weight: 700;
  color: var(--ah-navy); line-height: 1.2;
  margin-bottom: 12px;
}

.blog-meta {
  font-size: 13px; color: #888;
  margin-bottom: 20px; display: flex;
  align-items: center; gap: 8px;
}
.blog-meta .blog-date { color: var(--ah-blue); font-weight: 700; }
.blog-meta .blog-meta-sep { color: #ccc; }
.blog-meta .blog-cats { color: var(--ah-green); font-weight: 700; }

.blog-intro { margin-bottom: 28px; }
.blog-intro p {
  font-size: 16px; color: var(--text-body);
  line-height: 1.8; margin-bottom: 14px;
}

.blog-featured-image {
  margin-bottom: 36px; border-radius: 12px; overflow: hidden;
}
.blog-featured-image img {
  width: 100%; height: auto; display: block;
}

/* ═══ CONTENT BLOCKS ═══ */
.content-block { margin-bottom: 36px; }
.content-block h2, .content-block h2 p {
  font-family: 'CoHeadline', sans-serif;
  font-size: 28px; font-weight: 700;
  color: var(--ah-navy); line-height: 1.25;
  margin-bottom: 16px;
}
.content-block h2 {
  border-bottom: 2px solid var(--ah-green);
}
.content-block p {
  font-size: 15px; color: var(--text-body);
  line-height: 1.8; margin-bottom: 12px;
}
.content-block ul {
  list-style: none; padding: 0; margin: 12px 0 16px;
}
.content-block ul li {
  font-size: 15px; color: var(--text-body);
  line-height: 1.75; padding: 3px 0 3px 20px;
  position: relative;
}
.content-block ul li::before {
  content: '•'; color: var(--ah-green);
  font-weight: 700; position: absolute; left: 0;
}
.content-block .blog-image {
  margin: 20px 0; border-radius: 8px; overflow: hidden;
}
.content-block .blog-image img {
  width: 100%; height: auto; display: block;
}

/* ═══ SUB-SECTIONS ═══ */
.content-sub-section { margin: 24px 0; }
.content-sub-section h3 {
  font-family: 'CoHeadline', sans-serif;
  font-size: 22px; font-weight: 700;
  color: var(--ah-navy); line-height: 1.3;
  margin-bottom: 12px;
}

/* ═══ SIDEBAR ═══ */
.blog-sidebar {
  position: sticky; top: 80px;
}

.sidebar-widget {
  background: var(--light-bg);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

.sidebar-title {
  font-family: 'CoHeadline', sans-serif;
  font-size: 18px; font-weight: 700;
  color: var(--ah-navy);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--ah-blue);
}

/* Sidebar CTA card */
.sidebar-hire-card {
  background: var(--sidebar-hire-form-bg, var(--ah-grey));
  color: #fff;
  border-radius: 14px;
}
.sidebar-hire-title {
  font-family: 'CoHeadline', sans-serif;
  font-size: 30px;
  line-height: 1.05;
  font-weight: 700;
  color: var(--sidebar-hire-header, var(--ah-grey));
  margin: 0 0 20px;
}
.sidebar-hire-card p {
  margin: 0;
  font-size: 16px;
  color: var(--sidebar-hire-content, var(--ah-grey));
}
.sidebar-hire-tagline {
  margin-top: 26px !important;
}
.sidebar-hire-dot {
  display: block;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  margin: 20px auto 18px;
  background: rgba(10, 14, 61, 0.95);
}
.sidebar-hire-form {
  margin-top: 8px;
}
.sidebar-hire-form .wpcf7 {
  margin: 0;
}
.sidebar-hire-form .wpcf7-form {
  margin: 0;
}
.sidebar-hire-form .wpcf7-form > p {
  margin: 0;
}
.sidebar-hire-form .wpcf7-form-control-wrap {
  display: block;
  margin: 20px 0 0 0;
}

.sidebar-hire-form input[type="email"],
.sidebar-hire-form input[type="text"] {
  width: 100%;
  border: 0;
  border-radius: 10px 10px 0 0;
  color: #74808f;
  font-size: 14px;
  padding: 16px 18px;
}
.sidebar-hire-form input[type="email"]:focus,
.sidebar-hire-form input[type="text"]:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 174, 239, 0.4);
}
.sidebar-hire-form input::placeholder {
  color: #74808f;
  opacity: 1;
}
.sidebar-hire-form input.wpcf7-submit,
.sidebar-hire-form input[type="submit"] {
  width: 100%;
  border: 0;
  border-radius: 0 0 10px 10px;
  background: var(--sidebar-hire-button, var(--ah-blue));
  color: var(--sidebar-hire-content, var(--ah-grey));
  font-family: 'CoHeadline', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 14px 18px;
  cursor: pointer;
  transition: filter 0.15s ease;
}
.sidebar-hire-form input.wpcf7-submit:hover,
.sidebar-hire-form input[type="submit"]:hover {
  filter: brightness(1.05);
}
.sidebar-hire-form .wpcf7-spinner {
  margin: 10px 0 0;
}
.sidebar-hire-form .wpcf7-response-output {
  margin: 12px 0 0;
  border-radius: 8px;
  color: var(--sidebar-hire-content, var(--ah-grey));
  border-width: 1px;
}

@media (max-width: 1024px) {
  .sidebar-hire-title {
    font-size: 36px;
  }
  .sidebar-hire-card p {
    font-size: 16px;
  }
}

/* Expert Developers form has its own layout and does not share the Hire Banner spacing. */
.sidebar-expert-developers-card .sidebar-expert-developers-form .wpcf7-form > p {
  margin: 0 0 20px;
}
.sidebar-expert-developers-card .sidebar-expert-developers-form .wpcf7-form > p:has(input[type="submit"]) {
  margin-bottom: 0;
}
.sidebar-expert-developers-card .sidebar-expert-developers-form .sidebar-hire-title {
  color: var(--sidebar-hire-header, var(--ah-navy));
  font-size: 30px;
  line-height: 1.08;
  margin: 0 0 28px;
}
.sidebar-expert-developers-card .sidebar-expert-developers-form label {
  display: block;
  color: var(--sidebar-hire-content, var(--ah-navy));
  font-size: 16px;
  line-height: 1.3;
  margin-bottom: 8px;
}
.sidebar-expert-developers-card .sidebar-expert-developers-form .wpcf7-form-control-wrap {
  display: block;
  margin: 0;
}
.sidebar-expert-developers-card .sidebar-expert-developers-form input[type="email"],
.sidebar-expert-developers-card .sidebar-expert-developers-form input[type="text"],
.sidebar-expert-developers-card .sidebar-expert-developers-form textarea {
  width: 100%;
  border: 1px solid rgba(38, 34, 98, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--sidebar-hire-content, var(--ah-navy));
  font-size: 16px;
  padding: 16px 18px;
}
.sidebar-expert-developers-card .sidebar-expert-developers-form input[type="email"],
.sidebar-expert-developers-card .sidebar-expert-developers-form input[type="text"] {
  min-height: 64px;
}
.sidebar-expert-developers-card .sidebar-expert-developers-form textarea {
  min-height: 150px;
  resize: vertical;
}
.sidebar-expert-developers-card .sidebar-expert-developers-form input::placeholder,
.sidebar-expert-developers-card .sidebar-expert-developers-form textarea::placeholder {
  color: var(--sidebar-hire-content, var(--ah-navy));
  opacity: 0.62;
}
.sidebar-expert-developers-card .sidebar-expert-developers-form input[type="email"]:focus,
.sidebar-expert-developers-card .sidebar-expert-developers-form input[type="text"]:focus,
.sidebar-expert-developers-card .sidebar-expert-developers-form textarea:focus {
  outline: none;
  border-color: var(--ah-blue);
  box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.16);
}
.sidebar-expert-developers-card .sidebar-expert-developers-form input.wpcf7-submit,
.sidebar-expert-developers-card .sidebar-expert-developers-form input[type="submit"] {
  border-radius: 6px;
  background: var(--sidebar-hire-button, var(--ah-blue));
  color: #fff;
  font-size: 18px;
  letter-spacing: 0;
  padding: 16px 18px;
  transition: filter 0.15s ease, transform 0.15s ease;
}
.sidebar-expert-developers-card .sidebar-expert-developers-form input.wpcf7-submit:hover,
.sidebar-expert-developers-card .sidebar-expert-developers-form input[type="submit"]:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

/* Expert newsletter card */
.sidebar-expert-card {
  position: relative;
  overflow: hidden;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(38, 34, 98, 0.08);
}
.sidebar-expert-form {
  position: relative;
  z-index: 1;
}
.sidebar-expert-form h3 {
  color: #171717;
  font-family: 'CoHeadline', sans-serif;
  font-size: 30px;
  line-height: 1.08;
  margin: 20px 0;
}
.sidebar-expert-form p {
  color: #66717c;
  font-size: 18px;
  line-height: 1.45;
  margin: 0 0 30px;
}
.sidebar-expert-form label {
  display: block;
  color: #303030;
  font-size: 17px;
  line-height: 1.3;
  margin-bottom: 10px;
}
.sidebar-expert-form .sidebar-expert-required {
  color: var(--ah-red);
}
.sidebar-expert-form .wpcf7-form > p {
  margin: 0;
}
.sidebar-expert-form .wpcf7-form-control-wrap {
  display: block;
  margin: 0 0 28px;
}
.sidebar-expert-form input[type="email"],
.sidebar-expert-form input[type="text"] {
  width: 100%;
  min-height: 64px;
  border: 1px solid #cbd8e4;
  border-radius: 6px;
  background: #f4f7f9;
  color: #303030;
  font-size: 16px;
  padding: 14px 16px;
}
.sidebar-expert-form input[type="email"]:focus,
.sidebar-expert-form input[type="text"]:focus {
  outline: none;
  border-color: var(--ah-blue);
  box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.16);
}
.sidebar-expert-form input.wpcf7-submit,
.sidebar-expert-form input[type="submit"] {
  display: block;
  min-width: 170px;
  margin: 0 auto;
  border: 0;
  border-radius: 6px;
  background: var(--ah-blue);
  color: #fff;
  font-family: 'CoHeadline', sans-serif;
  font-size: 18px;
  font-weight: 700;
  padding: 14px 22px;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.15s ease;
}
.sidebar-expert-form input.wpcf7-submit:hover,
.sidebar-expert-form input[type="submit"]:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}
.sidebar-expert-form .wpcf7-spinner {
  display: block;
  margin: 10px auto 0;
}
.sidebar-expert-form .wpcf7-response-output {
  margin: 14px 0 0;
  border-radius: 6px;
  color: #66717c;
}
.sidebar-expert-plane {
  position: absolute;
  top: 72px;
  left: 50%;
  z-index: 0;
  width: 0;
  height: 0;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 94px solid #ff9f1c;
  transform: translateX(-44%) rotate(-28deg);
  filter: drop-shadow(12px -8px 0 #ffbd32);
}
.sidebar-expert-plane::after {
  content: "";
  position: absolute;
  top: -58px;
  left: 34px;
  width: 155px;
  height: 188px;
  border: 2px dashed #ff8b13;
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  transform: rotate(28deg);
}
@media (max-width: 1024px) {
  .sidebar-expert-form h3 {
    font-size: 26px;
    margin-top: 20px;
  }
  .sidebar-expert-form p {
    font-size: 16px;
  }
}

/* Latest Posts */
.sidebar-posts { list-style: none; padding: 0; margin: 0; }
.sidebar-post-item {
  display: flex; gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #dde3ea;
}
.sidebar-post-item:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-post-item:first-child { padding-top: 0; }

.sidebar-post-thumb {
  flex-shrink: 0; width: 64px; height: 64px;
  border-radius: 8px; overflow: hidden;
}
.sidebar-post-thumb img {
  width: 100%; height: 100%; object-fit: cover;
}

.sidebar-post-info { display: flex; flex-direction: column; justify-content: center; }
.sidebar-post-title {
  font-size: 13px; font-weight: 700;
  color: var(--ah-navy); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
  text-decoration: none;
}
.sidebar-post-title:hover { color: var(--ah-green); }
.sidebar-post-date { font-size: 12px; color: #888; margin-top: 4px; }

/* Categories */
.sidebar-categories { list-style: none; padding: 0; margin: 0; }
.sidebar-categories li {
  border-bottom: 1px solid #dde3ea;
}
.sidebar-categories li:last-child { border-bottom: none; }
.sidebar-categories a {
  display: flex; justify-content: space-between;
  align-items: center; padding: 10px 0;
  font-size: 14px; font-weight: 700;
  color: var(--ah-navy); text-decoration: none;
  transition: color 0.2s;
}
.sidebar-categories a:hover { color: var(--ah-green); }
.sidebar-categories .cat-count {
  background: var(--ah-blue); color: var(--white);
  font-size: 11px; font-weight: 700;
  padding: 2px 8px; border-radius: 50px;
  min-width: 24px; text-align: center;
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 768px) {
  .blog-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .blog-header h1 { font-size: 26px; }
  .content-block h2 { font-size: 22px; }
  .content-sub-section h3 { font-size: 18px; }
  .blog-sidebar { position: static; }
}
