.blog-magazine-wrapper {
    display: flex;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: flex-start;
}
.blog-main-content {
    flex: 0 0 70%;
    max-width: 70%;
}
.blog-sidebar {
    flex: 0 0 calc(30% - 40px);
    max-width: calc(30% - 40px);
    background: #151515;
    border-radius: 12px;
    padding: 25px;
    border: 1px solid #222;
}

.featured-post-card {
    background: #1a1a1a;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 40px;
    border: 1px solid #333;
    transition: transform 0.3s ease;
}
.featured-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.featured-img-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    position: relative;
    background: #222;
}
.featured-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.featured-content {
    padding: 30px;
}

.list-post-card {
    display: flex;
    gap: 25px;
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 25px;
    border: 1px solid #333;
    transition: transform 0.3s ease;
}
.list-post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
}
.list-img-container {
    flex: 0 0 240px;
    max-width: 240px;
    aspect-ratio: 4 / 3;
    position: relative;
    background: #222;
}
.list-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.list-content {
    padding: 20px 20px 20px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cat-pill {
    background: #111;
    color: #fff;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    position: absolute;
    bottom: 15px;
    left: 15px;
    z-index: 2;
    border: 1px solid #333;
}

.meta-text {
    color: #888;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
}

.pagination {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 50px;
}
.pagination a, .pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #1a1a1a;
    color: white;
    text-decoration: none;
    border: 1px solid #333;
    font-weight: 600;
    transition: all 0.3s;
}
.pagination a:hover {
    background: #2271b1;
    border-color: #2271b1;
}
.pagination .current {
    background: #2271b1;
    border-color: #2271b1;
}

/* Hero Carousel Styles */
.hero-carousel-container {
    max-width: 1200px;
    margin: 0 auto 40px auto;
    display: flex;
    gap: 20px;
    height: 400px;
    overflow: hidden;
    position: relative;
    border-radius: 12px;
}
.carousel-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.carousel-item.active {
    flex: 0 0 calc(55% - 22px);
}
.carousel-item.small {
    flex: 0 0 calc(22.5% - 9px);
}
.carousel-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    z-index: 1;
    transition: transform 0.6s ease;
}
.carousel-item:hover .carousel-bg {
    transform: scale(1.05);
}
.carousel-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0) 100%);
    z-index: 2;
}
.carousel-content {
    position: relative;
    z-index: 3;
    padding: 30px;
    color: white;
    transition: padding 0.4s ease;
}
.carousel-item.small .carousel-content {
    padding: 20px;
}
/* Premium fade-in content animation when card becomes active */
.carousel-item.active .carousel-content {
    animation: fadeInContent 0.5s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}
.carousel-content h2 {
    font-weight: 800;
    margin: 10px 0;
    line-height: 1.3;
    color: #fff;
}
.carousel-item.active .carousel-content h2 {
    font-size: 28px;
}
.carousel-item.small .carousel-content h2 {
    font-size: 16px;
}
.carousel-meta-top {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #ccc;
}
.carousel-meta-top img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}
.carousel-meta-bottom {
    font-size: 12px;
    color: #aaa;
    display: flex;
    align-items: center;
    gap: 10px;
}
.carousel-meta-bottom .cat {
    color: #455ae9;
    font-weight: 600;
}
.play-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #455ae9;
    font-size: 18px;
    z-index: 3;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
    padding-left: 4px;
}
.carousel-item.active .play-btn {
    opacity: 1;
    transform: scale(1);
}

@media (max-width: 768px) {
    .hero-carousel-container {
        flex-direction: column;
        height: auto;
    }
    .carousel-item.active, .carousel-item.small {
        flex: 0 0 300px;
        width: 100%;
        height: 300px;
    }
}

/* Sidebar Styles */
.sidebar-widget {
    margin-bottom: 35px;
}
.sidebar-widget:last-child {
    margin-bottom: 0;
}
.widget-title {
    color: white;
    font-size: 18px;
    font-weight: 700;
    border-bottom: 2px solid #2271b1;
    padding-bottom: 10px;
    margin-bottom: 20px;
    display: inline-block;
}

