/* ================================
   Chapter Navigation
================================ */

.crm-chapter-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    max-width: 100%;
}
.crm-section-title{
    max-width: 100%;
}
/* Default state */
.crm-chapter-nav a
 {
    min-width: 40px;
    text-align: center;
    padding: 8px 14px;
    border-radius: 6px;
    border: 1px solid #dce5f2;
    background: #ffffff;
    color: #1c6fec;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.25s ease;
    display:inline-block;
}

/* Hover state */
.crm-chapter-nav a:hover {
    background: #1c6fec;
    color: #ffffff;
    border-color: #1c6fec;
    transform: translateY(-1px);
}

/* Active chapter */
.crm-chapter-nav a.active {
    background: #f2295b;
    color: #ffffff;
    border-color: #f2295b;
}

/* Optional: focus (keyboard accessibility) */
.crm-chapter-nav a:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(28, 111, 236, 0.35);
}


.crm-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
    max-width: 100%;

}
@media (max-width: 1024px) {
    .crm-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .crm-grid {
        grid-template-columns: 1fr;
    }
}
.crm-column {
    position: relative;
    background: #ffffff;
    border: 1px solid #e6ecf8;
    border-radius: 10px;
    padding: 18px 20px 16px;
    box-shadow: 0 10px 30px rgba(28, 111, 236, 0.08);
}

/* Pink accent line */
.crm-column::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 4px;
    width: 100%;
    background: linear-gradient(
        90deg,
        #1c6fec 0%,
        #f2295b 100%
    );
    border-radius: 10px 10px 0 0;
}
.crm-column h3 {
    margin: 0 0 12px;
    padding-bottom: 8px;
    font-size: 20px;
    font-weight: 600;
    color: #1c6fec;
    border-bottom: 2px solid #1c6fec;
}
/* Normal resource lists */
.crm-column ul {
    padding: 0;
    margin: 0;
    list-style:none;
}
.crm-column ul li {
    margin-bottom: 0;
    border-bottom: 1px solid #e7e7e7;
    padding: 5px;
}
/* Normal resource links */
.crm-column ul li a {
    display: inline-block;
    padding: 0;
    background: none;
    border: none;
    color: #26262C;
    text-decoration: none;
    transition: color 0.2s ease;
}

/* Hover */
.crm-column ul li a:hover {
    color: #f2295b;
    text-decoration: underline;
}

.crm-subcategory-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.crm-subcategory-list li {
    margin-bottom: 10px;
}
.crm-subcategory-trigger {
    position: relative;
    display: block;
    padding: 12px 14px;
    border-radius: 6px;
    border: 1px solid #dbe6ff;
    background: #f3f7ff;
    color: #1c6fec;
    text-decoration: none;
    transition: all 0.25s ease;
}


.crm-section-title {
    margin: 30px 0 18px;
    font-size: 22px;
    font-weight: 700;
    color: #222;
}

#crm-popup {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    max-width: 100%;
}

.crm-popup-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
}


.crm-popup-content {
    position: relative;
    max-width: 720px;
    width: 90%;
    max-height: 80vh;
    margin: 5vh auto;
    background: #ffffff;
    border-radius: 10px;
    padding: 30px 30px 50px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    overflow-y: auto;
    animation: crmPopupIn 0.25s ease;
}

@keyframes crmPopupIn {
    from {
        transform: translateY(15px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

#crm-popup-title {
    margin: 0 0 18px;
    padding-bottom: 10px;
    border-bottom: 3px solid #f2295b;
    font-size: 20px;
    font-weight: 600;
    color: #1c6fec;
}
.crm-popup-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: #f1f5ff;
    color: #1c6fec;
    font-size: 20px;
    line-height: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    padding: 0px;
}

.crm-popup-close:hover {
    background: #1c6fec;
    color: #ffffff;
}

#crm-popup-list {
    padding: 0;
    list-style:none;
    margin:0px;
}

#crm-popup-list li {
    margin-bottom: 12px;
    border-bottom: 1px solid #7a7a7a;
    list-style-position: outside;
}
#crm-popup-list li a {
    text-decoration: none;
    color: #111;
}
#crm-popup-list a:hover {
    color: #f2295b;
}
.crm-count {
    margin-left: 6px;
    padding: 2px 7px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    background: #f2295b !important;
    color: #ffffff !important;
}
