/* --- PEARL GLASS VARIABLES --- */
:root {
    --m-dark: #002147;       /* Oxford Blue */
    --m-orange: #FFBF00;     /* Amber Gold */
    --m-white: #ffffff;
    --m-bg: #f5f5f5;         /* Light Gray Base */

    /* Calibrated Pearl Glass */
    --glass: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(0, 33, 71, 0.1);
    --shadow-pearl: 0 15px 35px rgba(0, 33, 71, 0.05);
}

/* --- RESET & LAYOUT --- */
body { background-color: var(--m-bg); color: var(--m-dark); font-family: 'Inter', sans-serif; margin: 0; }
.m-section { padding: 100px 0; }
.m-container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.m-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: stretch; }
.m-text-center { text-align: center; }
.m-bg-light { background: #f8fafc; }
.m-bg-dark { background: var(--m-dark); color: white; }
.text-white { color: white !important; }
.opacity-8 { opacity: 0.8; }
.w-100 { width: 100%; box-sizing: border-box; }

/* --- TYPOGRAPHY --- */
.m-brand-tag { color: var(--m-orange); font-weight: 800; text-transform: uppercase; letter-spacing: 2px; display: block; margin-bottom: 1rem; }
.m-main-title { font-family: 'Cinzel', serif; font-size: 3.5rem; color: var(--m-dark); line-height: 1.1; margin-bottom: 1.5rem; }
.m-subtext { font-size: 1.25rem; color: #555; margin-bottom: 2.5rem; max-width: 520px; }

/* --- BUTTONS --- */
.m-btn { padding: 16px 36px; border-radius: 50px; font-weight: 700; text-decoration: none; display: inline-block; transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1); border: none; cursor: pointer; text-align: center; }
.m-btn-primary { background: var(--m-dark); color: #fff; margin-right: 12px; box-shadow: 0 10px 20px rgba(0,33,71,0.15); }
.m-btn-outline { border: 2px solid var(--m-dark); color: var(--m-dark); background: transparent; }
.m-btn-orange { background: var(--m-orange); color: var(--m-dark); box-shadow: 0 10px 20px rgba(255,191,0,0.2); }
.m-btn-primary:hover { transform: translateY(-3px); background: #00152e; }

/* --- THE QUINCUNX --- */
.m-visual-card {
    background: var(--m-dark);
    border-radius: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 340px;
    height: 340px;
    /* Pushes the card to the right edge of its column */
    margin-left: auto;
    box-shadow: 0 30px 60px rgba(0,33,71,0.25);
    position: relative;
}
.macunx-grid { position: relative;
    width: 200px;
    height: 200px;
    display: block; /* Ensure no flex interference */
}
.node {
    position: absolute; width: 14px; height: 14px;
    border-radius: 50%; z-index: 10;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.7s cubic-bezier(0.19, 1, 0.22, 1);
}
.node.center {
    width: 24px; height: 24px; background: var(--m-orange);
    box-shadow: 0 0 30px var(--m-orange); border: none;
    top: 50%; left: 50%; transform: translate(-50%, -50%); cursor: pointer; z-index: 20;
}
.tl { top: -7px; left: -7px; } .tr { top: -7px; right: -7px; }
.bl { bottom: -7px; left: -7px; } .br { bottom: -7px; right: -7px; }

/* --- NEW SUBSCRIPTION & PRICING UI --- */
.m-pricing-header { margin-bottom: 30px; }
.m-pricing-featured { border: 2px solid var(--m-orange); position: relative; }
.m-price-box { margin: 25px 0; background: rgba(0,33,71,0.03); padding: 25px; border-radius: 20px; text-align: center; }

.m-toggle-container { display: inline-flex; background: #eee; padding: 4px; border-radius: 50px; margin-bottom: 10px; }
.m-toggle-btn { border: none; padding: 8px 24px; border-radius: 50px; cursor: pointer; font-weight: 700; background: transparent; transition: 0.3s; }
.m-toggle-btn.active { background: var(--m-white); color: var(--m-dark); box-shadow: 0 4px 10px rgba(0,0,0,0.1); }

.m-price-display { margin-top: 15px; }
.m-currency { font-size: 1.5rem; vertical-align: top; font-weight: 700; }
.m-amount { font-size: 3.5rem; font-weight: 800; color: var(--m-dark); }
.m-period { color: #64748b; font-weight: 600; }

.m-feature-list { flex-grow: 1; }
.m-feature-list li { margin-bottom: 15px; display: flex; align-items: center; color: #444; font-weight: 500; }
.m-check { color: #10b981; margin-right: 12px; font-style: normal; font-weight: 800; }

/* --- ELITE PRICING ADJUSTMENTS --- */
.m-pricing-bespoke {
    background: linear-gradient(to bottom right, var(--glass), rgba(255, 191, 0, 0.03));
    border: 1px dashed var(--m-dark); /* Dotted border suggests 'Custom/Tailored' */
}

.m-icon-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.m-badge-elite {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    background: var(--m-dark);
    color: var(--m-orange);
    padding: 4px 12px;
    border-radius: 4px;
    letter-spacing: 1px;
}

.bespoke-box {
    background: transparent;
    border: 1px solid rgba(0, 33, 71, 0.1);
}

.m-pricing-bespoke .m-btn-outline:hover {
    background: var(--m-dark);
    color: white;
    border-color: var(--m-dark);
}

/* Ensure icons are centered in cards */
.m-icon {
    display: block;
    line-height: 1;
}

/* --- PRICING HEADER ALIGNMENT --- */

/* 1. Ensure the icon/badge container has a standard height */
.m-pricing-header .m-icon,
.m-pricing-header .m-icon-wrapper {
    height: 48px;         /* Calibrated height to fit the icon + badge */
    display: flex;
    align-items: center;
    margin-bottom: 24px;  /* Consistent gap before the Header */
}

/* 2. Ensure the icon doesn't add extra line-height padding */
.m-pricing-header .m-icon {
    font-size: 2.5rem;
    line-height: 1;
    margin-bottom: 0;     /* Reset margin since wrapper handles it */
}

/* 3. Optional: Standardize header height if text wraps */
.m-pricing-header h2 {
    min-height: 40px;     /* Keeps subtext aligned even if title is long */
    margin-bottom: 15px;
    display: flex;
    align-items: flex-end; /* Keeps text on the baseline */
}
/* --- CLEAN PRICING RESET --- */
.m-plan-wrapper {
    display: flex;
    gap: 30px;
    padding: 20px;
    justify-content: center; /* This centers the card when it's alone */
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Hide scrollbar */
    -ms-overflow-style: none;
}

.m-plan-wrapper::-webkit-scrollbar {
    display: none;
}

.m-plan-wrapper .m-offering-card {
    flex: 0 0 420px; /* Fixed width for the "Deck" feel */
    min-width: 320px;
    max-width: 100%;
    scroll-snap-align: center;
    background: white;
    /* Ensure the card doesn't shrink */
}

/* Mobile Fix */
@media (max-width: 600px) {
    .m-plan-wrapper {
        justify-content: flex-start; /* Slides from left on mobile */
        padding-left: 30px;
        padding-right: 30px;
    }
    .m-plan-wrapper .m-offering-card {
        flex: 0 0 85vw;
    }
}

/* Fix feature list alignment */
.m-feature-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    text-align: left;
}





/* Fix for the grid alignment you mentioned earlier */
.m-grid-2 {
   display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: stretch; /* Cards stay equal height by default */
}
.m-hero .m-grid-2 {
    align-items: center; /* Vertically centers Quincunx against Hero Text */
}

/* --- CAROUSEL GLASS COMPONENTS --- */
.m-focus-carousel {
    position: relative;
    padding: 60px 0;
    min-height: 550px;
    display: flex;
    align-items: center;
}
.m-carousel-track {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    gap: 50px;
}
.m-carousel-item {
    flex: 0 0 500px;
    transition: all 0.7s ease;
    opacity: 0.3;
    filter: blur(4px);
    transform: scale(0.85);
}
.m-carousel-item.is-active {
    opacity: 1;
    filter: blur(0);
    transform: scale(1.05);
    z-index: 10;
}
.m-detailed-event-card {
    padding: 50px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
}

/* NAVIGATION ARROWS */
.m-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--m-dark);
    color: white;
    border: none;
    cursor: pointer;
    z-index: 100;
    font-size: 1.5rem;
    transition: 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.m-nav-arrow:hover {
    background: var(--m-orange);
    color: var(--m-dark);
    transform: translateY(-50%) scale(1.1);
}
.m-nav-arrow.prev { left: 40px; }
.m-nav-arrow.next { right: 40px; }

.m-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}
.dot {
    width: 12px;
    height: 12px;
    background: #cbd5e1;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.4s;
}
.dot.active {
    background: var(--m-dark);
    width: 35px;
    border-radius: 20px;
}

/* --- OFFERING CARDS --- */
.m-offering-card {
    height: 100%; /* Ensures cards fill the 'stretched' grid height */
    display: flex;
    flex-direction: column;
    padding: 50px;
    border-radius: 24px;
    background: var(--glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-pearl);
    transition: 0.4s ease;
}
.m-offering-card:hover { transform: translateY(-10px); box-shadow: 0 25px 50px rgba(0,33,71,0.08); }
.m-icon { font-size: 3.5rem; margin-bottom: 20px; display: flex; }
.m-text-link { color: var(--m-dark); font-weight: 700; text-decoration: none; display: inline-block; margin-top: 15px; }




/* --- ACADEMY LAYOUT: STANDARD 2-COLUMN --- */
.m-academy-layout {
    display: flex;
    gap: 80px;
    margin-top: 60px;
    align-items: flex-start;
}

/* --- ACADEMY LAYOUT --- */
.m-academy-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 60px;
    margin-top: 40px;
    align-items: start;
}

/* --- SIDEBAR: RESERVED AREA --- */
.m-academy-sidebar {
    position: sticky;
    top: 40px;
    padding-right: 30px;
    border-right: 1px solid rgba(0, 33, 71, 0.1); /* Vertical divider */
    height: calc(100vh - 100px);
}

.m-sidebar-title {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    margin-bottom: 30px;
}

.m-filter-heading {
    font-size: 0.8rem;
    font-weight: 800;
    opacity: 0.4;
    letter-spacing: 1.5px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

/* --- CHECKBOX FIX (No Double Boxes) --- */
.m-checkbox-container {
    display: flex;
    align-items: center;
    position: relative;
    padding: 8px 0;
    cursor: pointer;
}

/* Hide original checkbox but keep it functional */
.m-checkbox-container input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 2;
}

.m-checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(0, 33, 71, 0.2);
    border-radius: 4px;
    margin-right: 12px;
    position: relative;
    z-index: 1;
    transition: 0.2s;
}

input:checked ~ .m-checkmark {
    background: var(--m-dark);
    border-color: var(--m-dark);
}

/* White tick inside the box */
.m-checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

input:checked ~ .m-checkmark:after { display: block; }

.m-label-text { font-size: 0.95rem; opacity: 0.7; }
input:checked ~ .m-label-text { opacity: 1; font-weight: 700; }

/* Specialized Course Cards */
.m-course-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 40px !important;
}
.m-card-meta {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--m-orange);
    margin-bottom: 15px;
}
.m-card-title {
    font-family: 'Cinzel', serif;
    font-size: 1.6rem;
    line-height: 1.2;
    margin-bottom: 20px;
}
.m-card-footer {
    margin-top: 30px;
    border-top: 1px solid rgba(0,33,71,0.05);
    padding-top: 25px;
}
@media (max-width: 991px) {
    .m-academy-layout { grid-template-columns: 1fr; }
    .m-sidebar-glass { position: relative; top: 0; }
}
/* --- SCOPED COURSE PAGE STYLES --- */

