@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@300;400;500;600;700&family=Rubik:wght@300;400;500;700&display=swap');

/* ==========================================================================
   BIENANDANZA CLASSES PORTAL - CUSTOM CSS
   Theme: Steps Dance Academy (Child/Modified Theme)
   Design System: Bienandanza Identity (Vivid Red & Elegant Typography)
   ========================================================================== */

/* Design System Variables */
:root {
    --brand-gold: #df0913;
    --brand-gold-hover: #a4070e;
    --brand-gold-light: #fff5f6;
    --bg-warm-canvas: #faf8f8;
    --bg-warm-card: #ffffff;
    --bg-warm-secondary: #f8f9fa;
    --text-dark: #212529;
    --text-muted: #868e96;
    --text-light: #495057;
    --border-warm: #f2e6e7;
    --shadow-soft: 0 8px 30px rgba(0, 0, 0, 0.03);
    --shadow-hover: 0 15px 40px rgba(223, 9, 19, 0.08);
    --radius-large: 15px;
    --radius-medium: 12px;
    --radius-small: 8px;
    --radius-pill: 30px;
    --transition-smooth: all 0.3s ease;
}

/* 1. Global Portal Font & Theme Enhancements */
.bienandanza-portal-container,
.bienandanza-single-clase-container,
.bienandanza-paywall {
    font-family: 'Rubik', sans-serif;
    color: var(--text-dark);
}

.bienandanza-portal-container h1,
.bienandanza-portal-container h2,
.bienandanza-portal-container h3,
.bienandanza-portal-container h4,
.bienandanza-portal-container h5,
.bienandanza-portal-container h6,
.bienandanza-single-clase-container h1,
.bienandanza-single-clase-container h2,
.bienandanza-single-clase-container h3,
.bienandanza-single-clase-container h4,
.bienandanza-paywall h2,
.bienandanza-paywall h3,
.btn,
.pmpro_btn,
.pmpro_btn-submit,
.btn-outline-custom {
    font-family: 'Josefin Sans', sans-serif !important;
}

/* Custom buttons */
.btn-outline-custom {
    border: 1px solid var(--brand-gold) !important;
    color: var(--brand-gold) !important;
    background-color: transparent !important;
    border-radius: var(--radius-pill);
    font-weight: 600;
    padding: 10px 24px;
    transition: var(--transition-smooth) !important;
}

.btn-outline-custom:hover {
    background-color: var(--brand-gold) !important;
    color: #ffffff !important;
    border-color: var(--brand-gold) !important;
    box-shadow: 0 4px 12px rgba(223, 9, 19, 0.2);
}

/* 2. Login, Registration & PMPro Form Overrides */
/* Styling native PMPro login/register pages & standard WP wrappers */
#pmpro_login,
.pmpro_login,
#pmpro_checkout,
.pmpro_checkout_box {
    background: var(--bg-warm-card) !important;
    border: 1px solid var(--border-warm) !important;
    border-radius: var(--radius-large) !important;
    padding: 40px !important;
    box-shadow: var(--shadow-soft) !important;
    max-width: 600px !important;
    margin: 40px auto !important;
    font-family: 'Rubik', sans-serif !important;
    color: var(--text-dark) !important;
}

/* Table overrides for checkout */
#pmpro_level_table,
.pmpro_table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border: 1px solid var(--border-warm) !important;
    border-radius: var(--radius-small) !important;
    overflow: hidden !important;
    margin-bottom: 25px !important;
    width: 100% !important;
}

#pmpro_level_table th,
.pmpro_table th {
    background-color: var(--brand-gold-light) !important;
    color: var(--text-dark) !important;
    font-weight: 600 !important;
    border-bottom: 1px solid var(--border-warm) !important;
    padding: 15px !important;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

#pmpro_level_table td,
.pmpro_table td {
    padding: 15px !important;
    border-bottom: 1px solid var(--border-warm) !important;
    color: var(--text-light) !important;
    background-color: #ffffff !important;
}

/* Form fields customization */
#pmpro_login input[type="text"],
#pmpro_login input[type="password"],
.pmpro_checkout input[type="text"],
.pmpro_checkout input[type="email"],
.pmpro_checkout input[type="password"],
.pmpro_checkout input[type="tel"],
.pmpro_checkout select,
.pmpro_checkout textarea,
.login input[type="text"],
.login input[type="password"] {
    background-color: var(--bg-warm-secondary) !important;
    border: 1px solid var(--border-warm) !important;
    border-radius: var(--radius-small) !important;
    color: var(--text-dark) !important;
    padding: 12px 16px !important;
    width: 100% !important;
    outline: none !important;
    font-size: 0.95rem !important;
    box-shadow: none !important;
    transition: var(--transition-smooth) !important;
}

#pmpro_login input[type="text"]:focus,
#pmpro_login input[type="password"]:focus,
.pmpro_checkout input[type="text"]:focus,
.pmpro_checkout input[type="email"]:focus,
.pmpro_checkout input[type="password"]:focus,
.pmpro_checkout select:focus,
.login input[type="text"]:focus,
.login input[type="password"]:focus {
    border-color: var(--brand-gold) !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(223, 9, 19, 0.15) !important;
}

/* Labels custom styling */
.pmpro_checkout label,
#pmpro_login label {
    font-weight: 500 !important;
    color: var(--text-dark) !important;
    margin-bottom: 6px !important;
    display: inline-block !important;
    font-size: 0.9rem !important;
}

