/* CB Off – ClickBank-style health treatments layout */

* {
    box-sizing: border-box;
}

body {
    font-family: Georgia, "Times New Roman", Times, serif;
    background: #ffffff;
    color: #222;
    margin: 0;
    padding: 0;
    line-height: 1.5;
}

a {
    color: #1a5fb4;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Top bar – matches screenshot */
.topbar {
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    padding: 10px 0;
}

.topbar .inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar .logo {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: #111;
    text-decoration: none;
}

.topbar .logo:hover {
    text-decoration: none;
    color: #111;
}

.topbar .nav-home {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.95rem;
    color: #333;
    text-decoration: none;
}

.topbar .nav-home:hover {
    text-decoration: underline;
}

/* Main content */
.main-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 15px 50px;
}

.page-title {
    text-align: center;
    font-size: 1.85rem;
    font-weight: 700;
    color: #111;
    margin: 10px 0 35px;
    font-family: Georgia, "Times New Roman", serif;
}

/* Product grid – 3 columns like screenshot */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px 24px;
}

@media (max-width: 900px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

.product-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 2px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-align: center;
    transition: box-shadow 0.15s;
}

.product-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.product-card .cover {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    background: #f0f0f0;
}

.product-card .body {
    padding: 14px 16px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card .title {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: #1a5fb4;
    margin: 0 0 8px;
    line-height: 1.3;
}

.product-card .title a {
    color: #1a5fb4;
    text-decoration: none;
}

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

.product-card .desc {
    font-size: 0.88rem;
    color: #444;
    margin: 0 0 14px;
    flex: 1;
    line-height: 1.45;
}

/* Yellow CTA – matches screenshot */
.btn-access {
    display: inline-block;
    background: #f0b429;
    color: #111 !important;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 9px 18px;
    border: 1px solid #d4a017;
    border-radius: 3px;
    text-decoration: none !important;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0,0,0,0.12);
}

.btn-access:hover {
    background: #e5a820;
    color: #111 !important;
    text-decoration: none !important;
}

.btn-learn {
    display: inline-block;
    background: #f0b429;
    color: #111 !important;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 9px 18px;
    border: 1px solid #d4a017;
    border-radius: 3px;
    text-decoration: none !important;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0,0,0,0.12);
}

.btn-learn:hover {
    background: #e5a820;
    color: #111 !important;
    text-decoration: none !important;
}

.card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 4px;
}

.product-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

/* Inner pages (disclaimer, privacy, contact) */
.inner-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px 15px 50px;
}

.inner-page h1 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    text-align: center;
}

.inner-page .content-box {
    background: #fff;
    border: 1px solid #e8e8e8;
    padding: 24px 28px;
    font-size: 0.95rem;
    line-height: 1.7;
}

.inner-page .content-box h2 {
    font-size: 1.15rem;
    color: #1a5fb4;
    margin-top: 1.4rem;
    margin-bottom: 0.5rem;
}

/* Footer – matches screenshot */
.site-footer {
    border-top: 1px solid #ddd;
    padding: 22px 15px 28px;
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.85rem;
    color: #555;
    background: #fafafa;
}

.site-footer .footer-links {
    margin-bottom: 10px;
}

.site-footer .footer-links a {
    color: #333;
    text-decoration: none;
    margin: 0 6px;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.03em;
}

.site-footer .footer-links a:hover {
    text-decoration: underline;
}

.site-footer .copyright {
    color: #777;
    font-size: 0.8rem;
}

/* Admin / forms */
.login-card {
    max-width: 420px;
    margin: 3rem auto;
}

.admin-table img {
    width: 60px;
    height: 40px;
    object-fit: cover;
    border-radius: 2px;
}

.alert ul {
    margin-bottom: 0;
}

/* Bootstrap form polish on admin/contact when Bootstrap is loaded */
.form-control:focus {
    border-color: #f0b429;
    box-shadow: 0 0 0 0.2rem rgba(240, 180, 41, 0.25);
}

/* FAQ accordion */
.product-faq .faq-item {
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    margin-bottom: 10px;
    overflow: hidden;
    background: #fff;
}
.product-faq .faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    text-align: left;
    background: #fafafa;
    border: 0;
    padding: 14px 16px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.98rem;
    font-weight: 600;
    color: #222;
    cursor: pointer;
    line-height: 1.4;
}
.product-faq .faq-question:hover {
    background: #f3f3f3;
}
.product-faq .faq-icon {
    flex-shrink: 0;
    width: 1.25rem;
    text-align: center;
    font-weight: 700;
    color: #666;
}
.product-faq .faq-item.is-open .faq-icon {
    /* show minus when open */
}
.product-faq .faq-item.is-open .faq-icon::before {
    content: none;
}
.product-faq .faq-item.is-open .faq-icon {
    content: '';
}
.product-faq .faq-item.is-open .faq-question .faq-icon {
    /* JS toggles via text below */
}
.product-faq .faq-answer {
    padding: 0 16px 14px;
    border-top: 1px solid #eee;
    background: #fff;
}
.product-faq .faq-answer p {
    margin: 12px 0 0;
    color: #555;
    line-height: 1.65;
    font-size: 0.95rem;
}
.product-faq .faq-item.is-open .faq-question {
    background: #f5f5f5;
}
