.faqWrap{
    max-width:750px;
    margin:50px auto;
    font-family:Arial,sans-serif;
}

.faqItem{
    border:1px solid #eee;
    border-radius:12px;
    margin-bottom:12px;
    overflow:hidden;
    background:#f4f4f4;
}

.faqHead{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:18px 20px;
    cursor:pointer;
    font-size:18px;
    font-weight:600;
    color:#222;
}

.faqArrow{
    width:12px;
    height:12px;
    border-right:2px solid #f05c2b;
    border-bottom:2px solid #f05c2b;
    transform:rotate(45deg);
    transition:transform .35s ease;
    flex-shrink:0;
}

.faqBody{
    max-height:0;
    overflow:hidden;
    transition:max-height .4s ease;
}

.faqBodyInner{
    padding:0 20px 20px;
    color:#666;
    line-height:1.7;
}

.faqItem.active .faqArrow{
    transform:rotate(-135deg);
}

.faqItem.active .faqHead{
    color:#f05c2b;
}

@media(max-width:768px){
    .faqHead{
        font-size:16px;
        padding:16px;
    }

    .faqBodyInner{
        padding:0 16px 16px;
    }
}



.table-wrapper{
    max-width:750px;
    margin:auto;
}

.comparison-table{
    width:100%;
    border-collapse:separate;
    border-spacing:0;
    background:var(--bg);
    border:1px solid #e8e8e8;
    border-radius:16px;
    overflow:hidden;
    box-shadow:0 10px 30px rgba(0,0,0,.06);
}

.comparison-table thead th{
    background:linear-gradient(
        135deg,
        #AD2627,
        #F05C2B
    );
    color:#fff;
    padding:20px 24px;
    font-size:1.1rem;
    font-weight:700;
    text-align:left;
}

.comparison-table tbody td{
    padding:18px 24px;
    border-top:1px solid #e8e8e8;
    font-size:0.97rem;
    line-height:1.6;
    transition:all .25s ease;
}

.comparison-table tbody td + td{
    border-left:1px solid #e8e8e8;
}

.comparison-table tbody tr:nth-child(even){
    background:#fffaf8;
}

.comparison-table tbody tr:hover{
    background:#fff4ef;
}

.comparison-table tbody tr:hover td{
    color:#AD2627;
}

/* Tablet */
@media (max-width:768px){

    .comparison-table,
    .comparison-table tbody,
    .comparison-table tr,
    .comparison-table td{
        display:block;
        width:100%;
    }

    .comparison-table thead{
        display:none;
    }

    .comparison-table{
        background:transparent;
        border:none;
        box-shadow:none;
    }

    .comparison-table tr{
        background:#fff;
        border:1px solid #e8e8e8;
        border-radius:14px;
        margin-bottom:18px;
        overflow:hidden;
        box-shadow:0 4px 14px rgba(0,0,0,.05);
    }

    .comparison-table td{
        padding:16px 18px;
        border:none;
    }

    .comparison-table td + td{
        border-top:1px solid #e8e8e8;
        border-left:none;
    }

    .comparison-table td:nth-child(1)::before{
        content:"Positive Home Environment";
        display:block;
        font-size:.78rem;
        font-weight:700;
        text-transform:uppercase;
        letter-spacing:.6px;
        color:#F05C2B;
        margin-bottom:8px;
    }

    .comparison-table td:nth-child(2)::before{
        content:"Negative Home Environment";
        display:block;
        font-size:.78rem;
        font-weight:700;
        text-transform:uppercase;
        letter-spacing:.6px;
        color:#AD2627;
        margin-bottom:8px;
    }
}

/* Small Mobile */
@media (max-width:480px){

    body{
        padding:20px 12px;
    }

    .comparison-table td{
        font-size:.92rem;
        padding:14px 16px;
    }
}




/* ==========================
   WRAPPER
========================== */

.im-wrapper{
    max-width:750px;
    margin:auto;
}

/* ==========================
   PARENT BOX
========================== */

.im-parent-box{
    width:240px;
    margin:auto;
    background:#AD2627;
    color:#FFFFFF;
    text-align:center;
    padding:18px;
    font-size:21px;
    font-weight:600;
    line-height:1.3;
    border-radius:8px;
    box-shadow:0 8px 20px rgba(0,0,0,0.08);
    transition:all .3s ease;
}

.im-parent-box:hover{
    background:#8F1F22;
    transform:translateY(-4px);
}

/* ==========================
   CONNECTOR
========================== */

.im-connector{
    position:relative;
    height:80px;
}

.im-connector-vertical{
    position:absolute;
    top:0;
    left:50%;
    transform:translateX(-50%);
    width:3px;
    height:40px;
    background:#C65B4A;
}

.im-connector-horizontal{
    position:absolute;
    top:40px;
    left:16.5%;
    width:67%;
    height:3px;
    background:#C65B4A;
}

/* ==========================
   CARDS
========================== */

.im-card-container{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:30px;
}

.im-card{
    position:relative;
    background:#F05C2B;
    color:#FFFFFF;
    text-align:center;
    padding:35px 15px;
    font-size:21px;
    font-weight:500;
    border-radius:8px;
    box-shadow:0 8px 20px rgba(0,0,0,0.08);
    transition:all .3s ease;
    cursor:pointer;
}

.im-card::before{
    content:"";
    position:absolute;
    top:-40px;
    left:50%;
    transform:translateX(-50%);
    width:3px;
    height:40px;
    background:#C65B4A;
}

.im-card:hover{
    background:#8F1F22;
    transform:translateY(-6px);
}

/* ==========================
   TABLET
========================== */

@media (max-width:768px){

    .im-parent-box{
        width:220px;
        font-size:24px;
    }

    .im-card{
        font-size:20px;
        padding:28px 12px;
    }

    .im-card-container{
        gap:15px;
    }

    .im-connector-horizontal{
        width:72%;
        left:14%;
    }
}

/* ==========================
   MOBILE
========================== */

@media (max-width:576px){

    .im-parent-box{
        width:100%;
        max-width:280px;
        font-size:22px;
    }

    .im-connector{
        height:40px;
    }

    .im-connector-horizontal{
        display:none;
    }

    .im-connector-vertical{
        height:40px;
        background:#C65B4A;
    }

    .im-card-container{
        grid-template-columns:1fr;
        gap:40px;
        margin-top:10px;
    }

    .im-card{
        max-width:280px;
        width:100%;
        margin:auto;
        font-size:20px;
    }

    .im-card::before{
        display:block;
        top:-40px;
        height:40px;
        background:#C65B4A;
    }
}
