:root {
  --red: #eb2450;
  --red-dark: #bf1638;
  --blue: #1f3f6d;
  --blue-dark: #172f52;
  --ink: #172033;
  --muted: #667085;
  --line: #e7ebf2;
  --paper: #ffffff;
  --soft: #f5f7fb;
  --shadow: 0 18px 45px rgba(23, 32, 51, 0.12);
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

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

img {
  max-width: 100%;
  display: block;
  color: transparent;
  font-size: 0;
}

header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(16, 28, 48, 0.86);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.header-container,
.footer-container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.header-container {
  min-height: 72px;
  display: grid;
  grid-template-columns: auto minmax(220px, 360px) 1fr auto;
  gap: 22px;
  align-items: center;
}

.logo a,
.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.logo img,
.footer-logo img {
  display: none;
}

.logo a::before,
.footer-logo::before {
  content: "";
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 0;
  background:
    linear-gradient(90deg, transparent 45%, #fff 45% 55%, transparent 55%),
    linear-gradient(var(--red), var(--red));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.site-name,
.footer-logo span {
  color: #fff;
  font-size: 15px;
  line-height: 1;
}

.search-box {
  height: 42px;
  display: flex;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  padding: 0 14px;
  color: var(--ink);
  background: transparent;
  outline: 0;
}

.search-box button {
  width: 48px;
  border: 0;
  color: var(--red);
  background: #fff;
  cursor: pointer;
}

.main-nav ul,
.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav a,
.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 13px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1;
}

.main-nav a:hover,
.main-nav a.active,
.footer-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.mobile-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 0;
  background: rgba(255, 255, 255, 0.1);
}

.mobile-menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #fff;
}

.hero-section {
  position: relative;
  min-height: 520px;
  display: grid;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 22%, rgba(30, 148, 205, 0.52), transparent 26%),
    radial-gradient(circle at 84% 30%, rgba(255, 255, 255, 0.24), transparent 19%),
    linear-gradient(100deg, rgba(10, 18, 31, 0.34) 0 34%, rgba(10, 18, 31, 0.9) 50%, rgba(10, 18, 31, 0.42) 100%),
    linear-gradient(135deg, #236da2 0%, #111b2d 47%, #3f4c61 100%);
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 62px 62px;
  opacity: 0.12;
  mask-image: linear-gradient(90deg, #000, transparent 65%);
}

.hero-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0 32%, rgba(6, 12, 22, 0.76) 46% 70%, rgba(6, 12, 22, 0.22));
}

.hero-image {
  display: none;
}

.hero-overlay {
  position: relative;
  z-index: 2;
  width: min(640px, calc(100% - 40px));
  margin: 0 auto;
  transform: translateX(110px);
  color: #fff;
}

.hero-overlay h1 {
  position: relative;
  width: min-content;
  margin: 0 0 28px;
  color: #fff;
  font-family: Impact, "Arial Narrow", sans-serif;
  font-size: clamp(46px, 6vw, 78px);
  line-height: 0.88;
  letter-spacing: 0;
  text-transform: uppercase;
  text-wrap: balance;
}

.hero-overlay h1::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.05em;
  z-index: -1;
  width: 1.05em;
  height: 0.72em;
  background: var(--red);
}

.hero-subtitle {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-family: Impact, "Arial Narrow", sans-serif;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.08;
  letter-spacing: 0;
}

body > main {
  width: min(var(--max), calc(100% - 40px));
  margin: 44px auto 56px;
  position: relative;
  z-index: 5;
}

.hero-section + main {
  margin: -58px auto 0;
}

.hero-section + main > main {
  padding: 54px min(7vw, 78px);
  background: var(--paper);
  box-shadow: var(--shadow);
}

main h1,
main h2,
main h3 {
  margin: 0 0 16px;
  color: var(--blue-dark);
  font-family: Impact, "Arial Narrow", sans-serif;
  line-height: 1.05;
  letter-spacing: 0;
}

