* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #00b6bc;
  --secondary: #0099a0;
  --primbuttn: #00b6bc;
  --secbuttn: #33c4ca;
  --accent: #80d8dc;
  --textprimary: #1a1a1a;
  --textsecondary: #666;
  --background: #ffffff;
  --background-alt: #f0f9fa;
  --border: #e0e0e0;
  --shadow: rgba(0, 0, 0, 0.1);
}

html,
body {
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: "IranSans", "IRANSans", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--textprimary);
  background-color: var(--background);
  direction: rtl;
}

.container {
  width: 80%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  background-color: var(--background);
  box-shadow: 0 2px 10px var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-image {
  height: 60px;
  width: auto;
  object-fit: contain;
}

.nav {
  display: flex;
  gap: 25px;
}

.nav a {
  text-decoration: none;
  color: var(--textprimary);
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav a:hover {
  color: var(--primary);
}

.nav a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  right: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

.nav a:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, rgba(0, 182, 188, 0.85) 0%, rgba(0, 153, 160, 0.85) 100%),
    url("images/office-3.png") center/cover no-repeat;
  color: white;
  padding: 120px 20px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><path d="M0,300 Q300,200 600,300 T1200,300 L1200,600 L0,600 Z" fill="rgba(255,255,255,0.05)"/></svg>')
    no-repeat center;
  background-size: cover;
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 80%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-title {
  font-size: 48px;
  margin-bottom: 20px;
  font-weight: 700;
}

.hero-subtitle {
  font-size: 24px;
  margin-bottom: 30px;
  opacity: 0.95;
}

.cta-button {
  display: inline-block;
  padding: 15px 40px;
  background-color: var(--secbuttn);
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
  background-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* News Slider */
.news-slider-container {
  position: relative;
  z-index: 1;
  width: 80%;
  max-width: 1200px;
  margin: 60px auto 0;
  padding: 0 20px;
}

.news-slider-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.news-slider-header h3 {
  font-size: 24px;
  font-weight: 600;
  color: white;
}

.slider-controls {
  display: flex;
  gap: 10px;
}

.slider-btn {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 50%;
  cursor: pointer;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-family: inherit;
  padding: 0;
  margin: 0;
  line-height: 1;
  box-sizing: border-box;
  aspect-ratio: 1;
}

.slider-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: white;
  transform: scale(1.1);
}

.slider-btn:active {
  transform: scale(0.95);
}

.news-slider-wrapper {
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  position: relative;
  width: 100%;
  min-height: 150px;
}

.news-item {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  padding: 30px;
  box-sizing: border-box;
  text-align: right;
  color: white;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.news-item.active {
  opacity: 1;
  visibility: visible;
  position: relative;
}

.news-date {
  font-size: 14px;
  opacity: 0.8;
  margin-bottom: 10px;
  color: var(--accent);
}

.news-item h4 {
  font-size: 20px;
  margin-bottom: 15px;
  font-weight: 600;
  color: white;
}

.news-item p {
  font-size: 16px;
  line-height: 1.8;
  opacity: 0.9;
  color: white;
}

.slider-indicators {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active {
  background-color: white;
  width: 30px;
  border-radius: 5px;
}

/* Office Gallery Section */
.office-section {
  background-color: var(--background);
}

.office-description {
  text-align: center;
  color: var(--textsecondary);
  font-size: 18px;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.office-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.gallery-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  aspect-ratio: 4/3;
  background-color: var(--background-alt);
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-image {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  padding: 30px 20px 20px;
  color: white;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay p {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

/* Section Styles */
.section {
  padding: 80px 0;
}

.section-alt {
  background-color: var(--background-alt);
}

.section-title {
  text-align: center;
  font-size: 36px;
  color: var(--primary);
  margin-bottom: 50px;
  font-weight: 700;
  position: relative;
  padding-bottom: 20px;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 50%;
  transform: translateX(50%);
  width: 80px;
  height: 4px;
  background-color: var(--accent);
  border-radius: 2px;
}

/* Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.project-card {
  background-color: var(--background);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.project-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-placeholder {
  color: white;
  font-size: 18px;
  opacity: 0.8;
}

.project-content {
  padding: 25px;
}

.project-content h3 {
  color: var(--primary);
  font-size: 22px;
  margin-bottom: 15px;
}

.project-content p {
  color: var(--textsecondary);
  margin-bottom: 20px;
  line-height: 1.8;
}

.project-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 15px;
  border-top: 1px solid var(--border);
}

.status-badge {
  background-color: var(--accent);
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
}

.progress-text {
  color: var(--textsecondary);
  font-size: 14px;
}

/* Capacities Section */
.capacities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.capacity-card {
  background-color: var(--background);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px var(--shadow);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.capacity-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.capacity-card h3 {
  color: var(--primary);
  font-size: 22px;
  margin-bottom: 15px;
}

.capacity-card p {
  color: var(--textsecondary);
  margin-bottom: 20px;
  line-height: 1.8;
}

.capacity-list {
  list-style: none;
  text-align: right;
}

.capacity-list li {
  color: var(--textsecondary);
  padding: 8px 0;
  position: relative;
  padding-right: 20px;
}

.capacity-list li::before {
  content: "✓";
  position: absolute;
  right: 0;
  color: var(--primary);
  font-weight: bold;
}

/* Subsidiaries Section */
.subsidiaries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.subsidiary-card {
  background-color: var(--background);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.subsidiary-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  padding: 20px 25px;
  color: white;
}

.subsidiary-header h3 {
  font-size: 22px;
  font-weight: 600;
}

.subsidiary-content {
  padding: 25px;
}

.subsidiary-content p {
  color: var(--textsecondary);
  margin-bottom: 20px;
  line-height: 1.8;
}

.subsidiary-details {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.detail-item strong {
  color: var(--primary);
}

.detail-item span {
  color: var(--textsecondary);
}

/* Newsletter Section */
.newsletter-wrapper {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  background-color: var(--background);
  padding: 50px;
  border-radius: 15px;
  box-shadow: 0 4px 20px var(--shadow);
}

.newsletter-content {
  text-align: center;
  margin-bottom: 40px;
}

.newsletter-title {
  font-size: 32px;
  color: var(--primary);
  margin-bottom: 15px;
  font-weight: 700;
}

.newsletter-description {
  color: var(--textsecondary);
  font-size: 16px;
  line-height: 1.8;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group input {
  padding: 15px;
  border: 2px solid var(--border);
  border-radius: 5px;
  font-size: 16px;
  transition: border-color 0.3s ease;
  font-family: inherit;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
}

.submit-button {
  padding: 15px 30px;
  background-color: var(--primbuttn);
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.submit-button:hover {
  background-color: var(--secondary);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.submit-button:active {
  transform: translateY(0);
}

/* Footer */
.footer {
  background-color: var(--primary);
  color: white;
  padding: 50px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 30px;
}

.footer-section h3 {
  margin-bottom: 20px;
  font-size: 20px;
}

.footer-section p {
  margin-bottom: 10px;
  opacity: 0.9;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: white;
  text-decoration: none;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.footer-links a:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 15px;
  }

  .logo-image {
    height: 50px;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .news-slider-container {
    margin-top: 40px;
  }

  .news-slider-header h3 {
    font-size: 20px;
  }

  .news-item {
    padding: 20px;
  }

  .news-item h4 {
    font-size: 18px;
  }

  .news-item p {
    font-size: 14px;
  }

  .section-title {
    font-size: 28px;
  }

  .office-gallery {
    grid-template-columns: 1fr;
  }

  .projects-grid,
  .capacities-grid,
  .subsidiaries-grid {
    grid-template-columns: 1fr;
  }

  .newsletter-wrapper {
    padding: 30px 20px;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .logo-image {
    height: 40px;
  }

  .hero {
    padding: 80px 20px 60px;
  }

  .hero-title {
    font-size: 24px;
  }

  .section {
    padding: 50px 0;
  }

  .section-title {
    font-size: 24px;
  }

  .news-slider-container {
    margin-top: 30px;
  }

  .news-slider-header {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }

  .news-item {
    padding: 15px;
  }

  .slider-btn {
    width: 35px;
    height: 35px;
    font-size: 20px;
  }

  .office-gallery {
    gap: 20px;
  }

  .office-description {
    font-size: 16px;
  }
}

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/* WordPress/Astra Theme Full Width Override */
body.page-template-page-landing-php #page,
body.page-template-page-landing-php .site-content,
body.page-template-page-landing-php .content-area,
body.page-template-page-landing-php .site-main,
body.page-template-page-landing-php .ast-container,
body.page-template-page-landing-php .ast-separate-container,
body.page-template-page-landing-php .site-content .ast-container,
body.page-template-page-landing-php article,
body.page-template-page-landing-php .entry-content {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Override Astra container max-width */
body.page-template-page-landing-php .ast-container {
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Ensure sections are full width for background colors */
body.page-template-page-landing-php .hero,
body.page-template-page-landing-php .section,
body.page-template-page-landing-php section {
  width: 100% !important;
  max-width: 100% !important;
}

/* Content containers should be 80% width and centered */
body.page-template-page-landing-php .container {
  width: 80% !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
}

/* Hero content should also be 80% */
body.page-template-page-landing-php .hero-content {
  width: 80% !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
}

/* News slider container should be 80% */
body.page-template-page-landing-php .news-slider-container {
  width: 80% !important;
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
