/* Blog Page Styles */

/* Hero Section */
.blog-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 140px 0 100px;
}

.blog-hero .hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.blog-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(1, 23, 55, 0.95) 0%, rgba(14, 156, 126, 0.85) 100%);
    z-index: 1;
}

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

.min-vh-60 {
    min-height: 60vh;
}

.blog-hero .hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 10px 24px;
    border-radius: 50px;
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.blog-hero .hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 20px;
}

.blog-hero .hero-title .highlight {
    background: linear-gradient(135deg, #0E9C7E, #00d4aa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-hero .hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.blog-search {
    max-width: 500px;
    margin: 0 auto;
}

.search-form {
    position: relative;
}

.search-form .form-control {
    padding: 18px 60px 18px 25px;
    border-radius: 50px;
    border: none;
    font-size: 1rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.search-form button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0E9C7E, #00d4aa);
    border: none;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-form button:hover {
    transform: translateY(-50%) scale(1.1);
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 3;
}

.hero-wave svg {
    display: block;
    width: 100%;
    height: 120px;
}

/* Featured Posts Section */
.featured-posts-section {
    padding: 100px 0;
    background: #fff;
}

.section-badge {
    display: inline-block;
    background: rgba(14, 156, 126, 0.1);
    color: #0E9C7E;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #001737;
    margin-bottom: 20px;
}

.featured-post {
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.featured-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.featured-main .featured-image {
    height: 300px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.featured-main .featured-content {
    padding: 30px;
}

.post-category {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #0E9C7E;
    color: #fff;
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
}

.post-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.post-meta span {
    color: #666;
    font-size: 0.85rem;
}

.post-meta i {
    color: #0E9C7E;
    margin-right: 5px;
}

.featured-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #001737;
    margin-bottom: 15px;
    line-height: 1.4;
}

.featured-content h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.featured-content h3 a:hover {
    color: #0E9C7E;
}

.featured-content p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
}

.read-more {
    display: inline-flex;
    align-items: center;
    color: #0E9C7E;
    font-weight: 600;
    text-decoration: none;
}

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

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

.read-more:hover {
    color: #001737;
}

/* Featured Side Posts */
.featured-side {
    display: flex;
    height: 100%;
}

.featured-side .featured-image {
    width: 180px;
    min-height: 160px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

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

.post-category-sm {
    display: inline-block;
    background: rgba(14, 156, 126, 0.1);
    color: #0E9C7E;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.featured-side h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #001737;
    margin-bottom: 10px;
    line-height: 1.4;
}

.featured-side h4 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.featured-side h4 a:hover {
    color: #0E9C7E;
}

.featured-side .post-meta {
    flex-direction: column;
    gap: 5px;
    margin-bottom: 0;
}

/* Category Filter */
.category-filter-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.category-tab {
    padding: 12px 25px;
    border-radius: 50px;
    border: 2px solid #e9ecef;
    background: #fff;
    color: #666;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-tab:hover {
    border-color: #0E9C7E;
    color: #0E9C7E;
}

.category-tab.active {
    background: #0E9C7E;
    border-color: #0E9C7E;
    color: #fff;
}

/* Blog Grid Section */
.blog-grid-section {
    padding: 100px 0;
    background: #f8f9fa;
}

.blog-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

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

.blog-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.blog-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #001737;
    margin-bottom: 15px;
    line-height: 1.4;
}

.blog-content h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-content h3 a:hover {
    color: #0E9C7E;
}

.blog-content p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    flex: 1;
    margin-bottom: 20px;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.author {
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.author span {
    font-size: 0.85rem;
    font-weight: 600;
    color: #001737;
}

.read-link {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #0E9C7E, #00d4aa);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s ease;
}

.read-link:hover {
    transform: scale(1.1);
    color: #fff;
}

/* Pagination */
.blog-pagination {
    margin-top: 40px;
}

.pagination .page-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: none;
    color: #666;
    font-weight: 600;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.pagination .page-item.active .page-link {
    background: #0E9C7E;
    color: #fff;
}

.pagination .page-link:hover {
    background: #001737;
    color: #fff;
}

.pagination .page-item.disabled .page-link {
    background: #f1f1f1;
    color: #ccc;
}

/* Sidebar */
.blog-sidebar {
    position: sticky;
    top: 120px;
}

.sidebar-widget {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
}

/* Newsletter Widget */
.newsletter-widget {
    background: linear-gradient(135deg, #001737 0%, #002855 100%);
    text-align: center;
}

.widget-icon {
    width: 60px;
    height: 60px;
    background: rgba(14, 156, 126, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0E9C7E;
    font-size: 1.5rem;
    margin: 0 auto 20px;
}

.newsletter-widget h4 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 15px;
}

.newsletter-widget p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.newsletter-form .form-control {
    border-radius: 50px;
    padding: 12px 20px;
    border: none;
    margin-bottom: 15px;
}

.btn-subscribe {
    width: 100%;
    background: #0E9C7E;
    color: #fff;
    border-radius: 50px;
    padding: 12px 25px;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
}

.btn-subscribe:hover {
    background: #0bc49b;
    color: #fff;
}

/* Categories Widget */
.categories-widget h4,
.recent-posts-widget h4,
.tags-widget h4 {
    font-weight: 700;
    color: #001737;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #0E9C7E;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 12px;
}

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

.category-list a:hover {
    background: rgba(14, 156, 126, 0.1);
    color: #0E9C7E;
}

.category-list span {
    background: #f1f1f1;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Recent Posts Widget */
.recent-post {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

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

.recent-post img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 10px;
}

.recent-post-content a {
    font-weight: 600;
    color: #001737;
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.4;
    transition: color 0.3s ease;
    display: block;
    margin-bottom: 5px;
}

.recent-post-content a:hover {
    color: #0E9C7E;
}

.recent-post-content span {
    font-size: 0.8rem;
    color: #999;
}

/* Tags Widget */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tags-cloud a {
    display: inline-block;
    padding: 8px 16px;
    background: #f1f1f1;
    color: #666;
    border-radius: 20px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tags-cloud a:hover {
    background: #0E9C7E;
    color: #fff;
}

/* Newsletter CTA Section */
.newsletter-cta-section {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
}

.newsletter-cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.newsletter-cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(1, 23, 55, 0.95) 0%, rgba(14, 156, 126, 0.9) 100%);
}

.newsletter-cta-section .container {
    z-index: 2;
}

.newsletter-cta-section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 15px;
}

.newsletter-cta-section p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 35px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-newsletter-form {
    max-width: 550px;
    margin: 0 auto;
}

.cta-newsletter-form .input-group {
    background: #fff;
    border-radius: 50px;
    padding: 8px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.cta-newsletter-form .form-control {
    border: none;
    padding: 15px 25px;
    border-radius: 50px;
    font-size: 1rem;
}

.cta-newsletter-form .form-control:focus {
    box-shadow: none;
}

.btn-subscribe-cta {
    background: linear-gradient(135deg, #0E9C7E, #00d4aa);
    color: #fff;
    border: none;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.btn-subscribe-cta:hover {
    transform: scale(1.05);
    color: #fff;
}

.cta-newsletter-form small {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 15px;
}

/* Responsive */
@media (max-width: 991px) {
    .blog-hero .hero-title {
        font-size: 2.5rem;
    }
    
    .featured-side {
        flex-direction: row;
    }
    
    .blog-sidebar {
        position: static;
        margin-top: 40px;
    }
}

@media (max-width: 767px) {
    .blog-hero {
        min-height: 80vh;
        padding: 120px 0 80px;
    }
    
    .blog-hero .hero-title {
        font-size: 2rem;
    }
    
    .featured-side {
        flex-direction: column;
    }
    
    .featured-side .featured-image {
        width: 100%;
        height: 180px;
    }
    
    .category-tab {
        padding: 10px 18px;
        font-size: 0.9rem;
    }
    
    .newsletter-cta-section h2 {
        font-size: 1.8rem;
    }
    
    .cta-newsletter-form .input-group {
        flex-direction: column;
    }
    
    .btn-subscribe-cta {
        width: 100%;
        margin-top: 10px;
    }
}
