/*!
 * Clinic CSS refatorado para index.html.
 * Mantem apenas a base, utilitarios e componentes usados na pagina inicial.
 */

/* ==========================================================================
   Tokens e tema
   Define fontes, cores globais e variaveis compartilhadas.
   ========================================================================== */
:root {
  --default-font: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  --heading-font: "Ubuntu", sans-serif;
  --nav-font: "Poppins", sans-serif;
  --background-color: #ffffff;
  --default-color: #4b555e;
  --heading-color: #2f373a;
  --accent-color: #3c586f;
  --accent-hover: #496378;
  --surface-color: #ffffff;
  --contrast-color: #ffffff;
  --nav-color: #2f373a;
  --nav-hover-color: #3c586f;
  --nav-mobile-background-color: #ffffff;
  --nav-dropdown-color: #2f373a;
  --nav-dropdown-hover-color: #3c586f;
  --bs-primary: #3c586f;
  --bs-primary-rgb: 60, 88, 111;
  --bs-secondary-rgb: 108, 117, 125;
  --bs-light: #eaeff2;
  --bs-light-rgb: 234, 239, 242;
  --bs-white-rgb: 255, 255, 255;
  --bs-body-font-family: var(--default-font);
  --bs-body-color: var(--default-color);
  --bs-body-bg: var(--background-color);
  --bs-link-color: var(--accent-color);
  --bs-link-hover-color: var(--accent-hover);
  scroll-behavior: smooth;
}

.dark-background {
  --background-color: #253442;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --surface-color: #2e3f4f;
  --contrast-color: #ffffff;
}

/* ==========================================================================
   Reset e base
   Normaliza o box model, tipografia, links, imagens e controles nativos.
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  color: var(--default-color);
  background-color: var(--background-color);
  font-family: var(--default-font);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

main {
  display: block;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h4,
.h5 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: var(--heading-color);
  font-family: var(--heading-font);
  font-weight: 500;
  line-height: 1.2;
}

h1 {
  font-size: calc(1.375rem + 1.5vw);
}

h2 {
  font-size: calc(1.325rem + 0.9vw);
}

h3,
.h3 {
  font-size: calc(1.3rem + 0.6vw);
}

h4,
.h4 {
  font-size: calc(1.275rem + 0.3vw);
}

h5,
.h5 {
  font-size: 1.25rem;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

a:hover {
  color: var(--accent-hover);
}

img,
svg {
  vertical-align: middle;
}

img {
  max-width: 100%;
}

button,
input,
textarea {
  margin: 0;
  font: inherit;
}

button {
  border-radius: 0;
}

button:not(:disabled),
[type="button"]:not(:disabled),
[type="submit"]:not(:disabled) {
  cursor: pointer;
}

textarea {
  resize: vertical;
}

ul {
  margin-top: 0;
  margin-bottom: 1rem;
  padding-left: 2rem;
}

/* ==========================================================================
   Layout e grid
   Subconjunto do Bootstrap necessario para containers, linhas e colunas.
   ========================================================================== */
.container {
  --bs-gutter-x: 1.5rem;
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding-right: calc(var(--bs-gutter-x) * 0.5);
  padding-left: calc(var(--bs-gutter-x) * 0.5);
}

@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

.row {
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 0;
  display: flex;
  flex-wrap: wrap;
  margin-top: calc(-1 * var(--bs-gutter-y));
  margin-right: calc(-0.5 * var(--bs-gutter-x));
  margin-left: calc(-0.5 * var(--bs-gutter-x));
}

.row > * {
  flex-shrink: 0;
  width: 100%;
  max-width: 100%;
  margin-top: var(--bs-gutter-y);
  padding-right: calc(var(--bs-gutter-x) * 0.5);
  padding-left: calc(var(--bs-gutter-x) * 0.5);
}

.col {
  flex: 1 0 0%;
}

.col-6 {
  flex: 0 0 auto;
  width: 50%;
}

.col-12,
.row-cols-1 > * {
  flex: 0 0 auto;
  width: 100%;
}

.gx-5 {
  --bs-gutter-x: 3rem;
}

.gy-4 {
  --bs-gutter-y: 1.5rem;
}

.g-4 {
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 1.5rem;
}

.g-3 {
  --bs-gutter-x: 1rem;
  --bs-gutter-y: 1rem;
}

@media (min-width: 768px) {
  .col-md-6,
  .row-cols-md-2 > * {
    flex: 0 0 auto;
    width: 50%;
  }
}

@media (min-width: 992px) {
  .col-lg-3 {
    flex: 0 0 auto;
    width: 25%;
  }

  .col-lg-4 {
    flex: 0 0 auto;
    width: 33.33333333%;
  }

  .col-lg-5 {
    flex: 0 0 auto;
    width: 41.66666667%;
  }

  .col-lg-6 {
    flex: 0 0 auto;
    width: 50%;
  }

  .col-lg-7 {
    flex: 0 0 auto;
    width: 58.33333333%;
  }

  .col-lg-8 {
    flex: 0 0 auto;
    width: 66.66666667%;
  }
}

@media (min-width: 1200px) {
  .col-xl-6 {
    flex: 0 0 auto;
    width: 50%;
  }

  .col-xl-7 {
    flex: 0 0 auto;
    width: 58.33333333%;
  }
}

@media (min-width: 1400px) {
  .col-xxl-6 {
    flex: 0 0 auto;
    width: 50%;
  }
}

/* ==========================================================================
   Utilitarios
   Helpers usados diretamente no HTML para display, espacamento, texto e cor.
   ========================================================================== */
.img-fluid {
  max-width: 100%;
  height: auto;
}

.lead {
  font-size: 1.25rem;
  font-weight: 300;
}

.lead-text {
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.7;
}

.display-4 {
  font-size: calc(1.475rem + 2.7vw);
  font-weight: 300;
  line-height: 1.2;
}

@media (min-width: 1200px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  h3,
  .h3 {
    font-size: 1.75rem;
  }

  h4,
  .h4 {
    font-size: 1.5rem;
  }

  .display-4 {
    font-size: 3.5rem;
  }
}

.h-100 {
  height: 100% !important;
}

.min-vh-75 {
  min-height: 75vh;
}

.d-none {
  display: none !important;
}

.d-flex {
  display: flex !important;
}

.d-grid {
  display: grid !important;
}

.flex-column {
  flex-direction: column !important;
}

.flex-shrink-0 {
  flex-shrink: 0 !important;
}

.align-items-start {
  align-items: flex-start !important;
}

.align-items-center {
  align-items: center !important;
}

.justify-content-start {
  justify-content: flex-start !important;
}

.justify-content-center {
  justify-content: center !important;
}

.justify-content-between {
  justify-content: space-between !important;
}

.gap-2 {
  gap: 0.5rem !important;
}

.gap-3 {
  gap: 1rem !important;
}

.position-relative {
  position: relative !important;
}

.sticky-top {
  position: sticky;
  top: 0;
  z-index: 1020;
}

.overflow-hidden {
  overflow: hidden !important;
}

.shadow {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.shadow-sm {
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.border-0 {
  border: 0 !important;
}

.border-top {
  border-top: 1px solid #dee2e6 !important;
}

.border-top-0 {
  border-top: 0 !important;
}

.border-secondary {
  border-color: rgba(var(--bs-secondary-rgb), 0.45) !important;
}

.rounded-3 {
  border-radius: 0.5rem !important;
}

.rounded-circle {
  border-radius: 50% !important;
}

.rounded-pill {
  border-radius: 50rem !important;
}

.m-0 {
  margin: 0 !important;
}

.mx-auto {
  margin-right: auto !important;
  margin-left: auto !important;
}

.my-5 {
  margin-top: 3rem !important;
  margin-bottom: 3rem !important;
}

.mt-4 {
  margin-top: 1.5rem !important;
}

.mt-5 {
  margin-top: 3rem !important;
}

.mt-auto {
  margin-top: auto !important;
}

.me-2 {
  margin-right: 0.5rem !important;
}

.me-3 {
  margin-right: 1rem !important;
}

.me-auto {
  margin-right: auto !important;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.mb-1 {
  margin-bottom: 0.25rem !important;
}

.mb-2 {
  margin-bottom: 0.5rem !important;
}

.mb-3 {
  margin-bottom: 1rem !important;
}

.mb-4 {
  margin-bottom: 1.5rem !important;
}

.mb-5 {
  margin-bottom: 3rem !important;
}

.ms-2 {
  margin-left: 0.5rem !important;
}

.ms-4 {
  margin-left: 1.5rem !important;
}

.p-2 {
  padding: 0.5rem !important;
}

.p-4 {
  padding: 1.5rem !important;
}

.px-3 {
  padding-right: 1rem !important;
  padding-left: 1rem !important;
}

.px-4 {
  padding-right: 1.5rem !important;
  padding-left: 1.5rem !important;
}

.px-5 {
  padding-right: 3rem !important;
  padding-left: 3rem !important;
}

.py-2 {
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
}

.py-3 {
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
}

.py-5 {
  padding-top: 3rem !important;
  padding-bottom: 3rem !important;
}

.pt-0 {
  padding-top: 0 !important;
}

.pt-4 {
  padding-top: 1.5rem !important;
}

.text-start {
  text-align: left !important;
}

.text-end {
  text-align: right !important;
}

.text-center {
  text-align: center !important;
}

.text-decoration-none {
  text-decoration: none !important;
}

.text-uppercase {
  text-transform: uppercase !important;
}

.text-primary {
  color: rgba(var(--bs-primary-rgb), 1) !important;
}

.text-muted {
  color: #6c757d !important;
}

.text-white {
  color: #ffffff !important;
}

.text-white-50 {
  color: rgba(255, 255, 255, 0.5) !important;
}

.link-dark {
  color: #212529 !important;
}

.link-dark:hover {
  color: var(--accent-color) !important;
}

.bg-primary {
  background-color: rgba(var(--bs-primary-rgb), 1) !important;
}

.bg-light {
  background-color: rgba(var(--bs-light-rgb), 1) !important;
}

.bg-white {
  background-color: #ffffff !important;
}

.bg-transparent {
  background-color: transparent !important;
}

.bg-gradient {
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0)) !important;
}

.fw-normal {
  font-weight: 400 !important;
}

.fw-bold {
  font-weight: 700 !important;
}

.fw-bolder {
  font-weight: bolder !important;
}

.small {
  font-size: 0.875em;
}

.fs-3 {
  font-size: calc(1.3rem + 0.6vw) !important;
}

.tracking-wider {
  letter-spacing: 0.08em;
}

.transition-all {
  transition: all 0.3s ease;
}

.hover-translate-y:hover {
  transform: translateY(-5px);
}

@media (min-width: 576px) {
  .d-sm-block {
    display: block !important;
  }

  .d-sm-flex {
    display: flex !important;
  }

  .me-sm-3 {
    margin-right: 1rem !important;
  }

  .p-sm-5 {
    padding: 3rem !important;
  }

  .justify-content-sm-start {
    justify-content: flex-start !important;
  }
}

@media (min-width: 768px) {
  .d-md-flex {
    display: flex !important;
  }

  .mb-md-0 {
    margin-bottom: 0 !important;
  }

  .justify-content-md-between {
    justify-content: space-between !important;
  }
}

@media (min-width: 992px) {
  .mb-lg-0 {
    margin-bottom: 0 !important;
  }

  .text-lg-start {
    text-align: left !important;
  }

  .text-lg-end {
    text-align: right !important;
  }
}

@media (min-width: 1200px) {
  .d-xl-none {
    display: none !important;
  }
}

@media (max-width: 575px) {
  .container.px-5 {
    padding-right: 1.25rem !important;
    padding-left: 1.25rem !important;
  }
}

/* ==========================================================================
   Botoes, badges, cards e formularios
   Componentes reaproveitados nas secoes da pagina.
   ========================================================================== */
.btn {
  display: inline-block;
  color: #212529;
  text-align: center;
  vertical-align: middle;
  user-select: none;
  background-color: transparent;
  border: 1px solid transparent;
  border-radius: 0.375rem;
  padding: 0.375rem 0.75rem;
  font-family: var(--nav-font);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1.125rem;
  border-radius: 0.5rem;
}

.btn-primary {
  color: #ffffff !important;
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
  border-color: transparent;
  border-radius: 30px;
  padding: 12px 28px;
  box-shadow: 0 4px 15px rgba(60, 88, 111, 0.25);
}

.btn-primary:hover,
.btn-primary:focus {
  color: #ffffff !important;
  background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent-color) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(60, 88, 111, 0.35);
}

