@import url("https://fonts.googleapis.com/css2?family=Lalezar&family=Rubik:ital,wght@0,300..900;1,300..900&display=swap");

@import url("https://fonts.googleapis.com/css2?family=Winky+Rough:ital,wght@0,577;1,577&display=swap");

:root {
  --main-text-color: #e4fde1;
  --active-text-color: #ffd700;
  --dark-text-color: #1e1b18;
  --Blue-text-color: #46bd8f;
  --Red-text-color: #dd1c33;
  --hover-text-color: #ffffff;
  --border-text-color: #131110;

  --main-background-color: #1e1b18;
  --active-background-color: #ffd700;
  --main-opacity-background-color: #1e1b18e2;
  --Shadow-opacity-background-color: rgb(19, 17, 16);
  --footer-background-color: #131110;

  --head-company-font-family: "Lalezar", serif;
  --head-company-font-style: normal;

  --desc-font-family: "Rubik", serif;
  --desc-font-optical-sizing: auto;
  --desc-font-style: normal;
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  padding: 0;
  background-color: var(--main-background-color);
  overflow-x: hidden;
  scroll-behavior: smooth;
}
html {
  scroll-behavior: smooth;
}
html,
body,
img {
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}

a {
  text-decoration: none;
  color: inherit; /* Inherits color from parent (optional: or set a specific color) */
}

.header-container {
  background-color: var(--main-opacity-background-color);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 13;
  height: 80px;
  width: 100%;
  position: absolute;
  top: 0;
}
.logo img,
.Header_logo img {
  height: 55px;
  width: 70px;
  border-radius: 50%;
  filter: drop-shadow(0px 2px 4px var(--dark-text-color));
  transition: transform 0.3s ease;
  border: var(--dark-text-color) 2px solid;
}
.Header_logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 20px;
}
.header-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 12;
  width: 100%;
  padding: 0 16px; /* جلوگیری از برون‌زدن آیتم‌ها */
  box-sizing: border-box;
}

.header-nav ul {
  display: flex;
  list-style: none;
  gap: 40px;
  margin: 0;
  padding: 0;
}
.header-nav li {
  position: relative;
}
.header-nav a {
  color: var(--main-text-color);
  text-decoration: none;
  padding: 5px 10px;
  position: relative;
  text-shadow: 1px 1px 1px var(--dark-text-color);
  transition: color 0.3s ease;
  white-space: nowrap; /* Prevents breaking into multiple lines */
  font-size: 1.1rem;
  font-family: var(--desc-company-font-family);
  font-weight: 300;
  font-style: var(--desc-company-font-style);
  font-optical-sizing: var(--desc-font-optical-sizing);

  display: block; /* Makes <a> tag behave like a block element, so it occupies its own space */
  max-width: 150px; /* Sets a maximum width to prevent overflow */
  overflow: hidden; /* Hides any text that exceeds the max-width */
  text-overflow: ellipsis; /* Adds an ellipsis (...) if text overflows */
  box-sizing: border-box; /* Ensures padding is included in the width calculation */
}
.header-nav a:hover {
  color: var(--active-text-color);
}

.header-nav li:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -15px;
  height: 10px;
  width: 0.4px;
  background-color: var(--main-text-color);
  top: 15px;
  opacity: 0.5;
  box-shadow: 1px 1px var(--dark-text-color);
  transform: translateY(-50%);
}

.dropdown-content {
  opacity: 0;
  visibility: hidden;
  transform: scale(0.9);
  transition: opacity 0.4s ease, transform 0.4s ease;
  display: none;
  position: absolute;
  top: 55px;
  right: 0;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1;
  width: 150px;
  border-radius: 0 0 6px 6px;
  margin-right: -20px;
  background-color: var(--main-opacity-background-color);
}
.dropdown-content a {
  color: var(--main-text-color);
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  transition: background-color 0.3s ease;
  border-radius: 6px;
  text-align: right;
}
.dropdown-content a:hover {
  background-color: var(--main-opacity-background-color);
}
.dropdown:hover .dropdown-content,
.dropdown.show .dropdown-content {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

footer {
  width: 100%;
  height: auto;
  background-color: var(--footer-background-color);
  position: relative;
  top: 7vh;
}
.foter-Head-Container {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* بچسبن سمت راست (چون متن راست‌چین داری) */
  gap: 12px; /* فاصله بین لوگو و متن */
  margin-right: 0; /* حذف هر margin اضافی */
  margin-left: auto;
  max-width: 1200px; /* هم‌اندازه ستون‌های فوتر */
  padding: 0 1px; /* مثل ستون‌های فوتر */
  box-sizing: border-box;
  position: relative;
  top: 50px;
  margin: 0 auto; /* ✅ هم‌تراز با بقیه ستون‌ها */
  padding: 0 16px; /* ✅ فاصله‌ی داخلی یکسان با ستون‌ها */
  justify-content: right;
}

.footer_Logo {
  position: relative; /* از absolute خارج بشه */
  left: auto;
  top: auto;
  margin: 0;
  margin-right: 10px;
  text-align: center;
  width: 60px;
  position: relative; /* ✅ بجای absolute */
  height: auto;
  flex-shrink: 0; /* نذاره تو موبایل له بشه */
}
.footer_Logo a {
  text-decoration: none;
  display: inline-block;
}
.footer_Logo img {
  filter: brightness(80%);
  border-radius: 50%;
}
.footer_Logo img:hover {
  filter: brightness(60%);
}
.footer-Head-Text {
  color: var(--main-text-color);
  font: 28px;
  text-shadow: 1px 1px 1px var(--dark-text-color);
  font-size: 2em;
  text-align: center;
  margin: 0;
  position: relative;
  font-family: var(--head-company-font-family);
  font-weight: 300;
  font-style: var(--head-company-font-style);
}

.footer-Main-Link-Continer {
  width: 100%;
  height: 55%;
  align-items: center;
  text-align: center;
  margin-top: 11vh;
  display: flex;
  justify-content: center;
  gap: 150px;
}
.footer-Main-Item {
  display: flex;
  height: auto;
  justify-content: right;
  text-align: right;
  padding: 10px;
  white-space: nowrap;
}
.footer-Main-Item:last-child {
  margin-right: 0;
}
.footer-main-Head-Text {
  color: var(--main-text-color);
  font-size: 22px;
  position: relative;
  right: 14px;
}
.footer-Main-Text {
  color: var(--main-text-color);
  font-family: var(--desc-company-font-family);
  font-weight: 400;
  font-style: var(--desc-company-font-style);
  font-optical-sizing: var(--desc-font-optical-sizing);
}
.footer-Main-Text a {
  text-decoration: none;
  color: inherit;
  margin: 15px;
  font-family: var(--desc-company-font-family);
  font-weight: 400;
  font-style: var(--desc-company-font-style);
  font-optical-sizing: var(--desc-font-optical-sizing);
  display: block; /* Ensures spacing remains consistent */
}
.footer-Main-Text a:hover {
  color: var(--active-text-color);
  text-shadow: 1px 1px 1px var(--dark-text-color);
}
#Contact_Us .footer-Main-Text a {
  pointer-events: none; /* Disables hover and click events */
  color: inherit; /* Ensures consistent color with the rest of the footer */
  text-shadow: none; /* Removes hover effects */
  cursor: default; /* Ensures the cursor is not a pointer */
}

.footer-Main-Project,
.footer-Main-News,
.footer-Main-Address {
  width: auto;
  display: inline-block;
}
.footer-Main-News {
  position: relative;
  left: 2%;
}
.footer-Main-Address {
  margin-left: -100px;
}
.footer-Main-Item-Devider,
.footer-Main-Item-Devider-right {
  content: "";
  position: relative;
  left: 68%;
  top: 18vh;
  width: 120px;
  height: 1px;
  background: linear-gradient(
    to left,
    #f7b43802,
    #f7b43812,
    #f7b43835,
    #f7b43845,
    #f7b43860,
    #f7b43886,
    #f7b438a3
  );
  margin: 0 50px;
  transform: rotate(90deg);
}

.footer_Logo {
  order: 2; /* اول بیاد */
}

.footer-Head-Text {
  order: 1; /* بعدش بیاد */
}

.footer-Bottom-Item-Head-Text {
  color: var(--main-text-color);
  font-size: 22px;
  text-align: center;
  margin-top: 50px;
  position: relative;
  top: 1vh;
  opacity: 0.6;
  font-family: var(--desc-company-font-family);
  font-weight: 100;
  font-style: var(--desc-company-font-style);
  font-optical-sizing: var(--desc-font-optical-sizing);
  text-indent: 0;

}
.social-media-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  position: relative;
}
.social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  color: #e4fde19e;
  position: relative;
  z-index: 1;
  width: 100%;
}
.social-icons a i {
  font-size: 26px;
}
.social-icons::before,
.social-icons::after {
  content: "";
  display: inline-block;
  width: 29vw;
  height: 1px;
  background-color: var(--main-text-color);
  opacity: 0.7;
  margin: -2px 10px;
  transform: translateY(7px);
}

