/* ============================================
   EDRA Mexico - Pages CSS
   Page-specific styles
   ============================================ */

/* =====================
   HOMEPAGE - HERO
   ===================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__video-bg video,
.hero__video-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 17, 40, 0.7) 0%,
    rgba(27, 42, 92, 0.5) 40%,
    rgba(27, 42, 92, 0.8) 100%
  );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 850px;
  padding: 0 var(--space-lg);
}

.hero__eyebrow {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-cyan-light);
  margin-bottom: var(--space-md);
}

.hero__title {
  font-size: var(--text-5xl);
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.1;
  margin-bottom: var(--space-md);
}

.hero__title .highlight {
  background: linear-gradient(135deg, var(--color-secondary), var(--color-cyan-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.85);
  font-weight: 400;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-xl);
}

.hero__actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* =====================
   NOSOTROS
   ===================== */
.about-history {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.about-history__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.about-history__image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.about-history__content h2 {
  margin-bottom: var(--space-lg);
}

.about-history__content p {
  color: var(--color-gray-mid);
  margin-bottom: var(--space-md);
  line-height: 1.8;
}

.about-equipment__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--space-md);
}

.about-equipment__item {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.about-equipment__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.about-equipment__item:hover img {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .about-history {
    grid-template-columns: 1fr;
  }
}

/* =====================
   MAQUINADOS CNC
   ===================== */
.pieces-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.piece-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
}

.piece-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.piece-card:hover img {
  transform: scale(1.08);
}

.piece-card__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-lg);
  background: linear-gradient(transparent, rgba(10, 17, 40, 0.8));
  z-index: 2;
  pointer-events: none;
}

.piece-card__overlay h4,
.piece-card__overlay span {
  color: var(--color-white);
  font-size: var(--text-base);
  font-weight: 600;
  font-family: var(--font-heading);
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.cnc-process {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  padding-left: 60px;
}

.cnc-process__line {
  position: absolute;
  left: 24px;
  top: 24px;
  bottom: 24px;
  width: 3px;
  background: linear-gradient(
    180deg,
    var(--color-secondary) 0%,
    rgba(0, 180, 216, 0.3) 50%,
    var(--color-secondary) 100%
  );
  border-radius: 3px;
}

.cnc-process__step {
  position: relative;
  padding-bottom: var(--space-2xl);
  padding-left: var(--space-xl);
  display: flex;
  align-items: flex-start;
  gap: var(--space-lg);
}

.cnc-process__step:last-child {
  padding-bottom: 0;
}

.cnc-process__step-number {
  position: absolute;
  left: calc(-60px + 4px);
  top: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-dark);
  border: 3px solid var(--color-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-secondary);
  z-index: 2;
  box-shadow: 0 0 0 6px var(--color-dark), 0 0 20px rgba(0, 180, 216, 0.2);
  transition: all var(--transition-base);
}

.cnc-process__step:hover .cnc-process__step-number {
  background: var(--color-secondary);
  color: var(--color-white);
  box-shadow: 0 0 0 6px var(--color-dark), 0 0 25px rgba(0, 180, 216, 0.4);
  transform: scale(1.1);
}

.cnc-process__step-content {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-xl);
  flex: 1;
  transition: all var(--transition-base);
}

.cnc-process__step:hover .cnc-process__step-content {
  background: rgba(0, 180, 216, 0.06);
  border-color: rgba(0, 180, 216, 0.2);
  transform: translateX(4px);
}

.cnc-process__step-content h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: var(--space-xs);
}

.cnc-process__step-content p {
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--text-sm);
  line-height: 1.6;
}

/* Connector dots between steps */
.cnc-process__step::before {
  content: '';
  position: absolute;
  left: calc(-60px + 23px);
  top: 50px;
  bottom: -6px;
  width: 1px;
  border-left: 2px dashed rgba(0, 180, 216, 0.15);
}

.cnc-process__step:last-child::before {
  display: none;
}

