@import url('https://fonts.googleapis.com/css2?family=Noto+Kufi+Arabic:wght@100..900&display=swap');

html, body {
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  background: #0E0E10;
  color: #fff;
  font-family: "Noto Kufi Arabic", sans-serif;
  direction: rtl;
  margin: 0;
}

.right-side-course {
    direction: rtl;
    padding-left: 5%;
}

.course-card{
    width: 85%;
    border-radius: 25px;
    height: fit-content;
    margin: 4rem auto;
    padding-bottom: 1%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #1C1C21;
    border: .5px solid #2F2F37;
    box-shadow: rgba(135, 171, 91, 0.12) 0px 30px 60px -12px , rgba(160, 160, 160, 0.178) 0px 18px 36px -18px;
}

.course-card:hover {
    box-shadow: rgba(135, 171, 91, 0.12) 0px 30px 60px -12px inset, rgba(160, 160, 160, 0.178) 0px 18px 36px -18px inset;
}

.img-side {
    width: 40%;
}

.course-img {
    width: 100%;
    border-radius: 20px;
}

.course-tit-des {
    display: flex;
    flex-direction: column;
    height: 60%;
}

.course-details {
    width: 50%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.course-title {
    font-size: 2vw;
    text-align: center;
}

.course-description {
    font-size: 1vw;
    font-weight: 300;
}

.course-bottom-part {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-before {
    font-size: small;
    color: #595959;
}

.price-title {
    font-size: x-large;
}

.price {
    font-size: large;
    font-weight: 500;
}

.course-price {
    display: flex;
    flex-direction: column;
    color: rgb(254, 254, 228);
}

.payment-details-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: fit-content;
}

.right-side-course .payment-details-button {
    direction: ltr;
}


.pay-btn {
    width: 130px;
    height: 40px;
    margin: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #D8B04A;
    border: none;
    color: white;
    font-weight: 600;
    gap: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 1), 0 10px 20px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
    transition-duration: .3s;
  }
  
  .pay-svgIcon {
    width: 16px;
  }
  
  .pay-svgIcon path {
    fill: white;
  }
  
  .pay-btn::before {
    width: calc(100% + 40px);
    aspect-ratio: 1/1;
    position: absolute;
    content: "";
    background: white;
    border-radius: 50%;
    left: -20px;
    top: 50%;
    transform: translate(-150%, -50%);
    transition-duration: .5s;
    mix-blend-mode: difference;
  }
  
  .pay-btn:hover::before {
    transform: translate(0, -50%);
  }
  
  .pay-btn:active {
    transform: translateY(4px);
    transition-duration: .3s;
  }

  .styled-button {
    position: relative;
    padding: .5vw.9vw;
    font-size: 1.1rem;
    font-weight: bold;
    color: #ffffff;
    background: linear-gradient(to bottom, #171717, #242424);
    border-radius: 9999px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 1), 0 10px 20px rgba(0, 0, 0, 0.4);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #292929;
  }
  
  .styled-button::before {
    content: "";
    position: absolute;
    top: -2px;
    right: -1px;
    bottom: -1px;
    left: -1px;
    background: linear-gradient(to bottom, #292929, #000000);
    z-index: -1;
    border-radius: 9999px;
    transition: all 0.2s ease;
    opacity: 1;
  }
  
  .styled-button:active {
    transform: translateY(2px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 1), 0 5px 10px rgba(0, 0, 0, 0.4);
  }
  
  .styled-button .inner-button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom, #171717, #242424);
    width: 30px;
    height: 30px;
    margin-left: 10px;
    border-radius: 50%;
    box-shadow: 0 0 1px rgba(0, 0, 0, 1);
    border: 1px solid #252525;
    transition: all 0.2s ease;
  }
  
  .styled-button .inner-button::before {
    content: "";
    position: absolute;
    top: -2px;
    right: -1px;
    bottom: -1px;
    left: -1px;
    background: linear-gradient(to bottom, #292929, #000000);
    z-index: -1;
    border-radius: 9999px;
    transition: all 0.2s ease;
    opacity: 1;
  }
  .styled-button .inner-button .icon {
    filter: drop-shadow(0 10px 20px rgba(26, 25, 25, 0.9))
      drop-shadow(0 0 4px rgba(0, 0, 0, 1));
    transition: all 0.4s ease-in-out;
  }

  .styled-button:hover .inner-button .icon {
    filter: drop-shadow(0 10px 20px rgba(50, 50, 50, 1))
      drop-shadow(0 0 20px rgba(2, 2, 2, 1));
    transform: rotate(-35deg);
  }
  

  .left-side-course {
    direction: ltr;
    padding-right: 5%;
}

.left-side-course .course-details {
    direction: rtl;
}

.left-side-course .styled-button {
    direction: ltr;
}

.left-side-course .pay-btn {
    direction: ltr;
}

@media  screen and (max-width: 1080px) {
    .course-card {
        flex-direction: column;
        padding: 1rem;
    }
    .img-side {
        width: 100%;
    }
    .course-details {
        width: 100%;
    }
    .course-title {
        font-size: 3vw;
    }
    .course-description {
        font-size: 2vw;
        font-weight: 400;
        text-align: center;
    }
}