/* === MSM MAIN STYLESHEET === */

/* === HEADER === */
.msm-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--msm-border);
    height: var(--msm-header-height);
    transition: var(--msm-transition);
}

.msm-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--msm-header-height);
    gap: 24px;
}

.msm-header__logo a { display: flex; align-items: center; }
.msm-header__logo img.msm-logo { height: 48px; width: auto; }
.msm-logo--text { font-size: 1.4rem; font-weight: 700; color: var(--msm-primary); white-space: nowrap; }

.msm-header__nav { flex: 1; display: flex; justify-content: center; }

.msm-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
}

.msm-menu-item { position: relative; }
.msm-menu-link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--msm-text);
    border-radius: var(--msm-radius);
    transition: var(--msm-transition);
}
.msm-menu-link:hover,
.msm-menu-item.current-menu-item > .msm-menu-link {
    color: var(--msm-primary);
    background: var(--msm-accent-light);
}

.msm-menu-arrow { transition: transform 0.2s; }
.msm-menu-item:hover > .msm-menu-link .msm-menu-arrow { transform: rotate(180deg); }

/* Submenu */
.msm-submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #fff;
    border-radius: var(--msm-radius);
    box-shadow: var(--msm-shadow-lg);
    border: 1px solid var(--msm-border);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: var(--msm-transition);
    list-style: none;
}
.msm-menu-item:hover > .msm-submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.msm-submenu .msm-menu-link { padding: 8px 20px; font-size: 0.9rem; border-radius: 0; }

/* Header Actions */
.msm-header__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.msm-header__search-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    color: var(--msm-text);
    transition: var(--msm-transition);
}
.msm-header__search-btn:hover { background: var(--msm-accent-light); color: var(--msm-primary); }

/* Language Switcher */
.msm-lang-switcher { display: flex; gap: 4px; }
.msm-lang-switcher__item {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--msm-text-muted);
    transition: var(--msm-transition);
}
.msm-lang-switcher__item:hover { color: var(--msm-primary); }
.msm-lang-switcher__item--active {
    background: var(--msm-primary);
    color: #fff !important;
}

/* Mobile Toggle */
.msm-header__toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.msm-hamburger { display: flex; flex-direction: column; gap: 5px; width: 24px; }
.msm-hamburger span { display: block; height: 2px; background: var(--msm-text); border-radius: 2px; transition: var(--msm-transition); }

