/* ═══════════════════════════════════════════════════════════════════════════
   Malaysia eVisa — Blog CSS
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
    --blog-brand:    #000066;
    --blog-brand2:   #000099;
    --blog-red:      #d82727;
    --blog-dark:     #010B2C;
    --blog-dark2:    #0d1f5c;
    --blog-text:     #1e293b;
    --blog-muted:    #64748b;
    --blog-light:    #f8f9ff;
    --blog-border:   #e4e9f2;
    --blog-radius:   12px;
    --blog-shadow:   0 2px 12px rgba(1,11,44,.08);
    --blog-shadow-h: 0 8px 28px rgba(1,11,44,.14);
}

/* ── Hero ───────────────────────────────────────────────────────────────── */
.blog-hero {
    background: linear-gradient(135deg, var(--blog-dark) 0%, var(--blog-dark2) 100%);
    padding: 72px 0 60px;
    position: relative;
    overflow: hidden;
}
.blog-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
.blog-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.15);
    color: rgba(255,255,255,.8);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 18px;
}
.blog-hero-eyebrow::before {
    content: '';
    width: 6px; height: 6px;
    background: var(--blog-red);
    border-radius: 50%;
}
.blog-hero-title {
    font-size: clamp(1.8rem, 4vw, 2.75rem);
    font-weight: 800;
    color: #fff;
    margin: 0 0 14px;
    line-height: 1.2;
    letter-spacing: -.01em;
}
.blog-hero-sub {
    font-size: 1rem;
    color: rgba(255,255,255,.65);
    max-width: 540px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ── Category filter bar ─────────────────────────────────────────────────── */
.cat-bar {
    background: #fff;
    border-bottom: 1px solid var(--blog-border);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 8px rgba(1,11,44,.06);
}
.cat-scroll {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    padding: 12px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.cat-scroll::-webkit-scrollbar { display: none; }
.cat-pill {
    display: inline-block;
    white-space: nowrap;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--blog-muted);
    background: var(--blog-light);
    border: 1.5px solid var(--blog-border);
    text-decoration: none;
    transition: all .15s;
    flex-shrink: 0;
}
.cat-pill:hover { color: var(--blog-brand); border-color: #c5cff7; background: #eef2ff; text-decoration: none; }
.cat-pill.active { background: var(--blog-brand); color: #fff; border-color: var(--blog-brand); }

/* ── Blog listing section ────────────────────────────────────────────────── */
.blog-section { padding: 52px 0 64px; background: var(--blog-light); }

.section-label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--blog-muted);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--blog-border);
}

/* Category badge (used in cards) */
.cat-badge {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--blog-brand);
    background: #eef2ff;
    border: 1px solid #c5cff7;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
}

/* ── Featured card ───────────────────────────────────────────────────────── */
.featured-card {
    display: block;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--blog-shadow);
    text-decoration: none;
    transition: box-shadow .2s, transform .2s;
}
.featured-card:hover { box-shadow: var(--blog-shadow-h); transform: translateY(-2px); text-decoration: none; }
.featured-img-wrap {
    height: 100%;
    min-height: 260px;
    overflow: hidden;
}
.featured-img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .35s;
}
.featured-card:hover .featured-img-wrap img { transform: scale(1.04); }
.featured-placeholder {
    height: 100%; min-height: 260px;
    background: linear-gradient(135deg, var(--blog-dark), var(--blog-dark2));
    display: flex; align-items: center; justify-content: center;
}
.featured-body {
    padding: 36px 40px;
    display: flex; flex-direction: column; justify-content: center;
    height: 100%;
}
.featured-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--blog-text);
    margin: 0 0 12px;
    line-height: 1.35;
    letter-spacing: -.01em;
}
.featured-excerpt {
    font-size: .93rem;
    color: var(--blog-muted);
    line-height: 1.7;
    margin-bottom: 20px;
}
.post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 20px;
}
.post-meta i { margin-right: 5px; }
.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--blog-brand);
    transition: gap .15s;
}
.featured-card:hover .read-more-btn { gap: 12px; }

