@font-face {
    font-family: Vazir;
    src: url(../font/font/Vazir\ Light.ttf) format(ttf);
}   
body {
    margin: 0;
    font-family:'Vazir', sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #383131;
    color: rgb(255, 255, 255);
    transition: background-color 0.3s ease, color 0.3s ease;
}
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}
.site-header {
    background-color: #464242;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    flex-shrink: 0;
}
.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.site-branding {
    display: flex;
    align-items: center;
}
.site-branding .logo {
    height: 40px;
    margin-left: 10px;
}
.site-title {
    margin: 0;
    font-size: 1.8em;
    color: #d1c4c4;
}
.main-nav .nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 25px;
}
.main-nav a {
    text-decoration: none;
    color: #bbb7b7;
    font-weight: 500;
    transition: color 0.2s ease;
}
.main-nav a:hover,
.main-nav a.active {
    color: #007bff;
}
.theme-toggle {
    background: none;
    border: none;
    font-size: 1.8em;
    cursor: pointer;
    padding: 5px 10px;
    transition: transform 0.2s ease;
}
.theme-toggle:hover {
    transform: scale(1.1);
}
body.dark-mode {
    background-color: #121212;
    color: #e0e0e0;
}
body.dark-mode .site-header {
    background-color: #1e1e1e;
    border-bottom-color: #333;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
body.dark-mode .site-title {
    color: #fff;
}
body.dark-mode .main-nav a {
    color: #aaa;
}
body.dark-mode .main-nav a:hover,
body.dark-mode .main-nav a.active {
    color: #64b5f6;
}
body.dark-mode .theme-toggle {
    color: #fff;
}
.main-content {
    flex-grow: 1;
    padding: 40px 0;
}
.blog-layout {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}
.blog-posts-area {
    flex: 3;
    min-width: 300px;
}
.blog-posts-area h2 {
    font-size: 2em;
    margin-bottom: 30px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}
.post-card {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 30px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}
.post-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}
.post-content {
    padding: 20px;
}
.post-title {
    font-size: 1.6em;
    margin: 0 0 10px 0;
}
.post-title a {
    text-decoration: none;
    color: #333;
}
.post-meta {
    font-size: 0.9em;
    color: #ffffff;
    margin-bottom: 15px;
}
.post-excerpt {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}
.read-more {
    display: inline-block;
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}
.read-more:hover {
    color: #0056b3;
}
.post-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}
.post-list-item:last-child {
    border-bottom: none;
}
.post-list-item .post-title {
    font-size: 1.2em;
    margin-bottom: 5px;
}
.post-list-item .post-title a {
    color: #333;
}
.post-list-item .post-meta {
    font-size: 0.85em;
    color: #888;
}
.post-list-item .read-more {
    font-size: 0.9em;
}
.pagination {
    text-align: center;
    margin-top: 40px;
}
.pagination a {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 4px;
    text-decoration: none;
    color: #ffffff;
    border: 1px solid #eee;
    border-radius: 4px;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.pagination a:hover,
.pagination a.active {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}
.sidebar {
    flex: 1;
    min-width: 250px;
}
.sidebar-widget {
    background-color: #5c5959;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: 0 2px 15px rgb(255, 255, 255);
}
.sidebar-widget h3 {
    font-size: 1.4em;
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 1px solid #ffffff;
    padding-bottom: 8px;
}
.sidebar input[type="text"] {
    width: calc(100% - 20px);
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
}
.sidebar-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar-widget li {
    margin-bottom: 8px;
}
.sidebar-widget a {
    text-decoration: none;
    color: #ffffff;
    transition: color 0.2s ease;
}
.sidebar-widget a:hover {
    color: #007bff;
}
body.dark-mode .main-content {
    background-color: #1e1e1e;
}
body.dark-mode .blog-posts-area h2 {
    border-bottom-color: #444;
    color: #fff;
}
body.dark-mode .post-card {
    background-color: #2e2e2e;
    border-color: #444;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
body.dark-mode .post-card:hover {
     box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}
body.dark-mode .post-title a {
    color: #fff;
}
body.dark-mode .post-meta,
body.dark-mode .post-excerpt {
    color: #bbb;
}
body.dark-mode .read-more {
    color: #64b5f6;
}
body.dark-mode .read-more:hover {
    color: #90caf9;
}
body.dark-mode .post-list-item {
    border-bottom-color: #444;
}
body.dark-mode .post-list-item .post-title a {
    color: #fff;
}
body.dark-mode .pagination a {
    color: #aaa;
    border-color: #444;
}
body.dark-mode .pagination a:hover,
body.dark-mode .pagination a.active {
    background-color: #42a5f5;
    border-color: #42a5f5;
}
body.dark-mode .sidebar-widget {
    background-color: #282828;
    border-color: #444;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
body.dark-mode .sidebar-widget h3 {
    border-bottom-color: #444;
    color: #fff;
}
body.dark-mode .sidebar input[type="text"] {
    background-color: #3a3a3a;
    border-color: #555;
    color: #fff;
}
body.dark-mode .sidebar-widget a {
    color: #aaa;
}
body.dark-mode .sidebar-widget a:hover {
    color: #64b5f6;
}
.site-footer {
    background-color: #1e1e1e;
    color: #aaa;
    padding: 30px 0;
    margin-top: auto;
    flex-shrink: 0;
}
.site-footer p {
    margin: 0 0 10px 0;
}
.footer-links a {
    color: #fff;
    text-decoration: none;
    margin: 0 10px;
}
.footer-links a:hover {
    text-decoration: underline;
}
