/* استایل صفحه جزئیات خبر */
.news_detail {
 padding: 3rem 0 5rem;
}

.news_detail-content {
 background-color: var(--white);
 border-radius: 10px;
 padding: 2rem;
 margin-bottom: 2rem;
 box-shadow: var(--shadow);
}

/* هدر خبر */
.news_detail-header {
 margin-bottom: 2rem;
}

.news_detail-title {
 font-size: 1.8rem;
 font-weight: 700;
 margin-bottom: 1.5rem;
 line-height: 1.4;
 color: var(--primary-dark);
}

.news_detail-meta {
 display: flex;
 flex-wrap: wrap;
 justify-content: space-between;
 align-items: center;
 padding-bottom: 1.5rem;
 border-bottom: 1px solid #eee;
}

.news_detail-info {
 display: flex;
 flex-wrap: wrap;
 gap: 1rem;
}

.news_detail-date, .news_detail-views, .news_detail-category {
 display: inline-flex;
 align-items: center;
 font-size: 0.85rem;
 color: var(--gray);
}

.news_detail-info i {
 margin-left: 5px;
 color: var(--primary);
}

.news_detail-share {
 display: flex;
 align-items: center;
 gap: 0.5rem;
}

.news_detail-share-text {
 font-size: 0.85rem;
 color: var(--gray);
}

.news_detail-share-link {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 width: 32px;
 height: 32px;
 border-radius: 50%;
 background-color: var(--light);
 color: var(--primary);
 transition: var(--transition);
}

.news_detail-share-link:hover {
 background-color: var(--primary);
 color: var(--white);
}

/* تصویر اصلی خبر */
.news_detail-image {
 margin-bottom: 2rem;
 border-radius: 10px;
 overflow: hidden;
}

.news_detail-image img {
 width: 100%;
 border-radius: 10px;
}

/* متن خبر */
.news_detail-text {
 color: #444;
 line-height: 1.8;
 text-align: justify;
}

.news_detail-lead {
 font-size: 1.1rem;
 line-height: 1.8;
 color: var(--primary-dark);
 margin-bottom: 2rem;
}

.news_detail-text p {
 margin-bottom: 1.5rem;
}

.news_detail-subtitle {
 font-size: 1.4rem;
 font-weight: 700;
 margin: 2.5rem 0 1.5rem;
 color: var(--primary-dark);
 position: relative;
 padding-right: 1rem;
}

.news_detail-subtitle::before {
 content: '';
 position: absolute;
 top: 0.25rem;
 right: 0;
 width: 4px;
 height: 80%;
 background-color: var(--secondary-gold);
 border-radius: 2px;
}

/* نقل قول */
.news_detail-quote {
 background-color: var(--primary-light);
 border-right: 4px solid var(--primary);
 padding: 2rem;
 margin: 2rem 0;
 border-radius: 10px;
 position: relative;
}

