/* ===== GOOGLE FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ===== VARIABLES CSS ===== */
:root {
  --header-height: 3.5rem;

  /* ========== Colors ========== */
  --hue: 210;
  --first-color: hsl(var(--hue), 100%, 60%);
  --first-color-alt: hsl(var(--hue), 100%, 55%);
  --first-color-light: hsl(var(--hue), 100%, 85%);
  --first-color-rgb: 51, 153, 255;
  --title-color: hsl(var(--hue), 12%, 15%);
  --text-color: hsl(var(--hue), 12%, 45%);
  --text-color-light: hsl(var(--hue), 8%, 75%);
  --text-color-lighten: hsl(var(--hue), 8%, 92%);
  --body-color: hsl(var(--hue), 100%, 99%);
  --container-color: #fff;
  --white-color: #fff;
  --black-color: #000;
  --gradient-color: linear-gradient(90deg, 
                    hsl(var(--hue), 100%, 60%), 
                    hsl(var(--hue), 100%, 70%));

  /* ========== Font and typography ========== */
  --body-font: 'Inter', sans-serif;
  --biggest-font-size: 2.25rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1rem;
  --normal-font-size: .938rem;
  --small-font-size: .813rem;
  --smaller-font-size: .75rem;

  /* ========== Font weight ========== */
  --font-light: 300;
  --font-regular: 400;
  --font-medium: 500;
  --font-semi-bold: 600;
  --font-bold: 700;

  /* ========== Margenes Bottom ========== */
  --mb-0-25: .25rem;
  --mb-0-5: .5rem;
  --mb-0-75: .75rem;
  --mb-1: 1rem;
  --mb-1-5: 1.5rem;
  --mb-2: 2rem;
  --mb-2-5: 2.5rem;
  --mb-3: 3rem;

  /* ========== z index ========== */
  --z-tooltip: 10;
  --z-fixed: 100;
  --z-modal: 1000;
}

/* Responsive typography */
@media screen and (min-width: 968px) {
  :root {
    --biggest-font-size: 3rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
    --smaller-font-size: .813rem;
  }
}

/* ===== BASE ===== */
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  margin: 0 0 var(--header-height) 0;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
  color: var(--text-color);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main {
  flex: 1;
}

#header-include,
#footer-include {
  flex-shrink: 0;
}

h1, h2, h3, h4 {
  color: var(--title-color);
  font-weight: var(--font-semi-bold);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
}

/* ===== REUSABLE CSS CLASSES ===== */
.container {
  max-width: 1200px;
  margin-left: var(--mb-1-5);
  margin-right: var(--mb-1-5);
}

.grid {
  display: grid;
}

.section {
  padding: 4.5rem 0 2rem;
}

.section__title {
  font-size: var(--h1-font-size);
  color: var(--title-color);
  text-align: center;
  margin-bottom: var(--mb-0-75);
}

.section__title_inner {
  font-size: var(--h1-font-size);
  color: var(--title-color);
  text-align: left;
  margin-bottom: var(--mb-0-75);
}

.section__subtitle {
  display: block;
  font-size: var(--small-font-size);
  margin-bottom: var(--mb-3);
  text-align: center;
  color: var(--text-color);
}

/* ===== BUTTONS ===== */
.button {
  display: inline-flex;
  align-items: center;
  column-gap: .5rem;
  background-color: var(--first-color);
  color: var(--white-color);
  padding: 1rem 1.5rem;
  border-radius: .5rem;
  font-weight: var(--font-medium);
  transition: .3s;
}

.button:hover {
  background-color: var(--first-color-alt);
  transform: translateY(-2px);
}

.button--outline {
  background-color: transparent;
  border: 2px solid var(--first-color);
  color: var(--first-color);
}

.button--outline:hover {
  background-color: var(--first-color);
  color: var(--white-color);
}

.button--small {
  padding: .75rem 1rem;
  font-size: var(--small-font-size);
}

.button--primary {
  background: var(--gradient-color);
}

/* ===== HEADER & NAV ===== */
.header {
  width: 100%;
  background-color: var(--container-color);
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
  transition: .3s;
  box-shadow: 0 2px 4px hsla(var(--hue), 4%, 15%, .1);
}

.nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo h2 {
  color: var(--first-color);
  font-weight: var(--font-bold);
  margin-bottom: 0;
}

.nav__logo span {
  font-size: var(--small-font-size);
  color: var(--text-color);
}

.nav__list {
  display: flex;
  column-gap: 2rem;
}