/* Form Buttons custom styling */
.pmpro_btn,
#pmpro_login .pmpro_btn,
#pmpro_login input[type="submit"],
.pmpro_checkout input[type="submit"],
#pmpro_checkout .pmpro_btn-submit,
#pmpro_checkout input[type="submit"],
.login input[type="submit"],
.pmpro_payment_method_flow input[type="submit"] {
    background-color: var(--brand-gold) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: var(--radius-pill) !important;
    padding: 12px 30px !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    cursor: pointer !important;
    box-shadow: 0 4px 15px rgba(223, 9, 19, 0.25) !important;
    transition: var(--transition-smooth) !important;
    display: inline-block !important;
}

.pmpro_btn:hover,
#pmpro_login input[type="submit"]:hover,
.pmpro_checkout input[type="submit"]:hover,
#pmpro_checkout .pmpro_btn-submit:hover,
.login input[type="submit"]:hover {
    background-color: var(--brand-gold-hover) !important;
    box-shadow: 0 6px 20px rgba(223, 9, 19, 0.35) !important;
    transform: translateY(-1px) !important;
}

/* Redirection and alert boxes styled elegantly */
.pmpro_message,
.pmpro_error,
.pmpro_success {
    border-radius: var(--radius-small) !important;
    padding: 15px 20px !important;
    font-size: 0.9rem !important;
    margin-bottom: 20px !important;
    font-weight: 500 !important;
    border: 1px solid transparent !important;
}

.pmpro_error,
.pmpro_message.pmpro_error {
    background-color: #fdf2f2 !important;
    color: #c81e1e !important;
    border-color: #f8b4b4 !important;
}

.pmpro_success,
.pmpro_message.pmpro_success {
    background-color: #f3faf5 !important;
    color: #0e6251 !important;
    border-color: #def7ec !important;
}

.pmpro_message.pmpro_alert {
    background-color: var(--brand-gold-light) !important;
    color: var(--text-dark) !important;
    border-color: var(--border-warm) !important;
}

/* Password Toggle Overrides */
div[class*="password"],
p[class*="password"],
li[class*="password"],
.pmpro_form_field-password,
.pmpro_form_field-confirm_password,
.pmpro_form_field-password_confirm,
.pmpro_form_field-confirm-password,
.pmpro_checkout-field-password,
.pmpro_checkout-field-confirm_password,
.pmpro_form-field-password,
.pmpro_form-field-confirm_password,
#pmpro_form_field-password,
#pmpro_form_field-confirm_password,
.login-password,
.user-pass,
.pmpro_login-field-password,
#pmpro_login p.login-password,
#pmpro_login p.user-pass,
#pmpro_login .pmpro_login-field-password {
    position: relative !important;
}

.pmpro_password-input-wrapper {
    position: relative !important;
    display: block !important;
    width: 100% !important;
}

div[class*="password"] input,
p[class*="password"] input,
li[class*="password"] input,
.pmpro_form_field-password input,
.pmpro_form_field-confirm_password input,
.pmpro_form_field-password_confirm input,
.pmpro_form_field-confirm-password input,
#pmpro_form_field-password input,
#pmpro_form_field-confirm_password input,
.pmpro_checkout input[type="password"],
#pmpro_login input[type="password"],
#pmpro_login input[type="text"],
#pmpro_login input[name="pwd"],
.login input[type="password"],
.login input[type="text"],
input[type="password"] {
    padding-right: 90px !important;
}

/* Position the password toggle wrapper absolutely at the bottom right of the container, perfectly centered with the 48px input */
.pmpro_btn-password-toggle,
button[class*="password-toggle"],
button.pmpro_btn-password-toggle-state,
.pmpro_btn-password-toggle-state {
    position: absolute !important;
    right: 15px !important;
    bottom: 12px !important;
    /* Vertically centered inside the 48px input */
    top: auto !important;
    transform: none !important;
    z-index: 10 !important;
    height: 20px !important;
    display: inline-flex !important;
    align-items: center !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    color: #df0913 !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    transition: var(--transition-smooth) !important;
    line-height: 1 !important;
    cursor: pointer !important;
    width: auto !important;
}

.pmpro_form_field-password-toggle button,
.pmpro_form_field-password-toggle .pmpro_btn,
button[id*="password-toggle"],
button[class*="password-toggle"]:hover,
button.pmpro_btn-password-toggle-state:hover,
.pmpro_btn-password-toggle-state:hover {
    color: #ffffff !important;
    background: transparent !important;
    box-shadow: none !important;
}

