/* Course Detail Page Styles */

.course-detail-page {
    width: 100%;
    background: #fff;
}

/* Hero Section */
.course-hero {
    position: relative;
    background: #000;
    /* padding: 60px 0; */
    padding: 100px;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.15;
}



.hero-content {
    /* max-width: 1200px; */
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
    gap: 60px;
}

.hero-left {
    flex: 1;
    /* max-width: 500px; */
}

.instructor-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    /* background: rgba(255, 255, 255, 0.1); */
    /* padding: 6px 16px; */
    border-radius: 20px;
    margin-bottom: 20px;
    /* backdrop-filter: blur(10px); */
}

.instructor-avatar-small {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.instructor-badge span {
    color: #fff;
    font-size: 14px;
}

.course-title {
    font-size: 40px;
    color: #fff;
    /* margin: 0 0 30px 0; */
    margin-bottom: 8px;
    line-height: 1.2;
}

.course-specialization{
    color:white;
    /* margin-bottom: 34px; */
}
.specialization-highlight{
    color:#3877DC;
    text-decoration: underline;
}

.enroll-btn {
    background: #3877DC;
    color: #fff;
    border: none;

    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;

    padding: 16px !important;
  min-width: 190px;
  border-radius: 12px;
}

.enroll-btn:hover {
    background: #4a7dd9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(91, 141, 238, 0.3);
}

.hero-right {
    /* flex: 1; */
    /* max-width: 550px; */
}

.course-img {
    position: relative;
    width: 100%;
    max-width: 430px;
    border-radius: 12px;
    overflow: hidden;
}

.course-img.has-video {
    cursor: pointer;
}

.course-preview-img {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    /* border-radius: 12px; */
    opacity: 0.7;
    max-height: 250px;
  object-fit: cover;
}

.course-video-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* transition: all 0.3s ease; */
    z-index: 2;
    background-color: rgba(49, 53, 114, 0.5);
  border-radius: 50%;
}

.course-video-icon:hover {
    transform: translate(-50%, -50%) scale(1.15);
}

.course-video-icon svg {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: filter 0.3s ease;
}

.course-video-icon:hover svg {
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
}

/* Course Info Bar */
.course-info-bar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(180deg, #F0F6FB 0%, #FDF0F9 100%);
    
    border-radius: 30px;
    box-shadow: 0 2px 12px rgb=(0, 0, 0, 0.06);
    margin-top: -30px;
    position: relative;
    z-index: 2;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-label {
    font-size: 20px;
    font-family:"ProximaSoftBold", Arial !important;
}

.info-value {
    font-size: 20px;
    color: #3877DC;
}

.info-value.old-price {
    color: #9CA3AF;
    text-decoration: line-through;
}

.info-value.new-price {
    color: #3877DC;
    font-size: 20px;
}

.info-value.category {
    color: #3877DC;
}

/* Main Content */
.course-content {
    /* max-width: 1200px; */
    /* margin: 60px auto; */
    /* padding: 0 20px; */
    margin-top:50px;
}

.course-section {
    margin-bottom: 60px;
}

.section-title {
    font-size: 32px;
    color: #1F2937;
    margin: 0 0 30px 0;
}

.text-blue {
    color: #5B8DEE;
}

.description-text {
    font-size: 16px;
    line-height: 1.8;
    color: black;
    margin: 0;
}

/* Instructor Card */
.instructor-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 24px;
    max-width: 400px;
}

.instructor-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.instructor-info {
    flex: 1;
}

.instructor-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.instructor-name {
    font-size: 20px;
    color: #1F2937;
    margin: 0;
}

.verified-badge {
    display: flex;
    align-items: center;
}

.instructor-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    display: inline-block;
    font-family: "Montserrat", Arial;
    font-weight: 500;;
    color: white !important;
}

.badge-english {
    background: #3877DC;
    color: #fff;
}

.badge-top-rated {
    background: #313672;
    color: #5B8DEE;
}

.badge-native {
    background: #009B3A;
    color: #fff;
}
/* modules */

.modules-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.module-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: #FAFBFC;
    border: 1px solid #E5E7EB;
    /* border-radius: 8px; */
    transition: all 0.3s ease;
     box-shadow: 0px 4px 19px -2px rgba(0, 0, 0, 0.07);
    border-radius:16px;
}

.module-item.active {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0px 4px 19px -2px rgba(0, 0, 0, 0.07);
    border-radius:16px;

    /* border-color: #E5E7EB; */
}

.module-item.locked {
    opacity: 0.7;
    background: #FAFBFC;
}

.module-left {
    flex: 0 0 auto;
    min-width: 140px;
}

.module-title {
    font-size: 24px;
    color: #1F2937;
    margin: 0 0 4px 0;
    font-weight: 600;
}

.module-item.locked .module-title {
    color: #9CA3AF;
    display: flex;
    align-items: center;
    gap: 8px;
}

.module-meta {
    font-size: 16px;
    color: #6B7280;
    font-weight: 400;
}

