.titlebar-inner h1 {
    font-size: 60px;
}

.line-clamp {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.lqd-lp-author figure {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.lqd-lp-author figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog .lqd-lp-author figure,
#new-articles .lqd-lp-author figure,
#all-articles .lqd-lp-author figure,
.blog-detail .post-author .lqd-lp-author figure,
.related-posts .lqd-lp-author figure {
    width: 50px;
    height: 50px;
}

.lqd-lp-style-2-alt .lqd-lp-author figure {
    margin-inline-end: 0;
}

@media (max-width: 1199px) {
    .blog {
        padding: 45px 35px 40px 35px;
    }
}

@media (max-width: 767px) {
    .blog {
        padding: 45px 15px;
    }
}

.related-posts .lqd-lp-cat a {
    background-color: #f3f4f6 !important;
    color: #374151 !important;
}

.related-posts .lqd-lp-cat a:hover {
    background-color: #e5e7eb !important;
}

.hero-article {
    position: relative;
    height: 350px;
    width: 100%;
    overflow: hidden;
    margin-bottom: 40px;
}

.hero-article figure {
    position: relative;
    height: 100%;
}

.hero-article img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.2),
        rgba(0, 0, 0, 0.5)
    ); */
}

.index-page .hero-article {
    position: relative;
    height: 600px;
    width: 100vw;
    overflow: hidden;
    margin-bottom: 40px;
}

.blog-detail .hero-article {
    position: relative;
    height: auto;
    width: 100%;
    overflow: hidden;
    margin-bottom: 40px;
    border-radius: 8px;
}

.blog-detail .hero-article img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.blog-detail {
    padding: 20px 0 60px;
}

.article-meta {
    margin-bottom: 30px;
}

.post-category {
    margin-bottom: 20px;
}

.category-badge {
    display: inline-block;
    padding: 6px 15px;
    background-color: #4b5563;
    color: white;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
}

.article-title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #1f2937;
}

.article-heading {
    font-size: 30px;
}