@media (max-width: 600px) {
  .cnc-process {
    padding-left: 48px;
  }

  .cnc-process__line {
    left: 18px;
  }

  .cnc-process__step-number {
    left: calc(-48px + 0px);
    width: 38px;
    height: 38px;
    font-size: var(--text-sm);
  }

  .cnc-process__step::before {
    left: calc(-48px + 17px);
  }

  .cnc-process__step-content {
    padding: var(--space-md);
  }
}

/* Industries tags */
.industries-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
}

.industry-tag {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  background: rgba(0, 180, 216, 0.08);
  border: 1px solid rgba(0, 180, 216, 0.2);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-primary);
}

.industry-tag svg {
  width: 18px;
  height: 18px;
  fill: var(--color-secondary);
}

/* =====================
   GRUAS INDUSTRIALES
   ===================== */
.crane-types-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.crane-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-smooth);
}

.crane-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.crane-card__img {
  height: 220px;
  overflow: hidden;
}

.crane-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.crane-card:hover .crane-card__img img {
  transform: scale(1.05);
}

.crane-card__body {
  padding: var(--space-lg);
}

.crane-card__body h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-sm);
}

.crane-card__body p {
  font-size: var(--text-sm);
  color: var(--color-gray-mid);
}

@media (max-width: 968px) {
  .crane-types-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .crane-types-grid {
    grid-template-columns: 1fr;
  }
}

/* =====================
   CORTE LASER
   ===================== */
.laser-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.laser-specs__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.laser-specs__image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.laser-specs__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.laser-spec-item {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.laser-spec-item__icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: rgba(0, 180, 216, 0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.laser-spec-item__icon svg {
  width: 22px;
  height: 22px;
  fill: var(--color-secondary);
}

.laser-spec-item h4 {
  font-size: var(--text-base);
  margin-bottom: 2px;
}

.laser-spec-item p {
  font-size: var(--text-sm);
  color: var(--color-gray-mid);
}

.materials-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-lg);
  text-align: center;
}

.material-item {
  padding: var(--space-xl);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-smooth);
}

.material-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.material-item__icon {
  width: 56px;
  height: 56px;
  background: rgba(0, 180, 216, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
}

.material-item__icon svg {
  width: 24px;
  height: 24px;
  fill: var(--color-secondary);
}

.material-item h4 {
  font-size: var(--text-sm);
}

@media (max-width: 768px) {
  .laser-specs {
    grid-template-columns: 1fr;
  }

  .materials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .materials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =====================
   PROYECTOS ESPECIALES
   ===================== */
.special-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.special-feature-card {
  background: var(--color-white);
  padding: var(--space-2xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: all var(--transition-smooth);
  border-bottom: 3px solid transparent;
}

.special-feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-bottom-color: var(--color-secondary);
}

.special-feature-card__icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, rgba(0, 180, 216, 0.1), rgba(72, 202, 228, 0.1));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
}

.special-feature-card__icon svg {
  width: 28px;
  height: 28px;
  fill: var(--color-secondary);
}

.special-feature-card h4 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-sm);
}

.special-feature-card p {
  font-size: var(--text-sm);
  color: var(--color-gray-mid);
}

.video-showcase {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  max-width: 960px;
  margin: 0 auto;
  background: var(--color-dark);
  box-shadow:
    0 25px 60px rgba(10, 17, 40, 0.3),
    0 0 0 1px rgba(0, 180, 216, 0.1);
}

/* Top accent bar */
.video-showcase::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-secondary), var(--color-cyan-light), var(--color-secondary));
  z-index: 5;
}

.video-showcase__wrapper {
  position: relative;
  aspect-ratio: 16 / 9;
  cursor: pointer;
}

.video-showcase__wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Poster overlay with play button */
.video-showcase__poster {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    rgba(10, 17, 40, 0.6) 0%,
    rgba(27, 42, 92, 0.4) 100%
  );
  transition: opacity 0.5s ease;
}

.video-showcase__poster.hidden {
  opacity: 0;
  pointer-events: none;
}

