@font-face {
    font-family: 'DigiMadasi';
    src: url('../font/MadasiBold.ttf') format('truetype'),
         url('../font/DigiMadasi-Bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}
@font-face {
    font-family: "iran";
    src:
     url("../font/IRANSansWeb.woff2") format('woff2');
}
*{
    font-family: iran !important;
    margin: 0;
}
body,html{
  height: 100%;
}
body {
  display: flex;
  flex-direction: column;
}
section{
  flex: 1;
  padding: 20px;
}
.row > h2{
  font-family: 'DigiMadasi' !important;
    text-align: center;
    font-size: 57px;
    color: #53c3d3;
    margin-top: 25px;
}
#error_room{
    position: absolute;
    border-radius: 5px;
    height: 90px;
    min-width: 300px;
    padding: 15px 0;
    color: #000;
    border: 2px solid #F00064;
    border-right: 5px solid #F00064;
    bottom: -29px;
    opacity: 0;
    left: 11%;
    font-size: 13px;
    box-shadow: 0px 0px 8px 0px #1230334D;
    text-align: center;
    background-color: #ffffff;
    line-height:60px;
    font-weight: 700;
}
#confirm_message{
    position: absolute;
    border-radius: 5px;
    height: 90px;
    min-width: 300px;
    padding: 15px 0;
    color: #000;
    border: 2px solid #00CDAC;
    border-right: 5px solid #00CDAC;
    bottom: -29px;
    opacity: 0;
    left: 11%;
    font-size: 13px;
    box-shadow: 0px 0px 8px 0px #1230334D;
    text-align: center;
    background-color: #ffffff;
    line-height:60px;
    font-weight: 700;
}
.question_edit{
    width: 100%;
    height: 100%;
}
.question_edit_sub{
    margin:0 25px;
    vertical-align: middle;
    direction: rtl;
    height: 90px;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid #00CDAC;
}
.mainswim {
    position: relative;
    width: 100%;
    height: 100vh;
  }
  .mainswim video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .mainswim .content {
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    text-align: center;
    z-index: 2;
  }
  .mainswim .content a {
    display: inline-block;
    padding: 20px 30px;
    background: rgba(0, 123, 255, 0.7);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    font-weight: 700;
  }
  .mainswim .content img {
    display: inline-block;
    margin-bottom: 10px;
    margin-top: 15px;
    width: 70px;
  }
  .btn-group {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    padding: 40px;
  }

  /* دکمه‌ها (لینک‌ها) */
  .btn-group .btn-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: linear-gradient(135deg, #1de9b6, #1dc4e9);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-size: 18px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    min-width: 180px;
    justify-content: center;
  }

  .btn-group .btn-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
  }

  .btn-group .btn-link i {
    font-size: 20px;
  }

  .btn-group .btn-link p {
    margin: 0;
    font-family: 'IRANSans', sans-serif;
  }
  .tafrihat {
    width: 100%;
  }
  .tafrihat h2{
    font-family: 'DigiMadasi' !important;
    text-align: center;
    font-size: 57px;
    color: #53c3d3;
    margin-top: 25px;
  }
  .swiper-container {
    will-change: transform;
    transform: translateZ(0);
  } 
  #particles-js canvas {
    will-change: transform;
    transform: translateZ(0);
  }
   
  .swiper {
    width: 90%;
    max-width: 1000px;
    margin: 50px auto;
  }
  .swiper-slide img {
    width: 100%;
    height: 200px; /* مقدار پیش‌فرض مثلا 150px بوده، اینو بزرگ‌تر کن */
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  }
  .swiper-slide img:hover {
    transform: scale(1.03);
  }
  .swiper-slide h3 {
    text-align: right;
    color: #53c3d3;
    font-size: 15px;
  }
  .swiper-slide p {
    text-align: right;
    color: #333;
    font-size: 10px;
  }
