body {
    background-color: #f2f2f2;
}

/* Page Title Container with Background Image */
.page-title-container {
    position: relative;
    width: 100%;
    height: 300px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 20px;
    margin-bottom: 40px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.page-title-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.page-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: bold;
    color: #ffffff;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.content-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 40px;
    min-height: 400px;
}

/* Education Stories Section */
.section-gap {
    margin: 80px 0;
}

.education-stories-section {
    padding: 20px 0;
}

.stories-header {
    text-align: center;
    margin-bottom: 30px;
}

.stories-header h2 {
    font-size: 2.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.decorative-line {
    height: 3px;
    width: 80px;
    background: linear-gradient(90deg, #34c759, #30d158);
    margin: 0 auto;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.stories-header:hover .decorative-line {
    width: 120px;
}

.stories-intro {
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
    line-height: 1.6;
    color: #555;
    font-size: 1.1rem;
}

.stories-intro strong {
    color: #333;
    font-weight: 600;
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.story-card {
    background-color: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.story-image {
    height: 200px;
    overflow: hidden;
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.story-card:hover .story-image img {
    transform: scale(1.05);
}

.story-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.story-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.story-content p {
    color: #666;
    line-height: 1.6;
    flex-grow: 1;
}

.no-stories {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    background-color: #f9f9f9;
    border-radius: 20px;
    color: #888;
    font-size: 1.1rem;
}

/* Responsive Styles for Education Stories */
@media (max-width: 768px) {
    .page-title-container {
        height: 200px;
        border-radius: 15px;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .stories-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .stories-header h2 {
        font-size: 1.8rem;
    }
    
    .stories-intro {
        padding: 0 20px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .page-title-container {
        height: 150px;
        border-radius: 10px;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
    
    .stories-grid {
        grid-template-columns: 1fr;
    }
    
    .story-image {
        height: 180px;
    }
    
    .story-content {
        padding: 20px;
    }
    
    .story-content h3 {
        font-size: 1.2rem;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .activity-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .activity-card {
        padding: 60px 40px;
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }
    
    .activity-title {
        font-size: 2.2rem;
    }
    
    .activity-subtitle {
        font-size: 1.2rem;
    }
    
    .featured-activity {
        padding: 50px 30px;
    }
}

@media (max-width: 640px) {
    .activity-grid {
        grid-template-columns: 1fr;
    }
    
    .activity-card {
        padding: 50px 30px;
    }
    
    .content-container {
        padding: 20px 20px;
    }
}