.btn-outline-light {
  color: #ffffff !important;
  background-color: transparent;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 30px;
}

.btn-outline-light:hover,
.btn-outline-light:focus {
  color: var(--heading-color) !important;
  background-color: #ffffff;
  border-color: #ffffff;
  transform: translateY(-2px);
}

.badge {
  display: inline-block;
  padding: 0.35em 0.65em;
  color: #ffffff;
  font-size: 0.75em;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
}

.badge.bg-primary {
  background: var(--accent-color) !important;
  color: #ffffff !important;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 6px 14px !important;
  text-transform: uppercase;
}

.feature {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(60, 88, 111, 0.25);
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.feature:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(60, 88, 111, 0.35);
}

.feature.bg-white {
  color: var(--accent-color) !important;
  background: #ffffff !important;
}

.card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  color: var(--default-color);
  word-wrap: break-word;
  background-color: #ffffff;
  background-clip: border-box;
  border: 0;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 45px rgba(60, 88, 111, 0.1);
}

.card-body {
  flex: 1 1 auto;
  padding: 30px;
}

.card-footer {
  padding: 0 30px 30px;
  background-color: transparent;
  border-top: 0;
}

.card-title {
  margin-bottom: 0.5rem;
}

.card-text:last-child {
  margin-bottom: 0;
}

.card-img-top {
  width: 100%;
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
  transition: transform 0.5s ease;
}

.card:hover .card-img-top {
  transform: scale(1.04);
}

.stretched-link::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
}

.form-control {
  display: block;
  width: 100%;
  padding: 0.375rem 0.75rem;
  color: #212529;
  background-color: #ffffff;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
  color: #212529;
  background-color: #ffffff;
  border-color: color-mix(in srgb, var(--accent-color), white 40%);
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(60, 88, 111, 0.18);
}

.form-control::placeholder {
  color: #6c757d;
  opacity: 1;
}

.form-floating {
  position: relative;
}

.form-floating > .form-control::placeholder {
  color: transparent;
  opacity: 0;
}

.form-floating > .form-control {
  height: calc(3.5rem + 2px);
  min-height: calc(3.5rem + 2px);
  padding: 1rem 0.75rem;
  line-height: 1.25;
}

.form-floating > label {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  height: 100%;
  max-width: 100%;
  margin: 0;
  padding: 1rem 0.75rem;
  color: rgba(33, 37, 41, 0.65);
  overflow: hidden;
  text-align: start;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
  border: 1px solid transparent;
  transform-origin: 0 0;
  transition: opacity 0.1s ease-in-out, transform 0.1s ease-in-out;
}

.form-floating > .form-control:focus,
.form-floating > .form-control:not(:placeholder-shown) {
  padding-top: 1.625rem;
  padding-bottom: 0.625rem;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
  color: rgba(33, 37, 41, 0.65);
  transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

textarea.form-control {
  min-height: calc(1.5em + 0.75rem + 2px);
}

/* ==========================================================================
   Carousel
   Regras estruturais do Bootstrap e visual do hero principal.
   ========================================================================== */
.carousel {
  position: relative;
}

.carousel.pointer-event {
  touch-action: pan-y;
}

.carousel-inner {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.carousel-inner::after {
  display: block;
  clear: both;
  content: "";
}

.carousel-item {
  position: relative;
  display: none;
  float: left;
  width: 100%;
  margin-right: -100%;
  backface-visibility: hidden;
  transition: transform 1.1s ease-in-out;
}

.carousel-item.active,
.carousel-item-next,
.carousel-item-prev {
  display: block;
}

.carousel-item-next:not(.carousel-item-start),
.active.carousel-item-end {
  transform: translateX(100%);
}

.carousel-item-prev:not(.carousel-item-end),
.active.carousel-item-start {
  transform: translateX(-100%);
}

.carousel-control-prev,
.carousel-control-next {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 15%;
  padding: 0;
  color: #ffffff;
  text-align: center;
  background: none;
  border: 0;
  opacity: 0.5;
  transition: opacity 0.15s ease;
}

.carousel-control-prev:hover,
.carousel-control-prev:focus,
.carousel-control-next:hover,
.carousel-control-next:focus {
  color: #ffffff;
  text-decoration: none;
  outline: 0;
  opacity: 0.9;
}

.carousel-control-prev {
  left: 0;
}

.carousel-control-next {
  right: 0;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  background-repeat: no-repeat;
  background-position: 50%;
  background-size: 100% 100%;
}

.carousel-control-prev-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
}

.carousel-control-next-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.carousel-indicators {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  padding: 0;
  margin-right: 15%;
  margin-bottom: 1rem;
  margin-left: 15%;
  list-style: none;
}

.carousel-indicators [data-bs-target] {
  box-sizing: content-box;
  flex: 0 1 auto;
  width: 30px;
  height: 3px;
  padding: 0;
  margin-right: 3px;
  margin-left: 3px;
  text-indent: -999px;
  cursor: pointer;
  background-color: #ffffff;
  background-clip: padding-box;
  border: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  opacity: 0.5;
  transition: opacity 0.6s ease;
}

.carousel-indicators .active {
  opacity: 1;
}

#hero-carousel {
  position: relative;
  margin-top: 0;
  overflow: hidden;
  user-select: none;
}

#hero-carousel .carousel-item {
  position: relative;
  height: 75vh;
  min-height: 550px;
  overflow: hidden;
}

#hero-carousel .carousel-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  pointer-events: none;
  transform: scale(1);
}

#hero-carousel .carousel-item:nth-child(odd).active .carousel-bg {
  animation: hero-kb-a 14s ease forwards;
}

#hero-carousel .carousel-item:nth-child(even).active .carousel-bg {
  animation: hero-kb-b 14s ease forwards;
}

@keyframes hero-kb-a {
  0%   { transform: scale(1);    background-position: 60% 55%; }
  100% { transform: scale(1.08); background-position: 40% 45%; }
}

@keyframes hero-kb-b {
  0%   { transform: scale(1.08); background-position: 40% 45%; }
  100% { transform: scale(1.04); background-position: 60% 55%; }
}

#hero-carousel .container {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
}

#hero-carousel .carousel-indicators {
  z-index: 15;
}

#hero-carousel .carousel-indicators [data-bs-target] {
  width: 12px;
  height: 12px;
  margin: 0 6px;
  border: 2px solid transparent;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  transition: all 0.3s ease;
}

#hero-carousel .carousel-indicators .active {
  background-color: var(--accent-color);
  border-color: rgba(255, 255, 255, 0.6);
  transform: scale(1.2);
}

#hero-carousel .carousel-control-prev,
#hero-carousel .carousel-control-next {
  width: 6%;
  z-index: 3;
  opacity: 0.5;
}

#hero-carousel .carousel-control-prev:hover,
#hero-carousel .carousel-control-next:hover {
  opacity: 1;
}

#hero-carousel .carousel-control-prev-icon,
#hero-carousel .carousel-control-next-icon {
  padding: 1.5rem;
  border-radius: 50%;
  background-color: rgba(60, 88, 111, 0.8);
  background-size: 50%;
}

#hero-carousel .carousel-item .carousel-content-wrapper > * {
  opacity: 0;
}

