/* ── ACCORDION LIST BLOCK ── */

.accordion-list-block {
    /* padding: 100px 0; */
    max-width: var(--size-container-max);
    margin: 0 auto;
    width: 100%;
}

.accordion-container {
    display: flex;
    flex-direction: column;
    gap: var(--size--40);
    padding: 0 var(--size--container);
}

/* Header Title Section */
.accordion-header-title {
    margin-bottom: var(--size--20);
}

.accordion-header-title .title {
    margin-bottom: var(--size--40);
    line-height: 1;
    font-weight: 500;
}

.accordion-list-wrapper {
    display: flex;
    flex-direction: column;
    gap: var(--size--40);
}

.accordion-list-block.has-image .accordion-list-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    row-gap: var(--size--20);
    align-items: start;
}

.accordion-list-block.has-image.image-right .accordion-image-col {
    order: 2;
}

.accordion-list-block.has-image.image-right .accordion-items {
    order: 1;
}

.accordion-image-col {
    width: 100%;
}

.accordion-image-col img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: var(--size--20);
}

/* Items List */
.accordion-items {
    /* border-top-style: solid; */
    /* border-top-width: 1px; */
    /* border-top-color: #00000026; */
}

.acc-item {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    transition: background-color 0.4s ease;
}

.acc-item:hover {
    /* background-color: rgba(241, 241, 240, 0.5); */
    /* Very light grey */
}

/* Trigger Grid */
.acc-trigger {
    display: grid;
    grid-template-columns: 240px 1fr 60px;
    padding: 20px 0;
    cursor: pointer;
    align-items: center;
    user-select: none;
}

/* .nested-list .acc-trigger {
    grid-template-columns: 1fr 60px;
}
.nested-list .acc-content-wrap {
    padding-left: 0;
} */
.nested-list .desc p,
.nested-list .desc ul,
.nested-list .desc ol {
    margin-bottom: 10px;
}

/* Level 2 trigger — already have this, good */
.level-2-item .acc-trigger {
    grid-template-columns: 1fr 60px;
}

/* Level 2 content — no left padding offset needed */
.level-2-item .acc-content-wrap {
    padding-left: 0;
    padding-right: 60px;
}

/* Optional: visually indent level-2 items slightly */
.level-2-item {
    padding-left: 20px; /* adjust if you want indentation */
    border-top-color: rgba(0, 0, 0, 0.06); /* subtler separator */
}

.level-3-item {
    border-top-color: rgba(0, 0, 0, 0.04);
    padding-left: 20px; /* optional indent */
}

.level-3-item .acc-trigger {
    grid-template-columns: 1fr 60px;
}

.level-3-item .acc-content-wrap {
    padding-left: 0;
    padding-right: 60px;
}



.acc-trigger .role {
    text-transform: uppercase;

}

.acc-trigger .name {
    font-weight: 500;
    letter-spacing: -0.02em;
    transition: all 0.4s ease;
}

/* CONTENT SMOOTH REVEAL (CSS Grid Trick) */
.acc-content-wrap {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .8s cubic-bezier(.84, 0, .16, 1);
    overflow: hidden;
    padding-left: 240px;
    /* Align with the name column */
    padding-right: 60px;
    /* Space for the icon column */
}

.acc-item.active > .acc-content-wrap {
    grid-template-rows: 1fr;
}

.acc-content {
    min-height: 0;
}

.acc-content .desc {
    font-size: var(--type-18);
    line-height: var(--line-120);
    max-width: 68ch;
    margin: 15px 0 25px 0;
    opacity: 1;
    transform: translateY(20px);
    transition: opacity 0.75s ease 0.4s, transform 0.75s ease 0.4s;
}

.level-2-item .acc-content .desc {
    max-width: 120ch;
}
.level-2-item > .acc-content-wrap {
    background: rgb(255 255 255 / 30%);
    > .acc-content {
        padding-left: var(--size--40);
    }
}

.acc-item.active .acc-content .desc {
    opacity: 1;
    transform: translateY(0);
}

.acc-item .acc-content .desc ul li a {
    position: relative;
    width: fit-content;
    display: inline-flex;
    align-items: center;
    /* Vertically centers the text and the arrow */
    gap: 12px;
    /* Adjust this for horizontal spacing between text and arrow */
    text-decoration: none;
    vertical-align: middle;
    color: inherit;
    transition: color 0.3s ease;
}

