/**
 * TBG Blog Widgets Styles
 * Überschriften: Font Caveat, Color #0413ff
 */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;500;600;700&display=swap');

/* =========================================
   Blog Post Grid Widget
   ========================================= */
.tbg-blog-grid {
    display: grid;
    gap: 30px;
}

.tbg-blog-grid--cols-1 {
    grid-template-columns: 1fr;
}

.tbg-blog-grid--cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.tbg-blog-grid--cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.tbg-blog-grid--cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
    .tbg-blog-grid--cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .tbg-blog-grid--cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .tbg-blog-grid--cols-4,
    .tbg-blog-grid--cols-3,
    .tbg-blog-grid--cols-2 {
        grid-template-columns: 1fr;
    }
}

.tbg-blog-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tbg-blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.tbg-blog-card__image-link {
    display: block;
    overflow: hidden;
}

.tbg-blog-card__image {
    aspect-ratio: 16/10;
    overflow: hidden;
}

.tbg-blog-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.tbg-blog-card:hover .tbg-blog-card__image img {
    transform: scale(1.05);
}

.tbg-blog-card__content {
    padding: 24px;
}

.tbg-blog-card__category {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Überschrift: Caveat + #0413ff */
.tbg-blog-card__title {
    font-size: var(--title-size)!important;
font-family: 'Caveat';
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 12px;
    color: #0413ff;
}

.tbg-blog-card__title a {
    color: #0413ff;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.tbg-blog-card__title a:hover {
    opacity: 0.7;
}

.tbg-blog-card__excerpt {
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 16px;
    color: #04134e !important;
font-size: var(--text-size);
}

.tbg-blog-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.tbg-blog-card__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: #888;
}

.tbg-blog-card__author,
.tbg-blog-card__date {
    display: flex;
    align-items: center;
    gap: 4px;
}

.tbg-blog-card__read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    color: #0413ff;
    transition: gap 0.3s ease;
}

.tbg-blog-card__read-more:hover {
    gap: 10px;
}

.tbg-blog-card__read-more svg {
    transition: transform 0.3s ease;
}

.tbg-blog-card__read-more:hover svg {
    transform: translateX(3px);
}

.tbg-blog-no-posts {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 16px;
}

/* =========================================
   Blog Featured Post Widget
   ========================================= */
.tbg-featured-post {
    position: relative;
    display: flex;
    border-radius: 16px;
    overflow: hidden;
}

.tbg-featured-post--overlay {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.tbg-featured-post--overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.tbg-featured-post--overlay .tbg-featured-post__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 60px;
    width: 100%;
}

.tbg-featured-post--side {
    background: #fff;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.tbg-featured-post--side .tbg-featured-post__image {
    flex: 0 0 50%;
}

.tbg-featured-post--side .tbg-featured-post__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tbg-featured-post--side .tbg-featured-post__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 50px;
}

.tbg-featured-post--side .tbg-featured-post__excerpt,
.tbg-featured-post--side .tbg-featured-post__meta {
    color: #1a1a1a;
}

.tbg-featured-post--card {
    flex-direction: column;
    background: #fff;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.tbg-featured-post--card .tbg-featured-post__image-wrapper {
    width: 100%;
    aspect-ratio: 21/9;
    overflow: hidden;
}

.tbg-featured-post--card .tbg-featured-post__image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tbg-featured-post--card .tbg-featured-post__content {
    padding: 40px;
}

.tbg-featured-post--card .tbg-featured-post__excerpt,
.tbg-featured-post--card .tbg-featured-post__meta {
    color: #1a1a1a;
}

.tbg-featured-post__category {
    display: inline-block;
    padding: 6px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    border-radius: 20px;
    margin-bottom: 16px;
    width: fit-content;
}

/* Überschrift: Caveat + #0413ff */
.tbg-featured-post__title {
    font-size: var(--title-size)!important;
font-family: 'Caveat';
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 16px;
    color: #0413ff;
}

.tbg-featured-post--overlay .tbg-featured-post__title {
    color: #fff;
}

.tbg-featured-post__title a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.tbg-featured-post__title a:hover {
    opacity: 0.8;
}

.tbg-featured-post__excerpt {
    font-size: 17px;
    line-height: 1.7;
    margin: 0 0 20px;
    max-width: 700px;
}

.tbg-featured-post--overlay .tbg-featured-post__excerpt {
    color: rgba(255, 255, 255, 0.9);
}

.tbg-featured-post__meta {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 14px;
    margin-bottom: 24px;
}

.tbg-featured-post--overlay .tbg-featured-post__meta {
    color: rgba(255, 255, 255, 0.8);
}

.tbg-featured-post__author,
.tbg-featured-post__date {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tbg-featured-post__button {
    display: inline-block;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: fit-content;
}

.tbg-featured-post__button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .tbg-featured-post--side {
        flex-direction: column;
    }

    .tbg-featured-post--side .tbg-featured-post__image {
        flex: none;
        aspect-ratio: 16/9;
    }

    .tbg-featured-post--overlay .tbg-featured-post__content {
        padding: 30px;
    }

    .tbg-featured-post__title {
        font-size: 32px;
    }
}

