/* =========================
   pages-style.css
   <link rel="stylesheet" href="../cssp/pages-style.css">
=========================== */

/* --- فونت و بدنه --- */
body {
  background-color: #f9fafb;
  color: #222;
  line-height: 1.9;
  margin: 0;
  padding: 0;
}

/* --- تیترها --- */
h1, h2, h3, h4, h5, h6 {
  font-family: inherit;
  color: #003F7F;
  margin-bottom: 1rem;
}

h1 {
  font-size: 1.8rem;
  color: #E11D48;
  text-align: center;
}

h2 {
  font-size: 1.4rem;
  text-align: center;
  border-right: 4px solid #FFB400;
  padding-right: 10px;
  margin-top: 1.5rem;
}

h3 {
  font-size: 1.2rem;
  margin-top: 0.8rem;
}

/* --- پاراگراف و لیست --- */
p, li {
  font-size: 1.05rem;
  text-align: justify;
  color: #333;
  margin: 0.8rem 0;
}

ul {
  list-style: disc;
  margin-right: 2rem;
  padding-left: 0;
}

/* --- لینک‌ها و دکمه‌ها --- */
a {
  text-decoration: none;
  transition: 0.3s ease;
}

.btn-main {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.7rem 1.4rem;
  border-radius: 30px;
  background-color: #1B867A;
  color: #fff;
  font-weight: bold;
  text-decoration: none;
}

.btn-main:hover {
  background-color: #E11D48;
  color: #fff;
}

/* --- کارت‌ها و ستون‌ها --- */
.serv-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.serv-column {
  flex: 1 1 300px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.08);
  padding: 1.5rem;
  border-top: 4px solid #E11D48;
  transition: all 0.3s ease;
  text-align: center;
}

.serv-column i {
  font-size: 2.5rem;
  color: #E11D48;
  margin-bottom: 1rem;
}

.serv-column:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* --- ناوبری و لینک بازگشت --- */
nav a {
  font-weight: bold;
  color: #E11D48;
}

/* --- بخش‌ها --- */
section.features, section#services {
  background-color: #fdfcf9;
  border-radius: 30px;
  padding: 3rem 1rem;
  margin-bottom: 2rem;
}

/* --- موبایل و ریسپانسیو --- */
@media (max-width: 768px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.2rem; }
  h3 { font-size: 1rem; }
  p, li { font-size: 0.95rem; }
  .serv-row { flex-direction: column; align-items: center; }
  .serv-column { width: 92%; margin-bottom: 1rem; padding: 1.2rem; }
  .btn-main { font-size: 0.9rem; padding: 0.5rem 1.2rem; }
}

/* --- جدول‌ها و دیتاتیبل‌ها --- */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}

table th, table td {
  padding: 0.8rem 1rem;
  border: 1px solid #ddd;
  text-align: center;
}

table th {
  background-color: #1B867A;
  color: #fff;
  font-weight: bold;
}

/* --- کلاس‌های کمکی --- */
.text-center { text-align: center; }
.mt-4 { margin-top: 1.5rem; }
.mb-4 { margin-bottom: 1.5rem; }
