/*!
  Custom CSS overrides and fixes
*/

.stat-item {
    display: none !important;
}

.payment-method-card.selected {
    display: none;
}

@media (max-width: 767px) {
    .all_programs_training .all_program_image {
        height: unset !important;
        width: unset !important;
    }
}

p.header-call.popmake-4001 {
    display: none;
}

p.header-call.popmake-3999 {
    display: none;
}

p.header-whatsapp.popmake-3986 {
    display: none;
}

p.header-whatsapp.popmake-3990 {
    display: none;
}

/* Disable all GSAP animations */
[data-anim] {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
}

/* Disable animation delays */
[data-anim-delay] {
    animation-delay: 0s !important;
    transition-delay: 0s !important;
}

/* Force show elements */
.textAnimParent,
.textAnimChild {
    opacity: 1 !important;
    transform: none !important;
}

.post-type-archive-product ul.products li.product {
    position: relative;
}

.post-type-archive-product ul.products li.product img {
    border-radius: 15px;
}

div#category-products-container .tabs-view-more-container {
    display: none !important;
}

@media(min-width: 768px) {
    .woocommerce.woocommerce-shop main.main {
        padding: 0px 40px;
        margin-top: 150px;
    }
}

.menu-item__image img {
    max-width: 50% !important;
}

.woocommerce-page .nav a {
    color: #000;
}

.regular-price svg {
    width: 16px !important;
    height: 16px !important;
}

.woocommerce-checkout-review-order {
    display: flex !important;
    justify-content: center !important;
    gap: 50px;
    padding: 20px 0px !important;
}

.woocommerce-additional-fields {
    display: none !important;
}

.woocommerce-billing-fields {
    margin-top: 50px;
}

.information-review {
    padding: 20px;
}

.course-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.course-card {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    width: calc(50% - 20px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
}

.course-image img {
    width: 100px;
    height: auto;
    border-radius: 8px;
    margin-right: 10px;
}

.course-details {
    flex: 1;
}

[lang=ar] .form-field__row > * {
    flex-direction: row;
}

.course-details h4 {
    margin-top: 0;
}

/* Main wrapper */
.woocommerce-billing-fields__field-wrapper {
    max-width: 100%;
    margin: 0 auto;
}

/* Form row styling */
.form-row {
    margin-bottom: 1.5rem !important;
    padding: 0 !important;
}

.all_program_image-container > img {
    border-radius: 0 !important;
}

/* Label styling */
.form-row label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

/* Required asterisk */
.required {
    color: #dc2626;
    text-decoration: none;
    font-weight: normal;
    border: 0;
}

/* Input wrapper */
.woocommerce-input-wrapper {
    display: block;
    width: 100%;
}

/* Input fields styling */
.woocommerce-input-wrapper input[type="text"],
.woocommerce-input-wrapper input[type="tel"],
.woocommerce-input-wrapper input[type="email"],
.woocommerce-input-wrapper select,
.select2-container .select2-selection--single {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    background-color: #fff;
    font-size: 0.875rem;
    color: #1f2937;
    transition: border-color 0.2s ease;
    outline: none !important;
    min-height: 45px;
}

/* Select2 specific styling */
.select2-container .select2-selection--single {
    height: auto;
    padding: 0.75rem 1rem;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: normal;
    padding: 0;
    color: #1f2937;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100%;
    right: 1rem;
}

/* Focus states */
.woocommerce-input-wrapper input:focus,
.woocommerce-input-wrapper select:focus,
.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

/* Grid layout for first/last name */
.form-row-first,
.form-row-last {
    width: 49% !important;
    float: left;
    clear: none;
}

.form-row-last {
    float: right;
}

/* Full width fields */
.form-row-wide {
    width: 100% !important;
    clear: both;
}

/* Optional text styling */
.optional {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: normal;
}

/* Placeholder styling */
.woocommerce-input-wrapper input::placeholder {
    color: #9ca3af;
}

/* Error state */
.woocommerce-invalid input {
    border-color: #dc2626;
}

/* Success state */
.woocommerce-validated input {
    border-color: #059669;
}

/* Responsive styles */
@media (max-width: 768px) {
    .form-row-first,
    .form-row-last {
        width: 100% !important;
        float: none;
    }

    .woocommerce-billing-fields__field-wrapper {
        padding: 0 1rem;
    }
}

/* Hide screen reader text but maintain accessibility */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* Dropdown arrow customization */
.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #6b7280 transparent transparent transparent;
}

