@font-face {
    font-family: 'IRANSans';
    font-style: normal;
    font-weight: 400;
    src: url('/css/fonts/iransans.woff2');
    src: url('/css/fonts/iransans.woff') format('embedded-opentype'), 
        url('/css/fonts/iransans.woff2') format('woff2'), 
        url('/css/fonts/iransans.woff') format('woff'),
        url('/css/fonts/iransans.ttf') format('truetype');
}

body {
  align-items: center;
  background-color: #f4f4f4;
  margin: 0;
}

html,
body {
  font-family: 'YekanBakh-Regular', 'IRANSans', sans-serif;
  overflow-x: hidden !important;
}

.persian-numbers {
  font-family: 'IRANSans', sans-serif;
  direction: rtl;
}

header {
  background-color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
  padding: 1% 0;
}

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


.left-section {
  display: flex;
  gap: 10px;
  align-items: center;
}

.button1 {
  background-color: #02544c;
  color: white;
  border-radius: 30px;
  font-size: 16px;
  padding: 15px;
  min-width: 130px;
  text-decoration: none;
}

.button1:hover {
  background-color: #00342f;
  transform: translateY(1px);
  color: white;
}

/* Button */
.button2 {
  background-color: #02544c72;
  color: #02544c;
  width: 50px;
  height: 50px;
  min-width: 50px;
  border-radius: 50%;
  align-items: center;
  display: flex;
  justify-content: center;
  position: relative;
  /* Important for absolute positioning inside */
  cursor: pointer;
  padding: 0;
  text-decoration: none;
}

/* Cart Badge (Small Circle) */
.cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #02544c;
  color: white;
  width: 18px;
  height: 18px;
  font-size: 12px;
  font-weight: bold;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 4px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s ease-in-out;
}

/* Tooltip Wrapper */
.tooltip-wrapper {
  position: relative;
  display: inline-block;
}

/* Tooltip */
.tooltip-container {
  position: absolute;
  top: 115%;
  left: 350%;
  transform: translateX(-50%);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.tooltip-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 400px;
  max-height: 220px;
  overflow-y: auto;
  font-size: 14px;
  background-color: white;
  border-top: 3px solid #02544c;
  color: black;
  text-align: center;
  padding: 8px 4px;
  border-radius: 10px;
  white-space: nowrap;
  box-shadow: 5px 10px 10px 5px #3333331d;
}

/* Keep tooltip visible when hovering */
@media (min-width: 1024px) {
  .tooltip-wrapper:hover .tooltip-container {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
    pointer-events: auto;
  }
}

.button2:hover {
  background-color: #02544c;
  color: white;
}

.Buy {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding: 10px;
}

.BtnBuy {
  background-color: #02544c;
  color: white;
  padding: 1px 10px;
  border-radius: 15px;
  padding-top: 5px;
  cursor: pointer;
}

.RemainingCount {
  display: flex;
  flex-direction: row;
  justify-content: center;
  text-align: center;
  background-color: rgba(203, 203, 207, 0.107);
  width: 80px;
  padding: 3px 10px;
  border-radius: 20px;
}

.NoProductImg {
  width: 100%;
  height: auto;
}

.NoProductImg img {
  width: 150px;
  height: auto;
}


.button1,
.button2 {
  border-color: #02544c72;
  cursor: pointer;
}

.SearchSectionBody {
  width: 100%;
  height: 80px;
  background-color: white;
  border-bottom-right-radius: 10px;
  border-bottom-left-radius: 10px;
  display: flex;
  justify-content: center;
}


.search-box-article {
  text-align: right;
}

.search-box-article input {
  padding: 13px 10px;
  border: none;
  border-radius: 10px;
  text-align: right;
  font-size: 14px;
  background-color: rgba(180, 179, 176, 0.107);
}

.search-box-article span {
  padding: 8px 10px;
  border: none;
  border-radius: 10px;
  text-align: center;
  background-color: rgba(180, 179, 176, 0.107);
  color: #9b9a9a;
}

