/* CSS for Global */

.gap-4 {
  gap: 4px;
}

#scrollUp {
  bottom: 120px !important;
}

.woocommerce-page #vt_error_notification,
.woocommerce-page #vt_added_to_cart_notification {
  top: 16%;
}

@media (min-width: 1366px) and (max-width: 1600px) {
  .space.left {
    padding-left: clamp(20px, 6.89vw, 200px) !important;
  }

  .space.right {
    padding-right: clamp(20px, 6.89vw, 200px) !important;
  }
}

@media (min-width: 992px) {

  .mobile-nav-items {
    display: none;
  }

}

@media (max-width: 992px) {

  .mobile-hidden {
    display: none !important;
  }

  #menu-main-menu li.menu-item {
    font-size: 25px;
  }

  .header-mobile-wrap-second-col .btn-main {
    font-size: 25px;
    height: 46px;
    display: flex;
    flex-direction: row;
    align-items: center;
    border-radius: 28px;
  }

  .mobile-nav-items {
    display: flex;
    align-items: center;
  }

  .login-link {
    display: flex;
    align-items: center;
  }

  .dark-mode .icon-user path {
    fill: #FFF;
  }

  .sec-mobile-col {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .mobile-nav-items {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .mobile-nav-items svg {
    width: 20px;
    height: 20px;
  }

  .login-link {
    display: flex;
    align-items: center;
    gap: 5px;
  }

  .mobile-nav-items .dropdown {
    width: 190px;
  }

  .mobile-nav-items .cart-link {
    display: flex;
    align-items: center;
  }
}

/* CSS for Contact Form */

.contact-form-wrapper .is-layout-flex {
  display: flex;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wpcf7 input,
.wpcf7-select,
.wpcf7-textarea {
  padding-block: clamp(5px, 0.52vw, 10px);
  padding-left: clamp(5px, 0.52vw, 10px);
  padding-right: clamp(7.5px, 0.784vw, 15px);
  font-size: clamp(13px, 0.72vw, 14px);
  border-radius: 4px;
  border-top: 1px solid #fff;
  border-left: 1px solid #fff;
  border-right: 1px solid #fff;
  border-bottom: 1px solid #fff;
  font-family: "Geologica-Medium", sans-serif;
  /* background-color: #484848; */
  /* color: #fff; */
  border: 1px solid #484848;
  background-color: #e1e1e1;
}

.wpcf7 input:not(.wpcf7-submit),
.wpcf7-select {
  width: 100%;
}

.wpcf7 input.wpcf7-submit {
  cursor: pointer;
  min-width: 100px;
  margin-bottom: 0;
}

.wpcf7-form.init {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.wpcf7-form.init p:last-of-type {
  flex: 0 0 100%;
}

.conditional-textarea {
  flex: 100%;
}

.conditional-textarea .wpcf7-textarea {
  width: 100%;
}

.contact-form-wrapper .wp-block-columns {
  gap: 20px;
}

.contact-form-wrapper .wp-block-columns figure {
  margin: 0;
}

.wpcf7-form.init .wpcf7-form-control-wrap .wpcf7-list-item {
  margin-left: 0;
}

.wpcf7-form.init .wpcf7-form-control-wrap input[type="checkbox"] {
  display: inline-block;
  width: auto;
}

#customer_login form .form-row label.custom-consent {
  padding: 0;
}

@media (max-width: 991.98px) {
  .contact-form-wrapper .wp-block-columns {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
}

@media (max-width: 575.98px) {
  .wpcf7-form.init {
    margin-bottom: 32px;
  }

  .wpcf7-form.init p {
    flex: 0 0 100%;
  }

  .conditional-textarea .wpcf7-textarea {
    width: 100%;
  }
}

/* CSS for Tutor Page */

.video-overlay-img-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  z-index: 2;
}

.video-overlay-img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.video-overlay-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.stroke-red .a {
  stroke: #d8042a;
}

/* CSS for Cart */

.woocommerce .woocommerce-cart-form,
.dark-mode .woocommerce .woocommerce-cart-form {
  background: rgba(238, 240, 248, 0.85);
}

.woocommerce-cart table.cart td.actions .coupon .input-text,
.woocommerce-cart table.cart td.actions .coupon .button {
  min-width: 150px;
  height: 100%;
}

.woocommerce-cart-form__cart-item dl.variation dt,
.woocommerce-cart-form__cart-item dl.variation dd {
  display: inline-block;
}

dl.variation dd {
  margin-left: 0;
}

.woocommerce-page table.cart td.actions .coupon {
  height: 36px;
}

.woocommerce-cart table.cart img {
  width: 42px;
}

.woocommerce .cart-collaterals .cart_totals,
.woocommerce-page .cart-collaterals .cart_totals {
  width: 40%;
}

.woocommerce-page table.cart td.actions .button[name="update_cart"] {
  display: none;
}

@media (min-width: 1400px) {
  .woocommerce .woocommerce-cart-form,
  .dark-mode .woocommerce .woocommerce-cart-form,
  .woocommerce .cart-collaterals,
  .woocommerce-page .cart-collaterals {
    width: 75%;
    margin: 0 auto;
  }
}

@media only screen and (max-width: 768px) {
  .woocommerce .cart-collaterals .cart_totals,
  .woocommerce-page .cart-collaterals .cart_totals {
    width: 50%;
  }

  .woocommerce table.shop_table_responsive tr td::before,
  .woocommerce-page table.shop_table_responsive tr td::before {
    color: #000;
  }
}

/* CSS for Header */

.cart-link {
  position: relative;
}

.cart-count-indicator {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #d8042a;
  color: #fff;
  border-radius: 50%;
  padding: 2px 7px;
  font-size: 12px;
  font-weight: bold;
  line-height: 1;
  min-width: 20px;
  text-align: center;
  z-index: 2;
}

.dark-mode .cart-link svg path {
  fill: #fff !important;
}

.dropdown-menu ul .dropdown-item a {
  background: transparent;
  padding: 0;
}

.dropdown-menu ul .dropdown-item a:hover {
  background: transparent;
}

.dropdown-menu ul .dropdown-item:hover a {
  color: #d8042a;
}

.dark-mode header .dropdown-menu ul .dropdown-item:hover a {
  color: #d8042a;
}

.dark-mode .burger>div {
    background-color: #FFF;
}

@media screen and (max-width: 1300px) {

.dark-mode .header-mobile-wrap {
    background-color: #1b1b1b;
}

}

@media screen and (max-width: 500px) {

  .woocommerce .woocommerce-breadcrumb {
      padding-inline: 20px !important;
  }

}

/* CSS for Player */

.video-js {
  width: 100%;
  height: 100%;
}

.dark-mode .video-box.active {
  background: none;
}

/* CSS for My Library Page */

/* Force grid layout and override any existing styles */
.my-videos .woocommerce.custom-listing,
.my-videos .woocommerce,
.my-videos .woocommerce-page {
  margin-top: 0 !important;
}

.my-videos .products,
.my-videos ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
  gap: 30px !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  /* Override any flex or float layouts */
  flex-direction: unset !important;
  flex-wrap: unset !important;
  justify-content: unset !important;
}

.my-videos .products li,
.my-videos ul.products li,
.my-videos .my-video-item {
  width: 100% !important;
  max-width: none !important;
  min-width: 280px !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  flex: none !important;
}

/* Additional overrides for common WooCommerce classes */
.my-videos .woocommerce ul.products li.product,
.my-videos .woocommerce-page ul.products li.product {
  width: 100% !important;
  float: none !important;
  clear: none !important;
  margin: 0 !important;
}

.my-videos .filter-select {
  padding: clamp(8px, 0.625vw, 12px) clamp(12px, 0.9375vw, 18px);
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background-color: #fff;
  font-size: clamp(14px, 0.875vw, 16px);
  color: #374151;
  min-width: 140px;
  transition: all 0.3s ease;
}

.my-videos .filter-select:focus {
  outline: none;
  border-color: #d8042a;
  box-shadow: 0 0 0 3px rgba(216, 4, 42, 0.1);
}

.my-videos .product-filters {
  align-items: center;
  flex-wrap: wrap;
}

.my-videos h1.text-52 {
  margin: 0;
  color: #1f2937;
}

.dark-mode .my-videos h1.text-52 {
  color: #fff;
}

.dark-mode .my-videos .filter-select {
  background-color: #374151;
  border-color: #4b5563;
  color: #fff;
}

.dark-mode .my-videos .filter-select:focus {
  border-color: #d8042a;
  box-shadow: 0 0 0 3px rgba(216, 4, 42, 0.1);
}

.no-products-message {
  text-align: center;
  color: #6b7280;
  font-style: italic;
  grid-column: 1 / -1;
  padding: 60px 20px;
}

.dark-mode .no-products-message {
  color: #9ca3af;
}

.product-filters
  .select2-container
  .select2-selection--single
  .select2-selection__rendered {
  padding-block: 0;
}

.product-filters
  .select2-container
  .select2-selection--single
  .select2-selection__arrow {
  transform: translateY(-75%) rotate(45deg) !important;
}

@media (max-width: 768px) {
  .my-videos .products {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
  }

  .my-videos .product-filters {
    width: 100%;
    justify-content: center;
  }

  .my-videos .filter-select {
    min-width: 120px;
  }
}

@media (max-width: 575px) {
  .my-videos .products {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .my-videos .product-filters {
    gap: 12px;
  }

  .my-videos .flex.gap-50.space-between {
    flex-direction: column;
    gap: 20px !important;
    align-items: flex-start;
  }
}

/* CSS for My Library Product Cards */

/* Override any existing WooCommerce product styles */
.my-videos .woocommerce ul.products li.product,
.my-videos .woocommerce-page ul.products li.product,
.my-videos ul.products li.product,
.my-video-item {
  border: 1px solid #e1e1e1 !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  transition: all 0.3s ease !important;
  background: #fff !important;
  position: relative !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  display: block !important;
  flex: none !important;
}

.my-videos .woocommerce ul.products li.product:hover,
.my-videos .woocommerce-page ul.products li.product:hover,
.my-videos ul.products li.product:hover,
.my-video-item:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
  border-color: #d8042a !important;
}

.my-video-item .product-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.my-video-item .product-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.my-video-item .product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.my-video-item:hover .product-image img {
  transform: scale(1.05);
}

.my-video-item .play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
}

