/* ============================================
   Inner Pages Shared Styles
   Used by: about / products / product-detail / video
            download / contact / news / news-detail
   ============================================ */

/* ---------- Content Section ---------- */
.content-section {
  padding: var(--space-3xl) 0;
}
.content-section--alt {
  background: var(--color-bg);
}

/* ---------- About Page ---------- */
.about-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}
.about-story__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--color-bg);
}
.about-story__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-story__text h3 {
  font-size: var(--font-h3);
  color: var(--color-navy);
  margin-bottom: var(--space-md);
}
.about-story__text p {
  font-size: var(--font-body);
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-sm);
}
/* Values */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}
.value-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  transition: all var(--duration-normal) ease;
}
.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-blue);
}
.value-card__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-sm);
  background: rgba(37,99,235,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.value-card__icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--color-blue);
  stroke-width: 2;
}
.value-card h4 {
  font-size: var(--font-body);
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 8px;
}
.value-card p {
  font-size: var(--font-body-s);
  color: var(--color-text-secondary);
  line-height: 1.5;
}

/* ---------- Products Page ---------- */
.products-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--space-lg);
  align-items: start;
}
.products-sidebar {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  position: sticky;
  top: calc(var(--header-height) + 20px);
}
.products-sidebar__title {
  font-size: var(--font-body);
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: var(--space-sm);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--color-blue);
}
.category-tree {
  list-style: none;
}
.category-tree > li {
  border-bottom: 1px solid var(--color-border-light);
}
.category-tree > li:last-child {
  border-bottom: none;
}
.category-tree__parent {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 4px;
  cursor: pointer;
  font-size: var(--font-body-s);
  font-weight: 500;
  color: var(--color-text);
  transition: all var(--duration-fast);
  border-radius: var(--radius-sm);
}
.category-tree__parent:hover {
  color: var(--color-blue);
  background: rgba(37,99,235,0.04);
}
.category-tree__parent.active {
  color: var(--color-blue);
  font-weight: 600;
}
.category-tree__arrow {
  width: 16px;
  height: 16px;
  transition: transform var(--duration-fast);
  flex-shrink: 0;
}
.category-tree__parent.open .category-tree__arrow {
  transform: rotate(90deg);
}
.category-tree__children {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration-normal) ease;
}
.category-tree__parent.open + .category-tree__children {
  max-height: 500px;
}
.category-tree__children a {
  display: block;
  padding: 7px 4px 7px 20px;
  font-size: var(--font-body-s);
  color: var(--color-text-secondary);
  transition: all var(--duration-fast);
  border-radius: var(--radius-sm);
}
.category-tree__children a:hover {
  color: var(--color-blue);
  background: rgba(37,99,235,0.04);
}
.category-tree__children a.active {
  color: var(--color-blue);
  font-weight: 600;
}
.products-filter {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}
.products-filter__btn {
  padding: 8px 18px;
  font-size: var(--font-caption);
  font-weight: 500;
  border-radius: 100px;
  color: var(--color-text-secondary);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: all var(--duration-normal) ease;
}
.products-filter__btn:hover {
  color: var(--color-blue);
  border-color: var(--color-blue);
}
.products-filter__btn.active {
  background: var(--color-blue);
  color: var(--color-white);
  border-color: var(--color-blue);
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}
/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: var(--space-xl);
}
.pagination__btn {
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--font-body-s);
  color: var(--color-text);
  background: var(--color-white);
  cursor: pointer;
  transition: all var(--duration-fast);
}
.pagination__btn:hover {
  border-color: var(--color-blue);
  color: var(--color-blue);
}
.pagination__btn.active {
  background: var(--color-blue);
  color: var(--color-white);
  border-color: var(--color-blue);
}
.pagination__btn--disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ---------- Product Detail ---------- */
.product-detail {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: var(--space-xl);
  align-items: start;
}
.product-detail__gallery {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-bg);
  aspect-ratio: 4/3;
  padding: var(--space-md);
}
.product-detail__gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-detail__info h2 {
  font-size: var(--font-h2);
  color: var(--color-navy);
  margin-bottom: 4px;
}
.product-detail__model {
  font-size: var(--font-body-s);
  color: var(--color-blue);
  font-weight: 600;
  margin-bottom: var(--space-md);
}
.product-detail__desc {
  font-size: var(--font-body);
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}
/* Detail Section Blocks */
.product-detail__block {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  margin-bottom: var(--space-md);
}
.product-detail__block-title {
  font-size: var(--font-body);
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: var(--space-sm);
  padding-bottom: var(--space-xs);
  border-bottom: 2px solid var(--color-blue);
}
/* Specs Table */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--space-md);
}
.specs-table tr {
  border-bottom: 1px solid var(--color-border);
}
.specs-table td {
  padding: 10px 0;
  font-size: var(--font-body-s);
}
.specs-table td:first-child {
  color: var(--color-text-secondary);
  font-weight: 600;
  width: 35%;
}
.specs-table td:last-child {
  color: var(--color-text);
}
.product-nav {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-xl);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
}
.product-nav a {
  font-size: var(--font-body-s);
  color: var(--color-text-secondary);
  transition: color var(--duration-fast);
}
.product-nav a:hover {
  color: var(--color-blue);
}
/* Related Products */
.related-title {
  text-align: center;
  font-size: var(--font-h3);
  color: var(--color-navy);
  margin-bottom: var(--space-xl);
}

