
    
        /* المتغيرات والألوان */
        :root {
            --purple: #6E2BFB;
            --blue: #3358FD;
            --green: #09c7ad;
            --dark: #1a1a2e;
            --light: #f8f9fa;
            --gray: #6c757d;
            --transition: all 0.3s ease;
            --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            --radius: 12px;
        }
        /* المتغيرات والألوان */
        :root {
      --diwan-1:#701211; /* primary */
      --diwan-2:#982B2A; /* brand */
      --diwan-3:#FFE3E0; /* base-rose */
      --diwan-4:#410B13; /* ink */
      --diwan-5:#280000; /* base-deep */
      --bg:#0f0a0a;       /* canvas */
      --muted:#caa7a3;    /* secondary text */
      --radius:18px;
      --shadow:0 24px 80px rgba(0,0,0,.35);
      --glass:rgba(255,255,255,.06);
        }
        /* الخطوط */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: "IBM Plex Sans Arabic", sans-serif;
            font-weight: 400;
            font-style: normal;
          
        }

        *::selection{
            background-color: var(--diwan-3);
            color: var(--diwan-1);
        }
        html {
            scroll-behavior: smooth;
        }

        body {
            background-color: var(--diwan-4);
            color: var(--diwan-5);
            line-height: 1.6;
            overflow-x: hidden;
            
        }

        /* شاشة التحميل */
        #loading-screen {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, var(--diwan-1));
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            z-index: 9999;
            transition: opacity 0.5s ease;
        }

        .spinner {
            width: 70px;
            height: 70px;
            border: 5px solid rgba(255, 255, 255, 0.3);
            border-radius: 50%;
            border-top-color: white;
            animation: spin 1s ease-in-out infinite;
            margin-bottom: 20px;
        }

        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        #loading-screen h2 {
            color: white;
            font-size: 1.8rem;
            margin-bottom: 10px;
        }

        #loading-screen p {
            color: rgba(255, 255, 255, 0.8);
            font-size: 1.1rem;
        }

        /* صفحة النسخة الأولية */
        .preview-page {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8);
            z-index: 9998;
            justify-content: center;
            align-items: center;
        }

        .preview-content {
            background: white;
            border-radius: var(--radius);
            padding: 40px;
            max-width: 500px;
            width: 90%;
            text-align: center;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
            animation: modalFadeIn 0.3s ease;
        }

        @keyframes modalFadeIn {
            from { opacity: 0; transform: translateY(-30px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .preview-content h2 {
            color: var(--diwan-2);
            font-size: 2rem;
            margin-bottom: 20px;
        }

        .preview-content p {
            color: var(--diwan-4);
            font-size: 1.1rem;
            margin-bottom: 30px;
            line-height: 1.6;
        }

        .container {
            width: 90%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 15px;
        }


        section {
            padding: 100px 0;
        }

        .section-header {
            text-align: center;
            margin-bottom: 60px;
        }

        .section-header h2 {
            font-size: 2.5rem;
            color: var(--diwan-3);
            margin-bottom: 15px;
            position: relative;
            display: inline-block;
        }

        .section-header h2::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 4px;
            background: var(--diwan-3);
            border-radius: 2px;
        } 

        .section-header p {
            color: var(--diwan-2);
            max-width: 600px;
            margin: 10px auto 0;
            font-size: 1.2rem;
            
        }

        .btn {
            display: inline-block;
            padding: 12px 30px;
            border-radius: 50px;
            text-decoration: none;
            font-weight: 600;
            transition: var(--transition);
            border: none;
            cursor: pointer;
            font-size: 1rem;
        }

        .btn-primary {
            background: var(--diwan-2);
            color: white;
            /* box-shadow: 0 4px 15px rgba(251, 43, 43, 0.3); */
        }

        .btn-primary:hover {
            /* transform: translateY(-3px); */
            background: var(--diwan-1);
            /* box-shadow: 0 6px 20px rgba(251, 43, 43, 0.4); */
            
        }
        .btn-primaryy {
            background: var(--diwan-3);
            color: var(--diwan-1);

            /* box-shadow: 0 4px 15px rgba(251, 43, 43, 0.3); */
        }
        .btn-primaryy:hover {
            /* transform: translateY(-3px); */
            background: var(--diwan-1);
            color: var(--diwan-3);
            /* box-shadow: 0 6px 20px rgba(251, 43, 43, 0.4); */
            
        }
     #sub{
            background: var(--diwan-2);
            color: var(--diwan-3);
        }
        #sub:hover{
            background: var(--diwan-1);
            color: var(--diwan-3);
        }

     #sub2{
            background: var(--diwan-2);
            color: var(--diwan-3);
        }
        #sub2:hover{
            background: var(--diwan-1);
            color: var(--diwan-3);
        }



        /* الهيدر */
        header {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            z-index: 1000;
            /* background: var(--diwan-3); */
            backdrop-filter: blur(10px);
            box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
            transition: var(--transition);
        }

        .navbar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 0;
        }

        .logo {
            /* display: flex; */
            /* align-items: flex-start; */

        /* transform: translateX(60%); */
        }

        .logo i {
            font-size: 1.8rem;
            color: var(--purple);
            margin-left: 10px;
        }

        .nav-links {
            display: flex;
            list-style: none;
        }

        /* .nav-links li {
            margin: 0 15px;
        } */

        .nav-links a {
            text-decoration: none;
            color: var(--diwan-3);
            font-weight: 600;
            font-size: 1rem;
            transition: var(--transition);
            position: relative;
            cursor: pointer;
            width: 100%;
            right: 60px;
        }

        .navLinks a::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 0;
            height: 2px;
            background: linear-gradient(to right, var(--diwan-1));
            transition: var(--transition);
            cursor: pointer;
        }

        .navLinks a:hover {
            color: var(--diwan-1);
        }

        .navLinks{
            transform: translateY(9px);
        }
        .nav-links a:hover::after {
            width: 100%;
        }

        .header-actions {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .lang-switcher {
            background: transparent;
            border: 1px solid #ddd;
            border-radius: 20px;
            padding: 5px 15px;
            cursor: pointer;
            transition: var(--transition);
            font-weight: 600;
        }

        .lang-switcher:hover {
            background: var(--light);
        }

        .mobile-menu {
            display: none;
            font-size: 1.5rem;
            cursor: pointer;
        }

        

   /* Hero Section Specific Styles (New) */
        .hero-section {
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding-top: 80px; /* Header height */
            position: relative;
            overflow: hidden;
            background-color: var(--diwan-5);
        }

        .hero-content {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 4rem;
            width: 100%;
            /* margin-top: 300px; */
        }

        .hero-text {
            flex: 1;
            text-align: right;
        }

        .hero-text h1 {
            font-size: 3.5rem;
            /* font-weight: bold; */
            line-height: 1.2;
            margin-bottom: 1.5rem;
            color: var(--diwan-3);
            margin-bottom: 20px;
            margin-top: 60px;
        }
        .hero-text h1 span{
            font-weight: bold;
            line-height: 2;
        }
        .hero-text span {
                color: var(--diwan-2);
                margin-top: 100px;
                font-weight: bold;
            }

        .hero-text p {
            font-size: 1.25rem;
            color: rgba(255, 227, 224, 0.8);
            margin-bottom: 2.5rem;
            line-height: 1.6;
        }

        .hero-btns {
            display: flex;
            gap: 1rem;
        }

        .hero-image {
            flex: 1;
            text-align: center;
            position: relative;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .hero-image img {
            max-width: 100%;
            height: auto;
            border-radius: 20px;
            box-shadow: 0 20px 50px rgba(0,0,0,0.3);
            object-fit: cover;
            max-height: 500px; /* Limit height to prevent it from being too large */
        }

      

        .btn-outline {
            background: transparent;
            border: 2px solid var(--diwan-2);
            /* background-color: var(--diwan-3); */
            color: var(--diwan-3);
        }

        .btn-outline:hover {
            background: var(--diwan-2);
             background-color: var(--diwan-2);
            color: white;
        }


        /* قسم الفرق */
        .teams {
            /* background-color: white; */
            background: var(--diwan-5);
        }

        .teams-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 30px;
            
        }

        .team-card {
            background: var(--diwan-5);
            border-radius: var(--radius);
            overflow: hidden;
            box-shadow: var(--shadow);
            transition: var(--transition);
            text-align: center;
            padding: 30px 20px;
            position: relative;
            z-index: 1;
            cursor: pointer;
            /* height: 400px; */
        }

        .team-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 5px;
            background: linear-gradient(to right, var(--diwan-1));
        }


        .team-card:hover {
            /* transform: translateY(-10px);
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15); */
        }

        .team-icon {
            width: 80px;
            height: 80px;
            margin: 0 auto 20px;
            background: var(--diwan-2);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.8rem;
        }
        .team-iconn {
            width: 80px;
            height: 80px;
            margin: 0 auto 20px;
            background: wheat;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.8rem;
        }

        .team-card h3 {
            font-size: 1.5rem;
            margin-bottom: 10px;
            color: var(--diwan-3);
        }

        .team-card p {
            color: var(--gray);
            margin-bottom: 20px;
        }

        /* قسم الإنجازات */
        .achievements {
            background: linear-gradient(135deg, rgba(110, 43, 251, 0.05), rgba(9, 199, 173, 0.05));
        }

        .achievements-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 30px;
        }

        .achievement-card {
            background: white;
            border-radius: var(--radius);
            padding: 30px;
            box-shadow: var(--shadow);
            transition: var(--transition);
            text-align: center;
            position: relative;
            overflow: hidden;
        }

        .achievement-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
        }

        .achievement-icon {
            width: 70px;
            height: 70px;
            margin: 0 auto 20px;
            background: linear-gradient(135deg, var(--purple), var(--blue));
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.5rem;
        }

        .achievement-card h3 {
            font-size: 1.4rem;
            margin-bottom: 15px;
            color: var(--dark);
        }

        .achievement-card p {
            color: var(--gray);
        }

        /* قسم الآراء */


       

        /* قسم الشراكات */
        .partners {
            background: var(--diwan-3);
        }

        .partners-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 30px;
        }

        .partner-card {
            /* background: #b4ddb4; */
            background: var(--diwan-3);
            border-radius: var(--radius);
            padding: 25px;
            box-shadow: var(--shadow);
            transition: var(--transition);
            text-align: center;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }

        .partner-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
        }

        .partner-logo {
            width: 220px;
            height: 120px;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 8px;
            overflow: hidden;
        }

        .partner-logo img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            transform: translateY(9px);
        }

        .partner-card h3 {
            font-size: 1.1rem;
            margin-bottom: 10px;
            color: var(--dark);
        }

        .partner-type {
            display: inline-block;
            padding: 5px 15px;
            background: linear-gradient(135deg, var(--diwan-5), var(--diwan-2));
            color: white;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 600;
        }

        /* قسم ركن الإبداع */
        .gallery {
            background-color: var(--diwan-4);
        }
        .galleryy {
            background-color: var(--diwan-5);
        }

        .gallery-filter {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            margin-bottom: 40px;
            gap: 10px;
        }

        .filter-btn {
            padding: 8px 20px;
            background: white;
            border: 1px solid #ddd;
            border-radius: 30px;
            cursor: pointer;
            transition: var(--transition);
            font-weight: 600;
        }

        .filter-btn.active, .filter-btn:hover {
            background: linear-gradient(135deg, var(--purple), var(--blue));
            color: white;
            border-color: transparent;
        }

        .gallery-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 20px;
        }

        .gallery-item {
            border-radius: var(--radius);
            overflow: hidden;
            position: relative;
            height: 250px;
            box-shadow: var(--shadow);
            transition: var(--transition);
            cursor: pointer;
        }

        .gallery-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
        }

        .gallery-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: var(--transition);
              /* image-rendering: auto;  */
        }

        .gallery-item:hover img {
            transform: scale(1.05);
        }

        .gallery-overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            padding: 20px;
            background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
            color: white;
            transform: translateY(10px);
            opacity: 0;
            transition: var(--transition);
        }

        .gallery-item:hover .gallery-overlay {
            transform: translateY(0);
            opacity: 1;
        }

        .gallery-title {
            font-size: 1.2rem;
            margin-bottom: 5px;
        }

        .gallery-date {
            font-size: 0.9rem;
            opacity: 0.8;
        }

        /* معرض الصور المنبثق */
        .gallery-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.9);
            z-index: 3000;
            overflow: hidden;
        }

        .gallery-modal-content {
            position: relative;
            width: 90%;
            max-width: 1000px;
            margin: 50px auto;
            background: white;
            border-radius: var(--radius);
            overflow: hidden;
            animation: modalFadeIn 0.3s ease;
        }

        .gallery-modal-header {
            padding: 20px 30px;
            background: var(--diwan-1);
            color: white;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .gallery-modal-header h3 {
            margin: 0;
            font-size: 1.5rem;
        }

        .close-gallery-modal {
            background: none;
            border: none;
            color: white;
            font-size: 1.5rem;
            cursor: pointer;
            transition: var(--transition);
        }

        .close-gallery-modal:hover {
            color: var(--green);
        }

        .gallery-modal-body {
            padding: 30px;
            max-height: 70vh;
            overflow-y: auto;
        }

        .event-media-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 20px;
            margin-bottom: 30px;
        }

        .event-media-item {
            border-radius: var(--radius);
            overflow: hidden;
            height: 200px;
            position: relative;
        }

        .event-media-item img, .event-media-item video {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .event-description {
            margin-bottom: 30px;
            line-height: 1.8;
            color: var(--gray);
        }

        .event-details {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
            margin-bottom: 30px;
        }

        .event-detail-card {
            background: var(--diwan-3);
            padding: 20px;
            border-radius: var(--radius);
            text-align: center;
        }

        .event-detail-card i {
            font-size: 2rem;
            color: var(--diwan-2);
            margin-bottom: 10px;
        }

        .event-detail-card h4 {
            margin-bottom: 5px;
            color: var(--dark);
        }

        .event-detail-card p {
            color: var(--gray);
            font-size: 0.9rem;
        }

        /* قسم التواصل */
    .contact {
            background: var(--diwan-4);
        }

           /*  .contact-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 40px;
        }

        .contact-info {
            display: flex;
            flex-direction: column;
            gap: 25px;
        }

        .contact-card {
            display: flex;
            align-items: flex-start;
            gap: 15px;
        }

        .contact-icon {
            width: 50px;
            height: 50px;
            background: linear-gradient(135deg, var(--purple), var(--blue));
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.2rem;
            flex-shrink: 0;
        }

        .contact-details h3 {
            font-size: 1.2rem;
            margin-bottom: 5px;
            color: var(--dark);
        }

        .contact-details p {
            color: var(--gray);
        }

        .contact-form {
            background: var(--diwan-1);
            border-radius: var(--radius);
            padding: 30px;
            /* box-shadow: var(--shadow); 
        }

        .form-group {
            margin-bottom: 20px;
        }

        .form-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            color: var(--diwan-3);
        }

        .form-control {
            width: 100%;
            padding: 12px 15px;
            border: 3px solid #ddd;
            border-radius: 8px;
            font-size: 1rem;
            transition: var(--transition);
            color: var(--diwan-4);
        }

        .form-control:focus {
            border-color: var(--diwan-2);
            outline: none;
            box-shadow: 0 0 0 3px rgba(110, 43, 251, 0.1);
        }

        textarea.form-control {
            min-height: 150px;
            resize: vertical;
        }*/

        /* رسائل النماذج */
        .form-message {
            padding: 15px;
            border-radius: var(--radius);
            margin-top: 20px;
            text-align: center;
            display: none;
        }

        .form-message.success {
            background: #d4edda;
            color: #155724;
            border: 1px solid #c3e6cb;
        }

        .form-message.error {
            background: #f8d7da;
            color: #721c24;
            border: 1px solid #f5c6cb;
        }

        .form-message.loading {
            background: #d1ecf1;
            color: #0c5460;
            border: 1px solid #bee5eb;
        }

        .loading-spinner {
            display: inline-block;
            width: 20px;
            height: 20px;
            border: 3px solid rgba(255, 255, 255, 0.3);
            border-radius: 50%;
            border-top-color: #fff;
            animation: spin 1s ease-in-out infinite;
            margin-right: 10px;
        } 

        
        /* النشرة البريدية */
        .newsletter-section {
            background: linear-gradient(135deg, var(--diwan-5));
            color: white;
            padding: 80px 0;
            text-align: center;
        }

        .newsletter-container {
            max-width: 600px;
            margin: 0 auto;
        }

        .newsletter-section h2 {
            font-size: 2.2rem;
            margin-bottom: 15px;
        }

        .newsletter-section p {
            font-size: 1.1rem;
            margin-bottom: 30px;
            opacity: 0.9;
        }

        .newsletter-form {
            display: flex;
            gap: 10px;
        }

        .newsletter-form input {
            flex: 1;
            padding: 12px 15px;
            border: none;
            border-radius: 8px;
            font-size: 1rem;
        }
        
/* =========================
   Footer
========================= */

footer {
  background: linear-gradient(135deg, var(--diwan-4));
  color: white;
  padding: 70px 0 20px;
}

.footer-content{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20px, 1fr));
  gap: 40px;
  /* margin-bottom: 50px; */
}

