/* =====================================================
   HOME HERO - SINGLE IMAGE VERSION
   File : assets/css/hero.css
===================================================== */

/*=====================================================
  HERO
===================================================== */

.Hero {
    position: relative;
    width: 100%;
    margin-top: 90px;
    overflow: hidden;
}

.Hero-Single {
    position: relative;
    width: 100%;
    height: calc(100vh - 90px);
    min-height: 650px;
    max-height: 900px;
    display: flex;
    align-items: center;
    padding: 40px 0; /* إضافة هوامش علوية وسفلية */
}

/*=====================================================
  BACKGROUND IMAGE
===================================================== */

.Hero-Background {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.Hero-Background img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

/*=====================================================
  OVERLAY
===================================================== */

.Hero-Overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        rgba(4, 27, 49, 0.72) 0%,
        rgba(4, 27, 49, 0.55) 50%,
        rgba(4, 27, 49, 0.72) 100%
    );
    z-index: 2;
}

/*=====================================================
  CONTENT
===================================================== */

.Hero .Container {
    position: relative;
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    z-index: 5;
    padding: 20px 0; /* إضافة هوامش داخلية */
}

.Hero-Content {
    max-width: 700px;
    animation: heroFadeIn 1.2s ease forwards;
    padding: 20px 0; /* هوامش للمحتوى */
}

@keyframes heroFadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.Hero-SubTitle {
    display: inline-block;
    padding: 10px 28px;
    margin-bottom: 24px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.Hero-Title {
    margin-bottom: 24px;
    color: #ffffff;
    font-size: 60px;
    font-weight: 800;
    line-height: 1.15;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.Hero-Description {
    max-width: 620px;
    margin-bottom: 38px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 20px;
    line-height: 1.9;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
}

/*=====================================================
  BUTTONS - مع هوامض أفضل
===================================================== */

.Hero-Buttons {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 8px; /* مسافة إضافية */
}

.Btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 190px;
    height: 58px;
    padding: 0 40px; /* زيادة padding الجانبي */
    border-radius: 60px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 16px;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
}

.Btn-Primary {
    background: #F28C28;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(242, 140, 40, 0.4);
}

.Btn-Primary:hover {
    background: #d97706;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(242, 140, 40, 0.5);
}

.Btn-Secondary {
    background: #ffffff;
    color: #0B5FA5;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.Btn-Secondary:hover {
    background: #0B5FA5;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(11, 95, 165, 0.4);
}

/*=====================================================
  RESPONSIVE
===================================================== */

/* Tablets */
@media (max-width: 991px) {
    .Hero {
        margin-top: 80px;
    }

    .Hero-Single {
        min-height: 600px;
        max-height: 700px;
        padding: 30px 0;
    }

    .Hero-Content {
        max-width: 100%;
        text-align: center;
        padding: 15px 0;
    }

    .Hero-Title {
        font-size: 42px;
    }

    .Hero-Description {
        font-size: 18px;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .Hero-Buttons {
        justify-content: center;
        gap: 16px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .Hero {
        margin-top: 70px;
    }

    .Hero-Single {
        min-height: 550px;
        max-height: 650px;
        padding: 25px 0;
    }

    .Hero .Container {
        padding: 10px 0;
    }

    .Hero-Content {
        padding: 10px 0;
    }

    .Hero-Title {
        font-size: 34px;
        line-height: 1.3;
        margin-bottom: 18px;
    }

    .Hero-Description {
        font-size: 16px;
        margin-bottom: 28px;
        line-height: 1.7;
    }

    .Hero-SubTitle {
        font-size: 13px;
        padding: 8px 20px;
        margin-bottom: 18px;
    }

    .Hero-Buttons {
        flex-direction: column;
        align-items: center;
        gap: 14px;
        margin-top: 4px;
    }

    .Btn {
        width: 100%;
        max-width: 300px;
        height: 52px;
        font-size: 15px;
        padding: 0 30px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .Hero {
        margin-top: 60px;
    }

    .Hero-Single {
        min-height: 480px;
        max-height: 580px;
        padding: 20px 0;
    }

    .Hero-Content {
        padding: 8px 0;
    }

    .Hero-Title {
        font-size: 28px;
        margin-bottom: 14px;
    }

    .Hero-Description {
        font-size: 15px;
        margin-bottom: 22px;
    }

    .Hero-SubTitle {
        font-size: 12px;
        padding: 6px 16px;
        margin-bottom: 14px;
    }

    .Btn {
        max-width: 260px;
        height: 48px;
        font-size: 14px;
        padding: 0 25px;
        min-width: 160px;
    }

    .Hero-Buttons {
        gap: 12px;
    }
}

/*=====================================================
  RTL SUPPORT
===================================================== */

[dir="rtl"] .Hero-Content {
    text-align: right;
}

[dir="rtl"] .Hero-Buttons {
    justify-content: flex-start;
    flex-direction: row-reverse;
}

[dir="rtl"] .Hero-SubTitle {
    text-align: right;
}

@media (max-width: 991px) {
    [dir="rtl"] .Hero-Content {
        text-align: center;
    }
    
    [dir="rtl"] .Hero-Buttons {
        justify-content: center;
        flex-direction: column-reverse;
    }
}