/* Blog Page CSS */

.page-header {
    position: relative;
    padding: 100px 0 60px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.blog-banner {
    background-image: url('https://images.unsplash.com/photo-1503676260728-1c00da094a0b?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.blog-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.85) 0%, rgba(234, 88, 12, 0.85) 100%);
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.page-subtitle {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.95);
    margin-bottom: 1.5rem;
    font-weight: 400;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.breadcrumb {
    background: rgba(255,255,255,0.2);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    display: inline-flex;
    backdrop-filter: blur(10px);
}

.breadcrumb-item a {
    color: white;
    text-decoration: none;
}

.breadcrumb-item.active {
    color: rgba(255,255,255,0.9);
}

.breadcrumb-item + .breadcrumb-item::before {
    content: '/';
    color: rgba(255,255,255,0.7);
    margin: 0 0.5rem;
}

/* Blog Cards */
.blog-card {
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
    border: none;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15) !important;
}

.blog-image-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 220px;
    background: var(--light-gray);
}

.blog-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.blog-category-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 2;
}

.blog-category-badge .badge {
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.blog-card .card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 1.5rem;
    background: white;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-gray);
}

.blog-meta i {
    font-size: 0.9rem;
}

.blog-card .card-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 0.75rem;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.blog-card .card-title a {
    color: var(--dark-gray);
    transition: color 0.3s ease;
}

.blog-card .card-title a:hover {
    color: var(--primary-orange);
}

.blog-card .card-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-gray);
    margin-bottom: 1.25rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 80px;
}

.blog-card .mt-auto {
    margin-top: auto !important;
}

.blog-card .btn-outline-primary {
    border-radius: 25px;
    padding: 0.5rem 1.25rem;
    font-weight: 600;
    font-size: 0.9rem;
    border: 2px solid var(--primary-orange);
    color: var(--primary-orange);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.blog-card .btn-outline-primary:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--primary-orange);
    transform: translateX(5px);
}

.blog-card .btn-outline-primary i {
    transition: transform 0.3s ease;
}

.blog-card .btn-outline-primary:hover i {
    transform: translateX(3px);
}

.blog-card .text-muted {
    font-size: 0.85rem;
    display: flex;
    align-items: center;
}

.blog-card .text-muted i {
    font-size: 0.9rem;
    margin-right: 0.25rem;
}

/* Section Spacing */
.section {
    padding: 80px 0;
}

/* Pagination */
.pagination {
    margin-top: 3rem;
}

.pagination .page-link {
    color: var(--primary-orange);
    border-color: #e0e0e0;
    padding: 0.75rem 1.25rem;
    margin: 0 0.25rem;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--primary-orange);
    transform: translateY(-2px);
}

.pagination .page-item.active .page-link {
    background: var(--gradient-primary);
    border-color: var(--primary-orange);
    color: white;
}

.pagination .page-item.disabled .page-link {
    color: #ccc;
    cursor: not-allowed;
    opacity: 0.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-header {
        padding: 80px 0 40px;
    }
    
    .page-title {
        font-size: 2.5rem;
    }
    
    .blog-image-wrapper {
        height: 200px;
    }
    
    .blog-card .card-title {
        font-size: 1.2rem;
    }
    
    .blog-card .card-body {
        padding: 1.25rem;
    }
    
    .section {
        padding: 60px 0;
    }
}

@media (max-width: 576px) {
    .page-title {
        font-size: 2rem;
    }
    
    .blog-image-wrapper {
        height: 180px;
    }
    
    .blog-card .card-title {
        font-size: 1.1rem;
    }
    
    .blog-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .blog-meta span {
        margin-left: 0 !important;
    }
}

/* Blog Detail Page Styles */
.blog-detail-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.blog-detail-image-wrapper {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.blog-detail-image-wrapper img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 15px;
}

.blog-detail-category {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 2;
}