.footer-col h3 {
  font-size: 1.3rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 50px;
  height: 3px;
  background: var(--diwan-1);
}

/* =========================
   Links (Desktop default)
========================= */

.footer-links{
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li{
  margin-bottom: 12px;
}

.footer-links a{
  color: #b0b0b0;
  text-decoration: none;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links a:hover{
  color: #fff;
  transform: translateX(5px);
}

.footer-links a i{
  font-size: .8rem;
}

/* =========================
   Social
========================= */

.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 15px;
  margin-top: 20px;
  max-width: 160px;
  margin-right: 0px;
  margin-left: auto;
  
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: var(--transition);
  flex: 0 1 calc(33.33% - 15px);
  box-sizing: border-box;
  
}

.social-icon:hover {
  background: linear-gradient(135deg, var(--diwan-2));
  transform: translateY(-3px);
}

.copyright {
    margin-top: 40px;
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #b0b0b0;
  font-size: 0.9rem;
}

@media (min-width: 992px) {
  .footer-content{
    gap: 200px;
  }
}

/* =========================
   Mobile Accordion (Only mobile)
   - no background
   - smooth open/close
   - arrow rotates
========================= */

/* افتراضيًا: accordion مخفي، desktop links ظاهرة */
.footer-acc--mobile{ display: none; }
.footer-links--desktop{ display: block; }
  #fh{
    margin-right: 30px;
  }