/* Input autofill background */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0px 1000px white inset;
    transition: background-color 5000s ease-in-out 0s;
}

/* Style for the product item container */
.checkout-product-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

/* Style for the product image */
.checkout-product-image img {
    width: 50px;
    height: 50px;
    border-radius: 5px;
    object-fit: cover;
}

/* Style for the product name */
.checkout-product-name {
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

.woocommerce-checkout .woocommerce-billing-fields h3 {
    margin: 30px 0px;
}

.information-review {
    padding: 20px;
}

.course-cards {
    display: flex;
    flex-direction: column;
}

.course-card.full-width {
    width: 100%;
    display: flex;
    align-items: center;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.course-image img {
    width: 100px;
    height: auto;
    border-radius: 8px;
    margin-right: 10px;
}

.course-details {
    flex: 1;
}

.course-details h4 {
    margin-top: 0;
}

.woocommerce td.product-name dl.variation dt {
    display: none;
}

html[lang="ar"] .page-template-page-blog .news_item-views {
    direction: ltr !important;
}

html[lang="ar"] .page-template-page-blog .news_item-likes span {
    margin: 0px 5px !important;
}

html[lang="ar"] .news_item-thumb {
    position: relative;
    display: block;
    width: 100%;
    height: 0;
    padding-top: 97.25%;
    border-radius: 8px 8px 8px 80px;
    overflow: hidden;
}

html[lang="ar"] .signature .program-link {
    left: 16px !important;
    right: unset !important;
}

html[lang="ar"] .signature .program:hover .program-link {
    bottom: 17%;
    left: 12%;
    right: unset;
    transition-delay: .4s;
}

/******** Register / Login **********/
.woocommerce-form-login,
.woocommerce-form-register {
    background: rgb(24 127 211 / 2%);
    border: none !important;
    padding: 50px !important;
    display: flex;
    flex-direction: column;
}

.woocommerce-form-login input,
.woocommerce-form-register input {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #EEEEEE;
    color: #9D9D9D;
    padding: 15px;
    font-weight: 600;
}

.woocommerce-form-login label,
.woocommerce-form-register label {
    color: #191919;
    font-size: 16px;
    font-weight: 600;
    line-height: 20px;
}

.woocommerce-form-login .form-row-wide,
.woocommerce-form-register .form-row-wide {
    margin-bottom: 15px !important;
}

.woocommerce-form-login .password-input span:after,
.woocommerce-form-register .password-input span:after {
    position: relative;
    top: 6px;
}

.woocommerce-form-login .woocommerce-form-login__submit,
.woocommerce-form-register .woocommerce-form-register__submit {
    background-color: #187FD3 !important;
    width: 100%;
    border-radius: 8px !important;
    color: #fff !important;
    padding-top: 15px !important;
    padding-bottom: 15px !important;
}

.woocommerce-form-login .lost_password a {
    color: #187FD3;
    font-size: 16px;
    font-weight: 600;
}

.woocommerce-form-login .woocommerce-form__label-for-checkbox {
    display: flex !important;
    align-items: center !important;
}

.woocommerce-form-login .woocommerce-form__label-for-checkbox input {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

.woocommerce-account h1.entry-title {
    color: #191919;
    font-weight: 600;
    font-size: 28px;
}

.woocommerce-account .entry-content .woocommerce h2 {
    color: #9D9D9D;
    font-weight: 400;
    font-size: 16px;
    margin-top: 15px;
}

.woocommerce-form-login p:nth-child(3) {
    order: 4;
    margin-top: 40px;
    margin-bottom: 0 !important;
}

.woocommerce-form-register .woocommerce-privacy-policy-text {
    margin-bottom: 30px;
}

.header-panel__user .user-icon {
    width: 12px !important;
    height: 12px !important;
    fill: white;
}

.header-panel__user .user-icon:hover {
    fill: #2e3948 !important;
}

.header--white .header-panel__user .user-icon {
    width: 12px !important;
    height: 12px !important;
    fill: #2e3948;
}

.show-burgermenu .header-panel__cart {
    color: #fff;
}

.show-burgermenu .header-panel__user .user-icon {
    fill: #fff;
}

.header-panel__btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.header-panel__btn .cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #007bff;
    color: #ffffff;
    font-size: 10px;
    font-weight: bold;
    border-radius: 50%;
    padding: 2px 6px;
    min-width: 16px;
    text-align: center;
}

/********** menu *********/
.active .header-panel__user .user-icon {
    fill: #2e3948 !important;
}

.active .header-panel__btn {
    border-color: #2e3948;
}

.header--white .header-panel__btn {
    border-color: #2e3948;
}

.footer-payment-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    width: 35% !important;
}

.footer-middle__payments {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    padding: 40px 0;
    gap: 40px;
}

.footer-middle__payments img {
    height: 30px;
    filter: grayscale(100%);
}

@media screen and (max-width: 767px) {
    .footer-middle__payments img {
        height: 24px;
    }

    .discount-badge {
        max-width: 25px;
    }

    .footer-payment-logos {
        width: 100% !important;
        gap: 40px;
    }
}

/****/
[lang=ar] .form-field input,
[lang=ar] .form-field textarea {
    unicode-bidi: unset !important;
}

.postid-2080 .outline-wrapper__item.section-scrolling__right .outline-item:nth-child(6) {
    opacity: 0;
}

.steps-link {
    font-weight: 500 !important;
}

.woocommerce-notices-wrapper {
    display: none !important;
}

.footer-top .footer-top__text > p {
    line-height: 1.2;
}

.payment-method-card > div {
    flex-wrap: wrap !important;
}

@media (min-width: 768px) {
    .all_programs_training .all_program_image {
        height: auto !important;
    }

    .blog-content p {
        font-size: 18px !important;
    }
}

.col-9:has(.blog-content__outer) {
    max-width: 100%;
}

.blog-content__inner .wp-caption {
    max-width: 100%;
}

html[lang="ar"] .blog-content #ez-toc-container {
    direction: rtl !important;
}