.search-box-article input:focus {
  outline: none !important;
  box-shadow: none !important;
  border-color: #ccc !important;
  background-color: rgba(180, 179, 176, 0.107);
}

/* غیرفعال کردن کلیک روی آیکون */
.search-box-article .input-group-text {
  pointer-events: none;
}

.navbar {
  display: flex;
  position: absolute;
  right: 18%;
  top: 30%;
}

.navbar a {
  text-decoration: none;
  color: #333;
  font-size: 14px;
  transition: color 0.3s;
  padding-right: 20px;
  padding-left: 20px;
}

.sidebar a {
  text-decoration: none;
  color: #333;
  font-size: 14px;
  transition: color 0.3s;
}

.navbar a:hover {
  text-decoration: none;
  background-color: #02e8210d;
  color: #009229;
  padding-top: 15px;
  padding-bottom: 15px;
  border-radius: 10px;
  transition: 0.3s all ease;
}

.logo {
  width: 10em;
  height: auto;
}

.right-section a {
  cursor: pointer;
}

.hamburger {
  display: none;
  cursor: pointer;
  border: none;
  background: none;
  padding: 10px;
  text-align: center;
}


.sidebar {
  position: fixed;
  top: 0;
  right: -300px;
  width: 290px;
  height: 100%;
  background-color: #ffffff;
  box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
  transition: right 0.3s;
  padding: 20px;
  z-index: 1000;
}

.sidebar.open {
  right: 0;
}

.sidebar .close-btn {
  position: absolute;
  top: 10px;
  left: 10px;
  cursor: pointer;
  font-size: 30px;
  width: 50px;
  height: 50px;
  text-align: center;
  padding-top: 5px;
}

.sidebar .SearchSectionBody {
  position: absolute;
  right: -5px;
}

.sidebar1 {
  flex-direction: row-reverse;
}

.sidebar2 {
  flex-direction: row-reverse;
}

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

.basket span {
  cursor: pointer;
}

.sidebar1,
.sidebar2 a {
  cursor: pointer;
}

.left-buttons,
.right-items {
  display: flex;
  align-items: center;
}

.button,
.menu-item {
  margin: 0 10px;
  cursor: pointer;
}

.right-items {
  display: flex;
}

.btn-dark {
  background-color: #02544c;
  color: white;
  border-radius: 5px;
}

.btn-lighter {
  background-color: #02544c72;
  color: #02544c;
  border-radius: 5px;
}

.btn-lighter:hover {
  background-color: #02544c;
  color: white;
  border-radius: 5px;
}

.transition-3 {
  transition: 0.3s all ease;
}

.zoom-image {
  width: 300px;
  height: auto;
  transition: transform 0.3s ease;
}

.zoom-image:hover {
  transform: scale(1.015);
}

.green-box {
  width: 100%;
  height: 300px;
  background-color: #02544c;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 20px;
}



@media (max-width: 1024px) {
  .container {
    flex-wrap: wrap;
    gap: 15px;
  }

  .navbar {
    display: none;
  }

  .hamburger {
    display: block;
  }

  .left-section {
    order: 2;
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }


  .right-section {
    order: 1;
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .logo {
    width: 8em;
  }

  .button1 {
    background-color: #02544c72;
    color: #02544c;
    border-radius: 10px;
    padding: 15px 5px;
  }

  .button1:hover {
    background-color: #02544c;
    color: white;
  }

  .button2 {
    border-radius: 5px;
  }

  .responsive-header {
    padding-top: 0px;
  }
}

@media (min-width: 1024px) {
  .SearchSectionBody {
    display: none;
  }
}

.custom-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 10px;
}

.image-container {
  width: 100%;
  max-width: 100%;
  border-radius: 10px;
  height: auto;
  overflow: hidden;
  /* Prevents the image from overflowing */
  display: flex;
  justify-content: center;
  align-items: center;
}


