﻿/* ===================================
   DealOS Motor - Extra Styles v2
   =================================== */

/* ===================================
   Promo Banner â€” Marquee
   =================================== */
.promo-banner {
    background: linear-gradient(135deg, #ff4500 0%, #ff6b35 100%);
    color: white;
    padding: 9px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1002;
    overflow: hidden;
}

.promo-inner {
    display: flex;
    align-items: center;
    padding-right: 40px;
    overflow: hidden;
}

.promo-marquee-track {
    display: flex;
    align-items: center;
    gap: 48px;
    white-space: nowrap;
    animation: promo-scroll 22s linear infinite;
    flex-shrink: 0;
}

.promo-marquee-track:hover { animation-play-state: paused; }

@keyframes promo-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.promo-marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 500;
    flex-shrink: 0;
}

.promo-cta {
    background: white;
    color: #ff4500;
    padding: 4px 14px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 12px;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s;
    flex-shrink: 0;
}

.promo-cta:hover { background: #fff3f0; }

.promo-close {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
    z-index: 2;
}

.promo-close:hover { opacity: 1; }

/* ===================================
   Navbar Offset (dynamic via JS --promo-height)
   =================================== */
body:has(#promoBanner:not([style*="display: none"])) .navbar {
    top: var(--promo-height, 36px);
}

body:has(#promoBanner:not([style*="display: none"])) .hero {
    padding-top: calc(var(--promo-height, 36px) + 80px);
}

body:has(#promoBanner[style*="display: none"]) .navbar {
    top: 0;
}

body:has(#promoBanner[style*="display: none"]) .hero {
    padding-top: 80px;
}

/* Hide Book Test Drive button on mobile */
@media (max-width: 1023px) {
    .navbar .btn-sm {
        display: none !important;
    }
}

/* ===================================
   Social Proof Counters
   =================================== */
.social-proof {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    padding: 48px 0;
}

.social-proof-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    text-align: center;
}

@media (min-width: 768px) {
    .social-proof-grid { grid-template-columns: repeat(4, 1fr); }
}

.counter-number {
    font-size: 48px;
    font-weight: 900;
    color: #ff4500;
    line-height: 1;
    margin-bottom: 8px;
    display: block;
}

.counter-suffix { color: #ffd700; }

.counter-label {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    font-weight: 500;
}

/* ===================================
   Trust Bar
   =================================== */
.trust-bar {
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    padding: 20px 0;
}

.trust-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.trust-badge-icon { font-size: 22px; }

/* ===================================
   Testimonials
   =================================== */
.testimonials {
    background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
    padding: 80px 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
}

.testimonial-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    border: 1px solid #f3f4f6;
    transition: all 0.3s;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
}