html #billing_company_field,
html #billing_address_1_field,
html #billing_address_2_field,
html #billing_city_field,
html #billing_postcode_field,
html #billing_country_field,
html #billing_state_field {
    display: block !important;
}

/* blog */
.blog-content h2:not(:first-child),
html[lang="ar"] .blog-content p strong {
    margin-top: 0;
    display: inline;
}

.section-title.faq-title span br {
    display: none !important;
}

.section-title.faq-title span::before {
    content: "\00a0";
}

.blog-content__inner h3,
.blog-content__inner p,
.blog-content__inner h2 span {
    margin-top: 30px;
    display: block;
}

#category-tabs li:not(.active) {
    border: 1px solid #187FD3;
    padding: 10px 15px;
    border-radius: 15px;
    color: black;
    background: #187fd312;
}

.faq-item {
    padding: 20px 40px !important;
}

html[lang="ar"] .grow-grid__item_content p,
html[lang="ar"] .grow-grid__item_title {
    text-align: right;
    direction: rtl;
}

.header-logo,
.header-wrapper {
    gap: 10px;
}

body:has(.hero--main-page) .header-logo svg {
    color: white;
}

body:has(.react-empowerment) .header-logo svg {
    color: black;
}

body:has(.hero--main-page) .active .header-logo svg {
    color: #2e3948 !important;
    opacity: 1 !important;
    display: block;
}

@media (max-width: 768px) {
    .rtl .product-grid-title {
        text-align: right;
    }

    .category-tabs-container.desktop {
        display: none;
    }

    .category-tabs-container.mobile {
        display: block !important;
    }
}

.slider-marquee__item {
    max-height: 250px !important;
    max-width: 250px !important;
}

.overview-signature {
    display: none;
}

@media (max-width: 400px) {
    .tharwah-sale-amount > span {
        font-size: 16px !important;
    }

    .tharwah-course-pricing {
        gap: 0 !important;
    }
}

@media (min-width: 769px) {
    .partners-slider-mobile {
        display: none;
    }
}

form > p {
    display: none;
}

header.header.header--white.show-burgermenu .header-logo svg {
    color: white;
}