#hero-carousel .carousel-item.active .carousel-content-wrapper > span.badge {
  animation: fade-in-up 0.8s ease forwards 0.2s;
}

#hero-carousel .carousel-item.active .carousel-content-wrapper > h1 {
  animation: fade-in-up 0.8s ease forwards 0.4s;
}

#hero-carousel .carousel-item.active .carousel-content-wrapper > p {
  animation: fade-in-up 0.8s ease forwards 0.6s;
}

#hero-carousel .carousel-item.active .carousel-content-wrapper > .d-grid {
  animation: fade-in-up 0.8s ease forwards 0.8s;
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes moveBg {
  0% {
    transform: scale(1.05) translate(0, 0);
  }

  50% {
    transform: scale(1.12) translate(-2%, 1%);
  }

  100% {
    transform: scale(1.05) translate(1%, -1%);
  }
}
/* ==========================================================================
   Header e navegacao
   Topbar, marca, menu desktop e comportamento do menu mobile.
   ========================================================================== */
.header {
  --background-color: rgba(255, 255, 255, 0);
  z-index: 997;
  color: var(--default-color);
  background-color: var(--background-color);
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.1);
  transition: all 0.5s ease;
}

.header .topbar {
  height: 40px;
  padding: 0;
  background-color: var(--accent-color);
  font-size: 14px;
  transition: all 0.5s ease;
}

.header .topbar .contact-info i {
  color: var(--contrast-color);
  font-style: normal;
}

.header .topbar .contact-info i span {
  padding-left: 5px;
  color: var(--contrast-color);
}

.header .topbar .social-links a {
  margin-left: 20px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 0;
}

.header .topbar .social-links a:hover {
  color: var(--contrast-color);
}

.header .branding {
  min-height: 60px;
  padding: 10px 0;
}

.header .logo {
  line-height: 1;
}

.header .logo img {
  max-height: 36px;
  margin-right: 8px;
}

.scrolled .header {
  --background-color: #ffffff;
}

.scrolled .header .topbar {
  height: 0;
  overflow: hidden;
  visibility: hidden;
}

.header .cta-btn {
  display: inline-block;
  margin-left: 20px;
  padding: 10px 24px;
  color: var(--contrast-color) !important;
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
  border-radius: 25px;
  box-shadow: 0 4px 15px rgba(60, 88, 111, 0.2);
  font-family: var(--nav-font);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.header .cta-btn:hover {
  color: var(--contrast-color);
  background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent-color) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(60, 88, 111, 0.35);
}

@media (min-width: 1200px) {
  .navmenu {
    padding: 0;
  }

  .navmenu ul {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .navmenu li {
    position: relative;
  }

  .navmenu > ul > li {
    padding: 15px 14px;
    white-space: nowrap;
  }

  .navmenu > ul > li:last-child {
    padding-right: 0;
  }

  .navmenu a,
  .navmenu a:focus {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2px;
    color: var(--nav-color);
    font-family: var(--nav-font);
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
  }

  .navmenu > ul > li > a::before {
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    visibility: hidden;
    background-color: var(--accent-color);
    content: "";
    transition: all 0.3s ease;
  }

  .navmenu a:hover::before,
  .navmenu li:hover > a::before,
  .navmenu .active::before {
    width: 100%;
    visibility: visible;
  }

  .navmenu li:hover > a,
  .navmenu .active,
  .navmenu .active:focus {
    color: var(--nav-hover-color);
  }
}

@media (max-width: 1199px) {
  .mobile-nav-toggle {
    margin-right: 10px;
    color: var(--nav-color);
    font-size: 28px;
    line-height: 0;
    cursor: pointer;
    transition: color 0.3s ease;
  }

  .navmenu {
    padding: 0;
    z-index: 9997;
  }

  .navmenu ul {
    position: absolute;
    inset: 60px 20px 20px 20px;
    z-index: 9998;
    display: none;
    margin: 0;
    padding: 10px 0;
    overflow-y: auto;
    list-style: none;
    background-color: var(--nav-mobile-background-color);
    border: 1px solid rgba(75, 85, 94, 0.1);
    border-radius: 6px;
  }

  .navmenu a,
  .navmenu a:focus {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    color: var(--nav-dropdown-color);
    font-family: var(--nav-font);
    font-size: 17px;
    font-weight: 500;
    white-space: nowrap;
  }

  .navmenu a:hover,
  .navmenu .active,
  .navmenu .active:focus {
    color: var(--nav-dropdown-hover-color);
  }

  .mobile-nav-active {
    overflow: hidden;
  }

  .mobile-nav-active .mobile-nav-toggle {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 9999;
    margin-right: 0;
    color: #ffffff;
    font-size: 32px;
  }

  .mobile-nav-active .navmenu {
    position: fixed;
    inset: 0;
    overflow: hidden;
    background: rgba(33, 37, 41, 0.8);
    transition: 0.3s ease;
  }

  .mobile-nav-active .navmenu > ul {
    display: block;
  }
}

/* ==========================================================================
   Secoes globais
   Padding padrao, ancoras de scroll e titulos de secao.
   ========================================================================== */
section,
.section {
  padding: 60px 0;
  color: var(--default-color);
  background-color: var(--background-color);
  scroll-margin-top: 90px;
  overflow: clip;
}

@media (max-width: 1199px) {
  section,
  .section {
    scroll-margin-top: 66px;
  }
}

.section-title {
  position: relative;
  padding-bottom: 60px;
  text-align: center;
}

.section-title h2 {
  position: relative;
  margin-bottom: 20px;
  padding-bottom: 20px;
  font-size: 32px;
  font-weight: 500;
}

.section-title h2::before {
  position: absolute;
  right: 0;
  bottom: 1px;
  left: 0;
  display: block;
  width: 160px;
  height: 1px;
  margin: auto;
  background: rgba(75, 85, 94, 0.4);
  content: "";
}

.section-title h2::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: block;
  width: 60px;
  height: 3px;
  margin: auto;
  background: var(--accent-color);
  content: "";
}

.section-title p {
  margin-bottom: 0;
}

/* ==========================================================================
   Sobre nos
   Bloco institucional com texto, contadores e imagem com cards flutuantes.
   ========================================================================== */
.home-about {
  padding: 100px 0;
  background-color: var(--surface-color);
}

.home-about .about-content .section-heading {
  margin-bottom: 1.5rem;
  font-size: 2.5rem;
  font-weight: 300;
  line-height: 1.3;
}

.home-about .about-content .lead-text {
  margin-bottom: 1.5rem;
  color: rgba(75, 85, 94, 0.85);
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1.7;
}

.home-about .about-content p {
  margin-bottom: 2.5rem;
  color: rgba(75, 85, 94, 0.8);
  font-size: 1.1rem;
  line-height: 1.8;
}

.home-about .stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.home-about .stat-item {
  text-align: center;
}

.home-about .stat-number {
  display: block;
  color: var(--accent-color);
  font-size: 2.5rem;
  font-weight: 300;
  line-height: 1;
}

.home-about .stat-number::after {
  margin-left: 2px;
  font-size: 1.5rem;
  content: "+";
}

.home-about .stat-label {
  margin-top: 0.5rem;
  color: rgba(75, 85, 94, 0.7);
  font-size: 0.95rem;
}

.home-about .cta-section {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.home-about .about-visual {
  position: relative;
}

.home-about .main-image {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(75, 85, 94, 0.15);
}

.home-about .main-image img {
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}

.home-about .main-image:hover img {
  transform: scale(1.05);
}

.home-about .floating-card {
  position: absolute;
  bottom: -30px;
  left: -30px;
  padding: 1.5rem;
  background-color: var(--surface-color);
  border: 1px solid rgba(75, 85, 94, 0.08);
  border-radius: 8px;
  box-shadow: 0 15px 40px rgba(75, 85, 94, 0.1);
}

.home-about .floating-card .card-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.home-about .floating-card .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background-color: rgba(60, 88, 111, 0.1);
  border-radius: 50%;
}

.home-about .floating-card .icon i {
  color: var(--accent-color);
  font-size: 1.5rem;
}

.home-about .floating-card h4 {
  margin-bottom: 0.25rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
}

.home-about .floating-card p {
  margin: 0;
  color: rgba(75, 85, 94, 0.6);
  font-size: 0.875rem;
  line-height: 1.4;
}

.home-about .experience-badge {
  position: absolute;
  top: 20px;
  right: -20px;
  padding: 1.25rem;
  color: var(--contrast-color);
  text-align: center;
  background-color: var(--accent-color);
  border-radius: 8px;
  box-shadow: 0 15px 40px rgba(60, 88, 111, 0.3);
}

.home-about .experience-badge .years {
  display: block;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1;
}

.home-about .experience-badge .text {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  opacity: 0.9;
}

/* ==========================================================================
   Especialidades e diferenciais
   Cards de especialidades, imagens, overlays e cards de destaque.
   ========================================================================== */
.specialties {
  padding: 100px 0;
}

.specialties .specialty-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: var(--surface-color);
  border-radius: 20px;
  box-shadow: 0 8px 40px rgba(75, 85, 94, 0.08);
  transition: all 0.4s ease;
}

.specialties .specialty-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(75, 85, 94, 0.15);
}

.specialties .specialty-visual {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.specialties .specialty-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.specialties .specialty-card:hover .specialty-visual img {
  transform: scale(1.08);
}

.specialties .visual-overlay {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  backdrop-filter: blur(10px);
  transition: all 0.4s ease;
}

.specialties .specialty-card:hover .visual-overlay {
  background: var(--accent-color);
}

.specialties .visual-overlay img {
  width: 45px;
  height: auto;
  transition: filter 0.4s ease;
}

.specialties .specialty-card:hover .visual-overlay img {
  filter: brightness(0) invert(1);
}

.specialties .visual-overlay i {
  color: var(--accent-color);
  font-size: 24px;
}

.specialties .specialty-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 40px;
}

.specialties .specialty-meta {
  margin-bottom: 15px;
}

