/* ================================================================
   BLOG & ARTICLES PAGE STYLING (WITH SIDEBAR LAYOUT)
   ================================================================ */

.blog-layout-grid {
    display: grid;
    grid-template-columns: 2.1fr 0.9fr;
    gap: 45px;
    align-items: start;
}

/* Filter Status Bar */
.blog-filter-status {
    background: #ffffff;
    border: 1.5px solid var(--border-gold-bright);
    border-radius: 16px;
    padding: 14px 22px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.95rem;
    color: #4a382c;
    box-shadow: 0 4px 15px rgba(71, 37, 13, 0.05);
}

.blog-filter-status strong {
    color: #1a0b04;
}

/* Blog Cards Grid */
.blog-cards-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.blog-card {
    background: #ffffff;
    border: 1.5px solid var(--border-gold);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(71, 37, 13, 0.06);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-6px);
    border-color: #c28213;
    box-shadow: 0 16px 35px rgba(71, 37, 13, 0.12);
}

.blog-card-img-wrap {
    position: relative;
    height: 300px;
    overflow: hidden;
    background: #fdfaf5;
}

.blog-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-card:hover .blog-card-img-wrap img {
    transform: scale(1.06);
}

.blog-cat-badge {
    position: absolute;
    top: 18px;
    left: 18px;
    background: var(--primary-gradient);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 6px 16px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(194, 130, 19, 0.35);
    z-index: 2;
}

.blog-card-body {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-meta-row {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 0.84rem;
    color: #8c7263;
    margin-bottom: 12px;
}

.blog-meta-row span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.blog-meta-row i {
    color: #c28213;
}

.blog-card-title {
    font-family: var(--font-heading);
    font-size: clamp(1.35rem, 2.2vw, 1.65rem);
    font-weight: 800;
    color: #1a0b04;
    line-height: 1.3;
    margin-bottom: 14px;
    transition: color 0.2s ease;
}

.blog-card:hover .blog-card-title {
    color: #c28213;
}

.blog-card-excerpt {
    font-size: 0.98rem;
    color: #5c4538;
    line-height: 1.7;
    margin-bottom: 20px;
    flex-grow: 1;
}

.blog-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.blog-tag {
    background: #fff6e5;
    color: #8c5607;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 12px;
    border: 1px solid rgba(194, 130, 19, 0.2);
}

.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 18px;
    border-top: 1px solid #f0e4d8;
    flex-wrap: wrap;
    gap: 15px;
}

.blog-author-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    font-weight: 700;
    color: #1a0b04;
}

.blog-author-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #fff3dc;
    border: 1px solid var(--border-gold-bright);
    color: #c28213;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

/* ================= Sidebar Styling ================= */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 28px;
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: #ffffff;
    border: 1.5px solid var(--border-gold);
    border-radius: 22px;
    padding: 26px;
    box-shadow: 0 6px 20px rgba(71, 37, 13, 0.05);
}

.widget-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #1a0b04;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid #fff3dc;
    display: flex;
    align-items: center;
    gap: 10px;
}

.widget-title i {
    color: #c28213;
}

/* Search Form */
.sidebar-search-form {
    display: flex;
    gap: 8px;
}

.sidebar-search-form .form-control {
    padding: 10px 16px;
    font-size: 0.9rem;
    border-radius: 30px;
}

.sidebar-search-form .btn {
    border-radius: 50%;
    width: 44px;
    height: 44px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Category List */
.sidebar-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-category-list li {
    margin-bottom: 8px;
}

.sidebar-category-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: 12px;
    color: #5c4538;
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    transition: var(--transition-fast);
}

.sidebar-category-list a:hover,
.sidebar-category-list a.active {
    background: #fff6e5;
    color: #c28213;
    font-weight: 700;
    transform: translateX(4px);
}

.sidebar-category-list a i {
    font-size: 0.75rem;
    margin-right: 6px;
}

.cat-count {
    background: #ebdacf;
    color: #1a0b04;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 12px;
}

.sidebar-category-list a.active .cat-count,
.sidebar-category-list a:hover .cat-count {
    background: #c28213;
    color: #ffffff;
}

/* Trending Posts */
.trending-posts-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.trending-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.trending-item img {
    width: 65px;
    height: 65px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid #ebdacf;
}

.trend-date {
    font-size: 0.75rem;
    color: #8c7263;
    display: block;
    margin-bottom: 2px;
}

.trend-title {
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
}

.trend-title a {
    color: #1a0b04;
    text-decoration: none;
    transition: color 0.2s ease;
}

.trend-title a:hover {
    color: #c28213;
}

