/**
 * Blog Page Specific Styles
 */

.blog-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--secondary-color);
    padding: calc(var(--header-height) + 3rem) 0 3rem;
    text-align: center;
}

.blog-header h1 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: clamp(2rem, 5vw, 3rem);
}

.blog-header__subtitle {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.blog-header__meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    font-size: 0.95rem;
    opacity: 0.9;
}

.blog-header__meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Blog Container */
.blog-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    align-items: start;
}

.blog-main {
    min-width: 0;
}

/* Content Sections */
.content-section {
    margin-bottom: 4rem;
}

.content-section h2 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--primary-color);
}

.content-section h3 {
    color: var(--text-color);
    margin: 2rem 0 1rem;
}

.content-section h4 {
    color: var(--text-color);
    margin: 1.5rem 0 0.75rem;
}

.content-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.content-section ul,
.content-section ol {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.content-section li {
    margin-bottom: 0.75rem;
}

.content-section strong {
    color: var(--text-color);
    font-weight: 600;
}

.content-section a {
    color: var(--primary-color);
    text-decoration: underline;
}

.content-section a:hover {
    color: var(--primary-dark);
}

/* Highlight Box */
.highlight-box {
    background-color: var(--bg-secondary);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 8px;
    display: flex;
    gap: 1rem;
}

.highlight-box i {
    color: var(--primary-color);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.highlight-box p {
    margin: 0;
}

/* Content List */
.content-list {
    list-style: none;
    padding-left: 0;
}

.content-list li {
    padding-left: 2rem;
    position: relative;
    margin-bottom: 1rem;
}

.content-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.25rem;
}

/* Steps Container */
.steps-container {
    margin: 2rem 0;
}

.step-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: var(--bg-secondary);
    border-radius: 12px;
    transition: var(--transition);
}

.step-item:hover {
    transform: translateX(8px);
    box-shadow: 0 4px 12px var(--shadow);
}

.step-number {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.step-content h4 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.step-content p {
    margin-bottom: 0;
}

/* Audience Grid */
.audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.audience-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.audience-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px var(--shadow-hover);
}

.audience-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.audience-card h3 {
    margin: 1rem 0;
    color: var(--text-color);
}

.audience-card p {
    margin: 0;
    font-size: 0.95rem;
}

/* Score Guide */
.score-guide {
    background-color: var(--bg-secondary);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.score-guide h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.score-guide h3 i {
    color: var(--primary-color);
}

.score-guide ul {
    margin-bottom: 1rem;
}

.score-guide p:last-child {
    margin-bottom: 0;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    font-weight: 600;
}

/* FAQ Section */
.faq-section {
    margin-top: 4rem;
}

.faq-container {
    margin-top: 2rem;
}

.faq-item {
    background-color: var(--card-bg);
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px var(--shadow);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: transparent;
    border: none;
    text-align: left;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-question i {
    transition: transform 0.3s ease;
    color: var(--primary-color);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 5000px;
    padding: 0 1.5rem 1.5rem;
}

.faq-answer h4 {
    color: var(--text-color);
    margin: 1.5rem 0 0.75rem;
    font-size: 1.125rem;
}

.faq-answer ul {
    margin: 1rem 0;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

/* Tool Recommendation */
.tool-recommendation {
    background-color: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.tool-recommendation h4 {
    margin-top: 0;
    color: var(--text-color);
}

/* Example Boxes */
.example-box {
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
    border-left: 4px solid;
}

.example-box.before {
    background-color: rgba(244, 67, 54, 0.1);
    border-left-color: #f44336;
}

.example-box.after {
    background-color: rgba(76, 175, 80, 0.1);
    border-left-color: #4caf50;
}

.example-box p:last-child {
    margin-bottom: 0;
}

/* CTA Section */
.cta-section {
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    padding: 3rem;
    border-radius: 16px;
    color: var(--secondary-color);
}

.cta-section h2 {
    color: var(--secondary-color);
    border-bottom: none;
    margin-bottom: 1rem;
}

.cta-section p {
    color: var(--secondary-color);
    opacity: 0.95;
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.cta-section .btn {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.cta-section .btn:hover {
    background-color: var(--secondary-light);
    color: var(--primary-color);
}

/* Sidebar */
.blog-sidebar {
    position: sticky;
    top: calc(var(--header-height) + 2rem);
}

.sidebar-card {
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px var(--shadow);
    margin-bottom: 2rem;
}

.sidebar-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.sidebar-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-links li {
    margin-bottom: 0.75rem;
}

.sidebar-links a {
    color: var(--text-secondary);
    transition: var(--transition);
    display: block;
    padding: 0.5rem 0;
}

.sidebar-links a:hover {
    color: var(--primary-color);
    padding-left: 8px;
}

.ad-card {
    background-color: var(--bg-secondary);
}

.ad-label {
    text-align: center;
    font-size: var(--small-size);
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.sidebar-ad {
    min-height: 250px;
    background-color: var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive */
@media screen and (max-width: 968px) {
    .blog-container {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        position: static;
    }

    .audience-grid {
        grid-template-columns: 1fr;
    }

    .step-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media screen and (max-width: 576px) {
    .blog-header__meta {
        flex-direction: column;
        gap: 0.75rem;
    }

    .content-section h2 {
        font-size: 1.75rem;
    }

    .faq-question {
        font-size: 1rem;
        padding: 1.25rem;
    }

    .faq-answer {
        padding: 0 1.25rem 1.25rem;
    }
}