/*
Theme Name: Astra Child
Template: astra
Version: 1.1.0
Description: Clean, organized child theme for Gima's Piano Studio
*/

/* Test: Production deployment configured - 2025-11-17 */

/* ============================================================================
   WEB FONTS
   ============================================================================
   Note: If you see 404s for local fonts (Inter-Variable.woff2, etc.),
   either upload those files to /fonts/ or remove preload tags elsewhere.
   These @import lines provide working web fonts.
   ========================================================================= */
@import url('https://fonts.googleapis.com/css2?family=Playpen+Sans:wght@400;700;800&family=Inter:wght@400;600;800&family=Roboto+Slab:wght@400;700&display=swap');

/* ============================================================================
   HERO SECTION (Homepage)
   ============================================================================
   Namespaced with .gp-hero prefix to avoid conflicts.
   LCP-friendly with proper image handling.
   ========================================================================= */
:root {
    --gp-yellow: #4C9EF3;
}

/* Frame + base */
.gp-hero {
    position: relative;
    overflow: hidden;
    border-radius: 50px;
    min-height: 62vh;
    background: #000;
}

/* Background image (acts like cover) */
.gp-hero__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 20% 50%;
    margin: 0 !important;
    z-index: 0;
    pointer-events: none;
}

/* Overlay */
.gp-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.55) 100%);
    z-index: 0;
}

/* Right-side card */
.gp-hero__card {
    position: absolute;
    top: clamp(16px, 3vw, 36px);
    right: clamp(16px, 3vw, 36px);
    z-index: 1;
    width: min(32vw, 760px);
    padding: clamp(18px, 4.5vw, 40px);
    border-radius: 50px;
    display: grid;
    gap: clamp(10px, 1.8vw, 16px);
    color: #e9eaec;
    background: rgba(0,0,0,.36);
    backdrop-filter: saturate(115%) blur(2px);
    box-shadow: 0 10px 30px rgba(0,0,0,.25);
}

/* Typography */
.gp-hero__title {
    color: var(--gp-yellow);
    font-size: clamp(28px, 4.6vw, 56px);
    line-height: 1.1;
    margin: 0;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
    text-shadow:
        -1px -1px 0 rgba(255, 255, 255, 0.3),
        1px -1px 0 rgba(255, 255, 255, 0.3),
        -1px 1px 0 rgba(255, 255, 255, 0.3),
        1px 1px 0 rgba(255, 255, 255, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.3);
}
.gp-hero__subtitle {
    margin: 0;
    font-size: clamp(14px, 1.4vw, 17px);
    line-height: 1.6;
    color: rgba(255,255,255,.92);
}

/* Button */
.gp-hero__cta {
    justify-self: start;
    display: inline-block;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--gp-yellow);
    color: #ffffff;
    font-weight: 800;
    font-size: 15.5px;
    letter-spacing: .1px;
    text-decoration: none;
    box-shadow: 0 10px 28px rgba(0,0,0,.25);
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.gp-hero__cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 36px rgba(0,0,0,.32);
}
.gp-hero__cta:active {
    transform: translateY(0);
    filter: brightness(.96);
}

/* Responsive breakpoints */
@media (max-width: 1200px) {
    .gp-hero { min-height: 68vh; }
    .gp-hero__card { width: min(56vw, 720px); }
}
@media (max-width: 992px) {
    .gp-hero__card { width: min(62vw, 680px); }
}
@media (max-width: 767px) {
    .gp-hero__img { object-position: 35% 50%; }
    .gp-hero__card {
        position: static;
        margin: 16px;
        width: auto;
        background: rgba(0,0,0,.44);
        border-radius: 24px;
    }
}

/* ============================================================================
   COURSE CAROUSEL STYLES
   ============================================================================
   Dark-themed Swiper carousel for LearnDash courses.
   Works with [ld_courses_carousel] shortcode.
   ========================================================================= */
.ldc-outer {
    padding: 48px 24px 24px !important;
    background: linear-gradient(to bottom, #000000, #1a1a1a) !important;
    border-radius: 28px !important;
}

.ldc-swiper .swiper-pagination {
    position: relative !important;
    margin-top: 28px !important;
    padding-top: 6px !important;
}
.ldc-swiper .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #4a4a4a;
    opacity: 1;
    margin: 0 6px !important;
}
.ldc-swiper .swiper-pagination-bullet-active {
    background: #4C9EF3 !important;
}
.ldc-swiper .swiper-wrapper {
    gap: 0 !important;
}

/* ============================================================================
   FREE ASSESSMENT SECTION
   ============================================================================
   Dark card wrapper for Fluent Forms assessment form.
   ========================================================================= */
.gp-assess-wrap {
    max-width: 1100px;
    margin: 40px auto;
    padding: 32px 28px;
    border-radius: 24px;
    background: linear-gradient(180deg, #1C1C1C 0%, #2A2A2A 100%);
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 12px 28px rgba(0,0,0,.45);
    color: #E5E7EB;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.gp-assess-title {
    text-align: center;
    font-size: 28px;
    font-weight: 800;
    color: #4C9EF3;
    margin-bottom: 24px;
}
.gp-assess-subtitle {
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    color: #A1A1AA;
    margin: -8px auto 24px;
    max-width: 620px;
}

.gp-assess-inner {
    display: grid;
    grid-template-columns: minmax(0, 480px) 1fr;
    align-items: stretch;
    gap: 32px;
}

.gp-assess-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,.25);
    background: #0f1112;
    height: 100%;
}
.gp-assess-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gp-assess-form {
    flex: 1;
    min-width: 320px;
}
.gp-assess {
    height: 100%;
    padding: 20px;
}

@media (max-width: 768px) {
    .gp-assess-inner {
        flex-direction: column;
        text-align: center;
        display: flex;
    }
    .gp-assess-image img {
        max-width: 100%;
    }
}

/* ============================================================================
   FLUENT FORMS STYLING (Dark Theme)
   ============================================================================
   Matches brand colors: dark background + gold accents.
   ========================================================================= */
.gp-assess {
    max-width: 680px;
    margin: 0 auto;
    border-radius: 20px;
    background: #1C1C1C;
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 6px 16px rgba(0,0,0,.35);
    color: #E5E7EB;
}

.gp-assess label {
    display: inline-block;
    margin-bottom: 6px;
    font-weight: 700;
    color: #F5F5F5;
}

.gp-assess input[type="text"],
.gp-assess input[type="email"],
.gp-assess input[type="number"],
.gp-assess select,
.gp-assess textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #3a3a3a;
    background: #111315;
    color: #F9FAFB;
    outline: none;
    transition: box-shadow .15s ease, border-color .15s ease, background .15s ease;
}

.gp-assess input::placeholder,
.gp-assess textarea::placeholder {
    color: #6B7280;
}

.gp-assess input:focus,
.gp-assess select:focus,
.gp-assess textarea:focus {
    border-color: #4C9EF3;
    box-shadow: 0 0 0 3px rgba(243,213,72,.28);
    background: #0f1112;
}

.gp-assess .ff-btn-submit,
.gp-assess button[type="submit"],
.gp-assess .ff_submit_btn button {
    display: inline-grid;
    place-items: center;
    height: 50px;
    padding: 0 24px;
    border: 0;
    border-radius: 999px;
    background: #4C9EF3;
    color: #25271C;
    font-weight: 800;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(243,213,72,.25), 0 2px 0 rgba(0,0,0,.2) inset;
    transition: transform .05s, box-shadow .15s, background .2s;
}

.gp-assess .ff-btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(243,213,72,.3), 0 2px 0 rgba(0,0,0,.18) inset;
}

.gp-assess .text-danger,
.gp-assess .ff-el-is-error .error {
    color: #FCA5A5;
    font-size: 12px;
}

/* ============================================================================
   ELEMENTOR FORMS THEME (Gold + Dark)
   ============================================================================
   Custom form styling for Elementor Pro forms.
   ========================================================================= */
.gp-theme-form {
    --gold: #2E76C7;
    --gold-2: #2E76C7;
    --ink: #0a0a0a;
    --text: #f8fafc;
    --muted: #cbd5e1;
    --panel: #000;
    --ring: rgba(250,204,21,.35);
    --shadow: 0 10px 28px rgba(0,0,0,.6);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* Card container with gradient border */
.gp-theme-form .elementor-widget-container {
    background: #000;
    border-radius: 24px;
    border: 5px solid transparent;
    background-clip: padding-box, border-box;
    background-origin: border-box;
    background-image: linear-gradient(#000,#000), linear-gradient(135deg,var(--gold),var(--gold-2));
    box-shadow: 0 0 30px rgba(250,204,21,.25);
    padding: 28px 24px;
}

/* Headings */
.gp-theme-form h2,
.gp-theme-form .elementor-heading-title {
    color: var(--gold);
    font-weight: 900;
    letter-spacing: .2px;
    text-align: center;
    margin-bottom: 16px;
}

/* Labels */
.gp-theme-form .elementor-field-label {
    color: var(--text);
    font-weight: 700;
    margin-bottom: 6px;
}

/* Field spacing */
.gp-theme-form .elementor-field-group {
    margin-bottom: 16px;
}

/* Inputs, textareas, selects */
.gp-theme-form input[type="text"],
.gp-theme-form input[type="email"],
.gp-theme-form input[type="tel"],
.gp-theme-form input[type="number"],
.gp-theme-form input[type="url"],
.gp-theme-form textarea,
.gp-theme-form select {
    background: #0a0a0a;
    color: var(--text);
    border: 2px solid rgba(250,204,21,.25);
    border-radius: 14px;
    padding: 12px 14px;
    outline: none;
    box-shadow: inset 0 0 0 0 transparent;
    transition: border-color .2s ease, box-shadow .2s ease, transform .06s ease;
}

.gp-theme-form input::placeholder,
.gp-theme-form textarea::placeholder {
    color: #94a3b8;
}

.gp-theme-form input:focus,
.gp-theme-form textarea:focus,
.gp-theme-form select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 6px var(--ring);
}

/* Radios & checkboxes */
.gp-theme-form .elementor-field-subgroup .elementor-field-option label {
    color: var(--text);
    font-weight: 700;
}

.gp-theme-form .elementor-field-option input[type="radio"],
.gp-theme-form .elementor-field-option input[type="checkbox"] {
    accent-color: var(--gold);
}

/* Errors */
.gp-theme-form .elementor-message,
.gp-theme-form .elementor-field-group .elementor-field-description {
    color: #fecaca;
}

.gp-theme-form .elementor-field-group .elementor-error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 4px rgba(239,68,68,.25) !important;
}

/* Submit button */
.gp-theme-form .elementor-button {
    background: linear-gradient(135deg,var(--gold-2),var(--gold));
    color: #111;
    border-radius: 999px;
    padding: 14px 24px;
    font-weight: 900;
    letter-spacing: .3px;
    box-shadow: 0 8px 20px rgba(250,204,21,.35), inset 0 -2px 0 rgba(0,0,0,.2);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.gp-theme-form .elementor-button:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 26px rgba(250,204,21,.55), inset 0 -2px 0 rgba(0,0,0,.2);
    filter: brightness(1.02);
}

