/* ===========================
   Fonts
=========================== */
@font-face {
    font-family: 'Vazir';
    src: url('/fonts/Vazir.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

/* ===========================
   Base
=========================== */
body {
    font-family: "Vazir", "Tahoma", sans-serif;
    background-color: #fdfdfd;
    color: #222;
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    border: 1px solid #ccc;
    border-radius: 12px;
}

img.logo {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto 20px auto;
    border-radius: 8px;
}

h1 {
    color: #2a7d2e;
    font-size: 18px;
    margin: 10px 0 20px 0;
    background-color: #f9f9f9;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #f9f9f9;
}
h1::before {
    content: "📝 ";
    color: #2a7d2e;
}
h2 {
    font-size: 16px;
}
h3 {
    font-size: 15px;
}
h4 {
    font-size: 14px;
}
h5 {
    font-size: 13px;
}
p {
    margin: 10px 0;
    line-height: 1.5;
    font-size: 15px;
}

.label {
    font-weight: bold;
    color: #444;
}

label {
    display: block;
    margin-top: 15px;
    font-weight: bold;
}

/* ===========================
   Footer
=========================== */
.footer {
    text-align: justify;
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px dashed #aaa;
    color: #555;
    font-size: 14px;
}

.ltr-text {
    direction: ltr;
    text-align: justify;
    unicode-bidi: embed;
    background-color: #f9f9f9;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #ddd;
    margin-top: 8px;
}

.footer-ltr-text {
    direction: ltr;
    unicode-bidi: embed;
    padding: 8px;
    margin-top: 8px;
    color: gray;
}

/* ===========================
   Content
=========================== */
.main {
    padding: 20px;
}

.content {
    padding: 8px;
    text-align: justify;
    unicode-bidi: embed;
    background-color: #fdfdfd;
    margin-top: 8px;
}

.message {
    padding: 10px;
    border: 1px solid #bbb;
    border-radius: 6px;
    background: #f0f0f0;
    margin: 10px 0 20px;
    color: green;
}

/* ===========================
   Form
=========================== */
input,
textarea,
select {
    width: 95%;
    font-family: Vazir;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
}

button {
    background-color: #2a7d2e;
    color: white;
    padding: 10px 20px;
    border: none;
    margin-top: 20px;
    border-radius: 6px;
    font-size: 16px;
    font-family: Vazir;
    cursor: pointer;
}

/* ===========================
   Navbar
=========================== */
nav.site-nav.dashed-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-bottom: 1px dashed #aaa;
}
.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 18px;
    align-items: center;
}
.nav-links a {
    color: #333;
    text-decoration: none;
    padding: 6px 8px;
    border-radius: 4px;
    font-size: 15px;
}
.nav-links a:hover {
    background: #efefef;
}

/* small-screen: stack links */
@media (max-width:520px) {
    nav.site-nav.dashed-bottom {
        flex-direction: column;
        gap: 8px;
    }
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ===========================
   Articles Box
=========================== */
.articles-section {
    margin-top: 30px;
}

.article-box {
    display: flex;
    gap: 15px;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 20px;
    background: #fff;
}

.article-box img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.article-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.article-meta {
    font-size: 13px;
    color: #777;
    margin-bottom: 6px;
}

.article-content h2 {
    font-size: 16px;
    margin: 6px 0;
}
.article-content h2 a {
    color: #2a7d2e;
    text-decoration: none;
}
.article-content h2 a:hover {
    text-decoration: underline;
}

.article-lead {
    font-size: 14px;
    color: #444;
    line-height: 1.6;
    margin-bottom: 10px;
    text-align: justify;
}

.article-actions {
    margin-top: auto;
    text-align: left;
}

.article-actions a {
    display: inline-block;
    background: #2a7d2e;
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    text-decoration: none;
}
.article-actions a:hover {
    background: #256a29;
}

/* responsive */
@media (max-width:520px) {
    .article-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .article-box img {
        width: 100%;
        max-width: 300px;
        height: auto;
    }
    .article-actions {
        margin-top: 12px;
        text-align: center;
    }
}
