/*
 Theme Name:   Divi Stylist Academy
 Description:  This is a sample child theme
 Author:       Ania R.
 Template:     Divi
 Version:      1.2.51
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  dsa
*/
body, h1, h2, h3, h4, h5, h6 {
    font-weight: 400;
}

button.mark-complete-btn{
    border: none;
    background: #313131;
    color: #fff;
    font-weight: 700;
    padding: 1em 1.5em;
    font-size: 1em;
    border-radius: 2em;
    display:inline-block;
    cursor:pointer;
}
button.mark-incomplete-btn {
  border:none;
  background:none;
  font-size:1em;
  text-decoration:underline;
  color:inherit;
  cursor:pointer;
}

.course-progress {
    margin-bottom: 20px;
}

.course-progress .progress-bar {
    position: relative;
    background-color: #e0e0e0;
    height: 20px;
    border-radius: 10px;
    overflow: hidden;
    width: 100%;
    margin-top: 10px;
    color: #ffffff;
    text-align: center;
    line-height: 20px;
    font-size: 14px;
    font-weight: bold;
}

.course-progress .progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background-color: #4caf50;
    transition: width 0.4s ease;
    z-index: 0;
}

.course-progress .progress-bar[data-progress]::before {
    width: attr(data-progress)%; /* Fallback for data attribute percentage */
}

.course-progress .progress-bar[data-progress] {
    position: relative;
    z-index: 1;
}



/* Module Lesson List */
ol.dsa-lessons li {
    margin-bottom: 1em;
}
ol.dsa-lessons li::marker {
  font-weight:bold;
  color:#F68051;
}
ol.dsa-lessons li a {
  display:block;
  background: rgba(255,255,255,0.5);
  padding: 1em;
  border-radius: 5px;
  transition: all .3s;
}
ol.dsa-lessons li a:hover {
  background:#fff;
}
ol.dsa-lessons h3 {
  padding-bottom:5px;
}


/* Lesson List */
.course-lessons ol.dsa-lessons {
    margin: .75em 0 1.2em;
}
.course-lessons ol.dsa-lessons li::marker {
  color:inherit;
  font-size:.85em
}
.course-lessons ol.dsa-lessons li {
    margin-bottom: .75em;
}
.course-lessons ol.dsa-lessons li a {
  padding: .5em .7em;
  transition: all .3s;
}
.course-lessons ol.dsa-lessons li a:hover {
  background:#fff;
}
.course-lessons ol.dsa-lessons li.active a {
  background: #f68051;
  color: #fff!important;
}



.course-lessons ol.dsa-lessons li.completed::marker {
    content: '✅   ';
}








/* Modules List */
.course-modules {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 40px;
}
.course-modules .module-item {
  padding:10px;
  border-radius:10px;
  background: #efece7
}

.course-modules .module-content {
  padding:10px;
}
.course-modules .module-description {
  margin-top:10px;
}

.course-modules .module-image {
  overflow:hidden;
}
.course-modules .module-image img {
  transition: all .3s;
  vertical-align:bottom;
}

.course-modules .module-item:hover .module-image img {
  transform:scale(1.1);
}



/* Blog Module Custom Fields */
.dsa-reading-time {
    background: #313131;
    display: inline-block;
    position: absolute;
    top: 10px;
    left: 10px;
    color: #fff;
    padding: 0 .5em;
    border-radius: 2px;
    z-index:10;
}
.dsa-reading-time strong {
    transition: color .2s;   
}
.et_pb_post:hover .dsa-reading-time strong {
    color: lightsalmon;
}

/* Portfolio Module Custom Fields */
a.dsa-project-link {
  display:inline-block;
   border-radius:50px
}


/* Products List Custom Fields */

.et_shop_image span.et_overlay {
    display: none;
}

.secondary-image {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    width:100%;
}

.et_pb_module .woocommerce-LoopProduct-link:hover .secondary-image {
    opacity: 1;
}