/* =========================
   Footer – Mobile centered
========================= */
@media (max-width: 576px) {

  footer{
    text-align: center;
  }

  .footer-content{
    grid-template-columns: 1fr;
    gap: 30px;
    justify-items: center;
  }

  .footer-col{
    text-align: center;
    width: 100%;
    max-width: 380px;
  }

  /* العناوين */
  .footer-col h3{
    text-align: center;
  }
  .footer-col h3::after{
    right: 50%;
    transform: translateX(50%);
  }

  /* اللوقوهات بالمنتصف */
  .footer-logos{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .footer-logos img{
    display: block;
    margin: 0 auto;
  }

  /* السوشيال بالمنتصف */
  .social-links{
    margin: 20px auto 0;
    justify-content: center;
    max-width: 220px;
    /* transform: translateX(10px); */
  }

  /* زر تواصل */
  #f3 a{
    display: flex;
    justify-content: center;
    /* width: 132px; */
    
  }

  /* ✅ على الجوال: نخفي قائمة الديسكتوب ونظهر الـ accordion */
  .footer-links--desktop{ display: none; }
  .footer-acc--mobile{ display: block; }

  /* عنوان القائمة + السهم (بدون خلفية/حدود) */
  .footer-acc{
    margin-top: 6px;
  }

  .acc-item{
    margin-bottom: 10px;
  }

  .acc-trigger{
    width: 100%;
    background: transparent;
    border: 0;
    color: #fff;
    padding: 12px 0;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center; /* ✅ العنوان بالمنتصف */
    gap: 10px;

    font: inherit;
  }

  .acc-title{
    font-size: 1.05rem;
  }

  .acc-icon{
    transition: transform .25s ease;
  }

  /* عند الفتح */
  .acc-item.is-open .acc-icon{
    transform: rotate(180deg);
  }

  /* Panel animation */
  .acc-panel{
    overflow: hidden;
    max-height: 0;
    transition: max-height .35s ease;
  }

  /* ✅ نصوص الروابط يمين فقط */
  .footer-links--mobile a{
    justify-content: flex-start; /* يمين/بداية السطر في RTL */
    text-align: right;
    width: 100%;
  }

  /* شكل بسيط للمسافات داخل القائمة */
  .footer-links--mobile{
    padding: 6px 0 12px;
  }
  .footer-links--mobile li{
    margin-bottom: 10px;
  }

  /* مسافة قبل آخر عمود */
  .footer-col:last-child{
    margin-top: 20px;
  }

    #fh{
    margin-inline-end: 0;
    margin-right: 0;
  }

}

