/* Blog-specific styles for Xantra Group */

/* Blog Hero Section */
.blog-hero {
    background: linear-gradient(135deg, #0F183D 0%, #1a2654 100%);
    padding: 80px 0 60px;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}

.blog-hero-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, #EFEDE8 0%, #FF8038 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-hero-subtitle {
    font-size: 20px;
    margin-bottom: 40px;
    color: #EFEDE8;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

/* Search Bar */
.blog-search {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.search-input {
    flex: 1;
    padding: 16px 24px;
    border: 2px solid rgba(255, 128, 56, 0.3);
    border-radius: 50px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.95);
    color: #0F183D;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #FF8038;
    background: white;
    box-shadow: 0 4px 20px rgba(255, 128, 56, 0.2);
}

.search-btn {
    padding: 16px 32px;
    background: linear-gradient(135deg, #FF8038 0%, #ff6b1f 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 128, 56, 0.4);
}

/* Category Filter */
.blog-categories {
    padding: 40px 0;
    background: var(--bg-light);
    border-bottom: 1px solid rgba(15, 24, 61, 0.1);
}

.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.category-tag {
    padding: 10px 24px;
    background: white;
    border: 2px solid #EFEDE8;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: #0F183D;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-tag:hover {
    border-color: #FF8038;
    color: #FF8038;
    transform: translateY(-2px);
}

.category-tag.active {
    background: linear-gradient(135deg, #FF8038 0%, #ff6b1f 100%);
    border-color: #FF8038;
    color: white;
    box-shadow: 0 4px 12px rgba(255, 128, 56, 0.3);
}

/* Featured Posts Section */
.featured-posts {
    padding: 80px 0;
    background: white;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: #0F183D;
    margin-bottom: 48px;
    text-align: center;
}

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

.featured-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.featured-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(255, 128, 56, 0.2);
    border-color: rgba(255, 128, 56, 0.3);
}

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

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

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

.featured-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, #FF8038 0%, #ff6b1f 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-content {
    padding: 28px;
}

.post-category {
    display: inline-block;
    background: rgba(255, 128, 56, 0.1);
    color: #FF8038;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.featured-title {
    font-size: 22px;
    font-weight: 700;
    color: #0F183D;
    margin-bottom: 12px;
    line-height: 1.4;
}

.featured-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.featured-title a:hover {
    color: #FF8038;
}

.featured-excerpt {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.post-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: #999;
}

/* Blog Posts Grid */
.blog-posts {
    padding: 80px 0;
    background: var(--bg-light);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 32px;
    margin-bottom: 60px;
}

.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid #EFEDE8;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(255, 128, 56, 0.15);
    border-color: rgba(255, 128, 56, 0.3);
}

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

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

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

.blog-card-content {
    padding: 24px;
}

.blog-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #0F183D;
    margin-bottom: 10px;
    line-height: 1.4;
}

.blog-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card-title a:hover {
    color: #FF8038;
}

.blog-card-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.pagination-btn {
    padding: 10px 20px;
    background: white;
    border: 2px solid #EFEDE8;
    border-radius: 8px;
    color: #0F183D;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
    border-color: #FF8038;
    color: #FF8038;
}

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

.pagination-numbers {
    display: flex;
    gap: 8px;
}

.pagination-number {
    width: 40px;
    height: 40px;
    background: white;
    border: 2px solid #EFEDE8;
    border-radius: 8px;
    color: #0F183D;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-number:hover {
    border-color: #FF8038;
    color: #FF8038;
}

.pagination-number.active {
    background: linear-gradient(135deg, #FF8038 0%, #ff6b1f 100%);
    border-color: #FF8038;
    color: white;
}

/* Newsletter Section */
.newsletter-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #0F183D 0%, #1a2654 100%);
    color: white;
}

.newsletter-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-content h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #EFEDE8 0%, #FF8038 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.newsletter-content p {
    font-size: 18px;
    color: #EFEDE8;
    margin-bottom: 32px;
}

.newsletter-form {
    display: flex;
    gap: 12px;
}

.newsletter-form input {
    flex: 1;
    padding: 16px 24px;
    border: 2px solid rgba(255, 128, 56, 0.3);
    border-radius: 50px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.95);
    color: #0F183D;
}

.newsletter-form input:focus {
    outline: none;
    border-color: #FF8038;
    background: white;
}

.newsletter-form .btn-primary {
    padding: 16px 32px;
    background: linear-gradient(135deg, #FF8038 0%, #ff6b1f 100%);
    border: none;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.newsletter-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 128, 56, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-hero-title {
        font-size: 32px;
    }

    .blog-hero-subtitle {
        font-size: 16px;
    }

    .blog-search {
        flex-direction: column;
    }

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

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

    .category-tags {
        justify-content: flex-start;
    }

    .newsletter-form {
        flex-direction: column;
    }

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

@media (max-width: 480px) {
    .blog-hero-title {
        font-size: 28px;
    }

    .pagination {
        flex-wrap: wrap;
    }

    .pagination-numbers {
        order: -1;
        width: 100%;
        justify-content: center;
    }
}

/* Hide/Show based on category filter */
.blog-card.hidden {
    display: none;
}

.featured-card.hidden {
    display: none;
}
