#Widget_Two {
  --primary: #c2410c;
  --white: #ffffff;
  --black: #0a0a0a;
  --font-main: 'Inter', sans-serif;
  --max-width: 1440px;
  --transition: all 0.3s ease;
  background: var(--black);

  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    color: var(--white);
  }

  /* --- إعادة البناء باستخدام Nested CSS --- */
  & .hero-section {
    position: relative;
    height: 85vh;
    width: 100%;
    overflow: hidden;

    /* تداخل العناصر الفرعية داخل الـ Hero */
    & .hero-bg {
      position: absolute;
      inset: 0;
      background-size: cover;
      background-position: center;
      transform: scale(1.05);
      z-index: 1;
    }

    & .cinematic-overlay {
      position: absolute;
      inset: 0;
      background: linear-gradient(to top, rgba(10, 10, 10, 0.9) 0%, rgba(10, 10, 10, 0.3) 100%);
      z-index: 2;
    }

    .black-overlay {
      position: absolute;
      inset: 0;
      background-color: rgba(0, 0, 0, 0.2);
      z-index: 3;
    }

    & .hero-container {
      position: relative;
      z-index: 10;
      height: 100%;
      display: flex;
      flex-direction: column;
      justify-content: center;
      padding: 0 1.5rem 6rem 1.5rem;
      max-width: var(--max-width);
      margin: 0 auto;
      width: 100%;
      padding-bottom: 0px;

      /* الشاشات المتوسطة والكبيرة للـ Container */
      @media (min-width: 768px) {
        padding-left: 3rem;
        padding-right: 3rem;
      }

      @media (min-width: 1024px) {
        padding-left: 5rem;
        padding-right: 5rem;
      }
    }

    & .hero-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 3rem;
      align-items: end;

      @media (min-width: 1024px) {
        grid-template-columns: repeat(12, 1fr);

        & .hero-left {
          grid-column: span 8;
        }

        & .hero-right {
          grid-column: span 4;
        }
      }
    }

    & .hero-right {
      @media (max-width: 1024px) {
        width: 50%;
      }

      @media (max-width: 640px) {
        width: 90%;
      }
    }

    & .hero-title {
      font-size: 3rem;
      font-weight: 800;
      line-height: 1.0;
      letter-spacing: -0.02em;
      color: var(--white);
      margin-bottom: 1.5rem;

      @media (min-width: 768px) {
        font-size: 4.5rem;
      }

      @media (min-width: 1024px) {
        font-size: 5rem;
      }
    }

    /* لوحة الزجاج والـ Button بداخلها */
    & .glass-panel {
      background: rgba(255, 255, 255, 0.05);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      border: 1px solid rgba(255, 255, 255, 0.1);
      padding: 2rem;
      border-radius: 1rem;
      margin-bottom: 2rem;

      & .panel-header {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        margin-bottom: 1rem;

        .material-symbols-outlined {
          color: var(--primary);
        }
      }

      & .panel-title {
        font-size: 1.125rem;
        font-weight: 700;
        letter-spacing: -0.01em;
      }

      & .panel-text {
        color: rgba(255, 255, 255, 0.7);
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 2rem;
      }

      .explore-btn {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        background-color: var(--white);
        padding: 1rem 1.5rem;
        border-radius: 0.75rem;
        font-weight: 700;
        border: none;
        cursor: pointer;
        transition: var(--transition);

        & * {
          color: var(--black);
        }

        .material-symbols-outlined {
          transition: transform 0.3s ease;
        }

        /* تأثيرات الـ Hover المباشرة للأزرار والأيقونات */
        &:hover {
          background-color: var(--primary);
          color: var(--white) !important;

          .material-symbols-outlined {
            transform: translateX(4px);
          }
        }
      }
    }
  }

  /*  */
  & .main-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 6rem 1.5rem;

    @media (min-width: 768px) {
      padding: 6rem 3rem;
    }

    @media (min-width: 1024px) {
      padding: 6rem 5rem;
    }

    /* هيدر القسم الرئيسي */
    & .section-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 3rem;

      & .section-title {
        font-size: 1.875rem;
        font-weight: 700;
        letter-spacing: -0.01em;
      }

      & .header-divider {
        height: 1px;
        flex-grow: 1;
        margin: 0 2rem;
        background-color: rgba(255, 255, 255, 0.1);
      }

      & .view-all-link {
        font-size: 0.875rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        color: var(--primary);
        text-decoration: none;
        transition: opacity 0.3s ease;

        &:hover {
          opacity: 0.8;
        }
      }
    }

    /* شبكة القصص والبطاقات */
    & .stories-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 2rem;

      @media (min-width: 768px) {
        grid-template-columns: repeat(3, 1fr);
      }

      /* كرت القصة الموحد */
      & .story-card {
        position: relative;
        aspect-ratio: 4 / 5;
        overflow: hidden;
        border-radius: 1rem;
        background-color: #161616;
        /* بديل لـ vellum-dark */
        cursor: pointer;

        /* الخلفية مع الصورة والتأثير الحركي */
        & .card-bg-img {
          position: absolute;
          inset: 0;
          background-size: cover;
          background-position: center;
          transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1);
        }

        /* الواجهة النصية المحتواة */
        & .card-foreground {
          position: absolute;
          inset: 0;
          padding: 2rem;
          display: flex;
          flex-direction: column;
          justify-content: space-between;
          z-index: 2;

          & .card-badge {
            font-size: 10px;
            font-weight: 900;
            letter-spacing: 0.2em;
            text-transform: uppercase;
            color: var(--white);
            padding: 0.4rem 0.8rem;
            align-self: flex-start;
            border-radius: 2px;

            /* أنواع الشارات المختلفة */
            &.badge-primary {
              background-color: var(--primary);
            }

            &.badge-blur {
              background-color: rgba(255, 255, 255, 0.1);
              backdrop-filter: blur(8px);
              -webkit-backdrop-filter: blur(8px);
              border: 1px solid rgba(255, 255, 255, 0.1);
            }
          }

          & .card-heading {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--white);
            line-height: 1.25;
            margin-bottom: 0.5rem;
          }

          /* الخط الحركي السفلي للعنوان */
          & .card-line {
            height: 4px;
            width: 0;
            background-color: var(--white);
            transition: width 0.5s ease;

            &.line-primary {
              background-color: var(--primary);
            }
          }
        }

        /* تأثيرات الـ Hover عند تمرير الماوس على الكرت */
        &:hover {
          .card-bg-img {
            transform: scale(1.1);
          }

          & .card-line {
            width: 3rem;
          }
        }
      }
    }
  }
}