@media (min-width: 1024px) {
    .gp-theme-form .elementor-widget-container {
        padding: 36px 34px;
    }
}

/* ============================================================================
   /* ============================================================================
   LOGIN PAGE STYLES (PREMIUM)
   ============================================================================
   Complete premium login experience with glass card, animations, and polish.
   Used with page-login.php template.
   ========================================================================= */

/* CSS Variables for Login */
:root {
    --gp-login-bg: #0b0b0c;
    --gp-login-card: rgba(20, 20, 22, 0.85);
    --gp-login-border: rgba(255, 255, 255, 0.08);
    --gp-login-text: #f2f2f6;
    --gp-login-gold: #4C9EF3;
    --gp-login-gold-hover: #6BB3F7;
    --gp-login-input-bg: #1a1b1f;
    --gp-login-input-border: #2b2b32;
    --gp-login-focus: rgba(243, 213, 72, 0.3);
}

/* Page Wrapper - Piano Staff Background */
.gp-login-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: clamp(1.5rem, 5vw, 3rem);
    background: 
        url('https://gimaspiano.com/wp-content/uploads/2025/10/login-back.svg') center/cover no-repeat fixed,
        #0b0b0c; /* fallback dark color */
    color: var(--gp-login-text);
}

/* Glass Card - FIXED! */
.gp-login-card {
    width: min(440px, 100%);
    background: var(--gp-login-card);
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    border: 1px solid var(--gp-login-border);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.gp-login-card.gp-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Logo */
.gp-login-logo {
    text-align: center;
    margin-bottom: 1.5rem;
}

.gp-logo-img {
    max-width: 160px;
    height: auto;
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

/* Title */
.gp-login-title {
    margin: 0 0 1.5rem;
    font-weight: 800;
    font-size: clamp(24px, 3.5vw, 32px);
    color: var(--gp-login-gold);
    text-align: center;
    letter-spacing: -0.5px;
}

/* Notice Messages (Error/Success/Info) */
.gp-login-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    animation: slideDown 0.4s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gp-login-notice.gp-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.gp-login-notice.gp-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #86efac;
}

.gp-login-notice.gp-info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #93c5fd;
}

.gp-notice-icon {
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
}

.gp-notice-content {
    flex: 1;
}

.gp-notice-content strong {
    display: block;
    font-weight: 700;
    margin-bottom: 4px;
}

.gp-notice-content p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

/* Form Groups (Field Containers) */
.gp-form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

/* Field Icon (Left Side) */
.gp-field-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    pointer-events: none;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.gp-form-group:focus-within .gp-field-icon {
    opacity: 1;
}

/* Form Groups (Field Containers) - Higher specificity */
.gp-login-card .gp-form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

/* Field Icon (Left Side) - Fixed positioning */
.gp-login-card .gp-form-group .gp-field-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    pointer-events: none;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.gp-login-card .gp-form-group:focus-within .gp-field-icon {
    opacity: 1;
}

/* Input Fields - Fixed specificity + explicit height */
input.gp-input[type="text"],
input.gp-input[type="password"] {
    width: 100%;
    height: 54px; /* Explicit height for consistent rendering */
    padding: 16px 48px 16px 60px;
    background: var(--gp-login-input-bg);
    border: 1px solid var(--gp-login-input-border);
    border-radius: 12px;
    color: var(--gp-login-text);
    font-size: 16px;
    font-family: inherit;
    line-height: 1.5;
    outline: none;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
}

input.gp-input[type="text"]:focus,
input.gp-input[type="password"]:focus {
    border-color: var(--gp-login-gold);
    box-shadow: 0 0 0 3px var(--gp-login-focus);
    background: rgba(26, 27, 31, 0.8);
}

/* Floating Labels - Fixed specificity */
.gp-login-card .gp-form-group .gp-floating-label {
    position: absolute;
    left: 60px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 16px;
    pointer-events: none;
    transition: all 0.3s ease;
    background: transparent;
    padding: 0 4px;
}

input.gp-input[type="text"]:focus ~ .gp-floating-label,
input.gp-input[type="text"]:not(:placeholder-shown) ~ .gp-floating-label,
input.gp-input[type="password"]:focus ~ .gp-floating-label,
input.gp-input[type="password"]:not(:placeholder-shown) ~ .gp-floating-label {
    top: -10px;
    left: 56px;
    font-size: 12px;
    color: var(--gp-login-gold);
    background: var(--gp-login-input-bg);
    font-weight: 600;
}

/* Show/Hide Password Toggle - MAXIMUM specificity */
.gp-login-card .gp-form-group button.gp-toggle-password {
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    cursor: pointer !important;
    padding: 8px !important;
    font-size: 20px !important;
    line-height: 1 !important;
    opacity: 0.6 !important;
    transition: opacity 0.3s ease !important;
    z-index: 10 !important;
    box-shadow: none !important;
    outline: none !important;
    display: block !important;
    visibility: visible !important;
    width: auto !important;
    height: auto !important;
    color: inherit !important;
}

.gp-login-card .gp-form-group button.gp-toggle-password:hover {
    opacity: 1 !important;
    background: transparent !important;
    background-color: transparent !important;
    transform: translateY(-50%) !important;
    color: inherit !important;
    display: block !important;
    visibility: visible !important;
}

.gp-login-card .gp-form-group button.gp-toggle-password:active {
    transform: translateY(-50%) scale(0.95) !important;
}

.gp-login-card .gp-form-group button.gp-toggle-password:focus {
    outline: 2px solid var(--gp-login-gold) !important;
    outline-offset: 2px !important;
}

.gp-login-card .gp-form-group button.gp-toggle-password .gp-eye-icon {
    display: block !important;
    pointer-events: none !important;
    visibility: visible !important;
    opacity: 1 !important;
}
/* Remember Me Row */
.gp-form-row {
    margin-bottom: 1.5rem;
}

/* Custom Checkbox */
.gp-checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.gp-checkbox-wrapper input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.gp-checkbox-custom {
    position: relative;
    width: 20px;
    height: 20px;
    border: 2px solid var(--gp-login-input-border);
    border-radius: 4px;
    background: var(--gp-login-input-bg);
    transition: all 0.3s ease;
}

.gp-checkbox-wrapper:hover .gp-checkbox-custom {
    border-color: var(--gp-login-gold);
}

.gp-checkbox-wrapper input:checked ~ .gp-checkbox-custom {
    background: var(--gp-login-gold);
    border-color: var(--gp-login-gold);
}

.gp-checkbox-wrapper input:checked ~ .gp-checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #111;
    font-size: 14px;
    font-weight: 700;
}

.gp-checkbox-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

/* Submit Button */
.gp-submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--gp-login-gold), #d7bb3f);
    border: none;
    border-radius: 12px;
    color: #111;
    font-size: 16px;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(243, 213, 72, 0.25);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.gp-submit-btn:hover {
    background: linear-gradient(135deg, var(--gp-login-gold-hover), var(--gp-login-gold));
    box-shadow: 0 12px 32px rgba(243, 213, 72, 0.35);
    transform: translateY(-2px);
}

.gp-submit-btn:active {
    transform: translateY(0);
}

/* Button Loading State */
.gp-btn-loader {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--gp-login-gold), #d7bb3f);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.gp-submit-btn.gp-loading .gp-btn-text {
    opacity: 0;
}

.gp-submit-btn.gp-loading .gp-btn-loader {
    opacity: 1;
}