/* Hero Alignment */
.m-course-hero {
    padding: 80px 0;
    background: #ffffff;
    border-bottom: 1px solid var(--glass-border);
}

.m-hero-content { display: flex; flex-direction: column; align-items: flex-start; }

/* Instructor Elite Card */
.m-instructor-profile {
    background: var(--m-white);
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    padding: 40px;
    box-shadow: var(--shadow-pearl);

}

.m-instructor-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 25px;
}

.m-instructor-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 4px solid var(--m-bg);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.m-instructor-bio {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #64748b;
    border-top: 1px solid #f1f5f9;
    padding-top: 20px;
}

/* Syllabus Accordion Design */
.m-syllabus-wrapper { margin-top: 40px; }

.m-chapter-box {
    margin-bottom: 16px;
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
    transition: all 0.3s ease;
}

.m-chapter-box.is-active {
    box-shadow: 0 10px 25px rgba(0, 33, 71, 0.05);
    border-color: var(--m-dark);
}

.m-chapter-trigger {
    padding: 24px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    background: #fff;
}

.m-chapter-trigger:hover { background: #fafafa; }

.m-chapter-content {
    display: none; /* Controlled by the 'is-active' class */
    padding: 0 30px 25px;
    background: #fff;
}

.m-chapter-box.is-active .m-chapter-content {
    display: block;
    animation: fadeIn 0.4s ease;
}

.m-lesson-row {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px 0;
    border-bottom: 1px solid #f1f5f9;
    transition: 0.2s;
}

.m-lesson-row:last-child { border-bottom: none; }

.m-lesson-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: 10px;
    font-size: 1.1rem;
    flex-shrink: 0;
}

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