.testimonial-stars {
    color: #fbbf24;
    font-size: 18px;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.testimonial-text {
    font-size: 15px;
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff4500, #ffd700);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.author-name { font-weight: 700; font-size: 15px; color: #111827; }
.author-model { font-size: 12px; color: #ff4500; font-weight: 600; }

/* ===================================
   Cost Calculator
   =================================== */
.calculator-section {
    background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
    padding: 80px 0;
    color: white;
}

.calculator-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: start;
}

@media (min-width: 1024px) {
    .calculator-wrapper { grid-template-columns: 1fr 1fr; }
}

.calc-box {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 36px;
}

.calc-title { font-size: 22px; font-weight: 700; margin-bottom: 24px; color: #ffd700; }

.calc-field { margin-bottom: 20px; }

.calc-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.calc-field input[type="range"] { width: 100%; accent-color: #ff4500; cursor: pointer; }

.calc-field-value { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.calc-field-value span { font-size: 18px; font-weight: 700; color: white; }

.calc-results { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }

.calc-result-item { background: rgba(255,255,255,0.08); border-radius: 12px; padding: 20px; text-align: center; }

.calc-result-item.highlight {
    background: linear-gradient(135deg, rgba(255,69,0,0.3), rgba(255,107,53,0.3));
    border: 1px solid rgba(255,69,0,0.5);
}

.calc-result-label { font-size: 12px; color: rgba(255,255,255,0.6); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.calc-result-value { font-size: 22px; font-weight: 900; color: white; }
.calc-result-item.highlight .calc-result-value { color: #ffd700; }

.calc-savings-banner {
    margin-top: 20px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 12px;
    padding: 16px 20px;
    text-align: center;
    font-weight: 700;
    font-size: 16px;
}

/* ===================================
   Comparison Table
   =================================== */
.comparison-section { background: white; padding: 80px 0; }

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

.comparison-table th { padding: 20px 24px; font-size: 16px; font-weight: 700; text-align: center; }
.comparison-table th:first-child { text-align: left; }
.comparison-table thead tr { background: #111827; color: white; }
.comparison-table thead th.electric-col { background: linear-gradient(135deg, #ff4500, #ff6b35); }
.comparison-table tbody tr { border-bottom: 1px solid #f3f4f6; transition: background 0.2s; }
.comparison-table tbody tr:hover { background: #f9fafb; }
.comparison-table tbody tr:last-child { border-bottom: none; }
.comparison-table td { padding: 16px 24px; font-size: 14px; text-align: center; color: #374151; }
.comparison-table td:first-child { text-align: left; font-weight: 600; color: #111827; }
.comparison-table td.electric-col { background: rgba(255,69,0,0.04); font-weight: 700; color: #ff4500; }
.check-yes { color: #10b981; font-size: 20px; }
.check-no { color: #ef4444; font-size: 20px; }

/* ===================================
   FAQ Accordion
   =================================== */
.faq-section { background: #f9fafb; padding: 80px 0; }
.faq-list { max-width: 800px; margin: 0 auto; }

.faq-item {
    background: white;
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 20px 24px;
    text-align: left;
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    transition: color 0.2s;
}

.faq-question:hover { color: #ff4500; }
.faq-icon { font-size: 22px; font-weight: 300; color: #ff4500; flex-shrink: 0; transition: transform 0.3s; line-height: 1; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.faq-item.open .faq-answer { max-height: 300px; }
.faq-answer-inner { padding: 16px 24px 20px; font-size: 15px; color: #4b5563; line-height: 1.7; border-top: 1px solid #f3f4f6; }

/* ===================================
   Charging Station
   =================================== */
.charging-section { background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%); padding: 80px 0; color: white; }

.charging-grid { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }

@media (min-width: 1024px) { .charging-grid { grid-template-columns: 1fr 1fr; } }

.charging-map-placeholder {
    background: rgba(255,255,255,0.05);
    border: 2px dashed rgba(255,255,255,0.2);
    border-radius: 16px;
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: rgba(255,255,255,0.5);
    font-size: 14px;
}

.charging-map-placeholder .map-icon { font-size: 48px; }
.charging-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 24px; }
.charging-stat { background: rgba(255,255,255,0.05); border-radius: 12px; padding: 20px; text-align: center; }
.charging-stat-number { font-size: 32px; font-weight: 900; color: #ffd700; display: block; }
.charging-stat-label { font-size: 12px; color: rgba(255,255,255,0.6); margin-top: 4px; }

/* ===================================
   Warranty
   =================================== */
.warranty-section { background: white; padding: 80px 0; }
.warranty-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

@media (min-width: 768px) { .warranty-grid { grid-template-columns: repeat(4, 1fr); } }

.warranty-card {
    text-align: center;
    padding: 32px 20px;
    border-radius: 16px;
    background: #f9fafb;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.warranty-card:hover {
    border-color: #ff4500;
    background: white;
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(255,69,0,0.15);
}

.warranty-icon { font-size: 40px; margin-bottom: 12px; }
.warranty-title { font-size: 18px; font-weight: 700; color: #111827; margin-bottom: 8px; }
.warranty-desc { font-size: 13px; color: #6b7280; line-height: 1.5; }

/* ===================================
   Blog
   =================================== */
.blog-section { background: #f9fafb; padding: 80px 0; }
.blog-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }

@media (min-width: 768px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }

.blog-card { background: white; border-radius: 16px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.08); transition: all 0.3s; }
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); }
.blog-image { width: 100%; height: 200px; object-fit: cover; }
.blog-content { padding: 24px; }

.blog-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255,69,0,0.1);
    color: #ff4500;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 999px;
    margin-bottom: 12px;
}

.blog-title { font-size: 17px; font-weight: 700; color: #111827; margin-bottom: 10px; line-height: 1.4; }
.blog-excerpt { font-size: 13px; color: #6b7280; line-height: 1.6; margin-bottom: 16px; }
.blog-read-more { font-size: 13px; font-weight: 700; color: #ff4500; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.blog-read-more:hover { gap: 8px; }

/* ===================================
   Email Popup
   =================================== */
.email-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.email-popup-overlay.active { opacity: 1; pointer-events: all; }

.email-popup {
    background: white;
    border-radius: 24px;
    padding: 48px 40px;
    max-width: 480px;
    width: 100%;
    text-align: center;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s;
}

.email-popup-overlay.active .email-popup { transform: scale(1); }

.popup-close { position: absolute; top: 16px; right: 20px; background: none; border: none; font-size: 28px; cursor: pointer; color: #9ca3af; line-height: 1; }
.popup-close:hover { color: #111827; }
.popup-emoji { font-size: 56px; margin-bottom: 16px; }
.popup-title { font-size: 26px; font-weight: 900; color: #111827; margin-bottom: 8px; }
.popup-subtitle { font-size: 15px; color: #6b7280; margin-bottom: 24px; line-height: 1.5; }
.popup-form { display: flex; flex-direction: column; gap: 12px; }
.popup-input { width: 100%; padding: 14px 18px; border: 2px solid #e5e7eb; border-radius: 10px; font-size: 15px; outline: none; transition: border-color 0.2s; }
.popup-input:focus { border-color: #ff4500; }
.popup-submit { background: linear-gradient(135deg, #ff4500, #ff6b35); color: white; border: none; padding: 14px; border-radius: 10px; font-size: 16px; font-weight: 700; cursor: pointer; transition: all 0.2s; }
.popup-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 16px rgba(255,69,0,0.3); }
.popup-skip { font-size: 13px; color: #9ca3af; cursor: pointer; margin-top: 8px; background: none; border: none; text-decoration: underline; }

/* ===================================
   WhatsApp Float
   =================================== */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

@media (max-width: 767px) {
    .whatsapp-float { bottom: 90px; right: 14px; }
    .whatsapp-btn { width: 48px !important; height: 48px !important; }
    .whatsapp-btn svg { width: 24px !important; height: 24px !important; }
}

.whatsapp-btn {
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37,211,102,0.5);
    text-decoration: none;
    transition: all 0.3s;
    animation: wa-pulse 2s infinite;
}

.whatsapp-btn:hover { transform: scale(1.1); box-shadow: 0 8px 30px rgba(37,211,102,0.6); animation: none; }
.whatsapp-btn svg { width: 32px; height: 32px; fill: white; }

.whatsapp-tooltip {
    background: #111827;
    color: white;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s;
    pointer-events: none;
}

.whatsapp-float:hover .whatsapp-tooltip { opacity: 1; transform: translateX(0); }

@keyframes wa-pulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.5); }
    50% { box-shadow: 0 4px 30px rgba(37,211,102,0.8), 0 0 0 8px rgba(37,211,102,0.15); }
}

/* ===================================
   Financing Calculator
   =================================== */
.financing-section { background: white; padding: 80px 0; }

.financing-wrapper {
    max-width: 700px;
    margin: 0 auto;
    background: #f9fafb;
    border-radius: 24px;
    padding: 40px;
}

.financing-model-select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    background: white;
    cursor: pointer;
    outline: none;
    margin-bottom: 24px;
    transition: border-color 0.2s;
}

.financing-model-select:focus { border-color: #ff4500; }
.financing-sliders { margin-bottom: 24px; }

.financing-result {
    background: linear-gradient(135deg, #111827, #1f2937);
    border-radius: 16px;
    padding: 28px;
    color: white;
    text-align: center;
}

.financing-monthly { font-size: 48px; font-weight: 900; color: #ffd700; line-height: 1; margin-bottom: 8px; }
.financing-monthly-label { font-size: 14px; color: rgba(255,255,255,0.6); margin-bottom: 20px; }

.financing-breakdown {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.financing-breakdown-item { text-align: center; }
.financing-breakdown-value { font-size: 16px; font-weight: 700; color: white; display: block; }
.financing-breakdown-label { font-size: 11px; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.5px; }

/* ===================================
   Mobile CTA Bar
   =================================== */
.mobile-cta-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 8500;
    background: white;
    border-top: 1px solid #e5e7eb;
    padding: 12px 16px;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.1);
    gap: 10px;
}

@media (max-width: 767px) { .mobile-cta-bar { display: flex; } }
.mobile-cta-bar .btn { flex: 1; text-align: center; padding: 12px; font-size: 14px; }

/* ===================================
   Models Grid â€” 3 kolom di desktop
   =================================== */
@media (min-width: 1024px) {
    .models-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1100px;
        margin-left: auto;
        margin-right: auto;
        align-items: stretch;
    }
    .model-card {
        display: flex;
        flex-direction: column;
    }
    .model-content {
        flex: 1;
        display: flex;
        flex-direction: column;
    }
    .model-name {
        min-height: 2.4em;
    }
    /* Dorong tombol ke bawah card */
    .model-content .btn {
        margin-top: auto !important;
    }
}

/* ===================================
   Booking / Lead Form
   =================================== */
.hfa-lead-form-wrap {
    background: #fff;
    border-radius: 16px;
    padding: 0;
}
.hfa-lead-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.hfa-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 600px) {
    .hfa-form-row { grid-template-columns: 1fr; }
}
.hfa-form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.hfa-form-field label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}
.hfa-form-field input,
.hfa-form-field select,
.hfa-form-field textarea {
    padding: 11px 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    color: #111827;
    background: #f9fafb;
    transition: border-color .2s, box-shadow .2s;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
}
.hfa-form-field input:focus,
.hfa-form-field select:focus,
.hfa-form-field textarea:focus {
    outline: none;
    border-color: #ff4500;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255,69,0,.08);
}
.hfa-form-field select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}
.hfa-form-submit {
    width: 100%;
    padding: 14px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 12px;
    margin-top: 4px;
    cursor: pointer;
    border: none;
}

/* ===================================
   Blog â€” Archive & Single
   =================================== */

/* Blog Main Wrapper */
.blog-main {
    padding-top: 0;
    background: var(--color-gray-50);
    min-height: 80vh;
}

/* Blog Hero */
.blog-hero {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    padding-top: 130px;
    padding-bottom: 48px;
    margin-top: 0;
    text-align: center;
}

.blog-hero-inner {
    max-width: 680px;
    margin: 0 auto;
    padding-top: 24px;
}

.blog-hero-title {
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 900;
    color: #fff;
    margin: 12px 0 16px;
    line-height: 1.2;
}

.blog-hero-subtitle {
    color: var(--color-gray-400);
    font-size: 16px;
    line-height: 1.6;
}

/* Blog Layout */
.blog-section {
    padding: 56px 0 80px;
}

.blog-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: start;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.posts-grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

/* Post Card */
.post-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--color-gray-200);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

.post-card-image {
    display: block;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--color-gray-100);
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.post-card:hover .post-card-image img {
    transform: scale(1.05);
}

.post-card-image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    font-size: 48px;
}

.post-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.post-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.post-cat {
    background: var(--color-accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-date {
    font-size: 12px;
    color: var(--color-gray-500);
}

.post-card-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--color-gray-900);
    flex: 1;
}

.post-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.post-card-title a:hover {
    color: var(--color-accent);
}

.post-card-excerpt {
    font-size: 14px;
    color: var(--color-gray-500);
    line-height: 1.6;
}

.post-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--color-gray-100);
}

.post-author {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--color-gray-600);
}

.author-avatar-img {
    width: 28px !important;
    height: 28px !important;
    border-radius: 50%;
    object-fit: cover;
}

.post-read-more {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-accent);
    text-decoration: none;
    transition: gap var(--transition-fast);
}

.post-read-more:hover {
    text-decoration: underline;
}

/* Pagination */
.blog-pagination {
    margin-top: 48px;
}

.blog-pagination .nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-gray-700);
    background: #fff;
    border: 1px solid var(--color-gray-200);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.blog-pagination .page-numbers:hover,
.blog-pagination .page-numbers.current {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
}

.blog-pagination .page-numbers.prev,
.blog-pagination .page-numbers.next {
    width: auto;
    padding: 0 16px;
}

/* Blog Empty */
.blog-empty {
    text-align: center;
    padding: 80px 20px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--color-gray-200);
}

.blog-empty-icon {
    font-size: 56px;
    display: block;
    margin-bottom: 16px;
}

.blog-empty h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-gray-900);
    margin-bottom: 8px;
}

.blog-empty p {
    color: var(--color-gray-500);
    margin-bottom: 24px;
}

/* Sidebar */
.blog-sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-widget {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid var(--color-gray-200);
}

.sidebar-widget-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-gray-900);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--color-gray-100);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Search form */
.sidebar-widget .search-form {
    display: flex;
    gap: 8px;
}

.sidebar-widget .search-field {
    flex: 1;
    padding: 9px 14px;
    border: 1.5px solid var(--color-gray-200);
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color var(--transition-fast);
}

.sidebar-widget .search-field:focus {
    border-color: var(--color-accent);
}

.sidebar-widget .search-submit {
    padding: 9px 14px;
    background: var(--color-accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.sidebar-widget .search-submit:hover {
    background: var(--color-accent-dark);
}

/* Sidebar Categories */
.sidebar-cats {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-cats li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    color: var(--color-gray-700);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.sidebar-cats li a:hover {
    background: var(--color-gray-50);
    color: var(--color-accent);
}

/* Sidebar Recent */
.sidebar-recent {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-recent li {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-gray-100);
}

.sidebar-recent li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-recent li a {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-gray-800);
    text-decoration: none;
    line-height: 1.4;
    transition: color var(--transition-fast);
}

.sidebar-recent li a:hover {
    color: var(--color-accent);
}

.sidebar-recent li span {
    font-size: 11px;
    color: var(--color-gray-400);
}

/* Sidebar CTA */
.sidebar-cta {
    background: linear-gradient(135deg, #0a0a0a, #1a1a1a) !important;
    text-align: center;
    color: #fff;
}

.sidebar-cta-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.sidebar-cta h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #fff;
}

.sidebar-cta p {
    font-size: 13px;
    color: var(--color-gray-400);
    margin-bottom: 16px;
    line-height: 1.5;
}

/* ===================================
   Single Post
   =================================== */

/* Single Hero */
.single-hero {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    padding-top: 160px;
    padding-bottom: 40px;
}

.single-hero-inner {
    max-width: 760px;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    font-size: 13px;
}

.breadcrumb a {
    color: var(--color-gray-400);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.breadcrumb a:hover {
    color: var(--color-accent);
}

.breadcrumb span {
    color: var(--color-gray-600);
}

.breadcrumb span:last-child {
    color: var(--color-gray-300);
}

/* Single Meta */
.single-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.single-date,
.single-read-time {
    font-size: 13px;
    color: var(--color-gray-400);
}

/* Single Title */
.single-title {
    font-size: clamp(26px, 4vw, 40px);
    font-weight: 900;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 24px;
}

/* Single Author */
.single-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.single-author .author-avatar-img {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50%;
    border: 2px solid var(--color-accent);
}

.author-name-text {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.author-role {
    font-size: 12px;
    color: var(--color-gray-400);
}

/* Featured Image */
.single-featured-image {
    background: #0a0a0a;
    padding: 0 0 0;
}

.single-featured-image .container {
    max-width: 900px;
}

.single-thumb {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: 0 0 16px 16px;
    display: block;
}

/* Single Content Layout */
.single-content-section {
    padding: 56px 0 80px;
}

.single-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: start;
}

/* Article Content */
.single-article {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    border: 1px solid var(--color-gray-200);
}

.post-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-gray-700);
}

.post-content h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--color-gray-900);
    margin: 36px 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-gray-100);
}

.post-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-gray-900);
    margin: 28px 0 12px;
}

.post-content p {
    margin-bottom: 20px;
}

.post-content ul,
.post-content ol {
    margin: 0 0 20px 24px;
}

.post-content li {
    margin-bottom: 8px;
}

.post-content a {
    color: var(--color-accent);
    text-decoration: underline;
}

.post-content img {
    max-width: 100%;
    border-radius: 12px;
    margin: 24px 0;
}

.post-content blockquote {
    border-left: 4px solid var(--color-accent);
    padding: 16px 20px;
    margin: 24px 0;
    background: var(--color-gray-50);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: var(--color-gray-600);
}

.post-content code {
    background: var(--color-gray-100);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 14px;
}

.post-content pre {
    background: var(--color-gray-900);
    color: #e5e7eb;
    padding: 20px;
    border-radius: 12px;
    overflow-x: auto;
    margin: 24px 0;
}

/* Post Tags */
.post-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--color-gray-200);
    font-size: 13px;
    color: var(--color-gray-500);
}

.post-tag {
    background: var(--color-gray-100);
    color: var(--color-gray-700);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.post-tag:hover {
    background: var(--color-accent);
    color: #fff;
}

/* Share */
.post-share {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 24px;
    font-size: 13px;
    color: var(--color-gray-500);
    font-weight: 600;
}

.share-btn {
    padding: 7px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity var(--transition-fast);
}

.share-btn:hover { opacity: 0.85; }

.share-wa { background: #25d366; color: #fff; }
.share-fb { background: #1877f2; color: #fff; }
.share-tw { background: #1da1f2; color: #fff; }

/* Post Navigation */
.post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--color-gray-200);
}

.post-nav-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px;
    background: var(--color-gray-50);
    border-radius: 12px;
    text-decoration: none;
    border: 1px solid var(--color-gray-200);
    transition: all var(--transition-fast);
}

.post-nav-item:hover {
    border-color: var(--color-accent);
    background: #fff;
}

.post-nav-next {
    text-align: right;
}

.post-nav-label {
    font-size: 12px;
    color: var(--color-accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-nav-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-gray-800);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Related Posts */
.related-posts {
    background: var(--color-gray-100);
    padding: 56px 0;
}

.related-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--color-gray-900);
    margin-bottom: 28px;
}

/* Comments */
.post-comments {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--color-gray-200);
}

.post-comments .comment-list {
    list-style: none;
    margin: 0 0 32px;
}

.post-comments .comment-body {
    background: var(--color-gray-50);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}

.post-comments .comment-author .fn {
    font-weight: 700;
    font-size: 14px;
    color: var(--color-gray-900);
}

.post-comments .comment-metadata {
    font-size: 12px;
    color: var(--color-gray-400);
    margin-bottom: 10px;
}

.post-comments .comment-content p {
    font-size: 14px;
    color: var(--color-gray-700);
    line-height: 1.6;
    margin: 0;
}

.post-comments .comment-reply-link {
    font-size: 12px;
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 600;
}

.post-comments .comment-form input,
.post-comments .comment-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--color-gray-200);
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 12px;
    outline: none;
    transition: border-color var(--transition-fast);
    box-sizing: border-box;
}

.post-comments .comment-form input:focus,
.post-comments .comment-form textarea:focus {
    border-color: var(--color-accent);
}

.post-comments .comment-form .submit {
    background: var(--color-accent);
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.post-comments .comment-form .submit:hover {
    background: var(--color-accent-dark);
}

/* ===================================
   Responsive Blog
   =================================== */
@media (max-width: 1024px) {
    .blog-layout,
    .single-layout {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        position: static;
    }

    .posts-grid--3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .posts-grid,
    .posts-grid--3 {
        grid-template-columns: 1fr;
    }

    .single-article {
        padding: 24px;
    }

    .post-nav {
        grid-template-columns: 1fr;
    }

    .post-nav-next {
        text-align: left;
    }

    .blog-hero {
        padding-top: 160px;
        padding-bottom: 36px;
    }

    .single-hero {
        padding-top: 160px;
        padding-bottom: 32px;
    }
}