.my-video-item:hover .play-overlay {
  opacity: 1;
  background: rgba(216, 4, 42, 0.9);
}

.my-video-item .product-info {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.my-video-item .product-title-link {
  text-decoration: none;
  color: inherit;
  margin-bottom: 12px;
}

.my-video-item .product-title-link:hover h2 {
  color: #d8042a;
}

.my-video-item .woocommerce-loop-product__title {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
  font-family: "Geologica-Bold", sans-serif;
}

.my-video-item .product-description {
  color: #666;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 16px;
  flex: 1;
}

.my-video-item .product-meta {
  margin-bottom: 20px;
}

.my-video-item .meta-row {
  margin-bottom: 8px;
}

.my-video-item .meta-label {
  font-weight: 600;
  color: #333;
}

.my-video-item .product-instrument,
.my-video-item .product-level,
.my-video-item .product-evolution,
.my-video-item .product-tutor {
  font-size: 14px;
  color: #666;
  line-height: 1.4;
}

.my-video-item .product-progress {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
}

.my-video-item .progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.my-video-item .progress-label {
  font-weight: 600;
  color: #333;
  font-size: 14px;
}

.my-video-item .progress-percentage {
  font-weight: 700;
  color: #d8042a;
  font-size: 14px;
}

.my-video-item .progress-bar {
  width: 100%;
  height: 6px;
  background-color: #f0f0f0;
  border-radius: 3px;
  overflow: hidden;
}

.my-video-item .progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #d8042a, #532293);
  transition: width 0.3s ease;
  border-radius: 3px;
}

