/* CiviJob Homepage Styles */

/* Hero Section */
.jbe-homepage {
    background: #f8f9fa;
}

.jbe-hero {
    background: linear-gradient(135deg, #2557a7 0%, #1d4580 100%);
    color: #fff;
    padding: 60px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.jbe-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    transform: translate(50%, -50%);
}

.jbe-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    transform: translate(-50%, 50%);
}

.jbe-hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.jbe-hero-title {
    font-size: 48px;
    font-weight: 700;
    margin: 0 0 16px 0;
    line-height: 1.2;
}

.jbe-hero-subtitle {
    font-size: 18px;
    margin: 0 0 36px 0;
    opacity: 0.95;
    line-height: 1.6;
}

/* Hero Search Form */
.jbe-hero-search {
    margin-bottom: 36px;
}

.jbe-search-form {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 12px;
    background: rgba(255, 255, 255, 0.1);
    padding: 12px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.jbe-search-field {
    position: relative;
}

.jbe-input {
    width: 100%;
    padding: 14px 16px;
    border: none;
    border-radius: 6px;
    background: #fff;
    color: #2d2d2d;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.2s ease;
}

.jbe-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.jbe-search-btn {
    padding: 14px 32px;
    background: #ff6b6b;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.jbe-search-btn:hover {
    background: #e84242;
    transform: translateY(-2px);
}

/* Hero Stats */
.jbe-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.jbe-stat {
    text-align: center;
}

.jbe-stat-number {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
}

.jbe-stat-label {
    font-size: 14px;
    opacity: 0.9;
}

/* Container */
.jbe-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Featured Jobs Section */
.jbe-featured-jobs {
    padding: 60px 20px;
    background: #f8f9fa;
}

.jbe-section-title {
    font-size: 36px;
    font-weight: 700;
    color: #2d2d2d;
    margin: 0 0 8px 0;
    text-align: center;
}

.jbe-section-subtitle {
    font-size: 16px;
    color: #595959;
    margin: 0 0 40px 0;
    text-align: center;
}

/* Jobs Grid */
.jbe-jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.jbe-job-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 24px;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}

.jbe-job-card:hover {
    border-color: #2557a7;
    box-shadow: 0 4px 12px rgba(37, 87, 167, 0.15);
    transform: translateY(-4px);
}

.jbe-job-card-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #2d2d2d;
}

.jbe-job-card-title a {
    color: #2557a7;
    text-decoration: none;
}

.jbe-job-card-title a:hover {
    text-decoration: underline;
}

.jbe-job-card-company {
    font-size: 14px;
    color: #595959;
    margin: 0 0 12px 0;
}

.jbe-job-card-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.jbe-job-meta-item {
    font-size: 13px;
    color: #595959;
}

.jbe-job-card-excerpt {
    font-size: 14px;
    color: #595959;
    line-height: 1.5;
    margin-bottom: 16px;
    flex-grow: 1;
}

.jbe-job-card-footer {
    margin-top: auto;
}

.jbe-btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.jbe-btn-primary {
    background: #2557a7;
    color: #fff;
}

.jbe-btn-primary:hover {
    background: #1d4580;
}

.jbe-btn-outline {
    background: transparent;
    color: #2557a7;
    border: 2px solid #2557a7;
}

.jbe-btn-outline:hover {
    background: #2557a7;
    color: #fff;
}

.jbe-view-all {
    text-align: center;
}

/* Categories Section */
.jbe-categories {
    padding: 60px 20px;
    background: #fff;
}

.jbe-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.jbe-category-card {
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.jbe-category-card:hover {
    background: #e8f0ff;
    border-color: #2557a7;
    transform: translateY(-4px);
}

.jbe-category-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.jbe-category-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #2d2d2d;
}

.jbe-category-card p {
    font-size: 13px;
    color: #595959;
    margin: 0;
}

/* How It Works */
.jbe-how-it-works {
    padding: 60px 20px;
    background: #f8f9fa;
}

