/*
Theme Name: شهرداری شهرضا
Theme URI: https://shahreza.ir
Author: فناوری اطلاعات ققنوس
Author URI: https://phx.ir
Description: قالب اختصاصی وب سایت الکترونیکی شهرداری شهرضا - سازگار با المنتور
Version: 1.0.0
License: GPL v2 or later
Text Domain: shahreza
Domain Path: /languages
*/


/* =============================================
   فونت‌های دانا - DanaFaNum
   ============================================= */
@font-face {
    font-family: 'DanaFaNum';
    font-style: normal;
    font-weight: 100;
    src: url('./css/fonts/DanaFaNum-Thin.woff2') format('woff2'),
         url('./css/fonts/DanaFaNum-Thin.woff') format('woff');
    font-display: swap;
}

@font-face {
    font-family: 'DanaFaNum';
    font-style: normal;
    font-weight: 300;
    src: url('./css/fonts/DanaFaNum-Light.woff2') format('woff2'),
         url('./css/fonts/DanaFaNum-Light.woff') format('woff');
    font-display: swap;
}

@font-face {
    font-family: 'DanaFaNum';
    font-style: normal;
    font-weight: 400;
    src: url('./css/fonts/DanaFaNum-Regular.woff2') format('woff2'),
         url('./css/fonts/DanaFaNum-Regular.woff') format('woff');
    font-display: swap;
}

@font-face {
    font-family: 'DanaFaNum';
    font-style: normal;
    font-weight: 500;
    src: url('./css/fonts/DanaFaNum-Medium.woff2') format('woff2'),
         url('./css/fonts/DanaFaNum-Medium.woff') format('woff');
    font-display: swap;
}

@font-face {
    font-family: 'DanaFaNum';
    font-style: normal;
    font-weight: 700;
    src: url('./css/fonts/DanaFaNum-Bold.woff2') format('woff2'),
         url('./css/fonts/DanaFaNum-Bold.woff') format('woff');
    font-display: swap;
}

/* =============================================
   فونت‌های پینار - Pinar DS4 FD
   ============================================= */
@font-face {
    font-family: 'Pinar';
    font-style: normal;
    font-weight: 400;
    src: url('./css/fonts/Pinar-DS4-FD-Regular.woff2') format('woff2'),
         url('./css/fonts/Pinar-DS4-FD-Regular.woff') format('woff');
    font-display: swap;
}

@font-face {
    font-family: 'Pinar';
    font-style: normal;
    font-weight: 500;
    src: url('./css/fonts/Pinar-DS4-FD-Medium.woff2') format('woff2'),
         url('./css/fonts/Pinar-DS4-FD-Medium.woff') format('woff');
    font-display: swap;
}

@font-face {
    font-family: 'Pinar';
    font-style: normal;
    font-weight: 700;
    src: url('./css/fonts/Pinar-DS4-FD-Bold.woff2') format('woff2'),
         url('./css/fonts/Pinar-DS4-FD-Bold.woff') format('woff');
    font-display: swap;
}

/* =============================================
   فونت نیافام - Niafam
   ============================================= */
@font-face {
    font-family: 'Niafam';
    font-style: normal;
    font-weight: 400;
    src: url('./css/fonts/niafam.woff2') format('woff2'),
         url('./css/fonts/niafam.woff') format('woff');
    font-display: swap;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'DanaFaNum', 'Pinar', 'Niafam', sans-serif;
}

/* =============================================
   بک‌گراند صفحه اصلی - طرح اسلیمی ایرانی
   ============================================= */

body {
    font-family: 'DanaFaNum', 'Pinar', 'Niafam', sans-serif;
    background-color: #f8f4ed;
    background-image: url('assets/images/pattern-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #06316f;
    line-height: 1.5;
    overflow-x: hidden;
    width: 100%;
}



.container {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (max-width: 640px) {
  .container {
    padding: 0 0.75rem;
  }
}


header.scrolled {
    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}




@media (max-width: 480px) {
  .header-inner {
    height: auto;
    padding: 0.5rem 0;
  }
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .logo-area {
    gap: 0.25rem;
  }
}

.logo-circle {
  width: 64px;
  height: 64px;
  background-color: #06316f;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  font-weight: bold;
}

@media (max-width: 640px) {
  .logo-circle {
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .logo-circle {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }
}

.logo-text h1 {
  color: #06316f;
  font-size: 1.25rem;
  font-weight: bold;
}

@media (max-width: 640px) {
  .logo-text h1 {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .logo-text h1 {
    font-size: 0.9rem;
  }
}

.logo-text p {
  color: #4b5563;
  font-size: 0.875rem;
}

@media (max-width: 640px) {
  .logo-text p {
    font-size: 0.75rem;
  }
}


.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.theme-toggle {
  width: 40px;
  height: 0px;
  border-radius: 50%;
  background-color: #f3f4f6;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .theme-toggle {
    width: 36px;
    height: 36px;
  }
}

.theme-toggle:hover {
  background-color: #e5e7eb;
}

.login-dropdown {
  position: relative;
}

.login-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #06316f;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .login-btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }
}

@media (max-width: 480px) {
  .login-btn span {
    display: none;
  }
  .login-btn i {
    margin: 0;
  }
  .login-btn {
    padding: 0.5rem;
  }
}

.login-btn:hover {
  background-color: #158f77;
}

.login-popup {
  position: absolute;
  left: 0;
  top: 100%;
  margin-top: 0.5rem;
  background-color: white;
  border-radius: 1rem;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
  padding: 1.5rem;
  width: 288px;
  z-index: 60;
}

@media (max-width: 480px) {
  .login-popup {
    width: 260px;
    left: -100px;
  }
}

.login-popup h3 {
  font-size: 1.125rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: #06316f;
}

.login-popup input {
  width: 100%;
  padding: 0.5rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  margin-bottom: 0.75rem;
  text-align: right;
  font-family: 'Vazirmatn', sans-serif;
}



.login-popup button {
  width: 100%;
  background-color: #06316f;
  color: white;
  border: none;
  padding: 0.5rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.login-popup button:hover {
  background-color: #158f77;
}

nav {
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  z-index: 40;
  background-color: white;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 480px) {
  nav {
    top: 70px;
  }
}



.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  height: 64px;
  list-style: none;
  white-space: nowrap;
  padding: 0 1rem;
}

@media (max-width: 1024px) {
  .nav-links {
    gap: 0.75rem;
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .nav-links {
    gap: 0.5rem;
  }
}

.nav-links a {
  text-decoration: none;
  color: inherit;
  font-size: 0.9rem;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

@media (max-width: 768px) {
  .nav-links a {
    font-size: 0.8rem;
  }
}

.nav-links a:hover {
  color: #06316f;
}

.nav-links .active {
  color: #06316f;
  font-weight: bold;
}

.live-indicator {
  width: 0.5rem;
  height: 0.5rem;
  background-color: #ef4444;
  border-radius: 50%;
  animation: pulse 2s infinite;
  display: inline-block;
  margin-right: 0.25rem;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.content-spacer {
  padding-top: 140px;
}

@media (max-width: 480px) {
  .content-spacer {
    padding-top: 134px;
  }
}

:root {
  --primary-teal: #06316f;
  --primary-beige: #E5D1B6;
  --secondary-gold: #CA9E67;
  --secondary-yellow: #F5C31D;
  --text-dark: #1a1a2e;
  --text-light: #6b7280;
  --bg-light: #fafafa;
}

.gradient-primary {
  background: linear-gradient(135deg, var(--primary-teal) 0%, #008f89 100%);
}

.gradient-beige {
  background: linear-gradient(135deg, var(--primary-beige) 0%, #d4c0a5 100%);
}

.gradient-overlay {
  background: linear-gradient(to bottom, rgba(0, 161, 154, 0.85), rgba(0, 143, 137, 0.95));
}

.smooth-transition {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px -12px rgba(0, 161, 154, 0.25);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-teal) 0%, #008f89 100%);
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 161, 154, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-teal);
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 2px solid var(--primary-teal);
  cursor: pointer;
}

.btn-secondary:hover {
  background: var(--primary-teal);
  color: white;
}

.slider-container {
  position: relative;
  overflow: hidden;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
  position: relative;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.slider-dot.active {
  background: white;
  transform: scale(1.2);
}

/* ------------------------------------------------
   1. دکمه‌ی Tab با حاشیه‌ی فردی
   ------------------------------------------------ */
.tab-btn {
    font-weight: bold;
    cursor: pointer;
    background-color: rgb(229, 231, 235);
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    border-width: initial;
    border-style: none;
    border-color: initial;
    border-image: initial;
    transition: 0.2s;
    color: blue; #خانم باقری
}

/* ------------------------------------------------
   2. انیمیشن خط زیر (active)
   ------------------------------------------------ */

.tab-btn.active {
    background-color: #9e1324;
    color: white;
}


@media (max-width: 640px) {
  .tab-btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }
}





.tab-content {
  display: none;
  animation: fadeIn 0.5s ease;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-slider {
  position: relative;
  
  overflow: hidden;
}

@media (max-width: 768px) {
  .hero-slider {
  }
}

@media (max-width: 480px) {
  .hero-slider {
  }
}

@media (max-width: 320px) {
  .hero-slider {
  }
}

.hero-slide {
  position: absolute;
  inset: 0;
  transition: opacity 1s;
}

.hero-slide img {
  width: 100%;

}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
}

.hero-overlay h2 {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .hero-overlay h2 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-overlay h2 {
    font-size: 1.5rem;
  }
}

.hero-overlay p {
  font-size: 1.25rem;
}

@media (max-width: 768px) {
  .hero-overlay p {
    font-size: 1rem;
  }
}

.slider-dots {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}

.dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background-color: white;
  opacity: 0.5;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}

.dot.active {
  opacity: 1;
}

.stories {
  background-color: white;
  padding: 1.5rem 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}



.stories-container {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
}

.story-item {
  flex-shrink: 0;
  text-align: center;
}

.story-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(to bottom right, #06316f, #1ec9aa);
  padding: 0.25rem;
  margin-bottom: 0.5rem;
}

@media (max-width: 480px) {
  .story-circle {
    width: 60px;
    height: 60px;
  }
}

.story-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}


.story-label {
  font-size: 0.75rem;
}


.report-btn {
  width: 100%;
  background-color: #06316f;
  color: white;
  border: none;
  padding: 0.75rem;
  border-radius: 0.5rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s;
}

.report-btn:hover {
  background-color: #158f77;
}

.tab-section {
  padding: 3rem 0;
}



.tab-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .tab-buttons {
    gap: 0.5rem;
  }
}

.tab-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .tab-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .tab-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.tab-card {
  background-color: #f9fafb;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  transition: box-shadow 0.2s;
}



.tab-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.2);
}

.tab-card img {
  width: 100%;
  height: 192px;
  object-fit: cover;
}

@media (max-width: 480px) {
  .tab-card img {
    height: 160px;
  }
}

.tab-card-content {
  padding: 1rem;
}

.tab-card h3 {
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.tab-card p {
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 0.75rem;
}


.tab-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #6b7280;
}

.team-section {
  background-color: white;
  padding: 3rem 0;
}



.team-section h2 {
  color: #06316f;
  font-size: 1.875rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 2rem;
}

@media (max-width: 640px) {
  .team-section h2 {
    font-size: 1.5rem;
  }
}

.team-slider {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  -webkit-overflow-scrolling: touch;
}

