@import "https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;600;700&display=swap";

/* CSS Variables for better maintainability */
:root {
  --primary-color: #18325B;
  --secondary-color: #FAA71B;
  --text-dark: #444;
  --text-light: #666;
  --white: #fff;
  --light-bg: #f8f9fa;
  --border-radius: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 8px 25px rgba(24, 50, 91, 0.15);
  --shadow-heavy: 0 20px 40px rgba(24, 50, 91, 0.2);
}

/* Reset and base styles */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  font-size: 16px;
  scroll-behavior: smooth;
  font-family: "Tajawal", sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  direction: rtl;
  text-align: right;
}

a {
  color: var(--white);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-color);
  text-decoration: none;
}

hr {
  border: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
  margin: 2rem 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Tajawal", sans-serif;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

p {
  line-height: 1.7;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

::selection {
  background: var(--primary-color);
  color: var(--white);
}

/* Form and input improvements */
.form-control {
  border: 2px solid #e1e5e9;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 16px;
  transition: var(--transition);
  background: var(--white);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(24, 50, 91, 0.1);
  outline: none;
}

input[type=file] {
  font-size: 14px;
  border-radius: 10px;
  border: 2px dashed #e1e5e9;
  padding: 20px;
  background: var(--light-bg);
  transition: var(--transition);
  width: 100%;
  cursor: pointer;
}

input[type=file]:hover {
  background: var(--white);
  border-color: var(--primary-color);
  border-style: solid;
}

input[type=file]::before {
  content: "اختر ملف أو اسحبه هنا";
  display: block;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 10px;
}

input[type=file]::file-selector-button {
  background: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  cursor: pointer;
  transition: var(--transition);
  margin-left: 10px;
}

input[type=file]::file-selector-button:hover {
  background: var(--secondary-color);
}

/* Remove spinner from number inputs */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type=number] {
  -moz-appearance: textfield;
  appearance: textfield;
}

/* Header improvements */
#header {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(24, 50, 91, 0.08);
  box-shadow: var(--shadow-light);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
  padding: 0.5rem 0;
}

#header:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--primary-color));
}

#header .underline {
  color: var(--primary-color);
  padding: 8px 16px;
  display: inline-block;
  position: relative;
  border-radius: 8px;
  transition: var(--transition);
}

#header .underline:after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 3px;
  bottom: 0;
  left: 0;
  background: var(--secondary-color);
  transform-origin: bottom right;
  transition: transform 0.3s ease-out;
  border-radius: 2px;
}

#header .underline:hover {
  background: rgba(24, 50, 91, 0.05);
}

#header .underline:hover:after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

#header .dropdown-item {
  background: var(--white);
  color: var(--primary-color);
  padding: 12px 20px;
  transition: var(--transition);
  border-radius: 8px;
  margin: 2px 0;
}

#header .dropdown-item:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateX(5px);
}

/* Typography and layout improvements */
.title {
  position: relative;
  text-align: center;
  font-size: clamp(28px, 5vw, 42px);
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 3rem;
  line-height: 1.2;
}

.title span {
  position: relative;
  display: inline-block;
  padding: 0 2rem;
}

.title span:before {
  position: absolute;
  content: "";
  background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
  width: 80px;
  height: 4px;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  border-radius: 2px;
}

.sub-title {
  font-size: 18px;
  color: var(--text-light);
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
  line-height: 1.7;
  font-weight: 400;
}

.box-title {
  font-size: 20px;
  position: relative;
  border-radius: 10px;
  padding: 15px 20px;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary-color), #2a4a7b);
  box-shadow: var(--shadow-light);
  margin-bottom: 1.5rem;
}
/* Section and layout improvements */
section {
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

section:nth-child(even) {
  background: linear-gradient(135deg, var(--light-bg) 0%, var(--white) 100%);
}

/* Modern button styles */
.btn {
  border-radius: 50px;
  padding: 14px 32px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0.5px;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--primary-color) 0%, #2a4a7b 100%);
  box-shadow: var(--shadow-medium);
  position: relative;
  overflow: hidden;
}