.specialties .specialty-label {
  display: inline-block;
  padding: 8px 16px;
  color: var(--accent-color);
  background: rgba(60, 88, 111, 0.1);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.specialties h3 {
  margin-bottom: 20px;
  color: var(--heading-color);
  font-size: 28px;
  font-weight: 300;
  line-height: 1.3;
}

.specialties .specialty-card p {
  flex: 1;
  margin-bottom: 25px;
  color: rgba(75, 85, 94, 0.75);
  font-size: 16px;
  line-height: 1.7;
}

.specialties .specialty-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent-color);
  font-size: 16px;
  font-weight: 500;
}

.specialties .specialty-link:hover {
  color: var(--accent-hover);
  transform: translateX(5px);
}

.specialties .specialty-link i {
  transition: transform 0.3s ease;
}

.specialties .specialty-link:hover i {
  transform: translateX(3px);
}

.features-row {
  align-items: stretch;
}

.feature-card {
  height: 100%;
  padding: 2.5rem 2rem;
  text-align: center;
  background: var(--surface-color);
  border: 1px solid rgba(75, 85, 94, 0.1);
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.feature-card .icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: rgba(60, 88, 111, 0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.feature-card .icon-wrapper i {
  color: var(--accent-color);
  font-size: 2rem;
}

.feature-card:hover .icon-wrapper {
  background: var(--accent-color);
}

.feature-card:hover .icon-wrapper i {
  color: var(--contrast-color);
}

.feature-card h5 {
  margin-bottom: 1rem;
  color: var(--heading-color);
  font-size: 1.3rem;
  font-weight: 600;
}

.feature-card p {
  margin-bottom: 1.5rem;
  color: rgba(75, 85, 94, 0.7);
  line-height: 1.6;
}

.feature-card .feature-link {
  display: inline-flex;
  align-items: center;
  color: var(--accent-color);
  font-weight: 600;
}

.feature-card .feature-link span {
  margin-right: 8px;
}

.feature-card .feature-link i {
  transition: transform 0.3s ease;
}

.feature-card .feature-link:hover i {
  transform: translateX(5px);
}

/* ==========================================================================
   Servicos, convenios, noticias e contato
   Ajustes especificos para as secoes baseadas em utilitarios Bootstrap.
   ========================================================================== */
#services .feature {
  margin-bottom: 1rem;
}

#agreements .card,
#news .card {
  height: 100%;
}

#contact .bg-primary {
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%) !important;
}

.info-contact h3,
.info-contact h5 {
  color: #ffffff;
}

#contact .form-control {
  border-color: rgba(75, 85, 94, 0.18);
}

#contact .btn-outline-light {
  padding: 0.5rem !important;
}


/* ==========================================================================
   Portfolio
   ========================================================================== */
#portfolio .portfolio-item {
  max-width: 26rem;
  margin-left: auto;
  margin-right: auto;
}
#portfolio .portfolio-item .portfolio-link {
  position: relative;
  display: block;
  margin: 0 auto;
}
#portfolio .portfolio-item .portfolio-link .portfolio-hover {
  display: flex;
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(255, 200, 0, 0.9);
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity ease-in-out 0.25s;
}
#portfolio .portfolio-item .portfolio-link .portfolio-hover .portfolio-hover-content {
  font-size: 1.25rem;
  color: white;
}
#portfolio .portfolio-item .portfolio-link:hover .portfolio-hover {
  opacity: 1;
}
#portfolio .portfolio-item .portfolio-caption {
  padding: 1.5rem;
  text-align: center;
  background-color: #fff;
}
#portfolio .portfolio-item .portfolio-caption .portfolio-caption-heading {
  font-size: 1.5rem;
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-weight: 700;
  margin-bottom: 0;
}
#portfolio .portfolio-item .portfolio-caption .portfolio-caption-subheading {
  font-style: italic;
  font-family: "Roboto Slab", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

.portfolio-modal .modal-dialog {
  margin: 1rem;
  max-width: 100vw;
}
.portfolio-modal .modal-content {
  padding-top: 6rem;
  padding-bottom: 6rem;
  text-align: center;
}
.portfolio-modal .modal-content h2, .portfolio-modal .modal-content .h2 {
  font-size: 3rem;
  line-height: 3rem;
}
.portfolio-modal .modal-content p.item-intro {
  font-style: italic;
  margin-bottom: 2rem;
  font-family: "Roboto Slab", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}
.portfolio-modal .modal-content p {
  margin-bottom: 2rem;
}
.portfolio-modal .modal-content ul.list-inline {
  margin-bottom: 2rem;
}
.portfolio-modal .modal-content img {
  margin-bottom: 2rem;
}
.portfolio-modal .close-modal {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 3rem;
  height: 3rem;
  cursor: pointer;
  background-color: transparent;
}
.portfolio-modal .close-modal:hover {
  opacity: 0.3;
}

/* ==========================================================================
   Footer
   Rodape institucional, colunas de navegacao e faixa de copyright.
   ========================================================================== */
.footer {
  padding: 100px 0 0;
  color: var(--default-color);
  background: var(--background-color);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 15px;
}

.footer > .container,
.footer > .footer-bottom {
  position: relative;
  z-index: 1;
}

.footer .footer-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.02;
}

.footer .footer-bg-overlay img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.footer .footer-main {
  margin-bottom: 80px;
}

.footer .brand-section .logo {
  text-decoration: none;
}

.footer .brand-description {
  max-width: 380px;
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 18px;
  font-weight: 300;
  line-height: 1.7;
}

.footer .contact-info .contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
}

.footer .contact-info .contact-item i {
  flex-shrink: 0;
  margin-top: 3px;
  margin-right: 12px;
  color: var(--accent-color);
  font-size: 16px;
}

.footer .contact-info .contact-item span {
  line-height: 1.6;
}

.footer .footer-nav-wrapper {
  padding-left: 60px;
}

.footer .nav-column {
  margin-bottom: 40px;
}

.footer .nav-column h6 {
  margin-bottom: 24px;
  color: var(--heading-color);
  font-family: var(--heading-font);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.3px;
}

.footer .footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer .footer-nav a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.4;
}

.footer .footer-nav a:hover {
  color: #ffffff;
  transform: translateX(4px);
}

.footer .footer-bottom {
  padding: 30px 0;
}

.footer .footer-bottom .copyright p {
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
  font-weight: 300;
}

.footer .legal-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
}

.footer .legal-links a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  font-weight: 300;
}

.footer .legal-links a:hover {
  color: #ffffff;
}

/* ==========================================================================
   Preloader e voltar ao topo
   Elementos controlados pelo scripts.js.
   ========================================================================== */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background-color: var(--background-color);
  transition: all 0.6s ease-out;
}

#preloader::before,
#preloader::after {
  position: absolute;
  border: 4px solid var(--accent-color);
  border-radius: 50%;
  animation: animate-preloader 2s cubic-bezier(0, 0.2, 0.8, 1) infinite;
  content: "";
}

#preloader::after {
  animation-delay: -0.5s;
}

@keyframes animate-preloader {
  0% {
    top: calc(50% - 5px);
    left: calc(50% - 5px);
    width: 10px;
    height: 10px;
    opacity: 1;
  }

  100% {
    top: calc(50% - 36px);
    left: calc(50% - 36px);
    width: 72px;
    height: 72px;
    opacity: 0;
  }
}

.scroll-top {
  position: fixed;
  right: 15px;
  bottom: -15px;
  z-index: 99999;
  width: 44px;
  height: 44px;
  visibility: hidden;
  opacity: 0;
  background-color: var(--accent-color);
  border-radius: 50px;
  transition: all 0.4s ease;
}

.scroll-top i {
  color: var(--contrast-color);
  font-size: 24px;
  line-height: 0;
}

.scroll-top:hover {
  color: var(--contrast-color);
  background-color: var(--accent-hover);
}

.scroll-top.active {
  bottom: 15px;
  visibility: visible;
  opacity: 1;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ==========================================================================
   Responsividade
   Ajustes finais para mobile e tablets.
   ========================================================================== */
@media (max-width: 992px) {
  .home-about {
    padding: 80px 0;
  }

  .home-about .row {
    text-align: center;
  }

  .home-about .stats-grid {
    margin: 2rem 0;
  }

  .footer .footer-nav-wrapper {
    padding-left: 0;
    margin-top: 50px;
  }
}

@media (max-width: 768px) {
  [data-aos-delay] {
    transition-delay: 0 !important;
  }

  .display-4 {
    font-size: 2rem;
  }

  #hero-carousel .carousel-item {
    height: 70vh;
    min-height: 500px;
  }

  #hero-carousel h1 {
    font-size: 1.8rem !important;
  }

  #hero-carousel .lead {
    margin-bottom: 1.5rem !important;
    font-size: 0.95rem !important;
  }

  #hero-carousel .btn-lg {
    padding: 10px 20px;
    font-size: 0.95rem;
  }

  #hero-carousel .carousel-control-prev,
  #hero-carousel .carousel-control-next {
    width: 12%;
  }

  #hero-carousel .carousel-control-prev-icon,
  #hero-carousel .carousel-control-next-icon {
    padding: 1rem;
    background-size: 50%;
  }

  #hero-carousel .carousel-content-wrapper {
    margin-bottom: 50px !important;
  }

  .home-about .about-content .section-heading {
    font-size: 2rem;
  }

  .home-about .cta-section {
    flex-direction: column;
    justify-content: center;
  }

  .home-about .floating-card,
  .home-about .experience-badge {
    position: static;
    display: inline-block;
    margin-top: 2rem;
  }

  .specialties {
    padding: 60px 0;
  }

  .specialties .specialty-visual {
    height: 200px;
  }

  .specialties .specialty-content {
    padding: 30px 25px;
  }

  .specialties h3 {
    font-size: 24px;
  }

  .footer {
    padding: 70px 0 0;
  }

  .footer .brand-section {
    margin-bottom: 50px;
    text-align: center;
  }

  .footer .brand-description {
    max-width: none;
  }

  .footer .contact-info {
    display: inline-block;
    text-align: left;
  }

  .footer .legal-links {
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
  }
}