.team-card {
  flex-shrink: 0;
  min-width: 250px;
  background-color: #f9fafb;
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

@media (max-width: 640px) {
  .team-card {
    min-width: 220px;
    padding: 1rem;
  }
}

.team-avatar {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #06316f;
  margin: 0 auto 1rem;
}

@media (max-width: 640px) {
  .team-avatar {
    width: 100px;
    height: 100px;
  }
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-role {
  color: #6b7280;
  margin-bottom: 0.5rem;
}


.team-name {
  font-weight: bold;
}

.services-section {
  background-color: #f9fafb;
}

.service-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.service-tab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  background-color: #e5e7eb;
}

@media (max-width: 640px) {
  .service-tab {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }
}


.service-tab.active {
  background-color: #06316f;
  color: white;
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.service-item {
  background-color: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

@media (max-width: 480px) {
  .service-item {
    padding: 1rem;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
}


.service-badge {
  background-color: #d1fae5;
  color: #047857;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  display: inline-block;
  margin-top: 0.5rem;
}

.service-btn {
  background-color: #06316f;
  color: white;
  border: none;
  padding: 0.5rem 1.5rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

@media (max-width: 480px) {
  .service-btn {
    width: 100%;
  }
}

.service-btn:hover {
  background-color: #158f77;
}

.days-section {
  padding: 3rem 0;
}

.days-section h2 {
  color: #06316f;
  font-size: 1.875rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 2rem;
}

@media (max-width: 640px) {
  .days-section h2 {
    font-size: 1.5rem;
  }
}

.days-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .days-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .days-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.day-card {
  position: relative;
  height: 192px;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

@media (max-width: 480px) {
  .day-card {
    height: 160px;
  }
}

.day-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.day-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, black, transparent);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
  color: white;
  text-align: center;
}

.day-date {
  font-size: 1.875rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

@media (max-width: 480px) {
  .day-date {
    font-size: 1.5rem;
  }
}

.day-title {
  font-size: 0.9rem;
}

.video-section {
  padding: 3rem 0;
}

.video-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.video-tab {
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  background-color: #e5e7eb;
}

@media (max-width: 640px) {
  .video-tab {
    padding: 0.5rem 1.5rem;
    font-size: 0.875rem;
  }
}

.video-tab.active {
  background-color: #9e1324;
  color: white;
}

.shahreza-info {
  border-radius: 1rem;
  padding: 2rem;
}

@media (max-width: 640px) {
  .shahreza-info {
    padding: 1.5rem;
  }
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .5rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}


@media (min-width: 768px) {
  .depuites-grid {
    grid-template-columns: repeat(6, 1fr) !important;
  }
}


.stat-item {
  border-radius: 0.75rem;
  text-align: center;
  padding: 10px;
}

.stat-number {
  font-size: 1.875rem;
  font-weight: bold;
  color: #9e1324;
}

@media (max-width: 640px) {
  .stat-number {
    font-size: 1.5rem;
  }
}

.stat-label {
  font-size: 0.875rem;
  color: #06316f;
}

.shahreza-text {
  line-height: 1.8;
}

.podcast-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .podcast-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.podcast-item {
  background-color: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

@media (max-width: 480px) {
  .podcast-item {
    padding: 1rem;
    flex-direction: column;
    text-align: center;
  }
}

.podcast-play {
  width: 48px;
  height: 48px;
  background-color: #06316f;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: background-color 0.2s;
  flex-shrink: 0;
}

.podcast-play:hover {
  background-color: #158f77;
}

.podcast-info h3 {
  font-weight: bold;
  margin-bottom: 0.25rem;
}

.podcast-meta {
  font-size: 0.875rem;
  color: #6b7280;
}

.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .video-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.video-card {
  background-color: white;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.video-thumb {
  position: relative;
  height: 192px;
  cursor: pointer;
}

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

.video-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.video-thumb:hover .video-play-overlay {
  background: rgba(0,0,0,0.5);
}

.play-icon {
  width: 64px;
  height: 64px;
  background-color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #06316f;
}

@media (max-width: 480px) {
  .play-icon {
    width: 48px;
    height: 48px;
  }
}

.video-info {
  padding: 1rem;
}

.video-info h3 {
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.video-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #6b7280;
}

.city-intro-section {
  background-color: white;
  padding: 3rem 0;
}

.city-intro-card {
  background: linear-gradient(130deg, #92cae28f 50%, #92cae28f 50%);
  border-radius: 1.5rem;
  padding: 2rem;
  border: 1px solid #06316f30;
}
@media (max-width: 640px) {
  .city-intro-card {
    padding: 1.5rem;
  }
}
.city-intro-title {
  color: #06316f;
  font-size: 2rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 2rem;
}
@media (max-width: 640px) {
  .city-intro-title {
    font-size: 1.5rem;
  }
}
.city-intro-text {
  line-height: 2;
  font-size: 1.1rem;
  text-align: justify;
}
@media (max-width: 640px) {
  .city-intro-text {
    font-size: 1rem;
  }
}

.tourism-section {
  background-color: #f9fafb;
  padding: 3rem 0;
}

.tourism-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
}
@media (min-width: 640px) {
  .tourism-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .tourism-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.tourism-card {
  background-color: white;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.tourism-card:hover {
  transform: translateY(-5px);
}
.tourism-img {
  height: 200px;
  overflow: hidden;
}
.tourism-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.tourism-card:hover .tourism-img img {
  transform: scale(1.05);
}
.tourism-content {
  padding: 1.5rem;
}
@media (max-width: 480px) {
  .tourism-content {
    padding: 1rem;
  }
}
.tourism-content h3 {
  color: #06316f;
  font-weight: bold;
  margin-bottom: 0.5rem;
}
.tourism-badge {
  display: inline-block;
  background-color: #06316f20;
  color: #06316f;
  padding: 0.25rem 1rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  margin-top: 1rem;
}

.services-grid-section {
  background-color: white;
  padding: 3rem 0;
}


.interactive-section {
  background: linear-gradient(135deg, #06316f, #158f77);
  padding: 4rem 0;
  color: white;
}
@media (max-width: 640px) {
  .interactive-section {
    padding: 2.5rem 0;
  }
}
.interactive-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
}
@media (min-width: 640px) {
  .interactive-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .interactive-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.interactive-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border-radius: 1.5rem;
  padding: 2rem;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.2);
  transition: transform 0.3s;
  cursor: pointer;
}
@media (max-width: 480px) {
  .interactive-card {
    padding: 1.5rem;
  }
}
.interactive-card:hover {
  transform: translateY(-5px);
  background: rgba(255,255,255,0.2);
}
.interactive-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}
.interactive-title {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.citizen-panel {
  background-color: white;
  padding: 3rem 0;
}

.panel-container {
  max-width: 800px;
  margin: 0 auto;
  background: #f9fafb;
  border-radius: 2rem;
  padding: 2rem;
}
@media (max-width: 640px) {
  .panel-container {
    padding: 1.5rem;
  }
}

.panel-title {
  color: #06316f;
  font-size: 1.5rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 2rem;
}
.panel-form textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 1rem;
  font-family: 'Vazirmatn', sans-serif;
  margin-bottom: 1rem;
  resize: vertical;
}

.panel-form button {
  background-color: #06316f;
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s;
}
@media (max-width: 480px) {
  .panel-form button {
    width: 100%;
  }
}
.panel-form button:hover {
  background-color: #158f77;
}

.utility-bar {
  background-color: #f9fafb;
  padding: 2rem 0;
  border-bottom: 1px solid #e5e7eb;
}

.utility-grid {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}
@media (max-width: 640px) {
  .utility-grid {
    gap: 1.5rem;
  }
}
.utility-item {
  text-align: center;
}
.utility-item i {
  font-size: 2rem;
  color: #06316f;
  margin-bottom: 0.5rem;
}
.utility-item span {
  display: block;
  font-weight: 500;
}
.utility-item small {
  font-size: 0.75rem;
  color: inherit;
}

footer {
  color: white;
  padding: 3rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-col h3 {
  font-weight: bold;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: white;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: white;
  text-decoration: none;
}

.footer-col a:hover {
  text-decoration: underline;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.footer-logo {
  text-align: center;
}

.footer-logo-circle {
  width: 128px;
  height: 128px;
  background-color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: #06316f;
  font-size: 3rem;
  font-weight: bold;
}

@media (max-width: 640px) {
  .footer-logo-circle {
    width: 100px;
    height: 100px;
    font-size: 2.5rem;
  }
}

.app-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.app-btn {
  background-color: white;
  color: #06316f;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s;
}

@media (max-width: 480px) {
  .app-btn {
    width: 100%;
    text-align: center;
  }
}

.app-btn:hover {
  background-color: #f3f4f6;
}

.copyright {
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 1.5rem;
  text-align: center;
}

.copyright p {
  margin-bottom: 0.5rem;
}

.copyright small {
  opacity: 0.8;
}

.hidden {
  display: none !important;
}

.block {
  display: block !important;
}

.flex {
  display: flex;
}

.text-center {
  text-align: center;
}

.mt-4 {
  margin-top: 1rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.seo-meta {
  display: none;
}

img {
  max-width: 100%;
  height: auto;
}

.space-y-6 > * + * {
  margin-top: 1.5rem;
}

@media (max-width: 480px) {
  .space-y-6 > * + * {
    margin-top: 1rem;
  }
}

.wp-caption,
.gallery-caption {
  max-width: 100%;
}

.bypostauthor {
  background-color: #f9fafb;
}

.alignright {
  float: right;
  margin: 0 0 1em 1em;
}

.alignleft {
  float: left;
  margin: 0 1em 1em 0;
}

.aligncenter {
  display: block;
  margin: 0 auto;
}

/* بخش مناقصات و مزایده */
.tenders-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .tenders-grid {
        grid-template-columns: 1fr;
    }
}

.tenders-column, .auctions-column {
    background: #f8f9fa;
    border-radius: 1rem;
    padding: 1.5rem;
}

.tender-header h4,
.auction-header h4 {
    display: -webkit-box;
    -webkit-line-clamp: 1;            /* حداکثر 1 خط */
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;           /* در صورت کلمات طولانی تقسیم شود */
}



.column-title {
    color: #06316f;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #06316f;
}

.tender-item, .auction-item {
    background: white;
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
}


.tender-item:hover, .auction-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.tender-header, .auction-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tender-header h4, .auction-header h4 {
    font-size: 1.1rem;
    font-weight: bold;
    margin: 0;
}

.tender-status,
.auction-status {
    position: absolute;
    top: 12px;          /* فاصله از بالای کارت */
    left: 12px;         /* فاصله از چپ کارت */
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 10;        /* به‌صورت بالا تر از محتویات کارت */
    color: #fff;        /* رنگ متن */
    background: #007bff; /* رنگ پیش‌فرض، بعدا بر اساس status تغییر می‌کند */
    white-space: nowrap;
}

/* ۳. رنگ‌های متناسب با status */
.tender-status.status-finished,
.auction-status.status-finished  { background:#ffc107; }   /* پایان یافته */
.tender-status.status-cancelled,
.auction-status.status-cancelled { background:#dc3545; }   /* لغو شده */

.tender-meta, .auction-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: #6b7280;
    flex-wrap: wrap;
}


.tender-excerpt, .auction-excerpt {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.tender-btn, .auction-btn {
    display: inline-block;
    background: #06316f;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.tender-btn:hover, .auction-btn:hover {
    background: #158f77;
    color: white;
}

.no-items {
    text-align: center;
    padding: 2rem;
    color: #6b7280;
    font-style: italic;
}

/* تب‌های محتوا */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-read-more {
    display: inline-block;
    margin-top: 1rem;
    color: #06316f;
    text-decoration: none;
    font-weight: 500;
}

.tab-read-more:hover {
    text-decoration: underline;
}

.no-content {
    text-align: center;
    padding: 3rem;
    color: #6b7280;
    font-size: 1.1rem;
    grid-column: 1 / -1;
}


footer {
    position: relative;
    overflow: hidden;
}

footer .container {
    position: relative;
    z-index: 1;
}


/* =============================================
   صفحه دسته‌بندی - استایل هماهنگ با پروژه
   ============================================= */

/* هدر صفحه دسته‌بندی */
.category-header-section {
    background: linear-gradient(135deg, #06316f, #158f77);
    padding: 4rem 0;
    margin-top: 1rem;
    color: white;
}

.category-header-card {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 2rem;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.category-header-icon {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.category-icon {
    font-size: 3.5rem;
    line-height: 1;
}

.category-header-content {
    flex: 1;
}

.category-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.category-description {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .category-header-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .category-header-icon {
        width: 80px;
        height: 80px;
    }
    
    .category-icon {
        font-size: 2.5rem;
    }
    
    .category-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .category-header-section {
        padding: 2rem 0;
    }
    
    .category-title {
        font-size: 1.5rem;
    }
}

/* فیلتر و جستجو */
.category-filter-section {
    padding: 2rem 0;
    background-color: #f9fafb;
}

.category-filter-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}


.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: flex-end;
}

.filter-item {
    flex: 1 1 200px;
}

.filter-item label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #4b5563;
}

.filter-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    background-color: white;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.95rem;
    color: #06316f;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-select:focus {
    outline: none;
    border-color: #06316f;
}

.filter-search {
    position: relative;
    flex: 2 1 300px;
}

.filter-search input {
    width: 100%;
    padding: 0.75rem 1rem;
    padding-left: 3rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.filter-search input:focus {
    outline: none;
    border-color: #06316f;
}

.filter-search .search-btn {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0.75rem 1rem;
    color: #06316f;
    cursor: pointer;
    font-size: 1.1rem;
}

.filter-search .search-btn:hover {
    color: #158f77;
}

@media (max-width: 768px) {
    .filter-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .filter-item {
        width: 100%;
    }
}

/* گرید پست‌ها */
.category-posts-section {
    padding: 3rem 0;
    background-color: white;
}

.category-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .category-posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

/* کارت پست */
.post-card {
    background: white;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 161, 154, 0.2), 0 10px 10px -5px rgba(0, 161, 154, 0.1);
}

.post-card-image {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card:hover .post-card-image img {
    transform: scale(1.1);
}

.no-image {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #06316f20, #158f7720);
}

.no-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #06316f;
}

.placeholder-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.placeholder-text {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* برچسب‌ها روی تصویر */
.post-status-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.35rem 1rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.post-status-badge.status-در-حال-اجرا,
.post-status-badge.status-در-حال-برگزاری {
    background: #d1fae5;
    color: #047857;
}

.post-status-badge.status-در-حال-بررسی {
    background: #fef3c7;
    color: #92400e;
}

.post-status-badge.status-تمام-شده {
    background: #e5e7eb;
    color: #374151;
}

.post-status-badge.status-لغو-شده {
    background: #fee2e2;
    color: #b91c1c;
}

.post-category-badge {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    padding: 0.35rem 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 500;
    backdrop-filter: blur(4px);
    z-index: 2;
}

/* محتوای کارت */
.post-card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-card-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.post-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.post-card-title a:hover {
    color: #06316f;
}

.post-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: #6b7280;
}

.post-card-meta i {
    margin-left: 0.35rem;
    color: #06316f;
}

.post-card-excerpt {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #4b5563;
    margin-bottom: 1.5rem;
    flex: 1;
}

.post-extra-info {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: #f3f4f6;
    border-radius: 0.75rem;
    font-size: 0.9rem;
}

.post-extra-info .deadline {
    color: #06316f;
    font-weight: 500;
}

.post-extra-info .deadline i {
    margin-left: 0.5rem;
}

.post-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #06316f;
    text-decoration: none;
    font-weight: 500;
    transition: gap 0.2s;
    margin-top: auto;
}

.post-read-more:hover {
    gap: 1rem;
    color: #209fbc;
}

/* صفحه‌بندی */
.category-pagination {
    text-align: center;
    margin-top: 3rem;
}

.category-pagination .pagination {
    display: inline-flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.category-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #f3f4f6;
    color: #06316f;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}


.category-pagination .page-numbers:hover {
    background: #06316f;
    color: white;
    transform: scale(1.1);
}

.category-pagination .page-numbers.current {
    background: #06316f;
    color: white;
}

.category-pagination .page-numbers .page-number {
    line-height: 1;
}

.category-pagination .page-numbers i {
    font-size: 1rem;
}

/* حالت بدون پست */
.no-posts-found {
    text-align: center;
    padding: 5rem 2rem;
    background: #f9fafb;
    border-radius: 2rem;
}

.no-posts-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.no-posts-found h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #06316f;
}
.no-posts-found p {
    color: #6b7280;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.back-home-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #06316f, #158f77);
    color: white;
    text-decoration: none;
    border-radius: 3rem;
    font-weight: 500;
    transition: all 0.3s;
}

.back-home-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px -5px rgba(26, 160, 137, 0.5);
}

/* انیمیشن‌ها */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-post-item {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.category-post-item:nth-child(1) { animation-delay: 0.1s; }
.category-post-item:nth-child(2) { animation-delay: 0.2s; }
.category-post-item:nth-child(3) { animation-delay: 0.3s; }
.category-post-item:nth-child(4) { animation-delay: 0.4s; }
.category-post-item:nth-child(5) { animation-delay: 0.5s; }
.category-post-item:nth-child(6) { animation-delay: 0.6s; }
.category-post-item:nth-child(7) { animation-delay: 0.7s; }
.category-post-item:nth-child(8) { animation-delay: 0.8s; }
.category-post-item:nth-child(9) { animation-delay: 0.9s; }
.category-post-item:nth-child(10) { animation-delay: 1s; }
.category-post-item:nth-child(11) { animation-delay: 1.1s; }
.category-post-item:nth-child(12) { animation-delay: 1.2s; }

/* استایل لینک‌ها */
.tourism-link,
.news-slide a,
.news-item-link,
.manager-card a,
.org-item-link,
.tab-card a,
.tender-link,
.auction-link,
.day-card-link {
    text-decoration: none;
    color: #ffffff;
    display: block;
    height: 100%;
}

.manager-action-btn {
    display: inline-block;
    background-color: white;
    color: #06316f;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: bold;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.2s;
    text-decoration: none;
}

.manager-action-btn:hover {
    background-color: #f3f4f6;
}

.report-btn {
    display: inline-block;
    width: 100%;
    background-color: #06316f;
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
    text-align: center;
    text-decoration: none;
}

.report-btn:hover {
    background-color: #158f77;
}

.promo-btn {
    display: inline-block;
    background-color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
    text-decoration: none;
}

.promo-card.green .promo-btn {
    color: #000;
}

.promo-card.orange .promo-btn {
    color: #000;
}

.promo-btn:hover {
    background-color: #f3f4f6;
}

.tab-read-more {
    display: inline-block;
    margin-top: 1rem;
    color: #338c32;
    text-decoration: none;
    font-weight: 500;
}

.tender-btn,
.auction-btn {
    display: inline-block;
    background: #06316f;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.tender-btn:hover,
.auction-btn:hover {
    background: #158f77;
    color: white;
}

.tender-link,
.auction-link {
    text-decoration: none;
    color: #06316f;
}

/* =============================================
   صفحه نمایش تکی پست‌ها (single.php)
   ============================================= */

/* هدر صفحه پست */
.single-post-header {
    background: linear-gradient(135deg, #06316f, #158f77);
    padding: 4rem 0 3rem;
    margin-top: 1rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.single-post-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: rotate(25deg);
}

.single-post-header::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 250px;
    height: 250px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.single-post-header.tender {
    background: linear-gradient(135deg, #1e40af, #1e3a8a);
}

.single-post-header.auction {
    background: linear-gradient(135deg, #b45309, #92400e);
}

.single-post-header.tourism {
    background: linear-gradient(135deg, #059669, #047857);
}

.single-post-header.mayor {
    background: linear-gradient(135deg, #7e22ce, #6b21a5);
}

.single-post-header.council {
    background: linear-gradient(135deg, #b91c1c, #991b1b);
}

.single-post-header.cultural {
    background: linear-gradient(135deg, #c2410c, #9a3412);
}

.single-post-header.gallery {
    background: linear-gradient(135deg, #a16207, #854d0e);
}

.single-post-header.video {
    background: linear-gradient(135deg, #be185d, #9d174d);
}

.single-post-header.special {
    background: linear-gradient(135deg, #a21caf, #86198f);
}

.single-post-header-content {
    position: relative;
    z-index: 2;
}

/* مسیر راهنما */
.post-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.95rem;
    flex-wrap: wrap;
}

.post-breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s;
}

.post-breadcrumb a:hover {
    color: white;
}

.post-breadcrumb .separator {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
}

.post-breadcrumb .current {
    color: white;
    font-weight: 500;
}

/* عنوان پست */
.single-post-title {
    font-size: 2.5rem;
    font-weight: bold;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .single-post-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .single-post-title {
        font-size: 1.5rem;
    }
}

/* متادیتا */
.single-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.meta-icon {
    font-size: 1rem;
    opacity: 0.8;
}

.meta-text {
    font-weight: 500;
}

.post-type-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.35rem 1rem;
    border-radius: 2rem;
    backdrop-filter: blur(5px);
}

@media (max-width: 768px) {
    .single-post-meta {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .single-post-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* وضعیت برای مناقصات و مزایده */
.post-status-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 1rem;
    backdrop-filter: blur(5px);
}

.status-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
}

.status-item .status-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.status-item .status-value {
    font-weight: bold;
}

.status-item.status-در-حال-اجرا,
.status-item.status-در-حال-برگزاری {
    background: #d1fae5;
    color: #047857;
}

.status-item.status-در-حال-بررسی {
    background: #fef3c7;
    color: #92400e;
}

.status-item.status-تمام-شده {
    background: #e5e7eb;
    color: #374151;
}

.status-item.status-لغو-شده {
    background: #fee2e2;
    color: #b91c1c;
}

.status-item.deadline {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* بنر روزهای خاص */
.post-special-date-banner {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-radius: 3rem;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.post-special-date-banner i {
    font-size: 1.2rem;
}

/* محتوای اصلی */
.single-post-content-section {
    padding: 4rem 0;
    background: #f9fafb;
}


.single-post-content-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

/* تصویر شاخص */
.single-post-featured-image {
    margin-bottom: 3rem;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.2);
    position: relative;
}

.single-post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.featured-image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    font-size: 0.9rem;
    text-align: center;
}

/* لید */
.post-lead {
    margin-bottom: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    border-right: 4px solid #06316f;
    font-size: 1.2rem;
    line-height: 2;
    color: #06316f;
    text-align: justify;
}



.post-lead p {
    margin: 0;
    text-align: justify;
}

.post-lead p:last-child {
    margin-bottom: 0;
}

/* بدنه محتوا */
.post-body {
    background: white;
    padding: 3rem;
    border-radius: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
    line-height: 2;
}

.post-body h1,
.post-body h2,
.post-body h3,
.post-body h4,
.post-body h5,
.post-body h6 {
    color: #06316f;
    margin: 2rem 0 1rem;
}

.post-body h1 {
    font-size: 2rem;
}

.post-body h2 {
    font-size: 1.75rem;
}

.post-body h3 {
    font-size: 1.5rem;
}

.post-body p {
    margin-bottom: 1.5rem;
}

.post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 1rem;
    margin: 2rem 0;
}

.post-body blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: #f3f4f6;
    border-right: 4px solid #06316f;
    border-radius: 0.5rem;
    font-style: italic;
    font-size: 1.1rem;
}

.post-body ul,
.post-body ol {
    margin: 1.5rem 0;
    padding-right: 2rem;
}

.post-body li {
    margin-bottom: 0.5rem;
}

.post-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

.post-body th,
.post-body td {
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    text-align: right;
}

.post-body th {
    background: #f3f4f6;
    font-weight: bold;
}

@media (max-width: 768px) {
    .post-body {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .post-body {
        padding: 1.5rem;
    }
}

/* برچسب‌ها */
.post-tags {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #e5e7eb;
}

.tags-label {
    font-weight: bold;
    color: #06316f;
}

.tags-label i {
    margin-left: 0.5rem;
}

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

.tags-list a {
    display: inline-block;
    padding: 0.35rem 1rem;
    background: #f3f4f6;
    color: #06316f;
    text-decoration: none;
    border-radius: 2rem;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.tags-list a:hover {
    background: #06316f;
    color: white;
}

/* اشتراک‌گذاری */
.post-share-section {
    margin: 3rem 0;
    padding: 2rem;
    background: white;
    border-radius: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    text-align: center;
}

.share-title {
    color: #06316f;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.share-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 3rem;
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: all 0.3s;
}

.share-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.2);
}

.share-button.whatsapp {
    background: #25D366;
}

.share-button.telegram {
    background: #0088cc;
}

.share-button.twitter {
    background: #1DA1F2;
}

.share-button.linkedin {
    background: #0077b5;
}

.share-button.copy-link {
    background: #6b7280;
}

.share-button i {
    font-size: 1.2rem;
}

@media (max-width: 480px) {
    .share-buttons {
        flex-direction: column;
    }
    
    .share-button {
        justify-content: center;
    }
}

/* پست‌های مرتبط */
.related-posts-section {
    margin: 3rem 0;
}

.related-posts-title {
    color: #06316f;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
}

.related-post-item {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.related-post-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.related-post-image {
    height: 160px;
    overflow: hidden;
}

.related-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.related-post-item:hover .related-post-image img {
    transform: scale(1.1);
}

.no-image-small {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #06316f20, #158f7720);
    display: flex;
    align-items: center;
    justify-content: center;
}

.no-image-small .placeholder-icon {
    font-size: 3rem;
    color: #06316f;
}

.related-post-content {
    padding: 1rem;
}

.related-post-content h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: #06316f;
}

.related-post-meta {
    font-size: 0.8rem;
    color: #6b7280;
}

.related-post-meta i {
    margin-left: 0.25rem;
    color: #06316f;
}

/* نظرات */
.post-comments-section {
    margin-top: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

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

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

.comment {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.comment-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.comment-author .fn {
    font-weight: bold;
    color: #06316f;
}

.comment-metadata {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

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

.reply {
    margin-top: 1rem;
}

.reply a {
    color: #06316f;
    text-decoration: none;
    font-size: 0.9rem;
}

.reply a:hover {
    text-decoration: underline;
}

.comment-respond {
    margin-top: 2rem;
}

.comment-reply-title {
    color: #06316f;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.comment-form {
    display: grid;
    gap: 1rem;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    font-family: 'Vazirmatn', sans-serif;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #06316f;
}

.comment-form .form-submit button {
    background: linear-gradient(135deg, #06316f, #158f77);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.comment-form .form-submit button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(26, 160, 137, 0.3);
}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100px;
    gap: 2rem;
    max-width: 2000px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* لوگو */
.logo-area {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.logo-circle {
    width: 64px;
    height: 64px;
    background-color: #06316f;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: bold;
}

@media (max-width: 640px) {
    .logo-circle {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .logo-circle {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
}

.logo-text h1 {
    color: #06316f;
    font-size: 1.25rem;
    font-weight: bold;
}

@media (max-width: 640px) {
    .logo-text h1 {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .logo-text h1 {
        font-size: 0.9rem;
    }
}

.logo-text p {
    color: #4b5563;
    font-size: 0.875rem;
}

@media (max-width: 640px) {
    .logo-text p {
        font-size: 0.75rem;
    }
}

/* منوی ناوبری */
.header-nav {
    flex: 1;
    display: flex;
    justify-content: start;
    margin: 0 1rem;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    height: 64px;
    list-style: none;
    white-space: nowrap;
    padding: 0;
    margin: 0;
}

.nav-links li {
    margin: 0;
    padding: 0;
}

.nav-links a:hover {
    color: #06316f;
}

.nav-links .active {
    color: #06316f;
    font-weight: bold;
}

/* دکمه‌های هدر */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.theme-toggle {
    width: 40px;
height:0px;
    border-radius: 50%;
    background-color: #f3f4f6;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
    flex-shrink: 0;
}

.theme-toggle:hover {
    background-color: #e5e7eb;
}

/* فضای خالی برای هدر ثابت */
.content-spacer {
    padding-top: 140px;
}

/* حالت موبایل */
@media (max-width: 992px) {
    .header-nav {
        order: 3;
        width: 100%;
        margin: 0.5rem 0 0;
    }
    
    .nav-links {
        justify-content: flex-start;
        gap: 1rem;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 768px) {
    .header-inner {
        height: auto;
        flex-wrap: wrap;
        padding: 0.5rem 0;
    }
    
    .logo-area {
        width: auto;
    }
    
    .header-actions {
        width: auto;
    }
    
    .nav-links a {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .nav-links {
        gap: 0.75rem;
    }
    
    .nav-links a {
        font-size: 0.8rem;
    }
}

/* رفع تداخل با استایل‌های قبلی nav */
nav {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    z-index: auto;
    background-color: transparent;
    box-shadow: none;
    overflow-x: visible;
}

nav.scrolled {
    background-color: transparent;
    box-shadow: none;
}


/* =============================================
   منوی همبرگری و زیرمنوها - نسخه اصلاح شده
   ============================================= */

/* دکمه همبرگری */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin: 0 1rem;
    z-index: 1001;
    position: relative;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background-color: #06316f;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* انیمیشن دکمه همبرگری در حالت باز */
.hamburger-menu.active .hamburger-line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* منوی اصلی */
.header-nav {
    flex: 1;
    display: flex;
    justify-content: start;
    margin: 0 1rem;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    height: 64px;
    list-style: none;
    white-space: nowrap;
    padding: 0;
    margin: 0;
}

.nav-links li {
    position: relative;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0;
    cursor: pointer;
}

.nav-links a:hover {
    color: #06316f;
}

.nav-links .active {
    color: #06316f;
    font-weight: bold;
}

/* فلش زیرمنو */
.submenu-arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

/* زیرمنوها - دسکتاپ */
.nav-links .sub-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 220px;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    list-style: none;
    text-align: right;
    border: 1px solid rgba(0,0,0,0.05);
}

.nav-links li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* زیرمنوهای سطح دوم به بعد */
.nav-links .sub-menu .sub-menu {
    top: 0;
    right: 100%;
    margin-right: 0.5rem;
}

.nav-links .sub-menu li {
    display: block;
    width: 100%;
}

.nav-links .sub-menu a {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    color: #06316f;
    transition: all 0.2s;
    white-space: nowrap;
}

.nav-links .sub-menu a:hover {
    background: #f3f4f6;
    color: #06316f;
    padding-right: 2rem;
}


/* حالت موبایل */
@media (max-width: 992px) {
    .hamburger-menu {
        display: flex;
    }
    
    .header-nav {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: calc(100vh - 80px);
        background: white;
        box-shadow: -5px 0 20px rgba(0,0,0,0.15);
        transition: right 0.3s ease;
        margin: 0;
        padding: 2rem 1rem;
        overflow-y: auto;
        z-index: 1000;
        display: block;
    }
    
    
    .header-nav.active {
        right: 0;
    }
    
    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        height: auto;
        gap: 0;
        white-space: normal;
        width: 100%;
    }
    
    .nav-links li {
        width: 100%;
        border-bottom: 1px solid #e5e7eb;
    }
    
    .nav-links li:last-child {
        border-bottom: none;
    }
    
    .nav-links a {
        padding: 1rem;
        width: 100%;
        justify-content: space-between;
    }
    
    /* زیرمنوها در موبایل */
    .nav-links .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding: 0;
        margin: 0;
        background: #f9fafb;
        display: none;
        border: none;
        border-radius: 0;
        width: 100%;
    }
    
    
    .nav-links li.menu-item-has-children.active > .sub-menu {
        display: block;
    }
    
    .nav-links .sub-menu .sub-menu {
        margin-right: 1rem;
        background: #f3f4f6;
        width: calc(100% - 1rem);
    }
    
    .nav-links .sub-menu a {
        padding: 0.75rem 2rem;
        white-space: normal;
    }
    
    .nav-links .sub-menu .sub-menu a {
        padding-right: 3rem;
    }
    
    /* فلش در موبایل */
    .submenu-arrow {
        transition: transform 0.3s ease;
    }
    
    .nav-links li.menu-item-has-children.active > a .submenu-arrow {
        transform: rotate(180deg);
    }
    
    /* لایه تاریک پشت منو */
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        pointer-events: none;
    }
    
    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
}

@media (max-width: 768px) {
    .header-nav {
        top: 70px;
        height: calc(100vh - 70px);
    }
}

@media (max-width: 480px) {
    .header-nav {
        width: 85%;
    }
}

/* جلوگیری از اسکرول بدنه وقتی منو بازه */
body.menu-open {
    overflow: hidden;
}


/* =============================================
   اصلاح z-index منو و لایه تاریک
   ============================================= */

/* لایه تاریک - پایین‌تر از منو */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto; /* فقط وقتی فعال باشه کلیک می‌خوره */
}

/* منوی همبرگری - بالاتر از همه */
.hamburger-menu {
    position: relative;
    z-index: 110; /* بالاترین مقدار */
}

/* منوی ناوبری در موبایل */
@media (max-width: 992px) {
    .header-nav {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: calc(100vh - 80px);
        background: white;
        box-shadow: -5px 0 20px rgba(0,0,0,0.15);
        transition: right 0.3s ease;
        margin: 0;
        padding: 2rem 1rem;
        overflow-y: auto;
        z-index: 100; /* بالاتر از overlay ولی پایین‌تر از همبرگر */
        display: block;
    }
    
    .header-nav.active {
        right: 0;
    }
    
    /* آیتم‌های منو */
    .nav-links {
        position: relative;
        z-index: 101; /* بالاترین مقدار در منو */
    }
    
    .nav-links a {
        position: relative;
        z-index: 102;
        cursor: pointer;
        padding: 1rem;
        display: block;
    }
}

/* =============================================
   زیرمنوهای چندسطحی
   ============================================= */

/* استایل پایه زیرمنوها */
.nav-links .sub-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 220px;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    list-style: none;
    text-align: right;
    border: 1px solid rgba(0,0,0,0.05);
}

/* زیرمنوهای سطح دوم به بعد - افقی */
.nav-links .sub-menu .sub-menu {
    top: 0;
    right: 100%;
    margin-right: 0.5rem;
}

/* نمایش زیرمنوها با هاور در دسکتاپ */
@media (min-width: 993px) {
    .nav-links li:hover > .sub-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    /* زیرمنوهای سطح دوم به بعد */
    .nav-links .sub-menu li:hover > .sub-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

/* استایل آیتم‌های زیرمنو */
.nav-links .sub-menu li {
    display: block;
    width: 100%;
    position: relative;
}

.nav-links .sub-menu a {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    color: #06316f;
    transition: all 0.2s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-links .sub-menu a:hover {
    background: #f3f4f6;
    color: #06316f;
    padding-right: 2rem;
}

/* فلش برای آیتم‌های دارای زیرمنو */
.submenu-arrow {
    font-size: 0.8rem;
    margin-right: 0.25rem;
    transition: transform 0.3s ease;
}

/* چرخش فلش در موبایل وقتی زیرمنو بازه */
.nav-links li.active > a .submenu-arrow {
    transform: rotate(180deg);
}

/* =============================================
   حالت موبایل - زیرمنوهای عمودی
   ============================================= */
@media (max-width: 992px) {
    .nav-links .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding: 0;
        margin: 0 1rem;
        background: #f9fafb;
        display: none;
        border: none;
        border-radius: 0.5rem;
        width: auto;
    }
    
    /* زیرمنوهای سطوح بعدی */
    .nav-links .sub-menu .sub-menu {
        margin-right: 1rem;
        background: #f3f4f6;
        width: calc(100% - 1rem);
    }
    
    /* آیتم‌های زیرمنو */
    .nav-links .sub-menu li {
        border-bottom: 1px solid #e5e7eb;
    }
    
    .nav-links .sub-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-links .sub-menu a {
        padding: 0.75rem 2rem;
        white-space: normal;
    }
    
    .nav-links .sub-menu .sub-menu a {
        padding-right: 3rem;
    }
    
    .nav-links .sub-menu .sub-menu .sub-menu a {
        padding-right: 4rem;
    }
    
    .nav-links .sub-menu .sub-menu .sub-menu .sub-menu a {
        padding-right: 5rem;
    }
}

/* لایه تاریک */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* منوی همبرگری */
.hamburger-menu {
    position: relative;
    z-index: 110;
}

/* منوی ناوبری در موبایل */
@media (max-width: 992px) {
    .header-nav {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: calc(100vh - 80px);
        background: white;
        box-shadow: -5px 0 20px rgba(0,0,0,0.15);
        transition: right 0.3s ease;
        margin: 0;
        padding: 1rem 0;
        overflow-y: auto;
        z-index: 100;
        display: block;
    }
    
    .header-nav.active {
        right: 0;
    }
    
    .nav-links {
        flex-direction: column;
        align-items: stretch;
        height: auto;
        gap: 0;
    }
    
    .nav-links li {
        width: 100%;
        border-bottom: 1px solid #e5e7eb;
    }
    
    .nav-links li:last-child {
        border-bottom: none;
    }
    
    .nav-links a {
        padding: 1rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
}

/* جلوگیری از اسکرول بدنه */
body.menu-open {
    overflow: hidden;
}

footer {
  position: relative;
  color: white;
  padding: 3rem 0;
  background: none; /* حذف گرادینت قبلی */
  overflow: hidden;
}

/* تصویر پس‌زمینه فوتر */
footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('assets/images/footer-bg.png'); 
  background-size: cover;
width:100%;
height:auto;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}



/* تنظیم لایه‌های محتوای فوتر */
footer .container {
  position: relative;
  z-index: 2; /* محتوا بالای لایه‌ها */
}

.footer-glass {
  display: none; /* اگه می‌خوای المان glass قبلی رو پنهان کنی */
}

/* تنظیم رنگ متن‌ها برای خوانایی بهتر روی لایه کرمی */
footer,
footer a,
footer h3,
footer p,
footer small,
footer .contact-item,
footer .footer-col li {
  color: #fff; /* تیره کردن متن‌ها برای کنتراست بهتر روی زمینه کرمی */
  text-shadow: 0 1px 2px rgba(255,255,255,0.3);
}

/* تغییر رنگ لینک‌ها در هاور */
footer a:hover {
  color: #06316f; /* همون رنگ سبز سازمانی */
  text-decoration: underline;
}

/* تنظیم آیکون‌ها */
footer i {
  color: #06316f;
}

/* اگر لینک‌های اپلیکیشن دکمه‌ای هستند */
.app-btn {
  background-color: #06316f;
  color: white !important;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s;
  text-shadow: none;
}

.app-btn:hover {
  background-color: #158f77;
  color: white !important;
}

/* خط جداکننده کپی‌رایت */
.copyright {
  border-top: 1px solid rgba(0,0,0,0.2); /* تیره‌تر برای زمینه روشن */
  padding-top: 1.5rem;
  text-align: center;
  margin-top: 1.5rem;
}



/* =============================================
   سازمان‌های وابسته - نسخه نهایی ریسپانسیو
   ============================================= */

.org-section {
    background: white;
    padding: 3rem 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.org-section h2 {
    font-size: 1.875rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 2rem;
    color: #06316f;
}

/* دکمه‌های اسکرول */
.org-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 2px solid #209fbc;
    color: #209fbc;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.org-scroll-btn:hover {
    background: #209fbc;
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.org-scroll-prev {
    left: 0;
}

.org-scroll-next {
    right: 0;
}

/* اسلایدر */
.org-slider {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    overflow-y: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 10px 5px 20px 5px;
    
}

/* آیتم‌ها */
.org-item {
    flex: 0 0 auto;
    width: 180px;
    transition: all 0.3s ease;
    text-align: center;
}

.org-item:hover {
    transform: translateY(-5px);
}

.org-item-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.org-circle {
    width: 140px;
    height: 140px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    background: white;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: 3px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(#9e1324) border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.org-image {
    width: 100%;
    height: 100%;
    object-fit: fit;
    display: block;
}

.org-icon {
    font-size: 3rem;
    color: #06316f;
}

.org-item:hover .org-circle {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    transform: scale(1.05);
}

.org-title {
    font-size: 14px;
    font-weight: 500;
    color: #06316f;
    margin: 10px 0 0;
    transition: color 0.3s ease;
    line-height: 1.5;
}

.org-item:hover .org-title {
    color: #06316f;
}

/* ========== حالت موبایل ========== */
@media (max-width: 992px) {
    .org-slider-container {
        padding: 0 35px;
    }
    
    .org-item {
        width: 160px;
    }
    
    .org-circle {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 768px) {
    .org-section {
        padding: 2rem 0;
    }
    
    .org-section h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .org-slider-container {
        padding: 0 30px;
    }
    
    .org-scroll-btn {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .org-slider {
        gap: 20px;
    }
    
    .org-item {
        width: 140px;
    }
    
    .org-circle {
        width: 110px;
        height: 110px;
    }
    
    .org-icon {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .org-section {
        padding: 1.5rem 0;
    }
    
    .org-section h2 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .org-slider-container {
        padding: 0 25px;
    }
    
    .org-scroll-btn {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
    
    .org-slider {
        gap: 15px;
    }
    
    .org-item {
        width: 120px;
    }
    
    .org-circle {
        width: 90px;
        height: 90px;
        margin-bottom: 10px;
        border-width: 2px;
    }
    
    .org-icon {
        font-size: 2rem;
    }
    
    .org-title {
        font-size: 12px;
    }
}

@media (max-width: 360px) {
    .org-slider-container {
        padding: 0 20px;
    }
    
    .org-item {
        width: 100px;
    }
    
    .org-circle {
        width: 80px;
        height: 80px;
    }
    
    .org-scroll-btn {
        width: 25px;
        height: 25px;
        font-size: 14px;
    }
}

/* حالت تاچ برای موبایل - دکمه‌ها مخفی نشوند */
@media (hover: none) and (pointer: coarse) {
    .org-scroll-btn {
        opacity: 0.8;
    }
    
    .org-scroll-btn:hover {
        transform: translateY(-50%);
    }
}

/* غیرفعال کردن دکمه‌ها در موبایل */
@media (max-width: 768px) {
    .org-scroll-btn {
        display: none;
    }
    
    /* تنظیم مجدد padding کانتینر وقتی دکمه‌ها مخفی هستند */
    .org-slider-container {
        padding: 0 15px;
    }
}

/* برای موبایل‌های بسیار کوچک */
@media (max-width: 480px) {
    .org-slider-container {
        padding: 0 10px;
    }
}

.btn-tender-custom{
    display: inline-block;
    background: #9e1324;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.btn-auction-custom{
    display: inline-block;
    background: #209fbc;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.column-title-tender{
    color: #9e1324;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #9e1324;
}

.column-title-auction{
    color: #209fbc;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #209fbc;
}

.tab-card-content p , h3{
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #06316f !important;
}

.tender-status,
.auction-status {
    overflow: hidden;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

/* وضعیت فعال - افکت خاص */
.status-active {
    background: linear-gradient(135deg, #209fbc, #209fbc);
    color: #fff;
    animation: softPulse 2s infinite ease-in-out;
}

/* موج نور متحرک */
.status-active::after {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        120deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.6) 50%,
        rgba(255,255,255,0) 100%
    );
    transform: skewX(-20deg);
    animation: shimmer 2.5s infinite;
}

/* Pulse ملایم */
@keyframes softPulse {
    0%   { box-shadow: 0 0 0 0 rgba(0,161,154,0.5); }
    70%  { box-shadow: 0 0 0 10px rgba(0,161,154,0); }
    100% { box-shadow: 0 0 0 0 rgba(0,161,154,0); }
}

/* حرکت موج نور */
@keyframes shimmer {
    0%   { left: -75%; }
    100% { left: 125%; }
}

/* فقط وضعیت فعال در ستون مناقصات زرد شود */
.tenders-column .status-active {
    background: linear-gradient(135deg, #9e1324, #9e1324);
    color: #ffffff;
    animation: tenderPulse 2s infinite ease-in-out;
}

/* موج نور برای زرد */
.tenders-column .status-active::after {
    background: linear-gradient(
        120deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.7) 50%,
        rgba(255,255,255,0) 100%
    );
}

/* pulse مخصوص زرد */
@keyframes tenderPulse {
    0%   { box-shadow: 0 0 0 0 rgba(247,201,72,0.6); }
    70%  { box-shadow: 0 0 0 10px rgba(247,201,72,0); }
    100% { box-shadow: 0 0 0 0 rgba(247,201,72,0); }
}

.column-title-tender,
.column-title-auction {
    text-align: center;
}

















/* استایل باکس‌های متنی فوتر با سایه */
footer .footer-col {
    border-radius: 20px;
    padding: 25px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    height: fit-content;
    margin-bottom: 20px;
    background-color: #ffffff6b;
}

/* افکت hover برای باکس‌ها */
footer .footer-col:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* تنظیم فاصله بین ستون‌ها */
.footer-grid {
    gap: 20px;
}

/* استایل المان‌های داخل باکس */
footer .footer-col h3 {
    color: #06316f;
    font-size: 1.3rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ffffff4f;
    position: relative;
}

footer .footer-col h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #fff, transparent);
}

footer .footer-col ul {
    list-style: none;
    padding: 0;
}

footer .footer-col ul li {
    margin-bottom: 12px;
}

footer .footer-col ul li a {
    color: #06316f;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    padding-right: 0;
}

footer .footer-col ul li a:hover {
    padding-right: 10px;
    color: #06316f;
}

footer .footer-col ul li a::before {
    content: '←';
    opacity: 0;
    position: absolute;
    right: -20px;
    transition: all 0.3s ease;
}

footer .footer-col ul li a:hover::before {
    opacity: 1;
    right: -5px;
}

/* استایل آیتم‌های تماس */
footer .contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    margin-bottom: 15px;
}

footer .contact-item i {
    width: 30px;
    height: 30px;
    <!--background: rgba(255, 255, 255, 0.2);-->
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #fff;
}

/* استایل لوگو در فوتر */
footer .footer-logo {
    text-align: center;
}



/* استایل کپی‌رایت */
footer .copyright {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 20px;
    border-radius: 15px;
    margin-top: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

footer .copyright p {
    margin-bottom: 5px;
    color: #fff;
}

footer .copyright small {
    color: rgba(255, 255, 255, 0.7);
}

/* نسخه ریسپانسیو برای موبایل */
@media (max-width: 768px) {
    footer .footer-col {
        padding: 20px 15px;
    }
    
    .footer-grid {
        gap: 15px;
    }
}

.footer-grid {
    display: flex;
    justify-content: center;   /* وسط صفحه */
    align-items: flex-start;
    gap: 60px;
}

.footer-col {
    width: 250px;              /* سایز ثابت و هماهنگ */
    text-align: center;        /* متن داخل هر ستون وسط */
}

.footer-col h3 {
    margin-bottom: 15px;
}

.footer-col ul {
    padding: 0;
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 8px;
}



.copyright {
    display: flex;
    justify-content: flex-end;   /* بره سمت راست */
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    text-align: right;
}

/* متن‌ها ستونی شوند */
.copyright p,
.copyright small {
    margin: 0;
}

/* یک کانتینر ستونی مجازی برای متن‌ها */
.copyright p,
.copyright small {
    display: block;
}

/* کل باکس پایین وسط صفحه */
.copyright {
    display: flex;
    justify-content: center;   /* وسط چین کل باکس */
    align-items: center;
    margin-top: 40px;
    gap: 20px;
    text-align: right;
}

/* لوگو سمت راست */
.copyright .custom-logo-link,
.copyright .footer-logo-circle {
    order: 2;
}

/* متن‌ها کنار لوگو و ستونی */
.copyright p,
.copyright small,
.copyright h3 {
    order: 1;
    display: block;
}

/* ساخت ستون برای متن‌ها */
.copyright {
    flex-direction: row-reverse; /* چون سایت RTL هست */
}

/* متن‌ها زیر هم */
.copyright p,
.copyright small {
    margin: 0;
}








/* نسخه ریسپانسیو برای تبلت (768px تا 1024px) */
@media (max-width: 1024px) {
    .footer-grid {
        gap: 40px;
    }
    
    .footer-col {
        width: 220px;
    }
    
    .copyright {
        gap: 15px;
        margin-top: 30px;
    }
}

/* نسخه ریسپانسیو برای موبایل (تا 768px) */
@media (max-width: 768px) {
    .footer-grid {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .footer-col {
        width: 100%;
        max-width: 350px;
        padding: 20px 15px;
    }
    
    footer .footer-col {
        padding: 20px 15px;
    }
    
    .footer-grid {
        gap: 15px;
    }
    
    .copyright {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        margin-top: 25px;
    }
    
    .copyright .custom-logo-link,
    .copyright .footer-logo-circle {
        order: 1;
        margin-bottom: 10px;
    }
    
    .copyright p,
    .copyright small,
    .copyright h3 {
        order: 2;
    }
    
    footer .copyright {
        padding: 15px;
    }
}

/* نسخه ریسپانسیو برای موبایل کوچک (تا 480px) */
@media (max-width: 480px) {
    .footer-col {
        max-width: 100%;
        padding: 15px 10px;
    }
    
    footer .footer-col {
        padding: 15px 10px;
    }
    
    footer .footer-col h3 {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    
    footer .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }
    
    footer .contact-item i {
        margin-bottom: 5px;
    }
    
    .copyright {
        padding: 15px 10px;
        margin-top: 20px;
    }
    
    footer .copyright {
        padding: 15px 10px;
    }
}


/* استایل عنوان "آخرین اخبار" */
.section-title {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 15px;
    font-weight: bold;
    border-bottom: 2px solid #ccc;
    padding-bottom: 5px;
}

/* محدود کردن عنوان خبر به یک خط */
.news-title {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
    color: #06316f !important;
}


/* محدود کردن عنوان خبر به دو خط */
.news-title2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}







/* استایل‌های اسلایدر شهدا */
.martyrs-slider-container {
    position: relative;
    padding: 0 30px;
}

.martyrs-slider-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.martyrs-slider-arrow:hover {
    background: #007bff !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(0,123,255,0.3) !important;
}

.martyr-slide {
    flex-shrink: 0;
}

.martyr-slide .day-card {
    height: 100%;
}

.martyr-slide .day-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.martyr-dot {
    transition: all 0.3s ease;
}

.martyr-dot:hover {
    transform: scale(1.2);
}

/* رسپانسیو */
@media (max-width: 1200px) {
    .martyrs-slider-container {
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .martyrs-slider-arrow {
        width: 35px !important;
        height: 35px !important;
        font-size: 16px !important;
    }
    
    .martyrs-prev {
        right: -15px !important;
    }
    
    .martyrs-next {
        left: -15px !important;
    }
}










/* استایل کارت شهدا با هاور */
.martyr-card {
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.martyr-card:hover .martyr-hover-overlay {
    opacity: 1 !important;
}

.martyr-hover-overlay {
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* استایل کارت شهدا با هاور */
.martyr-card {
    position: relative !important;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 1rem;
    overflow: hidden;
    height: 200px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.martyr-card a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.martyr-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.martyr-hover-overlay {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.4), transparent) !important;
    padding: 20px 15px !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
    z-index: 5 !important;
    pointer-events: none !important;
}

.martyr-card:hover .martyr-hover-overlay {
    opacity: 1 !important;
}

.martyr-hover-overlay div {
    color: white !important;
    font-weight: bold !important;
    font-size: 1.1rem !important;
    text-align: center !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5) !important;
}

/* اطمینان از عدم تداخل با day-overlay */
.martyr-card .day-overlay {
    display: none !important;
}

/* استایل‌های اسلایدر شهدا */
.martyrs-slider-container {
    position: relative;
    padding: 0 30px;
}

.martyrs-slider-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.martyrs-slider-arrow:hover {
    background: #06316f !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(5,56,77,0.3) !important;
}

.martyr-slide {
    flex-shrink: 0;
}

.martyr-dot {
    transition: all 0.3s ease;
}

.martyr-dot:hover {
    transform: scale(1.2);
}

/* رسپانسیو */
@media (max-width: 1200px) {
    .martyrs-slider-container {
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .martyrs-slider-arrow {
        width: 35px !important;
        height: 35px !important;
        font-size: 16px !important;
    }
    
    .martyrs-prev {
        right: -15px !important;
    }
    
    .martyrs-next {
        left: -15px !important;
    }
    
    .martyr-hover-overlay div {
        font-size: 1rem !important;
    }
}





















/* ----- آیکون روبیکا - نسخه لایت و دارک ----- */
body .rubika-icon {
    filter: none !important;
}


/* ----- آیکون‌های شبکه‌های اجتماعی - نسخه لایت و دارک ----- */
body .social-icon {
    filter: none !important;
}

/* ----- آیکون ایتا - کمی سفیدتر در حالت لایت ----- */
body .eitaa-icon {
    filter: brightness(2.5) !important;
}










/* =============================================
   نوار ابزار بالای هدر - شعار، آب و هوا، اوقات شرعی
   ============================================= */

.header-top-bar {
    background: #06316f;
    color: white;
    padding: 8px 0;
    font-size: 13px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    height: auto;
    min-height: 37px;
}

.top-bar-content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

/* شعار */
.header-slogan {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.9);
    font-weight: 500;
}

.header-slogan i {
    color: #ffb703;
    font-size: 14px;
}

/* ابزارها */
.header-utilities {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.utility-widget {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.9);
    font-size: 12px;
}

.utility-widget i {
    color: #ffb703;
    font-size: 13px;
}

.utility-widget .separator {
    margin: 0 5px;
    color: rgba(255,255,255,0.3);
}

/* ویجت تاریخ و ساعت */
.datetime-widget {
    min-width: 280px;
}

#currentDate {
    white-space: nowrap;
}

#currentTime {
    font-weight: bold;
    letter-spacing: 1px;
}

/* ویجت آب و هوا */
.weather-widget {
    min-width: 100px;
}

/* ویجت اوقات شرعی */
.prayer-widget {
    min-width: 130px;
}


/* =============================================
   واکنش‌گرایی - موبایل
   ============================================= */
@media (max-width: 768px) {
    .header-top-bar {
        padding: 8px 0;
        font-size: 11px;
        min-height: auto;
    }
    
    .top-bar-content {
        flex-direction: column;
        gap: 6px;
        padding: 5px 0;
    }
    
    .header-slogan {
        justify-content: center;
        text-align: center;
        width: 100%;
        font-size: 11px;
    }
    
    .header-utilities {
        justify-content: center;
        gap: 10px;
        flex-wrap: wrap;
        width: 100%;
    }
    
    .utility-widget {
        font-size: 10px;
        gap: 4px;
    }
    
    .datetime-widget {
        min-width: auto;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .weather-widget,
    .prayer-widget {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .header-utilities {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    
    .utility-widget {
        justify-content: center;
        font-size: 10px;
    }
    
    .datetime-widget {
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }
    
    #currentDate {
        font-size: 10px;
    }
    
    #currentTime {
        font-size: 10px;
    }
}

/* =============================================
   تنظیم فاصله هدر اصلی
   ============================================= */
#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transition: all 0.3s;
    background: rgb(229 219 219 / 50%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

#header.scrolled {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

#header.scrolled .header-top-bar {
    background: #06316f;
}

/* تنظیم content-spacer برای هدر دو بخشی */
.content-spacer {
    padding-top: 140px;
}

@media (max-width: 768px) {
    .content-spacer {
        padding-top: 140px;
    }
}

@media (max-width: 480px) {
    .content-spacer {
        padding-top: 180px;
    }
}










/* =============================================
   انیمیشن‌های صفحه اصلی
   ============================================= */

/* ----- تعریف Keyframes ----- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-60px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(60px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.7); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes bounceIn {
    0% { opacity: 0; transform: scale(0.3); }
    50% { opacity: 1; transform: scale(1.08); }
    70% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

@keyframes flipInY {
    from { opacity: 0; transform: perspective(600px) rotateY(90deg); }
    to { opacity: 1; transform: perspective(600px) rotateY(0); }
}

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(60px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* =============================================
   اعمال انیمیشن به المان‌ها
   ============================================= */

/* ----- باکس معرفی شهرضا ----- */
.city-intro-card {
    animation: fadeInUp 0.8s ease both;
}

/* ----- اسلایدر اخبار ----- */
.main-grid .news-slider {
    animation: fadeInRight 0.8s ease 0.2s both;
}

/* ----- کارت‌های تبلیغاتی ----- */
.promo-grid a:first-child {
    animation: fadeInUp 0.7s ease 0.3s both;
}

.promo-grid a:last-child {
    animation: fadeInUp 0.7s ease 0.5s both;
}

.promo-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.promo-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

/* ----- کارت شهردار ----- */
.manager-card {
    animation: fadeInLeft 0.8s ease 0.4s both;
}

.manager-avatar {
    transition: transform 0.5s ease;
}

.manager-card:hover .manager-avatar {
    transform: scale(1.1) rotate(5deg);
}

.manager-avatar img {
    transition: transform 0.5s ease;
}

.manager-card:hover .manager-avatar img {
    transform: scale(1.15);
}

/* ----- آخرین اخبار ----- */
.news-sidebar {
    animation: fadeInLeft 0.8s ease 0.6s both;
}

.news-sidebar .news-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease, padding-right 0.3s ease;
}

.news-sidebar .news-item:hover {
    transform: translateX(-8px);
    box-shadow: -5px 5px 15px rgba(0,0,0,0.1);
    padding-right: 10px;
}

.news-sidebar .news-item:nth-child(1) { animation: slideInUp 0.5s ease 0.7s both; }
.news-sidebar .news-item:nidden(2) { animation: slideInUp 0.5s ease 0.8s both; }
.news-sidebar .news-item:nth-child(3) { animation: slideInUp 0.5s ease 0.9s both; }
.news-sidebar .news-item:nth-child(4) { animation: slideInUp 0.5s ease 1s both; }
.news-sidebar .news-item:nth-child(5) { animation: slideInUp 0.5s ease 1.1s both; }

/* ----- سازمان‌های وابسته ----- */
.org-section h2 {
    animation: fadeInDown 0.7s ease both;
}

.org-item {
    transition: transform 0.4s ease;
}

.org-item:hover {
    transform: translateY(-10px);
}

.org-item:nth-child(1) { animation: zoomIn 0.5s ease 0.2s both; }
.org-item:nth-child(2) { animation: zoomIn 0.5s ease 0.3s both; }
.org-item:nth-child(3) { animation: zoomIn 0.5s ease 0.4s both; }
.org-item:nth-child(4) { animation: zoomIn 0.5s ease 0.5s both; }
.org-item:nth-child(5) { animation: zoomIn 0.5s ease 0.6s both; }
.org-item:nth-child(6) { animation: zoomIn 0.5s ease 0.7s both; }

.org-circle {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.org-item:hover .org-circle {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* ----- تب‌های محتوا ----- */
.tab-buttons {
    animation: fadeInDown 0.7s ease 0.2s both;
}

.tab-btn {
    transition: all 0.3s ease;
}

.tab-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.tab-btn:nth-child(1) { animation: bounceIn 0.6s ease 0.3s both; }
.tab-btn:nth-child(2) { animation: bounceIn 0.6s ease 0.4s both; }
.tab-btn:nth-child(3) { animation: bounceIn 0.6s ease 0.5s both; }
.tab-btn:nth-child(4) { animation: bounceIn 0.6s ease 0.6s both; }

/* کارت‌های داخل تب‌ها */
.tab-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.tab-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}

.tab-card:nth-child(1) { animation: flipInY 0.7s ease 0.4s both; }
.tab-card:nth-child(2) { animation: flipInY 0.7s ease 0.6s both; }
.tab-card:nth-child(3) { animation: flipInY 0.7s ease 0.8s both; }

.tab-card img {
    transition: transform 0.6s ease;
}

.tab-card:hover img {
    transform: scale(1.1);
}

.tab-read-more {
    transition: all 0.3s ease;
}

.tab-card:hover .tab-read-more {
    letter-spacing: 2px;
    color: #158f77;
}


/* ----- تب‌های ویدیو ----- */
.video-tabs {
    animation: fadeInDown 0.7s ease 0.2s both;
}

.video-tab {
    transition: all 0.3s ease;
}

.video-tab:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.video-tab:nth-child(1) { animation: bounceIn 0.5s ease 0.3s both; }
.video-tab:nth-child(2) { animation: bounceIn 0.5s ease 0.4s both; }
.video-tab:nth-child(3) { animation: bounceIn 0.5s ease 0.5s both; }
.video-tab:nth-child(4) { animation: bounceIn 0.5s ease 0.6s both; }

/* محتوای تب‌های ویدیو */
#videoContent .shahreza-info,
#videoContent .days-grid,
#videoContent .martyrs-slider-container {
    animation: fadeInUp 0.6s ease both;
}

#videoContent .stat-item {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

#videoContent .stat-item:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

/* ----- روزهای خاص ----- */
.day-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    animation: fadeInUp 0.6s ease both;
}

.day-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.day-card img {
    transition: transform 0.6s ease;
}

.day-card:hover img {
    transform: scale(1.15);
}

.day-card:nth-child(1) { animation-delay: 0.1s; }
.day-card:nth-child(2) { animation-delay: 0.2s; }
.day-card:nth-child(3) { animation-delay: 0.3s; }
.day-card:nth-child(4) { animation-delay: 0.4s; }
.day-card:nth-child(5) { animation-delay: 0.5s; }
.day-card:nth-child(6) { animation-delay: 0.6s; }

/* ----- شهدا ----- */
.martyr-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.martyr-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* ----- افکت‌های عمومی hover ----- */
.stat-item {
    transition: transform 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
}

.stat-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

/* ----- انیمیشن ورود تب‌ها ----- */
.tab-content.active {
    animation: fadeInUp 0.5s ease both;
}

/* ----- افکت shimmer برای کارت‌های خاص ----- */
.manager-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
    z-index: 1;
    pointer-events: none;
}

.manager-card:hover::before {
    left: 100%;
}

/* ----- انیمیشن ضربان برای لوگو ----- */
.logo-circle {
    animation: pulse 3s infinite ease-in-out;
}

/* ----- انیمیشن برای دکمه‌ها ----- */
.tab-btn.active {
    animation: pulse 2s infinite ease-in-out;
}

.video-tab.active {
    animation: pulse 2s infinite ease-in-out;
}

/* ----- ریسپانسیو - کاهش انیمیشن در موبایل ----- */
@media (max-width: 768px) {
    @keyframes fadeInUp {
        from { opacity: 0; transform: translateY(20px); }
        to { opacity: 1; transform: translateY(0); }
    }
    
    @keyframes fadeInLeft {
        from { opacity: 0; transform: translateX(-20px); }
        to { opacity: 1; transform: translateX(0); }
    }
    
    @keyframes fadeInRight {
        from { opacity: 0; transform: translateX(20px); }
        to { opacity: 1; transform: translateX(0); }
    }
    
    @keyframes zoomIn {
        from { opacity: 0; transform: scale(0.9); }
        to { opacity: 1; transform: scale(1); }
    }
}







/* کاهش حرکت برای کاربران حساس */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


















/* =============================================
   افکت هاور - دایره‌های خدمات شهروندی
   ============================================= */

.org-circle {
    width: 140px;
    height: 140px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    background: #e5e7eb;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: 3px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-color: #9e1324;
}

/* =============================================
   افکت هاور خدمات شهروندی - پر شدن از پایین
   ============================================= */

/* تصویر موقع هاور سفید بشه */
.org-circle img,
.org-circle .org-image {
    position: relative;
    z-index: 3;
    transition: all 0.4s ease;
}

.org-item:hover .org-circle img,
.org-item:hover .org-circle .org-image {
    filter: brightness(0) invert(1);
    transform: scale(1.15);
}

/* متن زیر دایره */
.org-title {
    font-size: 14px;
    font-weight: 500;
    color: #06316f;
    margin: 10px 0 0;
    transition: color 0.3s ease;
    line-height: 1.5;
}

.org-item:hover .org-title {
    color: #9e1324;
    font-weight: bold;
}



/* تصویر یا آیکون بمونه بالا */
.org-circle img,
.org-circle .org-image,
.org-circle .org-icon {
    position: relative;
    z-index: 3;
    transition: all 0.5s ease;
}

.org-item:hover .org-circle img,
.org-item:hover .org-circle .org-image {
    transform: scale(1.1);
    filter: brightness(1.2) drop-shadow(0 0 8px rgba(255,255,255,0.5));
}

.org-item:hover .org-circle .org-icon {
    color: white;
    transform: scale(1.2);
    filter: drop-shadow(0 0 8px rgba(255,255,255,0.5));
}


/* عنوان زیر دایره */
.org-title {
    transition: all 0.4s ease;
}

.org-item:hover .org-title {
    color: #06316f;
    font-weight: bold;
    transform: translateY(-3px);
    text-shadow: 0 2px 8px rgba(25, 52, 153, 0.2);
}

/* افکت موج آب */
@keyframes waveFill {
    0% { border-radius: 40% 60% 60% 40% / 60% 30% 70% 40%; }
    50% { border-radius: 60% 40% 40% 60% / 40% 60% 40% 60%; }
    100% { border-radius: 40% 60% 60% 40% / 60% 30% 70% 40%; }
}

.org-item:hover .org-circle::before {
    animation: waveFill 3s ease-in-out infinite;
}
/* =============================================
   هاور خدمات شهروندی - ساده و تمیز
   ============================================= */

/* بک‌گراند طوسی پیش‌فرض */
.org-circle {
    transition: background 0.3s ease;
}

/* هاور - شیشه‌ای زرشکی */
.org-item:hover .org-circle {
    background: rgba(158, 19, 36, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-color: rgba(255, 255, 255, 0.4);
    transform: none;
    box-shadow: 0 10px 30px rgba(158, 19, 36, 0.4), inset 0 0 30px rgba(255, 255, 255, 0.15);
}

/* تصویر سفید بشه */
.org-circle img,
.org-circle .org-image {
    position: relative;
    z-index: 3;
    transition: filter 0.3s ease;
}

.org-item:hover .org-circle img,
.org-item:hover .org-circle .org-image {
    filter: brightness(0) invert(1);
    transform: none;
}

/* متن زیر دایره */
.org-title {
    transition: color 0.3s ease;
}

.org-item:hover .org-title {
    color: #9e1324;
    font-weight: bold;
}
@media (max-width: 768px) {
    .org-item:hover .org-circle {
        transform: scale(1.05);
    }
    
    .org-item:hover .org-circle img,
    .org-item:hover .org-circle .org-image {
        transform: scale(1.08);
    }
}

/* دکمه تم در نوار بالا */
.header-utilities .theme-toggle {
    width: 32px;
    height: 0px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.2);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
    flex-shrink: 0;
    color: #ffb703;
    margin: 0 5px;
}

.header-utilities .theme-toggle:hover {
    background-color: rgba(255,255,255,0.3);
}

@media (max-width: 480px) {
    .header-utilities .theme-toggle {
        width: 28px;
        height: 28px;
        order: 10;
    }
}

/* مخفی کردن عکس کنار منو در موبایل */
@media (max-width: 992px) {
    .header-actions img {
        display: none !important;
    }
}



/* =============================================
   خدمات شهروندی - کارت با دایره نیمه‌بیرون
   ============================================= */



@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 50px 15px;
        margin-top: 50px;
    }
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 45px 10px;
        margin-top: 45px;
    }
}

/* لینک پوششی */
.service-cover-link {
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: 14px;
}

/* =============================================
   عنوان با خطوط طرفین - خدمات شهروندی
   ============================================= */
.section-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 2rem;
}

.section-title-wrapper h2 {
    font-size: 1.875rem;
    font-weight: bold;
    color: #06316f;
    white-space: nowrap;
    margin: 0;
}

.section-title-line {
    flex: 1;
    max-width: 1200px;
    height: 3px;
    background: linear-gradient(to right, transparent, #06316f, transparent);
    border-radius: 3px;
}

/* رسپانسیو */
@media (max-width: 768px) {
    .section-title-wrapper {
        gap: 15px;
    }
    
    .section-title-wrapper h2 {
        font-size: 1.5rem;
    }
    
    .section-title-line {
        max-width: 60px;
    }
}

@media (max-width: 480px) {
    .section-title-wrapper {
        gap: 10px;
    }
    
    .section-title-wrapper h2 {
        font-size: 1.25rem;
    }
    
    .section-title-line {
        max-width: 40px;
        height: 2px;
    }
}




/* =============================================
   خدمات شهروندی - نسخه نهایی با عکس بک‌گراند
   ============================================= */

.services-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 30px;
    margin-top: 10px;
    padding: 0 10px;
}

@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 50px 15px;
        margin-top: 50px;
    }
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 45px 10px;
        margin-top: 45px;
    }
}

.service-card-item {
    position: relative;
    border-radius: 24px;
    padding: 55px 20px 25px;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    min-height: 10px;
    justify-content: flex-end;
    border: 2px solid rgba(255, 255, 255, 0.3);
    margin-top: 50px;
}

/* فقط عکس و لایه تیره overflow hidden باشن */
.service-bg-image,
.service-card-item::after {
    overflow: hidden;
    border-radius: 24px;
}

/* لینک پوششی - border-radius باید دقیق باشه */
.service-cover-link {
    border-radius: 24px;
}

/* ----- عکس بک‌گراند ----- */
.service-card-item .service-bg-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    transition: all 0.5s ease;
    border-radius: 24px;
    color:white;
}

/* لینک پوششی */
.service-cover-link {
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: 24px;
}

/* =============================================
   آیکون دایره‌ای
   ============================================= */
.service-card-icon {
    position: absolute;
    top: -55px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    width: 90px;
    height: 90px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.2),
        0 0 0 8px rgba(255, 255, 255, 0.5);
    overflow: hidden;
}

/* لایه پرکننده از پایین */
.service-card-icon::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(to top, #9e1324, #c41e3a);
    transition: height 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1;
}

.service-card-item:hover .service-card-icon::before {
    height: 100%;
}

.service-card-icon img {
    position: relative;
    z-index: 2;
    width: 55px;
    height: 55px;
    object-fit: contain;
    transition: all 0.4s ease;
}

/* =============================================
   عنوان
   ============================================= */
.service-card-title {
    position: relative;
    z-index: 1;
    font-size: 15px;
    font-weight: 700;
    color: white;
    transition: all 0.4s ease;
    margin-top: 8px;
    padding-bottom: 5px;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.5);
}

/* =============================================
   افکت هاور
   ============================================= */

.service-card-item:hover {
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-10px);
    box-shadow: 
        0 30px 60px rgba(158, 19, 36, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.3);
}

/* آیکون - بزرگتر و درخشان */
.service-card-item:hover .service-card-icon {
    width: 95px;
    height: 95px;
    top: -60px;
    box-shadow: 
        0 20px 45px rgba(158, 19, 36, 0.5),
        0 0 0 12px rgba(158, 19, 36, 0.15),
        0 0 0 8px rgba(255, 255, 255, 0.4);
}

/* آیکون داخل - سفید و بزرگتر */
.service-card-item:hover .service-card-icon img {
    width: 65px;
    height: 65px;
    filter: brightness(0) invert(1);
}

/* عنوان - بزرگتر و سفید */
.service-card-item:hover .service-card-title {
    color: white;
    font-size: 17px;
    font-weight: 800;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.4);
}

/* =============================================
   انیمیشن ورود
   ============================================= */
.service-card-item {
    animation: fadeInUp 0.6s ease both;
}

.service-card-item:nth-child(1) { animation-delay: 0.1s; }
.service-card-item:nth-child(2) { animation-delay: 0.2s; }
.service-card-item:nth-child(3) { animation-delay: 0.3s; }
.service-card-item:nth-child(4) { animation-delay: 0.4s; }
.service-card-item:nth-child(5) { animation-delay: 0.5s; }
.service-card-item:nth-child(6) { animation-delay: 0.6s; }

/* =============================================
   تب‌های ویدیو (عمومی) - دکمه‌های مدرن و شکیل
   ============================================= */

.video-tabs {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 35px;
    flex-wrap: wrap;
    padding: 8px;
    background: rgba(229, 231, 235, 0.5);
    border-radius: 60px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    max-width: fit-content;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.video-tab {
    padding: 16px 36px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-weight: 600;
    font-size: 16px;
    background: transparent;
    color: #06316f;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

/* افکت هاور */
.video-tab:hover {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(25, 52, 153, 0.2);
    transform: translateY(-3px);
    box-shadow: 
        0 8px 25px rgba(25, 52, 153, 0.15),
        0 2px 8px rgba(0, 0, 0, 0.06);
    color: #06316f;
}

/* حالت فعال */
.video-tab.active {
    background: linear-gradient(135deg, #06316f 0%, #1a4bab 100%);
    color: white;
    border-color: transparent;
    box-shadow: 
        0 10px 30px rgba(25, 52, 153, 0.35),
        0 4px 12px rgba(25, 52, 153, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* درخشش روی دکمه فعال */
.video-tab.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.video-tab.active:hover::before {
    left: 100%;
}

/* ضربان ملایم برای دکمه فعال */
.video-tab.active {
    animation: videoTabPulse 3s infinite ease-in-out;
}

@keyframes videoTabPulse {
    0%, 100% { box-shadow: 0 10px 30px rgba(25, 52, 153, 0.35), 0 4px 12px rgba(25, 52, 153, 0.2); }
    50% { box-shadow: 0 15px 40px rgba(25, 52, 153, 0.5), 0 6px 16px rgba(25, 52, 153, 0.3); }
}

/* =============================================
   رسپانسیو - تب ویدیو
   ============================================= */
@media (max-width: 768px) {
    .video-tabs {
        gap: 10px;
        padding: 6px;
        border-radius: 50px;
        width: 100%;
        justify-content: center;
    }
    
    .video-tab {
        padding: 12px 22px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .video-tabs {
        gap: 6px;
        padding: 5px;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start;
        border-radius: 40px;
    }
    
    .video-tab {
        padding: 10px 16px;
        font-size: 12px;
        flex-shrink: 0;
    }
}


/* =============================================
   تب‌های محتوا - دکمه‌های مدرن و شکیل
   ============================================= */

.tab-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 35px;
    flex-wrap: wrap;
    padding: 8px;
    background: rgba(229, 231, 235, 0.5);
    border-radius: 60px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    max-width: fit-content;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.tab-btn {
    padding: 14px 32px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-weight: 600;
    font-size: 15px;
    background: transparent;
    color: #06316f;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

/* افکت هاور */
.tab-btn:hover {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(25, 52, 153, 0.2);
    transform: translateY(-3px);
    box-shadow: 
        0 8px 25px rgba(25, 52, 153, 0.15),
        0 2px 8px rgba(0, 0, 0, 0.06);
    color: #06316f;
}

/* حالت فعال */
.tab-btn.active {
    background: linear-gradient(135deg, #06316f 0%, #1a4bab 100%);
    color: white;
    border-color: transparent;
    box-shadow: 
        0 10px 30px rgba(25, 52, 153, 0.35),
        0 4px 12px rgba(25, 52, 153, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* درخشش روی دکمه فعال */
.tab-btn.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.tab-btn.active:hover::before {
    left: 100%;
}

/* ضربان ملایم برای دکمه فعال */
.tab-btn.active {
    animation: tabPulse 3s infinite ease-in-out;
}

@keyframes tabPulse {
    0%, 100% { box-shadow: 0 10px 30px rgba(25, 52, 153, 0.35), 0 4px 12px rgba(25, 52, 153, 0.2); }
    50% { box-shadow: 0 15px 40px rgba(25, 52, 153, 0.5), 0 6px 16px rgba(25, 52, 153, 0.3); }
}


/* =============================================
   رسپانسیو
   ============================================= */
@media (max-width: 768px) {
    .tab-buttons {
        gap: 10px;
        padding: 6px;
        border-radius: 50px;
        width: 100%;
        justify-content: center;
    }
    
    .tab-btn {
        padding: 12px 20px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .tab-buttons {
        gap: 6px;
        padding: 5px;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start;
        border-radius: 40px;
    }
    
    .tab-btn {
        padding: 10px 16px;
        font-size: 12px;
        flex-shrink: 0;
    }
}


/* ===== ORGANIZATIONS TAB - LIFE STYLE ===== */
#tab-organizations .life-item::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

#tab-organizations .life-item:hover::before {
    transform: scaleX(1);
}

#tab-organizations .life-item:hover {
    transform: scale(1.03);
}

#tab-organizations .life-item:hover .life-item__icon {
    background: rgba(255,255,255,0.3);
    transform: scale(1.15) rotate(8deg);
    box-shadow: 0 15px 30px rgba(0,0,0,0.25);
}

/* واکنش‌گرایی */
@media (max-width: 767px) {
    #tab-organizations .life-sec__container {
        height: 360px;
    }
    
    #tab-organizations .life-item span {
        font-size: 0.75rem;
    }
    
    #tab-organizations .life-item__icon {
        width: 55px;
        height: 55px;
        font-size: 1.8rem;
    }
}

@media (max-width: 575px) {
    #tab-organizations .life-sec__list {
        flex-wrap: wrap;
    }
    
    #tab-organizations .life-item {
        flex: 1 1 33.333%;
        min-width: 100px;
    }
    
    #tab-organizations .life-sec__container {
        height: auto;
        min-height: 400px;
    }
}


/* ===== سازمان‌ها - بخش جداگانه ===== */
.life-item::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #FFB403;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.life-item:hover::before {
    transform: scaleX(1);
}

.life-item:hover {
    transform: scale(1.03);
}

.life-item:hover .life-item__icon {
    background: rgba(255,255,255,0.3) !important;
    transform: scale(1.15) rotate(8deg);
    box-shadow: 0 15px 30px rgba(0,0,0,0.25);
}

/* واکنش‌گرایی */
@media (max-width: 767px) {
    .life-sec__container {
        height: 360px !important;
    }
    
    .life-item span {
        font-size: 0.75rem !important;
    }
    
    .life-item__icon {
        width: 55px !important;
        height: 55px !important;
        font-size: 1.8rem !important;
    }
}

@media (max-width: 575px) {
    .life-sec__list {
        flex-wrap: wrap;
    }
    
    .life-item {
        flex: 1 1 33.333% !important;
        min-width: 100px;
    }
    
    .life-sec__container {
        height: auto !important;
        min-height: 400px;
    }
}


/* =============================================
   واکنش‌گرایی برای سازمان‌ها و معاونت‌ها
   ============================================= */

/* تبلت */
@media (max-width: 992px) {
    .life-sec__container {
        height: auto !important;
    }

    .life-sec__list {
        flex-wrap: wrap;
    }

    .life-item {
        flex: 1 1 33.333% !important;
        min-width: 120px;
        height: 180px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .life-item:nth-child(n+4) {
        border-bottom: none;
    }

    .life-item__icon {
        width: 65px !important;
        height: 65px !important;
        font-size: 2rem !important;
    }

    .life-item span {
        font-size: 0.9rem !important;
    }    
}

/* موبایل بزرگ */
@media (max-width: 768px) {
    .main-grid {
        grid-template-columns: 1fr !important;
    }
    
    .tab-grid {
        grid-template-columns: 1fr !important;
    }
    
    .video-tabs {
        padding: 5px;
        flex-wrap: wrap;
        justify-content: center;
        border-radius: 40px;
    }
    
    .video-tab {
        padding: 10px 18px;
        font-size: 13px;
    }
    
    .life-item {
        flex: 1 1 50% !important;
        height: 160px;
    }
    
    .life-item:nth-child(n+3) {
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .life-item:nth-child(n+5) {
        border-bottom: none;
    }
        
    .services-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 45px 15px;
    }
}

/* موبایل کوچک */
@media (max-width: 480px) {
    .life-item {
        flex: 1 1 100% !important;
        flex-direction: row !important;
        justify-content: flex-start !important;
        padding: 0 25px !important;
        height: 90px;
        gap: 20px !important;
        border-left: none !important;
        border-bottom: 1px solid rgba(255,255,255,0.15);
    }
    
    .life-item:last-child {
        border-bottom: none;
    }
    
    .life-item__icon {
        width: 50px !important;
        height: 50px !important;
        flex-shrink: 0;
    }
    
    .life-item span {
        font-size: 1rem !important;
    }
    
    .tab-buttons, .video-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
    }
    
    .tab-btn, .video-tab {
        flex-shrink: 0;
        font-size: 12px;
        padding: 8px 16px;
    }
    
    .services-grid {
        grid-template-columns: 1fr 1fr !important;
    }
}


/* =============================================
   واکنش‌گرایی - صفحه اصلی
   ============================================= */

/* استایل‌های پایه برای اسلایدر */
.slider-container {
    position: relative;
    overflow: hidden;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    top: 0;
    left: 0;
}

.slide.active {
    opacity: 1;
    position: relative;
}

/* تبلت */
@media (max-width: 992px) {
    .header-actions img {
        display: none !important;
    }
    
    .logo-text h1 {
        font-size: 1rem;
    }
    
    .logo-text p {
        font-size: 0.75rem;
    }

    .life-sec__container {
        height: auto !important;
    }

    .life-sec__list {
        flex-wrap: wrap;
    }

    .life-item {
        flex: 1 1 33.333% !important;
        min-width: 120px;
        height: 180px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .life-item:nth-child(n+4) {
        border-bottom: none;
    }

    .life-item__icon {
        width: 65px !important;
        height: 65px !important;
        font-size: 2rem !important;
    }

    .life-item span {
        font-size: 0.9rem !important;
    }
    
}

/* موبایل بزرگ */
@media (max-width: 768px) {
    /* تنظیم فضای خالی هدر تا محتوا زیر منو نره */
    .content-spacer {
        padding-top: 120px !important;
    }
    
    /* هدر */
    .header-inner {
        flex-wrap: wrap;
        padding: 0.5rem 1rem;
        height: auto;
    }
    
    .logo-area {
        width: auto;
        gap: 0.5rem;
    }
    
    .logo-circle {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .logo-text h1 {
        font-size: 0.9rem;
    }
    
    /* اسلایدر اصلی */
    .hero-slider {
        height: 50vh;
        min-height: 300px;
    }

    .main-grid {
        grid-template-columns: 1fr !important;
        padding: 1.5rem 0;
    }
    
    .news-slider {
        height: 350px;
    }
    
    .promo-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    .tab-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    
    .tab-buttons, .video-tabs {
        padding: 5px;
        gap: 8px;
        border-radius: 40px;
    }
    
    .tab-btn, .video-tab {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 45px 15px;
    }
    
    .service-card-item {
        padding: 45px 15px 20px;
    }
    
    .service-card-icon {
        width: 70px;
        height: 70px;
        top: -40px;
    }
    
    .service-card-icon img {
        width: 40px;
        height: 40px;
    }
    
    .service-card-title {
        font-size: 13px;
    }
    
    .life-item {
        flex: 1 1 50% !important;
        height: 160px;
    }
    
    .life-item:nth-child(n+3) {
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .life-item:nth-child(n+5) {
        border-bottom: none;
    }
       
    /* دکمه‌های اجتماعی */
    #socialContainer {
        left: 5px !important;
    }
    
    #socialContainer > div {
        width: 50px !important;
        padding: 30px 10px !important;
        gap: 15px !important;
    }
    
    #socialContainer a {
        width: 40px !important;
        height: 40px !important;
    }
    
    #socialContainer img {
        width: 28px !important;
        height: 28px !important;
    }
    
    /* فوتر */
    .footer-grid {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .footer-col {
        width: 100%;
        max-width: 400px;
    }
    
    .copyright {
        flex-direction: column;
        text-align: center;
        margin-top: 30px;
    }
}

/* موبایل کوچک */
@media (max-width: 480px) {
    .content-spacer {
        padding-top: 140px !important;
    }
    
    .header-top-bar {
        font-size: 10px;
    }
    
    .top-bar-content {
        flex-direction: column;
        gap: 4px;
    }
    
    .header-utilities {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        font-size: 10px;
    }
    
    .hero-slider {
        height: 40vh;
        min-height: 250px;
    }
    
    .news-slider {
        height: 280px;
    }
    
    .promo-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 40px 10px;
    }
    
    .service-card-icon {
        width: 60px;
        height: 60px;
        top: -35px;
    }
    
    .service-card-icon img {
        width: 35px;
        height: 35px;
    }
    
    .service-card-title {
        font-size: 12px;
    }
    
    .life-item {
        flex: 1 1 100% !important;
        flex-direction: row !important;
        justify-content: flex-start !important;
        padding: 0 20px !important;
        height: 80px;
        gap: 15px !important;
        border-left: none !important;
        border-bottom: 1px solid rgba(255,255,255,0.15);
    }
    
    .life-item:last-child {
        border-bottom: none;
    }
    
    .life-item__icon {
        width: 45px !important;
        height: 45px !important;
        flex-shrink: 0;
    }
    
    .life-item__icon img {
        width: 25px !important;
        height: 25px !important;
    }
    
    .life-item span {
        font-size: 0.9rem !important;
    }
    
    .tab-buttons, .video-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        padding: 5px;
        border-radius: 30px;
    }
    
    .tab-btn, .video-tab {
        flex-shrink: 0;
        font-size: 12px;
        padding: 8px 14px;
    }
    
    .deputy-title {
        font-size: 1rem;
    }
    
    .deputy-icon {
        font-size: 2rem;
    }
    
    /* دکمه‌های اجتماعی */
    #socialContainer {
        left: 2px !important;
    }
    
    #socialContainer > div {
        width: 40px !important;
        padding: 20px 5px !important;
        gap: 12px !important;
        border-radius: 20px;
    }
    
    #socialContainer a {
        width: 35px !important;
        height: 35px !important;
    }
    
    #socialContainer img {
        width: 24px !important;
        height: 24px !important;
    }
    
    /* فوتر */
    .footer-col h3 {
        font-size: 1.1rem;
    }
    
    .footer-col ul li a {
        font-size: 0.9rem;
    }
}






/* =============================================
   دکمه‌های شناور شبکه‌های اجتماعی - ریسپانسیو
   ============================================= */
#socialContainer {
    transition: all 0.3s ease !important;
}

#socialContainer > div {
    transition: all 0.3s ease !important;
}

#socialContainer a {
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

#socialContainer a:hover {
    transform: translateY(-8px) scale(1.15) !important;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3)) !important;
}

