/* Blog Specific Styles */
:root {
    --section-padding: 80px;
}

/* Blog Hero Section */
.blog-hero {
    background-color: var(--primary-color);
    color: white;
    padding: 160px 0 80px;
    text-align: center;
    margin-bottom: 60px;
}

.blog-hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.blog-hero p {
    font-size: 20px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Featured Post */
.featured-post {
    margin-bottom: 80px;
}

.featured-post h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 36px;
}

.featured-post-card {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 40px;
    margin: 0 auto;
    max-width: 1200px;
}

.featured-post-image {
    position: relative;
    height: 100%;
    min-height: 400px;
    border-radius: var(--border-radius-md);
    overflow: hidden;
}

.featured-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-tag {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--secondary-color);
    color: white;
    padding: 10px 20px;
    border-radius: var(--border-radius-sm);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.featured-post-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
}

.featured-post-content h3 {
    font-size: 32px;
    margin: 20px 0;
    line-height: 1.3;
}

/* Blog Posts Grid */
.blog-posts {
    padding: var(--section-padding) 0;
    background-color: var(--background-color);
}

.blog-posts h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 36px;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 60px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.blog-card {
    background: white;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.blog-card-image {
    height: 240px;
    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.1);
}

.blog-card-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.post-category {
    color: var(--secondary-color);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.blog-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    line-height: 1.4;
}

.post-meta {
    margin-top: auto;
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.read-more {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}

.read-more i {
    transition: transform 0.3s ease;
}

.read-more:hover i {
    transform: translateX(8px);
}

/* Load More Button */
.load-more {
    text-align: center;
    margin: 40px 0;
}

.load-more-button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: var(--border-radius-sm);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.load-more-button:hover {
    transform: translateY(-3px);
}

/* Newsletter Section */
.newsletter {
    background: white;
    padding: var(--section-padding) 0;
    text-align: center;
    margin-bottom: 80px;
}

.newsletter h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.newsletter p {
    font-size: 18px;
    color: #666;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form {
    display: flex;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 15px 25px;
    border: 2px solid #eee;
    border-radius: var(--border-radius-sm);
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.newsletter-form input:focus {
    border-color: var(--secondary-color);
    outline: none;
}

.newsletter-form button {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: var(--border-radius-sm);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.newsletter-form button:hover {
    transform: translateY(-3px);
    background-color: var(--primary-color);
}

.newsletter-message {
    margin-top: 20px;
    font-weight: 500;
    font-size: 16px;
}

.newsletter-message.success {
    color: #28a745;
}

.newsletter-message.error {
    color: #dc3545;
}

/* Full Post Overlay */
.post-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    z-index: 1000;
    overflow-y: auto;
    padding: 40px 0;
}

.post-content {
    background: white;
    width: 90%;
    max-width: 1000px;
    border-radius: var(--border-radius-lg);
    position: relative;
    margin: auto;
    overflow: hidden;
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateY(-100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-post {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
    z-index: 2;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.close-post:hover {
    background: rgba(0, 0, 0, 0.8);
}

.post-header {
    position: relative;
}

.post-image {
    height: 400px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
}

.post-info h1 {
    font-size: 36px;
    margin: 15px 0;
}

.post-body {
    padding: 40px;
    font-size: 18px;
    line-height: 1.6;
}

.post-body h2 {
    font-size: 28px;
    margin: 30px 0 20px;
    color: var(--primary-color);
}

.post-body h3 {
    font-size: 24px;
    margin: 25px 0 15px;
    color: var(--secondary-color);
}

.post-body p {
    margin-bottom: 20px;
}

.post-body ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.post-body li {
    margin-bottom: 10px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 20px;
    }
}

@media (max-width: 992px) {
    .featured-post-card {
        grid-template-columns: 1fr;
    }

    .post-content {
        width: 95%;
    }

    .post-image {
        height: 300px;
    }

    .post-info h1 {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .blog-hero h1 {
        font-size: 32px;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }

    .post-body {
        padding: 30px;
        font-size: 16px;
    }

    .newsletter-form {
        flex-direction: column;
        padding: 0 20px;
    }

    .newsletter-form button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .blog-hero h1 {
        font-size: 28px;
    }

    .post-image {
        height: 200px;
    }

    .post-info {
        padding: 20px;
    }

    .post-body {
        padding: 20px;
    }
} 