/* =========================================
   Blog Author Box Widget
   ========================================= */
.tbg-author-box {
    padding: 32px;
    border-radius: 16px;
}

.tbg-author-box--horizontal {
    display: flex;
    align-items: center;
    gap: 28px;
}

.tbg-author-box--vertical {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.tbg-author-box__avatar img {
    border-radius: 50%;
    object-fit: cover;
}

.tbg-author-box--vertical .tbg-author-box__avatar {
    margin-bottom: 20px;
}

.tbg-author-box__content {
    flex: 1;
}

.tbg-author-box__label {
    display: block;
    font-size: 14px;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
}

/* Überschrift: Caveat + #0413ff */
.tbg-author-box__name {
    font-size: var(--title-size)!important;
font-family: 'Caveat';
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #0413ff;
}

.tbg-author-box__posts {
    display: inline-block;
    font-size: 14px;
    color: #888;
    margin-bottom: 12px;
}

.tbg-author-box__bio {
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 16px;
    color: #555;
}

.tbg-author-box__social {
    display: flex;
    gap: 16px;
}

.tbg-author-box--vertical .tbg-author-box__social {
    justify-content: center;
}

.tbg-author-box__social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    color: #0413ff;
    transition: background 0.3s ease, transform 0.3s ease;
}

.tbg-author-box__social a:hover {
    background: rgba(4, 19, 255, 0.1);
    transform: translateY(-2px);
}

@media (max-width: 600px) {
    .tbg-author-box--horizontal {
        flex-direction: column;
        text-align: center;
    }

    .tbg-author-box--horizontal .tbg-author-box__social {
        justify-content: center;
    }
}

/* =========================================
   Blog Categories Widget
   ========================================= */
/* Überschrift: Caveat + #0413ff */
.tbg-categories__title {
    font-size: var(--title-size)!important;
font-family: 'Caveat';
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 20px;
    color: #0413ff;
}

