/* ═══════════════════════════════════════════════════════════
   STAY Blog — dedicated stylesheet
   Loaded alongside styleTheme.css, style.css, style-rtl.css,
   responsive.css, responsive-rtl.css — adds only blog-specific
   rules that do not exist in the shared stylesheets.
   ═══════════════════════════════════════════════════════════ */

/* ─── FontAwesome override ─────────────────────────────────
   Explicitly re-declare font-family so any upstream CSS reset
   (e.g. a body/* font shorthand that wipes font-family) cannot
   break icon rendering inside the blog layout. ─────────────── */
.fa {
    font-family: 'FontAwesome' !important;
}

/* ─── Reading progress bar ────────────────────────────────── */
.blog-progress {
    position: fixed;
    top: 0;
    inset-inline-start: 0;
    width: 0%;
    height: 3px;
    background: var(--orange);
    z-index: 9999;
    transition: width 100ms linear;
}

/* ─── Blog header ──────────────────────────────────────────── */
.blog-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}
.blog-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.blog-logo img { height: 34px; }
.blog-header-links {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.blog-header-links a {
    color: var(--black);
    font-size: 13px;
    text-decoration: none;
    padding: 5px 12px;
    border-radius: 20px;
    opacity: 0.75;
    transition: all 180ms;
}
.blog-header-links a:hover { opacity: 1; color: var(--orange); }
.blog-header-links a.active {
    opacity: 1;
    color: var(--orange);
    background: rgba(233,90,44,0.08);
}
.blog-header-right { display: flex; align-items: center; gap: 12px; }
.blog-lang-btn {
    font-size: 12px;
    color: var(--black);
    text-decoration: none;
    border: 1px solid var(--border);
    padding: 4px 10px;
    border-radius: 20px;
    opacity: 0.75;
    transition: opacity 180ms;
}
.blog-lang-btn:hover { opacity: 1; color: var(--black); }

/* ─── Index hero banner ────────────────────────────────────── */
.blog-index-hero {
    background: var(--black);
    color: var(--white);
    padding: 56px 0 48px;
    text-align: center;
}
.blog-index-hero h1 { color: var(--white); font-size: clamp(22px, 4vw, 36px); margin-bottom: 10px; }
.blog-index-hero p { color: rgba(255,255,255,0.7); font-size: 15px; margin-bottom: 0; }

/* ─── Search bar ───────────────────────────────────────────── */
.blog-search-wrap { max-width: 560px; margin: -22px auto 0; position: relative; z-index: 2; }
.blog-search-inner { display: flex; background: var(--white); border-radius: 50px; box-shadow: 0 4px 20px rgba(0,0,0,0.14); overflow: hidden; }
.blog-search-inner input {
    flex: 1;
    border: none;
    outline: none;
    padding: 13px 22px;
    font-size: 14px;
    color: var(--black);
    background: transparent;
}
.blog-search-inner button {
    background: var(--orange);
    color: var(--white);
    border: none;
    padding: 0 22px;
    font-size: 15px;
    cursor: pointer;
    transition: background 180ms;
}
.blog-search-inner button:hover { background: var(--orangeHover); }

/* ─── Search clear button ──────────────────────────────────── */
.blog-search-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--orange);
    color: var(--white);
    text-decoration: none;
    margin-inline-start: 6px;
    vertical-align: middle;
    opacity: 0.85;
    transition: opacity 180ms;
    flex-shrink: 0;
}
.blog-search-clear .fa {
    font-size: 11px;
    line-height: 1;
}
.blog-search-clear:hover { opacity: 1; color: var(--white); }

