/* Blog post page. Sizes are read from the live page at each breakpoint: 1400, 1200, 1024, 900, 767. */

@font-face { font-family: "DegularText-Light"; src: url("../../../../../uploads/2025/06/degulartext-light-webfont.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Degular-Medium"; src: url("../../../../../uploads/2025/06/degulartext-medium-webfont.ttf") format("truetype"); font-display: swap; }

.amx-post { padding: 49px 0 20px; background: var(--amx-bg-soft); }
.amx-footer { padding-top: var(--amx-section-y); }

/* Title and date */
.amx-post__title { margin: 0 0 10px; color: #087ddd; font-size: 52px; line-height: 62px; font-weight: 500; letter-spacing: -2px; }
.amx-post__meta { display: flex; flex-wrap: wrap; gap: 0 13px; margin: 0 0 20px; padding-block: 1px; color: #000; font-size: 18px; line-height: 30px; font-weight: 300; }
.amx-post__meta time::after { content: ","; }
.amx-post__meta a { color: inherit; text-decoration: none; }
.amx-post__meta a:hover { color: var(--amx-blue); }

/* Article beside the sidebar */
.amx-post__grid { display: grid; grid-template-columns: 70.1% 26.3%; justify-content: space-between; align-items: start; }
.amx-post__main { min-width: 0; }
.amx-post__image img { display: block; width: 100%; height: auto; border-radius: 24px; }
.amx-post__side { position: sticky; top: 30px; display: grid; gap: 40px; min-width: 0; }

/* Article text */
.amx-post__entry { padding: 30px 10px 14px; color: #0c112b; font-size: 18px; line-height: 26px; font-weight: 500; }
.amx-post__entry p { margin: 0 0 16px; }
.amx-post__entry h2, .amx-post__entry h3, .amx-post__entry h4, .amx-post__entry h5 { margin: 8px 0 16px; color: #0c112b; }
.amx-post__entry h2 { font-size: 50px; line-height: 60px; font-weight: 400; letter-spacing: -2px; }
.amx-post__entry h3 { font-size: 40px; line-height: 50px; font-weight: 500; }
.amx-post__entry h4 { font-size: 34px; line-height: 44px; font-weight: 500; }
.amx-post__entry h5 { font-size: 26px; line-height: 36px; font-weight: 500; }
.amx-post__entry a { color: #c36; text-decoration: none; }
.amx-post__entry a:hover { text-decoration: underline; }
.amx-post__entry ul, .amx-post__entry ol { margin: 0 0 15px; padding-left: 40px; }
.amx-post__entry ul { list-style: disc; }
.amx-post__entry ol { list-style: decimal; }
.amx-post__entry li { margin: 0; }
.amx-post__entry ul li { padding-block: 2px; }
.amx-post__entry img { display: block; width: auto; max-width: 100%; height: auto; margin-block: 30px; border-radius: 15px; }
.amx-post__entry .amx-table-scroll { overflow-x: auto; }
:is(.amx-post__entry > table, .amx-post__entry .amx-table-scroll table) { width: 100%; margin: 24px 0; font-size: .9em; line-height: 1.5; border-collapse: collapse; }
:is(.amx-post__entry > table, .amx-post__entry .amx-table-scroll table) :is(th, td) { padding: 15px; text-align: start; vertical-align: top; border: 1px solid rgba(128, 128, 128, .5); }
:is(.amx-post__entry > table, .amx-post__entry .amx-table-scroll table) th { font-weight: 700; text-align: center; }
:is(.amx-post__entry > table, .amx-post__entry .amx-table-scroll table) tbody tr:nth-child(odd) td { background: rgba(128, 128, 128, .07); }

/* Author box */
.amx-post-author { display: grid; grid-template-columns: 257px minmax(0, 1fr); gap: 30px; margin-top: 20px; padding: 30px 30px 40px; color: #fff; background: var(--amx-navy) url("../../../../../uploads/2025/11/footer-banner.jpg") center / cover no-repeat; border-radius: 24px; }
.amx-post-author__photo { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 50%; }
.amx-post-author__body { padding-right: 6%; }
.amx-post-author__name { margin: 10px 0 20px; color: #fff; font-family: Degular-Medium, var(--amx-font, sans-serif); font-size: 28px; line-height: 36px; font-weight: 500; }
.amx-post-author__bio { margin: 0 0 30px; color: #fff; font-family: DegularText-Light, var(--amx-font, sans-serif); font-size: 18px; line-height: 28px; font-weight: 300; }
.amx-post-author__social { display: grid; place-items: center; width: 36px; height: 36px; color: var(--amx-navy); background: var(--amx-tile); border-radius: 50%; }

/* Sidebar cards */
.amx-post-card { padding: 40px 40px 40px; background: #c4e4ff; border-radius: 24px; }
.amx-post-card__title { margin: 8px 0 16px; color: #333; font-size: 26px; line-height: 36px; font-weight: 500; letter-spacing: normal; }
.amx-post-card__links { margin: 0; padding: 0; list-style: none; }
.amx-post-card__links li { margin: 0 0 0 -8px; padding: 10px; font-size: 14px; line-height: 27px; font-weight: 400; }
.amx-post-card__links a { color: #0c112b; line-height: 24px; text-decoration: none; }
.amx-post-card__links a:hover { color: var(--amx-blue); }

.amx-post-card--recent { padding-bottom: 56px; }
.amx-post-card__recent-title { margin: 0 0 20px; color: var(--amx-ink); font-family: Degular-Medium, var(--amx-font, sans-serif); font-size: 24px; line-height: 34px; font-weight: 700; letter-spacing: normal; }
.amx-post-card__recent { display: grid; gap: 21px; margin: 0; padding: 0; list-style: none; }
.amx-post-card__recent a { display: block; padding-right: 8px; color: #0c112b; font-size: 18px; line-height: 28px; font-weight: 400; text-decoration: none; }
.amx-post-card__recent a:hover { color: var(--amx-blue); }
.amx-post-card__recent time { display: block; color: rgba(12, 17, 43, .5); font-size: 18px; line-height: 15.6px; font-weight: 400; }

.amx-post-card--tags { padding-right: 44px; padding-bottom: 50px; }
.amx-post-card--tags .amx-post-card__title { margin-bottom: 26px; }
.amx-post-card__tags { display: flex; flex-wrap: wrap; gap: 20px 13px; }
.amx-post-card__tags a { padding: 11px 13px 8px; color: #0c112b; font-size: 14px; line-height: 26px; font-weight: 400; text-decoration: none; background: var(--amx-tile); border-radius: 70px; }
.amx-post-card__tags a:hover { color: #fff; background: var(--amx-blue); }

/* Quote form in the sidebar */
.amx-post-card--form { padding: 30px 30px 50px; }
.amx-post-card__form-title { margin: 0 0 20px; color: var(--amx-ink); font-size: 34px; line-height: 44px; font-weight: 500; letter-spacing: normal; }
.amx-post-card--form .its-form { font-family: DegularText-Light, var(--amx-font, sans-serif); }
.amx-post-card--form .its-fields { grid-template-columns: minmax(0, 1fr); gap: 25px; }
.amx-post-card--form .its-field--half { grid-column: 1 / -1; }
.amx-post-card--form .its-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.amx-post-card--form .its-form input:not([type=checkbox]):not([type=radio]), .amx-post-card--form .its-form select, .amx-post-card--form .its-form textarea { display: block; height: 45px; padding: 8px 0; color: #0c112b; font-size: 18px; line-height: 28px; font-weight: 400; background-color: transparent; border: 0; border-bottom: 1px solid #000; border-radius: 0; }
.amx-post-card--form .its-form select { height: 40px; padding-block: 6px; padding-right: 30px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='10' fill='none'%3E%3Cpath d='M1 1l7 7 7-7' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 8px center; appearance: none; }
.amx-post-card--form .its-form textarea { height: 123px; min-height: 123px; padding-top: 5px; }
.amx-post-card--form .its-form ::placeholder { color: #0c112b; opacity: .6; }
.amx-post-card--form .its-form input:focus, .amx-post-card--form .its-form select:focus, .amx-post-card--form .its-form textarea:focus { border-bottom-color: var(--amx-blue); box-shadow: none; }
.amx-post-card--form .its-actions { margin-top: 25px; }
.amx-post-card--form .its-btn { width: 142px; min-height: 0; padding: 12px 25px; color: #fff; font-size: 20px; line-height: 26px; font-weight: 600; background: #087ddd; border: 0; border-radius: 9px; cursor: pointer; }
.amx-post-card--form .its-btn:hover { background: var(--amx-navy); }

/* Related Blogs */
.amx-post-related { padding: 85px 0 80px; background: #f5f5f5; }
.amx-post-related__label { margin: 0 0 41px; color: var(--amx-ink); font-family: DegularText-Light, var(--amx-font, sans-serif); font-size: 20px; line-height: 20px; font-weight: 600; letter-spacing: -1px; }
.amx-post-related__heading { max-width: 70%; margin: 0 0 38px; color: var(--amx-ink); font-size: 50px; line-height: 60px; font-weight: 500; letter-spacing: normal; }
.amx-post-related__heading span { color: #087ddd; }
.amx-post-related .amx-blog-card { flex-basis: 417px; }
.amx-post-related .amx-post-related__track { gap: 25px; }
.amx-post-related .amx-blog-card__media img { aspect-ratio: auto 1.91 / 1; border-radius: 20px; }

@media (max-width: 1400px) {
  .amx-post { padding-top: 50px; }
  .amx-post__grid { grid-template-columns: 69.5% 26.1%; }
  .amx-post__entry { font-size: 17px; }
  .amx-post__entry h2 { font-size: 38px; line-height: 48px; }
  .amx-post__entry h3 { font-size: 32px; line-height: 42px; }
  .amx-post__entry h4 { font-size: 30px; line-height: 40px; }
  .amx-post__entry h5 { font-size: 24px; line-height: 34px; }
  .amx-post-author { grid-template-columns: 210px minmax(0, 1fr); }
  .amx-post-author__name { line-height: 34px; }
  .amx-post-card.amx-post-card--form { padding: 20px 20px 40px; }
  .amx-post-card__form-title { font-size: 30px; line-height: 40px; }
  .amx-post-card__title { font-size: 24px; line-height: 34px; }
  .amx-post-card { padding: 30px 30px 30px; }
  .amx-post-card.amx-post-card--recent { padding: 40px 40px 56px; }
  .amx-post-card.amx-post-card--tags { padding: 30px 40px 50px 30px; }
  .amx-post-card__links li { line-height: 26px; }
  .amx-post-card--form .its-btn { width: 120px; }
  .amx-post-related__heading { margin-bottom: 39px; font-size: 38px; line-height: 48px; }
  .amx-post-related .amx-blog-card { flex-basis: 344px; }
  .amx-post-related .amx-post-related__track { gap: 20px; }
}
@media (max-width: 1024px) {
  .amx-post { padding-top: 44px; }
  .amx-post__title { font-size: 30px; }
  .amx-post__grid { grid-template-columns: 68.4% 29.3%; }
  .amx-post__entry { font-size: 15px; line-height: 22px; }
  .amx-post__entry h2 { font-size: 32px; line-height: 42px; }
  .amx-post__entry h3 { font-size: 28px; line-height: 38px; }
  .amx-post__entry h4 { font-size: 23px; line-height: 33px; }
  .amx-post__entry h5 { font-size: 20px; line-height: 30px; }
  .amx-post-author { grid-template-columns: 162px minmax(0, 1fr); }
  .amx-post-author__name { line-height: 30px; }
  .amx-post-card__form-title { font-size: 23px; line-height: 33px; }
  .amx-post-card__title { font-size: 20px; line-height: 30px; }
  .amx-post-card__links li { line-height: 24px; }
  .amx-post-card__tags a { line-height: 22px; }
  .amx-post-card--form .its-btn { width: 115px; }
  .amx-post-related__heading { max-width: 80%; margin-bottom: 43px; font-size: 32px; line-height: 42px; }
  .amx-post__entry { padding-bottom: 0; }
  .amx-post-author { margin-top: 22px; }
  .amx-post-related .amx-post-related__track { gap: 18px; }
  .amx-post-related .amx-blog-card { flex-basis: 269px; }
  .amx-post-related .amx-blog-card__media img { border-radius: 14px; }
}
@media (max-width: 900px) {
  .amx-post__grid { grid-template-columns: 68% 29.1%; }
  .amx-post-author { grid-template-columns: 116px minmax(0, 1fr); }
  .amx-post-related .amx-blog-card { flex-basis: 298px; }
  .amx-post-related .amx-post-related__track { gap: 16px; }
}
@media (max-width: 767px) {
  .amx-post { padding-top: 54px; }
  .amx-post__head { padding-inline: 20px; }
  .amx-post-author__body { padding-right: 0; }
  .amx-post__title { font-size: 28px; line-height: 38px; }
  .amx-post__meta { padding-block: 0; }
  .amx-post__grid { grid-template-columns: minmax(0, 1fr); }
  .amx-post__image { padding-inline: 20px; }
  .amx-post__side { position: static; margin-top: 40px; padding-inline: 20px; }
  .amx-post__entry { font-size: 16px; line-height: 26px; }
  .amx-post__entry h2 { font-size: 28px; line-height: 38px; }
  .amx-post__entry h3 { font-size: 24px; line-height: 34px; }
  .amx-post__entry h4 { font-size: 22px; line-height: 32px; }
  .amx-post__entry h5 { font-size: 19px; line-height: 29px; }
  .amx-post-author { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 20px; }
  .amx-post-author__photo { width: 221px; }
  .amx-post-author__name { margin-top: 0; line-height: 29px; }
  .amx-post-card__form-title { font-size: 22px; line-height: 32px; }
  .amx-post-card__title { font-size: 24px; line-height: 34px; }
  .amx-post-card__links li { line-height: 28px; }
  .amx-post-card__links li { font-size: 18px; line-height: 28px; }
  .amx-post-card__links a { line-height: 28px; }
  .amx-post-card__tags a { padding-inline: 22px; font-size: 18px; line-height: 26px; }
  .amx-post-card--form .its-btn { width: 100%; }
  .amx-post-related .amx-container { padding-inline: 18px; }
  .amx-post-related .amx-post-related__track { padding-inline: 18px; scroll-padding-inline: 18px; }
  .amx-post-related { padding-block: 46px 20px; }
  .amx-post-related__label { margin-bottom: 35px; }
  .amx-post-related__heading { max-width: none; margin-bottom: 14px; font-size: 28px; line-height: 28px; }
  .amx-post-related .amx-blog-card { flex-basis: 235px; }
  .amx-post-related .amx-post-related__track { gap: 16px; }
}
