/* All Posts Page Styles */
body {
    background-color: #000000;
}

.travel-container {
    min-height: 100vh;
    padding-bottom: 0;
}

/* Header spacer to prevent content overlap with fixed header */
.header-spacer {
    display: none; /* Hidden by default on desktop */
}

.all-posts-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 20px 60px;
}

.page-header {
    text-align: center;
    margin-bottom: 50px;
}

.page-header h1 {
    font-size: 48px;
    font-weight: 800;
    color: white;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 18px;
    color: #bbb;
    max-width: 700px;
    margin: 0 auto;
}

.filter-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

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

.filter-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn.active, .filter-btn:hover {
    background-color: #e6c15a;
    color: #000;
}

.filter-options {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-control {
    display: flex;
    align-items: center;
}

.filter-search {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 14px;
    width: 180px;
    transition: all 0.3s ease;
}

.filter-search:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    width: 200px;
}

.filter-search::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.sort-control {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    position: relative;
}

.sort-control label {
    font-size: 14px;
}

.sort-dropdown {
    position: relative;
}

.sort-button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    min-width: 100px;
}

.sort-button::after {
    content: "▼";
    margin-left: 8px;
    font-size: 10px;
}

.sort-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: none;
    border-radius: 0 0 4px 4px;
    z-index: 10;
    display: none;
}

.sort-options.show {
    display: block;
}

.sort-option {
    padding: 8px 12px;
    font-size: 14px;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sort-option:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #e6c15a;
}

.sort-select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}

.all-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.post-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.post-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

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

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

.post-card:hover .post-image img {
    transform: scale(1.1);
}

.post-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.post-category {
    color: #e6c15a;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.post-title {
    color: white;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
}

.post-excerpt {
    color: #bbb;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.read-more {
    color: #e6c15a;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.3s;
    align-self: flex-start;
}

.read-more:hover {
    opacity: 0.8;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-btn.next {
    width: auto;
    padding: 0 20px;
    border-radius: 20px;
}

.pagination-btn.active, .pagination-btn:hover {
    background-color: #e6c15a;
    color: #000;
}

.no-results-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    font-weight: 500;
}

/* Featured Section Styles */
.featured-section {
    margin-top: 100px;
    margin-bottom: 80px;
}

.section-title {
    font-size: 36px;
    font-weight: 800;
    color: white;
    margin-bottom: 15px;
    text-align: center;
}

.section-description {
    font-size: 18px;
    color: #bbb;
    max-width: 700px;
    margin: 0 auto 40px;
    text-align: center;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(350px, 100%), 1fr));
    gap: 30px;
}

.featured-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.featured-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.featured-image {
    height: 240px;
    overflow: hidden;
}

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

.featured-card:hover .featured-image img {
    transform: scale(1.1);
}

.featured-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.featured-label {
    display: inline-block;
    background-color: #e6c15a;
    color: #000;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 3px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-category {
    color: #e6c15a;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.featured-title {
    color: white;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}

.featured-excerpt {
    color: #bbb;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 20px;
    flex-grow: 1;
}

.featured-link {
    color: #e6c15a;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.3s;
    align-self: flex-start;
}

.featured-link:hover {
    opacity: 0.8;
}

/* Footer Styles */
.site-footer {
    background-color: rgba(20, 20, 20, 0.9);
    padding: 60px 0 20px;
    color: #fff;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-logo {
    flex-basis: 250px;
}

.footer-logo .logo-text {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    display: block;
}

.footer-logo p {
    color: #bbb;
    font-size: 14px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-column h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #e6c15a;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column li {
    margin-bottom: 10px;
}

.footer-column a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 14px;
}

.footer-column a:hover {
    color: #e6c15a;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
    text-align: center;
}

.footer-bottom p {
    color: #999;
    font-size: 13px;
}

/* Media Queries */
@media (max-width: 768px) {
    .header-spacer {
        display: block; /* Show on mobile/tablet */
        height: 10px; /* Initial height */
        background-color: #000000; /* Match the page background */
    }
    
    .all-posts-container {
        padding: 150px 15px 40px;
    }
    
    .page-header h1 {
        font-size: 36px;
    }
    
    .filter-controls {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-options {
        width: 100%;
        flex-wrap: wrap;
    }
    
    .search-control, .sort-control {
        margin-top: 10px;
    }
    
    .all-posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 30px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }

    .search-overlay {
        padding: 0 10px;
    }

    .search-container {
        margin-top: 60px;
        width: 100%;
        padding: 15px;
        max-height: 85vh;
        overflow-y: auto;
    }

    .search-header h2 {
        font-size: 20px;
    }

    .filter-search {
        width: 150px;
        font-size: 13px;
        padding: 7px 10px;
    }

    .filter-search:focus {
        width: 170px;
    }

    .search-results-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .header-spacer {
        height: 0px; /* More height on very small screens */
    }
    
    .page-header h1 {
        font-size: 28px;
    }
    
    .all-posts-container {
        padding-top: 180px;
    }
    
    .all-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-content {
        padding: 20px;
    }
    
    .featured-title {
        font-size: 20px;
    }

    .search-container {
        margin-top: 50px;
        padding: 12px;
    }

    .search-header h2 {
        font-size: 18px;
    }

    .close-btn {
        padding: 5px;
    }

    .filter-search {
        width: 130px;
        font-size: 12px;
    }

    .filter-search:focus {
        width: 150px;
    }
}

@media (max-width: 320px) {
    .all-posts-container {
        padding: 150px 10px 30px;
    }

    .page-header h1 {
        font-size: 24px;
    }

    .page-header p {
        font-size: 14px;
    }

    .section-title {
        font-size: 24px;
    }

    .section-description {
        font-size: 14px;
    }

    .featured-title {
        font-size: 18px;
    }

    .featured-excerpt {
        font-size: 13px;
    }

    .featured-content {
        padding: 15px;
    }

    .filter-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .filter-search {
        width: 100%;
        font-size: 12px;
    }

    .filter-search:focus {
        width: 100%;
    }

    .post-title {
        font-size: 16px;
    }

    .post-excerpt {
        font-size: 13px;
    }
}