/* General Styles */
body {
    font-family: 'Georgia', serif;
    line-height: 1.8;
    margin: 0;
    padding: 0;
    background-color: #fdfcfb;
    color: #333;
}

header {
    background-color: #f4e9e1;
    color: #4a3b32;
    padding: 2em 0;
    text-align: center;
    border-bottom: 1px solid #e0d5c_e;
}

header h1 {
    margin: 0;
    font-size: 2.8em;
    font-weight: normal;
    letter-spacing: 1px;
}

main {
    max-width: 900px;
    margin: 2em auto;
    padding: 0 20px;
}

section {
    margin-bottom: 3em;
    padding-bottom: 2em;
    border-bottom: 1px dashed #e0d5ce;
}

section:last-of-type {
    border-bottom: none;
}

h2 {
    font-size: 2.2em;
    color: #6d5b52;
    margin-bottom: 0.8em;
    font-weight: normal;
    text-align: center;
}

p {
    text-align: justify;
    margin-bottom: 1.2em;
    font-size: 1.1em;
}

/* Timeline Styles */
.timeline {
    position: relative;
    margin: 2em 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #d3c1b7;
}

.timeline-item {
    margin-bottom: 30px;
    position: relative;
    padding-left: 40px; /* Space for the dot and line */
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 3px;
    top: 5px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: #8c7b72;
    border: 2px solid #fdfcfb;
    z-index: 1;
}

.timeline-content h3 {
    font-size: 1.5em;
    color: #7a6a60;
    margin-top: 0;
    margin-bottom: 0.5em;
}

.timeline-content p {
    font-size: 1em;
    margin-bottom: 0;
}

/* Image Gallery Styles */
.galerie-imagini {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 1.5em;
}

.imagine-item {
    flex-basis: calc(33.333% - 20px);
    text-align: center;
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.imagine-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.imagine-item img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 10px;
    aspect-ratio: 1 / 1; /* Maintain square aspect ratio */
    object-fit: cover; /* Ensure image covers the area without distortion */
}

.imagine-item p {
    font-size: 0.95em;
    color: #555;
    line-height: 1.5;
    text-align: left;
}

/* Footer Styles */
footer {
    text-align: center;
    padding: 2em 0;
    background-color: #f4e9e1;
    color: #4a3b32;
    font-size: 0.9em;
    border-top: 1px solid #e0d5ce;
    margin-top: 3em;
}

footer p {
    margin: 0.5em 0;
    text-align: center;
}

footer a {
    color: #6d5b52;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2.2em;
    }

    h2 {
        font-size: 1.8em;
    }

    .timeline::before {
        left: 5px;
    }

    .timeline-item {
        padding-left: 30px;
    }

    .timeline-item::before {
        left: -2px;
        width: 12px;
        height: 12px;
    }

    .galerie-imagini {
        flex-direction: column;
    }

    .imagine-item {
        flex-basis: 100%;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    body {
        line-height: 1.7;
    }
    header h1 {
        font-size: 1.8em;
    }

    h2 {
        font-size: 1.5em;
    }

    p, .timeline-content p, .imagine-item p {
        font-size: 1em;
    }

    .timeline-content h3 {
        font-size: 1.2em;
    }
}

