/* ─── RESET & BASE ───────────────────────────────────── */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #eef1f5;
    color: #0b1f2e;
}

/* ─── HERO ───────────────────────────────────────────── */

.trouble-hero {
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 60px;
    position: relative;
    overflow: hidden;
    background-image: url("../images/hero-2-mobile.png");
    background-size: cover;
    background-position: center;
    color: white;
    margin-top: 0;
    padding: 100px 60px 0 60px; 
}

.trouble-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(11, 31, 46, 0.96) 0%,
        rgba(11, 31, 46, 0.85) 35%,
        rgba(11, 31, 46, 0.40) 65%,
        rgba(11, 31, 46, 0.10) 100%
    );
    z-index: 1;
}

.trouble-hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.trouble-hero-content .eyebrow {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #ff5a55;
    font-weight: 900;
    margin: 0 0 14px;
    white-space: nowrap;
}

.trouble-hero h1 {
    font-size: clamp(36px, 5vw, 56px);
    line-height: 1.08;
    letter-spacing: -1px;
    margin: 0 0 16px;
    color: white;
    white-space: nowrap;
}

.hero-accent {
    color: white;
    border-bottom: 3px solid #e53935;
    padding-bottom: 2px;
}

.trouble-hero p {
    font-size: 17px;
    line-height: 1.65;
    color: rgba(255,255,255,0.85);
    margin: 0;
    max-width: 480px;
}

.trouble-hero-cta {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.trouble-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.35);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    backdrop-filter: blur(8px);
    transition: all 0.25s ease;
}

.trouble-hero-btn:hover {
    background: rgba(255,255,255,0.22);
    border-color: rgba(255,255,255,0.6);
    transform: translateY(-2px);
}

/* ─── INTRO STRIP ────────────────────────────────────── */

.trouble-intro-strip {
    background: rgba(11,31,46,0.04);
    border-bottom: 1px solid rgba(11,31,46,0.08);
    padding: 16px 60px;
}

.trouble-intro-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(11,31,46,0.6);
    font-size: 14px;
    line-height: 1.6;
}

.trouble-intro-inner svg {
    flex-shrink: 0;
    color: #e53935;
}

.trouble-intro-inner p {
    margin: 0;
}

.trouble-intro-inner a {
    color: #e53935;
    font-weight: 700;
    text-decoration: none;
}

.trouble-intro-inner a:hover {
    text-decoration: underline;
}

/* ─── LAYOUT ─────────────────────────────────────────── */

.trouble-layout {
    max-width: 1100px;
    margin: 48px auto 80px;
    padding: 0 48px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ─── ACCORDION ITEM ─────────────────────────────────── */

.accordion-item {
    background: white;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(11,31,46,0.07);
    border: 1px solid rgba(11,31,46,0.07);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease;
}

.accordion-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.accordion-item.active {
    box-shadow: 0 8px 32px rgba(11,31,46,0.12);
}

/* Red top stripe */
.accordion-item::before {
    content: "";
    display: block;
    height: 3px;
    background: linear-gradient(to right, #e53935, rgba(229,57,53,0.2));
}

/* ─── ACCORDION HEADER ───────────────────────────────── */

.accordion-header {
    width: 100%;
    background: none;
    border: none;
    padding: 22px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    text-align: left;
    font-family: Arial, Helvetica, sans-serif;
    transition: background 0.2s ease;
}

.accordion-header:hover {
    background: rgba(11,31,46,0.02);
}

.accordion-item.active .accordion-header {
    background: rgba(11,31,46,0.02);
}

.accordion-header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.accordion-num {
    font-size: 13px;
    font-weight: 900;
    color: rgba(11,31,46,0.2);
    letter-spacing: 1px;
    flex-shrink: 0;
    width: 28px;
}

.accordion-item.active .accordion-num {
    color: #e53935;
}

.accordion-eyebrow {
    display: block;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #e53935;
    margin-bottom: 4px;
}

.accordion-title {
    display: block;
    font-size: 17px;
    font-weight: 700;
    color: #0b1f2e;
    line-height: 1.2;
}

.accordion-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(11,31,46,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(11,31,46,0.4);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.accordion-item.active .accordion-icon {
    background: rgba(229,57,53,0.10);
    color: #e53935;
    transform: rotate(180deg);
}

/* ─── ACCORDION BODY ─────────────────────────────────── */

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.accordion-item.active .accordion-body {
    max-height: 2000px;
}

.accordion-content {
    padding: 0 28px 28px 76px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.accordion-content > p {
    font-size: 15px;
    line-height: 1.75;
    color: rgba(11,31,46,0.7);
    margin: 0;
}

/* ─── NUMBERED STEPS ─────────────────────────────────── */

.trouble-steps {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.trouble-steps-title {
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(11,31,46,0.4);
    margin: 0 0 4px;
}

.trouble-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.step-num {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    background: rgba(229,57,53,0.10);
    color: #e53935;
    font-size: 12px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
    flex-shrink: 0;
}

.trouble-step p {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(11,31,46,0.7);
    margin: 0;
}

/* ─── SYMPTOM BLOCKS ─────────────────────────────────── */

.trouble-symptom {
    background: #f8f9fb;
    border-radius: 10px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.symptom-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #0b1f2e;
}

.symptom-header svg {
    color: #e53935;
    flex-shrink: 0;
}

.trouble-symptom p {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(11,31,46,0.65);
    margin: 0;
}

/* ─── ALERT BOX ──────────────────────────────────────── */

.trouble-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 18px;
    border-radius: 8px;
    background: rgba(229,57,53,0.06);
    border-left: 3px solid #e53935;
}

.trouble-alert.info {
    background: rgba(11,31,46,0.04);
    border-left-color: rgba(11,31,46,0.25);
}

.trouble-alert svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: #e53935;
}

.trouble-alert.info svg {
    color: rgba(11,31,46,0.4);
}

.trouble-alert p {
    font-size: 14px;
    line-height: 1.65;
    color: rgba(11,31,46,0.65);
    margin: 0;
}

/* ─── VOLTAGE TABLE ──────────────────────────────────── */

.voltage-table {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.voltage-row {
    display: grid;
    grid-template-columns: 80px 1fr 1fr;
    gap: 12px;
    align-items: center;
    background: white;
    border-radius: 8px;
    padding: 12px 16px;
    border: 1px solid rgba(11,31,46,0.08);
}

.voltage-terminal {
    font-size: 13px;
    font-weight: 900;
    color: #e53935;
    letter-spacing: 0.5px;
}

.voltage-expected {
    font-size: 13px;
    font-weight: 600;
    color: #0b1f2e;
}

.voltage-note {
    font-size: 12px;
    color: rgba(11,31,46,0.5);
}

/* ─── FOOTER ─────────────────────────────────────────── */

.site-footer {
    background: #0b1f2e;
    color: rgba(255,255,255,0.8);
    text-align: center;
    padding: 36px 20px;
    font-size: 14px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-content p {
    margin: 6px 0;
}

/* ─── RESPONSIVE ─────────────────────────────────────── */

@media (max-width: 768px) {
    .trouble-hero {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 24px;
         padding: 100px 32px 40px; 
    }

    .trouble-hero h1 {
        white-space: normal;
        font-size: 36px;
    }

    .trouble-hero-btn {
       display: none;
    }

    .trouble-layout {
        padding: 0 20px;
        margin: 32px auto 60px;
    }

    .accordion-content {
        padding: 0 20px 24px;
    }

    .voltage-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .trouble-intro-strip {
        padding: 16px 24px;
    }
}