/* ============================================
   RENABEL CONCEPT — Noutati (Blog & News Page)
   ============================================ */

/* ---- PAGE LAYOUT ---- */
.rnb-noutati-page {
    padding-top: 140px;
    padding-bottom: 80px;
}

.rnb-noutati-header {
    margin-bottom: 64px;
}

.rnb-noutati-title {
    font-family: 'Sora', sans-serif;
    font-weight: 800;
    font-size: 2.25rem;
    color: var(--rnb-text);
    margin-bottom: 24px;
}

@media (min-width: 768px) {
    .rnb-noutati-title {
        font-size: 3.75rem;
    }
}

.rnb-noutati-subtitle {
    font-family: 'DM Sans', sans-serif;
    color: var(--rnb-text-muted);
    max-width: 672px;
    margin: 0 auto;
    font-size: 1.125rem;
    line-height: 1.6;
}

.rnb-noutati-reset {
    margin-top: 24px;
}

.rnb-reset-link {
    font-size: 0.875rem;
    color: var(--rnb-accent);
    text-decoration: none;
    border-bottom: 1px dashed var(--rnb-accent);
    padding-bottom: 4px;
    transition: color 0.3s;
}

.rnb-reset-link:hover {
    color: var(--rnb-text);
}

/* ---- MAIN + SIDEBAR LAYOUT ---- */
.rnb-noutati-layout {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

@media (min-width: 1024px) {
    .rnb-noutati-layout {
        flex-direction: row;
        gap: 48px;
    }
}

.rnb-noutati-main {
    width: 100%;
}

@media (min-width: 1024px) {
    .rnb-noutati-main {
        width: 66.666%;
    }
}

/* ---- FEATURED CARD ---- */
.rnb-featured-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--rnb-border);
    margin-bottom: 48px;
}

.rnb-featured-card:hover .rnb-featured-img {
    transform: scale(1.05);
}

.rnb-featured-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--rnb-dark), rgba(11, 15, 25, 0.6), transparent);
    z-index: 10;
}

.rnb-featured-img-wrap {
    height: 400px;
    width: 100%;
    overflow: hidden;
}

@media (min-width: 768px) {
    .rnb-featured-img-wrap {
        height: 500px;
    }
}

.rnb-featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.rnb-featured-fallback {
    background-color: var(--rnb-card);
    display: flex;
    align-items: center;
    justify-content: center;
}

.rnb-featured-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 32px;
    z-index: 20;
}

@media (min-width: 768px) {
    .rnb-featured-content {
        padding: 48px;
    }
}

.rnb-featured-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.rnb-featured-cat {
    color: var(--rnb-accent);
    background: rgba(var(--rnb-accent-rgb), 0.1);
    padding: 4px 12px;
    border-radius: 8px;
    border: 1px solid rgba(var(--rnb-accent-rgb), 0.2);
}

.rnb-featured-date {
    color: rgba(255, 255, 255, 0.6);
}

.rnb-featured-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--rnb-text);
    margin-bottom: 16px;
    line-height: 1.2;
    transition: color 0.3s;
}

@media (min-width: 768px) {
    .rnb-featured-title {
        font-size: 2.25rem;
    }
}

.rnb-featured-card:hover .rnb-featured-title {
    color: var(--rnb-accent);
}

.rnb-featured-title a {
    color: inherit;
    text-decoration: none;
}