/* ── Blog grid cards ─────────────────────────────────────────────────────── */
.blog-card-link { display: block; text-decoration: none; height: 100%; }
.blog-card-link:hover { text-decoration: none; }
.blog-card {
    background: #fff;
    border-radius: var(--blog-radius);
    overflow: hidden;
    box-shadow: var(--blog-shadow);
    height: 100%;
    display: flex; flex-direction: column;
    transition: box-shadow .2s, transform .2s;
}
.blog-card-link:hover .blog-card { box-shadow: var(--blog-shadow-h); transform: translateY(-3px); }
.blog-card-thumb {
    height: 188px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--blog-dark), var(--blog-dark2));
}
.blog-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.blog-card-link:hover .blog-card-thumb img { transform: scale(1.06); }
.blog-card-no-img {
    height: 100%;
    display: flex; align-items: center; justify-content: center;
}
.blog-card-body {
    padding: 20px 22px;
    flex: 1; display: flex; flex-direction: column;
}
.blog-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--blog-text);
    margin: 0 0 8px;
    line-height: 1.45;
    flex: 1;
}
.blog-card-excerpt {
    font-size: .855rem;
    color: var(--blog-muted);
    line-height: 1.6;
    margin-bottom: 14px;
}
.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11.5px;
    border-top: 1px solid var(--blog-border);
    padding-top: 12px;
    margin-top: auto;
}