.gp-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-top-color: #111;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Links Section */
.gp-login-links {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.gp-link {
    color: var(--gp-login-gold);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.gp-link:hover {
    color: var(--gp-login-gold-hover);
    text-decoration: underline;
}

.gp-link-icon {
    font-size: 16px;
}

.gp-link-sep {
    color: rgba(255, 255, 255, 0.3);
}

/* Mobile Optimization */
@media (max-width: 480px) {
    .gp-login-card {
        padding: 2rem 1.5rem;
    }

    .gp-login-title {
        font-size: 24px;
    }

    .gp-logo-img {
        max-width: 140px;
    }

    .gp-input {
        font-size: 16px; /* Prevents iOS zoom */
    }
}

/* Prevent iOS input zoom */
@supports (-webkit-touch-callout: none) {
    .gp-input {
        font-size: 16px !important;
    }
}

/* Accessibility: Focus visible */
.gp-input:focus-visible,
.gp-submit-btn:focus-visible,
.gp-toggle-password:focus-visible,
.gp-link:focus-visible {
    outline: 2px solid var(--gp-login-gold);
    outline-offset: 2px;
}
/* ============================================================================
   LOGIN ICON BUTTON (Header Menu)
   ============================================================================
   Replaces text with custom SVG icon for login button.
   Change 'selector' to your actual menu item class.
   ========================================================================= */
selector i,
selector svg,
selector .ld-icon {
    display: none !important;
}

selector > a,
selector > button,
selector .ld-button.ld-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 30px;
    height: 30px;
    padding: 0;
    line-height: 30px;
    border-radius: 6px;
    position: relative;
    font-size: 0;
}

selector > a::before,
selector > button::before,
selector .ld-button.ld-login::before {
    content: "";
    width: 18px;
    height: 18px;
    background-image: url("https://gimaspiano.com/wp-content/uploads/2025/10/login-svgrepo-com.svg");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
    flex: 0 0 18px;
}

selector > a:hover,
selector > button:hover,
selector .ld-button.ld-login:hover {
    filter: brightness(1.12);
}


/* ============================================================================
   QUIZ STYLES (KAHOOT THEME - DARK MODE)
   ============================================================================
   Colorful answer tiles on dark elevated cards.
   Applies to all LearnDash quiz pages.
   ========================================================================= */

/* Progress Bar Piano Note Icon */
.learndash_quiz_progress_bar {
    position: relative;
}
.learndash_quiz_progress_bar .ui-progressbar-value {
    position: relative;
    background: #4C9EF3 !important;
}
.learndash_quiz_progress_bar .ui-progressbar-value::after {
    content: "🎹";
    position: absolute;
    top: 50%;
    right: 0;
    transform: translate(50%, -50%);
    font-size: 1.2rem;
    pointer-events: none;
}

/* Disable overflow for list items */
.wpProQuiz_questionListItem {
    overflow: hidden !important;
}
.wpProQuiz_questionList {
    overflow-x: hidden !important;
}
.wpProQuiz_list, 
.wpProQuiz_listItem, 
.wpProQuiz_questionListItem, 
.learndash_quiz_question {
    box-sizing: border-box !important;
}

/* Quiz Question Cards - Dark Theme with Gold Accent */
div.learndash_quiz_question,
li.wpProQuiz_listItem {
    background: linear-gradient(135deg, #1a1b1f 0%, #1e1f24 100%);
    border: 1px solid rgba(243, 213, 72, 0.15);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    padding: 1.5em 3em !important;
    margin-bottom: 1.5em !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease !important;
    overflow-x: hidden !important;
    overflow-y: visible !important;
}

/* Hover effect on cards */
div.learndash_quiz_question:hover,
li.wpProQuiz_listItem:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    border-color: rgba(243, 213, 72, 0.25);
}

/* Question text - ensure readability */
.wpProQuiz_question_text,
.learndash_quiz_question h2,
.learndash_quiz_question h3 {
    color: #f2f2f6 !important;
}

/* Two-Column Layout on Desktop */
@media (min-width: 600px) {
    .wpProQuiz_questionList[data-type="single"],
    .wpProQuiz_questionList[data-type="multiple"] {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 1em !important;
    }
    .wpProQuiz_questionListItem {
        flex: 1 1 calc(50% - 1em) !important;
        margin: 0 !important;
    }
}

/* Colorful Answer Tiles (Kahoot Style) */
.wpProQuiz_questionListItem label {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 1em 2em !important;
    margin-bottom: 0.8em !important;
    border-radius: 6px !important;
    font-family: 'Work Sans', sans-serif !important;
    font-size: 1.05rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background 0.3s ease, transform 0.1s ease, box-shadow 0.2s ease !important;
    background: none !important;
    color: inherit !important;
    overflow-x: hidden !important;
    overflow-y: visible !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Six Kahoot colors */
.wpProQuiz_questionListItem:nth-child(1) label { 
    background: #AAE9E5 !important; 
    color: #25271C !important; 
}
.wpProQuiz_questionListItem:nth-child(2) label { 
    background: #87C7F1 !important; 
    color: #25271C !important; 
}
.wpProQuiz_questionListItem:nth-child(3) label { 
    background: #FEB7D3 !important; 
    color: #25271C !important; 
}
.wpProQuiz_questionListItem:nth-child(4) label { 
    background: #CBAFFD !important; 
    color: #25271C !important; 
}
.wpProQuiz_questionListItem:nth-child(5) label { 
    background: #EACFFF !important; 
    color: #25271C !important; 
}
.wpProQuiz_questionListItem:nth-child(6) label { 
    background: #FFA4A5 !important; 
    color: #25271C !important; 
}

/* Hover effect */
.wpProQuiz_questionListItem label:hover {
    filter: brightness(1.15) !important;
    transform: scale(1.02) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Selection Outline - Moved to Quiz Accessibility Enhancements section below */
.wpProQuiz_questionListItem input[type="radio"] {
    display: none !important;
}

/* Rounded & Centered Images */
.wpProQuiz_questionListItem label img,
.wpProQuiz_question_text img {
    border-radius: 6px !important;
    max-width: 90% !important;
    height: auto !important;
    display: block !important;
    margin: auto !important;
    align-self: center !important;
}
/* Quiz Results Bar - Match Quiz Background */
.ldx-plugin .learndash .wpProQuiz_content .wpProQuiz_points, 
.ldx-plugin .learndash .wpProQuiz_content .wpProQuiz_earned_points, 
.ldx-plugin .learndash .wpProQuiz_content .wpProQuiz_graded_points {
    background: #1a1b1f !important;
    border: 1px solid rgba(243, 213, 72, 0.15) !important;
    border-radius: 6px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

/* Quiz "Sending..." Loading Bar - Match Quiz Background */
.ldx-plugin .learndash .wpProQuiz_content .wpProQuiz_sending {
    background: #1a1b1f !important;
    border: 1px solid rgba(243, 213, 72, 0.15) !important;
    border-radius: 6px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
    padding: 1em !important;
}

/* ============================================================================
   QUIZ ACCESSIBILITY ENHANCEMENTS
   ============================================================================
   Enhanced visual indicators for selected, focused, correct, and incorrect states.
   Supports keyboard navigation, screen readers, dark mode, and High Contrast mode.
   Feature flag: Remove .gp-quiz-a11y class from html/body to disable.
   ========================================================================= */

/* Design Tokens - Light Mode Default */
:root {
    --quiz-selected-bg: rgba(0, 0, 0, 0.30);
    --quiz-selected-border: #E13737;
    --quiz-selected-border-width: 6px;
    --quiz-focus-ring: #4C9EF3;
    --quiz-focus-ring-width: 3px;
    --quiz-focus-ring-offset: 3px;
    --quiz-hover-bg: rgba(255, 255, 255, 0.15);
    --quiz-correct-bg: rgba(46, 213, 115, 0.2);
    --quiz-correct-border: #2ed573;
    --quiz-incorrect-bg: rgba(255, 71, 87, 0.2);
    --quiz-incorrect-border: #ff4757;
    --quiz-disabled-opacity: 0.5;
}

/* Dark Mode Tokens (if your theme uses data-theme or body.dark-mode) */
[data-theme="dark"] :root,
body.dark-mode :root {
    --quiz-selected-bg: rgba(255, 255, 255, 0.15);
    --quiz-hover-bg: rgba(255, 255, 255, 0.08);
}

/* ============================================================================
   SELECTED STATE - Enhanced Visibility
   ========================================================================= */

/* Enhance selected state with filled background + thicker border + check icon */
.wpProQuiz_questionListItem input[type="radio"]:checked + label,
.wpProQuiz_questionListItem input[type="checkbox"]:checked + label {
    background: var(--quiz-selected-bg) !important;
    outline: var(--quiz-selected-border-width) solid var(--quiz-selected-border) !important;
    outline-offset: 0px !important;
    box-shadow:
        0 0 0 8px rgba(255, 255, 255, 0.9),
        0 0 0 10px rgba(225, 55, 55, 0.4),
        0 0 16px rgba(225, 55, 55, 0.6),
        0 8px 24px rgba(0, 0, 0, 0.6),
        inset 0 0 0 3px rgba(225, 55, 55, 0.25) !important;
    transform: scale(1.03) !important;
    position: relative !important;
}

/* Check icon indicator (not color-only cue) */
.wpProQuiz_questionListItem input[type="radio"]:checked + label::after,
.wpProQuiz_questionListItem input[type="checkbox"]:checked + label::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--quiz-selected-border);
    text-shadow:
        0 0 4px rgba(0, 0, 0, 0.8),
        0 2px 4px rgba(0, 0, 0, 0.6);
    pointer-events: none;
    animation: checkPop 0.2s ease-out;
}

@keyframes checkPop {
    0% { transform: scale(0) rotate(-45deg); opacity: 0; }
    50% { transform: scale(1.2) rotate(0deg); }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

/* Disable animation if user prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
    .wpProQuiz_questionListItem input[type="radio"]:checked + label::after,
    .wpProQuiz_questionListItem input[type="checkbox"]:checked + label::after {
        animation: none;
    }
    .wpProQuiz_questionListItem input[type="radio"]:checked + label,
    .wpProQuiz_questionListItem input[type="checkbox"]:checked + label {
        transition: none !important;
    }
}

/* ============================================================================
   HOVER STATE - Subtle, Never Same as Selected
   ========================================================================= */

.wpProQuiz_questionListItem label:not(:has(input:checked)):hover {
    background: var(--quiz-hover-bg) !important;
    filter: brightness(1.1) !important;
}

/* ============================================================================
   KEYBOARD FOCUS - High Visibility Focus Ring
   ========================================================================= */

/* Focus visible on label (keyboard navigation) */
.wpProQuiz_questionListItem label:focus-visible,
.wpProQuiz_questionListItem input[type="radio"]:focus-visible + label,
.wpProQuiz_questionListItem input[type="checkbox"]:focus-visible + label {
    outline: var(--quiz-focus-ring-width) solid var(--quiz-focus-ring) !important;
    outline-offset: var(--quiz-focus-ring-offset) !important;
    box-shadow:
        0 0 0 calc(var(--quiz-focus-ring-width) + var(--quiz-focus-ring-offset)) rgba(243, 213, 72, 0.3),
        0 4px 12px rgba(0, 0, 0, 0.4) !important;
    z-index: 10;
}

/* Ensure labels are keyboard focusable */
.wpProQuiz_questionListItem label {
    -webkit-tap-highlight-color: transparent;
}

/* ============================================================================
   DISABLED STATE - Reduced Opacity, No Pointer
   ========================================================================= */

.wpProQuiz_questionListItem input[type="radio"]:disabled + label,
.wpProQuiz_questionListItem input[type="checkbox"]:disabled + label {
    opacity: var(--quiz-disabled-opacity) !important;
    cursor: default !important;
    filter: grayscale(0.5) !important;
}

.wpProQuiz_questionListItem input[type="radio"]:disabled + label:hover,
.wpProQuiz_questionListItem input[type="checkbox"]:disabled + label:hover {
    transform: none !important;
    filter: grayscale(0.5) !important;
}

/* ============================================================================
   CORRECT/INCORRECT STATES - After Submission
   ========================================================================= */

/* Correct answer - green left border + icon */
.wpProQuiz_questionListItem.wpProQuiz_correct label,
.wpProQuiz_listItem.wpProQuiz_answerCorrect .wpProQuiz_questionListItem label {
    border-left: 6px solid var(--quiz-correct-border) !important;
    background: var(--quiz-correct-bg) !important;
    position: relative !important;
}

.wpProQuiz_questionListItem.wpProQuiz_correct label::before,
.wpProQuiz_listItem.wpProQuiz_answerCorrect .wpProQuiz_questionListItem label::before {
    content: '✓';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--quiz-correct-border);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Incorrect answer - red left border + X icon */
.wpProQuiz_questionListItem.wpProQuiz_incorrect label,
.wpProQuiz_listItem.wpProQuiz_answerIncorrect .wpProQuiz_questionListItem label {
    border-left: 6px solid var(--quiz-incorrect-border) !important;
    background: var(--quiz-incorrect-bg) !important;
    position: relative !important;
}

.wpProQuiz_questionListItem.wpProQuiz_incorrect label::before,
.wpProQuiz_listItem.wpProQuiz_answerIncorrect .wpProQuiz_questionListItem label::before {
    content: '✗';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--quiz-incorrect-border);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Keep selected indicator visible in result view */
.wpProQuiz_questionListItem input[type="radio"]:checked + label.wpProQuiz_correct,
.wpProQuiz_questionListItem input[type="radio"]:checked + label.wpProQuiz_incorrect,
.wpProQuiz_questionListItem input[type="checkbox"]:checked + label.wpProQuiz_correct,
.wpProQuiz_questionListItem input[type="checkbox"]:checked + label.wpProQuiz_incorrect {
    outline: var(--quiz-selected-border-width) solid var(--quiz-selected-border) !important;
}

/* Adjust text padding to accommodate left icon */
.wpProQuiz_questionListItem.wpProQuiz_correct label,
.wpProQuiz_questionListItem.wpProQuiz_incorrect label,
.wpProQuiz_listItem.wpProQuiz_answerCorrect .wpProQuiz_questionListItem label,
.wpProQuiz_listItem.wpProQuiz_answerIncorrect .wpProQuiz_questionListItem label {
    padding-left: 3em !important;
}

/* ============================================================================
   HIT AREA & SPACING - Minimum 44×44px Touch Target
   ========================================================================= */

.wpProQuiz_questionListItem label {
    min-height: 44px !important;
    min-width: 44px !important;
}

.wpProQuiz_questionList {
    gap: 1em !important;
}

.wpProQuiz_questionListItem {
    margin-bottom: 0.5em !important;
}

/* Ensure text wraps nicely on mobile */
.wpProQuiz_questionListItem label {
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
}

/* ============================================================================
   WINDOWS HIGH CONTRAST MODE (FORCED COLORS)
   ========================================================================= */

@media (forced-colors: active) {
    /* Use system colors for maximum contrast */
    .wpProQuiz_questionListItem input[type="radio"]:checked + label,
    .wpProQuiz_questionListItem input[type="checkbox"]:checked + label {
        outline: 3px solid SelectedItem !important;
        background: SelectedItem !important;
        color: SelectedItemText !important;
        forced-color-adjust: none;
    }

    .wpProQuiz_questionListItem label:focus-visible,
    .wpProQuiz_questionListItem input[type="radio"]:focus-visible + label,
    .wpProQuiz_questionListItem input[type="checkbox"]:focus-visible + label {
        outline: 3px solid Highlight !important;
        outline-offset: 2px !important;
    }

    .wpProQuiz_questionListItem.wpProQuiz_correct label,
    .wpProQuiz_listItem.wpProQuiz_answerCorrect .wpProQuiz_questionListItem label {
        border-left-color: GreenText !important;
    }

    .wpProQuiz_questionListItem.wpProQuiz_incorrect label,
    .wpProQuiz_listItem.wpProQuiz_answerIncorrect .wpProQuiz_questionListItem label {
        border-left-color: Canvas !important;
        background: Mark !important;
    }

    /* Ensure icons remain visible */
    .wpProQuiz_questionListItem input[type="radio"]:checked + label::after,
    .wpProQuiz_questionListItem input[type="checkbox"]:checked + label::after,
    .wpProQuiz_questionListItem.wpProQuiz_correct label::before,
    .wpProQuiz_questionListItem.wpProQuiz_incorrect label::before {
        color: CanvasText !important;
        forced-color-adjust: none;
    }
}

/* ============================================================================
   NATIVE ACCENT COLOR BASELINE (FALLBACK)
   ========================================================================= */

.wpProQuiz_questionListItem input[type="radio"],
.wpProQuiz_questionListItem input[type="checkbox"] {
    accent-color: var(--quiz-selected-border);
}

/* ============================================================================
   RTL LANGUAGE SUPPORT
   ========================================================================= */

[dir="rtl"] .wpProQuiz_questionListItem input[type="radio"]:checked + label::after,
[dir="rtl"] .wpProQuiz_questionListItem input[type="checkbox"]:checked + label::after {
    right: auto;
    left: 12px;
}

[dir="rtl"] .wpProQuiz_questionListItem.wpProQuiz_correct label,
[dir="rtl"] .wpProQuiz_questionListItem.wpProQuiz_incorrect label,
[dir="rtl"] .wpProQuiz_listItem.wpProQuiz_answerCorrect .wpProQuiz_questionListItem label,
[dir="rtl"] .wpProQuiz_listItem.wpProQuiz_answerIncorrect .wpProQuiz_questionListItem label {
    border-left: none !important;
    border-right: 6px solid var(--quiz-correct-border) !important;
    padding-left: 2em !important;
    padding-right: 3em !important;
}

[dir="rtl"] .wpProQuiz_questionListItem.wpProQuiz_correct label::before,
[dir="rtl"] .wpProQuiz_questionListItem.wpProQuiz_incorrect label::before,
[dir="rtl"] .wpProQuiz_listItem.wpProQuiz_answerCorrect .wpProQuiz_questionListItem label::before,
[dir="rtl"] .wpProQuiz_listItem.wpProQuiz_answerIncorrect .wpProQuiz_questionListItem label::before {
    left: auto;
    right: 12px;
}

/* ============================================================================
   FEATURE FLAG / ROLLBACK MECHANISM
   ============================================================================
   To disable these enhancements, remove the 'gp-quiz-a11y' class from <html> or <body>.
   Or comment out this entire section in CSS.
   ========================================================================= */

/* Wrap all enhancements in a feature flag selector (optional) */
/* Uncomment the next line to require .gp-quiz-a11y class on html/body */
/* html:not(.gp-quiz-a11y) .wpProQuiz_questionListItem input[type="radio"]:checked + label,
html:not(.gp-quiz-a11y) .wpProQuiz_questionListItem input[type="checkbox"]:checked + label {
    all: revert !important;
} */

/* ============================================================================
   PLYR CUSTOM CAPTIONS OVERLAY
   ============================================================================
   Custom caption rendering for Plyr.js video player.
   Hides native cues and displays styled overlay captions.
   Font: Playpen Sans (playful, kid-friendly).
   ========================================================================= */

/* Full-frame overlay container for custom captions */
.custom-captions-overlay {
    position: absolute !important;
    inset: 0;
    z-index: 10 !important;
    pointer-events: none;
    width: 100%;
    padding: 1rem;
    overflow: hidden;
}

.plyr__video-wrapper .custom-captions-overlay {
    overflow: hidden !important;
}

/* Individual cue line */
.custom-captions-overlay .cue-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color: #6BB3F7;
    font-family: 'Playpen Sans', cursive, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    font-size: clamp(1.25rem, 2.5vw, 1.65rem);
    text-shadow:
        2px 2px 4px rgba(0,0,0,.85),
        -2px -2px 4px rgba(0,0,0,.85),
        0 0 8px rgba(0,0,0,1);
    background: rgba(0,0,0,.6);
    padding: .4rem .8rem;
    margin: 0;
    border-radius: 5px;
    text-align: center;
    white-space: normal;
    word-break: break-word;
    max-width: 40%;
    width: 100%;
    max-height: 30%;
    line-height: 1.3;
    box-sizing: border-box;
    pointer-events: none;
    transition: all .3s ease;
}

/* Fullscreen fix: keep cue positioning stable */
.plyr--fullscreen-active .custom-captions-overlay .cue-line {
    position: fixed !important;
}

/* Hide native Plyr captions (we render our own) */
.plyr__captions,
video::cue,
.plyr--captions-active video::cue {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    height: 0 !important;
    color: transparent !important;
    pointer-events: none !important;
    position: absolute !important;
    inset: 0;
}

/* Optional: caption size settings UI */
#plyr-settings-caption-size .plyr__control {
    background: transparent;
    border: none;
    color: #fff;
    text-align: left;
    width: 100%;
    padding: .5rem 1rem;
    font-size: .9rem;
    box-sizing: border-box;
}

#plyr-settings-caption-size .plyr__control:hover {
    background: rgba(255,255,255,.1);
}