.sidebar-post-item {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #2a2a2a;
    text-decoration: none;
    align-items: center;
    transition: transform 0.3s;
}
.sidebar-post-item:hover {
    transform: translateX(5px);
}
.sidebar-post-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

@media (max-width: 992px) {
    .blog-magazine-wrapper {
        flex-direction: column;
    }
    .blog-main-content, .blog-sidebar {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .list-post-card {
        flex-direction: column;
    }
    .list-img-container {
        flex: 0 0 100%;
        max-width: 100%;
        aspect-ratio: 16 / 9;
    }
    .list-content {
        padding: 20px;
    }
}

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

/* Extracted Blog Styles from PHP */
.blog-main-wrapper {
    padding: 120px 5%;
    min-height: 80vh;
    background: transparent;
}
.blog-header-container {
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 50px;
}
.blog-breadcrumb {
    justify-content: flex-start !important;
    margin-bottom: 15px !important;
}
.blog-title {
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 15px;
}
.blog-subtitle {
    color: #aaa;
    font-size: 16px;
}
.blog-filter-results {
    margin-top: 20px;
    padding: 15px 20px;
    background: rgba(34, 113, 177, 0.1);
    border-left: 4px solid #2271b1;
    border-radius: 4px;
}
.blog-filter-text {
    color: #ddd;
}
.blog-filter-clear {
    margin-left: 15px;
    color: #2271b1;
    text-decoration: underline;
    font-size: 13px;
}
.list-post-link {
    text-decoration: none;
    display: block;
}
.list-img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2271b1, #72aee6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    opacity: 0.5;
}
.list-post-title {
    font-size: 20px;
    color: #fff;
    font-weight: 700;
    margin: 0 0 10px 0;
    line-height: 1.4;
    transition: color 0.3s;
}
.list-post-title:hover {
    color: #2271b1 !important;
}
.list-post-excerpt {
    color: #aaa;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}
.list-post-meta {
    margin-top: 10px;
}
.read-more-text {
    color: #2271b1;
    font-weight: 600;
}
.blog-no-posts {
    background: #1a1a1a;
    border-radius: 12px;
    border: 1px solid #333;
    padding: 60px 20px;
    text-align: center;
}
.no-posts-icon {
    font-size: 48px;
    color: #444;
    margin-bottom: 20px;
}
.no-posts-title {
    color: #fff;
    font-size: 22px;
    margin-bottom: 10px;
}
.no-posts-desc {
    color: #aaa;
}
.sidebar-search-container {
    display: flex;
    background: #222;
    border-radius: 8px;
    border: 1px solid #333;
    overflow: hidden;
    padding: 4px;
}
.sidebar-search-input {
    width: 100%;
    background: transparent;
    border: none;
    color: white;
    padding: 10px 15px;
    font-size: 14px;
    outline: none;
}
.sidebar-search-button {
    background: #2271b1;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0 15px;
    cursor: pointer;
    transition: background 0.3s;
}
.sidebar-search-button:hover {
    background: #135e96;
}
.sidebar-post-img-container {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #333;
}
.sidebar-post-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.sidebar-post-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}
.sidebar-post-info {
    flex: 1;
}
.sidebar-post-title {
    font-size: 14px;
    margin: 0 0 6px 0;
    color: #fff;
    font-weight: 600;
    line-height: 1.4;
    transition: color 0.3s;
}
.sidebar-post-title:hover {
    color: #2271b1 !important;
}
.sidebar-post-date {
    font-size: 11px;
    color: #888;
}
.sidebar-cat-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed #333;
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 14px;
}
.sidebar-cat-item:hover {
    color: #2271b1 !important;
}
.sidebar-cat-count {
    background: #222;
    border-radius: 8px;
    padding: 2px 8px;
    font-size: 11px;
    color: #888;
    border: 1px solid #333;
}
.sidebar-tags-container {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.sidebar-tag-item {
    background: #222;
    border: 1px solid #333;
    color: #aaa;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    transition: all 0.3s;
}
.sidebar-tag-item:hover {
    border-color: #2271b1 !important;
    color: white !important;
}
.sidebar-no-data {
    color: #aaa;
    font-size: 13px;
}