#socialContainer a:hover img {
    transform: rotate(360deg) !important;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

#socialContainer img {
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

/* موبایل */
@media (max-width: 768px) {
    #socialContainer {
        left: 5px !important;
    }
    
    #socialContainer > div {
        width: 50px !important;
        padding: 30px 10px !important;
        gap: 15px !important;
    }
    
    #socialContainer a {
        width: 40px !important;
        height: 40px !important;
    }
    
    #socialContainer img {
        width: 28px !important;
        height: 28px !important;
    }
}

/* موبایل کوچک */
@media (max-width: 480px) {
    #socialContainer {
        left: 2px !important;
    }
    
    #socialContainer > div {
        width: 40px !important;
        padding: 20px 5px !important;
        gap: 12px !important;
        border-radius: 20px;
    }
    
    #socialContainer a {
        width: 35px !important;
        height: 35px !important;
    }
    
    #socialContainer img {
        width: 24px !important;
        height: 24px !important;
    }
}



/* =============================================
   منوی همبرگری و هدر - واکنش‌گرا
   ============================================= */
@media (max-width: 992px) {
    #header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
    }
    
    .hamburger-menu {
        display: flex;
        order: 3;
    }
    
    .header-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: white;
        box-shadow: -5px 0 20px rgba(0,0,0,0.15);
        transition: right 0.3s ease;
        margin: 0;
        padding: 80px 1rem 2rem;
        overflow-y: auto;
        z-index: 999;
        display: block;
    }
    
    
    .header-nav.active {
        right: 0;
    }
    
    .nav-links {
        flex-direction: column;
        align-items: stretch;
        height: auto;
        gap: 0;
    }
    
    .nav-links li {
        width: 100%;
        border-bottom: 1px solid #e5e7eb;
    }
    
    .nav-links a {
        padding: 1rem;
        display: flex;
        justify-content: space-between;
    }
    
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 998;
    }
    
    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    body.menu-open {
        overflow: hidden;
    }
}