.module-item.locked .module-meta {
    color: #9CA3AF;
}

.module-right {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    flex:1;
    padding-bottom: 20px;
}

.module-icon {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
    width: 40px;
    height: 40px;
    position:relative;
}
.module-icon:not(:last-of-type)::after {
 content: '';
  position: absolute;
  left: 65%;
  top: 50%;
  transform: translateY(-50%);
  width: calc(100% - 70px);
  height: 2px;
  background-color: #E5E7EB;
  z-index: 0;
  border: 2px solid rgba(56, 119, 220, 0.08)
}

.module-icons{
    display: flex;
  width: 100%;
  justify-content: space-around;
}

.module-icons button{
    flex:1;
}

.course-wallet-btn::after {
    display: none;
}
.module-icon svg{
    width: 48px;
    height: 48px;
}

.module-icon:hover:not(.disabled) {
    transform: scale(1.05);
}

.module-icon.disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.play-icon svg circle {
    transition: fill 0.2s ease;
}

.play-icon:hover:not(.disabled) svg circle {
    fill: #4a7dd9;
}

.watch-video-btn {
    background: #3877DC;
    color: #fff;
    border: none;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
    font-weight: 600;
    margin-left: auto;
    min-width:180px;
    display: flex;
  align-items: center;
  justify-content: center;

}

.watch-video-btn:hover:not(.disabled) {
    background: #4a7dd9;
    transform: translateX(2px);
}

.watch-video-btn.disabled {
    background: #C7D2E5;
    cursor: not-allowed;
    color: #ffffff;
}

.lock-icon {
    margin-left: 6px;
}

.module-right button{
    flex:1;
}

.module-right button:last-child{
    flex:0;
}
.video-mobile-player, .video-mobile-player.mobile-view{
    display:none ;
}



/* Responsive Design */
@media (max-width: 968px) {
    .hero-content {
        flex-direction: column;
        /* text-align: center; */
        align-items:unset;
    }

    .enroll-btn{
        min-width:unset;
        padding:16px 32px !important;
    }

    .hero-left {
        max-width: 100%;
    }

    .course-title {
        font-size: 36px;
        max-width: 20ch;
    }

    .course-hero{
        padding: 50px 15px;
    }

    .course-info-bar {
        flex-wrap: wrap;
        gap: 20px;
        margin-top:30px;
        background:transparent;
        gap:0;
        
    }

    .info-item {
        flex: 1;
        min-width: unset;

    }
    .info-label, .info-value{
        font-size:14px !important;
    }

    .module-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .module-right {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
        flex:1
    }

    .lock-icon {
        position: static;
    }

    .course-preview-img, .course-video-icon {
        display:none !important;
    }
.video-mobile-player {
    display: flex;
    margin-left:auto;
    align-items: center;
    gap: 10px;
    background: transparent; /* dark semi-transparent background */
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
    width: fit-content;
    
}

.watch-video-btn{
    margin: 0 auto;
}

.video-mobile-player:hover {
    transform: scale(1.05);
    background: rgba(0, 0, 0, 0.75);
}

.video-mobile-player.mobile-view{
    display:flex !important
}

.play-icon-phone {
    background: #3877DC; /* blue circle */
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-icon-phone svg {
    width: 14px;
    height: 14px;
}

.button-text {
    font-size: 18px;
    font-weight: 600;
    color: white;
}



}

.description-text.mobile{display:none;}
.level-price.mobile{display:none;}
@media (max-width: 640px) {
    .course-title {
        font-size: 28px;
    }
    .course-level-right .level-price{
        display:none;
    }
    .level-price.mobile{display:block}

    .section-title {
        font-size: 24px;
    }

    .module-item{
        justify-content: center;
  align-items: center;
    }
    .module-left{
        text-align: center;
    }

    .module-item.active .module-right{
        display:none;
    }

    .module-icons{
        margin-top: 40px;
  padding-bottom: 40px
    }

    .module-icon:first-of-type{justify-content: flex-start;}
    .module-icon:first-of-type::after{
        left: 40%;
  top: 50%;
  width: calc(100% - 20px);
    }

    .module-icon:last-of-type{justify-content: flex-end;}
      .module-icon:nth-of-type(2)::after{
        left: 70%;
   /* top: 50%; */
  width: calc(100% - 20px); 
    }

    .level-info{
        display: flex;
  flex-direction: column;
  gap: 12px;
    }

    .course-info-bar {
        padding: 20px;
    }

    .explore-level{
        font-size:14px !important;
    }

    .explore-level:hover{
        color: white !important;
    }
    .level-title{
        font-size:18px;
        max-width: 15ch;
    }
    .course-level-right{margin-top:auto}



    .info-value.new-price {
        /* font-size: 20px; */
    }

    .instructor-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        
    }


    .module-right {
        gap: 8px;
    }

    .watch-video-btn {
        width: 100%;
        justify-content: center;
    }

    .description-text.mobile{display:block; text-align:left;}
    .description-text.main{display:none;text-align:left}



    .instructor-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    padding: 20px;
    max-width: 450px;
    margin: 0 auto;
  }

  .instructor-avatar {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 16px;
  }

  .instructor-info {
    width: 100%;
  }

  .instructor-header {
    justify-content: flex-start;
    margin-bottom: 8px;
  }

  .instructor-name {
    font-size: 18px;
  }

  .instructor-badges {
    justify-content: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    margin-left:0 !important;
    padding-left:0 !important;
  }

  .badge {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 12px;
  }

  .instructor-description {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
  }
}