.footer-container {
  background-color: #fff;
  width: 100%;
  margin: 0 auto;
  padding: 20px;
  color: #444;
  direction: rtl;
  text-align: right;
}
.footer-line {
  border: none;
  border-top: 1px solid #ccc;
  margin-bottom: 15px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer-logo img {
  height: 60px;
}
.footer-social{
  display: flex;
}
.footer-social a {
  margin: 0 5px;
  font-size: 20px;
  color: #aaa;
  transition: all 0.3s ease;
}
.footer-social a:hover {
  color: #00bcd4;
  transform: scale(1.2);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 14px;
}
.footer-links a {
  color: #555;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: #00bcd4;
}
.footer-branding {
  text-align: left;
}
.footer-branding img {
  height: 40px;
  margin-bottom: 5px;
}
.footer-branding a {
  color: #00bcd4;
  text-decoration: none;
}
.social{
  width: 50px;
}
.aboutuspage{
  width: 70%;
  margin: 0 auto;
  display: flex;
  flex-flow: row-reverse;
  justify-content: space-between;
  align-items: center;
  padding: 25px;
}
.aboutulogo{
  width: 20%;
}
.aboutulogo img{
  width: 100px;
}
.aboutusheadermenu{
  display: flex;
  flex-flow: row-reverse;
  align-items: center;
}
.aboutusheadermenu a{
  text-decoration: none;
  display: block;
  padding-left: 15px;
  color: #333;
}
.aboutusheadermenu a:last-child{
  padding: 10px 25px !important;
  border-radius: 25px;
  background-color: #53c3d3 !important;
  color: #fff !important;
}
.aboutuspagemain{
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.aboutuspagemainimage{
  position: relative;
  overflow: hidden;
  border-bottom-left-radius: 100% 20%;
  border-bottom-right-radius: 100% 20%;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.wave-container {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  overflow: hidden;
}
.wave-container img {
  width: 100%;
  display: block;
}
.wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
}
.wave-text {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 20px;
  color: #1e3c72;
  font-weight: bold;
  font-family: 'Vazirmatn', sans-serif;
}
.abouttext{
  width: 70%;
  margin: 0 auto;
  text-align: right;
}
.articles-section {
  background: linear-gradient(to bottom, #e3f7ff, #f6fcff);
  padding: 60px 20px;
  text-align: center;
  font-family: 'Vazirmatn', sans-serif;
}
.section-title {
  font-size: 30px;
  margin-bottom: 40px;
  color: #006688;
  position: relative;
}
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}
.article-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.article-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}
.article-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.article-card:hover img {
  transform: scale(1.05);
}
.article-content {
  padding: 20px;
  text-align: right;
}
.article-content h3 {
  font-size: 18px;
  color: #004d66;
  margin-bottom: 10px;
}
.article-content p {
  font-size: 14px;
  color: #444;
}
.article-content a {
  display: inline-block;
  margin-top: 12px;
  color: #0088aa;
  text-decoration: none;
  font-weight: bold;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.article-content a:hover {
  border-color: #0088aa;
}
.single-article {
  max-width: 850px;
  direction: rtl;
  margin: 60px auto;
  padding: 20px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 80, 120, 0.08);
  font-family: 'Vazirmatn', sans-serif;
  color: #333;
}
.article-cover {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 30px;
}
.article-title {
  font-size: 28px;
  color: #005b7f;
  margin-bottom: 10px;
}
.article-meta {
  font-size: 14px;
  color: #888;
  margin-bottom: 25px;
}
.article-body p {
  margin-bottom: 20px;
  line-height: 1.9;
  font-size: 16px;
}
.scroll-container {
  overflow-x: auto;
  white-space: nowrap;
  scroll-behavior: smooth;
  -ms-overflow-style: none;  /* IE و Edge */
  scrollbar-width: none;     /* Firefox */
}
.scroll-container::-webkit-scrollbar {
  display: none;             /* Chrome و Safari */
}
  .weekday-btn {
    display: inline-block;
    min-width: 100px;
    margin: 0 5px;
    border-radius: 8px;
  }
  .scroll-wrapper {
    position: relative;
  }
  .scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: white;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    line-height: 38px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
  }
  .scroll-left {
    left: -20px;
  }
  .scroll-right {
    right: -20px;
  }
#mobile-popup {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
}

.popup-content {
    background: #fff;
    width: 90%;
    max-width: 350px;
    margin: 150px auto;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    text-align: center;
    animation: popupFadeIn 0.4s ease;
    position: relative;
}

.popup-content h3 {
    margin-bottom: 20px;
    color: #333;
}

.popup-content input {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

.popup-content button {
    background-color: #1abc9c;
    color: white;
    padding: 10px 20px;
    font-size: 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.popup-content button:hover {
    background-color: #16a085;
}

.popup-close {
    position: absolute;
    top: 10px;
    left: 15px;
    font-size: 20px;
    cursor: pointer;
}

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


.form-box {
      direction: rtl;
      width: 400px;
      margin: auto;
      background: #ffffff;
      padding: 30px;
      border-radius: 24px;
      box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
      animation: fadeInUp 0.8s ease forwards;
      transform: translateY(40px);
      opacity: 0;
    }

    h2 {
      text-align: center;
      color: #0077b6;
      margin-bottom: 24px;
    }

    .form-group {
      margin-bottom: 22px;
      transition: all 0.3s ease;
    }

    label {
      display: block;
      margin-bottom: 6px;
      font-weight: bold;
      color: #0077b6;
    }

    input, select {
      width: 100% !important;
      padding: 12px !important;
      border: 1px solid #b5e5f7 !important;
      border-radius: 12px !important;
      font-size: 15px !important;
      transition: border 0.3s, box-shadow 0.3s !important;
    }

    input:focus, select:focus {
      border-color: #00bcd4;
      box-shadow: 0 0 5px rgba(0, 188, 212, 0.4);
      outline: none;
    }

    .submit-btn {
      background: linear-gradient(to right, #00b4d8, #48cae4);
      color: white;
      padding: 14px;
      width: 100%;
      font-size: 16px;
      border: none;
      border-radius: 16px;
      cursor: pointer;
      transition: background 0.4s ease, transform 0.2s;
    }

    .submit-btn:hover {
      background: linear-gradient(to right, #0096c7, #00b4d8);
      transform: scale(1.02);
    }

    @keyframes fadeInUp {
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }
    .notice-box {
      background: #ffffff;
      border-radius: 24px;
      padding: 40px 30px;
      max-width: 600px;
      margin:  auto;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
      text-align: center;
      animation: fadeInUp 1s ease forwards;
      opacity: 0;
      transform: translateY(30px);
    }

    .notice-box h1 {
      color: #0077b6;
      margin-bottom: 16px;
      font-size: 24px;
    }
    #imagetafrihat{
      margin: 15px;
    }
    .notice-box p {
      font-size: 17px;
      color: #333;
      margin-bottom: 28px;
      line-height: 1.8;
    }

    .btn-link {
      background: linear-gradient(to right, #00b4d8, #48cae4);
      color: white;
      padding: 14px 28px;
      font-size: 16px;
      border: none;
      border-radius: 16px;
      cursor: pointer;
      text-decoration: none;
      transition: background 0.4s ease, transform 0.2s;
      display: inline-block;
    }

    .btn-link:hover {
      background: linear-gradient(to right, #0096c7, #00b4d8);
      transform: scale(1.03);
    }
    @keyframes fadeInUp {
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

