.story-hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/characters/hero-bg.jpeg');
    background-size: cover;
    background-position: center;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.story-hero .hero-content {
    max-width: 800px;
    padding: 0 20px;
}

.story-hero h2 {
    font-size: 3em;
    margin-bottom: 20px;
    font-family: 'Ma Shan Zheng', cursive;
    color: var(--secondary-color);
}

.story-hero p{
    font-size: 1.5rem;
}

.story-timeline {
    padding: 60px 0;
    background-color: #f9f6f2;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background-color: #8b0000;
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background-color: #8b0000;
    border-radius: 50%;
    z-index: 1;
}

.timeline-content {
    position: relative;
    width: calc(50% - 40px);
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.timeline-item:nth-child(odd) .timeline-content {
    left: 0;
}

.timeline-item:nth-child(even) .timeline-content {
    left: calc(50% + 40px);
}

.timeline-content h4 {
    font-size: 1.5em;
    margin: 0 0 10px;
    font-family: 'Ma Shan Zheng', cursive;
    color: #8b0000;
}

.timeline-date {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 10px;
}

.timeline-content p {
    line-height: 1.6;
    margin-bottom: 15px;
}

.read-more {
    display: inline-block;
    padding: 8px 20px;
    background-color: #8b0000;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.read-more:hover {
    background-color: #660000;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
}

.modal-content {
    position: relative;
    background-color: #fff;
    margin: 10% auto;
    padding: 30px;
    width: 80%;
    max-width: 800px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
}

.close-modal:hover {
    color: #000;
}

.modal-title {
    font-size: 2em;
    margin-bottom: 20px;
    font-family: 'Ma Shan Zheng', cursive;
    color: #8b0000;
}

.modal-description {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 30px;
}

.modal-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.modal-images img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 5px;
}