.acc-item .acc-content .desc ul li {
    margin-bottom: 10px;
    ;
}

.acc-item .acc-content .desc ul li a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-dark);
    transition: width 0.4s ease;
}

.acc-item .acc-content .desc ul li a:hover {
    color: var(--color-dark);
}

.acc-item .acc-content .desc ul li a:hover::before {
    width: 100%;
}

.acc-item .acc-content .desc ul li a::after {

    content: "";
    /* font-size: 1.4rem; */
    /* line-height: 1.4rem; */
    /* font-weight: bold; */
    padding-bottom: 3px;
    /* If you want to use a custom SVG instead of a character, 
     you would use these properties instead: */


    display: block;
    width: 13px;
    height: 13px;
    background: url('../../assets/icons/velaki.svg') no-repeat center center / contain;
    transition: var(--ease);

}

.acc-content .cta {
    display: inline-block;
    font-size: var(--type-18);
    color: color-mix(in srgb, var(--color-dark), transparent 20%);
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 20px;
    opacity: 0;
    transition: opacity 0.4s ease 0.4s;
}

.acc-item.active .acc-content .cta {
    opacity: 1;
}

.acc-content .cta:hover {
    text-decoration: underline;
}

/* ICON PLUS / PLUS TRANSFORMATION (Using pure CSS lines) */

.icon-plus {
    width: 20px;
    height: 20px;
    position: relative;
    margin-left: auto;
    /* transition: transform 0.5s cubic-bezier(0.33, 1, 0.68, 1); */
    transition: var(--ease);
}

.icon-plus .line {
    position: absolute;
    border-radius: 2px;
}

.icon-plus .vertical {
    width: 2px;
    height: 100%;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
}

.icon-plus .horizontal {
    width: 100%;
    height: 2px;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

/* Transform to X by rotating the container */
.acc-item.active > .acc-trigger > .icon-plus {
    transform: rotate(45deg);
}



/* ========================== */
/* HOMEPAGE - ACCORDION LIST   */
/* ========================== */
.homepage-diagonismoi .acc-item .name {
    max-width: 68ch;
}






/* ================================= */
/* INNER PAGE ACCORDIION LIST */

#nested-accordion-list .acc-item .acc-content .desc ul li {
    list-style: disc;
    margin-left: var(--size--30);
}

#nested-accordion-list .acc-item .acc-content .desc ol li{
    list-style: decimal;
    margin-left: var(--size--30);
}


/* RESPONSIVE */
@media screen and (max-width: 991px) {
    .acc-trigger {
        grid-template-columns: 100px 1fr 40px;
        padding: 16px 0;
    }

    .acc-trigger .role {
        font-size: 10px;
    }

    .acc-content-wrap {
        padding-left: 100px;
        padding-right: 40px;
    }

    .accordion-list-block.has-image .accordion-list-wrapper {
        grid-template-columns: 1fr;
        row-gap: var(--size--40);
    }

}

@media screen and (max-width: 767px) {
    .acc-trigger {
        grid-template-columns: 1fr 40px;
        grid-gap: var(--size--8);
    }

    .acc-trigger .role {
        grid-column: 1 / 3;
        padding-top: 0;
    }

    .acc-content-wrap {
        padding-left: 0;
        padding-right: 0;
    }

    .acc-trigger .name {
        font-size: 1.25rem;
    }

    .acc-header-title .title {
        font-size: 2.5rem;
    }

    .icon-plus {
        width: 15px;
        height: 15px;
    }

    .accordion-list-block.has-image .accordion-list-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .accordion-list-block.has-image.image-right .accordion-image-col,
    .accordion-list-block.has-image.image-right .accordion-items {
        order: unset;
    }

    .acc-item {
        padding: var(--size--24) 0;

        .acc-trigger {
            padding: 0;
        }
    }

    .acc-content .desc {
        margin-top: var(--size--24);
        margin-bottom: 0;
    }

    .accordion-header-title .title {
        margin-bottom: 0;
    }

    .accordion-items {
        order: -1;
    }
}


@media screen and (max-width: 479px) {
    .acc-content .desc {
        font-size: .9375rem;
    }
}