/* ==================== BLOG HERO ==================== */
.blog-hero {
    background: linear-gradient(135deg, var(--primary) 0%, #0d1b33 100%);
    padding: 60px 0 50px;
    text-align: center;
}
.blog-hero h1 {
    color: #fff;
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 10px;
}
.blog-hero-sub {
    color: rgba(255,255,255,0.6);
    font-size: 1.1rem;
    margin-bottom: 30px;
}
.blog-breadcrumb ol {
    display: flex;
    justify-content: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}
.blog-breadcrumb li { color: rgba(255,255,255,0.4); font-size: 0.85rem; }
.blog-breadcrumb li::after { content: '/'; margin-left: 8px; }
.blog-breadcrumb li:last-child::after { display: none; }
.blog-breadcrumb li.active { color: var(--teal-light); }
.blog-breadcrumb a { color: rgba(255,255,255,0.6); text-decoration: none; }
.blog-breadcrumb a:hover { color: var(--teal-light); }

/* Search */
.blog-search-form { max-width: 550px; margin: 0 auto; }
.blog-search-box {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.15);
    border-radius: 50px;
    padding: 5px 5px 5px 20px;
    transition: 0.3s;
}
.blog-search-box:focus-within {
    border-color: var(--teal);
    background: rgba(255,255,255,0.15);
}
.blog-search-box i { color: rgba(255,255,255,0.5); font-size: 1.1rem; }
.blog-search-box input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    padding: 10px 12px;
    font-size: 0.95rem;
}
.blog-search-box input::placeholder { color: rgba(255,255,255,0.4); }
.blog-search-box button {
    background: var(--teal);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}
.blog-search-box button:hover { background: var(--teal-light); }

/* ==================== CATEGORY BAR ==================== */
.blog-categories-bar {
    background: var(--primary);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 16px 0;
}
.category-pills {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
}
.category-pills::-webkit-scrollbar { height: 0; }
.cat-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 50px;
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    border: 1px solid transparent;
    transition: 0.3s;
}
.cat-pill:hover, .cat-pill.active {
    background: var(--teal);
    color: #fff;
    border-color: var(--teal);
}
.cat-count {
    background: rgba(255,255,255,0.15);
    padding: 1px 8px;
    border-radius: 50px;
    font-size: 0.75rem;
}

/* ==================== FEATURED GRID ==================== */
.section-label { text-align: center; margin-bottom: 25px; }
.section-label span {
    background: rgba(0,188,212,0.12);
    color: var(--teal);
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.featured-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 20px;
    min-height: 420px;
}
.featured-main, .featured-side-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    display: block;
    text-decoration: none;
}
.featured-main { grid-row: span 1; }
.featured-side { display: flex; flex-direction: column; gap: 20px; }
.featured-side-card { flex: 1; }
.featured-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-color: #1a2a4a;
    transition: transform 0.5s;
}
.featured-main:hover .featured-img,
.featured-side-card:hover .featured-img { transform: scale(1.05); }
.featured-overlay {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    background: linear-gradient(transparent 20%, rgba(0,0,0,0.85) 100%);
}
.featured-cat {
    display: inline-block;
    background: var(--teal);
    color: #fff;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 10px;
    width: fit-content;
}
.featured-overlay h2,
.featured-overlay h3 { color: #fff; font-weight: 700; margin-bottom: 8px; }
.featured-overlay h2 { font-size: 1.5rem; }
.featured-overlay h3 { font-size: 1rem; }
.featured-overlay p { color: rgba(255,255,255,0.7); font-size: 0.9rem; margin-bottom: 10px; }
.featured-meta { color: rgba(255,255,255,0.5); font-size: 0.8rem; display: flex; gap: 15px; }

/* ==================== BLOG CARD GRID ==================== */
.blog-card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}
.blog-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: 0.3s;
    border: 1px solid #eef1f5;
}
.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.1);
}
.blog-card-img {
    display: block;
    position: relative;
    height: 200px;
    overflow: hidden;
}
.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.blog-card:hover .blog-card-img img { transform: scale(1.08); }
.blog-card-cat {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--teal);
    color: #fff;
    padding: 3px 12px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 600;
}
.blog-card-body { padding: 20px; }
.blog-card-meta {
    display: flex;
    gap: 12px;
    font-size: 0.78rem;
    color: #8094ae;
    margin-bottom: 10px;
}
.blog-card-meta i { margin-right: 3px; }
.blog-card-body h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; line-height: 1.4; }
.blog-card-body h3 a { color: var(--dark); text-decoration: none; }
.blog-card-body h3 a:hover { color: var(--teal); }
.blog-card-body p { color: #6b7c93; font-size: 0.88rem; line-height: 1.6; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-read-more {
    color: var(--teal);
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
}
.blog-read-more:hover { color: var(--primary); }

