
:root {
    --primary: #007aff;
    --primary-hover: #0062cc;
    --dark: #212529;
    --body-bg: #f8f9fa;
    --card-bg: #ffffff;
    --border-color: #dee2e6;
    --muted-color: #6c757d;
    --warning-star: #f39c12;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; background-color: var(--body-bg); color: var(--dark); line-height: 1.5; font-size: 15px; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--primary); text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: 1200px; margin-right: auto; margin-left: auto; padding-right: 15px; padding-left: 15px; }

/* Sticky Header & Navigation Re-designed */
.site-header { position: sticky; top: 0; z-index: 1030; background: #fff; box-shadow: 0 .125rem .25rem rgba(0,0,0,.075); border-bottom: 1px solid var(--border-color); }
.header-top { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.site-logo { font-size: 1.45rem; font-weight: 700; color: #111; letter-spacing: -0.5px; margin: 0; }
.site-logo span { color: var(--primary); }

.form-search { width: 300px; position: relative; }
.form-search input { width: 100%; height: 38px; padding: 6px 40px 6px 14px; font-size: 13.5px; border: 1px solid var(--border-color); border-radius: 20px; background: #f8f9fa; outline: none; transition: all 0.2s; }
.form-search input:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(0,122,255,0.12); }
.form-search button { position: absolute; right: 4px; top: 2px; height: 34px; width: 34px; border: none; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; fill: var(--muted-color); }

.nav-bar-container { background: #fff; border-top: 1px solid #f1f3f5; }
.nav-scroll-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; scrollbar-width: none; }
.nav-scroll-wrap::-webkit-scrollbar { display: none; }
.nav-scroll-list { display: inline-flex; align-items: center; list-style: none; margin: 0; padding: 0 4px; height: 44px; }
.nav-scroll-list li { display: inline-block; }
.nav-scroll-list li a { display: inline-block; padding: 0 14px; line-height: 42px; font-size: 14px; font-weight: 600; color: #495057; border-bottom: 2px solid transparent; transition: all 0.15s; }
.nav-scroll-list li a:hover { color: var(--primary); }
.nav-scroll-list li.active a { color: var(--primary); border-bottom-color: var(--primary); }

/* Breadcrumb */
.breadcrumb-wrap { padding: 12px 0; font-size: 13.5px; color: var(--muted-color); }
.breadcrumb { display: flex; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; align-items: center; }
.breadcrumb-item + .breadcrumb-item::before { display: inline-block; padding-right: .5rem; padding-left: .5rem; color: #6c757d; content: "/"; }
.breadcrumb-item a { color: #495057; }
.breadcrumb-item a:hover { color: var(--primary); }
.breadcrumb-item.active { color: var(--muted-color); }

/* Layout Grid */
.row { display: flex; flex-wrap: wrap; margin-right: -10px; margin-left: -10px; }
.col-12 { flex: 0 0 100%; max-width: 100%; padding: 0 10px; }
.col-md-6 { flex: 0 0 50%; max-width: 50%; padding: 0 10px; }
.col-lg-3 { flex: 0 0 25%; max-width: 25%; padding: 0 10px; }
.col-lg-4 { flex: 0 0 33.333333%; max-width: 33.333333%; padding: 0 10px; }
.col-lg-9 { flex: 0 0 75%; max-width: 75%; padding: 0 10px; }
.col-xl-4 { flex: 0 0 33.333333%; max-width: 33.333333%; padding: 0 10px; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mt-3 { margin-top: 1rem; }

/* Cards & ModYolo App Card */
.bg-white { background-color: #fff !important; }
.border { border: 1px solid var(--border-color) !important; }
.rounded { border-radius: .35rem !important; }
.rounded-lg { border-radius: .5rem !important; }
.shadow-sm { box-shadow: 0 .125rem .25rem rgba(0,0,0,.075) !important; }
.p-3 { padding: 1rem !important; }
.pt-3 { padding-top: 1rem !important; }
.px-3 { padding-left: 1rem !important; padding-right: 1rem !important; }

.section-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 2px solid #f1f3f5; }
.section-title { font-size: 1.15rem; font-weight: 600; color: #212529; margin: 0; }
.btn-view-more { font-size: 12px; font-weight: 600; padding: 4px 10px; background: var(--primary); color: #fff; border-radius: 4px; display: inline-block; }
.btn-view-more:hover { background: var(--primary-hover); color: #fff; }

.archive-post { display: block; height: 100%; border: 1px solid var(--border-color); border-radius: .35rem; background: #fff; overflow: hidden; transition: transform .15s ease, box-shadow .15s ease; }
.archive-post:hover { transform: translateY(-2px); box-shadow: 0 .35rem .75rem rgba(0,0,0,.08); border-color: #c9d2dc; }
.archive-post-inner { display: flex; padding: 0.65rem; }
.archive-thumb { width: 4rem; height: 4rem; border-radius: .5rem; object-fit: cover; flex-shrink: 0; margin-right: .75rem; background: #eaeff5; }
.archive-info { min-width: 0; flex: 1; }
.archive-title { font-size: 14.5px; font-weight: 600; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #212529; }
.archive-meta { font-size: 12.5px; color: var(--muted-color); display: flex; align-items: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 2px; }
.archive-badge { font-size: 12px; color: #28a745; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Detail Page Specific */
.detail-banner-img { width: 100%; max-height: 400px; object-fit: cover; border-radius: .5rem; }
.detail-head-box { display: flex; align-items: center; margin: 1.2rem 0; }
.detail-head-icon { width: 5.5rem; height: 5.5rem; border-radius: .75rem; object-fit: cover; margin-right: 1.2rem; flex-shrink: 0; box-shadow: 0 4px 10px rgba(0,0,0,0.06); }
.detail-head-title { font-size: 1.4rem; font-weight: 700; color: #111; line-height: 1.3; }
.detail-time { font-size: 12.5px; color: var(--muted-color); font-style: italic; margin-top: 4px; display: block; }
.short-desc-box { background-color: #f8f9fa; border-radius: .35rem; padding: 12px 16px; font-size: 14px; color: #495057; margin-bottom: 1.25rem; line-height: 1.6; }

.table-spec { width: 100%; margin-bottom: 1.25rem; border-collapse: collapse; font-size: 14px; }
.table-spec tr { border-bottom: 1px solid #f1f3f5; }
.table-spec tr:nth-of-type(odd) { background-color: rgba(0,0,0,.02); }
.table-spec th { width: 45%; padding: 10px 14px; text-align: left; font-weight: 600; color: #495057; display: flex; align-items: center; }
.table-spec td { width: 55%; padding: 10px 14px; font-weight: 500; color: #212529; }
.svg-icon { width: 15px; height: 15px; fill: var(--primary); margin-right: 8px; flex-shrink: 0; }

.btn-download-primary { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 12px; background-color: var(--primary); color: #fff; font-size: 16px; font-weight: 600; border-radius: .35rem; transition: background-color .15s; border: none; cursor: pointer; text-align: center; }
.btn-download-primary:hover { background-color: var(--primary-hover); color: #fff; }
.btn-download-primary svg { fill: #fff; width: 18px; height: 18px; }

/* Screenshots Carousel Style */
.screen-scroll-wrap { overflow-x: auto; margin-bottom: 1rem; padding-bottom: 6px; }
.screen-scroll-wrap::-webkit-scrollbar { height: 6px; }
.screen-scroll-wrap::-webkit-scrollbar-thumb { background: #ced4da; border-radius: 4px; }
.screen-flex-row { display: flex; gap: 14px; }
.screen-col { flex: 0 0 280px; width: 280px; }
.screen-thumb-wrap { position: relative; width: 100%; padding-top: 56.25%; border-radius: .4rem; overflow: hidden; background: #000; box-shadow: 0 2px 6px rgba(0,0,0,0.1); }
.screen-thumb-wrap img { position: absolute; top:0; left:0; width:100%; height:100%; object-fit: cover; }
.screen-caption { font-size: 13px; font-weight: 600; color: #212529; margin-top: 6px; line-height: 1.3; }
.screen-caption-sub { font-size: 11px; color: var(--muted-color); }

/* Article & Typography */
.entry-content { font-size: 14.5px; line-height: 1.75; color: #333; }
.entry-content p { margin-bottom: 1rem; }
.entry-content h2 { font-size: 1.25rem; font-weight: 700; margin: 1.4rem 0 0.8rem; color: #111; }
.entry-content ul { padding-left: 20px; margin-bottom: 1rem; }
.entry-content li { margin-bottom: 6px; }

/* Rating & Community */
.rating-bar { display: flex; align-items: center; justify-content: center; padding: 14px 0; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); margin-bottom: 1.25rem; font-size: 14px; font-weight: 600; }
.rating-stars { color: var(--warning-star); font-size: 17px; margin-right: 8px; letter-spacing: 2px; }

/* Reviews Feed */
.review-card { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f1f3f5; }
.review-avatar-img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: #e9ecef; }
.review-content { flex: 1; font-size: 13.5px; }
.review-user { font-weight: 700; color: #212529; }
.review-meta { font-size: 11.5px; color: var(--muted-color); margin-left: 6px; }
.review-stars-val { color: var(--warning-star); font-size: 11px; margin-bottom: 4px; }
.review-body-text { color: #495057; line-height: 1.55; }

/* Comment Form */
.form-comment input, .form-comment textarea { width: 100%; border: 1px solid var(--border-color); border-radius: 4px; padding: 8px 12px; font-size: 13.5px; outline: none; margin-bottom: 12px; }
.form-comment input:focus, .form-comment textarea:focus { border-color: var(--primary); }
.btn-submit-comment { background: var(--primary); color: #fff; border: none; padding: 7px 18px; font-size: 13.5px; font-weight: 600; border-radius: 4px; cursor: pointer; }
.btn-submit-comment:hover { background: var(--primary-hover); }

/* Sidebar Categories List */
.side-cat-list { display: flex; flex-wrap: wrap; margin-right: -5px; margin-left: -5px; }
.side-cat-item { flex: 0 0 50%; max-width: 50%; padding: 0 5px; margin-bottom: 10px; }
.side-cat-link { font-size: 13px; color: #495057; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 4px 6px; border-radius: 4px; background: #f8f9fa; }
.side-cat-link:hover { color: var(--primary); background: #eef2f7; }

/* Pagination */
.pagination-wrap { display: flex; justify-content: center; margin: 1.5rem 0 0.5rem; }
.nav-pagination { display: flex; list-style: none; gap: 4px; }
.nav-pagination li a { display: block; padding: 6px 12px; font-size: 13px; font-weight: 600; border: 1px solid var(--border-color); border-radius: 4px; background: #fff; color: #495057; }
.nav-pagination li.active a { background: var(--primary); color: #fff; border-color: var(--primary); }
.nav-pagination li a:hover:not(.active) { border-color: #adb5bd; }

/* Footer */
.site-footer { background-color: #fff; border-top: 1px solid var(--border-color); padding-top: 2rem; margin-top: 2rem; }
.footer-col-title { font-size: 1.05rem; font-weight: 600; margin-bottom: 1rem; color: #212529; display: flex; align-items: center; }
.footer-col-title svg { width: 16px; height: 16px; margin-right: 8px; fill: var(--primary); }
.footer-links-list { list-style: none; padding: 0; margin: 0; }
.footer-links-list li { margin-bottom: 8px; }
.footer-links-list a { font-size: 13.5px; color: #6c757d; }
.footer-links-list a:hover { color: var(--primary); }
.footer-socials { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 1.5rem 0; }
.footer-social-icon { width: 34px; height: 34px; border-radius: 50%; background: #495057; display: flex; align-items: center; justify-content: center; fill: #fff; }
.footer-social-icon:hover { background: var(--primary); }
.footer-bottom-dark { background: #212529; color: #fff; font-size: 12.5px; text-align: center; padding: 14px 0; margin-top: 1rem; }

@media (max-width: 991px) {
    .col-lg-9, .col-lg-3 { flex: 0 0 100%; max-width: 100%; }
}
@media (max-width: 767px) {
    .col-md-6, .col-xl-4 { flex: 0 0 100%; max-width: 100%; }
    .form-search { width: 170px; }
    .detail-head-box { flex-direction: column; text-align: center; }
    .detail-head-icon { margin-right: 0; margin-bottom: 12px; }
    .table-spec th { width: 48%; }
    .table-spec td { width: 52%; }
    .screen-col { flex: 0 0 240px; width: 240px; }
}
