/* ======================
   Blog Page Styles
   ====================== */

/* Blog Hero Section */
.blog-hero {
    padding: 4rem 0 3rem;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    border-bottom: 1px solid #e2e8f0;
    width: 100%;
    overflow-x: hidden;
}

.blog-hero-content {
    max-width: 48rem;
    margin: 0 auto;
    text-align: center;
    width: 100%;
}

.blog-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.blog-category {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: linear-gradient(135deg, #14B8A6 0%, #06B6D4 100%);
    color: white;
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.blog-date {
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
}

.blog-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@media (max-width: 768px) {
    .blog-title {
        font-size: 1.75rem;
    }
}

.blog-excerpt {
    font-size: 1.125rem;
    color: #475569;
    line-height: 1.6;
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@media (max-width: 768px) {
    .blog-excerpt {
        font-size: 1rem;
    }
}

/* Blog Article */
.blog-article {
    padding: 4rem 0;
    background: white;
    width: 100%;
    overflow-x: hidden;
}

.blog-content {
    max-width: 42rem;
    margin: 0 auto;
    width: 100%;
}

.blog-section {
    margin-bottom: 3rem;
    width: 100%;
}

.blog-section:last-child {
    margin-bottom: 0;
}

/* Typography */
.lead-paragraph {
    font-size: 1.1875rem;
    line-height: 1.7;
    color: #334155;
    margin-bottom: 1.5rem;
    font-weight: 500;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@media (max-width: 768px) {
    .lead-paragraph {
        font-size: 1.0625rem;
    }
}

.blog-content p {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 1.5rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@media (max-width: 768px) {
    .blog-content p {
        font-size: 1rem;
    }
}

.blog-content h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1.25rem;
    margin-top: 2.5rem;
    line-height: 1.3;
    letter-spacing: -0.02em;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@media (max-width: 768px) {
    .blog-content h2 {
        font-size: 1.5rem;
    }
}

.blog-content h2:first-child {
    margin-top: 0;
}

.blog-content h3 {
    font-size: 1.375rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
    margin-top: 2rem;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@media (max-width: 768px) {
    .blog-content h3 {
        font-size: 1.25rem;
    }
}

.blog-content strong {
    color: #0f172a;
    font-weight: 600;
}

/* Lists */
.blog-list {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.blog-list li {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 0.75rem;
}

.blog-list li:last-child {
    margin-bottom: 0;
}

.blog-list li strong {
    color: #0f172a;
}

/* Blog CTA Section */
.blog-cta-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #14B8A6 0%, #0D9488 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.blog-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.blog-cta-content {
    max-width: 48rem;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.blog-cta-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.blog-cta-description {
    font-size: 1.125rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.blog-cta-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: white;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
}

/* Responsive Design */
@media (min-width: 640px) {
    .blog-cta-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

@media (min-width: 768px) {
    .blog-hero {
        padding: 5rem 0 4rem;
    }

    .blog-title {
        font-size: 3rem;
    }

    .blog-excerpt {
        font-size: 1.25rem;
    }

    .blog-article {
        padding: 5rem 0;
    }

    .blog-cta-title {
        font-size: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .blog-hero {
        padding: 6rem 0 5rem;
    }

    .blog-title {
        font-size: 3.5rem;
    }
}

/* Comparison Table */
.comparison-table {
    margin: 2rem 0;
    overflow-x: auto;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
}

.comparison-table table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    background: white;
    font-size: 0.9375rem;
}

@media (max-width: 768px) {
    .comparison-table table {
        min-width: 500px;
        font-size: 0.875rem;
    }
}

.comparison-table thead {
    background: linear-gradient(135deg, #14B8A6 0%, #0D9488 100%);
    color: white;
}

.comparison-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9375rem;
    letter-spacing: 0.025em;
}

.comparison-table th:first-child {
    border-top-left-radius: 0.75rem;
}

.comparison-table th:last-child {
    border-top-right-radius: 0.75rem;
}

.comparison-table tbody tr {
    border-bottom: 1px solid #e2e8f0;
    transition: background-color 0.2s ease;
}

.comparison-table tbody tr:last-child {
    border-bottom: none;
}

.comparison-table tbody tr:hover {
    background-color: #f8fafc;
}

.comparison-table td {
    padding: 1rem;
    color: #475569;
    line-height: 1.6;
}

.comparison-table td:first-child {
    font-weight: 600;
    color: #1e293b;
    background-color: #f8fafc;
}

/* Responsive Table */
@media (max-width: 768px) {
    .comparison-table {
        font-size: 0.875rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 0.75rem 0.5rem;
    }

    .comparison-table th {
        font-size: 0.875rem;
    }
}

/* ======================
   Blog Listing Page Styles
   ====================== */

/* Blog Header */
.blog-header {
    padding: 4rem 0 3rem;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    border-bottom: 1px solid #e2e8f0;
    width: 100%;
    overflow-x: hidden;
}

.blog-header-content {
    max-width: 48rem;
    margin: 0 auto;
    text-align: center;
    width: 100%;
}

.blog-header-title {
    font-size: 3rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@media (max-width: 768px) {
    .blog-header-title {
        font-size: 2rem;
    }
}

.blog-header-description {
    font-size: 1.125rem;
    color: #475569;
    line-height: 1.7;
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@media (max-width: 768px) {
    .blog-header-description {
        font-size: 1rem;
    }
}

/* Blog Listing */
.blog-listing {
    padding: 4rem 0;
    background: white;
    width: 100%;
    overflow-x: hidden;
}

.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    max-width: 72rem;
    margin: 0 auto;
    width: 100%;
}

@media (max-width: 768px) {
    .blog-grid {
        gap: 2rem;
    }
}

/* Blog Card */
.blog-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 100%;
}

@media (max-width: 768px) {
    .blog-card {
        padding: 1.5rem;
    }
}

.blog-card:hover {
    border-color: #14B8A6;
    box-shadow: 0 10px 30px rgba(20, 184, 166, 0.1);
    transform: translateY(-4px);
}

.blog-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.blog-card-category {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: linear-gradient(135deg, #14B8A6 0%, #06B6D4 100%);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.blog-card-date {
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
}

.blog-card-title {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@media (max-width: 768px) {
    .blog-card-title {
        font-size: 1.5rem;
    }
}

.blog-card-title a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-card-title a:hover {
    color: #14B8A6;
}

.blog-card-excerpt {
    font-size: 1rem;
    line-height: 1.7;
    color: #475569;
    margin-bottom: 1.5rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@media (max-width: 768px) {
    .blog-card-excerpt {
        font-size: 0.9375rem;
    }
}

.blog-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #14B8A6;
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.blog-card-link:hover {
    color: #0D9488;
    gap: 0.75rem;
}

.blog-card-arrow {
    width: 1.25rem;
    height: 1.25rem;
    transition: transform 0.2s ease;
}

.blog-card-link:hover .blog-card-arrow {
    transform: translateX(4px);
}

/* Back to Blog Link */
.back-to-blog {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    margin-bottom: 2rem;
    transition: all 0.2s ease;
}

.back-to-blog:hover {
    color: #14B8A6;
    gap: 0.75rem;
}

.back-to-blog svg {
    width: 1.25rem;
    height: 1.25rem;
    transition: transform 0.2s ease;
}

.back-to-blog:hover svg {
    transform: translateX(-4px);
}

/* Related Articles Section */
.related-articles {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid #e2e8f0;
}

.related-articles-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 2rem;
}

.related-articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.related-article-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.related-article-card:hover {
    background: white;
    border-color: #14B8A6;
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.1);
}

.related-article-category {
    font-size: 0.75rem;
    font-weight: 600;
    color: #14B8A6;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.related-article-title {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
}

.related-article-title a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.related-article-title a:hover {
    color: #14B8A6;
}

/* Active Nav Link */
.nav-link.active {
    color: #14B8A6;
    font-weight: 600;
}

/* Responsive Design */
@media (min-width: 640px) {
    .related-articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .blog-header {
        padding: 5rem 0 4rem;
    }

    .blog-header-title {
        font-size: 3.5rem;
    }

    .blog-listing {
        padding: 5rem 0;
    }

    .blog-grid {
        gap: 3rem;
    }

    .blog-card {
        padding: 2.5rem;
    }

    .blog-card-title {
        font-size: 2rem;
    }
}

@media (min-width: 1024px) {
    .blog-header {
        padding: 6rem 0 5rem;
    }

    .blog-header-title {
        font-size: 4rem;
    }
}