@media (max-width: 576px) {
  .header .topbar .contact-info i span {
    font-size: 13px;
  }

  .header .topbar .contact-info .bi-geo-alt {
    display: none !important;
  }

  .home-about .stats-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}


/* CPX Santa Fé Yii2 theme supplements */
.mb-30 { margin-bottom: 30px; }
.body-1 { min-height: 100vh; background: #fff; }
.loading-form { display: none; }
.offcanvas__area { position: fixed; inset: 0 auto 0 0; width: 320px; max-width: 86vw; background: #0b5443; z-index: 9999; transform: translateX(-100%); transition: transform .25s ease; color: #fff; }
.offcanvas__wrapper, .offcanvas__content { height: 100%; }
.offcanvas__top { padding: 24px; }
.offcanvas__close button { background: transparent; border: 0; color: #fff; }
.offcanvas__overlay, .offcanvas__overlay-white { display: none; }
.visually-hidden { position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0; }
.page-title { color: var(--background-color); background-color: var(--accent-color); position: relative; }
.page-title .heading { padding: 80px 0; text-align: center; }
.page-title .heading h1 { font-size: 38px; font-weight: 700; color: var(--contrast-color); }
.page-title .heading p { max-width: 760px; margin: 12px auto 0; color: color-mix(in srgb, var(--background-color), transparent 18%); }
nav.breadcrumbs { background-color: color-mix(in srgb, var(--default-color), transparent 96%); padding: 20px 0; }
nav.breadcrumbs ol { display: flex; flex-wrap: wrap; justify-content: center; list-style: none; padding: 0; margin: 0; font-size: 15px; font-weight: 400; }
nav.breadcrumbs ol li+li { padding-left: 10px; }
nav.breadcrumbs ol li+li::before { content: "/"; display: inline-block; padding-right: 10px; color: color-mix(in srgb, var(--default-color), transparent 60%); }
nav.breadcrumbs ol li a { color: var(--default-color); transition: color 0.3s; }
nav.breadcrumbs ol li a:hover { color: var(--accent-color); }
nav.breadcrumbs ol li.current { color: var(--accent-color); font-weight: 500; }
.card-img-top { width: 100%; }
.content img { max-width: 100%; height: auto; }
.bi-youtube::before { content: "▶"; }
.bi-whatsapp::before { content: "☏"; }
.bi-chevron-right::before { content: "›"; }

.search-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: 14px;
  padding: 9px 12px;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 76%);
  border-radius: 14px;
  background: color-mix(in srgb, var(--background-color), var(--accent-color) 4%);
  color: var(--heading-color);
  font-size: 13px;
  font-family: var(--nav-font);
  font-weight: 500;
  transition: all 0.25s ease;
}

.search-trigger kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 20px;
  padding: 0 6px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--accent-color), white 86%);
  color: var(--accent-color);
  font-size: 11px;
  font-family: var(--nav-font);
}

.search-trigger:hover {
  border-color: color-mix(in srgb, var(--accent-color), transparent 35%);
  background: color-mix(in srgb, var(--accent-color), white 92%);
  transform: translateY(-1px);
}

.search-popup {
  position: fixed;
  inset: 0;
  z-index: 10040;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: min(8vh, 68px) 14px 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.search-popup.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.search-popup__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(165deg, rgba(8, 16, 30, 0.74) 0%, rgba(22, 38, 61, 0.84) 100%);
  backdrop-filter: blur(5px);
}

.search-popup__content {
  position: relative;
  width: min(760px, calc(100vw - 20px));
  max-height: min(84vh, 760px);
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--accent-color), white 72%);
  overflow: hidden;
  background:
    radial-gradient(120% 130% at 0% 0%, rgba(96, 125, 150, 0.36) 0%, rgba(255, 255, 255, 0) 58%),
    linear-gradient(180deg, #0f2338 0%, #0d1d31 100%);
  box-shadow: 0 30px 50px rgba(0, 0, 0, 0.3);
}

.search-popup__form {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.search-popup__form i {
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.search-popup__form input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: #ffffff;
  font-size: 18px;
  font-weight: 500;
}

.search-popup__form input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.search-popup__close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.85);
}

.search-popup__close:hover {
  background: rgba(255, 255, 255, 0.16);
}

.search-popup__hint {
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(233, 240, 247, 0.72);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.search-popup__results {
  overflow-y: auto;
  padding: 10px;
}

.search-popup__state {
  padding: 14px;
  border-radius: 10px;
  color: rgba(240, 246, 252, 0.78);
  font-size: 14px;
  background: rgba(255, 255, 255, 0.06);
}

.search-popup__group {
  margin-bottom: 10px;
}

.search-popup__group-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 8px;
  color: rgba(185, 214, 239, 0.95);
  font-family: var(--nav-font);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.search-popup__group-title small {
  font-size: 11px;
  color: rgba(185, 214, 239, 0.8);
}

.search-popup__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.search-popup__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 10px;
  border-radius: 12px;
  color: #f7fbff;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid transparent;
}

.search-popup__item:hover,
.search-popup__item.is-active {
  background: linear-gradient(90deg, rgba(71, 111, 142, 0.66) 0%, rgba(104, 146, 180, 0.35) 100%);
  border-color: rgba(175, 215, 243, 0.36);
  color: #ffffff;
}

.search-popup__item-icon {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.11);
  color: rgba(255, 255, 255, 0.96);
}

.search-popup__item-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.search-popup__item-body strong {
  color: inherit;
  font-size: 14px;
  line-height: 1.2;
}

.search-popup__item-body small {
  color: rgba(236, 245, 253, 0.8);
  font-size: 12px;
  line-height: 1.3;
}

.search-popup__all-results {
  display: block;
  margin: 8px;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px dashed rgba(184, 215, 240, 0.4);
  color: #f0f7ff;
  text-align: center;
  font-family: var(--nav-font);
  font-size: 13px;
  font-weight: 500;
}

.search-popup__all-results:hover,
.search-popup__all-results.is-active {
  border-style: solid;
  border-color: rgba(184, 215, 240, 0.7);
  background: rgba(255, 255, 255, 0.08);
}

.search-popup__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(234, 245, 255, 0.78);
  font-size: 12px;
}

.search-popup__footer kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 20px;
  margin: 0 2px;
  padding: 0 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 11px;
}

body.search-popup-open {
  overflow: hidden;
}

.search-results-list {
  max-width: 900px;
  margin: 0 auto;
}

.search-results-list__title {
  margin: 24px 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 82%);
}

@media (max-width: 1199px) {
  .search-trigger {
    margin-left: auto;
    margin-right: 12px;
  }
}