.article-author-date {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.post-author {
    display: flex;
    align-items: center;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

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

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

.author-name {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: #1f2937;
}

/* Article Content */
.article-content {
    margin-bottom: 40px;
}

.article-intro {
    font-size: 18px;
    line-height: 1.6;
    color: #4b5563;
    margin-bottom: 20px;
}

.article-content h3 {
    font-size: 24px;
    font-weight: 600;
    color: #1f2937;
    margin: 30px 0 15px;
}

.article-content p {
    font-size: 16px;
    line-height: 1.7;
    color: #4b5563;
    margin-bottom: 20px;
}

.article-quote {
    margin: 30px 0;
    padding: 20px 0 20px 25px;
    border-left: 4px solid #4b5563;
    background-color: #f9fafb;
}

.article-quote p {
    font-size: 18px;
    font-style: italic;
    color: #1f2937;
    margin-bottom: 10px;
}

.article-quote cite {
    font-size: 14px;
    color: #6b7280;
    font-style: normal;
    font-weight: 500;
}

.article-tags {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tags-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-right: 15px;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
}

.tag-link {
    display: inline-block;
    padding: 5px 12px;
    margin: 0 8px 8px 0;
    background-color: #f3f4f6;
    color: #4b5563;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.tag-link:hover {
    background-color: #e5e7eb;
    color: #1f2937;
    text-decoration: none;
}

.article-share {
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.share-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-right: 15px;
}

.share-links {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.share-links li {
    margin-right: 10px;
}

.share-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: #f3f4f6;
    color: #4b5563;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.share-links a:hover {
    background-color: #4b5563;
    color: white;
}

.related-posts-section {
    background-color: #f9fafb;
    padding: 10px 0;
}

.related-posts h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
}

.horizontal-articles {
    gap: 30px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.horizontal-articles::-webkit-scrollbar {
    display: none;
}

.sidebar-title {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 20px;
}

.categories-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category-badge {
    display: inline-block;
    padding: 6px 15px;
    background-color: #f3f4f6;
    color: #4b5563;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 100px;
    transition: all 0.3s ease;
}

.category-badge:hover {
    background-color: #4b5563;
    color: #fff;
}

.category-badge.small {
    padding: 4px 10px;
    font-size: 11px;
}

.related-articles-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.related-article-item {
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.related-article-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.related-article-item h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin: 8px 0;
    line-height: 1.4;
}

.article-date {
    font-size: 12px;
    color: #6b7280;
}

.post-date {
    font-size: 14px;
    color: #6b7280;
    /* margin-top: 10px; */
}

@media (max-width: 992px) {
    .hero-article {
        height: 450px;
    }

    .article-title {
        font-size: 32px;
    }

    .article-heading {
        font-size: 32px;
    }

    .index-page .hero-article {
        height: 450px;
    }

    .blog-detail .hero-article {
        margin-bottom: 30px;
    }

    .sidebar-section {
        margin-top: 40px;
    }
}

@media (max-width: 768px) {
    .hero-article {
        height: 350px;
    }

    .article-title {
        font-size: 28px;
    }

    .article-heading {
        font-size: 28px;
    }

    .article-intro {
        font-size: 16px;
    }

    .index-page .hero-article {
        height: 350px;
    }

    .article-card-horizontal {
        min-width: 85%;
        margin-right: 15px;
    }

    .horizontal-articles {
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        padding-bottom: 20px;
    }

    .article-card-horizontal article {
        scroll-snap-align: start;
    }

    .lqd-lp-column {
        padding-left: 0;
        padding-right: 0;
    }

    .container {
        padding-left: 30px !important;
        padding-right: 30px !important;
    }

    .hero-article.index-page {
        display: none !important;
    }

    .blog-grid-inner {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .card-inner {
        height: 280px !important;
    }

    .card-title {
        font-size: 16px !important;
    }

    .blog-detail {
        padding-top: 15px !important;
    }

    .article-title {
        font-size: 24px !important;
        line-height: 1.3 !important;
    }

    .article-content {
        font-size: 15px !important;
    }

    .col-lg-4 {
        margin-top: 40px;
    }

    .related-posts-section .blog-grid-inner {
        grid-template-columns: 1fr !important;
    }

    .related-posts-section .card-inner {
        height: 250px !important;
    }

    .categories-list {
        gap: 8px !important;
    }

    .category-badge {
        padding: 4px 10px !important;
        font-size: 11px !important;
    }

    .categories-list {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        padding-bottom: 10px;
        margin-bottom: -10px;
        flex-wrap: nowrap !important;
        gap: 8px !important;
        padding-left: 1px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .categories-list::-webkit-scrollbar {
        display: none;
    }

    .category-badge {
        scroll-snap-align: start;
        padding: 3px 8px !important;
        font-size: 10px !important;
        flex-shrink: 0;
    }

    .card-content .category-badge {
        padding: 2px 8px !important;
        font-size: 9px !important;
    }

    .article-meta .category-badge {
        padding: 3px 10px !important;
        font-size: 10px !important;
    }

    .card-content .category-badge,
    .article-meta .category-badge {
        padding: 2px 8px !important;
        font-size: 9px !important;
    }
}

@media (max-width: 576px) {
    .hero-article {
        height: 250px;
        margin-bottom: 25px;
    }

    .article-title {
        font-size: 24px;
    }

    .article-heading {
        font-size: 24px;
    }

    .category-badge {
        padding: 4px 10px;
        font-size: 11px;
    }

    .author-avatar {
        width: 40px;
        height: 40px;
    }

    .article-content h3 {
        font-size: 20px;
    }

    .article-quote {
        padding: 15px 0 15px 15px;
    }

    .article-quote p {
        font-size: 16px;
    }

    .index-page .hero-article {
        height: 250px;
    }

    .blog-detail .hero-article {
        margin-bottom: 20px;
    }

    .sidebar-section {
        padding: 5px !important;
    }

    .related-article-item h4 {
        font-size: 14px;
    }

    .card-inner {
        height: 240px !important;
    }

    .article-meta {
        margin-bottom: 20px !important;
    }

    .post-date {
        font-size: 12px !important;
    }

    .blog-detail .hero-article img {
        aspect-ratio: 16/10 !important;
    }

    .category-badge {
        padding: 2px 8px !important;
        font-size: 9px !important;
    }

    .sidebar-section .category-badge {
        padding: 2px 8px !important;
        font-size: 9px !important;
    }

    .iconbox-label {
        padding: 3px 10px !important;
        font-size: 10px !important;
    }
}

.lqd-lp-style-2-alt {
    position: relative;
    transition: transform 0.3s ease;
}

.lqd-lp-style-2-alt .lqd-lp-content-bg {
    opacity: 0.75;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.75) 0%,
        rgba(0, 0, 0, 0)
    );
    transition: opacity 0.3s ease;
}

.lqd-lp-style-2-alt:hover .lqd-lp-content-bg {
    opacity: 0.9;
}

.lqd-lp-style-2-alt:hover {
    transform: translateY(-5px);
}

.lqd-lp-img figure img {
    opacity: 1 !important;
    transform: none !important;
    transition: transform 0.3s ease;
}

.lqd-lp-meta {
    position: relative;
    z-index: 3;
}

.lqd-lp-cat a {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: background-color 0.3s ease;
}

.lqd-lp-cat a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.lqd-lp-title a {
    color: #fff;
}

.related-posts .lqd-lp-style-2-alt {
    background-color: transparent;
}

.related-posts .lqd-lp-title a {
    color: #fff;
}

.related-posts .lqd-lp-meta-dot-between time {
    opacity: 0.8;
    color: #fff;
}

.lqd-lp-date {
    color: rgba(255, 255, 255, 0.8);
}

@media (hover: hover) {
    .lqd-lp-style-2-alt:hover .lqd-lp-img figure img {
        transform: scale(1.05);
    }
}

.blog-grid {
    width: 100%;
    padding: 0;
}

.blog-grid-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.blog-card {
    width: 100%;
}

.card-inner {
    position: relative;
    height: 320px;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

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

.card-inner:hover .card-media img {
    filter: brightness(0.7);
}

.card-media {
    position: absolute;
    width: 100%;
    height: 100%;
}

.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
    filter: brightness(0.9);
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0.2) 60%,
        rgba(0, 0, 0, 0.1) 100%
    );
}

