@import url('https://fonts.googleapis.com/css2?family=Jost:wght@400;500;600;700&display=swap');


*{
  padding: 0;
  margin:0;
  box-sizing: border-box;

}


.h-container {
    position: relative;
    text-align: left;
    color: white;
    height: 85vh;
}

.background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header .overlay {
    position: absolute;
    top: 5%;
    left: 6%;
    color: #333;
    padding: 20px;
    border-radius: 5px;
    max-width: 600px;
}

.header .overlay h1 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #d4a200; 
}

.header .overlay ul {
    margin-left: 5%;
    padding: 0;
    margin-top:2.5rem;
}


.header .overlay li {
    margin: 1.5rem 0;
    font-size: 1.3rem;
}

.signup-button {
    display: inline-block;
    margin-top: 20px;
    padding: 1rem 2rem;
    background-color: #800000; 
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
}



.signup-button:hover {
    background-color: #600000; 
    color: #fff;
    text-decoration: none;
}


.header .layer{
    background-image: linear-gradient(to right, #ffffffdb 49%, #ffffff21);
    position: absolute;
    top:0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
}

.container img{
    height: 100%;
}


.course-section {
    padding: 3rem;
    text-align: center;
    margin: 3rem 0;
    margin-top: 0;
    margin-bottom: 0;
}

.course-section .card-item-container {
    position: relative;
    width: 100%;
    height: 20rem;
    perspective: 1000px; 
}

.course-section .card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 30px;
    backface-visibility: hidden; 
    transition: transform 0.6s; 
}

.course-section .card-front {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.course-section .card-back {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    transform: rotateY(180deg); 
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    padding: 20px;
}

.course-section .card-item-container.c-1 .card-front,
.course-section .card-item-container.c-1 .card-back {
    background-image: url('../../../assets/images/Adults Arabic and Quran Classes.jpg');
}

.course-section .card-item-container.c-2 .card-front,
.course-section .card-item-container.c-2 .card-back {
    background-image: url('../../../assets/images/Kids Arabic classes.jpg');
}

.course-section .card-item-container.c-3 .card-front,
.course-section .card-item-container.c-3 .card-back {
    background-image: url('../../../assets/images/Teacher Training Classes.jpg');
}

.course-section .card-item-container:hover .card-front {
    transform: rotateY(180deg);
}

.course-section .card-item-container:hover .card-back {
    transform: rotateY(0); 
}

.course-section .overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(at bottom left, #8217198A 60%, #7c0305 100%);
    border-radius: 30px;
    z-index: 1;
    pointer-events: none;
}
.course-section .overlay-back {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(to top, #8217198A , #938706 );
    border-radius: 30px;
    z-index: 1;
    pointer-events: none;
}
.course-section .card-back button{
    padding: 7px;
  border-radius: 25px;
  font-size: .8rem;
  margin-top: 10px;
  background: #fff0;
  border: 1px solid gold;
  color: gold;
  font-weight: bold;
  transition: .5s;
}
.course-section .card-back button:hover{
  background: #fff;
  color: black;
}
.course-section .content {
    z-index: 2;
    color: white;
    font-weight: bold;
    text-align: center;
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.course-section .content span {
    font-size: 1.8rem;
}

.course-section p {
    color: white;
    font-size: 1.2rem;
    margin: 2rem 0;
    z-index: 100;
}

.course-section h2 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.course-section h3 {
    font-size: 3rem;
    font-weight: bold;
}


.services-section{
    background-color: #EAEAEA;
    padding: 3rem;
}

.service-item h3{
    font-weight: bold;
    font-size: 1.4rem;
}

.service-item span{
    color:#444;
    line-height: 1.7rem;
    font-size: .9rem;
}

.services-section .service-item i{
    font-size: 2.5rem;
    margin-right: 1rem;
    color:#7c0305
}


.about {
    padding: 3rem;
}

.about img {
    width: 100%;
}

.about .right .img-container img {
    border-radius: 50%;
}

.about .cards-container {
    margin-top: 2rem;   
}

.about .img-container {
    position: relative;
    overflow: hidden; 
}

.about .overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(at bottom left, #8217198A 60%, #8217198A 100%);
    color: #fff;
    text-align: center;
    display: flex;
    justify-content: center;
    transition: background-color 0.3s ease; 
}

.about .overlay p {
    font-weight: bold;
    margin: 1rem;
    margin-top: 2rem;
    font-size: 1.2rem;
}

.about .hidden-text {
    position: absolute;
    bottom: -100%; 
    left: 0;
    width: 100%;
    padding: 10px;
    text-align: left;
    color: #fff;
    transition: bottom 0.6s ease; 
}

.about .card-item:hover .overlay {
    background-color: rgba(0, 0, 0, 0.6); 
}

.about .card-item:hover .hidden-text {
    bottom: 0; 
}

.about .left h2 {
    margin-top: 3rem;
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 2rem;
}

.about .left p {
    font-size: .8rem;
    font-weight: bold;
    margin-bottom: 1rem;
    line-height: 1.2rem;
    margin-right: 1.5rem;
}

.about .left {
    padding-right: 2rem;
}

.about .left li {
    margin: 1.5rem 0;
}

.about span {
    font-weight: bold;
}

.about li.first {
    margin-top: 0;
}





.testimonials-section{
    text-align: center;
    padding: 3rem;


}

.testimonials-section .cards-container{
   
    margin-top: 4rem;
    margin-bottom: 3rem;
}



.testimonials-section .iframe-container{
    width: 100%;
}


.testimonials-section h2{
    font-size: 3rem;
    margin-top: 1rem;
    font-weight: bold;

}

.testimonials-section span{
    background-color: #600000;
    color:#fff;
    padding: .5rem 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}


.testimonials-section  iframe{
    width: 80%;
    height: 50vh;
}






.news-section{
    padding: 3rem;

}
.news-section img{
    width: 100%;
}


.news-section .header-container{
 
    margin-bottom: 4rem;
    align-items: center;
}

.news-section h2{
    font-size: 3rem;
    font-weight: bold;

    
}

.news-section .header-link{
    background-color: #821719;
    color: #fff;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 20px;
    font-size: .8rem;
}




.news-section p{
    margin: 1.5rem 0;
    font-size: .9rem;
}

.news-section h3{
    color:#7c0305;
    font-weight: bold;
    font-size: 1.5rem;
    margin-top: .2rem;
    
}



.news-section span{
    font-size: .7rem;

    padding-bottom: .2rem;
}
.news-section span a{
    font-size: .7rem;
    text-decoration: none;
    color: #000;
    border-bottom: 2px solid #000;
    padding-bottom: .3rem;

}


.news-section span a:hover{
   
    color:#f74842;
    border-bottom: 2px solid #f74842;

}



#register {
    padding: 50px;
    background-color: #f4f4f4;
}

#register .row {
    display: flex;
    justify-content: center;
    align-items: center; 
    flex-wrap: wrap; 
    gap: 20px; 
}

.left-content, .steps-container-wrapper {
    flex: 1; 
}

.how-it-works {
    background-color: #811818;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    display: inline-block;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 20px;
    width: 250px;
    text-align: center;
}

.main-heading {
    font-size: 4rem;
    color: #333;
    margin-bottom: 40px;
    font-weight: bold;
}

.start-section {
    background: white;
    margin-top: 30px;
    text-align: center;
    padding: 1rem;
    border-radius: 30px;
    box-shadow: 0px 6px #ccc;
    width: 300px;
    padding-bottom: 2rem;
}
.start-text {
    font-size: 24px;
    color: #333;
}

.signup-btn {
    background-color: #811818;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    cursor: pointer;
    margin-top: 5px;
}


.signup-btn:hover {
    color: white;
    text-decoration: none;
    background-color: #660000;
}

.steps-container-wrapper {
    overflow-y: auto;
    padding-right: 10px;
    float: right;
}

.steps-container-wrapper::-webkit-scrollbar {
    width: 8px;
}

.steps-container-wrapper::-webkit-scrollbar-thumb {
    background-color: #811818;
    border-radius: 5px;
}

.steps-container-wrapper::-webkit-scrollbar-track {
    background-color: #f4f4f4;
}

.steps-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px; 
    float: right;   
}

