﻿/* Blog section main styles */
.blog-section-main {
    padding-bottom: 20px;
}

/* Blog header section */
.blog-header-section {
    display: block;
    width: 100%;
    background: #e8f0f6;
    padding: 0.75rem 0 0;
}

/* Layout styles */
.blog-header-section .layout--12 .column {
    padding: 0px;
}

.blog-header-section .layout--12 .layout--3-3-3-3 .column {
    padding: 0 12px;
    margin: 12px 0 !important;
}

.blog-header-section .layout--12 .column .layout--3-3-3-3 {
    display: flex;
    justify-content: center;
    align-items: center;
}

.blog-header-section .layout--12 .column .layout--3-3-3-3 .column {
    flex: 1 1 20%;
    width: 20%;
}

/* Loading indicators */
.network-status-loading-bars .loading-icon {
    margin: auto;
    display: block;
}

div#global-loading-bars {
    background: rgba(255, 255, 255, 0.5);
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    z-index: 9999;
}

div#global-loading-bars .loading-icon {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Blog tab section */
.blog-tab-section-wrapper {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 1.5rem;
}

.blog-tab-section-wrapper .blog-tab-section {
    padding: 0;
}

/* Tab links */
.blog-tab-section-wrapper .blog-tab-section a {
    padding: 1rem 1.5rem;
    color: #20234e;
    position: relative;
    border-radius: 10px 10px 0 0;
    box-shadow: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background-color: transparent;
    text-decoration: none;
}

.blog-tab-section-wrapper .blog-tab-section a img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    object-position: center;
}

.blog-tab-section-wrapper .blog-tab-section a .category-name {
    font-size: 1rem;
    line-height: 1.25;
    font-weight: 400;
}

/* Tab hover and active states */
.blog-tab-section-wrapper .blog-tab-section a:hover,
.blog-tab-section-wrapper .blog-tab-section.tab-active a,
.blog-tab-section-wrapper .blog-tab-section a:focus {
    color: #0357ab;
    background-color: #fff;
    outline-offset: -2px;
}

.blog-tab-section-wrapper .blog-tab-section.tab-active a,
.blog-tab-section-wrapper .blog-tab-section a:focus {
    border: 0 !important;
}

/* Tab decorative elements */
.blog-tab-section-wrapper .blog-tab-section a::before,
.blog-tab-section-wrapper .blog-tab-section a::after {
    content: "";
    position: absolute;
    bottom: 0;
    width: 12px;
    height: 20px;
    background-image: url("/Assets/img/categories-side-icon.svg");
    background-repeat: no-repeat;
    background-size: 12px 20px;
    background-position: left center;
    opacity: 0;
    background-color: transparent;
}

.blog-tab-section-wrapper .blog-tab-section a::before {
    right: -12px;
}

.blog-tab-section-wrapper .blog-tab-section a::after {
    left: -12px;
    transform: scaleX(-1);
}

.blog-tab-section-wrapper .blog-tab-section.tab-active a::before,
.blog-tab-section-wrapper .blog-tab-section.tab-active a::after,
.blog-tab-section-wrapper .blog-tab-section a:focus::before,
.blog-tab-section-wrapper .blog-tab-section a:focus::after,
.blog-tab-section-wrapper .blog-tab-section a:hover::before,
.blog-tab-section-wrapper .blog-tab-section a:hover::after {
    opacity: 1;
}

/* Category image handling */
.blog-tab-section-wrapper .blog-tab-section a .category-over-image,
.blog-tab-section-wrapper .blog-tab-section a:hover .category-image,
.blog-tab-section-wrapper .blog-tab-section a:focus .category-image,
.blog-tab-section-wrapper .blog-tab-section.tab-active a .category-image {
    display: none;
}

.blog-tab-section-wrapper .blog-tab-section a:hover .category-over-image,
.blog-tab-section-wrapper .blog-tab-section a:focus .category-over-image,
.blog-tab-section-wrapper .blog-tab-section.tab-active a .category-over-image {
    display: block;
}

/* Mobile category container */
.blog-category-mobile-container {
    display: none;
}

.blog-category-mobile-container div.fancy-select div.trigger {
    padding-left: 16px;
    font-size: 14px !important;
}

.blog-category-mobile-container div.fancy-select div.trigger:after {
    content: "" !important;
    height: 0;
    width: 0;
    border-width: 0px 2px 2px 0px;
    border-style: solid;
    border-color: #0357ab;
    padding: 4px;
    transform: rotate(45deg) translate(-50%, -50%);
    top: 50%;
    right: 16px !important;
    transition: all 300ms ease;
}

.blog-category-mobile-container div.fancy-select div.trigger.open:after {
    top: 13px;
    transform: rotate(-135deg) translate(-50%, -50%);
}

/* Responsive styles - Tablet */
@media screen and (max-width: 1024.98px) {
    .blog-header-section .layout--12 .column {
        padding: 0 12px;
    }

    .blog-header-section .layout--12 .column .layout--3-3-3-3 {
        flex-direction: column;
    }

    .blog-header-section .layout--12 .column .layout--3-3-3-3 .column {
        flex: 1 1 100%;
        width: 100%;
        margin: 6px 0 !important;
    }

    .blog-tab-section-wrapper {
        gap: 0.5rem;
    }

    .blog-tab-section-wrapper .blog-tab-section {
        margin: 0;
    }

    .blog-tab-section-wrapper .blog-tab-section a {
        padding: 1rem;
        min-height: 4.5rem;
    }

    .blog-tab-section-wrapper .blog-tab-section.tab-active a::after {
        display: block;
    }
}

/* Responsive styles - Mobile */
@media screen and (max-width: 767.98px) {
    .blog-header-section {
        background-color: #e9f0f5;
        padding: 1rem;
        height: 72px;
    }

    .blog-header-section .layout--12 > .column {
        padding: 0;
    }

    .blog-category-mobile-container {
        display: block !important;
    }

    .blog-tab-section-wrapper {
        display: none !important;
    }

    /* Mobile dropdown styles */
    .blog-category-mobile-container select {
        padding: 0;
        display: none;
        width: 100%;
    }

    .blog-category-mobile-container .fancy-select {
        border: 1px solid #e6e6e6;
        border-radius: 4px;
        height: 44px;
        width: 100%;
        font-size: 14px;
        color: #20234e;
    }

    .blog-category-mobile-container select option,
    .blog-category-mobile-container .fancy-select .options {
        width: 100%;
    }

    .blog-category-mobile-container .fancy-select .options {
        box-shadow: 0px 0px 12px 0px #0000000f;
        border-radius: 4px;
        z-index: 50 !important;
    }

    .blog-category-mobile-container .fancy-select .options li {
        margin: 0;
        padding: 10px 12px;
        height: auto;
        font-size: 14px;
        line-height: 1;
        color: #20234e !important;
    }
}