@media (min-width: 993px) {
    .menu-overlay {
        display: none !important;
    }
}





/* =============================================
   گرید اصلی
   ============================================= */
.main-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 25px;
    padding: 25px 0;
    align-items: start;
}

.main-col {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* =============================================
   کارت شهردار
   ============================================= */
.mayor-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.mayor-card-img-wrap {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.mayor-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
    transition: transform 0.6s ease;
}

.mayor-card:hover .mayor-card-img-wrap img {
    transform: scale(1.05);
}

.mayor-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, 
        rgba(0,0,0,0.9) 0%, 
        rgba(0,0,0,0.4) 40%, 
        rgba(0,0,0,0.1) 70%, 
        transparent 100%);
}

.mayor-card-info {
    position: absolute;
    bottom: 25px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 3;
}

.mayor-card-label {
    display: block;
    color: #931721;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.mayor-card-name {
    display: block;
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}

.mayor-card-links {
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: #f1f5f9;
    padding: 12px;
}

.mayor-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: #fff;
    text-decoration: none;
    color: #1a1a2e;
    font-size: 14px;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mayor-link::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #06316f;
    border-radius: 0 3px 3px 0;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.mayor-link:hover::before {
    transform: scaleY(1);
}

.mayor-link:hover {
    background: #f8fafc;
    transform: translateX(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.mayor-link-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.mayor-link:hover .mayor-link-icon {
    transform: scale(1.1) rotate(-5deg);
}

/* =============================================
   آخرین اخبار
   ============================================= */
.news-list-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    flex: 1;
}

.news-list-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #06316f, #1a4bab);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}

.news-list-header i {
    color: #ffb703;
    font-size: 16px;
}

.news-list-items {
    padding: 5px 0;
}

.news-list-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 20px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}

