/* 
   MEDICPLEXUS PREMIUM SITE DESIGN 
   Theme: Medical/Education (Clean, Modern, Trustworthy)
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    /* Brand Colors */
    --primary: #6c5ce7;
    --primary-dark: #5649c0;
    --primary-light: #a29bfe;
    --accent: #fdcb6e;
    --success: #00b894;
    --danger: #ff7675;

    /* Text Colors */
    --text-dark: #1e272e;
    --text-medium: #636e72;
    --text-light: #b2bec3;

    /* Backgrounds */
    --bg-body: #fdfdfd;
    --bg-light: #f4f6f8;
    --bg-white: #ffffff;

    /* UI Elements */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.08);

    /* Container */
    --container-width: 1200px;
    --header-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    background-color: var(--bg-body);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Force Elementor Container Padding Reset */
.e-con {
    --e-con-transform: initial;
    --e-con-padding: 0px !important;
    padding: 0 !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
}

.btn i {
    font-size: 1.1em;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108, 92, 231, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid #e1e1e1;
    color: var(--text-dark);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(108, 92, 231, 0.05);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 14px;
}

/* =========================================
   HEADER
   ========================================= */
.mp-header {
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.mp-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.mp-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 24px;
    color: var(--primary);
}

.mp-logo i {
    width: 40px;
    height: 40px;
    background: rgba(108, 92, 231, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.mp-nav {
    display: flex;
    gap: 30px;
}

.mp-nav-link {
    font-weight: 500;
    color: var(--text-medium);
    position: relative;
    padding: 5px 0;
}

.mp-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.mp-nav-link:hover {
    color: var(--primary);
}

.mp-nav-link:hover::after {
    width: 100%;
}

/* Header Actions & User Menu */
.edubin-sticky-header-wrapper .e-con-inner {
    padding: 0 !important;
}

.mp-header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: 40px;
    /* Added spacing */
}

.mp-user-menu {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    padding: 5px 10px 5px 5px;
    border-radius: 50px;
    transition: background 0.2s;
}

.mp-user-menu:hover {
    background: var(--bg-light);
}

.mp-user-points {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #ece8f7;
    color: #6c5ce7;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: inset 0 0 0 1px rgb(108 92 231 / 26%);
}

.mp-user-avatar {
    width: 70px !important;
    height: 70px !important;
    border-radius: 50% !important;
    object-fit: cover;
    border: 2px solid white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.mp-user-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    text-align: left;
}

.mp-user-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
}

.mp-user-role {
    font-size: 11px;
    color: var(--text-medium);
}

/* Dropdown */
.mp-dropdown {
    position: absolute;
    top: 120%;
    right: 0;
    width: 260px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 0, 0, 0.05);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    padding: 10px;
}

.mp-user-menu:hover .mp-dropdown,
.mp-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mp-dropdown-header {
    padding: 15px;
    border-bottom: 1px solid #eee;
    margin-bottom: 5px;
}

.mp-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border-radius: 8px;
    color: var(--text-medium);
    font-size: 14px;
    font-weight: 500;
}

.mp-dropdown-item:hover {
    background: var(--bg-light);
    color: var(--primary);
}

.mp-dropdown-item i {
    width: 20px;
    text-align: center;
}

.mp-dropdown-item.logout {
    color: var(--danger);
    margin-top: 5px;
    border-top: 1px dashed #eee;
}

.mp-dropdown-item.logout:hover {
    background: #fff5f5;
}

/* Mobile Toggle */
.mp-mobile-toggle {
    display: none;
    font-size: 24px;
    color: var(--text-dark);
    cursor: pointer;
    padding: 5px;
    margin-left: 5px;
}

/* Utility Classes */
.desktop-only {
    display: flex !important;
}

