/* Blog-specific styles */

/* Blog Header */
.blog-header {
    background: linear-gradient(135deg, #1a237e, #303f9f);
}

.blog-header-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.blog-header-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}

.blog-header h1 {
    color: white;
    margin-bottom: 1rem;
}

.blog-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
}

/* Featured Article */
.featured-article {
    padding: 5rem 0;
    background: #ffffff;
}

.featured-article h2 {
    text-align: center;
    color: #1a237e;
    margin-bottom: 3rem;
}

.featured-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    background: #f8f9fa;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.featured-card:hover {
    transform: translateY(-5px);
}

.featured-image {
    position: relative;
    height: 350px;
    overflow: hidden;
}

.featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.featured-content {
    padding: 2rem;
}

.article-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.article-category {
    background: linear-gradient(135deg, #1976d2, #1565c0);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.article-date {
    color: #546e7a;
    font-size: 0.9rem;
}

.reading-time,
.article-stats .stat-item {
    display: flex;
    align-items: center;
    color: #546e7a;
    font-size: 0.9rem;
}

.meta-icon,
.stat-icon {
    width: 16px;
    height: 16px;
    margin-right: 0.5rem;
}

.featured-content h3 {
    margin-bottom: 1rem;
}

.featured-content h3 a {
    color: #1a237e;
    text-decoration: none;
    transition: color 0.3s ease;
}

.featured-content h3 a:hover {
    color: #1976d2;
}

.featured-content p {
    margin-bottom: 1.5rem;
    color: #546e7a;
    line-height: 1.7;
}

.article-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.read-more-btn {
    background: linear-gradient(135deg, #1976d2, #1565c0);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.read-more-btn:hover {
    background: linear-gradient(135deg, #1565c0, #0d47a1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(25, 118, 210, 0.3);
    color: white;
}

/* Blog Articles Grid */
.blog-articles {
    padding: 5rem 0;
    background: #f8f9fa;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.article-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.article-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.article-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card:hover .article-img {
    transform: scale(1.1);
}

.article-category-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: linear-gradient(135deg, #1976d2, #1565c0);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.article-content {
    padding: 1.5rem;
}

.article-content h3 {
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.article-content h3 a {
    color: #1a237e;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-content h3 a:hover {
    color: #1976d2;
}

.article-content p {
    color: #546e7a;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.views {
    display: flex;
    align-items: center;
    color: #546e7a;
    font-size: 0.9rem;
}

.article-link {
    color: #1976d2;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-link:hover {
    color: #0d47a1;
}

/* Blog Categories */
.blog-categories {
    padding: 5rem 0;
    background: #ffffff;
}

.blog-categories h2 {
    text-align: center;
    color: #1a237e;
    margin-bottom: 3rem;
}

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

.category-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-card:hover {
    background: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.category-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    filter: hue-rotate(210deg);
}

.category-card h3 {
    color: #1a237e;
    margin-bottom: 0.75rem;
}

.category-card p {
    color: #546e7a;
    margin-bottom: 1rem;
}

.article-count {
    color: #1976d2;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Blog Newsletter */
.blog-newsletter {
    padding: 4rem 0;
    background: linear-gradient(135deg, #303f9f, #1a237e);
    color: white;
}

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

.blog-newsletter .newsletter-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}

.blog-newsletter .newsletter-text h2 {
    color: white;
    margin-bottom: 1rem;
}

.blog-newsletter .newsletter-text p {
    color: rgba(255, 255, 255, 0.9);
}

/* Individual Blog Article Styles */
.breadcrumbs {
    background: #f8f9fa;
    padding: 1rem 0;
    margin-top: 80px;
}

.breadcrumbs .container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.breadcrumbs a {
    color: #1976d2;
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: #0d47a1;
}

.separator {
    color: #546e7a;
}

.current {
    color: #546e7a;
}

/* Article Header */
.blog-article .article-header {
    padding: 3rem 0;
    background: #ffffff;
}

.blog-article .article-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.blog-article .article-header h1 {
    color: #1a237e;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.article-excerpt {
    font-size: 1.125rem;
    color: #546e7a;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.blog-article .article-image {
    margin-top: 2rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.blog-article .hero-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

/* Article Content */
.article-content {
    padding: 5rem 0;
    background: #f8f9fa;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.article-body {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.article-body h2 {
    color: #1a237e;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-body h3 {
    color: #303f9f;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.article-body h4 {
    color: #3f51b5;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.article-body p {
    color: #546e7a;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.article-body ul,
.article-body ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.article-body li {
    color: #546e7a;
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.article-body strong {
    color: #1a237e;
    font-weight: 600;
}

.article-body em {
    font-style: italic;
    color: #303f9f;
}

.example-response {
    background: #e3f2fd;
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
    border-left: 4px solid #1976d2;
}

.example-response h4 {
    color: #1976d2;
    margin-bottom: 1rem;
}

.example-response p {
    margin-bottom: 1rem;
}

.article-cta {
    background: linear-gradient(135deg, #1976d2, #1565c0);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    margin-top: 3rem;
}

.article-cta h3 {
    color: white;
    margin-bottom: 1rem;
}

.article-cta p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

.article-cta .btn-primary {
    background: white;
    color: #1976d2;
}

.article-cta .btn-primary:hover {
    background: #f8f9fa;
    color: #1565c0;
}

/* Article Sidebar */
.article-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: sticky;
    top: 100px;
}

.sidebar-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.sidebar-section h3 {
    color: #1a237e;
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

/* Related Articles */
.related-articles {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.related-article {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
    transition: background-color 0.3s ease;
    text-decoration: none;
}

.related-article:hover {
    background-color: #f8f9fa;
}

.related-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.related-content h4 {
    color: #1a237e;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.related-date {
    color: #546e7a;
    font-size: 0.8rem;
}

/* Quick Tips */
.quick-tips {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tip-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.tip-icon {
    width: 16px;
    height: 16px;
    margin-top: 0.125rem;
    flex-shrink: 0;
    filter: hue-rotate(90deg);
}

.tip-item span {
    color: #546e7a;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Share Buttons */
.share-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.share-btn img {
    width: 20px;
    height: 20px;
}

.share-btn.facebook {
    background: #1877f2;
    color: white;
}

.share-btn.facebook:hover {
    background: #166fe5;
    color: white;
}

.share-btn.facebook img {
    filter: brightness(0) invert(1);
}

.share-btn.twitter {
    background: #1da1f2;
    color: white;
}

.share-btn.twitter:hover {
    background: #1a94da;
    color: white;
}

.share-btn.twitter img {
    filter: brightness(0) invert(1);
}

.share-btn.linkedin {
    background: #0077b5;
    color: white;
}

.share-btn.linkedin:hover {
    background: #006399;
    color: white;
}

.share-btn.linkedin img {
    filter: brightness(0) invert(1);
}

/* Newsletter Page */
.newsletter-page {
    margin-top: 80px;
    padding: 5rem 0;
    background: #f8f9fa;
}

.newsletter-page-content {
    max-width: 900px;
    margin: 0 auto;
}

.newsletter-header {
    text-align: center;
    margin-bottom: 4rem;
}

.newsletter-page-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
    filter: hue-rotate(210deg);
}

.newsletter-subtitle {
    font-size: 1.125rem;
    color: #546e7a;
    margin-bottom: 2rem;
}

.newsletter-benefits {
    margin-bottom: 4rem;
}

.newsletter-benefits h2 {
    text-align: center;
    color: #1a237e;
    margin-bottom: 2rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
    width: 24px;
    height: 24px;
    margin-right: 1rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
    filter: hue-rotate(90deg);
}

.benefit-content h3 {
    color: #1a237e;
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

.benefit-content p {
    color: #546e7a;
    margin: 0;
}

.newsletter-signup-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
}

.signup-form-container {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.signup-form-container h2 {
    color: #1a237e;
    margin-bottom: 1rem;
}

.signup-form-container p {
    color: #546e7a;
    margin-bottom: 2rem;
}

.newsletter-signup-form {
    display: grid;
    gap: 1.5rem;
}

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

.newsletter-img {
    width: 100%;
    max-width: 300px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.newsletter-testimonial {
    background: white;
    padding: 3rem 0;
}

.newsletter-testimonial .testimonial-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    position: relative;
}

.newsletter-testimonial .testimonial-content::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 4rem;
    color: #1976d2;
    opacity: 0.3;
}

/* Responsive Design for Blog */
@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .article-sidebar {
        position: static;
        top: auto;
    }

    .newsletter-signup-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

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

    .featured-image {
        height: 250px;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .blog-newsletter .newsletter-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .article-body {
        padding: 2rem;
    }

    .sidebar-section {
        padding: 1.5rem;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .benefit-item {
        padding: 1rem;
    }

    .blog-article .hero-img {
        height: 250px;
    }

    .blog-article .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .article-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .article-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .blog-article .article-header h1 {
        font-size: 1.75rem;
    }

    .featured-content {
        padding: 1.5rem;
    }

    .article-content {
        padding: 3rem 0;
    }

    .article-body {
        padding: 1.5rem;
    }

    .sidebar-section {
        padding: 1rem;
    }

    .signup-form-container {
        padding: 1.5rem;
    }

    .newsletter-testimonial .testimonial-content {
        padding: 1.5rem;
        margin: 0 1rem;
    }

    .share-buttons {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .share-btn {
        flex: 1;
        min-width: 100px;
        justify-content: center;
        font-size: 0.8rem;
        padding: 0.5rem;
    }

    .share-btn span {
        display: none;
    }
}