.pmpro_form_field-password-toggle button:focus,
.pmpro_form_field-password-toggle .pmpro_btn:focus,
button[id*="password-toggle"]:focus,
button[class*="password-toggle"]:focus,
button.pmpro_btn-password-toggle-state:focus {
    outline: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* Bulletproof fix for Current Password label and toggle button alignment on the Change Password page */
#change-password .pmpro_form_field-password_current,
.pmpro_form_field-password_current {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
}

#change-password .pmpro_form_field-password-toggle,
.pmpro_form_field-password_current .pmpro_form_field-password-toggle {
    position: static !important;
    display: flex !important;
    width: 100% !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 6px !important;
    height: auto !important;
    float: none !important;
}

#change-password .pmpro_form_field-password-toggle label,
.pmpro_form_field-password_current .pmpro_form_field-password-toggle label {
    position: static !important;
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
    font-weight: 500 !important;
    font-size: 0.9rem !important;
    text-transform: none !important;
    color: var(--text-dark) !important;
}

body.guest-portal-active #change-password .pmpro_form_field-password-toggle label,
body.guest-portal-active .pmpro_form_field-password_current .pmpro_form_field-password-toggle label {
    color: #ffffff !important;
}

#change-password .pmpro_form_input-password,
.pmpro_form_field-password_current input[type="password"] {
    width: 100% !important;
    padding-right: 90px !important;
}

/* Force the Show/Hide button to sit inside the input box on the right */
#change-password .pmpro_btn-password-toggle,
.pmpro_form_field-password_current .pmpro_btn-password-toggle {
    position: absolute !important;
    right: 15px !important;
    bottom: 12px !important;
    /* top: auto !important; */
    left: auto !important;
    z-index: 10 !important;
    margin: 0 !important;
}


/* Password Strength Indicator styling for Dark Theme Portal */
#pass-strength-result {
    display: block !important;
    text-align: center !important;
    font-weight: 600 !important;
    font-size: 0.88rem !important;
    padding: 10px 15px !important;
    border-radius: var(--radius-small) !important;
    border: 1px solid #2d2d2d !important;
    margin: 15px 0 20px 0 !important;
    transition: var(--transition-smooth) !important;
    background-color: #181818 !important;
    color: #8c8c8c !important;
}

#pass-strength-result.short {
    background-color: rgba(223, 9, 19, 0.15) !important;
    border-color: rgba(223, 9, 19, 0.45) !important;
    color: #ff3b46 !important;
}

#pass-strength-result.bad {
    background-color: rgba(223, 9, 19, 0.15) !important;
    border-color: rgba(223, 9, 19, 0.45) !important;
    color: #ff3b46 !important;
}

#pass-strength-result.good {
    background-color: rgba(243, 156, 18, 0.15) !important;
    border-color: rgba(243, 156, 18, 0.45) !important;
    color: #f39c12 !important;
}

#pass-strength-result.strong {
    background-color: rgba(46, 204, 113, 0.15) !important;
    border-color: rgba(46, 204, 113, 0.45) !important;
    color: #2ecc71 !important;
}

/* 3. Single Class Video Player Enhancement */
.video-container-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 widescreen aspect ratio */
    height: 0;
    overflow: hidden;
    background-color: #000000;
    box-shadow: var(--shadow-soft);
    border-radius: var(--radius-large);
    transition: var(--transition-smooth);
}

.video-container-wrapper:hover {
    box-shadow: var(--shadow-hover);
}

/* Related class hover animation */
.related-class-item {
    transition: var(--transition-smooth);
}

.related-class-item:hover {
    padding-left: 5px;
}

/* Comments custom styling */
#comments {
    border-top: 1px solid var(--border-warm);
    padding-top: 30px;
}

.comment-list .comment-body {
    background: var(--bg-warm-secondary);
    border: 1px solid var(--border-warm);
    border-radius: var(--radius-medium);
    padding: 20px;
    margin-bottom: 20px;
    transition: var(--transition-smooth);
}

.comment-list .comment-body:hover {
    border-color: var(--brand-gold);
    box-shadow: 0 4px 15px rgba(181, 163, 142, 0.05);
}

.comment-list .comment-meta {
    margin-bottom: 10px;
}

.comment-list .avatar {
    border-radius: 50%;
    margin-right: 15px;
    border: 1px solid var(--border-warm);
}

.comment-reply-title {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1.25rem;
    margin-bottom: 20px;
}

#commentform input[type="text"],
#commentform input[type="email"],
#commentform textarea {
    background-color: var(--bg-warm-secondary);
    border: 1px solid var(--border-warm);
    border-radius: var(--radius-small);
    padding: 12px;
    width: 100%;
    color: var(--text-dark);
    outline: none;
    transition: var(--transition-smooth);
}

#commentform textarea {
    min-height: 120px;
}

#commentform input[type="text"]:focus,
#commentform input[type="email"]:focus,
#commentform textarea:focus {
    border-color: var(--brand-gold);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(223, 9, 19, 0.12);
}

#commentform input[type="submit"] {
    background-color: var(--brand-gold);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-pill);
    padding: 10px 25px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(223, 9, 19, 0.2);
    transition: var(--transition-smooth);
    font-family: 'Josefin Sans', sans-serif !important;
}

/* 4. Elegant Header & Navbar Overrides (Static Site Aligned) */
#header {
    background: #ffffff !important;
    border-bottom: 1px solid var(--border-warm) !important;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.03) !important;
    position: relative !important;
}

.menu-section {
    background: transparent !important;
    padding: 15px 0 !important;
}

/* Site Branding */
h1.site-title,
p.site-title,
h1.site-title a,
p.site-title a {
    color: var(--text-dark) !important;
    font-family: 'Josefin Sans', sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    font-size: 1.35rem !important;
    transition: var(--transition-smooth) !important;
}

h1.site-title a:hover,
p.site-title a:hover {
    color: var(--brand-gold) !important;
}

p.site-description {
    font-family: 'Josefin Sans', sans-serif !important;
    font-size: 0.68rem !important;
    color: var(--brand-gold) !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    margin-top: 4px !important;
    font-weight: 600 !important;
}