.video-showcase__play-btn {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: rgba(0, 180, 216, 0.9);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow:
    0 0 0 0 rgba(0, 180, 216, 0.4),
    0 8px 30px rgba(0, 0, 0, 0.3);
  animation: playPulse 2.5s ease-in-out infinite;
}

.video-showcase__play-btn:hover {
  transform: scale(1.12);
  background: var(--color-secondary);
  box-shadow:
    0 0 0 12px rgba(0, 180, 216, 0.15),
    0 12px 40px rgba(0, 0, 0, 0.4);
  animation: none;
}

.video-showcase__play-btn svg {
  width: 32px;
  height: 32px;
  fill: var(--color-white);
  margin-left: 4px; /* optical center for play triangle */
}

@keyframes playPulse {
  0%, 100% {
    box-shadow:
      0 0 0 0 rgba(0, 180, 216, 0.4),
      0 8px 30px rgba(0, 0, 0, 0.3);
  }
  50% {
    box-shadow:
      0 0 0 16px rgba(0, 180, 216, 0),
      0 8px 30px rgba(0, 0, 0, 0.3);
  }
}

/* Bottom info bar */
.video-showcase__info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-xl);
  background: var(--color-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.video-showcase__info-left {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.video-showcase__info-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: rgba(0, 180, 216, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.video-showcase__info-icon svg {
  width: 18px;
  height: 18px;
}

.video-showcase__info-title {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-white);
  line-height: 1.3;
}

.video-showcase__info-subtitle {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.5);
  margin-top: 1px;
}

.video-showcase__info-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(0, 180, 216, 0.3);
  background: rgba(0, 180, 216, 0.08);
  font-size: 11px;
  font-weight: 600;
  color: var(--color-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.video-showcase__info-badge svg {
  width: 12px;
  height: 12px;
}

/* Corner decorative elements */
.video-showcase__corner {
  position: absolute;
  width: 20px;
  height: 20px;
  z-index: 4;
  opacity: 0.3;
}

.video-showcase__corner--tl {
  top: 16px;
  left: 16px;
  border-top: 2px solid var(--color-secondary);
  border-left: 2px solid var(--color-secondary);
}

.video-showcase__corner--tr {
  top: 16px;
  right: 16px;
  border-top: 2px solid var(--color-secondary);
  border-right: 2px solid var(--color-secondary);
}

.video-showcase__corner--bl {
  bottom: 16px;
  left: 16px;
  border-bottom: 2px solid var(--color-secondary);
  border-left: 2px solid var(--color-secondary);
}

.video-showcase__corner--br {
  bottom: 16px;
  right: 16px;
  border-bottom: 2px solid var(--color-secondary);
  border-right: 2px solid var(--color-secondary);
}

.video-showcase__poster.hidden ~ .video-showcase__corner {
  opacity: 0;
  transition: opacity 0.3s ease;
}

@media (max-width: 600px) {
  .video-showcase__play-btn {
    width: 68px;
    height: 68px;
  }

  .video-showcase__play-btn svg {
    width: 24px;
    height: 24px;
  }

  .video-showcase__info {
    flex-direction: column;
    gap: var(--space-sm);
    padding: var(--space-md);
    text-align: center;
  }

  .video-showcase__info-left {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .special-features {
    grid-template-columns: 1fr;
  }
}

/* =====================
   CONTACTO
   ===================== */
.contact-form-section {
  display: grid;
  grid-template-columns: 60% 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

.contact-form-section__map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: sticky;
  top: calc(var(--navbar-height-scrolled) + var(--space-xl));
}

.contact-form-section__map iframe {
  width: 100%;
  height: 500px;
  border: 0;
  filter: grayscale(0.3) contrast(1.05);
}

.contact-form-section__info {
  margin-top: var(--space-2xl);
}

.contact-form-section__info h4 {
  margin-bottom: var(--space-md);
}

.contact-form-section__detail {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
  margin-bottom: var(--space-md);
  font-size: var(--text-sm);
  color: var(--color-gray-mid);
}

.contact-form-section__detail svg {
  width: 16px;
  height: 16px;
  fill: var(--color-secondary);
  margin-top: 3px;
  flex-shrink: 0;
}

@media (max-width: 968px) {
  .contact-form-section {
    grid-template-columns: 1fr;
  }

  .contact-form-section__map {
    position: static;
  }

  .contact-form-section__map iframe {
    height: 350px;
  }
}

/* =====================
   404 PAGE
   ===================== */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--color-dark);
  color: var(--color-white);
  padding: var(--space-xl);
}

.error-page__code {
  font-family: var(--font-heading);
  font-size: clamp(6rem, 10vw + 2rem, 12rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--color-secondary), var(--color-cyan-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: var(--space-md);
}

.error-page h2 {
  color: var(--color-white);
  font-size: var(--text-2xl);
  margin-bottom: var(--space-md);
}

.error-page p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-2xl);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* =====================
   SWIPER OVERRIDES
   ===================== */
.swiper {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.swiper-slide img {
  width: 100%;
  height: 350px;
  object-fit: cover;
}

.swiper-button-next,
.swiper-button-prev {
  color: var(--color-white) !important;
  background: rgba(10, 17, 40, 0.5);
  width: 44px !important;
  height: 44px !important;
  border-radius: 50%;
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 16px !important;
}

.swiper-pagination-bullet {
  background: var(--color-white) !important;
  opacity: 0.5 !important;
}

.swiper-pagination-bullet-active {
  background: var(--color-secondary) !important;
  opacity: 1 !important;
}

/* Dark carousel variation */
.carousel-dark .swiper {
  background: var(--color-dark);
  padding: var(--space-md);
}

.carousel-dark .swiper-slide {
  border-radius: var(--radius-md);
  overflow: hidden;
}

/* =====================
   BLOG - LISTING
   ===================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

.blog-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-smooth);
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.blog-card__img {
  height: 220px;
  overflow: hidden;
}

.blog-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.blog-card:hover .blog-card__img img {
  transform: scale(1.05);
}

.blog-card__body {
  padding: var(--space-lg);
}

.blog-card__category {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: var(--space-xs);
}

.blog-card__date {
  font-size: var(--text-xs);
  color: var(--color-gray-mid);
  margin-bottom: var(--space-sm);
}

.blog-card__title {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-sm);
  line-height: 1.3;
}

.blog-card__title a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-base);
}

.blog-card__title a:hover {
  color: var(--color-secondary);
}

.blog-card__excerpt {
  font-size: var(--text-sm);
  color: var(--color-gray-mid);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.blog-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-secondary);
  text-decoration: none;
  transition: gap var(--transition-base);
}

.blog-card__link:hover {
  gap: 10px;
}

.blog-card__link svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
}

@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-card__img {
    height: 200px;
  }

  .blog-card:hover {
    transform: none;
  }
}

@media (max-width: 480px) {
  .blog-card__img {
    height: 180px;
  }

  .blog-card__body {
    padding: var(--space-md);
  }

  .blog-card__title {
    font-size: var(--text-base);
  }
}

/* =====================
   BLOG - ARTICLE
   ===================== */
.article {
  max-width: 780px;
  margin: 0 auto;
  padding: var(--space-3xl) var(--space-lg);
}

.article__meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--color-gray-light);
}