.news_detail-quote-icon {
 position: absolute;
 top: -15px;
 right: 20px;
 font-size: 2rem;
 color: var(--primary);
 background-color: var(--white);
 width: 40px;
 height: 40px;
 border-radius: 50%;
 display: flex;
 align-items: center;
 justify-content: center;
 box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.news_detail-quote blockquote {
 margin: 0;
 font-size: 1.1rem;
 font-style: italic;
 color: var(--primary-dark);
}

.news_detail-quote-author {
 display: block;
 margin-top: 1rem;
 font-weight: 600;
 color: var(--gray);
 text-align: left;
}

/* گالری تصاویر */
.news_detail-gallery {
 margin: 2.5rem 0;
 background-color: var(--light);
 padding: 1.5rem;
 border-radius: 10px;
}

.news_detail-gallery-item {
 display: block;
 border-radius: 8px;
 overflow: hidden;
 position: relative;
}

.news_detail-gallery-item img {
 border-radius: 8px;
 transition: var(--transition);
}

.news_detail-gallery-item:hover img {
 transform: scale(1.05);
}

.news_detail-gallery-caption {
 text-align: center;
 font-size: 0.9rem;
 color: var(--gray);
 margin-top: 1rem;
 margin-bottom: 0;
}

/* برچسب‌های خبر */
.news_detail-tags {
 margin-top: 3rem;
 padding-top: 2rem;
 border-top: 1px solid #eee;
 display: flex;
 flex-wrap: wrap;
 align-items: center;
 gap: 0.5rem;
}

.news_detail-tags-title {
 font-weight: 600;
 color: var(--dark);
 margin-left: 0.5rem;
}

.news_detail-tags-list {
 display: flex;
 flex-wrap: wrap;
 gap: 0.5rem;
}

.news_detail-tag {
 display: inline-block;
 padding: 0.3rem 1rem;
 background-color: var(--light);
 border-radius: 20px;
 color: var(--primary);
 font-size: 0.85rem;
 text-decoration: none;
 transition: var(--transition);
}

.news_detail-tag:hover {
 background-color: var(--primary);
 color: var(--white);
}

/* بخش نظرات */
.news_detail-comments {
 background-color: var(--white);
 border-radius: 10px;
 padding: 2rem;
 margin-bottom: 2rem;
 box-shadow: var(--shadow);
}

.news_detail-comments-title {
 font-size: 1.4rem;
 font-weight: 700;
 margin-bottom: 2rem;
 color: var(--primary-dark);
 display: flex;
 align-items: center;
}

.news_detail-comments-title i {
 margin-left: 10px;
 color: var(--primary);
}

.news_detail-comments-list {
 margin-bottom: 3rem;
}

.news_detail-comment {
 display: flex;
 gap: 1.5rem;
 padding-bottom: 1.5rem;
 margin-bottom: 1.5rem;
 border-bottom: 1px solid #eee;
}

.news_detail-comment:last-child {
 border-bottom: none;
}

.news_detail-comment-reply {
 margin-right: 3rem;
 background-color: var(--light);
 padding: 1.5rem;
 border-radius: 10px;
 border-bottom: none;
}

.news_detail-comment-avatar {
 width: 60px;
 height: 60px;
 border-radius: 50%;
 overflow: hidden;
 flex-shrink: 0;
}

.news_detail-comment-avatar img {
 width: 100%;
 height: 100%;
 object-fit: cover;
}

.news_detail-comment-content {
 flex-grow: 1;
}

.news_detail-comment-header {
 display: flex;
 justify-content: space-between;
 align-items: center;
 margin-bottom: 0.5rem;
}

.news_detail-comment-name {
 font-size: 1.1rem;
 font-weight: 600;
 margin: 0;
 color: var(--primary-dark);
}

.news_detail-comment-date {
 font-size: 0.85rem;
 color: var(--gray);
}

.news_detail-comment-text {
 margin-bottom: 1rem;
}

.news_detail-comment-text p {
 margin-bottom: 0;
 line-height: 1.7;
}

.news_detail-comment-actions {
 text-align: left;
}

.news_detail-comment-reply-btn {
 background: none;
 border: none;
 color: var(--primary);
 font-weight: 600;
 font-size: 0.9rem;
 cursor: pointer;
 transition: var(--transition);
}

.news_detail-comment-reply-btn:hover {
 color: var(--primary-dark);
 text-decoration: underline;
}



/* اخبار مرتبط */
.news_related {
 background-color: var(--white);
 border-radius: 10px;
 padding: 2rem;
 box-shadow: var(--shadow);
}

.news_related-title {
 font-size: 1.4rem;
 font-weight: 700;
 margin-bottom: 2rem;
 color: var(--primary-dark);
 display: flex;
 align-items: center;
}

.news_related-title i {
 margin-left: 10px;
 color: var(--primary);
}

.news_related-item {
 height: 100%;
 border-radius: 10px;
 overflow: hidden;
 box-shadow: var(--shadow);
 transition: var(--transition);
}

.news_related-item:hover {
 transform: translateY(-5px);
}

.news_related-link {
 text-decoration: none;
 color: inherit;
 display: block;
}

.news_related-image {
 position: relative;
 height: 180px;
 overflow: hidden;
}

.news_related-image img {
 width: 100%;
 height: 100%;
 object-fit: cover;
 transition: var(--transition);
}

.news_related-item:hover .news_related-image img {
 transform: scale(1.05);
}

.news_related-category {
 position: absolute;
 bottom: 10px;
 right: 10px;
 background-color: rgba(0, 112, 60, 0.85);
 color: var(--white);
 font-size: 0.75rem;
 padding: 0.3rem 0.8rem;
 border-radius: 20px;
}

.news_related-category span {
 display: flex;
 align-items: center;
}

.news_related-category i {
 margin-left: 5px;
}

.news_related-content {
 padding: 1rem;
}

.news_related-meta {
 margin-bottom: 0.5rem;
}

.news_related-date {
 font-size: 0.85rem;
 color: var(--gray);
 display: inline-flex;
 align-items: center;
}

.news_related-date i {
 margin-left: 5px;
 color: var(--primary);
}

.news_related-item-title {
 font-size: 1rem;
 font-weight: 600;
 margin: 0;
 line-height: 1.5;
 color: var(--dark);
 transition: var(--transition);
}

.news_related-item:hover .news_related-item-title {
 color: var(--primary);
}

/* پروژه‌های اخیر در سایدبار */
.projects_list {
 display: flex;
 flex-direction: column;
 gap: 1rem;
}

.projects_item {
 background-color: var(--light);
 border-radius: 10px;
 padding: 1rem;
 transition: var(--transition);
}

.projects_item:hover {
 background-color: var(--primary-light);
}

.projects_item-header {
 display: flex;
 justify-content: space-between;
 align-items: center;
 margin-bottom: 0.8rem;
}

.projects_item-title {
 font-size: 1rem;
 font-weight: 600;
 margin: 0;
 color: var(--primary-dark);
}

.projects_item-badge {
 background-color: var(--primary);
 color: var(--white);
 font-size: 0.75rem;
 padding: 0.2rem 0.6rem;
 border-radius: 20px;
}

.projects_item-badge-completed {
 background-color: #28a745;
}

.projects_item-progress {
 margin-bottom: 0.8rem;
}

.projects_item-progress .progress {
 height: 10px;
 border-radius: 5px;
 background-color: #e9ecef;
}

.projects_item-progress .progress-bar {
 background-color: var(--primary);
 border-radius: 5px;
}

.projects_item-footer {
 text-align: left;
}

.projects_item-link {
 color: var(--primary);
 font-size: 0.9rem;
 font-weight: 600;
 text-decoration: none;
 transition: var(--transition);
}

.projects_item-link i {
 margin-right: 5px;
 font-size: 0.8rem;
}

.projects_item-link:hover {
 color: var(--primary-dark);
 text-decoration: underline;
}

/* تنظیمات پاسخگو */
@media (max-width: 991px) {
 .news_detail-title {
 font-size: 1.5rem;
 }
 
 .news_detail-meta {
 flex-direction: column;
 align-items: flex-start;
 gap: 1rem;
 }
 
 .news_detail-share {
 margin-top: 0.5rem;
 }
}

@media (max-width: 767px) {
 .news_detail-content,
 .news_detail-comments,
 .news_related {
 padding: 1.5rem;
 }
 
 .news_detail-comment {
 flex-direction: column;
 gap: 1rem;
 }
 
 .news_detail-comment-reply {
 margin-right: 0;
 }
 
 .news_detail-comment-header {
 flex-direction: column;
 align-items: flex-start;
 gap: 0.5rem;
 }
}

/* Banner Section - اصلاح شده */
.gallery_page-banner {
 position: relative;
 background-color: var(--primary-dark);
 height: 160px;
 display: flex;
 align-items: center;
 margin-bottom: 2rem;
 overflow: hidden;
}

.gallery_page-overlay {
 position: absolute;
 top: 0;
 left: 0;
 width: 100%;
 height: 100%;
 background: linear-gradient(45deg, rgba(0, 112, 60, 0.95), rgba(0, 90, 48, 0.9));
 z-index: 1;
}

.gallery_page-pattern {
 position: absolute;
 top: 0;
 left: 0;
 width: 100%;
 height: 100%;
 background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
 background-repeat: repeat;
 z-index: 2;
}

.gallery_page-banner-content {
 position: relative;
 z-index: 3;
 text-align: center;
 color: var(--white);
}

.gallery_page-icon {
 width: 60px;
 height: 60px;
 background-color: var(--secondary-gold);
 border-radius: 50%;
 display: flex;
 align-items: center;
 justify-content: center;
 margin: 0 auto 0.75rem;
 font-size: 1.75rem;
 color: var(--white);
 box-shadow: 0 0 15px rgba(194, 155, 64, 0.5);
}

.gallery_page-title {
 font-size: 1.75rem;
 font-weight: 700;
 margin-bottom: 0.75rem;
 position: relative;
 display: inline-block;
}

.gallery_page-title::after {
 content: '';
 position: absolute;
 bottom: -8px;
 left: 50%;
 transform: translateX(-50%);
 width: 60px;
 height: 2px;
 background-color: var(--secondary-gold);
}

.gallery_page-breadcrumb {
 display: flex;
 justify-content: center;
 margin-top: 1rem;
}

.breadcrumb {
 background-color: transparent;
 margin-bottom: 0;
 padding: 0.25rem 0.75rem;
 border-radius: 20px;
 display: inline-flex;
 background-color: rgba(255, 255, 255, 0.15);
}

.breadcrumb-item {
 font-size: 0.85rem;
}

.breadcrumb-item a {
 color: var(--white);
 text-decoration: none;
 transition: var(--transition);
}

.breadcrumb-item a:hover {
 color: var(--secondary-gold);
}

.breadcrumb-item.active {
 color: var(--secondary-gold);
}

.breadcrumb-item+.breadcrumb-item::before {
 color: rgba(255, 255, 255, 0.7);
 content: "/";
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
 .gallery_page-banner {
  height: 140px;
 }
 
 .gallery_page-icon {
  width: 50px;
  height: 50px;
  font-size: 1.5rem;
 }
 
 .gallery_page-title {
  font-size: 1.5rem;
 }
}

@media (max-width: 575.98px) {
 .gallery_page-banner {
  height: 120px;
 }
 
 .gallery_page-icon {
  width: 40px;
  height: 40px;
  font-size: 1.25rem;
 }
 
 .gallery_page-title {
  font-size: 1.25rem;
 }
 
 .breadcrumb-item {
  font-size: 0.75rem;
 }
}