/* ==========================================================
   /projects page — accordion of all projects.
   Shared theming + blog-row styles come from style.css.
   This file only holds the collapsible accordion behaviour.
   ========================================================== */

.accordion{
    display: flex;
    flex-direction: column;
    gap: 22px;
    width: 100%;
    margin-top: 10px;
}

.acc-item{
    background: var(--card-bg-color);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-left: 4px solid var(--second-color);
    border-radius: 14px;
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: box-shadow 0.25s ease;
}

.acc-item.open{
    box-shadow: 0 15px 35px rgba(223, 37, 84, 0.18);
}

/* Clickable header row */
.acc-header{
    width: 100%;
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 26px 32px;
    background: none;
    border: none;
    text-align: left;
    color: var(--first-color);
    cursor: pointer;
    transition: background 0.2s ease;
}

.acc-header:hover{
    background: var(--transparent-color-01);
}

.acc-header .project-icon{
    margin-bottom: 0;
    flex-shrink: 0;
}

.acc-heading{
    flex: 1;
    min-width: 0;
}

.acc-heading h3{
    font-size: 1.35em;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 4px;
}

.acc-heading .project-tech{
    margin-bottom: 0;
}

.acc-arrow{
    color: var(--second-color);
    font-size: 1.2em;
    flex-shrink: 0;
    transition: transform 0.35s ease;
}

.acc-item.open .acc-arrow{
    transform: rotate(180deg);
}

/* Collapsible body */
.acc-body{
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s ease;
}

.acc-item.open .acc-body{
    max-height: 5000px;
}

.acc-body-inner{
    padding: 0 32px 34px;
}

/* Reuse the shared .blog-row layout inside the panel, but strip the
   card chrome since the accordion item already provides it. */
.acc-body-inner .blog-row{
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
}

@media screen and (max-width: 900px){
    .acc-header{
        padding: 22px 24px;
    }

    .acc-body-inner{
        padding: 0 24px 28px;
    }
}
