/* ==========================================================================
   Antigravity Custom Blog Styles (React to Elementor Migration)
   ========================================================================== */

/* Typography & Fonts Defaults */
.blog-archive-wrapper,
.blog-single-wrapper {
    font-family: 'Montserrat', sans-serif;
    color: #333333;
    background-color: #ffffff;
    line-height: 1.6;
    box-sizing: border-box;
}

.blog-archive-wrapper *,
.blog-single-wrapper * {
    box-sizing: border-box;
}

/* Heading Fonts */
.blog-archive-title,
.blog-single-title,
.blog-card-title,
.blog-filter-title,
.widget-title,
.related-section-title,
.blog-author-name {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    color: #12143A;
    margin: 0 0 15px 0;
}

/* ==========================================================================
   1. Blog Archive Page & Category List
   ========================================================================== */

.blog-archive-wrapper {
    max-width: 1240px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* Blog Top Hero/Banner */
.blog-hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 50px;
}

.blog-hero-left {
    flex: 1;
}

.blog-hero-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.blog-archive-title {
    font-size: 56px;
    line-height: 1.1;
    margin-bottom: 25px;
    text-transform: capitalize;
}

/* Custom Search Container */
.blog-search-container {
    position: relative;
    max-width: 420px;
    width: 100%;
}

.blog-search-form {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.blog-search-input {
    width: 100% !important;
    height: 48px !important;
    padding: 12px 50px 12px 18px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 4px !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 15px !important;
    color: #333333 !important;
    outline: none !important;
    background-color: #ffffff !important;
    box-shadow: none !important;
    transition: border-color 0.25s ease !important;
}

.blog-search-input:focus {
    border-color: #F0B254 !important;
    box-shadow: 0 0 0 3px rgba(240, 178, 84, 0.1) !important;
}

.blog-search-submit {
    position: absolute !important;
    right: 18px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer !important;
    color: #9e9e9e !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    transition: color 0.25s ease !important;
}

.blog-search-submit:hover {
    color: #12143A !important;
}

.search-icon-svg {
    stroke-width: 2px !important;
    display: block !important;
}

/* Team Banner Image */
.blog-hero-team-image {
    width: 100%;
    max-width: 580px;
    height: auto;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

/* Category Filters */
.blog-filter-section {
    margin-bottom: 40px;
    border-top: 1px solid #eaeaea;
    padding-top: 30px;
}

.blog-filter-title {
    font-size: 20px;
    margin-bottom: 15px;
    text-transform: capitalize;
}

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

.blog-cat-link {
    display: inline-block;
    padding: 10px 22px;
    background-color: #f1f2f6;
    color: #4a4a4a;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.25s ease;
}

.blog-cat-link:hover {
    background-color: #e4e5ea;
    color: #12143A;
}

.blog-cat-link.active {
    background-color: #F0B254;
    color: #ffffff;
}

/* ==========================================================================
   2. Post Cards & Grid
   ========================================================================== */

.blog-grid-container {
    margin-bottom: 60px;
}

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

.blog-post-card {
    background-color: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.blog-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(18, 20, 58, 0.07);
}

/* Card Featured Image */
.blog-card-image-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background-color: #f5f5f5;
}

.blog-card-image-link {
    display: block;
    width: 100%;
    height: 100%;
}

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

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

/* Fallback/Placeholder Image */
.blog-card-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #12143A;
    color: #ffffff;
    padding: 20px;
    text-align: center;
}

.placeholder-text {
    font-family: 'Oswald', sans-serif;
    font-size: 18px;
    font-weight: 500;
}

/* Card Body Content */
.blog-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card-title {
    font-size: 22px;
    line-height: 1.25;
    margin-bottom: 10px;
}

.blog-card-title a {
    color: #12143A;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-card-title a:hover {
    color: #F0B254;
}

/* Meta Data */
.blog-card-meta {
    font-size: 13px;
    color: #888888;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-card-meta-separator {
    color: #dddddd;
}