.article__category {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-white);
  background: var(--color-secondary);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.article__date,
.article__reading-time {
  font-size: var(--text-sm);
  color: var(--color-gray-mid);
}

.article__content h2 {
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
  color: var(--color-primary);
}

.article__content h3 {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
  color: var(--color-primary);
}

.article__content p {
  font-size: var(--text-base);
  color: var(--color-gray-mid);
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

.article__content ul,
.article__content ol {
  margin-bottom: var(--space-md);
  padding-left: var(--space-xl);
  color: var(--color-gray-mid);
  line-height: 1.8;
}

.article__content li {
  margin-bottom: var(--space-xs);
}

.article__content strong {
  color: var(--color-primary);
  font-weight: 600;
}

.article__content blockquote {
  border-left: 4px solid var(--color-secondary);
  padding: var(--space-md) var(--space-lg);
  margin: var(--space-xl) 0;
  background: rgba(0, 180, 216, 0.05);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.article__content blockquote p {
  font-style: italic;
  color: var(--color-primary);
  margin-bottom: 0;
}

.article__content figure {
  margin: var(--space-xl) 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.article__content figure img {
  width: 100%;
  height: auto;
  display: block;
}

.article__content figcaption {
  font-size: var(--text-sm);
  color: var(--color-gray-mid);
  text-align: center;
  padding: var(--space-sm) 0;
}

.article__content table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-xl) 0;
  font-size: var(--text-sm);
}

.article__content table th,
.article__content table td {
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--color-gray-light);
  text-align: left;
}

