/* Blog List Styles */
.blog-list-container {
    padding: 20px;
}

.blog-list-categories {
    margin-bottom: 20px;
}

.row.x-gap-40 {
    --bs-gutter-x: 0.5rem !important;
    margin-right: calc(-0.25rem) !important;
    margin-left: calc(-0.25rem) !important;
}

.row.x-gap-40 > * {
    padding-right: calc(0.25rem) !important;
    padding-left: calc(0.25rem) !important;
}

.col-auto {
    padding: 0 4px;
}

.blog-list-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* Tabs Styles */
.tabs__button {
    position: relative;
    padding: 8px 0;
    color: #697488;
    transition: all 0.3s ease;
    cursor: pointer;
    background: none;
    border: none;
    outline: none;
}

.tabs__button.is-tab-el-active {
    color: #3554D1;
    font-weight: 600;
}

.tabs__button.is-tab-el-active:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #3554D1;
    transition: all 0.3s ease;
}

.tabs__button:hover {
    color: #3554D1;
}

.tabs__pane {
    display: none !important;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tabs__pane.is-tab-el-active {
    display: block !important;
    opacity: 1;
}

/* Mega Grid Styles */
.mega__content {
    width: 100%;
}

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

.mega__item {
    width: 100%;
}

/* Blog Card Styles */
.blogCard {
    display: block;
    background: var(--white);
    border-radius: 12px 12px 0 0;
    transition: all 0.3s ease;
    overflow: hidden;
    height: 100%;
    cursor: pointer;
}

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

.blogCard__image {
    width: 100%;
    overflow: hidden;
}

.blogCard__image .ratio {
    border-radius: 12px 12px 0 0;
}

.blogCard__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blogCard:hover .blogCard__image img {
    transform: scale(1.05);
}

.blogCard__content {
    padding: 15px 0;
}
 
.blogCard__title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark-1);
    line-height: 1.4;
    text-align: left;
}

.blogCard__date {
    font-size: 13px;
    color: #697488;
    margin-bottom: 8px;
    text-align: left;
}

.blogCard__text {
    font-size: 14px;
    color: var(--dark-3);
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.pagination__button {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    color: #697488;
    transition: all 0.3s ease;
}

.pagination__button:hover:not(.disabled) {
    background-color: #3554D1;
    color: white;
    border-color: #3554D1;
}

.pagination__button.is-active {
    background-color: #3554D1;
    color: white;
    border-color: #3554D1;
}

.pagination__button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Loading Indicator Styles */
.loading-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
    width: 100%;
    min-height: 100px;
}

.loading-indicator .spinner-border {
    width: 3rem;
    height: 3rem;
    border: 0.25em solid #00C2CC;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border .75s linear infinite;
}

.no-more-content {
    text-align: center;
    padding: 2rem 0;
    color: var(--text-light);
}

.text-primary {
    color: #3B71CA !important;
}

.text-light-1 {
    color: #697488;
    font-size: 14px;
}

@keyframes spinner-border {
    to { transform: rotate(360deg); }
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .mega__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .mega__grid {
        grid-template-columns: 1fr;
    }
}

.blog-category-btn {
    padding: 6px 16px;
    border: 1px solid #E5E9F2;
    border-radius: 4px;
    background: #FFFFFF;
    color: #697488;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
    margin: 0;
}

.blog-category-btn:hover {
    background: #F4F5F6;
    color: #3B71CA;
}

.blog-category-btn.active {
    background: #3B71CA;
    color: #FFFFFF;
    border-color: #3B71CA;
}

.blog-category-btn.active:hover {
    background: #386BC0;
} 