/* --- Blog Container --- */
.blog-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
}

/* --- Header Section --- */
.blog-header {
    text-align: center;
    margin-bottom: 50px;
}

.blog-header .brand-context {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 15px;
}

.blog-header .line {
    width: 30px;
    height: 2px;
    background: var(--gold);
}

.blog-header .label {
    color: var(--gold);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.blog-header h1 {
    font-size: 2.5rem;
    color: var(--navy);
    margin-bottom: 15px;
}

.blog-header .gold-text {
    color: var(--gold);
}

.blog-header .header-desc {
    color: var(--muted);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Featured Section --- */
.featured-section {
    margin-bottom: 60px;
}

.section-title {
    font-size: 1.5rem;
    color: var(--navy);
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gold);
    display: inline-block;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

.featured-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.card-image {
    width: 100%;
    height: 550px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    transition: transform 0.3s ease;
}

.card-image.placeholder {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image.placeholder i {
    font-size: 3rem;
    color: var(--gold);
}

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

.card-content {
    padding: 25px;
}

.card-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.meta-item {
    font-size: 0.8rem;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

.meta-item i {
    color: var(--gold);
}

.card-content h3 {
    font-size: 1.2rem;
    color: var(--navy);
    margin-bottom: 10px;
    line-height: 1.4;
}

.card-content p {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: gap 0.3s ease;
}

.read-more:hover {
    gap: 12px;
}

.read-more.external {
    color: var(--navy);
}

/* --- All Posts Section --- */
.all-posts-section {
    margin-bottom: 40px;
}

.section-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.search-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--surface);
    padding: 10px 15px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    min-width: 280px;
}

.search-wrapper i {
    color: var(--muted);
}

.search-wrapper input {
    border: none;
    background: none;
    outline: none;
    flex: 1;
    color: var(--text);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.post-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}



.post-card .card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-card .read-more {
    margin-top: auto;
}

/* --- Empty State --- */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--muted);
}

.empty-state i {
    font-size: 4rem;
    color: var(--gold);
    margin-bottom: 20px;
    opacity: 0.6;
}

.empty-state p {
    font-size: 1.1rem;
}

/* --- Pagination --- */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

.page-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--navy);
    color: var(--white);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: background 0.3s ease;
}

.page-link:hover {
    background: var(--gold);
    color: var(--navy);
}

.page-info {
    color: var(--muted);
    font-size: 0.9rem;
}

/* --- Blog Detail Page --- */
.blog-detail-container {
    width: 90%;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 0;
}

.blog-detail-header {
    text-align: center;
    margin-bottom: 40px;
}

.blog-detail-header .brand-context {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.blog-detail-header .line {
    width: 30px;
    height: 2px;
    background: var(--gold);
}

.blog-detail-header .label {
    color: var(--gold);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.blog-detail-header h1 {
    font-size: 2.2rem;
    color: var(--navy);
    margin-bottom: 20px;
    line-height: 1.3;
}

.post-meta-bar {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.post-meta-bar .meta-item {
    font-size: 0.9rem;
}

.featured-badge {
    background: var(--gold);
    color: var(--navy);
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-detail-container .featured-image {
    width: 100%;
    height: 400px;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 40px;
}

.blog-detail-container .featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-content {
    line-height: 1.8;
    color: var(--text);
}

.blog-content h2,
.blog-content h3,
.blog-content h4 {
    color: var(--navy);
    margin: 30px 0 15px;
}

.blog-content p {
    margin-bottom: 20px;
}

.blog-content ul,
.blog-content ol {
    margin-bottom: 20px;
    padding-left: 25px;
}

.blog-content li {
    margin-bottom: 8px;
}

.blog-content blockquote {
    border-left: 4px solid var(--gold);
    padding-left: 20px;
    margin: 25px 0;
    color: var(--muted);
    font-style: italic;
}

.blog-content img {
    max-width: 100%;
    border-radius: var(--radius-sm);
    margin: 20px 0;
}

.post-footer {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--navy);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--gold);
}

/* --- Related Section --- */
.related-section {
    background: var(--navy);
    padding: 60px 0;
    margin-top: 60px;
}

.related-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.related-section .section-title {
    color: var(--white);
    border-bottom-color: var(--gold);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.related-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.related-card:hover {
    transform: translateY(-3px);
}

.related-card .card-content h4 {
    font-size: 1.1rem;
    color: var(--navy);
    margin-bottom: 10px;
}

.related-card .card-content a {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .blog-container {
        padding: 20px 0;
    }

    .blog-header h1 {
        font-size: 1.8rem;
    }

    .featured-grid,
    .posts-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }

    .section-header-flex {
        flex-direction: column;
        align-items: stretch;
    }

    .search-wrapper {
        min-width: auto;
    }

    .blog-detail-header h1 {
        font-size: 1.6rem;
    }

    .blog-detail-container .featured-image {
        height: 250px;
    }

    .post-meta-bar {
        gap: 15px;
    }

    .pagination {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .blog-header h1 {
        font-size: 1.5rem;
    }

    .card-content {
        padding: 20px;
    }
    .card-image {
    height: 200px;
    }

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

    .card-content h3 {
        font-size: 1.1rem;
    }

    .blog-content {
        font-size: 0.95rem;
    }
}
