/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: var(--card-bg, rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    border-color: rgba(201, 169, 110, 0.3);
}

.blog-card__image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

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

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

.blog-card__body {
    padding: 1.5rem;
}

.blog-card__category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent, #C9A96E);
    margin-bottom: 0.5rem;
}

.blog-card__title {
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.blog-card__desc {
    font-size: 0.9rem;
    opacity: 0.7;
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card__date {
    font-size: 0.8rem;
    opacity: 0.5;
}

.blog-empty {
    text-align: center;
    opacity: 0.6;
    padding: 4rem 0;
    font-size: 1.1rem;
}

/* Blog Article */
.blog-article {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 4rem;
    align-items: start;
}

.blog-article__content {
    min-width: 0;
}

.blog-article__content h1,
.blog-article__content h2,
.blog-article__content h3 {
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
}

.blog-article__content h1 { font-size: 2.2rem; }
.blog-article__content h2 { font-size: 1.6rem; }
.blog-article__content h3 { font-size: 1.3rem; }

.blog-article__content h2 + p,
.blog-article__content h3 + p {
    margin-top: 0.5rem;
}

.blog-article__content p {
    line-height: 1.85;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.blog-article__content > p:first-of-type {
    font-size: 1.1rem;
    line-height: 1.7;
    opacity: 0.95;
}

.blog-article__content ul,
.blog-article__content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.75rem;
}

.blog-article__content li {
    line-height: 1.75;
    margin-bottom: 0.75rem;
    opacity: 0.9;
}

.blog-article__content li > strong:first-child {
    opacity: 1;
    font-weight: 600;
}

.blog-article__content strong {
    font-weight: 600;
    opacity: 1;
}

.blog-article__content a {
    color: var(--accent, #C9A96E);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.blog-article__content a:hover {
    opacity: 0.8;
}

.blog-article__content blockquote {
    margin: 2.5rem 0;
    padding: 1.5rem 2rem;
    border-left: 3px solid var(--accent, #C9A96E);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    opacity: 0.85;
}

.blog-article__content blockquote p {
    margin-bottom: 0;
}

.blog-article__content blockquote p + p {
    margin-top: 1rem;
}

.blog-article__content hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 3rem 0;
}

.blog-article__content em {
    opacity: 0.7;
}

.blog-article__sidebar {
    position: sticky;
    top: 100px;
}

/* Blog Meta */
.blog-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    opacity: 0.7;
    margin-top: 1.5rem;
}

.blog-meta__divider {
    opacity: 0.4;
}

/* Blog Tags */
.blog-tags {
    margin-bottom: 2rem;
}

.blog-tags__title {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    opacity: 0.6;
}

.blog-tags__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.blog-tags__tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    opacity: 0.7;
}

.blog-section {
    padding: 6rem 0;
}

@media (max-width: 768px) {
    .blog-section {
        padding: 4rem 0;
    }
}

/* Hero blog variant */
.hero--blog {
    min-height: auto;
    padding-top: 120px;
    padding-bottom: 50px;
    position: relative;
    overflow: hidden;
}

.hero--blog__img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    filter: brightness(0.25);
}

.hero--blog .container {
    position: relative;
    z-index: 1;
}

/* Blog article section spacing */
.blog-article {
    padding-top: 1rem;
    padding-bottom: 2rem;
}

/* Tables */
.blog-article__content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2.5rem 0;
    font-size: 0.9rem;
    display: block;
    overflow-x: auto;
    max-width: 100%;
    white-space: nowrap;
}

.blog-article__content thead {
    background: rgba(255, 255, 255, 0.05);
}

.blog-article__content th,
.blog-article__content td {
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
}

.blog-article__content th {
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    opacity: 1;
}

.blog-article__content td {
    line-height: 1.6;
}

.blog-article__content tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

/* Responsive */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-article {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .blog-article__sidebar {
        position: static;
    }

    .blog-article__content h1 { font-size: 1.8rem; }
    .blog-article__content h2 { font-size: 1.35rem; }
    .blog-article__content h3 { font-size: 1.15rem; }

    .blog-article__content > p:first-of-type {
        font-size: 1rem;
    }

    .blog-article__content blockquote {
        padding: 1rem 1.25rem;
    }
}