.news-list-item:last-child {
    border-bottom: none;
}

.news-list-item:hover {
    background: #f8fafc;
    padding-right: 24px;
}

.news-list-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #9e1324;
    flex-shrink: 0;
    margin-top: 6px;
    transition: all 0.3s ease;
}

.news-list-item:hover .news-list-dot {
    background: #ffb703;
    box-shadow: 0 0 0 6px rgba(255,183,3,0.2);
}

.news-list-content {
    flex: 1;
    min-width: 0;
}

.news-list-content h4 {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a2e;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 5px;
    line-height: 1.7;
}



.news-list-item:hover .news-list-content h4 {
    color: #9e1324;
}

.news-list-date {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
}

/* =============================================
   اسلایدر اخبار
   ============================================= */
.news-slider-wrap {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.news-slider {
    position: relative;
    height: 427px;
    overflow: hidden;
}

.news-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
    transform: scale(1.02);
}

.news-slide.active {
    opacity: 1;
    transform: scale(1);
    position: relative;
    z-index: 2;
}

.news-slide-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: #fff;
    position: relative;
}

.news-slide-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 6s ease;
}

.news-slide.active .news-slide-img {
    transform: scale(1.08);
}

.news-slide-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70%;
    background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.2), transparent);
    pointer-events: none;
    z-index: 1;
}

