/* الخطوط المخصصة */
@font-face {
  font-family: "Montserrat-Arabic-Bold";
  src: url("../fonts/Montserrat-Arabic-Bold.ttf") format("truetype");
  font-weight: bold;
}

@font-face {
  font-family: "Montserrat-Arabic-Light";
  src: url("../fonts/Montserrat-Arabic-Light.ttf") format("truetype");
  font-weight: normal;
}

@font-face {
  font-family: "Montserrat-Arabic-Medium";
  src: url("../fonts/Montserrat-Arabic-Medium.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}
.header {
  background-color: #2F3C69 !important;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
}

@font-face {
  font-family: "Montserrat-Arabic-ExtraLight";
  src: url("../fonts/Montserrat-Arabic-ExtraLight.ttf") format("truetype");
  font-style: normal;
  font-weight: 900;
}

@font-face {
  font-family: "Foda Naskh";
  src: url("../fonts/29LT-Azer-Bold (1).otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}

/* الأنماط العامة */
body {
  font-family: "Montserrat-Arabic-Light", sans-serif;
  background-color: #faf9f6;
  color: #1e1e1e;
  line-height: 1.8;
  font-size: 17px;
}

h1,
h2,
h3,
.section-title {
  font-family: "Montserrat-Arabic-Bold", sans-serif;
  color: #2c3e50;
  margin-bottom: 1rem;
}

/* الهيدر */
.header {
  background-color: #2c3e50;
  padding: 15px 0;
}

.header .logo {
  color: white;
  font-size: 28px;
  font-family: "Montserrat-Arabic-Bold";
}

/* قائمة التنقل */
.nav-menu {
  display: flex;
  gap: 30px;
  align-items: center;
  position: relative;
}

.nav-link-wrapper {
  position: relative;
}

.nav-link {
  display: inline-block;
  transition: transform 0.3s ease;
}

.nav-link:hover {
  transform: scale(1.1);
}

.nav-icon {
  width: 60px;
  height: auto;
  filter: grayscale(100%) brightness(0.7);
  transition: filter 0.3s ease, border 0.3s ease, padding 0.3s ease;
}

/* عند التحويم أو النشط */
.nav-link.active .nav-icon,
.nav-link:hover .nav-icon {
  filter: none;
}

/* عند فتح القائمة المنسدلة - تمييز الأيقونة */
.nav-link-wrapper:hover .nav-link .nav-icon {
  filter: none;
  border: 2px solid #fcfcfc;
  border-radius: 8px;
  padding: 2px;
}

/* القائمة المنسدلة */
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 50%;
  transform: translateX(50%);
  padding: 12px 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  list-style: none;
  z-index: 1000;
  min-width: 180px;
  text-align: center;
  font-family: "Foda Naskh", "Tajawal", sans-serif;
  background-color: #f9f5ee;
  border: 1px solid #2c3e50;
  backdrop-filter: blur(6px);
}

/* العناصر داخل القائمة */
.dropdown li {
  margin: 8px 0;
}

.dropdown li a {
  color: #0a2c38;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s ease, background-color 0.3s ease;
  display: block;
  padding: 4px 8px;
  border-radius: 6px;
}

/* عند تحويم الروابط داخل القائمة */
.dropdown li a:hover {
  color: #f8f8f8;
  font-weight: bold;
  background-color: #2c3e50;
}

/* إظهار القائمة عند التحويم */
.nav-link-wrapper:hover .dropdown {
  display: block;
}

/* القائمة المنسدلة عند scrolled header */
.header.scrolled .nav-link-wrapper .dropdown {
  background-color: #ffffff;
}

/* قسم الاقتراحات */
.suggestion-section {
  max-width: 600px;
  margin: 140px auto 60px;
  padding: 40px 30px;
  background-color: #faf9f6;
  border: 2px solid #2c3e50;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  text-align: right;
}

.suggestion-section h2 {
  font-family: "29LT-Azer-Bold (1)", "Tajawal", sans-serif;
  color: #0a2c38;
  font-size: 26px;
  margin-bottom: 30px;
  text-align: center;
}

.suggestion-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.suggestion-form label {
  font-size: 16px;
  font-weight: bold;
  color: #2c3e50;
}

.suggestion-form input,
.suggestion-form textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid #2c3e50;
  border-radius: 12px;
  font-size: 16px;
  background-color: #faf9f6;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.suggestion-form input:focus,
.suggestion-form textarea:focus {
  border-color: #0a2c38;
  box-shadow: 0 0 5px rgba(10, 44, 56, 0.2);
  outline: none;
}

.suggestion-form button {
  padding: 14px 24px;
  background-color: #2c3e50;
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 17px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 100%;
}

.suggestion-form button:hover {
  background-color: #0a2c38;
}

/* تنسيق النموذج */
.suggestion-section,
.suggestion-section h2,
.suggestion-form label,
.suggestion-form input,
.suggestion-form textarea,
.suggestion-form button {
  font-family: "Montserrat-Arabic-Medium", sans-serif;
}

.custom-success-alert {
  background-color: #2c3e50;
  color: #faf9f6;
  border-radius: 12px;
  padding: 15px 20px;
  font-size: 16px;
  text-align: center;
  border: 1px solid #0a2c38;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

/* قسم من نحن */
.about-section {
  margin-top: 120px;
  padding: 60px 20px;
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

.about-image-side {
  flex: 1 1 400px;
  max-width: 500px;
}

.about-image-side img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
}

.about-text-side {
  flex: 1 1 400px;
  max-width: 600px;
  text-align: right;
}

.about-text-side h2 {
  font-family: "Montserrat-Arabic-Bold", sans-serif;
  color: #2c3e50;
  margin-bottom: 20px;
}

.about-text-side p {
  font-family: "Montserrat-Arabic-Light", sans-serif;
  font-size: 17px;
  line-height: 1.8;
  color: #1e1e1e;
}

.azer-bold-title {
  font-family: "Montserrat-Arabic-Bold", sans-serif;
  font-weight: bold;
  font-size: 28px;
  line-height: 1.4;
  color: #0a2c38;
  text-align: right;
}

/* الفوتر */
.footer {
  background-color: #faf9f6;
  padding: 40px 0 0;
  margin-top: 0;
  padding-top: 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  direction: rtl;
  gap: 50px;
  padding-top: 30px;
  padding-bottom: 20px;
}

.footer-logo {
  text-align: right;
}

.footer-contact {
  text-align: left;
  margin-inline-start: auto;
  padding-left: 60px;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-section img:first-child {
  max-height: 65px;
}

.footer-logo-img {
  max-width: 120px;
  max-height: 75px;
  margin-bottom: 10px;
}

.footer-description {
  font-size: 15px;
  color: #2c3e50;
  line-height: 1.8;
  text-align: justify;
  font-family: "Montserrat-Arabic-Medium", sans-serif;
}

.contact-item {
  margin-bottom: 10px;
  font-size: 15px;
  color: #2c3e50;
}

.contact-item i {
  margin-left: 8px;
  color: #0a2c38;
}

.copyright {
  margin-top: 15px;
  font-size: 14px;
  color: #444;
}

.footer-pattern {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  padding: 0;
  background-color: #fefdfb;
}

.footer-pattern img.pattern-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 0;
  padding: 0;
}

/* النشرة الإخبارية */
.newsletter-section {
  margin-top: 40px;
}

.newsletter-form {
  margin-top: 15px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.newsletter-input {
  padding: 12px 16px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  flex: 1 1 250px;
  max-width: 300px;
}

.newsletter-button {
  padding: 12px 24px;
  background-color: #2c2c2b02;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.newsletter-button:hover {
  background-color: #836a34;
}

/* الاستجابة للشاشات الصغيرة */
@media (max-width: 768px) {
  .suggestion-section {
    margin-top: 160px;
    padding: 30px 20px;
  }

  .about-section {
    margin-top: 170px;
    padding-top: 50px;
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-logo,
  .footer-contact {
    text-align: center;
    margin: 0;
    padding-left: 0;
  }

  .contact-item i {
    margin-left: 5px;
  }
}

@media (max-width: 480px) {
  .about-section {
    margin-top: 210px;
    padding-top: 60px;
  }
}
.nav-link {
  position: relative;
  color: white;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;   /* مسافة تحت النص */
  right: 0;
  left: 0;
  height: 2px;
  background-color: white;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}