.article__content table th {
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.article__content table td {
  color: var(--color-gray-mid);
}

.article__content table tr:nth-child(even) {
  background: rgba(0, 0, 0, 0.02);
}

.article__content .table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: var(--space-xl) 0;
}

.article__content .table-wrapper table {
  margin: 0;
  min-width: 500px;
}

@media (max-width: 768px) {
  .article {
    padding: var(--space-2xl) var(--space-md);
  }

  .article__content h2 {
    font-size: var(--text-xl);
    margin-top: var(--space-xl);
  }

  .article__content h3 {
    font-size: var(--text-lg);
  }

  .article__content blockquote {
    padding: var(--space-sm) var(--space-md);
    margin: var(--space-lg) 0;
  }

  .article__content figure {
    margin-left: calc(var(--space-md) * -1);
    margin-right: calc(var(--space-md) * -1);
    border-radius: 0;
  }
}

@media (max-width: 480px) {
  .article {
    padding: var(--space-xl) var(--space-sm);
  }

  .article__meta {
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
  }

  .article__content figure {
    margin-left: calc(var(--space-sm) * -1);
    margin-right: calc(var(--space-sm) * -1);
  }

  .article__content p,
  .article__content ul,
  .article__content ol {
    font-size: var(--text-sm);
  }

  .article__content ul,
  .article__content ol {
    padding-left: var(--space-lg);
  }
}

/* =====================
   BLOG - RELATED ARTICLES
   ===================== */
.related-articles {
  padding: var(--space-3xl) 0;
}

.related-articles__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

@media (max-width: 968px) {
  .related-articles__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .related-articles__grid {
    grid-template-columns: 1fr;
  }

  .related-articles {
    padding: var(--space-2xl) 0;
  }
}

/* =====================
   BLOG - MOBILE HERO & BREADCRUMB
   ===================== */
@media (max-width: 768px) {
  .page-hero__breadcrumb {
    flex-wrap: wrap;
  }

  .page-hero__content {
    padding-left: var(--space-md);
    padding-right: var(--space-md);
  }
}

@media (max-width: 480px) {
  .page-hero__breadcrumb {
    gap: var(--space-xs);
  }

  .page-hero__breadcrumb a,
  .page-hero__breadcrumb span {
    font-size: var(--text-xs);
  }

  .page-hero__content h1 {
    font-size: clamp(1.4rem, 5vw, 1.875rem);
  }
}

/* ============================================
   BLOG INTERACTIVE REDESIGN
   Progress bar, TOC, Share, Typography, Nav,
   Featured article, Filters
   ============================================ */

/* =====================
   READING PROGRESS BAR
   ===================== */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 501;
  background: transparent;
  pointer-events: none;
}

.reading-progress__bar {
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--color-secondary), var(--color-cyan-light));
  will-change: transform;
}

/* =====================
   ARTICLE 2-COL LAYOUT + TOC
   ===================== */
.article-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3rem;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* TOC Sidebar (desktop) */
.article-toc {
  position: sticky;
  top: 96px;
  align-self: start;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.article-toc__label {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-gray-mid);
  margin-bottom: var(--space-md);
}

.article-toc__list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-left: 2px solid rgba(100, 116, 139, 0.2);
}

.article-toc__item {
  margin: 0;
}