.nav__link {
  color: var(--text-color);
  font-weight: var(--font-medium);
  transition: .3s;
}

.nav__link:hover,
.active-link {
  color: var(--first-color);
}

.nav__close,
.nav__toggle {
  display: none;
}

/* ===== HOME ===== */
.home {
  background: linear-gradient(135deg, var(--first-color-light) 0%, var(--body-color) 100%);
  padding-top: 7rem;
}

.home__container {
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
}

.home__data {
  text-align: left;
}

.home__title {
  font-size: var(--biggest-font-size);
  font-weight: var(--font-bold);
  margin-bottom: var(--mb-1);
  line-height: 1.2;
}

.home__title-accent {
  background: var(--gradient-color);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.home__description {
  margin-bottom: var(--mb-2-5);
  font-size: var(--normal-font-size);
  line-height: 1.7;
}

.home__buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.home__img {
  justify-self: center;
}

.home__img-main {
  width: 100%;
  border-radius: 1rem;
}

/* ===== ABOUT ===== */
.about__container {
  gap: 2.5rem;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
}

.about__img-main {
  width: 100%;
  border-radius: 1rem;
  box-shadow: 0 8px 20px hsla(var(--hue), 100%, 60%, .15);
}

.about__data {
  text-align: left;
}

.about__description {
  margin-bottom: var(--mb-2);
  line-height: 1.7;
}

.about__info {
  display: grid;
  gap: 1.5rem;
}

.about__info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.about__info-item i {
  font-size: 1.5rem;
  color: var(--first-color);
  margin-top: .25rem;
  width: 1.5rem;
  text-align: center;
}

.about__info-item h3 {
  font-size: var(--h3-font-size);
  margin-bottom: var(--mb-0-25);
  margin-top: 0;
  line-height: 1.2;
}

.about__info-item p {
  font-size: var(--small-font-size);
  color: var(--text-color);
}

/* Mobile about section */
@media screen and (max-width: 576px) {
  .about__info-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .about__info-item i {
    margin-top: 0;
  }
}

/* ===== SERVICES ===== */
.services__container {
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.services__card {
  background-color: var(--container-color);
  padding: 2rem 1.5rem;
  border-radius: 1rem;
  text-align: center;
  box-shadow: 0 4px 20px hsla(var(--hue), 100%, 60%, .1);
  transition: .3s;
}

.services__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px hsla(var(--hue), 100%, 60%, .15);
}

.services__icon {
  font-size: 2.5rem;
  color: var(--first-color);
  margin-bottom: var(--mb-1);
}

.services__title {
  font-size: var(--h3-font-size);
  margin-bottom: var(--mb-0-75);
}

.services__description {
  line-height: 1.6;
}

/* ===== PROCEDURES ===== */
.procedures__container {
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  max-width: 1200px;
  margin: 0 auto;
}

/* Show 4 items per row on large screens */
@media screen and (min-width: 1200px) {
  .procedures__container {
    grid-template-columns: repeat(4, 1fr);
    max-width: 1200px;
  }
}

.procedures__card {
  background-color: var(--container-color);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 20px hsla(var(--hue), 100%, 60%, .1);
  transition: .3s;
  display: flex;
  align-items: center;
  min-height: 150px;
}

.procedures__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px hsla(var(--hue), 100%, 60%, .15);
}