.social-icons a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s;
  opacity: 0.8;
}

.social-icons a:hover {
  color: var(--active-text-color);
  opacity: 1;
}

.social-icons i {
  font-size: 2rem;
}
.footer-Copyright {
  display: flex; /* Align items in a single line */
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 15px;
  font-size: 0.9rem; /* Adjusts size for smaller screens */
  color: var(--main-text-color);
  opacity: 0.2;
  position: relative;
  flex-wrap: nowrap; /* Prevents wrapping */
}

}
.footer-Copyright i {
    margin-right: 8px;
}

.footer-Copyright-text {
  font-size: 1rem;
  font-family: var(--desc-company-font-family);
  font-weight: 100;
  font-style: var(--desc-company-font-style);
  font-optical-sizing: var(--desc-font-optical-sizing);
  white-space: nowrap; /* Prevents text from breaking to a new line */
text-indent: 0 !important;
}

.footer-Logo {
  height: 55px;
  width: 70px;
  border-radius: 50%;
  filter: drop-shadow(0px 2px 4px #1e1b18);
  transition: transform 0.3s ease;
  border: var(--border-text-color) 4px solid;
}

.grid-Item-Head-Text::before {
  content: "";
  width: 100px;
  height: 1px;
  background: linear-gradient(
    to right,
    #f7b43800,
    #f7b43800,
    #f7b43831,
    #f7b43886,
    #f7b438a3
  );
  margin: 0 50px;
  text-shadow: 1px 1px 1px var(--dark-text-color);
}
.grid-Item-Head-Text::after {
  content: "";
  width: 100px;
  height: 1px;
  background: linear-gradient(
    to left,
    #f7b43800,
    #f7b43800,
    #f7b43831,
    #f7b43886,
    #f7b438a3
  );
  margin: 0 50px;
  text-shadow: 1px 1px 1px var(--dark-text-color);
}
.grid-Item-Head-Text {
  white-space: nowrap; /* Prevents breaking into multiple lines */
  align-items: center;
  text-align: center;
  text-shadow: 1px 1px 1px var(--dark-text-color);
  color: var(--main-text-color);
  font-size: 3rem !important;
  margin-top: 20vh;
  margin-right: 1px;
  display: flex;
  justify-content: center;
  font-family: var(--head-company-font-family);
  font-weight: 100;
  font-style: var(--head-company-font-style);
  font-optical-sizing: var(--desc-font-optical-sizing);
}
.main-container {
  max-width: 1370px;
  margin: 0 auto;
}
.intro-container-section,
.pages-main-container-section {
  max-width: 1100px;
  margin: 0 auto;
}
.intro-header {
  text-align: center;
}

.intro-header p {
  text-shadow: 1px 1px 1px var(--dark-text-color);
  color: var(--main-text-color);
  font-size: 20px;
  letter-spacing: 1px;
  direction: rtl;
  text-align: justify; /* Justifies the text */
  text-align-last: right; /* Centers the last line for better alignment */
  overflow: hidden;
  overflow-y: auto;
  white-space: normal;
  text-overflow: ellipsis;
  display: block;
  word-break: break-word;
  line-height: 1.5;
  margin-top: 5%;
  margin-left: auto; /* Centers the text block horizontally */
  margin-right: auto; /* Centers the text block horizontally */
  max-width: 80%;
}
.intro-section {
  margin: 30px 0;
  direction: rtl;
}
.intro-main-service {
  align-items: center;
  text-align: center;
  text-shadow: 1px 1px 1px var(--dark-text-color);
  color: var(--active-text-color);
  font-size: 42px;
  margin-top: 20px;
  font-family: var(--head-company-font-family);
  font-weight: 100;
  font-style: var(--head-company-font-style);
  margin-bottom: 30px;
  text-align: center;
  margin-top: 9vh;
}
.intro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, auto));
  gap: 30px;
  align-items: stretch; /* همه آیتم‌ها هم‌ارتفاع */
}

.intro-item {
  background: #13111082;
  border: 1px solid var(--border-text-color);
  border-radius: 8px;
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 250px; /* ارتفاع پایه */
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* متن و بقیه المان‌ها مرتب */
  justify-content: center; /* ✅ محتوا وسط عمودی */
  align-items: center; /* ✅ عکس و متن وسط افقی */
  height: 100%; /* پر کنه کل ارتفاع ستون */
  min-height: 260px; /* ارتفاع پایه */
}

.intro-item:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.047);
  filter: blur(0);
  cursor: pointer;
}
.intro-item:hover h3 {
  color: var(--active-text-color);
}
.intro-item img {
  max-width: 35%;
  height: auto;
  border-radius: 6px;
}
.intro-item h3 {
  margin: 10px 0;
  justify-content: center;
  font-family: var(--head-company-font-family);
  font-weight: 100;
  font-style: var(--head-company-font-style);
  font-optical-sizing: var(--desc-font-optical-sizing);
  white-space: nowrap; /* Prevents breaking into multiple lines */
  align-items: center;
  text-align: center;
  text-shadow: 1px 1px 1px var(--dark-text-color);
  color: var(--main-text-color);
}
.intro-item p {
  word-spacing: 1px;
  text-shadow: 1px 1px 1px var(--dark-text-color);
  color: var(--main-text-color);
  opacity: 0.6;
  font-size: 15px;
  word-break: break-word;
  line-height: 1.5;
  font-family: var(--desc-company-font-family);
  font-weight: 200;
  font-style: var(--desc-company-font-style);
  font-optical-sizing: var(--desc-font-optical-sizing);
  text-indent: 0; 

}
.intro-section-devider {
  position: relative; /* Ensure pseudo-elements are positioned relative to this element */
  text-align: center; /* Center the text */
  text-shadow: 1px 1px 1px var(--dark-text-color);
  color: var(--active-text-color);
  font-size: 42px;
  font-family: var(--head-company-font-family);
  font-weight: 100;
  font-style: var(--head-company-font-style);
  margin-top: 15px;
}

.intro-section-devider::before,
.intro-section-devider::after {
  content: "";
  position: absolute;
  top: 50%; /* Align vertically */
  width: 40%; /* Set width of the divider */
  height: 1px; /* Divider thickness */
  background-color: #33333371; /* Color of the divider line */
  transform: translateY(-50%); /* Vertically center the divider */
  z-index: -1; /* Ensure dividers stay behind the text */
}

.intro-section-devider::before {
  left: 0; /* Position the left divider */
}

.intro-section-devider::after {
  right: 0; /* Position the right divider */
}

.certificate-Page-Container {
  position: relative;
  top: 15vh;
  width: 80vw;
  height: 86vh;
  stroke-width: 1px;
  margin: 0 auto; /* مرکز چین افقی */
  background-color: #13111010;
  filter: drop-shadow(1px 4px 4px rgba(0, 0, 0, 0.258));
  border-radius: 22px;
  box-shadow: 0 0 3px 2px var(--Shadow-opacity-background-color);
  margin-bottom: 10vh !important;
}

/* سمت چپ (عکس + متن زیرش) */
.certificat-Page-Left {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
}
.certificat-Page-Right {
  flex-direction: column;
  justify-content: center; /* وسط‌چین عمودی */
  align-items: center; /* وسط‌چین افقی داخل ستون راست */
  gap: 44px; /* فاصله عمودی بین آیتم‌ها — می‌تونی این رو تغییر بدی */
}
.certificate-Page-Dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  position: absolute;
  top: 5%;
  left: 3%;
  background: linear-gradient(to right, #0000004f, #0000004f, #0000004f);
  border: 1px solid var(--border-background-color);
  text-shadow: 1px 1px 1px var(--dark-text-color);
}
.certificat-Page-Item {
  display: flex;
  flex-direction: row; /* مهم: ردیفی باشن (نه ستونی) */
  justify-content: space-between; /* دو طرف: چپ و راست */
  align-items: center;
  height: 100%;
  padding: 4vh 5%;
  gap: 2rem;
}
.certificat-Page-Left,
.certificat-Page-Right {
  flex: 0 0 48%;
  max-width: 48%;
  display: flex;
}
.certificat-Page-Items {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  color: var(--main-text-color);
  text-shadow: 1px 1px 1px rgb(19, 17, 16);
  direction: rtl;
  text-align: right;
  margin: 0; /* حذف margin-left:55% قدیمی */
  width: auto;
  justify-content: center; /* متن و آیکون داخل هر آیتم وسط‌چین افقی */
}