.mobile-only {
    display: none !important;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: flex !important;
    }

    .mp-header-actions .btn {
        padding: 6px 12px !important;
        font-size: 12px !important;
        min-width: auto !important;
        white-space: nowrap;
    }

    .mp-auth-buttons {
        gap: 8px !important;
    }

    .mp-header-actions {
        margin-left: 8px !important;
        gap: 8px !important;
    }

    .mp-header-cart {
        margin-right: 0px !important;
    }

    .mp-nav-login {
        background: #f1f5f9 !important;
        color: var(--primary) !important;
        font-weight: 800 !important;
        margin-top: 15px !important;
        border-radius: 12px !important;
        text-align: center !important;
        padding: 12px 20px !important;
    }
}

@media (min-width: 992px) {

    .woocommerce.woocommerce-checkout form #order_review,
    .woocommerce.woocommerce-checkout form #order_review_heading,
    .woocommerce-page.woocommerce-checkout form #order_review,
    .woocommerce-page.woocommerce-checkout form #order_review_heading {
        float: unset !important;
        width: 100% !important;
    }

}

/* =========================================
   AUTH MODAL & BOTTOM SHEET
   ========================================= */
.mp-auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    /*transition: opacity 0.4s ease;*/
}

.mp-auth-modal.active {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 1;
}

.mp-auth-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.mp-auth-buttons {
    display: contents;
}

.mp-auth-content {
    position: relative;
    width: 90%;
    max-width: 440px;
    background: white;
    border-radius: 32px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    z-index: 10;
    overflow: hidden;
    transform: scale(0.95) translateY(30px);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mp-auth-modal.active .mp-auth-content {
    transform: scale(1) translateY(0);
}

.mp-auth-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #64748b;
    transition: all 0.3s;
    z-index: 20;
}

.mp-auth-close:hover {
    background: var(--danger);
    color: white;
    transform: rotate(90deg);
}

/* Drag Handle for Mobile */
.mp-auth-handle {
    display: none;
    width: 48px;
    height: 5px;
    background: #cbd5e1;
    border-radius: 10px;
    margin: 12px auto 0;
    opacity: 0.5;
}

.mp-auth-body {
    padding: 50px 35px 40px;
}

.mp-auth-tabs {
    display: flex;
    background: #f1f5f9;
    padding: 6px;
    border-radius: 20px;
    margin-bottom: 35px;
    border: 1px solid #e2e8f0;
}

.mp-auth-tab {
    flex: 1;
    padding: 14px;
    border: none;
    background: transparent;
    border-radius: 16px;
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: #64748b;
}

