/* Blog Page Styles */

/* Back to Home Button */
.back-to-home {
    margin: 0 0 2rem 0;
    padding: 0 1rem;
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.back-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--neon-blue);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.75rem 1.25rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid var(--neon-blue);
    width: 100%;
    max-width: 200px;
    text-align: center;
}

.back-button:hover, .back-button:focus {
    background: var(--neon-blue);
    color: #000;
    transform: translateX(-5px);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.5);
    outline: none;
}

.back-button i {
    transition: transform 0.3s ease;
}

.back-button:hover i {
    transform: translateX(-3px);
}

/* Blog CTA Section */
.blog-cta {
    background: linear-gradient(135deg, rgba(21, 101, 192, 0.1) 0%, rgba(0, 0, 0, 0.2) 100%);
    border-radius: 15px;
    padding: 3rem 2rem;
    margin: 4rem auto 0;
    max-width: 900px;
    text-align: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(100, 181, 246, 0.2);
    transition: all 0.3s ease;
}

.blog-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-blue), transparent);
    animation: glow 3s linear infinite;
}

.blog-cta .cta-content h3 {
    color: var(--neon-blue);
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(100, 181, 246, 0.3);
}

.blog-cta .cta-content p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.blog-cta .cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 2rem;
    background: var(--neon-blue);
    color: #fff;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(100, 181, 246, 0.3);
    border: 2px solid transparent;
}

.blog-cta .cta-button i {
    transition: transform 0.3s ease;
}

.blog-cta .cta-button:hover {
    background: transparent;
    border-color: var(--neon-blue);
    color: var(--neon-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(100, 181, 246, 0.4);
}

.blog-cta .cta-button:hover i {
    transform: translateX(4px);
}

@keyframes glow {
    0% { opacity: 0.3; }
    50% { opacity: 1; }
    100% { opacity: 0.3; }
}

@media (max-width: 768px) {
    .back-to-home {
        padding: 0 1rem;
        margin: 0 auto 1.5rem;
    }
    
    .back-button {
        max-width: 100%;
        padding: 0.9rem 1.5rem;
        font-size: 1.1rem;
    }
    
    .blog-cta {
        padding: 2rem 1.5rem;
        margin: 2rem 1rem 0;
    }
    
    .blog-cta .cta-content h3 {
        font-size: 1.5rem;
    }
    
    .blog-cta .cta-content p {
        font-size: 1rem;
    }
}

.blog-page {
    padding: 8rem 2rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.page-title {
    font-size: 2.8rem;
    color: var(--text);
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
    z-index: 2;
    position: relative;
    padding-bottom: 1rem;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--neon-blue);
}

.page-subtitle {
    text-align: center;
    color: var(--neon-blue);
    font-size: 1.3rem;
    font-weight: 300;
    letter-spacing: 0.5px;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 4rem;
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.3);
    position: relative;
    padding: 0 2rem;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer Styles */
.footer {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    padding: 2rem 0;
    margin-top: 2rem;
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--neon-blue);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-blue), transparent);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
}

.footer p {
    color: var(--text);
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer:hover p {
    opacity: 1;
}

.footer .social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.footer .social-links a {
    color: var(--text);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
}

.footer .social-links a:hover {
    color: var(--neon-blue);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 243, 255, 0.3);
    border-color: var(--neon-blue);
    background: rgba(0, 243, 255, 0.1);
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer .social-links {
        margin-top: 1rem;
    }
}

/* Section Subtitle Styling */
.section-subtitle {
    text-align: center;
    color: var(--neon-blue);
    font-size: 1.3rem;
    font-weight: 300;
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto 3rem;
    letter-spacing: 0.5px;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 4rem;
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.3);
    position: relative;
    padding: 0 2rem;
    animation: fadeInUp 0.8s ease-out;
    opacity: 0.9;
}

.section-subtitle::after {
    content: '';
    display: block;
    width: 100px;
    height: 2px;
    background: var(--neon-blue);
    margin: 1.5rem auto 0;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.section-subtitle:hover {
    opacity: 1;
    text-shadow: 0 0 15px rgba(0, 243, 255, 0.5);
}

.section-subtitle:hover::after {
    width: 150px;
    opacity: 0.8;
    background: var(--neon-blue);
}

/* Blog Filters */
.blog-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--neon-blue);
    color: var(--neon-blue);
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--neon-blue);
    color: #000;
    transform: translateY(-2px);
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    margin: 3rem 0;
    padding: 0 1rem;
}

.blog-card {
    background: rgba(26, 26, 46, 0.8);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(0, 243, 255, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 243, 255, 0.25);
    border-color: rgba(0, 243, 255, 0.3);
}

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

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

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

.blog-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
    background: linear-gradient(to bottom, rgba(15, 15, 31, 0.8), rgba(26, 26, 46, 0.9));
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #8a8fb3;
}

.blog-category {
    color: var(--neon-blue);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-size: 0.7rem;
    padding: 0.4rem 1rem;
    background: linear-gradient(90deg, rgba(0, 243, 255, 0.15), rgba(0, 243, 255, 0.05));
    border-radius: 50px;
    display: inline-block;
    border: 1px solid rgba(0, 243, 255, 0.2);
    transition: all 0.3s ease;
}

.blog-title {
    color: white;
    font-size: 1.6rem;
    margin: 0.8rem 0 1.2rem;
    line-height: 1.4;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    font-weight: 600;
    letter-spacing: -0.3px;
}

.blog-title:hover {
    color: var(--neon-blue);
}

.blog-card p {
    color: #b8c1ec;
    margin-bottom: 1.5rem;
    flex: 1;
    line-height: 1.6;
    font-size: 1rem;
}

.blog-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.read-more {
    color: var(--neon-blue);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
    overflow: hidden;
}

.read-more::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--neon-blue);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.read-more i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

.read-more:hover {
    color: white;
    padding-left: 5px;
}

.read-more:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.read-more:hover i {
    transform: translateX(5px);
}

.read-time {
    color: #6c7293;
    font-size: 0.85rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 4rem;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #1a1a2e;
    color: #b8c1ec;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
}

.page-btn:hover,
.page-btn.active {
    background: var(--neon-blue);
    color: #000;
    transform: translateY(-2px);
}

.page-btn.next {
    width: auto;
    padding: 0 1.5rem;
    border-radius: 30px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-card {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .page-title {
        font-size: 2.5rem;
    }
    
    .page-subtitle {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .blog-filters {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 100%;
        max-width: 200px;
    }
    
    .blog-content {
        padding: 1.5rem;
    }
}