.my-video-item .product-actions {
  margin-top: auto;
}

.my-video-item .view-level-btn {
  display: inline-block;
  width: 100%;
  padding: 14px 20px;
  text-align: center;
  background: linear-gradient(135deg, #d8042a, #532293);
  color: white !important;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-family: "Geologica-Medium", sans-serif;
}

.my-video-item .view-level-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(216, 4, 42, 0.3);
  color: white !important;
  text-decoration: none;
}

.my-video-item .view-level-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(216, 4, 42, 0.2);
}

@media (max-width: 768px) {
  .my-video-item .product-info {
    padding: 20px;
  }

  .my-video-item .woocommerce-loop-product__title {
    font-size: 18px;
  }

  .my-video-item .product-description {
    font-size: 13px;
  }

  .my-video-item .view-level-btn {
    padding: 12px 16px;
    font-size: 14px;
  }

  .my-video-item .play-overlay {
    width: 50px;
    height: 50px;
  }

  .my-video-item .play-overlay svg {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 575px) {
  .my-video-item:hover {
    transform: translateY(-4px);
  }

  .my-video-item .product-info {
    padding: 16px;
  }
}

/* CSS for Single Product */

td.optionscol.attribute_pa_course_type {
  display: none;
}

.dark-mode .available-levels-wrapper .available-level .title {
  color: #fff;
}

/* CSS for Product Archive */

.post-type-archive-product .product-attibutes-wrapper .attribute-frequency,
.post-type-archive-product .product-attibutes-wrapper .attribute-course-type {
  display: none;
}

.related.products .product-attibutes-wrapper .attribute-frequency,
.related.products .product-attibutes-wrapper .attribute-course-type {
  display: none;
}

@media (max-width: 768px) {

  .woocommerce .shop-sort-controls {
      display: flex;
      flex-direction: column-reverse;
      align-items: flex-start !important;
  }

  .woocommerce .shop-sort-controls .woocommerce-result-count {
    align-self: center;
  }

}

@media (max-width: 408px) {

  .woocommerce .shop-sort-controls .right-controls {
      flex-direction: column;
  }

}

/* CSS for Home */

.video-close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tutors-carousel-nav .tutors-prev-btn,
.tutors-carousel-nav .tutors-next-btn {
  border: none;
  outline: none;
}

@media (max-width: 768px) {
  .gradient-bg .titles-horizontal {
    font-size: 18px;
    text-align: center;
  }
}

/* CSS for Login Page */

.dark-mode #customer_login form .form-row label,
.dark-mode #customer_login form .woocommerce-form-login__rememberme span,
.dark-mode #customer_login form .lost_password a {
  color: #fff;
}

