/* e:HEV Tech page - replica of honda.com.pk/ehev */

.ehev-hero {
    background: linear-gradient(135deg, #0b0b0b 0%, #1a1a1a 50%, #0d1f2d 100%);
    color: #fff;
    text-align: center;
    padding: 70px 20px 60px;
    position: relative;
    overflow: hidden;
}

.ehev-hero::before {
    content: '';
    position: absolute;
    top: -40%;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(224, 5, 33, 0.18) 0%, transparent 65%);
    pointer-events: none;
}

.ehev-hero-logo {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 2.6rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 10px;
    position: relative;
}

.ehev-hero-logo .e-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #0b0b0b;
    border-radius: 4px;
    font-size: 1.5rem;
    padding: 2px 10px;
    margin: 0 4px;
    vertical-align: middle;
    font-weight: 800;
}

.ehev-hero-logo .e-badge::after {
    content: ':';
    color: #e00521;
}

.ehev-hero-tag {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.75);
    max-width: 720px;
    margin: 18px auto 0;
    line-height: 1.8;
    position: relative;
}

.ehev-hero-tag strong {
    color: #fff;
    display: block;
    font-size: 1.3rem;
    margin-bottom: 6px;
    font-family: 'Roboto Condensed', sans-serif;
}

/* Layout: sidebar + content */
.ehev-wrap {
    display: flex;
    gap: 0;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 24px 60px;
    align-items: flex-start;
}

