/* Knowledge Page Styles */

.knowledge-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.knowledge-card {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    height: calc(100% - 30px);
}

.knowledge-card:hover {
    transform: translateY(-5px);
}

.knowledge-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
}

.knowledge-icon {
    width: 50px;
    height: 50px;
    background: #2a5298;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 0;
    flex-shrink: 0;
}

.knowledge-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 0;
    color: #111;
}

.knowledge-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.knowledge-link {
    color: #2a5298;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    margin-top: auto;
}

.knowledge-link i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.knowledge-link:hover i {
    transform: translateX(5px);
}

.search-knowledge {
    max-width: 600px;
    margin: 0 auto 50px;
}

.search-knowledge .form-control {
    height: 55px;
    border-radius: 30px;
    padding-left: 25px;
    padding-right: 120px;
    border: 1px solid #ddd;
}

.search-knowledge .btn-search {
    position: absolute;
    right: 5px;
    top: 5px;
    height: 45px;
    border-radius: 25px;
    padding: 0 25px;
    background: #2a5298;
    color: #fff;
    border: none;
    transition: all 0.3s ease;
}

.search-knowledge .btn-search:hover {
    background: #1a335e;
}

/* Quick Selector Styles */
.quick-selector-container {
    max-width: 600px;
    margin: 0 auto 50px;
    text-align: center;
}

.quick-selector-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a335e;
    margin-bottom: 20px;
}

.quick-selector-wrapper {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.quick-selector-box {
    flex: 1;
    background: #fff;
    border: 2px solid #eee;
    border-radius: 15px;
    padding: 25px 15px;
    text-decoration: none;
    color: #444;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    cursor: pointer;
    outline: none;
}

.quick-selector-box.active {
    border-color: #2a5298;
    background: #f0f7ff;
    color: #2a5298;
    box-shadow: 0 8px 25px rgba(42, 82, 152, 0.1);
}

.quick-selector-box.active i {
    transform: scale(1.1);
}

.quick-selector-box i {
    font-size: 30px;
    color: #2a5298;
    transition: transform 0.3s ease;
}

.quick-selector-box span {
    font-size: 18px;
    font-weight: 600;
}

.quick-selector-box:hover {
    border-color: #2a5298;
    background: #f0f7ff;
    color: #2a5298;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(42, 82, 152, 0.1);
}

.quick-selector-box:hover i {
    transform: scale(1.1);
}

@media (max-width: 576px) {
    .quick-selector-wrapper {
        flex-wrap: wrap;
        gap: 10px;
    }
    .quick-selector-box[data-filter="all"] {
        flex: 0 0 100%;
    }
    .quick-selector-box[data-filter="user"],
    .quick-selector-box[data-filter="driver"] {
        flex: 1;
    }
    .quick-selector-box {
        padding: 15px 10px;
    }
    .quick-selector-box span {
        font-size: 16px;
    }
    .quick-selector-box i {
        font-size: 24px;
    }
}

.knowledge-header {
    text-align: center;
    margin-bottom: 60px;
}

.knowledge-header h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
}

.knowledge-header p {
    color: #777;
    font-size: 18px;
}

/* Contact Support Section */
.knowledge-contact-section {
    padding: 20px 0 80px 0;
    background: url('../../img/bg/banner-bg.png') no-repeat center center;
    background-size: cover;
    position: relative;
    text-align: center;
}

.knowledge-contact-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    z-index: 1;
}

.knowledge-contact-section .container {
    position: relative;
    z-index: 2;
}

.knowledge-contact-section h2 {
    padding-top: 40px;
    font-size: 32px;
    font-weight: 700;
    color: #1a335e;
    margin-bottom: 15px;
}

.knowledge-contact-section p {
    font-size: 18px;
    color: #555;
    max-width: 700px;
    margin: 0 auto 30px;
}

.btn-contact-support {
    background-color: #1a335e;
    color: #fff;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

.btn-contact-support:hover {
    background-color: #2a5298;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Articles Section */
.articles-section {
    padding: 80px 0 20px 0;
    background-color: #fff;
}

.article-column-header {
    font-size: 24px;
    font-weight: 700;
    color: #1a335e;
    margin-bottom: 30px;
}

.article-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.article-item {
    border-bottom: 1px solid #eee;
}

.article-item:last-child {
    border-bottom: none;
}

.article-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    color: #444;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 16px;
}

.article-link:hover {
    color: #2a5298;
    padding-left: 5px;
}

.article-link i {
    font-size: 14px;
    color: #999;
    transition: transform 0.3s ease;
}

.article-link:hover i {
    transform: translateX(5px);
    color: #2a5298;
}

@media (max-width: 991px) {
    .articles-section {
        padding: 60px 0;
    }
    
    .article-column-header {
        font-size: 22px;
        margin-bottom: 20px;
    }
}
