/* ============================================
   BLOG STYLES
   ============================================ */

.blog-section {
    padding: 60px 20px;
    background: #fff;
    min-height: 60vh;
}

.blog-container {
    max-width: 1200px;
    margin: 0 auto;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 360px));
    justify-content: center;
    gap: 30px;
    margin-bottom: 50px;
}

.blog-post {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, opacity 0.5s ease;
    border: 1px solid #007AFF;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
    transform: translateY(0);
}

.blog-post-initial {
    transform: translateY(20px);
    opacity: 0;
}

.blog-post-loaded {
    transform: translateY(0);
    opacity: 1;
}

.blog-post:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 25px rgba(0, 122, 255, 0.1);
    text-decoration: none;
    color: inherit;
    border-color: #0056b3;
}

.blog-post-image {
    width: 100%;
    height: 160px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 14px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(242, 242, 247, 0.8);
}

.blog-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-post:hover .blog-post-image img {
    transform: scale(1.05);
}

.blog-post-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    width: 100%;
    height: 100%;
}

.blog-post-image-placeholder i {
    font-size: 32px;
    color: #adb5bd;
    margin-bottom: 5px;
}

.blog-post-image-placeholder span {
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
}

.blog-post-content {
    padding: 20px;
}

.blog-post-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #666;
}

.blog-post-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-post-category {
    background: rgba(0, 122, 255, 0.1);
    color: #007AFF;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-post-title {
    font-size: 20px;
    font-weight: 600;
    color: #000;
    margin-bottom: 10px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-post-excerpt {
    color: #666;
    line-height: 1.6;
    font-size: 15px;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-post-read-more {
    color: #007AFF;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s ease;
}

.blog-post:hover .blog-post-read-more {
    color: #0056b3;
}

.blog-post-read-more i {
    font-size: 12px;
    transition: transform 0.2s ease;
}

.blog-post:hover .blog-post-read-more i {
    transform: translateX(3px);
}

/* ============================================
   PAGINATION STYLES
   ============================================ */

.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #fff;
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(242, 242, 247, 0.8);
}

.pagination-btn {
    background: #007AFF;
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pagination-btn:hover:not(:disabled) {
    background: #0056b3;
    transform: translateY(-1px);
}

.pagination-btn:disabled {
    background: #ccc;
    color: #999;
    cursor: not-allowed;
    transform: none;
}

.pagination-info {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    min-width: 80px;
    text-align: center;
}

/* ============================================
   BLOG ARTICLE STYLES
   ============================================ */

.blog-article {
    padding: 60px 20px;
    background: #fff;
}

.blog-article-container {
    max-width: 800px;
    margin: 0 auto;
}

.blog-article-header {
    margin-bottom: 40px;
}

/* Ensure top back button has spacing and identical styling */
.blog-article-header .blog-article-navigation {
    margin-bottom: 16px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: #007AFF;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: #0056b3;
}

.breadcrumb-separator {
    color: #ccc;
    font-size: 10px;
}

.breadcrumb-current {
    color: #000;
    font-weight: 500;
}

.blog-article-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.blog-article-category {
    background: rgba(0, 122, 255, 0.1);
    color: #007AFF;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-article-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #666;
}

.blog-article-title {
    font-size: 32px;
    font-weight: 700;
    color: #000;
    line-height: 1.2;
    margin-bottom: 30px;
}

.blog-article-image {
    width: 100%;
    height: 240px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
    border: 1px solid #007AFF;
}

.blog-article-content {
    line-height: 1.7;
}

.blog-article-excerpt {
    font-size: 18px;
    color: #333;
    font-weight: 500;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(0, 122, 255, 0.05);
    border-left: 4px solid #007AFF;
    border-radius: 0 8px 8px 0;
}

.blog-article-body h2 {
    font-size: 24px;
    font-weight: 600;
    color: #000;
    margin: 30px 0 15px 0;
}

.blog-article-body p {
    font-size: 16px;
    color: #333;
    margin-bottom: 20px;
}

.blog-article-footer {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(242, 242, 247, 0.8);
}

/* Related links card styles */
.related-links-card {
    margin: 36px 0;
}
.related-links-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
}
.related-links-card .related-grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.blog-nav-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #007AFF;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 16px;
    border: 1px solid #007AFF;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.blog-nav-back:hover {
    background: #007AFF;
    color: #fff;
    transform: translateX(-3px);
}

/* ============================================
   COMING SOON PAGE STYLES
   ============================================ */

.coming-soon-features {
    padding: 60px 20px;
    background: rgba(242, 242, 247, 0.3);
}

.coming-soon-container {
    max-width: 1200px;
    margin: 0 auto;
}

.coming-soon-intro {
    text-align: center;
    margin-bottom: 50px;
}

.coming-soon-intro h2 {
    font-size: 28px;
    font-weight: 600;
    color: #000;
    margin-bottom: 15px;
}

