* {
  box-sizing: border-box;
}

body {
  font-family: 'Cairo', sans-serif;
}

/* Main Content */
.page-title {
  font-size: 36px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 12px;
  text-align: center;
}

.page-subtitle {
  font-size: 16px;
  color: var(--text-gray);
  text-align: center;
  margin-bottom: 40px;
}

/* Content Card */
.content-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  margin-bottom: 24px;
  padding: 32px 24px;
}

/* Section Headers */
.section-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-dark);
  margin-top: 32px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--primary);
  display: inline-block;
}

.section-title:first-child {
  margin-top: 0;
}

/* Content Text */
.content-text {
  font-size: 14px;
  color: var(--text-gray);
  line-height: 1.8;
  margin-bottom: 16px;
}

.content-text strong {
  color: var(--text-dark);
  font-weight: 700;
}

/* Lists */
ul, ol {
  margin-bottom: 16px;
  margin-left: 20px;
}

li {
  margin-bottom: 12px;
  color: var(--text-gray);
  line-height: 1.8;
  font-size: 14px;
}

li strong {
  color: var(--text-dark);
  font-weight: 700;
}

/* Links */
a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 600;
}

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Highlights */
.highlight {
  background: rgba(14, 165, 233, 0.1);
  padding: 3px 8px;
  border-radius: 4px;
  color: var(--primary);
  font-weight: 600;
}

.highlight.warning {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.highlight.danger {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

/* Blockquotes */
blockquote {
  border-left: 4px solid var(--primary);
  padding: 16px 20px;
  margin: 20px 0;
  background: var(--alt-section);
  border-radius: 8px;
  font-style: italic;
  color: var(--text-gray);
}

blockquote p {
  margin: 0;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

thead {
  background: var(--alt-section);
}

th {
  padding: 12px;
  text-align: right;
  font-weight: 700;
  color: var(--text-dark);
  border-bottom: 2px solid var(--card-border);
}

td {
  padding: 12px;
  border-bottom: 1px solid var(--card-border);
  color: var(--text-gray);
  font-size: 13px;
}

tbody tr:hover {
  background: var(--alt-section);
}

/* Back Button */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.back-link:hover {
  gap: 12px;
  color: var(--primary-dark);
}

.back-link i {
  font-size: 16px;
}

/* Print Styles */
@media print {
  .navbar,
  .footer,
  .back-link {
    display: none;
  }

  .content-card {
    page-break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
  }

  .section-title {
    page-break-after: avoid;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .page-title {
    font-size: 28px;
  }

  .page-subtitle {
    font-size: 14px;
  }

  .content-card {
    padding: 20px 16px;
  }

  .section-title {
    font-size: 18px;
  }

  .content-text {
    font-size: 13px;
  }

  th, td {
    padding: 10px;
    font-size: 12px;
  }
}

@media (max-width: 576px) {
  .page-title {
    font-size: 22px;
  }

  .page-subtitle {
    font-size: 12px;
  }

  .content-card {
    padding: 16px 12px;
    margin-bottom: 16px;
  }

  .section-title {
    font-size: 16px;
  }

  .content-text {
    font-size: 12px;
  }

  ul, ol {
    margin-left: 16px;
  }

  li {
    margin-bottom: 10px;
    font-size: 12px;
  }

  th, td {
    padding: 8px;
    font-size: 11px;
  }

  blockquote {
    padding: 12px 16px;
  }
}