.discount-section {
    background: linear-gradient(135deg, #e8f0ff 0%, #f5f8ff 100%);
    padding: 20px 100px;
    margin: 40px 0;
    margin-bottom: 100px;
}

.discount-section--d1 {
    /* max-width: 1200px; */
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    flex-wrap: wrap;
}

.discount-content {
    flex: 1;
    min-width: 300px;
}

.discount-content h2 {
    font-size: 42px;
    line-height: 1.3;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.discount-content .highlight {
    color: #2563eb;
    font-weight: 700;
}

.discount-content .highlight-off {
    color: #9ca3af;
    text-decoration: line-through;
    font-weight: 400;
}

.discount-content p {
    font-size: 18px;
    color: #4b5563;
    margin-bottom: 30px;
}

.discount-content p .highlight {
    color: #2563eb;
    font-weight: 600;
}

.buy-now {
    background: #3877DC;
    color: white;
    padding: 16px 32px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    /* transition: all 0.3s ease; */
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    margin-top:30px;
}

.buy-now:hover {
    background: #1d4ed8;
    /* transform: translateY(-2px); */
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

.buy-now svg {
    /* transition: transform 0.3s ease; */
}



.discount-section--d1 > div:last-child {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.discount-section--d1 img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.1));
}

/* Responsive styles */
@media (max-width: 968px) {
    .discount-section--d1 {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .discount-content h2 {
        font-size: 32px;
    }

    .discount-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 970px) {
    .discount-section {
        padding: 40px 15px;
    }

    .discount-content h2 {
        font-size: 28px;
    }

    .discount-content p {
        font-size: 16px;
    }

    .buy-now {
        padding: 14px 28px;
        font-size: 15px;
    }
}

.course-levels{
    margin-top:20px;


}

.course-levels h3{
    margin-bottom: 24px;
    font-size:32px;
}
.course-levels-cards{
    display:flex;
    gap:24px;

}

.course-level-card{
    display:flex;
    box-shadow: 0px 4px 19px -2px #00000012;
    padding: 29px 24px;
    justify-content: space-between;
    align-items: center;
    flex:1;
    border-radius:16px;

}
.level-title{
    font-size:24px;
}
.level-time{
    font-size:16px;
    color:#757575;
}

.course-level-right{
    display:flex;
    font-family:'ProximaSoftMedium', Arial;
    font-size:20px;
    gap:40px;
    align-items: center;
}

.explore-level{
    background: #3877DC;
    color: #fff !important;
    border: none;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
    font-weight: 600;
    margin-left: auto;
    min-width:180px;
    display: flex;
  align-items: center;
  justify-content: center;
}

.highlight{
    color: #3877DC;
}
.level-price{
    font-size:24px;
}


/* Download Popup Styles */
.download-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.download-popup.active {
    display: flex;
}

.download-popup-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 24px;
    border-bottom: 1px solid #E5E7EB;
}

.popup-header h3 {
    font-size: 18px;
    color: #1F2937;
    margin: 0;
    line-height: 1.4;
    flex: 1;
    margin-right: 16px;
}

.close-popup {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.2s;
    flex-shrink: 0;
}

.close-popup:hover {
    background-color: #F3F4F6;
}

.popup-body {
    padding: 24px;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.file-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #EBF2FF;
    border-radius: 8px;
    flex-shrink: 0;
}

.file-details h4 {
    font-size: 16px;
    color: #1F2937;
    margin: 0 0 4px 0;
}

.file-details p {
    font-size: 14px;
    color: #6B7280;
    margin: 0;
}

.popup-footer {
    padding-top: 16px;
    /* border-top: 1px solid #E5E7EB; */
}

.see-more-container{
    display: flex;
  justify-content: center;
  padding-top: 20px;
}

#seeMoreBtn{
    text-align: center;
  padding: 16px 42px !important;;
  border-radius: 18px;
  background-color: #3877DC !important;
  font-size: 16px;
  
}

.download-btn {
    background: #3877DC;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 16px;
    width: 100%;
    transition: background-color 0.2s;
}

.download-btn:hover {
    background: #2C5DB1;
}

/* Responsive */
@media (max-width: 768px) {
    .download-popup-content {
        width: 95%;
        margin: 20px;
    }
    
    .popup-header {
        padding: 20px;
    }
    
    .popup-body {
        padding: 20px;
    }
}


@media(max-width:460px)
{
      .module-icon:first-of-type::after{
        left: 50%;
    top: 50%;
    width: calc(100% - 30px);
      }
}