/* Original TimelineJS Styles (adaptado) */

/* Styles for Nossa História Page Layout */
.nossa-historia-container {
    padding-top: 90px; /* Assumed 120px fixed header height */
    padding-bottom: 0px; /* Increased bottom padding for better spacing */
    padding-left: 0;
    padding-right: 0;
    width: 100%;
    min-height: 100vh; /* Make container at least full viewport height */
    font-family: 'Almarai', sans-serif; /* Assuming this font is used elsewhere or loaded globally */
    background-color: #faf0e6; /* Light beige background */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

.nossa-historia-container h1, 
.nossa-historia-container h2 {
    text-align: center;
    color: #1e1d31; /* Consistent with other titles */
    margin-bottom: 20px;
    font-family: 'Libre Caslon Display', 'Cormorant Garamond', serif; /* Match timeline title font */
}

.nossa-historia-container h1 {
    font-size: 2.5rem; /* Larger for main title */
    margin-bottom: 30px;
}

.nossa-historia-container h2 {
    font-size: 2rem;
}

.timeline-section {
    margin-bottom: 40px;
    line-height: 1.6;
}

.timeline-section p {
    text-align: center;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

/* Container for the TimelineJS embed, adjusted for page layout */
.timeline-container-fullscreen {
    width: 100%; /* Takes full width of its parent .nossa-historia-container */
    max-width: 1400px; /* Max width for timeline content for readability */
    height: 650px; /* Specific height for the timeline section */
    margin: 0 auto 40px auto; /* Top margin removed, auto for horizontal centering */
    padding-left: 20px; /* Horizontal padding inside the timeline container */
    padding-right: 20px; /* Horizontal padding inside the timeline container */
    box-sizing: border-box;
    border-radius: 8px;
    overflow: hidden; /* Important for TimelineJS internal sizing */
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    background: #fdfcfa; /* Optional background for the timeline area, distinct from the main beige */
    position: relative; /* Needed for child absolute positioning if any */
}

/* Ensure #timeline-embed fills the modified container */
#timeline-embed {
    width: 100% !important; /* Force width */
    height: 100% !important; /* Force height */
    margin: 0;
    padding: 0;
}

/* Styling for the h2 title above the timeline, if used from PHP */
.timeline-title-demo {
    /* This class was in the original CSS. 
       If you have an H2 directly in your PHP for the timeline section title,
       it will be styled by the general .nossa-historia-container h2 rule.
       You can keep this if TimelineJS itself generates a title you want to style,
       or remove/comment out if not needed. */
    font-family: 'Libre Caslon Display', 'Cormorant Garamond', serif;
    color: #2c3e50;
    font-size: 1.8rem; 
    text-align: center;
    margin: 20px 0 15px 0;
    font-weight: 400;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .nossa-historia-container h1 {
        font-size: 2rem;
    }
    .nossa-historia-container h2 {
        font-size: 1.75rem;
    }
    .timeline-section p {
        font-size: 1rem;
    }
    .timeline-container-fullscreen {
        height: 500px; /* Adjust timeline height for smaller screens */
    }
}