@media (max-width: 767px) {
  .search-trigger span,
  .search-trigger kbd {
    display: none;
  }

  .search-trigger {
    width: 38px;
    height: 38px;
    justify-content: center;
    border-radius: 50%;
    padding: 0;
  }

  .search-popup {
    padding: 12px;
  }

  .search-popup__content {
    width: 100%;
    max-height: calc(100vh - 24px);
  }

  .search-popup__form input {
    font-size: 16px;
  }

  .search-popup__footer {
    flex-direction: column;
    align-items: flex-start;
  }
}


    /*--------------------------------------------------------------
# Blog Posts
--------------------------------------------------------------*/
    .blog-post .highlight-article {
        position: relative;
        background-color: var(--surface-color);
        border-radius: 12px;
        overflow: hidden;
        padding-left: 0 !important;
        box-shadow: 0 4px 20px color-mix(in srgb, var(--default-color), transparent 92%);
    }

    .blog-post .highlight-article::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 6px;
        background: var(--accent-color);
        z-index: 2;
    }

    .blog-post .highlight-article .highlight-img {
        height: 100%;
    }

    .blog-post .highlight-article .highlight-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        min-height: 400px;
    }

    .blog-post .highlight-article .highlight-body {
        padding: 2.5rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
        height: 100%;
    }

    .blog-post .highlight-article .highlight-title {
        font-size: 1.75rem;
        line-height: 1.35;
        margin: 1rem 0;
    }

    .blog-post .highlight-article .highlight-title a {
        color: var(--heading-color);
    }

    .blog-post .highlight-article .highlight-title a:hover {
        color: var(--accent-color);
    }

    .blog-post .highlight-article .highlight-summary {
        font-size: 0.9375rem;
        color: color-mix(in srgb, var(--default-color), transparent 20%);
        line-height: 1.75;
        margin-bottom: 1.5rem;
    }

    .blog-post .highlight-article .highlight-footer {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-top: auto;
        padding-top: 1.5rem;
        border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
    }

    .blog-post .highlight-article .writer-info {
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

    .blog-post .highlight-article .writer-info .writer-avatar {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid color-mix(in srgb, var(--accent-color), transparent 70%);
    }

    .blog-post .highlight-article .writer-info div {
        display: flex;
        flex-direction: column;
        gap: 0.15rem;
    }

    .blog-post .highlight-article .read-link {
        font-weight: 600;
        font-size: 0.875rem;
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        color: var(--accent-color);
        transition: 0.3s;
    }

    .blog-post .highlight-article .read-link i {
        transition: transform 0.3s;
    }

    .blog-post .highlight-article .read-link:hover i {
        transform: translateX(4px);
    }

    @media (max-width: 992px) {
        .blog-post .highlight-article {
            border-left: none;
            border-top: 5px solid var(--accent-color);
        }

        .blog-post .highlight-article .highlight-img img {
            min-height: 280px;
            height: 280px;
        }

        .blog-post .highlight-article .highlight-body {
            padding: 1.75rem;
        }

        .blog-post .highlight-article .highlight-title {
            font-size: 1.5rem;
        }
    }

    @media (max-width: 768px) {
        .blog-post .highlight-article .highlight-footer {
            flex-direction: column;
            align-items: flex-start;
            gap: 1rem;
        }

        .blog-post .highlight-article .highlight-body {
            padding: 1.25rem;
        }

        .blog-post .highlight-article .highlight-title {
            font-size: 1.35rem;
        }
    }

    .blog-post .list-article {
        display: flex;
        align-items: center;
        gap: 1rem;
        padding: 1.25rem;
        border-radius: 10px;
        background-color: color-mix(in srgb, var(--default-color), transparent 97%);
        transition: background-color 0.3s, box-shadow 0.3s;
        height: 100%;
    }

    .blog-post .list-article:hover {
        background-color: color-mix(in srgb, var(--accent-color), transparent 94%);
        box-shadow: 0 4px 16px color-mix(in srgb, var(--accent-color), transparent 90%);
    }

    .blog-post .list-article .list-num {
        font-size: 1.75rem;
        font-weight: 800;
        font-family: var(--heading-font);
        color: color-mix(in srgb, var(--accent-color), transparent 50%);
        min-width: 42px;
        line-height: 1;
        text-align: center;
    }

    .blog-post .list-article .list-img {
        flex-shrink: 0;
    }

    .blog-post .list-article .list-img img {
        width: 80px;
        height: 80px;
        border-radius: 8px;
        object-fit: cover;
    }

    .blog-post .list-article .list-body {
        flex: 1;
        min-width: 0;
    }

    .blog-post .list-article .list-title {
        font-size: 0.9375rem;
        line-height: 1.45;
        margin: 0.4rem 0;
    }

    .blog-post .list-article .list-title a {
        color: var(--heading-color);
    }

    .blog-post .list-article .list-title a:hover {
        color: var(--accent-color);
    }

    @media (max-width: 768px) {
        .blog-post .list-article {
            padding: 1rem;
        }

        .blog-post .list-article .list-img img {
            width: 64px;
            height: 64px;
        }

        .blog-post .list-article .list-title {
            font-size: 0.875rem;
        }
    }

    @media (max-width: 576px) {
        .blog-post .list-article .list-num {
            display: none;
        }
    }

    .blog-post .topic-badge {
        display: inline-block;
        padding: 0.3rem 0.875rem;
        border-radius: 4px;
        font-size: 0.7rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.8px;
        background-color: color-mix(in srgb, var(--accent-color), transparent 85%);
        color: var(--accent-color);
    }

    .blog-post .topic-badge.sm {
        padding: 0.2rem 0.625rem;
        font-size: 0.65rem;
    }

    .blog-post .publish-date {
        font-size: 0.8125rem;
        color: color-mix(in srgb, var(--default-color), transparent 50%);
    }

    .blog-post .writer-info {
        font-size: 0.8125rem;
    }

    .blog-post .writer-info.compact {
        display: flex;
        align-items: center;
        gap: 0.35rem;
        flex-wrap: wrap;
    }

    .blog-post .writer-info span {
        color: color-mix(in srgb, var(--default-color), transparent 40%);
    }

    .blog-post .writer-info .sep {
        color: color-mix(in srgb, var(--default-color), transparent 60%);
    }

    .blog-post .writer-info .writer-name {
        font-weight: 600;
        color: var(--accent-color);
    }

    .blog-post .writer-info .writer-name:hover {
        color: color-mix(in srgb, var(--accent-color), transparent 25%);
    }

    
/*--------------------------------------------------------------
# Post Section
--------------------------------------------------------------*/
.blog .post {
  background-color: var(--surface-color);
  border-radius: 16px;
  overflow: hidden;
  border-left: 5px solid var(--accent-color);
  box-shadow: 0 4px 25px 0 color-mix(in srgb, var(--default-color), transparent 92%);
  transition: box-shadow 0.3s ease;
}

.blog .post:hover {
  box-shadow: 0 10px 40px 0 color-mix(in srgb, var(--default-color), transparent 86%);
}

.blog .post:hover .featured-img img {
  transform: scale(1.06);
}

.blog .featured-img {
  position: relative;
  height: 100%;
  min-height: 320px;
  overflow: hidden;
}

.blog .featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.blog .featured-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background-color: var(--accent-color);
  color: var(--contrast-color);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.blog .featured-tag i {
  margin-right: 5px;
  font-size: 0.72rem;
}

.blog .featured-content {
  padding: 40px 35px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.blog .featured-content .category-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-color);
  margin-bottom: 12px;
}

.blog .featured-content h3 {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--heading-color);
  margin-bottom: 16px;
  line-height: 1.3;
}

.blog .featured-content p {
  color: color-mix(in srgb, var(--default-color), transparent 25%);
  line-height: 1.75;
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.blog .stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.blog .stat-chip {
  display: inline-flex;
  align-items: center;
  background-color: color-mix(in srgb, var(--accent-color), transparent 92%);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  color: color-mix(in srgb, var(--default-color), transparent 10%);
}

.blog .stat-chip i {
  color: var(--accent-color);
  margin-right: 8px;
  font-size: 0.95rem;
}

.blog .explore-link {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent-color);
  transition: all 0.3s ease;
}

.blog .explore-link i {
  margin-left: 8px;
  font-size: 1.15rem;
  transition: transform 0.3s ease;
}

.blog .explore-link:hover {
  color: color-mix(in srgb, var(--accent-color), #000 15%);
}

.blog .explore-link:hover i {
  transform: translateX(4px);
}

.blog .post-card {
  background-color: var(--surface-color);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  border-bottom: 3px solid var(--accent-color);
}


.blog .post-card:hover {
  border-color: color-mix(in srgb, var(--accent-color), transparent 60%);
  transform: translateY(-8px);
  box-shadow: 0 12px 35px 0 color-mix(in srgb, var(--default-color), transparent 88%);
}

.blog .post-card:hover .card-thumb img {
  transform: scale(1.08);
}

.blog .post-card:hover .card-link {
  color: var(--accent-color);
}

.blog .post-card:hover .card-link i {
  transform: translateX(4px);
}

.blog .card-thumb {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.blog .card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog .card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  background: linear-gradient(to top, color-mix(in srgb, #000, transparent 30%), transparent);
  display: flex;
  justify-content: flex-end;
}

.blog .duration-badge {
  background-color: var(--contrast-color);
  color: var(--default-color);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
}

.blog .card-body-content {
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog .card-body-content .degree-type {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-color);
  margin-bottom: 8px;
}

.blog .card-body-content h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 10px;
  line-height: 1.35;
}

.blog .card-body-content p {
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}

.blog .card-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  transition: all 0.3s ease;
  margin-top: auto;
}

.blog .card-link i {
  margin-left: 6px;
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.blog .card-body-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px 18px;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  margin-top: auto;
}

.blog .card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: color-mix(in srgb, var(--default-color), transparent 45%);
}

.blog .card-meta i {
  font-size: 0.85rem;
}

.blog .btn-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 18px;
  border-radius: 50px;
  background-color: var(--accent-color);
  color: var(--contrast-color);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.2s ease;
  white-space: nowrap;
}

.blog .btn-read-more i {
  font-size: 0.85rem;
  transition: transform 0.25s ease;
}

.blog .btn-read-more:hover {
  background-color: color-mix(in srgb, var(--accent-color), black 15%);
  color: var(--contrast-color);
  transform: translateX(2px);
}

.blog .btn-read-more:hover i {
  transform: translateX(3px);
}

@media (max-width: 992px) {
  .blog .featured-img {
    min-height: 260px;
  }

  .blog .featured-content {
    padding: 30px 25px;
  }

  .blog .featured-content h3 {
    font-size: 1.4rem;
  }

  .blog .stats-row {
    gap: 8px;
  }

  .blog .stat-chip {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
}

@media (max-width: 768px) {
  .blog .post {
    border-left: none;
    border-top: 5px solid var(--accent-color);
  }

  .blog .featured-img {
    min-height: 220px;
  }

  .blog .featured-content {
    padding: 24px 20px;
  }

  .blog .featured-content h3 {
    font-size: 1.3rem;
  }

  .blog .featured-content p {
    font-size: 0.9rem;
  }

  .blog .card-thumb {
    height: 160px;
  }
}

@media (max-width: 576px) {
  .blog .featured-img {
    min-height: 200px;
  }

  .blog .stats-row {
    flex-direction: column;
    gap: 8px;
  }

  .blog .stat-chip {
    justify-content: center;
  }

  .blog .card-thumb {
    height: 140px;
  }

  .blog .card-body-content {
    padding: 14px 14px 8px;
  }

  .blog .card-body-content h4 {
    font-size: 0.95rem;
    margin-bottom: 6px;
  }

  .blog .card-body-content p {
    font-size: 0.8rem;
    margin-bottom: 0;
  }

  .blog .card-body-footer {
    padding: 10px 14px 14px;
    flex-wrap: wrap;
    gap: 8px;
  }

  .blog .btn-read-more {
    padding: 6px 14px;
    font-size: 0.68rem;
    letter-spacing: 0.4px;
  }
}

@media (max-width: 400px) {
  .blog .card-body-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .blog .btn-read-more {
    width: 100%;
    justify-content: center;
  }
}
/*--------------------------------------------------------------
# Blog Details Section
--------------------------------------------------------------*/
.blog-details .blog-article {
  max-width: 1200px;
  margin: 0 auto;
}

.blog-details .header-block {
  padding-left: 1.5rem;
  border-left: 4px solid var(--accent-color);
  margin-bottom: 2rem;
}

.blog-details .header-block .category-badges {
  margin-bottom: 1rem;
}

.badge-link {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--accent-color);
  color: var(--contrast-color);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.badge-link:hover {
  background: color-mix(in srgb, var(--accent-color), #000 15%);
  color: var(--contrast-color);
}

.blog-details .header-block .article-title {
  font-size: 2.8rem;
  line-height: 1.2;
  color: var(--heading-color);
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .blog-details .header-block .article-title {
    font-size: 1.8rem;
  }
}

.blog-details .header-block .article-subtitle {
  font-size: 1.15rem;
  color: color-mix(in srgb, var(--default-color), transparent 25%);
  line-height: 1.6;
  margin: 0;
}

.blog-details .author-card {
  background: var(--surface-color);
  border-radius: 12px;
  padding: 1.75rem;
  text-align: center;
  box-shadow: 0 4px 20px color-mix(in srgb, var(--default-color), transparent 92%);
  border-top: 3px solid var(--accent-color);
}

.blog-details .author-card .author-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 3px solid color-mix(in srgb, var(--accent-color), transparent 70%);
}

.blog-details .author-card .author-details {
  margin-bottom: 1.25rem;
}

.blog-details .author-card .author-details h4 {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
  color: var(--heading-color);
}

.blog-details .author-card .author-details .author-role {
  font-size: 0.85rem;
  color: var(--accent-color);
  font-weight: 500;
}

.blog-details .author-card .publish-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.blog-details .author-card .publish-details span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: color-mix(in srgb, var(--default-color), transparent 35%);
}