.article-toc__link {
  display: block;
  padding: 0.4rem 0 0.4rem 1rem;
  font-size: var(--text-sm);
  color: var(--color-gray-mid);
  text-decoration: none;
  border-left: 2px solid transparent;
  margin-left: -2px;
  transition: color var(--transition-fast), border-color var(--transition-fast);
  line-height: 1.4;
}

.article-toc__link:hover {
  color: var(--color-secondary);
}

.article-toc__link.active {
  color: var(--color-secondary);
  border-left-color: var(--color-secondary);
  font-weight: 600;
}

/* TOC Mobile */
.article-toc-mobile {
  display: none;
  margin-bottom: var(--space-xl);
}

.article-toc-mobile__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--color-gray-light);
  border: 1px solid rgba(100, 116, 139, 0.2);
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-gray-dark);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.article-toc-mobile__toggle:hover {
  background: rgba(0, 180, 216, 0.08);
}

.article-toc-mobile__toggle .chevron-icon {
  transition: transform var(--transition-fast);
}

.article-toc-mobile.open .article-toc-mobile__toggle .chevron-icon {
  transform: rotate(180deg);
}

.article-toc-mobile__list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.article-toc-mobile.open .article-toc-mobile__list {
  max-height: 500px;
}

.article-toc-mobile__list li {
  margin: 0;
}

.article-toc-mobile__list a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: var(--text-sm);
  color: var(--color-gray-mid);
  text-decoration: none;
  border-left: 2px solid rgba(100, 116, 139, 0.15);
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.article-toc-mobile__list a:hover,
.article-toc-mobile__list a.active {
  color: var(--color-secondary);
  border-left-color: var(--color-secondary);
}

@media (max-width: 1100px) {
  .article-layout {
    grid-template-columns: 1fr;
    max-width: 760px;
  }

  .article-toc {
    display: none;
  }

  .article-toc-mobile {
    display: block;
  }
}

/* =====================
   SHARE BUTTONS (FLOATING)
   ===================== */
.article-share {
  position: fixed;
  left: calc(50% - 560px);
  top: 50%;
  transform: translateX(-100%) translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base), transform var(--transition-base);
}

.article-share.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0) translateY(-50%);
}

.article-share__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(100, 116, 139, 0.2);
  background: var(--color-white);
  color: var(--color-gray-mid);
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.article-share__btn:hover {
  background: var(--color-secondary);
  color: var(--color-white);
  border-color: var(--color-secondary);
  box-shadow: var(--shadow-cyan);
}

.article-share__btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.article-share__btn--copy.copied {
  background: var(--color-success);
  color: var(--color-white);
  border-color: var(--color-success);
}

@media (max-width: 1300px) {
  .article-share {
    left: auto;
    right: auto;
    top: auto;
    bottom: 0;
    transform: translateY(100%);
    flex-direction: row;
    justify-content: center;
    width: 100%;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-top: 1px solid rgba(100, 116, 139, 0.1);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
  }

  .article-share.visible {
    transform: translateY(0);
  }
}

/* =====================
   ARTICLE TYPOGRAPHY ENHANCEMENTS
   ===================== */

/* Drop cap on first paragraph */
.article__content > p:first-of-type::first-letter {
  float: left;
  font-family: var(--font-heading);
  font-size: 3.5em;
  line-height: 0.8;
  font-weight: 800;
  color: var(--color-primary);
  margin-right: 0.08em;
  margin-top: 0.05em;
}

/* Styled unordered list bullets */
.article__content ul {
  list-style: none;
  padding-left: 1.5em;
}

.article__content ul > li {
  position: relative;
  padding-left: 0.25em;
  margin-bottom: 0.75em;
}

.article__content ul > li::before {
  content: '';
  position: absolute;
  left: -1.25em;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-secondary);
}

/* Styled ordered list numbers */
.article__content ol {
  list-style: none;
  padding-left: 2em;
  counter-reset: ol-counter;
}

.article__content ol > li {
  position: relative;
  padding-left: 0.5em;
  margin-bottom: 0.75em;
  counter-increment: ol-counter;
}

