/* تنظیمات کلی برای صفحه */
body {
    font-family: 'yekanm'; /* یا هر فونت فارسی دلخواه دیگر */
    background-color: #252525;
    color: #fff;
}

/* استایل نوار بالا (Top-bar) */
.top-bar {
    position: relative;

    background-color: #a81719;
    padding: 10px 20px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    border-bottom: 1px solid #e9ecef;

    direction: ltr;
}


/* =========================
   آیکون‌های شبکه‌های اجتماعی
========================= */

.social-icons {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.social-icons a {
    margin-left: 15px;

    color: #ffffff;
    font-size: 22px;

    text-decoration: none;

    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #252525;
}


/* =========================
   شماره تلفن
========================= */

.phone-number {
    display: flex;
    align-items: center;
    flex-shrink: 0;

    color: #ffffff;
    font-family: Arial, sans-serif;
    font-size: 18px;
}

.phone-number i {
    margin-left: 8px;
}

.clickable-contact {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    color: inherit;
    text-decoration: none;
    cursor: pointer;

    direction: ltr;
}

.clickable-contact .fas {
    color: #ffffff;
    font-size: 1.1em;
}


/* =========================
   تاریخ و ساعت
========================= */

.date-time {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    color: #ffffff;
    font-family: 'yekanm', Arial, sans-serif;
    font-size: 15px;
    white-space: nowrap;
    direction: rtl;
}

.date-time-separator {
    opacity: 0.7;
}


/* =========================
   محتوای اصلی
========================= */

main {
    padding: 20px;
    text-align: center;
}

h1 {
    color: #444;
}


/* =========================
   تبلت
========================= */

@media (max-width: 1080px) {

    .top-bar {
        padding: 9px 15px;
    }

    .social-icons a {
        margin-left: 12px;
        font-size: 20px;
    }

    .phone-number {
        font-size: 16px;
    }

    .date-time {
        gap: 9px;
        font-size: 14px;
    }

}


/* =========================
   موبایل
========================= */

@media (max-width: 768px) {

    .top-bar {
        padding: 10px;

        min-height: 42px;
    }

    .social-icons a {
        margin-left: 9px;
        font-size: 17px;
    }

    .phone-number {
        font-size: 13px;
    }

    .clickable-contact {
        gap: 5px;
    }

    .date-time {
        gap: 6px;
        font-size: 14px;
    }

}


/* =========================
   موبایل کوچک
========================= */

@media (max-width: 560px) {

    .top-bar {
        padding: 9px 8px;
    }

    .social-icons a {
        margin-left: 7px;
        font-size: 15px;
    }

    .phone-number {
        font-size: 11px;
    }

    .clickable-contact {
        gap: 4px;
    }

    .date-time {
        gap: 4px;
        font-size: 13px;
    }

}


/* =========================
   موبایل خیلی کوچک
========================= */

@media (max-width: 400px) {

    .top-bar {
        padding: 8px 6px;
    }

    .social-icons a {
        margin-left: 5px;
        font-size: 14px;
    }

    .phone-number {
        font-size: 10px;
    }

    .date-time {
        gap: 3px;
        font-size: 11px;
    }

}

/* هدر */
.site-header {
    background-color: #252525;
    color: white;
    padding: 20px 0;
}

/* کانتینر هدر به صورت فلکس برای منو سمت راست و لوگو سمت چپ */
.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap; /* فعلا nowrap برای دسکتاپ */
    flex-direction: row; /* چیدمان به صورت سطر */
    padding: 0 20px; /* padding در طرفین */
}

