/* Modern Blog Detail Page Styles */

/* Hero Section */
.blog-hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #0F6E58 0%, #064E3B 100%);
    position: relative;
    overflow: hidden;
}

.hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.blog-hero .container {
    z-index: 3;
}

.blog-hero .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-hero .breadcrumb-item a:hover {
    color: rgba(255, 255, 255, 1);
}

/* Article Content */
.blog-article {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 3rem;
    margin-top: -100px;
    position: relative;
    z-index: 10;
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    color: #2c3e50;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.article-content h1 {
    font-size: 2.5rem;
    border-bottom: 3px solid #3498db;
    padding-bottom: 0.5rem;
}

.article-content h2 {
    font-size: 2rem;
    color: #3498db;
}

.article-content h3 {
    font-size: 1.5rem;
}

.article-content p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
}

.article-content blockquote {
    border-left: 4px solid #3498db;
    background: #f8f9fa;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 10px 10px 0;
    font-style: italic;
    position: relative;
}

.article-content blockquote::before {
    content: '"';
    font-size: 4rem;
    color: #3498db;
    position: absolute;
    top: -10px;
    left: 15px;
    font-family: Georgia, serif;
}

.article-content ul,
.article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content code {
    background: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #e74c3c;
}

.article-content pre {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 1.5rem;
    border-radius: 10px;
    overflow-x: auto;
    margin: 2rem 0;
}

.article-content pre code {
    background: none;
    color: inherit;
    padding: 0;
}

/* Article Footer */
.article-footer {
    border-top: 1px solid #eee;
    padding-top: 2rem;
}

.share-buttons .btn {
    border-radius: 50px;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.share-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Sidebar */
.blog-sidebar {
    position: sticky;
    top: 2rem;
}

.blog-sidebar .card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-sidebar .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3498db, #2980b9);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: white;
    font-size: 2rem;
}

.recent-post-item {
    transition: background-color 0.3s ease;
}

.recent-post-item:hover {
    background-color: #f8f9fa;
}

.recent-post-item:last-child {
    border-bottom: none !important;
}

.recent-post-item img {
    transition: transform 0.3s ease;
}

.recent-post-item:hover img {
    transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-hero {
        min-height: 50vh;
        text-align: center;
    }
    
    .blog-hero h1 {
        font-size: 2rem;
    }
    
    .blog-article {
        padding: 2rem 1.5rem;
        margin-top: -50px;
        border-radius: 10px;
    }
    
    .article-content {
        font-size: 1rem;
    }
    
    .article-content h1 {
        font-size: 2rem;
    }
    
    .article-content h2 {
        font-size: 1.5rem;
    }
    
    .share-buttons {
        margin-top: 1rem;
        text-align: center;
    }
    
    .blog-sidebar {
        position: static;
        margin-top: 3rem;
    }
}

@media (max-width: 576px) {
    .blog-hero .display-4 {
        font-size: 1.8rem;
    }
    
    .blog-article {
        padding: 1.5rem 1rem;
    }
    
    .share-buttons span {
        display: block;
        margin-bottom: 1rem;
    }
}

/* Animation for page load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-article {
    animation: fadeInUp 0.8s ease-out;
}

.blog-sidebar .card {
    animation: fadeInUp 0.8s ease-out;
    animation-delay: 0.2s;
    animation-fill-mode: both;
}

.blog-sidebar .card:nth-child(2) {
    animation-delay: 0.4s;
}

.blog-sidebar .card:nth-child(3) {
    animation-delay: 0.6s;
}

.blog-sidebar .card:nth-child(4) {
    animation-delay: 0.8s;
}

/* Categories Card */
.categories-card .list-group-item {
    border-left: none;
    border-right: none;
    transition: all 0.3s ease;
    padding: 0.75rem 1rem;
}

.categories-card .list-group-item:hover {
    background-color: #f8f9fa;
    padding-left: 1.25rem;
}

.categories-card .list-group-item:first-child {
    border-top: none;
}

.categories-card .list-group-item:last-child {
    border-bottom: none;
}

.categories-card .badge {
    font-size: 0.75rem;
    min-width: 1.5rem;
}

/* Modern CTA Card */
.modern-cta-card {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    background: #ffffff;
    color: #333;
    transform: translateY(0);
    transition: all 0.4s ease;
    border: 1px solid #e9ecef;
}

.modern-cta-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15) !important;
}

.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.cta-icon {
    position: relative;
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #EFC349, #D4AF37);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border: 3px solid #f8f9fa;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(239, 195, 73, 0.3);
}