.coming-soon-intro p {
    font-size: 16px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.feature-card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #007AFF;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 122, 255, 0.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 122, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 24px;
    color: #007AFF;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #000;
    margin-bottom: 12px;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
    font-size: 15px;
}

.preview-section {
    padding: 60px 20px;
    background: #fff;
}

.preview-container {
    max-width: 1200px;
    margin: 0 auto;
}

.preview-container h2 {
    font-size: 28px;
    font-weight: 600;
    color: #000;
    text-align: center;
    margin-bottom: 15px;
}

.preview-subtitle {
    font-size: 16px;
    color: #666;
    text-align: center;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.preview-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border: 1px solid #007AFF;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0.8;
}

.preview-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 122, 255, 0.1);
    opacity: 1;
}

.preview-image {
    width: 100%;
    height: 200px;
    background: #f8f9fa;
    border-bottom: 1px solid rgba(242, 242, 247, 0.8);
}

.preview-content {
    padding: 24px;
}

.preview-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 14px;
}

.preview-category {
    background: rgba(0, 122, 255, 0.1);
    color: #007AFF;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.preview-date {
    color: #666;
}

.preview-title {
    font-size: 18px;
    font-weight: 600;
    color: #000;
    margin-bottom: 12px;
    line-height: 1.3;
}

.preview-excerpt {
    color: #666;
    line-height: 1.6;
    font-size: 15px;
    margin-bottom: 16px;
}

.preview-status {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #007AFF;
    font-size: 14px;
    font-weight: 500;
}

.preview-status i {
    font-size: 12px;
}

.cta-section {
    padding: 60px 20px;
    background: linear-gradient(135deg, #007AFF 0%, #0056b3 100%);
    color: #fff;
    text-align: center;
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cta-button.primary {
    background: #fff;
    color: #007AFF;
}

.cta-button.primary:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.cta-button.secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.cta-button.secondary:hover {
    background: #fff;
    color: #007AFF;
    transform: translateY(-2px);
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

@media (max-width: 768px) {
    .blog-section {
        padding: 40px 15px;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        justify-content: stretch;
        gap: 20px;
        margin-bottom: 30px;
    }
    
    .blog-post-content {
        padding: 20px;
    }
    
    .blog-post-title {
        font-size: 18px;
    }
    
    .pagination {
        padding: 12px 20px;
        gap: 15px;
    }
    
    .pagination-btn {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .pagination-info {
        font-size: 13px;
        min-width: 70px;
    }
    
    /* Blog article responsive styles */
    .blog-article {
        padding: 40px 15px;
    }
    
    .blog-article-title {
        font-size: 28px;
    }
    
    .blog-article-image {
        height: 200px;
    }
    
    .blog-article-excerpt {
        font-size: 16px;
        padding: 16px;
    }
    
    .blog-article-body h2 {
        font-size: 20px;
    }
    
    .blog-article-body p {
        font-size: 15px;
    }
    
    /* Coming soon page responsive styles */
    .coming-soon-features,
    .preview-section,
    .cta-section {
        padding: 40px 15px;
    }
    
    .features-grid,
    .preview-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature-card,
    .preview-card {
        padding: 20px;
    }
    
    .coming-soon-intro h2,
    .preview-container h2,
    .cta-content h2 {
        font-size: 24px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button {
        width: 200px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .blog-section {
        padding: 30px 10px;
    }
    
    .blog-post-content {
        padding: 16px;
    }
    
    .blog-post-title {
        font-size: 16px;
    }
    
    .blog-post-excerpt {
        font-size: 14px;
    }
    
    .pagination {
        padding: 10px 15px;
        gap: 10px;
    }
    
    .pagination-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .pagination-btn span {
        display: none;
    }
    
    .pagination-info {
        font-size: 12px;
        min-width: 60px;
    }
    
    /* Blog article mobile styles */
    .blog-article {
        padding: 30px 10px;
    }
    
    .blog-article-title {
        font-size: 24px;
    }
    
    .blog-article-image {
        height: 180px;
    }
    
    .blog-article-excerpt {
        font-size: 15px;
        padding: 12px;
    }
    
    .blog-article-body h2 {
        font-size: 18px;
    }
    
    .blog-article-body p {
        font-size: 14px;
    }
    
    .breadcrumb {
        font-size: 12px;
        flex-wrap: wrap;
    }
    
    .blog-article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    /* Coming soon page mobile styles */
    .coming-soon-features,
    .preview-section,
    .cta-section {
        padding: 30px 10px;
    }
    
    .feature-card,
    .preview-card {
        padding: 16px;
    }
    
    .coming-soon-intro h2,
    .preview-container h2,
    .cta-content h2 {
        font-size: 20px;
    }
    
    .feature-card h3,
    .preview-title {
        font-size: 16px;
    }
    
    .cta-button {
        width: 180px;
        padding: 10px 16px;
        font-size: 14px;
    }
}
