:root {
    --blog-primary: #ED1C24;
    --blog-primary-transparent: rgba(237, 28, 36, 0.3);
    --blog-white: #ffffff;
    --blog-black: #231F20;
    --blog-grey: #666666;
    --blog-border: #eeeeee;
    --blog-overlay-start: rgba(0, 0, 0, 0.3);
    --blog-overlay-end: rgba(0, 0, 0, 0.8);
}

/* Blog Listing Page Styles */

/* Banner Section */
.blog-hero-banner {
    position: relative;
    width: calc(100% - 40px);
    min-height: 640px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    /* Rounded corners as requested */
    overflow: hidden;
    margin: 0 auto;
    margin-bottom: 50px;
}

.blog-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, var(--blog-overlay-start) 0%, var(--blog-overlay-end) 100%);
    z-index: 1;
}

.blog-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--blog-white);
    padding: 0 20px;
}

.blog-page-title {
    font-size: 40px;
    font-weight: 1500;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-family: 'gilroy', sans-serif;
}

.blog-intro-text {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto;
}

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

/* Category Filter Tabs */
.blog-category-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 40px;
    padding-bottom: 12px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    position: relative;
}

.blog-category-filters::after {
    content: "";
    background-color: var(--blog-primary);
    height: 3px;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 4px;
}

/* Hide scrollbar for category tabs */
.blog-category-filters::-webkit-scrollbar {
    display: none;
}

.blog-category-filters {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.blog-filter-btn {
    background: none;
    border: none;
    padding: 0 16px;
    font-size: 20px;
    font-weight: 500;
    color: var(--blog-black);
    cursor: pointer;
    position: relative;
    font-family: 'gilroy', sans-serif;
    transition: color 0.3s ease;
    background-color: transparent !important;
}

.blog-filter-btn::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 0;
    height: 11px;
    background-color: var(--blog-primary);
    border-radius: 12px;
    transition: width 0.3s ease;
    z-index: 2;
}

.blog-filter-btn:hover,
.blog-filter-btn.active {
    color: var(--blog-primary);
    /* Active text is red */
}

.blog-filter-btn.active::after {
    width: 100%;
}

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

/* Blog Card */
.blog-card {
    background: transparent;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.blog-card-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 20px;
}

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

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

.blog-category-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--blog-primary);
    color: var(--blog-white);
    padding: 8px 10px;
    border-radius: 8px;
    line-height: 1;
    white-space: nowrap;
    font-size: 16px;
    font-weight: 500;
    font-family: 'gilroy', sans-serif;
    z-index: 2;
}

.blog-card-content {
    padding: 16px 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex-grow: 1;
}

.blog-card-title {
    font-size: 20px;
    font-weight: 500;
    line-height: 120%;
    margin: 0;
    font-family: 'gilroy', sans-serif;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.blog-card-title a {
    color: var(--blog-black);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card-title a:hover {
    color: var(--blog-primary);
}

.blog-card-meta {
    display: flex;
    align-items: center;
    margin-top: auto;
    gap: 8px;
}

.blog-card-author-avatar img {
    display: flex;
    border-radius: 50%;
    border: 3px solid var(--blog-primary-transparent);
    padding: 0;
    width: 36px;
    height: 36px;
    object-fit: cover;
}

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

.blog-card-author-name {
    font-weight: 500;
    font-size: 16px;
    line-height: 1;
    text-transform: capitalize;
    color: var(--blog-black);
    font-family: 'gilroy', sans-serif;
}

.blog-card-date {
    font-size: 14px;
    line-height: 1;
    color: var(--blog-grey);
    margin-top: 2px;
}

/* Load More Button */
.blog-load-more-container {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 60px;
}

#blog-load-more-btn {
    display: inline-block;
    background-color: transparent;
    border: 2px solid var(--blog-primary);
    color: var(--blog-primary);
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'gilroy', sans-serif;
}

#blog-load-more-btn:hover {
    background-color: var(--blog-primary);
    color: var(--blog-white);
}

#blog-load-more-btn[style*="display: none"] {
    display: none !important;
}