.woocommerce-form-login img.dark-mode,
.woocommerce-form-register img.dark-mode {
  display: none;
}

.dark-mode .woocommerce-form-login img.dark-mode,
.dark-mode .woocommerce-form-register img.dark-mode {
  display: block;
}

.woocommerce-form-login img.light-mode,
.woocommerce-form-register img.light-mode {
  display: block;
}

.dark-mode .woocommerce-form-login img.light-mode,
.dark-mode .woocommerce-form-register img.light-mode {
  display: none;
}

.woocommerce-lost-password.woocommerce-account .woocommerce {
  padding-left: clamp(20px, 10.41vw, 200px);
  padding-right: clamp(20px, 10.41vw, 200px);
  padding-top: clamp(25px, 2.6vw, 50px);
}

.woocommerce-lost-password .woocommerce .woocommerce-message {
  width: fit-content;
}

/* CSS for Filters */

.widget.widget-woof {
  position: sticky;
  top: 35px;
}

.filters-list {
  position: sticky;
  top: 35px;
}

/* CSS for Checkout */

form.woocommerce-checkout
  .woocommerce-terms-and-conditions-wrapper
  .woocommerce-privacy-policy-text {
  display: none;
}

form.woocommerce-checkout
  .woocommerce-terms-and-conditions-wrapper
  .form-row
  label {
  color: #000;
  font-size: clamp(12px, 0.72vw, 14px);
  padding-left: none;
}