/* ─── Article grid ─────────────────────────────────────────── */
.blog-grid { padding: 48px 0; }
.blog-grid-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
@media (max-width: 991px) { .blog-grid-inner { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .blog-grid-inner { grid-template-columns: 1fr; gap: 20px; } }

/* ─── Article card ─────────────────────────────────────────── */
.blog-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    transition: transform 200ms ease, box-shadow 200ms ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 10px 32px rgba(0,0,0,0.12); }
.blog-card-img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--greyLight);
}
.blog-card-img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 320ms ease;
}
.blog-card:hover .blog-card-img-wrap img { transform: scale(1.05); }
.blog-reading-badge {
    position: absolute;
    bottom: 10px;
    inset-inline-start: 10px;
    background: rgba(2,47,64,0.82);
    color: var(--white);
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 4px;
    backdrop-filter: blur(4px);
}
.blog-card-body { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; }
.blog-card-date { font-size: 11px; color: var(--grey7); margin-bottom: 8px; }
.blog-card-title {
    color: var(--black);
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
}
.blog-card-title:hover { color: var(--orange); }
.blog-card-excerpt {
    color: var(--darkGrey);
    font-size: 13px;
    line-height: 1.65;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 16px;
}
.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--greyLight);
    padding-top: 12px;
    margin-top: auto;
}
.blog-card-author-mini { display: flex; align-items: center; gap: 7px; }
.blog-card-author-mini img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.blog-card-author-mini .avatar-placeholder {
    width: 26px; height: 26px; border-radius: 50%;
    background: var(--orange); color: var(--white);
    font-size: 11px; display: flex; align-items: center; justify-content: center;
}
.blog-card-author-mini span { font-size: 12px; color: var(--grey7); }
.blog-read-more {
    color: var(--orange); font-size: 12px; text-decoration: none;
    display: flex; align-items: center; gap: 4px;
}
.blog-read-more .fa {
    position: relative;
    top: 1px;
}

.blog-read-more:hover { color: var(--orangeHover); }
[dir="rtl"] .blog-read-more .fa { transform: scaleX(-1); }

/* ─── Pagination ───────────────────────────────────────────── */
.blog-pagination { margin: 40px 0 0; display: flex; justify-content: center; }
.blog-pagination .page-link { color: var(--black); border-color: var(--border); padding: 8px 14px; }
.blog-pagination .page-item.active .page-link { background: var(--orange); border-color: var(--orange); color: var(--white); }
.blog-pagination .page-link:hover { background: var(--backgroundC); color: var(--orange); }

/* ─── Article page ─────────────────────────────────────────── */
.blog-article-wrap { max-width: 780px; margin: 0 auto; padding: 0 0px 64px; }
.blog-article-hero {
    width: 100%;
    aspect-ratio: 21 / 8;
    object-fit: cover;
    display: block;
}
@media (max-width: 767px) {
    .blog-article-hero {
        aspect-ratio: unset;
        height: 240px;
        max-height: 240px;
    }
}

.blog-breadcrumb { padding: 16px 0 0; font-size: 13px; color: var(--grey7); }
.blog-breadcrumb a { color: var(--grey7); text-decoration: none; }
.blog-breadcrumb a:hover { color: var(--orange); }
.blog-breadcrumb .sep { margin: 0 6px; }

.blog-back-wrap {
    text-align: center;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--greyLight);
}
.blog-back-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 15px;
    color: var(--black);
    text-decoration: none;
    border: 1.5px solid var(--border);
    padding: 11px 26px;
    border-radius: 50px;
    transition: all 180ms;
}
.blog-back-link:hover {
    border-color: var(--orange);
    color: var(--orange);
    background: rgba(233,90,44,0.05);
}
[dir="rtl"] .blog-back-link .fa { transform: scaleX(-1); }

.blog-article-title {
    color: var(--black);
    font-size: clamp(22px, 4vw, 34px);
    line-height: 1.4;
    margin: 20px 0 18px;
}
.blog-article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    font-size: 13px;
    color: var(--grey7);
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--greyLight);
}
.blog-author-chip { display: flex; align-items: center; gap: 8px; }
.blog-author-chip img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.blog-author-chip .avatar-placeholder {
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--orange); color: var(--white);
    font-size: 13px; display: flex; align-items: center; justify-content: center;
}
.blog-author-chip .name { color: var(--black); }
.blog-meta-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--grey7); }
.blog-reading-chip {
    display: flex; align-items: center; gap: 5px; color: var(--orange);
}

/* ─── Article body ─────────────────────────────────────────── */
.blog-article-body {
    font-size: 16px;
    line-height: 1.85;
    color: #333;
}
.blog-article-body h2 { font-size: 22px; color: var(--black); margin: 36px 0 14px; }
.blog-article-body h3 { font-size: 19px; color: var(--black); margin: 28px 0 12px; }
.blog-article-body p { margin-bottom: 18px; }
.blog-article-body ul, .blog-article-body ol { padding-inline-start: 24px; margin-bottom: 18px; }
.blog-article-body li { margin-bottom: 8px; }
.blog-article-body img { max-width: 100%; border-radius: 12px; margin: 16px 0; display: block; }
.blog-article-body a { color: var(--orange); text-decoration: underline; }
.blog-article-body blockquote {
    border-inline-start: 4px solid var(--orange);
    background: var(--backgroundC);
    padding: 16px 20px;
    border-radius: 0 8px 8px 0;
    margin: 24px 0;
    font-size: 17px;
    color: var(--black);
    font-style: italic;
}
@media (max-width: 767px) { .blog-article-body { font-size: 15px; line-height: 1.8; } }