.ehev-sidebar {
    width: 220px;
    flex-shrink: 0;
    position: sticky;
    top: 90px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ehev-nav-btn {
    display: block;
    width: 100%;
    text-align: left;
    background: #f5f6f8;
    border: 1px solid #e3e5e8;
    border-radius: 10px;
    padding: 15px 16px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
    line-height: 1.3;
}

.ehev-nav-btn:hover {
    background: #eef0f3;
    color: #0066cc;
}

.ehev-nav-btn.active {
    background: #0070c0;
    border-color: #0070c0;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 112, 192, 0.3);
}

.ehev-main {
    flex: 1;
    min-width: 0;
    border-left: 2px solid #0070c0;
    padding-left: 36px;
}

.ehev-panel {
    display: none;
    animation: ehevFade 0.35s ease;
}

.ehev-panel.active {
    display: block;
}

@keyframes ehevFade {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.ehev-panel-title {
    text-align: center;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 1.6rem;
    color: #666;
    font-weight: 500;
    margin-bottom: 24px;
}

.ehev-section-title {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 1.7rem;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.ehev-section-sub {
    font-size: 1.15rem;
    color: #0070c0;
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1.5;
}

.ehev-body-text {
    color: #444;
    line-height: 1.85;
    margin-bottom: 16px;
    font-size: 0.98rem;
}

/* Component tabs (Image of e:HEV System) */
.comp-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 0;
}

.comp-tab {
    flex: 1 1 auto;
    min-width: 150px;
    padding: 16px 10px;
    background: #fff;
    border: 2px solid #0070c0;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    color: #0070c0;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: all 0.25s ease;
    font-family: inherit;
    line-height: 1.3;
}

.comp-tab:hover {
    background: #eaf4fc;
}

.comp-tab.active {
    background: #0070c0;
    color: #fff;
}

.comp-stage {
    background: #fff;
    border: 2px solid #0070c0;
    border-radius: 0 0 8px 8px;
    padding: 30px;
    position: relative;
}

.comp-diagram {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
    background: #f7f9fb;
    border-radius: 12px;
    overflow: hidden;
    min-height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.comp-diagram img {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0.92;
}

/* Callout markers over diagram */
.comp-callout {
    position: absolute;
    background: #0070c0;
    color: #fff;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.35;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
    white-space: nowrap;
}

.comp-callout::after {
    content: '';
    position: absolute;
    width: 2px;
    background: #0070c0;
    left: 50%;
    transform: translateX(-50%);
}

.comp-callout[data-pos="engine"] { top: 40%; left: 6%; }
.comp-callout[data-pos="engine"]::after { height: 70px; top: 100%; }

.comp-callout[data-pos="motor"] { top: 16%; right: 8%; }
.comp-callout[data-pos="motor"]::after { height: 90px; top: 100%; }

.comp-callout[data-pos="clutch"] { bottom: 30%; left: 10%; display: none; }
.comp-callout[data-pos="pcu"] { top: 12%; left: 40%; display: none; }
.comp-callout[data-pos="battery"] { bottom: 14%; right: 6%; display: none; }

.comp-callout.highlight {
    background: #e00521;
    transform: scale(1.08);
    z-index: 3;
}

.comp-callout.highlight::after {
    background: #e00521;
}

.comp-marker {
    position: absolute;
    width: 26px;
    height: 26px;
    background: #fff;
    border: 3px solid #0070c0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 800;
    color: #0070c0;
    z-index: 2;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.comp-marker.active {
    background: #0070c0;
    color: #fff;
    transform: scale(1.2);
    border-color: #fff;
    box-shadow: 0 0 0 3px #0070c0, 0 4px 12px rgba(0, 0, 0, 0.3);
}

.comp-marker[data-mark="1"] { bottom: 34%; left: 30%; }
.comp-marker[data-mark="2"] { bottom: 42%; left: 22%; }
.comp-marker[data-mark="3"] { bottom: 26%; left: 40%; }
.comp-marker[data-mark="4"] { top: 30%; left: 28%; }
.comp-marker[data-mark="5"] { bottom: 32%; right: 18%; }

/* Component detail under diagram */
.comp-detail {
    display: flex;
    gap: 24px;
    margin-top: 28px;
    align-items: flex-start;
}

.comp-detail-thumb {
    width: 130px;
    height: 110px;
    flex-shrink: 0;
    background: #eef1f4;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #0070c0;
    border: 1px solid #dde1e6;
}

.comp-detail-body h4 {
    color: #0070c0;
    font-size: 1.05rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.comp-detail-body p {
    color: #444;
    line-height: 1.75;
    font-size: 0.95rem;
}

.comp-detail-item {
    display: none;
}

.comp-detail-item.active {
    display: flex;
    animation: ehevFade 0.3s ease;
}

/* Drive modes */
.modes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 24px;
}

.mode-card {
    background: #fff;
    border: 1px solid #e3e5e8;
    border-left: 4px solid #0070c0;
    border-radius: 10px;
    padding: 24px;
    transition: all 0.3s ease;
}

.mode-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

.mode-card-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #0070c0, #0090e0);
    color: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 14px;
}

.mode-card h4 {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 1.15rem;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.mode-card p {
    color: #555;
    line-height: 1.7;
    font-size: 0.93rem;
}

/* Difference section */
.diff-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 20px;
}

.diff-card {
    background: #f7f9fb;
    border: 1px solid #e3e5e8;
    border-radius: 12px;
    padding: 28px;
}

.diff-card h4 {
    color: #0070c0;
    font-size: 1.1rem;
    margin-bottom: 12px;
    font-family: 'Roboto Condensed', sans-serif;
    display: flex;
    align-items: center;
    gap: 10px;
}

.diff-card h4 i {
    color: #e00521;
}

.diff-card p {
    color: #444;
    line-height: 1.8;
    font-size: 0.95rem;
}

/* Videos */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 20px;
}

.video-card {
    background: #fff;
    border: 1px solid #e3e5e8;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.video-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.video-thumb {
    position: relative;
    padding-top: 56.25%;
    background: #0b0b0b;
    overflow: hidden;
}

.video-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.75;
    transition: all 0.3s ease;
}

.video-card:hover .video-thumb img {
    opacity: 0.55;
    transform: scale(1.04);
}

.video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 62px;
    height: 62px;
    background: rgba(224, 5, 33, 0.92);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    z-index: 2;
    transition: all 0.3s ease;
}

.video-card:hover .video-play {
    transform: translate(-50%, -50%) scale(1.12);
    background: #e00521;
}