/* ==================== PAGINATION ==================== */
.blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
}
.page-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 10px 16px;
    border-radius: 10px;
    background: #fff;
    color: var(--dark);
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    transition: 0.3s;
}
.page-btn:hover, .page-btn.active {
    background: var(--teal);
    color: #fff;
    border-color: var(--teal);
}
.page-dots { padding: 10px 5px; color: #aaa; }

/* Empty state */
.blog-empty {
    text-align: center;
    padding: 60px 20px;
    color: #8094ae;
}
.blog-empty i { font-size: 3rem; margin-bottom: 15px; display: block; }
.blog-empty h3 { color: var(--dark); margin-bottom: 8px; }

/* Search results */
.search-results-info h2 { font-size: 1.3rem; color: var(--dark); }
.search-results-info p { color: #8094ae; }

/* ==================== SIDEBAR ==================== */
.blog-sidebar { display: flex; flex-direction: column; gap: 25px; }
.sidebar-widget {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border: 1px solid #eef1f5;
}
.sidebar-widget h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f3f7;
}
.sidebar-cat-list { list-style: none; padding: 0; margin: 0; }
.sidebar-cat-list li { margin-bottom: 2px; }
.sidebar-cat-list li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    color: #4a5568;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: 0.2s;
}
.sidebar-cat-list li a span {
    margin-left: auto;
    background: #f0f3f7;
    padding: 2px 10px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #8094ae;
}
.sidebar-cat-list li a:hover,
.sidebar-cat-list li.active a {
    background: rgba(0,151,167,0.08);
    color: var(--teal);
}
.sidebar-cat-list li a:hover span,
.sidebar-cat-list li.active a span {
    background: var(--teal);
    color: #fff;
}