.modern-cta-card:hover .icon-wrapper {
    background: linear-gradient(135deg, #D4AF37, #B8941F);
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(239, 195, 73, 0.4);
}

.icon-wrapper i {
    font-size: 2rem;
    color: #0b1220;
}

.cta-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0b1220;
    margin-bottom: 1rem;
}

.cta-text {
    color: #6b7280;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.btn-cta-primary {
    background: #EFC349;
    color: #0b1220;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-cta-primary:hover {
    background: #D4AF37;
    color: #0b1220;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.btn-cta-secondary {
    background: transparent;
    color: #6b7280;
    border: 2px solid #e5e7eb;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-cta-secondary:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #374151;
    transform: translateY(-2px);
}

.cta-decoration {
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(239, 195, 73, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(30px, -30px);
}

.cta-decoration::before {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(239, 195, 73, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

/* Responsive CTA */
@media (min-width: 768px) {
    .cta-buttons {
        flex-direction: row;
        justify-content: center;
        gap: 1.5rem;
    }
}

@media (max-width: 576px) {
    .modern-cta-card {
        border-radius: 15px;
    }
    
    .cta-content {
        padding: 2rem 1.5rem !important;
    }
    
    .cta-title {
        font-size: 1.3rem;
    }
    
    .cta-text {
        font-size: 0.95rem;
    }
    
    .btn-cta-primary,
    .btn-cta-secondary {
        width: 100%;
        justify-content: center;
    }
}

/* ===== BLOG LISTING CARDS ===== */

/* Blog Listing Card Styles */
.blog-listing-card {
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s ease;
    background: #ffffff;
}

.blog-listing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}

/* Blog Card Image */
.blog-card-image {
    height: 220px;
    object-fit: cover;
    width: 100%;
    transition: transform 0.4s ease;
}

.blog-listing-card:hover .blog-card-image {
    transform: scale(1.05);
}

.blog-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.blog-listing-card:hover .blog-card-overlay {
    opacity: 1;
}

/* Blog Card Placeholder */
.blog-card-placeholder {
    height: 220px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
}

.blog-card-placeholder i {
    font-size: 3rem;
    opacity: 0.5;
}

/* Blog Meta Information */
.blog-meta {
    border-bottom: 1px solid #f1f3f4;
    padding-bottom: 1rem;
}

.blog-meta .text-muted {
    font-size: 0.85rem;
    font-weight: 500;
}

.blog-categories .badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
    font-weight: 500;
    border-radius: 20px;
}

/* Blog Card Title */
.blog-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    color: #0b1220;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-listing-card:hover .blog-card-title {
    color: #0F6E58;
}

/* Blog Card Excerpt */
.blog-card-excerpt {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #6b7280;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Blog Card Button */
.blog-listing-card .btn {
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.blog-listing-card .btn:hover {
    transform: translateY(-2px);
}

/* Animation for blog cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-listing-card {
    animation: fadeInUp 0.6s ease-out;
}

.blog-listing-card:nth-child(1) { animation-delay: 0.1s; }
.blog-listing-card:nth-child(2) { animation-delay: 0.2s; }
.blog-listing-card:nth-child(3) { animation-delay: 0.3s; }
.blog-listing-card:nth-child(4) { animation-delay: 0.4s; }
.blog-listing-card:nth-child(5) { animation-delay: 0.5s; }
.blog-listing-card:nth-child(6) { animation-delay: 0.6s; }

/* Responsive Design for Blog Cards */
@media (max-width: 768px) {
    .blog-card-image,
    .blog-card-placeholder {
        height: 180px;
    }
    
    .blog-card-title {
        font-size: 1.1rem;
    }
    
    .blog-card-excerpt {
        font-size: 0.9rem;
    }
    
    .blog-listing-card {
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .blog-card-image,
    .blog-card-placeholder {
        height: 160px;
    }
    
    .blog-listing-card .card-body {
        padding: 1.5rem !important;
    }
}

/* ===== END BLOG LISTING CARDS ===== */

/* Related Posts Section */
.related-posts .card {
    transition: all 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
}

.related-posts .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.related-posts .card:hover img {
    transform: scale(1.1);
}

.related-posts .card-img-top {
    transition: transform 0.3s ease;
}

.related-posts .card-title a {
    transition: color 0.3s ease;
}

.related-posts .card-title a:hover {
    color: #3498db !important;
}

/* Print Styles */
@media print {
    .blog-hero,
    .blog-sidebar,
    .article-footer {
        display: none;
    }
    
    .blog-article {
        box-shadow: none;
        margin-top: 0;
        padding: 0;
    }
    
    .article-content {
        font-size: 12pt;
        line-height: 1.5;
    }
}