/* ===============================
   KNOWLEDGE GRID
================================= */

.knowledge-grid {
    padding: 100px 0;
}

.knowledge-grid .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 35px;
}

/* ===============================
   GUIDE CARD
================================= */

.guide-card {
    background: #ffffff;
    padding: 35px;
    border-radius: 16px;
    border: 1px solid #eeeeee;
    transition: all 0.35s ease;
}

.guide-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(0,0,0,0.08);
    border-color: rgba(227,6,19,0.25);
}

.guide-card-icon {
    width: 46px;
    height: 46px;
    background: rgba(227,6,19,0.08);
    color: #e30613;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    font-size: 18px;
    transition: 0.3s ease;
}

.guide-card:hover .guide-card-icon {
    background: rgba(227,6,19,0.15);
    transform: scale(1.05);
}

.guide-card h3 {
    margin-bottom: 12px;
}

.guide-card p {
    color: #555;
}

.guide-open-btn {
    margin-top: 18px;
    background: none;
    border: none;
    color: #e30613;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: 0.3s ease;
}

.guide-open-btn i {
    transition: 0.3s ease;
}

.guide-card:hover .guide-open-btn i {
    transform: translateX(4px);
}

/* ===============================
   MODAL
================================= */

.guide-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9999;
}

.guide-modal.active {
    opacity: 1;
    visibility: visible;
}

.guide-modal-content {
    background: #ffffff;
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 45px;
    border-radius: 18px;
    box-shadow: 0 35px 70px rgba(0,0,0,0.25);
}

/* Modal Back */

.guide-back {
    font-weight: 600;
    margin-bottom: 30px;
    cursor: pointer;
    color: #e30613;
}

/* ===============================
   GUIDE CONTENT
================================= */

.guide-content h2 {
    font-size: 28px;
    margin-bottom: 25px;
}

.guide-content h3 {
    margin-top: 30px;
    margin-bottom: 12px;
    font-size: 18px;
}

.guide-content p {
    line-height: 1.7;
    color: #444;
    margin-bottom: 15px;
}

.guide-content ul {
    margin-left: 20px;
    margin-top: 10px;
    line-height: 1.6;
}

.guide-content li {
    margin-bottom: 6px;
}

.guide-footer-note {
    margin-top: 30px;
    padding: 15px;
    background: #f5f5f5;
    border-left: 4px solid #e30613;
    font-size: 14px;
}

/* ===============================
   FAQ SECTION
================================= */

.faq-modern {
    padding: 90px 0;
    background: #fafafa;
}

.faq-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 50px;
    font-weight: 600;
}

.faq-item-modern {
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 16px;
    margin-bottom: 18px;
    overflow: hidden;
    transition: 0.3s ease;
}

.faq-item-modern.active {
    border-color: #e30613;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
}

.faq-question-modern {
    width: 100%;
    background: none;
    border: none;
    padding: 22px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 17px;
    font-weight: 500;
    text-align: left;
}

.faq-question-modern:hover {
    background: #fafafa;
}

.faq-question-left {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.faq-text {
    font-size: 17px;
}

.faq-text.featured {
    display: flex;
    align-items: center;
    gap: 8px;
}

.faq-text.featured i {
    font-size: 14px;
    color: #c9a227;
}

.faq-badge {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 30px;
    background: #e30613;
    color: #fff;
}

.faq-badge.light {
    background: #fbe3e5;
    color: #e30613;
}

.faq-icon {
    font-size: 20px;
    color: #e30613;
    transition: 0.3s ease;
}

.faq-answer-modern {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 25px;
}

.faq-item-modern.active .faq-answer-modern {
    max-height: 500px;
    padding: 0 25px 20px 25px;
}

/* ===============================
   MOBILE
================================= */

@media (max-width: 768px) {

    .knowledge-grid {
        padding: 70px 0;
    }

    .guide-modal-content {
        padding: 30px;
    }

    .faq-title {
        font-size: 26px;
    }
}