/* Icon Alignment Fix */
.m-btn-orange i {
    font-size: 0.8rem;
    transition: transform 0.3s;
}
.m-btn-orange:hover i { transform: translateX(5px); }
/* --- TIMELINE --- */
.m-timeline { position: relative; margin: 60px auto; padding: 40px 0; }
.m-timeline-line { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: #e2e8f0; transform: translateX(-50%); }
.m-timeline-item { position: relative; width: 50%; padding: 20px 60px; box-sizing: border-box; transition: 0.6s ease; }
.m-left { text-align: right; left: 0; }
.m-right { text-align: left; left: 50%; }
.m-timeline-node {
    position: absolute; top: 28px; width: 18px; height: 18px;
    background: white; border: 4px solid var(--m-orange);
    border-radius: 50%; z-index: 5; box-shadow: 0 0 10px rgba(255,191,0,0.3);
}
.m-left .m-timeline-node { right: -12px; }
.m-right .m-timeline-node { left: -12px; }
.m-timeline-content {
    background: var(--glass); backdrop-filter: blur(10px);
    padding: 30px; border-radius: 20px; border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-pearl);
}

/* RESPONSIVE */
@media (max-width: 991px) {
    .m-grid-2 { grid-template-columns: 1fr; text-align: center; }
    .m-subtext { margin-left: auto; margin-right: auto; }
    .m-timeline-line { left: 20px; transform: none; }
    .m-timeline-item { width: 100%; text-align: left; padding-left: 50px; left: 0; }
    .m-timeline-node { left: 11px !important; }
}
/* Target the specific sidebar footer in LMS Portal */
.lms-sidebar-footer,
.lms-footer,
[class*="sidebar-footer"],
[class*="powered-by"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    pointer-events: none !important;
}

/* Specifically the lightning icon SVG */
.lms-sidebar-footer svg,
.frappe-icon {
    display: none !important;
}