.certificat-Page-Head-Text {
  transform: rotate(90deg);
  position: absolute;
  right: -12%;
  margin-top: 36vh;
  text-shadow: 1px 1px 1px var(--dark-text-color);
  margin-top: 51vh;
}
.certificate-Page-Line {
  height: 1px; /* ارتفاع خط نسبت به کانتینر */
  width: 25%;
  transform: rotate(90deg);
  background: linear-gradient(
    to right,
    #e4fde100,
    #e4fde156,
    #e4fde1,
    #e4fde156,
    #e4fde100
  );
  position: absolute;
  top: 50%;
  left: 40%;
}
.certificat-Page-Pic-Container {
  width: 305px;
  height: auto;
  position: static; /* مهم: حذف absolute تا در فلو قرار بگیره */
  background-color: var(--main-background-color);
  border-radius: 24px;
  overflow: hidden;
  display: block;
}
.certificat-Page-Pic {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 24px;
}
.certificat-Page-Head2-Text {
  margin: 0;
  padding-top: 6px;
  font-size: 20px;
  width: 100%;
  max-width: 305px;
  color: var(--active-text-color);
  text-align: center;
  position: static;
  top: auto;
  right: auto;
  text-wrap: nowrap;
  font-weight: bold;
  font-family: var(--head-company-font-family);
  font-weight: 100;
  font-style: var(--head-company-font-style);
}
.certificat-Page-Head2-Text-Active {
  text-shadow: 1px 1px 1px var(--dark-text-color);
  color: var(--active-text-color);
  font-weight: bold;
}
.certificat-Page-slidershow {
  width: 25vw;
  z-index: 11111;
  font-size: 22px;
  font-family: var(--desc-company-font-family);
  font-weight: 600;
  font-style: var(--desc-company-font-style);
  font-optical-sizing: var(--desc-font-optical-sizing);
  text-wrap: wrap;
}
.image-dialog {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0.6;
  transform: scale(0.8);
  transition: opacity 0.1s ease, transform 0.3s ease;
}
.image-dialog.open {
  opacity: 1;
  transform: scale(1);
}
.image-dialog .dialog-image {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0px 0px 10px var(--Shadow-opacity-background-color);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.no-scroll {
  overflow: hidden;
}
.image-dialog.open .dialog-image {
  opacity: 1;
}
.zoomed {
  transform: scale(1.5);
  cursor: zoom-in;
}
.image-dialog .close-dialog {
  position: fixed;
  top: 5vh;
  left: 2vw;
  font-size: 28px;
  color: var(--main-text-color);
  cursor: pointer;
  font-weight: bold;
  opacity: 0.6;
}
.close-dialog:hover {
  color: var(--active-text-color);
  opacity: 1;
}

.certificate-Page-Container-certificate {
  top: 5vh;
  margin: 0 auto 5vh;
  width: 80%;
  height: 86vh;
}
/* Center the project container */
.project-container {
  display: grid;
  margin: 0 auto 18vh;
  grid-template-columns: repeat(2, 1fr); /* Two items per row */
  gap: 20px;
  width: 45%; /* Adjust width for better layout */
  justify-content: center; /* Center the grid items */
  align-items: center;
  text-align: center;
  position: relative;
  top: 10vh;
}

/* Project item styles */
.project-item {
  position: relative;
  width: 100%;
  height: 265px;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-item:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.4);
}

.project-item-link {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.project-item-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4) blur(1px); /* Default filter for better visibility */
  transition: filter 0.3s ease;
  z-index: 1;

}

.project-item:hover .project-item-image {
  filter: brightness(0.2) blur(3px); /* Darker and more blur on hover */
}

/* Content styles */
.project-item-content {
  position: relative;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  text-align: center;
  color: var(--main-text-color);
  transition: transform 0.3s ease;
}

/* Title styles */
.project-item-title {
  font-size: 2rem;
  margin: 0 0 -60px;
  transition: font-size 0.3s ease, transform 0.3s ease;
  font-size: 1.5em;
  font-family: var(--head-company-font-family);
  font-weight: 300;
  font-style: var(--head-company-font-style);
}

/* Description styles */
.project-item-description {
  font-size: 15px;
  font-family: var(--desc-company-font-family);
  font-weight: 300;
  font-style: var(--desc-company-font-style);
  font-optical-sizing: var(--desc-font-optical-sizing);
  margin: 0;
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
  overflow: hidden;
  white-space: normal; /* Allow wrapping */
  max-height: 4.5em; /* Prevent excessive height */
  line-height: 1.5em;
  border-right: 2px solid transparent; /* Cursor effect */
  display: inline-block;
  direction: rtl;
  word-wrap: break-word; /* Break words at the end of a line */
  max-width: 80%;
  text-indent: 0; /* حدود دو برابر اندازه فونت */

}

/* Hover changes */
.project-item:hover .project-item-title {
  font-size: 2.1rem;
  transform: translateY(-70px); /* Move title up on hover */
  color: var(--active-text-color);
}

.project-item:hover .project-item-description {
  opacity: 1;
  transform: translateY(0);
}

/* Content Container (Image + Text) */
.pages-main-project-content {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  width: 80%;
  margin: 0 auto;
}

/* Left Section: Image */
.pages-main-project-image-section {
  width: 25%; /* Image container width */
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 3vh;
  margin-right: 7%;
}

.pages-main-project-main-image-container {
  width: 100%;
  max-width: 800px; /* Limit the size on larger screens */
  margin-bottom: 10px;
}
.pages-main-project-dot-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.image-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-container .icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 18px;
  color: var(--hover-text-color);
  background: rgba(0, 0, 0, 0.6);
  padding: 5px;
  border-radius: 50%;
  cursor: pointer;
}

.pages-main-project-main-image {
  width: 100%;
  aspect-ratio: 16 / 9; /* حفظ تناسب تصویر */
  height: 26vh;
  object-fit: cover; /* Ensure the image does not stretch */
  border-radius: 10px;
  aspect-ratio: 16 / 9; /* Ensure consistent aspect ratio */
  box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
  transition: opacity 0.5s ease-in-out; /* Smooth fade effect when changing image */
}

.pages-main-project-main-image:hover {
  box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.3);
}

.pages-main-project-thumbnails {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.pages-main-project-thumbnail {
  width: 31%;
  height: 8vh;
  border-radius: 5px;
  box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.1);
  border: 2px solid transparent; /* Optional: highlight when clicked */
  transition: opacity 0.5s ease; /* Smooth fade transition */
  opacity: 0.6; /* Ensure thumbnail is fully visible by default */
  pointer-events: auto; /* Allow interaction */
  max-width: 80px; /* Limit thumbnail size */
  height: auto; /* Maintain aspect ratio */
}

.pages-main-project-thumbnail:hover {
  transform: scale(1.1);
  filter: brightness(0.8);
  cursor: pointer;
}
.pages-main-project-thumbnail:active {
  transform: none; /* Prevent any active state transformation */
  filter: none; /* Prevent filter effect */
}

@media (max-width: 768px) {
  .pages-main-project-thumbnails {
    width: 100%;
  }

  .hide {
    display: none;
  }
}

/* Media Query: Adjust size for extra small screens (mobile) */
@media (max-width: 480px) {
  .pages-main-project-thumbnails {
    width: 44%;
    height: 44%;
  }
  .hide {
    display: none;
  }
}

/* Lightbox Fullscreen */
.lightbox {
  display: none;
  position: fixed;
  inset: 0; /* top:0; left:0; right:0; bottom:0 */
  background: rgba(0, 0, 0, 0.95);
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 1000;
  top: 0; /* ❌ دیگه از بالا فشار نمی‌دیم */

  padding: 20px; /* فاصله از دیواره‌ها */
  box-sizing: border-box;
}

/* For the Lightbox Close Button */
#close-btn {
  position: absolute;
  top: 5vh;
  left: 3vw;
  font-size: 28px;
  cursor: pointer;
  font-weight: bold;
  opacity: 0.6;
  color: var(--main-text-color);
}

#close-btn:hover {
  color: var(--active-text-color); /* Update with your active hover color */
  opacity: 1;
}

@media (max-width: 768px) {
  #close-btn {
    left: 10%;
  }
}

/* Media Query: Adjust size for extra small screens (mobile) */
@media (max-width: 480px) {
  #close-btn {
    left: 10%;
  }
.footer-Main-News {
    left:0;
}
}

/* Large Image (Fixed Size) */
.lightbox-content {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 85%;
  max-width: 1000px;
  margin: 20px auto; /* وسط‌چین بشه */
  position: relative;
  top: 0; /* ❌ دیگه به زور از بالا پایین نشه */
  z-index: 10;
}

.lightbox-content img {
  width: 100%;
  height: auto;
  object-fit: contain; /* Ensure consistent size */
  border-radius: 10px;
  box-shadow: 0px 5px 15px rgba(255, 255, 255, 0.2);
}

/* Thumbnails in Modal */
.lightbox-thumbnails {
  display: flex;
  justify-content: center;
  flex-wrap: wrap; /* اجازه بده بره خط بعدی */
  gap: 10px;
  margin-top: 15px;
  width: 100%;
}

/* Thumbnails in Modal */
.lightbox-thumbnail {
  flex: 0 1 auto; /* 👈 اجازه بده سایز بگیره و بشکنه */
  width: 80px; /* ❌ بدون !important */
  height: 60px;
  object-fit: cover;
  border-radius: 5px;
  cursor: pointer;
  transition: transform 0.3s;
}

.lightbox-thumbnail:hover {
  transform: scale(1.1);
  border: 2px solid var(--main-text-color);
}