/* Search Box and Icons */
.search-box i,
.search-box a,
.cart_icon i {
    color: var(--text-dark) !important;
    transition: var(--transition-smooth) !important;
}

.search-box i:hover,
.search-box a:hover,
.cart_icon i:hover {
    color: var(--brand-gold) !important;
}

/* Navigation Menu */
.nav-menu ul li a {
    color: var(--text-dark) !important;
    font-family: 'Josefin Sans', sans-serif !important;
    font-weight: 500 !important;
    font-size: 0.95rem !important;
    padding: 15px 12px !important;
    transition: var(--transition-smooth) !important;
}

.nav-menu ul li a:hover {
    color: var(--brand-gold) !important;
}

.nav-menu ul ul {
    border-color: var(--brand-gold) !important;
}

.nav-menu ul ul a {
    background: var(--text-dark) !important;
    color: #ffffff !important;
}

.nav-menu ul ul a:hover {
    background: var(--brand-gold) !important;
    color: #ffffff !important;
}

/* Mobile Hamburger Menu */
.mobile-menu i {
    color: var(--text-dark) !important;
}

.mobile-menu:hover i {
    color: var(--brand-gold) !important;
}

#commentform input[type="submit"]:hover {
    background-color: var(--brand-gold-hover);
    box-shadow: 0 6px 16px rgba(223, 9, 19, 0.3);
}

/* Custom Header Login/Logout & Profile Buttons */
.menu-item-loginout a {
    background-color: var(--brand-gold) !important;
    color: #ffffff !important;
    border-radius: var(--radius-pill) !important;
    padding: 8px 20px !important;
    margin-left: 10px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    font-size: 0.85rem !important;
    box-shadow: 0 4px 12px rgba(223, 9, 19, 0.15) !important;
    transition: var(--transition-smooth) !important;
    display: inline-block !important;
}

.menu-item-loginout a:hover {
    background-color: var(--brand-gold-hover) !important;
    color: #ffffff !important;
    box-shadow: 0 6px 15px rgba(223, 9, 19, 0.25) !important;
    transform: translateY(-1px) !important;
}

.menu-item-account a {
    color: var(--brand-gold) !important;
    font-weight: 600 !important;
    border: 1px solid var(--border-warm) !important;
    border-radius: var(--radius-pill) !important;
    padding: 8px 18px !important;
    margin-left: 10px !important;
    font-size: 0.85rem !important;
    text-transform: uppercase !important;
    transition: var(--transition-smooth) !important;
    display: inline-block !important;
}

.menu-item-account a:hover {
    background-color: var(--brand-gold-light) !important;
    border-color: var(--brand-gold) !important;
    color: var(--brand-gold) !important;
}

@media (min-width: 992px) {

    /* Align primary menu items nicely on desktop */
    .main-menu-navigation ul.mobile_nav {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
    }
}

@media (max-width: 991px) {

    .menu-item-loginout a,
    .menu-item-account a {
        margin: 10px 12px !important;
        display: block !important;
        text-align: center !important;
        max-width: 200px;
    }
}

/* Portal page-portal custom premium classes card & dashboard overrides */
.bienandanza-guest-welcome {
    transition: var(--transition-smooth);
}

.plan-card {
    transition: var(--transition-smooth) !important;
}

.plan-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: var(--shadow-hover) !important;
    border-top-color: var(--brand-gold-hover) !important;
}

.class-card-item img {
    transition: var(--transition-smooth) !important;
}

.class-card-item:hover img {
    transform: scale(1.05) !important;
}

.class-card-item .card {
    transition: var(--transition-smooth) !important;
}

.class-card-item:hover .card {
    transform: translateY(-6px) !important;
    box-shadow: var(--shadow-hover) !important;
}

/* Dynamic dot for active memberships */
.dot-active {
    animation: blink-animation 1.5s infinite alternate;
}

@keyframes blink-animation {
    from {
        opacity: 0.4;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1.1);
    }
}

/* Beautiful live search visual polish */
#classes-search-input {
    transition: var(--transition-smooth) !important;
}

#classes-search-input:focus {
    border-color: var(--brand-gold) !important;
    box-shadow: 0 0 0 3px rgba(223, 9, 19, 0.15) !important;
    outline: none !important;
    width: 250px !important;
    /* Elegant expansion on focus */
}

/* Guest Portal Dark Theme global styling animations and scrollbar custom styles */
body.guest-portal-active ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

body.guest-portal-active ::-webkit-scrollbar-track {
    background: #000000;
}

body.guest-portal-active ::-webkit-scrollbar-thumb {
    background: #222222;
    border-radius: 4px;
}

body.guest-portal-active ::-webkit-scrollbar-thumb:hover {
    background: #df0913;
}

/* ==========================================================================
   GLOBAL GUEST PORTAL - DARK MODE OVERRIDES & PMPRO CHEKOUT STYLING
   ========================================================================== */

/* 1. Global Canvas Theme & Backgrounds */
body.guest-portal-active {
    background-color: #252525 !important;
    color: #ffffff !important;
}

body.guest-portal-active #primary,
body.guest-portal-active #skip-content,
body.guest-portal-active .site-main,
body.guest-portal-active .content-area {
    background-color: transparent !important;
    color: #ffffff !important;
}