#plyr-settings-caption-size .plyr__control.active-caption-size {
    background: rgba(255,255,255,.2);
    font-weight: 700;
}

#plyr-settings-caption-size .plyr__control span {
    color: inherit;
}

#plyr-settings-caption-size .plyr__menu__list {
    display: flex;
    flex-direction: column;
    row-gap: .3rem;
    column-gap: 0;
}

/* ============================================================================
   LEARNDASH DARK MODE (Focus Mode)
   ============================================================================
   Complete dark theme for LearnDash Focus Mode.
   Colors: Dark backgrounds + gold (#4C9EF3) accents + salmon highlights.
   
   ⚠️ IMPORTANT: Titles/breadcrumbs are VISUALLY HIDDEN only.
   DOM elements remain for AI/chatbot accessibility.
   ========================================================================= */
:root {
    --ld-dark-mode-header-bg: #272727;
    --ld-dark-mode-sidebar-bg: #1c1c1c;
    --ld-dark-mode-content-bg: #121212;
    --ld-dark-mode-content-text: #f3d548;
    --ld-dark-mode-text-secondary: #f3d548;
    --ld-dark-mode-highlight-color: salmon;
}

/* Header Area */
.learndash-wrapper .ld-focus .ld-focus-header,
.learndash-wrapper .ld-focus .ld-focus-header .ld-brand-logo {
    background: var(--ld-dark-mode-header-bg);
}

.learndash-wrapper .ld-focus .ld-focus-header {
    border: 0;
    color: var(--ld-dark-mode-content-text);
}

.learndash-wrapper .ld-focus .ld-focus-header .ld-button {
    color: var(--ld-dark-mode-content-text);
}

.learndash-wrapper .ld-focus .ld-focus-header .ld-button:hover,
.learndash-wrapper .ld-focus .ld-focus-header .ld-button:active,
.learndash-wrapper .ld-focus .ld-focus-header .ld-button:focus {
    color: var(--ld-dark-mode-highlight-color);
}

.learndash-wrapper .ld-focus .ld-focus-header .ld-progress,
.learndash-wrapper .ld-focus .ld-focus-header .ld-content-action,
.learndash-wrapper .ld-focus .ld-focus-header .ld-user-menu {
    border-color: rgba(255,255,255,0.1);
}

.learndash-wrapper .ld-focus .ld-focus-header .ld-user-menu .ld-user-menu-items {
    background: var(--ld-dark-mode-header-bg);
}

.learndash-wrapper .ld-focus .ld-focus-header .ld-user-menu .ld-user-menu-items::before {
    border-bottom-color: var(--ld-dark-mode-header-bg);
}

.learndash-wrapper .ld-focus .ld-focus-header .ld-user-menu .ld-user-menu-items a:hover {
    color: var(--ld-dark-mode-highlight-color);
}

/* Progress Bar */
.learndash-wrapper .ld-progress .ld-progress-heading .ld-progress-stats .ld-progress-percentage {
    color: var(--ld-dark-mode-highlight-color);
}

.learndash-wrapper .ld-focus .ld-focus-header .ld-progress .ld-progress-bar {
    background-color: rgba(255,255,255,0.1);
}

.learndash-wrapper .ld-focus .ld-progress .ld-progress-bar .ld-progress-bar-percentage {
    background-color: var(--ld-dark-mode-highlight-color);
}

/* Main Content Area */
body.ld-in-focus-mode,
body.ld-in-focus-mode div.learndash-wrapper {
    background: var(--ld-dark-mode-content-bg);
}

.ld-focus .ld-focus-content {
    color: var(--ld-dark-mode-content-text);
}

.ld-focus .ld-focus-content h1,
.ld-focus .ld-focus-content h2,
.ld-focus .ld-focus-content h3,
.ld-focus .ld-focus-content h4,
.ld-focus .ld-focus-content h5,
.ld-focus .ld-focus-content h6 {
    color: var(--ld-dark-mode-content-text);
}

.ld-focus .ld-tabs-content a {
    color: var(--ld-dark-mode-content-text);
    text-decoration: underline;
}

.ld-focus .ld-focus-content a:hover {
    color: var(--ld-dark-mode-highlight-color);
}