.btn-primary:before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--secondary-color) 0%, #ff9500 100%);
  transition: left 0.3s ease;
  z-index: -1;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-heavy);
  color: var(--white);
}

.btn-primary:hover:before {
  left: 0;
}

.btn-light {
  color: var(--primary-color);
  background: var(--white);
  border: 2px solid var(--primary-color);
  box-shadow: var(--shadow-light);
}

.btn-light:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

/* Owl Carousel improvements */
.owl-theme .owl-dots .owl-dot.active span,
.owl-theme .owl-dots .owl-dot:hover span {
  background: var(--primary-color);
  transform: scale(1.2);
}

.owl-theme .owl-dots .owl-dot span {
  border: 2px solid var(--primary-color);
  background: transparent;
  transition: var(--transition);
}

.owl-theme .owl-dots {
  margin-top: 2rem;
}
/* Improved header and navigation */
#header {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(24, 50, 91, 0.08);
  box-shadow: var(--shadow-light);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
  padding: 0.5rem 0;
}

#header:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--primary-color));
}

.navbar-nav {
  align-items: center;
  gap: 0.5rem;
}

.navbar-light .navbar-nav .nav-link {
  color: var(--primary-color);
  font-size: 16px;
  padding: 10px 16px;
  border-radius: 25px;
  transition: var(--transition);
  position: relative;
  font-weight: 500;
}

.navbar-light .navbar-nav .nav-link:hover {
  background: rgba(24, 50, 91, 0.08);
  color: var(--primary-color);
  transform: translateY(-1px);
}

.navbar-light .navbar-nav .active > .nav-link,
.navbar-light .navbar-nav .nav-link.active,
.navbar-light .navbar-nav .nav-link.show,
.navbar-light .navbar-nav .show > .nav-link {
  color: var(--white);
  background: var(--primary-color);
}

/* Enhanced carousel */
.carousel-item img {
  width: 100%;
  height: 60vh;
  object-fit: cover;
  border-radius: 0;
}

.carousel-caption {
  text-align: center;
  bottom: 30%;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  border-radius: var(--border-radius);
  padding: 2rem;
  margin: 0 2rem;
}

.carousel-indicators {
  bottom: 20px;
}

.carousel-indicators li {
  height: 6px;
  width: 30px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 3px;
  border: none;
  margin: 0 5px;
  transition: var(--transition);
}

.carousel-indicators li.active {
  width: 50px;
  background: var(--secondary-color);
}

/* Card improvements */
.card {
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

/* Enhanced section designs */
#banners {
  padding: 0;
  position: relative;
}

#banners h4 {
  font-size: clamp(28px, 6vw, 48px);
  padding-bottom: 1rem;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

#banners p {
  font-size: clamp(16px, 3vw, 24px);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

section.banner {
  background: linear-gradient(135deg, var(--primary-color) 0%, #2a4a7b 100%);
  color: var(--white);
  min-height: 20vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 1rem 0;
}

section.banner:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="50" height="50" viewBox="0 0 50 50" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23FAA71B" fill-opacity="0.05"><circle cx="25" cy="25" r="2"/></g></svg>') repeat;
}

/* Banner links styling */
.banner-links .list-group-item a {
  transition: var(--transition);
  text-decoration: none;
  font-size: 14px;
  border-radius: 8px;
  padding: 8px 12px;
  margin: 2px 0;
  display: flex;
  align-items: center;
}

.banner-links .list-group-item a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--secondary-color) !important;
  transform: translateX(-5px);
  backdrop-filter: blur(10px);
  border-radius: 8px;
}

.banner-links .list-group-item a i {
  font-size: 12px;
  transition: var(--transition);
}

.banner-links .list-group-item a:hover i {
  color: var(--secondary-color);
}

.banner-links h5 {
  font-weight: 600;
  border-bottom: 2px solid var(--secondary-color);
  padding-bottom: 8px;
  margin-bottom: 1rem;
  display: inline-block;
}

/* Smooth scroll for anchor links */
.scroll-link {
  scroll-behavior: smooth;
}