@media (max-width: 768px) {
    .site-header {
        padding-top:  20px;

    }

    .site-header .container {
        flex-direction: column; /* چیدن آیتم‌ها به صورت ستونی در صفحه‌های کوچک‌تر */
        align-items: flex-start; /* هم‌ترازی به سمت چپ */
        padding: 0 15px; /* اضافه کردن کمی padding در طرفین */
    }
}
/* انیمیشن لوگو */
/* انیمیشن لوگو */
.logo-animation {
    position: relative;
    top: 0;
    right: 0;

    width: 300px;
    height: 90px;

    direction: rtl;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* مستطیل */
.logo-animation-rectangle {
    position: absolute;
    top: 50%;
    right: 55px;

    width: 210px;
    height: 60px;

    object-fit: contain;
    transform: translateY(-50%) scaleX(0);
    transform-origin: right center;

    z-index: 1;

    animation: rectangleIn 0.8s ease-out 0.7s forwards;
}

/* دایره */
.logo-animation-circle {
    position: absolute;
    top: 50%;
    right: 0;

    width: 90px;
    height: 90px;

    object-fit: contain;
    transform: translateY(-50%) scale(0);
    transform-origin: center;

    z-index: 2;

    animation: circleIn 0.7s ease-out forwards;
}

@keyframes circleIn {
    from {
        transform: translateY(-50%) scale(0);
    }

    to {
        transform: translateY(-50%) scale(1);
    }
}

@keyframes rectangleIn {
    from {
        transform: translateY(-50%) scaleX(0);
    }

    to {
        transform: translateY(-50%) scaleX(1);
    }
}


/* تبلت */
@media (max-width: 1080px) {

    .logo-animation {
        width: 280px;
        height: 85px;
        right: 0;
    }

    .logo-animation-rectangle {
        right: 62px;
        width: 195px;
        height: 56px;
    }

    .logo-animation-circle {
        width: 85px;
        height: 85px;
    }

}


/* موبایل */
@media (max-width: 768px) {

    .logo-animation {
        width: 260px;
        height: 80px;
        right: 0;
        margin: 0 auto 30px;
        align-self: center;
    }

    .logo-animation-rectangle {
        right: 60px;
        width: 180px;
        height: 52px;
    }

    .logo-animation-circle {
        width: 80px;
        height: 80px;
    }

}


/* موبایل کوچک */
@media (max-width: 480px) {

    .logo-animation {
        width: 230px;
        height: 70px;
        right: 0;
        margin: 0 auto 25px;
        align-self: center;
    }

    .logo-animation-rectangle {
        right: 55px;
        width: 160px;
        height: 46px;
    }

    .logo-animation-circle {
        width: 70px;
        height: 70px;
    }

}


/* موبایل خیلی کوچک */
@media (max-width: 360px) {

    .logo-animation {
        width: 210px;
        height: 65px;
        right: 0;
        margin: 0 auto 22px;
        align-self: center;
    }

    .logo-animation-rectangle {
        right: 52px;
        width: 145px;
        height: 42px;
    }

    .logo-animation-circle {
        width: 65px;
        height: 65px;
    }

}
/* لوگو */
.logo {
    font-weight: bold;
    display: flex;
    align-items: center;
}

.logo img {
   height: 80px; /* تنظیم ارتفاع تصویر لوگو */
   padding-right: 40px; /* تنظیم padding */
   padding-left: 15px;
   margin-top: 0; /* تنظیم margin-top */
}



.logo-text {
position: relative;
    font-family:  'kiasha';
    color: #ffffff;
        font-size: 70px;
}

@media (max-width: 1080px) {
    .logo img {
   height: 50px; }
   .logo-text {
    font-size: 30px;
   }
}


@media (max-width: 768px) {
.logo {
    padding-left: 20px;
        margin: 0 auto;
        display: flex;
        font-size: 120%; /* کمی کوچک‌تر کردن فونت لوگو */
    }
.logo img {
            margin: 0 auto;

   height: 50px; /* تنظیم ارتفاع تصویر لوگو */
}
    .logo-text {
                margin: 0 auto;

        font-size: 50px;
        padding-bottom: 10px;        
}
}
/* General Styles for Desktop and Mobile */

.search-container, .search-icon {
  position: relative;
  z-index: 1000;
}

/* --- استایل‌های پایه برای باکس جستجو (دسکتاپ) --- */
    .search-container {
        display: flex;
        align-items: center;
        margin-left: 20px; /* فاصله بین منو و باکس جستجو */
        border-radius: 30px; /* گوشه گرد برای کل کانتینر جستجو */
        overflow: hidden; /* برای اینکه گوشه‌های گرد رعایت شود */
        border: 1px solid #ccc; /* اضافه کردن خط دور کانتینر */
        background-color: white; /* پس‌زمینه سفید برای کانتینر */
    }

    .search-container input[type="text"] {
        font-family: 'yekanm';
        padding: 10px 15px; /* کمی padding بیشتر */
        border: none; /* حذف border پیش‌فرض */
        border-radius: 0; /* حذف border-radius چون روی کانتینر اعمال شده */
        font-size: 14px;
        background-color: transparent; /* شفاف کردن پس‌زمینه ورودی */
        color: #333;
        flex-grow: 1; /* اجازه رشد به فیلد ورودی */
        outline: none; /* حذف outline هنگام فوکوس */
    }

    /* استایل آیکون جستجو */
    .search-icon {
        padding: 15px 15px; /* padding برای کل ناحیه آیکون */
        cursor: pointer;
        background-color: #a81719; /* رنگ پس‌زمینه آیکون */
        color: rgb(255, 255, 255); /* رنگ خود آیکون */
        display: flex;
        border-radius: 30px;
        align-items: center;
        justify-content: center;
        transition: background-color 0.3s ease;
        border-left: 1px solid #ccc; /* خط جداکننده بین ورودی و آیکون */
    }

    .search-icon:hover {
        background-color: #ff0000; /* تغییر رنگ در هاور */
    }

    .search-icon i {
        font-size: 16px; /* اندازه آیکون */
    }

@media (max-width: 1080px) {
.search-container {
      width: 25%;
}
 .search-icon {
        padding: 7px 7px; 
                border-radius: 14px;

 }
}

@media (max-width: 768px) {
.search-container {
    width: 70%;
        display: flex;
        align-items: center;
        padding-right: 40px;
        margin: 0 auto;
        border-radius: 3px; /* گوشه گرد برای کل کانتینر جستجو */
        overflow: hidden; /* برای اینکه گوشه‌های گرد رعایت شود */
        border: 1px solid #ccc; /* اضافه کردن خط دور کانتینر */
        background-color: rgb(63, 63, 63); /* پس‌زمینه سفید برای کانتینر */
    }

    .search-container input[type="text"] {
        font-family: 'yekanm';
        padding: 5px 10px; /* کمی padding بیشتر */
        border: none; /* حذف border پیش‌فرض */
        border-radius: 0; /* حذف border-radius چون روی کانتینر اعمال شده */
        font-size: 14px;
        background-color: transparent; /* شفاف کردن پس‌زمینه ورودی */
        color: #ffffff;
        flex-grow: 1; /* اجازه رشد به فیلد ورودی */
        outline: none; /* حذف outline هنگام فوکوس */
    }

    /* استایل آیکون جستجو */
    .search-icon {
        padding: 10px 10px; /* padding برای کل ناحیه آیکون */
        cursor: pointer;
        background-color: #a81719; /* رنگ پس‌زمینه آیکون */
        color: rgb(255, 255, 255); /* رنگ خود آیکون */
        display: flex;
        border-radius: 3px;
        align-items: center;
        justify-content: center;
        transition: background-color 0.3s ease;
        border-left: 1px solid #ccc; /* خط جداکننده بین ورودی و آیکون */
    }

    .search-icon:hover {
        background-color: #ff0000; /* تغییر رنگ در هاور */
    }

    .search-icon i {
        font-size: 16px; /* اندازه آیکون */
    }
}

/* اطمینان از اینکه منو و باکس جستجو در سمت راست قرار می‌گیرند */
.header-right {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* wrapper اصلی برای کنترل عرض 80% و اعمال پس‌زمینه تیره */
.main-content-wrapper {
  width: 80%;
  margin: 40px auto; /* برای قرار گرفتن در مرکز صفحه با فاصله از بالا و پایین */
  box-sizing: border-box;
  display: flex; /* استفاده از flex برای مدیریت ستون‌ها */
  justify-content: center; /* وسط چین کردن محتوا در صورت نیاز */
  align-items: flex-start; /* تنظیم تراز آیتم‌ها از بالا */
  background-color: #252525; 
  padding: 20px; 
  border-radius: 10px; 
}

/* کانتینر بخش محتوا */
.content-section {
  width: 100%;
  display: flex; /* استفاده از flex برای ایجاد دو ستون */
  flex-wrap: wrap; /* اجازه چرخش به ستون‌ها در صورت نیاز (مثلاً در موبایل) */
  gap: 20px; /* فاصله بین ستون‌ها */
}

/* ستون سمت چپ */
.content-left {
  flex: 1;
  min-width: 250px;
  background-color: #333;
  height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  overflow: hidden;
  padding: 20px;
  box-sizing: border-box;
}

/* لینک دور تصویر */
.content-left .image-link {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

/* خود تصویر */
.content-left img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 6px;
}


/* ستون سمت راست (برای متن) */
.content-right {
  flex: 1.5; /* انعطاف‌پذیری بیشتر برای متن (مثلاً 1.5 برابر ستون چپ) */
  min-width: 300px; /* حداقل عرض ستون راست */
  padding: 20px; /* کمی padding داخلی بیشتر */
  box-sizing: border-box;
  
  /* --- تغییرات برای Glassmorphism با گرادیانت --- */
  /* گرادیانت سه‌رنگ که می‌خواهید به عنوان پس‌زمینه شیشه استفاده شود */
 background: linear-gradient(
  45deg,
  #252525,
  #83838340,
  #252525
);
  /* اعمال بلور روی محتوای پشت این گرادیانت */
  backdrop-filter: blur(15px); 
  -webkit-backdrop-filter: blur(15px); /* برای سازگاری با سافاری */
  /* حاشیه نازک و شفاف */
  border: 1px solid rgba(255, 255, 255, 0.1); 
  border-radius: 10px; /* لبه‌های گرد */
  /* ------------------------------------ */
}

.content-right h2 {
    font-family: 'entezar'; 
    font-size: 30px;
    margin-top: 0;
    margin-bottom: 20px;
    color: #ffffff; 
}

.content-right h3 {
    font-family: 'yekanb'; 
    font-size: 16px;
    color: #ffffff; 
}

.content-right p {
    font-family: 'yekanb'; 
    line-height: 1.6; 
    color: #cccccc; 
}

/* استایل دکمه نمونه (اختیاری) */
.cta-button {
  display: inline-block;
  padding: 12px 25px; 
  background-color: #a81719; 
  color: white;
  text-decoration: none;
  border-radius: 8px; 
  margin-top: 25px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  font-family: 'yekanb'; 
  font-weight: bold;
}

.cta-button:hover {
  background-color: #e62a2c; 
  transform: translateY(-2px); 
  box-shadow: 0 4px 15px rgba(168, 23, 25, 0.4); 
}

/* برای نمایش بهتر در موبایل */
@media (max-width: 768px) {
  .main-content-wrapper {
    width: 95%; 
    margin: 20px auto;
    padding: 15px;
  }
  .content-section {
    flex-direction: column; 
  }
  .content-left, .content-right {
    flex: none; 
    width: 100%; 
    min-width: unset; 
  }
  .content-left {
    height: 200px; 
  }
  .content-right h2 {
    font-size: 20px;
text-align: center;
  }
  .content-right h3 {
    font-size: 14px; 
  }
  .content-right p {
    font-size: 12px;
  }
}



/* =========================================================
   بنر دیجی‌پی
   ========================================================= */

.digipay-banner {
    width: 80%;
    margin: 30px auto;
    overflow: hidden;
    border-radius: 8px;
    box-sizing: border-box;
}

/* ---------------------------------------------------------
   تصویر WebP
   --------------------------------------------------------- */

.digipay-banner img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
}

/* ---------------------------------------------------------
   ویدیوی WebM
   --------------------------------------------------------- */

.digipay-banner video {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
}


/* =========================================================
   تبلت
   ========================================================= */

@media (max-width: 768px) {

    .digipay-banner {
        width: 90%;
        margin: 25px auto;
        border-radius: 8px;
    }

}


/* =========================================================
   موبایل
   ========================================================= */

@media (max-width: 480px) {

    .digipay-banner {
        width: 95%;
        margin: 20px auto;
        border-radius: 6px;
    }

}


/* =========================================================
   موبایل خیلی کوچک
   ========================================================= */

@media (max-width: 360px) {

    .digipay-banner {
        width: 96%;
        margin: 15px auto;
        border-radius: 5px;
    }

}


/* =========================================================
   بنر شناور دیجی‌پی
   ========================================================= */

.digipay-flyer {
    position: fixed;
    width: 180px;
    height: 260px;
    top: 40px;
    left: 0;
    z-index: 9999;
    overflow: hidden;
    border-radius: 0 8px 8px 0;
    box-sizing: border-box;
}

/* ---------------------------------------------------------
   تصویر WebP
   --------------------------------------------------------- */

.digipay-flyer img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------------------------------------------------------
   ویدیوی WebM
   --------------------------------------------------------- */

.digipay-flyer video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* =========================================================
   تبلت
   ========================================================= */

@media (max-width: 768px) {

    .digipay-flyer {
        width: 125px;
        height: 180px;
        top: 30px;
    }

}


/* =========================================================
   موبایل
   ========================================================= */

@media (max-width: 480px) {

    .digipay-flyer {
        width: 97px;
        height: 140px;
        top: 25px;
    }

}


/* =========================================================
   موبایل خیلی کوچک
   ========================================================= */

@media (max-width: 360px) {

    .digipay-flyer {
        width: 83px;
        height: 120px;
        top: 22px;
    }

}


/* =========================================================
   نوار شناور دیجی‌پی
   ========================================================= */

.digipay-band {
    position: fixed;
    width: 50px;
    height: 260px;
    top: 200px;
    left: 0;
    z-index: 9999;
    overflow: hidden;
    border-radius: 0 7px 7px 0;
    box-sizing: border-box;
    
}

/* ---------------------------------------------------------
   تصویر WebP
   --------------------------------------------------------- */

.digipay-band img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------------------------------------------------------
   ویدیوی WebM
   --------------------------------------------------------- */

.digipay-band video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* =========================================================
   تبلت
   ========================================================= */

@media (max-width: 768px) {

    .digipay-band {
        width: 32.7px;
        height: 170px;
        top: 70px;
    }

}


/* =========================================================
   موبایل
   ========================================================= */

@media (max-width: 480px) {

    .digipay-band {
        width: 25px;
        height: 130px;
        top: 70px;
    }

}


/* =========================================================
   موبایل خیلی کوچک
   ========================================================= */

@media (max-width: 360px) {

    .digipay-band {
        width: 19.23px;
        height: 100px;
        top: 70px;
    }

}