* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    text-decoration: none;
    list-style-type: none;
    font-family: Roya;
}


@font-face {
    font-family: Roya;
    src: url(/Persian/Far_RoyaBd/Far_RoyaBd.ttf);
  }


/* Whatsapp */
#whatsapp-fixed {
  position: fixed;
  left: 20px; /* distance from the left edge */
  top: 90%; /* vertically centered */
  transform: translateY(-50%);
  z-index: 1000; /* stay on top of other elements */
  width: 50px; /* size of the icon */
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #25D366; /* WhatsApp green background */
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: background-color 0.3s;
}

#whatsapp-fixed img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1); /* make icon white */
}

#whatsapp-fixed:hover {
  background-color: #1ebe5b; /* darker green on hover */
}
/* Header For Desktop */

  /* Header-Hamburger */
  .header-container {
    display: flex;
    flex-wrap: wrap;
    text-align: center;
  }

  .flex-header-right {
    padding: 10px;
    flex: 15%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }

  .flex-header-right span {
    font-size: 13.5px;
  }

  .flex-header-right span img {
    width: 15%;
    transform: translateY(5px);
    margin: 0px 3px;
  }

  .flex-header-right a {
    margin-top: 8px;
    color: #F79620;
  }

  .flex-header-right a:hover {
    color: #111;
  }
  

  .flex-header-mid {
    background-color: #F79620;
    padding: 10px;
    flex: 70%;
    /* margin-top: 5px; */
    border-radius: 30px;
  }

  .flex-header-mid p {
    justify-content: right;
    text-align: right;
  }

  .flex-header-mid .home ul {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    text-align: right;
    gap: 30px;
  }

  .flex-header-mid .home ul li a {
    color: #111;
    font-size: 20px;
  }


  .flex-header-mid .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    position: relative;
    left: 95%;
    top: 30%;  
  }

.flex-header-mid .hamburger span {
    background-color: #111;
    height: 3px;
    width: 100%;
    transition: all 0.3s ease;
}

.flex-header-mid .menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0px;
    background-color: #F79620;
    padding: 1rem;
    border-radius: 5px;
    width: 200px;
    text-align: right;
    z-index: 9999;
}

.flex-header-mid .hamburger:hover .menu {
    display: block;
}

.flex-header-mid .menu ul {
    list-style: none;
}

.flex-header-mid .menu ul li {
    padding: 0.5rem 0;
}

.flex-header-mid .menu ul li a {
    color: #111;
    text-decoration: none;
    font-size: 1rem;
}

.flex-header-mid .menu ul li a:hover {
    color: #ddd;
}

.flex-header-mid .home ul  {
  text-align: right;
  justify-content: right;
  margin-right: 100px;
}

.flex-header-mid ul p {
  font-size: 18px;
}

.flex-header-mid ul li a {
  margin-right: 10px;
}

.flex-header-mid ul li a:hover {
  color: #ddd;
}

  .flex-header-left {
    flex: 15%;
    padding: 10px;
  }

  .flex-header-left a img {
    width: 50%;
  }



/* Main */
  /* Slider Image */
  
/* Slideshow container */
.slideshow-container {
  max-width: 1500px;
  position: relative;
  margin: auto;
  top: 100px;
}

/* Hide the images by default */
.mySlides {
  display: none;
}

/* Next & previous buttons */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: #111;
  font-weight: bold;
  font-size: 20px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
  color: #fff;
}

/* Caption text */
.text {
  color: #f2f2f2;
  font-size: 15px;
  padding: 8px 12px;
  position: absolute;
  bottom: 8px;
  width: 100%;
  text-align: center;
}

/* Number text (1/3 etc) */
.numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

/* The dots/bullets/indicators */
.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active, .dot:hover {
  background-color: #717171;
}

/* Fading animation */
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}

/* Box For Product */
.title {
  display: flex;
  justify-content: center;
  text-align: center;
  margin-top: 200px;
}

.title p {
  font-size: 30px;
  padding: 20px 20px;
  border-top: 2px solid #ea580c;
  border-bottom: 2px solid #ea580c;
  width: 50%;
}

.title1 {
  display: flex;
  justify-content: center;
  text-align: center;
  margin: 0px auto;
  margin-top: 100px;
  margin-bottom: 40px;
}

.title1 h2 {
  font-size: 30px;
  padding: 20px 20px;
  border-bottom: 2px solid #ea580c;
  border-top: 2px solid #ea580c;
  width: 50%;
}

.container {
  display: flex;
  gap: 15px; /* space between boxes */
  justify-content: center; /* center the boxes horizontally */
  flex-wrap: nowrap; /* prevent wrapping; remove if you want wrapping on smaller screens */
  margin: 50px;
  flex-direction: row;
}
.box {
  width: 300px; /* adjust as needed */
  height: 300px; /* adjust as needed */
  border: 1px solid #111;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition : transform 0.5s ease;
  flex-direction: column;
}

.box:hover {
  opacity: 0.6;
}

.box p {
  font-size: 20px;
  color: #111;
  padding: 30px 0   ;
}

