/* Common CSS */

hr{
  margin: 0.3rem 0;
}

/* Shared Gradient Style */
.bg-theme-gradient {
    background: linear-gradient(77deg, #b79311 0%, #a2874b 100%);
    color: white;
}

/* ==== HERO SECTION ==== */
.hero-section {
    background: linear-gradient(77deg, #b79311 0%, #a2874b 100%);
    padding: 4rem 0;
    text-align: center;
    margin-bottom: 3rem;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-section p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* ==== POST HEADER ==== */
.post-header {
    background: linear-gradient(77deg, #b79311 0%, #a2874b 100%);
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

/* ==== SEARCH RESULT HEADER ==== */
.search-result-header {
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    text-align: center;
}

.search-result-header h2 {
    margin: 0;
    font-weight: 600;
}

.search-query {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: inline-block;
    margin-top: 0.5rem;
}

/* ==== BREADCRUMB ==== */
.breadcrumb-nav {
    background-color: #f8f9fa;
    padding: 1rem 0;
    margin-bottom: 2rem;
}

/* ==== ARTICLE GRID ==== */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* ==== ARTICLE CARD ==== */
.article-card,
.related-post-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.article-card:hover,
.related-post-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.article-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.3));
}

.article-content,
.post-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
    line-height: 1.4;
}

.article-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.article-title a:hover {
    color: #667eea;
}

.article-excerpt {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex: 1;
}

.learn-more {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.learn-more:hover {
    color: #764ba2;
}

.article-footer,
.related-post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
    margin-top: auto;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.article-meta,
.post-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.meta-item,
.post-meta-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.9rem;
    color: #6c757d;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.meta-item i,
.post-meta-item i {
    color: #667eea;
}

/* ==== NO ARTICLES ==== */
.no-articles {
    text-align: center;
    padding: 4rem 2rem;
    background: #f8f9fa;
    border-radius: 15px;
    margin: 2rem 0;
}

.no-articles i {
    font-size: 4rem;
    color: #dee2e6;
    margin-bottom: 1rem;
}

.no-articles h3 {
    color: #6c757d;
    margin-bottom: 1rem;
}

.no-articles p {
    color: #adb5bd;
    margin: 0;
}

/* ==== SIDEBAR ==== */
.sidebar {
    position: sticky;
    top: 2rem;
    max-height: calc(100vh - 4rem);
}

.sidebar-block {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.sidebar-title {
    color: #495057;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #667eea;
}

/* ==== TAGS ==== */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.tag-badge {
    background: linear-gradient(77deg, #b79311 0%, #a2874b 100%);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.tag-badge:hover {
    transform: translateY(-2px);
    color: white;
}

/* ==== COMMENTS ==== */
.comments-section {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.comment-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid #667eea;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.comment-author {
    font-weight: bold;
    color: #495057;
}

.comment-date {
    color: #6c757d;
    font-size: 0.9rem;
}

/* ==== BUTTON ==== */
.btn-gradient {
    background: linear-gradient(77deg, #b79311 0%, #a2874b 100%);
    border: none;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    color: white;
}

/* ==== SEARCH RESULTS DROPDOWN ==== */
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
}

.search-result {
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-result:hover {
    background-color: #f8f9fa;
}

.search-result:last-child {
    border-bottom: none;
}

/* ==== RESPONSIVE ==== */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    .hero-section p {
        font-size: 1rem;
    }
    .article-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .article-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    .article-meta {
        justify-content: space-between;
        width: 100%;
    }
    .post-meta,
    .related-post-footer,
    .comment-header {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 2rem 0;
    }
    .article-content {
        padding: 1rem;
    }
    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}