/* 2. Global Header & Simplified Navbar */
body.guest-portal-active #header {
    background-color: #151515 !important;
    border-bottom: 1px solid #2a2a2a !important;
    box-shadow: none !important;
    overflow: visible !important;
}

body.guest-portal-active #header .bottom-header,
body.guest-portal-active #header .menu-section,
body.guest-portal-active #header .menu-section .row {
    overflow: visible !important;
}

body.guest-portal-active #header .topbar {
    display: none !important;
}

body.guest-portal-active #skip-content,
body.guest-portal-active .screen-reader-text {
    color: #777777 !important;
}

/* 3. Global Footer */
body.guest-portal-active #footer {
    background-color: #151515 !important;
    border-top: 1px solid #2a2a2a !important;
}

body.guest-portal-active #footer .footer-copyright,
body.guest-portal-active #footer .copyright-text,
body.guest-portal-active #footer p,
body.guest-portal-active #footer a {
    color: #8c8c8c !important;
}

body.guest-portal-active #footer a:hover {
    color: #df0913 !important;
}

/* 4. Page Banners & Breadcrumbs */
body.guest-portal-active #inner-pages-header {
    background-color: #1a1a1a !important;
    background-image: none !important;
    border-bottom: 1px solid #2a2a2a !important;
    padding: 50px 0 !important;
}

body.guest-portal-active #inner-pages-header .header-overlay {
    background: transparent !important;
}

body.guest-portal-active #inner-pages-header h1 {
    color: #ffffff !important;
    font-family: 'Josefin Sans', sans-serif !important;
    font-weight: 700 !important;
    font-size: 2.2rem !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

body.guest-portal-active #inner-pages-header .theme-breadcrumb,
body.guest-portal-active #inner-pages-header .theme-breadcrumb a {
    color: #8c8c8c !important;
    font-family: 'Josefin Sans', sans-serif !important;
    font-size: 0.9rem !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

body.guest-portal-active #inner-pages-header .theme-breadcrumb a:hover {
    color: #df0913 !important;
    text-decoration: none;
}

/* 5. PMPro Forms, Checkout, Billing & Registration Cards */
body.guest-portal-active #pmpro_checkout,
body.guest-portal-active .pmpro_checkout_box,
body.guest-portal-active #pmpro_form,
body.guest-portal-active .pmpro_form {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

body.guest-portal-active .pmpro_checkout-fields,
body.guest-portal-active .pmpro_checkout-section,
body.guest-portal-active .pmpro_card,
body.guest-portal-active .pmpro_box,
body.guest-portal-active #pmpro_membership_info,
body.guest-portal-active #pmpro_account_info,
body.guest-portal-active #pmpro_billing_info,
body.guest-portal-active #pmpro_payment_information_fields,
body.guest-portal-active #pmpro_pricing_fields,
body.guest-portal-active #pmpro_user_fields,
body.guest-portal-active #pmpro_login,
body.guest-portal-active .pmpro_login,
body.guest-portal-active #pmpro_account,
body.guest-portal-active #pmpro_billing,
body.guest-portal-active #pmpro_cancel {
    background-color: #181818 !important;
    background: #181818 !important;
    border: 1px solid #2d2d2d !important;
    color: #ffffff !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45) !important;
    border-radius: var(--radius-large) !important;
    padding: 30px !important;
    margin-bottom: 30px !important;
}

/* 5.1. Crisp White & Light-Grey Typography inside Dark Cards */
body.guest-portal-active #pmpro_login h2,
body.guest-portal-active #pmpro_checkout h2,
body.guest-portal-active .pmpro_checkout-fields h2,
body.guest-portal-active .pmpro_checkout-section h2,
body.guest-portal-active .pmpro_box h2,
body.guest-portal-active #pmpro_account h2,
body.guest-portal-active #pmpro_billing h2,
body.guest-portal-active #pmpro_cancel h2,
body.guest-portal-active .pmpro_card h2,
body.guest-portal-active .pmpro_card_title,
body.guest-portal-active #pmpro_pricing_fields h2,
body.guest-portal-active #pmpro_user_fields h2,
body.guest-portal-active .pmpro_section_title {
    color: #ffffff !important;
    border-bottom: 1px solid #2d2d2d !important;
    font-family: 'Josefin Sans', sans-serif !important;
    font-weight: 600 !important;
    font-size: 1.5rem !important;
    padding-bottom: 12px !important;
    margin-bottom: 20px !important;
}

body.guest-portal-active .pmpro_checkout-fields p,
body.guest-portal-active .pmpro_checkout-section p,
body.guest-portal-active .pmpro_checkout-fields span,
body.guest-portal-active .pmpro_checkout-section span,
body.guest-portal-active .pmpro_checkout-fields div,
body.guest-portal-active .pmpro_checkout-section div,
body.guest-portal-active .pmpro_checkout-fields li,
body.guest-portal-active .pmpro_checkout-section li,
body.guest-portal-active .pmpro_card p,
body.guest-portal-active .pmpro_card span,
body.guest-portal-active .pmpro_card div,
body.guest-portal-active .pmpro_card li,
body.guest-portal-active #pmpro_pricing_fields p,
body.guest-portal-active #pmpro_pricing_fields span,
body.guest-portal-active #pmpro_pricing_fields div,
body.guest-portal-active #pmpro_user_fields p,
body.guest-portal-active #pmpro_user_fields span,
body.guest-portal-active #pmpro_user_fields div,
body.guest-portal-active .pmpro_level_name_text,
body.guest-portal-active .pmpro_level_description_text,
body.guest-portal-active .pmpro_level_cost_text,
body.guest-portal-active .pmpro_level_expiration_text {
    color: #e0e0e0 !important;
    /* Soft white/light grey for readability */
    font-family: 'Rubik', sans-serif !important;
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
}

