فهرست مطالب

/* Basic styling for responsiveness and overall look */
@import url(‘https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-Variable-font-face.css’);

body {
margin: 0;
padding: 0;
background-color: #f0f2f5; /* Light grey background for the whole page */
direction: rtl; /* Right-to-left for Persian */
text-align: right;
}

.jp-article-container {
font-family: ‘Vazirmatn’, sans-serif;
line-height: 1.8;
color: #333;
max-width: 900px; /* Optimal reading width for desktops */
margin: 0 auto;
padding: 20px;
box-sizing: border-box;
background-color: #f9f9f9;
border-radius: 12px;
box-shadow: 0 4px 20px rgba(0,0,0,0.05);
transition: all 0.3s ease-in-out; /* Smooth transitions for responsive changes */
}

/* Headings */
h1 {
font-size: 2.8em; /* Large for H1 */
font-weight: 800;
color: #1a2a4b;
text-align: center;
margin-bottom: 30px;
line-height: 1.3;
transition: font-size 0.3s ease-in-out;
}

h2 {
font-size: 2.2em; /* Smaller than H1 */
font-weight: 700;
color: #1a2a4b;
margin-top: 50px;
margin-bottom: 25px;
border-bottom: 3px solid #6c757d;
padding-bottom: 10px;
transition: font-size 0.3s ease-in-out;
}

h3 {
font-size: 1.6em; /* Smaller than H2 */
font-weight: 600;
color: #344a70;
margin-top: 35px;
margin-bottom: 15px;
transition: font-size 0.3s ease-in-out;
}

h4 {
font-size: 1.3em; /* Smaller than H3 */
font-weight: 700;
color: #344a70;
margin-bottom: 10px;
}

/* Paragraphs and Lists */
p, ul, ol {
font-size: 1.05em;
text-align: justify;
margin-bottom: 20px;
}

ul {
list-style: disc;
padding-right: 30px;
}

ol {
list-style: decimal;
padding-right: 30px;
}

li {
margin-bottom: 8px;
}

a {
color: #007bff;
text-decoration: none;
transition: color 0.3s ease;
}

a:hover {
color: #0056b3;
text-decoration: underline;
}

/* Specific section styling */
.jp-intro {
background-color: #e8f5e9;
padding: 25px;
border-radius: 10px;
border-left: 6px solid #4CAF50;
color: #2e7d32;
display: flex;
align-items: flex-start;
gap: 15px;
}

.jp-infographic-summary {
background-color: #ffffff;
padding: 35px 25px;
border-radius: 12px;
box-shadow: 0 6px 15px rgba(0,0,0,0.08);
}

.jp-infographic-summary > div > div { /* Cards inside infographic */
transition: all 0.3s ease;
}

.jp-infographic-summary > div > div:hover {
transform: translateY(-5px);
box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.jp-table-of-contents {
background-color: #ffffff;
padding: 25px;
border-radius: 12px;
box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.jp-table-of-contents li a {
padding: 5px 0;
display: block;
}

.jp-table-wrapper table {
border: 1px solid #e0e0e0;
transition: box-shadow 0.3s ease;
}

.jp-table-wrapper table:hover {
box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.jp-selection-chart > div > div { /* Cards in selection chart */
transition: all 0.3s ease;
}

.jp-selection-chart > div > div:hover {
transform: translateY(-5px);
box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.jp-cta-box {
background-color: #007bff;
color: #ffffff;
padding: 30px;
border-radius: 12px;
text-align: center;
box-shadow: 0 6px 20px rgba(0, 123, 255, 0.25);
}

.jp-cta-box a {
background-color: #28a745;
color: #ffffff;
padding: 15px 35px;
border-radius: 8px;
font-size: 1.3em;
font-weight: bold;
transition: background-color 0.3s ease, transform 0.2s ease;
}

.jp-cta-box a:hover {
background-color: #218838;
transform: scale(1.03);
text-decoration: none;
}

.jp-faq-item {
background-color: #ffffff;
padding: 20px 25px;
border-radius: 10px;
box-shadow: 0 2px 8px rgba(0,0,0,0.05);
transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.jp-faq-item:hover {
box-shadow: 0 4px 12px rgba(0,0,0,0.1);
transform: translateY(-3px);
}

/* Responsive adjustments */
@media (max-width: 1200px) {
.jp-article-container {
padding: 15px;
}
}

@media (max-width: 992px) {
h1 {
font-size: 2.5em;
}
h2 {
font-size: 2em;
}
h3 {
font-size: 1.5em;
}
p, ul, ol {
font-size: 1em;
}
.jp-infographic-summary > div {
flex-direction: column;
align-items: center;
}
.jp-infographic-summary > div > div {
flex: 1 1 90%;
margin-bottom: 20px;
}
}

@media (max-width: 768px) {
.jp-article-container {
padding: 10px;
margin: 0 10px;
}
h1 {
font-size: 2.2em;
margin-bottom: 20px;
}
h2 {
font-size: 1.8em;
margin-top: 40px;
margin-bottom: 20px;
}
h3 {
font-size: 1.4em;
margin-top: 30px;
margin-bottom: 10px;
}
p, ul, ol {
font-size: 0.95em;
margin-bottom: 15px;
}
.jp-intro, .jp-infographic-summary, .jp-table-of-contents, .jp-cta-box, .jp-faq-item, .jp-selection-chart {
padding: 20px 15px;
margin-bottom: 30px;
}
.jp-table-wrapper table th, .jp-table-wrapper table td {
padding: 10px 8px;
font-size: 0.9em;
}
.jp-selection-chart > div {
flex-direction: column;
align-items: center;
}
.jp-selection-chart > div > div {
flex: 1 1 100%;
margin-bottom: 20px;
min-width: unset;
}
.jp-cta-box a {
font-size: 1.1em;
padding: 12px 25px;
}
}

@media (max-width: 480px) {
h1 {
font-size: 1.8em;
}
h2 {
font-size: 1.6em;
}
h3 {
font-size: 1.2em;
}
p, ul, ol {
font-size: 0.9em;
}
.jp-infographic-summary > div > div ul,
.jp-selection-chart > div > div ul {
font-size: 0.9em;
}
.jp-table-wrapper table {
font-size: 0.85em;
}
.jp-intro {
font-size: 1em;
}
}

دیدگاهتان را بنویسید

نشانی ایمیل شما منتشر نخواهد شد. بخش‌های موردنیاز علامت‌گذاری شده‌اند *