/* Blog Page Specific Styles */

/* Blog Hero Section */
.blog-hero {
    position: relative;
    padding: 150px 0 80px;
    background: linear-gradient(135deg, #2C3E50 0%, #34495E 100%);
    overflow: hidden;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    background-image: 
        radial-gradient(circle at 20% 50%, white 2px, transparent 2px),
        radial-gradient(circle at 80% 80%, white 1px, transparent 1px),
        radial-gradient(circle at 40% 80%, white 1px, transparent 1px);
    background-size: 200px 200px;
    animation: drift 20s linear infinite;
}

@keyframes drift {
    from { transform: translate(0, 0); }
    to { transform: translate(-200px, -200px); }
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
    animation: fade-in-down 0.8s ease-out;
}

.text-gradient {
    background: linear-gradient(135deg, #87CEEB, #FFE4E1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 3rem;
    animation: fade-in-up 0.8s ease-out 0.2s;
    animation-fill-mode: both;
}

@keyframes fade-in-down {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Search Box */
.search-box {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    background: white;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: fade-in-up 0.8s ease-out 0.4s;
    animation-fill-mode: both;
}

.search-input {
    flex: 1;
    padding: 15px 25px;
    border: none;
    font-size: 1rem;
    outline: none;
}

.search-btn {
    padding: 0 25px;
    background: linear-gradient(135deg, #4A90E2, #7B68EE);
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: linear-gradient(135deg, #357ABD, #5A4FCF);
}

/* Featured Section */
.featured-section {
    padding: 80px 0;
    background: white;
}

.featured-post {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    background: #F8F9FA;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.featured-image {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.featured-post:hover .featured-image img {
    transform: scale(1.05);
}

.featured-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, #FF6B6B, #FF8E53);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
}

.featured-content {
    padding: 3rem;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1rem;
}

.post-category {
    color: #4A90E2;
    font-weight: 600;
    font-size: 0.9rem;
}

.post-date {
    color: #999;
    font-size: 0.9rem;
}

.featured-title {
    font-size: 2rem;
    color: #2C3E50;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.featured-excerpt {
    color: #546E7A;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 2rem;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.author-details {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: #2C3E50;
}

.read-time {
    color: #999;
    font-size: 0.9rem;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    color: #4A90E2;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    color: #357ABD;
    transform: translateX(5px);
}

/* Blog Categories */
.blog-categories {
    padding: 50px 0;
    background: #F8F9FA;
    position: sticky;
    top: 70px;
    z-index: 100;
}

.category-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 10px 25px;
    border: none;
    background: white;
    border-radius: 25px;
    font-weight: 600;
    color: #546E7A;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.tab-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.tab-btn.active {
    background: linear-gradient(135deg, #4A90E2, #7B68EE);
    color: white;
    box-shadow: 0 5px 20px rgba(74, 144, 226, 0.3);
}

/* Blog Grid */
.blog-grid-section {
    padding: 80px 0;
    background: white;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 60px;
}

.blog-post {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.post-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-post:hover .post-image img {
    transform: scale(1.1);
}

.post-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.blog-post:hover .post-overlay {
    opacity: 1;
}

.post-link {
    padding: 10px 25px;
    background: white;
    color: #2C3E50;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.blog-post:hover .post-link {
    transform: translateY(0);
}

.post-content {
    padding: 1.5rem;
}

.post-tag {
    display: inline-block;
    background: rgba(74, 144, 226, 0.1);
    color: #4A90E2;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
}

.post-title {
    font-size: 1.3rem;
    color: #2C3E50;
    margin: 1rem 0;
    line-height: 1.4;
}

.post-excerpt {
    color: #546E7A;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #999;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.page-btn {
    padding: 10px 15px;
    border: none;
    background: white;
    border-radius: 10px;
    font-weight: 600;
    color: #546E7A;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #4A90E2, #7B68EE);
    color: white;
    transform: translateY(-2px);
}

.page-btn.active {
    background: linear-gradient(135deg, #4A90E2, #7B68EE);
    color: white;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-dots {
    color: #999;
}

/* Newsletter Section */
.newsletter-section {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.1), rgba(123, 104, 238, 0.1));
}

.newsletter-box {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.newsletter-title {
    font-size: 2rem;
    color: #2C3E50;
    margin-bottom: 0.5rem;
}

.newsletter-subtitle {
    color: #546E7A;
    margin-bottom: 2rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.email-input {
    flex: 1;
    padding: 15px 25px;
    border: 2px solid #E0E0E0;
    border-radius: 30px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.email-input:focus {
    border-color: #4A90E2;
}

.subscribe-btn {
    padding: 15px 40px;
    background: linear-gradient(135deg, #4A90E2, #7B68EE);
    color: white;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.subscribe-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(74, 144, 226, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .featured-post {
        grid-template-columns: 1fr;
    }
    
    .featured-image {
        height: 300px;
    }
    
    .featured-content {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .blog-hero {
        padding: 120px 0 60px;
    }
    
    .search-box {
        margin: 0 15px;
    }
    
    .blog-categories {
        padding: 30px 0;
        position: relative;
        top: 0;
    }
    
    .category-tabs {
        padding: 0 15px;
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        gap: 0.5rem;
        -webkit-overflow-scrolling: touch;
    }
    
    .tab-btn {
        flex-shrink: 0;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-box {
        padding: 2rem;
        margin: 0 15px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .featured-title {
        font-size: 1.5rem;
    }
    
    .post-title {
        font-size: 1.1rem;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
    
    .page-btn {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
}