/* Blog Page Specific CSS */

/* Blog Navigation */
.blog-navigation {
    margin-bottom: 20px;
    text-align: left;
}

.back-to-blog {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.back-to-blog:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Single Blog Post Styles */
.blog-post-main {
    padding: 80px 0;
    background: var(--background-light);
}

.full-blog-post {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    padding: 40px 30px;
    font-family: var(--font-body);
}

.full-blog-post h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}

.full-blog-post .post-meta {
    text-align: center;
    color: var(--text-lighter);
    margin-bottom: 25px;
    font-size: 15px;
}

.full-blog-post .post-main-img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.07);
}

.full-blog-post p, .full-blog-post ul, .full-blog-post ol {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.full-blog-post ul, .full-blog-post ol {
    padding-left: 20px;
    margin-bottom: 25px;
}

.full-blog-post li {
    margin-bottom: 10px;
}

.full-blog-post a {
    color: var(--accent-color);
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.2s;
}
.full-blog-post a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.blog-hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    text-align: center;
}

.blog-hero .hero-content h1 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 25px;
}

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

/* Featured Post */
.featured-post {
    padding: 80px 0;
    background: white;
}

.featured-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.featured-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.post-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 14px;
}

.category {
    background: var(--accent-color);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.date {
    color: var(--text-lighter);
}

.featured-text h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 2rem;
}

.featured-text p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 25px;
}

.read-more {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: var(--primary-color);
}

/* Blog Grid */
.blog-grid {
    padding: 80px 0;
    background: var(--background-gray);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.blog-post {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.post-image {
    position: relative;
}

.post-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent-color);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.post-content {
    padding: 25px;
}

.post-content .post-meta {
    margin-bottom: 15px;
}

.read-time {
    color: var(--text-lighter);
}

.post-content h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.post-content p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
}

.post-content .read-more {
    font-size: 14px;
}

/* Tips Section */
.tips-section {
    padding: 80px 0;
    background: white;
}

.tips-section h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 50px;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.tip-card {
    background: var(--background-light-gray);
    padding: 25px;
    border-radius: 10px;
    display: flex;
    gap: 20px;
    transition: all 0.3s ease;
}

.tip-card:hover {
    background: white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.tip-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tip-icon i {
    font-size: 1.5rem;
    color: white;
}

.tip-card h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.tip-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* Recent Work */
.recent-work {
    padding: 80px 0;
    background: var(--background-gray);
}

.recent-work h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 50px;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.work-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
}

.work-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.work-item:hover img {
    transform: scale(1.1);
}

.work-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: all 0.3s ease;
}

.work-item:hover .work-overlay {
    transform: translateY(0);
}

.work-overlay h4 {
    color: white;
    margin-bottom: 5px;
    font-size: 1rem;
}

.work-overlay p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 14px;
}

/* Newsletter Section */
.newsletter-section {
    padding: 80px 0;
    background: var(--primary-color);
    color: white;
    text-align: center;
}

.newsletter-content h2 {
    color: white;
    margin-bottom: 20px;
}

.newsletter-content p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto 35px;
    line-height: 1.6;
}

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

.newsletter-form input {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
}

.newsletter-form button {
    padding: 15px 25px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background: #b8941f;
}

/* CTA Section */
.cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    text-align: center;
}

.cta-content h2 {
    color: white;
    margin-bottom: 20px;
    font-size: 2.5rem;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 35px;
}

.cta .btn-primary {
    background-color: white;
    color: var(--primary-color);
    font-size: 18px;
    padding: 18px 45px;
}

.cta .btn-primary:hover {
    background-color: var(--background-light-gray);
    transform: translateY(-3px);
}

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

    .work-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-hero .hero-content h1 {
        font-size: 2.5rem;
    }

    .featured-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .featured-image img {
        height: 300px;
    }

    .posts-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

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

    .work-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 480px) {
    .blog-hero .hero-content h1 {
        font-size: 2rem;
    }

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

    .tip-card {
        flex-direction: column;
        text-align: center;
    }

    .tip-icon {
        align-self: center;
    }

    .cta-content h2 {
        font-size: 2rem;
    }
}