/* ––––––––– HERO ––––––– */

section.hero {
  position: relative;
  padding-top: calc(var(--section-padding) + var(--header-height));

  background-position: center center;
  background-size: cover;
  isolation: isolate;
}

section.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to left, rgba(2, 25, 45, 0) 0%, rgba(2, 25, 45, 0.6) 114.62%);
  z-index: -1;

  pointer-events: none;
  user-select: none;
}
section.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: inherit;
  background-size: cover;
  background-position: center;
  filter: blur(20px);
  mask-image: linear-gradient(to right, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.5) 70%, rgba(0, 0, 0, 0.1) 100%);
  z-index: -1;

  pointer-events: none;
  user-select: none;
}

section.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding-bottom: 4rem;
}
section.hero .container::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: block;
  width: 40%;
  height: 2px;
  background-color: var(--btn-bg);
}
section.hero .container img {
  max-width: 220px;
  margin-bottom: 1rem;
}
section.hero .container strong {
  font-family: var(--font-playfair);
  font-size: var(--text-2xl);
  line-height: 1.1;
  letter-spacing: 0.01em;
  color: var(--color-white);
  margin-bottom: 1rem;
}
section.hero .container p {
  font-weight: 400;
  font-size: 1rem;
  line-height: 1;
  letter-spacing: 0.01em;
  text-align: center;
  color: var(--color-white);
}

/* –––––––– SERVICES ––––––– */

section.single .title {
  margin-bottom: 0;
}
section.single:has(.author) .title::after {
  content: none;
}

section.single .author {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 1rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-gray);
}
section.single .author img {
  border-radius: 50%;
  width: 40px;
  height: 40px;
  aspect-ratio: 1/1;
  object-fit: cover;
  object-position: center;
  cursor: pointer;
}
section.single .author a {
  font-weight: 400;
  font-size: var(--text-base);
  line-height: 1.4;
  letter-spacing: 0.01em;
  color: var(--color-secondary);

  transition: color 0.3s var(--ease);
}
@media (hover:hover) {
  section.single .author a:hover {
    color: var(--hover-primary);
  }
}
section.single .author a::after {
  content: none;
  font-size: inherit;
  color: inherit;
  margin-left: 1rem;
}
section.single .author time {
  font-weight: 400;
  font-size: var(--text-base);
  line-height: 1.4;
  color: var(--color-gray);
}

@media screen and (min-width: 640px) {
  section.single .author {
    flex-direction: row;
  }
}

@media screen and (min-width: 768px) {
  section.single .author a::after {
    content: "|";
  }
}

/* –––––––– CONTENT –––––––– */

section.single .content {
  margin-top: 2rem;
  width: 80%;
  margin-inline: auto;
}
section.single .content h1,
section.single .content h2,
section.single .content h3,
section.single .content h4,
section.single .content h5,
section.single .content h6 {
  color: var(--color-primary);
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

section.single .content p {
  margin-bottom: 1.5rem;
}

section.single .content a {
  color: var(--color-secondary);
  text-decoration: underline;

  transition: 0.3s all;
}

@media (hover: hover) {
  section.single .content a:hover {
    color: var(--color-primary);
  }
}

section.single .content ul,
section.single .content ol {
  list-style-type: disc;
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

section.single .content ul li,
section.single .content ol li {
  margin-bottom: 0.5rem;
}

section.single .content blockquote {
  padding: 1rem;
  border-left: 4px solid var(--color-primary);
  margin-bottom: 1.5rem;
}

section.single .content img {
  width: 100%;
  height: auto;
  margin-bottom: 1.5rem;
}

section.single .content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}

section.single .content iframe {
  width: 100%;
}

section.single .content th,
section.single .content td {
  padding: 0.75rem;
  border: 1px solid var(--color-gray);
}

/* ––––––––– BLOG ––––––––– */

section.blog > p {
  margin-top: 2rem;
  font-weight: 500;
  font-size: var(--text-lg);
  color: var(--color-secondary);
}

section.blog > ul {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 70%;
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  scroll-snap-align: start;
  scrollbar-width: none;
  gap: 1rem;
  margin-top: 3rem;
}
section.blog > ul::-webkit-scrollbar {
  display: none;
}
section.blog > ul li {
  scroll-snap-align: center;
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 3;
  gap: 1rem;
}
section.blog .btn {
  width: 100%;
  margin-top: 3rem;
}

@media screen and (min-width: 768px) {
  section.blog > ul {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow-x: auto;
  }
  section.blog > ul li:nth-child(n + 4) {
    display: none;
  }

  section.blog .btn {
    padding: 12px 42px;
    margin-inline: auto;
    width: fit-content;
  }
}