.mp-auth-tab.active {
    background: white;
    color: var(--primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.mp-auth-header {
    margin-bottom: 32px;
    text-align: center;
}

.mp-auth-header h3 {
    font-size: 28px;
    margin-bottom: 12px;
    color: #0f172a;
    letter-spacing: -0.5px;
}

.mp-auth-header p {
    font-size: 16px;
    color: #64748b;
    line-height: 1.5;
}

.mp-auth-form {
    display: none;
}

.mp-auth-form.active {
    display: block;
    animation: authSlideUp 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes authSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Simplified Form Styling */
.mp-form-group {
    margin-bottom: 10px;
}

.mp-form-group input,
.tutor-form-control {
    width: 100% !important;
    padding: 16px 24px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 20px !important;
    background: #f8fafc !important;
    font-size: 16px !important;
    transition: all 0.3s !important;
    color: #0f172a !important;
    font-family: inherit !important;
    outline: none !important;
}

.mp-form-group input:focus,
.tutor-form-control:focus {
    border-color: var(--primary) !important;
    background: white !important;
    box-shadow: 0 0 0 0px rgba(108, 92, 231, 0.15) !important;
}

.btn-block {
    width: 100%;
    padding: 16px !important;
    font-size: 17px !important;
    border-radius: 20px !important;
}

.tutor-btn-primary {
    padding: 16px !important;
    font-size: 17px !important;
    border-radius: 20px !important;
}

/* Mobile Bottom Sheet Refinements - Floating App Feel */
@media (max-width: 768px) {
    .mp-auth-modal.active {
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-end !important;
        align-items: center !important;
    }

    .mp-auth-content {
        max-width: calc(100% - 30px);
        width: calc(100% - 30px);
        margin: 0 auto 20px;
        /* Floating look at the bottom */
        border-radius: 40px;
        /* Fully rounded top and bottom */
        transform: translateY(110%);
        transition: transform 0.6s cubic-bezier(0.32, 0.72, 0, 1);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    }

    .mp-auth-handle {
        display: block;
        width: 60px;
        height: 6px;
        background: #000;
        /* Darker, thicker handle like the image */
        margin: 20px auto 0;
        opacity: 1;
        border-radius: 10px;
    }

    .mp-auth-body {
        padding: 5px 30px 40px;
    }

    .mp-auth-modal.active .mp-auth-content {
        transform: translateY(0);
    }

    .mp-auth-close {
        top: 25px;
        right: 25px;
        background: transparent;
        color: #94a3b8;
        display: none;
    }

    .mp-auth-header h3 {
        font-size: 24px;
        font-weight: 800;
        margin-top: 15px;
        color: #1e293b;
        letter-spacing: -0.5px;
    }

    .mp-auth-header p {
        font-size: 14px;
    }

    .mp-form-group input {
        border-radius: 100px !important;
        /* Pill shape inputs as seen in image */
        padding: 18px 25px !important;
        background: white !important;
        border: 1px solid #e2e8f0 !important;
    }

    .testimonial-card {
        text-align: center;
    }

}

/* =========================================
   HEADER SEARCH
   ========================================= */
.mp-header-search {
    flex: 1;
    max-width: 400px;
    margin: 0 30px;
    position: relative;
}

.mp-search-input {
    width: 100%;
    padding: 10px 15px 10px 40px !important;
    border: 1px solid #eee;
    background: #f4f6f8;
    border-radius: 50px !important;
    font-size: 14px;
    transition: all 0.2s;
}

.mp-search-input:focus {
    background: white;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
    outline: none;
}

.mp-search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 14px;
}

/* =========================================
   FOOTER (Simplified)
   ======================================== */
.mp-footer {
    background: #ffffff;
    padding: 60px 0 0px;
    border-top: 1px solid #f0f0f0;
    margin-top: 0px;
}


.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    /* Simplified columns */
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: var(--text-medium);
    margin-top: 20px;
    font-size: 15px;
    max-width: 300px;
}

.footer-col h4 {
    font-size: 18px;
    margin-bottom: 25px;
}

.footer-links {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.footer-links li {
    margin-bottom: 12px;
    list-style: none !important;
}

.footer-links a {
    color: var(--text-medium);
    font-size: 15px;
    transition: all 0.2s;
    text-decoration: none !important;
    display: block;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

/* Social Links Fix */
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-link {
    width: 25px;
    height: 25px;
    background: #f1f2f6;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s;
    font-size: 14px;
    /* Smaller Icon */
}

/* Ensure SVG fills with current color */
.social-link i,
.social-link svg {
    color: inherit;
    fill: currentColor;
}

.newsletter-input {
    width: 100%;
    padding: 15px;
    border: 1px solid #eee;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    margin-bottom: 15px;
    font-family: inherit;
}

.footer-bottom {
    border-top: 1px solid #eee;
    padding-top: 30px;
    text-align: center;
    color: var(--text-light);
    font-size: 14px;
}

/* =========================================
   NEW SECTIONS CSS
   ========================================= */
/* Categories */
/* Categories */
.category-card {
    background: white;
    border: 1px solid #f0f0f0;
    border-radius: 16px;
    padding: 20px !important;
    display: flex;
    align-items: center;
    gap: 15px !important;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    margin-bottom: 0 !important;
}

.category-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(108, 92, 231, 0.1);
}

.cat-icon {
    width: 50px !important;
    height: 50px !important;
    background: #f8f9fa;
    border-radius: 12px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    transition: all 0.3s;
    flex-shrink: 0;
}

.cat-icon i,
.cat-icon svg {
    font-size: 24px !important;
    width: 24px !important;
    height: 24px !important;
    color: inherit;
    fill: currentColor;
    transition: all 0.3s;
}

.category-card:hover .cat-icon {
    background: var(--primary);
    color: white;
}

.category-card:hover .cat-icon i,
.category-card:hover .cat-icon svg,
.category-card:hover .cat-icon svg path {
    color: white !important;
    fill: white !important;
}

.category-card .cat-name {
    font-family: 'Outfit', sans-serif !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    color: var(--text-dark);
    line-height: 1.2;
}

/* Testimonials */
.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.testi-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.testi-text {
    font-style: italic;
    color: var(--text-medium);
    line-height: 1.6;
}

.stats-strip {
    background: var(--primary-dark);
    padding: 50px 0;
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 34px;
    font-weight: 800;
    margin-bottom: 0px;
    color: #ffffff;
    line-height: 1;
}

.stat-item p {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    font-weight: 500;
    margin: 0px;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 20px;
    }

    .stat-item h3 {
        font-size: 36px;
    }
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 80px 0;
    color: white;
    text-align: center;
    border-radius: 20px;
    margin: 50px 0;
}

.cta-section h2 {
    color: white;
    margin-bottom: 20px;
}

/* =========================================
   ABOUT PAGE SPECIFIC
   ========================================= */
.about-hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #eef1f5 100%);
    padding: 80px 0;
    margin-bottom: 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.about-hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    background: linear-gradient(90deg, var(--primary-dark), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-hero p {
    font-size: 18px;
    color: var(--text-medium);
    max-width: 700px;
    margin: 0 auto;
}

/* Values Section */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.value-card {
    background: white;
    padding: 35px 25px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.value-icon {
    width: 70px;
    height: 70px;
    background: rgba(108, 92, 231, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 20px;
    transition: all 0.3s;
}

.value-card:hover .value-icon {
    background: var(--primary);
    color: white;
    transform: rotateY(180deg);
}

.value-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.value-card p {
    color: var(--text-medium);
    font-size: 15px;
}

/* Team Section */
.team-section {
    background: #f8f9fa;
    padding: 100px 0;
    margin-top: 60px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.team-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
    text-align: center;
    padding-bottom: 25px;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.team-img-wrapper {
    width: 120px;
    height: 120px;
    margin: 30px auto 20px;
    position: relative;
}

.team-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #f8f9fa;
    box-shadow: var(--shadow-sm);
}

.team-role {
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
    display: block;
}

.team-socials a {
    color: var(--text-light);
    margin: 0 8px;
    font-size: 16px;
    transition: 0.3s;
}

.team-socials a:hover {
    color: var(--primary);
}

/* Timeline/History (Optional for 5th section) */
.history-item {
    display: flex;
    gap: 30px;
    padding-bottom: 40px;
    border-left: 2px solid #eee;
    padding-left: 30px;
    position: relative;
}

.history-item::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 0;
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
}

.history-year {
    font-weight: 800;
    color: var(--primary);
    font-size: 24px;
    min-width: 100px;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 991px) {
    .mp-nav {
        display: none;
        /* Hide standard nav */
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-md);
        gap: 15px;
        z-index: 999;
    }

    .mp-nav.active {
        display: flex;
    }

    .mp-mobile-toggle {
        display: block;
    }

    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr;
    }

    .footer-brand p {
        margin: 20px auto;
    }

    .mp-header-search {
        display: none;
    }
}

/* =========================================
   HOME PAGE CONCEPT STYLES (Ported - Global)
   ========================================= */

/* HERO SECTION */
.hero-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-image-card {
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    padding: 20px;
    position: relative;
    z-index: 2;
}

/* FEATURES GRID */
.features-section {
    padding: 80px 0;
    background: var(--bg-white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: all 0.3s;
}

.feature-card h4 {
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-medium);
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-card {
        padding: 30px 20px;
    }
}

/* COURSE GRID (Modern) */
.courses-section {
    padding: 100px 0;
    background: #f8f9fa;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 50px;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Forced 3 columns for desktop */
    gap: 30px;
}

.course-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.course-thumb {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.course-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-dark);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.course-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.course-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: var(--text-medium);
    margin-bottom: 15px;
}

