/* استایل‌های اصلی صفحه اصلی و سایر صفحات */

/* منوی اصلی با زیرمنوها */
.sidebar .main-menu {
  list-style: none;
  padding: 5px 0;
  margin: 0;
}

.sidebar .main-menu > li {
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin: 0;
}

.sidebar .main-menu > li > a {
  color: white;
  text-decoration: none;
  font-size: 1.1rem;
  display: block;
  padding: 8px 20px;
  position: relative;
}

.sidebar .main-menu > li > a:hover {
  background-color: rgba(255,255,255,0.1);
}

.sidebar .main-menu .arrow {
  font-size: 0.8rem;
  margin-right: 8px;
  transition: transform 0.3s;
}

.sidebar .main-menu .has-submenu.active .arrow {
  transform: rotate(180deg);
}

/* زیرمنو */
.submenu {
  list-style: none;
  padding: 0;
  margin: 0;
  background-color: rgba(0,0,0,0.2);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.has-submenu.active .submenu {
  max-height: 500px;
}

.submenu li a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  display: block;
  padding: 6px 20px 6px 40px;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.submenu li a:hover {
  background-color: rgba(255,255,255,0.1);
  padding-right: 45px;
}

.submenu li:last-child a {
  border-bottom: none;
}

/* تیتر روز (Featured Story) */
.featured-story {
  width: 100%;
  margin-top: 0;
}

.featured-image {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.3));
  display: flex;
  align-items: flex-end;
}

.featured-content {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  color: white;
}

.featured-badge {
  display: inline-block;
  background-color: var(--accent-green);
  color: white;
  padding: 6px 16px;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: bold;
  margin-bottom: 15px;
}

.featured-content h1 {
  font-size: 2.5rem;
  margin: 0 0 15px 0;
  line-height: 1.3;
  font-weight: 700;
}

.featured-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 20px;
  max-width: 800px;
}

.btn-read-more {
  display: inline-block;
  background-color: var(--accent-green);
  color: white;
  padding: 12px 30px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s;
}

.btn-read-more:hover {
  background-color: var(--primary-green);
}

/* کانتینر اصلی */
.main-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* هدر بخش‌ها */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--accent-green);
}

.section-header h2 {
  font-size: 2rem;
  color: var(--primary-green);
  margin: 0;
}

.view-all {
  color: var(--accent-green);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.view-all:hover {
  color: var(--primary-green);
}

/* آخرین خبرهای منطقه */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  margin-bottom: 50px;
}

.news-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.news-thumb {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background-color: #e0e0e0;
}

.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-content {
  padding: 20px;
}

.news-category {
  display: inline-block;
  background-color: var(--accent-green);
  color: white;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.news-content h3 {
  margin: 0 0 10px 0;
  font-size: 1.2rem;
}

.news-content h3 a {
  color: var(--text-dark);
  text-decoration: none;
  transition: color 0.3s;
}

.news-content h3 a:hover {
  color: var(--accent-green);
}

.news-excerpt {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 15px 0;
}

.news-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #999;
}

/* تحلیل‌های منتخب */
.analysis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 25px;
  margin-bottom: 50px;
}

.analysis-card {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  border-right: 4px solid var(--accent-green);
  transition: transform 0.3s, box-shadow 0.3s;
}

.analysis-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.analysis-type {
  display: inline-block;
  color: var(--accent-green);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.analysis-card h3 {
  margin: 0 0 10px 0;
  font-size: 1.3rem;
}

.analysis-card h3 a {
  color: var(--text-dark);
  text-decoration: none;
  transition: color 0.3s;
}

.analysis-card h3 a:hover {
  color: var(--accent-green);
}

.analysis-author {
  color: #666;
  font-size: 0.9rem;
  margin: 0 0 15px 0;
}

.analysis-excerpt {
  color: #555;
  line-height: 1.8;
  margin: 0 0 20px 0;
}

.btn-read-more-small {
  display: inline-block;
  color: var(--accent-green);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.btn-read-more-small:hover {
  color: var(--primary-green);
}

/* پرونده‌ها */
.dossiers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
  margin-bottom: 50px;
}

.dossier-card {
  background: linear-gradient(135deg, var(--primary-green), var(--accent-green));
  color: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.dossier-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.dossier-card h3 {
  margin: 0 0 15px 0;
  font-size: 1.4rem;
}

.dossier-card p {
  line-height: 1.8;
  margin-bottom: 20px;
  opacity: 0.95;
}

.dossier-link {
  display: inline-block;
  background-color: rgba(255,255,255,0.2);
  color: white;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s;
}

.dossier-link:hover {
  background-color: rgba(255,255,255,0.3);
}

/* باکس خبرنامه */
.newsletter-section {
  background-color: var(--bg-light);
  padding: 60px 20px;
  margin-top: 50px;
}

.newsletter-box {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.newsletter-box h3 {
  font-size: 1.8rem;
  color: var(--primary-green);
  margin: 0 0 10px 0;
}

.newsletter-box p {
  color: #666;
  margin-bottom: 25px;
  line-height: 1.6;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 400px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s;
}

.newsletter-form input:focus {
  border-color: var(--accent-green);
}

.newsletter-form button {
  background-color: var(--accent-green);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
}

.newsletter-form button:hover {
  background-color: var(--primary-green);
}

/* ریسپانسیو */
@media (max-width: 768px) {
  .featured-content h1 {
    font-size: 1.8rem;
  }
  
  .featured-content p {
    font-size: 1rem;
  }
  
  .news-grid,
  .analysis-grid,
  .dossiers-grid {
    grid-template-columns: 1fr;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .newsletter-form button {
    width: 100%;
  }
  
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