.blog-details .author-card .publish-details span i {
  color: var(--accent-color);
}

.blog-details .featured-banner {
  margin: 2.5rem 0 3rem;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  max-height: 480px;
}

.blog-details .featured-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-details .featured-banner .banner-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem 1.25rem;
  background: color-mix(in srgb, var(--default-color), transparent 30%);
  color: var(--contrast-color);
  font-size: 0.85rem;
}

.blog-details .featured-banner .banner-caption i {
  margin-right: 0.4rem;
}

@media (max-width: 768px) {
  .blog-details .featured-banner {
    max-height: 280px;
    margin: 1.5rem 0 2rem;
  }
}

.blog-details .main-content {
  font-size: 1.1rem;
  line-height: 1.8;
}

.blog-details .main-content .text-block {
  margin-bottom: 3.5rem;
}

.blog-details .main-content .text-block .opening-text {
  font-size: 1.3rem;
  line-height: 1.7;
  color: var(--heading-color);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.blog-details .main-content .text-block p {
  margin-bottom: 1.25rem;
}

.blog-details .main-content .section-heading {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid color-mix(in srgb, var(--accent-color), transparent 75%);
}

.blog-details .main-content .section-heading .heading-number {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--contrast-color);
  background: var(--accent-color);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.blog-details .main-content .section-heading h2 {
  font-size: 1.8rem;
  color: var(--heading-color);
  margin: 0;
}

@media (max-width: 768px) {
  .blog-details .main-content .section-heading h2 {
    font-size: 1.4rem;
  }
}

.blog-details .main-content .accent-quote {
  display: flex;
  gap: 1.5rem;
  margin: 2.5rem 0;
  padding: 2rem 2rem 2rem 0;
}

.blog-details .main-content .accent-quote .quote-bar {
  width: 4px;
  flex-shrink: 0;
  background: linear-gradient(to bottom, var(--accent-color), color-mix(in srgb, var(--accent-color), transparent 60%));
  border-radius: 4px;
}

.blog-details .main-content .accent-quote blockquote {
  margin: 0;
}

.blog-details .main-content .accent-quote blockquote p {
  font-size: 1.4rem;
  font-style: italic;
  color: var(--heading-color);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.blog-details .main-content .accent-quote blockquote footer {
  font-size: 0.95rem;
  color: color-mix(in srgb, var(--default-color), transparent 35%);
  font-style: normal;
}

.blog-details .main-content .content-figure {
  border-radius: 10px;
  overflow: hidden;
  margin: 0;
  box-shadow: 0 4px 15px color-mix(in srgb, var(--default-color), transparent 90%);
}

.blog-details .main-content .content-figure img {
  width: 100%;
  display: block;
}

.blog-details .main-content .content-figure figcaption {
  padding: 0.75rem 1rem;
  background: var(--surface-color);
  font-size: 0.85rem;
  color: color-mix(in srgb, var(--default-color), transparent 35%);
  text-align: center;
}

.blog-details .main-content .highlight-points {
  margin-top: 1.5rem;
}

.blog-details .main-content .highlight-points .h-point {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.blog-details .main-content .highlight-points .h-point i {
  font-size: 1.6rem;
  color: var(--accent-color);
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.blog-details .main-content .highlight-points .h-point h4 {
  margin: 0 0 0.3rem;
  font-size: 1rem;
  color: var(--heading-color);
}

.blog-details .main-content .highlight-points .h-point p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.blog-details .main-content .dual-cards {
  margin: 2rem 0;
}

.blog-details .main-content .dual-cards .insight-card {
  background: var(--surface-color);
  border-radius: 10px;
  padding: 1.75rem;
  height: 100%;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 12px color-mix(in srgb, var(--default-color), transparent 93%);
}

.blog-details .main-content .dual-cards .insight-card .card-header-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.blog-details .main-content .dual-cards .insight-card.positive .card-header-bar {
  background: #28a745;
}

.blog-details .main-content .dual-cards .insight-card.consideration .card-header-bar {
  background: #ffc107;
}

.blog-details .main-content .dual-cards .insight-card h4 {
  color: var(--heading-color);
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.blog-details .main-content .dual-cards .insight-card h4 i {
  margin-right: 0.5rem;
  color: var(--accent-color);
}

.blog-details .main-content .dual-cards .insight-card ul {
  padding-left: 1.2rem;
  margin: 0;
}

.blog-details .main-content .dual-cards .insight-card ul li {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  color: color-mix(in srgb, var(--default-color), transparent 15%);
}

.blog-details .main-content .pillars-row {
  margin: 2rem 0;
}

.blog-details .main-content .pillars-row .pillar {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--surface-color);
  border-radius: 10px;
  box-shadow: 0 2px 12px color-mix(in srgb, var(--default-color), transparent 93%);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.blog-details .main-content .pillars-row .pillar:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px color-mix(in srgb, var(--default-color), transparent 85%);
}

.blog-details .main-content .pillars-row .pillar .pillar-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent-color), transparent 88%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.blog-details .main-content .pillars-row .pillar .pillar-icon i {
  font-size: 1.5rem;
  color: var(--accent-color);
}

.blog-details .main-content .pillars-row .pillar h4 {
  color: var(--heading-color);
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.blog-details .main-content .pillars-row .pillar p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.blog-details .main-content .notice-block {
  display: flex;
  gap: 1.25rem;
  padding: 1.75rem;
  background: color-mix(in srgb, var(--accent-color), transparent 92%);
  border-left: 4px solid var(--accent-color);
  border-radius: 0 10px 10px 0;
  margin: 2rem 0;
}

.blog-details .main-content .notice-block .notice-icon {
  flex-shrink: 0;
}

.blog-details .main-content .notice-block .notice-icon i {
  font-size: 2rem;
  color: var(--accent-color);
}

.blog-details .main-content .notice-block .notice-content h4 {
  color: var(--heading-color);
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.blog-details .main-content .notice-block .notice-content p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

@media (max-width: 576px) {
  .blog-details .main-content .notice-block {
    flex-direction: column;
    gap: 0.75rem;
  }
}

.blog-details .main-content .vision-cards {
  margin: 2rem 0;
}

.blog-details .main-content .vision-cards .v-card {
  text-align: center;
  padding: 2rem 1.25rem;
  border: 2px solid color-mix(in srgb, var(--accent-color), transparent 80%);
  border-radius: 10px;
  transition: all 0.3s ease;
  height: 100%;
}

.blog-details .main-content .vision-cards .v-card:hover {
  border-color: var(--accent-color);
  background: color-mix(in srgb, var(--accent-color), transparent 95%);
  transform: translateY(-4px);
}

.blog-details .main-content .vision-cards .v-card .v-icon {
  margin-bottom: 1.25rem;
}

.blog-details .main-content .vision-cards .v-card .v-icon i {
  font-size: 2.5rem;
  color: var(--accent-color);
}

.blog-details .main-content .vision-cards .v-card h4 {
  color: var(--heading-color);
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.blog-details .main-content .vision-cards .v-card p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.blog-details .article-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.blog-details .article-sidebar .sidebar-widget {
  background: var(--surface-color);
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 12px color-mix(in srgb, var(--default-color), transparent 93%);
}

.blog-details .article-sidebar .sidebar-widget h3 {
  font-size: 1rem;
  color: var(--heading-color);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid color-mix(in srgb, var(--accent-color), transparent 75%);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.blog-details .article-sidebar .sidebar-widget h3 i {
  color: var(--accent-color);
  font-size: 1.1rem;
}

.blog-details .article-sidebar .toc-widget nav ol {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: toc-counter;
}

.blog-details .article-sidebar .toc-widget nav ol li {
  counter-increment: toc-counter;
  margin-bottom: 0.6rem;
}

.blog-details .article-sidebar .toc-widget nav ol li a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.9rem;
  color: color-mix(in srgb, var(--default-color), transparent 25%);
  transition: all 0.3s ease;
  text-decoration: none;
}

.blog-details .article-sidebar .toc-widget nav ol li a::before {
  content: counter(toc-counter, decimal-leading-zero);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-color);
  width: 24px;
  flex-shrink: 0;
}

.blog-details .article-sidebar .toc-widget nav ol li a:hover,
.blog-details .article-sidebar .toc-widget nav ol li a.active {
  background: color-mix(in srgb, var(--accent-color), transparent 90%);
  color: var(--accent-color);
}

.blog-details .article-sidebar .categories-widget .category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.blog-details .article-sidebar .categories-widget .category-list .cat-item {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  font-size: 0.82rem;
  background: color-mix(in srgb, var(--accent-color), transparent 90%);
  color: var(--accent-color);
  border-radius: 20px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.blog-details .article-sidebar .categories-widget .category-list .cat-item:hover {
  background: var(--accent-color);
  color: var(--contrast-color);
}

.blog-details .article-sidebar .latest-posts-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.blog-details .article-sidebar .latest-post-item {
  display: flex;
  gap: 0.85rem;
  align-items: center;
}

.blog-details .article-sidebar .latest-post-thumb {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  overflow: hidden;
  border-radius: 8px;
  background: color-mix(in srgb, var(--default-color), transparent 92%);
}

.blog-details .article-sidebar .latest-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-details .article-sidebar .latest-post-item:hover .latest-post-thumb img {
  transform: scale(1.06);
}

.blog-details .article-sidebar .latest-post-body {
  min-width: 0;
}

.blog-details .article-sidebar .latest-post-body h4 {
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
  line-height: 1.35;
}

.blog-details .article-sidebar .latest-post-body h4 a {
  color: var(--heading-color);
}

.blog-details .article-sidebar .latest-post-body h4 a:hover {
  color: var(--accent-color);
}

.blog-details .article-sidebar .latest-post-body span,
.blog-details .article-sidebar .sidebar-empty {
  color: color-mix(in srgb, var(--default-color), transparent 45%);
  font-size: 0.82rem;
}

.blog-details .article-sidebar .latest-post-body span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.blog-details .article-sidebar .share-widget .social-icons {
  display: flex;
  gap: 0.75rem;
}

.blog-details .article-sidebar .share-widget .social-icons .social-btn {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--default-color), transparent 92%);
  color: var(--default-color);
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.blog-details .article-sidebar .share-widget .social-icons .social-btn:hover {
  transform: translateY(-3px);
  color: var(--contrast-color);
}

.blog-details .article-sidebar .share-widget .social-icons .social-btn.s-twitter:hover {
  background: #1DA1F2;
}

.blog-details .article-sidebar .share-widget .social-icons .social-btn.s-facebook:hover {
  background: #4267B2;
}

.blog-details .article-sidebar .share-widget .social-icons .social-btn.s-linkedin:hover {
  background: #0077B5;
}

.blog-details .article-sidebar .share-widget .social-icons .social-btn.s-envelope:hover {
  background: var(--accent-color);
}

@media (max-width: 992px) {
  .blog-details .article-sidebar {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .blog-details .article-sidebar .sidebar-widget {
    flex: 1 1 280px;
    margin-bottom: 0;
  }
}

.blog-details .bottom-bar {
  margin-top: 3rem;
  padding: 1.75rem 0;
  border-top: 2px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.blog-details .bottom-bar .tag-cloud {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.blog-details .bottom-bar .tag-cloud .tag-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--heading-color);
  margin-right: 0.25rem;
}

.blog-details .bottom-bar .tag-cloud .topic-tag {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  font-size: 0.82rem;
  background: color-mix(in srgb, var(--accent-color), transparent 90%);
  color: var(--accent-color);
  border-radius: 20px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.blog-details .bottom-bar .tag-cloud .topic-tag:hover {
  background: var(--accent-color);
  color: var(--contrast-color);
}

.blog-details .bottom-bar .reading-actions {
  display: flex;
  gap: 1.25rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.blog-details .bottom-bar .reading-actions .action-link {
  font-size: 0.9rem;
  color: color-mix(in srgb, var(--default-color), transparent 25%);
  transition: color 0.3s ease;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.blog-details .bottom-bar .reading-actions .action-link:hover {
  color: var(--accent-color);
}

.blog-details .bottom-bar .reading-actions .action-link i {
  font-size: 1rem;
}

/* ==========================================================================
   Services Carousel
   ========================================================================== */

.services-section .services-swiper {
  padding-bottom: 48px;
}

.services-section .swiper-pagination {
  bottom: 0;
}

.services-section .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: rgba(60, 88, 111, 0.3);
  opacity: 1;
  transition: background 0.3s ease, transform 0.3s ease;
}

.services-section .swiper-pagination-bullet-active {
  background: var(--accent-color);
  transform: scale(1.3);
}

.service-carousel-card {
  position: relative;
  height: 480px;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 8px 40px rgba(75, 85, 94, 0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
}

.service-carousel-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(75, 85, 94, 0.2);
}

.service-carousel-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.service-carousel-card:hover img {
  transform: scale(1.06);
}

.service-carousel-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 100px 24px 28px;
  background: linear-gradient(to top, rgba(20, 30, 40, 0.92) 0%, rgba(20, 30, 40, 0.5) 50%, transparent 100%);
}

.service-carousel-overlay h3 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}

.service-carousel-overlay p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .blog-details .bottom-bar .reading-actions {
    justify-content: flex-start;
    margin-top: 1rem;
  }
}


/*--------------------------------------------------------------
# Error 404 Section
--------------------------------------------------------------*/
.error-404 {
  padding: 80px 0;
  margin: 0 auto;
}

.error-404 .error-icon {
  font-size: 5rem;
  color: color-mix(in srgb, var(--accent-color), transparent 15%);
}

.error-404 .error-code {
  font-size: clamp(6rem, 15vw, 12rem);
  font-weight: 800;
  color: color-mix(in srgb, var(--heading-color), transparent 10%);
  font-family: var(--heading-font);
  line-height: 1;
}

.error-404 .error-title {
  font-size: 2rem;
  color: var(--heading-color);
  font-weight: 600;
}

.error-404 .error-text {
  font-size: 1.1rem;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  max-width: 600px;
  margin: 0 auto;
}

.error-404 .search-box {
  max-width: 500px;
  margin: 0 auto;
}

.error-404 .search-box .input-group {
  border-radius: 50px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.error-404 .search-box .form-control {
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  color: var(--default-color);
  background-color: var(--surface-color);
  border-radius: 50px;
}

.error-404 .search-box .form-control:focus {
  box-shadow: none;
  border-color: var(--accent-color);
}

.error-404 .search-box .form-control::placeholder {
  color: color-mix(in srgb, var(--default-color), transparent 60%);
}

.error-404 .search-box .search-btn {
  background-color: var(--accent-color);
  color: var(--contrast-color);
  border: none;
  padding: 0.75rem 1.5rem;
  transition: all 0.3s ease;
}

.error-404 .search-box .search-btn:hover {
  background-color: color-mix(in srgb, var(--accent-color), transparent 15%);
}

.error-404 .error-action .btn-primary {
  padding: 0.75rem 2rem;
  font-size: 1.1rem;
  background-color: var(--accent-color);
  border: none;
  color: var(--contrast-color);
  border-radius: 50px;
  transition: all 0.3s ease;
}

.error-404 .error-action .btn-primary:hover {
  background-color: color-mix(in srgb, var(--accent-color), transparent 15%);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .error-404 {
    padding: 60px 0;
  }

  .error-404 .error-code {
    font-size: clamp(4rem, 12vw, 8rem);
  }

  .error-404 .error-title {
    font-size: 1.5rem;
  }

  .error-404 .error-text {
    font-size: 1rem;
    padding: 0 20px;
  }

  .error-404 .search-box {
    margin: 0 20px;
  }
}

/* ==========================================================================
   Diff Cards — cards com ícone + texto (page/feature index)
   ========================================================================== */
.diff-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem 1.25rem;
  background: var(--surface-color);
  border-radius: 12px;
  border-left: 4px solid var(--accent-color);
  box-shadow: 0 4px 20px color-mix(in srgb, var(--default-color), transparent 92%);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.diff-card:hover {
  box-shadow: 0 8px 32px color-mix(in srgb, var(--default-color), transparent 85%);
  transform: translateY(-4px);
  color: inherit;
  text-decoration: none;
}

.diff-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent-color), transparent 88%);
  transition: background 0.3s ease;
}

.diff-card:hover .diff-icon {
  background: color-mix(in srgb, var(--accent-color), transparent 75%);
}

.diff-icon i {
  font-size: 1.4rem;
  color: var(--accent-color);
}

.diff-body {
  flex: 1;
  min-width: 0;
}

.diff-body h4,
.diff-body h5 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--heading-color);
}

.diff-body p {
  font-size: 0.875rem;
  color: color-mix(in srgb, var(--default-color), transparent 35%);
  margin-bottom: 0;
  line-height: 1.55;
}

/* ==========================================================================
   Media Gallery & File Downloads — usados em page/view e post/view
   ========================================================================== */
.media-gallery {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 88%);
}

