
/* =======================
  Hero Section
======================== */
.warranty-hero-section {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--main-color) 100%);
  padding: 70px 0;
  text-align: center;
  color: var(--color-white);
  position: relative;
}

.warranty-hero-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--color-success);
}

.warranty-title {
  font-weight: 800;
  font-size: 2.2rem;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.warranty-subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 680px;
  margin: 0 auto;
  font-weight: 300;
}

/* =======================
  Table of Contents (TOC)
======================== */
.warranty-toc-section {
  padding: 40px 0 20px 0;
  background-color: var(--bg-light);
}

.warranty-toc-card {
  background: var(--color-white);
  border: 1px solid var(--border-color);
  border-top: 4px solid var(--main-color);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.toc-title {
  color: var(--secondary-color);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}

.toc-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background-color: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #edf2f7;
  color: var(--color-text-dark);
  text-decoration: none;
  font-size: 0.92rem;
  transition: all 0.25s ease;
}

.toc-item .toc-icon {
  font-size: 1.2rem;
  color: var(--main-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.toc-item:hover {
  background-color: var(--main-color);
  color: var(--color-white)!important;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(var(--main-color-rgb), 0.2);
}

.toc-item:hover .toc-icon {
  color: var(--color-white);
}

/* =======================
  Warranty Content Items
======================== */
.warranty-content-section {
  background-color: var(--bg-light);
  padding: 20px 0 60px 0;
}

.warranty-item {
  background-color: var(--color-white);
  border: 1px solid var(--border-color);
  border-top: 3px solid var(--main-color);
  border-radius: 10px;
  padding: 28px;
  margin-bottom: 24px;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
  scroll-margin-top: 100px; /* جلوگیری از مخفی شدن زیر هدر هنگام کلیک روی فهرست */
}

.warranty-item:hover {
  box-shadow: 0 8px 24px rgba(var(--secondary-accent-rgb), 0.08);
  border-color: rgba(var(--main-color-rgb), 0.4);
}

.warranty-item h3 {
  color: var(--secondary-color);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.warranty-item h3::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 18px;
  background-color: var(--main-color);
  border-radius: 3px;
}

.warranty-item p {
  color: var(--color-text-hover);
  line-height: 1.85;
  font-size: 0.95rem;
  text-align: justify;
  margin-bottom: 12px;
}

.warranty-item p:last-child {
  margin-bottom: 0;
}

/* =======================
  Warranty Notes (تبصره‌ها)
======================== */
.warranty-note {
  background-color: rgba(1, 106, 104, 0.04);
  border-right: 4px solid var(--main-color);
  border-radius: 4px 8px 8px 4px;
  padding: 12px 18px;
  margin-top: 14px;
  font-size: 0.9rem;
  line-height: 1.75;
  color: #334155;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.warranty-note::before {
  content: "\ea72"; /* کد آیکون information-line در Remix Icons */
  font-family: 'remixicon';
  font-size: 1.1rem;
  color: var(--main-color);
  flex-shrink: 0;
  line-height: 1.6;
}
