/* Blog Content Styling */

/* Rich text content styling */
.blog-text {
    font-size: 1.1em;
    line-height: 1.8;
    color: #333;
}

.blog-text h1, .blog-text h2, .blog-text h3, 
.blog-text h4, .blog-text h5, .blog-text h6 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: #2c5aa0;
    font-weight: 600;
}

.blog-text h1 { font-size: 2.2em; }
.blog-text h2 { font-size: 1.9em; }
.blog-text h3 { font-size: 1.6em; }
.blog-text h4 { font-size: 1.4em; }
.blog-text h5 { font-size: 1.2em; }
.blog-text h6 { font-size: 1.1em; }

.blog-text p {
    margin-bottom: 18px;
    text-align: justify;
}

.blog-text ul, .blog-text ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.blog-text li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.blog-text blockquote {
    border-left: 4px solid #2c5aa0;
    padding-left: 20px;
    margin: 25px 0;
    font-style: italic;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 0 8px 8px 0;
    font-size: 1.05em;
}

.blog-text blockquote p {
    margin-bottom: 0;
}

.blog-text img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin: 20px 0;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.blog-text a {
    color: #2c5aa0;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.blog-text a:hover {
    color: #1a3d6b;
    border-bottom-color: #2c5aa0;
}

.blog-text code {
    background: #f4f4f4;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #d63384;
}

.blog-text pre {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    border-left: 4px solid #2c5aa0;
    margin: 20px 0;
}

.blog-text pre code {
    background: none;
    padding: 0;
    color: #333;
}

.blog-text table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.blog-text table th,
.blog-text table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.blog-text table th {
    background: #2c5aa0;
    color: white;
    font-weight: 600;
}

.blog-text table tr:hover {
    background: #f8f9fa;
}

/* Image Carousel Styling */
.blog-images-carousel {
    margin: 40px 0;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.blog-images-carousel h4 {
    color: #2c5aa0;
    font-weight: 600;
    text-align: center;
    margin-bottom: 25px;
    position: relative;
}

.blog-images-carousel h4:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #2c5aa0;
    border-radius: 2px;
}

.carousel-inner {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.carousel-item img {
    transition: transform 0.3s ease;
}

.carousel-item img:hover {
    transform: scale(1.02);
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(44, 90, 160, 0.8);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.carousel-control-prev {
    left: -25px;
}

.carousel-control-next {
    right: -25px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
    background: rgba(44, 90, 160, 0.9);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

.carousel-indicators {
    bottom: -40px;
    margin-bottom: 0;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    border: none;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.carousel-indicators button.active {
    background: #2c5aa0;
    transform: scale(1.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-text {
        font-size: 1em;
    }
    
    .blog-text h1 { font-size: 1.8em; }
    .blog-text h2 { font-size: 1.6em; }
    .blog-text h3 { font-size: 1.4em; }
    .blog-text h4 { font-size: 1.2em; }
    
    .blog-images-carousel {
        padding: 20px 15px;
        margin: 30px 0;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
    }
    
    .carousel-control-prev {
        left: -20px;
    }
    
    .carousel-control-next {
        right: -20px;
    }
    
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 16px;
        height: 16px;
    }
}

/* Dark theme support */
[data-bs-theme="dark"] .blog-text {
    color: #e9ecef;
}

[data-bs-theme="dark"] .blog-text h1,
[data-bs-theme="dark"] .blog-text h2,
[data-bs-theme="dark"] .blog-text h3,
[data-bs-theme="dark"] .blog-text h4,
[data-bs-theme="dark"] .blog-text h5,
[data-bs-theme="dark"] .blog-text h6 {
    color: #6ea8fe;
}

[data-bs-theme="dark"] .blog-text blockquote {
    background: #2d3748;
    border-left-color: #6ea8fe;
}

[data-bs-theme="dark"] .blog-images-carousel {
    background: #2d3748;
    border-color: #495057;
}

[data-bs-theme="dark"] .blog-images-carousel h4 {
    color: #6ea8fe;
}

[data-bs-theme="dark"] .blog-images-carousel h4:after {
    background: #6ea8fe;
}