/* ── Pagination ──────────────────────────────────────────────────────────── */
.blog-pagination {
    margin-top: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.blog-pag-info { font-size: 12.5px; color: #94a3b8; }
.blog-pag-nav {
    display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center;
}
.pag-arrow {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 16px; border-radius: 8px;
    font-size: 13px; font-weight: 600; color: var(--blog-brand);
    background: #fff; border: 1.5px solid var(--blog-border);
    text-decoration: none; transition: all .15s;
}
.pag-arrow:hover { background: var(--blog-brand); color: #fff; border-color: var(--blog-brand); text-decoration: none; }
.pag-arrow.disabled { color: #cbd5e1; pointer-events: none; background: #f8fafc; }
.pag-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 8px;
    font-size: 13px; font-weight: 600; color: var(--blog-muted);
    background: #fff; border: 1.5px solid var(--blog-border);
    text-decoration: none; transition: all .15s;
}
.pag-num:hover { color: var(--blog-brand); border-color: #c5cff7; background: #eef2ff; text-decoration: none; }
.pag-num.active { background: var(--blog-brand); color: #fff; border-color: var(--blog-brand); }
.pag-dots { color: #94a3b8; font-size: 14px; padding: 0 4px; }

/* ═══════════════════════════════════════════════════════════════════════════
   ARTICLE / BLOG DETAIL
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Article hero ────────────────────────────────────────────────────────── */
.article-hero {
    background: linear-gradient(135deg, var(--blog-dark) 0%, var(--blog-dark2) 100%);
    padding: 60px 0 52px;
    position: relative;
    overflow: hidden;
    text-align: center;
}
.article-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
.article-cat-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.18);
    color: rgba(255,255,255,.9);
    font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    padding: 5px 14px; border-radius: 20px; margin-bottom: 18px;
    text-decoration: none; transition: background .15s;
}
.article-cat-badge:hover { background: rgba(255,255,255,.18); color: #fff; text-decoration: none; }
.article-hero-h1 {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 800;
    color: #fff;
    margin: 0 auto 18px;
    max-width: 780px;
    line-height: 1.25;
    letter-spacing: -.01em;
}
.article-hero-meta {
    display: flex; align-items: center; justify-content: center;
    flex-wrap: wrap; gap: 18px;
    font-size: 12.5px; color: rgba(255,255,255,.6);
}
.article-hero-meta i { margin-right: 5px; color: rgba(255,255,255,.4); }

/* ── Breadcrumb ──────────────────────────────────────────────────────────── */
.breadcrumb-strip {
    background: #fff;
    border-bottom: 1px solid var(--blog-border);
    padding: 10px 0;
}
.breadcrumb-inner {
    display: flex; align-items: center; flex-wrap: wrap;
    gap: 4px; font-size: 12px; color: var(--blog-muted);
}
.breadcrumb-inner a { color: var(--blog-muted); text-decoration: none; transition: color .15s; }
.breadcrumb-inner a:hover { color: var(--blog-brand); }
.breadcrumb-sep { color: #cbd5e1; font-size: 9px; }

/* ── Article layout ──────────────────────────────────────────────────────── */
.article-wrapper { padding: 44px 0 64px; background: var(--blog-light); }

.article-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--blog-shadow);
    margin-bottom: 28px;
}
.article-featured-img img {
    width: 100%;
    max-height: 440px;
    object-fit: cover;
    display: block;
}
.article-body { padding: 36px 40px; }

.article-summary {
    font-size: 1.05rem;
    color: var(--blog-muted);
    line-height: 1.75;
    padding: 20px 24px;
    border-left: 4px solid var(--blog-brand);
    background: var(--blog-light);
    border-radius: 0 8px 8px 0;
    margin-bottom: 32px;
    font-style: italic;
}

/* Rich text content */
.article-content { font-size: 15.5px; line-height: 1.85; color: var(--blog-text); }
.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 { color: #0f172a; font-weight: 800; margin-top: 2em; margin-bottom: .6em; line-height: 1.3; letter-spacing: -.01em; }
.article-content h2 { font-size: 1.55rem; padding-bottom: .4em; border-bottom: 2px solid var(--blog-border); }
.article-content h3 { font-size: 1.22rem; }
.article-content h4 { font-size: 1.05rem; color: var(--blog-brand); }
.article-content p { margin-bottom: 1.25em; }
.article-content a { color: var(--blog-brand); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.article-content a:hover { color: var(--blog-brand2); }
.article-content ul, .article-content ol { padding-left: 1.6em; margin-bottom: 1.25em; }
.article-content li { margin-bottom: .45em; }
.article-content blockquote {
    border-left: 4px solid var(--blog-brand);
    background: var(--blog-light);
    margin: 1.5em 0; padding: 18px 24px;
    border-radius: 0 8px 8px 0;
    font-style: italic; color: var(--blog-muted); font-size: 1.05rem;
}
.article-content blockquote p { margin: 0; }
.article-content pre, .article-content code {
    font-family: 'SFMono-Regular', Consolas, monospace;
    font-size: .88em;
    background: #f1f5f9; border-radius: 6px;
}
.article-content pre { padding: 16px 20px; overflow-x: auto; margin-bottom: 1.25em; }
.article-content code { padding: 2px 6px; }
.article-content img { max-width: 100%; border-radius: 10px; margin: 1em 0; }
.article-content table { width: 100%; border-collapse: collapse; margin-bottom: 1.5em; font-size: .93rem; }
.article-content table th { background: var(--blog-light); font-weight: 700; padding: 10px 14px; border: 1px solid var(--blog-border); color: #374151; }
.article-content table td { padding: 9px 14px; border: 1px solid var(--blog-border); }
.article-content table tr:nth-child(even) td { background: #fafbff; }
.article-content hr { border: none; border-top: 2px solid var(--blog-border); margin: 2em 0; }

/* ── Article footer (back + share) ──────────────────────────────────────── */
.article-footer {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 16px;
    padding: 22px 40px;
    border-top: 1px solid var(--blog-border);
    background: #fafbff;
}
.back-btn {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 13px; font-weight: 600; color: var(--blog-brand);
    text-decoration: none; padding: 8px 16px;
    border: 1.5px solid #c5cff7; border-radius: 8px;
    background: #fff; transition: all .15s;
}
.back-btn:hover { background: var(--blog-brand); color: #fff; border-color: var(--blog-brand); text-decoration: none; }
.share-row { display: flex; align-items: center; gap: 8px; }
.share-label { font-size: 12px; font-weight: 700; color: var(--blog-muted); text-transform: uppercase; letter-spacing: .07em; margin-right: 2px; }
.share-icon {
    width: 34px; height: 34px; border-radius: 8px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 13px; text-decoration: none;
    transition: opacity .15s, transform .15s;
}
.share-icon:hover { opacity: .85; transform: translateY(-1px); text-decoration: none; }
.si-tw { background: #000; color: #fff; }
.si-fb { background: #1877f2; color: #fff; }
.si-li { background: #0a66c2; color: #fff; }
.si-wa { background: #25d366; color: #fff; }

/* ── Sidebar ─────────────────────────────────────────────────────────────── */
.sidebar-card {
    background: #fff;
    border-radius: var(--blog-radius);
    box-shadow: var(--blog-shadow);
    overflow: hidden;
    margin-bottom: 24px;
}
.sidebar-heading {
    font-size: 11px; font-weight: 800; text-transform: uppercase;
    letter-spacing: .1em; color: var(--blog-muted);
    padding: 14px 20px 12px;
    border-bottom: 1px solid var(--blog-border);
    background: var(--blog-light);
}
.related-item {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--blog-border);
    text-decoration: none; transition: background .15s;
}
.related-item:last-child { border-bottom: none; }
.related-item:hover { background: var(--blog-light); text-decoration: none; }
.related-thumb {
    width: 60px; height: 60px; border-radius: 8px;
    object-fit: cover; flex-shrink: 0;
}
.related-no-img {
    width: 60px; height: 60px; border-radius: 8px; flex-shrink: 0;
    background: linear-gradient(135deg, var(--blog-dark), var(--blog-dark2));
    display: flex; align-items: center; justify-content: center;
}
.related-title {
    font-size: 13px; font-weight: 600; color: var(--blog-text);
    line-height: 1.4; margin-bottom: 4px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.related-item:hover .related-title { color: var(--blog-brand); }
.related-date { font-size: 11.5px; color: #94a3b8; }

.cat-nav-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 11px 20px; font-size: 13.5px; font-weight: 500;
    color: var(--blog-text); text-decoration: none;
    border-bottom: 1px solid var(--blog-border); transition: all .15s;
}
.cat-nav-item:last-child { border-bottom: none; }
.cat-nav-item:hover { background: var(--blog-light); color: var(--blog-brand); padding-left: 24px; text-decoration: none; }
.cat-nav-item i { font-size: 10px; color: #cbd5e1; transition: color .15s; }
.cat-nav-item:hover i { color: var(--blog-brand); }

.sidebar-quick-link {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 20px; font-size: 13px; color: var(--blog-muted);
    text-decoration: none; border-bottom: 1px solid var(--blog-border); transition: all .15s;
}
.sidebar-quick-link:last-child { border-bottom: none; }
.sidebar-quick-link:hover { background: var(--blog-light); color: var(--blog-brand); text-decoration: none; }
.sidebar-quick-link i { width: 16px; text-align: center; color: #94a3b8; font-size: 12px; flex-shrink: 0; }
.sidebar-quick-link:hover i { color: var(--blog-brand); }

/* ── CTA card ────────────────────────────────────────────────────────────── */
.cta-card {
    background: linear-gradient(135deg, var(--blog-dark) 0%, var(--blog-dark2) 100%);
    border-radius: var(--blog-radius);
    padding: 28px 24px;
    text-align: center;
    margin-bottom: 24px;
}
.cta-apply {
    background: #eef2ff;
    border: 1.5px solid #c5cff7;
    border-radius: var(--blog-radius);
    padding: 26px 24px;
    text-align: center;
    margin-bottom: 24px;
}
.cta-apply-btn {
    display: inline-block;
    background: var(--blog-brand);
    color: #fff; font-weight: 700; font-size: .88rem;
    padding: 10px 24px; border-radius: 8px;
    text-decoration: none; transition: background .15s, transform .15s;
}
.cta-apply-btn:hover { background: var(--blog-brand2); color: #fff; transform: translateY(-1px); text-decoration: none; }

/* ── Bootstrap 4 compat: gap utilities for blog pages ─────────────────── */
.blog-section .row.mb-4-row > [class*="col-"] { margin-bottom: 24px; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 767px) {
    .blog-hero { padding: 52px 0 44px; }
    .featured-body { padding: 24px 20px; }
    .featured-title { font-size: 1.2rem; }
    .article-body { padding: 24px 20px; }
    .article-footer { padding: 16px 20px; }
    .article-hero { padding: 44px 0 36px; }
    .article-hero-h1 { font-size: 1.5rem; }
}
