/* --- BLOG COMPONENT --- */
.custom-blog-block {
    --article-gap: 32px;
    --title-text-gap: 12px;
    --header-size: 28px;
    --title-size: 22px;
    --text-size: 15px;
    --header-color: var(--text-color, #E0E0E0);
    --title-color: var(--text-color, #E0E0E0);
    --title-hover-color: #FFFFFF;

    font-family: var(--font-family, 'Avenir', 'Avenir Next', 'Inter', system-ui, sans-serif);
    padding: 30px 40px;
    width: 100%;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: blur(25px);
    backdrop-filter: blur(25px);
    border-top: 0.5px solid rgba(255, 255, 255, 0.5);
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.4);
}

/* Break out of .tab-content-area's 1600px cap so the newsfeed block
   spans the full viewport width — but keep the same 16px gutter the
   home carousel sits at (measured live: carousel-container left/right
   inset is exactly 16px from the viewport edge at any width), so the
   two line up instead of the block running flush to the screen edge. */
#tab-blog .custom-blog-block {
    width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
    margin-left: calc(50% - 50vw + 16px);
    margin-right: calc(50% - 50vw + 16px);
    box-sizing: border-box;
}

/* News Widget (Overview Page) */
.news-block-title {
    margin: 0 0 20px 0;
    font-size: 13px;
    color: #E0E0E0;
    font-weight: bold;
    line-height: 1.2;
    text-align: left;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-shadow: var(--panel-title-shadow);
}

.news-list-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.news-article {
    display: flex;
    flex-direction: column;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.news-article:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.news-article-date {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 4px;
    font-weight: 500;
}

.news-article-title {
    margin: 0 0 6px 0;
    font-size: 16px;
    font-weight: bold;
    line-height: 1.3;
    text-shadow: var(--panel-title-shadow);
}

.news-article-title a {
    text-decoration: none;
    color: #E0E0E0;
    transition: color 0.2s ease;
}

.news-article-title a:hover {
    color: #20d21a;
}

.news-article-text {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    font-weight: normal;
}

.news-article-actions {
    margin-top: 10px;
    display: flex;
    gap: 8px;
}

.blog-block-title {
    margin: 0 0 30px 0;
    font-size: var(--header-size);
    color: var(--header-color);
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.5px;
    text-align: left;
    border-bottom: 0px solid transparent;
    padding-bottom: 16px;
    text-shadow: var(--panel-title-shadow);
}

.blog-list-container {
    display: flex;
    flex-direction: column;
    gap: var(--article-gap);
}

.blog-article {
    display: flex;
    flex-direction: column;
}

.blog-article:not(:last-child)::after {
    content: "";
    display: block;
    width: 100px;
    height: 2px;
    background: rgba(224, 224, 224, 0.1);
    margin-top: var(--article-gap);
    border-radius: 2px;
}

.blog-article-date {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 6px;
    font-weight: 500;
}

.blog-article-title {
    margin: 0 0 var(--title-text-gap) 0;
    font-size: var(--title-size);
    font-weight: bold;
    line-height: 1.3;
    text-align: left;
    text-shadow: var(--panel-title-shadow);
}

.blog-article-title a {
    text-decoration: none;
    color: var(--title-color);
    transition: color 0.2s ease;
    display: block;
}

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

.blog-article-text {
    margin: 0;
    font-size: var(--text-size);
    color: var(--text-color);
    line-height: 1.6;
    font-weight: normal;
    text-align: left;
}

/* Read-more button removed from blog entries */
.read-more-btn { display: none; }

.blog-article-actions {
    margin-top: 20px;
    display: flex;
    gap: 12px;
}

/* Pill material from design-system.css. */

.action-btn.liked svg {
    fill: var(--title-hover-color);
    animation: iconBounce 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes iconBounce {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* --- COMMENTS SECTION --- */
.comments-section {
    display: none;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed rgba(224, 224, 224, 0.2);
    animation: fadeIn 0.3s ease;
}
.comments-section.open {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}
.comment-form-row {
    display: flex;
    gap: 12px;
}
/* Field material from design-system.css. */
.comment-input { flex: 1; }
/* Pill material from design-system.css. */

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.comment-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 12px 14px;
}
.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}
.comment-author {
    font-weight: 600;
    font-size: 13px;
    color: var(--title-hover-color);
}
.comment-date {
    font-size: 11px;
    color: rgba(255,255,255,0.4);
}
.comment-text {
    font-size: 14px;
    color: rgba(224,224,224,0.9);
    margin: 0;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .custom-blog-block { padding: 20px; }
    .nav-section { gap: 8px !important; }
    .drawer.open {
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        right: 0;
        max-width: 100% !important;
        flex-direction: column;
        align-items: stretch;
        background: rgba(15, 15, 15, 0.2);
        -webkit-backdrop-filter: blur(25px) saturate(180%);
        backdrop-filter: blur(25px) saturate(180%);
        border-radius: 20px;
        padding: 16px !important;
        box-shadow: 0px 12px 24px 4.8px rgba(0, 0, 0, 0.45);
        z-index: 1000;
        white-space: normal;
    }
    .drawer.open .inline-link { text-align: center; padding: 12px; font-size: 16px; border-radius: 15px; background: rgba(255, 255, 255, 0.08); -webkit-backdrop-filter: blur(25px); backdrop-filter: blur(25px); border-top: 1.5px solid rgba(255, 255, 255, 0.5); border-bottom: 4px solid rgba(255, 255, 255, 0.2); border-left: 1px solid rgba(255, 255, 255, 0.1); border-right: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3); transition: all 0.2s ease; color: var(--body-text-color, #E0E0E0); }
    #contact-drawer.open .contact-item { justify-content: center; padding: 10px 0; }
    .inquiry-dropdown { width: 100%; right: 0; padding: 16px; }
    .comment-form-row { flex-direction: column; }
}

/* --- LANGUAGE DROPDOWN --- */
.lang-dropdown-container {
    position: relative;
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 80px;
    background: rgba(15, 15, 15, 0.2);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    backdrop-filter: blur(25px) saturate(180%);
    padding: 8px;
    border-radius: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    border-bottom: 3px solid rgba(255, 255, 255, 0.15);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 4px;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 10;
}

.lang-dropdown.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.lang-option {
    background: rgba(255, 255, 255, 0.08); color: #E0E0E0; padding: 8px 12px;
    border-radius: 15px; text-align: left; font-size: 14px; font-weight: 500;
    cursor: pointer; transition: all 0.2s ease;
    -webkit-backdrop-filter: blur(25px); backdrop-filter: blur(25px);
    border-top: 1.5px solid rgba(255, 255, 255, 0.5);
    border-bottom: 4px solid rgba(255, 255, 255, 0.2);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.lang-option:hover, .lang-option.active {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.35);
    color: var(--primary-color, #20d21a);
    box-shadow: 0 0 14px rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
}