@media (max-width: 768px) {
  .lightbox-thumbnails {
    margin-top: 50px;
  }
}

/* Media Query: Adjust size for extra small screens (mobile) */
@media (max-width: 480px) {
  .lightbox-thumbnails {
    margin-top: 50px;
  }
}

/* Hide #mainImage from appearing in lightbox */
#mainImage {
  display: block;
}

/* Right Section: Description */
.pages-main-project-text-section {
  width: 72%; /* Description container width */
  text-align: right; /* Right-align the description */
  direction: rtl; /* Right-to-left direction for Persian text */
  box-sizing: border-box;
}

.pages-main-project-description {
  font-size: 1.3rem;
  line-height: 1.8;
  color: var(--main-text-color);
  text-align: justify;
  font-family: var(--desc-company-font-family);
  font-weight: 400;
  font-style: var(--desc-company-font-style);
  font-optical-sizing: var(--desc-font-optical-sizing);
}

.pages-main-desc-section-part2 {
  width: 78%;
  display: flex;
  flex-direction: column;
  align-items: right;
  text-align: right;
  margin-top: 3vh;
  margin-left: 11%;
}

.pages-main-project-text-section-part2 {
  width: 100%;
  text-align: right;
  direction: rtl;
  position: relative;
  right: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  margin-top: 3vh;
  margin-right: 7%;
}
.pages-main-project-head-description {
  font-size: 2rem;
  line-height: 1.8;
  color: var(--main-text-color);
  align-items: right;
  text-align: right;
  font-family: var(--desc-company-font-family);
  font-weight: 600;
  font-style: var(--desc-company-font-style);
  font-optical-sizing: var(--desc-font-optical-sizing);
}
.head_spacing {
  margin-bottom: -15px;
}
.ul-desc {
  letter-spacing: 1px;
  font-size: 1.3rem;
}
.ul-dash {
  list-style-type: circle;
}
.ul-desc li {
  letter-spacing: 1px;
}

.product-relate {
  margin-top: 8vh;
}
/* Container for centering and inline display */
.sliding-Card-Container {
  width: 80vw;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 40px 40px;
  justify-content: center;
  margin-bottom: 8%;
}

.sliding-Card-Item {
  width: 300px;
  box-sizing: border-box;
  padding: 20px;
  margin: 0 auto; /* مرکز کردن کارت داخل ستون */
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 12px;
  background-color: rgba(19, 17, 16, 0.1);
  border: 3px solid #131110;
  box-shadow: 2px 4px 6px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease;
}

/* ✅ موبایل – کمتر از 600px */
@media (max-width: 600px) {
  .sliding-Card-Container {
    margin-top: 3%;
    grid-template-columns: 1fr; /* فقط یک کارت در هر ردیف */
    justify-items: center;
  }
  .sliding-Card-Item {
    width: 200px;
  }
}

/* ✅ تبلت – بین 600px تا 900px */
@media (min-width: 601px) and (max-width: 900px) {
  .sliding-Card-Container {
    grid-template-columns: repeat(2, auto);
    justify-content: center;
    gap: 20px 20px;
  }
}

/* ✅ دسکتاپ بزرگ – بیشتر از 1200px */
@media (min-width: 1200px) {
  .sliding-Card-Container {
    grid-template-columns: repeat(2, auto);
    justify-content: center;
    gap: 20px 40px;
  }
}
/* Image styling */
.item-image {
  width: 80%; /* Scales image to fit card */
  height: auto; /* Maintains aspect ratio */
  margin-bottom: 10px;
  border-radius: 8px; /* Rounded image corners */
  transition: transform 0.3s ease; /* Smooth scaling on hover */
}

/* Title styling */
.item-title {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--main-text-color);
  margin: 10px 0 0;
}

/* Hover animation */
.sliding-Card-Item:hover {
  transform: translateY(-10px) scale(1.05); /* Moves and scales card */
  box-shadow: 4px 8px 12px rgba(0, 0, 0, 0.4); /* Enhanced shadow on hover */
  background-color: var(
    --footer-background-color
  ); /* Slightly darker background */
}

/* Hover animation for image */
.sliding-Card-Item:hover .item-title {
  color: var(--active-text-color);
}
.pointer {
  cursor: pointer;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.glass-wa-btn {
  position: fixed;
  bottom: 30px;
  left: 30px;
  background: rgba(255, 255, 255, 0.15);
  color: var(--main-text-color);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 12px 20px;
  border-radius: 40px;
  font-size: 16px;
  font-family: var(--desc-company-font-family);
  font-weight: 800;
  font-style: var(--desc-company-font-style);
  font-optical-sizing: var(--desc-font-optical-sizing);
  display: flex;
  align-items: center;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
  z-index: 1000;
}

.glass-wa-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.glass-wa-btn img {
  margin-left: 5px;
  width: 22px;
  height: 22px;
}
.glass-wa-btn span {
  display: inline;
  margin-top: 1px;
}

@media screen and (max-width: 768px) {
  .glass-wa-btn {
    padding: 12px;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
  }

  .glass-wa-btn span {
    display: none;
  }

  .glass-wa-btn img {
    margin-left: 0;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .pages-main-project-content {
    flex-direction: column-reverse; /* Stack image and text vertically, description comes first */
    align-items: center; /* Center align the content */
  }

  .pages-main-project-image-section,
  .pages-main-project-text-section {
    width: 100%; /* Full width for both on small screens */
  }

  .pages-main-project-thumbnails {
    justify-content: center;
  }

  .pages-main-project-thumbnail {
    width: 25%;
  }
}

/* Table Container for Responsiveness */
.responsive-table-container {
  overflow-x: auto; /* Allow horizontal scrolling on small screens */
  direction: rtl; /* Set text direction to RTL for Persian */
  border-collapse: collapse; /* Collapse table borders */
}

/* Table Styling */
.responsive-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center; /* Align text to the right */
  font-family: "Vazir", sans-serif; /* Replace with your Persian font */
  font-size: 1em;
  margin: 10px 0 10px;
  border-radius: 14px;
}

.responsive-table th {
  font-size: 21px;
  color: var(--dark-text-color);
  background-color: var(--main-text-color);
  opacity: 0.5;
  font-family: var(--head-company-font-family);
  font-weight: 200;
  font-style: var(--head-company-font-style);
  font-optical-sizing: var(--head-font-optical-sizing);
  padding-top: 15px;
  padding-bottom: 15px;
  border-bottom: none !important; /* حذف خط زیر هدر */
  margin-bottom: 10px; /* فاصله به سمت پایین */
  box-shadow: none !important; /* حذف هر سایه احتمالی */
  pointer-events: none; /* جلوگیری از هاور و کلیک روی هدر */
  user-select: none; /* جلوگیری از انتخاب متن */
  align-items: center;
  justify-content: center;
  text-align: center;
  vertical-align: middle;
}

.responsive-table th:first-child {
  border-top-right-radius: 14px;
}

.responsive-table th:last-child {
  border-top-left-radius: 14px;
}
.responsive-table th:hover {
  background-color: none !important;
  box-shadow: none;
}

/* Table Rows */
.responsive-table td {
  padding: 10px;
  text-align: center; /* Center-align row content */
  vertical-align: middle;
  white-space: nowrap;
  color: var(--main-text-color);
  font-family: var(--desc-company-font-family) !important;
  font-weight: 400;
  font-style: var(--desc-company-font-style) !important;
  font-optical-sizing: var(--desc-font-optical-sizing) !important;
}
.no-hover .responsive-table td {
  text-align: right; /* Center-align row content */
}
/* Gradient border for each row */
.responsive-table tr {
  position: relative; /* Required for positioning the gradient border */
}
.responsive-table tr:hover {
  cursor: pointer;
  background-color: var(--footer-background-color) !important;
  box-shadow: 1px 1px 5px 0 rgb(19, 17, 16);
}
/* Disable hover effect for tables inside containers with the "no-hover" class */
.no-hover .responsive-table tr:hover {
  cursor: default; /* Prevent pointer cursor */
  background-color: var(
    --main-background-color
  ) !important; /* No background change on hover */
  box-shadow: none; /* Remove shadow effect */
}
.responsive-table tr::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px; /* Height of the gradient border */
  background: linear-gradient(
    to right,
    #e4fde100,
    #e4fde100,
    #e4fde115,
    #e4fde121,
    #e4fde115,
    #e4fde100,
    #e4fde100
  );
}
.table-num-style {
  font-size: 25px;
  color: var(--hover-text-color) !important;
  padding-right: 25px !important;
  font-family: var(--head-company-font-family);
  font-weight: 200;
  font-style: var(--head-company-font-style);
  font-optical-sizing: var(--head-font-optical-sizing);
}
.responsive-table td:nth-child(3) {
  color: var(--active-background-color);
  font-style: var(--head-company-font-style) !important;
  font-family: var(--head-company-font-family) !important;
}

/* .responsive-table tr:nth-child(even) {
   background-color: var(--footer-background-color); Add contrast for alternating rows 
} */

