/* Blog page + post templates */
.blog-hero { padding: 5rem 0; text-align: center; }
.blog-hero-inner { position: relative; z-index: 1; max-width: 860px; }
.blog-hero h1,
.blog-post-headline h1 {
    font-family: var(--font-display);
    font-weight: 900;
    line-height: 1.03;
    letter-spacing: -.055em;
    color: #fff;
}
.blog-hero h1 { font-size: clamp(2.55rem, 5vw, 4.8rem); margin-bottom: 1rem; }
.blog-hero p { color: rgba(255,255,255,.68); font-size: 1.06rem; line-height: 1.75; max-width: 720px; margin: 0 auto; }
.blog-list-section { background: #fff; padding: var(--space-2xl) 0; }
.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.35rem; margin-top: 3rem; }
.blog-grid.compact { grid-template-columns: repeat(2, 1fr); }
.blog-card {
    background: #fff;
    border: 1px solid var(--color-border-card);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: var(--color-accent-border); }
.blog-thumb { position: relative; display: block; aspect-ratio: 16/10; overflow: hidden; background: var(--color-bg-light3); }
.blog-thumb img { width: 100%; height: auto; object-fit: cover; transition: transform .45s ease; }
.blog-card:hover .blog-thumb img { transform: scale(1.05); }
.blog-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(0,0,0,.82);
    color: #fff;
    border: 1px solid rgba(34,197,94,.25);
    border-radius: 999px;
    padding: .45rem .7rem;
    font-size: .72rem;
    font-weight: 800;
}
.blog-body { padding: 1.45rem; }
.blog-meta { display: flex; flex-wrap: wrap; gap: .85rem; color: var(--color-text-muted); font-size: .78rem; font-weight: 600; margin-bottom: .85rem; }
.blog-meta i { color: var(--color-accent); }
.blog-meta.light { color: rgba(255,255,255,.62); margin-top: 1.25rem; margin-bottom: 0; }
.blog-title { font-family: var(--font-display); font-size: 1.25rem; line-height: 1.28; letter-spacing: -.02em; margin-bottom: .7rem; }
.blog-title a { color: var(--color-text-dark); transition: color var(--transition); }
.blog-title a:hover { color: var(--color-accent); }
.blog-excerpt { color: var(--color-text-body); font-size: .9rem; line-height: 1.7; margin-bottom: 1.1rem; }
.blog-post-hero { padding: 4.5rem 0; }
.blog-post-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, .95fr) minmax(360px, .9fr); gap: 3rem; align-items: center; }
.blog-post-headline h1 { font-size: clamp(2.35rem, 4.8vw, 4.35rem); margin-bottom: 1rem; }
.blog-post-headline p { color: rgba(255,255,255,.68); font-size: 1.02rem; line-height: 1.75; max-width: 660px; }
.blog-post-featured img { width: 100%; height: auto; border-radius: 26px; border: 1px solid rgba(255,255,255,.08); box-shadow: 0 34px 80px rgba(0,0,0,.45); }
.blog-post-section { background: #fff; padding: var(--space-2xl) 0; }
.blog-post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1.5rem; align-items: start; }
.blog-article-card,
.sidebar-card {
    background: #fff;
    border: 1px solid var(--color-border-card);
    border-radius: 26px;
    box-shadow: var(--shadow-soft);
}
.blog-article-card { padding: clamp(1.4rem, 4vw, 3rem); }
.blog-article-card h2 { font-family: var(--font-display); font-size: 1.7rem; letter-spacing: -.025em; color: var(--color-text-dark); margin: 2rem 0 .85rem; }
.blog-article-card p { color: var(--color-text-body); line-height: 1.85; font-size: 1.02rem; margin-bottom: 1.15rem; }
.article-cta { margin-top: 2rem; padding: 1.25rem; border-radius: 20px; background: linear-gradient(135deg, #020403, #052615); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.sidebar-card { padding: 1.35rem; position: sticky; top: 110px; }
.sidebar-card h3 { font-family: var(--font-display); font-size: 1.25rem; margin-bottom: .5rem; }
.sidebar-card p { color: var(--color-text-body); line-height: 1.65; margin-bottom: 1rem; }
.related-posts { padding-top: 0; }

/* =========================
   Blog Tables - Hayyat Apps
========================= */

.blog-post table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
    border: 1px solid #e9ecef;
}

.blog-post thead {
    background: #1dbf73;
}

.blog-post thead th {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    text-align: left;
    padding: 18px 20px;
    border: none;
}

.blog-post tbody tr {
    border-bottom: 1px solid #edf1f4;
    transition: all 0.2s ease;
}

.blog-post tbody tr:last-child {
    border-bottom: none;
}

.blog-post tbody tr:hover {
    background: #f8fffb;
}

.blog-post tbody td {
    padding: 18px 20px;
    color: #333;
    font-size: 15px;
    line-height: 1.7;
    vertical-align: top;
}

.blog-post tbody td strong {
    color: #111;
}

/* Zebra Rows */
.blog-post tbody tr:nth-child(even) {
    background: #fcfcfc;
}

/* Responsive Table */
.blog-post .table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 30px;
}