.news-slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 30px 30px;
    z-index: 3;
}

.news-slide-badge {
    display: inline-block;
    background: #9e1324;
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 14px;
    letter-spacing: 0.5px;
}

.news-slide-caption h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

.news-slide-caption p {
    font-size: 13px;
    color: rgba(255,255,255,0.85);
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* فلش‌ها */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-arrow:hover {
    background: rgba(255,255,255,0.4);
    transform: translateY(-50%) scale(1.1);
}

.slider-prev {
    right: 15px;
}

.slider-next {
    left: 15px;
}

/* دات‌ها */
.slider-dots {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: #ffb703;
    width: 24px;
    border-radius: 4px;
}

.slider-dot:hover {
    background: #fff;
}

/* =============================================
   گالری بدون کپشن
   ============================================= */
.news-gallery-strip {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 20px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.gallery-item {
    flex: 0 0 140px;
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    margin: 0 5px;
    transition: all 0.35s ease;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.gallery-item:first-child {
    margin-right: 5px;
}

.gallery-item:last-child {
    margin-left: 5px;
}

.gallery-item.active {
    border-color: #06316f;
    box-shadow: 0 8px 25px rgba(25,52,153,0.25);
    transform: translateY(-5px);
    z-index: 3;
}

.gallery-item:hover {
    border-color: #cbd5e1;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    z-index: 2;
}

.gallery-item-img-wrap {
    height: 90px;
    overflow: hidden;
}

.gallery-item-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-item-img {
    transform: scale(1.08);
}

/* =============================================
   کارت‌های تبلیغاتی - زیر گالری
   ============================================= */
.promo-cards-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.promo-card-h {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    height: 250px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    text-decoration: none;
    transition: all 0.35s ease;
}

.promo-card-h:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.18);
}

.promo-card-h img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.promo-card-h:hover img {
    transform: scale(1.08);
}

.promo-card-h-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
    width: 100%;
    height: 100%;
    background: linear-gradient(to left, rgba(0,0,0,0.8), rgba(0,0,0,0.2));
    color: #fff;
}

