/* ...existing code... */
.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}
.story-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s;
}
.story-card:hover {
    transform: translateY(-6px) scale(1.02);
}
.story-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.7rem;
    /* Truncate after 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 3.2em; /* keeps card heights even */
    line-height: 1.6em;
    word-break: break-word;
}
.full-story-container h2 {
    color: #0077b6; /* Use the same color as .story-card h3 */
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
/* Responsive font size for mobile */
@media (max-width: 600px) {
    .story-card h3 {
        font-size: 1rem;
        min-height: 2.8em;
    }
    .stories-grid {
        grid-template-columns: 1fr;
    }
}
/* End of addition */

.story-image-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
}
.story-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.story-content {
    padding: 1.2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.story-excerpt {
    color: #555;
    margin-bottom: 1rem;
}
.read-more-btn {
    align-self: flex-start;
    background: #0077b6;
    color: #fff;
    padding: 0.5rem 1.2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.2s;
}
.read-more-btn:hover {
    background: #023e8a;
    color: #fff; /* Keep text white on hover */
}
/* Full story page */
.full-story-container {
    max-width: 700px;
    margin: 2rem auto;
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.full-story-container p {
    text-align: justify;
}
.full-story-image {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}
.back-link {
    display: inline-block;
    margin-top: 2rem;
    color: #0077b6;
    text-decoration: none;
    font-weight: bold;
}
.back-link:hover {
    text-decoration: underline;
}
/* ...existing code... */