.article__content ol > li::before {
  content: counter(ol-counter);
  position: absolute;
  left: -2em;
  top: 0.1em;
  width: 1.6em;
  height: 1.6em;
  border-radius: 50%;
  background: rgba(0, 180, 216, 0.12);
  color: var(--color-secondary);
  font-family: var(--font-heading);
  font-size: 0.8em;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* H2 section left border accent */
.article__content h2 {
  border-left: 4px solid transparent;
  padding-left: 0.75rem;
  transition: border-color 0.4s ease;
}

.article__content h2.in-view {
  border-left-color: var(--color-secondary);
}

/* =====================
   ARTICLE NAV (PREV / NEXT)
   ===================== */
.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 1080px;
  margin: 0 auto;
  padding: var(--space-3xl) var(--space-lg) var(--space-2xl);
}

.article-nav__item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--color-white);
  border: 1px solid rgba(100, 116, 139, 0.15);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.article-nav__item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.article-nav__label {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-secondary);
}

.article-nav__title {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-gray-dark);
  line-height: 1.4;
}

.article-nav__item--next {
  text-align: right;
}

.article-nav__item--prev:only-child {
  grid-column: 1;
}

.article-nav__item--next:only-child {
  grid-column: 2;
}

@media (max-width: 600px) {
  .article-nav {
    grid-template-columns: 1fr;
  }

  .article-nav__item--next {
    text-align: left;
  }

  .article-nav__item--next:only-child {
    grid-column: 1;
  }
}

/* =====================
   BLOG FEATURED ARTICLE
   ===================== */
.blog-featured {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background: var(--color-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: var(--space-3xl);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.blog-featured:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.blog-featured__img {
  position: relative;
  overflow: hidden;
  min-height: 320px;
}

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

.blog-featured:hover .blog-featured__img img {
  transform: scale(1.04);
}

.blog-featured__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-2xl) var(--space-xl);
}

.blog-featured__badge {
  display: inline-block;
  width: fit-content;
  padding: 0.25rem 0.75rem;
  background: linear-gradient(135deg, var(--color-secondary), var(--color-cyan-light));
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
}

.blog-featured__title {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--color-gray-dark);
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

.blog-featured__title a {
  color: inherit;
  text-decoration: none;
}

.blog-featured__title a:hover {
  color: var(--color-secondary);
}

.blog-featured__excerpt {
  font-size: var(--text-base);
  color: var(--color-gray-mid);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}

.blog-featured__meta {
  display: flex;
  gap: var(--space-md);
  font-size: var(--text-sm);
  color: var(--color-gray-mid);
}

@media (max-width: 768px) {
  .blog-featured {
    grid-template-columns: 1fr;
  }

  .blog-featured__img {
    min-height: 220px;
    max-height: 260px;
  }

  .blog-featured__body {
    padding: var(--space-xl) var(--space-lg);
  }

  .blog-featured__title {
    font-size: var(--text-xl);
  }
}

/* =====================
   BLOG FILTERS
   ===================== */
.blog-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: var(--space-2xl);
}

.blog-filter {
  position: relative;
  padding: 0.5rem 1.25rem;
  border: 1px solid rgba(100, 116, 139, 0.25);
  border-radius: var(--radius-full);
  background: transparent;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-gray-mid);
  cursor: pointer;
  overflow: hidden;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.blog-filter::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-secondary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  z-index: -1;
  border-radius: var(--radius-full);
}

.blog-filter:hover {
  border-color: var(--color-secondary);
  color: var(--color-secondary);
}

.blog-filter.active {
  background: var(--color-secondary);
  color: var(--color-white);
  border-color: var(--color-secondary);
}

.blog-filter.active::before {
  transform: scaleX(1);
}

/* Blog card filter animation */
.blog-card[data-category] {
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.blog-card.hidden {
  opacity: 0;
  transform: translateY(12px) scale(0.97);
  pointer-events: none;
  position: absolute;
  visibility: hidden;
}
