/* ====================================
   Blogs Page Styles
   ==================================== */

#blogs-hero {
    /* Matches the features page hero styling */
    color: white;
}

#blogs-hero h1 {
    font-size: 3rem;
    font-weight: 700;
}

/* ====================================
   Blog Cards Styling
   ==================================== */

.blog-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

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

.blog-image-wrapper {
    position: relative;
    overflow: hidden;
}

.blog-image {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.blog-date-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.95);
    color: #5837eb;
    padding: 8px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.blog-meta {
    color: #6c757d;
    font-size: 0.85rem;
}

.blog-meta i {
    color: #5837eb;
}

.card-title {
    line-height: 1.4;
    color: #2c3e50;
}

.card-text {
    line-height: 1.6;
}

/* ====================================
   Recent Posts Styling
   ==================================== */

.recent-post-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
}

.recent-post-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

.recent-post-card .card-title a:hover {
    color: #5837eb !important;
}

/* ====================================
   Sidebar Styling
   ==================================== */

.sidebar .card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sidebar .card-header {
    border-bottom: none;
    border-radius: 10px 10px 0 0 !important;
    padding: 1rem 1.25rem;
}

.sidebar .list-unstyled li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    color: #495057;
    transition: color 0.3s ease;
}

.sidebar .list-unstyled li a:hover {
    color: #5837eb;
}

.sidebar .badge {
    font-size: 0.7rem;
    padding: 4px 8px;
}

/* Newsletter form styling */
.sidebar .form-control {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    padding: 0.75rem 1rem;
}

.sidebar .form-control:focus {
    border-color: #5837eb;
    box-shadow: 0 0 0 0.2rem rgba(88, 55, 235, 0.25);
}

.sidebar .btn {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-weight: 600;
}

/* ====================================
   Call to Action Section
   ==================================== */

#blog-cta {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

#blog-cta .btn-lg {
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

#blog-cta .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(88, 55, 235, 0.3);
}

#blog-cta .btn-outline-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(88, 55, 235, 0.2);
}

/* ====================================
   Responsive Design
   ==================================== */

@media (max-width: 768px) {
    #blogs-hero h1 {
        font-size: 2.5rem;
    }
    
    .blog-image {
        height: 180px;
    }
    
    .blog-date-badge {
        top: 10px;
        right: 10px;
        padding: 6px 10px;
        font-size: 0.75rem;
    }
    
    .sidebar {
        margin-top: 2rem;
    }
}

@media (max-width: 576px) {
    #blogs-hero h1 {
        font-size: 2rem;
    }
    
    .blog-image {
        height: 160px;
    }
    
    .blog-card .card-body {
        padding: 1rem;
    }
    
    .recent-post-card .card-body {
        padding: 1rem;
    }
}

/* ====================================
   Animations
   ==================================== */

.blog-card {
    animation: fadeInUp 0.6s ease-in-out;
    animation-fill-mode: both;
}

.blog-card:nth-child(1) { animation-delay: 0.1s; }
.blog-card:nth-child(2) { animation-delay: 0.2s; }
.blog-card:nth-child(3) { animation-delay: 0.3s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Button hover effects */
.btn-primary,
.btn-outline-primary {
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #4c2bd6;
    border-color: #4c2bd6;
}

.btn-outline-primary:hover {
    background-color: #5837eb;
    border-color: #5837eb;
    color: white;
}

/* ====================================
   Blog Post Content Styling
   ==================================== */

.blog-post-content {
    line-height: 1.8;
    font-size: 1.1rem;
    color: #333;
}

.blog-post-content h1 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-weight: 700;
    font-size: 2.5rem;
}

.blog-post-content h2 {
    color: #5837eb;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 1.8rem;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.5rem;
}

.blog-post-content h3 {
    color: #495057;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 1.4rem;
}

.blog-post-content p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.blog-post-content ul {
    margin-bottom: 2rem;
    padding-left: 2rem;
}

.blog-post-content li {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.blog-post-content strong {
    color: #2c3e50;
    font-weight: 600;
}

.blog-post-content a {
    color: #5837eb;
    font-weight: 500;
}

.blog-post-content a:hover {
    color: #4c2bd6;
    text-decoration: underline;
}

/* Blog post hero styling */
#blog-post-hero {
    padding-top: 6rem;
}

#blog-post-hero .breadcrumb {
    background: none;
}

#blog-post-hero .breadcrumb-item + .breadcrumb-item::before {
    color: #ffffff80;
}

.blog-meta-header {
    font-size: 1rem;
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.85);
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.6);
}

/* Social share styling */
.social-share .btn {
    border-radius: 25px;
    font-size: 0.9rem;
    padding: 8px 16px;
}

/* Related posts styling */
#related-posts .card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

#related-posts .card:hover {
    transform: translateY(-3px);
}

/* Responsive adjustments for blog post */
@media (max-width: 768px) {
    .blog-post-content {
        font-size: 1rem;
    }
    
    .blog-post-content h1 {
        font-size: 2rem;
    }
    
    .blog-post-content h2 {
        margin-top: 2rem;
        font-size: 1.5rem;
    }
    
    .blog-post-content h3 {
        font-size: 1.2rem;
    }
    
    #blog-post-hero {
        padding-top: 5rem;
    }
    
    #blog-post-hero h1 {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .blog-post-content h1 {
        font-size: 1.8rem;
    }
    
    .blog-post-content h2 {
        font-size: 1.3rem;
    }
    
    .blog-post-content h3 {
        font-size: 1.1rem;
    }
    
    #blog-post-hero h1 {
        font-size: 1.6rem;
    }
}