.responsive-table tr:nth-child(odd) {
  background-color: var(
    --main-background-color
  ); /* Add contrast for alternating rows */
}

/* Image Styling */
.small-pic {
  width: 64px;
  height: 64px;
  border-radius: 50%; /* Circular images */
  object-fit: cover; /* Ensure images maintain aspect ratio */
}
/* Styling for Tags */
.tags {
  text-align: center; /* Center align in the table cell */
}

.tag {
  text-decoration: none; /* Remove underline from links */
  box-shadow: 1px 1px var(--dark-text-color);
  color: var(--dark-text-color); /* A nice  shade for links */
  background-color: var(--main-text-color); /* Light  background */
  border: 1px solid var(--dark-text-color); /* Border matching link color */
  padding: 6px 20px; /* Add spacing around text */
  margin: 5px; /* Space between tags */
  border-radius: 15px; /* Rounded corners for a pill shape */
  display: inline-block; /* Allow tags to stack or align inline */
  font-family: "Vazir", sans-serif; /* Persian font */
  font-size: 0.9em; /* Slightly smaller text */
  transition: background-color 0.3s, color 0.3s; /* Smooth hover effect */
  font-family: var(--desc-company-font-family);
  font-weight: 500;
  font-style: var(--desc-company-font-style);
  font-optical-sizing: var(--desc-font-optical-sizing);
}

/* Hover Effect */
.tag:hover {
  background-color: var(--active-background-color); /* Darker  on hover */
  color: var(--dark-text-color); /* White text on hover */
}

/* Responsive Design */
@media (max-width: 768px) {
  .responsive-table th,
  .responsive-table td {
    font-size: 0.9em; /* Adjust font size on smaller screens */
    padding: 8px;
  }
  .small-pic {
    width: 30px;
    height: 30px; /* Smaller images on mobile */
  }
  .responsive-table-container {
    padding: 0 10px; /* Add horizontal padding for better spacing */
  }
}

