/* ============================================
   The Brain Song Review - CSS Stylesheet
   Color Scheme: Blue (#395d95) + Yellow (#fbbf24)
   Typography: Poppins Font Family
   ============================================ */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}
article.article-section.bg-white {
    opacity: 1 !important;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: #395d95;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    margin-top: 2rem;
}

h3 {
    font-size: 1.25rem;
    color: #1a1a1a;
}

p {
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.8;
    color: #1a1a1a;
}

a {
    color: #395d95;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

a:hover {
    color: #2d4a75;
}

.text-center {
    text-align: center;
}

/* Header */
.sticky-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-box {
    width: 2rem;
    height: 2rem;
    background-color: #395d95;
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: bold;
    font-size: 0.875rem;
}

.logo-text {
    font-weight: bold;
    color: #395d95;
    font-size: 1.125rem;
}

.btn-cta-header {
    background-color: #fbbf24;
    color: #000000;
    padding: 0.5rem 1.5rem;
    border-radius: 0.25rem;
    font-weight: bold;
    transition: all 0.2s ease-in-out;
    display: inline-block;
}

.btn-cta-header:hover {
    background-color: #f59e0b;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease-in-out;
    font-size: 1rem;
}

.btn-primary {
    background-color: #ffcc00;
    color: #000;
    font-weight: 700;
    animation: softBlink 1.8s infinite ease-in-out;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-primary:hover {
    background-color: #ffe066;
    transform: scale(1.03);
}

@keyframes softBlink {
    0% { opacity: 1; }
    50% { opacity: 0.78; }
    100% { opacity: 1; }
}

.button-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(to bottom right, #f0f4f8, #ffffff);
    padding: 4rem 0;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.hero-image {
    display: flex;
    justify-content: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Article Sections */
.article-section {
    padding: 3rem 0;
    margin-bottom: 30px;
}

.bg-white {
    background-color: #ffffff;
}

.bg-light {
    background-color: #f0f4f8;
}

/* Lists */
.bullet-list {
    list-style: disc;
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.bullet-list li {
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

/* Info Boxes */
.info-boxes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
}

@media (max-width: 768px) {
    .info-boxes {
        grid-template-columns: 1fr;
    }
}

.info-box {
    background-color: #f0f4f8;
    padding: 1.5rem;
    border-radius: 0.375rem;
    border-left: 4px solid #395d95;
}

.info-box h3 {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.emoji-marker {
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

.info-box-highlight {
    background-color: #f0f4f8;
    padding: 1.5rem;
    border-radius: 0.375rem;
    border-left: 4px solid #395d95;
    margin-top: 1.5rem;
}

/* Pros & Cons Grid */
.pros-cons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .pros-cons-grid {
        grid-template-columns: 1fr;
    }
}

.pros-card {
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 0.375rem;
    border-left: 4px solid #059669;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.cons-card {
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 0.375rem;
    border-left: 4px solid #ef4444;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.pros-card h3,
.cons-card h3 {
    color: #1a1a1a;
    margin-bottom: 1rem;
}

/* Comparison Box */
.comparison-box {
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 0.375rem;
    border-left: 4px solid #fbbf24;
    margin-top: 1.5rem;
}

.comparison-box p {
    margin-bottom: 1rem;
}

/* Verdict Box */
.verdict-box {
    background-color: #f0f4f8;
    padding: 2rem;
    border-radius: 0.375rem;
    border-left: 4px solid #395d95;
    margin-top: 1.5rem;
}

.verdict-text {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

/* Highlight Text */
.highlight-text {
    font-weight: 600;
    color: #395d95;
}

/* CTA Buttons */
.cta-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #fbbf24;
    color: #000000;
    font-weight: 600;
    border-radius: 0.375rem;
    transition: all 0.2s ease-in-out;
    margin-top: 1rem;
}

.cta-button:hover {
    background-color: #f59e0b;
    text-decoration: none;
}

.cta-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.cta-center {
    text-align: center;
    margin-top: 2rem;
}

/* FAQ Section */
.faq-container {
    margin-top: 1.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    overflow: hidden;
}

.faq-item {
    border-bottom: 1px solid #e5e7eb;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-button {
    width: 100%;
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    font-weight: 600;
    color: #395d95;
    transition: background-color 0.2s ease;
}

.faq-button:hover {
    background-color: #f0f4f8;
}

.faq-question {
    flex: 1;
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: #f0f4f8;
}

.faq-answer p {
    padding: 1rem 1.5rem;
    margin: 0;
    color: #1a1a1a;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

/* Footer */
.footer {
    background-color: #395d95;
    color: #ffffff;
    padding: 2rem 0;
    text-align: center;
}

.footer p {
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.footer-copyright {
    font-size: 0.875rem;
    color: #cbd5e1;
    margin-top: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .hero-content h1 {
        font-size: 1.75rem;
    }

    .article-section {
        padding: 2rem 0;
    }

    .btn-primary {
        animation: none;
    }
}

/* ============================================
   New Page Specific Styles
   ============================================ */

.last-updated {
    font-size: 0.875rem;
    color: #64748b;
    margin-top: -0.5rem;
    margin-bottom: 2rem;
    font-style: italic;
}

.table-of-contents {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin: 2rem 0;
}

.table-of-contents h2 {
    font-size: 1.25rem;
    margin-top: 0;
    margin-bottom: 1rem;
    color: #1e293b;
}

.table-of-contents ul {
    list-style: none;
    padding-left: 0;
}

.table-of-contents li {
    margin-bottom: 0.5rem;
}

.table-of-contents a {
    color: #395d95;
    text-decoration: none;
    font-weight: 500;
}

.table-of-contents a:hover {
    text-decoration: underline;
}

.related-articles {
    background-color: #f1f5f9;
    border-radius: 0.5rem;
    padding: 2rem;
    margin-top: 3rem;
}

.related-articles h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.related-articles ul {
    list-style: none;
    padding-left: 0;
}

.related-articles li {
    margin-bottom: 1rem;
}

.related-articles a {
    font-weight: 600;
    display: block;
}

.article-image {
        width: auto;
    max-width: 800px;
    max-height: 800px;
    height: auto;
    margin: 1.5rem auto;
    display: block;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
.related-articles h2 {
    margin-top: 0;
}