.media-gallery h4,
.file-downloads h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--heading-color);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.media-gallery h4 i,
.file-downloads h4 i {
  color: var(--accent-color);
}

.gallery-thumb {
  display: block;
  overflow: hidden;
  border-radius: 8px;
  height: 140px;
  position: relative;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
}

.gallery-thumb:hover img {
  transform: scale(1.06);
}

.gallery-thumb .banner-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.4rem 0.75rem;
  background: color-mix(in srgb, var(--default-color), transparent 30%);
  color: var(--contrast-color);
  font-size: 0.72rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gallery-thumb .banner-caption i {
  margin-right: 0.4rem;
}

.glightbox-clean .gslide-description.description-bottom {
  background: color-mix(in srgb, var(--default-color), transparent 30%);
}

.glightbox-clean .description-bottom .gdesc-inner {
  padding: 0.75rem 1.25rem;
}

.glightbox-clean .description-bottom .gslide-title {
  color: var(--contrast-color);
  font-size: 0.85rem;
  font-weight: 400;
  font-family: inherit;
  margin-bottom: 0;
}

.glightbox-clean .description-bottom .gslide-desc {
  display: none;
}

.file-downloads {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 88%);
}

.file-downloads .download-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent-color), transparent 94%);
  margin-bottom: 0.5rem;
  transition: background 0.2s ease;
}

.file-downloads .download-item:last-child {
  margin-bottom: 0;
}

.file-downloads .download-item:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 86%);
}

.file-downloads .download-item a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--heading-color);
  text-decoration: none;
  font-size: 0.9rem;
  flex: 1;
}

.file-downloads .download-item a:hover {
  color: var(--accent-color);
}

.file-downloads .download-item i {
  font-size: 1.2rem;
  color: var(--accent-color);
  flex-shrink: 0;
}