main h1 {
  max-width: 860px;
  font-size: clamp(40px, 5vw, 64px);
  color: var(--red);
}

main h2 {
  margin-top: 54px;
  padding-top: 6px;
  font-size: clamp(30px, 3.4vw, 44px);
}

main h2::after {
  content: "";
  display: block;
  width: 78px;
  height: 5px;
  margin-top: 12px;
  background: var(--red);
}

main h3 {
  margin-top: 30px;
  font-size: clamp(22px, 2.4vw, 30px);
}

main p,
main li {
  color: #3c4658;
  font-size: 18px;
}

main p {
  margin: 0 0 20px;
}

main > p:first-of-type {
  font-size: 21px;
  line-height: 1.55;
  color: #344054;
}

main section {
  margin-top: 16px;
}

main section img,
main > img {
  width: 100%;
  min-height: 260px;
  max-height: 460px;
  margin: 32px 0;
  object-fit: cover;
  background:
    linear-gradient(135deg, rgba(31, 63, 109, 0.92), rgba(235, 36, 80, 0.78)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.12) 0 12px, transparent 12px 24px);
}

blockquote {
  margin: 34px 0;
  padding: 28px 32px;
  color: var(--blue-dark);
  background: #f7dfe6;
  border-left: 8px solid var(--red);
  font-family: Impact, "Arial Narrow", sans-serif;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.1;
}

ol,
ul {
  padding-left: 24px;
}

li::marker {
  color: var(--red);
  font-weight: 800;
}

table {
  width: 100%;
  margin: 28px 0 36px;
  border-collapse: collapse;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 0 0 1px var(--line);
}

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

th {
  color: #fff;
  background: var(--blue);
  font-size: 13px;
  line-height: 1.25;
  text-transform: uppercase;
}

tr:nth-child(even) td {
  background: #f8fafc;
}

.social-share-aside,
.recent-posts-aside,
.popular-posts-aside,
.comments-aside,
.author-aside {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  background: var(--paper);
}

.social-share,
.recent-posts-slider,
.popular-posts,
.comments-section,
.author-bio {
  padding: 42px min(7vw, 78px);
  border-top: 1px solid var(--line);
}

.social-share h3,
.recent-posts-slider h2,
.popular-posts h2,
.comments-section h2,
.author-bio h3 {
  margin: 0 0 18px;
  color: var(--blue-dark);
  font-family: Impact, "Arial Narrow", sans-serif;
  font-size: 30px;
  line-height: 1;
}

.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.share-btn {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--blue);
}

.share-btn:hover {
  background: var(--red);
}

.slider-container {
  overflow: hidden;
}

.slider-track {
  display: flex;
  transition: transform 0.3s ease;
}

.slider-slide {
  min-width: 100%;
  padding-right: 24px;
}

.slider-slide h3,
.popular-post-content h3 {
  margin: 0 0 8px;
  color: var(--blue-dark);
  font-size: 22px;
  line-height: 1.2;
}

.slider-dots {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

.dot {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #c7cedb;
}

.dot.active {
  background: var(--red);
}

.popular-post-item {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.popular-post-item a {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.popular-post-item img {
  width: 140px;
  height: 100px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--blue), var(--red));
}

.read-more,
.social-link {
  color: var(--red);
  font-weight: 800;
}

.blog-page-wrapper,
.article-page-main {
  width: min(var(--max), calc(100% - 40px));
  margin: 44px auto 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 34px;
  align-items: start;
}

.blog-main,
.article-page-main > main,
.policy-content {
  min-width: 0;
  padding: 44px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.blog-header {
  margin-bottom: 30px;
}

.blog-header h1 {
  max-width: 780px;
  margin: 0 0 14px;
  color: var(--red);
  font-family: Impact, "Arial Narrow", sans-serif;
  font-size: clamp(46px, 5vw, 68px);
  line-height: 0.95;
  letter-spacing: 0;
}

.intro-text {
  max-width: 860px;
  margin: 0;
  color: #3c4658;
  font-size: 20px;
  line-height: 1.5;
}

.articles-container {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.blog-post {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(23, 32, 51, 0.08);
}

.blog-post.featured {
  grid-column: 1 / -1;
}

.post-link {
  display: grid;
  height: 100%;
  color: inherit;
}

.blog-post.featured .post-link {
  grid-template-columns: minmax(280px, 42%) 1fr;
}

.post-image-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--blue), var(--red));
}