.step-arrow-container {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    justify-content: end;
    
}

.step {
    background-color: #d4a800;
    color: white;
    border-radius: 25px;
    padding: 15px 30px;
    width: 270px;
    position: relative;
    box-shadow: 0px 0px 10px rgba(255, 0, 0, 0.2);
}

.final-step {
    background-color: white;
    color: black;
    border-radius: 15px;
    padding: 15px;
}

.arrow {
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 15px solid #d4a800;
    margin-left: 10px;
    margin-right: 10px;
}

.circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #811818;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.circle.grey {
    background-color: #ccc;
    color: black;
}

.circle i {
    font-size: 18px;
}

@media only screen and (max-width: 768px) {
    .steps-container-wrapper {
        overflow-y: auto;
    }

    .step-arrow-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .arrow {
        display: none;
    }

    .circle {
        margin-top: 10px;
    }
}





.footer{
    background: #7c0305;
    color: #fff;
    padding: 2rem;


}

.footer .container{
    margin : 2rem auto; 
}


.footer img{   
    height: 20vh;
}


.footer h3{
    margin-bottom: 1.5rem;
    font-size: .8rem;
    font-weight: 700;
}

.second p, .third p {
    margin: 1rem 0;
}

.copy-rights{
    text-align: center;
}

.footer .first p{
    font-size: .9rem;
    margin: .3rem;
}





@media screen and (max-width: 767px) {
    *{
        font-size: 14px;
    }

    .services-section .service-item{
        display: block !important;
        text-align: center;
        margin-bottom: 2rem;
    }

    .services-section .service-item i{
        margin-bottom: 1rem;
    }
}


@media screen and (min-width: 992px) {
   
    .icon-container{
        display: none;
    }
}