/* Modern loans section */
#loans {
  background: linear-gradient(135deg, #f8fafe 0%, #ffffff 30%, #f0f8ff 70%, #e8f4f8 100%);
  background-image: 
    radial-gradient(circle at 20% 20%, rgba(24, 50, 91, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(250, 167, 27, 0.04) 0%, transparent 50%),
    linear-gradient(45deg, transparent 49%, rgba(24, 50, 91, 0.01) 50%, transparent 51%);
  position: relative;
  overflow: hidden;
  padding: 100px 0;
}

#loans:before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(250, 167, 27, 0.06) 0%, rgba(24, 50, 91, 0.02) 50%, transparent 80%);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

#loans:after {
  content: "";
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(24, 50, 91, 0.04) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

.loans__content {
  position: relative;
  z-index: 2;
}

.loans__content p {
  font-size: 18px;
  color: var(--text-dark);
  line-height: 1.8;
  margin-bottom: 2rem;
  font-weight: 400;
}

.loans__image {
  padding: 2rem;
  border-radius: var(--border-radius);
  background: var(--white);
  box-shadow: var(--shadow-medium);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.loans__image:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.loans__image:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-heavy);
}

.loans__button {
  display: inline-flex;
  background: var(--white);
  border: 2px solid var(--primary-color);
  border-radius: 50px;
  padding: 8px;
  align-items: center;
  box-shadow: var(--shadow-medium);
  transition: var(--transition);
  margin-top: 1rem;
}

.loans__button:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-heavy);
}

.loans__button--text {
  padding: 0 24px;
  color: var(--primary-color);
  font-weight: 500;
}
/* Enhanced categories section */
#categories {
  background: linear-gradient(135deg, var(--primary-color) 0%, #2a4a7b 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

#categories:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23FAA71B" fill-opacity="0.03"><circle cx="30" cy="30" r="2"/></g></svg>') repeat;
}

#categories .container {
  position: relative;
  z-index: 2;
}

#categories .title span {
  color: var(--white);
}

#categories .sub-title {
  color: rgba(255, 255, 255, 0.9);
}

.categories__item {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 2.5rem 2rem;
  margin: 15px;
  text-align: center;
  box-shadow: var(--shadow-medium);
  transition: var(--transition);
  border: none;
  position: relative;
  overflow: hidden;
  height: 100%;
}

.categories__item:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
}

.categories__item:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-heavy);
}

.categories__item h4 {
  color: var(--primary-color);
  font-size: 22px;
  margin-bottom: 1.5rem;
  font-weight: 600;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.categories__image {
  margin-bottom: 1.5rem;
  overflow: hidden;
  border-radius: 15px;
}

.categories__item img {
  border-radius: 15px;
  transition: transform 0.4s ease;
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.categories__item:hover img {
  transform: scale(1.1);
}

.categories__content {
  margin-top: 1.5rem;
}

/* Single category full width styling */
.categories__item.single-category {
  max-width: 400px;
  margin: 0 auto;
}

/* Statistics section improvements */
#statistics {
  padding: 5rem 0;
  background: linear-gradient(135deg, #f8cc6e 0%, #ffd700 100%);
  color: var(--primary-color);
  text-align: center;
  position: relative;
}

#statistics:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg width="40" height="40" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23fff" fill-opacity="0.1"><circle cx="20" cy="20" r="1"/></g></svg>') repeat;
}

#statistics .container {
  position: relative;
  z-index: 2;
}

#statistics .sub-title {
  color: var(--primary-color);
  font-weight: 500;
}

.statistics__icon {
  margin-bottom: 2rem;
  font-size: 48px;
}

.statistics__title {
  font-size: clamp(40px, 8vw, 72px);
  line-height: 1;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.statistics__text {
  font-weight: 600;
  font-size: 18px;
}

.statistics-item {
  padding: 2rem 1rem;
  border-radius: var(--border-radius);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  margin-bottom: 2rem;
  transition: var(--transition);
}

.statistics-item:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
}

.statistics-item:nth-child(n + 2) {
  border-right: none;
}
/* Enhanced partners and footer sections */
#partners {
  background: linear-gradient(135deg, var(--light-bg) 0%, var(--white) 100%);
  position: relative;
  overflow: hidden;
}

#partners:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 80% 20%, rgba(250, 167, 27, 0.03) 0%, transparent 50%);
}