.blog-products-Dot-Right {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  position: absolute;
  top: 3%;
  right: 3%;
  background: linear-gradient(to right, #0000004f, #0000004f, #0000004f);
  border: 1px solid var(--border-text-color);
  text-shadow: 1px 1px 1px var(--dark-text-color);
}

.blog-products-Dot-left {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  position: absolute;
  top: 3%;
  left: 3%;
  background: linear-gradient(to right, #0000004f, #0000004f, #0000004f);
  border: 1px solid var(--border-text-color);
  text-shadow: 1px 1px 1px var(--dark-text-color);
}

.blog-products_Container {
  position: relative;
  top: 7vh;
  max-width: 1100px;
  width: 100%;
  background-color: #13111010;
  filter: drop-shadow(1px 4px 4px rgba(0, 0, 0, 0.258));
  border-radius: 22px;
  box-shadow: 0 0 3px 2px var(--Shadow-opacity-background-color);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 45px;
  padding: 25px 15px 55px 15px;
  box-sizing: border-box;
  margin-bottom: 5%;
}

.blog-product-Head-Text {
  text-shadow: 1px 1px 1px var(--dark-text-color);
  color: var(--main-text-color);
  font-size: 64px;
  text-align: center;
  padding-top: 3%;
  width: 100%;
}

.blog-product {
  position: relative;
  top: 10vh;
  width: 100%;
  max-width: 25%;
  text-align: center;
  border: 1px solid;
  height: auto;
  min-height: 470px;
  border-radius: 22px 22px 20px 20px;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.blog-product:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.blog-product img {
  width: 100%;
  height: 175px;
  object-fit: cover;
  border-radius: 22px 22px 0 0;
}
.blog-product:hover .blog-product-item-text {
  line-height: 1.5;
  border-width: 2px;
  border-style: solid;
  border-image: linear-gradient(
      to right,
      hsla(0, 92%, 49%, 0) 99.7%,
      var(--active-text-color) 100%
    )
    1;
}
.blog-product-item-head_text {
  color: var(--active-text-color);
  text-shadow: 1px 1px 1px var(--dark-text-color);
  font-size: 18px;
  white-space: normal;
  text-overflow: ellipsis;
  padding: 10px;
  padding-right: 20px;
  padding-left: 20px;
  margin-top: -3%;
}

.blog-product-item-text {
  text-shadow: 1px 1px 1px var(--dark-text-color);
  color: var(--main-text-color);
  font-size: 15px;
  direction: rtl;
  text-align: right;
  overflow: hidden;
  width: 100%;
  padding: 0 10px;
  padding-right: 8%;
  padding-left: 8%;
  margin: 10px 0;
  text-align: right;
  line-height: 1.5;
  white-space: normal;
  text-overflow: ellipsis;
  display: block;
  word-break: break-word;
  line-height: 1.5;
  position: relative;
  top: -8%;
  border-width: 1px;
  border-style: solid;
  border-image: linear-gradient(
      to right,
      hsla(0, 92%, 49%, 0) 99.7%,
      var(--hover-text-color) 100%
    )
    1;
  text-indent: 0;

}

.blog-product-item-Read-more {
  padding: 1.3em 3em;
  font-size: 14px;
  font-weight: 500;
  color: var(--main-text-color);
  border: solid 1px var(--main-text-color);
  border-radius: 35px;
  cursor: pointer;
  outline: none;
  position: relative;
  bottom: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  width: 150px;
  height: 50px;
}

.blog-product-item-Read-more:hover {
  border-color: var(--active-text-color);
  color: var(--active-text-color);
}

.blog-product-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.blog-product:hover {
  cursor: pointer;
}
.blog-product-Bottom-Section {
  width: 95%;
  height: 50px;
  margin-top: 15%;
}
.blog-product-Bottom-Line {
  height: 1px;
  width: 70%;
  margin-left: 24%;
  background: var(--main-text-color);
  opacity: 0.5;
}
.blog-product-Bottom-Button {
  width: 150px;
  height: 50px;
  padding: 1.1em 3em;
  font-size: 16 px;
  font-weight: 500;
  color: var(--main-text-color);
  border: none;
  border-radius: 35px;
  border: solid 1px #d8d8d8;
  cursor: pointer;
  outline: none;
  position: relative;
  left: 6%;
  top: -1vh;
}
.blog-product-Bottom-Button:hover {
  border-color: var(--active-text-color);
  color: var(--active-text-color);
}
@media (max-width: 1024px) {
  .blog-products-Dot-left,
  .blog-products-Dot-Right {
    top: 2%; /* کمی بالاتر */
  }
  .blog-product {
    max-width: 48%; /* حدود نصف کانتینر */
    flex: 0 0 48%; /* جلوگیری از بهم‌ریختگی */
  }
  .blog-products_Container {
    gap: 20px;
    max-width: 85%;
  }
  .blog-product-item-Read-more,
  .blog-product-Bottom-Button {
    width: 130px;
    height: 45px;
    font-size: 11px;
  }
  .blog-product-Bottom-Section {
    margin-top: 20%;
  }
}

@media (max-width: 768px) {
  .blog-products-Dot-left,
  .blog-products-Dot-Right {
    top: 1%; /* بالاتر */
  }
  .blog-product {
    max-width: 75%; /* حدود نصف کانتینر */
    flex: 0 0 75%; /* جلوگیری از بهم‌ریختگی */
  }
  .blog-product-item-Read-more,
  .blog-product-Bottom-Button {
    width: 130px;
    height: 40px;
    font-size: 12px;
  }
  .blog-products_Container {
    gap: 20px;
    padding: 20px;
    max-width: 85%;
  }

  .blog-product-item-head_text {
    font-size: 16px;
  }

  .blog-product-item-text {
    font-size: 14px;
  }
  .blog-product-Bottom-Section {
    margin-top: 25%;
  }
  .blog-product-Bottom-Line {
    width: 65%;
    margin-left: 30%;
  }
}

@media (max-width: 480px) {
  .blog-products-Dot-left,
  .blog-products-Dot-Right {
    top: 0.5%; /* بالاتر */
  }
  .blog-product {
    flex: 0 0 75%; /* بگیره کل عرض */
    max-width: 75%; /* محدودیت حذف بشه */
    margin: 0 10px; /* کمی فاصله از طرفین */
  }

  .blog-products_Container {
    gap: 15px;
    padding: 15px;
    max-width: 75%;
  }
  .blog-product-item-head_text {
    font-size: 15px;
  }

  .blog-product-item-text {
    font-size: 13px;
  }
  .blog-product-item-Read-more,
  .blog-product-Bottom-Button {
    width: 85px;
    height: 40px;
    font-size: 10px;
  }
  .blog-product-Bottom-Button {
    font-size: 13px;
    padding: 0.8em 2em;
  }
  .blog-product-Bottom-Line {
    width: 46%;
    margin-left: 48%;
  }
  .blog-product-Bottom-Section {
    margin-top: 45%;
  }
}

.blog-product-Bottom-Button:hover {
  border-color: var(--active-text-color);
  color: var(--active-text-color);
}

.project-sample-item {
  height: 35vh;
  object-fit: cover;
}
.project-sample-item-Second-Text {
  width: 80%;
  text-align: center;
  margin: 0 auto;
}
.pages-main-project-thumbnail-project {
  width: 31%;
  height: 8vh;
  border-radius: 5px;
  box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.1);
  border: 2px solid transparent; /* Optional: highlight when clicked */
  transition: opacity 0.5s ease; /* Smooth fade transition */
  opacity: 0.6; /* Ensure thumbnail is fully visible by default */
}

.pages-main-project-thumbnail-project:hover {
  transform: scale(1.1);
  filter: brightness(0.8);
  cursor: pointer;
}
.image-container {
  position: relative;
  display: inline-block;
  width: 100%;
  height: 100%;
}

.image-container img {
  display: block;
  width: 100%;
  height: 89%;
}

.image-container .icon {
  z-index: 500;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 24px; /* Adjust icon size */
  color: white; /* Icon color */
  background: rgba(
    0,
    0,
    0,
    0.5
  ); /* Optional: background for better visibility */
  padding: 8px; /* Adjust padding */
  border-radius: 50%; /* Optional: circular background */
}
.image-container:hover .icon {
  color: var(--active-text-color); /* Change color on hover */
  transform: translate(-50%, -50%) scale(1.2); /* Add a scaling effect */
  transition: transform 0.2s ease, color 0.2s ease;
}

.image-container:hover img {
  filter: brightness(0.3); /* Dim the image */
  transform: scale(1.1);
  transition: filter 0.2s ease;
  z-index: 2;
}

.tags-container {
  margin: 50px auto;
  width: 80%;
  padding: 20px;
  background: #1311105b;
  border-radius: 10px;
  direction: rtl; /* Ensure right-to-left direction */
  text-align: right; /* Align text to the right */
}

.tags-title {
  font-size: 28px;
  font-family: var(--head-company-font-family);
  font-style: var(--head-company-font-style);
  font-optical-sizing: var(--head-font-optical-sizing);
  font-weight: 100;
  margin-bottom: 35px;
  color: var(--main-text-color);
}

.tags-wrapper {
  display: flex;
  justify-content: flex-start; /* Align tags to the right */
  flex-wrap: wrap;
  gap: 15px;
}

.tag-item {
  border: 1px solid var(--active-background-color);
  color: #d8d8d8d9;
  padding: 8px 15px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 14px;
  transition: 0.3s;
  white-space: nowrap; /* Prevents breaking */
  direction: rtl; /* Ensures text flows correctly */
  display: inline-block;
  font-family: var(--desc-company-font-family);
  font-weight: 300;
  font-style: var(--desc-company-font-style);
  font-optical-sizing: var(--desc-font-optical-sizing);
}

.tag-item::before {
  content: "# ";
  margin-left: 1px; /* Adds space after # */
  color: inherit;
}

.tag-item:hover {
  color: var(--active-text-color);
  transform: scale(1.1);
  transition: 0.2s ease-in-out;
}

.pages-main-project-text-section.project-sample-item-Second-Text img {
  max-width: 100%;
  height: auto;
  display: block; /* Optional: remove inline spacing */
  margin: 0 auto; /* Optional: center images */
}

.gallery-pics-text {
  color: var(--main-text-color);
  text-shadow: 1px 1px 1px var(--dark-text-color);
  font-size: 2.2em;
  text-align: right;
  margin: 0;
  position: relative;
  top: -42vh;
  right: -47%;
  font-family: var(--head-company-font-family);
  font-weight: 100;
  font-style: var(--head-company-font-style);
  transform: rotate(90deg);
}
.li_span {
  font-weight: normal !important;
  font-size: 1.2rem;
}
/* General styles for responsiveness */
@media (max-width: 1024px) {
  .certificate-Page-Container {
    width: 90vw; /* Adjust container width */
    height: 50vh; /* Reduce container height */
    border-radius: 16px;
  }
  .image-dialog .close-dialog {
    left: 4vw;
  }
  .project-container {
    grid-template-columns: repeat(2, 1fr); /* Two items per row */
    width: 55%; /* Adjust width for better layout */
  }
  .certificat-Page-Item {
    gap: 20px; /* Reduce spacing between items */
  }

  .certificat-Page-Items {
    gap: 10px; /* Smaller gap between items */
    font-size: 20px; /* Smaller font size */
  }

  .certificat-Page-Head-Text {
    right: -14%; /* Adjust positioning */
    margin-top: 46vh; /* Adjust positioning */
  }

  .certificate-Page-Line {
    width: 20%; /* Adjust line width */
    top: 48%; /* Adjust positioning */
  }

  .certificat-Page-Pic-Container {
    width: 275px;
    height: auto;
  }

  .certificat-Page-Pic {
    width: 100%;
    height: auto; /* Scale down image */
  }

  .certificat-Page-Head2-Text {
    font-size: 18px; /* Reduce font size */
    right: 20%;
    top: 67%;
  }

  .certificat-Page-slidershow {
    font-size: 13px; /* Smaller font for slidershow */
    width: 25vw; /* Adjust width */
  }
.footer-Copyright {
        justify-content: right;
        text-align: right;
        width: 87%;
        margin-top: -3%;
    }
}

@media (max-width: 768px) {
  .certificat-Page-Pic-Container {
    width: 160px;
    height: auto; /* حذف height:0 */
    position: static; /* حذف absolute */
  }
  .project-container {
    grid-template-columns: repeat(2, 1fr); /* Two items per row */
    width: 80%; /* Adjust width for better layout */
  }
  .certificat-Page-Item {
    gap: 8px;
  }

  .certificat-Page-Items {
    font-size: 14px;
    gap: 8px;
    position: relative;
    right: 10px;
  }

  .certificat-Page-Head-Text {
    font-size: 20px;
    right: -38%;
    margin-top: 40vh;
  }

  .certificate-Page-Line {
    display: none;
  }

  .certificat-Page-Pic-Container {
    width: 220px;
    height: auto;
    top: 13%;
    left: 10%;
  }
  .certificat-Page-Right {
    margin-left: 8%;
  }
  .certificat-Page-Pic {
    width: 100%;
    height: auto; /* نسبت اصلی حفظ بشه */
    max-height: 220px; /* برای کنترل ارتفاع */
    border-radius: 16px;
  }

  .certificat-Page-Head2-Text {
    font-size: 13px;
    max-width: 160px;
    text-align: center;
    position: static; /* حذف offsetها */
    margin-top: 6px;
  }

  .certificat-Page-slidershow {
    font-size: 13px;
    width: 20vw;
  }
}

@media (max-width: 480px) {
  .certificat-Page-Pic-Container {
    width: 140px;
    height: auto;
    position: static;
  }
  .project-container {
    grid-template-columns: repeat(2, 1fr); /* Two items per row */
    width: 80%; /* Adjust width for better layout */
  }

  .certificat-Page-Right {
    margin-right: -11%;
  }
  .certificat-Page-Item {
    gap: 6px;
  }

  .certificat-Page-Items {
    font-size: 12px;
    gap: 6px;
  }

  .certificat-Page-Head-Text {
    font-size: 18px;
    right: -10%;
    margin-top: 40vh;
  }

  .certificate-Page-Line {
    display: none;
  }

  .certificat-Page-Pic-Container {
    width: 150px;
    height: auto;
    top: 8%;
    left: 4%;
  }

  .certificat-Page-Pic {
    width: 100%;
    height: auto;
    max-height: 180px;
    border-radius: 12px;
  }

  .certificat-Page-Head2-Text {
    font-size: 12px;
    max-width: 140px;
    text-align: center;
    margin-top: 4px;
  }

  .certificat-Page-slidershow {
    font-size: 10px;
    width: 28vw;
    text-wrap: wrap;
  }
}

@media (max-width: 600px) {
  .intro-header h1 {
    font-size: 2em;
  }
  .intro-header p {
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  footer {
    top: 15vh;
    padding: 20px;
  }
  .foter-Head-Container {
    flex-direction: column;
    text-align: center;
  }

  .footer-Head-Text {
    font-size: 1.5em;
    top: 0;
  }
  .footer-Main-Link-Continer {
    flex-direction: column;
    gap: 20px;
    margin-top: 5vh;
  }
  .footer-Main-Item {
    text-align: center;
    padding: 0;
  }
  .footer-Bottom-Item-Head-Text {
    font-size: 18px;
    margin-top: 20px;
  }
}
@media (max-width: 768px) {
  .dropdown:hover .dropdown-content,
  .dropdown.show .dropdown-content {
    display: none;
  }
  .prev-slideshow,
  .next-slideshow {
    font-size: 18px;
  }
  .header-nav ul {
    align-items: center;
    width: 100%;
    gap: 5px;
  }
  .header-nav li {
    width: 100%;
    text-align: center;
  }
  .header-nav a {
    font-size: 10px;
    margin: -10px;
    max-width: 80px;
  }
  .header-nav li:not(:last-child)::after {
    width: 0;
  }
  .logo img,
  .Header_logo img {
    height: 40px;
    width: 45px;
  }
  .Header_logo {
    margin: 0 20px;
  }
  .grid-Item-Head-Text {
    font-size: 20px !important;
    margin-top: 25%;
  }
  .intro-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    padding: 20px;
  }
  .pages-main-project-main-image {
    height: 35vh;
  }
  .pages-main-project-thumbnail {
    width: 32%;
    height: 10vh;
  }
}

/* Media Query for smaller screens */
@media (max-width: 768px) {
  .footer-Main-Address {
    margin-left: 0;
  }
  .footer-Copyright i {
    font-size: 0.9rem; /* Scale icon size down slightly */
  }
  .footer-Copyright-text {
    font-size: 0.9rem; /* Matches text size with icon */
  }
}
@media (max-width: 480px) {
  .grid-Item-Head-Text {
    font-size: 28px;
  }
}

.pages-main-project-design-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.86);
}
.grid-container {
  display: grid;
  grid-template-columns: repeat(3, 250px); /* سه آیتم در دسکتاپ */
  gap: 125px;
  padding: 20px;
  justify-content: center;
  max-width: 80%; /* ✅ فقط 80 درصد عرض صفحه */
  margin: 0 auto; /* ✅ وسط‌چین شدن */
  max-width: 100%;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
  direction: rtl;
  margin-left: 8%;
}