/* ===== Social (FORCED, consistent everywhere) ===== */
.footer-social{
  display: grid;
  grid-template-columns: repeat(5, 40px); /* عدد الأيقونات (5) */
  gap: 16px;
  justify-content: end;        /* ✅ يمين داخل العمود */
  width: 100%;
  max-width: 260px;            /* 5*40 + gaps تقريبًا */
  margin-inline-start: 30px;    /* ✅ يدفعه يمين داخل العمود */
}

/* لو عندك 6 أيقونات (مع سناب مثلاً) غيّر repeat(6, 40px) و max-width */
.footer-social.is-6{
  grid-template-columns: repeat(6, 40px);
  max-width: 316px;            /* 6*40 + 5*16 = 240+80=320 تقريبًا */
}

/* الجوال: بالمنتصف */
@media (max-width: 576px){
  .footer-social{
    justify-content: center;   /* ✅ وسط */
    margin-inline: auto;
  }
}




        /* النوافذ المنبثقة */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.7);
            z-index: 2000;
            overflow-y: auto;
            padding: 20px;
        }

        .modal-content {
            background: var(--diwan-3);
            border-radius: var(--radius);
            max-width: 800px;
            margin: 50px auto;
            box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
            position: relative;
            animation: modalFadeIn 0.3s ease;
        }

        .modal-header {
            padding: 20px 30px;
            /* border-bottom: 1px solid #eee; */
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .modal-header h2 {
            color: var(--diwan-1);
            margin: 0;
        }

        .close-modal {
            background: none;
            border: none;
            font-size: 1.5rem;
            cursor: pointer;
            color: var(--gray);
            transition: var(--transition);
        }

        .close-modal:hover {
            /* color: var(--dark); */
            color: red;
        }

        .modal-body {
            padding: 30px;
        }

        .team-leaders {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 20px;
            margin-bottom: 30px;
        }

        .leader-card {
            text-align: center;
            padding: 20px;
            border-radius: var(--radius);
            background: var(--diwan-4);
            transition: var(--transition);
        }

        .leader-card:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow);
        }

        .leader-avatar {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            margin: 0 auto 15px;
            background: var(--diwan-2);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--diwan-3);
            font-size: 1.5rem;
            font-weight: bold;
        }

        .leader-card h4 {
            margin-bottom: 5px;
            color: var(--diwan-3);
        }

        .leader-card p {
            color: var(--diwan-2);
            font-size: 0.9rem;
        }

        .team-members {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
            gap: 15px;
        }

        .member-card {
            text-align: center;
            padding: 15px;
            border-radius: var(--radius);
            background: var(--diwan-4);
            border: 1px solid #701211;
            transition: var(--transition);
        }

        .member-card:hover {
            border-color: var(--diwan-3);
            transform: translateY(-3px);
        }

        .member-avatar {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            margin: 0 auto 10px;
            background: var(--diwan-2);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--diwan-3);
            font-size: 1rem;
            font-weight: bold;
        }

        .member-card h5 {
            margin-bottom: 5px;
            color: var(--diwan-3);
            font-size: 0.9rem;
        }

        .member-card p {
            color: var(--diwan-2);
            font-size: 0.8rem;
        }

        /* التجاوبية */
        @media (max-width: 992px) {
            .hero-content {
                flex-direction: column;
                text-align: center;
            }
            
            .hero-text {
                margin-bottom: 40px;
            }
            
            .hero-btns {
                justify-content: center;
            }

            .newsletter-form {
                flex-direction: column;
            }
        }

        @media (max-width: 768px) {
            .nav-links {
                display: none;
            }
            
            .mobile-menu {
                display: block;
            }
            
            .section-header h2 {
                font-size: 2rem;
            }
            
            .hero-text h1 {
                font-size: 2.5rem;
            }

            .modal-content {
                margin: 20px auto;
            }

            .gallery-modal-content {
                width: 95%;
                margin: 20px auto;
            }

            .event-media-grid {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 576px) {
            .hero-text h1 {
                font-size: 2rem;
            }
            
            .hero-btns {
                flex-direction: column;
                gap: 10px;
            }
            
            .btn {
                width: 100%;
                text-align: center;
            }

            .team-leaders {
                grid-template-columns: 1fr;
            }
        }
/* تنسيقات معرض الصور المكبرة */
.image-zoom-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.image-zoom-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.image-container {
    max-width: 90%;
    max-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-zoom-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
}

.image-zoom-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10001;
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    /* border: 2px solid rgba(255, 255, 255, 0.3); */
}

.image-zoom-close:hover {
    color: #ff6b6b;
    background: rgba(0, 0, 0, 0.8);
    border-color: rgba(255, 255, 255, 0.5);
}

/* أزرار التنقل */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.nav-btn:hover:not(:disabled) {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
    border-color: rgba(255, 255, 255, 0.6);
}

.nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.prev-btn {
    right: 30px;
}

.next-btn {
    left: 30px;
}

.nav-btn i {
    font-size: 28px;
}

/* عداد الصور */
.image-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 16px;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 25px;
    z-index: 10001;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.image-zoom-caption {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    text-align: center;
    font-size: 16px;
    max-width: 80%;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 8px;
    z-index: 10001;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* تحسين تنسيق الصور في المعرض الأصلي */
.event-media-item {
    cursor: pointer;
    transition: transform 0.3s ease;
    position: relative;
}

.event-media-item:hover {
    transform: scale(1.03);
}

.event-media-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.event-media-item:hover img {
    opacity: 0.9;
    /* border-color: var(--diwan-1); */
    border: 3px solid var(--diwan-1);
}

/* تنسيقات للهواتف */
@media (max-width: 768px) {
    .nav-btn {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .prev-btn {
        right: 15px;
    }
    
    .next-btn {
        left: 15px;
    }
    
    .nav-btn i {
        font-size: 20px;
    }
    
    .image-zoom-close {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 30px;
    }
    
    .image-counter {
        font-size: 14px;
        bottom: 20px;
        padding: 8px 16px;
    }
    
    .image-zoom-caption {
        font-size: 14px;
        bottom: 60px;
        padding: 8px 16px;
    }
    
    .image-container {
        max-width: 95%;
        max-height: 70vh;
    }
}

@media (max-width: 480px) {
    .nav-btn {
        width: 40px;
        height: 40px;
    }
    
    .image-zoom-close {
        width: 35px;
        height: 35px;
        font-size: 25px;
    }
}



.contact {
  direction: rtl;
  padding: 60px 0;
}

/* ✅ حاوية العناصر */
.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  align-items: flex-start;
}

/* ✅ الفورم على اليمين */
.contact-form {
  flex: 1;
  min-width: 320px;
  max-width: 600px;
  order: 1; /* يبقى على اليمين */
}

/* ✅ المعلومات على اليسار */
.contact-info {
  flex: 1;
  min-width: 280px;
  max-width: 500px;
  order: 2; /* تبقى على اليسار */
}





/* الشكل العام */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 55px;
  width: 100%;

  
}
 
