/* Blog Styles with Sneat Admin Theme and Hero Banner */

/* Hero Banner Styling */
.blog-hero-banner {
    width: 100%;
    margin-bottom: 2rem;
}

.hero-image-container {
    position: relative;
    height: 50vh;
    min-height: 300px;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 100%;
    margin-top: -100px; /* ปรับตำแหน่งตามที่คุณขอ */
}

.hero-title {
    font-size: 5rem;
    font-weight: 800;
    letter-spacing: 4px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin: 0;
    padding: 0;
}

/* Breadcrumb Styling */
.breadcrumb-container {
    padding: 15px 0;
}

.breadcrumb {
    background: transparent;
    margin-bottom: 0;
    padding: 0;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    font-size: 16px;
    position: relative;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: '\f105';
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin: 0 8px;
}

/* Blog cards with Sneat styling */
.card {
    border-radius: 0.5rem;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08) !important;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12) !important;
}

.card-header {
    border-bottom: none;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem 0.5rem 0 0 !important;
}

/* Featured image styling */
.pbmit-featured-img-wrapper img {
    transition: transform 0.3s;
}

.pbmit-featured-img-wrapper:hover img {
    transform: scale(1.02);
}

/* Badge styling */
.badge {
    font-weight: 500;
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    border-radius: 50rem;
    transition: all 0.3s;
}

.badge.bg-primary {
    background-color: #696cff !important;
}

.badge.bg-secondary {
    background-color: #8592a3 !important;
}

.badge:hover {
    opacity: 0.9;
}

/* Post navigation */
.post-navigation .btn {
    border-color: #696cff;
    color: #696cff;
    transition: all 0.3s;
}

.post-navigation .btn:hover {
    background-color: #696cff;
    color: #fff;
}

/* Recent posts styling */
.list-group-item {
    padding: 1rem;
    transition: background-color 0.3s;
}

.list-group-item:hover {
    background-color: rgba(105, 108, 255, 0.05);
}

.list-group-item a {
    color: #697a8d;
    text-decoration: none;
    transition: color 0.3s;
}

.list-group-item a:hover {
    color: #696cff;
}

/* Swiper gallery styling */
.swiper-container {
    margin: 0;
    padding: 1rem;
}

.swiper-slide {
    transition: transform 0.3s;
}

.swiper-slide:hover {
    transform: scale(1.02);
}

.swiper-button-next,
.swiper-button-prev {
    color: #696cff !important;
    background-color: #fff;
    width: 2.5rem !important;
    height: 2.5rem !important;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 1rem !important;
    font-weight: bold;
}

.swiper-pagination-bullet-active {
    background-color: #696cff !important;
}

/* Search form styling */
.search-form .form-control {
    border-radius: 0.375rem 0 0 0.375rem;
    border-right: none;
}