.dark-mode #customer_login form .form-row label a {
  color: #d8042a;
}

/* CSS for Privacy Policy */

.privacy-policy .wp-block-table table {
  border-collapse: collapse;
  border: 2px solid #333;
}

.privacy-policy .wp-block-table table td {
  border: 2px solid #333;
  padding: 12px;
}

.dark-mode.privacy-policy .wp-block-table table {
  border: 2px solid #fff;
}

.dark-mode.privacy-policy .wp-block-table table td {
  border: 2px solid #fff;
}

/* CSS for Footer */

footer .social-icons .instagram svg path,
footer .social-icons .tiktok svg path,
footer .social-icons .youtube svg path {
  stroke: #FFF;
}

.app-links a {
  max-height: 57px;
}

@media (max-width: 768px) {

  footer {
    padding-top: clamp(80px, 10.6vw, 300px) !important;
  }

  .footer-wrapper {
    flex-direction: row !important;
    flex-wrap: wrap !important;
  }

  .footer-wrapper .text-18 {
    line-height: 1;
  }

  footer .social-icons {
    gap: 10px;
    margin-top: 0;
  }

  .footer-secondary-wrapper {
    flex-direction: column-reverse !important;
  }

  footer #menu-footer-menu-small.ul-footer-menu-small {
    flex-direction: row;
    flex-wrap: wrap;
  }

  footer #menu-footer-menu-small.ul-footer-menu-small li {
    font-size: clamp(10px, 0.72vw, 14px);
    flex: 0 calc(50% - 10px);
  }

}

/* Filters */

@media (min-width: 992px) {

  .mobile-sort-controls {
    display: none;
  }

  .shop-sidebar-wrapper .mobile-only {
    display: none;
  }

  .filters-list .mobile-only {
    display: none;
  }

}

@media (max-width: 991px) {

  .shop-sidebar-wrapper {
    display: flex;
    position: fixed;
    left: -100%;
    bottom: 0;
    top: 0;
    z-index: 99999;
    width: 75%;
    padding-left: 40px;
    background: #f1f1f1;
    transition: left 0.3s ease-in-out;
    flex-direction: column;
    justify-content: center;
  }

  .dark-mode .shop-sidebar-wrapper {
    background: #1b1b1b;
  }

  .shop-sidebar-wrapper.active {
      left: 0;
  }

  .filters-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    padding: 0;
  }

  .dark-mode .filters-toggle-btn {
    color: #fff;
  }

  .filters-toggle-btn svg {
    transform: rotate(90deg);
    width: 25px;
    height: 25px;
  }

  .filters-close-btn {
    position: absolute;
    top: 0;
    left: 100%;
    width: 50px;
    height: 50px;
    z-index: 100;
    background: #d8042a;
    border: none;
    cursor: pointer;
  }

  .filters-close-btn svg {
    fill: #FFF;
  }

  .admin-bar .filters-close-btn {
    top: 46px;
  }

  .dark-mode .filters-close-btn {
    background: #FFF;
    border: none;
  }

  .dark-mode .filters-close-btn svg {
    fill: #1F1F1F;
  }

  .shop-sidebar-wrapper .mobile-only p,
  .filters-list .mobile-only p {
    font-size: 20px;
  }

  .filters-list {
    display: flex;
    position: fixed;
    left: -100%;
    bottom: 0;
    top: 0;
    z-index: 99999;
    width: 75%;
    padding-left: 40px;
    background: #f1f1f1;
    transition: left 0.3s ease-in-out;
    flex-direction: column;
    justify-content: center;
  }

  .filters-list.active {
    left: 0;
  }

  .dark-mode .filters-list {
    background: #1b1b1b;
  }

  .filters-list .mobile-only p {
    margin-bottom: 30px;
  }

}