/* Hero Section Styles */
.hero-section {
    position: relative;
    min-height: 100vh;
    background-color: var(--dark-green);
    color: var(--white);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Main Content */
.hero-main {
    flex: 1;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 10;
    gap: 2rem;
}

/* Left Image Area */
.hero-image-area {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 70vh;
    z-index: 10;
}

.hero-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: visible;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-main-image {
    position: relative;
    width: 500px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    z-index: 10;
}

/* Decorative Shapes - Repositioned to match design */
.decorative-shape {
    position: absolute;
    z-index: 1;
}

/* Image loading states - simplified */
.hero-main-image {
    opacity: 1; /* Default to visible */
}

.decorative-shape {
    opacity: 1; /* Default to visible */
}

/* Shapes around the image panel */
.shape-1 {
    bottom: 0;
    right: 3%;
    width: 150px;
    height: auto;
    z-index: 4;
}

.shape-2 {
    position: absolute;
    top: 5%;
    right: 5%;
    width: 180px;
    height: auto;
    z-index: 3;
}

/* RTL Support for decorative shapes - Mirror positioning */
[dir="rtl"] img.decorative-shape {
    transform: scaleX(-1);
}

[dir="rtl"] .shape-1 {
    right: auto;
    left: 3%;
}

[dir="rtl"] .shape-2 {
    right: auto;
    left: 5%;
}

[dir="rtl"] .shape-3 {
    left: auto;
    right: 3%;
}

[dir="rtl"] .shape-4 {
    right: auto;
    left: 0;
}

[dir="rtl"] .shape-5 {
    left: auto;
    right: 5%;
}

[dir="rtl"] .shape-7 {
    right: auto;
    left: 0;
}

[dir="rtl"] .shape-8 {
    left: auto;
    right: 0;
}

/* RTL Support for content alignment */
[dir="rtl"] .hero-content {
    text-align: right;
}

[dir="rtl"] .hero-content-area {
    justify-content: flex-start;
    padding-left: 0;
    padding-right: 2rem;
}

[dir="rtl"] .hero-title {
    text-align: right;
    font-family: 'Tajawal', 'Almarai', 'Arabic Typesetting Regular', cursive;
    font-weight: 800; /* Tajawal 800 matches Gluten's boldness */
}

/* Arabic font support for description */
[dir="rtl"] .hero-description {
    font-family: 'Tajawal', 'Almarai', 'Arabic Typesetting Regular', sans-serif;
    font-weight: 500; /* Medium weight for readability */
}

/* Arabic font support for CTA button */
[dir="rtl"] .hero-cta-button {
    font-family: 'Tajawal', 'Almarai', 'Arabic Typesetting Regular', sans-serif;
    font-weight: 700; /* Bold for button text */
}


.shape-3 {
    top: 15%;
    left: 3%;
    width: 150px;
    height: auto;
    z-index: 3;
}

.shape-4 {
    top: 10%;
    right: 0;
    width: 180px;
    height: auto;
    z-index: 3;
}

.shape-5 {
    bottom: 0;
    left: 5%;
    width: 500px;
    height: auto;
    z-index: 3;
}

/* Shapes in the content area */
.shape-7 {
    bottom: 0;
    right: 0;
    width: 180px;
    height: auto;
    z-index: 3;
}

.shape-8 {
    top: 0;
    left: 0;
    width: 500px;
    height: auto;
    z-index: 0;
}

/* Right Content Area */
.hero-content-area {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding-left: 2rem;
}

.hero-content {
    max-width: 500px;
    text-align: left;
    position: relative;
    z-index: 3;
}

.hero-date {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.hero-title {
    font-family: 'Gluten', cursive;
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--scout-gold); /* Changed to white to match design */
    text-align: left;
}

.hero-title span {
    display: block;
}

.hero-description {
    font-family: 'Montserrat';
    font-weight: 600;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: var(--white);
    opacity: 0.9;
    text-align: justify;
}

.hero-cta-button {
    display: inline-block;
    background-color: var(--scout-gold);
    color: var(--dark-green);
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-cta-button:hover {
    background-color: #e6c200;
    color: var(--dark-green);
    text-decoration: none;
    transform: translateY(-2px);
}

/* Responsive Design */

/* Tablet and smaller desktop */
@media (max-width: 1024px) {
    .hero-main {
        gap: 1.5rem;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .hero-image-area {
        height: 60vh;
    }
}

/* Mobile landscape and tablet portrait */
@media (max-width: 768px) {
    .hero-section {
        min-height: 80vh;
        padding-bottom: 100px;
    }

    .hero-main {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .hero-content-area {
        padding-left: 0;
        justify-content: center;
        padding-right: 40px;
        padding-left: 40px;
    }

    /* RTL support for mobile content area */
    [dir="rtl"] .hero-content-area {
        padding-right: 0;
        justify-content: center;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
    }

    /* RTL support for mobile */
    [dir="rtl"] .hero-content {
        text-align: center;
    }

    /* Arabic fonts for mobile */
    [dir="rtl"] .hero-title {
        font-family: 'Tajawal', 'Almarai', 'Arabic Typesetting Regular', cursive;
        font-weight: 800;
    }

    [dir="rtl"] .hero-description {
        font-family: 'Tajawal', 'Almarai', 'Arabic Typesetting Regular', sans-serif;
        font-weight: 500;
    }

    .hero-title {
        font-size: 3rem;
        text-align: center;
    }

    .hero-description {
        font-size: 1rem;
        text-align: center;
    }

    .hero-image-area {
        height: 50vh;
    }

    .hero-image-container {
        max-width: 400px;
        height: auto;
        min-height: 300px;
    }

    .hero-main-image {
        width: 400px;
        max-width: 100%;
    }

    /* Mobile positioning for decorative shapes */
    .decorative-shape {
        opacity: 0.7; /* Slightly transparent for mobile */
    }

    /* Small accent shapes that work well on mobile */
    .shape-2 {
        top: 10%;
        right: 10%;
        width: 80px;
        z-index: 2;
    }

    .shape-3 {
        top: 10%;
        left: 5%;
        width: 60px;
        z-index: 2;
    }

    /* RTL mobile positioning */
    [dir="rtl"] .shape-2 {
        right: auto;
        left: 10%;
    }

    [dir="rtl"] .shape-3 {
        left: auto;
        right: 5%;
    }

    /* Larger decorative shapes - reduced and repositioned */
    .shape-1 {
        bottom: 0;
        right: 5%;
        width: 100px;
        z-index: 2;
    }

    .shape-4 {
        top: 5%;
        right: 0;
        width: 100px;
        z-index: 1;
    }

    /* Background shapes - much smaller and subtle */
    .shape-5 {
        bottom: 0;
        left: 0;
        width: 200px;
        opacity: 0.3;
        z-index: 0;
    }

    .shape-7 {
        bottom: 0;
        right: 0;
        width: 120px;
        z-index: 1;
    }

    .shape-8 {
        top: 0;
        left: 0;
        width: 180px;
        opacity: 0.2;
        z-index: 0;
    }

    /* RTL mobile positioning for larger shapes */
    [dir="rtl"] .shape-1 {
        right: auto;
        left: 5%;
    }

    [dir="rtl"] .shape-4 {
        right: auto;
        left: 0;
    }

    [dir="rtl"] .shape-5 {
        left: auto;
        right: 0;
    }

    [dir="rtl"] .shape-7 {
        right: auto;
        left: 0;
    }

    [dir="rtl"] .shape-8 {
        left: auto;
        right: 0;
    }
}

/* Mobile portrait */
@media (max-width: 480px) {
    .hero-section {
        min-height: 70vh;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 0.9rem;
    }

    .hero-cta-button {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }

    .hero-image-area {
        height: 40vh;
    }

    .hero-image-container {
        max-width: 300px;
        height: auto;
        min-height: 250px;
    }

    .hero-main-image {
        width: 300px;
        max-width: 100%;
    }

    /* Further reduce shapes for small mobile screens */
    .shape-2 {
        width: 60px;
    }

    .shape-3 {
        width: 45px;
    }

    .shape-1 {
        width: 90px;
    }

    .shape-4 {
        width: 70px;
    }

    .shape-5 {
        width: 150px;
        opacity: 0.2;
    }

    .shape-7 {
        width: 100px;
    }

    .shape-8 {
        width: 180px;
        opacity: 0.15;
    }
}

/* Very small screens */
@media (max-width: 360px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 0.85rem;
    }

    /* Minimal shapes for very small screens */
    .shape-2, .shape-3 {
        width: 40px;
    }

    .shape-1, .shape-4, .shape-7 {
        width: 50px;
    }

    .shape-5 {
        width: 100px;
        opacity: 0.15;
    }

    .shape-8 {
        width: 80px;
        opacity: 0.1;
    }
}