.helicopter-item {
  position: relative;
  cursor: pointer;
  width: 325px;
  height: 300px;
  overflow: hidden;
  box-shadow: -10px 5px 5px #00000035;
  border: 1px solid transparent; /* حالت عادی بدون border */
  border-radius: 0; /* حالت عادی بدون radius */
  transition: border-radius 0.3s ease 0.2s,
    /* تاخیر 0.2s برای radius */ border 0.3s ease 0.2s,
    /* تاخیر 0.2s برای border */ z-index 0s; /* بدون تاخیر برای z-index */
}
.helicopter-item a {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  text-decoration: none;
}

.helicopter-item-background {
  width: 100%;
  height: 100%;
  background-size: cover; /* تصویر 100% کانتینر را پر می‌کند */
  background-position: center;
  position: absolute;
  top: 0;
  right: 0;
  border: 1px solid var(--main-background-color);
  border-top-left-radius: 14px;
  border-bottom-left-radius: 14px;
}

.helicopter-item-overlay {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to left,
    rgb(30, 27, 24, 1) 0%,
    rgba(30, 27, 24, 1) 20%,
    rgba(30, 27, 24, 0.98) 21%,
    rgba(30, 27, 24, 0.95) 23%,
    rgba(30, 27, 24, 0.92) 25%,
    rgba(30, 27, 24, 0.89) 27%,
    rgba(30, 27, 24, 0.85) 29%,
    rgba(30, 27, 24, 0.82) 30%,
    rgba(30, 27, 24, 0.79) 31%,
    rgba(30, 27, 24, 0.75) 33%,
    rgba(30, 27, 24, 0.7) 35%,
    rgba(30, 27, 24, 0.65) 37%,
    rgba(30, 27, 24, 0.55) 39%,
    rgba(30, 27, 24, 0.45) 42%,
    rgba(30, 27, 24, 0.35) 44%,
    rgba(30, 27, 24, 0.25) 46%,
    rgba(30, 27, 24, 0.1) 48%,
    rgba(30, 27, 24, 0) 50%,
    rgba(30, 27, 24, 0) 100%
  );
}

.helicopter-item-text {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%); /* وسط‌چین */
  color: var(--active-text-color);
  font-size: 26px;
  text-align: center;
  font-family: var(--head-company-font-family);
  font-style: var(--head-company-font-style);
  z-index: 1; /* اطمینان از نمایش متن روی تصویر پس‌زمینه */
  white-space: nowrap;
  filter: drop-shadow(0px 2px 4px var(--dark-text-color));
}
.helicopter-item-main-text {
  position: absolute;
  left: 90%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(90deg);
  transform-origin: center;
  color: var(--main-text-color);
  font-size: 34px;
  font-weight: bold;
  text-align: center;
  font-family: "Winky Rough", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
  z-index: 2;
  white-space: nowrap;
}

.helicopter-item-background,
.helicopter-item-overlay,
.helicopter-item-text,
.helicopter-item-main-text {
  transition: all 0.5s ease;
}

/* استایل hover برای کل آیتم */
.helicopter-item:hover {
  z-index: 10; /* برای نمایش روی سایر آیتم‌ها */
  border-radius: 14px;
  transition: border-radius 0.3s ease 0s,
    /* بدون تاخیر هنگام hover */ border 0.3s ease 0s,
    /* بدون تاخیر هنگام hover */ z-index 0s;
}

/* افکت‌های hover */
.helicopter-item:hover .helicopter-item-background {
  transform: scale(1.05); /* بزرگ کردن تصویر */
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5); /* اضافه کردن سایه */
  filter: brightness(1.1); /* افزایش روشنایی تصویر */
}

.helicopter-item:hover .helicopter-item-overlay {
  opacity: 0; /* محو کردن overlay */
}

.helicopter-item:hover .helicopter-item-text,
.helicopter-item:hover .helicopter-item-main-text {
  opacity: 0; /* محو کردن متن‌ها */
  transform: translate(-50%, -50%) scale(0.9); /* کوچک کردن متن برای افکت محو شدن */
}

/* ریسپانسیو برای دستگاه‌های کوچک‌تر */
@media (max-width: 800px) {
  .grid-container {
    grid-template-columns: repeat(
      auto-fit,
      minmax(200px, 1fr)
    ); /* کوچک‌تر و انعطاف‌پذیر */
    gap: 15px;
    padding: 15px;
  }

  .helicopter-item {
    width: 100%; /* عرض کامل در دستگاه‌های کوچک */
    height: 300px; /* ارتفاع کمی کوچک‌تر */
  }

  .helicopter-item-text {
    font-size: 16px; /* اندازه متن کمی کوچک‌تر */
  }
  .helicopter-item-main-text {
    font-size: 20px;
  }
}

/* برای دستگاه‌های خیلی کوچک (مثل موبایل) */
@media (max-width: 500px) {
  .grid-container {
    grid-template-columns: 1fr; /* یک ستون، زیر هم */
    gap: 10px;
    padding: 10px;
  }

  .helicopter-item {
    height: 250px; /* ارتفاع کوچک‌تر */
  }

  .helicopter-item-text {
    font-size: 14px; /* اندازه متن کوچک‌تر */
  }
  .helicopter-item-main-text {
    font-size: 16px;
  }
}

/* Only Desktop */
@media (min-width: 1025px) {
  .intro-grid--secondary .intro-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(250px, 1fr)); /* دقیقا ۴ ستون */
    gap: 30px;
    justify-content: center; /* خود گرید وسط بمونه */
  }

  /* هر چیزی که قبلاً به دو آیتم آخر span 2 یا margin داده بودیم رو ریست کن */
  .intro-grid--secondary .intro-grid a {
    grid-column: auto;
    margin: 0;
  }

  /* دو کارت آخر دقیقا ستون‌های وسط (۲ و ۳) را بگیرند → هم‌عرض بقیه + فاصله درست */
  .intro-grid--secondary .intro-grid a:nth-last-child(2) {
    grid-column: 2;
  }
  .intro-grid--secondary .intro-grid a:last-child {
    grid-column: 3;
  }
  .lightbox-content {
    position: relative !important;
    top: 0 !important; /* مثل نسخه‌ی اول */
    width: 70% !important; /* عرض مناسب */
    height: 75% !important; /* ارتفاع ثابت */
    margin-top: 4% !important;
    z-index: auto !important; /* دیگه زیر thumbnails نره */
    border: none !important; /* خط قرمز تست حذف شه */
  }
  .pages-main-project-text-section.project-sample-item-Second-Text img {
    margin: 0;
  }
  .lightbox-content img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
  }

  .lightbox-thumbnails {
    margin-top: 20px !important; /* برگرده به حالت عادی */
  }

  .lightbox-thumbnail {
    width: 80px !important;
    height: 60px !important;
  }

  .footer-Copyright {
    justify-content: right;
    text-align: right;
    width: 87%;
    margin-top: -3%;
  }
}

