/* Blog Styles - Sky Credit Score */

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

@media (max-width: 991px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* Blog Card */
.blog-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.blog-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.blog-card-image {
    position: relative;
    padding-bottom: 60%;
    overflow: hidden;
}

.blog-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-content {
    padding: 20px;
}

.blog-card-category {
    display: inline-block;
    background: #0369a1;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.blog-card-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 10px 0;
    color: #1a1a1a;
}

.blog-card-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 15px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #888;
}

.blog-card-author {
    font-weight: 500;
}

/* Blog Loading/Error States */
.blog-loading,
.blog-error,
.blog-empty {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 16px;
}

.blog-error {
    color: #dc2626;
}

/* Blog Post Page */
.blog-post-section {
    background: #f8f9fa;
}

.blog-post-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

.blog-back-link {
    display: block;
    color: #0369a1;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 20px;
    transition: color 0.2s ease;
}

.blog-back-link:hover {
    color: #0284c7;
}

.blog-post-category {
    display: inline-block;
    background: #0369a1;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.blog-post-title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.3;
    color: #1a1a1a;
    margin: 0 0 16px 0;
}

@media (max-width: 767px) {
    .blog-post-title {
        font-size: 28px;
    }
}

.blog-post-meta {
    font-size: 14px;
    color: #666;
}

.meta-separator {
    margin: 0 10px;
}

.blog-post-featured-image {
    max-width: 600px;
    margin: 0 auto 40px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.featured-image {
    width: 100%;
    height: auto;
    display: block;
    max-height: 350px;
    object-fit: cover;
}

.blog-post-content {
    max-width: 1100px;
    margin: 0 auto;
    background: #fff;
    padding: 40px 60px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

@media (max-width: 767px) {
    .blog-post-content {
        padding: 25px;
    }
}

.blog-post-content h2 {
    font-size: 24px;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.blog-post-content h3 {
    font-size: 20px;
    margin-top: 25px;
    margin-bottom: 12px;
    color: #1a1a1a;
}

.blog-post-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 20px;
}

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

.blog-post-content li {
    font-size: 16px;
    line-height: 1.7;
    color: #444;
    margin-bottom: 8px;
}

.blog-post-content blockquote,
.w-richtext blockquote {
    border-left: 4px solid #0369a1;
    padding: 15px 20px !important;
    margin: 20px 0 20px 0 !important;
    font-style: italic;
    color: #555;
    background: #f8f9fa;
}

.blog-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

/* Homepage Blog Section */
.homepage-blog-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.homepage-blog-header {
    text-align: center;
    margin-bottom: 40px;
}

.homepage-blog-header h2 {
    font-size: 32px;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.homepage-blog-header p {
    color: #666;
    font-size: 16px;
}

.homepage-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

@media (max-width: 991px) {
    .homepage-blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .homepage-blog-grid {
        grid-template-columns: 1fr;
    }
}

.homepage-blog-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease;
}

.homepage-blog-card:hover {
    transform: translateY(-3px);
}

.homepage-blog-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.homepage-blog-image {
    position: relative;
    padding-bottom: 55%;
    overflow: hidden;
}

.homepage-blog-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.homepage-blog-content {
    padding: 18px;
}

.homepage-blog-category {
    display: inline-block;
    background: #e0f2fe;
    color: #0369a1;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 3px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.homepage-blog-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 8px 0;
    color: #1a1a1a;
}

.homepage-blog-date {
    font-size: 12px;
    color: #888;
}

.browse-all-link {
    text-align: center;
    margin-top: 30px;
}

.browse-all-link a {
    display: inline-block;
    color: #0369a1;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.browse-all-link a:hover {
    color: #0284c7;
}

/* Content Gallery (embedded in post content) */
.content-gallery {
    margin: 30px 0;
}

.content-gallery-image {
    margin: 20px 0;
    text-align: center;
}

.content-gallery-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