.procedures__content {
  padding: 2rem 1.5rem;
  text-align: center;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.procedures__title {
  font-size: var(--h3-font-size);
  margin-bottom: var(--mb-0-5);
  color: var(--title-color);
}

.procedures__description {
  margin-bottom: var(--mb-1);
  line-height: 1.6;
}

.procedures__button {
  text-align: center;
  margin-top: 2rem;
}



/* ===== BLOG ===== */
.blog__container {
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Prevent single items from stretching on large screens only */
@media screen and (min-width: 768px) {
  .blog__container:has(.blog__card:only-child) {
    display: flex;
    justify-content: flex-start;
  }

  .blog__container:has(.blog__card:only-child) .blog__card {
    width: 100%;
    max-width: 350px;
    flex-shrink: 0;
  }

  /* Alternative for browsers that don't support :has() */
  .blog__container.single-item {
    display: flex;
    justify-content: flex-start;
  }

  .blog__container.single-item .blog__card {
    width: 100%;
    max-width: 350px;
    flex-shrink: 0;
  }
}

.blog__card {
  background-color: var(--container-color);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 20px hsla(var(--hue), 100%, 60%, .1);
  transition: .3s;
  cursor: pointer;
}

.blog__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px hsla(var(--hue), 100%, 60%, .15);
}

.blog__img {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.blog__img-main {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: .3s;
}

.blog__card:hover .blog__img-main {
  transform: scale(1.05);
}

.blog__content {
  padding: 1.5rem;
}

.blog__title a {
  color: var(--title-color);
  font-size: var(--h3-font-size);
  font-weight: var(--font-semi-bold);
  transition: .3s;
}

.blog__title a:hover {
  color: var(--first-color);
}

.blog__description {
  margin: var(--mb-0-75) 0 var(--mb-1);
  line-height: 1.6;
}

.blog__read-more {
  color: var(--first-color);
  font-weight: var(--font-medium);
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  transition: .3s;
}

.blog__read-more:hover {
  gap: .5rem;
}

.blog__button {
  text-align: center;
  margin-top: var(--mb-2-5);
}

/* ===== CONTACT ===== */
.contact__container {
  gap: 3rem;
  grid-template-columns: repeat(2, 1fr);
}

.contact__container--with-map {
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact__info {
  display: grid;
  gap: 2rem;
}

.contact__info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact__icon {
  font-size: 1.5rem;
  color: var(--first-color);
  margin-top: .25rem;
}

.contact__info-item h3 {
  font-size: var(--h3-font-size);
  margin-bottom: var(--mb-0-25);
}

.contact__info-item p {
  color: var(--text-color);
  line-height: 1.6;
}

.contact__card {
  background-color: var(--container-color);
  padding: 2rem 1.5rem;
  border-radius: 1rem;
  text-align: center;
  box-shadow: 0 4px 16px hsla(var(--hue), 100%, 60%, .1);
  transition: .3s;
  margin-bottom: 1.5rem;
}

.contact__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px hsla(var(--hue), 100%, 60%, .15);
}

.contact__card-icon {
  font-size: 2rem;
  color: var(--first-color);
  margin-bottom: 1rem;
}

.contact__card-title {
  font-size: var(--h3-font-size);
  font-weight: var(--font-medium);
  margin-bottom: .5rem;
}

.contact__card-data {
  color: var(--text-color);
  line-height: 1.6;
}

.contact__form {
  display: grid;
  gap: 1.5rem;
}

.contact__form-div {
  position: relative;
}

.contact__form-tag {
  position: absolute;
  top: -.75rem;
  left: 1.25rem;
  font-size: var(--smaller-font-size);
  padding: .25rem;
  background-color: var(--body-color);
  z-index: 10;
  color: var(--title-color);
  font-weight: var(--font-medium);
}

.contact__form-input {
  position: relative;
  background-color: var(--container-color);
  color: var(--text-color);
  outline: none;
  border: 2px solid var(--container-color);
  font-size: var(--normal-font-size);
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  width: 100%;
  z-index: 1;
  transition: .3s;
}

.contact__form-input:focus {
  border-color: var(--first-color);
}

.contact__form-area {
  height: 11rem;
}

.contact__form-area textarea {
  resize: none;
  height: 100%;
}

.contact__title {
  margin-bottom: 1rem;
}

/* Contact responsive */
@media screen and (min-width: 768px) {
  .contact__container {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }

  .contact__info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}



.contact__map {
  width: 100%;
  height: 450px;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 8px 20px hsla(var(--hue), 100%, 60%, .15);
}

.contact__map iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ===== FOOTER ===== */
.footer {
  background-color: var(--title-color);
  padding-top: 2rem;
}

.footer__container {
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  justify-items: start;
}

/* Medium screens - 2 columns */
@media screen and (min-width: 768px) and (max-width: 1023px) {
  .footer__container {
    grid-template-columns: repeat(2, 1fr);
    justify-items: center;
  }
}

/* Large screens - 3 columns */
@media screen and (min-width: 1024px) {
  .footer__container {
    grid-template-columns: repeat(3, 1fr);
    justify-items: center;
  }
}

.footer__content {
  margin-bottom: var(--mb-2);
}

.footer__logo h3 {
  color: var(--white-color);
  margin-bottom: var(--mb-0-25);
}

.footer__logo p {
  color: var(--text-color-light);
  font-size: var(--small-font-size);
}

.footer__description {
  margin: var(--mb-1) 0 var(--mb-1-5);
  color: var(--text-color-light);
  line-height: 1.6;
}

.footer__social {
  display: flex;
  gap: 1rem;
}

.footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background-color: var(--first-color);
  color: var(--white-color);
  border-radius: 50%;
  transition: .3s;
}

.footer__social-link:hover {
  background-color: var(--first-color-alt);
  transform: translateY(-2px);
}

.footer__title {
  color: var(--white-color);
  font-size: var(--h3-font-size);
  margin-bottom: var(--mb-1);
}

.footer__links {
  display: grid;
  gap: .5rem;
}

.footer__link {
  color: var(--text-color-light);
  transition: .3s;
}

.footer__link:hover {
  color: var(--first-color);
}

.footer__info {
  display: grid;
  gap: .75rem;
}

.footer__info li {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--text-color-light);
  font-size: var(--small-font-size);
}

