/* Exact structure matching digitalrxassistant.com */

/* Override styles only for pages with .page-container */
html:has(.page-container) {
    background: white !important;
    background-image: none !important;
    position: static !important; /* Allow scrolling */
    overflow: auto !important; /* Allow scrolling */
    height: auto !important; /* Allow full page height */
}

body:has(.page-container) {
    background: white !important;
    background-image: none !important;
    overflow: auto !important;
    height: auto !important;
    position: static !important; /* Allow scrolling */
}

/* Hide the blue background pseudo-element on these pages */
body:has(.page-container)::before {
    display: none !important;
}

.page-container {
    overflow: visible !important;
    height: auto !important;
}

.page-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #f5f5f7;
}

/* Top banner - fixed */
.page-banner {
    background: white;
    padding: 1.5rem 0;
    border-bottom: 1px solid #e0e0e0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.page-banner .container {
    max-width: 1630px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.back-button {
    background: none;
    border: none;
    color: #333;
    font-size: 1.5rem;
    cursor: pointer;
    text-decoration: none;
    padding: 0;
    display: flex;
    align-items: center;
}

.back-button:hover {
    color: var(--navy-blue);
}

.page-banner h1 {
    color: #333;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

/* Main content */
.page-main {
    flex: 1;
    padding: 3rem 2rem;
    padding-top: 8rem; /* Space for fixed header with extra padding */
}

.content-card {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.content-card h2 {
    color: #111827;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 1.5rem;
}

.content-card > p:first-of-type {
    color: #4b5563;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.content-card h3 {
    color: #111827;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 2.5rem 0 1rem;
}

.content-card p {
    color: #4b5563;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.content-card ul {
    color: #4b5563;
    line-height: 1.8;
    margin: 1rem 0 1.5rem;
    padding-left: 2rem;
}

.content-card li {
    margin-bottom: 0.75rem;
}

.content-card a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 400;
}

.content-card a:hover {
    text-decoration: underline;
}

.content-card strong {
    color: #111827;
    font-weight: 600;
}

/* Callout boxes */
.callout-box {
    background: #ecfdf5;
    border-left: 4px solid #4a9eff;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
}

.callout-box p {
    color: #065f46;
    font-weight: 600;
    margin: 0;
}

.info-callout {
    background: #eff6ff;
    border-left: 4px solid #3b82f6;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
}

.info-callout p {
    color: #1e40af;
    margin: 0;
}

.warning-callout {
    background: #fffbeb;
    border-left: 4px solid #f59e0b;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
}

.warning-callout p {
    color: #92400e;
    margin: 0;
}

/* FAQ items */
.faq-list {
    margin-top: 2rem;
}

.faq-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: white;
    border: none;
    padding: 1.25rem 1.5rem;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: background 0.2s;
}

.faq-question:hover {
    background: #f8f9fa;
}

.faq-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: #4a9d9c;
}

.faq-text {
    flex: 1;
}

.faq-text h3 {
    color: #333;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.25rem;
}

.faq-text p {
    color: #999;
    font-size: 0.875rem;
    margin: 0;
}

.faq-arrow {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: #999;
}

.faq-answer {
    padding: 0 1.5rem 1.25rem 3.5rem;
    color: #444;
    line-height: 1.7;
}

.faq-answer ul {
    margin-top: 0.5rem;
    padding-left: 1.5rem;
}

/* Footer */
.page-footer {
    background: transparent;
    padding: 2rem 0;
    text-align: center;
}

.page-footer p {
    color: #999;
    font-size: 0.875rem;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .page-banner .container {
        max-width: 100%;
        padding: 0 1.25rem;
    }

    .page-main {
        padding: 2rem 1.25rem;
        padding-top: 7rem; /* Space for fixed header on mobile with extra padding */
    }

    .content-card {
        padding: 2rem 1.5rem;
    }

    .page-banner h1 {
        font-size: 1.1rem;
    }

    .content-card h2 {
        font-size: 1.25rem;
    }
}
