/* Blog Index Page Styles */

/* Blog Hero Section */
.hero-section {
    background: linear-gradient(135deg, #264653 0%, #2a9d8f 100%);
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M0 0h100v100H0z" fill="none"/><path d="M0 20c20 0 20-20 40-20s20 20 40 20 20-20 40-20v100c-20 0-20 20-40 20s-20-20-40-20-20 20-40 20z" fill="rgba(255,255,255,0.05)"/></svg>') repeat;
    animation: wave 20s linear infinite;
}

@keyframes wave {
    0% { transform: translateX(0); }
    100% { transform: translateX(100px); }
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.9);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}


/* Search Bar */
.search-container {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

.search-bar {
    display: flex;
    align-items: center;
    position: relative;
    background: white;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

.search-icon {
    position: absolute;
    left: 20px;
    color: #94a3b8;
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 16px 120px 16px 50px;
    border: none;
    font-size: 1rem;
    background: transparent;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    box-shadow: 0 6px 30px rgba(0,0,0,0.15);
}

.search-button {
    background: #e76f51;
    border: none;
    color: white;
    padding: 16px 30px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.search-button:hover {
    background: #d85a3c;
}

/* Category Filter */
.category-filter-section {
    padding: 40px 0;
    background: white;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 80px;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

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

/* Icons in meta information */
.post-meta i,
.author i,
.date i {
    font-size: 0.875rem;
    margin-right: 4px;
}

.category-filter {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: thin;
    scrollbar-color: #e2e8f0 transparent;
}

.category-filter::-webkit-scrollbar {
    height: 4px;
}

.category-filter::-webkit-scrollbar-track {
    background: transparent;
}

.category-filter::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 2px;
}

.category-btn {
    padding: 8px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 25px;
    background: white;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.category-btn:hover {
    border-color: #e76f51;
    color: #e76f51;
}

.category-btn.active {
    background: #e76f51;
    color: white;
    border-color: #e76f51;
}

/* Blog Content */
.blog-content {
    background: white;
    padding-top: 0;
}

/* Ensure proper styling for all sections */
section {
    margin-bottom: 60px;
}

.blog-section {
    background: #f8fafc;
    padding: 60px 0;
    margin-bottom: 0;
}

/* Featured Post */
.featured-section {
    margin-bottom: 60px;
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    position: relative;
    padding-left: 20px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 30px;
    background: #e76f51;
    border-radius: 2px;
}

.section-subtitle {
    color: #64748b;
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

.featured-post {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.featured-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0,0,0,0.12);
}

.featured-image {
    position: relative;
    overflow: hidden;
    height: 400px;
}

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

.featured-post:hover .featured-image img {
    transform: scale(1.05);
}

.featured-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-content .category-badge {
    position: static;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.featured-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #fef3c7;
    color: #d97706;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.featured-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 15px;
    line-height: 1.3;
}

.featured-excerpt {
    color: #64748b;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

/* Blog Card */
.blog-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.image-container {
    position: relative;
    overflow: hidden;
    height: 220px;
}

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

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

.category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(38, 70, 83, 0.9);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Category-specific badge colors */
.category-adventures {
    background: rgba(231, 111, 81, 0.9);
}

.category-culture {
    background: rgba(42, 157, 143, 0.9);
}

.category-tips {
    background: rgba(244, 162, 97, 0.9);
}

.category-dining {
    background: rgba(233, 196, 106, 0.9);
}

.read-time {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 5px;
}

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

.post-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #94a3b8;
    flex-wrap: wrap;
}

.meta-divider {
    color: #cbd5e1;
}

.date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.author {
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-excerpt {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}

.read-more,
.read-more-link {
    color: #e76f51;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.read-more:hover,
.read-more-link:hover {
    gap: 10px;
}

.engagement {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: #94a3b8;
}

.engagement span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Newsletter Section */
/* Make sure icon colors work in category badges */
.category-badge i {
    margin-right: 6px;
}

.newsletter-section {
    background: linear-gradient(135deg, #e76f51 0%, #f4a261 100%);
    padding: 60px 20px;
    border-radius: 20px;
    margin: 60px auto;
    max-width: 1200px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.newsletter-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-title {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
}

.newsletter-text {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    max-width: 450px;
    margin: 0 auto;
}

.newsletter-input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    background: white;
}

.newsletter-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.3);
}

.newsletter-btn {
    padding: 14px 30px;
    background: #264653;
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-btn:hover {
    background: #1e3a47;
    transform: translateY(-2px);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 60px;
}

.pagination-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e2e8f0;
    background: white;
    color: #64748b;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.pagination-btn:hover {
    border-color: #e76f51;
    color: #e76f51;
}

.page-btn.active {
    background: #e76f51;
    color: white;
    border-color: #e76f51;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-dots {
    color: #94a3b8;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 968px) {
    .featured-post {
        grid-template-columns: 1fr;
    }
    
    .featured-image {
        height: 250px;
    }
    
    .featured-content {
        padding: 30px;
    }
    
    .featured-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1.1rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .search-bar {
        flex-wrap: wrap;
    }
    
    .search-button {
        width: 100%;
        border-radius: 25px;
        margin-top: 10px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-btn {
        width: 100%;
    }
    
    .category-filter-section {
        top: 60px;
    }
    
    .category-btn span {
        display: none;
    }
    
    .category-btn {
        padding: 8px 12px;
    }
}

/* Loading Animation */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

/* Ensure images maintain aspect ratio */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}