.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);
}
.header {
  background-color: #2F3C69 !important;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
}

        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;
        }


        .nav-link-wrapper:hover .dropdown {
            display: block;
        }

        .ck-content p {
            margin-bottom: 1rem;
            line-height: 1.8;
            font-size: 17px;
        }

        .news-content blockquote {
            position: relative;
            padding: 0.5rem 1rem;
            margin: 1rem 0;
            direction: rtl;
            text-align: right;
            font-style: italic;
            border: none;
            background: none;
            color: inherit;
        }

        .news-content blockquote::before {
            content: "❝";
        }

        .news-content blockquote::after {
            content: "❝";
        }



        .ck-content ul,
        .ck-content ol {
            padding-right: 1.5rem;
            margin: 20px 0;
        }

        .ck-content li {
            margin-bottom: 0.5rem;
        }
 /* قائمة التنقل */
        .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;
        }

        .header {
            background-color: #0A2C38;
        }

        .about-section {
            margin-top: 120px;
            padding-top: 30px;
        }

        @media (max-width: 768px) {
            .about-section {
                margin-top: 170px;
                padding-top: 50px;
            }
        }

        @media (max-width: 480px) {
            .about-section {
                margin-top: 210px;
                padding-top: 60px;
            }
        }

        .montserrat-medium-text {
            font-family: 'Montserrat-Arabic-Medium', sans-serif;
            font-size: 17px;
            line-height: 1.9;
            color: #333;
            margin-bottom: 1rem;

        }



        .detail-section {
            background-color: #faf9f6;
            margin-top: 120px;
        }

        @media (max-width: 768px) {
            .detail-section {
                margin-top: 170px;
                padding-top: 30px;
            }
        }

        @media (max-width: 480px) {
            .detail-section {
                margin-top: 200px;
                padding-top: 20px;
            }
        }

        .detail-title {
            font-family: 'Montserrat-Arabic-Bold', sans-serif;
            font-size: 28px;
            color: #B1872F;

        }



        .heading-line {
            margin-right: 0;
        }

        @media (max-width: 992px) {
            .detail-image {
                max-height: 350px;
                margin-top: 30px;
            }
        }

        .thumb-gallery {
            padding-top: 10px;
            flex-wrap: wrap;
        }

        .thumb-item {
            width: 80px;
            height: 80px;
            object-fit: cover;
            border-radius: 12px;
            border: 2px solid #ddd;
            transition: border-color 0.3s ease, transform 0.3s ease;
            cursor: pointer;
        }

        .thumb-item:hover {
            border-color: #2c3e50;
            transform: scale(1.05);
        }

        .detail-wrapper {
            display: flex;
            flex-wrap: wrap;
        }

        .images-side {
            flex: 1 1 300px;
        }

        .text-side {
            flex: 1 1 300px;
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
            direction: rtl;
            text-align: right;
        }

        .related-opportunities {
            background-color: #faf9f6;
            padding: 20px;
            border-radius: 12px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
        }

        .related-opportunities .heading-line {
            width: 80px;
            height: 3px;
            background-color: #B1872F;
        }

        @media (max-width: 992px) {
            .detail-wrapper {
                flex-direction: column;
            }
        }



        .custom-azer {
            font-family: '29LT-Azer-Bold (1)', sans-serif;
            font-size: 38px;
            font-weight: 900;
        }

        .custom-azer1 {
            font-family: '29LT-Azer-Bold (1)', sans-serif;
            font-size: 25px;
            font-weight: 900;
        }