/* Sidebar post cards */
.sidebar-post-card {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    text-decoration: none;
    border-bottom: 1px solid #f0f3f7;
}
.sidebar-post-card:last-child { border-bottom: none; }
.sidebar-post-card img {
    width: 70px;
    height: 55px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
}
.sidebar-post-card h5 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 4px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.sidebar-post-card:hover h5 { color: var(--teal); }
.sidebar-post-card span { font-size: 0.75rem; color: #8094ae; }

/* CTA Widget */
.sidebar-cta {
    background: linear-gradient(135deg, var(--primary), #0d1b33) !important;
    text-align: center;
    border: none !important;
}
.sidebar-cta i { font-size: 2.5rem; color: var(--teal-light); margin-bottom: 10px; display: block; }
.sidebar-cta h4 { color: #fff !important; border-bottom: none !important; margin-bottom: 8px !important; padding-bottom: 0 !important; }
.sidebar-cta p { color: rgba(255,255,255,0.6); font-size: 0.88rem; margin-bottom: 18px; }
.sidebar-cta-btn {
    display: inline-block;
    background: var(--orange);
    color: #fff;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s;
}
.sidebar-cta-btn:hover { background: #d35400; color: #fff; transform: scale(1.03); }

/* Newsletter */
.sidebar-newsletter { text-align: center; background: #f8fafc !important; }
.sidebar-newsletter i { font-size: 2rem; color: var(--teal); display: block; margin-bottom: 8px; }
.sidebar-newsletter h4 { border-bottom: none !important; margin-bottom: 6px !important; padding-bottom: 0 !important; }
.sidebar-newsletter p { color: #6b7c93; font-size: 0.85rem; margin-bottom: 15px; }
.sidebar-newsletter input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    outline: none;
    transition: 0.3s;
}
.sidebar-newsletter input:focus { border-color: var(--teal); }
.sidebar-newsletter button {
    width: 100%;
    background: var(--teal);
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}
.sidebar-newsletter button:hover { background: #00838f; }

/* ==================== BLOG DETAIL ==================== */
.blog-detail-hero {
    background: linear-gradient(135deg, var(--primary) 0%, #0d1b33 100%);
    padding: 50px 0 40px;
}
.detail-hero-content { max-width: 750px; }
.detail-cat-badge {
    display: inline-block;
    background: var(--teal);
    color: #fff;
    padding: 5px 16px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 15px;
}
.blog-detail-hero h1 { color: #fff; font-size: 2rem; font-weight: 800; line-height: 1.3; margin-bottom: 15px; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 18px; color: rgba(255,255,255,0.5); font-size: 0.85rem; }
.detail-meta i { margin-right: 4px; color: var(--teal-light); }

/* Reading Progress */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--teal), var(--teal-light));
    z-index: 9999;
    transition: width 0.1s;
}

/* Article */
.blog-article { background: #fff; border-radius: 16px; padding: 35px; box-shadow: 0 4px 20px rgba(0,0,0,0.05); border: 1px solid #eef1f5; }
.article-featured-img { margin: -35px -35px 30px; border-radius: 16px 16px 0 0; overflow: hidden; }
.article-featured-img img { width: 100%; max-height: 450px; object-fit: cover; }

/* Table of Contents */
.article-toc {
    background: #f8fafc;
    border: 2px solid #e8ecf1;
    border-radius: 12px;
    padding: 22px 25px;
    margin-bottom: 30px;
}
.article-toc h4 { font-size: 0.95rem; font-weight: 700; color: var(--dark); margin-bottom: 12px; }
.article-toc ol { padding-left: 20px; margin: 0; }
.article-toc li { margin-bottom: 6px; }
.article-toc a { color: var(--teal); text-decoration: none; font-size: 0.9rem; font-weight: 500; }
.article-toc a:hover { text-decoration: underline; }

/* Article Content */
.article-content { font-size: 1.05rem; line-height: 1.85; color: #374151; }
.article-content h2 { font-size: 1.5rem; font-weight: 700; color: var(--dark); margin: 35px 0 15px; padding-top: 10px; }
.article-content h3 { font-size: 1.2rem; font-weight: 700; color: var(--dark); margin: 25px 0 12px; }
.article-content p { margin-bottom: 18px; }
.article-content ul, .article-content ol { margin-bottom: 18px; padding-left: 25px; }
.article-content li { margin-bottom: 8px; }
.article-content strong { color: var(--dark); }
.article-content a { color: var(--teal); font-weight: 500; }
.article-content table { width: 100%; border-collapse: collapse; margin: 20px 0; border-radius: 10px; overflow: hidden; }
.article-content th { background: var(--primary); color: #fff; padding: 12px 16px; text-align: left; font-size: 0.9rem; }
.article-content td { padding: 12px 16px; border-bottom: 1px solid #e8ecf1; font-size: 0.9rem; }
.article-content tr:nth-child(even) { background: #f8fafc; }

/* Tags */
.article-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 30px 0; padding-top: 20px; border-top: 1px solid #e8ecf1; }
.article-tags > span { font-weight: 600; color: var(--dark); font-size: 0.9rem; }
.tag-pill {
    background: #f0f3f7;
    color: #4a5568;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    text-decoration: none;
    font-weight: 500;
    transition: 0.2s;
}
.tag-pill:hover { background: var(--teal); color: #fff; }

/* Share */
.article-share {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}
.article-share > span { font-weight: 600; color: var(--dark); font-size: 0.9rem; }
.share-btns { display: flex; gap: 8px; }
.share-btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: #fff;
    font-size: 1.1rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}
.share-btn:hover { transform: scale(1.1); color: #fff; }
.share-btn.whatsapp { background: #25d366; }
.share-btn.facebook { background: #1877f2; }
.share-btn.twitter { background: #1a1a1a; }
.share-btn.linkedin { background: #0077b5; }
.share-btn.copy { background: #6b7c93; }

/* Author Box */
.author-box {
    display: flex;
    gap: 20px;
    align-items: center;
    background: #f8fafc;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 30px;
    border: 1px solid #e8ecf1;
}
.author-avatar img { width: 80px; height: 80px; border-radius: 50%; }
.author-info h4 { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 6px; }
.author-info p { color: #6b7c93; font-size: 0.88rem; margin: 0; line-height: 1.6; }

/* Article CTA Box */
.article-cta-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: linear-gradient(135deg, var(--primary), #1e3a5f);
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 30px;
}
.article-cta-box h4 { color: #fff; font-size: 1.1rem; margin-bottom: 6px; }
.article-cta-box p { color: rgba(255,255,255,0.6); font-size: 0.88rem; margin: 0; }
.article-cta-btns { display: flex; gap: 10px; flex-shrink: 0; }
.cta-call, .cta-book {
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    transition: 0.3s;
}
.cta-call { background: var(--orange); color: #fff; }
.cta-call:hover { background: #d35400; color: #fff; }
.cta-book { background: var(--teal); color: #fff; }
.cta-book:hover { background: #00838f; color: #fff; }

/* Comments */
.comments-section { margin-top: 30px; }
.comments-section h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 20px; }
.comment-item {
    display: flex;
    gap: 15px;
    padding: 18px 0;
    border-bottom: 1px solid #f0f3f7;
}
.comment-item img { width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0; }
.comment-item strong { font-size: 0.95rem; color: var(--dark); }
.comment-date { font-size: 0.78rem; color: #8094ae; margin-left: 10px; }
.comment-item p { color: #4a5568; font-size: 0.9rem; margin: 6px 0 0; }
.comment-form-box { margin-top: 25px; padding-top: 25px; border-top: 1px solid #e8ecf1; }
.comment-form-box h4 { margin-bottom: 15px; font-size: 1rem; }

/* Related Posts */
.related-posts-section { margin-top: 40px; }
.related-posts-section h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 20px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.related-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    border: 1px solid #eef1f5;
    transition: 0.3s;
}
.related-card:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.related-card img { width: 100%; height: 140px; object-fit: cover; }
.related-card-body { padding: 16px; }
.related-cat { font-size: 0.72rem; font-weight: 600; color: var(--teal); text-transform: uppercase; letter-spacing: 0.5px; }
.related-card h4 { font-size: 0.9rem; font-weight: 700; color: var(--dark); margin: 6px 0 8px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.related-meta { font-size: 0.75rem; color: #8094ae; }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1199px) {
    .featured-grid { min-height: 350px; }
}
@media (max-width: 991px) {
    .featured-grid { grid-template-columns: 1fr; min-height: auto; }
    .featured-main { min-height: 300px; }
    .featured-side { flex-direction: row; }
    .featured-side-card { min-height: 200px; }
    .blog-card-grid { grid-template-columns: repeat(2, 1fr); }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
    .article-cta-box { flex-direction: column; text-align: center; }
}
@media (max-width: 768px) {
    .blog-hero h1 { font-size: 1.8rem; }
    .blog-detail-hero h1 { font-size: 1.5rem; }
    .blog-card-grid { grid-template-columns: 1fr; }
    .featured-side { flex-direction: column; }
    .featured-side-card { min-height: 180px; }
    .blog-article { padding: 20px; }
    .article-featured-img { margin: -20px -20px 20px; }
    .related-grid { grid-template-columns: 1fr; }
    .article-share { flex-direction: column; align-items: flex-start; }
    .author-box { flex-direction: column; text-align: center; }
    .detail-meta { justify-content: center; }
}
@media (max-width: 576px) {
    .blog-hero { padding: 40px 0 35px; }
    .blog-hero h1 { font-size: 1.5rem; }
    .article-cta-btns { flex-direction: column; width: 100%; }
    .cta-call, .cta-book { text-align: center; }
}