.promo-card-h-content i {
    font-size: 30px;
    color: #ffb703;
    flex-shrink: 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.4);
    transition: transform 0.3s ease;
}

.promo-card-h:hover .promo-card-h-content i {
    transform: scale(1.2) rotate(-10deg);
}

.promo-card-h-content strong {
    display: block;
    font-size: 16px;
    margin-bottom: 4px;
    font-weight: 700;
}

.promo-card-h-content small {
    font-size: 12px;
    opacity: 0.9;
}

/* =============================================
   رسپانسیو
   ============================================= */
@media (max-width: 1100px) {
    .main-grid {
        grid-template-columns: 280px 1fr;
        gap: 20px;
    }
    
    .mayor-card-img-wrap {
        height: 250px;
    }
    
    .news-slider {
        height: 370px;
    }
    
    .gallery-item {
        flex: 0 0 125px;
    }
    
    .gallery-item-img-wrap {
        height: 80px;
    }
    
    .promo-card-h {
        height: 105px;
    }
}

@media (max-width: 992px) {
    .main-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .main-col-right {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
    .mayor-card-img-wrap {
        height: 280px;
    }
    
    .news-slider {
        height: 350px;
    }
    
    .promo-card-h {
        height: 100px;
    }
}

@media (max-width: 768px) {
    .main-grid {
        padding: 15px 0;
        gap: 15px;
    }
    
    .main-col-right {
        grid-template-columns: 1fr;
    }
    
    .mayor-card-img-wrap {
        height: 250px;
    }
    
    .news-slider {
        height: 300px;
    }
    
    .news-slide-caption {
        padding: 30px 20px 20px;
    }
    
    .news-slide-caption h2 {
        font-size: 1.3rem;
    }
    
    .slider-dots {
        bottom: 70px;
    }
    
    .gallery-item {
        flex: 0 0 110px;
    }
    
    .gallery-item-img-wrap {
        height: 70px;
    }
    
    .promo-cards-row {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    
    .promo-card-h {
        height: 90px;
        border-radius: 14px;
    }
    
    .promo-card-h-content {
        padding: 15px;
        gap: 12px;
    }
    
    .promo-card-h-content i {
        font-size: 24px;
    }
    
    .promo-card-h-content strong {
        font-size: 14px;
    }
    
    .promo-card-h-content small {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .main-grid {
        gap: 15px;
    }
    
    .main-col {
        gap: 15px;
    }
    
    .mayor-card-img-wrap {
        height: 220px;
    }
    
    .mayor-card-info {
        bottom: 20px;
    }
    
    .mayor-card-name {
        font-size: 16px;
    }
    
    .mayor-link {
        padding: 12px 15px;
        font-size: 13px;
    }
    
    .mayor-link-icon {
        width: 36px;
        height: 36px;
    }
    
    .news-slider {
        height: 240px;
    }
    
    .news-slide-caption h2 {
        font-size: 1.1rem;
    }
    
    .news-slide-caption p {
        display: none;
    }
    
    .news-slide-caption {
        padding: 25px 15px 20px;
    }
    
    .slider-dots {
        bottom: 60px;
    }
    
    .slider-arrow {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .gallery-item {
        flex: 0 0 95px;
        border-radius: 10px;
    }
    
    .gallery-item-img-wrap {
        height: 60px;
    }
    
    .promo-cards-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .promo-card-h {
        height: 80px;
        border-radius: 12px;
    }
    
    .promo-card-h-content {
        padding: 12px;
        gap: 10px;
    }
    
    .promo-card-h-content i {
        font-size: 20px;
    }
    
    .promo-card-h-content strong {
        font-size: 13px;
        margin-bottom: 2px;
    }
    
    .promo-card-h-content small {
        font-size: 10px;
    }
}

@media (max-width: 360px) {
    .gallery-item {
        flex: 0 0 80px;
    }
    
    .gallery-item-img-wrap {
        height: 55px;
    }
}
























/*    شهرضا شناسی - بخش جداگانه*/
.city-explore-section {
    padding: 60px 0;
    background: linear-gradient(180deg, #f8f4ed 0%, #f0ebe0 100%);
    position: relative;
    overflow: hidden;
}

/* پترن اسلیمی پس‌زمینه */
.city-explore-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('assets/images/pattern-bg.png');
    background-size: cover;
    opacity: 0.03;
    pointer-events: none;
}

/* =============================================
   گرید اصلی
   ============================================= */
.city-explore-grid {
    display: grid;
    grid-template-columns: 1fr 480px;
    gap: 50px;
    align-items: start;
    position: relative;
    z-index: 1;
}

/* =============================================
   ستون گالری - افکت پاسور
   ============================================= */
.city-explore-gallery {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.stacked-cards-container {
    position: relative;
    height: 550px;
    perspective: 1500px;
}

.stacked-card {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 75%;
    max-width: 420px;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: default;
}

.stacked-card.active {
    cursor: pointer;
}

/* انیمیشن رفتن به عقب */
.stacked-card.moving-to-back {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1 !important;
}

/* انیمیشن اومدن به جلو */
.stacked-card.moving-to-front {
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 20 !important;
    animation: cardGlow 0.5s ease;
}

@keyframes cardGlow {
    0% { filter: brightness(1); }
    50% { filter: brightness(1.3) drop-shadow(0 0 30px rgba(255,183,3,0.6)); }
    100% { filter: brightness(1); }
}

/* کارت داخلی */
.stacked-card-inner {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    aspect-ratio: 4/3;
    border: 3px solid rgba(255,255,255,0.4);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    background: #fff;
}

.stacked-card.active .stacked-card-inner {
    border-color: #ffb703;
    box-shadow: 0 25px 60px rgba(158,19,36,0.35), 0 0 0 4px rgba(255,183,3,0.4);
    transform: scale(1);
}

.stacked-card-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.stacked-card.active .stacked-card-inner img {
    transform: scale(1.03);
}

.stacked-card-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px 20px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.95), rgba(0,0,0,0.4), transparent);
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.stacked-card:not(.active) .stacked-card-label {
    opacity: 0;
    transform: translateY(10px);
}

.stacked-card.active .stacked-card-label {
    opacity: 1;
    transform: translateY(0);
}

.stacked-card-label i {
    color: #ffb703;
    font-size: 18px;
}

/* دکمه‌های ناوبری */
.stacked-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
}

.stacked-nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #06316f;
    background: #fff;
    color: #06316f;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.stacked-nav-btn:hover {
    background: #06316f;
    color: #fff;
    border-color: #06316f;
    transform: scale(1.15);
    box-shadow: 0 8px 25px rgba(25,52,153,0.4);
}

.stacked-nav-btn:active {
    transform: scale(0.95);
}

.stacked-counter {
    font-size: 16px;
    font-weight: 600;
    color: #06316f;
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 50px;
    justify-content: center;
}


#stackedCurrent {
    font-size: 24px;
    font-weight: 800;
    color: #9e1324;
    transition: all 0.3s ease;
}

.stacked-separator {
    color: #94a3b8;
}

/* =============================================
   ستون محتوا
   ============================================= */
.city-explore-content {
    position: sticky;
    top: 120px;
}

.city-explore-card {
    background: #fff;
    border-radius: 24px;
    padding: 40px 35px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    border: 1px solid rgba(25,52,153,0.08);
}


.city-explore-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #06316f, #1a4bab);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: #fff;
    font-size: 28px;
    box-shadow: 0 10px 30px rgba(25,52,153,0.3);
}

.city-explore-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #f1f5f9;
}

.city-explore-stats .stat-item {
    text-align: center;
    padding: 15px 8px;
    background: #f8fafc;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.city-explore-stats .stat-item:hover {
    background: #06316f;
    transform: translateY(-5px);
}

.city-explore-stats .stat-item:hover .stat-number,
.city-explore-stats .stat-item:hover .stat-label {
    color: #fff;
}

.city-explore-stats .stat-number {
    font-size: 22px;
    font-weight: 800;
    color: #06316f;
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

.city-explore-stats .stat-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
    transition: color 0.3s ease;
}

.city-explore-text {
    margin-bottom: 30px;
}

.city-explore-text p {
    color: #4b5563;
    line-height: 2;
    font-size: 14px;
    margin-bottom: 15px;
    text-align: justify;
}