.footer__info i {
  color: var(--first-color);
}

.footer__copy {
  padding: 1.5rem 0;
  margin-top: 2rem;
  border-top: 1px solid hsla(var(--hue), 4%, 24%, .15);
  text-align: center;
}

.footer__copy p {
  color: var(--text-color-light);
  font-size: var(--small-font-size);
}

/* ===== SCROLL UP ===== */
.scrollup {
  position: fixed;
  right: 1.5rem;
  bottom: -20%;
  background: linear-gradient(135deg, var(--first-color) 0%, var(--first-color-alt) 100%);
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-tooltip);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  border: 2px solid transparent;
  backdrop-filter: blur(10px);
}

.scrollup:hover {
  background: linear-gradient(135deg, var(--first-color-alt) 0%, var(--first-color) 100%);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
  border-color: var(--white-color);
}

.scrollup:active {
  transform: translateY(-1px) scale(1.02);
  transition: all 0.1s ease;
}

.scrollup__icon {
  font-size: 1.25rem;
  color: var(--white-color);
  transition: all 0.3s ease;
  animation: bounce 2s infinite;
}

.scrollup:hover .scrollup__icon {
  transform: translateY(-2px);
  color: var(--white-color);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Bounce animation for the icon */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-3px);
  }
  60% {
    transform: translateY(-1px);
  }
}

/* Show scroll with smooth animation */
.show-scroll {
  bottom: 2rem;
  animation: slideInUp 0.5s ease-out;
}

@keyframes slideInUp {
  from {
    bottom: -20%;
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    bottom: 2rem;
    opacity: 1;
    transform: translateY(0);
  }
}

/* Pulse effect when button appears */
.scrollup.show-scroll {
  animation: slideInUp 0.5s ease-out, pulse 1.5s ease-in-out 0.5s;
}

@keyframes pulse {
  0% {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }
  50% {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 0 0 10px rgba(var(--first-color-rgb), 0.1);
  }
  100% {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }
}

/* Mobile responsiveness */
@media screen and (max-width: 768px) {
  .scrollup {
    right: 1rem;
    width: 3rem;
    height: 3rem;
  }

  .scrollup__icon {
    font-size: 1.1rem;
  }

  .show-scroll {
    bottom: 1.5rem;
  }
}

