@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: 80px;
  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: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 8px;
	direction: rtl;
}

.promo-text {
	display: flex;
	align-items: center;
	flex: 1;
}

.promo-text-img {
  padding: 12px;
	max-height: 50px;
	height: auto;
	max-width: 100%;
	object-fit: contain;

}

.promo-button {
	margin-left: 32px;
	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: 8px 16px;
	text-decoration: none;
	border-radius: 8px;
	transition: all 0.3s ease;
	min-width: 120px;
	min-height: 40px;
	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;
	height: auto;
	max-width: 100%;
	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: 70px;
	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 {
	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: 32px;
}

.nav-item {
	position: relative;
}

.nav-link {
	text-decoration: none;
	color: #333;
	font-family: 'DiodrumArabic', 'Arial', sans-serif;
	font-size: 15px;
	font-weight: normal;
	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;
	}
	
  .custom-slide-image {
    margin-top: 30px;
    object-fit: cover;
    max-height: 510px;
    width: 100%;
    height: auto;
    border-radius: 12px;
  }}
  
  /* اختیاری: برای حالت موبایل، ارتفاع رو کمتر کنیم */
  @media (max-width: 768px) {
    .custom-slide-image {
      max-height: 450px;
    }
  }
  
  .hero-img {
    object-fit: cover;
  }
  
  /* استایل خاص موبایل */
  @media (max-width: 576px) {
    .hero-img {
      border-radius: 0; /* لبه‌ها صاف‌تر روی موبایل */
    }
  }

  .benefit-title {
    width: 50%;
    justify-content: center;
    background-color: #E0E0E0;  /* طوسی ملایم */
    display:inline-flex;    /* باکس هم اندازه متن */
    padding: 10px 12px;          /* فاصله داخلی */
    border-radius: 12px;        /* گوشه‌های گرد */
    font-weight: bold;          /* متن بولد */
    font-size: 1rem;
  }
  

  .activation-section {
    background-size: cover;
    background-position: center;
    border-radius: 16px;
  }
  
  .activation-title-box {
    background-color: #f5f5f5a4; /* خاکستری روشن */
    border-radius: 15px;       /* گوشه گرد */
    width: 40%;
    padding: 1.5rem 1rem; 
    /* وسط‌چین */
    margin-left: auto;
    margin-right: auto;
  }          /* عرض باکس */
  .purple-text {
    height: 35px; 
    width:55%;
    font-family: 'DiodrumArabic', Arial, sans-serif;
    font-weight: 500;
    font-style: normal; color: #74459F; /* یه بنفش شیک */
  }
  .purple{
    font-family: 'DiodrumArabic', Arial, sans-serif;
    font-weight: 500;
    font-style: normal; color: #74459F; /* یه بنفش شیک */
  }
  .title {
    font-weight: bold;
    color: #222;
  }
  
  .subtitle {
    color: #555;
  }
  
  /* خط مراحل */
.step-line {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  overflow-x: auto;
}

/* خط بین دایره‌ها */
.step-line::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 5%;
  right: 5%;
  height: 8px;
  background-color: #f8f4f4;
  z-index: 0;
  transform: translateY(-50%);
}

/* دایره‌ها */
.step-icon {
  position: relative;
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  z-index: 1;
}

.step-icon img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: block;
}

.step-icon span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: bold;
  font-size: 2rem;
  color: #4B75DE;
  pointer-events: none;
  user-select: none;
}

/* باکس‌های سفید */
.step-box {
  width: 100%;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background-color: transparent;
}

.box-bg {
  width: 100%;
  display: block;
}

.box-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.box-content img {
  width: 30%;
}

.overlay-icon {
  position: absolute;
  top: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 16%;
  z-index: 1;
}

.box-content p {
  margin-bottom: 5px;
  font-size: 16px;
  font-weight: 500;
}

.download-text {
   font-family: 'DiodrumArabic';
  font-size: 0.9rem;
  font-weight: bold;
  color: #533176;
  border: 2px solid #A46EFF;
  border-radius: 8px;
  display: inline-block;
  background-color: #fff;
}

.nowrap-text {
  white-space: nowrap;
}

/* اسکرول مخفی برای موبایل */
.step-line::-webkit-scrollbar {
  display: none;
}
.step-line {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

  
  /* ریسپانسیو */
  @media (max-width: 576px) {
    .overlay-icon {
      width: 20%;
      
    }
    .box-content img {
      width: 40%;
    }
    .nowrap-text {
      font-size: 0.85rem;
    }
  }
  
  /* --- 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 {
  display: flex;
  gap: 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;
  }
  }