/* Blog Page Styles */
.blog-page {
    font-family: 'Inter', sans-serif;
    color: #333;
    line-height: 1.6;
}

/* Container */
.blog-container {
    max-width: 1350px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Blog Hero Section */
.blog-hero {
    background-color: #2A6478;
    color: white;
    padding: 80px 0;
    text-align: center;
}

.blog-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.blog-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.blog-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Blog Search Styles */
.blog-search-container {
    width: 100%;
    max-width: 600px;
    margin: 25px auto 0;
    position: relative;
}

.blog-search-form {
    display: flex;
    position: relative;
}

.blog-search-form input[type="search"] {
    width: 100%;
    padding: 12px 50px 12px 20px;
    border: 1px solid #e1e1e1;
    border-radius: 30px;
    font-size: 16px;
    background-color: #fff;
    color: #333;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.blog-search-form input[type="search"]:focus {
    outline: none;
    border-color: #2A6478;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.blog-search-form button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    cursor: pointer;
    transition: color 0.3s ease;
}

.blog-search-form button:hover {
    color: #2A6478;
}

/* Override form styles for dark background */
.blog-hero .blog-search-form input[type="search"] {
    background-color: #fff;
    color: #333;
}

.blog-hero .blog-search-form button {
    color: #666;
}

.blog-hero .blog-search-form button:hover {
    color: #2A6478;
}

/* Blog Category Filters */
.blog-category-filters {
    display: flex;
    justify-content: center;
    padding: 30px 0;
    position: relative;
    z-index: 5;
}

.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    padding: 0 20px;
}

.category-pill {
    display: inline-block;
    padding: 8px 20px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 50px;
    color: #333;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.category-pill:hover {
    background-color: #f5f5f5;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    color: #2A6478;
}

.category-pill.active {
    background-color: #2A6478;
    color: white;
    border-color: #2A6478;
}

/* Blog Content */
.blog-content {
    padding: 50px 0 80px;
    display: flex;
    flex-direction: column;
}

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

/* Blog Card */
.blog-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

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

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

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

.blog-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: #2A6478;
    color: white;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 1;
}

.blog-card-content {
    padding: 25px;
}

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #fff;
}

.blog-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.blog-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-title a:hover {
    color: #2A6478;
}

.blog-excerpt {
    margin-bottom: 20px;
    color: #666;
}

.read-more {
    display: inline-flex;
    align-items: center;
    color: #2A6478;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #1e4a5a;
}

