*
{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}



section
{
    display: flex;
    align-items: center;
    flex-direction: column;
    padding: 1.5%;
   /* min-height: 100vh;*/
}
/* Style for the video container */
.video-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio */
}

/* Style for the iframe */
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

.title
{
    font-size: 25px;
    font-weight: 900;
    color: #000000;
    text-align: center;
    width: 100%;
    margin-bottom: 80px;
}
.container
{
    position: relative;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 2fr 1fr;
    overflow: hidden;
    /* border: 2px solid red; */
}
.container #main-Video
{
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
    outline: none;
}

.card-body
{
   
    padding: 2rem 3rem;
}
.title {
   
    margin-bottom: 7rem;
}
.courselogoteacher
{
    position: absolute;
    left: 4rem;
    top: 5rem;
}

#searchInput{
    width: 100%;
    padding: 10px;
    background: transparent;
    color: #dcdee1;
    outline: none;
    border: 2px solid #375666;
    border-radius: 5px;
    margin-bottom: 10px;
}
.playlistBx
{
    position: relative;
    height: 100%;
    margin: 0 4px 0 10px;
    padding: 0px 11px;
    border: 2px solid #1c3541;
    border-radius: 15px;
}

.playlistBx {}
.playlist
{
    position: absolute;
    width: 93%;
    height: calc(100% - 40px);
    overflow-y: scroll;
    border-top: 1px solid #000000;
    padding-bottom: 42px; /* I forget to add this while I was recording this video please add this line if you don't add this property then the last li in the playlist will not show  */
}
.playlist::-webkit-scrollbar
{
   width: 0px;
}
.playlistBx .row .AllLessons
{
    display: block;
    text-align: center;
    color: #ffffff;
    font-size: 17px;
    font-weight: 700;
    /* margin-left: 20px; */
    line-height: 60px;
    background: #1c3541;
    border-radius: 11px 11px 0px 0px;
    margin-bottom: 15px;
}
ol, ul {
    padding-left: 0rem;
}
.playlist li
{
   display: flex;
   justify-content: space-between;
   align-items: center;
   list-style: none;
   color: #dcdee1;
   cursor: pointer;
   border: 1px solid transparent;
   padding: 13px 21px;
   border-radius: 5px;
}
.playlist li:hover
{
    border: 0.5px solid #375666;
}
.playlist li .row span
{
    font-size: 14px;
    font-weight: 700;
    color: #000000;
    text-decoration: none;
    display: inline-block;
    text-align: left;
}
.playlist li .row span::before
{
    content: '\f01d';
    font-family: FontAwesome;
    color: #dcdee1;
    margin-right: 15px;
    font-size: 20px;
}
ul li.playing .row span::before
{
    content: '\f28c';
    font-family: FontAwesome;
    color: #fff;
    margin-right: 15px;
    font-size: 20px;
}
.playlist li.playing .row span
{
   color: #fff;
}
.playlist li span.duration
{
    font-size: 15px;
    font-weight: 400;
    display: inline-block;
    color: #dcdee1;
    text-align: right;
}
.playlist li.playing
{
   pointer-events: none;
   background: #1d3541;
   border: 0.5px solid #1d3541;
   box-sizing: border-box;
}
.buttonbuy
{
    position: absolute;
    right: 100px;
    top: 90px;
}
@media(max-width: 1092px){
    section
    {
        padding: 30px 10px;
    }
    .container
    {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(1,1fr);
        overflow: hidden;
    }
    .container #main-Video
    {
        height: 100%;
    }
    .playlistBx
    {
        height: 380px;
        margin-top: 10px;
    }
    .playlist
    {
        position: absolute;
        width: 100%;
        height: calc(100% - 40px);
        overflow-y: scroll;
    }
}
/* Apply Animation */
.animate-pulse {
    animation: pulse 1.5s infinite;
  }
  
  /* Button Styles */
  .buy-now-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(90deg, #ff7e5f, #ff6f61, #ff5f5f);
    border: none;
    border-radius: 30px;
    box-shadow: 0 4px 10px rgba(255, 95, 95, 0.3);
    cursor: pointer;
    transition: background 0.3s ease, box-shadow 0.3s ease;
  }
  
  /* Hover and Focus States */
  .buy-now-button:hover, .buy-now-button:focus, .buy-now-button:active {
    background: linear-gradient(90deg, #ff6f61, #ff5f5f, #ff4f4f);
    box-shadow: 0 6px 12px rgba(255, 95, 95, 0.4);
  }
  
  /* Flex Layout for Icon and Text */
  .buy-now-button i {
    margin-right: 8px;
  }
    
  .includ-courses
  {
    border: 1px solid #d1d7dc;
    padding: 0px 1.4rem 22px;
    width: max-content;
    border-radius: 5px;
    margin-top: 2rem;
    margin-bottom: 3rem;
  }
  .titlesectioncourse{
    margin-top: 3rem;
    background-color: #1c3541;
    width: fit-content;
    border-radius: 15px;
    padding: 5px 15px;
    color: white;
    margin-bottom: 2rem;
  }
  /* Title styles */
.title-container h1 {
    font-size: 2em; /* Adjust font size as needed */
    margin: 0;
    padding: 0;
}

/* Subtitle styles */
.title-container p {
    font-size: 1rem;
    margin-top: 10px;
    margin-bottom: 0.4rem;
    color: #fea918;
}

.title-container
{
    text-align: center;
}
.title-container .underline {
    display: inline-block;
    width: 100px;
    height: 4px;
    background-color: #22444c;
    
    margin-bottom: 7rem;
    border-radius: 2px;

}
.hourstext{
    float: right;
}
.styledescription
{
    margin-left: 3rem;
}
.buy-section
{
    display: none;
}
/* Responsive media queries */
@media (max-width: 1092px) {
    .buy-section
    {
        display: none;
    }
}

/* Smaller screen media queries */
@media (max-width: 768px) {
    .buy-section
    {
        display: none;
    }
}

/* Extra small screen media queries */
@media (max-width: 480px) {
    .card-body {
        padding: 0px;
    }
    section {
        padding: 0px;
    }
    .buttonbuy {
      display: none;
    }
    .buy-section {
        display: block;
    }
    .courselogoteacher {
        position: absolute;
        left: 0rem;
        top: 7rem;
    }
    .playlist {
        position: absolute;
        width: 94%;
        height: calc(100% - 40px);
        overflow-y: scroll;
    }
}

/* Base styles for the fixed buy section */
.buy-section {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    padding: 10px 15px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000; /* Ensure it is above other elements */
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e5e5e5;
    box-sizing: border-box;
}

/* Price information styling */
.price-info {
    font-size: 18px;
    font-weight: bold;
    color: #000;
}

/* Style for the buy-now button */
.buy-now-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(90deg, #ff7e5f, #ff6f61, #ff5f5f);
    border: none;
    border-radius: 30px;
    box-shadow: 0 4px 10px rgba(255, 95, 95, 0.3);
    cursor: pointer;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    margin-left: 10px;
}

/* Hover state for the buy-now button */
.buy-now-button:hover {
    background: linear-gradient(90deg, #ff6f61, #ff5f5f, #ff4f4f);
    box-shadow: 0 6px 12px rgba(255, 95, 95, 0.4);
}

/* Flexbox properties for the icon and text in the button */
.buy-now-button i {
    margin-right: 8px;
}
.buy-section
{
    display: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .buy-section {
        padding: 1.5rem 2rem;
        
        align-items: flex-start;
    }
    .buy-now-button {
        width: 100%;
        text-align: center;
       
        margin-left: 0;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .price-info {
        font-size: 16px;
        line-height: 50px;
    }
    .buy-now-button {
        font-size: 14px;
        
    }
    .buy-section
{
    display: inline-flex;
}
    .styledescription
{
    margin-left: 1.1rem;
}
}
