/* ============================================================
   BLOG PAGE STYLES — Sky Planet Holidays
   ============================================================ */

/* ---- HERO BANNER ---- */
.blog-hero {
    position: relative;
    width: 100%;
    height: 380px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../skypic/slider/blogslider.jpeg') center/cover no-repeat;
    opacity: 0.35;
    transition: transform 8s ease;
}

.blog-hero:hover::before {
    transform: scale(1.04);
}

.blog-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 0 20px;
}

.blog-hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    letter-spacing: 1px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    margin-bottom: 14px;
}

.blog-hero-content h1 span {
    color: #f5c400;
}

.blog-hero-content p {
    font-size: 1.05rem;
    opacity: 0.9;
    max-width: 560px;
    margin: 0 auto 24px;
    line-height: 1.7;
}

/* Breadcrumb */
.blog-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 40px;
    padding: 7px 20px;
    font-size: 0.85rem;
    color: #fff;
}

.blog-breadcrumb a {
    color: #f5c400;
    text-decoration: none;
}

.blog-breadcrumb a:hover {
    text-decoration: underline;
}

/* ---- SEARCH BAR ---- */
.blog-search-section {
    background: #f8f9fa;
    padding: 28px 20px;
    border-bottom: 1px solid #e9ecef;
}

.blog-search-inner {
    max-width: 620px;
    margin: 0 auto;
    position: relative;
}

.blog-search-inner input {
    width: 100%;
    padding: 14px 56px 14px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.blog-search-inner input:focus {
    border-color: #f44336;
    box-shadow: 0 2px 16px rgba(244, 67, 54, 0.15);
}

.blog-search-inner button {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: #f44336;
    border: none;
    color: #fff;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s, transform 0.2s;
}

.blog-search-inner button:hover {
    background: #c62828;
    transform: translateY(-50%) scale(1.08);
}

/* ---- CATEGORY PILLS ---- */
.blog-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 24px 20px 10px;
}

.cat-pill {
    padding: 7px 20px;
    border-radius: 30px;
    border: 2px solid #e0e0e0;
    background: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    color: #444;
    cursor: pointer;
    transition: all 0.25s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cat-pill:hover,
.cat-pill.active {
    background: #f44336;
    border-color: #f44336;
    color: #fff;
    box-shadow: 0 4px 14px rgba(244, 67, 54, 0.3);
    transform: translateY(-2px);
}

/* ---- MAIN LAYOUT ---- */
.blog-main {
    padding: 50px 0 70px;
    background: #f8f9fa;
}

/* ---- FEATURED POST ---- */
.blog-featured {
    padding: 0 0 50px;
}

.featured-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    transition: transform 0.35s, box-shadow 0.35s;
    cursor: pointer;
}

.featured-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.featured-card .fc-image {
    position: relative;
    overflow: hidden;
    height: 380px;
}

.featured-card .fc-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.featured-card:hover .fc-image img {
    transform: scale(1.06);
}

.featured-card .fc-badge {
    position: absolute;
    top: 18px;
    left: 18px;
    background: #f44336;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.featured-card .fc-body {
    padding: 28px 32px 32px;
}

.fc-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.82rem;
    color: #888;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.fc-meta i {
    color: #f44336;
}

.fc-body h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 14px;
    line-height: 1.35;
}

.fc-body p {
    color: #555;
    font-size: 0.97rem;
    line-height: 1.75;
    margin-bottom: 24px;
}

.blog-read-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #f44336, #c62828);
    color: #fff;
    padding: 12px 28px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    transition: transform 0.25s, box-shadow 0.25s;
    border: none;
    cursor: pointer;
}

.blog-read-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(244, 67, 54, 0.4);
    color: #fff;
    text-decoration: none;
}

.blog-read-btn i {
    transition: transform 0.25s;
}

.blog-read-btn:hover i {
    transform: translateX(4px);
}

/* ---- BLOG GRID ---- */
.blog-section-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.blog-section-title::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(to right, #f44336, transparent);
    border-radius: 2px;
}

/* BLOG CARD */
.blog-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: pointer;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.13);
}

.blog-card-img {
    position: relative;
    overflow: hidden;
    height: 210px;
}

.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-img img {
    transform: scale(1.07);
}

.blog-card-category {
    position: absolute;
    top: 14px;
    left: 14px;
    background: #f5c400;
    color: #1a1a2e;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.blog-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.78rem;
    color: #999;
    margin-bottom: 10px;
}