/* ─── CTA block ────────────────────────────────────────────── */
.blog-cta-block {
    background: linear-gradient(135deg, var(--black) 0%, #044a67 100%);
    color: var(--white);
    border-radius: 16px;
    padding: 28px 28px;
    margin: 40px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}
.blog-cta-block p { color: rgba(255,255,255,0.85); font-size: 15px; margin: 0; flex: 1; }
.blog-cta-block a {
    background: var(--orange);
    color: var(--white) !important;
    padding: 11px 24px;
    border-radius: 50px;
    text-decoration: none !important;
    font-size: 14px;
    white-space: nowrap;
    transition: background 180ms;
}
.blog-cta-block a:hover { background: var(--orangeHover); }
@media (max-width: 575px) { .blog-cta-block { flex-direction: column; text-align: center; } }

/* ─── Social share bar ─────────────────────────────────────── */
.blog-share-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 20px 0;
    border-top: 1px solid var(--greyLight);
    border-bottom: 1px solid var(--greyLight);
    margin: 36px 0;
}
.blog-share-label { font-size: 13px; color: var(--grey7); margin-inline-end: 4px; }
.blog-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 15px;
    border-radius: 50px;
    font-size: 13px;
    text-decoration: none;
    border: 1.5px solid var(--border);
    color: var(--black);
    background: var(--white);
    cursor: pointer;
    transition: all 180ms;
    line-height: 1;
}
.blog-share-btn:hover { border-color: var(--black); color: var(--black); }
.blog-share-btn.wa { background: #25D366; border-color: #25D366; color: #fff; }
.blog-share-btn.wa:hover { background: #1ebc5a; border-color: #1ebc5a; color: #fff; }
.blog-share-btn.tw { border-color: #111; color: #111; }
.blog-share-btn.tw:hover { background: #111; color: #fff; }
.blog-share-btn.fb { border-color: #1877F2; color: #1877F2; }
.blog-share-btn.fb:hover { background: #1877F2; color: #fff; }
.blog-share-btn.copied { border-color: var(--green) !important; color: var(--green) !important; }

/* ─── Author box ───────────────────────────────────────────── */
.blog-author-box {
    background: var(--greyLight2);
    border-radius: 16px;
    padding: 22px 24px;
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 36px 0;
}
.blog-author-box img { width: 68px; height: 68px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.blog-author-box .avatar-lg {
    width: 68px; height: 68px; border-radius: 50%;
    background: var(--orange); color: var(--white);
    font-size: 28px; display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.blog-author-box .author-name-lg { font-size: 16px; color: var(--black); margin-bottom: 4px; }
.blog-author-box .author-role { font-size: 13px; color: var(--grey7); }
@media (max-width: 575px) { .blog-author-box { flex-direction: column; text-align: center; } }

/* ─── Related posts ────────────────────────────────────────── */
.blog-related-section { margin-bottom: 64px; padding-top: 36px; border-top: 1px solid var(--greyLight); }
.blog-related-heading {
    font-size: 20px; color: var(--black); margin-bottom: 24px;
}
.blog-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
@media (max-width: 767px) { .blog-related-grid { grid-template-columns: 1fr; } }

/* ─── Empty / no results ───────────────────────────────────── */
.blog-empty-state { text-align: center; padding: 72px 16px; color: var(--grey7); }
.blog-empty-state i { font-size: 44px; margin-bottom: 16px; display: block; }
.blog-empty-state p { font-size: 15px; }

/* ─── Blog footer ──────────────────────────────────────────── */
.blog-footer {
    background: var(--black);
    color: rgba(255,255,255,0.65);
    padding: 28px 0;
    font-size: 13px;
    text-align: center;
    margin-top: 0;
}
.blog-footer a { color: rgba(255,255,255,0.65); text-decoration: none; margin: 0 8px; }
.blog-footer a:hover { color: var(--orange); }
.blog-footer .footer-sep { opacity: 0.3; margin: 0 6px; }
