/* ======================================================== */
/* ================== General Styles ====================== */
/* ======================================================== */

body,
.ast-separate-container {
    background-color: #231F20 !important;
}

@media (max-width: 921px) {

    body,
    .ast-separate-container {
        background-color: #231F20 !important;
        background-image: none;
    }
}

@media (max-width: 544px) {

    .ast-separate-container .ast-article-single:not(.ast-related-post),
    .woocommerce.ast-separate-container .ast-woocommerce-container,
    .ast-separate-container .error-404,
    .ast-separate-container .no-results,
    .single.ast-separate-container .site-main .ast-author-meta,
    .ast-separate-container .related-posts-title-wrapper,
    .ast-separate-container .comments-count-wrapper,
    .ast-box-layout.ast-plain-container .site-content,
    .ast-padded-layout.ast-plain-container .site-content,
    .ast-separate-container .ast-archive-description {
        background-color: #231F20 !important;
        background-image: none;
    }
}

/*#tp-s-d3baae5-0575, #tp-s-d3baae5-0575:focus, #userlr2dff57c, #userlr2dff57c:focus, #passwordlr2dff57c, #passwordlr2dff57c:focus, #wpforms-35-field_0, #wpforms-35-field_0:focus, #wpforms-35-field_0-last, #wpforms-35-field_0-last:focus, #wpforms-35-field_1, #wpforms-35-field_1:focus, #wpforms-35-field_2, #wpforms-35-field_2:focus, #first_namelr220659f, #first_namelr220659f:focus, #last_namelr220659f, #last_namelr220659f:focus, #user_emaillr220659f,#user_emaillr220659f:focus, #user_passwordlr220659f, #user_passwordlr220659f:focus, #user_conf_passwordlr220659f, #user_conf_passwordlr220659f:focus, form#search-bar-00c411b input[type=text], form#search-bar-00c411b input[type=text]:focus, #user_loginlr2dff57c, #user_loginlr2dff57c:focus, #billing_first_name, #billing_first_name:focus, #billing_last_name, #billing_last_name:focus, #billing_company, #billing_company:focus, #billing_phone, #billing_phone:focus, #select2-billing_country-container, #select2-billing_country-container:focus, #billing_address_1, #billing_address_1:focus, #billing_address_2, #billing_address_2:focus, #billing_city, #billing_city:focus, #select2-billing_state-container, #select2-billing_state-container:focus, #billing_postcode, #billing_postcode:focus, #billing_email, #billing_email:focus, #order_comments, #order_comments:focus, #Field-numberInput, #Field-numberInput:focus, #Field-expiryInput, #Field-expiryInput:focus, #Field-cvcInput, #Field-cvcInput:focus
{
    color: black !important;
}*/


/* ======================================================== */
/* =================== Checkout Page ====================== */
/* ======================================================== */
.woocommerce-js h2 {
    margin-bottom: 0px;
}

#primary.content-area.primary {
    padding-top: 8em;
    margin-top: 0px;
    margin-bottom: 0px;
    background-image: url(/wp-content/uploads/2025/10/bg-03-free-img.webp);
    --background-overlay: '';
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
}

#add_payment_method #payment div.payment_box::before,
.woocommerce-cart #payment div.payment_box::before,
.woocommerce-checkout #payment div.payment_box::before,
.woocommerce-notices-wrapper {
    display: none;
}

#wc-stripe-payment-method-instructions-card {
    margin-bottom: 20px;
}

.astra-dark-mode-enable .select2-container .select2-selection--single,
.astra-dark-mode-enable .select2-dropdown,
.astra-dark-mode-enable select {
    color: black !important;
}

.astra-dark-mode-enable form .form-row textarea,
.astra-dark-mode-enable input[type=email],
.astra-dark-mode-enable input[type=number],
.astra-dark-mode-enable input[type=password],
.astra-dark-mode-enable input[type=reset],
.astra-dark-mode-enable input[type=search],
.astra-dark-mode-enable input[type=tel],
.astra-dark-mode-enable input[type=text],
.astra-dark-mode-enable input[type=url],
.astra-dark-mode-enable textarea {
    background-color: var(--ast-global-color-secondary, --ast-global-color-5);
    color: black !important;
    border: 1px solid var(--ast-border-color)
}

.woocommerce-SavedPaymentMethods label,
.woocommerce-SavedPaymentMethods-saveNew label {
    color: black !important;
}

.woocommerce-page.woocommerce-checkout .woocommerce-order h2.woocommerce-order-details__title,
.woocommerce-page.woocommerce-checkout .woocommerce-order h2.woocommerce-column__title {
    background-color: transparent;
    color: var(--ast-global-color-0);
}

.woocommerce-order-details,
.woocommerce-customer-details {
    background-color: rgba(0, 0, 0, 0.2);
}

.woocommerce-order-details .order-again {
    display: none;
}

/* ======================================================== */
/* ================ Single Course Page ==================== */
/* ======================================================== */

.tutor-wrap {
    padding-top: 8em !important;
    margin-top: 0px !important;
    margin-bottom: 0px !important;
    background-image: url(/wp-content/uploads/2025/10/bg-03-free-img.webp) !important;
    --background-overlay: '';
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
}

/* .tutor-meta.tutor-course-details-info, .tutor-course-details-instructors  {
    display: none;
} */

.tutor-card.tutor-sidebar-card,
.tutor-single-course-sidebar .tutor-single-course-sidebar-more {
    background-color: rgba(0, 0, 0, 0.2);
    border: 2px solid white !important;
}

.tutor-card-footer {
    border-top: 1px solid white !important;
}