body.guest-portal-active .pmpro_checkout-fields strong,
body.guest-portal-active .pmpro_checkout-section strong,
body.guest-portal-active .pmpro_card strong,
body.guest-portal-active #pmpro_pricing_fields strong,
body.guest-portal-active #pmpro_user_fields strong,
body.guest-portal-active .pmpro_level_name_text strong,
body.guest-portal-active .pmpro_level_cost_text strong,
body.guest-portal-active .pmpro_level_expiration_text strong {
    color: #ffffff !important;
    /* High contrast bold text */
    font-weight: 600 !important;
}

body.guest-portal-active label,
body.guest-portal-active .pmpro_checkout label,
body.guest-portal-active #pmpro_login label {
    color: #ffffff !important;
    font-family: 'Rubik', sans-serif !important;
    font-weight: 500 !important;
}

/* 6. Global Form Inputs & Text Fields for Guest Sessions */
body.guest-portal-active #pmpro_login input[type="text"],
body.guest-portal-active #pmpro_login input[type="password"],
body.guest-portal-active input[type="text"],
body.guest-portal-active input[type="email"],
body.guest-portal-active input[type="password"],
body.guest-portal-active input[type="tel"],
body.guest-portal-active input[type="search"],
body.guest-portal-active select,
body.guest-portal-active textarea {
    background-color: #222222 !important;
    border: 1px solid #2d2d2d !important;
    color: #ffffff !important;
    font-family: 'Rubik', sans-serif !important;
    border-radius: var(--radius-small) !important;
    padding: 12px 16px !important;
    font-size: 0.95rem !important;
    transition: var(--transition-smooth) !important;
}

body.guest-portal-active #pmpro_login input[type="text"]:focus,
body.guest-portal-active #pmpro_login input[type="password"]:focus,
body.guest-portal-active input[type="text"]:focus,
body.guest-portal-active input[type="email"]:focus,
body.guest-portal-active input[type="password"]:focus,
body.guest-portal-active input[type="tel"]:focus,
body.guest-portal-active select:focus,
body.guest-portal-active textarea:focus {
    border-color: #df0913 !important;
    background-color: #1a1a1a !important;
    box-shadow: 0 0 0 3px rgba(223, 9, 19, 0.25) !important;
    outline: none !important;
}

/* 6.1. Highly Specific Overrides for Password Toggle button on checkout */
body.guest-portal-active .pmpro_password-input-wrapper .pmpro_form_field-password-toggle,
body.guest-portal-active .pmpro_password-input-wrapper .pmpro_btn-password-toggle,
body.guest-portal-active .pmpro_password-input-wrapper button[class*="password-toggle"],
body.guest-portal-active .pmpro_password-input-wrapper button.pmpro_btn-password-toggle-state,
body.guest-portal-active .pmpro_password-input-wrapper .pmpro_btn-password-toggle-state,
body.guest-portal-active .pmpro_form_field-password-toggle,
body.guest-portal-active .pmpro_btn-password-toggle,
body.guest-portal-active button[class*="password-toggle"],
body.guest-portal-active button.pmpro_btn-password-toggle-state,
body.guest-portal-active .pmpro_btn-password-toggle-state {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    right: 15px !important;
    bottom: auto !important;
    left: auto !important;
    z-index: 100 !important;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: auto !important;
    height: auto !important;
}

body.guest-portal-active .pmpro_form_field-password-toggle button,
body.guest-portal-active .pmpro_form_field-password-toggle .pmpro_btn,
body.guest-portal-active #pmpro_login .pmpro_form_field-password-toggle button,
body.guest-portal-active #pmpro_login .pmpro_form_field-password-toggle .pmpro_btn,
body.guest-portal-active #pmpro_login button[id*="password-toggle"],
body.guest-portal-active #pmpro_login button[class*="password-toggle"],
body.guest-portal-active button[class*="password-toggle"] {
    background: transparent !important;
    background-color: transparent !important;
    color: #df0913 !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    font-family: 'Josefin Sans', sans-serif !important;
    font-weight: 600 !important;
    font-size: 0.82rem !important;
    text-transform: uppercase !important;
    border-radius: 0 !important;
    width: auto !important;
    height: auto !important;
}

body.guest-portal-active button[class*="password-toggle"]:hover,
body.guest-portal-active #pmpro_login button[id*="password-toggle"]:hover,
body.guest-portal-active #pmpro_login button[class*="password-toggle"]:hover {
    color: #ffffff !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

/* Force password fields (Contraseña & Confirmar Contraseña) to be vertically oriented column flex containers, matching email inputs */
body.guest-portal-active #pmpro_user_fields .pmpro_form_field-password {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    align-items: flex-start !important;
}

body.guest-portal-active #pmpro_login p.login-username,
body.guest-portal-active #pmpro_login p.login-password {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    align-items: flex-start !important;
    width: 100% !important;
}