.rnb-featured-excerpt {
    color: var(--rnb-text-muted);
    margin-bottom: 24px;
    font-size: 1.125rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (min-width: 768px) {
    .rnb-featured-excerpt {
        -webkit-line-clamp: 3;
    }
}

/* ---- POSTS GRID ---- */
.rnb-posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 768px) {
    .rnb-posts-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ---- BLOG CARD ---- */
.blog-card {
    background: var(--rnb-card);
    border: 1px solid var(--rnb-border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    border-color: rgba(var(--rnb-accent-rgb), 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.blog-thumb {
    height: 240px;
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.thumb-wrapper {
    overflow: hidden;
    position: relative;
}

.rnb-thumb-fallback {
    background-color: var(--rnb-dark-alt);
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(11, 15, 25, 0.8);
    backdrop-filter: blur(4px);
    color: var(--rnb-accent);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    border: 1px solid rgba(var(--rnb-accent-rgb), 0.2);
    z-index: 5;
}

.rnb-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.rnb-card-date {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--rnb-text-dim);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    display: flex;
    justify-content: space-between;
}

.rnb-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--rnb-text);
    margin-bottom: 12px;
    line-height: 1.4;
}

.rnb-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.rnb-card-title a:hover {
    color: var(--rnb-accent);
}

.rnb-card-excerpt {
    color: var(--rnb-text-muted);
    font-size: 0.875rem;
    margin-bottom: 24px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---- NO RESULTS ---- */
.rnb-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 64px 24px;
    background: var(--rnb-card);
    border-radius: 16px;
    border: 1px solid var(--rnb-border);
}

.rnb-no-results-title {
    color: var(--rnb-text);
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.rnb-no-results-text {
    color: var(--rnb-text-muted);
}

.rnb-no-results-action {
    margin-top: 24px;
}

/* ---- VIEW ALL ---- */
.rnb-view-all {
    margin-top: 64px;
    text-align: center;
}

.rnb-view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--rnb-text);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.875rem;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    padding-bottom: 4px;
    transition: color 0.3s, border-color 0.3s;
}

.rnb-view-all-link:hover {
    color: var(--rnb-accent);
    border-bottom-color: var(--rnb-accent);
}

/* ---- SIDEBAR ---- */
.rnb-sidebar {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

@media (min-width: 1024px) {
    .rnb-sidebar {
        width: 33.333%;
    }
}

.rnb-sidebar--sticky {
    position: sticky;
    top: 140px;
    align-self: flex-start;
}

.rnb-sidebar-widget {
    padding: 32px;
    border-radius: 16px;
}

.rnb-widget-title {
    color: var(--rnb-text);
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 24px;
    border-left: 4px solid var(--rnb-accent);
    padding-left: 12px;
}

/* ---- SEARCH ---- */
.search-input {
    width: 100%;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--rnb-border);
    border-radius: 12px;
    color: var(--rnb-text);
    outline: none;
    transition: border-color 0.3s;
}

.search-input:focus {
    border-color: var(--rnb-accent);
}

.rnb-search-wrap {
    position: relative;
}

.rnb-search-btn {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--rnb-text-muted);
    cursor: pointer;
    padding: 0;
    transition: color 0.3s;
}

.rnb-search-btn:hover {
    color: var(--rnb-accent);
}

/* ---- CATEGORIES LIST ---- */
.rnb-cat-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rnb-cat-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--rnb-text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.rnb-cat-link:hover {
    color: var(--rnb-text);
}

.rnb-cat-link--active {
    color: var(--rnb-accent);
    font-weight: 700;
}

.rnb-cat-name {
    transition: transform 0.3s;
}

.rnb-cat-link:hover .rnb-cat-name {
    transform: translateX(4px);
}

.rnb-cat-count {
    background: var(--rnb-dark-alt);
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid var(--rnb-border);
    transition: border-color 0.3s;
}

.rnb-cat-link:hover .rnb-cat-count {
    border-color: rgba(var(--rnb-accent-rgb), 0.5);
}

.rnb-cat-empty {
    color: var(--rnb-text-muted);
    font-size: 0.875rem;
}

/* ---- CTA WIDGET ---- */
.rnb-cta-widget {
    background: linear-gradient(135deg, var(--rnb-accent), var(--rnb-accent-hover));
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.rnb-cta-pattern {
    position: absolute;
    inset: 0;
    background-image: url('https://www.transparenttextures.com/patterns/carbon-fibre.png');
    opacity: 0.2;
}

.rnb-cta-inner {
    position: relative;
    z-index: 10;
}

.rnb-cta-icon-wrap {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    backdrop-filter: blur(4px);
}

.rnb-cta-title {
    color: #fff;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.rnb-cta-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    margin-bottom: 24px;
    line-height: 1.6;
}

.rnb-cta-btn {
    display: inline-block;
    width: 100%;
    padding: 12px;
    background: #fff;
    color: var(--rnb-accent-hover);
    font-weight: 700;
    border-radius: 12px;
    text-decoration: none;
    transition: background 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.rnb-cta-btn:hover {
    background: var(--rnb-text);
}

.rnb-cta-phone {
    margin-top: 16px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
    font-family: monospace;
}
