/* Modern Blog Archive Styles */

/* Hero Section */
.blog-hero {
    position: relative;
    padding: 100px 0 60px;
    background: linear-gradient(135deg, #2E5C8A 0%, #4A90C2 100%);
    overflow: hidden;
    color: white;
}

.blog-hero .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
    background-image: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><circle cx="30" cy="30" r="25" fill="none" stroke="white" stroke-width="1"/></svg>');
    background-size: 60px 60px;
    animation: float 15s ease-in-out infinite;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Blog Search Section */
.blog-search-section {
    padding: 40px 0 20px;
    text-align: center;
}

.search-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.blog-search-form .search-container {
    position: relative;
    display: flex;
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.blog-search-form .search-container:focus-within {
    border-color: #2E5C8A;
    box-shadow: 0 8px 30px rgba(46, 92, 138, 0.15);
    transform: translateY(-2px);
}

.blog-search-form .search-field {
    flex: 1;
    padding: 18px 25px;
    border: none;
    font-size: 1rem;
    color: #333;
    background: transparent;
}

.blog-search-form .search-field:focus {
    outline: none;
}

.blog-search-form .search-field::placeholder {
    color: #999;
}

.blog-search-form .search-submit {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 18px 25px;
    background: #2E5C8A;
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.blog-search-form .search-submit:hover {
    background: #1e4c7a;
}

.blog-search-form .search-submit span {
    font-size: 0.95rem;
}

/* Blog Layout */
.blog-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    padding: 60px 0;
}

.blog-main {
    min-width: 0;
}

/* Featured Post */
.featured-post {
    margin-bottom: 60px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0,0,0,0.1);
}

.featured-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 400px;
}

.featured-image {
    position: relative;
    overflow: hidden;
}

.featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-post:hover .featured-img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(46, 92, 138, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.featured-post:hover .image-overlay {
    opacity: 1;
}

.image-overlay i {
    font-size: 2rem;
    margin-bottom: 8px;
}

.featured-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #FFD700;
    color: #2E5C8A;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 5;
}

.featured-text {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.post-category,
.post-date {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    color: #666;
}

.post-category {
    background: #e3f2fd;
    color: #2E5C8A;
    padding: 5px 12px;
    border-radius: 12px;
    font-weight: 500;
}

.featured-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
}

.featured-title a {
    color: #2E5C8A;
    text-decoration: none;
    transition: color 0.3s ease;
}

.featured-title a:hover {
    color: #1e4c7a;
}