/* Excerpt */
.blog-card-excerpt {
    font-size: 14px;
    color: #666666;
    margin-bottom: 25px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Read More Button */
.blog-card-readmore-btn {
    display: inline-block;
    align-self: flex-start;
    padding: 10px 24px;
    background-color: #F0B254;
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.25s ease, transform 0.2s ease;
}

.blog-card-readmore-btn:hover {
    background-color: #002141;
    color: #ffffff;
}

.blog-card-readmore-btn:active {
    transform: scale(0.98);
}

/* ==========================================================================
   3. Pagination List
   ========================================================================== */

.blog-pagination-wrapper {
    margin-top: 50px;
    display: flex;
    justify-content: center;
}

.blog-pagination-wrapper ul.page-numbers {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 8px;
}

.blog-pagination-wrapper ul.page-numbers li {
    margin: 0;
}

.blog-pagination-wrapper .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    background-color: #ffffff;
    border: 1px solid #eaeaea;
    color: #12143A;
    text-decoration: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.25s ease;
}

.blog-pagination-wrapper a.page-numbers:hover {
    background-color: #f1f2f6;
    border-color: #dcdcdc;
    color: #F0B254;
}

.blog-pagination-wrapper .page-numbers.current {
    background-color: #12143A;
    border-color: #12143A;
    color: #ffffff;
}

.blog-pagination-wrapper .page-numbers svg {
    margin: 0 4px;
    display: inline-block;
    vertical-align: middle;
}

.blog-no-posts-found {
    text-align: center;
    padding: 60px 20px;
    background: #fcfcfc;
    border-radius: 12px;
    border: 1px dashed #cccccc;
    color: #666666;
}

/* ==========================================================================
   4. Blog Single Post Page Template
   ========================================================================== */

/* Page Background and Wrapper */
.blog-single-page-wrapper {
    background-color: #F5F6FA;
    padding: 30px 20px 80px 20px;
    font-family: 'Montserrat', sans-serif;
    color: #4a4a4a;
}

/* Breadcrumbs (above hero) */
.blog-single-breadcrumbs-bar {
    max-width: 1240px;
    margin: 0 auto 20px auto;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #888888;
}

.blog-single-breadcrumbs-bar a {
    color: #888888;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-single-breadcrumbs-bar a:hover {
    color: #F0B254;
}

.breadcrumb-sep {
    margin: 0 8px;
    color: #cccccc;
}

.breadcrumb-author {
    color: #12143A;
}

/* Single Post Hero Banner with Overlay */
.blog-single-hero {
    max-width: 1240px;
    margin: 0 auto 40px auto;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.blog-single-hero-overlay {
    background-color: rgba(18, 20, 58, 0.88);
    padding: 60px 50px;
    width: 100%;
}

.blog-single-hero-container {
    max-width: 1140px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    align-items: center;
}

.blog-single-hero-left {
    padding-right: 20px;
}

.blog-single-title {
    font-family: 'Oswald', sans-serif;
    font-size: 44px;
    line-height: 1.15;
    color: #ffffff !important;
    margin: 0;
    text-transform: capitalize;
}

.blog-single-hero-right {
    color: #ffffff;
    display: flex;
    flex-direction: column;
}

.blog-single-hero-summary {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 20px 0;
}

.blog-hero-divider {
    border: 0;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.15);
    margin: 0 0 20px 0;
    width: 100%;
}

.blog-hero-meta-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.meta-written-by strong {
    color: #ffffff;
}

/* Three-Column Grid Content Layout */
.blog-single-body-container {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2.8fr 6.4fr 2.8fr;
    gap: 30px;
    align-items: start;
}