.main-banner {
  width: 80%;
  display: flex;
  justify-content: center;
  align-items: center;

}

.banner-image {
  width: 100%;
}

/* کادر سبز */
.green-box {
  width: 100%;
  height: 300px;
  background-color: #02544c;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 20px;
}

/* کادر سفید */
.white-box {
  width: 80%;
  height: 450px;
  background-color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 30px;
  position: absolute;
  top: -200px;
  padding: 20px;
}

/* تصویر داخل کادر سفید */
.white-box img {
  width: 50%;
  margin-right: 20px;
  border-radius: 10px;
  object-fit: cover;
}

.workshop-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  text-align: center;
  width: 40%;
}

.btn-dark {
  background-color: #02544c;
  color: white;
  border-radius: 5px;
}

.btn-lighter {
  background-color: #aac9c7;
  color: #02544c;
  border-radius: 5px;
}

.btn-lighter:hover {
  background-color: #02544c;
  color: white;
  border-radius: 5px;
}


/* Common carousel styles */
.carousel-container,
.carousel2-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: auto;
  overflow: hidden;
  touch-action: pan-x;
}

.carousel,
.carousel2 {
  display: flex;
  transition: transform 0.3s ease-in-out;
  width: 100%;
}

.product,
.book {
  flex: 0 0 100%;
  width: 100%;
  padding: 20px;
  text-align: center;
}

.product img,
.book img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  padding-bottom: 20px;
  object-fit: cover;
}

/* Button styles */
.carousel-button,
.carousel2-button {
  text-align: center;
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  background-color: #02544c;
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 15px;
  z-index: 10;
  transition: background-color 0.3s ease;
}

.prev,
.prev2 {
  left: 10px;
}

.next,
.next2 {
  right: 10px;
}

.carousel-button:hover,
.carousel2-button:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

/* Zoom effect */
.zoom-image {
  transition: transform 0.3s ease;
}

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

/* Responsive styles */
@media (min-width: 768px) {

  .product,
  .book {
    flex: 0 0 50%;
  }
}

@media (min-width: 1024px) {

  .product,
  .book {
    flex: 0 0 33.333%;
  }

  .carousel-button,
  .carousel2-button {
    width: 35px;
    height: 35px;
    padding-right: 30px;
  }
}

@media (max-width: 768px) {

  .carousel-button,
  .carousel2-button {
    padding: 8px;
    font-size: 15px;
  }

  .carousel-container,
  .carousel2-container {
    width: 95%;
  }
}

@media (max-width: 576px) {

  .carousel-button,
  .carousel2-button {
    padding: 8px;
    font-size: 12px;
  }
}




/* Main banner responsiveness */
.main-banner {
  width: 100%;
  padding: 0 15px;
}


.custom-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 10px;
}


/* Workshop section responsiveness */
@media (max-width: 768px) {
  .white-box {
    flex-direction: column;
    height: auto;
    padding: 20px;
    top: -100px;
  }

  .white-box img {
    width: 100%;
    margin-right: 0;
    margin-bottom: 20px;
  }

  .workshop-content {
    width: 100%;
    padding: 20px 0;
  }

  .green-box-workshop {
    width: 100%;
    margin-right: 0;
    padding-bottom: 450px;
  }
}

@media (min-width: 768px) {
  .white-box {
    margin-top: 100px;
  }

  .green-box-workshop {
    padding-bottom: 370px;
  }

  .workshop-content {
    padding: 20px 0;
  }
}



@media (max-width: 992px) {
  .responsive-article {
    width: 100%;
    height: auto;
    padding-right: 10%;
    padding-left: 10%;
  }
}