.video-info {
    padding: 18px;
}

.video-info h4 {
    font-size: 1rem;
    color: #1a1a1a;
    margin-bottom: 6px;
}

.video-info p {
    font-size: 0.88rem;
    color: #666;
    line-height: 1.6;
}

/* Customer voice */
.voice-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 20px;
}

.voice-card {
    background: #fff;
    border: 1px solid #e3e5e8;
    border-radius: 12px;
    padding: 28px 24px;
    position: relative;
}

.voice-card::before {
    content: '\201C';
    position: absolute;
    top: 8px;
    left: 18px;
    font-size: 4rem;
    color: rgba(0, 112, 192, 0.15);
    font-family: Georgia, serif;
    line-height: 1;
}

.voice-text {
    color: #444;
    line-height: 1.8;
    font-size: 0.94rem;
    font-style: italic;
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
}

.voice-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.voice-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0070c0, #0090e0);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.voice-meta strong {
    display: block;
    color: #1a1a1a;
    font-size: 0.95rem;
}

.voice-meta span {
    color: #888;
    font-size: 0.82rem;
}

.voice-stars {
    color: #f5a623;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

/* Subscribe */
.subscribe-box {
    background: linear-gradient(135deg, #0b0b0b 0%, #1c1c1c 100%);
    color: #fff;
    border-radius: 16px;
    padding: 48px 40px;
    text-align: center;
    margin-top: 20px;
    position: relative;
    overflow: hidden;
}

.subscribe-box::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(224, 5, 33, 0.3), transparent 70%);
}

.subscribe-box h3 {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 1.7rem;
    margin-bottom: 10px;
    position: relative;
}

.subscribe-box p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
    position: relative;
}

.subscribe-form {
    display: flex;
    gap: 12px;
    max-width: 520px;
    margin: 0 auto;
    position: relative;
}

.subscribe-form input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
}

.subscribe-form button {
    padding: 15px 32px;
    background: #e00521;
    color: #fff;
    border: none;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.subscribe-form button:hover {
    background: #fff;
    color: #e00521;
}

/* FAQs on ehev page */
.ehev-faq .faq-item {
    background: #fff;
    border: 1px solid #e3e5e8;
    border-radius: 10px;
    margin-bottom: 12px;
    overflow: hidden;
}

.ehev-faq .faq-question {
    padding: 18px 22px;
    font-weight: 600;
    color: #1a1a1a;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.25s ease;
    font-size: 1rem;
}

.ehev-faq .faq-question:hover {
    color: #0070c0;
    background: #f7f9fb;
}

.ehev-faq .faq-item.active .faq-question {
    color: #0070c0;
    background: #f7f9fb;
}

.ehev-faq .faq-question i {
    color: #0070c0;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 16px;
}

.ehev-faq .faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.ehev-faq .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    color: #444;
    line-height: 1.8;
    font-size: 0.95rem;
    background: #f7f9fb;
}

.ehev-faq .faq-item.active .faq-answer {
    max-height: 500px;
    padding: 18px 22px;
    border-top: 1px solid #e3e5e8;
}

.ehev-faq .faq-answer ul {
    margin: 10px 0;
    padding-left: 20px;
}

.ehev-faq .faq-answer li {
    margin-bottom: 6px;
}

/* Disclaimer */
.ehev-disclaimer {
    text-align: center;
    color: #999;
    font-size: 0.82rem;
    margin-top: 36px;
    font-style: italic;
}

/* Index / TOC bar */
.ehev-toc {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    background: #f5f6f8;
    border-radius: 12px;
    padding: 16px;
    margin: 0 auto 8px;
    max-width: 1400px;
}

.ehev-toc a {
    color: #0070c0;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid #e3e5e8;
    transition: all 0.25s ease;
}

.ehev-toc a:hover {
    background: #0070c0;
    color: #fff;
    border-color: #0070c0;
}

