/* Material Item Page — Enhanced */

/* Hero: full-width banner */
.mat-hero {
  background: var(--navy);
  padding: 60px 0 56px;
  position: relative;
  overflow: hidden;
}
.mat-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(13,30,53,.92) 0%, rgba(13,30,53,.75) 50%, rgba(13,30,53,.55) 100%);
  z-index: 1;
}
.mat-hero__inner {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.mat-hero__cover {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,.3);
  aspect-ratio: 3/4;
  border: 3px solid rgba(255,255,255,.1);
}
.mat-hero__cover img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.mat-hero__badge {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.mat-hero__title {
  font-size: 36px;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 18px;
  color: #fff;
  letter-spacing: -.5px;
}
.mat-hero__desc {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255,255,255,.7);
  margin-bottom: 32px;
  max-width: 520px;
}
.mat-hero__download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--red);
  color: #fff;
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  transition: background .2s, transform .15s;
  box-shadow: 0 4px 16px rgba(229,57,53,.35);
}
.mat-hero__download:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
}
.mat-hero__download svg { flex-shrink: 0; }
.mat-hero__fileinfo {
  font-weight: 400;
  opacity: .75;
  font-size: 13px;
}

/* Learn section */
.mat-learn { padding: 64px 0; }
.mat-learn .seo-text h2 {
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 28px;
  color: var(--text);
}
.mat-learn .seo-text ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 40px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.mat-learn .seo-text li {
  position: relative;
  padding-left: 28px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 0;
  list-style: none;
}
.mat-learn .seo-text li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--blue);
  opacity: .8;
}
.mat-learn .seo-text ul { margin-left: 0; }

/* Related materials */
.mat-related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
}
.mat-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  transition: box-shadow .25s, transform .25s;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
}
.mat-card:hover {
  box-shadow: 0 12px 32px rgba(0,0,0,.12);
  transform: translateY(-4px);
  border-color: transparent;
}
.mat-card__cover {
  aspect-ratio: 3/2;
  overflow: hidden;
  background: var(--gray-bg2);
}
.mat-card__cover img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .35s;
}
.mat-card:hover .mat-card__cover img {
  transform: scale(1.05);
}
.mat-card__body { padding: 20px 22px; flex: 1; }
.mat-card__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.45;
  margin-bottom: 8px;
}
.mat-card__meta {
  font-size: 13px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 6px;
}
.mat-card__meta::before {
  content: '';
  width: 16px; height: 16px;
  background: var(--red);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpolyline points='14 2 14 8 20 8'/%3E%3C/svg%3E") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpolyline points='14 2 14 8 20 8'/%3E%3C/svg%3E") center/contain no-repeat;
  flex-shrink: 0;
}

/* CTA */
.mat-cta {
  padding: 56px 0;
  background: var(--navy);
  background-image: linear-gradient(135deg, #0a1628 0%, #152d48 100%);
}
.mat-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.mat-cta__title {
  font-size: 28px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 10px;
}
.mat-cta__text {
  font-size: 15px;
  color: rgba(255,255,255,.65);
  max-width: 500px;
  line-height: 1.65;
}
.mat-cta__btns {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
}
.mat-cta__phone {
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  white-space: nowrap;
}
.mat-cta__phone:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 960px) {
  .mat-hero__inner { grid-template-columns: 200px 1fr; gap: 32px; }
  .mat-hero__title { font-size: 28px; }
}
@media (max-width: 768px) {
  .mat-hero { padding: 40px 0; }
  .mat-hero__inner {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }
  .mat-hero__cover {
    max-width: 180px;
    margin: 0 auto;
  }
  .mat-hero__title { font-size: 24px; }
  .mat-hero__desc { margin: 0 auto 24px; }
  .mat-learn .seo-text ul {
    grid-template-columns: 1fr;
  }
  .mat-learn .seo-text li { text-align: left; }
  .mat-related__grid {
    grid-template-columns: 1fr;
  }
  .mat-cta__inner {
    flex-direction: column;
    text-align: center;
  }
  .mat-cta__btns {
    flex-direction: column;
  }
}