body.guest-portal-active #pmpro_user_fields .pmpro_form_field-password label,
body.guest-portal-active #pmpro_login p.login-username label,
body.guest-portal-active #pmpro_login p.login-password label {
    grid-area: auto !important;
    text-align: left !important;
    align-self: flex-start !important;
    width: auto !important;
    margin-bottom: 0 !important;
}

body.guest-portal-active #pmpro_user_fields .pmpro_form_field-password .pmpro_password-input-wrapper,
body.guest-portal-active #pmpro_login p.login-password .pmpro_password-input-wrapper {
    width: 100% !important;
}

/* Hide the text labels (VER / OCULTAR / Show Password) to keep only the eye icon */
body.guest-portal-active .pmpro_form_field-password-toggle-state,
body.guest-portal-active .pmpro_btn-password-toggle-state {
    display: none !important;
}

/* Adjust padding-right on the password inputs since only a single eye icon remains (tight fit) */
body.guest-portal-active .pmpro_password-input-wrapper input[type="password"],
body.guest-portal-active .pmpro_password-input-wrapper input[type="text"] {
    padding-right: 50px !important;
}

/* Eye Icon color consistency and stroke overrides for hover interaction */
body.guest-portal-active .pmpro_form_field-password-toggle button svg,
body.guest-portal-active .pmpro_form_field-password-toggle button svg path,
body.guest-portal-active .pmpro_form_field-password-toggle button svg circle {
    stroke: #df0913 !important;
    transition: stroke 0.3s ease !important;
}

body.guest-portal-active .pmpro_form_field-password-toggle button:hover svg,
body.guest-portal-active .pmpro_form_field-password-toggle button:hover svg path,
body.guest-portal-active .pmpro_form_field-password-toggle button:hover svg circle {
    stroke: #ffffff !important;
}

/* 7. Tables in Checkout, Levels & Billing */
body.guest-portal-active #pmpro_level_table,
body.guest-portal-active .pmpro_table {
    border: 1px solid #2d2d2d !important;
}

body.guest-portal-active #pmpro_level_table th,
body.guest-portal-active .pmpro_table th {
    background-color: #2d2d2d !important;
    color: #ffffff !important;
    border-bottom: 1px solid #2d2d2d !important;
    font-family: 'Josefin Sans', sans-serif !important;
    font-weight: 600 !important;
}

body.guest-portal-active #pmpro_level_table td,
body.guest-portal-active .pmpro_table td {
    background-color: #181818 !important;
    color: #d0d0d0 !important;
    border-bottom: 1px solid #2d2d2d !important;
    font-family: 'Rubik', sans-serif !important;
}

/* 8. Checkout Buttons */
body.guest-portal-active .pmpro_btn,
body.guest-portal-active #pmpro_login .pmpro_btn,
body.guest-portal-active #pmpro_login input[type="submit"],
body.guest-portal-active .pmpro_checkout input[type="submit"],
body.guest-portal-active #pmpro_checkout .pmpro_btn-submit,
body.guest-portal-active #pmpro_checkout input[type="submit"],
body.guest-portal-active .login input[type="submit"] {
    background-color: #df0913 !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(223, 9, 19, 0.25) !important;
    font-family: 'Josefin Sans', sans-serif !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
}

body.guest-portal-active .pmpro_btn:hover,
body.guest-portal-active #pmpro_login input[type="submit"]:hover,
body.guest-portal-active .pmpro_checkout input[type="submit"]:hover,
body.guest-portal-active #pmpro_checkout .pmpro_btn-submit:hover,
body.guest-portal-active .login input[type="submit"]:hover {
    background-color: #a4070e !important;
    box-shadow: 0 6px 20px rgba(223, 9, 19, 0.35) !important;
}

/* Force the login and password recovery submit buttons to occupy 100% width of the card container */
body.guest-portal-active #pmpro_login input[type="submit"],
body.guest-portal-active #pmpro_login .pmpro_btn,
body.guest-portal-active #pmpro_login .pmpro_btn-submit,
body.guest-portal-active #pmpro_login .pmpro_form_submit input,
body.guest-portal-active .pmpro_login .pmpro_btn-submit {
    width: 100% !important;
    display: block !important;
    text-align: center !important;
    margin-top: 20px !important;
}


/* 9. Alerts and Feedback Boxes */
body.guest-portal-active .pmpro_message,
body.guest-portal-active .pmpro_error,
body.guest-portal-active .pmpro_success {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
    font-family: 'Rubik', sans-serif !important;
}

body.guest-portal-active .pmpro_error,
body.guest-portal-active .pmpro_message.pmpro_error {
    background-color: #2b1111 !important;
    color: #ff9b9b !important;
    border-color: #632222 !important;
}

body.guest-portal-active .pmpro_success,
body.guest-portal-active .pmpro_message.pmpro_success {
    background-color: #11261d !important;
    color: #a3ffc9 !important;
    border-color: #22563d !important;
}

body.guest-portal-active .pmpro_message.pmpro_alert {
    background-color: #1e1d1c !important;
    color: #ffffff !important;
    border-color: #333333 !important;
}

/* PMPro helper links */
body.guest-portal-active .pmpro_actions_nav,
body.guest-portal-active .pmpro_actions_nav a {
    color: #a0a0a0 !important;
    font-family: 'Josefin Sans', sans-serif !important;
    font-size: 0.9rem !important;
}

