/* Blog Styles for Royal Montessori Academy */

.blog_section {
    padding: 60px 20px;
    background-color: #f9f9f9;
}

.blog_container {
    max-width: 1200px;
    margin: 0 auto;
}

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

.category_title h2 {
    font-size: 2rem;
    color: #2c3e50;
    font-weight: 600;
}

/* Blog Filters */
.blog_filters {
    margin-bottom: 40px;
    text-align: center;
}

.blog_filters h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #2c3e50;
}

.filter_buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.filter_btn {
    padding: 10px 20px;
    background-color: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    color: #555;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter_btn:hover {
    border-color: #ffa500;
    color: #ffa500;
}

.filter_btn.active {
    background-color: #ffa500;
    border-color: #ffa500;
    color: #fff;
}

/* Blog Grid */
.blog_grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

/* Blog Card */
.blog_card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog_card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.blog_image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.blog_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog_card:hover .blog_image img {
    transform: scale(1.05);
}

.blog_content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog_meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.blog_category {
    display: inline-block;
    padding: 5px 12px;
    background-color: #ffa500;
    color: #fff;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
}

.blog_date {
    color: #888;
    font-size: 0.9rem;
}

.blog_title {
    margin-bottom: 15px;
}

.blog_title a {
    color: #2c3e50;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.blog_title a:hover {
    color: #ffa500;
}

.blog_excerpt {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.blog_content .main_btn {
    align-self: flex-start;
}

/* No Posts Message */
.no_posts {
    text-align: center;
    padding: 60px 20px;
    grid-column: 1 / -1;
}

.no_posts p {
    font-size: 1.2rem;
    color: #888;
}

/* Blog Post Page Specific Styles */
.blog_post_section {
    padding: 60px 20px;
    background-color: #fff;
}

.blog_post_container {
    max-width: 800px;
    margin: 0 auto;
}

.blog_post_header {
    margin-bottom: 40px;
}

.blog_post_header h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 20px;
    line-height: 1.3;
}

.blog_post_header .blog_meta {
    justify-content: flex-start;
    gap: 20px;
}

.blog_post_featured_image {
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 40px;
}

.blog_post_featured_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog_post_content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.blog_post_content h2 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-top: 30px;
    margin-bottom: 15px;
}

.blog_post_content h3 {
    font-size: 1.4rem;
    color: #2c3e50;
    margin-top: 25px;
    margin-bottom: 12px;
}

.blog_post_content p {
    margin-bottom: 20px;
}

.blog_post_content ul,
.blog_post_content ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.blog_post_content li {
    margin-bottom: 10px;
}

.blog_post_content strong {
    font-weight: 600;
    color: #2c3e50;
}

.blog_tags {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.blog_tags h3 {
    font-size: 1rem;
    margin-bottom: 15px;
    color: #2c3e50;
}

.tags_list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag_item {
    padding: 8px 16px;
    background-color: #f0f0f0;
    border-radius: 20px;
    color: #555;
    font-size: 0.9rem;
}

/* Related Posts Section */
.related_posts_section {
    padding: 60px 20px;
    background-color: #f9f9f9;
}

.related_posts_container {
    max-width: 1200px;
    margin: 0 auto;
}

.related_posts_container h2 {
    text-align: center;
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 40px;
}

.related_posts_grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

/* Breadcrumb Navigation */
.breadcrumb_nav {
    padding: 20px;
    background-color: #f9f9f9;
}

.breadcrumb_list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    list-style: none;
    padding: 0;
    margin: 0;
    max-width: 1200px;
    margin: 0 auto;
}

.breadcrumb_item {
    display: flex;
    align-items: center;
}

.breadcrumb_item a {
    color: #555;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb_item a:hover {
    color: #ffa500;
}

.breadcrumb_item span[aria-current="page"] {
    color: #ffa500;
    font-weight: 600;
}

.breadcrumb_separator {
    margin: 0 8px;
    color: #999;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog_grid {
        grid-template-columns: 1fr;
    }

    .related_posts_grid {
        grid-template-columns: 1fr;
    }

    .blog_post_header h1 {
        font-size: 2rem;
    }

    .blog_post_featured_image {
        height: 250px;
    }

    .filter_buttons {
        justify-content: flex-start;
    }

    .category_title h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .blog_section,
    .blog_post_section,
    .related_posts_section {
        padding: 40px 15px;
    }

    .blog_content {
        padding: 20px;
    }

    .blog_title a {
        font-size: 1.2rem;
    }
}