/* === BUTTONS === */
.msm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    border: 2px solid transparent;
    border-radius: var(--msm-radius);
    cursor: pointer;
    transition: var(--msm-transition);
    font-family: var(--msm-font);
    text-decoration: none;
    line-height: 1.4;
}
.msm-btn--primary { background: var(--msm-primary); color: #fff; border-color: var(--msm-primary); }
.msm-btn--primary:hover { background: var(--msm-primary-light); border-color: var(--msm-primary-light); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(var(--msm-primary-rgb),0.3); }
.msm-btn--outline { background: transparent; color: var(--msm-primary); border-color: var(--msm-primary); }
.msm-btn--outline:hover { background: var(--msm-primary); color: #fff; }
.msm-btn--white { background: #fff; color: var(--msm-primary); border-color: #fff; }
.msm-btn--white:hover { background: rgba(255,255,255,0.9); transform: translateY(-1px); }
.msm-btn--whatsapp { background: #25D366; color: #fff; border-color: #25D366; }
.msm-btn--whatsapp:hover { background: #20BA5A; border-color: #20BA5A; color: #fff; }
.msm-btn--lg { padding: 14px 32px; font-size: 1rem; }
.msm-btn--block { display: flex; width: 100%; }
.msm-btn--disabled { background: #ccc; color: #888; border-color: #ccc; cursor: not-allowed; pointer-events: none; }

/* === HERO === */
.msm-hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--msm-primary) 0%, #0a5209 50%, #052804 100%);
    overflow: hidden;
}
.msm-hero__bg {
    position: absolute; inset: 0;
    background: url('') center/cover;
    opacity: 0.15;
}
.msm-hero__overlay { position: absolute; inset: 0; }
.msm-hero__content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 60px 0;
}
.msm-hero__title {
    font-size: 2.8rem;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.2;
}
.msm-hero__title span { color: var(--msm-gold); }
.msm-hero__subtitle { font-size: 1.2rem; color: rgba(255,255,255,0.85); margin-bottom: 32px; }
.msm-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* === BANNER === */
.msm-banner {
    position: relative;
    background: var(--msm-primary);
    padding: 60px 0;
    text-align: center;
    overflow: hidden;
}
.msm-banner--image .msm-banner__bg {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.3;
}
.msm-banner__overlay { position: absolute; inset: 0; background: rgba(7,54,6,0.7); }
.msm-banner__content { position: relative; z-index: 2; }
.msm-banner__title { color: #fff; font-size: 2.2rem; margin-bottom: 8px; }
.msm-banner__subtitle { color: rgba(255,255,255,0.8); font-size: 1.1rem; margin-bottom: 16px; }

/* Breadcrumb */
.msm-breadcrumb { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.msm-breadcrumb a { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.msm-breadcrumb a:hover { color: #fff; }
.msm-breadcrumb span { color: rgba(255,255,255,0.9); font-size: 0.9rem; }
.msm-breadcrumb__sep { color: rgba(255,255,255,0.4); }

/* === SECTIONS === */
.msm-section { padding: 80px 0; }
.msm-section--alt { background: var(--msm-bg-section); }
.msm-section__header { text-align: center; margin-bottom: 48px; }
.msm-section__title { font-size: 2rem; color: var(--msm-text); position: relative; display: inline-block; }
.msm-section__title::after { content: ''; display: block; width: 60px; height: 3px; background: var(--msm-primary); margin: 12px auto 0; border-radius: 3px; }
.msm-section__subtitle { color: var(--msm-text-muted); font-size: 1.05rem; margin-top: 12px; }
.msm-section__footer { text-align: center; margin-top: 40px; }

/* === CTA === */
.msm-cta {
    background: linear-gradient(135deg, var(--msm-primary) 0%, #0a5209 100%);
    padding: 80px 0;
    text-align: center;
}
.msm-cta__title { color: #fff; font-size: 2rem; margin-bottom: 12px; }
.msm-cta__text { color: rgba(255,255,255,0.85); font-size: 1.1rem; margin-bottom: 32px; }
.msm-cta__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* === FOOTER === */
.msm-footer { background: #1a1a1a; color: #ccc; }
.msm-footer__main { padding: 60px 0 40px; }
.msm-footer__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}
.msm-footer__logo { margin-bottom: 16px; }
.msm-footer__logo img.msm-logo { height: 40px; filter: brightness(10); }
.msm-footer__desc { font-size: 0.9rem; color: #999; line-height: 1.7; }
.msm-footer__title { color: #fff; font-size: 1.1rem; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--msm-primary); }

.msm-footer__links { list-style: none; padding: 0; margin: 0; }
.msm-footer__links li { margin-bottom: 8px; }
.msm-footer__links a { color: #999; font-size: 0.9rem; transition: var(--msm-transition); }
.msm-footer__links a:hover { color: #fff; padding-inline-start: 4px; }

.msm-footer__contact { list-style: none; padding: 0; margin: 0; }
.msm-footer__contact li { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; color: #999; font-size: 0.9rem; }
.msm-footer__contact svg { color: var(--msm-primary); flex-shrink: 0; margin-top: 2px; fill: #4CAF50; }
.msm-footer__contact a { color: #999; }
.msm-footer__contact a:hover { color: #fff; }

.msm-social-links { display: flex; gap: 8px; margin-top: 16px; }
.msm-social-link {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,0.1); color: #999;
    transition: var(--msm-transition);
}
.msm-social-link:hover { background: var(--msm-primary); color: #fff; transform: translateY(-2px); }

.msm-footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 16px 0;
    text-align: center;
}
.msm-footer__bottom p { color: #666; font-size: 0.85rem; margin: 0; }

/* === SEARCH MODAL === */
.msm-search-modal {
    position: fixed; inset: 0; z-index: 9999;
    display: flex; align-items: flex-start; justify-content: center;
    padding-top: 120px;
    opacity: 0; visibility: hidden;
    transition: var(--msm-transition);
}
.msm-search-modal.active { opacity: 1; visibility: visible; }
.msm-search-modal__overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); }
.msm-search-modal__content {
    position: relative; z-index: 2;
    background: #fff; border-radius: var(--msm-radius-lg);
    padding: 32px; width: 100%; max-width: 600px;
    box-shadow: var(--msm-shadow-lg);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}
.msm-search-modal.active .msm-search-modal__content { transform: translateY(0); }
.msm-search-modal__close {
    position: absolute; top: 16px; right: 16px;
    background: none; border: none; cursor: pointer; color: var(--msm-text-muted);
    transition: var(--msm-transition);
}
.msm-search-modal__close:hover { color: var(--msm-text); }
.msm-search-modal h3 { margin-bottom: 16px; font-size: 1.2rem; }
.msm-search-modal__input {
    width: 100%; padding: 14px 16px;
    border: 2px solid var(--msm-border); border-radius: var(--msm-radius);
    font-size: 1rem; font-family: var(--msm-font);
    transition: var(--msm-transition);
}
.msm-search-modal__input:focus { outline: none; border-color: var(--msm-primary); }
.msm-search-modal__results { margin-top: 16px; max-height: 300px; overflow-y: auto; }
.msm-search-result-item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px; border-radius: var(--msm-radius);
    transition: var(--msm-transition); cursor: pointer;
}
.msm-search-result-item:hover { background: var(--msm-bg-section); }
.msm-search-result-item img { width: 48px; height: 48px; object-fit: cover; border-radius: 6px; }
.msm-search-result-item h4 { margin: 0; font-size: 0.95rem; font-weight: 600; }
.msm-search-result-item span { font-size: 0.8rem; color: var(--msm-text-muted); }

/* === WHATSAPP FLOAT === */
.msm-whatsapp-float {
    position: fixed;
    bottom: 24px; right: 24px;
    z-index: 999;
    width: 56px; height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    box-shadow: 0 4px 16px rgba(37,211,102,0.4);
    transition: var(--msm-transition);
    animation: msm-pulse 2s infinite;
}
.msm-whatsapp-float:hover { transform: scale(1.1); color: #fff; box-shadow: 0 6px 24px rgba(37,211,102,0.5); }
@keyframes msm-pulse { 0%, 100% { box-shadow: 0 4px 16px rgba(37,211,102,0.4); } 50% { box-shadow: 0 4px 24px rgba(37,211,102,0.6); } }

/* === COURSE SINGLE === */
.msm-course-single { padding: 40px 0 80px; }
.msm-course-layout { display: grid; grid-template-columns: 1fr 360px; gap: 40px; }
.msm-course-main__image { border-radius: var(--msm-radius-lg); overflow: hidden; margin-bottom: 24px; }
.msm-course-main__image img { width: 100%; }
.msm-course-main__excerpt { font-size: 1.1rem; color: var(--msm-text-light); line-height: 1.8; border-left: 4px solid var(--msm-primary); padding-left: 16px; }
.msm-course-section { margin-bottom: 32px; }
.msm-course-section h2 { font-size: 1.4rem; color: var(--msm-text); margin-bottom: 16px; padding-bottom: 8px; border-bottom: 2px solid var(--msm-accent-light); }

.msm-course-sidebar__card {
    background: #fff; border: 1px solid var(--msm-border);
    border-radius: var(--msm-radius-lg); padding: 24px;
    position: sticky; top: calc(var(--msm-header-height) + 20px);
    box-shadow: var(--msm-shadow);
}
.msm-course-sidebar__price { text-align: center; padding-bottom: 20px; border-bottom: 1px solid var(--msm-border); margin-bottom: 20px; }
.msm-price--old { text-decoration: line-through; color: var(--msm-text-muted); font-size: 0.95rem; margin-right: 8px; }
.msm-price--current { color: var(--msm-primary); font-weight: 700; }
.msm-price--large { font-size: 1.8rem; }

.msm-course-sidebar__details { list-style: none; padding: 0; margin: 0 0 20px; }
.msm-course-sidebar__details li {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 0; border-bottom: 1px solid var(--msm-border);
    font-size: 0.9rem;
}
.msm-course-sidebar__details li strong { color: var(--msm-text-muted); }
.msm-course-sidebar__details li span { color: var(--msm-text); font-weight: 500; }

.msm-course-sidebar__actions { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.msm-course-sidebar__cats { font-size: 0.85rem; color: var(--msm-text-muted); }
.msm-course-sidebar__cats a { color: var(--msm-primary); font-weight: 500; }

/* === ARCHIVE LAYOUT === */
.msm-archive-layout { display: grid; grid-template-columns: 260px 1fr; gap: 32px; }

/* === PROSE === */
.msm-prose h1,.msm-prose h2,.msm-prose h3,.msm-prose h4 { margin-top: 1.5em; }
.msm-prose p { line-height: 1.8; }
.msm-prose ul,.msm-prose ol { padding-inline-start: 24px; margin-bottom: 1em; }
.msm-prose li { margin-bottom: 0.5em; }
.msm-prose img { border-radius: var(--msm-radius); }

/* === CONTACT === */
.msm-contact-grid { max-width: 600px; margin: 0 auto; }
.msm-contact-item {
    display: flex; align-items: flex-start; gap: 16px;
    padding: 20px; background: #fff; border-radius: var(--msm-radius);
    margin-bottom: 16px; box-shadow: var(--msm-shadow);
    transition: var(--msm-transition);
}
.msm-contact-item:hover { transform: translateY(-2px); box-shadow: var(--msm-shadow-lg); }
.msm-contact-item__icon { width: 48px; height: 48px; background: var(--msm-accent-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--msm-primary); flex-shrink: 0; }
.msm-contact-item h4 { margin: 0 0 4px; font-size: 0.95rem; }
.msm-contact-item p { margin: 0; color: var(--msm-text-muted); font-size: 0.9rem; }

/* === LOADER === */
.msm-loader { text-align: center; padding: 40px; }
.msm-spinner {
    width: 40px; height: 40px; margin: 0 auto;
    border: 3px solid var(--msm-border);
    border-top-color: var(--msm-primary);
    border-radius: 50%;
    animation: msm-spin 0.8s linear infinite;
}
@keyframes msm-spin { to { transform: rotate(360deg); } }

/* === NO RESULTS === */
.msm-no-results { text-align: center; padding: 60px 20px; }
.msm-no-results h2 { margin-bottom: 12px; }

/* === PAGINATION === */
.msm-pagination { margin-top: 40px; text-align: center; }
.msm-pagination .nav-links { display: flex; justify-content: center; gap: 4px; flex-wrap: wrap; }
.msm-pagination .page-numbers {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 40px; height: 40px; padding: 0 12px;
    border: 1px solid var(--msm-border); border-radius: var(--msm-radius);
    font-size: 0.9rem; font-weight: 500; color: var(--msm-text);
    transition: var(--msm-transition);
}
.msm-pagination .page-numbers:hover,
.msm-pagination .page-numbers.current {
    background: var(--msm-primary); color: #fff; border-color: var(--msm-primary);
}

/* === Status indicators === */
.msm-status--open { color: #4CAF50; font-size: 0.8rem; font-weight: 600; }
.msm-status--closed { color: #F44336; font-size: 0.8rem; font-weight: 600; }
