@font-face {
    font-family: 'DiodrumArabic';
    src: url('./fonts/DiodrumArabic-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
  }
  @font-face {
    font-family: 'DiodrumArabic';
    src: url('./fonts/DiodrumArabic-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
  }
  @font-face {
    font-family: 'DiodrumArabic';
    src: url('./fonts/DiodrumArabic-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
  }
  @font-face {
    font-family: 'DiodrumArabic';
    src: url('./fonts/DiodrumArabic-Semibold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
  }
  @font-face {
    font-family: 'DiodrumArabic';
    src: url('./fonts/DiodrumArabic-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
  }
  body {
      padding-top: 0;
      font-family: 'DiodrumArabic', 'Arial', sans-serif;
      direction: rtl;
      margin: 0;
  }
  
    section{
      width: 100%;
      height: auto;
    }
    .container{
      width: 80%;
      margin: 0 auto;
    }
    .bold{
      font-weight: bolder;
      font-size: 15px;
    }
    /* Reset and Base Styles */
  * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
  }
  
  
  /* Page wrapper background */
  .page-wrapper {
      background: #FFFFFF;
      min-height: 100vh;
  }
  
  /* Force LTR layout for header */
  .modern-header * {
      direction: ltr;
  }
  
  /* Additional Font Classes */
  .menu-font {
      font-family: 'DiodrumArabic', 'Arial', sans-serif !important;
      font-weight: normal;
  }
  
  .button-font {
      font-family: 'DiodrumArabic', 'Arial', sans-serif !important;
      font-weight: normal;
  }
  
  
  
  /* Promo Bar */
  .promo-bar {
      width: 100%;
      height: 72px;
      background: url('images/Rectangle\ \(1\).png') center center;
      background-size: cover;
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
      overflow: hidden;
  }
  
  .promo-container {
      width: 99%;
      height: 88%;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 5px 5px;
      direction: rtl;
  }
  
  .promo-text {
      display: flex;
      align-items: center;
      flex: 1;
  }
  
  .promo-text-img {
    padding: 10px;
      max-height: 50px;
      max-width: 57%;
      object-fit: contain;
  
  }
  
  .promo-button {
      margin-left: 25px;
      display: flex;
      align-items: center;
  }
  
  .loan-request-btn {
      display: inline-block;
      background: rgba(255, 255, 255, 0.1);
      backdrop-filter: blur(10px);
      border: 1px solid rgba(255, 255, 255, 0.3);
      padding: 0px 5px;
      text-decoration: none;
      border-radius: 8px;
      transition: all 0.3s ease;
      min-width: 109px;
      min-height: 36px;
      text-align: center;
      display: flex;
      align-items: center;
      justify-content: center;
  }
  
  .loan-request-btn:hover {
      transform: translateY(-2px);
      background: rgba(255, 255, 255, 0.2);
      border: 1px solid rgba(255, 255, 255, 0.5);
      text-decoration: none;
  }
  
  .btn-img {
      max-height: 24px;
      
      max-width: 69%;
      object-fit: contain;
  
  }
  
  /* Modern Header */
  .modern-header {
      background: #ffffff;
      position: sticky;
      top: 0;
      left: 0;
      right: 0;
      z-index: 1000;
      border-bottom: 1px solid #f0f0f0;
      direction: ltr;
  }
  
  .header-container {
      width: 100%;
      margin: 0;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 10px 20px;
      height: 65px;
      direction: ltr;
      position: relative;
  }
  
  /* Download Buttons - Left Side */
  .download-buttons {
      display: flex;
      gap: 12px;
      flex-shrink: 0;
      order: 1;
      justify-self: flex-start;
  }
  
  .download-btn {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 0;
      width: 139px;
      height: 36px;
      border-radius: 7px;
      text-decoration: none;
      font-family: 'DiodrumArabic', 'Arial', sans-serif;
      font-size: 13px;
      font-weight: 500;
      font-weight: normal;
      transition: all 0.3s ease;
      border: 1px solid #74459F;
      white-space: nowrap;
      background: #fff;
      color: #333;
      cursor: pointer;
  }
  
  .download-btn .btn-icon {
      width: 16px;
      height: 16px;
      object-fit: contain;
  }
  
  .download-btn span {
    font-family: 'DiodrumArabic';
    font-weight: 400;
    font-style: normal;
    font-size: 12px;
      transform: translateY(-2px);
  }
  
  
  
  .download-btn:hover {
      transform: translateY(-1px);
      text-decoration: none;
      background: #74459F;
      color: white;
  }
  
  .download-btn:hover .btn-icon {
      filter: brightness(0) invert(1);
  }
  
  
  
  /* Main Navigation - Center */
  .main-navigation {
      flex: 1;
      display: flex;
      justify-content: center;
      margin: 0 40px;
      order: 2;
  }
  
  .nav-menu {
      display: flex;
      list-style: none;
      margin: 0;
      padding: 0;
      gap: 30px;
  }
  
  .nav-item {
      position: relative;
  }
  
  .nav-link {
      text-decoration: none;
      color: #333;
      font-family: 'DiodrumArabic', 'Arial', sans-serif;
      font-size: 14px;
      font-weight: 400;
      padding: 10px 0;
      transition: color 0.3s ease;
      position: relative;
      white-space: nowrap;
      transform: translateY(-2px);
  }
  
  .nav-link:hover,
  .nav-link.active {
      color: #4CAF50;
      text-decoration: none;
  }
  
  /* خدمات سازمانی styling */
  .nav-link.organizational-services {
      color: #6a1b9a !important;
      font-family: 'DiodrumArabic', 'Arial', sans-serif !important;
      font-weight: bold !important;
  }
  
  .nav-link.organizational-services:hover {
      color: #4a148c !important;
  }
  
  /* Logo - Right Side */
  .logo-section {
      display: flex;
      align-items: center;
      flex-shrink: 0;
      order: 3;
      justify-self: flex-end;
  }
  
  .logo-img {
      height: 45px;
      max-width: 140px;
      object-fit: contain;
  }
  
  /* Mobile Menu - New Responsive Design */
  .displaynone {
      display: none;
  }
  
  .xs-menu-cont {
      display: none;
      order: 4;
  }
  
  .xs-menu-cont > a {
      background: none repeat scroll 0 0 #4CAF50;
      border-radius: 6px;
      padding: 8px 12px;
      display: block;
      border-bottom: 1px solid #45a049;
      box-shadow: 0 2px 4px rgba(76, 175, 80, 0.3);
      cursor: pointer;
      transition: all 0.3s ease;
  }
  
  .xs-menu-cont > a:hover {
      background: #45a049;
      transform: translateY(-1px);
  }
  
  #menutoggle i {
      color: #fff;
      font-size: 18px;
      margin: 0;
      padding: 0;
  }
  
  .xs-menu {
      position: absolute;
      top: 100%;
      right: 0;
      width: 280px;
      background: white;
      border-radius: 8px;
      box-shadow: 0 8px 25px rgba(0,0,0,0.15);
      z-index: 1000;
      direction: rtl;
      overflow: hidden;
  }
  
  .xs-menu li {
      color: #333;
      padding: 0;
      border-bottom: 1px solid #f0f0f0;
      background: white;
  }
  
  .xs-menu li:last-child {
      border-bottom: none;
  }
  
  .xs-menu li a {
      text-decoration: none;
      color: #333;
      display: block;
      padding: 15px 20px;
      font-family: 'DiodrumArabic', 'Arial', sans-serif;
      font-size: 15px;
      transition: all 0.3s ease;
      transform: translateY(-2px);
  }
  
  .xs-menu li a:hover,
  .xs-menu li.active a {
      background: #f8f9fa;
      color: #4CAF50;
  }
  
  .xs-menu li.active a {
      background: #4CAF50;
      color: white;
  }
  
  .xs-menu li a.organizational-services {
      color: #6a1b9a !important;
      font-family: 'DiodrumArabic', 'Arial', sans-serif !important;
      font-weight: bold !important;
  }
  
  .xs-menu li a.organizational-services:hover {
      color: #4a148c !important;
      background: #f3e5f5;
  }
  
  .mobile-download-links {
      padding: 15px 20px;
      border-top: 1px solid #f0f0f0;
      background: #f8f9fa;
  }
  
  .mobile-download-links a {
      display: block;
      margin: 8px 0;
      padding: 10px 15px;
      background: #4CAF50;
      color: white;
      text-decoration: none;
      border-radius: 6px;
      font-family: 'DiodrumArabic', 'Arial', sans-serif;
      font-size: 14px;
      transition: all 0.3s ease;
      transform: translateY(-2px);
      display: flex;
      align-items: center;
      gap: 8px;
  }
  
  .mobile-download-links a .btn-icon {
      width: 16px;
      height: 16px;
      object-fit: contain;
      filter: brightness(0) invert(1); /* Makes icons white */
  }
  
  .mobile-download-links a:hover {
      background: #45a049;
      transform: translateY(-3px);
  }
  
  /* Responsive Design */
  @media (max-width: 1200px) {
      .download-btn {
           width: 130px; 
           height: 34px; 
      }
  }
  
  @media (max-width: 1024px) {
      .nav-menu {
          gap: 20px;
      }
      
      .nav-link {
          font-size: 14px;
      }
      
      .download-btn {
           width: 120px; 
           height: 32px; 
          font-size: 12px;
      }
      
      .download-btn span {
          transform: translateY(-2px);
      }
      
      .header-container {
          padding: 0 15px;
      }
      
      .main-navigation {
          margin: 0 20px;
      }
      
      .promo-container {
          padding: 0 20px;
      }
      
      .promo-text-img {
          max-height: 40px;
      }
      
      .btn-img {
          max-height: 20px;
      }
  }
  
  @media (max-width: 768px) {
      .download-buttons,
      .main-navigation {
          display: none !important;
      }
      
      .xs-menu-cont {
          display: block !important;
      }
      
      .header-container {
          padding: 0 20px;
          height: 65px;
          justify-content: space-between;
          display: flex !important;
          align-items: center !important;
      }
      
      .logo-img {
          height: 40px;
      }
      
      .promo-bar {
          height: 70px;
      }
      
      .promo-container {
          padding: 0 20px;
          flex-direction: row;
          justify-content: space-between;
          text-align: right;
          gap: 15px;
      }
      
      .promo-text-img {
          max-height: 35px;
      }
      
      .promo-button {
          margin-left: 0;
      }
      
      .loan-request-btn {
          padding: 8px 15px;
          min-width: 110px;
          min-height: 35px;
      }
      
      .btn-img {
          max-height: 18px;
      }
  }
  
  @media (max-width: 480px) {


      .header-container {
          padding: 0 15px;
          height: 60px;
      }
      
      .logo-img {
          height: 35px;
      }
      
      .xs-menu {
          width: 250px;
          right: -10px;
      }
      
      .promo-bar {
          height: 50px;
      }
      
      .promo-container {
          padding: 0 10px;
      }
      
      .promo-text-img {
          max-height: 45px;
      }
      
      .mobile-menu {
          width: 280px;
      }
      
      .mobile-nav-link {
          font-size: 15px;
          padding: 12px 0;
      }}

      
     .hero-img{
        width: 90%;
        padding: 38px;
     }
      
      /* اختیاری: برای حالت موبایل، ارتفاع رو کمتر کنیم */
      @media (max-width: 768px) {
        .custom-slide-image {
          max-height: 450px;
        }
      }
      
      .hero-img {
        object-fit: cover;
      }
      
      /* استایل خاص موبایل */
      @media (max-width: 576px) {
        .hero-img {
          border-radius: 0; /* لبه‌ها صاف‌تر روی موبایل */
        }
      }
    
      .contact-section {
        text-align: center;
        margin: 40px 0;
    }
    
    .contact-section h2 {
        font-weight: 700;
        color: #3d2951;
        margin-bottom: 30px;
    }
    
    .contact-box {
        min-height: 180px; /* از 150 به 180 تغییر دادم */
        padding: 35px 20px; /* کمی padding بزرگ‌تر */
        display: flex;
        flex-direction: column;
        justify-content: center; /* محتوا وسط عمودی */
        align-items: center;     /* محتوا وسط افقی */
        border-radius: 12px;
        color: #000;
        font-size: 14px;
        font-weight: 500;
        background-size: cover;
        background-position: center;
        position: relative;
    }
    
    
    /* دیگه نیازی به ::before نیست، پس حذف می‌کنیم */
    
    .contact-box > * {
        position: relative;
        z-index: 1;
        color: #000; /* آیکون‌ها و متن مشکی */
    }
    

    .contact-box.box2 {
        font-family: 'DiodrumArabic';
        font-weight: 500;
        font-style: normal;
        font-size: 11px;
    }

    .contact-box.box1 {
        font-family: 'DiodrumArabic';
        font-weight: 500;
        font-style: normal;
        font-size: 12px;
    }
    
    
    /* پس‌زمینه عکس‌ها */
    .contact-box.box1 {
        background-image: url("images/Rectangle 77 (1).png");
    }
    .contact-box.box2 {
        background-image: url("images/Rectangle 76.png");
    }
    .contact-box.box3 {
        background-image: url("images/Rectangle 74 (2).png");
    }
    .contact-box.box4 {
        background-image: url("images/Rectangle 75.png");
    }

    

    .icon-btn {
        width: 40px;
        height: 40px;
        border: none;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        cursor: pointer;
        background-color: transparent;
        padding: 0;
    }
    
    /* تصاویر مخصوص هر دکمه */
    .icon-btn.btn-phone {
        background-image: url('images/Frame\ \(13\).png');
    }
    
    .icon-btn.btn-envelope {
        background-image: url('images/Frame\ \(14\).png');
    }
    
    .icon-btn.btn-location {
        background-image: url('images/Frame\ \(15\).png');
    }
    
    .icon-btn.btn-clock {
        background-image: url('images/Frame\ \(16\).png');
    }
    

    /* ریسپانسیو */
    @media (max-width: 576px) {
        .contact-box {
            font-size: 12px;
            min-height: 90px;
            padding: 15px 10px;
        }
        .icon-wrapper {
            font-size: 20px;
            margin-bottom: 6px;
        }
    }



/* استایل بخش‌ها */
.section-container {
    max-width: 800px;
    margin: 30px auto;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 0 8px rgba(0,0,0,0.1);
  }


  /* بخش نقشه iframe */
  .map-container {
    height: 400px;
    border: 1px solid #ccc;
    border-radius: 6px;
    cursor: url(https://maps.gstatic.com/mapfiles/openhand_8_8.cur), default;
    overflow: hidden;
  }
  
  .map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
  }  








  /* --- Main Footer Styles --- */
  .main-footer {
    background: #f1f2f6;
    width: 100%;
    direction: rtl;
    font-family: 'DiodrumArabic', Arial, sans-serif;
    font-weight: 500;
    font-style: normal;
    padding: 80px 0 0;
    color: #3d3d3d;
    min-height: 450px; /* Adjusted height */
    display: flex;
    flex-direction: column;
    align-items: center; /* Vertically center content */
    justify-content: center;
    }
    
    .footer-container {
    width: 100%;
    margin: 0;
    padding:  40px; /* کمی padding داخلی */
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    }
    
    /* --- Right Section: Logo & Menus --- */
    .footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 25px;
    flex-shrink: 0;
    }
    
    .footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    }
    
    .logo-img {
    height: 45px;
    width: auto;
    }
    
    .brand-text {
    font-family: 'DiodrumArabic', Arial, sans-serif;
    font-weight: 500;
    font-style: normal;
    font-size: 18px;
    color: #000;
    }
    
    .footer-menus-wrapper {
    font-family: 'DiodrumArabic', Arial, sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 14px;
    display: flex;
    gap: 50px;
    padding-bottom: 50px;
    }
    
    .footer-menu .menu-title {
    font-family: 'DiodrumArabic', Arial, sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: 15px;
    margin-bottom: 15px;
    color: #000;
    }
    
    .footer-menu .menu-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
    }
    
    .footer-menu .menu-title a:hover {
    color: #74459F;
    }
    
    .footer-menu .menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    }
    
    .footer-menu .menu-list li a {
    text-decoration: none;
    color: #3d3d3d;
    font-size: 14px;
    transition: color 0.2s ease;
    }
    
    .footer-menu .menu-list li a:hover {
    color: #74459F;
    }
    
    .other-menu {
    display: flex;
    flex-direction: column;
    gap: 20px;
    }
    
    .other-menu .menu-title {
    margin-bottom: 0;
    }
    
    /* --- Center Section: Title & Downloads --- */
    .footer-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    flex-grow: 1; /* Allow to take available space */
    padding-top: 25px; /* Alignment adjustment */
    }
    
    .footer-title {
    font-family: 'DiodrumArabic', Arial, sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: 32px;
    color: #74459F;
    margin: 0;
    }
    
    .download-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
    }
    
    .main-footer .download-btn {
    border: 1px solid #74459F;
    border-radius: 8px;
    padding: 8px 15px;
    background: transparent;
    color: #3d3d3d;
    font-family: 'DiodrumArabic', sans-serif;
    font-weight: 300;
    font-style: normal;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 318px;
    height: 36px;
    transition: all 0.2s ease;
    }
    
    .main-footer .download-btn:hover {
    background-color: #74459F;
    color: #fff;
    }
    .download-icon-img {
    height: 20px;
    }
    /* --- Left Section: Back to Top --- */
    .footer-left {
    padding-top: 40px; /* Align with title */
    flex-shrink: 0;
    }
    
    .top-btn {
    width: 63px;
    height: 62px;
    border: none;
    background: #74459F;
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    }
    
    .top-btn i {
    font-size: 22px;
    font-weight: 900;
    }
    
    .top-btn:hover {
    background: #5e3582;
    color: #fff;
    }
    
    /* --- Footer Address Bar --- */
    .footer-address-bar {
    background: #e6e0f0;
    width: 100%;
    padding: 25px 0;
    font-family: 'DiodrumArabic', sans-serif;
    font-weight: 500;
    font-style: normal;
    font-size: 12px;
    color: #5c4e6e;
    direction: rtl;
    }
    .address-bar-content {
    width: 100%;
    margin: 0;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    }
    .contact-info {
    display: flex;
    gap: 40px;
    align-items: center;
    flex-wrap: wrap;
    }
    .contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    }
    .contact-icon-img {
    height: 20px;
    width: auto;
    }
    .social-media {
    display: flex;
    align-items: center;
    gap: 12px;
    }
    .social-media a {
    color: #74459F;
    text-decoration: none;
    transition: opacity 0.2s ease;
    display: inline-block; /* Fix for layout shifts */
    }
    .social-media a:hover {
    opacity: 0.8;
    }
    .social-icon-img {
    height: 32px;
    width: auto;
    vertical-align: middle;
    }
    /* --- Responsive Styles --- */
    
    /* Smaller Desktops */
    @media (max-width: 1200px) {
    .footer-container, .address-bar-content {
        padding: 0 40px;
    }
    .footer-title {
        font-size: 28px;
    }
    .main-footer .download-btn {
        width: 280px;
    }
    }
    
    /* Tablets */
    @media (max-width: 992px) {
    .main-footer {
        padding: 0px 0;
        min-height: auto;
    }
    .footer-container {
        flex-direction: column;
        align-items: center;
        gap: 50px;
        text-align: center;
    }
    .footer-right, .footer-center, .footer-left {
        align-items: center;
        width: 100%;
        padding-top: 0;
    }
    .footer-center { order: 1; }
    .footer-right { order: 2; }
    .footer-left { order: 3; }
    
    .footer-menus-wrapper {
        justify-content: center;
        gap: 15%;
        width: 100%;
    }
     .footer-menu {
        text-align: right; /* Keep text aligned to start in RTL */
    }
    .other-menu {
        text-align: right;
    }
    .footer-title {
        margin-top: 0;
    }
    
    .address-bar-content {
        justify-content: center;
    }
    }
    
    /* Mobile */
    @media (max-width: 768px) {
    .address-bar-content {
        flex-direction: column-reverse;
        gap: 25px;
    }
    .contact-info {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .footer-menus-wrapper {
        flex-direction: column;
        gap: 40px;
        align-items: center;
    }
    .footer-menu {
        text-align: center;
    }
    .other-menu {
        text-align: center;
    }
    .main-footer .download-btn {
        width: 100%;
        max-width: 320px;
    }
    }
    
    @media (max-width: 480px) {
    .footer-container, .address-bar-content {
        padding: 0 20px;
    }
    .footer-title {
        font-size: 24px;
    }
    }