/*
 Theme Name:   Fabrica Child Theme
 Theme URI:    http://fabrica.ancorathemes.com/
 Description:  Fabrica Child Theme
 Author:       AncoraThemes
 Author URI:   http://ancorathemes.com/
 Template:     fabrica
 Version:      1.0.0
 Tags: blog, e-commerce, portfolio, grid-layout, one-column, two-columns, three-columns, four-columns, left-sidebar, right-sidebar, custom-background, custom-colors, custom-header, custom-logo, custom-menu, editor-style, featured-image-header, featured-images, flexible-header, footer-widgets, full-width-template, microformats, post-formats, sticky-post, theme-options, threaded-comments, translation-ready, block-styles, wide-blocks
 Text Domain:  fabrica
*/


/* =Theme customization starts here
------------------------------------------------------------ */
.custom-timeline-accordion {
    width: 100vw;
    max-width: 100%;
    background: #e9f1f9;
    padding: 0;
    overflow-x: auto;
}

.timeline-row {
    display: flex;
    align-items: stretch;
    width: 100%;
    min-height: 280px;
    position: relative;
}

.timeline-title {
    background: #205ca7;
    color: #fff;
    font-weight: bold;
    writing-mode: vertical-lr;
    transform: rotate(180deg);
    padding: 30px 10px 10px 10px;
    text-align: center;
    cursor: pointer;
    min-width: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    transition: background 0.3s;
    position: relative;
    z-index: 2;
    border-right: 2px solid #e9f1f9;
}

.timeline-title.active {
    background: #d80027;
    color: #fff;
}

.timeline-arrow {
    font-size: 18px;
    margin-bottom: 8px;
    margin-top: auto;
    display: block;
    transition: transform 0.3s;
}

.timeline-label {
    display: block;
}

.timeline-content {
    background: #f5f7f9;
    display: flex;
    align-items: center;
    min-width: 400px;
    max-width: 700px;
    margin-left: -2px;
    box-shadow: 4px 0 10px rgba(32, 92, 167, 0.08);
    opacity: 0;
    transform: translateX(-40px) scaleX(0.95);
    transition: 
        opacity 0.45s cubic-bezier(.4,0,.2,1), 
        transform 0.45s cubic-bezier(.4,0,.2,1),
        max-width 0.45s cubic-bezier(.4,0,.2,1);
    overflow: hidden;
    z-index: 1;
    position: relative;
    max-width: 0;
    pointer-events: none;
}

.timeline-content.active {
    opacity: 1;
    transform: translateX(0) scaleX(1);
    max-width: 700px;
    pointer-events: auto;
    display: block;
    flex-grow: 1;
}

.timeline-inner {
    display: flex;
    align-items: center;
}

.timeline-image img {
    width: 180px;
    height: auto;
    border-radius: 8px;
    margin-right: 32px;
}

.timeline-text {
    color: #222;
    font-size: 1rem;
}

@media (max-width: 900px) {
    .timeline-content, .timeline-content.active {
        min-width: 220px;
        max-width: 100vw;
        padding: 20px 10px 20px 0;
    }
    .timeline-image img {
        width: 100px;
        margin-right: 10px;
    }
}