.nav-links .login-btn,
.nav-links .lang-switcher {
  text-decoration: none;
  color: #333;
  /* font-weight: 500; */
}



.login-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background:var(--diwan-1);
  color: #fff !important;
  padding: 10px 24px;
  border-radius: 8px;
  text-decoration: none;
  transition: 0.3s;
}
.login-btn:hover {
  background:var(--diwan-2);
}

/* زر تغيير اللغة */
.lang-switcher {
  border: 1px solid #ccc;
  background: transparent;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
}

/* أيقونة القائمة */
.mobile-menu {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

/* تصميم الجوال */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    flex-direction: column;
    width: 220px;
    padding: 20px;
    gap: 15px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    display: none; /* مخفية افتراضياً */
  }

  .nav-links.active {
    display: flex; /* تظهر عند الضغط */
  }

  .mobile-menu {
    display: block;
  }
}



/* Auth (Login/Register) */
.auth-wrapper {
  width: min(92vw, 980px);
  margin: 40px auto;
  padding: 20px;
}

.auth-card {
  background: var(--diwan-3);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px 28px;
  width: min(92vw, 440px);
  margin-inline: auto;
  animation: modalFadeIn 0.25s ease;
}

.auth-header {
  text-align: center;
  margin-bottom: 22px;
}

.auth-logo img {
  height: 140px;
  width: auto;
  margin-bottom: 10px;
}

.auth-header h1 {
  font-size: 1.6rem;
  margin-bottom: 6px;
  background: linear-gradient(135deg, var(--diwan-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  
}

.auth-subtitle {
  color: var(--gray);
  font-size: 0.98rem;
}

.form-group { margin: 14px 0 12px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; }

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--light);
  border: 1px solid #e7e7e9;
  border-radius: 10px;
  padding-inline: 12px;
  transition: var(--transition);
}

.input-with-icon:focus-within {
  border-color: var(--diwan-2);
  box-shadow: 0 0 0 4px rgba(110,43,251,0.10);
  background: #fff;
}

.input-with-icon i { color: #9aa0a6; margin-left: 8px; font-size: 0.98rem; }
.input-with-icon input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  padding: 12px 8px;
  font-size: 1rem;
}

.toggle-password {
  border: none;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 8px;
  transform: translateX(20px);

}
.toggle-password:hover { background: rgba(0,0,0,0.04); }

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 8px 0 6px;
}

.remember { display: inline-flex; align-items: center; gap: 8px; }
.remember input { width: 16px; height: 16px; background-color: var(--diwan-2); }

.forgot-link, .auth-link {
  color: var(--diwan-4);
  text-decoration: none;
  font-weight: 600;
}
.forgot-link:hover, .auth-link:hover { text-decoration: underline; }

.auth-submit { width: 100%; margin-top: 10px; }

.divider { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; color: #9aa0a6; margin: 16px 0; }
.divider::before, .divider::after { content: ""; height: 1px; background: #e7e7e9; }

.social-btn {
  width: 100%;
  background: #fff;
  color: #111827;
  border: 1px solid #e7e7e9;
  border-radius: 10px;
  padding: 12px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.social-btn img { width: 18px; height: 18px; }
.social-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.08); }

.auth-footer-text { text-align: center; margin-top: 12px; color: var(--gray); }

@media (max-width: 480px) {
  .auth-card { padding: 28px 20px; }
}


.form-groupp{
margin: 14px 0 12px;;
}
.labl{

  display: block;
  margin-bottom: 8px; 
  font-weight: 600;
  color: var(--diwan-1);
}


/* تخصيص شريط التمرير للمتصفحات التي تدعم WebKit (مثل Chrome وEdge وSafari) */
::-webkit-scrollbar {
  width: 10px; /* عرض الشريط */
}

::-webkit-scrollbar-track {
  background: var(--diwan-3); /* الخلفية (المسار) */
}

::-webkit-scrollbar-thumb {
  background: var(--diwan-1); /* الجزء المتحرك */
  border-radius: 8px; /* انحناء المقبض */
}

/* عند تمرير الماوس فوق المقبض */
::-webkit-scrollbar-thumb:hover {
  background: var(--diwan-4); /* لون أغمق عند التمرير */
}



/* سناب معطل */
.snap-disabled {           /* اللون الأحمر */
  cursor: not-allowed;         /* شكل الممنوع بالماوس */
  touch-action: manipulation;  /* يسمح باللمس بدون منع التفاعل */
}




.initiative-section {
  direction: rtl;
  padding: 60px 20px;
  font-family: "IBM Plex Sans Arabic", system-ui, sans-serif;
  background: var(--diwan-4);
  color: #fff;
}

/* عن المبادرة */
.initiative-about {
  max-width: 800px;
  margin: 0 auto 45px;
  text-align: center;
}

.initiative-about h2 {
  font-size: 1.9rem;
  margin-bottom: 10px;
  color: var(--diwan-3);
}

.initiative-about p {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--diwan-2);
}

/* شبكة الكروت */
.initiative-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

/* الكرت */
.initiative-card {
            background: var(--diwan-4);
            border-radius: var(--radius);
            overflow: hidden;
            box-shadow: var(--shadow);
            transition: var(--transition);
            text-align: center;
            padding: 30px 20px;
            position: relative;
            z-index: 1;
            cursor: pointer;
            /* height: 400px; */
}

.initiative-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7);
}


/* العناوين */
.initiative-card h3 {
  font-size: 1.3rem;
  margin-top: 30px;
  margin-bottom: 12px;
  color: var(--diwan-3);
  line-height: 0.1;

}

/* نص */
.initiative-card p {
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--diwan-3);
}

/* قائمة الأهداف */
.goals-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: right;
}

.goals-list li {
  position: relative;
  padding-right: 18px;
  margin-bottom: 6px;
  font-size: 0.92rem;
  color: var(--diwan-3);
}

.goals-list li::before {
  content: "";
  position: absolute;
  right: 0;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--diwan-2);
}


.initiative-card .team-icon i {
  font-size: 2rem; /* غيّر الرقم للحجم اللي تبيه */
}



.initiative-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--diwan-1));
}

.gallery-item.hidden-project {
  display: none;
}
.more-btn {
  margin: 30px auto 0;
  display: block;
  background: var(--diwan-1);
  color: var(--diwan-3);
  border: none;
  padding: 10px 22px;
  font-size: 1rem;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.3s;
}

.more-btn:hover {
  background: var(--diwan-2);
}


/* زر بزجاج سائل بأسلوب Apple */

.liquid-glass-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.8rem;

  border-radius: 999px;
  border: none;
  outline: none;

  background-color: rgb(255 255 255 / 25%);
  color: rgb(255 255 255 / 90%);
  font-size: 1rem;
  font-weight: 500;
  text-shadow: 0 2px 4px rgb(0 0 0 / 10%);
  box-shadow:
    0 6px 6px rgb(0 0 0 / 20%),
    0 0 20px rgb(0 0 0 / 10%);

  cursor: pointer;
  user-select: none;
  isolation: isolate;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  /* لو عندك خلفية فاتحة يفضل تغمّق النص */
  /* color: #111; */
}

/* الطبقتين الإضافية للانعكاس والتشويه */