.course-title {
    font-size: 18px;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 700;
}

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px dashed #eee;
    margin-top: auto;
}

.course-price {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
}

/* BLOG GRID */
.blog-grid {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.blog-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
    border: 1px solid #eee;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.blog-thumb {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-content {
    padding: 20px;
}

.blog-meta {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 10px;
}

/* Mobile Adjustments for these sections */
@media (max-width: 991px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .course-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    .section-header {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        text-align: center;
    }
}


/* Header Cart */
.mp-header-cart {
    font-size: 22px;
    color: var(--text-dark);
    margin-right: 20px;
    position: relative;
    transition: color 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.mp-header-cart:hover {
    color: var(--primary);
}

.mp-cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--danger);
    color: white;
    font-size: 11px;
    font-weight: 800;
    padding: 0;
    border-radius: 50%;
    height: 18px;
    width: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@media (max-width: 767px) {
    .container {
        padding: 0 15px !important;
        max-width: 100% !important;
    }

    .mp-header .container {
        padding: 0 10px !important;
    }

    .mp-logo {
        font-size: 18px !important;
        gap: 8px !important;
    }

    .mp-logo img {
        max-height: 30px !important;
        min-width: 110px !important;
    }

    #tutor-login-form .tutor-form-check,
    #tutor-login-form .tutor-btn-ghost {
        font-size: 13px;
    }

    /* HIDE Points on Header Bar (Mobile) */
    .desktop-points {
        display: none !important;
    }

    /* SHOW Points in Dropdown (Mobile) */
    .mobile-points {
        display: flex !important;
        margin-top: 10px;
        justify-content: center;
        width: 100%;
    }

    .mp-user-info {
        display: none;
    }

    /* Simplify header on mobile */
    .mp-header {
        padding: 0 !important;
        height: 70px;
    }

    .mp-header-actions {
        margin-left: 5px !important;
        gap: 5px !important;
    }

    .mp-user-avatar {
        width: 45px !important;
        height: 45px !important;
    }

    .mp-header-cart {
        font-size: 20px !important;
        margin-right: 5px !important;
        width: 35px !important;
        height: 35px !important;
    }

    .footer-grid {
        display: none !important;
        /* Hide footer columns on mobile */
    }

    .mp-footer {
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .footer-bottom {
        border-top: none;
        padding-top: 0;
    }

    .stats-grid {
        flex-direction: column;
        gap: 30px;
    }
}