.jbe-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.jbe-step {
    text-align: center;
    position: relative;
}

.jbe-step-number {
    width: 60px;
    height: 60px;
    background: #2557a7;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    margin: 0 auto 16px;
}

.jbe-step h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: #2d2d2d;
}

.jbe-step p {
    font-size: 14px;
    color: #595959;
    line-height: 1.6;
    margin: 0;
}

.jbe-no-jobs {
    text-align: center;
    padding: 40px 20px;
    color: #595959;
    font-size: 16px;
}

/* Responsive */
@media (max-width: 1024px) {
    .jbe-hero-title {
        font-size: 36px;
    }

    .jbe-hero-subtitle {
        font-size: 16px;
    }

    .jbe-search-form {
        grid-template-columns: 1fr;
    }

    .jbe-search-btn {
        width: 100%;
    }

    .jbe-hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .jbe-hero {
        padding: 40px 20px;
    }

    .jbe-hero-title {
        font-size: 28px;
    }

    .jbe-hero-subtitle {
        font-size: 14px;
        margin-bottom: 24px;
    }

    .jbe-search-form {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 8px;
    }

    .jbe-featured-jobs,
    .jbe-categories,
    .jbe-how-it-works {
        padding: 40px 20px;
    }

    .jbe-section-title {
        font-size: 28px;
    }

    .jbe-jobs-grid,
    .jbe-categories-grid {
        grid-template-columns: 1fr;
    }

    .jbe-hero-stats {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .jbe-steps {
        gap: 24px;
    }
}

/* Blog/News Section */
.jbe-blog-news {
    padding: 60px 20px;
    background: #fff;
}

.jbe-blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.jbe-blog-card {
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.jbe-blog-card:hover {
    border-color: #2557a7;
    box-shadow: 0 4px 12px rgba(37, 87, 167, 0.15);
    transform: translateY(-4px);
}

.jbe-blog-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
}

.jbe-blog-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.jbe-blog-image-placeholder {
    background: linear-gradient(135deg, #2557a7 0%, #1d4580 100%);
}

.jbe-placeholder-icon {
    font-size: 64px;
    opacity: 0.8;
}

.jbe-blog-content {
    padding: 24px;
}

.jbe-blog-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 12px;
    color: #595959;
}

.jbe-blog-date,
.jbe-blog-read-time {
    display: flex;
    align-items: center;
}

.jbe-blog-date::after {
    content: '•';
    margin-left: 12px;
}

.jbe-blog-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 12px 0;
    line-height: 1.4;
    color: #2d2d2d;
}

.jbe-blog-title a {
    color: #2557a7;
    text-decoration: none;
}

.jbe-blog-title a:hover {
    text-decoration: underline;
}

.jbe-blog-excerpt {
    font-size: 14px;
    color: #595959;
    line-height: 1.6;
    margin: 0 0 16px 0;
}

.jbe-blog-link {
    color: #2557a7;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
}

.jbe-blog-link:hover {
    color: #1d4580;
}

.jbe-view-all-blog {
    text-align: center;
}

.jbe-no-posts {
    text-align: center;
    padding: 40px 20px;
    color: #595959;
}

/* Newsletter Section */
.jbe-newsletter {
    padding: 60px 20px;
    background: linear-gradient(135deg, #2557a7 0%, #1d4580 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.jbe-newsletter::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.jbe-newsletter::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.jbe-newsletter-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.jbe-newsletter-text h2 {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 16px 0;
    line-height: 1.3;
}

.jbe-newsletter-text p {
    font-size: 16px;
    margin: 0 0 24px 0;
    opacity: 0.95;
    line-height: 1.6;
}

.jbe-newsletter-benefits {
    list-style: none;
    padding: 0;
    margin: 0;
}

.jbe-newsletter-benefits li {
    font-size: 15px;
    margin: 12px 0;
    line-height: 1.5;
    opacity: 0.9;
}

.jbe-newsletter-form-wrapper {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 32px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.jbe-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.jbe-form-group {
    display: flex;
    flex-direction: column;
}

.jbe-form-input {
    padding: 14px 16px;
    border: none;
    border-radius: 6px;
    background: #fff;
    color: #2d2d2d;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.2s ease;
}

.jbe-form-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.jbe-form-input::placeholder {
    color: #a0a0a0;
}

.jbe-form-checkbox label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    user-select: none;
}

.jbe-form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #ff6b6b;
}

