/* Blog Page Specific Styles */
:root {
    --category-guide: #ff9f43;
    --category-news: #0abde3;
    --category-events: #ee5253;
    --category-updates: #10ac84;
    --category-tips: #5f27cd;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Blog Hero Section */
.blog-hero {
    background: linear-gradient(135deg, var(--secondary-pink) 0%, var(--primary-pink) 100%);
    color: var(--white);
    padding: 3rem 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: 200px;
    opacity: 0.1;
    z-index: 0;
}

.blog-hero .container {
    position: relative;
    z-index: 1;
}

.blog-hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.blog-hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Blog Search */
.blog-search {
    max-width: 500px;
    margin: 0 auto;
}

.blog-search form {
    display: flex;
    background-color: var(--white);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.blog-search input {
    flex-grow: 1;
    padding: 1rem 1.5rem;
    border: none;
    outline: none;
    font-size: 1rem;
}

.blog-search button {
    background-color: var(--accent-blue);
    color: var(--white);
    border: none;
    padding: 0 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.blog-search button:hover {
    background-color: var(--primary-pink);
}

/* Blog Categories */
.blog-categories {
    background-color: var(--white);
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 99;
}

.categories-wrapper {
    display: flex;
    overflow-x: auto;
    padding: 0.5rem 0;
    gap: 1rem;
    justify-content: center;
}

.category-pill {
    display: inline-block;
    background-color: var(--light-pink);
    color: var(--dark-text);
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.category-pill i {
    margin-right: 0.5rem;
}

.category-pill:hover, .category-pill.active {
    background-color: var(--primary-pink);
    color: var(--white);
    transform: translateY(-2px);
}

/* Featured Post */
.featured-post {
    padding: 3rem 0;
    background-color: var(--light-pink);
}

.featured-wrapper {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.featured-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-wrapper:hover .featured-image img {
    transform: scale(1.05);
}

.featured-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: var(--category-guide);
    color: var(--white);
    padding: 0.4rem 1rem;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.featured-content {
    padding: 2rem;
}

.post-date {
    display: block;
    color: var(--light-text);
    font-size: 0.9rem;
}

.post-date i {
    margin-right: 0.5rem;
}

.featured-content h2 {
    color: var(--dark-text);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.featured-content p {
    color: var(--light-text);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.post-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--light-text);
    font-size: 0.9rem;
}

.post-meta span i {
    margin-right: 0.5rem;
}

/* Latest Posts Section */
.latest-posts {
    padding: 4rem 0;
    background-color: var(--white);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--dark-pink);
    font-size: 2rem;
    position: relative;
}

.section-title::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--primary-pink);
    margin: 1rem auto 0;
    border-radius: 2px;
}

.blog-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

.blog-card {
    flex: 1 1 350px;
    max-width: 380px;
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 450px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.blog-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.3rem 0.8rem;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: bold;
    color: var(--white);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.blog-category:nth-of-type(1) {
    background-color: var(--category-guide);
}

.blog-card:nth-child(2) .blog-category,
.blog-card:nth-child(4) .blog-category {
    background-color: var(--category-events);
}

.blog-card:nth-child(3) .blog-category,
.blog-card:nth-child(6) .blog-category {
    background-color: var(--category-news);
}

.blog-card:nth-child(4) .blog-category {
    background-color: var(--category-tips);
}

.blog-info {
    padding: 1.5rem;
    flex: 1;
}

.blog-info h3 {
    color: var(--dark-text);
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    line-height: 1.4;
    height: 2.8em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.blog-info p {
    color: var(--light-text);
    line-height: 1.6;
    height: 4.8em;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.blog-card-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background-color: var(--white);
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
}

.blog-views {
    font-size: 0.9rem;
    color: var(--light-text);
    margin-bottom: 1rem;
}

.blog-views i {
    margin-right: 0.5rem;
}

.read-more-button {
    display: block;
    width: 100%;
    background-color: var(--primary-pink);
    color: var(--white);
    text-align: center;
    padding: 0.8rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.read-more-button:hover {
    background-color: var(--dark-pink);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination a, .pagination span {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--white);
    color: var(--dark-text);
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--light-pink);
}

.pagination a:hover, .pagination a.active {
    background-color: var(--primary-pink);
    color: var(--white);
    border-color: var(--primary-pink);
}

.pagination .next-page {
    padding: 0.5rem 1.5rem;
}

.pagination .next-page i {
    margin-left: 0.5rem;
}

/* Blog Sidebar Section */
.blog-sidebar-section {
    padding: 4rem 0;
    background-color: var(--light-pink);
}

.sidebar-grid {
    display: flex;
    gap: 2rem;
}

.main-content {
    flex: 2;
}

.sidebar {
    flex: 1;
}

/* Popular Topics */
.popular-topics {
    background-color: var(--white);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.sidebar-title {
    color: var(--dark-pink);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.sidebar-title::after {
    content: "";
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--primary-pink);
    position: absolute;
    bottom: 0;
    left: 0;
    border-radius: 1.5px;
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.topic-card {
    background-color: var(--light-pink);
    border-radius: 8px;
    padding: 1.2rem;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.topic-card:hover {
    transform: translateY(-5px);
    background-color: var(--primary-pink);
    color: var(--white);
}

.topic-icon {
    font-size: 2rem;
    color: var(--primary-pink);
    margin-bottom: 0.8rem;
}

.topic-card:hover .topic-icon {
    color: var(--white);
}

.topic-card h3 {
    color: var(--dark-text);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.topic-card p {
    color: var(--light-text);
    font-size: 0.9rem;
}

.topic-card:hover h3, .topic-card:hover p {
    color: var(--white);
}

/* Discord Promo */
.discord-promo {
    background: linear-gradient(135deg, #7289da 0%, #5865f2 100%);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    margin-bottom: 2rem;
}

.discord-content {
    padding: 2rem;
    color: var(--white);
    flex: 2;
}

.discord-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.discord-content p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.discord-button {
    display: inline-block;
    background-color: var(--white);
    color: #5865f2;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.discord-button:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.discord-button i {
    margin-right: 0.5rem;
}

.discord-image {
    flex: 1;
    background-color: #7289da;
    display: flex;
    align-items: center;
    justify-content: center;
}

.discord-image img {
    max-height: 200px;
    object-fit: contain;
}

/* Sidebar Widgets */
.sidebar-widget {
    background-color: var(--white);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.widget-title {
    color: var(--dark-pink);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.widget-title::after {
    content: "";
    display: block;
    width: 40px;
    height: 3px;
    background-color: var(--primary-pink);
    position: absolute;
    bottom: 0;
    left: 0;
    border-radius: 1.5px;
}

/* Recent Posts Widget */
.recent-posts-list {
    list-style: none;
}

.recent-posts-list li {
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 1rem;
}

.recent-posts-list li:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.recent-posts-list a {
    display: flex;
    gap: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.recent-posts-list a:hover {
    opacity: 0.8;
}

.post-thumb {
    width: 70px;
    height: 70px;
    border-radius: 5px;
    overflow: hidden;
    flex-shrink: 0;
}

.post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-info h4 {
    color: var(--dark-text);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.post-info .post-date {
    color: var(--light-text);
    font-size: 0.8rem;
    margin-bottom: 0;
}

/* Tags Widget */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background-color: var(--light-pink);
    color: var(--dark-text);
    border-radius: 5px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag:hover {
    background-color: var(--primary-pink);
    color: var(--white);
    transform: translateY(-2px);
}

/* Newsletter Widget */
.sidebar-widget.newsletter p {
    color: var(--light-text);
    margin-bottom: 1.2rem;
    line-height: 1.6;
}

.sidebar-form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.sidebar-form input {
    padding: 0.8rem 1rem;
    border: 1px solid var(--light-pink);
    border-radius: 5px;
    outline: none;
    font-size: 0.9rem;
}

.subscribe-btn {
    background-color: var(--primary-pink);
    color: var(--white);
    border: none;
    padding: 0.8rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.subscribe-btn:hover {
    background-color: var(--dark-pink);
}

/* Responsive Design */
@media (max-width: 992px) {
    .sidebar-grid {
        flex-direction: column;
    }
    
    .sidebar {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .discord-promo {
        flex-direction: column;
    }
    
    .discord-image {
        height: 150px;
    }
}

@media (max-width: 768px) {
    .blog-hero h1 {
        font-size: 2.2rem;
    }
    
    .featured-image {
        height: 200px;
    }
    
    .featured-content h2 {
        font-size: 1.5rem;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .topics-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-card {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .categories-wrapper {
        justify-content: flex-start;
        padding-bottom: 0.5rem;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
}

.search-results-container {
    background-color: var(--light-pink);
    padding: 2rem 0;
    margin-bottom: 2rem;
    display: none; /* Hidden by default, shown via JavaScript */
}

.search-results-header {
    margin-bottom: 2rem;
}

.search-results-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-results-header h2 {
    color: var(--dark-pink);
    font-size: 1.5rem;
    margin: 0;
}

.clear-search {
    background-color: var(--primary-pink);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.clear-search:hover {
    background-color: var(--dark-pink);
    transform: translateY(-2px);
}

.no-results {
    width: 100%;
    text-align: center;
    padding: 3rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.no-results h3 {
    color: var(--dark-pink);
    margin-bottom: 1rem;
}

.no-results p {
    color: var(--light-text);
}

/* Highlight search term in results */
.search-highlight {
    background-color: rgba(255, 105, 180, 0.2);
    padding: 0 3px;
    border-radius: 3px;
}

/* Add this to your blog.css file */

.clear-search:hover {
    background-color: var(--dark-pink);
    transform: translateY(-2px);
}

.result-count {
    color: var(--light-text);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    width: 100%;
}

.no-results {
    width: 100%;
    text-align: center;
    padding: 3rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.no-results h3 {
    color: var(--dark-pink);
    margin-bottom: 1rem;
}

.no-results p {
    color: var(--light-text);
}

/* Highlight search term in results */
.search-highlight {
    background-color: rgba(255, 105, 180, 0.2);
    padding: 0 3px;
    border-radius: 3px;
}

/* Add this to your blog.css file */
/* Search Results Styling - Improved Design */
.search-results-container {
    background: linear-gradient(135deg, var(--secondary-pink) 0%, var(--light-pink) 100%);
    padding: 2rem 0;
    margin-bottom: 2rem;
    display: none; /* Hidden by default, shown via JavaScript */
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

/* Decorative bubble elements for search results */
.search-results-container::before,
.search-results-container::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
    z-index: 0;
}

.search-results-container::before {
    width: 120px;
    height: 120px;
    top: -30px;
    right: 10%;
}

.search-results-container::after {
    width: 80px;
    height: 80px;
    bottom: -20px;
    left: 5%;
}

.search-results-header {
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.search-results-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.search-results-header h2 {
    color: var(--dark-pink);
    font-size: 1.5rem;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    font-weight: bold;
}

.clear-search {
    background-color: var(--white);
    color: var(--primary-pink);
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.clear-search:hover {
    background-color: var(--primary-pink);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.15);
}

.result-count {
    margin-top: 0.5rem;
    width: 100%;
    font-size: 1rem;
    color: var(--dark-text);
    background-color: rgba(255, 255, 255, 0.3);
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-weight: 500;
}

.no-results {
    width: 100%;
    text-align: center;
    padding: 3rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.no-results::before {
    content: "";
    position: absolute;
    width: 150px;
    height: 150px;
    background-color: rgba(255, 182, 193, 0.1);
    border-radius: 50%;
    top: -50px;
    right: -50px;
}

.no-results h3 {
    color: var(--dark-pink);
    margin-bottom: 1rem;
    font-weight: bold;
}

.no-results p {
    color: var(--light-text);
}

/* Highlight search term in results */
.search-highlight {
    background-color: rgba(255, 105, 180, 0.2);
    color: var(--dark-pink);
    padding: 0 3px;
    border-radius: 3px;
    font-weight: bold;
}

/* Search results wrapper */
.search-results-wrapper {
    position: relative;
    z-index: 1;
}

/* Additional CSS for Dynamic Blog Features */

/* Topic Card Styles */
.topic-card {
    background-color: var(--light-pink);
    border-radius: 8px;
    padding: 1.2rem;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.topic-card:hover,
.topic-card.active {
    background-color: var(--primary-pink);
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.topic-card:hover .topic-icon,
.topic-card.active .topic-icon {
    color: var(--white);
}

.topic-card:hover h3,
.topic-card.active h3,
.topic-card:hover p,
.topic-card.active p {
    color: var(--white);
}

.topic-icon {
    font-size: 2rem;
    color: var(--primary-pink);
    margin-bottom: 0.8rem;
    transition: all 0.3s ease;
}

.topic-card h3 {
    color: var(--dark-text);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.topic-card p {
    color: var(--light-text);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

/* Category Label Styles */
.blog-category {
    cursor: pointer;
    transition: all 0.3s ease;
}

.blog-category:hover {
    transform: scale(1.05);
}

/* Filter Reset Button */
.clear-filter-btn {
    display: block;
    margin: 2rem auto;
    padding: 0.8rem 1.5rem;
    background-color: var(--accent-blue);
    color: var(--white);
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.clear-filter-btn:hover {
    background-color: var(--primary-pink);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Recent Posts Styles */
.recent-posts-list li {
    transition: all 0.3s ease;
}

.recent-posts-list li:hover {
    transform: translateX(5px);
}

.post-thumb {
    overflow: hidden;
    border-radius: 5px;
}

.post-thumb img {
    transition: all 0.5s ease;
}

.recent-posts-list li:hover .post-thumb img {
    transform: scale(1.1);
}

/* Animation for filtered posts */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-card.filtered {
    animation: fadeIn 0.4s ease forwards;
}

/* Loading indicator for when filtering is in progress */
.loading-indicator {
    text-align: center;
    padding: 2rem;
    color: var(--dark-pink);
    font-size: 1.2rem;
    display: none;
}

.loading-indicator i {
    animation: spin 1s infinite linear;
    margin-right: 0.5rem;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Blog Post Specific Styles - Add to the end of your existing blog.css file */

/* Container */
.blog-post-container {
    padding: 3rem 0;
    background-color: var(--white);
}

/* Post Header */
.post-header {
    text-align: center;
    margin-bottom: 2rem;
}

.post-category {
    display: inline-block;
    background-color: var(--category-guide);
    color: var(--white);
    padding: 0.4rem 1.2rem;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Category colors - using class-based approach for better compatibility */
.category-guide {
    background-color: var(--category-guide);
}

.category-news {
    background-color: var(--category-news);
}

.category-events {
    background-color: var(--category-events);
}

.category-updates {
    background-color: var(--category-updates);
}

.category-tips {
    background-color: var(--category-tips);
}

.post-title {
    font-size: 2.5rem;
    color: var(--dark-text);
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

.post-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    color: var(--light-text);
    font-size: 0.9rem;
}

.post-meta > div {
    display: flex;
    align-items: center;
}

.post-meta i {
    margin-right: 0.5rem;
}

/* Featured Image */
.post-featured-image {
    margin-bottom: 3rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 500px;
    object-fit: cover;
}

/* Post Content */
.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--dark-text);
    margin-bottom: 3rem;
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content h2 {
    font-size: 1.8rem;
    color: var(--dark-pink);
    margin: 2.5rem 0 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--light-pink);
}

.post-content h3 {
    font-size: 1.5rem;
    color: var(--dark-text);
    margin: 2rem 0 1.2rem;
}

.post-content ul, 
.post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.post-content li {
    margin-bottom: 0.8rem;
}

.post-content blockquote {
    border-left: 4px solid var(--primary-pink);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background-color: var(--light-pink);
    font-style: italic;
    border-radius: 0 5px 5px 0;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 2rem 0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.post-content a {
    color: var(--primary-pink);
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.post-content a:hover {
    color: var(--dark-pink);
    text-decoration: underline;
}

/* Post Footer */
.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--light-pink);
    margin-bottom: 3rem;
}

.post-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.post-tags span {
    font-weight: bold;
    color: var(--dark-text);
}

.post-tags a {
    display: inline-block;
    background-color: var(--light-pink);
    color: var(--dark-text);
    padding: 0.3rem 0.8rem;
    border-radius: 30px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.post-tags a:hover {
    background-color: var(--primary-pink);
    color: var(--white);
    transform: translateY(-2px);
}

.post-share {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.post-share span {
    font-weight: bold;
    color: var(--dark-text);
}

.post-share a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background-color: var(--light-pink);
    color: var(--dark-text);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.post-share a:hover {
    background-color: var(--primary-pink);
    color: var(--white);
    transform: translateY(-2px);
}

/* Table of Contents */
.toc {
    background-color: var(--light-pink);
    border-radius: 10px;
    padding: 1.5rem;
    margin: 2rem 0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.toc-title {
    font-size: 1.3rem;
    color: var(--dark-pink);
    margin-bottom: 1rem;
    font-weight: bold;
}

.toc ul {
    list-style-type: none;
    padding-left: 0;
}

.toc li {
    margin-bottom: 0.5rem;
}

.toc a {
    color: var(--dark-text);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.toc a:hover {
    color: var(--primary-pink);
    transform: translateX(5px);
}

/* Code Blocks */
.post-content pre {
    background-color: #f5f5f5;
    padding: 1.5rem;
    border-radius: 5px;
    overflow-x: auto;
    margin: 2rem 0;
    font-family: monospace;
    font-size: 0.9rem;
    line-height: 1.4;
}

.post-content code {
    background-color: #f5f5f5;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: monospace;
    font-size: 0.9rem;
}

/* Author Box */
.author-box {
    display: flex;
    align-items: center;
    background-color: var(--light-pink);
    border-radius: 10px;
    padding: 1.5rem;
    margin: 3rem 0;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h3 {
    font-size: 1.3rem;
    color: var(--dark-text);
    margin-bottom: 0.5rem;
}

.author-info p {
    color: var(--light-text);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Responsive Design for Blog Post */
@media (max-width: 768px) {
    .post-title {
        font-size: 2rem;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .post-content {
        font-size: 1rem;
    }
    
    .post-footer {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .post-tags, .post-share {
        width: 100%;
        justify-content: center;
    }
    
    .author-box {
        flex-direction: column;
        text-align: center;
    }
    
    .author-avatar {
        margin-right: 0;
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .post-content h2 {
        font-size: 1.5rem;
    }
    
    .post-content h3 {
        font-size: 1.3rem;
    }
    
    .related-posts .blog-grid {
        flex-direction: column;
    }
    
    .related-posts .blog-card {
        width: 100%;
        max-width: 100%;
    }
}

.blog-category:nth-of-type(1) {
    background-color: var(--category-guide);
}

.blog-card:nth-child(2) .blog-category,
.blog-card:nth-child(4) .blog-category {
    background-color: var(--category-events);
}

.blog-card:nth-child(3) .blog-category,
.blog-card:nth-child(6) .blog-category {
    background-color: var(--category-news);
}

.blog-card:nth-child(4) .blog-category {
    background-color: var(--category-tips);
}