.read-more .arrow {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

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

/* Pagination */
.blog-pagination {
    margin-top: 50px;
    text-align: center;
}

.blog-pagination .page-numbers {
    display: inline-flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-pagination .page-numbers li {
    margin: 0 5px;
}

.blog-pagination .page-numbers a,
.blog-pagination .page-numbers span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #f5f5f5;
    color: #333;
    text-decoration: none;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.blog-pagination .page-numbers a:hover,
.blog-pagination .page-numbers span.current {
    background-color: #2A6478;
    color: white;
}

.pagination-arrow {
    font-size: 1.2rem;
}

/* Sidebar */
.blog-sidebar {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.sidebar-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Make widget selectors specific to blog sidebar */
.blog-sidebar .widget {
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.blog-sidebar .widget-title {
    font-size: 1.3rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    color: #2A6478;
}

.blog-sidebar .widget-categories,
.blog-sidebar .widget-recent-posts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-sidebar .widget-categories li,
.blog-sidebar .widget-recent-posts li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.blog-sidebar .widget-categories li:last-child,
.blog-sidebar .widget-recent-posts li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.blog-sidebar .widget-categories a,
.blog-sidebar .widget-recent-posts a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-sidebar .widget-categories a:hover,
.blog-sidebar .widget-recent-posts a:hover {
    color: #2A6478;
}

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

.no-posts h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #2A6478;
}

/* Single Blog Page */
.single-blog-page {
    font-family: 'Inter', sans-serif;
    color: #333;
    line-height: 1.6;
}

/* Single Blog Hero */
.single-blog-hero {
    background-color: #2A6478;
    color: white;
    padding: 80px 0;
    text-align: center;
}

.single-blog-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.single-blog-title {
    font-size: 3rem;
    margin: 20px 0;
    font-weight: 700;
    line-height: 1.3;
}

/* Featured Image */
.single-blog-featured-image {
    margin-bottom: 50px;
}

.featured-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

/* Single Blog Content */
.single-blog-content {
    padding: 50px 0 80px;
}

.blog-content-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
}

.single-blog-article {
    background-color: white;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

.entry-content p {
    margin-bottom: 1.5em;
}

.entry-content h2, 
.entry-content h3, 
.entry-content h4 {
    margin: 1.5em 0 0.8em;
    color: #2A6478;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 1.5em 0;
}

.entry-content blockquote {
    border-left: 4px solid #2A6478;
    padding-left: 20px;
    margin: 1.5em 0;
    font-style: italic;
    color: #555;
}

.entry-content ul, 
.entry-content ol {
    margin: 1.5em 0;
    padding-left: 20px;
}

.entry-content li {
    margin-bottom: 0.5em;
}

/* Blog Tags */
.blog-tags {
    margin: 40px 0;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.blog-tags h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #2A6478;
}

.blog-tags ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-tags li a {
    display: inline-block;
    background-color: #f5f5f5;
    color: #333;
    padding: 5px 15px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.blog-tags li a:hover {
    background-color: #2A6478;
    color: white;
}

/* Author Bio */
.author-bio {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 40px 0;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 10px;
}

.author-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: #2A6478;
}

.author-info h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.author-info p {
    font-size: 0.95rem;
    color: #666;
}

/* Post Navigation */
.post-navigation {
    display: flex;
    justify-content: space-between;
    margin: 40px 0;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.nav-previous,
.nav-next {
    flex: 1;
}

.nav-next {
    text-align: right;
}

.nav-subtitle {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
}

.nav-title {
    font-weight: 600;
    color: #2A6478;
    transition: color 0.3s ease;
}

.nav-previous a:hover .nav-title,
.nav-next a:hover .nav-title {
    color: #1e4a5a;
}

/* Single Blog Sidebar */
.single-blog-sidebar {
    position: sticky;
    top: 30px;
}

/* Make single blog sidebar widget selectors specific */
.single-blog-sidebar .widget {
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.single-blog-sidebar .widget-title {
    font-size: 1.3rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    color: #2A6478;
}

.single-blog-sidebar .widget-categories,
.single-blog-sidebar .widget-recent-posts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.single-blog-sidebar .widget-categories li,
.single-blog-sidebar .widget-recent-posts li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.single-blog-sidebar .widget-categories li:last-child,
.single-blog-sidebar .widget-recent-posts li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.single-blog-sidebar .widget-categories a,
.single-blog-sidebar .widget-recent-posts a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.single-blog-sidebar .widget-categories a:hover,
.single-blog-sidebar .widget-recent-posts a:hover {
    color: #2A6478;
}

/* Related Posts */
.related-posts {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.related-posts-title {
    font-size: 2rem;
    margin-bottom: 40px;
    text-align: center;
    color: #2A6478;
}

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

.related-post-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.related-post-card:hover {
    transform: translateY(-10px);
}

.related-post-image {
    height: 180px;
    overflow: hidden;
}

.related-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.related-post-card:hover .related-thumbnail {
    transform: scale(1.05);
}

.related-post-content {
    padding: 20px;
}

.related-post-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.related-post-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-post-title a:hover {
    color: #2A6478;
}

.related-post-meta {
    font-size: 0.9rem;
    color: #fff;
}

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

@media (max-width: 992px) {
    .blog-content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .single-blog-sidebar {
        position: static;
        margin-top: 50px;
    }
    
    .sidebar-widgets {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-hero h1,
    .single-blog-title {
        font-size: 2.5rem;
    }
    
    .blog-grid,
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .sidebar-widgets {
        grid-template-columns: 1fr;
    }
    
    .blog-card-image,
    .related-post-image {
        height: 220px;
    }
    
    .author-bio {
        flex-direction: column;
        text-align: center;
    }
    
    .post-navigation {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav-next {
        text-align: left;
    }
    
    .blog-search-container {
        max-width: 100%;
        padding: 0 15px;
    }
    
    .category-pills {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 5px 15px 15px;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start;
    }
    
    .category-pill {
        flex: 0 0 auto;
        white-space: nowrap;
    }
}

@media (max-width: 576px) {
    .blog-hero,
    .single-blog-hero {
        padding: 60px 0 40px;
    }
    
    .blog-hero h1,
    .single-blog-title {
        font-size: 2rem;
    }
    
    .blog-content,
    .single-blog-content {
        padding: 50px 0;
    }
    
    .single-blog-article {
        padding: 25px;
    }
    
    .entry-content {
        font-size: 1rem;
    }
    
    .blog-category-filters {
        margin-top: -15px;
    }
}

/* Promotional Widget */
.promo-widget {
    background-color: #F5EDE5;
    border-radius: 12px;
    padding: 40px;
    margin: 40px 0;
}

.promo-content {
    max-width: 600px;
    margin: 0 auto;
}

.promo-widget h2 {
    font-size: 32px;
    font-weight: 600;
    color: #222;
    margin: 0 0 20px;
    line-height: 1.2;
}

.promo-widget p {
    font-size: 18px;
    color: #444;
    margin-bottom: 30px;
    line-height: 1.5;
}

.promo-features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
}

.promo-features li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 16px;
    color: #333;
}

.feature-icon {
    width: 24px;
    height: 24px;
    background-color: #E1723A;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 12px;
    font-size: 14px;
}

.promo-button {
    display: inline-block;
    background-color: #E1723A;
    color: white;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    font-size: 18px;
    transition: all 0.3s ease;
}

.promo-button:hover {
    background-color: #AD582C;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2);
}

/* Responsive Styles for Promotional Widget */
@media (max-width: 768px) {
    .promo-widget {
        padding: 30px;
        margin: 30px 0;
    }

    .promo-widget h2 {
        font-size: 28px;
    }

    .promo-widget p {
        font-size: 16px;
    }

    .promo-features li {
        font-size: 15px;
    }

    .promo-button {
        width: 100%;
        text-align: center;
        padding: 12px 20px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .promo-widget {
        padding: 20px;
        margin: 20px 0;
    }

    .promo-widget h2 {
        font-size: 24px;
    }

    .promo-widget p {
        font-size: 15px;
        margin-bottom: 20px;
    }

    .promo-features {
        margin-bottom: 20px;
    }

    .promo-features li {
        font-size: 14px;
        margin-bottom: 12px;
    }
}

/* Promotional Widget in Sidebar */
.single-blog-sidebar .promo-widget {
    padding: 25px;
    margin: 0 0 30px;
    background-color: #F5EDE5;
    position: sticky;
    top: 100px;
    box-sizing: border-box;
    width: 100%;
}

.single-blog-sidebar .promo-widget .promo-content {
    box-sizing: border-box;
    width: 100%;
}

.single-blog-sidebar .promo-widget h2 {
    font-size: 24px;
    margin: 0 0 15px;
    color: #222;
    border-bottom: none;
    padding-bottom: 0;
    box-sizing: border-box;
    width: 100%;
}

.single-blog-sidebar .promo-widget p {
    font-size: 16px;
    margin-bottom: 20px;
    box-sizing: border-box;
    width: 100%;
}

.single-blog-sidebar .promo-features {
    margin-bottom: 20px;
    box-sizing: border-box;
    width: 100%;
}

.single-blog-sidebar .promo-features li {
    font-size: 14px;
    margin-bottom: 12px;
    padding-bottom: 0;
    border-bottom: none;
    box-sizing: border-box;
    width: 100%;
}

.single-blog-sidebar .feature-icon {
    width: 20px;
    height: 20px;
    font-size: 12px;
    flex-shrink: 0;
}

.single-blog-sidebar .promo-button {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px 20px;
    font-size: 16px;
    margin-top: 10px;
    box-sizing: border-box;
}

@media (max-width: 992px) {
    .single-blog-sidebar .promo-widget {
        position: static;
        max-width: 400px;
        margin: 0 auto 30px;
    }
}

@media (max-width: 576px) {
    .single-blog-sidebar .promo-widget {
        padding: 20px;
    }

    .single-blog-sidebar .promo-widget h2 {
        font-size: 22px;
    }

    .single-blog-sidebar .promo-widget p {
        font-size: 15px;
    }

    .single-blog-sidebar .promo-features li {
        font-size: 13px;
    }
}

/* Newsletter Section */
.newsletter-section {
    padding: 60px 0;
}

.tnp-subscription-posts,
div.tnp-subscription, form.tnp-subscription, form.tnp-profile {
    max-width: 800px !important;
    margin: 0 auto !important;
    text-align: center !important;
    box-sizing: border-box;
}

.newsletter-section .tnp-subscription {
    padding: 40px;
    background-color: #f9f9f9;
    border-radius: 12px;
}

.newsletter-section .tnp-subscription h2 {
    font-size: 36px;
    color: #222;
    margin-bottom: 20px;
    line-height: 1.2;
}

.newsletter-section .tnp-subscription p {
    font-size: 18px;
    color: #444;
    margin-bottom: 30px;
    line-height: 1.5;
}

.tnp-field-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tnp-email {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box;
    height: 50px;
}

.newsletter-section .tnp-subscription input.tnp-submit, 
.newsletter-section .tnp-profile input.tnp-submit, 
.newsletter-section .tnp-unsubscribe button.tnp-submit, 
.newsletter-section .tnp-reactivate button.tnp-submit {
    background-color: #E1723A !important;
    color: white;
    border: none;
    padding: 0 30px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 50px;
    min-width: 150px;
}

.newsletter-section .tnp-subscription input.tnp-submit:hover, 
.newsletter-section .tnp-profile input.tnp-submit:hover, 
.newsletter-section .tnp-unsubscribe button.tnp-submit:hover, 
.newsletter-section .tnp-reactivate button.tnp-submit:hover {
    background-color: #AD582C !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(225, 114, 58, 0.2);
}

@media (max-width: 768px) {
    .tnp-field-group {
        flex-direction: column;
        gap: 15px;
    }

    .tnp-submit {
        width: 100%;
        padding: 0 20px;
    }
}

.tnp-field-privacy {
    margin-top: 20px;
    text-align: left;
}

.tnp-field-privacy label {
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    line-height: 1.4;
}

.tnp-field-privacy input[type="checkbox"] {
    margin-top: 3px;
}

.tnp-field-privacy a {
    color: #E1723A;
    text-decoration: none;
}

.tnp-field-privacy a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .newsletter-section {
        padding: 40px 0;
    }

    .tnp-subscription {
        padding: 30px 20px;
    }

    .tnp-subscription h2 {
        font-size: 28px;
    }

    .tnp-subscription p {
        font-size: 16px;
    }

    .tnp-field-email {
        width: 100%;
        margin-right: 0;
        margin-bottom: 15px;
    }

    .tnp-field-button {
        width: 100%;
    }

    .tnp-submit {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .tnp-subscription h2 {
        font-size: 24px;
    }

    .tnp-subscription p {
        font-size: 15px;
    }

    .tnp-field-privacy label {
        font-size: 13px;
    }
} 