/* #region Hero Section - PKBSS specific */

.hero-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 4rem 0;
}

.search-box {
    margin-top: 2rem;
}

.search-box .input-group {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.search-box .form-control {
    border: none;
    padding: 1rem 1.5rem;
}

.search-box .btn {
    border: none;
    padding: 0 2rem;
}

/* #endregion */

/* #region Stats section */

.stats-section {
    background-color: var(--primary-navy);
    color: white;
}

.stat-card {
    padding: 1rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-orange);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
}

/* #endregion */

/* #region Filter Sidebar */

.filter-sidebar {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 100px;
}

.filter-group {
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 1rem;
}

.filter-group:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.filter-group h6 {
    color: var(--primary-navy);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-check {
    margin-bottom: 0.75rem;
}

.form-check-input:checked {
    background-color: var(--primary-navy);
    border-color: var(--primary-navy);
}

.form-check-label {
    color: var(--text-dark);
    font-size: 0.9rem;
    cursor: pointer;
}

/* #endregion */

/* #region Tags */

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-badge {
    background-color: var(--bg-light);
    color: var(--primary-navy);
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tag-badge:hover {
    background-color: var(--primary-navy);
    color: white;
}

/* #endregion */

/* #region Tabs */

.nav-tabs {
    border-bottom: 2px solid #e2e8f0;
}

.nav-tabs .nav-link {
    color: var(--text-muted);
    border: none;
    padding: 1rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
    color: var(--primary-navy);
    border: none;
}

.nav-tabs .nav-link.active {
    color: var(--primary-navy);
    border: none;
    border-bottom: 3px solid var(--primary-navy);
    background: transparent;
}

/* #endregion */

/* #region Article Card */

.article-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 2rem;
}

    .article-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    }

.article-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

    .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-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-orange);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.article-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.article-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.article-content h5 {
    color: var(--primary-navy);
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.article-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 1rem;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.read-more {
    color: var(--primary-navy);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

    .read-more:hover {
        color: var(--primary-orange);
    }

.article-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* #endregion */

/* #region Tool Card */

.tool-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    text-align: center;
    margin-bottom: 2rem;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.tool-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-navy) 0%, #0f1a2e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.tool-card h5 {
    color: var(--primary-navy);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.tool-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.tool-card .btn {
    border-color: var(--primary-navy);
    color: var(--primary-navy);
}

.tool-card .btn:hover {
    background-color: var(--primary-navy);
    color: white;
}

/* #endregion */

/* #region Documentation List */

.doc-item {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.doc-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateX(5px);
}

.doc-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
}

.doc-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-navy);
}

.doc-details h6 {
    color: var(--primary-navy);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.doc-details p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0;
}

.doc-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.doc-actions {
    display: flex;
    gap: 0.5rem;
}

.doc-actions .btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

/* #endregion */

/* #region Featured Section */

.featured-section {
    background-color: var(--bg-light);
}

.featured-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center;
}

    .featured-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    }

.featured-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-orange) 0%, #d97706 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.featured-card h4 {
    color: var(--primary-navy);
    font-weight: 600;
    margin-bottom: 1rem;
}

.featured-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* #endregion */

/* #region Newsletter Section */

.newsletter-section {
    background: linear-gradient(135deg, var(--primary-navy) 0%, #0f1a2e 100%);
    color: white;
}

    .newsletter-section h2 {
        color: white;
    }

    .newsletter-section .lead {
        color: rgba(255, 255, 255, 0.9);
    }

.newsletter-form .input-group {
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    overflow: hidden;
}

.newsletter-form .form-control {
    border: none;
    padding: 1rem 1.5rem;
}

.newsletter-form .btn {
    background-color: var(--primary-orange);
    border: none;
    padding: 0 2rem;
}

    .newsletter-form .btn:hover {
        background-color: #d97706;
    }

/* #endregion */

/* Responsive Design */
@media (max-width: 992px) {
    .filter-sidebar {
        position: static;
        margin-bottom: 2rem;
    }

    .hero-section {
        padding: 2rem 0;
    }

        .hero-section h1 {
            font-size: 2rem;
        }
}

@media (max-width: 768px) {
    .article-card,
    .tool-card {
        margin-bottom: 1.5rem;
    }

    .doc-item {
        flex-direction: column;
        text-align: center;
    }

    .doc-info {
        flex-direction: column;
        text-align: center;
        margin-bottom: 1rem;
    }

    .doc-actions {
        width: 100%;
        justify-content: center;
    }

    .nav-tabs .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease-out;
}





.content-section .container .row .col-lg-9 {

    width: 100%;
}