.tbg-categories__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* List Layout */
.tbg-categories--list .tbg-categories__item {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tbg-categories--list .tbg-categories__item:last-child {
    border-bottom: none;
}

.tbg-categories--list .tbg-categories__item a {
    font-size: 16px;
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

.tbg-categories--list .tbg-categories__item a:hover {
    color: #0413ff;
}

/* Tags Layout */
.tbg-categories--tags .tbg-categories__list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tbg-categories--tags .tbg-categories__item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.tbg-categories--tags .tbg-categories__item a {
    font-size: 15px;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Grid Layout */
.tbg-categories--grid .tbg-categories__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.tbg-categories--grid .tbg-categories__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.tbg-categories--grid .tbg-categories__item:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

.tbg-categories--grid .tbg-categories__item a {
    font-size: 16px;
    text-decoration: none;
    flex: 1;
    color: #333;
}

.tbg-categories--grid .tbg-categories__item a:hover {
    color: #0413ff;
}

.tbg-categories__icon {
    color: #0413ff;
    flex-shrink: 0;
}

.tbg-categories__count {
    font-size: 13px;
    color: #888;
}

/* =========================================
   Blog Recent Posts Widget
   ========================================= */
/* Überschrift: Caveat + #0413ff */
.tbg-recent-posts__title {
    font-size: var(--title-size)!important;
font-family: 'Caveat';
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 24px;
    color: #0413ff;
}

.tbg-recent-posts__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tbg-recent-posts__item {
    display: flex;
    gap: 16px;
}

.tbg-recent-posts--separator .tbg-recent-posts__item:not(:last-child) {
    border-bottom: 1px solid #eee;
}

.tbg-recent-posts__thumbnail {
    flex-shrink: 0;
    overflow: hidden;
}

.tbg-recent-posts__thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tbg-recent-posts__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tbg-recent-posts__category {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #0413ff;
}

/* Überschrift: Caveat + #0413ff */
.tbg-recent-posts__post-title {
    font-size: var(--title-size)!important;
font-family: 'Caveat';
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 6px;
    color: #0413ff;
}

.tbg-recent-posts__post-title a {
    color: #0413ff;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.tbg-recent-posts__post-title a:hover {
    opacity: 0.7;
}

.tbg-recent-posts__excerpt {
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 8px;
    color: #666;
}

.tbg-recent-posts__date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #888;
}

/* List Layout */
.tbg-recent-posts--list .tbg-recent-posts__item {
    flex-direction: column;
    gap: 4px;
}

/* Compact Layout */
.tbg-recent-posts--compact .tbg-recent-posts__post-title {
    font-size: 20px;
    margin-bottom: 4px;
}

/* =========================================
   Blog Text Widget
   ========================================= */
.tbg-blog-text {
    padding: 20px 0;
}

.tbg-blog-text__inner {
    margin: 0 auto;
}

.tbg-blog-text__subtitle {
    display: block;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    color: #0413ff;
}

/* Überschrift: Caveat + #0413ff */
.tbg-blog-text__title {
    font-size: var(--title-size)!important;
font-family: 'Caveat';
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 20px;
    color: #0413ff;
}

.tbg-blog-text__content {
    font-size: 16px;
    line-height: 1.7;
    color: #04134e !important;
font-size: var(--text-size);
}

.tbg-blog-text__content p {
    margin: 0 0 16px;
}

.tbg-blog-text__content p:last-child {
    margin-bottom: 0;
}

.tbg-blog-text__button {
    display: inline-block;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    margin-top: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tbg-blog-text__button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* =========================================
   Blog Text and Image Widget
   ========================================= */
.tbg-blog-text-image {
    display: flex;
}

.tbg-blog-text-image--image-left,
.tbg-blog-text-image--image-right {
    flex-direction: row;
}

.tbg-blog-text-image--image-top,
.tbg-blog-text-image--image-bottom {
    flex-direction: column;
}

.tbg-blog-text-image__image {
    flex: 1!important;
}

.tbg-blog-text-image__image img {
    width: 100%;
    height: auto;
    display: block;
}

.tbg-blog-text-image__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tbg-blog-text-image__subtitle {
    display: block;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    color: #0413ff;
}

/* Überschrift: Caveat + #0413ff */
.tbg-blog-text-image__title {
    font-size: var(--title-size)!important;
font-family: 'Caveat';
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 20px;
    color: #0413ff;
}

.tbg-blog-text-image__text {
    font-size: 16px;
    line-height: 1.7;
    color: #04134e !important;
font-size: var(--text-size);
}

.tbg-blog-text-image__text p {
    margin: 0 0 16px;
}

.tbg-blog-text-image__text p:last-child {
    margin-bottom: 0;
}

.tbg-blog-text-image__button {
    display: inline-block;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    margin-top: 24px;
    width: fit-content;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tbg-blog-text-image__button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .tbg-blog-text-image--image-left,
    .tbg-blog-text-image--image-right {
        flex-direction: column;
    }

    .tbg-blog-text-image__content,
    .tbg-blog-text-image__image {
        flex: none !important;
        width: 100% !important;
    }

    .tbg-blog-text-image--image-right .tbg-blog-text-image__image {
        order: -1;
    }
}

/* =========================================
   Blog Image Carousel Widget
   ========================================= */
.tbg-blog-carousel {
    padding: 20px 0;
}

.tbg-blog-carousel__header {
    text-align: center;
    margin-bottom: 32px;
}

.tbg-blog-carousel__subtitle {
    display: block;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    color: #0413ff;
}

/* Überschrift: Caveat + #0413ff */
.tbg-blog-carousel__title {
    font-family: 'Caveat'!important;
    font-size: 44px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    color: #0413ff;
}

.tbg-blog-carousel__slider-wrapper {
    position: relative;
    margin-bottom: 32px;
}

.tbg-blog-carousel__swiper {
    overflow: hidden;
    border-radius: 12px;
}

.tbg-blog-carousel__image {
    height: 350px;
    overflow: hidden;
    border-radius: 12px;
}

.tbg-blog-carousel__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.tbg-blog-carousel__image:hover img {
    transform: scale(1.05);
}

.tbg-blog-carousel__navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
}

.tbg-blog-carousel__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid #0413ff;
    color: #0413ff;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
    flex-shrink: 0;
}

.tbg-blog-carousel__arrow:hover {
    background: #0413ff;
    color: #fff!important;
    transform: scale(1.05);
}

.tbg-blog-carousel__pagination {
    position: static !important;
    width: auto !important;
}

.tbg-blog-carousel__pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #ccc;
    opacity: 1;
    transition: background 0.3s ease, transform 0.3s ease;
}

.tbg-blog-carousel__pagination .swiper-pagination-bullet-active {
    background: #0413ff;
    transform: scale(1.2);
}

.tbg-blog-carousel__text {
    font-size: 16px;
    line-height: 1.7;
    color: #04134e !important;
    font-size: var(--text-size);
}

.tbg-blog-carousel__text p {
    margin: 0 0 16px;
}

.tbg-blog-carousel__text p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .tbg-blog-carousel__title {
        font-size: 32px;
    }
}

.tbg-blog-carousel-empty {
    text-align: center;
    padding: 40px 20px;
    color: #888;
    font-size: 16px;
    background: #f8f9fa;
    border-radius: 12px;
}

/* =========================================
   Common Empty States
   ========================================= */
.tbg-blog-no-posts,
.tbg-featured-post-empty,
.tbg-author-box-empty,
.tbg-categories-empty,
.tbg-recent-posts-empty,
.tbg-blog-carousel-empty {
    text-align: center;
    padding: 40px 20px;
    color: #888;
    font-size: 16px;
    background: #f8f9fa;
    border-radius: 12px;
}