.liquid-glass-btn::before,
.liquid-glass-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

/* تشويه / انكسار الزجاج */

.liquid-glass-btn::before {
  filter: url(#glass-distortion);
  mix-blend-mode: screen;
  opacity: 0.9;
}

/* لمعة خفيفة على الأطراف */

.liquid-glass-btn::after {
  box-shadow:
    inset 2px 2px 1px 0 rgb(255 255 255 / 40%),
    inset -2px -2px 4px 0 rgb(0 0 0 / 20%);
}

/* تأثير بسيط عند الهوفر والضغط */

.liquid-glass-btn:hover {
            transform: translateY(-3px);
color: var(--diwan-3);
}

.liquid-glass-btn:active {
  transform: translateY(1px) scale(0.98);
  box-shadow:
    0 4px 8px rgb(0 0 0 / 25%),
    0 0 18px rgb(0 0 0 / 10%);
}


.liquidGlass-wrapper {
  position: relative;
  display: inline-flex;           /* عشان ما يتمطّ تحت كل الناف */
  align-items: center;
  justify-content: center;
  font-weight: 600;
  overflow: hidden;
  border-radius: 16px;
  padding: 0.6rem 1.4rem;        /* هذا أهم شي – يبعد النص عن الأطراف */
  box-shadow: 0 6px 6px rgba(0,0,0,.2), 0 0 20px rgba(0,0,0,.1);
  /* background-color: #701211;     لو حاب يكون خلفية زر ديوان */
      width: 100%;

}

/* الطبقات تبقى مثل ما هي */

.liquidGlass-effect {
  position: absolute;
  z-index: 0;
  inset: 0;
  backdrop-filter: blur(3px);
  filter: url(#glass-distortion);
  
}

.liquidGlass-tint {
  z-index: 1;
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.15);
  
  
}

.liquidGlass-shine {
  position: absolute;
  inset: 0;
  z-index: 2;


}

.liquidGlass-text {
  z-index: 3;
  position: relative;
  display: flex;
  flex-direction: column;        /* عشان "تسجيل" فوق "الدخول" */
  align-items: center;
  line-height: 1.1;
  font-size: 0.9rem;
  color: #fff;
}




/* ===== Apply Modal Size Fix ===== */
#applyModal.preview-page{
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.apply-shell{
  width: min(760px, 92vw);           /* حجم مناسب للديسكتوب */
  max-height: min(82vh, 720px);      /* لا يتجاوز الشاشة */
  overflow: auto;                    /* سكرول داخل الصندوق */
  text-align: right;
  border-radius: 18px;
}

/* تحسين السكرول داخل النافذة */
.apply-shell::-webkit-scrollbar{ width: 10px; }
.apply-shell::-webkit-scrollbar-thumb{
  background: rgba(0,0,0,.18);
  border-radius: 999px;
}
.apply-shell::-webkit-scrollbar-track{
  background: rgba(0,0,0,.06);
  border-radius: 999px;
}

/* ترتيب الحقول على الموبايل */
@media (max-width: 640px){
  .apply-shell{
    width: 94vw;
    max-height: 86vh;
    border-radius: 16px;
  }
}



                :root {
      --diwan-1:#701211; /* primary */
      --diwan-2:#982B2A; /* brand */
      --diwan-3:#FFE3E0; /* base-rose */
      --diwan-4:#410B13; /* ink */
      --diwan-5:#280000; /* base-deep */
     }

     

        .glass {
            background: rgba(65, 11, 19, 0.6);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border: 1px solid rgba(255, 227, 224, 0.1);
        }

        /* Smooth Scrolling */
        html {
            scroll-behavior: smooth;
        }

        /* Section Headers with After Effect (New Requirement) */
        .section-header {
            text-align: center;
            margin-bottom: 3rem;
            position: relative;
        }




        /* Nav Link Hover Effect */
        .nav-link {
            position: relative;
        }
        
        .nav-link::after {
            content: '';
            position: absolute;
            width: 0;
            height: 2px;
            bottom: -4px;
            right: 0;
            background-color: #982B2A;
            transition: width 0.3s ease;
        }
        
        .nav-link:hover::after {
            width: 100%;
        }

      
        /* Lightbox Styles */
        /* .lightbox {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.9);
            z-index: 10000;
            justify-content: center;
            align-items: center;
            cursor: zoom-out;
        }
        
        .lightbox img {
            max-width: 90%;
            max-height: 90%;
            border-radius: 8px;
            box-shadow: 0 0 20px rgba(0,0,0,0.5);
        } */

      

        .login-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background:var(--diwan-1);
  color: #fff !important;
  padding: 10px 24px;
  border-radius: 8px;
  text-decoration: none;
  transition: 0.3s;
  /* font-size: 18px; */
  font-weight: bold;
}
.login-btn:hover {
  background:var(--diwan-2);
}



/* شريط التنقل */
.main-nav{
  display: none;                 /* hidden */
  align-items: center;
  gap: 2.5rem;                   /* gap-10 ≈ 40px */
}

/* يظهر فقط على الشاشات المتوسطة فما فوق */
@media (min-width: 768px){
  .main-nav{
    display: flex;
  }
}

/* روابط القائمة */
.nav-link{
  font-size: 1.125rem;           /* text-lg */
  font-weight: 500;              /* font-medium */
  color: var(--diwan-3);
  text-decoration: none;
  transition: color 0.25s ease;  /* transition-colors */
}

/* Hover */
.nav-link:hover{
  color: var(--diwan-2);
}


  @media (max-width: 768px) {
            .hero-content {
                /* flex-direction: column-reverse; */
                text-align: center;
                gap: 2rem;
                /* margin-top: 10px; */
            }

            .hero-text {
                text-align: center;
            }

            .hero-btns {
                justify-content: center;
            }
            
            .hero-text h1 {
                font-size: 2.5rem;
            }

        }

  @keyframes marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(50%); } /* RTL: من اليسار إلى اليمين */
  }

  .marquee-track{
    display:flex;
    width: max-content;
    animation: marquee 28s linear infinite;
  }

  /* إيقاف عند hover */
  .marquee-wrap:hover .marquee-track{
    animation-play-state: paused;
  }

  /* تحسين سلاسة */
  .marquee-track{ will-change: transform; }

  /* لو تبي الاتجاه عكس */
  /* .marquee-track{ animation-direction: reverse; } */

/* #fh{
    margin-right: 30px;
} */


/* ✅ زر تسجيل الدخول داخل قائمة الجوال - يمين */
#mobileMenu .login-btn--menu{
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;

  width: auto !important;
  max-width: 240px !important;

  margin: 10px 0 0 auto !important;  /* <-- يمين (RTL) */
  padding: 10px 14px !important;

  border-radius: 12px !important;
  background: #701211 !important;
  color: #FFE3E0 !important;
  border: 1px solid rgba(112,18,17,.35) !important;

  text-decoration: none !important;
  white-space: nowrap !important;
}