/* ----------------------------------------------------------- */
/* SINGLE COURSE UTILITIES & LAYOUT (from course-single.html) */
/* ----------------------------------------------------------- */

/* COURSE HERO */
.course-hero {
    background: linear-gradient(135deg, #2d3436 0%, #1e272e 100%);
    color: white;
    padding: 60px 0 100px;
    /* Extra padding bottom for overlap */
    position: relative;
    margin-bottom: 0;
}

.breadcrumbs {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.breadcrumbs a {
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumbs a:hover {
    color: white;
}

.course-tag {
    display: inline-block;
    background: rgba(108, 92, 231, 0.2);
    color: #a29bfe;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 15px;
    border: 1px solid rgba(108, 92, 231, 0.3);
}

.course-title-large {
    font-size: 36px;
    margin-bottom: 20px;
    color: white;
    font-weight: 700;
    line-height: 1.2;
}

.course-meta-large {
    display: flex;
    gap: 25px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.meta-item i {
    color: var(--primary-light, #74b9ff);
}

/* AUTHOR */
.course-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.author-img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

/* LAYOUT GRID */
.course-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-top: -60px;
    /* Negative margin to pull content up */
    position: relative;
    z-index: 10;
    padding-bottom: 60px;
}

/* SIDEBAR (Sticky) */
.course-sidebar-wrapper {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.course-enroll-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.video-preview {
    position: relative;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 25px;
    background-size: cover;
    background-position: center;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.play-btn {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary, #0984e3);
    font-size: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
}

.video-preview:hover .play-btn {
    transform: scale(1.1);
}

.price-section {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.current-price {
    font-size: 32px;
    font-weight: 800;
    color: #2d3436;
}

.old-price {
    font-size: 16px;
    color: #b2bec3;
    text-decoration: line-through;
}

.course-features-list {
    margin: 25px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 20px 0;
}

.cf-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
    color: #636e72;
}

.cf-item:last-child {
    margin-bottom: 0;
}

.cf-item i {
    color: var(--primary, #0984e3);
    width: 20px;
}

/* MAIN CONTENT BOX */
.course-main-content {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* TABS */
.mp-tabs {
    display: flex;
    gap: 30px;
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
}

.mp-tab {
    padding-bottom: 15px;
    font-weight: 600;
    color: #636e72;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.mp-tab:hover {
    color: var(--primary, #0984e3);
}

.mp-tab.active {
    color: var(--primary, #0984e3);
    border-bottom-color: var(--primary, #0984e3);
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* CURRICULUM */
.curriculum-item {
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 15px;
    background: #fdfdfd;
    overflow: hidden;
}

.curr-header {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    background: #fafafa;
    transition: background 0.3s;
}

.curr-header:hover {
    background: #f0f0f0;
}

.curr-content {
    border-top: 1px solid #eee;
    padding: 0;
    display: none;
}

.curr-content.open {
    display: block;
}

.lesson-row {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #636e72;
    background: white;
    transition: background 0.2s;
}

.lesson-row:hover {
    background: #f8f9fa;
}

.lesson-row:last-child {
    border-bottom: none;
}

.lesson-row a {
    color: inherit;
    text-decoration: none;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.lesson-row i {
    color: #b2bec3;
}

.lesson-row.preview i {
    color: var(--success, #00b894);
}

.lesson-row.locked i {
    color: var(--danger, #d63031);
}

footer .edubin-footer-inner .e-con-inner {
    padding-top: 0px;
}

/* MEDIA QUERIES */
@media (max-width: 991px) {
    .course-layout {
        grid-template-columns: 1fr;
        margin-top: 0;
        gap: 30px;
    }

    .course-hero {
        padding-bottom: 40px;
    }

    .course-sidebar-wrapper {
        order: -1;
        position: static;
    }
}

/* ========================================
   AUTHENTICATION MODAL STYLES
   ======================================== */

.mp-auth-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mp-auth-modal.active {
    opacity: 1;
}

.mp-auth-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.mp-auth-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-radius: 30px 30px 0 0;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    box-shadow: 0 -10px 50px rgba(0, 0, 0, 0.2);
}

.mp-auth-modal.active .mp-auth-content {
    transform: translateY(0);
}

.mp-auth-handle {
    width: 40px;
    height: 4px;
    background: #dfe6e9;
    border-radius: 2px;
    margin: 15px auto 10px;
}

.mp-auth-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
}

.mp-auth-close:hover {
    background: #e9ecef;
    transform: rotate(90deg);
}

.mp-auth-close i {
    font-size: 18px;
    color: #636e72;
}

.mp-auth-body {
    padding: 20px 30px 40px;
}

/* Tabs */
.mp-auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    background: #f8f9fa;
    padding: 5px;
    border-radius: 12px;
}

.mp-auth-tab {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: transparent;
    color: #636e72;
    font-weight: 600;
    font-size: 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.mp-auth-tab.active {
    background: white;
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Forms */
.mp-auth-forms {
    position: relative;
}

.mp-auth-form {
    display: none;
    animation: fadeIn 0.3s ease;
}

.mp-auth-form.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mp-auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.mp-auth-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.mp-auth-header p {
    color: var(--text-medium);
    font-size: 15px;
}

/* Form Groups */
.mp-form-group {
    margin-bottom: 20px;
}

.mp-form-group input,
.mp-custom-reg-form input[type="text"],
.mp-custom-reg-form input[type="email"],
.mp-custom-reg-form input[type="password"] {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #dfe6e9;
    border-radius: 10px;
    font-size: 15px;
    background: #f8f9fa;
    transition: all 0.3s;
    outline: none;
}

.mp-form-group input:focus,
.mp-custom-reg-form input:focus {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.1);
}

/* Tutor Login Form Overrides */
#mpLoginForm .tutor-login-form-wrap {
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
}

#mpLoginForm .tutor-form-group {
    margin-bottom: 20px;
}

#mpLoginForm .tutor-form-group input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #dfe6e9;
    border-radius: 10px;
    font-size: 15px;
    background: #f8f9fa;
    transition: all 0.3s;
}

#mpLoginForm .tutor-form-group input:focus {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.1);
}

#mpLoginForm .tutor-btn-primary {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
}

#mpLoginForm .tutor-btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 92, 231, 0.3);
}

/* Desktop Styles */
@media (min-width: 768px) {
    .mp-auth-content {
        bottom: auto;
        top: 50%;
        left: 50%;
        right: auto;
        transform: translate(-50%, -50%) scale(0.9);
        border-radius: 20px;
        max-width: 480px;
        width: 90%;
        max-height: 85vh;
    }

    .mp-auth-modal.active .mp-auth-content {
        transform: translate(-50%, -50%) scale(1);
    }

    .mp-auth-handle {
        display: none;
    }

    .mp-auth-body {
        padding: 30px 40px 40px;
    }
}

/* Mobile Responsive */
@media (max-width: 767px) {
    .mp-auth-body {
        padding: 15px 20px 30px;
    }

    .mp-auth-header h3 {
        font-size: 22px;
    }

    .mp-auth-header p {
        font-size: 14px;
    }

    .mp-form-group input,
    .mp-custom-reg-form input {
        padding: 12px 16px;
        font-size: 14px;
    }
}

/* Tutor Registration Form Styling */
#mpRegisterForm .tutor-registration-form-wrap {
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
}

#mpRegisterForm .tutor-form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 0;
}

#mpRegisterForm .tutor-form-col-6 {
    flex: 1;
}

#mpRegisterForm .tutor-form-group {
    margin-bottom: 15px !important;
}

#mpRegisterForm label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

#mpRegisterForm input[type="text"],
#mpRegisterForm input[type="email"],
#mpRegisterForm input[type="password"] {
    width: 100%;
    padding: 0px 15px;
    border: 1px solid #dfe6e9;
    border-radius: 70px;
    font-size: 16px;
    background: #f8f9fa;
    transition: all 0.3s;
    outline: none;
}

.tutor-login-wrap,
#tutor-registration-wrap {
    padding: 0px 0 0px !important;
    box-shadow: none !important;
}

#mpRegisterForm input:focus {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.1);
}