/* About section responsiveness */
@media (max-width: 900px) {
  .about-container {
    flex-direction: column-reverse;
    padding-right: 10%;
    padding-left: 10%;
  }

  #about-content {
    flex-direction: column;
    padding-top: 0;
    padding-right: 0;
    text-align: center;
  }

  #about-content h1 {
    text-align: center;
  }

  #about-content p {
    text-align: center;
  }

  #about-content span {
    align-items: center;
  }

  #about-img {
    width: 90%;
    height: auto;
  }
}

@media (min-width: 900px) {
  .about-container {
    flex-direction: row;
    padding-right: 20%;
    padding-left: 19%;
  }

  #about-content {
    width: 55%;
    flex-direction: column;
    padding-top: 0;
    padding-right: 5%;
    text-align: right;
  }

  #about-img {
    width: 40%;
    height: auto;
  }
}


.green {
  width: 100%;
}




.custom-container2 {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 10px;
}

.image-container {
  width: 100%;
  max-width: 100%;
  border-radius: 10px;
  height: auto;
}

.MainAbout {

  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin-top: 3%;
  margin-bottom: 6%;
  gap: 8%;
}

.about-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  text-align: right;
  padding-top: 8%;
  padding-left: 2%;
  color: #333333e5;
  padding-bottom: 40px;
  opacity: 0;
  /* Initially hidden */
  transform: translateX(-300px);
  /* Start position (off-screen left) */
  animation: slideInLeft 1s ease-out forwards;
  /* Animation */
}

.about-content p {
  font-size: 18px;
}

.about-img {
  width: 100%;
  height: auto;
}

.about-img img {
  width: 90%;
  height: auto;
  border-radius: 5px;
  opacity: 0;
  /* Initially hidden */
  transform: translateX(300px);
  /* Start position (off-screen right) */
  animation: slideInRight 1s ease-out forwards;
  /* Animation */
}




/* Videos grid responsiveness */
@media (max-width: 768px) {
  .row {
    flex-direction: column-reverse;
  }

  .col-12 {
    width: 100%;
    margin-bottom: 15px;
    margin-top: 15px;
  }

  .green {
    max-height: 250px;
  }
}



/* Utility classes for better mobile layout */
@media (max-width: 576px) {
  .text-center-sm {
    text-align: center;
  }

  .w-100-sm {
    width: 100%;
  }

  .mb-3-sm {
    margin-bottom: 1rem;
  }
}



.transition-3 {
  transform: 0.3s all ease;
}


/*logo text sections*/

.logo-text-container {
  width: 80%;
  margin-bottom: 30px;
  margin-top: 30px;
}

#logo-courses {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

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


#products-btn .btn-dark {
  align-items: center;
  padding: 10px 40px;
}

@media screen and (min-width: 900px) {
  #logo-courses {
    flex-direction: row;
    justify-content: space-between;
  }

  .content-wrapper {
    flex-direction: row-reverse;
    /* Right to left order */
    gap: 30px;
  }

  .text-content {
    text-align: right;
  }

  #products-btn {
    order: 1;
  }

  .content-wrapper {
    order: 2;
  }
}

@media screen and (max-width: 900px) {
  #logo-courses {
    flex-direction: column;
  }

  .content-wrapper {
    flex-direction: column-reverse;
  }

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

  #products-btn {
    order: 3;
  }

  .content-wrapper {
    order: 2;
  }

  .small-logo {
    order: 1;
  }
}



/*form*/

.responsive-form {
  display: block;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #212529;
  background-color: #fff;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  transition: border-color 0.15s ease-in-out;
  text-align: right;
}

/* Focus state styling */
.responsive-form:focus {
  color: #212529;
  background-color: #fff;
  border-color: #86b7fe;
  outline: 0;
  box-shadow: 0 0 0 0.25rem #06ae9d5e;
}

@media (max-width : 768px) {
  .responsive-form {
    width: 300px;
  }

  #logo-form p {
    width: 80%;
    padding-left: 20%;
  }
}

@media (min-width : 768px) {
  .responsive-form {
    width: 700px;
  }

  #logo-form p {
    width: 90%;
    padding-left: 10%;
  }
}


