/* Blog Page Specific Styles */

:root {
    --primary-color: #8e44ad;
    --primary-dark: #6c3483;
    --primary-light: #a569bd;
}

.blog-page .site-header.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
}

/* Hero Slider */
.blog-hero-section {
    padding-top: 0;
}

.blog-hero-item {
    height: 600px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.blog-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 100%);
}

/* Premium Glass Card Utility */
.glass-card-premium {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-hero-card {
    max-width: 650px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 5;
    color: #fff !important;
}

.blog-hero-card h1,
.blog-hero-card p {
    color: #fff !important;
}

/* Hot Topics */
.hot-topics-section {
    position: relative;
    z-index: 2;
    margin-top: -50px;
    border-radius: 40px 40px 0 0;
}

.trending-icon-box {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hot-topic-card {
    transition: all 0.3s ease;
    border-radius: 15px;
}

.hot-topic-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.hot-img-wrapper {
    height: 120px;
    overflow: hidden;
}

.hot-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hot-topic-card:hover .hot-img-wrapper img {
    transform: scale(1.1);
}

/* Blog Cards */
.blog-card {
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: #fff;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(142, 68, 173, 0.15) !important;
}

.blog-card-img {
    height: 220px;
    position: relative;
    overflow: hidden;
}

.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-card:hover .blog-card-img img {
    transform: scale(1.15);
}

.category-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-color);
    color: #fff;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: bold;
    z-index: 2;
}

.title-link {
    transition: color 0.3s;
}

.blog-card:hover .title-link {
    color: var(--primary-color) !important;
}

/* Sidebar Widgets */
.sidebar-widget {
    padding: 25px;
    border-radius: 20px;
}

.widget-title {
    font-weight: 800;
    position: relative;
    padding-bottom: 12px;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.category-list li {
    padding: 12px 0;
    border-bottom: 1px dashed #eee;
}

.category-list li:last-child {
    border-bottom: none;
}

.category-list a {
    transition: all 0.3s;
}

.category-list li:hover a {
    color: var(--primary-color) !important;
    padding-right: 5px;
}

/* Pagination */
.custom-pagination .page-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    color: #555;
    background: #f8f9fa;
    transition: all 0.3s;
    font-weight: bold;
}

.custom-pagination .page-item.active .page-link {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 5px 15px rgba(142, 68, 173, 0.3);
}

.custom-pagination .page-link:hover:not(.active) {
    background: #eee;
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .blog-hero-item {
        height: 500px;
    }

    .blog-hero-card {
        margin: 0 15px;
    }

    .hot-topics-section {
        margin-top: -30px;
        padding-top: 40px !important;
    }
}

/* Utilities */
.tiny-text {
    font-size: 0.7rem;
}

.hover-lift {
    transition: transform 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
}

.text-purple {
    color: var(--primary-color) !important;
}

.bg-purple {
    background: var(--primary-color) !important;
}

.btn-purple {
    background: var(--primary-color);
    color: #fff;
    border: none;
}

.btn-purple:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: scale(1.05);
}

.btn-outline-purple {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-purple:hover {
    background: var(--primary-color);
    color: #fff;
}