.box img {
  width: 100%;
  object-fit: cover;
}

/* Advertise */
/* .advertise {
  display: flex;
  flex-direction: center;
  margin: 0 auto;
  text-align: right;
  gap: 10px;
  padding: 0 120px;
  margin-top: 100px;
}

.advertise h1 {
  font-size: 24px;
  color: #F79620;
  margin-bottom: 10px;
  padding: 0 120px;
}

.advertise p {
  font-size: 15px;
  font-weight: 300;
  padding: 0 120px;
  line-height: 50px;
} */

.container1 {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* بخش اول: معرفی فولادسل */
.section-intro {
  background-color: #ffffff;
  padding: 80px 0;
}
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.intro-image img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}
.intro-content h1 {
  font-size: 30px;
  font-weight: bold;
  color: #ea580c; /* نارنجی اصلی سایت */
  margin-bottom: 40px;
  line-height: 1.2;
  text-align: right;
}
.intro-content p {
  font-size: 18px;
  color: #4b5563;
  margin-bottom: 50px;
  text-align: right;
}
.buttons {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}
.btn {
  background-color: #ea580c;
  color: white;
  padding: 16px 40px;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(234, 88, 12, 0.3);
  transition: background-color 0.3s;
}
.btn:hover {
  background-color: #dc2626;
}

