/* Header and FAQ Styles for MemoPezil Official */
:root {
    --primary-blue: #000B2E;
    --text-white: #ffffff;
    --accent-color: #ffafff; /* Matching the memory/focus span in hero */
    --buy-now-bg: #e31e24; /* Standard urgent red for CTA */
}

/* Header Styles */
header.site-header {
    background-color: var(--primary-blue);
    color: var(--text-white);
    padding: 15px 5%;
    position: sticky;
    top: 0;
    z-index: 10000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    font-family: 'Montserrat', sans-serif, Arial;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-text {
    font-size: 22px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo-text span {
    color: var(--accent-color);
}

.desktop-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    color: var(--text-white);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--accent-color);
}

.buy-now-btn {
    background-color: var(--buy-now-bg);
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 800;
    animation: headerPulse 2s infinite;
}

.buy-now-btn:hover {
    background-color: #ff0000;
    color: #fff;
    transform: scale(1.05);
}

@keyframes headerPulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(227, 30, 36, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(227, 30, 36, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(227, 30, 36, 0); }
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
}

.mobile-menu-toggle span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--text-white);
    border-radius: 3px;
    transition: 0.3s;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background-color: var(--primary-blue);
    z-index: 10001;
    display: flex;
    flex-direction: column;
    padding: 80px 40px;
    transition: 0.4s ease-in-out;
    box-shadow: -5px 0 15px rgba(0,0,0,0.5);
}

.mobile-menu-overlay.active {
    right: 0;
}

.mobile-menu-overlay .nav-link {
    font-size: 20px;
    margin-bottom: 25px;
}

.close-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 40px;
    color: var(--text-white);
    cursor: pointer;
}

@media (max-width: 991px) {
    .desktop-menu { display: none; }
    .mobile-menu-toggle { display: flex; }
    .logo-text { font-size: 18px; }
}

/* FAQ Accordion Robust Styles */
.e-n-accordion-item {
    margin-bottom: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.e-n-accordion-item:hover {
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.e-n-accordion-item-title {
    padding: 18px 25px;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fdfdfd;
    font-weight: 700;
    color: #000B2E;
    user-select: none;
    outline: none;
}

/* Remove default marker */
.e-n-accordion-item-title::-webkit-details-marker { display: none; }
.e-n-accordion-item-title::marker { content: ""; }

.e-n-accordion-item-title-text {
    flex: 1;
    font-size: 1.1rem;
    line-height: 1.4;
}

.e-n-accordion-item-title-icon {
    margin-left: 15px;
    width: 24px;
    height: 24px;
    position: relative;
    color: #e31e24; /* Use red for the icon to stand out */
}

/* Toggle visibility based on the 'open' attribute of <details> */
.e-n-accordion-item[open] .e-opened { display: flex; }
.e-n-accordion-item[open] .e-closed { display: none; }
.e-n-accordion-item:not([open]) .e-opened { display: none; }
.e-n-accordion-item:not([open]) .e-closed { display: flex; }

.e-opened, .e-closed {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.e-n-accordion-item[open] .e-n-accordion-item-title {
    background: #f8f9ff;
    border-bottom: 1px solid #eee;
}

/* Content area */
.e-n-accordion-item > div, 
.e-n-accordion-item .e-con-child {
    padding: 20px 25px;
    line-height: 1.7;
    color: #444;
    background: #fff;
    font-size: 1rem;
}

/* Icon SVG styling */
.e-n-accordion-item-title-icon svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}