.search-form .btn {
    border-radius: 0 0.375rem 0.375rem 0;
    background-color: #696cff;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .blog-sidebar-col {
        margin-top: 2rem;
    }
    .hero-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .hero-image-container {
        height: 30vh;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .breadcrumb {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    .post-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    .post-navigation .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Theme-based Styling */
[data-theme="light"] .breadcrumb-container {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

[data-theme="light"] .breadcrumb-item,
[data-theme="light"] .breadcrumb-item.active {
    color: #343a40;
}

[data-theme="light"] .breadcrumb-item a {
    color: #696cff;
}

[data-theme="light"] .breadcrumb-item a:hover {
    color: #4b4ee4;
}

[data-theme="light"] .breadcrumb-item + .breadcrumb-item::before {
    color: #adb5bd;
}

[data-theme="light"] .breadcrumb-item i {
    color: #343a40;
}

[data-theme="light"] .card-header {
    background-color: #696cff;
    color: #fff;
}

[data-theme="light"] .badge.bg-primary {
    background-color: #696cff !important;
}

[data-theme="light"] .badge.bg-secondary {
    background-color: #8592a3 !important;
}

[data-theme="light"] .post-navigation .btn {
    border-color: #696cff;
    color: #696cff;
}

[data-theme="light"] .post-navigation .btn:hover {
    background-color: #696cff;
    color: #fff;
}

[data-theme="light"] .search-form .btn {
    background-color: #696cff;
}

[data-theme="light"] .swiper-button-next,
[data-theme="light"] .swiper-button-prev {
    color: #696cff !important;
    background-color: #fff;
}

[data-theme="light"] .swiper-pagination-bullet-active {
    background-color: #696cff !important;
}

[data-theme="dark"] .breadcrumb-container {
    background-color: #1a1a1a;
    border-bottom: 1px solid #333;
}

[data-theme="dark"] .breadcrumb-item,
[data-theme="dark"] .breadcrumb-item.active {
    color: #ffffff;
}

[data-theme="dark"] .breadcrumb-item a {
    color: #a3a7ff;
}

[data-theme="dark"] .breadcrumb-item a:hover {
    color: #c2c5ff;
}

[data-theme="dark"] .breadcrumb-item + .breadcrumb-item::before {
    color: #adb5bd;
}

[data-theme="dark"] .breadcrumb-item i {
    color: #ffffff;
}

[data-theme="dark"] .card-header {
    background-color: #4b4ee4;
    color: #fff;
}

[data-theme="dark"] .badge.bg-primary {
    background-color: #4b4ee4 !important;
}

[data-theme="dark"] .badge.bg-secondary {
    background-color: #6c757d !important;
}

[data-theme="dark"] .post-navigation .btn {
    border-color: #a3a7ff;
    color: #a3a7ff;
}

[data-theme="dark"] .post-navigation .btn:hover {
    background-color: #a3a7ff;
    color: #fff;
}

[data-theme="dark"] .search-form .btn {
    background-color: #4b4ee4;
}

[data-theme="dark"] .swiper-button-next,
[data-theme="dark"] .swiper-button-prev {
    color: #a3a7ff !important;
    background-color: #2d2d2d;
}

[data-theme="dark"] .swiper-pagination-bullet-active {
    background-color: #4b4ee4 !important;
}

@media (prefers-color-scheme: light) {
    [data-theme="system"] .breadcrumb-container {
        background-color: #f8f9fa;
        border-bottom: 1px solid #e0e0e0;
    }

    [data-theme="system"] .breadcrumb-item,
    [data-theme="system"] .breadcrumb-item.active {
        color: #343a40;
    }

    [data-theme="system"] .breadcrumb-item a {
        color: #696cff;
    }

    [data-theme="system"] .breadcrumb-item a:hover {
        color: #4b4ee4;
    }

    [data-theme="system"] .breadcrumb-item + .breadcrumb-item::before {
        color: #adb5bd;
    }

    [data-theme="system"] .breadcrumb-item i {
        color: #343a40;
    }

    [data-theme="system"] .card-header {
        background-color: #696cff;
        color: #fff;
    }

    [data-theme="system"] .badge.bg-primary {
        background-color: #696cff !important;
    }

    [data-theme="system"] .badge.bg-secondary {
        background-color: #8592a3 !important;
    }

    [data-theme="system"] .post-navigation .btn {
        border-color: #696cff;
        color: #696cff;
    }

    [data-theme="system"] .post-navigation .btn:hover {
        background-color: #696cff;
        color: #fff;
    }

    [data-theme="system"] .search-form .btn {
        background-color: #696cff;
    }

    [data-theme="system"] .swiper-button-next,
    [data-theme="system"] .swiper-button-prev {
        color: #696cff !important;
        background-color: #fff;
    }

    [data-theme="system"] .swiper-pagination-bullet-active {
        background-color: #696cff !important;
    }
}

@media (prefers-color-scheme: dark) {
    [data-theme="system"] .breadcrumb-container {
        background-color: #1a1a1a;
        border-bottom: 1px solid #333;
    }

    [data-theme="system"] .breadcrumb-item,
    [data-theme="system"] .breadcrumb-item.active {
        color: #ffffff;
    }

    [data-theme="system"] .breadcrumb-item a {
        color: #a3a7ff;
    }

    [data-theme="system"] .breadcrumb-item a:hover {
        color: #c2c5ff;
    }

    [data-theme="system"] .breadcrumb-item + .breadcrumb-item::before {
        color: #adb5bd;
    }

    [data-theme="system"] .breadcrumb-item i {
        color: #ffffff;
    }

    [data-theme="system"] .card-header {
        background-color: #4b4ee4;
        color: #fff;
    }

    [data-theme="system"] .badge.bg-primary {
        background-color: #4b4ee4 !important;
    }

    [data-theme="system"] .badge.bg-secondary {
        background-color: #6c757d !important;
    }

    [data-theme="system"] .post-navigation .btn {
        border-color: #a3a7ff;
        color: #a3a7ff;
    }

    [data-theme="system"] .post-navigation .btn:hover {
        background-color: #a3a7ff;
        color: #fff;
    }

    [data-theme="system"] .search-form .btn {
        background-color: #4b4ee4;
    }

    [data-theme="system"] .swiper-button-next,
    [data-theme="system"] .swiper-button-prev {
        color: #a3a7ff !important;
        background-color: #2d2d2d;
    }

    [data-theme="system"] .swiper-pagination-bullet-active {
        background-color: #4b4ee4 !important;
    }
}