.partners__wrapper {
  position: relative;
  z-index: 2;
}

.partners__logo {
  background: var(--white);
  border-radius: 15px;
  padding: 2rem 1.5rem;
  margin: 1rem;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  border: 1px solid rgba(24, 50, 91, 0.08);
  height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.partners__logo:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-medium);
}

.partners__logo img {
  filter: grayscale(0.8);
  transition: filter 0.3s ease;
  max-width: 120px;
  max-height: 80px;
  object-fit: contain;
}

.partners__logo:hover img {
  filter: grayscale(0);
}

.partners__logo h5 {
  color: var(--primary-color);
  margin-top: 1rem;
  font-weight: 500;
  font-size: 14px;
  text-align: center;
  line-height: 1.3;
}

#partners .owl-carousel .owl-dots {
  display: none !important;
}

/* Modern footer design */
#footer {
  background: linear-gradient(135deg, var(--primary-color) 0%, #0f1f3d 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

#footer:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg width="40" height="40" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23FAA71B" fill-opacity="0.02"><rect width="2" height="2" x="19" y="19"/></g></svg>') repeat;
}

#footer .container {
  position: relative;
  z-index: 2;
  padding-top: 3rem;
}

#footer h4 {
  font-weight: 600;
  font-size: 24px;
  margin-bottom: 1.5rem;
  color: var(--white);
  position: relative;
}

#footer h4:after {
  content: "";
  position: absolute;
  bottom: -8px;
  right: 0;
  width: 50px;
  height: 3px;
  background: var(--secondary-color);
  border-radius: 2px;
}

#footer p {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.8;
  font-size: 16px;
}

#footer a {
  color: var(--secondary-color);
  transition: var(--transition);
}

#footer a:hover {
  color: var(--white);
  text-decoration: underline;
}

#footer .bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem 0 1rem;
  margin-top: 3rem;
  text-align: center;
}

/* Enhanced social icons */
.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  background: var(--white);
  border-radius: 50%;
  width: 45px;
  height: 45px;
  margin: 0 8px;
  transition: var(--transition);
  font-size: 18px;
  box-shadow: var(--shadow-light);
}

.social a:hover {
  background: var(--secondary-color);
  color: var(--white);
  transform: translateY(-3px) scale(1.1);
  box-shadow: var(--shadow-medium);
}
/* Enhanced page layouts and components */
#static-page {
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--light-bg) 0%, var(--white) 100%);
}

#static-page .wrapper {
  color: var(--text-dark);
  border-radius: var(--border-radius);
  overflow: hidden;
  margin-bottom: 2rem;
  border: 1px solid rgba(24, 50, 91, 0.1);
  background: var(--white);
  box-shadow: var(--shadow-light);
  transition: var(--transition);
}

#static-page .wrapper:hover {
  box-shadow: var(--shadow-medium);
  transform: translateY(-2px);
}

#static-page .content {
  margin: 2rem;
  text-align: center;
  font-size: 18px;
  line-height: 1.7;
}

/* Enhanced rating system */
.rating {
  width: 300px;
  margin: 0 auto;
  font-size: 40px;
  overflow: hidden;
  text-align: center;
  padding: 1rem;
}

.rating input {
  float: right;
  opacity: 0;
  position: absolute;
  pointer-events: none;
}

.rating label {
  float: center;
  color: #ddd;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  padding: 0 5px;
}

.rating label:hover ~ label,
.rating input:focus ~ label,
.rating input:checked ~ label,
.rating label:hover {
  color: var(--secondary-color);
  transform: scale(1.1);
}

/* Enhanced modal styling */
.modal .modal-dialog .modal-content {
  border-radius: var(--border-radius);
  border: none;
  box-shadow: var(--shadow-heavy);
  overflow: hidden;
}

