.inner-page {
  padding-top: 6.75rem;
  padding-bottom: 3.5rem;
  min-height: auto;
  background: transparent;
  max-width: 1160px;
}

.inner-hero {
  padding: 1.2rem 1.35rem;
  border-radius: var(--border-radius-lg);
  background: linear-gradient(180deg, rgba(var(--secondary-color-rgb), 0.08), rgba(255, 255, 255, 0.96));
  border: 1px solid rgba(var(--secondary-color-rgb), 0.14);
  box-shadow: var(--shadow-md);
}

.inner-breadcrumb {
  color: var(--text-light);
  margin-bottom: 0.9rem;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(var(--secondary-color-rgb), 0.08);
  border: 1px solid rgba(var(--secondary-color-rgb), 0.18);
  border-radius: 999px;
  padding: 0.32rem 0.72rem;
}

.inner-breadcrumb a {
  color: var(--secondary-color);
  font-weight: 600;
}

.inner-back-link {
  position: sticky;
  top: 5.9rem;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.inner-back-link::before {
  content: "\f060";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}

.inner-title {
  font-size: clamp(1.95rem, 4vw, 2.7rem);
  line-height: 1.2;
  margin-bottom: 0.75rem;
  color: var(--primary-color);
}

.inner-subtitle {
  color: var(--text-light);
  max-width: 880px;
  line-height: 1.65;
}

.inner-content {
  display: grid;
  gap: 1.1rem;
  margin-top: 1.1rem;
  padding: 0;
  background: transparent;
  max-width: 980px;
}

.inner-content h2 {
  color: var(--primary-color);
  margin-top: 0.25rem;
  margin-bottom: 0.35rem;
}

.inner-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.inner-card {
  background: var(--white-color);
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-md);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
  animation: innerFadeUp 420ms ease both;
}

.inner-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--secondary-color-rgb), 0.35);
  box-shadow: var(--shadow-lg);
}

.inner-card h2 {
  font-size: 1rem;
  margin-bottom: 0.45rem;
}

.inner-card p {
  line-height: 1.65;
}

.inner-list {
  list-style: disc;
  margin-left: 1.2rem;
  color: var(--text-color);
}

.inner-list li {
  margin-bottom: 0.45rem;
  line-height: 1.65;
}

.inner-cta {
  margin-top: 1.55rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.inner-cta .button {
  transition: transform 220ms ease, box-shadow 220ms ease, filter 220ms ease;
}

.inner-cta .button:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: var(--shadow-lg);
  filter: saturate(1.06);
}

.inner-cta .button:active {
  transform: translateY(0) scale(0.995);
}

.inner-article {
  background: var(--white-color);
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  line-height: 1.75;
  animation: innerFadeUp 460ms ease both;
}

.inner-article p {
  margin-bottom: 0.9rem;
}

.inner-page .section {
  margin-left: auto;
  margin-right: auto;
}

#projectImage,
#postImage {
  opacity: 0;
  transform: scale(1.02);
  animation: heroImageReveal 620ms ease forwards;
}

@keyframes heroImageReveal {
  from {
    opacity: 0;
    transform: scale(1.02);
    filter: saturate(0.92) contrast(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
    filter: saturate(1) contrast(1);
  }
}

.inner-card-grid .inner-card:nth-child(2) { animation-delay: 60ms; }
.inner-card-grid .inner-card:nth-child(3) { animation-delay: 120ms; }
.inner-card-grid .inner-card:nth-child(4) { animation-delay: 180ms; }

@keyframes innerFadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media screen and (max-width: 768px) {
  .inner-page {
    padding-top: 6.35rem;
    padding-bottom: 2.75rem;
    max-width: 100%;
  }

  .inner-hero {
    padding: 1rem 1rem;
  }

  .inner-back-link {
    top: auto;
    position: static;
  }

  .inner-content {
    gap: 0.9rem;
    margin-top: 0.95rem;
  }

  .inner-card {
    padding: 1rem;
  }

  .inner-article {
    padding: 1.15rem;
  }

  .inner-cta .button:hover {
    transform: translateY(-1px) scale(1.005);
  }

  .inner-breadcrumb {
    font-size: 0.86rem;
    padding: 0.28rem 0.62rem;
  }

  .inner-title {
    font-size: clamp(1.55rem, 7vw, 2rem);
  }

  .inner-subtitle {
    font-size: 0.95rem;
  }

  .inner-card-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

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

@media screen and (min-width: 1200px) {
  .inner-page {
    padding-top: 7rem;
  }

  .inner-hero {
    padding: 1.35rem 1.5rem;
  }

  .inner-content {
    gap: 1.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .inner-card,
  .inner-article,
  #projectImage,
  #postImage {
    animation: none !important;
    transition: none !important;
  }
}
