/* Basic Reset & Font for Global Styling */
body {
font-family: ‘Segoe UI’, Tahoma, Geneva, Verdana, sans-serif;
line-height: 1.6;
color: #333;
background-color: #f8f8f8; /* Light background for the whole page */
margin: 0;
padding: 0;
direction: rtl; /* Right-to-left for Persian text */
text-align: right;
}
.container {
max-width: 900px; /* Max width for content on large screens */
margin: 20px auto;
background-color: #fff; /* White background for the article content */
padding: 30px;
box-shadow: 0 2px 10px rgba(0,0,0,0.08);
border-radius: 8px;
overflow: hidden; /* Ensures content stays within bounds */
}
/* Headings */
h1 {
font-size: 2.5em; /* Larger for H1 */
font-weight: 700;
color: #2c3e50; /* Dark blue/grey for main title */
text-align: center;
margin-bottom: 30px;
border-bottom: 3px solid #3498db; /* Blue accent under H1 */
padding-bottom: 15px;
line-height: 1.2;
}
h2 {
font-size: 1.8em;
font-weight: 600;
color: #34495e; /* Slightly lighter dark blue/grey for H2 */
margin-top: 40px;
margin-bottom: 20px;
border-bottom: 2px solid #aec6cf; /* Light grey-blue accent */
padding-bottom: 10px;
}
h3 {
font-size: 1.4em;
font-weight: 600;
color: #3d5a73; /* A bit darker than text, less prominent than H2 */
margin-top: 30px;
margin-bottom: 15px;
padding-right: 10px; /* Adjusted for RTL */
border-right: 4px solid #3498db; /* Blue bar for H3, adjusted for RTL */
text-align: right;
}
/* Paragraphs */
p {
margin-bottom: 1em;
line-height: 1.8;
text-align: justify;
text-align-last: right; /* For better justification in RTL */
}
/* Lists */
ul {
list-style-type: disc;
margin-right: 25px; /* Adjusted for RTL */
margin-left: 0;
margin-bottom: 1em;
padding-right: 0;
}
ol {
list-style-type: decimal;
margin-right: 25px; /* Adjusted for RTL */
margin-left: 0;
margin-bottom: 1em;
padding-right: 0;
}
li {
margin-bottom: 0.5em;
text-align: right;
}
/* Table of Contents */
.toc {
background-color: #ecf0f1; /* Light grey background */
border-right: 5px solid #3498db; /* Adjusted for RTL */
padding: 20px;
margin-bottom: 30px;
border-radius: 5px;
}
.toc h2 {
font-size: 1.6em;
color: #2c3e50;
border-bottom: none;
margin-top: 0;
margin-bottom: 15px;
padding-bottom: 0;
text-align: right;
}
.toc ul {
list-style-type: none;
margin-right: 0;
padding-right: 0;
}
.toc ul li a {
color: #34495e;
text-decoration: none;
padding: 5px 0;
display: block;
transition: color 0.3s ease;
text-align: right;
}
.toc ul li a:hover {
color: #3498db;
text-decoration: underline;
}
/* Table Styling */
table {
width: 100%;
border-collapse: collapse;
margin: 25px 0;
font-size: 0.95em;
text-align: right; /* Adjusted for RTL */
box-shadow: 0 0 20px rgba(0,0,0,0.05);
border-radius: 8px;
overflow: hidden; /* Ensures rounded corners work for inner cells */
}
th, td {
padding: 12px 15px;
border-bottom: 1px solid #ddd;
}
thead tr {
background-color: #3498db; /* Blue header */
color: #ffffff;
text-align: center;
}
tbody tr:nth-of-type(even) {
background-color: #f3f3f3; /* Zebra striping */
}
tbody tr:last-of-type {
border-bottom: 2px solid #3498db;
}
tbody tr:hover {
background-color: #e0f2f7; /* Hover effect */
}
/* Infographic-like Visual Guide */
.visual-guide {
display: flex;
flex-wrap: wrap; /* Allows items to wrap on smaller screens */
justify-content: center;
gap: 20px;
margin: 40px 0;
}
.guide-step {
background-color: #e8f6f3; /* Light green-blue background */
border: 2px solid #2ecc71; /* Green border */
border-radius: 10px;
padding: 20px;
flex: 1 1 calc(50% – 40px); /* Two columns on larger screens, full width on small */
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
transition: transform 0.3s ease, box-shadow 0.3s ease;
min-width: 280px; /* Minimum width for each step */
}
.guide-step:hover {
transform: translateY(-5px);
box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}
.guide-step h4 {
color: #27ae60; /* Darker green for step titles */
font-size: 1.3em;
margin-top: 0;
margin-bottom: 15px;
text-align: center;
position: relative;
padding-bottom: 10px;
}
.guide-step h4::after {
content: ”;
position: absolute;
left: 50%; /* Adjusted for RTL */
transform: translateX(-50%);
bottom: 0;
width: 50px;
height: 3px;
background-color: #2ecc71;
}
.guide-step p {
font-size: 0.95em;
text-align: center;
}
.guide-step strong {
color: #2c3e50;
}
/* Responsiveness */
@media (max-width: 768px) {
.container {
margin: 10px;
padding: 15px;
box-shadow: none; /* Lighter on mobile */
border-radius: 0;
}
h1 {
font-size: 1.8em;
margin-bottom: 20px;
padding-bottom: 10px;
}
h2 {
font-size: 1.5em;
margin-top: 30px;
margin-bottom: 15px;
padding-bottom: 8px;
}
h3 {
font-size: 1.2em;
margin-top: 25px;
margin-bottom: 10px;
padding-right: 8px; /* Adjusted for RTL */
}
.toc {
padding: 15px;
margin-bottom: 20px;
}
.visual-guide {
flex-direction: column; /* Stack steps vertically on small screens */
}
.guide-step {
flex: 1 1 100%; /* Full width on small screens */
min-width: unset;
}
table, thead, tbody, th, td, tr {
display: block; /* Make table responsive by stacking cells */
width: 100%;
}
thead tr {
position: absolute;
top: -9999px;
left: -9999px;
}
td {
border: none;
border-bottom: 1px solid #eee;
position: relative;
padding-right: 50%; /* Adjusted for RTL */
text-align: right;
}
td::before {
content: attr(data-label); /* Use data-label for column name */
position: absolute;
right: 0; /* Adjusted for RTL */
width: 45%;
padding-right: 15px; /* Adjusted for RTL */
font-weight: bold;
text-align: right; /* Adjusted for RTL */
color: #555;
}
td:last-child {
border-bottom: 1px solid #ddd; /* Ensure last cell has a border */
}
}