.blog-detail-category .badge {
    background: var(--gradient-primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.blog-detail-meta {
    padding: 1.5rem 0;
    border-bottom: 2px solid #f0f0f0;
}

.blog-detail-meta .d-flex {
    color: var(--text-gray);
    font-size: 0.95rem;
}

.blog-detail-meta i {
    color: var(--primary-orange);
    font-size: 1.1rem;
}

.blog-detail-content {
    padding: 2rem 0;
    color: var(--dark-gray);
    line-height: 1.9;
    font-size: 1.05rem;
}

.blog-detail-content h2,
.blog-detail-content h3,
.blog-detail-content h4 {
    color: var(--dark-gray);
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    line-height: 1.3;
}

.blog-detail-content h2 {
    font-size: 2rem;
    border-bottom: 3px solid var(--primary-orange);
    padding-bottom: 0.75rem;
}

.blog-detail-content h3 {
    font-size: 1.75rem;
    color: var(--primary-orange);
}

.blog-detail-content h4 {
    font-size: 1.5rem;
}

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

.blog-detail-content ul,
.blog-detail-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.blog-detail-content li {
    margin-bottom: 0.75rem;
    line-height: 1.8;
}

.blog-detail-content a {
    color: var(--primary-orange);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.blog-detail-content a:hover {
    color: var(--primary-orange-dark);
    text-decoration: underline;
}

.blog-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 2rem 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.blog-detail-content blockquote {
    border-left: 4px solid var(--primary-orange);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-gray);
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 5px;
}

.blog-detail-tags {
    padding-top: 2rem;
}

.blog-detail-tags h6 {
    font-weight: 700;
    color: var(--dark-gray);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.blog-detail-tags .badge {
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    background: #f5f5f5;
    color: var(--dark-gray);
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.blog-detail-tags .badge:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--primary-orange);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(249, 115, 22, 0.3);
}

.blog-detail-tags .badge i {
    font-size: 0.75rem;
}

.blog-detail-share {
    padding-top: 2rem;
}

.blog-detail-share h6 {
    font-weight: 700;
    color: var(--dark-gray);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.blog-detail-share .btn {
    border-radius: 25px;
    padding: 0.6rem 1.25rem;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.blog-detail-share .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.blog-detail-share .btn-outline-primary {
    border: 2px solid var(--primary-orange);
    color: var(--primary-orange);
}

.blog-detail-share .btn-outline-primary:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--primary-orange);
}

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

.blog-sidebar .card {
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border: none;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
}

.blog-sidebar .card-header {
    background: var(--gradient-primary);
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 1.25rem 1.5rem;
}

.blog-sidebar .card-header h5 {
    color: white;
    margin: 0;
    font-size: 1.1rem;
}

.blog-sidebar .card-header i {
    font-size: 1.2rem;
}

.blog-sidebar .card-body {
    padding: 1.5rem;
}

.recent-post-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
}

.blog-sidebar .d-flex {
    transition: transform 0.3s ease;
}

.blog-sidebar .d-flex:hover {
    transform: translateX(5px);
}

.blog-sidebar .d-flex h6 a {
    color: var(--dark-gray);
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.blog-sidebar .d-flex:hover h6 a {
    color: var(--primary-orange);
}

.blog-sidebar .list-unstyled li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.blog-sidebar .list-unstyled li:last-child {
    border-bottom: none;
}

.blog-sidebar .list-unstyled a {
    color: var(--dark-gray);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.blog-sidebar .list-unstyled a:hover {
    color: var(--primary-orange);
    transform: translateX(5px);
}

.blog-sidebar .list-unstyled .badge {
    background: var(--gradient-primary);
    color: white;
    font-size: 0.75rem;
    padding: 0.35rem 0.7rem;
    border-radius: 15px;
}

/* Related Posts */
.related-posts {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 2px solid #f0f0f0;
}

.related-posts h4 {
    font-weight: 700;
    color: var(--dark-gray);
    font-size: 1.75rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--primary-orange);
}

.related-posts .card {
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
}

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

.related-posts .card-img-top {
    transition: transform 0.4s ease;
}

.related-posts .card:hover .card-img-top {
    transform: scale(1.05);
}

.related-posts .card-body {
    padding: 1.25rem;
}

.related-posts .card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.related-posts .card-title a {
    color: var(--dark-gray);
    transition: color 0.3s ease;
}

.related-posts .card-title a:hover {
    color: var(--primary-orange);
}

.related-posts .text-muted {
    font-size: 0.85rem;
}

.related-posts .text-muted i {
    color: var(--primary-orange);
}

/* Responsive Design for Blog Detail */
@media (max-width: 992px) {
    .blog-sidebar {
        position: static;
        margin-top: 3rem;
    }
    
    .blog-detail-card {
        padding: 2rem;
    }
    
    .blog-detail-image-wrapper img {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .blog-detail-card {
        padding: 1.5rem;
    }
    
    .blog-detail-image-wrapper img {
        height: 280px;
    }
    
    .blog-detail-content {
        font-size: 1rem;
    }
    
    .blog-detail-content h2 {
        font-size: 1.75rem;
    }
    
    .blog-detail-content h3 {
        font-size: 1.5rem;
    }
    
    .blog-detail-meta .d-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .blog-detail-share .btn {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }
}

@media (max-width: 576px) {
    .blog-detail-card {
        padding: 1.25rem;
    }
    
    .blog-detail-image-wrapper img {
        height: 220px;
    }
    
    .blog-detail-content h2 {
        font-size: 1.5rem;
    }
    
    .blog-detail-content h3 {
        font-size: 1.25rem;
    }
    
    .blog-detail-share .btn {
        width: 100%;
        margin-right: 0;
    }
}