.modal .modal-dialog .modal-content .modal-header {
  color: var(--white);
  background: linear-gradient(135deg, var(--primary-color), #2a4a7b);
  border-bottom: none;
  padding: 1.5rem 2rem;
}

.modal .modal-dialog .modal-content .modal-header .modal-title{
      color: var(--white);
}
.modal .modal-dialog .modal-content .modal-body {
  padding: 2rem;
}

.modal .modal-dialog .modal-content .modal-footer {
  border-top: 1px solid #eee;
  padding: 1rem 2rem;
}

/* Accessibility improvements */
:focus {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
}

/* Loading animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Utility classes */
.text-gradient {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass-effect {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
/* Enhanced responsive design */
@media screen and (max-width: 768px) {
  :root {
    --border-radius: 15px;
  }

  #header {
    padding: 0.25rem 0;
  }

  #header:before {
    height: 2px;
  }

  .navbar-light .navbar-toggler {
    border: none;
    padding: 0.5rem;
    border-radius: 8px;
    background: rgba(24, 50, 91, 0.1);
  }

  .navbar-nav {
    padding: 1rem;
    background: var(--white);
    border-radius: var(--border-radius);
    margin-top: 1rem;
    box-shadow: var(--shadow-light);
  }

  .navbar-nav a {
    display: block;
    margin-bottom: 8px;
    padding: 12px 16px;
    border-radius: 8px;
    transition: var(--transition);
  }

  .navbar-nav a:hover {
    background: var(--light-bg);
  }

  #banners h4 {
    font-size: clamp(24px, 8vw, 40px);
    margin-bottom: 1rem;
  }

  #banners p {
    font-size: clamp(14px, 4vw, 18px);
  }

  .carousel-caption {
    position: static;
    color: var(--primary-color);
    padding: 2rem 1rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    margin: 1rem;
    border-radius: var(--border-radius);
  }

  .carousel-indicators {
    display: none;
  }

  .btn {
    padding: 12px 24px;
    font-size: 14px;
  }

  .btn-light {
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
  }

  .loans__image {
    margin-top: 2rem;
  }

  .loans__button {
    width: 100%;
    justify-content: center;
    margin-top: 1.5rem;
  }

  .categories__item {
    margin: 10px 5px;
    padding: 1.5rem;
  }

  .categories__item h4 {
    font-size: 20px;
    min-height: auto;
  }

  .categories__item img {
    height: 150px;
  }

  .statistics-item {
    margin-bottom: 2rem;
    padding: 1.5rem 1rem;
  }

  .statistics-item:nth-child(n + 2) {
    border-right: none;
    border-top: 2px solid rgba(24, 50, 91, 0.2);
    margin-top: 1rem;
    padding-top: 2rem;
  }

  .statistics__title {
    font-size: clamp(32px, 10vw, 48px);
  }

  .partners__wrapper {
    text-align: center;
  }

  .partners__logo {
    margin: 0.5rem;
    padding: 1.5rem 1rem;
    height: 150px;
  }

  .partners__logo img {
    max-width: 100px;
    max-height: 60px;
  }

  .partners__logo h5 {
    font-size: 12px;
  }

  #footer {
    text-align: center;
  }

  #footer h4 {
    margin-top: 2rem;
    text-align: center;
  }

  #footer h4:after {
    left: 50%;
    transform: translateX(-50%);
  }

  .social {
    margin: 1rem 0;
  }

  .social a {
    width: 40px;
    height: 40px;
    margin: 0 6px;
  }

  .title {
    font-size: clamp(24px, 6vw, 36px);
    margin-bottom: 2rem;
  }

  .sub-title {
    font-size: 16px;
    margin-bottom: 2rem;
  }

  section {
    padding: 3rem 0;
  }

  .rating {
    font-size: 32px;
    width: 250px;
  }

  .modal .modal-dialog {
    margin: 1rem;
  }

  .modal .modal-dialog .modal-content .modal-header,
  .modal .modal-dialog .modal-content .modal-body {
    padding: 1.5rem;
  }
}

/* Large screens optimization */
@media screen and (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }

  .title {
    font-size: clamp(42px, 4vw, 56px);
  }

  .categories__item {
    padding: 3rem 2.5rem;
  }

  .categories__item img {
    height: 250px;
  }
}

/* Print styles */
@media print {
  * {
    background: transparent !important;
    box-shadow: none !important;
    color: black !important;
  }

  .btn,
  .navbar,
  #footer,
  .carousel-indicators {
    display: none !important;
  }
}