/* Custom Search Results Styling */
#content .default-page {
    display: none;
}

.wide-tb-90 {
    padding-top: 0 !important;
}

.custom-search-results {
    margin: 2rem 0;
}

.search-results-header {
    text-align: center;
    padding: 0 0 2rem;
    border-bottom: 2px solid #f0f0f0;
}

.search-title {
    color: #333;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.search-section {
    margin-bottom: 0;
    padding: 0 0 1.5rem;
}

.section-title {
    color: #2c3e50;
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #e74c3c;
    display: inline-block;
}

.real-weddings-section .section-title,
.listings-section .section-title,
.posts-section .section-title {
    border-bottom-color: #F5C8C8;
}

/* Fallback card styles */
.listing-card,
.real-wedding-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.listing-card:hover,
.real-wedding-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.listing-card h3,
.real-wedding-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.listing-card h3 a,
.real-wedding-card h3 a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.listing-card h3 a:hover,
.real-wedding-card h3 a:hover {
    color: #e74c3c;
}

.listing-card .excerpt,
.real-wedding-card .excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.real-wedding-card .date {
    color: #888;
    font-size: 0.9rem;
    font-style: italic;
}

/* View More Button Styling */
.view-more-container {
    margin-top: 2rem;
    padding: 2rem 0;
}

#load-more-posts {
    /*background: linear-gradient(45deg, #e74c3c, #c0392b);*/
    border: none;
    /*padding: 12px 30px;*/
    font-size: 1rem;
    font-weight: 600;
    /*border-radius: 25px;*/
    transition: all 0.3s ease;
    /*text-transform: uppercase;*/
    letter-spacing: 0.5px;

    background-color: #F5C8C8;
    font-family: "Lato", Sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #221F1F;
    border-radius: 4px 4px 4px 4px;
    padding: 16px 24px 16px 24px;
}

#load-more-posts:hover {
    /*background: linear-gradient(45deg, #c0392b, #a93226);*/
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

#loading-spinner {
    margin-top: 1rem;
}

.spinner-border {
    color: #e74c3c;
}

/* No Results Styling */
.no-results,
.no-search-query {
    text-align: center;
    padding: 4rem 2rem;
    background: #f8f9fa;
    border-radius: 10px;
    margin: 2rem 0;
}

.no-results h2,
.no-search-query h2 {
    color: #2c3e50;
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.no-results p,
.no-search-query p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .search-title {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .search-results-header {
        padding: 1rem 0;
    }
    
    .search-section {
        margin-bottom: 2rem;
        padding: 1rem 0;
    }
    
    .listing-card,
    .real-wedding-card {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .custom-search-results {
        margin: 1rem 0;
    }
    
    .search-title {
        font-size: 1.25rem;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    #load-more-posts {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .wedding-listing .img .img-content {
        height: auto;
    }
}

/* Animation for new content loading */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.posts-container > *:last-child {
    animation: fadeInUp 0.5s ease;
}

