/* static/css/story.css */

/* --- General Story Container --- */
.story-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

/* --- Navigation Link --- */
.story-nav {
    margin-bottom: 25px;
}

.back-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--accent-color-dark);
    text-decoration: underline;
}

/* --- Header Styling (from .box-header) --- */
.story-container .box-header {
    padding: 25px;
    position: relative;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-card);
    display: flex;
    flex-direction: column;
    margin: -30px -30px 30px -30px; /* Extend to container edges */
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
}

.story-person-name {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.3;
}

.story-university-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.3;
}

.story-degree-name {
    font-size: 1rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 15px;
    line-height: 1.4;
}

.header-tags {
    position: static;
    margin-top: 0;
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: center;
}

.story-container .education-level,
.story-container .country-tag {
    color: white;
    padding: 6px 12px;
    border-radius: var(--border-radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.story-container .education-level {
    background-color: #5d6ca6; /* Darker blue color from boxes.css */
}

.story-container .country-tag {
    background-color: #55a5ad; /* Teal color from boxes.css */
}

/* --- Story Content (Q&A section) --- */
.story-content {
    padding-top: 10px;
}

.related-section {
    margin-top: 40px;
}

.related-section .results-summary {
    margin-bottom: 20px;
}

.related-section .boxes-container {
    width: 100%;
}

.info-item {
    margin-bottom: 25px;
}

.info-question {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.info-answer {
    color: var(--text-secondary);
    white-space: pre-line;
    line-height: 1.7;
    font-size: 1rem;
}

/* --- Responsive Design --- */
@media screen and (max-width: 768px) {
    .menu-button {
        display: none !important;
    }
    
    .story-container {
        margin: 12px;
        padding: 12px;
        max-width: calc(100% - 24px);
    }

    .story-container .box-header {
        padding: 16px;
        margin: -12px -12px 16px -12px;
        text-align: left;
    }

    .story-person-name {
        font-size: 1.4rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        text-align: left;
    }

    .story-university-name {
        font-size: 1.1rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        text-align: left;
    }

    .story-degree-name {
        font-size: 0.9rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        text-align: left;
    }

    .header-tags {
        flex-wrap: wrap;
        justify-content: flex-start;
        margin-top: 8px;
    }
    
    .info-question {
        font-size: 1rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .info-answer {
        font-size: 0.95rem;
    }
}
