﻿

main {
    max-width: 100%;
    overflow-x: hidden;
    width: 90%;
    margin: auto;
}

.swiper {
    width: 100%;
    margin: 50px 0px;
    padding: 20px 0px;
    margin-bottom: 100px;
    position: relative;
}

.swiper-slide {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 285px;
    max-height: 285px;
    overflow: hidden;
}

.slide-inner {
    position: absolute;
    top: 5px;
    left: 0;
    width: 100%;
    height: 285px;
    text-align: center !important;
}
.careers-frame {
    padding: 40px;
    border-radius: 18px;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.25);
}
.child-genres-section {
    margin: 90px 0 80px;
    padding: 20px 0 60px;
    position: relative;
}

    /* Divider بسيط يفصل عن الكتب */
    .child-genres-section::after {
        content: "";
        display: block;
        width: 85%;
        height: 1px;
        background: rgba(255,255,255,0.25);
        margin: 60px auto 0;
    }
.child-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 35px;
}

    .child-section-header .section-line {
        width: 35px;
        height: 4px;
        background: var(--primary-color);
        border-radius: 6px;
    }

.child-section-title {
    font-size: 2.2rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

    /* نلغي الخط الافتراضي بتاع h2 هنا بس */
    .child-section-title::after {
        display: none;
    }
.child-genres-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
}
.child-genre-card {
    background: rgba(255,255,255,0.96);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    position: relative;
    transition: all .35s ease;
    box-shadow: 0 8px 25px rgba(0,0,0,.08);
}

    .child-genre-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 16px 35px rgba(0,0,0,.15);
    }
    .child-genre-card .card-image {
        height: 170px;
        background-size: cover;
        background-position: center;
    }
    .child-genre-card .card-content {
        padding: 18px 20px 28px;
    }

.child-title {
    font-size: 18px;
    font-weight: 600;
    color: #222;
    margin-bottom: 6px;
}

.child-desc {
    font-size: 13.5px;
    line-height: 1.6;
    color: #666;
}
.child-genre-card .card-arrow {
    position: absolute;
    bottom: 14px;
    right: 18px;
    font-size: 20px;
    opacity: .35;
    transition: .3s;
}

.child-genre-card:hover .card-arrow {
    opacity: 1;
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .careers-frame {
        padding: 24px;
    }
}
    .slide-inner img {
        width: 95%;
        height: 180px;
        object-fit: cover;
        border-radius: 8px;
        display: block;
        margin: 0 auto 12px;
    }

.slide-title {
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--primary-color);
}

.slide-desc {
    color: #555;
    font-size: 14px;
}

.swiper-button-next,
.swiper-button-prev {
    background: rgba(0, 0, 0, 0.6);
    width: 50px !important;
    height: 50px !important;
    border-radius: 50%;
    color: #fff;
    transition: all 0.3s ease;
    font-size: 18px !important;
}

    .swiper-button-next:hover,
    .swiper-button-prev:hover {
        background: var(--primary-color);
        color: white;
        transform: scale(1.1);
    }

    .swiper-button-next::after,
    .swiper-button-prev::after {
        font-size: 25px !important;
        font-weight: bold;
    }

/* Hero Section */
.hero {
    min-height: 40vh;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.header-hero {
    font-size: 5.5rem;
    font-weight: 600;
    letter-spacing: 10px;
    color: var(--secondary-color);
    text-transform: uppercase;
    text-align: center;
}

p {
    font-size: 18px;
}

h2 {
    font-size: 3rem;
    font-weight: 600;
    position: relative;
    margin-bottom: 40px;
}

    h2::after {
        content: "";
        position: absolute;
        width: 40px;
        height: 5px;
        background-color: var(--primary-color);
        bottom: -5px;
        left: 0px;
    }

.view-all-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    background-color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    transition: .5s;
    border: 1px solid var(--primary-color);
}

    .view-all-btn:hover {
        background-color: transparent;
        color: var(--primary-color);
    }

/* Cards Grid */
.grid-system {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 70px 40px;
    width: 90%;
    margin: auto;
}

    .grid-system .card-film {
        max-width: 100%;
        text-align: center;
        transition: .5s;
    }

        .grid-system .card-film:hover {
            transform: translateY(-10px);
        }

        .grid-system .card-film h2 {
            color: white;
            margin-top: 7px;
        }

        .grid-system .card-film img {
            object-fit: cover;
            width: 100%;
            height: 100%;
            border-radius: 5px;
        }


.smart-hero {
    padding: 80px 10%;
    color: #fff;
    margin-top: 5rem !important;
}

/* العنوان فوق */
.header-hero {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 40px;
}

/* الوصف + الميديا جنب بعض */
.hero-body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.smart-hero.has-media .hero-body {
    grid-template-columns: 1fr 1fr;
}

/* الوصف */
.hero-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    opacity: .95;
}

/* الميديا */
.hero-media .main-media video,
.hero-media .main-media img {
    min-height: 20rem !important;
    max-height: 20rem !important;
    object-fit: cover;
    width: 100%;
    border-radius: 16px;
}

/* إزالة الخط من عنوان الهيرو فقط */
.smart-hero .header-hero::after {
    display: none;
}

/* أو بشكل أكثر تحديدًا */
.hero .header-hero::after {
    content: none;
}
/* thumbnails */
.sub-media {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

    .sub-media .thumb {
        width: 90px;
        height: 65px;
        object-fit: cover;
        border-radius: 8px;
        cursor: pointer;
        opacity: .7;
    }

        .sub-media .thumb:hover {
            opacity: 1;
        }
.explore-hero {
    position: relative;
    min-height: 20vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

    
    

/* العنوان */
.explore-title {
    position: relative;
    z-index: 2;
    font-size: clamp(2.8rem, 6vw, 5rem);
    font-weight: 800;
    letter-spacing: 6px;
    color: #fff;
    text-transform: uppercase;
    text-align: center;
}

    /* لمسة مميزة تحت العنوان */
    .explore-title::after {
        content: "";
        display: block;
        width: 80px;
        height: 5px;
        background: var(--primary-color);
        margin: 18px auto 0;
        border-radius: 6px;
    }


/* موبايل */
@media (max-width: 576px) {
    .smart-hero.has-media .hero-body {
        grid-template-columns:  1fr;
    }
    .sub-media{
        flex-wrap:wrap;
    }

}
@media (min-width: 768px) and (max-width: 1024px){
    .smart-hero.has-media .hero-body {
        grid-template-columns: 1fr;
    }

}
/* Responsive */
@media (max-width: 768px) {
    main {
        width: 95%;
    }

    .hero {
        min-height: 50vh;
    }

    .swiper-slide {
        height: 260px;
    }

    .header-hero {
        font-size: 3.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    p {
        font-size: 16px;
    }
}