.jbe-newsletter-btn {
    width: 100%;
}

.jbe-form-message {
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
    margin-top: 8px;
}

.jbe-form-message.success {
    background: rgba(76, 175, 80, 0.2);
    color: #c8e6c9;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.jbe-form-message.error {
    background: rgba(244, 67, 54, 0.2);
    color: #ffcdd2;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

.jbe-success-message,
.jbe-error-message {
    padding: 14px 16px;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    animation: slideIn 0.3s ease;
}

.jbe-success-message {
    background: rgba(76, 175, 80, 0.15);
    color: #81c784;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.jbe-success-message span {
    font-weight: bold;
    font-size: 16px;
}

.jbe-error-message {
    background: rgba(244, 67, 54, 0.15);
    color: #ef5350;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

.jbe-error-message span {
    font-weight: bold;
    font-size: 16px;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .jbe-newsletter-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .jbe-newsletter-text h2 {
        font-size: 28px;
    }

    .jbe-newsletter-form-wrapper {
        padding: 24px;
    }
}

@media (max-width: 768px) {
    .jbe-blog-news {
        padding: 40px 20px;
    }

    .jbe-blog-grid {
        grid-template-columns: 1fr;
    }

    .jbe-newsletter {
        padding: 40px 20px;
    }

    .jbe-newsletter-text h2 {
        font-size: 24px;
    }

    .jbe-newsletter-content {
        gap: 24px;
    }

    .jbe-newsletter-form-wrapper {
        padding: 20px;
    }
}

/* ================================
   SINGLE BLOG POST STYLES
   ================================ */

.jbe-blog-single {
    background: #f8f9fa;
    min-height: 100vh;
}

/* Blog Hero Section */
.jbe-blog-hero {
    position: relative;
    height: 450px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.jbe-blog-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.jbe-blog-hero-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.jbe-placeholder-icon {
    font-size: 80px;
    opacity: 0.8;
}

.jbe-blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.3), transparent);
    z-index: 2;
}