.tutor-single-course-sidebar .tutor-sidebar-card .tutor-card-body {
    background-color: transparent;
}

.tutor-single-course-sidebar .tutor-single-course-sidebar-more .tutor-course-details-widget {
    background-color: rgba(0, 0, 0, 0.2);
    border: none;
}

.tutor-btn-primary {
    color: black;
    background-color: white;
    border-radius: 100px;
    border: 0px;
}

.tutor-btn-primary:hover {
    color: var(--ast-global-color-0);
    background-color: white;
}

.tutor-color-secondary {
    color: white;
}

.tutor-icon-level,
.tutor-icon-ribbon-o,
.tutor-icon-clock-line {
    color: var(--ast-global-color-0);
}

.tutor-course-details-actions.tutor-mt-12.tutor-mt-sm-0 a {
    color: white;
}

.tutor-course-details-actions.tutor-mt-12.tutor-mt-sm-0 a:hover {
    color: var(--ast-global-color-0);
}

.tutor-modal-content {
    background-color: #231F20;
    border: none;
}

.tutor-form-control {
    color: black;
}

.tutor-course-details-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

h2.tutor-fs-5.tutor-fw-bold.tutor-color-black.tutor-mb-12,
.tutor-fs-5.tutor-fw-medium.tutor-color-black.tutor-mb-16,
h3.tutor-course-details-widget-title.tutor-fs-5.tutor-fw-bold.tutor-color-black.tutor-mb-16 {
    color: var(--ast-global-color-0);
}

/* ======================================================== */
/* =============== Courses Archive Page =================== */
/* ======================================================== */

a.tutor-btn.tutor-btn-outline-primary.tutor-btn-md.tutor-btn-block.product_type_simple.add_to_cart_button.ajax_add_to_cart {
    color: black;
    background-color: white;
    border-radius: 100px;
    border: none;
    padding: 7px 14px;
}

a.tutor-btn.tutor-btn-outline-primary.tutor-btn-md.tutor-btn-block.product_type_simple.add_to_cart_button.ajax_add_to_cart:hover {
    color: var(--ast-global-color-0);
    background-color: white;
    border: none;
}

.tutor-card-footer {
    padding: 16px 0px;
}

.tutor-card:not(.tutor-no-border) {
    border: none;
}

.tutor-card.tutor-course-card {
    background: none;
}
/* ================================================================== */
.post-type-archive-courses .custom-bg-card,
.page-id-XX .custom-bg-card {  /* ← replace XX with your actual page ID if it's a custom page */
    position: relative;
    overflow: hidden;
    min-height: 360px;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: cover !important;
}

.custom-bg-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.35));
    z-index: 1;
}

.custom-bg-card > * {
    position: relative;
    z-index: 2;
    color: white !important;
}

/* Force background on cards that might be overridden */
.tutor-course-loop-wrap .custom-bg-card {
    background-image: inherit !important;
}



/* ================================================================== */

/* ======================================================== */
/* =================== Dashboard Page ===================== */
/* ======================================================== */
.tutor-dashboard-content-inner .tutor-card {
    background-color: transparent;
}

.woocommerce-page table.shop_table thead {
    color: var(--ast-global-color-0);
    background-color: transparent;
}

.woocommerce-page table.shop_table {
    border: 1px solid white;
}

.woocommerce-page table.shop_table tbody td {
    border: 1px solid white;
}

.tutor-nav-link {
    color: white
}

.tutor-dashboard .tutor-frontend-dashboard-header {
    padding-bottom: 5px;
    border-bottom: 1px solid white;
}

.tutor-frontend-dashboard-maincontent {
    background-color: rgba(0, 0, 0, 0.2);
    margin-top: 10px;
    padding: 10px;
}

.tutor-dashboard .tutor-frontend-dashboard-header:after {
    content: "";
    background: none;
}

/* Enrolled Courses - Full background image card with overlay */
.tutor-course-card-bg {
    border-radius: 12px;
    overflow: hidden;
    height: 360px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.tutor-course-card-overlay {
    background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.7) 100%);
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
}

.tutor-course-card-overlay .tutor-card-body {
    margin-top: auto;
    z-index: 1;
}

.tutor-course-card-overlay .tutor-course-name a,
.tutor-course-card-overlay .tutor-course-name {
    color: #fff !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

.tutor-course-card-overlay .tutor-loop-rating-wrap,
.tutor-course-card-overlay .tutor-progress-bar,
.tutor-course-card-overlay .tutor-price {
    color: #fff;
}

/* Responsive grid adjustments */
@media (max-width: 767px) {
    .tutor-grid-1 { grid-template-columns: 1fr; }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .tutor-grid-md-2 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .tutor-grid-lg-3 { grid-template-columns: repeat(3, 1fr); }
}

/* Mobile Bottom Navigation Bar */
.tutor-mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #e2e8f0;
    z-index: 1000;
    padding: 8px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

.tutor-mobile-bottom-nav .tutor-row {
    display: flex;
    justify-content: space-around;
}

.tutor-mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #64748b;
    font-size: 10px;
    padding: 4px 8px;
    flex: 1;
    text-align: center;
}

.tutor-mobile-nav-item i {
    font-size: 20px;
    margin-bottom: 4px;
}

.tutor-mobile-nav-item.active {
    color: var(--tutor-primary-color, #3b82f6);
}

.tutor-mobile-nav-item span {
    display: block;
    line-height: 1.2;
}

/* Increase bottom padding on main content to avoid overlap */
.tutor-pb-120 {
    padding-bottom: 120px !important;
}

.tutor-dashboard #tutor-dashboard-footer-mobile {
    z-index: 999;
}
.chaty-widget {
    z-index: 998;
}