/* ===== BREAKPOINTS ===== */
/* For large devices */
@media screen and (max-width: 992px) {
  .container {
    margin-left: var(--mb-1-5);
    margin-right: var(--mb-1-5);
  }

  .home__container,
  .about__container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .home__data,
  .about__data {
    text-align: center;
  }

  .home__img,
  .about__img {
    order: -1;
  }

  .contact__container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact__container--with-map {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* For medium devices */
@media screen and (max-width: 992px) {
  .contact__container--with-map {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .contact__map {
    height: 350px;
  }
}

@media screen and (max-width: 768px) {
  .nav__menu {
    position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    background-color: var(--container-color);
    padding: 2rem 1.5rem 4rem;
    box-shadow: 0 1px 4px hsla(var(--hue), 4%, 15%, .15);
    border-radius: 0 0 1rem 1rem;
    transition: .3s;
  }

  .home__buttons {
    justify-content: center;
  }

  .about__data {
    text-align: center;
  }

  .section__title_inner {
    text-align: center;
  }

  .nav__list {
    flex-direction: column;
    gap: 1.5rem;
  }

  .nav__link {
    display: block;
  }

  .nav__close,
  .nav__toggle {
    display: block;
  }

  .nav__close {
    position: absolute;
    top: 1rem;
    right: 1.3rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--first-color);
  }

  .nav__toggle {
    font-size: 1.1rem;
    cursor: pointer;
    color: var(--first-color);
  }

  /* Show menu */
  .show-menu {
    top: 0;
  }

  .section {
    padding: 2rem 0 4rem;
  }

  .home {
    padding-top: 5rem;
  }

  .services__container,
  .procedures__container,
  .blog__container {
    grid-template-columns: 1fr;
  }

  .contact__map {
    height: 300px;
  }
}

/* For small devices */
@media screen and (max-width: 350px) {
  .container {
    margin-left: var(--mb-1);
    margin-right: var(--mb-1);
  }

  .home__buttons {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .button {
    width: 100%;
    justify-content: center;
  }

  .footer__container {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 1.5rem;
  }

  .footer__content {
    text-align: left;
  }
}

/* For extra large devices */
@media screen and (min-width: 1200px) {
  .container {
    margin-left: auto;
    margin-right: auto;
  }

  .home__container {
    grid-template-columns: 1fr 1.2fr;
  }

  .about__container {
    grid-template-columns: 1.2fr 1fr;
  }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* ===== UTILITY CLASSES ===== */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mb-1 {
  margin-bottom: var(--mb-1);
}

.mb-2 {
  margin-bottom: var(--mb-2);
}

.mb-3 {
  margin-bottom: var(--mb-3);
}

/* ===== LOADING STATES ===== */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--first-color);
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ===== PAGINATION ===== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: var(--mb-3);
}

.pagination__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background-color: var(--container-color);
  color: var(--text-color);
  border: 1px solid var(--text-color-lighten);
  border-radius: 0.5rem;
  font-weight: var(--font-medium);
  transition: .3s;
}

.pagination__link:hover,
.pagination__link--active {
  background-color: var(--first-color);
  color: var(--white-color);
  border-color: var(--first-color);
}

.pagination__link:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.pagination__link i {
  font-size: 0.875rem;
}

/* ===== BLOG HEADER ===== */
.blog-header {
  background: linear-gradient(135deg, var(--first-color-light) 0%, var(--body-color) 100%);
  padding-top: 7rem;
  padding-bottom: 2rem;
}

/* ===== BLOG POSTS PAGE ===== */
.blog-posts {
  padding-top: 2rem;
}

/* ===== PROCEDURES PAGE ===== */
.procedures {
  padding-top: 2rem;
}

/* ===== GALLERY PAGE ===== */
.gallery {
  padding-top: 2rem;
}

/* ===== INDIVIDUAL BLOG POST ===== */
.blog-post {
  padding-top: 7rem;
}

.blog-post__header {
  text-align: center;
  margin-bottom: var(--mb-3);
}

.blog-post__title {
  font-size: var(--biggest-font-size);
  margin-bottom: var(--mb-1);
  line-height: 1.2;
}

.blog-post__meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-bottom: var(--mb-2);
  flex-wrap: wrap;
}

.blog-post__meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-color);
  font-size: var(--small-font-size);
}

.blog-post__featured-image {
  width: 100%;
  max-width: 800px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 1rem;
  margin: 0 auto var(--mb-3);
  display: block;
  box-shadow: 0 8px 20px hsla(var(--hue), 100%, 60%, .15);
}

.blog-post__content {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

.blog-post__content h2,
.blog-post__content h3,
.blog-post__content h4 {
  margin: var(--mb-2) 0 var(--mb-1);
  color: var(--title-color);
}

.blog-post__content p {
  margin-bottom: var(--mb-1-5);
}

.blog-post__content ul,
.blog-post__content ol {
  margin: var(--mb-1) 0 var(--mb-1-5) var(--mb-2);
}

.blog-post__content li {
  margin-bottom: var(--mb-0-5);
  list-style: disc;
}

.blog-post__navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--mb-3);
  padding-top: var(--mb-2);
  border-top: 1px solid var(--text-color-lighten);
}

.blog-post__nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--first-color);
  font-weight: var(--font-medium);
  transition: .3s;
}

.blog-post__nav-link:hover {
  gap: 1rem;
}

/* ===== ERROR PAGE ===== */
.error-page {
  padding-top: 7rem;
  text-align: center;
}

.error-page__content {
  max-width: 600px;
  margin: 0 auto;
}

.error-page__number {
  font-size: 8rem;
  font-weight: var(--font-bold);
  color: var(--first-color);
  line-height: 1;
  margin-bottom: var(--mb-1);
}

.error-page__title {
  font-size: var(--h1-font-size);
  margin-bottom: var(--mb-1);
}

.error-page__description {
  margin-bottom: var(--mb-2-5);
  color: var(--text-color);
  line-height: 1.6;
}

.error-page__buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ===== SCROLL HEADER ===== */
.scroll-header {
  box-shadow: 0 1px 4px hsla(var(--hue), 4%, 15%, .1);
}

/* ===== ANIMATIONS ===== */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideOutRight {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(100%);
  }
}