/* ---------- Video Page ---------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}
.video-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: all var(--duration-slow) var(--ease-out);
  box-shadow: var(--shadow-sm);
}
.video-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.video-card__thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--color-bg);
  position: relative;
}
.video-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}
.video-card:hover .video-card__thumb img {
  transform: scale(1.05);
}
.video-card__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(30,58,95,0.3);
  transition: background var(--duration-normal);
}
.video-card:hover .video-card__play {
  background: rgba(30,58,95,0.5);
}
.video-card__play svg {
  width: 56px;
  height: 56px;
  fill: var(--color-white);
  opacity: 0.9;
  transition: transform var(--duration-normal);
}
.video-card:hover .video-card__play svg {
  transform: scale(1.1);
}
.video-card__body {
  padding: var(--space-md);
}
.video-card__body h3 {
  font-size: var(--font-h4);
  color: var(--color-text);
  margin-bottom: 4px;
}
.video-card__body p {
  font-size: var(--font-body-s);
  color: var(--color-text-secondary);
}

/* ---------- Download Page ---------- */
.download-list {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
}
.download-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-sm);
  border-bottom: 1px solid var(--color-border);
  transition: background var(--duration-fast);
}
.download-item:hover {
  background: var(--color-bg);
}
.download-item__icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: rgba(37,99,235,0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}
.download-item__icon svg {
  width: 24px;
  height: 24px;
  fill: var(--color-blue);
}
.download-item__info {
  flex: 1;
  min-width: 0;
}
.download-item__info h4 {
  font-size: var(--font-body);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 2px;
}
.download-item__info span {
  font-size: var(--font-caption);
  color: var(--color-text-light);
}

/* ---------- Contact Page ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-xl);
  align-items: start;
}
.contact-info__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.contact-info__card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
  transition: all var(--duration-normal) ease;
}
.contact-info__card:hover {
  border-color: var(--color-blue);
  box-shadow: var(--shadow-md);
}
.contact-info__icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: rgba(37,99,235,0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-info__icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--color-blue);
  stroke-width: 2;
}
.contact-info__text h4 {
  font-size: var(--font-body);
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 2px;
}
.contact-info__text p {
  font-size: var(--font-body-s);
  color: var(--color-text-secondary);
  line-height: 1.5;
}
/* Form */
.contact-form {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}
.contact-form h3 {
  font-size: var(--font-h3);
  color: var(--color-navy);
  margin-bottom: var(--space-md);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group--full {
  grid-column: 1 / -1;
}
.form-group label {
  font-size: var(--font-body-s);
  font-weight: 600;
  color: var(--color-navy);
}
.form-group label .required {
  color: var(--color-error);
}
.form-group input,
.form-group select,
.form-group textarea {
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--font-body);
  color: var(--color-text);
  background: var(--color-white);
  transition: all var(--duration-normal) ease;
}
.form-group textarea {
  height: auto;
  min-height: 120px;
  padding: 14px;
  resize: vertical;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-light);
  font-size: var(--font-body-s);
}
.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.form-submit {
  margin-top: var(--space-md);
}
.form-submit .btn {
  width: 100%;
}

/* ---------- News Page ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}
.news-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: all var(--duration-slow) var(--ease-out);
  box-shadow: var(--shadow-sm);
}
.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.news-card__image {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--color-bg);
  position: relative;
}
.news-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}
.news-card:hover .news-card__image img {
  transform: scale(1.06);
}
.news-card__date {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--color-navy);
  color: var(--color-white);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: var(--font-caption);
  font-weight: 500;
}
.news-card__body {
  padding: var(--space-md);
}
.news-card__body h3 {
  font-size: var(--font-h4);
  color: var(--color-text);
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card__body p {
  font-size: var(--font-body-s);
  color: var(--color-text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: var(--space-sm);
}
.news-card__meta {
  font-size: var(--font-caption);
  color: var(--color-text-light);
}

/* ---------- News Detail ---------- */
.article {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
}
.article h1 {
  font-size: var(--font-h2);
  color: var(--color-navy);
  margin-bottom: var(--space-sm);
}
.article__meta {
  font-size: var(--font-body-s);
  color: var(--color-text-light);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-border);
}
.article__featured-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-md);
  aspect-ratio: 16/9;
  background: var(--color-bg);
}
.article__featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.article__body {
  font-size: var(--font-body);
  color: var(--color-text);
  line-height: 1.8;
}
.article__body p {
  margin-bottom: var(--space-md);
}
.article__nav {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-xl);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
}
.article__nav a {
  font-size: var(--font-body-s);
  color: var(--color-text-secondary);
  max-width: 45%;
  transition: color var(--duration-fast);
}
.article__nav a:hover {
  color: var(--color-blue);
}

/* ---------- Responsive for Inner Pages ---------- */
@media (max-width: 1024px) {
  .about-story { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .products-layout { grid-template-columns: 1fr; }
  .products-sidebar { position: static; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .product-detail { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-layout { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .values-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .video-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .form-row { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .download-item { flex-wrap: wrap; }
  .download-item .btn { width: 100%; }
}