/* Mobile Optimization */
@media (max-width: 768px) {

    /* Make tables scroll inside their own box instead of pushing the page wider */
    .blog-post table {
        display: block;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .blog-post thead th,
    .blog-post tbody td {
        padding: 14px 15px;
        font-size: 14px;
        white-space: nowrap;
    }

}


@media (max-width: 980px) {
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .blog-post-hero-grid,
    .blog-post-layout { grid-template-columns: minmax(0, 1fr); }
    .blog-post-featured { max-width: 680px; }
    .sidebar-card { position: static; }
    /* Allow grid items to shrink below their content's intrinsic width */
    .blog-article-card,
    .blog-post-headline { min-width: 0; }
}
@media (max-width: 640px) {
    .blog-hero,
    .blog-post-hero { padding: 3.25rem 0; text-align: left; }
    .blog-hero p { margin: 0; }
    .blog-grid,
    .blog-grid.compact { grid-template-columns: 1fr; gap: 1rem; margin-top: 2rem; }
    .blog-card { border-radius: 20px; }
    .blog-body { padding: 1.15rem; }
    .blog-post-featured { display: none; }
    .article-cta .btn { width: 100%; justify-content: center; }
}



/* =========================
   Tick Style Lists
========================= */

.blog-post ul {
    list-style: none;
    padding-left: 0;
    margin: 25px 0;
}

.blog-post ul li {
    position: relative;
    padding-left: 38px;
    margin-bottom: 14px;
    line-height: 1.8;
    color: #333;
    font-size: 16px;
}

.blog-post ul li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(29, 191, 115, 0.12);
    color: #1dbf73;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

/* Mobile */
@media (max-width: 768px) {

    .blog-post ul li {
        font-size: 15px;
        padding-left: 34px;
    }

    .blog-post ul li::before {
        width: 22px;
        height: 22px;
        font-size: 10px;
    }

}


/* =========================
   Post Share Buttons
========================= */

.post-share {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border-card);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.post-share-label {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: .95rem;
    color: var(--color-text-dark);
}

.post-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
}

.post-share .share-btn {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--color-border-card);
    background: #fff;
    color: var(--color-text-dark);
    font-size: 1rem;
    cursor: pointer;
    transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}

.post-share .share-btn:hover {
    transform: translateY(-3px);
    color: #fff;
}

.post-share .share-facebook:hover { background: #1877f2; border-color: #1877f2; }
.post-share .share-x:hover        { background: #000;     border-color: #000; }
.post-share .share-linkedin:hover { background: #0a66c2; border-color: #0a66c2; }
.post-share .share-whatsapp:hover { background: #25d366; border-color: #25d366; }
.post-share .share-copy:hover     { background: #1dbf73; border-color: #1dbf73; }
.post-share .share-copy.copied    { background: #1dbf73; border-color: #1dbf73; color: #fff; }


/* =========================
   Inline Links
========================= */

.blog-post a {
    color: #1dbf73;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-style: dashed;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color .2s ease, text-decoration-color .2s ease;
}

.blog-post a:hover {
    color: #15904f;
    text-decoration-color: #15904f;
}


/* =========================
   Step Flow (ordered list)
========================= */

.blog-post ol {
    list-style: none;
    counter-reset: flow;
    padding-left: 0;
    margin: 30px 0;
}

.blog-post ol li {
    counter-increment: flow;
    position: relative;
    padding: 16px 20px 16px 66px;
    margin-bottom: 38px;
    background: #f8fffb;
    border: 1px solid rgba(29, 191, 115, 0.18);
    border-radius: 14px;
    line-height: 1.7;
    color: #333;
    font-size: 16px;
}

.blog-post ol li:last-child {
    margin-bottom: 0;
}

/* Numbered badge */
.blog-post ol li::before {
    content: counter(flow);
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #1dbf73;
    color: #fff;
    font-weight: 800;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(29, 191, 115, 0.35);
}

/* Down-arrow connector between steps */
.blog-post ol li:not(:last-child)::after {
    content: "\f063";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 34px;
    bottom: -30px;
    transform: translateX(-50%);
    color: #1dbf73;
    font-size: 15px;
    opacity: .65;
}

/* Mobile */
@media (max-width: 768px) {

    .blog-post ol li {
        font-size: 15px;
        padding: 14px 16px 14px 58px;
        margin-bottom: 34px;
    }

    .blog-post ol li::before {
        width: 32px;
        height: 32px;
        font-size: 14px;
        left: 13px;
    }

    .blog-post ol li:not(:last-child)::after {
        left: 29px;
        bottom: -27px;
    }

}