#mobileMenu .login-btn--menu svg{
  width: 1.15em !important;
  height: 1.15em !important;
  flex: 0 0 auto !important;
}

 .section-headerr {
            text-align: center;
            margin-bottom: 60px;
        }

        .section-headerr h2 {
            font-size: 2.5rem;
            color: var(--diwan-1);
            margin-bottom: 15px;
            position: relative;
            display: inline-block;
        }

        .section-headerr h2::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 4px;
            background: var(--diwan-1);
            border-radius: 2px;
        }


        /* ===== Partners: لا توقف عند اللمس/الهوفر + ألوان أصلية ===== */

/* لو عندك أي كود يوقف الحركة عند hover احذفه أو هذا يغلبه */
.marquee-wrap:hover .marquee-track,
.marquee-wrap:active .marquee-track,
.marquee-wrap:focus-within .marquee-track{
  animation-play-state: running !important;
}

/* ===== تثبيت مقاس الشعارات (بدون أي لعب) ===== */
.partner-logo{
  height: 5rem;            /* نفس h-20 */
  width: auto;             /* خلي العرض طبيعي */
  max-width: 220px;        /* اختياري: يمنع شعار عريض جدًا يطغى */
  object-fit: contain;     /* مهم للـ PNG */
  display: block;

  opacity: .9;
  filter: none !important;
  -webkit-filter: none !important;

  /* منع أي تأثير يغير المقاس */
  transform: none !important;
  transition: opacity .2s ease;
  will-change: auto;

  user-select: none;
  -webkit-user-drag: none;
}

/* عند اللمس/الهوفر: فقط إبراز (بدون تكبير/تحريك) */
.partner-logo:hover,
.partner-logo:active{
  opacity: 1;
  transform: none !important;
}








        
/* أنماط قسم آراء العملاء */
.testimonials-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.testimonials-container{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;              /* مسافة طبيعية بين الكرت والزر */
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
  position: relative;
  min-height: unset;      /* لا تثبّت ارتفاع */
}


.testimonials-track{
  position: relative;
  width: 100%;
  max-width: 920px;   /* <-- هنا زد العرض */
  min-height: 420px;  /* <-- مساحة للنص الطويل */
}


.testimonial-card {
    position: absolute;
    top: 0px;
    left: 0px;
    right: 0px;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s, visibility 0.5s;
    background: linear-gradient(135deg, var(--diwan-2), var(--diwan-1));
    border-radius: 15px;
    padding: 30px;
    border-width: 1px;
    border-style: solid;
    border-color: rgba(108, 92, 231, 0.2);
    border-image: initial;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    /* box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12); */
}
.testimonial-card.active {
    opacity: 1;
    visibility: visible;
    transition: var(--transition);
}

.testimonial-content {
    font-size: 1rem;
    line-height: 1.8;
    color: hsl(0, 0%, 100%);
    margin-bottom: 20px;
    position: relative;
}

.testimonial-author {
    display: flex;
    align-items: center;
    margin-top: 30px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--diwan-4);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: bold;
    margin-left: 15px;
    font-size: 1.5rem;
}

.author-info h4 {
    font-size: 1.2rem;
    color: var(--diwan-5);
    margin-bottom: 5px;
}

.author-info p {
    font-size: 1rem;
    color: var(--diwan-5);
}

/* أزرار التنقل الثابتة */
.testimonials-navigation{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-top: 8px;  
  height: auto;
}


.testimonials-nav-btn {
    background-color: var(--diwan-1);
    color: var(--diwan-3);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    flex-shrink: 0; /* منع الانكماش */
}

.testimonials-nav-btn:hover:not(:disabled) {
    background-color: var(--diwan-3);
    color: var(--diwan-1);
    transform: scale(1.1);
}

.testimonials-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* استجابة للشاشات الصغيرة */
@media (max-width: 768px) {
  .testimonials-container { 
    padding: 0 18px; 
}

  .testimonials-track { 
    max-width: 100%; min-height: 520px
 }

    .testimonial-card {
        padding: 25px;
    }
    
    .testimonial-content {
        font-size: 1.1rem;
    }
    
    .testimonials-navigation {
        margin-top: -10px;
    }
    
    .testimonials-nav-btn {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }


}

@media (max-width: 480px) {
  .testimonials-container {
     padding: 0 14px;
     }
  .testimonials-track { 
    min-height: 620px; 
}
   /* لأن النص طويل */


    .testimonial-card {
        padding: 20px;
    }
    
    .testimonial-content {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .author-avatar {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .author-info h4 {
        font-size: 1.1rem;
    }
    
    .author-info p {
        font-size: 0.9rem;
        
    }
    
    .testimonials-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    .sp {
        width: 80%;
    }
}


.author-avatar{
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--diwan-4);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden; /* مهم لقص الصورة داخل الدائرة */
  margin-left: 15px;
  flex-shrink: 0;
  position: relative;
}


.author-avatar img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translateY(6px); /* ✅ ينزلها لتحت */
}
.author-avatar .avatar-fallback{
  display: none;
  font-size: 22px;
}

/* إذا فشل تحميل الصورة */
.author-avatar.fallback .avatar-fallback{
  display: block;
}


/* track لازم يكون مرجعية للقياس */
.testimonials-track{
  position: relative;
  width: 100%;
  /* لا تحط min-height ثابت هنا */
}

/* Desktop: الأزرار يمين/يسار على أطراف الكرت */
.testimonials-navigation{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  pointer-events: none;
  z-index: 10;
}

.testimonials-nav-btn{
  pointer-events: auto;
}

/* Mobile: الأزرار تحت (وتتحرك طبيعي حسب طول النص) */
@media (max-width: 768px){
  .testimonials-navigation{
    position: static;
    inset: auto;
    pointer-events: auto;
    justify-content: center;
    gap: 14px;
    margin-top: 12px;
    padding: 0;
  }
}




/* Thumbnails (2 images hover stack) */
/* :root{
  --peek: 14px;   جزء بسيط جدًا عند اللمس
  --peek2: 22px;  جزء بسيط عند hover (اختياري)
}

تأكيد الترتيب
.achv-thumb{ position: relative; overflow: hidden; }
.achv-img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease, opacity .5s ease;
  will-change: transform;
}

الصورة الثانية: مخفية 100% + زيادة 2px (عشان ما يطلع طرف قبل اللمس)
.achv-img--hover{
  transform: translateY(calc(100% + 2px));
}

بالم/اوس (اختياري) يظهر شريط بسيط
.group:hover .achv-img--hover{
  transform: translateY(calc(100% + 2px - var(--peek2)));
}

باللمس/الضغط يظهر شريط بسيط جدًا
.group:active .achv-img--hover{
  transform: translateY(calc(100% + 2px - var(--peek)));
} */

/* Lightbox Styles (Gallery) */
/* .lightbox{
  display:none;
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.9);
  z-index:10000;
  justify-content:center;
  align-items:center;
  /* cursor: zoom-out;
}

.lb-stage{
  position:relative;
  margin:0;
  cursor: default;
}

.lightbox img{
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0,0,0,.5);
}

.lb-caption{
  margin-top: 12px;
  text-align:center;
  color: rgba(255,255,255,.75);
  font-family: inherit;
  font-size: 14px;
}

.lb-btn{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  /* background: rgba(255,255,255,.12);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 28px;
  line-height: 1;
  user-select: none;
}

/* .lb-btn:hover{ color: red; } 
.lb-close:hover{ color: red; }

.lb-close{
  top: 18px;
  right: 18px;
  transform: none;
  font-size: 30px;
  width: 44px;
  height: 44px;
} */



