/* ===================================
   Blog Styles - Germinare
=================================== */

/* Blog Layout */
.section-padding {
    padding: 110px 0;
}

@media (max-width: 767px) {
    .section-padding {
        padding: 50px 0;
    }
}

/* Blog Page Title */
.blog-page-title {
    padding: 140px 0 60px;
    border-bottom: 1px solid var(--border-default);
}

@media (max-width: 991px) {
    .blog-page-title {
        padding: 160px 0 60px;
    }
}

@media (max-width: 767px) {
    .blog-page-title {
        padding: 120px 0 24px;
    }
    .elements-social ul {
        align-items: center;
        justify-content: center;
    }
}

.border-color-border-default {
    border-color: var(--border-default) !important;
}

/* Blog Post Items */
.blog-post {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.blog-post-image {
    position: relative;
}

.blog-post-image img {
    transition: transform 0.5s ease;
}

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

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

/* Featured Post */
.featured-post {
    transition: all 0.3s ease;
}

.featured-post:hover {
    transform: translateY(-3px);
}

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

.featured-post-image img {
    transition: transform 0.5s ease;
    min-height: 400px;
}

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

/* Blog Post Cards */
.blog-post-card {
    transition: all 0.3s ease;
    border: 1px solid var(--border-default);
}

.blog-post-card:hover {
    transform: translateY(-5px);
    border-color: var(--base-color);
}

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

.blog-post-card .blog-post-image img {
    transition: transform 0.5s ease;
}

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

.blog-post-card .blog-post-content {
    flex: 1;
}

.blog-post-card h3 a {
    transition: color 0.3s ease;
}

.blog-post-card h3 a:hover {
    color: var(--base-color) !important;
}

.object-cover {
    object-fit: cover;
}

/* Blog Post Content */
.post-content {
    line-height: 1.8;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    margin-top: 35px;
    margin-bottom: 20px;
    font-weight: 600;
}

.post-content h1:first-child,
.post-content h2:first-child,
.post-content h3:first-child,
.post-content h4:first-child,
.post-content h5:first-child,
.post-content h6:first-child {
    margin-top: 0;
}

.post-content p {
    margin-bottom: 25px;
}

.post-content p:last-child {
    margin-bottom: 0;
}

/* Blockquotes */
.blockquote-style-02 {
    position: relative;
    font-style: italic;
    border-left: 4px solid var(--base-color);
}

.blockquote-style-02::before {
    content: '"';
    font-size: 60px;
    color: var(--base-color);
    position: absolute;
    top: -10px;
    left: 15px;
    font-family: Georgia, serif;
    line-height: 1;
}

.blockquote-style-02 p {
    margin-left: 40px;
    font-size: 18px;
    line-height: 1.6;
}

.blockquote-style-02 footer {
    margin-left: 40px;
    margin-top: 15px;
    font-style: normal;
    padding: 0;
}

/* Lists */
.list-style-02 {
    list-style: none;
    padding: 0;
    margin: 0;
}

.list-style-02 li {
    position: relative;
    padding-left: 0;
}

.list-style-03 {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: list-counter;
}

.list-style-03 li {
    counter-increment: list-counter;
    position: relative;
    padding-left: 35px;
}

.list-style-03 li::before {
    content: counter(list-counter);
    position: absolute;
    left: 0;
    top: 0;
    background: var(--base-color);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* Tables */
.table-dark {
    --bs-table-bg: var(--lighter);
    --bs-table-border-color: var(--border-default);
}

.table-dark th {
    border-bottom-color: var(--border-default);
}

.table-dark td {
    border-top-color: var(--border-default);
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Color classes for table content */
.text-green {
    color: #28a745 !important;
}

.text-orange {
    color: var(--base-color) !important;
}

/* Highlight boxes */
.bg-opacity-10 {
    background-color: rgba(255, 133, 0, 0.1) !important;
}

/* Social Sharing */
.elements-social ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 10px;
}

.elements-social .small-icon li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--darker);
    color: var(--text-body);
    transition: all 0.3s ease;
    text-decoration: none;
}

.elements-social .small-icon li a:hover {
    background: var(--base-color);
    color: white;
    transform: translateY(-2px);
}

.elements-social .small-icon li a.facebook:hover {
    background: #3b5998;
}

.elements-social .small-icon li a.twitter:hover {
    background: #1da1f2;
}

.elements-social .small-icon li a.linkedin:hover {
    background: #0077b5;
}

.elements-social .small-icon li a.instagram:hover {
    background: #e4405f;
}

.elements-social .small-icon li a.youtube:hover {
    background: #ff0000;
}

.elements-social .small-icon li a.whatsapp:hover {
    background: #25d366;
}

/* Author Box */
.author-info {
    position: relative;
}

.author-info img {
    object-fit: cover;
}

/* Tags */
.tag-cloud .badge {
    font-size: 13px;
    padding: 8px 15px;
    font-weight: 400;
    transition: all 0.3s ease;
}

.tag-cloud .badge:hover {
    background: var(--base-color) !important;
    color: white !important;
    border-color: var(--base-color) !important;
}

/* Post Navigation */
.post-navigation {
    margin-top: 45px;
}

.post-navigation .nav-item {
    background: var(--lighter);
    padding: 25px;
    border-radius: 10px;
    height: 100%;
    transition: all 0.3s ease;
}

.post-navigation .nav-item:hover {
    background: var(--base-color);
}

.post-navigation .nav-item:hover * {
    color: white !important;
}

