/**
 * Theme Name: Stand Alone Project
 * Theme URI: https://medpress.net/
 * Author: MedPress Team
 * Author URI: https://medpress.net/
 * Description: A custom WordPress theme with Elementor support
 * Version: 1.1.7
 * License: GNU General Public License v2 or later
 * License URI: http://www.gnu.org/licenses/gpl-2.0.html
 * Text Domain: medpress
 * Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
 *
 * This theme is designed to be used with Elementor page builder.
 */

/* Base styles */
body {
    font-family: 'Vazirmatn', sans-serif;
}

/* Layout */
.site {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

/* Header */
.site-header {
    padding: 0;
    transition: all 0.3s ease;
}

/* Fixed Header */
.site-header.fixed-top {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1030;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
}

/* Add padding to body when header is fixed to prevent content from being hidden behind the header */
.admin-bar .site-header.fixed-top {
    top: 32px;
}

/* Adjust content when header is fixed */
.site-content {
    padding-top: 20px;
}

.site-header.fixed-top + .site-content {
    padding-top: 85px; /* Adjust this value based on your header height */
}

/* Responsive adjustments */
@media screen and (max-width: 782px) {
    .admin-bar .site-header.fixed-top {
        top: 46px;
    }
}

@media screen and (max-width: 600px) {
    .admin-bar .site-header.fixed-top {
        top: 0;
    }
    
    .site-header.fixed-top + .site-content {
        padding-top: 55px; /* Smaller padding for mobile */
    }
}

/* Footer */
.site-footer {
    padding: 0;
    margin-top: 40px;
}

/* Single Post Styles */
.single-post {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    margin-bottom: 2rem;
}

.entry-header {
    margin-bottom: 2rem;
    text-align: right;
}

.entry-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.entry-meta {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.entry-meta a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.entry-meta a:hover {
    color: #2980b9;
    text-decoration: underline;
}

.entry-content {
    line-height: 1.8;
    color: #2c3e50;
    font-size: 1.05rem;
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content img {


}

.entry-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #ecf0f1;
}

.tags-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tags-links a {
    display: inline-block;
    background: #f8f9fa;
    color: #3498db;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tags-links a:hover {
    background: #3498db;
    color: #fff;
    text-decoration: none;
}

/* Related Posts */
.related-posts {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #ecf0f1;
}

.related-posts-title {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #3498db;
    display: inline-block;
}

/* Elementor Grid Layout */
.elementor-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 0 -15px;
}

.elementor-grid-item {
    padding: 0 15px;
}

.elementor-post {
    height: 100%;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.elementor-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.elementor-post__thumbnail {
    display: block;
    overflow: hidden;
    position: relative;
    padding-top: 66.666%; /* 3:2 Aspect Ratio */
}

.elementor-post__thumbnail-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.elementor-post:hover .elementor-post__thumbnail-img {
    transform: scale(1.05);
}

.elementor-post__content {
    padding: 20px;
}

.elementor-post__title {
    font-size: 1.1rem;
    margin: 0 0 10px;
    line-height: 1.4;
}

.elementor-post__title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.elementor-post__title a:hover {
    color: #3498db;
}

.elementor-post__meta {
    font-size: 0.85rem;
    color: #7f8c8d;
    display: flex;
    align-items: center;
}

.elementor-post-date {
    display: flex;
    align-items: center;
}

.elementor-post-date:before {
    content: '\f073';
    font-family: 'Font Awesome 5 Free';
    font-weight: 400;
    margin-left: 5px;
    font-size: 0.9em;
}

/* Responsive Adjustments */
@media (max-width: 1199.98px) {
    .elementor-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991.98px) {
    .single-post {
        padding: 1.5rem;
    }
    
    .entry-title {
        font-size: 1.75rem;
    }
    
    .elementor-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767.98px) {
    .single-post {
        padding: 1.25rem;
    }
    
    .entry-title {
        font-size: 1.5rem;
    }
    
    .entry-content {
        font-size: 1rem;
    }
    
    .elementor-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .elementor-grid-item {
        padding: 0;
    }
    
    .elementor-post {
        max-width: 400px;
        margin: 0 auto;
    }
}

/* Sidebar Toggle */
.sidebar-toggle {
    display: none;
}

@media (max-width: 991.98px) {
    .sidebar-toggle {
        display: block;
    }
    
    #main-sidebar {
        margin-top: 1.5rem;
    }
}

/* Comments Section */
.comments-area {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #ecf0f1;
}

.comments-title {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
}

.comment {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 6px;
}

.comment-meta {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #7f8c8d;
}

.comment-author {
    font-weight: 600;
    color: #2c3e50;
}

.comment-metadata {
    margin-right: 1rem;
}

.comment-content {
    line-height: 1.6;
}

.comment-reply-link {
    display: inline-block;
    margin-top: 0.75rem;
    color: #3498db;
    text-decoration: none;
    font-size: 0.9rem;
}

.comment-reply-link:hover {
    text-decoration: underline;
}

.comment-respond {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 6px;
}

.comment-reply-title {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    color: #2c3e50;
}

.comment-form-comment textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 1rem;
    min-height: 150px;
}

.comment-form-author input,
.comment-form-email input,
.comment-form-url input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.form-submit input[type="submit"] {
    background: #3498db;
    color: #fff;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.form-submit input[type="submit"]:hover {
    background: #2980b9;
}

.img-fluid {
    max-width: 100%;
    height: auto;
    margin: auto;
    display: block;
}
.rounded{
    border-radius: 10px;
}