/* =========================================
   Rayan School - Home Page
========================================= */

/* =========================
   Hero
========================= */

.hero {
    min-height: calc(100vh - 100px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 70px;

    padding: 70px 8%;

    position: relative;
    overflow: hidden;

    background:
        radial-gradient(circle at 10% 20%, rgba(13, 110, 253, .10), transparent 25%),
        radial-gradient(circle at 90% 80%, rgba(255, 193, 7, .12), transparent 25%),
        linear-gradient(135deg, #f8fbff, #eef6ff);
}

/* أشكال ديكورية */

.hero::before {
    content: "";
    position: absolute;

    width: 220px;
    height: 220px;

    border-radius: 50%;

    background: rgba(13, 110, 253, .07);

    top: -80px;
    left: -60px;
}

.hero::after {
    content: "";
    position: absolute;

    width: 180px;
    height: 180px;

    border-radius: 50%;

    background: rgba(255, 193, 7, .10);

    bottom: -70px;
    right: -50px;
}


/* =========================
   Hero Text
========================= */

.hero-text {
    width: 52%;
    position: relative;
    z-index: 2;
}

.hero-text h1 {
    font-size: 58px;
    line-height: 1.35;

    color: #222;

    margin-bottom: 10px;

    font-weight: 700;
}

.hero-text h1 span {
    display: block;

    color: #0d6efd;

    font-size: 64px;

    margin-top: 5px;
}

.hero-text h3 {
    display: inline-block;

    font-size: 28px;

    color: #555;

    margin: 10px 0 25px;

    position: relative;
}

.hero-text h3::after {
    content: "";

    display: block;

    width: 65px;
    height: 4px;

    background: #ffc107;

    border-radius: 10px;

    margin-top: 7px;
}

.hero-text p {
    max-width: 650px;

    color: #666;

    font-size: 18px;

    line-height: 2;

    margin-bottom: 35px;
}


/* =========================
   Hero Buttons
========================= */

.hero-buttons {
    display: flex;

    align-items: center;

    gap: 15px;

    flex-wrap: wrap;
}

.hero-buttons .btn,
.hero-buttons .btn2 {
    padding: 14px 30px;

    border-radius: 12px;

    font-size: 17px;

    transition: .3s;
}

.hero-buttons .btn {
    box-shadow: 0 8px 20px rgba(13, 110, 253, .25);
}

.hero-buttons .btn:hover {
    transform: translateY(-3px);

    box-shadow: 0 12px 25px rgba(13, 110, 253, .35);
}

.hero-buttons .btn2:hover {
    transform: translateY(-3px);
}


/* =========================
   Hero Image
========================= */

.hero-image {
    width: 48%;

    position: relative;

    z-index: 2;
}

.hero-image::before {
    content: "";

    position: absolute;

    width: 100%;
    height: 100%;

    border-radius: 35px;

    background: #0d6efd;

    top: 18px;
    right: -18px;

    opacity: .10;

    z-index: -1;
}

.hero-image img {
    width: 100%;
    height: auto;

    max-height: 550px;

    object-fit: contain;

    border-radius: 30px;

    background: #ffffff;

    box-shadow: 0 20px 45px rgba(0, 0, 0, .15);

    border: 6px solid rgba(255, 255, 255, .9);

    transition: .5s;
}

.hero-image img:hover {
    transform: translateY(-8px) scale(1.02);
}


/* =========================
   Home Features
========================= */

.home-features {
    padding: 70px 8%;

    background: #fff;

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 25px;
}

.home-feature {
    background: #f8fbff;

    padding: 30px 20px;

    text-align: center;

    border-radius: 20px;

    border: 1px solid #edf2f7;

    transition: .35s;
}

.home-feature:hover {
    transform: translateY(-8px);

    box-shadow: 0 12px 30px rgba(0, 0, 0, .08);

    background: #fff;
}

.home-feature i {
    width: 70px;
    height: 70px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin: 0 auto 20px;

    border-radius: 50%;

    background: #eaf3ff;

    color: #0d6efd;

    font-size: 30px;
}

.home-feature h3 {
    color: #222;

    font-size: 21px;

    margin-bottom: 10px;
}

.home-feature p {
    color: #666;

    line-height: 1.8;

    font-size: 15px;
}


/* =========================
   Registration Section
========================= */

.register-now {
    position: relative;

    overflow: hidden;

    background:
        linear-gradient(135deg, #0d6efd, #0755c9);

    color: #fff;

    text-align: center;

    padding: 80px 20px;
}

.register-now::before {
    content: "";

    position: absolute;

    width: 180px;
    height: 180px;

    border-radius: 50%;

    background: rgba(255,255,255,.08);

    top: -70px;
    right: 10%;
}

.register-now::after {
    content: "";

    position: absolute;

    width: 130px;
    height: 130px;

    border-radius: 50%;

    background: rgba(255,255,255,.08);

    bottom: -50px;
    left: 10%;
}

.register-now h2 {
    position: relative;
    z-index: 2;

    font-size: 38px;

    margin-bottom: 15px;
}

.register-now p {
    position: relative;
    z-index: 2;

    max-width: 700px;

    margin: 0 auto 30px;

    line-height: 2;

    font-size: 18px;
}

.register-now .btn {
    position: relative;
    z-index: 2;

    display: inline-block;

    background: #fff;

    color: #0d6efd;

    padding: 14px 35px;

    border-radius: 12px;

    box-shadow: 0 8px 20px rgba(0,0,0,.15);

    transition: .3s;
}

.register-now .btn:hover {
    transform: translateY(-4px);

    background: #f1f5f9;
}


/* =========================
   Responsive Tablet
========================= */

@media (max-width: 1100px) {

    .hero {
        padding: 60px 5%;

        gap: 40px;
    }

    .hero-text h1 {
        font-size: 45px;
    }

    .hero-text h1 span {
        font-size: 50px;
    }

    .hero-image img {
        height: 430px;
    }

    .home-features {
        grid-template-columns: repeat(2, 1fr);

        padding: 60px 5%;
    }

}


/* =========================
   Responsive Mobile
========================= */

@media (max-width: 768px) {

    .hero {
        min-height: auto;

        flex-direction: column-reverse;

        text-align: center;

        padding: 45px 20px 60px;

        gap: 40px;
    }

    .hero-text {
        width: 100%;
    }

    .hero-text h1 {
        font-size: 38px;
    }

    .hero-text h1 span {
        font-size: 43px;
    }

    .hero-text h3 {
        font-size: 24px;
    }

    .hero-text p {
        font-size: 16px;

        line-height: 1.9;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        width: 100%;
    }

    .hero-image img {
        height: 350px;

        border-radius: 25px;
    }

    .home-features {
        grid-template-columns: 1fr;

        padding: 50px 20px;
    }

    .register-now {
        padding: 65px 20px;
    }

    .register-now h2 {
        font-size: 30px;
    }

    .register-now p {
        font-size: 16px;
    }

}


/* =========================
   Small Mobile
========================= */

@media (max-width: 480px) {

    .hero-text h1 {
        font-size: 32px;
    }

    .hero-text h1 span {
        font-size: 36px;
    }

    .hero-image img {
        height: 280px;
    }

    .hero-buttons {
        flex-direction: column;

        width: 100%;
    }

    .hero-buttons .btn,
    .hero-buttons .btn2 {
        width: 100%;

        text-align: center;
    }

}