/* Responsive Design */
@media screen and (max-width: 991px) {
    .blog-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 767px) {
    .blog-cards-grid {
        grid-template-columns: 1fr;
    }

    .blog-hero-banner {
        min-height: 424px;
    }

    .blog-page-title {
        font-size: 20px;
        margin-top: 72px;
    }
}

/* =========================================
   SINGLE BLOG POST STYLES
   ========================================= */

.single-blog-container {
    max-width: 1400px;
    margin: 200px auto 0;
    padding: 40px 15px;
}

.single-blog-back-nav {
    margin-bottom: 30px;
}

.back-link {
    color: var(--blog-primary);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    font-family: 'gilroy', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--blog-black);
}

.single-blog-header {
    margin-bottom: 40px;
}

.single-blog-title {
    font-size: 48px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--blog-black);
    font-family: 'gilroy', sans-serif;
    margin: 0 0 30px 0;
    max-width: 920px;
}

.single-blog-meta-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.single-blog-author-meta {
    display: flex;
    align-items: center;
    gap: 15px;
}

.single-author-avatar img {
    border-radius: 50%;
    width: 48px;
    height: 48px;
    object-fit: cover;
    border: 3px solid var(--blog-primary-transparent);
    padding: 0;
    display: flex;
}

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

.single-author-name {
    font-weight: 500;
    font-size: 18px;
    line-height: 1;
    text-transform: capitalize;
    color: var(--blog-black);
    font-family: 'gilroy', sans-serif;
}

.single-author-date {
    font-size: 15px;
    color: var(--blog-grey);
    line-height: 1;
    margin-top: 4px;
}

.single-blog-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.single-cat-badge {
    background-color: #FFCC00;
    color: var(--blog-black);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 16px;
    line-height: 1;
    font-weight: 600;
    font-family: 'gilroy', sans-serif;
}

.single-blog-featured-image {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 50px;
}

.single-blog-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.single-blog-content {
    max-width: 1000px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.8;
    color: #333333;
}

.single-blog-content h2,
.single-blog-content h3,
.single-blog-content h4 {
    font-family: 'gilroy', sans-serif;
    color: var(--blog-black);
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 600;
}

.single-blog-content h2 {
    font-size: 32px;
}

.single-blog-content h3 {
    font-size: 26px;
}

.single-blog-content p {
    margin-bottom: 20px;
}

.single-blog-content ul {
    margin-bottom: 25px;
    padding-left: 0;
    list-style: none;
}

.single-blog-content ol {
    margin-bottom: 25px;
    padding-left: 20px;
}

.single-blog-content ul li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
}

.single-blog-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 13px;
    /* Adjust to vertically align with the middle of the first line of text */
    width: 12px;
    height: 2px;
    background-color: var(--blog-primary);
    border-radius: 2px;
}

.single-blog-content ol li {
    margin-bottom: 12px;
}

.single-related-blogs {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 1px solid var(--blog-border);
}

.related-blogs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.related-blogs-title {
    font-size: 32px;
    font-weight: 600;
    color: var(--blog-black);
    font-family: 'gilroy', sans-serif;
    margin: 0;
}

.explore-more-link {
    color: var(--blog-primary);
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    font-family: 'gilroy', sans-serif;
    transition: color 0.3s ease;
}

.explore-more-link:hover {
    color: var(--blog-black);
}

@media screen and (max-width: 767px) {
    .single-blog-title {
        font-size: 32px;
    }

    .single-blog-meta-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }

    .related-blogs-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}
.single-blog-tags-and-share {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.single-blog-share-separator {
    color: var(--blog-black);
    font-size: 18px;
    opacity: 0.5;
}

.single-blog-native-share {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--blog-black);
    padding: 0;
    transition: color 0.3s ease;
}

.single-blog-native-share:hover {
    color: var(--blog-primary);
}

.share-text {
    font-size: 18px;
    font-weight: 500;
    font-family: 'gilroy', sans-serif;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.share-icon {
    width: 20px;
    height: 20px;
}