.product-badge {
    background-color: #313135;
    color: #fff;
    padding: .3em .7em;
    font-size: 12px;
    text-transform:uppercase;
    font-weight: bold;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 10;
    border-radius: 3px;
}


/* Header and submenu */
#page-container #main-header {
    box-shadow: 0 10px 20px -20px rgba(0, 0, 0, 0.45) !important;
}

#main-header #top-menu .sub-menu {
    box-shadow: 0 15px 30px -20px rgba(0, 0, 0, 0.45) !important;
    padding: 5px 0 15px;
    left: -20px;
}

#main-header #top-menu .sub-menu a {
    padding: 6px 0;
}
#main-header #top-menu .sub-menu a:hover {
    background:transparent;
}

#page-container #main-header a:hover {
    opacity: 1;
}

#main-header #top-menu a {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: .6em;
    text-decoration-color: transparent;
    transition: all .2s linear;
}

#main-header #top-menu a:hover {
    text-decoration-color: lightsalmon;
    text-underline-offset: .3em;
}
a.et-cart-info {
    display: none;
}

/* CTA Menu Button */
#main-header #top-menu li.cta-link a {
    background: #efece7;
    padding: .7em 1em;
    margin-top: -.7em;
    border-radius: 20px;
    text-decoration: none;
}

#main-header #top-menu li.cta-link a:hover {
    background: #dbd3c8;
}


.et_pb_post_content h2:not(:first-child),
.et_pb_post_content h3:not(:first-child),
.et_pb_post_content h4:not(:first-child),
.et_pb_post_content h5:not(:first-child),
.et_pb_post_content blockquote:not(:first-child){
  margin-top: 1em;
}




/* Comments Module */
@media (min-width:461px) {

    body:not(.logged-in) .dsa-comments #respond .comment-form-comment {
      width:50%;
      float:left;
    }
    body:not(.logged-in) .dsa-comments #respond .comment-form-author,
    body:not(.logged-in) .dsa-comments #respond .comment-form-email,
    body:not(.logged-in) .dsa-comments #respond .comment-form-url {
      width:48%;
      float:right;
    }
    body:not(.logged-in) .dsa-comments #commentform input[type="text"]{
      width:100%;
    }
    body:not(.logged-in) .dsa-comments #respond .form-submit,
    body:not(.logged-in) .dsa-comments #respond .comment-form-cookies-consent{
      clear:both;
    }
    
}

/* Buttons */
.et_pb_button {
    text-align:center;
}


/* Email Optin */

#page-container .dsa-optin .et_pb_newsletter_fields > * {
    flex-basis:32%;
}

@media (max-width: 767px) {
    #page-container .dsa-optin .et_pb_newsletter_fields > * {
        flex-basis:48.5%;
    }
    #page-container .dsa-optin .et_pb_newsletter_fields .et_pb_newsletter_button_wrap {
        flex-basis:100%;
    }
}

@media (max-width: 400px) {
    #page-container .dsa-optin .et_pb_newsletter_fields > * {
        flex-basis:100%
    }
}





/* Blog Grid */
#page-container .dsa-blog-grid>div {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 40px;
}

#page-container #et-boc .dsa-blog-grid article.et_pb_post {
    margin-bottom: 0;
    background: #fff;
}


/* Portfolio Grid */
#page-container .dsa-portfolio-grid>div {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr));
    gap: 40px;
}

#page-container .dsa-portfolio-grid .et_pb_portfolio_item {
    background: #fff;
}

/* Filterable Portfolio Grid */
#page-container .dsa-f-portfolio-grid .et_pb_portfolio_items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr));
    gap: 40px;
}

#page-container .dsa-f-portfolio-grid .et_pb_portfolio_item {
    background: #fff;
}

/* Text modules */
.et_pb_text li::marker {
    color:lightsalmon;
  }
.et_pb_text li:not(:last-child) {
    margin-bottom:1em;
}

/* Woo Products */
#page-container .onsale {
    z-index:5;
}

.et_pb_shop ul.products {
    display: flex;
    flex-wrap: wrap;
}