.city-explore-text p:last-child {
    margin-bottom: 0;
}

.city-explore-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #06316f, #1a4bab);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 8px 25px rgba(25,52,153,0.3);
}

.city-explore-btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 15px 35px rgba(25,52,153,0.5);
    gap: 18px;
}

.city-explore-btn i {
    transition: transform 0.3s ease;
}

.city-explore-btn:hover i {
    transform: translateX(-5px);
}

/* =============================================
   رسپانسیو
   ============================================= */
@media (max-width: 1200px) {
    .city-explore-grid {
        grid-template-columns: 1fr 400px;
        gap: 40px;
    }
    
    .stacked-cards-container {
        height: 480px;
    }
    
    .stacked-card {
        width: 75%;
        max-width: 380px;
    }
    
    .city-explore-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .city-explore-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .city-explore-content {
        position: static;
    }
    
    .stacked-cards-container {
        height: 430px;
    }
    
    .stacked-card {
        width: 70%;
        max-width: 360px;
    }
}

@media (max-width: 768px) {
    .city-explore-section {
        padding: 40px 0;
    }
    
    .stacked-cards-container {
        height: 380px;
    }
    
    .stacked-card {
        width: 75%;
        max-width: 320px;
    }
    
    .stacked-card-inner {
        border-radius: 20px;
    }
    
    .stacked-card-label {
        font-size: 13px;
        padding: 20px 15px 15px;
    }
    
    .city-explore-card {
        padding: 30px 25px;
    }
    
    .city-explore-icon {
        width: 55px;
        height: 55px;
        font-size: 22px;
    }
    
    .stacked-nav-btn {
        width: 42px;
        height: 42px;
        font-size: 15px;
    }
    
    #stackedCurrent {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .stacked-cards-container {
        height: 330px;
    }
    
    .stacked-card {
        width: 80%;
        max-width: 280px;
    }
    
    .stacked-card-inner {
        border-radius: 16px;
        border-width: 2px;
    }
    
    .stacked-card-label {
        font-size: 12px;
        gap: 8px;
        padding: 15px 12px 12px;
    }
    
    .stacked-card-label i {
        font-size: 14px;
    }
    
    .city-explore-card {
        padding: 25px 20px;
        border-radius: 20px;
    }
    
    .city-explore-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .city-explore-stats .stat-item {
        padding: 12px 6px;
        border-radius: 12px;
    }
    
    .city-explore-stats .stat-number {
        font-size: 18px;
    }
    
    .city-explore-text p {
        font-size: 13px;
        line-height: 1.9;
    }
    
    .city-explore-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .stacked-nav {
        gap: 15px;
    }
    
    .stacked-nav-btn {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }
}

















/* =============================================
   معاونت‌ها - اسلایدر نواری خودکار
   ============================================= */
.deputies-strip-container {
    position: relative;
    overflow: hidden;
    padding: 10px 0;
    margin: 0 -15px;
}

.deputies-strip-track {
    display: flex;
    gap: 20px;
    animation: deputiesScroll 30s linear infinite;
    width: max-content;
}

/* توقف انیمیشن با هاور */
.deputies-strip-container:hover .deputies-strip-track {
    animation-play-state: paused;
}

/* کارت */
.deputy-strip-card {
    flex: 0 0 320px;
    height: 220px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    text-decoration: none;
    display: block;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.deputy-strip-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 20px 45px rgba(0,0,0,0.3);
}

/* تصویر پس‌زمینه */
.deputy-strip-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.deputy-strip-card:hover .deputy-strip-bg {
    transform: scale(1.1);
}

/* لایه تیره */
.deputy-strip-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, 
        rgba(158, 19, 36, 0.95) 0%, 
        rgba(158, 19, 36, 0.7) 40%, 
        rgba(0, 0, 0, 0.3) 100%);
    transition: background 0.4s ease;
}

.deputy-strip-card:hover .deputy-strip-overlay {
    background: linear-gradient(to top, 
        rgba(25, 52, 153, 0.95) 0%, 
        rgba(25, 52, 153, 0.7) 40%, 
        rgba(0, 0, 0, 0.2) 100%);
}

/* محتوا */
.deputy-strip-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 25px 20px;
    text-align: center;
    color: #fff;
}

.deputy-strip-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3));
    transition: transform 0.4s ease;
}

.deputy-strip-card:hover .deputy-strip-icon {
    transform: scale(1.2) rotate(-10deg);
    animation: iconBounce 0.6s ease;
}

@keyframes iconBounce {
    0%, 100% { transform: scale(1.2) rotate(-10deg); }
    50% { transform: scale(1.35) rotate(-15deg); }
}

.deputy-strip-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
    color: #fff !important;
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
}

.deputy-strip-content p {
    font-size: 0.85rem;
    opacity: 0.9;
    text-shadow: 0 1px 5px rgba(0,0,0,0.3);
    color: #fff !important;
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
}

/* انیمیشن اسکرول بی‌نهایت */
@keyframes deputiesScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* =============================================
   رسپانسیو
   ============================================= */
@media (max-width: 1024px) {
    .deputy-strip-card {
        flex: 0 0 280px;
        height: 200px;
    }
    
    .deputy-strip-icon {
        font-size: 2.5rem;
    }
    
    .deputy-strip-content h3 {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .deputy-strip-card {
        flex: 0 0 250px;
        height: 180px;
    }
    
    .deputy-strip-icon {
        font-size: 2rem;
        margin-bottom: 10px;
    }
    
    .deputy-strip-content h3 {
        font-size: 0.9rem;
    }
    
    .deputy-strip-content p {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .deputy-strip-card {
        flex: 0 0 220px;
        height: 165px;
        border-radius: 16px;
    }
    
    .deputy-strip-icon {
        font-size: 1.8rem;
        margin-bottom: 8px;
    }
    
    .deputy-strip-content {
        padding: 20px 15px;
    }
    
    .deputy-strip-content h3 {
        font-size: 0.85rem;
    }
    
    .deputy-strip-content p {
        font-size: 0.7rem;
    }
}



/* =============================================
   معاونت‌ها - اسلایدر نواری خودکار
   ============================================= */
.deputies-strip-container {
    position: relative;
    overflow: hidden;
    padding: 10px 0;
    margin: 0 -15px;
}

.deputies-strip-track {
    display: flex;
    gap: 20px;
    width: max-content;
}

.deputies-strip-container:hover .deputies-strip-track {
    animation-play-state: paused;
}

.deputy-strip-card {
    flex: 0 0 320px;
    height: 220px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    text-decoration: none;
    display: block;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.deputy-strip-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 20px 45px rgba(0,0,0,0.3);
}

.deputy-strip-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.deputy-strip-card:hover .deputy-strip-bg {
    transform: scale(1.1);
}

.deputy-strip-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, 
        rgba(158, 19, 36, 0.95) 0%, 
        rgba(158, 19, 36, 0.7) 40%, 
        rgba(0, 0, 0, 0.3) 100%);
    transition: background 0.4s ease;
}

.deputy-strip-card:hover .deputy-strip-overlay {
    background: linear-gradient(to top, 
        rgba(25, 52, 153, 0.95) 0%, 
        rgba(25, 52, 153, 0.7) 40%, 
        rgba(0, 0, 0, 0.2) 100%);
}

.deputy-strip-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 25px 20px;
    text-align: center;
    color: #fff;
}

.deputy-strip-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3));
    transition: transform 0.4s ease;
}

.deputy-strip-card:hover .deputy-strip-icon {
    transform: scale(1.2) rotate(-10deg);
}

.deputy-strip-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
    color: #fff !important;
}

.deputy-strip-content p {
    font-size: 0.85rem;
    opacity: 0.9;
    text-shadow: 0 1px 5px rgba(0,0,0,0.3);
    color: #fff !important;
}

/* رسپانسیو */
@media (max-width: 1024px) {
    .deputy-strip-card {
        flex: 0 0 280px;
        height: 200px;
    }
    .deputy-strip-icon { font-size: 2.5rem; }
    .deputy-strip-content h3 { font-size: 1rem; }
}

@media (max-width: 768px) {
    .deputy-strip-card {
        flex: 0 0 250px;
        height: 180px;
    }
    .deputy-strip-icon { font-size: 2rem; margin-bottom: 10px; }
    .deputy-strip-content h3 { font-size: 0.9rem; }
    .deputy-strip-content p { font-size: 0.75rem; }
}

@media (max-width: 480px) {
    .deputy-strip-card {
        flex: 0 0 220px;
        height: 165px;
        border-radius: 16px;
    }
    .deputy-strip-icon { font-size: 1.8rem; margin-bottom: 8px; }
    .deputy-strip-content { padding: 20px 15px; }
    .deputy-strip-content h3 { font-size: 0.85rem; }
    .deputy-strip-content p { font-size: 0.7rem; }
}




/* =============================================
   شهرضا شناسی - نسخه نهایی
   ============================================= */
.shahreza-explore-section {
    padding: 0;
    position: relative;
    overflow: hidden;
}

/* پترن اسلیمی */
.shahreza-explore-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('assets/images/pattern-bg.png');
    background-size: cover;
    opacity: 0.03;
    pointer-events: none;
}

.explore-wrapper {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* =============================================
   ستون راست - اسلایدر
   ============================================= */
.explore-slider-col {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* کارت‌های Swiper */
.explore-swiper-card {
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3) !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    background: #1a1a2e;
}

.explore-card-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.swiper-slide-active .explore-card-img {
    transform: scale(1.05);
}

.explore-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, 
        rgba(0,0,0,0.95) 0%, 
        rgba(0,0,0,0.4) 50%, 
        rgba(0,0,0,0.1) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 35px 25px;
}

.explore-card-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 15px;
    width: fit-content;
}

.explore-card-title {
    color: #fff !important;
    font-size: 1.3rem !important;
    font-weight: 700 !important;
    margin-bottom: 8px !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.explore-card-desc {
    color: rgba(255,255,255,0.8) !important;
    font-size: 0.85rem !important;
    font-weight: 400;
}

/* دکمه‌های ناوبری Swiper */
.swiperExplore .swiper-button-next,
.swiperExplore .swiper-button-prev {
    width: 45px !important;
    height: 45px !important;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border-radius: 50% !important;
    color: #fff !important;
    transition: all 0.3s ease;
}

.swiperExplore .swiper-button-next:after,
.swiperExplore .swiper-button-prev:after {
    font-size: 18px !important;
    font-weight: bold;
}

.swiperExplore .swiper-button-next:hover,
.swiperExplore .swiper-button-prev:hover {
    background: #06316f;
    transform: scale(1.1);
}

.swiperExplore .swiper-button-next {
    right: -15px !important;
}

.swiperExplore .swiper-button-prev {
    left: -15px !important;
}

/* =============================================
   ستون چپ - محتوای متنی
   ============================================= */
.explore-content-col {
    display: flex;
    align-items: center;
}


.explore-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
}

.explore-info-icon {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #06316f, #1a4bab);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: #fff;
    font-size: 26px;
    box-shadow: 0 10px 25px rgba(25,52,153,0.3);
}


/* آمار */
.explore-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    border-bottom: 1px solid #f1f5f9;
}

.explore-stat-item {
    text-align: center;
    padding: 15px 8px;
    background: #f8fafc;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.explore-stat-item:hover {
    background: #06316f;
    transform: translateY(-5px);
}

.explore-stat-item:hover .explore-stat-number,
.explore-stat-item:hover .explore-stat-label {
    color: #fff;
}

.explore-stat-number {
    display: block;
    font-size: 20px;
    font-weight: 800;
    color: #06316f;
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

.explore-stat-label {
    display: block;
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
    transition: color 0.3s ease;
}

/* متن توضیحات */
.explore-description {
    margin-bottom: 25px;
}

.explore-description p {
    color: #4b5563;
    line-height: 2;
    font-size: 14px;
    margin-bottom: 12px;
    text-align: justify;
}

.explore-description p:last-child {
    margin-bottom: 0;
}

/* دکمه */
.explore-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #06316f, #1a4bab);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 8px 25px rgba(25,52,153,0.3);
}

.explore-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(25,52,153,0.5);
    gap: 18px;
    color: #fff;
}

.explore-more-btn i {
    transition: transform 0.3s ease;
}

.explore-more-btn:hover i {
    transform: translateX(-5px);
}

/* =============================================
   رسپانسیو
   ============================================= */
@media (max-width: 1200px) {
    .explore-wrapper {
        grid-template-columns: 380px 1fr;
        gap: 40px;
    }
    
    .explore-info-card {
        padding: 30px 25px;
    }
}

@media (max-width: 992px) {
    .explore-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .explore-slider-col {
        order: 2;
    }
    
    .explore-content-col {
        order: 1;
    }
    
    .swiperExplore {
        width: 280px !important;
        height: 400px !important;
    }
}

@media (max-width: 768px) {
    .shahreza-explore-section {
        padding: 40px 0;
    }
    
    .explore-wrapper {
        gap: 30px;
    }
    
    .explore-info-card {
        padding: 25px 20px;
    }
    
    .explore-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .explore-info-title {
        font-size: 1.5rem;
    }
    
    .swiperExplore {
        width: 250px !important;
        height: 360px !important;
    }
}

@media (max-width: 480px) {
    .explore-wrapper {
        gap: 25px;
    }
    
    .explore-info-card {
        padding: 20px 15px;
        border-radius: 20px;
    }
    
    .explore-info-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .explore-stat-item {
        padding: 10px 6px;
    }
    
    .explore-stat-number {
        font-size: 16px;
    }
    
    .explore-description p {
        font-size: 13px;
        line-height: 1.9;
    }
    
    .explore-more-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
        font-size: 13px;
    }
    
    .swiperExplore {
        width: 230px !important;
        height: 330px !important;
    }
}


























/* =============================================
   شهرضا شناسی - نسخه نهایی
   ============================================= */

/* کانتینر اصلی بخش */
.shahreza-explore-section {
    padding: 70px 0 !important;
    position: relative !important;
    overflow: hidden !important;
}

/* گرید اصلی - سه ستون */
.shahreza-explore-section .explore-wrapper {
    display: grid !important;
    grid-template-columns: auto auto 1fr !important;
    gap: 50px !important;
    align-items: center !important;
    position: relative !important;
    z-index: 1 !important;
}

/* اسلایدر - چسبیده به راست */
.shahreza-explore-section .explore-slider-col {
    order: 1 !important;
    justify-self: end !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* عنوان - وسط */
.shahreza-explore-section .explore-title-column {
    order: 1 !important;
    justify-self: center !important;
}

/* محتوای متنی - پهن و چسبیده به چپ */
.shahreza-explore-section .explore-content-col {
    order: 4 !important;
    justify-self: start !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* کارت محتوای متنی - پهن‌تر */
.shahreza-explore-section .explore-info-card {
    max-width: 100% !important;
    width: 100% !important;
    min-width: 600px !important;
}

/* اسلایدر - حذف margin های اضافی */
.shahreza-explore-section .swiper-container-wrapper {
    margin: 0 !important;
}

.shahreza-explore-section .swiperExplore {
    margin: 0 !important;
}

/* باکس عنوان شهرضا شناسی */
.shahreza-explore-section .explore-title-box {
    min-width: 200px !important;
}

/* =============================================
   رسپانسیو
   ============================================= */
@media (max-width: 1100px) {
    .shahreza-explore-section .explore-wrapper {
        gap: 40px !important;
    }
    
    .shahreza-explore-section .explore-info-card {
        min-width: 360px !important;
    }
}

@media (max-width: 992px) {
    .shahreza-explore-section .explore-wrapper {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }
    
    .shahreza-explore-section .explore-slider-col,
    .shahreza-explore-section .explore-title-column,
    .shahreza-explore-section .explore-content-col {
        justify-self: center !important;
        width: 100% !important;
    }
    
    .shahreza-explore-section .explore-info-card {
        min-width: auto !important;
        max-width: 100% !important;
    }
}

@media (max-width: 768px) {
    .shahreza-explore-section .explore-wrapper {
        gap: 30px !important;
    }
}

@media (max-width: 480px) {
    .shahreza-explore-section .explore-wrapper {
        gap: 25px !important;
    }
}