body.guest-portal-active .pmpro_actions_nav a:hover {
    color: #df0913 !important;
    text-decoration: none;
}

/* 10. Links and Utility Text inside Forms */
body.guest-portal-active #pmpro_login a,
body.guest-portal-active #pmpro_checkout a,
body.guest-portal-active .pmpro_checkout_box a,
body.guest-portal-active .pmpro_box a,
body.guest-portal-active #pmpro_account a,
body.guest-portal-active #pmpro_billing a,
body.guest-portal-active #pmpro_cancel a {
    color: #fff !important;
    font-weight: 500;
    transition: all 0.3s ease;
}

body.guest-portal-active #pmpro_login a:hover,
body.guest-portal-active #pmpro_checkout a:hover,
body.guest-portal-active .pmpro_checkout_box a:hover,
body.guest-portal-active .pmpro_box a:hover,
body.guest-portal-active #pmpro_account a:hover,
body.guest-portal-active #pmpro_billing a:hover,
body.guest-portal-active #pmpro_cancel a:hover {
    color: #ffffff !important;
}

/* Checkbox styling */
body.guest-portal-active .pmpro_checkout input[type="checkbox"] {
    accent-color: #df0913 !important;
    width: 16px;
    height: 16px;
    vertical-align: middle;
}

/* 11. Comments and Reviews Dark Theme Scoped Overrides */
body.guest-portal-active .comment-list .comment-body {
    background: #181818 !important;
    border-color: #2d2d2d !important;
    color: #e0e0e0 !important;
}

body.guest-portal-active .comment-reply-title,
body.guest-portal-active .comment-list .comment-author cite,
body.guest-portal-active .comment-list .comment-author cite a {
    color: #ffffff !important;
}

body.guest-portal-active .comment-list .comment-metadata a {
    color: #8c8c8c !important;
}

body.guest-portal-active #comments {
    border-color: #2d2d2d !important;
}

body.guest-portal-active #commentform label {
    color: #ffffff !important;
}

body.guest-portal-active #commentform input[type="text"],
body.guest-portal-active #commentform input[type="email"],
body.guest-portal-active #commentform textarea {
    background-color: #222222 !important;
    border-color: #2d2d2d !important;
    color: #ffffff !important;
}

body.guest-portal-active #commentform input[type="text"]:focus,
body.guest-portal-active #commentform input[type="email"]:focus,
body.guest-portal-active #commentform textarea:focus {
    border-color: #df0913 !important;
    background-color: #1a1a1a !important;
}

/* ==========================================================================
   MEMBER PORTAL NAVBAR DROPDOWN & TRANSITIONS
   ========================================================================== */
.portal-member-dropdown {
    position: relative;
    display: inline-block;
}

.btn-profile-trigger {
    background-color: #df0913;
    color: #ffffff !important;
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    box-shadow: 0 4px 15px rgba(223, 9, 19, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    gap: 8px;
    outline: none !important;
}

.btn-profile-trigger:hover,
.btn-profile-trigger:focus {
    background-color: #a4070e;
    box-shadow: 0 6px 20px rgba(223, 9, 19, 0.35);
    transform: translateY(-1px);
}

.btn-profile-trigger:active {
    transform: translateY(1px);
}

.portal-member-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 8px;
    background-color: #181818;
    border: 1px solid #2d2d2d;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.55);
    min-width: 190px;
    z-index: 9999;
    overflow: hidden;
    text-align: left;
    transform-origin: top right;
    animation: fadeInScale 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.portal-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    color: #ffffff !important;
    text-decoration: none !important;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.25s ease;
    border-bottom: 1px solid #252525;
}

.portal-menu-item:last-child {
    border-bottom: none;
}

.portal-menu-item i {
    font-size: 1.05rem;
    transition: all 0.25s ease;
}

.portal-menu-item:hover {
    background-color: #222222 !important;
    padding-left: 22px;
}

.portal-menu-item.logout-item {
    color: #ff4d4d !important;
}

.portal-menu-item.logout-item:hover {
    background-color: rgba(255, 77, 77, 0.08) !important;
    color: #ff3333 !important;
    padding-left: 22px;
}

.portal-menu-item.logout-item i {
    color: #ff4d4d;
}

/* Adjustments for responsive navbar on smaller screens */
@media (max-width: 575px) {
    .btn-profile-trigger {
        padding: 8px 14px !important;
        font-size: 0.75rem !important;
    }

    .btn-profile-trigger span.member-name-text {
        max-width: 70px !important;
    }
}

/* ==========================================================================
   BULLETPROOF COURSE CARD HEIGHT & TRUNCATED DESCRIPTION DEFAULTS
   ========================================================================== */
.dark-course-card,
.course-card {
    height: 480px !important;
    min-height: 480px !important;
    max-height: 480px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

.course-card-title,
.course-card-title-text {
    font-family: 'Josefin Sans', sans-serif !important;
    font-weight: 700 !important;
    font-size: 1.3rem !important;
    line-height: 1.3 !important;
    height: 2.6em !important;
    max-height: 2.6em !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.course-card-desc {
    color: #8c8c8c !important;
    font-size: 0.88rem !important;
    line-height: 1.45 !important;
    height: 4.35em !important;
    max-height: 4.35em !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    word-break: break-word !important;
}