.jbe-blog-hero-overlay {
    position: relative;
    z-index: 3;
    width: 100%;
    padding: 40px 20px 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.jbe-blog-breadcrumbs {
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.jbe-blog-breadcrumbs a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.2s ease;
}

.jbe-blog-breadcrumbs a:hover {
    color: #fff;
    text-decoration: underline;
}

.jbe-blog-breadcrumbs .separator {
    opacity: 0.7;
}

.jbe-blog-breadcrumbs .current {
    color: #fff;
    font-weight: 500;
}

.jbe-blog-hero-title {
    font-size: 42px;
    font-weight: 700;
    color: #fff;
    margin: 15px 0;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.jbe-blog-meta-hero {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.95);
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.jbe-blog-separator {
    opacity: 0.7;
}

.jbe-blog-categories-hero {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.jbe-blog-category-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.2s ease;
}

.jbe-blog-category-tag:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Blog Main Container */
.jbe-blog-container {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
    max-width: 1200px;
    margin: -80px auto 0;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.jbe-blog-main {
    background: #fff;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Post Content */
.jbe-blog-post-content {
    font-size: 16px;
    line-height: 1.8;
    color: #2d2d2d;
}

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

.jbe-blog-post-content h2,
.jbe-blog-post-content h3,
.jbe-blog-post-content h4 {
    color: #2557a7;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 700;
}

.jbe-blog-post-content h2 {
    font-size: 28px;
}

.jbe-blog-post-content h3 {
    font-size: 22px;
}

.jbe-blog-post-content h4 {
    font-size: 18px;
}

.jbe-blog-post-content strong {
    color: #2557a7;
    font-weight: 700;
}

.jbe-blog-post-content em {
    font-style: italic;
    color: #595959;
}

.jbe-blog-post-content ul,
.jbe-blog-post-content ol {
    margin: 20px 0 20px 30px;
}

.jbe-blog-post-content li {
    margin-bottom: 10px;
}

.jbe-blog-post-content blockquote {
    background: #f0f4f8;
    border-left: 4px solid #2557a7;
    padding: 20px;
    margin: 30px 0;
    font-style: italic;
    color: #595959;
}

.jbe-blog-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 30px 0;
}

/* Post Footer */
.jbe-blog-post-footer {
    border-top: 2px solid #e8e8e8;
    border-bottom: 2px solid #e8e8e8;
    padding: 30px 0;
    margin-top: 40px;
}

/* Author Box */
.jbe-blog-author-box {
    display: flex;
    gap: 20px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e8e8e8;
    margin-bottom: 30px;
}

.jbe-author-avatar {
    flex-shrink: 0;
}

.jbe-author-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #2557a7;
}

.jbe-author-info h4 {
    font-size: 16px;
    color: #2557a7;
    margin-bottom: 8px;
}

.jbe-author-info p {
    font-size: 14px;
    color: #595959;
    line-height: 1.6;
}

/* Tags */
.jbe-blog-tags {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 14px;
}

.jbe-blog-tags strong {
    color: #2d2d2d;
}

.jbe-blog-tag {
    display: inline-block;
    background: #f0f4f8;
    color: #2557a7;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s ease;
}

.jbe-blog-tag:hover {
    background: #2557a7;
    color: #fff;
}

/* Related Posts */
.jbe-blog-related {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 2px solid #e8e8e8;
}

.jbe-blog-related h3 {
    font-size: 22px;
    color: #2557a7;
    margin-bottom: 25px;
}

.jbe-blog-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.jbe-blog-related-item {
    background: #f8f9fa;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.jbe-blog-related-item:hover {
    box-shadow: 0 4px 12px rgba(37, 87, 167, 0.15);
    transform: translateY(-4px);
}

.jbe-related-image {
    height: 180px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

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

.jbe-blog-related-item:hover .jbe-related-image img {
    transform: scale(1.05);
}

.jbe-related-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}

.jbe-related-content {
    padding: 15px;
}

.jbe-related-content h4 {
    font-size: 14px;
    margin: 0 0 8px 0;
}

.jbe-related-content h4 a {
    color: #2557a7;
    text-decoration: none;
    transition: color 0.2s ease;
}

.jbe-related-content h4 a:hover {
    color: #1d4580;
    text-decoration: underline;
}

.jbe-related-date {
    font-size: 12px;
    color: #999;
    margin-bottom: 10px !important;
}

.jbe-read-more {
    display: inline-block;
    color: #2557a7;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.jbe-read-more:hover {
    color: #ff6b6b;
}

/* Sidebar */
.jbe-blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.jbe-sidebar-widget {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.jbe-widget-title {
    font-size: 16px;
    color: #2557a7;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f4f8;
    font-weight: 700;
}

/* Categories Widget */
.jbe-sidebar-categories {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.jbe-sidebar-cat-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    color: #2557a7;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-size: 14px;
}

.jbe-sidebar-cat-link:hover {
    background: #f0f4f8;
    padding-left: 14px;
}

.jbe-cat-count {
    background: #2557a7;
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

/* Posts Widget */
.jbe-sidebar-posts {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.jbe-sidebar-post-item {
    display: flex;
    flex-direction: column;
    padding: 10px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.jbe-sidebar-post-item:hover {
    background: #f0f4f8;
}

.jbe-post-title {
    color: #2557a7;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1.4;
}

.jbe-sidebar-post-item:hover .jbe-post-title {
    color: #1d4580;
    text-decoration: underline;
}

.jbe-post-date {
    color: #999;
    font-size: 12px;
}

/* Newsletter CTA Widget */
.jbe-newsletter-cta {
    background: linear-gradient(135deg, #2557a7 0%, #1d4580 100%);
    color: #fff;
}

.jbe-newsletter-cta .jbe-widget-title {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.jbe-newsletter-cta p {
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.95);
}

.jbe-cta-button {
    display: block;
    background: #ff6b6b;
    color: #fff;
    text-align: center;
    padding: 10px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.jbe-cta-button:hover {
    background: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Responsive */
@media (max-width: 1024px) {
    .jbe-blog-hero-title {
        font-size: 32px;
    }

    .jbe-blog-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .jbe-blog-main {
        padding: 30px;
    }

    .jbe-blog-sidebar {
        order: -1;
    }

    .jbe-blog-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .jbe-blog-hero {
        height: 300px;
    }

    .jbe-blog-hero-overlay {
        padding: 20px 15px 40px;
    }

    .jbe-blog-hero-title {
        font-size: 24px;
        margin: 10px 0;
    }

    .jbe-blog-meta-hero {
        font-size: 12px;
    }

    .jbe-blog-container {
        margin: -50px auto 0;
        padding: 0 15px;
    }

    .jbe-blog-main {
        padding: 20px;
    }

    .jbe-blog-post-content {
        font-size: 15px;
        line-height: 1.7;
    }

    .jbe-blog-post-content h2 {
        font-size: 22px;
    }

    .jbe-blog-post-content h3 {
        font-size: 18px;
    }

    .jbe-blog-related-grid {
        grid-template-columns: 1fr;
    }

    .jbe-blog-author-box {
        flex-direction: column;
        text-align: center;
    }

    .jbe-author-avatar {
        display: flex;
        justify-content: center;
    }

    .jbe-blog-meta-hero {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ================================
   ARCHIVE & CATEGORY PAGE STYLES
   ================================ */

/* Archive Page */
.jbe-archive-page {
    background: #f8f9fa;
    min-height: 100vh;
}

.jbe-archive-hero {
    background: linear-gradient(135deg, #2557a7 0%, #1d4580 100%);
    color: #fff;
    padding: 60px 20px;
    text-align: center;
}

.jbe-archive-hero-overlay {
    max-width: 1200px;
    margin: 0 auto;
}

.jbe-archive-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.jbe-archive-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 30px;
}

.jbe-archive-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
}

.jbe-filter-btn {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.2s ease;
}

.jbe-filter-btn:hover,
.jbe-filter-btn.active {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
}

/* Archive Container */
.jbe-archive-container {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.jbe-archive-main {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Archive Posts Grid */
.jbe-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.jbe-archive-card {
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.jbe-archive-card:hover {
    box-shadow: 0 8px 20px rgba(37, 87, 167, 0.15);
    transform: translateY(-4px);
}

.jbe-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

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

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

.jbe-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
}

.jbe-card-category {
    position: absolute;
    top: 10px;
    left: 10px;
}

.jbe-cat-badge {
    background: rgba(255, 255, 255, 0.95);
    color: #2557a7;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.jbe-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.jbe-card-title {
    font-size: 16px;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.jbe-card-title a {
    color: #2557a7;
    text-decoration: none;
    transition: color 0.2s ease;
}

.jbe-archive-card:hover .jbe-card-title a {
    color: #ff6b6b;
}

.jbe-card-meta {
    font-size: 12px;
    color: #999;
    margin-bottom: 12px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.jbe-meta-separator {
    opacity: 0.5;
}

.jbe-card-excerpt {
    font-size: 13px;
    color: #595959;
    line-height: 1.6;
    margin-bottom: 15px;
    flex-grow: 1;
}

.jbe-card-link {
    display: inline-block;
    color: #2557a7;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.jbe-card-link:hover {
    color: #ff6b6b;
}

/* Archive Pagination */
.jbe-archive-pagination {
    margin-top: 40px;
    text-align: center;
}

.jbe-archive-pagination ul {
    list-style: none;
    display: inline-flex;
    gap: 8px;
    padding: 0;
    margin: 0;
}

.jbe-archive-pagination li {
    margin: 0;
}

.jbe-archive-pagination a,
.jbe-archive-pagination span {
    display: inline-block;
    padding: 10px 14px;
    background: #fff;
    color: #2557a7;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.jbe-archive-pagination a:hover {
    background: #2557a7;
    color: #fff;
    border-color: #2557a7;
}

.jbe-archive-pagination span.page-numbers.current {
    background: #2557a7;
    color: #fff;
    border-color: #2557a7;
}

/* Archive No Posts */
.jbe-no-posts {
    text-align: center;
    padding: 60px 20px;
}

.jbe-no-posts-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.jbe-no-posts h2 {
    font-size: 28px;
    color: #2557a7;
    margin-bottom: 10px;
}

.jbe-no-posts p {
    font-size: 16px;
    color: #595959;
    margin-bottom: 20px;
}

.jbe-no-posts-link {
    display: inline-block;
    background: #2557a7;
    color: #fff;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s ease;
}

.jbe-no-posts-link:hover {
    background: #1d4580;
}

/* Archive Sidebar */
.jbe-archive-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.jbe-search-widget {
    margin-top: 10px;
}

.jbe-search-widget form {
    display: flex;
    gap: 8px;
}

.jbe-search-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    font-size: 14px;
}

.jbe-search-input:focus {
    outline: none;
    border-color: #2557a7;
    box-shadow: 0 0 0 3px rgba(37, 87, 167, 0.1);
}

.jbe-search-btn {
    background: #2557a7;
    color: #fff;
    padding: 10px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s ease;
}

.jbe-search-btn:hover {
    background: #1d4580;
}

/* ================================
   CATEGORY PAGE STYLES
   ================================ */

.jbe-category-page {
    background: #f8f9fa;
    min-height: 100vh;
}

/* Category Hero */
.jbe-category-hero {
    --category-color: #2557a7;
    background: linear-gradient(135deg, var(--category-color) 0%, rgba(0, 0, 0, 0.1) 100%);
    color: #fff;
    padding: 80px 20px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.jbe-category-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    transform: translate(100px, -100px);
}

.jbe-category-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    transform: translate(-100px, 100px);
}

.jbe-category-hero-overlay {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

.jbe-category-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.jbe-category-title {
    font-size: 52px;
    font-weight: 700;
    margin: 0 0 15px 0;
    line-height: 1.1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.jbe-category-description {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 25px 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.jbe-category-stats {
    display: flex;
    gap: 30px;
    justify-content: center;
}

.jbe-stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.jbe-stat-item strong {
    font-size: 24px;
    display: block;
}

.jbe-category-hero-icon {
    position: absolute;
    bottom: 20px;
    right: 40px;
    font-size: 120px;
    opacity: 0.15;
}

/* Category Container */
.jbe-category-container {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.jbe-category-main {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Category Grid */
.jbe-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.jbe-category-card {
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid #e8e8e8;
}

.jbe-category-card:hover {
    box-shadow: 0 10px 24px rgba(37, 87, 167, 0.12);
    transform: translateY(-6px);
    border-color: #2557a7;
}

.jbe-cat-card-image {
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

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

.jbe-category-card:hover .jbe-cat-card-image img {
    transform: scale(1.08);
}

.jbe-cat-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 70px;
}

.jbe-cat-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.jbe-cat-card-title {
    font-size: 18px;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.jbe-cat-card-title a {
    color: #2557a7;
    text-decoration: none;
    transition: color 0.2s ease;
}

.jbe-category-card:hover .jbe-cat-card-title a {
    color: #ff6b6b;
}

.jbe-cat-card-meta {
    font-size: 12px;
    color: #999;
    margin-bottom: 14px;
    display: flex;
    gap: 10px;
}

.jbe-cat-meta-separator {
    opacity: 0.5;
}

.jbe-cat-card-excerpt {
    font-size: 14px;
    color: #595959;
    line-height: 1.6;
    margin-bottom: 16px;
    flex-grow: 1;
}

.jbe-cat-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #e8e8e8;
}

.jbe-cat-read-time {
    font-size: 12px;
    color: #999;
}

.jbe-cat-card-link {
    display: inline-block;
    color: #2557a7;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.jbe-cat-card-link:hover {
    color: #ff6b6b;
}

/* Category Pagination */
.jbe-category-pagination {
    margin-top: 40px;
    text-align: center;
}

.jbe-category-pagination ul {
    list-style: none;
    display: inline-flex;
    gap: 8px;
    padding: 0;
    margin: 0;
}

.jbe-category-pagination li {
    margin: 0;
}

.jbe-category-pagination a,
.jbe-category-pagination span {
    display: inline-block;
    padding: 10px 14px;
    background: #fff;
    color: #2557a7;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.jbe-category-pagination a:hover {
    background: #2557a7;
    color: #fff;
    border-color: #2557a7;
}

.jbe-category-pagination span.page-numbers.current {
    background: #2557a7;
    color: #fff;
    border-color: #2557a7;
}

/* Category Sidebar */
.jbe-category-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.jbe-other-categories {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.jbe-other-cat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 4px;
    text-decoration: none;
    color: #2557a7;
    transition: all 0.2s ease;
}

.jbe-other-cat:hover {
    background: #2557a7;
    color: #fff;
    padding-left: 16px;
}

.jbe-other-cat-count {
    background: #e8e8e8;
    color: #2557a7;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.jbe-other-cat:hover .jbe-other-cat-count {
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.jbe-popular-posts {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.jbe-popular-post {
    display: flex;
    flex-direction: column;
    padding: 10px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.jbe-popular-post:hover {
    background: #f0f4f8;
}

.jbe-pop-post-title {
    color: #2557a7;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 4px;
}

.jbe-popular-post:hover .jbe-pop-post-title {
    color: #ff6b6b;
}

.jbe-pop-post-date {
    color: #999;
    font-size: 12px;
}

/* Category Info Widget */
.jbe-category-info {
    text-align: center;
}

.jbe-category-color-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 12px;
    font-size: 40px;
    margin: 0 auto 15px;
}

.jbe-category-info p {
    font-size: 13px;
    line-height: 1.6;
    color: #595959;
    margin-bottom: 15px;
}

.jbe-info-link {
    display: inline-block;
    color: #2557a7;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.jbe-info-link:hover {
    color: #ff6b6b;
}

/* Responsive */
@media (max-width: 1024px) {
    .jbe-archive-container,
    .jbe-category-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .jbe-archive-sidebar,
    .jbe-category-sidebar {
        order: -1;
    }

    .jbe-category-title {
        font-size: 36px;
    }

    .jbe-archive-title {
        font-size: 36px;
    }

    .jbe-posts-grid,
    .jbe-category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .jbe-archive-hero,
    .jbe-category-hero {
        padding: 40px 20px;
    }

    .jbe-archive-title {
        font-size: 28px;
    }

    .jbe-category-title {
        font-size: 28px;
    }

    .jbe-archive-subtitle {
        font-size: 16px;
    }

    .jbe-archive-filters {
        margin-top: 15px;
    }

    .jbe-filter-btn {
        font-size: 12px;
        padding: 6px 12px;
    }

    .jbe-archive-container,
    .jbe-category-container {
        margin: 20px 0;
        padding: 0 15px;
    }

    .jbe-archive-main,
    .jbe-category-main {
        padding: 20px;
    }

    .jbe-posts-grid,
    .jbe-category-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .jbe-category-hero-icon {
        bottom: 10px;
        right: 20px;
        font-size: 80px;
    }

    .jbe-search-widget form {
        flex-direction: column;
    }

    .jbe-search-input,
    .jbe-search-btn {
        width: 100%;
    }
}
