/* ============================================
   Blog Styles for ZZSL Website
   ============================================ */

/* Blog Hero */
.blog-hero {
    background: linear-gradient(135deg, #0a1628 0%, #1a3a6e 100%);
    padding: 4rem 0 3rem;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.blog-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

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

.blog-category {
    background: rgba(6, 182, 212, 0.2);
    color: #06b6d4;
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.blog-date, .blog-read-time {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.blog-hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.blog-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

/* Breadcrumb */
.breadcrumb {
    background: #f8fafc;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.breadcrumb-list li {
    display: flex;
    align-items: center;
}

.breadcrumb-list li:not(:last-child)::after {
    content: '/';
    margin-left: 0.5rem;
    color: #9ca3af;
}

.breadcrumb-list a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.15s ease;
}

.breadcrumb-list a:hover {
    color: #06b6d4;
}

.breadcrumb-list li.active {
    color: #6b7280;
}

/* Blog Article Layout */
.blog-article {
    padding: 3rem 0;
    background: #fff;
}

.blog-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

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

/* Blog Content */
.blog-content {
    min-width: 0;
}

.blog-section {
    margin-bottom: 2.5rem;
}

.blog-section h2 {
    font-size: 1.75rem;
    color: #111827;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
}

.blog-section h3 {
    font-size: 1.25rem;
    color: #1f2937;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.blog-section p {
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.blog-section ul, 
.blog-section ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
    color: #4b5563;
}

.blog-section li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.blog-section ul ul {
    margin: 0.5rem 0;
}

.blog-highlight {
    background: linear-gradient(135deg, #f8fafc 0%, #f0f9ff 100%);
    border-left: 4px solid #2563eb;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 0.5rem 0.5rem 0;
}

.blog-highlight h3 {
    margin-top: 0;
    color: #1a3a6e;
    font-size: 1.125rem;
}

.blog-highlight p {
    margin-bottom: 0;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.feature-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: all 0.25s ease;
}

.feature-card:hover {
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
    transform: translateY(-2px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.feature-icon svg {
    color: #fff;
}

.feature-card h4 {
    font-size: 1rem;
    color: #111827;
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.6;
}

/* Conclusion CTA */
.blog-conclusion {
    background: linear-gradient(135deg, #f0f9ff 0%, #f8fafc 100%);
    padding: 2rem;
    border-radius: 1rem;
    margin-top: 3rem;
}

.cta-box {
    text-align: center;
    padding: 2rem;
    background: #fff;
    border-radius: 0.75rem;
    margin-top: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.cta-box h3 {
    font-size: 1.25rem;
    color: #111827;
    margin-bottom: 0.5rem;
}

.cta-box p {
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-secondary {
    background: #fff;
    color: #2563eb;
    border: 2px solid #2563eb;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
}

.btn-secondary:hover {
    background: #2563eb;
    color: #fff;
}

/* Blog Sidebar */
.blog-sidebar {
    position: sticky;
    top: 120px;
    height: fit-content;
}

@media (max-width: 1024px) {
    .blog-sidebar {
        position: static;
        order: -1;
    }
}

.sidebar-widget {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.sidebar-widget h3 {
    font-size: 1rem;
    color: #111827;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
}

/* Table of Contents */
.toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc li {
    margin-bottom: 0.5rem;
}

.toc a {
    display: block;
    padding: 0.5rem 0.75rem;
    color: #4b5563;
    text-decoration: none;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    transition: all 0.15s ease;
}

.toc a:hover {
    background: #f3f4f6;
    color: #2563eb;
    padding-left: 1rem;
}

/* Brand List */
.brand-list,
.quick-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.brand-list li,
.quick-links li {
    margin-bottom: 0.5rem;
}

.brand-list a,
.quick-links a {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    color: #4b5563;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.15s ease;
}

.brand-list a:hover,
.quick-links a:hover {
    color: #2563eb;
}

.brand-list a::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #d1d5db;
    border-radius: 50%;
    margin-right: 0.75rem;
    transition: background 0.15s ease;
}

.brand-list a:hover::before {
    background: #2563eb;
}

/* Contact CTA in Sidebar */
.contact-cta {
    background: linear-gradient(135deg, #0a1628 0%, #1a3a6e 100%);
    color: #fff;
}

.contact-cta h3 {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.contact-cta p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.btn-block {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
}

/* Related Articles */
.related-articles {
    background: #f8fafc;
    padding: 4rem 0;
    border-top: 1px solid #e5e7eb;
}

.related-articles h2 {
    text-align: center;
    font-size: 1.75rem;
    color: #111827;
    margin-bottom: 2rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.related-card {
    background: #fff;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    transition: all 0.25s ease;
}

.related-card:hover {
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
    transform: translateY(-2px);
}

.related-image {
    height: 160px;
    background: linear-gradient(135deg, #1a3a6e 0%, #2563eb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.related-content {
    padding: 1.25rem;
}

.related-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    color: #06b6d4;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.related-content h3 {
    font-size: 1rem;
    color: #111827;
    margin-bottom: 0.5rem;
}

.related-content p {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

/* Footer Overrides for Blog */
.blog-article + .related-articles + .footer {
    margin-top: 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .blog-hero {
        padding: 3rem 0 2rem;
    }
    
    .blog-meta {
        gap: 1rem;
    }
    
    .blog-section h2 {
        font-size: 1.5rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-buttons .btn {
        width: 100%;
        text-align: center;
    }
}

/* ============================================
   Blog Index Page Styles
   ============================================ */

/* Blog List Section */
.blog-list-section {
    padding: 3rem 0;
    background: #fff;
}

.blog-list-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

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

/* Blog Card */
.blog-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.blog-card:hover {
    border-color: #2563eb;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.12);
    transform: translateY(-4px);
}

.blog-card-featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
}

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

.blog-card-featured .blog-card-image {
    min-height: 350px;
}

.blog-card-image {
    position: relative;
    min-height: 200px;
    background: linear-gradient(135deg, #1a3a6e 0%, #2563eb 100%);
    overflow: hidden;
}

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

.blog-card-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #2563eb;
    color: #fff;
    padding: 0.375rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 1;
}

.blog-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.blog-card-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.75rem;
}

.blog-card-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.blog-card-content h2 {
    font-size: 1.25rem;
    color: #111827;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.blog-card-featured .blog-card-content h2 {
    font-size: 1.5rem;
}

.blog-card-content h2 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-card-content h2 a:hover {
    color: #2563eb;
}

.blog-card-content p {
    color: #6b7280;
    font-size: 0.9375rem;
    line-height: 1.7;
    flex-grow: 1;
    margin-bottom: 1rem;
}

.blog-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    background: #f3f4f6;
    color: #4b5563;
    padding: 0.25rem 0.625rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.blog-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #2563eb;
    font-weight: 500;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.blog-card-link:hover {
    color: #06b6d4;
    gap: 0.75rem;
}

/* Coming Soon Cards */
.blog-card.coming-soon {
    opacity: 0.85;
}

.blog-card.coming-soon .blog-card-image::after {
    content: 'Coming Soon';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.blog-card.coming-soon .blog-card-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Newsletter Section */
.newsletter-section {
    padding: 4rem 0;
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
}

.newsletter-box {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    background: #fff;
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.newsletter-content h2 {
    font-size: 1.5rem;
    color: #111827;
    margin-bottom: 0.5rem;
}

.newsletter-content p {
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.newsletter-form {
    display: flex;
    gap: 0.75rem;
    max-width: 450px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    transition: border-color 0.2s ease;
}

.newsletter-form input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

@media (max-width: 500px) {
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-box {
        padding: 2rem 1.5rem;
    }
}