/* بخش دوم: کاتالوگ */
.section-catalog {
  background-color: #f3f4f6;
  padding: 100px 0;
  display: flex;
  text-align: center;
}
.catalog-card {
  background-color: white;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0,0,0,0.12);
  display: flex;
  grid-template-columns: 1fr;
}
.catalog-image {
  background-color: #1e3a8a; /* آبی تیره مثل عکس کاتالوگ */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.catalog-image img {
  width: 80%;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.catalog-content {
  padding: 80px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.catalog-content h2 {
  font-size: 30px;
  font-weight: bold;
  color: #ea580c;
  margin-bottom: 32px;
  line-height: 1.2;
}
.catalog-content p {
  font-size: 20px;
  color: #4b5563;
  margin-bottom: 48px;
}
.catalog-btn {
  align-self: center;
  justify-content: center;
  text-align: center;
  align-items: center;
  background-color: #ea580c;
  color: white;
  padding: 18px 48px;
  border-radius: 12px;
  font-size: 20px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(234, 88, 12, 0.3);
  transition: background-color 0.3s;
}
.catalog-btn:hover {
  background-color: #dc2626;
}


/* Tables */
.tabel-container {
  display: flex;
  width: 100%;
  margin: 20px 0;
}

.tabel1 {
  flex: 50%;
  margin: 0 3px;
  direction: rtl;
  padding: 0 20px;
}

.tabel1 p {
  display: flex;
  justify-content: right;
  margin-bottom: 20px;
  font-size: 24px;
  color: #F79620;
}

.tabel2 {
  flex: 50%;
  margin: 0 3px;
  direction: rtl;
  padding: 0 20px;

}

.tabel2 p {
  display: flex;
  justify-content: right;
  margin-bottom: 20px;
  font-size: 24px;
  color: #F79620;
}



.table-wrapper {
  overflow-x: auto;               
  -webkit-overflow-scrolling: touch; 
  border: 1px solid #ddd;
  border-radius: 8px;
  margin: 2rem 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
}

/* ==== Table Styling ==== */
table {
  width: 100%;
  min-width: 800px;              
  border-collapse: collapse;
  font-family: system-ui, sans-serif;
}

th, td {
  padding: 12px 16px;
  text-align: right;
  /* border-bottom: 1px solid #111; */
}

th, td:nth-child(2) {
  background-color: #bbb;
}

th {
  background: #bbb;
  position: sticky;
  left: 0;                        
  z-index: 1;
}
tr:hover { background: #f4f9ff; }

/* ==== Optional “slide hint” for mobile ==== */
.slide-hint {
  text-align: center;
  font-size: .9rem;
  color: #666;
  margin-top: .5rem;
}

/* Button */
.button {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  align-items: center;
  margin: 20px auto;
}

.button button  {
  padding: 15px 50px;
  cursor: pointer;
  border-radius: 10px;
  background-color: transparent;
  border: 1px solid #F79620;
}

.button button:hover {
  background-color: #bbb;
  color: #f2f2f2;
}

.button button a {
  font-size: 15px;
  color: #111;
}

/* Buy Step */
/* تغییر نام از container به wrapper */
.wrapper {
  max-width: 1400px;
  margin: 0 auto;
  margin-top: 100px;
  margin-bottom: 100px;
}

/* عنوان اصلی با خط نارنجی */
.section-title {
  text-align: center;
  font-size: 28px;
  font-weight: bold;
  color: #1f2937;
  margin-bottom: 50px;
  position: relative;
}

.section-title::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #fb923c;
  z-index: 0;
}

.section-title span {
  background-color: #f9fafb;
  padding: 0 30px;
  position: relative;
  z-index: 1;
}

/* گرید کارت‌ها */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
}

.card {
  background-color: white;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  padding: 32px 20px;
  text-align: center;
  transition: all 0.3s ease;
}

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

.icon-wrapper {
  width: 80px;
  height: 80px;
  background-color: #fff4e5;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px auto;
}

.icon-wrapper i {
  font-size: 36px;
  color: #ea580c;
}

.card h3 {
  font-size: 18px;
  font-weight: bold;
  color: #1f2937;
  margin-bottom: 16px;
}

.card p {
  font-size: 14px;
  line-height: 1.8;
  color: #4b5563;
  margin: 0;
}

/* Footer */
footer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.loti img {
  height: 80%;
}

.loti p {
  transform: translateY(-50px);
}

.line {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.line span {
  border-bottom: 2px solid #F79620;
  width: 80%;
  margin-bottom: 30px;
}

.address {
  display: flex;
  justify-content: center;
  flex-direction: row-reverse;
  margin: 10px 0;
}

.address img {
  width: 1.5%;
  margin-left: 10px;
}

.address p {
  font-size: 14px;
  font-family: Arial, Helvetica, sans-serif;
}

.navs {
  display: flex;
  justify-content: center;
  text-align: center;
}

.navs a {
  margin: 0px 20px;
  color: #111;
  align-items: center;
  text-align: center;
  font-size: 12px;
}

.navs a:hover {
  color: #F79620;
}

/* Blog */
.blog-section {
  max-width: 1000px;
  margin: 0px auto;
  padding: 0 15px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.card {
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

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

.card-img {
  width: 50%;
  object-fit: contain;
}

.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: #ff5722;
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: bold;
}

.card-body {
  padding: 0px;
  position: relative;
}

.category {
  color: #ff5722;
  font-size: 14px;
  margin-bottom: 8px;
}

.title {
  font-size: 18px;
  font-weight: bold;
  line-height: 1.5;
}

.excerpt {
  font-size: 15px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 15px;
}

.read-more {
  display: inline-block;
  color: #007bff;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
}

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

.footer-text {
  text-align: center;
  padding: 40px 100px;
  color: #666;
  font-size: 15px;
  line-height: 1.8;
  background-color: #fff;
  margin: 40px 20px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}


/* Media Queries for Responsiveness */
@media screen and (max-width: 999px) {
  .header-container {
    display: flex;
    flex: 100%;
    flex-direction: column-reverse;
  }

  .flex-header-mid .menu {
    position: absolute;
    height: 340px;
    right: 0px;
    background-color: #F79620;
    padding: 1rem;
    border-radius: 5px;
    width: 200px;
    text-align: right;
    z-index: 9999;
    color: #111;
    font-size: 20px;
  }

  .flex-header-mid ul p {
    font-size: 15px;
    margin-bottom: 15px;
    }

  .flex-header-right {
    display: none;
  }
  
  .flex-header-left a img {
    width: 30%;
  }
  
  .home ul li a {
    display: none;
  } 
  
  .flex-header-mid .hamburger{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    position: relative;
    left: 85%;
    top: 18px; 
  }
  
  .slideshow-container {
    width: 100%;
    position: relative;
    margin: auto;
    top: 100px;
  }
  
  .slideshow-container img {
    width: 100%;
  }
  
  


.container {
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  padding: 0 auto;
  justify-content: center;
  align-items: center;
}

.tabel-container {
  display: flex;
  flex-direction: column;
}

.tabel1 {
  flex: 100%;
}

.tabel2 {
  flex: 100%;
}

}

/* Buy Step - Responsive */


/* Responsive */
@media (max-width: 1280px) {
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .section-title {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }
  .card {
    padding: 24px 16px;
  }
  body {
    padding: 20px 10px;
  }
}


/* Responsive */
@media (max-width: 1024px) {
  .intro-grid, .catalog-card {
      grid-template-columns: 1fr;
      gap: 60px;
  }
  .intro-content h1, .catalog-content h2 {
      font-size: 40px;
  }
  .catalog-content {
      padding: 60px 40px;
      text-align: center;
  }
  .catalog-btn {
      align-self: center;
  }
}

@media (max-width: 768px) {
  .container {
      padding: 0 16px;
  }
  .section-intro {
      padding: 60px 0;
  }
  .section-catalog {
      padding: 80px 0;
  }
  .intro-content h1, .catalog-content h2 {
      font-size: 32px;
  }
  .intro-content p, .catalog-content p {
      font-size: 16px;
  }
  .buttons {
      justify-content: center;
  }
  .btn {
      padding: 14px 32px;
      font-size: 16px;
  }
  .catalog-btn {
      padding: 16px 40px;
      font-size: 18px;
  }
}


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



/* @media (prefers-color-scheme: dark) {
  .table-wrapper { border-color: #444; }
  th { background: #333; color: #fff; }
  td { border-color: #555; }
  tr:hover { background: #2a2a2a; }
}

.table-wrapper {
  position: relative;
}
.table-wrapper::after {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 30px;
  background: linear-gradient(to left, rgba(255,255,255,1), rgba(255,255,255,0));
  pointer-events: none;
} */