/* Blog-specific styling */

/* Blog Index Page */
.blog-header {
    text-align: center;
    margin-bottom: 4rem;
    padding: 3rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 1rem;
    margin-top: -2rem;
}

.blog-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.blog-header p {
    font-size: 1.125rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Blog Post Cards */
.blog-card {
    transition: all 0.3s ease;
    border: none;
    border-radius: 1rem;
    overflow: hidden;
    height: 100%;
    background: white;
    box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.08);
}

.blog-card:hover {
    transform: translateY(-0.25rem);
    box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.15);
}

.blog-card .card-body {
    padding: 2rem;
}

.blog-card .card-title {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 1rem;
    color: #2d3748;
}

.blog-card .card-text {
    color: #718096;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.blog-card .read-more-btn {
    background: linear-gradient(135deg, #020486 0%, #1a1a9e 100%);
    border: none;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.blog-card .read-more-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 0.25rem 0.75rem rgba(2, 4, 134, 0.3);
    color: white;
}

/* Blog Post Meta */
.blog-meta {
    color: #a0aec0;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.blog-meta .date {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.blog-meta .read-time {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Individual Blog Post Styling */
.blog-post-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.08);
}

.blog-post-header {
    padding: 3rem 3rem 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-bottom: 1px solid #e2e8f0;
}

.blog-post-title {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.3;
    color: #2d3748;
    margin-bottom: 1rem;
}

.blog-post-meta {
    color: #718096;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.blog-post-content {
    padding: 3rem;
}

.blog-post-content .lead {
    font-size: 1.25rem;
    line-height: 1.6;
    color: #4a5568;
    margin-bottom: 2rem;
    padding-left: 1rem;
    border-left: 4px solid #020486;
    font-weight: 400;
}

.blog-post-content h2,
.blog-post-content h3 {
    color: #2d3748;
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.blog-post-content h2 {
    font-size: 1.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}

.blog-post-content h3 {
    font-size: 1.5rem;
}

.blog-post-content p {
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: #4a5568;
}

.blog-post-content ul,
.blog-post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.blog-post-content li {
    line-height: 1.6;
    margin-bottom: 0.5rem;
    color: #4a5568;
}

.blog-post-content strong {
    color: #2d3748;
    font-weight: 600;
}

/* Call-to-Action in Blog Posts */
.blog-cta {
    background: linear-gradient(135deg, #020486 0%, #1a1a9e 100%);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 0.75rem;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    margin-top: 2rem;
    transition: all 0.3s ease;
}

.blog-cta:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(2, 4, 134, 0.3);
}

/* Emoji and Icon Enhancements */
.blog-post-content h3:before {
    content: "?? ";
    margin-right: 0.5rem;
    opacity: 0.8;
}

.blog-post-content h3:nth-of-type(2):before {
    content: "?? ";
}

.blog-post-content h3:nth-of-type(3):before {
    content: "?? ";
}

.blog-post-content h3:nth-of-type(4):before {
    content: "?? ";
}

.blog-post-content h3:nth-of-type(5):before {
    content: "? ";
}

/* Custom bullet points for lists - Using CSS shapes instead of Unicode */
.blog-post-content ul li {
    position: relative;
    list-style: none;
    margin-left: 1.5rem;
    padding-left: 0.5rem;
}

.blog-post-content ul li:before {
    content: "";
    position: absolute;
    left: -1rem;
    top: 0.7em;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0.25rem 0 0.25rem 0.4rem;
    border-color: transparent transparent transparent #020486;
    transform: translateY(-50%);
}

/* Alternative bullet style using a solid circle */
.blog-post-content ul.circle-bullets li:before {
    content: "";
    position: absolute;
    left: -0.75rem;
    top: 0.7em;
    width: 0.5rem;
    height: 0.5rem;
    background-color: #020486;
    border-radius: 50%;
    transform: translateY(-50%);
}

/* Alternative bullet style using a square */
.blog-post-content ul.square-bullets li:before {
    content: "";
    position: absolute;
    left: -0.75rem;
    top: 0.6em;
    width: 0.4rem;
    height: 0.4rem;
    background-color: #020486;
    transform: translateY(-50%);
}

/* Highlight boxes */
.highlight-box {
    background: linear-gradient(135deg, #ebf8ff 0%, #e6fffa 100%);
    border-left: 4px solid #020486;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 0.5rem 0.5rem 0;
}

.highlight-box p:last-child {
    margin-bottom: 0;
}

/* Special styling for lists inside highlight boxes */
.highlight-box ul li:before {
    border-color: transparent transparent transparent #020486;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-header {
        padding: 2rem 1rem;
        margin-top: 0;
    }
    
    .blog-header h1 {
        font-size: 2rem;
    }
    
    .blog-post-header {
        padding: 2rem 1.5rem 1.5rem;
    }
    
    .blog-post-title {
        font-size: 1.75rem;
    }
    
    .blog-post-content {
        padding: 2rem 1.5rem;
    }
    
    .blog-post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}