@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 {
  font-family: 'DiodrumArabicBold';
  background-color: #f8f8f8;
  direction: rtl;
   padding: 0;
  box-sizing: border-box;
}
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\)\ \(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: 5px 5px;
	direction: rtl;
}

.promo-text {
	display: flex;
	align-items: center;
	flex: 1;
}

.promo-text-img {
  padding: 10px;
	max-height: 50px;
	height: auto;
	max-width: 58%;
	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: 110px;
	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;
}


/* 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: 300;

	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;

  width: 100%;
  height: auto;
  border-radius: 12px;
}}

.kifepool-text {
  background-color: #fff;
  border-radius: 20px;
  padding: 18px 20px;
  font-weight: 600;
  font-size: 17px;
  line-height: 1.8;
  text-align: justify;
  color: #222;
  direction: rtl;
  font-family: 'DiodrumArabic';
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
}

/* برای موبایل: کمی فونت بزرگتر و فضای مناسب */
@media (max-width: 768px) {
  .kifepool-text {
    font-size: 20px;
    line-height: 1.9;
    padding: 16px;
  }
}

/* سکشن کلی */
.features-section {
  background-color: #f9f9f9;
  padding: 40px 0;
  font-family: 'DiodrumArabic';
  direction: rtl;
}

/* باکس مرکزی */
.features-wrapper {
  background-color: #f9f9f9;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
  text-align: right;
}

/* گرید کارت‌ها */
.features-grid {
  background-color: #ffffff; /* پس‌زمینه سفید برای گرید */
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px; /* کمی جمع‌و‌جورتر */
  padding: 35px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); /* سایه ملایم */
}

/* کارت‌ها */
.feature-card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 8px;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-evenly;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  border: 1px solid #7c63ff;
  background-color: #f8f8ff;
}

.feature-card img {
  width: 50%; /* کوچکتر شده */
  height: auto;
  margin-top: 10px;
}

.feature-card h3 {
  font-family: 'DiodrumArabic';
  font-weight: 600;
  font-style: normal;
  font-size: 18px;
 
}

.feature-card p {
  font-family: 'DiodrumArabic';
  font-weight: 400;
  font-style: normal;
  font-size: 16px;
  
  color: #333;
  margin: 0;
}

.card-horizontal {
  display: flex;
  flex-direction: row;
  align-items: flex-start; /* مهم: متن بره بالا */
  justify-content: flex-start;
  gap: 10px;
  text-align: right;
}

.card-horizontal img {
  width: 80px;
  height: auto;
  flex-shrink: 0;
  margin: 0;
}

.card-horizontal .text-block-top {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* متن از بالا شروع بشه */
  gap: 8px;
}

.card-horizontal h3,
.card-horizontal p {
  margin: 0;
  text-align: right;
  line-height: 1.6;
}


.card-icon-left {
  display: flex !important;             /* مهم! فعال کردن حالت فلکس */
  flex-direction:row !important;  /* متن راست، آیکون چپ */
  align-items:end;                 /* چینش عمودی در وسط */
  justify-content:left;
  text-align: right;
  gap: 10px;}

.card-icon-left img {
  width: 150px;
  height: auto;
  flex-shrink: 0;
}

.card-icon-left .text-content {
  flex:1;
  flex-direction: column;
  justify-content:space-around; /* این خط باعث میشه h3 و p وسط کارت قرار بگیرن */
  height: 90%; /* لازمه برای عمودی وسط */
  gap: 8px;
  white-space: normal;     /* شکستن خط فعال */
  word-wrap: break-word;   /* شکستن کلمه در صورت نیاز */
}

.card-icon-left h3,
.card-icon-left p {
  margin: 8px;
  text-align: right;
}



/* جای‌گذاری کارت‌ها در دسکتاپ */
.connect-wallet {
  background-color: #7c63ff;
  grid-column: 1 / 3;
}
.large-card {
  grid-column: 3 / 4;
  grid-row: 1 / 3;
}
.jib-card {
  grid-column: 1 / 2;
  grid-row: 2 / 3;
}
.medium-card {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
}
.bottom-right {
  grid-column: 1 / 2;
  grid-row: 3 / 4;
}
.xl-card {
  grid-column: 2 / 4;
  grid-row: 3 / 4;
}

/* تصویر در پایین کارت */
.card-image-bottom {
  flex-direction: column;
  text-align: right;
}
.card-image-bottom img {
  margin-top: 20px;
}


/* رنگ‌ها */
.card-gray        { background-color: #E8E8E8; }
.card-lightpink   { background-color: #b7aed957; }
.card-lightpurple { background-color: #b070ed40; }
.card-lightblue   { background-color: #81e9df57; }
.card-lightgray   { background-color: #8298f05f; }

/* موبایل: یک ستون و عرض کامل */
@media (max-width: 768px) {
.features-wrapper {
  width: 95%;
  padding: 0 12px;
}

.features-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-card,
.card-horizontal,
.card-image-bottom {
  width: 100% !important;
  flex-direction: column !important;
  text-align: center !important;
  align-items: center !important;
}

.feature-card img {
  width: 30%;
  margin-top: 12px;
}

.card-horizontal img {
  margin: 0 0 12px 0;
}
}



  .card-horizontal {
    flex-direction:row-reverse!important;
    align-items: center;
  }

  .card-horizontal img {
    margin: 0 0 12px 0;
  }








/* --- Font Definitions --- */
@font-face {
font-family: 'Estedad-Regular';
src: url('./DiodrumArabic-Regular.ttf') format('woff2');
font-weight: 400;
font-style: normal;
font-display: swap;
}

@font-face {
font-family: 'Estedad-Bold';
src: url('./DiodrumArabic-Bold.ttf') format('woff2');
font-weight: 700;
font-style: normal;
font-display: swap;
}

@font-face {
font-family: 'DiodrumArabic-Semibold';
src: url('DiodrumArabic-Semibold.ttf') format('truetype');
font-weight: 600;
font-style: normal;
font-display: swap;
}

 /* --- 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 {
    font-family: 'DiodrumArabic', Arial, sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 32px;
  list-style: none;
  padding: 0;
  margin-bottom: 50px;
  display: flex;
  flex-direction: column;
 
  }
  
  .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;
  }
  }