/* Post Navigation - Updated for current structure */
.post-navigation .bg-lighter {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.post-navigation .bg-lighter:hover {
    background: var(--base-color) !important;
    transform: translateY(-3px);
    border-color: var(--base-color);
}

.post-navigation .bg-lighter:hover * {
    color: white !important;
}

/* Pagination */
.pagination-style-01 ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 10px;
}

.pagination-style-01 .page-item .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--lighter);
    color: var(--text-body);
    border: 1px solid var(--border-default);
    text-decoration: none;
    transition: all 0.3s ease;
    width: 48px;
    height: 48px;
    font-weight: 600;
}

.pagination-style-01 .page-item .page-link:hover,
.pagination-style-01 .page-item.active .page-link {
    background: var(--base-color);
    color: var(--dark);
    border-color: var(--base-color);
}

/* Sidebar Widgets */
.sidebar-wrapper .widget {
    position: relative;
}

/* Search Widget */
.widget .form-control {
    background: var(--darker);
    border: 1px solid var(--border-default);
    color: var(--text-body);
}

.widget .form-control:focus {
    background: var(--darker);
    border-color: var(--base-color);
    color: var(--text-body);
    box-shadow: 0 0 0 0.2rem rgba(255, 133, 0, 0.25);
}

.widget .form-control::placeholder {
    color: var(--text-body);
    opacity: 0.6;
}

/* Newsletter Widget */
.newsletter-style-03 .form-control {
    border: 1px solid var(--border-default);
}

.newsletter-style-03 .form-control:focus {
    border-color: var(--base-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 133, 0, 0.25);
}

/* Recent Posts Widget */
.recent-posts li {
    position: relative;
}

.recent-posts a {
    transition: color 0.3s ease;
}

.recent-posts a:hover {
    color: var(--base-color) !important;
}

/* Footer adjustments for blog pages */
.footer-list-style-01 {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-list-style-01 li {
    margin-bottom: 8px;
}

.footer-list-style-01 li a {
    color: var(--text-body);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-list-style-01 li a:hover {
    color: var(--base-color);
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .ps-35px {
        padding-left: 15px !important;
    }
}

@media (max-width: 767px) {
    .blog-post {
        padding: 30px !important;
    }
    
    .widget {
        padding: 25px !important;
        margin-bottom: 25px !important;
    }
    
    .blockquote-style-02 {
        padding: 25px !important;
    }
    
    .blockquote-style-02 p {
        font-size: 16px;
        margin-left: 30px;
    }
    
    .blockquote-style-02 footer {
        margin-left: 30px;
    }
    
    .author-info {
        padding: 25px !important;
    }
    
    .post-content h2,
    .post-content h3,
    .post-content h4 {
        margin-top: 25px;
        margin-bottom: 15px;
    }
}

/* Animation utilities */
.border-radius-50px {
    border-radius: 50px;
}

.z-index-2 {
    z-index: 2;
}

.lh-22 {
    line-height: 1.375;
}

/* Badge styles */
.badge-medium {
    padding: 6px 12px;
    font-size: 12px;
}

/* Table of Contents */
.table-of-contents .toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: toc-counter;
}

.table-of-contents .toc-list li {
    counter-increment: toc-counter;
    position: relative;
}

.table-of-contents .toc-list li::before {
    content: counter(toc-counter);
    position: absolute;
    left: 0;
    top: 12px;
    background: transparent;
    color: var(--base-color);
    width: 18px;
    height: 18px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.table-of-contents a {
    transition: all 0.3s ease;
    display: block;
    padding: 8px 0;
    border-left: 3px solid transparent;
    padding-left: 24px;
}

.table-of-contents a:hover {
    color: var(--base-color) !important;
}

/* Sticky sidebar positioned relative to featured image */
.sidebar-sticky {
    position: sticky;
    top: 120px;
    z-index: 10;
}

@media (max-width: 991px) {
    .sidebar-sticky {
        position: relative;
        top: auto;
    }
    
    .table-of-contents .toc-list li::before {
        left: -20px;
        width: 16px;
        height: 16px;
        font-size: 10px;
    }
}


/* Social icons standardized */

.elements-social {
    align-items: center;
}
.elements-social .small-icon {
    gap: 10px;
}

.elements-social .small-icon li a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--darker);
    color: var(--text-body);
    transition: all 0.3s ease;
    text-decoration: none;
}

.elements-social .small-icon li a:hover {
    background: var(--base-color);
    color: white;
    transform: translateY(-2px);
}

/* Footer social icons match */
footer .elements-social .small-icon li a {
    width: 35px;
    height: 35px;
    border-radius: 8px;
    background: var(--darker);
}

footer .elements-social .small-icon li a:hover {
    background: var(--base-color);
    transform: translateY(-2px);
}

/* Related posts section */
.section-padding.bg-darker {
    background: var(--darker) !important;
}

/* Responsive improvements */
@media (max-width: 991px) {
    .featured-post-content {
        padding: 30px !important;
    }
    
    .featured-post-image img {
        min-height: 250px;
    }
}

@media (max-width: 767px) {
    .featured-post-content {
        padding: 25px !important;
    }
    
    .featured-post-image img {
        min-height: 200px;
    }
    
    .blog-post-card .blog-post-content {
        padding: 20px !important;
    }
    
    .sticky-top {
        position: relative;
        top: auto;
    }
}

@media (max-width: 767px) {
    .elements-social ul {
        align-items: center;
        justify-content: center;
    }
}