.blog-post.featured .post-image-wrapper {
  aspect-ratio: auto;
  min-height: 300px;
}

.post-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-details {
  padding: 26px;
}

.post-details h2 {
  margin: 0 0 12px;
  color: var(--blue-dark);
  font-family: Impact, "Arial Narrow", sans-serif;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.02;
}

.blog-post:not(.featured) .post-details h2 {
  font-size: 28px;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.post-excerpt {
  margin: 0 0 18px;
  color: #465163;
  font-size: 16px;
  line-height: 1.55;
}

.featured-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  padding: 7px 11px;
  color: #fff;
  background: var(--red);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.blog-sidebar,
.article-sidebar {
  display: grid;
  gap: 22px;
}

.sidebar-widget {
  padding: 26px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(23, 32, 51, 0.08);
}

.sidebar-widget h3 {
  margin: 0 0 16px;
  color: var(--blue-dark);
  font-family: Impact, "Arial Narrow", sans-serif;
  font-size: 28px;
  line-height: 1;
}

.sidebar-list,
.sidebar-updates {
  display: grid;
  gap: 14px;
  margin: 0;
  padding-left: 18px;
}

.sidebar-list a {
  color: #344054;
  font-weight: 800;
}

.sidebar-list a:hover {
  color: var(--red);
}

.update-date {
  display: block;
  color: var(--red);
  font-size: 13px;
  text-transform: uppercase;
}

.update-text {
  color: #465163;
  font-size: 15px;
  line-height: 1.45;
}

.pagination {
  margin-top: 34px;
}

.pagination-container,
.pagination-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

.pagination-btn,
.pagination-number {
  min-height: 42px;
  border: 1px solid var(--line);
  padding: 0 14px;
  color: var(--blue-dark);
  background: #fff;
  font-weight: 800;
}

.pagination-number.active,
.pagination-btn:not(:disabled):hover {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
}

.pagination-btn:disabled {
  opacity: 0.45;
}

.contact-page-main,
.about-page-main,
body > main:has(.author-hero) {
  padding: 44px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.contact-header,
.about-header {
  margin-bottom: 38px;
}

.contact-header h1,
.about-header h1 {
  margin-bottom: 14px;
}

.contact-content-wrapper {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 34px;
  align-items: start;
}

.about-content-wrapper {
  display: grid;
  gap: 32px;
}

.contact-form-section h2,
.contact-map-section h2,
.about-section h2,
.author-topics h2,
.author-featured h2,
.author-approach h2,
.author-currently h2 {
  margin-top: 0;
}

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

.contact-info-box,
.sidebar-section {
  padding: 26px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(23, 32, 51, 0.08);
}

.contact-info-box h3,
.sidebar-section h3 {
  margin: 0 0 16px;
  color: var(--blue-dark);
  font-family: Impact, "Arial Narrow", sans-serif;
  font-size: 28px;
  line-height: 1;
}

.contact-detail-item {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.contact-detail-item:first-of-type {
  border-top: 0;
}

.contact-detail-item svg {
  color: var(--red);
}

.contact-detail-item strong,
.contact-item strong {
  display: block;
  color: var(--blue-dark);
  font-weight: 900;
}

.contact-map-section {
  margin-top: 38px;
}

.map-container {
  overflow: hidden;
  border: 1px solid var(--line);
}

.about-page-main {
  margin-bottom: 24px;
}

.about-sidebar,
.author-sidebar {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto 56px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

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

.team-member {
  padding: 18px;
  background: #f8fafc;
  border: 1px solid var(--line);
}

.team-member h4 {
  margin: 0 0 6px;
  color: var(--blue-dark);
  font-size: 18px;
}

.team-member-role {
  margin-bottom: 10px;
  color: var(--red);
  font-weight: 900;
}

.team-member-bio,
.contact-description,
.contact-item p {
  font-size: 15px;
  line-height: 1.55;
}

.team-widget {
  grid-column: 1 / -1;
}

.about-author-section .author-bio {
  grid-template-columns: 180px 1fr;
  padding: 0;
  border-top: 0;
}

.about-author-section .author-photo {
  width: 180px;
  height: 180px;
}

.author-hero {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
  margin: 0;
}

.author-hero-photo {
  width: 280px;
  height: 280px;
  margin: 0;
  min-height: 0;
  border-radius: 50%;
  object-fit: cover;
  background: linear-gradient(135deg, var(--blue), var(--red));
}

.author-hero-content h1 {
  margin-bottom: 18px;
}

.author-tagline {
  color: var(--blue-dark);
  font-size: 22px;
  font-weight: 800;
}

.author-credentials {
  color: var(--muted);
  font-size: 16px;
}

.author-social-links,
.author-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.author-social-links .social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.author-topics,
.author-featured,
.author-approach,
.author-currently {
  margin-top: 44px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.topic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.topic-tag {
  padding: 9px 13px;
  color: var(--blue-dark);
  background: #f1f4f9;
  font-size: 14px;
  font-weight: 900;
}

.featured-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.featured-article-card {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(23, 32, 51, 0.08);
}

.featured-article-card a {
  display: grid;
  height: 100%;
  color: inherit;
}

.featured-article-card img {
  width: 100%;
  height: 170px;
  margin: 0;
  min-height: 0;
  object-fit: cover;
  background: linear-gradient(135deg, var(--blue), var(--red));
}

.featured-article-card .article-category,
.featured-article-card h3,
.featured-article-card p,
.featured-article-card .article-meta {
  margin-left: 18px;
  margin-right: 18px;
}

.article-category {
  margin-top: 18px;
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.featured-article-card h3 {
  margin-top: 8px;
  font-size: 24px;
}

.featured-article-card p {
  font-size: 15px;
  line-height: 1.5;
}

.article-meta,
.author-facts {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
  margin-bottom: 18px;
}

.author-sidebar {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.author-facts {
  display: grid;
  gap: 6px;
}

.author-facts dt {
  color: var(--red);
  text-transform: uppercase;
}

.author-facts dd {
  margin: 0 0 12px;
  color: #344054;
}

.newsletter-form {
  display: grid;
  gap: 10px;
}

.newsletter-form button,
.contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  padding: 0 18px;
  color: #fff;
  background: var(--red);
  font-weight: 900;
  text-transform: uppercase;
}

.comments-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.toggle-btn,
.submit-btn,
.modal-close-btn {
  min-height: 46px;
  border: 0;
  padding: 0 22px;
  color: #fff;
  background: var(--red);
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.comment-form-container {
  margin-top: 24px;
}

.form-group {
  margin-bottom: 18px;
}

label {
  display: block;
  margin-bottom: 6px;
  color: var(--blue-dark);
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid #cad2df;
  padding: 13px 14px;
  color: var(--ink);
  font: inherit;
  background: #fff;
}

input:focus,
textarea:focus {
  outline: 3px solid rgba(235, 36, 80, 0.18);
  border-color: var(--red);
}

.author-bio {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  align-items: center;
}

.author-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  background: linear-gradient(135deg, var(--blue), var(--red));
}

footer {
  background: var(--blue);
  color: rgba(255, 255, 255, 0.74);
}

.footer-content {
  min-height: 210px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  align-items: center;
  padding: 38px 0;
}

.footer-info p {
  margin: 0 0 10px;
  font-size: 14px;
}

.footer-nav {
  grid-column: 1 / -1;
}

.footer-nav ul {
  justify-content: center;
}

.footer-datetime {
  opacity: 0.72;
}

.search-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(10, 18, 31, 0.7);
}

.search-modal {
  width: min(520px, 100%);
  padding: 34px;
  color: var(--ink);
  background: #fff;
  box-shadow: var(--shadow);
}

.search-modal-icon {
  font-size: 38px;
}

.search-modal h3 {
  margin: 10px 0;
  color: var(--blue-dark);
  font-family: Impact, "Arial Narrow", sans-serif;
  font-size: 34px;
}

.search-modal-links {
  display: grid;
  gap: 10px;
  margin: 20px 0;
}

.modal-link {
  padding: 12px 14px;
  background: #f1f4f9;
  color: var(--blue-dark);
  font-weight: 800;
}

@media (max-width: 900px) {
  .header-container {
    grid-template-columns: 1fr auto;
    gap: 14px;
    padding: 12px 0;
  }

  .search-box,
  .main-nav {
    grid-column: 1 / -1;
  }

  .main-nav {
    display: none;
  }

  .main-nav.active {
    display: block;
  }

  .main-nav ul {
    justify-content: flex-start;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .hero-section {
    min-height: 470px;
  }

  .hero-overlay {
    transform: none;
  }

  .blog-page-wrapper,
  .article-page-main {
    grid-template-columns: 1fr;
    width: min(100% - 32px, var(--max));
    margin-top: 30px;
  }

  .blog-post.featured .post-link {
    grid-template-columns: 1fr;
  }

  .blog-post.featured .post-image-wrapper {
    min-height: 230px;
  }

  body > main {
    width: min(100% - 32px, var(--max));
    margin-top: 30px;
  }

  .hero-section + main {
    width: 100%;
    margin-top: 0;
  }

  .hero-section + main > main,
  .blog-main,
  .article-page-main > main,
  .contact-page-main,
  .about-page-main,
  body > main:has(.author-hero),
  .social-share,
  .recent-posts-slider,
  .popular-posts,
  .comments-section,
  .author-bio {
    padding: 34px 24px;
  }

  .contact-content-wrapper,
  .author-hero,
  .featured-articles-grid,
  .about-sidebar,
  .author-sidebar {
    grid-template-columns: 1fr;
  }

  .team-members {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .author-hero {
    gap: 24px;
  }

  .author-hero-photo {
    width: 220px;
    height: 220px;
  }
}

@media (max-width: 680px) {
  .header-container,
  .footer-container,
  .social-share-aside,
  .recent-posts-aside,
  .popular-posts-aside,
  .comments-aside,
  .author-aside {
    width: min(100% - 24px, var(--max));
  }

  .site-name {
    font-size: 13px;
  }

  .main-nav a {
    padding: 0 10px;
    font-size: 13px;
  }

  main h1 {
    font-size: 42px;
  }

  .hero-section {
    min-height: 420px;
  }

  .hero-overlay {
    width: calc(100% - 32px);
  }

  main p,
  main li {
    font-size: 16px;
  }

  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .popular-post-item a,
  .author-bio,
  .about-author-section .author-bio,
  .footer-content,
  .articles-container,
  .form-row,
  .team-members {
    grid-template-columns: 1fr;
  }

  .blog-main,
  .article-page-main > main,
  .contact-page-main,
  .about-page-main,
  body > main:has(.author-hero),
  .sidebar-widget {
    padding: 24px;
  }

  .blog-header h1,
  .contact-header h1,
  .about-header h1 {
    font-size: 42px;
  }

  .about-author-section .author-photo,
  .author-hero-photo {
    width: 170px;
    height: 170px;
  }

  .popular-post-item img {
    width: 100%;
    height: 170px;
  }
}