/* Franchise Promo Widget */
.franchise-promo-widget {
    background: linear-gradient(135deg, #261309 0%, #150802 100%);
    border: 1.5px solid var(--border-gold-bright);
    color: #ffffff;
    text-align: center;
}

.franchise-promo-widget .promo-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: #ffffff;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}

.franchise-promo-widget h4 {
    color: #ffffff;
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.franchise-promo-widget p {
    color: #d1b8a5;
    font-size: 0.84rem;
    line-height: 1.5;
    margin-bottom: 16px;
}

.promo-hotline {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: #f7ce68;
    margin-bottom: 16px;
}

/* Tag Cloud */
.sidebar-tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-pill {
    background: #faf6f0;
    color: #5c4538;
    border: 1px solid #e0d1c1;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    text-decoration: none;
    transition: var(--transition-fast);
}

.tag-pill:hover {
    background: #c28213;
    border-color: #c28213;
    color: #ffffff;
    transform: translateY(-2px);
}

/* ================= Article Reader Modal ================= */
.blog-article-modal {
    max-width: 780px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 35px 40px;
}

.modal-article-header {
    margin-bottom: 15px;
}

.modal-article-meta {
    display: inline-flex;
    gap: 15px;
    font-size: 0.84rem;
    color: #8c7263;
    margin-left: 12px;
}

/* ================= Single Article Typography & Links ================= */
.single-article-card {
    background: #ffffff;
    border: 1.5px solid var(--border-gold);
    box-shadow: 0 10px 30px rgba(71, 37, 13, 0.06);
}

.single-article-content h3 {
    color: #1a0b04;
    font-size: 1.45rem;
    margin: 28px 0 14px;
    line-height: 1.35;
    position: relative;
    padding-left: 14px;
    border-left: 4px solid #c28213;
}

.single-article-content p {
    margin-bottom: 18px;
    color: #4a382c;
    font-size: 1.08rem;
    line-height: 1.85;
}

.single-article-content ul {
    margin: 15px 0 24px 20px;
    list-style-type: none;
    padding: 0;
}

.single-article-content ul li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 12px;
    color: #4a382c;
    font-size: 1.05rem;
    line-height: 1.7;
}

.single-article-content ul li::before {
    content: "🍧";
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 0.95rem;
}

.single-article-content a {
    color: #a46b0a;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: rgba(194, 130, 19, 0.4);
    text-underline-offset: 3px;
    transition: all 0.25s ease;
}

.single-article-content a:hover {
    color: #c28213;
    text-decoration-color: #c28213;
    background: rgba(194, 130, 19, 0.08);
    padding: 1px 4px;
    border-radius: 4px;
}

.prev-post-link:hover, .next-post-link:hover {
    border-color: #c28213 !important;
    background: #fffbf2 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(194, 130, 19, 0.12);
}

@media (max-width: 991px) {
    .blog-layout-grid {
        grid-template-columns: 1fr;
    }
    .blog-sidebar {
        position: static;
        margin-top: 20px;
    }
}

@media (max-width: 600px) {
    .post-navigation-row {
        grid-template-columns: 1fr !important;
    }
    .single-article-card {
        padding: 22px 18px !important;
    }
}

/* ================================================================
   HOME PAGE BLOG CAROUSEL STYLING
   ================================================================ */

.blog-carousel-section {
    background: var(--bg-page);
    position: relative;
    overflow: hidden;
}

.blog-carousel-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 48px;
}

.blog-carousel-viewport {
    overflow: hidden;
    width: 100%;
    padding: 15px 5px 25px;
}

.blog-carousel-track {
    display: flex;
    transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

.blog-carousel-slide {
    flex: 0 0 33.3333%;
    max-width: 33.3333%;
    padding: 0 12px;
    box-sizing: border-box;
}

.home-blog-card {
    background: #ffffff;
    border: 1.5px solid var(--border-gold);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(71, 37, 13, 0.06);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.home-blog-card:hover {
    transform: translateY(-8px);
    border-color: #c28213;
    box-shadow: 0 18px 40px rgba(71, 37, 13, 0.14);
}

.home-blog-img-wrap {
    height: 210px;
    position: relative;
    overflow: hidden;
    background: #fdfaf5;
    display: block;
    text-decoration: none;
}

.home-blog-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.home-blog-card:hover .home-blog-img-wrap img {
    transform: scale(1.08);
}

.home-blog-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--primary-gradient);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 4px 12px;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(194, 130, 19, 0.3);
    z-index: 2;
}

.home-blog-body {
    padding: 24px 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.home-blog-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.8rem;
    color: #8c7365;
    margin-bottom: 10px;
}

.home-blog-title {
    font-size: 1.15rem;
    color: #1a0b04;
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 10px;
    transition: color 0.25s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-blog-title a {
    color: inherit;
    text-decoration: none;
}

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

.home-blog-excerpt {
    font-size: 0.88rem;
    color: #6b5548;
    line-height: 1.55;
    margin-bottom: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-blog-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px dashed rgba(194, 130, 19, 0.25);
}

.home-blog-author {
    font-size: 0.8rem;
    font-weight: 700;
    color: #1a0b04;
    display: flex;
    align-items: center;
    gap: 6px;
}

.home-blog-link {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: transform 0.25s ease;
}

.home-blog-link:hover {
    transform: translateX(4px);
    color: var(--primary-dark);
}

/* Nav buttons & dots */
.blog-carousel-nav {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #ffffff;
    border: 1.5px solid var(--border-gold);
    color: #1a0b04;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.blog-carousel-nav:hover {
    background: #c28213;
    border-color: #c28213;
    color: #ffffff;
    transform: translateY(-50%) scale(1.08);
}

.blog-prev { left: 0; }
.blog-next { right: 0; }

.blog-carousel-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.blog-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d4c7b8;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.blog-carousel-dot.active {
    width: 28px;
    border-radius: 12px;
    background: #c28213;
}

/* Responsive Blog Carousel */
@media (max-width: 1024px) {
    .blog-carousel-slide {
        flex: 0 0 50%;
        max-width: 50%;
    }
    .blog-carousel-wrapper {
        padding: 10px 42px;
    }
}

@media (max-width: 768px) {
    .blog-carousel-slide {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .blog-carousel-wrapper {
        padding: 10px 0;
    }
    .blog-carousel-nav {
        display: none;
    }
}
