/* Learn Articles Styles */

/* Article Layout */
.learn-article {
    max-width: 800px;
    margin: 0 auto;
    padding: 120px 20px 40px 20px;
    line-height: 1.7;
}

/* Article Header */
.article__header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.article__meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.article__meta span {
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.article__category {
    background: var(--primary-color);
    color: white;
}

.article__difficulty {
    background: var(--gray-100);
    color: var(--text-dark);
}

.article__reading-time {
    background: var(--bg-secondary);
    color: var(--text-light);
}

.article__title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 20px 0;
    line-height: 1.2;
}

.article__subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin: 0;
    font-weight: 400;
}

/* Table of Contents */
.table-of-contents {
    background: var(--bg-secondary);
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 40px;
}

.table-of-contents h3 {
    margin: 0 0 15px 0;
    font-size: 1.1rem;
    color: var(--text-dark);
}

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

.table-of-contents li {
    margin-bottom: 8px;
}

.table-of-contents a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.table-of-contents a:hover {
    color: var(--primary-color);
}

/* Content Sections */
.content-section {
    margin-bottom: 0;
}

.content-section h2 {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin: 30px 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.content-section h3 {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin: 30px 0 15px 0;
}

.content-section h4 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin: 25px 0 10px 0;
}

.content-section p {
    margin-bottom: 20px;
    color: var(--text-dark);
}

.content-section ul,
.content-section ol {
    margin-bottom: 20px;
    padding-left: 25px;
}

.content-section li {
    margin-bottom: 8px;
    color: var(--text-dark);
}

/* In-body Links */
.content-section a,
.callout a,
.takeaways a {
    text-decoration: underline;
}

/* Callout Boxes */
.callout {
    padding: 25px;
    border-radius: 8px;
    margin: 25px 0;
}

.callout h4 {
    margin: 0 0 10px 0;
    color: var(--text-dark);
    font-weight: 600;
}

.callout p {
    margin: 0;
    line-height: 1.6;
}

.callout--definition {
    background: #e8f5e8;
}

.callout--tip {
    background: #e3f2fd;
}

.callout--warning {
    background: #fff3e0;
}

.callout--stat {
    background: #f3e5f5;
}

/* Process Steps */
.process-steps {
    margin: 25px 0;
}

.step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: 8px;
}

.step__number {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-right: 20px;
    flex-shrink: 0;
}

.step__content h4 {
    margin: 0 0 8px 0;
    color: var(--text-dark);
}

.step__content p {
    margin: 0;
    color: var(--text-dark);
}

/* SEO Types Grid */
.seo-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 25px 0;
}

.seo-type {
    background: white;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.seo-type h3 {
    margin: 0 0 15px 0;
    color: var(--primary-color);
    font-size: 1.3rem;
}

.seo-type p {
    margin-bottom: 15px;
    color: var(--text-dark);
}

.seo-type ul {
    margin: 0;
    padding-left: 20px;
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.benefit {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 8px;
}

.benefit h4 {
    margin: 0 0 10px 0;
    color: var(--primary-color);
}

.benefit p {
    margin: 0;
    color: var(--text-dark);
}

/* Comparison Table */
.comparison-table {
    margin: 25px 0;
    overflow-x: auto;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.comparison-table th,
.comparison-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table tr:nth-child(even) {
    background: var(--bg-secondary);
}

/* Getting Started Steps */
.getting-started-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.start-step {
    background: white;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.start-step h4 {
    margin: 0 0 10px 0;
    color: var(--text-dark);
}

.start-step p {
    margin: 0;
    color: var(--text-dark);
}

/* Key Takeaways */
.takeaways ul {
    background: var(--bg-secondary);
    padding: 25px;
    border-radius: 8px;
    margin: 20px 0;
}

.takeaways li {
    margin-bottom: 12px;
    color: var(--text-dark);
}

/* Article CTA */
.article__cta {
    margin: 40px 0;
}

.cta-box {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
}

.cta-box h3 {
    margin: 0 0 15px 0;
    color: white;
}

.cta-box p {
    margin: 0 0 25px 0;
    color: white;
    opacity: 0.9;
}

.cta-box .btn {
    margin: 0 10px 10px 0;
}

.cta-box .btn--primary {
    background: white;
    color: var(--primary-color);
    border: 2px solid white;
}

.cta-box .btn--primary:hover {
    background: transparent;
    color: white;
}

.cta-box .btn--secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta-box .btn--secondary:hover {
    background: white;
    color: var(--primary-color);
}

/* Related Articles */
.related-articles {
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
}

.related-articles h3 {
    margin: 0 0 25px 0;
    color: var(--text-dark);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.related-article {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.related-article:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.related-article.coming-soon {
    opacity: 0.7;
}

.related-article h4 {
    margin: 0 0 10px 0;
}

.related-article h4 a {
    color: var(--text-dark);
    text-decoration: none;
}

.related-article h4 a:hover {
    color: var(--primary-color);
}

.related-article p {
    margin: 0 0 10px 0;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.article-meta {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .learn-article {
        padding: 20px 15px;
    }
    
    .article__title {
        font-size: 2rem;
    }
    
    .article__meta {
        flex-direction: column;
        align-items: center;
    }
    
    .step {
        flex-direction: column;
        text-align: center;
    }
    
    .step__number {
        margin: 0 0 15px 0;
    }
    
    .seo-types {
        grid-template-columns: 1fr;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .getting-started-steps {
        grid-template-columns: 1fr;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .comparison-table {
        font-size: 0.9rem;
    }
    
    .cta-box {
        padding: 30px 20px;
    }
    
    .cta-box .btn {
        display: block;
        margin: 10px 0;
        width: 100%;
    }
}

/* Override main section padding */
.learn-article-page section {
    padding: 0;
} 