.blog-card-meta i {
    color: #f44336;
    font-size: 0.8rem;
}

.blog-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.45;
    margin-bottom: 10px;
    flex: 1;
}

.blog-card-excerpt {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.65;
    margin-bottom: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid #f0f0f0;
}

.blog-card-author {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: #555;
    font-weight: 600;
}

.blog-card-author img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

.blog-card-link {
    font-size: 0.8rem;
    font-weight: 700;
    color: #f44336;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.2s;
}

.blog-card-link:hover {
    color: #c62828;
    text-decoration: none;
    gap: 8px;
}

/* ---- SIDEBAR ---- */
.blog-sidebar {
    position: sticky;
    top: 90px;
}

/* Sidebar Widget */
.sidebar-widget {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 28px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
}

.sidebar-widget-title {
    font-size: 1rem;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f44336;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-widget-title i {
    color: #f44336;
}

/* Recent Posts */
.recent-post-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
    cursor: pointer;
}

.recent-post-item:last-child {
    border-bottom: none;
}

.recent-post-item:hover {
    background: #fff8f8;
    border-radius: 10px;
    padding-left: 6px;
}

.rp-img {
    width: 68px;
    height: 58px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.rp-info h6 {
    font-size: 0.82rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 4px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rp-info span {
    font-size: 0.73rem;
    color: #aaa;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Category list */
.sidebar-cat-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-cat-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.88rem;
    color: #444;
    cursor: pointer;
    transition: color 0.25s, padding-left 0.25s;
}

.sidebar-cat-list li:last-child {
    border-bottom: none;
}

.sidebar-cat-list li:hover {
    color: #f44336;
    padding-left: 6px;
}

.sidebar-cat-list .cat-count {
    background: #f8f8f8;
    border-radius: 20px;
    padding: 2px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #888;
}

/* Tags */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-item {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    color: #555;
    font-size: 0.78rem;
    padding: 5px 14px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.25s;
}

.tag-item:hover {
    background: #f44336;
    border-color: #f44336;
    color: #fff;
}

/* Newsletter box */
.newsletter-widget {
    background: linear-gradient(135deg, #1a1a2e, #0f3460);
    color: #fff;
    border-radius: 16px;
    padding: 26px 22px;
    margin-bottom: 28px;
    text-align: center;
}

.newsletter-widget i {
    font-size: 2rem;
    color: #f5c400;
    margin-bottom: 10px;
    display: block;
}

.newsletter-widget h5 {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.newsletter-widget p {
    font-size: 0.82rem;
    opacity: 0.8;
    margin-bottom: 16px;
    line-height: 1.6;
}

.newsletter-widget input {
    width: 100%;
    padding: 10px 16px;
    border-radius: 30px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 0.85rem;
    outline: none;
    margin-bottom: 10px;
    transition: border-color 0.3s;
}

.newsletter-widget input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-widget input:focus {
    border-color: #f5c400;
}

.newsletter-widget button {
    width: 100%;
    padding: 10px;
    border-radius: 30px;
    border: none;
    background: linear-gradient(135deg, #f44336, #c62828);
    color: #fff;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.newsletter-widget button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 67, 54, 0.4);
}

/* ---- PAGINATION ---- */
.blog-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 50px;
}

.blog-pagination .page-item .page-link {
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    color: #444;
    padding: 9px 16px;
    font-weight: 600;
    font-size: 0.88rem;
    transition: all 0.25s;
}

.blog-pagination .page-item.active .page-link,
.blog-pagination .page-item .page-link:hover {
    background: #f44336;
    border-color: #f44336;
    color: #fff;
    box-shadow: 0 4px 14px rgba(244, 67, 54, 0.3);
}

/* ---- DIVIDER ---- */
.gradient-divider {
    height: 4px;
    background: linear-gradient(90deg, #f44336, #f5c400, #f44336);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 991px) {
    .blog-hero {
        height: 280px;
    }

    .featured-card .fc-image {
        height: 260px;
    }

    .fc-body h2 {
        font-size: 1.35rem;
    }
}

@media (max-width: 576px) {
    .blog-hero {
        height: 240px;
    }

    .blog-hero-content h1 {
        font-size: 1.7rem;
    }

    .featured-card .fc-body {
        padding: 20px;
    }

    .fc-body h2 {
        font-size: 1.15rem;
    }

    .blog-categories {
        gap: 7px;
    }

    .cat-pill {
        font-size: 0.75rem;
        padding: 5px 14px;
    }
}