.featured-excerpt {
    color: #666;
    line-height: 1.7;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.featured-author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.author-avatar {
    flex-shrink: 0;
}

.author-avatar img {
    border-radius: 50%;
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.author-name {
    font-weight: 600;
    color: #333;
}

.read-time {
    font-size: 0.9rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
}

.featured-btn {
    align-self: flex-start;
}

/* Posts Section */
.posts-section {
    margin-bottom: 60px;
}

.section-header {
    margin-bottom: 40px;
    text-align: center;
}

.section-title {
    font-size: 2.2rem;
    color: #2E5C8A;
    margin-bottom: 15px;
    font-weight: 600;
}

.section-line {
    width: 80px;
    height: 3px;
    background: linear-gradient(135deg, #2E5C8A 0%, #4A90C2 100%);
    margin: 0 auto;
    border-radius: 2px;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.post-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.placeholder-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 2.5rem;
}

.card-image .image-overlay {
    opacity: 0;
}

.post-card:hover .image-overlay {
    opacity: 1;
}

.post-card:hover .post-image {
    transform: scale(1.1);
}

.card-content {
    padding: 25px;
}

.post-title {
    margin-bottom: 15px;
    line-height: 1.4;
}

.post-title a {
    color: #2E5C8A;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: #1e4c7a;
}

.post-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.author-details {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.author-name {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.read-more-btn {
    padding: 8px 12px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Sidebar */
.blog-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-widget {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.widget-title {
    font-size: 1.4rem;
    color: #2E5C8A;
    margin-bottom: 20px;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

/* Categories Widget */
.categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-item {
    margin-bottom: 12px;
}

.category-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: #666;
    transition: all 0.3s ease;
}

.category-link:hover {
    background: #e3f2fd;
    color: #2E5C8A;
}

.category-name {
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-count {
    background: #ddd;
    color: #666;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
}

.category-link:hover .category-count {
    background: #2E5C8A;
    color: white;
}

/* Recent Posts Widget */
.recent-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-post-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.recent-post-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.recent-post-link {
    display: flex;
    gap: 12px;
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

.recent-post-link:hover {
    color: #2E5C8A;
}

.recent-post-thumb {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
}

.recent-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-post-content {
    flex: 1;
    min-width: 0;
}

.recent-post-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recent-post-date {
    font-size: 0.85rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Newsletter Widget */
.newsletter-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.newsletter-email {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

.newsletter-email:focus {
    outline: none;
    border-color: #2E5C8A;
}

.newsletter-btn {
    justify-content: center;
    padding: 12px;
}

/* Contact Form 7 Newsletter Styles */
.newsletter-cf7-wrapper {
    margin-top: 15px;
}

.newsletter-cf7-wrapper .wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.newsletter-cf7-wrapper .wpcf7-form-control-wrap {
    margin: 0;
}

.newsletter-cf7-wrapper input[type="email"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

.newsletter-cf7-wrapper input[type="email"]:focus {
    outline: none;
    border-color: #2E5C8A;
}

.newsletter-cf7-wrapper input[type="submit"],
.newsletter-cf7-wrapper .wpcf7-submit {
    width: 100%;
    background: linear-gradient(135deg, #2E5C8A 0%, #4A90C2 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    text-transform: none;
    justify-content: center;
}

.newsletter-cf7-wrapper input[type="submit"]:hover,
.newsletter-cf7-wrapper .wpcf7-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 92, 138, 0.3);
}

.newsletter-cf7-wrapper .wpcf7-response-output {
    margin: 10px 0 0;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
}

.newsletter-cf7-wrapper .wpcf7-mail-sent-ok {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.newsletter-cf7-wrapper .wpcf7-validation-errors {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Newsletter Alert Messages */
.newsletter-alert {
    margin-top: 15px;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.newsletter-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.newsletter-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-outline {
    background: transparent;
    border: 1px solid #ddd;
    color: #666;
}

.btn-outline:hover {
    background: #f8f9fa;
    border-color: #2E5C8A;
    color: #2E5C8A;
}

.btn-primary {
    background: #2E5C8A;
    color: white;
}

.btn-primary:hover {
    background: #1e4c7a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 92, 138, 0.3);
}

.btn-white {
    background: white;
    color: #2E5C8A;
    border: 1px solid white;
}

.btn-white:hover {
    background: transparent;
    color: white;
}

/* Pagination */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

.modern-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    color: #666;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    margin: 0 5px;
}

.modern-pagination .page-numbers:hover,
.modern-pagination .page-numbers.current {
    background: #2E5C8A;
    border-color: #2E5C8A;
    color: white;
}

/* No Posts Section */
.no-posts-section {
    padding: 80px 0;
    text-align: center;
}

.no-content-message {
    max-width: 500px;
    margin: 0 auto;
}

.no-content-message i {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 2rem;
}

.no-content-message h2 {
    font-size: 2rem;
    color: #666;
    margin-bottom: 1rem;
}

.no-content-message p {
    color: #999;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* CTA Section */
.blog-cta-section {
    background: linear-gradient(135deg, #2E5C8A 0%, #4A90C2 100%);
    padding: 60px 40px;
    border-radius: 20px;
    margin: 40px 0;
    color: white;
}

.cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.cta-text h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.cta-text p {
    opacity: 0.9;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .blog-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .featured-content {
        grid-template-columns: 1fr;
    }
    
    .featured-text {
        padding: 30px;
    }
    
    .posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .blog-layout {
        padding: 40px 0;
    }
    
    .featured-post {
        margin-bottom: 40px;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .card-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .cta-content {
        flex-direction: column;
        text-align: center;
    }
    
    .blog-sidebar {
        position: static;
    }
    
    /* Newsletter responsive fixes */
    .newsletter-widget h3 {
        font-size: 1.2rem;
        word-wrap: break-word;
    }
    
    .newsletter-description {
        font-size: 0.9rem;
        line-height: 1.5;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .newsletter-form {
        gap: 10px;
    }
    
    .newsletter-email {
        font-size: 0.9rem;
        padding: 10px 12px;
    }
    
    .newsletter-btn {
        font-size: 0.9rem;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .blog-hero {
        padding: 80px 0 50px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .blog-search-section {
        padding: 30px 0 15px;
    }
    
    .blog-search-form .search-submit span {
        display: none;
    }
    
    .blog-search-form .search-submit {
        padding: 18px 20px;
    }
    
    .card-content {
        padding: 20px;
    }
    
    .sidebar-widget {
        padding: 20px;
    }
    
    .featured-text {
        padding: 25px;
    }
    
    .featured-title {
        font-size: 1.6rem;
    }
}