/* Dynamic Page Enhanced Styles */

/* Blog Details Styles */
.single-blog-details {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    margin-bottom: 30px;
}

.blog-header {
    padding: 30px 30px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.blog-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.3;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 20px;
}

.blog-date {
    color: #7f8c8d;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-date i {
    color: #3498db;
}

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

.blog-featured-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.blog-content {
    padding: 30px;
}

.blog-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

.blog-description h1,
.blog-description h2,
.blog-description h3,
.blog-description h4,
.blog-description h5,
.blog-description h6 {
    color: #2c3e50;
    margin-top: 30px;
    margin-bottom: 15px;
}

.blog-description p {
    margin-bottom: 20px;
}

.blog-description ul,
.blog-description ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.blog-description li {
    margin-bottom: 8px;
}

/* Related Blogs Section */
.related-blogs-area {
    margin-top: 50px;
}

.section-title {
    margin-bottom: 40px;
}

.section-heading {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.section-subtitle {
    color: #7f8c8d;
    font-size: 1.1rem;
}

.related-blog-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

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

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

.blog-card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-blog-card:hover .blog-card-image img {
    transform: scale(1.1);
}

.blog-card-content {
    padding: 20px;
}

.blog-card-title {
    margin-bottom: 10px;
}

.blog-card-title a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.blog-card-title a:hover {
    color: #3498db;
}

.blog-card-meta {
    margin-bottom: 15px;
}

.blog-card-excerpt {
    color: #7f8c8d;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.blog-card-footer .btn {
    border-radius: 25px;
    padding: 8px 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.blog-card-footer .btn:hover {
    transform: translateX(5px);
}

/* Sidebar Styles */
.blog-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widgets .widget {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    margin-bottom: 30px;
    overflow: hidden;
}

.widget-title {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: #fff;
    padding: 20px;
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

/* Search Widget */
.search-widget .search-form {
    padding: 20px;
}

.search-widget .input-group {
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.search-widget .form-control {
    border: none;
    padding: 12px 20px;
    font-size: 0.95rem;
}

.search-widget .form-control:focus {
    box-shadow: none;
    border-color: transparent;
}

.search-widget .btn {
    border: none;
    padding: 12px 20px;
    background: #3498db;
    transition: background 0.3s ease;
}

.search-widget .btn:hover {
    background: #2980b9;
}

/* Social Share Widget */
.social-widget {
    padding: 20px;
}

.social-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.social-links li {
    margin-bottom: 10px;
}

.social-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border-radius: 8px;
    text-decoration: none;
    color: #fff;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: translateX(5px);
}

.social-links .facebook {
    background: #3b5998;
}

.social-links .twitter {
    background: #1da1f2;
}

.social-links .linkedin {
    background: #0077b5;
}

.social-links .whatsapp {
    background: #25d366;
}

/* Categories Widget */
.categories-widget {
    padding: 20px;
}

.categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.categories-list li {
    border-bottom: 1px solid #f0f0f0;
}

.categories-list li:last-child {
    border-bottom: none;
}

.categories-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    text-decoration: none;
    color: #2c3e50;
    transition: color 0.3s ease;
}

.categories-list a:hover {
    color: #3498db;
}

.category-name {
    font-weight: 500;
}

.category-count {
    background: #ecf0f1;
    color: #7f8c8d;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Advertisement Widget */
.advertisement-widget {
    padding: 20px;
}

.ad-banner img {
    width: 100%;
    border-radius: 8px;
}

/* Breadcrumb Enhancement */
.breadcrumb-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.breadcrumb-list li {
    color: rgba(255,255,255,0.8);
}

.breadcrumb-list li:not(:last-child)::after {
    content: ">";
    margin-left: 10px;
    color: rgba(255,255,255,0.6);
}

.breadcrumb-list a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .blog-title {
        font-size: 1.8rem;
    }
    
    .blog-header,
    .blog-content {
        padding: 20px;
    }
    
    .blog-featured-image img {
        height: 250px;
    }
    
    .section-heading {
        font-size: 1.6rem;
    }
    
    .blog-sidebar {
        position: static;
        margin-top: 30px;
    }
    
    .breadcrumb-title {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .blog-title {
        font-size: 1.5rem;
    }
    
    .blog-header,
    .blog-content {
        padding: 15px;
    }
    
    .blog-featured-image img {
        height: 200px;
    }
    
    .section-heading {
        font-size: 1.4rem;
    }
    
    .breadcrumb-title {
        font-size: 1.6rem;
    }
    
    .social-links a {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

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

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

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