/* Form responsiveness */
@media (max-width: 1024px) {
  .main-banner.justify-content-between {
    flex-direction: column-reverse;
    gap: 30px;
  }

  #logo-form {
    width: 100%;
    text-align: center;

  }
}





/* Base container styles */
.responsive-article {
  padding: 20px 5%;
  width: 100%;
  max-width: 1440px;
  margin: 60px auto;
}

/* Grid container */
.responsive-article .card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  width: 100%;
}

/* Grid items */
.grid-item.square {
  position: relative;
  width: 100%;
  min-height: 250px;
  padding: 5px;
}


/* Card styles */
.card {
  height: 100%;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.card-img-container {
  position: relative;
  height: 100%;
  width: 100%;
  overflow: hidden;
}

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

/* Content overlay */
.card-content {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 10px;
  color: white;
  z-index: 2;
  text-align: right;
}

.card-title {
  font-size: 14px;
  margin: 0;
}

/* Hover effects */
.card-img-container:hover img {
  transform: scale(1.1);
}


/* Gradient overlay */
.card-img-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(255, 255, 255, 0) 100%);
  z-index: 1;
}


/* Specific grid item adjustments */
.grid-item.rectangle {
  grid-column: span 2;
}

/* Responsive adjustments */
@media screen and (max-width: 900px) {
  .responsive-article .card-grid {
    grid-template-columns: 1fr;
    display: flex;
    flex-direction: column-reverse;
  }

  .grid-item.rectangle {
    grid-column: span 2;
  }

  .responsive-article {
    padding: 20px 15px;
    margin-top: 30px;
  }

  .grid-item {
    min-height: 200px;
  }

  .card-title {
    font-size: 14px;
  }
}

/* Large screen fine-tuning */
@media screen and (min-width: 1200px) {
  .responsive-article {
    padding: 20px 10%;
  }
}

.PriceName {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.price {
  display: flex;
  flex-direction: row-reverse;
  justify-content: center;
}




/*footer*/
/* Green Footer (Above the Main Footer) */
.green-footer {
  width: 100%;
  background: #02544c;
  padding: 15px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: white;
  height: 40px;
}

.green-footer::before {
  content: '';
  background: #02544c;
  width: 100%;
  position: absolute;
  left: 0;
  top: -20px;
  height: 40px;
  border-radius: 50%;
  z-index: -1;
}

/* Main Footer (Sits at the bottom of the page) */
.main-footer {
  width: 100%;
  height: auto;
  background-color: rgba(114, 114, 116, 0.107);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
  position: relative;
}

.footer-socials {
  display: flex;
  gap: 10px;
}


@media (max-width: 768px) {
  .green-footer .container {
    flex-direction: column-reverse;
    text-align: center;
    gap: 1px;
  }

  .green-footer {
    height: 90px;
  }

  .main-footer .container {
    flex-direction: column-reverse;
    text-align: center;
    gap: 20px;
  }
}



.fixed-span {
  position: fixed;
  left: 10px;
  /* Distance from the left */
  bottom: 10px;
  /* Distance from the top */
  background-color: #aac9c7;
  color: #02544c;
  font-size: 16px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  text-align: center;
  z-index: 999;
  cursor: pointer;
}

.fixed-span:hover {
  background-color: #001c18;
  color: white;
}


.VideosResponsivity {
  display: flex;
  flex-direction: column;
}

@media (max-width: 768px) {
  .VideosResponsivity {
    display: flex;
    flex-direction: column-reverse;
  }
}





#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 999;
  display: none;
  transition: opacity 0.3s ease;
}

#overlay.active {
  display: block;
  opacity: 1;
}


.BtnBuy {
  background-color: #02544c;
  color: white;
  padding: 1px 10px;
  border-radius: 15px;
  padding-top: 5px;
  cursor: pointer;
  text-decoration: none;
}

.BtnBuy:hover {
  color: white;
}