body {
    background: url("../IMG/poster-frame-children-room-kids-room-nursery.jpg");
    background-size: cover;
    background-repeat: no-repeat; /* تمنع تكرار الصورة */
    background-position: center; /* تخلي الصورة في المنتصف */
    background-attachment: fixed; /* دي اللي بتثبت الصورة */
    min-height: 100vh; /* عشان الخلفية تمتد بطول الصفحة */
    scroll-behavior: smooth; /* سكرول ناعم */
    overflow-y: scroll;
    max-width: 100%;
    overflow-X: hidden;
}

h2 {
    font-size: 3.5rem;
    font-weight: 600;
    position: relative;
    margin-bottom: 20px;
}

    h2::after {
        content: "";
        position: absolute;
        width: 40px;
        height: 5px;
        background-color: var(--primary-color);
        bottom: -5px;
        left: 0px;
    }

p {
    font-size: 18px;
}

main {
    margin-top: 150px;
    max-width: 100%;
    /* overflow-x: hidden; */
    min-height: 73vh;
    margin-bottom: 60px;
    width: 90%;
    margin: auto;
}

.hero {
    min-height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-hero {
    font-size: 5.5rem;
    font-weight: 600;
    letter-spacing: 10px;
    color: var(--secondary-color);
    text-transform: uppercase;
    text-align: center;
}

.opposites-section {
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

    .opposites-section p {
        max-width: 800px;
    }

.trailers-section {
    padding: 50px 0px;
}

    .trailers-section .films-container {
        display: flex;
        justify-content: center;
        gap: 20px;
        flex-wrap: wrap;
        margin-top: 50px;
    }

        .trailers-section .films-container a {
            flex: 1 1 300px; /* بيحاول يخلي كل عنصر 300px، ويكبر/يصغر حسب المساحة */
            max-width: 600px; /* أقصى عرض */
            min-width: 250px; /* أقل عرض */
            text-align: center;
            position: relative;
        }

            .trailers-section .films-container a .icon-video {
                position: absolute;
                top: 50%;
                left: 50%;
                transform: translateX(-50%) translateY(-50%);
                border: 2px solid white;
                padding: 7px;
                width: 60px;
                height: 60px;
                border-radius: 50%;
                padding: 10px 0 0px;
                font-size: 25px;
                transition: .5s all;
            }

                .trailers-section .films-container a .icon-video i {
                    color: white;
                }

                .trailers-section .films-container a .icon-video:hover {
                    background-color: var(--primary-color);
                    color: white;
                }

            .trailers-section .films-container a img {
                width: 100%;
                object-fit: cover;
                border-radius: 5px;
            }

        .trailers-section .films-container h3 {
            margin-top: 6px;
            color: var(--primary-color);
            font-weight: 600;
        }

.sub-hero {
    min-height: 40vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-sub-hero {
    font-size: 5.5rem;
    font-weight: 600;
    letter-spacing: 10px;
    color: var(--secondary-color);
    text-transform: uppercase;
    text-align: center;
}

.character-section {
    display: flex;
    justify-content: center;
    gap: 50px;
    padding: 70px 0px;
    position: relative;
}

    .character-section:not(:last-of-type):after {
        content: "";
        position: absolute;
        bottom: 0px;
        left: 50%;
        transform: translateX(-50%);
        width: 300px;
        height: 5px;
        background-color: var(--secondary-color);
    }

    .character-section .images {
        width: 40%;
    }

        .character-section .images .main-image {
            width: 400px;
            height: 400px;
            border-radius: 50%;
            overflow: hidden;
            margin: auto;
        }

            .character-section .images .main-image img {
                width: 100%;
                height: 100%;
                object-fit: cover;
                object-position: center;
                border-radius: 10px;
            }

    .character-section .content .sub-images {
        width: 100%;
        display: flex;
        gap: 10px;
        margin-top: 25px;
    }

        .character-section .content .sub-images img {
            max-width: 100px;
            height: 100px;
            min-width: 50px;
            width: 100%;
            border-radius: 10px;
            cursor: pointer;
            transition: .5s;
            display: inline-block;
        }

    .character-section .images .sub-images {
        width: 100%;
        display: flex;
        gap: 10px;
        margin-top: 25px;
        display: none;
    }

        .character-section .images .sub-images img {
            max-width: 100px;
            height: 100px;
            min-width: 50px;
            width: 100%;
            border-radius: 10px;
            cursor: pointer;
            transition: .5s;
            display: inline-block;
        }

            .character-section .images .sub-images img:hover {
                transform: translateY(-10px);
            }

    .character-section .images {
        width: 60%;
    }

    .character-section .videos {
        width: 40%;
    }

        .character-section .videos .main-video {
            width: 400px;
            height: 400px;
            border-radius: 50%;
            overflow: hidden;
            margin: auto;
        }

            .character-section .videos .main-video video {
                width: 100%;
                height: 100%;
                object-fit: cover;
                object-position: center;
                border-radius: 10px;
                display: block;
            }

    .character-section .content .sub-videos {
        width: 100%;
        display: flex;
        gap: 10px;
        margin-top: 25px;
    }

        .character-section .content .sub-videos video {
            max-width: 150px;
            height: 100px;
            min-width: 50px;
            width: 100%;
            border-radius: 10px;
            cursor: pointer;
            transition: .5s;
            display: inline-block;
            border-radius: 20px;
        }

    .character-section .videos .sub-videos {
        width: 100%;
        display: flex;
        gap: 10px;
        margin-top: 25px;
        display: none;
    }

        .character-section .videos .sub-videos video {
            max-width: 100px;
            height: 100px;
            min-width: 80px;
            width: 100%;
            border-radius: 10px;
            cursor: pointer;
            transition: .5s;
            display: inline-block;
            border-radius: 10px;
        }

            .character-section .videos .sub-videos video:hover {
                transform: translateY(-10px);
            }

    .character-section .videos {
        width: 60%;
    }

        .character-section .videos a .icon-video {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translateX(-50%) translateY(-50%);
            border: 2px solid white;
            padding: 7px;
            width: 60px;
            height: 60px;
            border-radius: 50%;
            padding: 10px 0 0px;
            font-size: 25px;
            transition: .5s all;
        }

            .character-section .videos a .icon-video i {
                color: white;
                padding: 0px 0 20px 20px;
            }

            .character-section .videos a .icon-video:hover {
                background-color: var(--primary-color);
                color: white;
            }


@media (max-width:500px) {
    .character-section {
        flex-wrap: wrap;
    }

    .header-hero {
        font-size: 3.5rem;
    }

    .hero {
        align-items: flex-end;
        padding-bottom: 50px;
    }

    h2 {
        font-size: 2rem;
    }

    p {
        font-size: 16px;
    }

    .header-sub-hero {
        font-size: 2rem;
        max-width: 100%;
    }

    .character-section .images, .character-section .videos {
        width: 100%;
        text-align: center;
    }

    .character-section .content {
        width: 100%;
    }

    .character-section .images .main-image, .character-section .videos .main-video {
        width: 200px;
        height: 200px;
    }

    .character-section.two {
        flex-direction: column-reverse;
    }

    .character-section .content .sub-images, .character-section .content .sub-videos {
        display: none;
    }

    .character-section .images .sub-images, .character-section .videos .sub-videos {
        display: flex;
    }
}
