/* Blog Specific Styles */

.logo-text-link {
    text-decoration: none;
    color: inherit;
}

.nav-active {
    opacity: 0.8;
    border-bottom: 2px solid white;
}

/* Blog Hero Section */
.blog-hero {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    color: white;
    padding: 80px 20px 60px;
    margin-top: 0;
}

.blog-hero h1 {
    font-size: 42px;
    font-weight: bold;
    line-height: 1.3;
    margin-bottom: 20px;
    max-width: 900px;
}

.blog-meta {
    color: #e0e7ff;
    font-size: 14px;
    margin-top: 15px;
}

/* Blog Q&A Section */
.blog-qa-section {
    padding: 60px 20px;
    background-color: #f7fafc;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Blog Card Styles */
.blog-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: box-shadow 0.3s, transform 0.3s;
    cursor: pointer;
}

.blog-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.blog-card-header {
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    border-bottom: 2px solid #e5e7eb;
    cursor: pointer;
    user-select: none;
}

.blog-card-header h2 {
    font-size: 20px;
    color: #1a202c;
    margin: 0;
    flex: 1;
    padding-right: 15px;
    line-height: 1.4;
}

.blog-card-header i {
    color: #1e40af;
    font-size: 18px;
    transition: transform 0.3s;
    flex-shrink: 0;
}

.blog-card-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    padding: 0 25px;
}

.blog-card.active .blog-card-content {
    max-height: 5000px;
    padding: 25px;
    transition: max-height 0.5s ease-in, padding 0.4s ease-in;
}

.blog-card-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #4a5568;
    margin-bottom: 18px;
}

.blog-card-content .lead-text {
    font-size: 18px;
    font-weight: 500;
    color: #1a202c;
    margin-bottom: 20px;
}

.blog-card-content h3 {
    font-size: 20px;
    color: #1e40af;
    margin-top: 25px;
    margin-bottom: 15px;
    line-height: 1.4;
}

.blog-card-content ul,
.blog-card-content ol {
    margin: 15px 0;
    padding-left: 25px;
}

.blog-card-content li {
    font-size: 16px;
    line-height: 1.8;
    color: #4a5568;
    margin-bottom: 10px;
}

.blog-card-content strong {
    color: #1a202c;
    font-weight: 600;
}

.blog-card-content a {
    color: #1e40af;
    text-decoration: none;
    font-weight: 500;
}

.blog-card-content a:hover {
    text-decoration: underline;
}

/* CTA Section */
.blog-cta-section {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    color: white;
    padding: 50px 40px;
    border-radius: 8px;
    text-align: center;
    margin-top: 50px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.blog-cta-section h2 {
    color: white;
    font-size: 32px;
    margin-bottom: 15px;
}

.blog-cta-section p {
    color: #e0e7ff;
    font-size: 18px;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: white;
    color: #1e40af;
    padding: 15px 35px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 18px;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    text-decoration: none;
}

.cta-button.phone {
    background-color: #059669;
    color: white;
}

.cta-button.phone:hover {
    background-color: #047857;
}

/* Responsive Design for Blog */
@media (max-width: 968px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-hero h1 {
        font-size: 32px;
    }
    
    .blog-card-header h2 {
        font-size: 18px;
    }
    
    .blog-card-content h3 {
        font-size: 18px;
    }
    
    .blog-cta-section {
        padding: 40px 25px;
    }
    
    .blog-cta-section h2 {
        font-size: 26px;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-button {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .blog-hero {
        padding: 60px 20px 40px;
    }
    
    .blog-hero h1 {
        font-size: 26px;
    }
    
    .blog-card-header {
        padding: 20px;
    }
    
    .blog-card-header h2 {
        font-size: 16px;
    }
    
    .blog-card-content {
        padding: 0 20px;
    }
    
    .blog-card.active .blog-card-content {
        padding: 20px;
    }
    
    .blog-card-content p,
    .blog-card-content li {
        font-size: 15px;
    }
    
    .blog-cta-section {
        padding: 30px 20px;
    }
    
    .blog-cta-section h2 {
        font-size: 22px;
    }
}