/* Breadcrumbs */
.learndash-wrapper .ld-topic-status {
    background: transparent;
}

.learndash-wrapper .ld-breadcrumbs {
    background: rgba(255,255,255,0.05);
    color: var(--ld-dark-mode-text-secondary);
}

/* Tabs */
.learndash-wrapper .ld-tabs .ld-tabs-navigation .ld-tab {
    color: var(--ld-dark-mode-text-secondary);
}

.learndash-wrapper .ld-tabs .ld-tabs-navigation::after {
    background: rgba(255,255,255,0.05);
}

.learndash-wrapper .ld-tabs .ld-tabs-navigation .ld-tab.ld-active,
.learndash-wrapper .ld-tabs .ld-tabs-navigation .ld-tab:hover,
.learndash-wrapper .ld-tabs .ld-tabs-navigation .ld-tab:active,
.learndash-wrapper .ld-tabs .ld-tabs-navigation .ld-tab:focus {
    color: var(--ld-dark-mode-highlight-color);
}

.learndash-wrapper .ld-tabs .ld-tabs-navigation .ld-tab.ld-active::after {
    background: var(--ld-dark-mode-highlight-color);
}

/* Lesson Content */
.learndash-wrapper .ld-table-list .ld-table-list-header {
    background: rgba(255,255,255,0.05);
    border-bottom: 1px solid var(--ld-dark-mode-content-bg);
    color: var(--ld-dark-mode-text-secondary);
}

.learndash-wrapper .ld-topic-list.ld-table-list .ld-table-list-lesson-details .ld-lesson-list-progress {
    border-color: var(--ld-dark-mode-text-secondary);
}

.learndash-wrapper .ld-table-list .ld-table-list-items {
    background: transparent;
    border-color: rgba(255,255,255,0.05);
}

.learndash-wrapper .ld-table-list .ld-table-list-item {
    border-color: rgba(255,255,255,0.05);
}

.learndash-wrapper .ld-table-list a.ld-table-list-item-preview {
    color: var(--ld-dark-mode-content-text);
}

.learndash-wrapper .ld-topic-list.ld-table-list .ld-table-list-item .ld-table-list-item-preview:hover,
.learndash-wrapper .ld-topic-list.ld-table-list .ld-table-list-item .ld-table-list-item-preview:active,
.learndash-wrapper .ld-topic-list.ld-table-list .ld-table-list-item .ld-table-list-item-preview:focus {
    background: rgba(255,255,255,0.05);
    color: var(--ld-dark-mode-highlight-color);
}

/* Bottom Navigation */
.learndash-wrapper .ld-content-actions > a,
.learndash-wrapper .ld-content-actions .ld-content-action .ld-course-step-back {
    color: var(--ld-dark-mode-content-text);
}

.learndash-wrapper .ld-content-actions > a:hover,
.learndash-wrapper .ld-content-actions .ld-content-action .ld-course-step-back:hover {
    color: var(--ld-dark-mode-highlight-color);
}

.learndash-wrapper .ld-button,
.learndash-wrapper .ld-content-actions .ld-button,
.learndash-wrapper .ld-focus-comment .ld-comment-reply a.comment-reply-link,
.learndash-wrapper .ld-focus-comments .form-submit #submit {
    background: rgba(255,255,255,0.07);
    color: var(--ld-dark-mode-content-text);
}

.learndash-wrapper .ld-button:hover,
.learndash-wrapper .ld-content-actions .ld-button:hover,
.learndash-wrapper .ld-focus-comment .ld-comment-reply a.comment-reply-link:hover,
.learndash-wrapper .ld-focus-comments .form-submit #submit:hover {
    background: rgba(255,255,255,0.1);
    color: var(--ld-dark-mode-highlight-color);
}

/* Comments */
#cancel-comment-reply-link,
.comment-form-reply-title,
.learndash-wrapper .ld-focus-comments .comment-respond #reply-title,
.ld-comment-body p,
.ld-focus-comments p,
.ld-focus-comments .logged-in-as a,
.learndash-wrapper .ld-focus-comment .ld-comment-avatar .ld-comment-avatar-author .ld-comment-author-name,
.learndash-wrapper .ld-focus-comment .ld-comment-avatar .ld-comment-avatar-author a.ld-comment-permalink {
    color: var(--ld-dark-mode-content-text);
}

.learndash-wrapper .ld-focus-comment .ld-comment-avatar .ld-comment-avatar-author a.ld-comment-permalink {
    opacity: 0.5;
}

#cancel-comment-reply-link:hover {
    color: var(--ld-dark-mode-highlight-color);
}

.learndash-wrapper .ld-focus-comments #commentform textarea#comment {
    border: 0;
    background: rgba(255,255,255,0.05);
    color: var(--ld-dark-mode-text-secondary);
}

.learndash-wrapper .ld-focus-comments #commentform textarea#comment:focus {
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.08);
    color: var(--ld-dark-mode-content-text);
}

.ld-focus-comments .ld-comment-wrapper,
.learndash-wrapper .ld-focus-comment.bypostauthor > .ld-comment-wrapper,
.learndash-wrapper .ld-focus-comment.role-group_leader > .ld-comment-wrapper,
.learndash-wrapper .ld-focus-comment.role-administrator > .ld-comment-wrapper {
    background: rgba(255,255,255,0.05);
}

.learndash-wrapper .ld-focus-comment.bypostauthor > .ld-comment-wrapper > .ld-comment-avatar img,
.learndash-wrapper .ld-focus-comment.role-group_leader > .ld-comment-wrapper > .ld-comment-avatar img,
.learndash-wrapper .ld-focus-comment.role-administrator > .ld-comment-wrapper > .ld-comment-avatar img {
    border-color: var(--ld-dark-mode-highlight-color);
}

.learndash-wrapper .ld-expand-button.ld-button-alternate {
    color: var(--ld-dark-mode-content-text);
}

.learndash-wrapper .ld-expand-button.ld-button-alternate .ld-icon {
    background: none;
}

.learndash-wrapper .ld-expand-button.ld-button-alternate:hover,
.learndash-wrapper .ld-expand-button.ld-button-alternate:hover .ld-icon,
.learndash-wrapper .ld-expand-button.ld-button-alternate .ld-icon:hover {
    color: var(--ld-dark-mode-highlight-color);
    background: none;
}

.learndash-wrapper .ld-focus-comments__heading {
    border-color: rgba(255,255,255,0.1);
}

/* Sidebar */
.learndash-wrapper .ld-focus .ld-focus-sidebar,
.learndash-wrapper .ld-focus-sidebar .ld-table-list .ld-table-list-items {
    background: var(--ld-dark-mode-sidebar-bg);
    color: var(--ld-dark-mode-content-text);
}

.learndash-wrapper .ld-course-navigation .ld-lesson-item-preview a.ld-lesson-item-preview-heading,
.learndash-wrapper .ld-course-navigation .ld-table-list.ld-topic-list .ld-table-list-item .ld-table-list-title a,
.learndash-wrapper .ld-course-navigation .ld-table-list.ld-topic-list .ld-table-list-item a.ld-table-list-item-preview {
    color: var(--ld-dark-mode-content-text);
}

.learndash-wrapper .ld-course-navigation .ld-lesson-item-preview a.ld-lesson-item-preview-heading:hover,
.learndash-wrapper .ld-course-navigation .ld-table-list.ld-topic-list .ld-table-list-item a.ld-table-list-item-preview:hover,
.learndash-wrapper .ld-course-navigation .ld-lesson-item-preview a.ld-lesson-item-preview-heading:active,
.learndash-wrapper .ld-course-navigation .ld-table-list.ld-topic-list .ld-table-list-item a.ld-table-list-item-preview:active,
.learndash-wrapper .ld-course-navigation .ld-lesson-item-preview a.ld-lesson-item-preview-heading:focus,
.learndash-wrapper .ld-course-navigation .ld-table-list.ld-topic-list .ld-table-list-item a.ld-table-list-item-preview:focus {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

/* Line Separators */
.learndash-wrapper .ld-course-navigation .ld-topic-list.ld-table-list .ld-table-list-item .ld-table-list-item-preview,
.learndash-wrapper .ld-focus .ld-focus-sidebar .ld-course-navigation .ld-lesson-item {
    border-color: rgba(255,255,255,0.1);
}

/* Topic/Quiz separator */
.learndash-wrapper .ld-course-navigation .ld-sep {
    color: rgba(255,255,255,0.2);
}

/* Sidebar: Current Item */
.learndash-wrapper .ld-course-navigation .ld-lesson-item.ld-is-current-lesson .ld-lesson-item-preview-heading,
.learndash-wrapper .ld-course-navigation .ld-lesson-item.ld-is-current-lesson .ld-lesson-title,
.learndash-wrapper .ld-focus .ld-focus-sidebar .ld-course-navigation .ld-topic-list.ld-table-list .ld-table-list-item .ld-table-list-item-preview.ld-is-current-item {
    color: var(--ld-dark-mode-highlight-color);
}

.learndash-wrapper .ld-focus .ld-focus-sidebar .ld-course-navigation .ld-topic-list.ld-table-list .ld-table-list-item .ld-table-list-item-preview.ld-is-current-item {
    background: rgba(255,255,255,0.1);
}

/* Sidebar: Course Heading (Sticky) */
.learndash-wrapper .ld-focus .ld-focus-sidebar .ld-course-navigation-heading {
    position: sticky;
    top: 0;
    z-index: 3;
    background: var(--ld-dark-mode-header-bg) !important;
    color: var(--ld-dark-mode-content-text) !important;
    padding: 12px 14px;
    border: 0;
    border-bottom: 1px solid rgba(255,255,255,0.10);
    box-shadow: 0 6px 12px rgba(0,0,0,.25);
}

.learndash-wrapper .ld-focus .ld-focus-sidebar .ld-course-navigation-heading h3,
.learndash-wrapper .ld-focus .ld-focus-sidebar .ld-course-navigation-heading .ld-course-navigation-title,
.learndash-wrapper .ld-focus .ld-focus-sidebar .ld-course-navigation-heading h3 a,
.learndash-wrapper .ld-focus .ld-focus-sidebar .ld-course-navigation-heading .ld-course-navigation-title a {
    margin: 0;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.2;
    letter-spacing: .4px;
    text-transform: uppercase;
    color: #000000 !important;
    text-decoration: none;
}

.learndash-wrapper .ld-focus .ld-focus-sidebar .ld-course-navigation-heading h3 a,
.learndash-wrapper .ld-focus .ld-focus-sidebar .ld-course-navigation-heading .ld-course-navigation-title a {
    color: var(--ld-dark-mode-content-text) !important;
    text-decoration: none;
}

.learndash-wrapper .ld-focus .ld-focus-sidebar .ld-course-navigation-heading h3 a:hover,
.learndash-wrapper .ld-focus .ld-focus-sidebar .ld-course-navigation-heading .ld-course-navigation-title a:hover {
    color: var(--ld-dark-mode-highlight-color) !important;
}

.learndash-wrapper .ld-focus .ld-focus-sidebar .ld-course-navigation-heading .ld-icon,
.learndash-wrapper .ld-focus .ld-focus-sidebar .ld-focus-sidebar-trigger .ld-icon {
    color: var(--ld-dark-mode-content-text) !important;
}

.learndash-wrapper .ld-focus .ld-focus-sidebar .ld-focus-sidebar-trigger:hover .ld-icon::before {
    color: var(--ld-dark-mode-highlight-color) !important;
}

/* Tooltips */
#learndash-tooltips .ld-tooltip {
    background: #eee;
    color: var(--ld-dark-mode-content-bg);
}