/* General Card Design */
.blog-toc-card,
.blog-single-content-card,
.blog-single-comments-card,
.blog-sidebar-card {
    background-color: #ffffff;
    border-radius: 8px;
    border: 1px solid #eaeaea;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

/* TOC Column (Left) */
.blog-toc-card {
    padding: 30px 24px;
    position: sticky;
    top: 100px;
}

.blog-toc-title {
    font-size: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 12px;
}

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

.blog-toc-list li {
    margin-bottom: 12px;
    line-height: 1.4;
}

.blog-toc-list li a {
    color: #4a4a4a;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s ease;
    display: block;
}

.blog-toc-list li a:hover {
    color: #F0B254;
}

.toc-sub-item {
    padding-left: 15px;
}

.toc-sub-item a {
    font-size: 12px !important;
    color: #777777 !important;
}

.toc-placeholder {
    font-size: 12px;
    color: #888888;
}

/* Content Column (Middle) */
.blog-single-content-card {
    padding: 40px;
}

.blog-single-post-body {
    font-size: 15px;
    line-height: 1.75;
    color: #333333;
}

.blog-single-post-body p {
    margin-bottom: 24px;
}

.blog-single-post-body a {
    color: #F0B254;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.blog-single-post-body a:hover {
    color: #12143A;
    text-decoration: underline;
}

/* Body Content Headings */
.blog-single-post-body h2,
.blog-single-post-body h3,
.blog-single-post-body h4 {
    font-family: 'Oswald', sans-serif;
    color: #12143A;
    margin-top: 40px;
    margin-bottom: 16px;
    font-weight: 700;
    line-height: 1.25;
}

.blog-single-post-body h2 {
    font-size: 26px;
    border-bottom: 1px solid #f1f2f6;
    padding-bottom: 8px;
}

.blog-single-post-body h3 {
    font-size: 20px;
}

/* Content Images & Captions */
.blog-single-post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

/* Content Comments Wrapper */
.blog-single-comments-card {
    margin-top: 30px;
    padding: 30px;
}

.blog-single-post-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eaeaea;
}

.blog-single-post-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.blog-single-post-tags a {
    display: inline-block;
    padding: 5px 12px;
    background-color: #f1f2f6;
    color: #4a4a4a !important;
    font-size: 12px;
    text-decoration: none !important;
    font-weight: 500 !important;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.blog-single-post-tags a:hover {
    background-color: #12143A;
    color: #ffffff !important;
}

/* Sidebar Column (Right) */
.blog-single-sidebar-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.blog-sidebar-card {
    padding: 24px;
}

.blog-sidebar-card-title {
    font-size: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 10px;
}

/* Author Sidebar Card */
.blog-author-card-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.blog-author-avatar-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #fcfcfc;
    border: 1px solid #eaeaea;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

.blog-author-card-avatar {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.blog-author-card-name {
    font-size: 14px;
    color: #12143A;
}

/* Related Resources Sidebar Card */
.blog-resources-list {
    list-style-type: square;
    padding-left: 20px;
    margin: 0;
}

.blog-resource-item {
    margin-bottom: 20px;
}

.blog-resource-item:last-child {
    margin-bottom: 0;
}

.blog-resource-item-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 6px 0;
}

.blog-resource-item-title a {
    color: #12143A;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-resource-item-title a:hover {
    color: #F0B254;
}

.blog-resource-item-excerpt {
    font-size: 12px;
    color: #777777;
    line-height: 1.5;
}

/* ==========================================================================
   5. Responsive Media Queries
   ========================================================================== */

/* Large Tablets & Desktop under 1024px */
@media (max-width: 1024px) {
    .blog-posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .blog-single-body-container {
        grid-template-columns: 8fr 4fr;
        gap: 25px;
    }

    /* Hide Table of Contents Column on smaller screens */
    .blog-single-toc-column {
        display: none;
    }

    .blog-single-hero-overlay {
        padding: 50px 30px;
    }

    .blog-single-hero-container {
        gap: 30px;
    }

    .blog-single-title {
        font-size: 36px;
    }
}

/* Tablets (max 768px) */
@media (max-width: 768px) {
    .blog-hero-section {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .blog-hero-right {
        justify-content: center;
    }

    .blog-archive-title {
        font-size: 40px;
    }

    .blog-search-container {
        margin: 0 auto;
    }

    .blog-single-hero-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .blog-single-hero-left {
        padding-right: 0;
        text-align: center;
    }

    .blog-single-hero-right {
        text-align: center;
    }

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

    .blog-single-body-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

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

/* Mobile Screens (max 480px) */
@media (max-width: 480px) {
    .blog-posts-grid {
        grid-template-columns: 1fr;
    }

    .blog-cat-link {
        width: 100%;
        text-align: center;
    }

    .blog-archive-wrapper {
        padding: 30px 15px;
    }

    .blog-single-page-wrapper {
        padding: 20px 10px 60px 10px;
    }

    .blog-single-hero-overlay {
        padding: 30px 15px;
    }

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

    .blog-single-hero-summary {
        font-size: 14px;
    }
}