/* Responsive */
@media (max-width: 1024px) {
    .modes-grid,
    .diff-grid,
    .videos-grid {
        grid-template-columns: 1fr;
    }

    .voice-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .ehev-hero {
        padding: 50px 18px 44px;
    }

    .ehev-hero-logo {
        font-size: 1.9rem;
    }

    .ehev-wrap {
        flex-direction: column;
        padding: 24px 16px 44px;
    }

    .ehev-sidebar {
        width: 100%;
        position: static;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 8px;
        gap: 8px;
        -webkit-overflow-scrolling: touch;
    }

    .ehev-sidebar::-webkit-scrollbar {
        height: 5px;
    }

    .ehev-sidebar::-webkit-scrollbar-thumb {
        background: #c9ced4;
        border-radius: 999px;
    }

    .ehev-nav-btn {
        width: auto;
        flex-shrink: 0;
        white-space: nowrap;
        padding: 11px 16px;
        font-size: 0.86rem;
    }

    .ehev-main {
        border-left: none;
        border-top: 2px solid #0070c0;
        padding-left: 0;
        padding-top: 28px;
    }

    .comp-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .comp-tab {
        min-width: 170px;
        flex-shrink: 0;
        font-size: 0.84rem;
        padding: 13px 8px;
    }

    .comp-stage {
        padding: 16px;
    }

    .comp-diagram {
        min-height: 240px;
    }

    .comp-callout {
        font-size: 0.72rem;
        padding: 6px 10px;
    }

    .comp-detail {
        flex-direction: column;
        gap: 14px;
    }

    .comp-detail-thumb {
        width: 100%;
        height: 90px;
    }

    .voice-grid {
        grid-template-columns: 1fr;
    }

    .subscribe-form {
        flex-direction: column;
    }

    .subscribe-box {
        padding: 36px 22px;
    }
}

@media (max-width: 480px) {
    .ehev-hero {
        padding: 40px 14px 36px;
    }

    .ehev-hero-logo {
        font-size: 1.6rem;
    }

    .ehev-hero-logo .e-badge {
        font-size: 1.1rem;
        padding: 1px 7px;
    }

    .ehev-hero-tag {
        font-size: 0.92rem;
        line-height: 1.7;
    }

    .ehev-hero-tag strong {
        font-size: 1.1rem;
    }

    .ehev-toc {
        gap: 6px;
        padding: 12px;
    }

    .ehev-toc a {
        font-size: 0.8rem;
        padding: 5px 10px;
    }

    .ehev-panel-title {
        font-size: 1.3rem;
    }

    .ehev-section-title {
        font-size: 1.35rem;
    }

    .ehev-section-sub {
        font-size: 1rem;
    }

    .ehev-body-text {
        font-size: 0.93rem;
        line-height: 1.75;
    }

    .comp-tab {
        min-width: 150px;
        font-size: 0.78rem;
        padding: 11px 6px;
    }

    .comp-stage {
        padding: 12px;
    }

    .comp-diagram {
        min-height: 200px;
    }

    .comp-callout {
        display: none !important;
    }

    .comp-marker {
        width: 22px;
        height: 22px;
        font-size: 0.7rem;
    }

    .comp-detail-body h4 {
        font-size: 0.98rem;
    }

    .comp-detail-body p {
        font-size: 0.9rem;
    }

    .mode-card {
        padding: 20px 18px;
    }

    .mode-card h4 {
        font-size: 1.05rem;
    }

    .mode-card p {
        font-size: 0.9rem;
    }

    .diff-card {
        padding: 20px 18px;
    }

    .video-info {
        padding: 14px;
    }

    .voice-card {
        padding: 22px 18px;
    }

    .subscribe-box {
        padding: 28px 18px;
        border-radius: 12px;
    }

    .subscribe-box h3 {
        font-size: 1.35rem;
    }

    .ehev-faq .faq-question {
        padding: 15px 16px;
        font-size: 0.93rem;
    }

    .ehev-faq .faq-item.active .faq-answer {
        padding: 14px 16px;
    }

    .ehev-wrap {
        padding: 18px 12px 36px;
    }
}
