/* =============================================================
   ELITE RIDES — Blog Dark/Light Mode Overrides
   Works alongside html - light/css/custom.css
   ============================================================= */

/* ─── Latest Articles (homepage) ───────────────────────────── */
.latest-article {
    padding: 100px 0;
    background: transparent;
}

.latest-article .section-title h3 {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #0099ff;
    margin-bottom: 14px;
}

.latest-article .section-title h2 {
    color: #fff;
}

.highlighted-article-post {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.highlighted-article-featured-img img {
    width: 100%;
    object-fit: cover;
}

.highlighted-article-body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
}

.highlighted-article-body .article-meta ul li a {
    color: rgba(255,255,255,0.7);
}

.highlighted-article-body .highlighted-article-content h3 a {
    color: #fff;
    text-decoration: none;
}

.article-post {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.article-post:last-child {
    border-bottom: 0;
}

.article-post .article-featured-img {
    flex-shrink: 0;
    width: 120px;
}

.article-post .article-featured-img img {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
    aspect-ratio: 1 / 0.85;
}

.article-post-body .article-meta ul {
    list-style: none;
    padding: 0;
    margin: 0 0 8px;
}

.article-post-body .article-meta ul li a {
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    text-decoration: none;
}

.article-post-body .article-meta ul li a i {
    margin-right: 5px;
}

.article-post-body .article-post-content h3 {
    font-size: 16px;
    line-height: 1.4;
    margin: 0 0 8px;
}

.article-post-body .article-post-content h3 a {
    color: #fff;
    text-decoration: none;
}

.article-post-content .read-story-btn {
    color: #0099ff;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-transform: capitalize;
    position: relative;
    padding-right: 20px;
}

.article-post-content .read-story-btn::after {
    content: '\f061';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 12px;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s;
}

.article-post:hover .article-post-content .read-story-btn::after {
    transform: translateY(-50%) translateX(4px);
}

/* ─── Blog Listing Page ────────────────────────────────────── */
.page-blog {
    padding: 100px 0;
}

.post-item {
    margin-bottom: 30px;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
}

.post-featured-image img {
    width: 100%;
    aspect-ratio: 1 / 0.7;
    object-fit: cover;
}

.post-item-body {
    padding: 24px;
}

.post-meta ul {
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
}

.post-meta ul li a {
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    text-decoration: none;
}

.post-meta ul li a i {
    margin-right: 5px;
}

.post-item-content h2 {
    font-size: 18px;
    line-height: 1.4;
    margin: 0 0 16px;
}

.post-item-content h2 a {
    color: #fff;
    text-decoration: none;
    text-transform: capitalize;
}

.post-item-btn .read-story-btn {
    color: #0099ff;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-transform: capitalize;
    position: relative;
    padding-right: 20px;
}

.post-item-btn .read-story-btn::after {
    content: '\f061';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 12px;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s;
}

.post-item:hover .post-item-btn .read-story-btn::after {
    transform: translateY(-50%) translateX(4px);
}

/* ─── Blog Single Page ─────────────────────────────────────── */
.page-single-post {
    padding: 80px 0;
}

.post-image {
    margin-bottom: 40px;
}

.post-image figure {
    border-radius: 20px;
    overflow: hidden;
    margin: 0;
}

.post-image img {
    width: 100%;
    border-radius: 20px;
}

.post-content {
    max-width: 900px;
    margin: 0 auto;
}

.post-entry p {
    color: rgba(255,255,255,0.75);
    line-height: 1.9;
    margin-bottom: 24px;
    font-size: 16px;
}

.post-entry h2 {
    color: #fff;
    margin: 32px 0 16px;
}

.post-entry blockquote {
    border-left: 4px solid #0099ff;
    padding: 20px 24px;
    margin: 24px 0;
    background: rgba(0,153,255,0.08);
    border-radius: 0 12px 12px 0;
}

.post-entry blockquote p {
    color: rgba(255,255,255,0.85);
    font-style: italic;
    margin: 0;
}

.post-entry ul {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}

.post-entry ul li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    color: rgba(255,255,255,0.75);
    font-size: 16px;
}

.post-entry ul li::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: #0099ff;
    font-size: 16px;
}

.post-tag-links {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.post-tags .tag-links {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
}

.post-tags .tag-links a {
    color: #0099ff;
    text-decoration: none;
    margin-left: 6px;
}

.post-social-sharing ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.post-social-sharing ul li a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: #fff;
    text-decoration: none;
    transition: background 0.2s;
}

