/* Blog Styles */

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

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../img/pattern.png');
    opacity: 0.1;
    z-index: 1;
}

.blog-hero .container {
    position: relative;
    z-index: 2;
}

.blog-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #ffffff, #e2e8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.blog-hero p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Blog Categories */
.blog-categories {
    padding: 2rem 0;
    background: var(--section-bg);
}

.category-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.category-btn {
    padding: 0.5rem 1.5rem;
    border: none;
    background: white;
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.category-btn.active,
.category-btn:hover {
    background: var(--primary-color);
    color: white;
}

/* Featured Post */
.featured-post {
    padding: 4rem 0;
}

.featured-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(251, 0, 0, 0.1);
}

.featured-image {
    position: relative;
    height: 100%;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

.featured-content {
    padding: 2rem;
}

.post-meta {
    display: flex;
    gap: 1.5rem;
    color: var(--light-text);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.post-meta i {
    margin-right: 0.5rem;
}

.featured-content h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.featured-content p {
    color: var(--light-text);
    margin-bottom: 1.5rem;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.read-more:hover {
    gap: 0.8rem;
}

/* Blog Grid */
.blog-grid {
    padding: 4rem 0;
    background: var(--section-bg);
}

.blog-posts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.blog-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-image {
    position: relative;
    aspect-ratio: 16/9;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-content {
    padding: 1.5rem;
}

.blog-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--text-color);
}

/* Newsletter Section */
.newsletter {
    padding: 4rem 0;
    background: white;
}

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

.newsletter-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.newsletter-content p {
    color: var(--light-text);
    margin-bottom: 2rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.8rem 1.5rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

.newsletter-form button {
    padding: 0.8rem 2rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background: var(--secondary-color);
}

/* Load More Button */
.load-more {
    text-align: center;
}

.load-more-btn {
    padding: 0.8rem 2.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    font-weight: 500;
}

.load-more-btn:hover {
    background: var(--secondary-color);
}

/* Responsive Design */
@media (max-width: 992px) {
    .featured-card {
        grid-template-columns: 1fr;
    }

    .featured-image {
        aspect-ratio: 16/9;
    }
}

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

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

    .post-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Blog Post Page Styles */
.blog-post-header {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    padding: 120px 0 80px;
    color: white;
    position: relative;
    overflow: hidden;
}

.blog-post-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../img/pattern.png');
    opacity: 0.1;
    z-index: 1;
}

.blog-post-header .container {
    position: relative;
    z-index: 2;
}

.blog-post-meta {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.blog-post-meta h1 {
    font-size: 3rem;
    font-weight: 700;
    margin: 1rem 0;
    background: linear-gradient(to right, #ffffff, #e2e8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.blog-post-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 0;
}

.blog-post-content img {
    width: 100%;
    border-radius: 10px;
    margin: 2rem 0;
}

.blog-post-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.blog-post-content h2 {
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
}

.blog-post-content h3 {
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem;
}

/* Author Section */
.author-section {
    background: var(--section-bg);
    padding: 3rem 0;
    margin-top: 4rem;
}

.author-card {
    display: flex;
    gap: 2rem;
    align-items: center;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.author-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h3 {
    margin-bottom: 0.5rem;
}

.author-info p {
    color: var(--light-text);
}

/* Related Posts */
.related-posts {
    padding: 4rem 0;
}

.related-posts h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

/* Enhanced Newsletter Section */
.newsletter-hero {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    position: relative;
    color: white;
    padding: 4rem 0;
    margin-top: 4rem;
    overflow: hidden;
    text-align: center;
}

.newsletter-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.1;
}

.newsletter-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.newsletter-text {
    text-align: center;
    max-width: 600px;
    margin-bottom: 3rem;
}

.newsletter-text h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: white;
    line-height: 1.2;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.newsletter-text p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.6;
}

.newsletter-features {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.newsletter-features li {
    display: flex;
    align-items: center;
    font-size: 1rem;
    opacity: 0.9;
}

.newsletter-features li i {
    color: #4ade80;
    margin-right: 0.5rem;
    font-size: 1rem;
    background: rgba(74, 222, 128, 0.2);
    padding: 6px;
    border-radius: 50%;
}

/* Newsletter Form Container */
.newsletter-form-container {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
    max-width: 600px;
}

.newsletter-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.newsletter-form .form-group {
    margin-bottom: 0;
}

.newsletter-form .form-group.full-width {
    grid-column: 1 / -1;
}

.newsletter-form input,
.newsletter-form select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: white;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-form input:focus,
.newsletter-form select:focus {
    border-color: rgba(255, 255, 255, 0.8);
    outline: none;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.subscribe-btn {
    grid-column: 1 / -1;
    padding: 0.8rem 2rem;
    background: white;
    color: #2563eb;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.5rem;
    width: 100%;
}

.subscribe-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    background: #f0f9ff;
}

.form-note {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Responsive Design for Newsletter */
@media (max-width: 768px) {
    .newsletter-hero {
        padding: 3rem 1rem;
    }

    .newsletter-text h2 {
        font-size: 2rem;
    }

    .newsletter-features {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .newsletter-form {
        grid-template-columns: 1fr;
    }

    .newsletter-form .form-group {
        grid-column: 1 / -1;
    }

    .subscribe-btn {
        margin-top: 0.5rem;
    }
}

@media (max-width: 480px) {
    .newsletter-text h2 {
        font-size: 1.8rem;
    }

    .newsletter-form-container {
        padding: 1.5rem;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .newsletter-hero {
        background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    }

    .subscribe-btn {
        background: #f0f9ff;
    }

    .subscribe-btn:hover {
        background: #e0f2fe;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .newsletter-hero {
        background: #1e40af;
    }

    .newsletter-form input,
    .newsletter-form select {
        border-color: white;
    }

    .newsletter-features li i {
        background: #4ade80;
        color: black;
    }
}

.newsletter-form select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.08);
    color: white;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    font-family: inherit;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

.newsletter-form select option {
    background-color: #2563eb;
    color: white;
    padding: 1rem;
    font-size: 0.95rem;
}

.newsletter-form select:focus {
    border-color: rgba(255, 255, 255, 0.8);
    outline: none;
    background-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.newsletter-form select:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.newsletter-form select option:hover,
.newsletter-form select option:focus {
    background-color: #1d4ed8;
}

.newsletter-form select:invalid {
    color: rgba(255, 255, 255, 0.6);
} 