/* Ipad And Tablet In LandScape */
@media (max-width: 1024px) and (min-width: 768px) {
  .blog-product-Bottom-Line {
    margin-top: 35px;
  }
  .pages-main-project-main-image {
    height: 225px;
    width: 100%;
    margin-top: 45%;
  }

  .grid-Item-Head-Text {
    margin-top: 20%;
  }
  .intro-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* دقیقا ۳ ستون */
    gap: 20px; /* فاصله بین کارت‌ها کمتر از دسکتاپ */
    padding: 0 20px; /* فاصله از لبه‌ها */
  }

  .intro-item {
    min-height: 230px; /* کمی جمع‌وجورتر از دسکتاپ */
  }
  .pages-main-project-image-section {
    margin-right: 0;
  }
  .gallery-pics-text {
    margin-top: 35px;
    top: 0;
    right: 0%;
    font-size: 2em;
    transform: rotate(0deg); /* می‌تونی بچرخونی یا کلا راستش کنی */
    text-align: right;
  }
  .grid-container {
    width: 80%; /* کوچیک‌تر بشه ولی همچنان وسط باشه */
    gap: 20px;
    margin-left: 10%;
  }
  .helicopter-item {
    position: relative;
    cursor: pointer;
    width: 225px;
    height: 175px;
    margin: 0 auto;
  }
  .helicopter-item-text {
    font-size: 18px;
  }
  .lightbox-content {
    width: 75%;
    margin-top: 40px;
  }
  .lightbox-thumbnail {
    width: 80px;
    height: 60px;
  }
  .foter-Head-Container {
    flex-direction: column; /* آیتم‌ها زیر هم */
    justify-content: center;
    align-items: center;
    text-align: center;
    top: 20px;
  }

  .footer_Logo {
    margin-right: 0;
    margin: 0 auto; /* وسط بیاد و فاصله از متن داشته باشه */
  }

  .footer-Head-Text {
    order: 2;
    margin: 0;
    text-align: center;
    font-size: 2rem; /* بزرگ‌تر از گوشی */
  }

  .footer-Main-Link-Continer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 50px; /* کمی فاصله بیشتر نسبت به موبایل */
    margin-top: 6vh;
  }

  .footer-Main-Item {
    justify-content: center;
    text-align: center;
    padding: 0;
  }
  .footer-Main-Address {
    margin-left: 0;
  }
  .footer-main-Head-Text {
    font-size: 1.6rem; /* بزرگ‌تر از موبایل (1.4rem بود) */
  }

  .footer-Main-Text {
    font-size: 1rem; /* متن توضیحات بزرگ‌تر از موبایل */
  }

  .footer-Main-Text a {
    font-size: 1rem;
  }

  .footer-Bottom-Item-Head-Text {
    font-size: 1.4rem; /* کمی بزرگ‌تر از موبایل */
  }

  .footer-Main-Item-Devider,
  .footer-Main-Item-Devider-right {
    top: 12vh; /* متناسب‌تر از گوشی */
  }
}
/* Large Phone And Tablet */
@media (max-width: 767px) and (min-width: 481px) {
  h1,
  .grid-Item-Head-Text {
    font-size: 2rem;
  }
  p,
  .pages-main-project-description,
  .intro-header p {
    font-size: 1rem;
  }
  .pages-main-project-head-description {
    font-size: 1.5rem;
  }
  .intro-grid {
    justify-content: center;
  }
  .intro-grid--centered a:last-child {
    grid-column: 1 / -1; /* بگیره کل ردیف آخر رو */
    justify-self: center; /* و خودش بیاد وسط */
  }
  .header-container {
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden; /* جلوگیری از پرتی افقی */
  }

  .header-nav {
    justify-content: space-between; /* همه در یک خط بمونن */
    padding: 0 10px; /* فاصله داخلی کمتر */
    gap: 10px;
  }

  .header-nav ul {
    gap: 10px; /* فاصله بین آیتم‌ها کمتر بشه */
    margin: 0; /* حذف مارجین پیش‌فرض مرورگر */
    padding: 0; /* حذف پدینگ پیش‌فرض مرورگر */
  }

  .header-nav a {
    max-width: none; /* محدودیت 150px حذف بشه */
    white-space: nowrap; /* لینک‌ها خطی بمونن */
    font-size: 13px; /* متن کوچک‌تر */
    padding: 4px 6px; /* فضای کمتر */
  }

  .Header_logo img {
    max-width: 40px; /* لوگو کوچیک‌تر بشه */
    height: auto;
  }
  .pages-main-project-image-section {
    margin-right: 0;
  }
  .gallery-pics-text {
    margin-top: 35px;
    top: 0;
    right: 0%;
    font-size: 1.6em;
    transform: rotate(0deg); /* می‌تونی بچرخونی یا کلا راستش کنی */
    text-align: right;
  }
  .lightbox-content {
    width: 85%;
    margin-top: 30px;
  }
  .lightbox-thumbnail {
    width: 75px;
    height: 55px;
  }
  .foter-Head-Container.foter-Head-Container {
    flex-direction: column; /* آیتم‌ها بیفتن زیر هم */
    justify-content: center; /* وسط‌چین عمودی */
    align-items: center; /* وسط‌چین افقی */
    text-align: center; /* متن وسط */
    top: 20px;
  }
  .footer-Head-Text {
    order: 2; /* بعدش بیاد */
    margin: 0; /* اضافه‌ها حذف شه */
    text-align: center;
  }
  .footer_Logo {
    margin-right: 0;
    margin: 0 auto; /* وسط بیاد و فاصله از متن داشته باشه */
  }
}

/* Phone And Smaller Device */
@media (max-width: 480px) {
  .pages-main-project-thumbnails {
    width: 100%;
    height: 50%;
  }
  .grid-Item-Head-Text {
    margin-top: 15vh;
  }

  h1,
  .grid-Item-Head-Text {
    font-size: 1.6rem; /* تیتر کوچیک‌تر شه */
  }
  p,
  .pages-main-project-description,
  .intro-header p {
    font-size: 0.9rem; /* متن ریزتر شه */
  }
  .pages-main-project-head-description {
    font-size: 1.2rem;
  }
  .intro-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
  }
  .intro-item h3 {
    white-space: wrap; /* Prevents breaking into multiple lines */
  }
  .intro-item {
    min-height: 275px; /* ارتفاع پایه */
  }
  .project-item {
    height: 200px;
  }
  .intro-grid {
    justify-content: center;
  }
  .intro-grid--centered a:last-child {
    grid-column: 1 / -1; /* بگیره کل ردیف آخر رو */
    justify-self: center; /* و خودش بیاد وسط */
  }

  .header-nav {
    justify-content: space-between; /* همه در یک خط بمونن */
    padding: 0 10px; /* فاصله داخلی کمتر */
    gap: 10px;
  }
  .header-nav ul {
    gap: 15px;
  }
  .pages-main-project-image-section {
    margin-right: 0;
  }
  .gallery-pics-text {
    margin-top: 35px;
    top: 0;
    right: 0%;
    font-size: 1.6em;
    transform: rotate(0deg); /* می‌تونی بچرخونی یا کلا راستش کنی */
    text-align: right;
  }
  .grid-container {
    margin-left: 0;
    width: 80%;
  }

  .lightbox-content {
    width: 90%; /* بیشتر پر کنه صفحه */
    margin-top: 20px; /* بیاد بالاتر */
  }
  .lightbox-thumbnail {
    width: 65px;
    height: 48px;
  }
  .foter-Head-Container.foter-Head-Container {
    flex-direction: column; /* آیتم‌ها بیفتن زیر هم */
    justify-content: center; /* وسط‌چین عمودی */
    align-items: center; /* وسط‌چین افقی */
    text-align: center; /* متن وسط */
    top: 20px;
  }
  .footer_Logo {
    order: 1; /* اول بیاد */
    margin: 0 auto 10px; /* وسط بیاد و فاصله از متن داشته باشه */
  }

  .footer-Head-Text {
    order: 2; /* بعدش بیاد */
    margin: 0; /* اضافه‌ها حذف شه */
    text-align: center;
  }
  .footer-Main-Link-Continer {
    flex-direction: column; /* آیتم‌ها زیر هم */
    align-items: center; /* وسط‌چین افقی */
    text-align: center; /* متن‌ها هم وسط */
    gap: 40px; /* فاصله بین بلاک‌ها */
    margin-top: 5vh; /* کمی فاصله از بالا */
  }

  .footer-Main-Item {
    justify-content: center;
    text-align: center;
    padding: 0;
  }
  .footer-Main-Item-Devider,
  .footer-Main-Item-Devider-right {
    top: 15vh; /* ✅ به جای 18vh خیلی بالاتر میاد */
  }
}
@media (max-width: 480px) {
  .lightbox-content {
    width: 75%;
    margin-top: 10px; /* بیاد بالاتر */
  }
  .lightbox-thumbnail {
    width: 65px;
    height: 48px;
  }
  p {
  text-indent: 0 !important; /* حدود دو برابر اندازه فونت */
}
}

@media (min-width: 481px) and (max-width: 767px) {
  .lightbox-content {
    width: 80%;
    margin-top: 20px;
  }
  .lightbox-thumbnail {
    width: 70px;
    height: 52px;
  }
  p {
  text-indent: 0 !important; /* حدود دو برابر اندازه فونت */
}
}

@media (min-width: 768px) and (max-width: 1024px) {
  .lightbox-content {
    width: 90%;
    margin-top: 30px;
  }
  .lightbox-thumbnail {
    width: 75px;
    height: 55px;
  }
  p {
  text-indent: 0 !important; /* حدود دو برابر اندازه فونت */
}
}
p {
  text-indent: 2em; /* حدود دو برابر اندازه فونت */
}
