/* --- Blog & Article Hub Styles --- */

/* Global Variables to match existing theme */
:root {
    --primary-gradient: linear-gradient(135deg, #B27C26 0%, #EBC364 100%);
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.6);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --border-radius: 20px;
}

.blog-hub-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: 'Poppins', sans-serif;
}

/* Hero Section */
.blog-hub-hero {
    margin-top: 75px;
    margin-bottom: 60px;
    position: relative;
}

.hero-search-wrapper {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 40px;
    text-align: center;
    box-shadow: var(--glass-shadow);
    margin-bottom: 40px;
}

.hub-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.compact-excerpt {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hub-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

/* Hub Search Bar */
.hub-search-form {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    display: flex;
}

.hub-search-input {
    width: 100%;
    padding: 18px 30px;
    border-radius: 50px;
    border: 2px solid transparent;
    background: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.hub-search-input:focus {
    outline: none;
    border-color: #EBC364;
    box-shadow: 0 4px 20px rgba(235, 195, 100, 0.25);
}

.hub-search-submit {
    position: absolute;
    right: 8px;
    top: 8px;
    bottom: 8px;
    padding: 0 30px;
    border-radius: 40px;
    background: var(--primary-gradient);
    border: none;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
    display: flex;
    /* Added for centering */
    align-items: center;
    /* Vertically center */
    justify-content: center;
    /* Horizontally center */
    line-height: normal;
    /* Reset line height */
    padding-bottom: 10px;
    /* Manual lift to fix visual alignment */
}

.hub-search-submit:hover {
    transform: scale(1.05);
}

/* Section Headings */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 15px;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -17px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.view-all-link {
    font-weight: 600;
    color: #B27C26;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.view-all-link:hover {
    color: #EBC364;
    transform: translateX(5px);
}

/* Featured / Laptop Grid for Blogs */
.blog-grid-featured {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.blog-card {
    background: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.blog-card-thumb {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.blog-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-thumb img {
    transform: scale(1.08);
}

.blog-card-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-cat-badge {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #B27C26;
    font-weight: 700;
    margin-bottom: 10px;
    display: inline-block;
}

.blog-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.4;
}

.blog-card-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

.blog-card-title a:hover {
    color: #B27C26;
}

.blog-card-excerpt {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.blog-card-meta {
    border-top: 1px solid #f1f5f9;
    padding-top: 15px;
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #94a3b8;
}

/* Compact List View (For Articles/Archives) */
.archive-list-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.compact-article-card {
    display: flex;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.compact-article-card:hover {
    transform: translateX(5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border-color: #EBC364;
}

.compact-thumb {
    width: 200px;
    /* Fixed width for thumbnail */
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.compact-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.compact-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.compact-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.compact-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.compact-title a {
    text-decoration: none;
    color: var(--text-dark);
    transition: color 0.2s;
}

.compact-title a:hover {
    color: #B27C26;
}

.compact-date {
    font-size: 0.85rem;
    color: #94a3b8;
    white-space: nowrap;
    margin-left: 20px;
}

.compact-excerpt {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.compact-footer {
    display: flex;
    align-items: center;
    gap: 15px;
}

.read-more-btn {
    font-size: 0.9rem;
    font-weight: 600;
    color: #B27C26;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.read-more-btn svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s;
}

.read-more-btn:hover svg {
    transform: translateX(3px);
}

/* Pagination */
.hub-pagination {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.hub-pagination .page-numbers {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e2e8f0;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.hub-pagination .page-numbers.current,
.hub-pagination .page-numbers:hover {
    background: var(--primary-gradient);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 10px rgba(178, 124, 38, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .blog-grid-featured {
        grid-template-columns: 1fr;
    }

    .compact-article-card {
        flex-direction: column;
    }

    .compact-thumb {
        width: 100%;
        height: 180px;
    }

    .hub-title {
        font-size: 2rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .compact-header {
        flex-direction: column;
        gap: 5px;
    }

    .compact-date {
        margin-left: 0;
    }
}