/* =========================
   Lightbox (Diwan Style)
========================= */

.lightbox{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;              /* يتم إظهاره من JS */
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0,0,0,.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* المسرح */
.lb-stage{
  position: relative;
  margin: 0;
  width: min(92vw, 980px);
  height: min(82vh, 700px);
  display: grid;
  place-items: center;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 25px 80px rgba(0,0,0,.55);
}

/* الصورة */
#lightboxImg{
  width: 100%;
  height: 100%;
  object-fit: cover;          /* ديسكتوب: ممتاز */
  user-select: none;
  -webkit-user-drag: none;
  cursor: grab;
  transform: translateZ(0);
}


/* كابتشن / عدّاد */
.lb-caption{
  position: absolute;
  left: 14px;
  bottom: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,.45);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.92);
  font-size: 14px;
  line-height: 1;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* زر عام */
.lb-btn{
  position: absolute;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.35);
  color: #fff;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, opacity .15s ease;
  user-select: none;
}

/* .lb-btn:hover{
  background: rgba(0,0,0,.55);
  transform: scale(1.03);
} */

.lb-btn:active{
  transform: scale(.97);
}

/* إغلاق */
.lb-close{
  top: 16px;
  left: 16px;       /* RTL: خليه يسار كعادة الإغلاق */
  font-size: 30px;
  line-height: 1;
  padding-bottom: 2px;
}

/* السابق/التالي */
.lb-prev{
  top: 50%;
  right: 16px;      /* RTL: السابق يكون يمين */
  transform: translateY(-50%);
  font-size: 28px;
}

.lb-next{
  top: 50%;
  left: 16px;       /* RTL: التالي يكون يسار */
  transform: translateY(-50%);
  font-size: 28px;
}

/* تعطيل الأزرار عند البداية/النهاية */
.lb-btn:disabled{
  opacity: .35;
  cursor: not-allowed;
  transform: none;
}

/* تحسين للموبايل */
@media (max-width: 640px){
  .lb-stage{
    width: 96vw;
    height: 78vh;
    border-radius: 16px;
  }
  .lb-prev, .lb-next{
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }
  .lb-close{
    width: 44px;
    height: 44px;
  }
  .lb-caption{
    font-size: 13px;
    left: 10px;
    bottom: 10px;
  }
}

/* حركة بسيطة عند الظهور (اختياري) */
.lightbox[aria-hidden="false"] .lb-stage{
  animation: lbPop .18s ease-out;
}
@keyframes lbPop{
  from{ transform: scale(.96); opacity: .7; }
  to{ transform: scale(1); opacity: 1; }
}


@media (max-width: 640px){
  .lb-stage{
    width: 96vw;
    height: 78vh;
    border-radius: 16px;
    background: rgba(0,0,0,.35);   /* خلفية أغمق لأن contain يترك فراغات */
  }

  #lightboxImg{
    object-fit: contain;           /* ✅ يظهر كامل */
    background: rgba(0,0,0,.35);   /* لو بقيت فراغات تكون جميلة */
  }

  .lb-prev, .lb-next{
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .lb-close{
    width: 44px;
    height: 44px;
  }

  .lb-caption{
    font-size: 13px;
    left: 10px;
    bottom: 10px;
  }
}



.stat-num{
  font-variant-numeric: tabular-nums;
}

.icon-box{
  width: 56px;
  height: 56px;
  min-width: 56px;
  min-height: 56px;
  border-radius: 14px;
  background: rgba(112,18,17,.2); /* brand/20 */
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-box img{
  width: 1000px;
  height: 1000px;
}


#heimg {
  width: 10rem; /* w-40 = 40 × 0.25rem = 10rem (160px) */
}

@media (min-width: 768px) {
  #heimg {
    width: 12rem; /* w-48 = 48 × 0.25rem = 12rem (192px) */
  }
}


.footer-logos.vertical {
  display: flex;
  flex-direction: column;   /* ⬇️ تحت بعض */
  align-items: start;
  gap: 12px;
}

.footer-logos.vertical img {
  /* height: 200px; */
  width: auto;
}

.footer-logos.vertical .logo-separator {
  color: rgba(255, 255, 255, 0.6);
  font-size: 22px;
  line-height: 1;
}

.testimonial-content em{
  display: block;
  margin-top: 1.5rem;
  padding-right: 1.2rem;

  font-style: italic;
  line-height: 1.9;

  border-right: 3px solid rgba(255,255,255,.45);
  color: rgba(255,255,255,.9);

  opacity: .95;
}

/* اجبار التفعيل */
/* img.telfaz-black{
  -webkit-filter: grayscale(100%) brightness(0) contrast(200%) !important;
  filter: grayscale(100%) brightness(0) contrast(200%) !important;
} */

.telfaz-wrap{
  display: inline-flex;
  -webkit-filter: grayscale(100%) brightness(0) contrast(200%) !important;
  filter: grayscale(100%) brightness(0) contrast(200%) !important;

  /* fixes للجوال */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  will-change: transform, filter;
  backface-visibility: hidden;
}
.telfaz-wrap img{
  display:block;
}


.hero-section{
  min-height: 100vh;
  position: relative;
}

/* الفيديو */
.hero-bg-video{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  
}

/* طبقة تغميق */
.hero-overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(40,0,0,0.65),
    rgba(40,0,0,0.85)
  );
  z-index: 1;
}

/* المحتوى فوق الفيديو */
.hero-section .container{
  position: relative;
  z-index: 2;
}

@media (max-width: 768px){
  .hero-bg-video{
    display: none;
  }
  .hero-section{
    background: url("/img/hero-poster.jpg") center/cover no-repeat;
  }
}

/* .hero-text{
  animation: heroFade 1.2s ease-out both;
}

@keyframes heroFade{
  from{
    opacity: 0;
    transform: translateY(20px);
  }
  to{
    opacity: 1;
    transform: translateY(0);
  }
} */

/* =========================
   Hero Soft Entrance
========================= */

.hero-text h1{
  opacity: 0;
  transform: translateY(28px);
  animation: heroFadeUp 1s ease-out forwards;
}

.hero-text p{
  opacity: 0;
  transform: translateY(28px);
  animation: heroFadeUp 1s ease-out forwards;
  animation-delay: .25s;
}

.hero-btns{
  opacity: 0;
  transform: translateY(28px);
  animation: heroFadeUp 1s ease-out forwards;
  animation-delay: .45s;
}

/* صورة الهيرو */
.hero-image{
  opacity: 0;
  transform: translateX(40px);
  animation: heroFadeRight 1.2s ease-out forwards;
  animation-delay: .35s;
}

/* Keyframes */
@keyframes heroFadeUp{
  to{
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroFadeRight{
  to{
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-image {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hero-image img {
    width: 100%;
    height: 200px;        
    object-fit: cover;
    border-radius: 12px;  
}