#learndash-tooltips .ld-tooltip::after {
    background: #eee;
}


/* ============================================================================
   LESSON CONTENT DESIGN - COLORFUL CARDS FOR KIDS
   ============================================================================
   Beautiful, kid-friendly lesson content design with dark theme.
   Place this content in your LearnDash lesson editor below the video.
   ========================================================================= */

.gp-lesson-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    font-family: 'Inter', sans-serif;
    color: #f2f2f6;
}

/* Hero Section */
.gp-lesson-hero {
    background: linear-gradient(135deg, #1a1b1f 0%, #2a2635 100%);
    border: 2px solid rgba(243, 213, 72, 0.2);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

/* Watermark removed for WordPress compatibility */

.gp-lesson-title {
    font-family: 'Playpen Sans', cursive;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: #4C9EF3;
    line-height: 1.3;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.gp-lesson-subtitle {
    font-size: 1.1rem;
    color: #4C9EF3;
    font-weight: 600;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}

/* Learning Objectives Container */
.gp-learning-intro {
    text-align: center;
    margin-bottom: 2rem;
}

.gp-learning-intro h3 {
    font-family: 'Playpen Sans', cursive;
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.gp-learning-intro p {
    color: #c4c4d4;
    font-size: 1rem;
}

/* Grid of Learning Cards */
.gp-learning-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.gp-learning-card {
    background: linear-gradient(135deg, #1e1f24 0%, #252631 100%);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    position: relative;
    border: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.gp-learning-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--card-color);
    border-radius: 16px 16px 0 0;
}

.gp-learning-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    border-color: var(--card-color);
}

/* Colorful card variations */
.gp-learning-card:nth-child(1) { --card-color: #AAE9E5; }
.gp-learning-card:nth-child(2) { --card-color: #87C7F1; }
.gp-learning-card:nth-child(3) { --card-color: #FEB7D3; }
.gp-learning-card:nth-child(4) { --card-color: #CBAFFD; }
.gp-learning-card:nth-child(5) { --card-color: #EACFFF; }
.gp-learning-card:nth-child(6) { --card-color: #FFA4A5; }

.gp-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.gp-card-icon {
    width: 50px;
    height: 50px;
    background: var(--card-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: #1a1b1f;
    font-family: 'Playpen Sans', cursive;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.gp-card-number {
    font-size: 2rem;
}

.gp-card-content p {
    color: #e5e7eb;
    font-size: 1.05rem;
    line-height: 1.7;
    font-weight: 400;
}

/* Call to Action Footer */
.gp-lesson-footer {
    background: linear-gradient(135deg, #2a2635 0%, #1a1b1f 100%);
    border: 2px solid rgba(243, 213, 72, 0.2);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
    margin-bottom: 2rem;  /* ✅ ADD THIS LINE */
}

.gp-lesson-footer h4 {
    font-family: 'Playpen Sans', cursive;
    font-size: 1.5rem;
    color: #4C9EF3;
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.gp-lesson-footer p {
    color: #c4c4d4;
    font-size: 1.05rem;
    line-height: 1.6;
}

.gp-encouragement {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.8rem 2rem;
    background: linear-gradient(135deg, #4C9EF3 0%, #4C9EF3 100%);
    color: #1a1b1f;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 50px;
    box-shadow: 0 6px 20px rgba(243, 213, 72, 0.3);
    transition: all 0.3s ease;
}

.gp-encouragement:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(243, 213, 72, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .gp-lesson-hero {
        padding: 2rem 1.5rem;
    }

    .gp-learning-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .gp-learning-card {
        padding: 1.5rem 1.25rem;
    }

    .gp-card-icon {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }

    .gp-lesson-title {
        font-size: 1.5rem;
    }
}

/* Animation on load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gp-learning-card {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.gp-learning-card:nth-child(1) { animation-delay: 0.1s; }
.gp-learning-card:nth-child(2) { animation-delay: 0.2s; }
.gp-learning-card:nth-child(3) { animation-delay: 0.3s; }
.gp-learning-card:nth-child(4) { animation-delay: 0.4s; }
.gp-learning-card:nth-child(5) { animation-delay: 0.5s; }
.gp-learning-card:nth-child(6) { animation-delay: 0.6s; }

/* Video Player Container - Matches Lesson Design */
.gp-video-container {
    background: linear-gradient(135deg, #1a1b1f 0%, #2a2635 100%);
    border: 2px solid rgba(243, 213, 72, 0.2);
    border-radius: 24px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.gp-video-container .plyr {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* Optional: Video Title/Label Above Player */
.gp-video-label {
    font-family: 'Playpen Sans', cursive;
    font-size: 1.3rem;
    font-weight: 700;
    color: #4C9EF3;
    margin-bottom: 1rem;
    text-align: center;
}


/* ============================================================================
   QUIZ RESULTS PASS/FAIL STYLING (JAVASCRIPT VERSION)
   ============================================================================
   Works with quiz-results-detection.js to show pass/fail messages.
   ========================================================================= */

/* ============================================================================
   MESSAGE CARD STYLING
   ========================================================================= */

.gp-quiz-message {
    margin-bottom: 2rem;
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gp-quiz-message-card {
    background: linear-gradient(135deg, #1e1f24 0%, #252631 100%);
    border: 2px solid rgba(243, 213, 72, 0.2);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    font-family: 'Playpen Sans', cursive;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

/* Gold stripe for pass */
.gp-quiz-pass .gp-quiz-message-card {
    color: #4C9EF3;
    border-top: 6px solid #4C9EF3;
}

/* Red stripe for fail */
.gp-quiz-fail .gp-quiz-message-card {
    color: #ef4444;
    border: 2px solid rgba(239, 68, 68, 0.3);
    border-top: 6px solid #ef4444;
}

/* ============================================================================
   CONFETTI ANIMATION - PARTY MODE (60+ pieces)
   ========================================================================= */

.gp-confetti-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    background-image: 
        /* Teal confetti */
        radial-gradient(circle, #AAE9E5 10px, transparent 10px),
        radial-gradient(circle, #AAE9E5 8px, transparent 8px),
        radial-gradient(circle, #AAE9E5 12px, transparent 12px),
        radial-gradient(circle, #AAE9E5 9px, transparent 9px),
        radial-gradient(circle, #AAE9E5 11px, transparent 11px),
        radial-gradient(circle, #AAE9E5 10px, transparent 10px),
        radial-gradient(circle, #AAE9E5 13px, transparent 13px),
        radial-gradient(circle, #AAE9E5 8px, transparent 8px),
        radial-gradient(circle, #AAE9E5 10px, transparent 10px),
        radial-gradient(circle, #AAE9E5 12px, transparent 12px),
        
        /* Blue confetti */
        radial-gradient(circle, #87C7F1 11px, transparent 11px),
        radial-gradient(circle, #87C7F1 9px, transparent 9px),
        radial-gradient(circle, #87C7F1 10px, transparent 10px),
        radial-gradient(circle, #87C7F1 12px, transparent 12px),
        radial-gradient(circle, #87C7F1 8px, transparent 8px),
        radial-gradient(circle, #87C7F1 11px, transparent 11px),
        radial-gradient(circle, #87C7F1 13px, transparent 13px),
        radial-gradient(circle, #87C7F1 9px, transparent 9px),
        radial-gradient(circle, #87C7F1 10px, transparent 10px),
        radial-gradient(circle, #87C7F1 12px, transparent 12px),
        
        /* Pink confetti */
        radial-gradient(circle, #FEB7D3 10px, transparent 10px),
        radial-gradient(circle, #FEB7D3 12px, transparent 12px),
        radial-gradient(circle, #FEB7D3 8px, transparent 8px),
        radial-gradient(circle, #FEB7D3 11px, transparent 11px),
        radial-gradient(circle, #FEB7D3 9px, transparent 9px),
        radial-gradient(circle, #FEB7D3 13px, transparent 13px),
        radial-gradient(circle, #FEB7D3 10px, transparent 10px),
        radial-gradient(circle, #FEB7D3 12px, transparent 12px),
        radial-gradient(circle, #FEB7D3 8px, transparent 8px),
        radial-gradient(circle, #FEB7D3 11px, transparent 11px),
        
        /* Yellow confetti */
        radial-gradient(circle, #CBAFFD 9px, transparent 9px),
        radial-gradient(circle, #CBAFFD 11px, transparent 11px),
        radial-gradient(circle, #CBAFFD 10px, transparent 10px),
        radial-gradient(circle, #CBAFFD 12px, transparent 12px),
        radial-gradient(circle, #CBAFFD 8px, transparent 8px),
        radial-gradient(circle, #CBAFFD 13px, transparent 13px),
        radial-gradient(circle, #CBAFFD 9px, transparent 9px),
        radial-gradient(circle, #CBAFFD 10px, transparent 10px),
        radial-gradient(circle, #CBAFFD 11px, transparent 11px),
        radial-gradient(circle, #CBAFFD 12px, transparent 12px),
        
        /* Purple confetti */
        radial-gradient(circle, #EACFFF 10px, transparent 10px),
        radial-gradient(circle, #EACFFF 8px, transparent 8px),
        radial-gradient(circle, #EACFFF 12px, transparent 12px),
        radial-gradient(circle, #EACFFF 9px, transparent 9px),
        radial-gradient(circle, #EACFFF 11px, transparent 11px),
        radial-gradient(circle, #EACFFF 13px, transparent 13px),
        radial-gradient(circle, #EACFFF 10px, transparent 10px),
        radial-gradient(circle, #EACFFF 8px, transparent 8px),
        radial-gradient(circle, #EACFFF 12px, transparent 12px),
        radial-gradient(circle, #EACFFF 9px, transparent 9px),
        
        /* Coral confetti */
        radial-gradient(circle, #FFA4A5 11px, transparent 11px),
        radial-gradient(circle, #FFA4A5 9px, transparent 9px),
        radial-gradient(circle, #FFA4A5 10px, transparent 10px),
        radial-gradient(circle, #FFA4A5 12px, transparent 12px),
        radial-gradient(circle, #FFA4A5 8px, transparent 8px),
        radial-gradient(circle, #FFA4A5 13px, transparent 13px),
        radial-gradient(circle, #FFA4A5 11px, transparent 11px),
        radial-gradient(circle, #FFA4A5 9px, transparent 9px),
        radial-gradient(circle, #FFA4A5 10px, transparent 10px),
        radial-gradient(circle, #FFA4A5 12px, transparent 12px);
    
    background-position: 
        10% 0, 25% 0, 40% 0, 55% 0, 70% 0, 85% 0, 15% 0, 30% 0, 60% 0, 90% 0,
        5% 0, 20% 0, 35% 0, 50% 0, 65% 0, 80% 0, 95% 0, 12% 0, 45% 0, 75% 0,
        18% 0, 33% 0, 48% 0, 63% 0, 78% 0, 93% 0, 8% 0, 38% 0, 68% 0, 88% 0,
        22% 0, 37% 0, 52% 0, 67% 0, 82% 0, 97% 0, 13% 0, 43% 0, 73% 0, 98% 0,
        7% 0, 28% 0, 42% 0, 57% 0, 72% 0, 87% 0, 17% 0, 47% 0, 77% 0, 92% 0,
        3% 0, 23% 0, 44% 0, 58% 0, 74% 0, 89% 0, 14% 0, 49% 0, 79% 0, 94% 0;
    
    background-repeat: no-repeat;
    animation: confetti-fall 4s ease-out forwards;
}

@keyframes confetti-fall {
    to {
        background-position: 
            10% 110%, 25% 115%, 40% 108%, 55% 112%, 70% 110%, 85% 113%, 15% 109%, 30% 111%, 60% 114%, 90% 107%,
            5% 112%, 20% 108%, 35% 113%, 50% 110%, 65% 109%, 80% 111%, 95% 114%, 12% 107%, 45% 112%, 75% 108%,
            18% 111%, 33% 109%, 48% 112%, 63% 110%, 78% 113%, 93% 108%, 8% 114%, 38% 107%, 68% 111%, 88% 109%,
            22% 113%, 37% 110%, 52% 108%, 67% 112%, 82% 109%, 97% 111%, 13% 114%, 43% 107%, 73% 110%, 98% 108%,
            7% 110%, 28% 112%, 42% 109%, 57% 113%, 72% 108%, 87% 111%, 17% 114%, 47% 107%, 77% 110%, 92% 112%,
            3% 112%, 23% 109%, 44% 113%, 58% 110%, 74% 108%, 89% 111%, 14% 114%, 49% 107%, 79% 112%, 94% 109%;
    }
}

/* ============================================================================
   RESPONSIVE
   ========================================================================= */

@media (max-width: 768px) {
    .gp-quiz-message-card {
        font-size: 1.3rem;
        padding: 1.5rem;
    }
}

/* ============================================================================
   END OF QUIZ RESULTS STYLING
   ========================================================================= */
   
   /* ============================================
   LEARNDASH QUIZ RESULTS - CONFETTI & MESSAGES
   Add this to the BOTTOM of style.css
   ============================================ */

/* Pass/Fail Message Cards */
.gp-quiz-message {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%) !important;
    border-radius: 12px !important;
    padding: 24px 32px !important;
    margin: 20px 0 30px 0 !important;
    text-align: center !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3) !important;
    border-top: 6px solid #4C9EF3 !important;
    position: relative !important;
    z-index: 10 !important;
}

.gp-quiz-message.fail {
    border-top-color: #ef4444 !important;
}

.gp-quiz-message h3 {
    color: #4C9EF3 !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    margin: 0 0 8px 0 !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

.gp-quiz-message.fail h3 {
    color: #ef4444 !important;
}

.gp-quiz-message p {
    color: #e0e0e0 !important;
    font-size: 16px !important;
    margin: 0 !important;
    line-height: 1.5 !important;
}

/* ============================================
   QUIZ BUTTON VISIBILITY CONTROL
   ============================================ */

/* Smooth transitions for button show/hide */
input[name="restartQuiz"],
.ld-content-actions .ld-button {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Ensure buttons maintain proper styling when shown */
input[name="restartQuiz"] {
    background: #4C9EF3 !important;
    color: #25271C !important;
    font-weight: 700 !important;
    padding: 12px 24px !important;
    border-radius: 8px !important;
    border: none !important;
    cursor: pointer !important;
    font-size: 16px !important;
    transition: all 0.3s ease !important;
}

input[name="restartQuiz"]:hover {
    background: #6BB3F7 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(243, 213, 72, 0.3) !important;
}

/* ============================================
   CONFETTI OVERLAY - CRITICAL STYLES
   ============================================ */

.gp-confetti-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    pointer-events: none !important;
    z-index: 99999 !important;
    overflow: hidden !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Individual Confetti Pieces */
.confetti-piece {
    position: absolute !important;
    width: 10px !important;
    height: 10px !important;
    border-radius: 50% !important;
    opacity: 0 !important;
    pointer-events: none !important;
    display: block !important;
}

/* Kahoot-Inspired Colors */
.confetti-piece:nth-child(6n+1) {
    background: radial-gradient(circle, #26BBAA 0%, #1a8a7a 100%) !important;
}
.confetti-piece:nth-child(6n+2) {
    background: radial-gradient(circle, #46178F 0%, #2d0f5c 100%) !important;
}
.confetti-piece:nth-child(6n+3) {
    background: radial-gradient(circle, #E21B3C 0%, #b01530 100%) !important;
}
.confetti-piece:nth-child(6n+4) {
    background: radial-gradient(circle, #2E76C7 0%, #2E76C7 100%) !important;
}
.confetti-piece:nth-child(6n+5) {
    background: radial-gradient(circle, #9055FF 0%, #7044cc 100%) !important;
}
.confetti-piece:nth-child(6n) {
    background: radial-gradient(circle, #FF6C47 0%, #cc5639 100%) !important;
}

/* Confetti Animation */
@keyframes confetti-fall {
    0% {
        top: -10%;
        opacity: 1;
        transform: translateX(0) rotate(0deg);
    }
    100% {
        top: 110%;
        opacity: 0.7;
        transform: translateX(calc(var(--drift) * 50px)) rotate(720deg);
    }
}

/* Apply Animation to Each Piece */
.confetti-piece {
    animation: confetti-fall 4s ease-in forwards !important;
}

/* Staggered delays for natural effect */
.confetti-piece:nth-child(1) { left: 5%; animation-delay: 0s !important; --drift: -1; }
.confetti-piece:nth-child(2) { left: 15%; animation-delay: 0.1s !important; --drift: 1; }
.confetti-piece:nth-child(3) { left: 25%; animation-delay: 0.2s !important; --drift: -0.5; }
.confetti-piece:nth-child(4) { left: 35%; animation-delay: 0.3s !important; --drift: 1.5; }
.confetti-piece:nth-child(5) { left: 45%; animation-delay: 0.4s !important; --drift: -1.5; }
.confetti-piece:nth-child(6) { left: 55%; animation-delay: 0.5s !important; --drift: 0.5; }
.confetti-piece:nth-child(7) { left: 65%; animation-delay: 0.6s !important; --drift: -0.8; }
.confetti-piece:nth-child(8) { left: 75%; animation-delay: 0.7s !important; --drift: 1.2; }
.confetti-piece:nth-child(9) { left: 85%; animation-delay: 0.8s !important; --drift: -1.2; }
.confetti-piece:nth-child(10) { left: 95%; animation-delay: 0.9s !important; --drift: 0.8; }
.confetti-piece:nth-child(11) { left: 10%; animation-delay: 0.15s !important; --drift: 1.8; }
.confetti-piece:nth-child(12) { left: 20%; animation-delay: 0.25s !important; --drift: -1.8; }
.confetti-piece:nth-child(13) { left: 30%; animation-delay: 0.35s !important; --drift: 0.3; }
.confetti-piece:nth-child(14) { left: 40%; animation-delay: 0.45s !important; --drift: -0.3; }
.confetti-piece:nth-child(15) { left: 50%; animation-delay: 0.55s !important; --drift: 1.3; }
.confetti-piece:nth-child(16) { left: 60%; animation-delay: 0.65s !important; --drift: -1.3; }
.confetti-piece:nth-child(17) { left: 70%; animation-delay: 0.75s !important; --drift: 0.7; }
.confetti-piece:nth-child(18) { left: 80%; animation-delay: 0.85s !important; --drift: -0.7; }
.confetti-piece:nth-child(19) { left: 90%; animation-delay: 0.95s !important; --drift: 1.6; }
.confetti-piece:nth-child(20) { left: 8%; animation-delay: 0.12s !important; --drift: -1.6; }
.confetti-piece:nth-child(21) { left: 18%; animation-delay: 0.22s !important; --drift: 0.9; }
.confetti-piece:nth-child(22) { left: 28%; animation-delay: 0.32s !important; --drift: -0.9; }
.confetti-piece:nth-child(23) { left: 38%; animation-delay: 0.42s !important; --drift: 1.4; }
.confetti-piece:nth-child(24) { left: 48%; animation-delay: 0.52s !important; --drift: -1.4; }
.confetti-piece:nth-child(25) { left: 58%; animation-delay: 0.62s !important; --drift: 0.6; }
.confetti-piece:nth-child(26) { left: 68%; animation-delay: 0.72s !important; --drift: -0.6; }
.confetti-piece:nth-child(27) { left: 78%; animation-delay: 0.82s !important; --drift: 1.7; }
.confetti-piece:nth-child(28) { left: 88%; animation-delay: 0.92s !important; --drift: -1.7; }
.confetti-piece:nth-child(29) { left: 12%; animation-delay: 0.18s !important; --drift: 0.4; }
.confetti-piece:nth-child(30) { left: 92%; animation-delay: 0.88s !important; --drift: -0.4; }

/* Auto-fade overlay after confetti falls */
@keyframes fade-overlay {
    0% { opacity: 1; }
    100% { opacity: 0; visibility: hidden; }
}

.gp-confetti-overlay {
    animation: fade-overlay 0.5s ease-out 5s forwards !important;
}

/* ============================================
   CONFETTI ANIMATION KEYFRAMES - CRITICAL!
   Add this to your style.css
   ============================================ */

/* Confetti falling animation */
@keyframes confetti-fall {
    0% {
        top: -10%;
        opacity: 1;
        transform: translateX(0) rotate(0deg);
    }
    100% {
        top: 110%;
        opacity: 0.7;
        transform: translateX(calc(var(--drift, 0) * 50px)) rotate(720deg);
    }
}

/* Overlay fade-out animation */
@keyframes fade-overlay {
    0% { 
        opacity: 1; 
        visibility: visible;
    }
    100% { 
        opacity: 0; 
        visibility: hidden;
    }
}

/* ============================================
   PASS/FAIL MESSAGE CARDS
   ============================================ */

.gp-quiz-message {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%) !important;
    border-radius: 12px !important;
    padding: 24px 32px !important;
    margin: 20px 0 30px 0 !important;
    text-align: center !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3) !important;
    border-top: 6px solid #4C9EF3 !important;
    position: relative !important;
    z-index: 10 !important;
}

.gp-quiz-message.fail {
    border-top-color: #ef4444 !important;
}

.gp-quiz-message h3 {
    color: #4C9EF3 !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    margin: 0 0 8px 0 !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

.gp-quiz-message.fail h3 {
    color: #ef4444 !important;
}

.gp-quiz-message p {
    color: #e0e0e0 !important;
    font-size: 16px !important;
    margin: 0 !important;
    line-height: 1.5 !important;
}

/* ============================================
   CONFETTI STYLES
   Note: Inline styles in JS will override these
   but keeping them here as backup
   ============================================ */

.gp-confetti-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    pointer-events: none !important;
    z-index: 99999 !important;
    overflow: hidden !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.confetti-piece {
    position: absolute !important;
    width: 10px !important;
    height: 10px !important;
    border-radius: 50% !important;
    pointer-events: none !important;
    display: block !important;
}

/* Password Reset Specific Styles */

/* Success message for password reset */
.gp-login-notice.gp-success {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(76, 175, 80, 0.05));
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 12px;
    padding: 16px;
    margin: 20px 0;
}

/* FIX: Make reset form text WHITE instead of grey */
.gp-login-card p {
    color: #ffffff !important;  /* Changed from #666 to white */
    line-height: 1.5;
    opacity: 0.9;  /* Slight transparency for elegance */
}

/* Make sure the back to login link is styled */
.gp-login-links {
    margin-top: 20px;
    text-align: center;
}

.gp-login-links .gp-link {
    color: #4da6ff;  /* Lighter blue for better visibility on dark */
    text-decoration: none;
    transition: opacity 0.3s;
}

.gp-login-links .gp-link:hover {
    opacity: 0.8;
}

/* Loading state for reset button */
.gp-submit-btn.gp-loading .gp-btn-text {
    display: none;
}

.gp-submit-btn.gp-loading .gp-btn-loader {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.gp-btn-loader {
    display: none;
}

/* Spinner animation */
.gp-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* NEW: Style SVG icons */
.gp-field-icon svg,
.gp-notice-icon svg {
    width: 20px;
    height: 20px;
    color: rgba(255, 255, 255, 0.7);
}

.gp-notice-icon svg {
    width: 24px;
    height: 24px;
    color: #4CAF50;
}

.gp-field-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.gp-notice-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
}

/* ==== Lesson Contents — Clickable Timestamps ==== */
.lesson-contents {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lesson-contents li {
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background .15s ease;
}

.lesson-contents li:hover {
    background: rgba(0,0,0,.06);
}

.lesson-contents li.is-active {
    outline: 2px solid currentColor;
}

/* Timestamp tooltip on video seek bar */
.plyr-timestamp-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.15s ease;
    max-width: 300px;
    text-overflow: ellipsis;
    overflow: hidden;
}

.plyr-timestamp-tooltip.visible {
    opacity: 1;
}

.plyr-timestamp-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
}

/* Learning card timestamp functionality */
.gp-learning-card[data-timestamp] {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gp-learning-card[data-timestamp]:hover {
    transform: translateY(-2px);
}

.gp-learning-card[data-timestamp].is-active {
    box-shadow: 0 0 0 3px currentColor;
    transform: scale(1.02);
}

/* Hide lesson-contents list if you're using cards instead */
#lesson-contents.hidden {
    display: none;
}

/* Hide "Ready to Begin?" footer section on all pages except A1 (page ID 45) */
body:not(.page-id-45) .gp-lesson-footer {
    display: none !important;
}

/* ==== Pilot Feedback Form Styling ==== */
/* Light container for feedback forms on /feedback-quick page */
.page-id-10115 .fluentform,
.page.feedback-quick .fluentform,
body[class*="feedback"] .fluentform {
    background: #fef9e7 !important;
    padding: 32px !important;
    border-radius: 12px !important;
    border: 2px solid #4C9EF3 !important;
    box-shadow: 0 4px 16px rgba(243, 213, 72, 0.2) !important;
    max-width: 700px !important;
    margin: 0 auto !important;
}

/* Form labels - keep black, they'll show on light background */
.page-id-10115 .fluentform label,
.page.feedback-quick .fluentform label,
body[class*="feedback"] .fluentform label {
    color: #000000 !important;
    font-weight: 600 !important;
    margin-bottom: 8px !important;
    display: block !important;
}

/* Input fields - white background with border */
.page-id-10115 .fluentform .ff-el-form-control,
.page.feedback-quick .fluentform .ff-el-form-control,
body[class*="feedback"] .fluentform .ff-el-form-control {
    background: #ffffff !important;
    border: 2px solid #ddd !important;
    color: #000000 !important;
    border-radius: 8px !important;
    padding: 12px 16px !important;
    font-size: 16px !important;
}

/* Input focus state */
.page-id-10115 .fluentform .ff-el-form-control:focus,
.page.feedback-quick .fluentform .ff-el-form-control:focus,
body[class*="feedback"] .fluentform .ff-el-form-control:focus {
    border-color: #4C9EF3 !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(243, 213, 72, 0.2) !important;
}

/* Textarea */
.page-id-10115 .fluentform textarea.ff-el-form-control,
.page.feedback-quick .fluentform textarea.ff-el-form-control,
body[class*="feedback"] .fluentform textarea.ff-el-form-control {
    min-height: 120px !important;
}

/* Submit button - yellow with black text */
.page-id-10115 .fluentform .ff-btn-submit,
.page.feedback-quick .fluentform button[type="submit"],
body[class*="feedback"] .fluentform button[type="submit"] {
    background: #4C9EF3 !important;
    color: #000000 !important;
    font-weight: bold !important;
    border-radius: 10px !important;
    padding: 14px 32px !important;
    border: none !important;
    cursor: pointer !important;
    font-size: 16px !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 4px 12px rgba(243, 213, 72, 0.4) !important;
}

.page-id-10115 .fluentform .ff-btn-submit:hover,
.page.feedback-quick .fluentform button[type="submit"]:hover,
body[class*="feedback"] .fluentform button[type="submit"]:hover {
    background: #f5dd60 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(243, 213, 72, 0.5) !important;
}

/* Success message */
.page-id-10115 .fluentform .ff-message-success,
.page.feedback-quick .fluentform .ff-message-success,
body[class*="feedback"] .fluentform .ff-message-success {
    background: #d4edda !important;
    border: 2px solid #4CAF50 !important;
    color: #155724 !important;
    border-radius: 8px !important;
    padding: 16px !important;
    font-weight: 500 !important;
}

/* Error message */
.page-id-10115 .fluentform .ff-message-danger,
.page.feedback-quick .fluentform .ff-errors-in-stack,
body[class*="feedback"] .fluentform .ff-errors-in-stack {
    background: #f8d7da !important;
    border: 2px solid #f44336 !important;
    color: #721c24 !important;
    border-radius: 8px !important;
    padding: 16px !important;
}

/* Form spacing */
.page-id-10115 .fluentform .ff-el-group,
.page.feedback-quick .fluentform .ff-el-group,
body[class*="feedback"] .fluentform .ff-el-group {
    margin-bottom: 24px !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .page-id-10115 .fluentform,
    .page.feedback-quick .fluentform,
    body[class*="feedback"] .fluentform {
        padding: 20px !important;
        border-radius: 8px !important;
    }
}
/* ============================================================================
   IPAD MENU ALIGNMENT FIX (ELEMENTOR HEADER)
   ============================================================================
   Fixes menu items being shifted to the right and off-screen on iPad.
   This site uses Elementor for the header, so we target Elementor classes.
   Fixes horizontal scrolling and menu overflow on tablets (768px-1024px).
   ========================================================================= */

/* iPad/Tablet specific fixes (768px - 1024px) */
@media only screen and (min-width: 768px) and (max-width: 1024px) {

    /* CRITICAL: Prevent horizontal scrolling on entire page */
    body,
    html {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }

    /* Fix Elementor header sections */
    .elementor-location-header .elementor-section,
    .elementor-location-header .elementor-container,
    header .elementor-section,
    header .elementor-container {
        max-width: 100% !important;
        width: 100% !important;
        overflow-x: hidden !important;
        overflow-y: visible !important;
    }

    /* Ensure Elementor columns don't overflow */
    .elementor-location-header .elementor-column,
    .elementor-location-header .elementor-widget-wrap,
    header .elementor-column,
    header .elementor-widget-wrap {
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    /* Fix Elementor navigation menu widget */
    .elementor-widget-nav-menu,
    .elementor-nav-menu,
    .elementor-nav-menu__container {
        max-width: 100% !important;
        overflow-x: visible !important;
    }

    /* Reduce spacing on menu items */
    .elementor-nav-menu--main .elementor-item {
        margin-left: 8px !important;
        margin-right: 8px !important;
        padding-left: 6px !important;
        padding-right: 6px !important;
        font-size: 14px !important;
    }

    /* Fix Elementor nav menu layout */
    .elementor-nav-menu--layout-horizontal .elementor-nav-menu {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 8px !important;
    }

    /* Reduce widget spacing in header */
    .elementor-location-header .elementor-widget {
        margin-left: 6px !important;
        margin-right: 6px !important;
    }

    /* Fix Elementor buttons in header (login/logout) */
    .elementor-location-header .elementor-button-wrapper,
    .elementor-location-header .elementor-button,
    header .elementor-button-wrapper,
    header .elementor-button {
        margin-left: 4px !important;
        margin-right: 4px !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
        font-size: 13px !important;
    }

    /* Ensure Elementor inner sections fit */
    .elementor-location-header .elementor-inner-section,
    header .elementor-inner-section {
        max-width: 100% !important;
    }

    /* Fix column gap in header */
    .elementor-location-header .elementor-section.elementor-section-boxed > .elementor-container,
    header .elementor-section.elementor-section-boxed > .elementor-container {
        column-gap: 10px !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* Also fix Astra default header (in case of fallback) */
    .ast-main-header-bar-alignment,
    .main-header-bar,
    .ast-main-header-wrap,
    .site-header {
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    /* Fix Astra header navigation */
    .ast-header-navigation .main-navigation ul.main-header-menu > li {
        margin-left: 8px !important;
        margin-right: 8px !important;
    }

    .ast-header-navigation .main-navigation ul.main-header-menu > li > a {
        font-size: 14px !important;
        padding-left: 6px !important;
        padding-right: 6px !important;
    }
}

/* Additional fix for portrait iPad (768px-834px) */
@media only screen and (min-width: 768px) and (max-width: 834px) {

    /* Further tighten spacing on smaller tablets */
    .elementor-nav-menu--main .elementor-item {
        margin-left: 4px !important;
        margin-right: 4px !important;
        padding-left: 4px !important;
        padding-right: 4px !important;
        font-size: 13px !important;
    }

    .elementor-location-header .elementor-button {
        padding-left: 8px !important;
        padding-right: 8px !important;
        font-size: 12px !important;
    }

    .elementor-location-header .elementor-section.elementor-section-boxed > .elementor-container,
    header .elementor-section.elementor-section-boxed > .elementor-container {
        column-gap: 5px !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
}

/* TEST: Manual merge should trigger deploy workflow - 2025-11-10 */