.tutor-login-form-wrapper,
#tutor-registration-form {
    padding: 0px !important;
}

#mpRegisterForm label {
    display: none !important;
}

#mpRegisterForm .tutor-btn-primary {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

#mpRegisterForm .tutor-btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 92, 231, 0.3);
}

/* Hide Unnecessary Fields in Registration */
#mpRegisterForm .tutor-form-row>div:has(input[name="user_login"]),
#mpRegisterForm .tutor-form-row>div:has(input[name="password_confirmation"]) {
    display: none !important;
}

#mpRegisterForm .tutor-form-col-6 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
}

#mpRegisterForm .tutor-form-group.tutor-reg-form-user-role {
    display: none;
}

/* Responsive adjustment */
@media (max-width: 575px) {
    #mpRegisterForm .tutor-form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* ── Show/Hide password button: centered vertically in field ── */
#mpRegisterForm .tutor-password-field {
    position: relative;
    display: flex;
    align-items: center;
}

#mpRegisterForm .tutor-password-field input[type="password"],
#mpRegisterForm .tutor-password-field input[type="text"] {
    padding-right: 45px;
}

#mpRegisterForm .show-hide-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    z-index: 2;
}

/* ── Hide custom strength bar (Tutor has its own) ── */
#mp-pwd-strength-wrap {
    display: none !important;
}