.post-social-sharing ul li a:hover {
    background: #0099ff;
}

.post-single-meta .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 16px;
}

.post-single-meta .breadcrumb-item {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

.post-single-meta .breadcrumb-item i {
    margin-right: 6px;
}

/* ─── Pagination ───────────────────────────────────────────── */
.post-pagination {
    text-align: center;
    margin-top: 30px;
}

.post-pagination .pagination {
    display: inline-flex;
    gap: 8px;
    list-style: none;
    padding: 0;
}

.post-pagination .pagination li a,
.post-pagination .pagination li span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}

.post-pagination .pagination li.active a,
.post-pagination .pagination li.active span {
    background: #0099ff;
    color: #fff;
}

/* ─── Light Mode Overrides ─────────────────────────────────── */
html.theme-light .latest-article .section-title h2 {
    color: #111 !important;
    -webkit-text-fill-color: #111 !important;
}

html.theme-light .highlighted-article-body .article-meta ul li a {
    color: rgba(255,255,255,0.8) !important;
}

html.theme-light .article-post {
    border-bottom-color: rgba(0,0,0,0.1) !important;
}

html.theme-light .article-post-body .article-meta ul li a {
    color: #666 !important;
}

html.theme-light .article-post-body .article-post-content h3 a {
    color: #111 !important;
}

html.theme-light .article-post-content .read-story-btn {
    color: #c8a84b !important;
}

html.theme-light .post-item {
    background: #fff !important;
    border-color: rgba(0,0,0,0.1) !important;
}

html.theme-light .post-meta ul li a {
    color: #666 !important;
}

html.theme-light .post-item-content h2 a {
    color: #111 !important;
}

html.theme-light .post-item-btn .read-story-btn {
    color: #c8a84b !important;
}

html.theme-light .post-entry p {
    color: #444 !important;
}

html.theme-light .post-entry h2 {
    color: #111 !important;
    -webkit-text-fill-color: #111 !important;
}

html.theme-light .post-entry blockquote {
    background: rgba(200,168,75,0.08) !important;
    border-left-color: #c8a84b !important;
}

html.theme-light .post-entry blockquote p {
    color: #333 !important;
}

html.theme-light .post-entry ul li {
    color: #444 !important;
}

html.theme-light .post-entry ul li::before {
    color: #c8a84b !important;
}

html.theme-light .post-tag-links {
    border-top-color: rgba(0,0,0,0.1) !important;
}

html.theme-light .post-tags .tag-links {
    color: #666 !important;
}

html.theme-light .post-tags .tag-links a {
    color: #c8a84b !important;
}

html.theme-light .post-social-sharing ul li a {
    background: rgba(0,0,0,0.06) !important;
    color: #333 !important;
}

html.theme-light .post-social-sharing ul li a:hover {
    background: #c8a84b !important;
    color: #fff !important;
}

html.theme-light .post-single-meta .breadcrumb-item {
    color: #666 !important;
}

html.theme-light .post-pagination .pagination li a,
html.theme-light .post-pagination .pagination li span {
    background: rgba(0,0,0,0.06) !important;
    color: #333 !important;
}

html.theme-light .post-pagination .pagination li.active a,
html.theme-light .post-pagination .pagination li.active span {
    background: #c8a84b !important;
    color: #fff !important;
}

/* ─── Section Icon Button (read more arrow on highlighted post) ── */
.section-icon-btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0099ff;
    border-radius: 50%;
    transition: all 0.3s;
}

.section-icon-btn img {
    max-width: 14px;
}

html.theme-light .section-icon-btn {
    background: #c8a84b !important;
}

/* ─── Responsive ───────────────────────────────────────────── */
@media (max-width: 991px) {
    .latest-article {
        padding: 50px 0;
    }

    .highlighted-article-post {
        margin-bottom: 30px;
    }

    .page-blog {
        padding: 50px 0;
    }

    .page-single-post {
        padding: 50px 0;
    }
}

@media (max-width: 767px) {
    .article-post .article-featured-img {
        width: 90px;
    }

    .article-post-body .article-post-content h3 {
        font-size: 14px;
    }

    .highlighted-article-body {
        padding: 20px;
    }

    .highlighted-article-body .highlighted-article-content h3 {
        font-size: 18px;
    }

    .post-social-sharing ul {
        justify-content: flex-start;
        margin-top: 16px;
    }
}