.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    color: #fff;
    z-index: 2;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.category-badge {
    display: inline-block;
    padding: 4px 12px;
    background-color: rgba(255, 255, 255, 0.9);
    color: #1f2937;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 100px;
    transition: background-color 0.3s ease;
}

.category-badge:hover {
    background-color: #fff;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

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

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

.card-author span {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
}

.related-posts-section {
    background-color: #f9fafb;
    padding: 40px 0;
}

.related-posts-section .blog-grid-inner {
    margin-top: 30px;
}

.related-posts-section .card-inner {
    height: 300px;
}

@media (max-width: 768px) {
    .related-posts-section {
        padding: 30px 0;
    }

    .related-posts-section .card-inner {
        height: 320px;
    }
}

@media (max-width: 992px) {
    .blog-grid-inner {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-grid-inner {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .card-inner {
        height: 350px;
    }
}

.category-badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 100px;
    transition: background-color 0.3s ease;
}

.article-meta .category-badge {
    background-color: #4b5563;
    color: #fff;
}

.article-meta .category-badge:hover {
    background-color: #374151;
}

.card-content .category-badge {
    background-color: rgba(255, 255, 255, 0.9);
    color: #1f2937;
}

.card-content .category-badge:hover {
    background-color: #fff;
}

.sidebar-section {
    background: #fff;
    padding: 0 25px 25px 25px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.sidebar-title {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 20px;
}

.sidebar-section .categories-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sidebar-section .category-badge {
    padding: 3px 10px;
    font-size: 10px;
    background-color: #f3f4f6;
    color: #4b5563;
}

.sidebar-section .category-badge:hover {
    background-color: #4b5563;
    color: #fff;
}

.sidebar-section .related-articles-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sidebar-section .related-article-item {
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e7eb;
}

.sidebar-section .related-article-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-section .related-article-item .category-badge {
    padding: 3px 8px;
    font-size: 10px;
    margin-bottom: 6px;
}

.sidebar-section .related-article-item h4 {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    margin: 8px 0;
    line-height: 1.4;
}

.sidebar-section .related-article-item a {
    text-decoration: none;
    color: inherit;
}

.sidebar-section .related-article-item a:hover h4 {
    color: #4b5563;
}

.sidebar-section .related-article-item .article-date {
    font-size: 12px;
    color: #6b7280;
}

.category-badge.small {
    padding: 3px 10px;
    font-size: 10px;
}

.categories-list-wrapper {
    overflow: hidden;
    margin-bottom: 2rem;
}

.iconbox-label {
    padding: 6px 15px;
    font-size: 11px;
    transition: all 0.3s ease;
}

.iconbox-label:hover {
    background-color: #e5e7eb;
}

@media (max-width: 768px) {
    .categories-list {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        padding-bottom: 10px;
        margin-bottom: -10px;
        flex-wrap: nowrap !important;
        gap: 8px !important;
        padding-left: 1px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .categories-list::-webkit-scrollbar {
        display: none;
    }

    .iconbox-label {
        scroll-snap-align: start;
        padding: 4px 12px !important;
        flex-shrink: 0;
    }
}

@media (max-width: 576px) {
    .iconbox-label {
        padding: 3px 10px !important;
        font-size: 10px !important;
    }
}

@media (max-width: 992px) {
    .sidebar-section {
        margin-top: 40px;
    }
}

/* Article Content Images */
.content-image {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.content-image img.portrait-image {
    width: auto;
    height: 300px;
    object-fit: contain;
    max-width: 100%;
}

.content-image img.landscape-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    min-height: 200px;
}

/* Ensure proper sizing for common aspect ratios */
.content-image img.landscape-image[style*="aspect-ratio"] {
    min-height: 250px;
}

@media (max-width: 768px) {
    .content-image img.portrait-image {
        height: 250px;
    }

    .content-image img.landscape-image {
        min-height: 180px;
    }

    /* Better mobile handling for landscape images */
    .content-image img.landscape-image[style*="aspect-ratio"] {
        min-height: 200px;
    }
}

/* Article Content Headings */
.article-content h1 {
    font-size: 2.5rem !important;
    color: #1f2937;
    line-height: 1.2;
    margin: 1.5rem 0 1rem !important;
}

.article-content h2 {
    font-size: 2rem !important;
    color: #1f2937;
    line-height: 1.3;
    margin: 1.25rem 0 0.875rem !important;
}

.article-content h3 {
    font-size: 1.75rem !important;
    color: #1f2937;
    line-height: 1.4;
    margin: 1rem 0 0.75rem !important;
}

@media (max-width: 768px) {
    .article-content h1 {
        font-size: 1.75rem !important;
    }

    .article-content h2 {
        font-size: 1.5rem !important;
    }

    .article-content h3 {
        font-size: 1.25rem !important;
    }
}

/* Pagination Styling */
.pagination-wrapper {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.pagination {
    display: flex;
    padding-left: 0;
    list-style: none;
    border-radius: 0.25rem;
}

.page-item {
    margin: 0 3px;
}

.page-item:first-child .page-link {
    margin-left: 0;
    border-top-left-radius: 0.25rem;
    border-bottom-left-radius: 0.25rem;
}

.page-item:last-child .page-link {
    border-top-right-radius: 0.25rem;
    border-bottom-right-radius: 0.25rem;
}

.page-item.active .page-link {
    z-index: 3;
    color: #fff;
    background-color: #4b5563;
    border-color: #4b5563;
}

.page-item.disabled .page-link {
    color: #6c757d;
    pointer-events: none;
    cursor: auto;
    background-color: #f3f4f6;
    border-color: #e5e7eb;
}

.page-link {
    position: relative;
    display: block;
    padding: 0.5rem 0.75rem;
    margin-left: -1px;
    line-height: 1.25;
    color: #4b5563;
    background-color: #f3f4f6;
    border: 1px solid #e5e7eb;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,
        border-color 0.15s ease-in-out;
    border-radius: 0.25rem;
    font-size: 14px;
}

.page-link:hover {
    z-index: 2;
    color: #1f2937;
    text-decoration: none;
    background-color: #e5e7eb;
    border-color: #dee2e6;
}

.page-link:focus {
    z-index: 3;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(75, 85, 99, 0.25);
}

@media (max-width: 576px) {
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }

    .page-link {
        padding: 0.4rem 0.6rem;
        font-size: 12px;
    }

    .page-item {
        margin: 0 2px 5px;
    }
}
