/* Page header styles */
.page-header {
    background: linear-gradient(135deg, #2A6DA8 0%, #4a90e2 100%);
    color: white;
    padding: 60px 0 40px;
    text-align: center;
}

.page-header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.page-header p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.filter-tab {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.filter-tab:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    color: white;
}

.filter-tab.active {
    background: white;
    color: #2A6DA8;
    border-color: white;
}

/* Main container styles */
.news-container {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Filter tabs styling */
.filter-tabs {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
}

.filter-tabs a {
    color: #64748b;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
}

.filter-tabs a:hover {
    color: #2563eb;
    background-color: #f1f5f9;
}

.filter-tabs a.active {
    color: #2563eb;
    background-color: #dbeafe;
    font-weight: 600;
}

.filter-tabs a.active::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background-color: #2563eb;
    border-radius: 2px;
}

/* Loading state */
.loading {
    text-align: center;
    padding: 40px;
    color: #64748b;
    font-size: 16px;
}

/* Section headers */
.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.section-header h2 {
    color: #2A6DA8;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.section-header i {
    font-size: 2rem;
}

.section-divider {
    height: 4px;
    width: 100px;
    background: linear-gradient(90deg, #2A6DA8, #4a90e2);
    margin: 0 auto;
    border-radius: 2px;
}

/* Grid layouts */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

/* News card styles */
.news-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(42, 109, 168, 0.1);
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.card-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.card-content {
    padding: 25px;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-avatar {
    width: 35px!important;
    height: 35px!important;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #2A6DA8;
}


.author-name {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.publish-date {
    color: #666;
    font-size: 0.85rem;
    font-weight: 500;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2A6DA8;
    margin-bottom: 12px;
    line-height: 1.3;
}

.card-excerpt {
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.card-category {
    display: flex;
    justify-content: flex-end;
}

.category-tag {
    background: linear-gradient(135deg, #2A6DA8, #4a90e2);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Job card styles */
.job-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    padding: 25px;
    transition: all 0.3s ease;
    border-left: 4px solid #2A6DA8;
}

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

.job-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.company-logo {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #2A6DA8, #4a90e2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.job-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2A6DA8;
    margin-bottom: 5px;
}

.company-name {
    color: #666;
    font-weight: 600;
    font-size: 0.9rem;
}

.job-description {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

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

.job-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #666;
    font-size: 0.85rem;
    font-weight: 500;
}

.job-meta i {
    color: #2A6DA8;
    width: 14px;
}

.job-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 0.8rem;
    color: #777;
}

/* Empty state */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
    color: #666;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #2A6DA8;
}

.empty-state p {
    font-size: 1.1rem;
    max-width: 400px;
}

/* Responsive design */
@media (max-width: 768px) {
    .news-container {
        padding: 20px 10px;
        gap: 30px;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .jobs-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .job-meta {
        flex-direction: column;
        gap: 10px;
    }

    .job-footer {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}

/* Legacy styles for backward compatibility */
/* Legacy styles for backward compatibility */
.main-blog-cont {
    margin: 10px;
    max-width: 250px;
    border-radius: 10px;
    background-color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.main-blog-cont:hover {
    transform: translateY(-5px);
}

.blog-img-cont {
    width: 100%;
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
    height: 150px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.blog-text-cont {
    margin: 10px;
    padding: 10px;
}

.blog-header {
    font-size: 1.2rem;
    font-weight: bold;
    color: #2A6DA8;
    margin-bottom: 10px;
}

.blog-text {
    color: #555;
    line-height: 1.5;
    margin-bottom: 10px;
}

.date-posted {
    color: #999;
    font-weight: bold;
    font-size: 0.8rem;
}

.author-cont {
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-cont>h1 {
    font-weight: bold;
    font-size: 1rem;
}

.author-img {
    border-radius: 50%;
    border: 2px solid #2A6DA8;
    background-image: url(../logos/Rhino\ Security-01.png);
    background-size: cover;
    background-position: center;
    width: 40px;
    height: 40px;
}

.empty {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #666;
}

.blog {
    height: max-content;
    border: 1px solid rgba(42, 109, 168, 0.2);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    background: white;
    transition: all 0.3s ease;
    overflow: hidden;
}

.blog:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.topps {
    height: 200px;
    background-position: center;
    background-size: cover !important;
    border-top-right-radius: 9px;
    border-top-left-radius: 9px;
}

.story {
    padding: 20px;
}

.abouu {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.authorImg {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    overflow: hidden;
}

.authorImg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author {
    font-weight: 600;
    color: #333;
}

.dot {
    width: 4px;
    height: 4px;
    background-color: #999;
    border-radius: 50%;
}

.date {
    color: #666;
    font-size: 0.9rem;
}

.topic {
    font-size: 1.3rem;
    font-weight: bold;
    color: #2A6DA8;
    margin-bottom: 10px;
    line-height: 1.3;
}

.text {
    color: #555;
    line-height: 1.6;
}

.moree {
    border-top: 1px solid rgba(42, 109, 168, 0.2);
    padding: 15px 20px;
    display: flex;
    justify-content: center;
}

.moree .fa-solid {
    font-size: 1.5rem;
    color: #ccc;
    cursor: pointer;
    transition: color 0.3s ease;
}

.moree .fa-solid:hover {
    color: #2A6DA8;
}

/* Loading styles */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

/* Enhanced animations and transitions */
.card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    animation: cardFloat 0.3s ease forwards;
}

@keyframes cardFloat {
    to {
        transform: translateY(-8px);
        box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    }
}

/* Fade in animation for content */
.news-container,
.jobs-container {
    animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Filter tab animation */
.filter-tabs a {
    position: relative;
    overflow: hidden;
}

.filter-tabs a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.filter-tabs a:hover::before {
    left: 100%;
}

/* Loading spinner */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #2A6DA8;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2A6DA8;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}