/* ===== MEDICAL CODING TRAINING SECTION STYLES ===== */

/* Section Container */
.medical-coding-section {
    background-color: #ffffff;
    padding: 3rem 0;
}

/* Tabs Wrapper - Center tabs */
.medical-tabs-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 2.5rem;
}

/* Tabs */
.medical-tabs {
    display: inline-flex;
    gap: 0.75rem;
    background-color: #f8f8f8;
    padding: 0.5rem;
    border-radius: 12px;
}

.medical-tab {
    padding: 0.75rem 2rem;
    border: none;
    background-color: transparent;
    color: #333;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.medical-tab.active {
    background-color: #6730DE;
    color: #ffffff;
}

.medical-tab:hover:not(.active) {
    background-color: #e8e8e8;
}

/* Tab Content */
.medical-tab-content {
    display: none;
}

.medical-tab-content.active {
    display: block;
}

.medical-tab-content {
    padding: 0 2rem;
}

/* FORCE ROW TO USE CSS GRID FOR EQUAL HEIGHTS */
.medical-tab-content .row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* Remove Bootstrap flex from columns when using grid */
.medical-tab-content .row>[class*='col-'] {
    display: contents;
}

/* Content Cards - Will now stretch to equal height automatically */
.medical-card {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.75rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.medical-card:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Card Title */
.medical-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.75rem;
}

/* Card Preview Text */
.medical-card-text {
    font-size: 0.9375rem;
    color: #6b7280;
    margin-bottom: 1rem;
    line-height: 1.6;
    flex-grow: 1;
    text-align: left;
}

.medical-card-full p,
.medical-card-full li {
    text-align: left;
}

/* Read More Button - with outline by default */
.medical-read-more {
    background: transparent;
    border: 2px solid #6730DE;
    color: #6730DE;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.medical-read-more:hover {
    background-color: #6730DE;
    border-color: #6730DE;
    color: #ffffff;
}

/* Modal Customization */
#medicalModal .modal-header {
    background-color: #6730DE;
    color: #ffffff;
    border-bottom: none;
    border-radius: 6px 6px 0 0;
}

#medicalModal .modal-title {
    font-weight: 700;
    font-size: 1.25rem;
}

#medicalModal .btn-close {
    filter: brightness(0) invert(1);
}

#medicalModal .modal-body {
    padding: 1rem;
    font-size: 1rem;
    line-height: 1.7;
}

#medicalModal .modal-body p {
    margin-bottom: 1rem;
    text-align: left;
}

#medicalModal .modal-body li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
    text-align: left;
}

#medicalModal .modal-footer {
    border-top: 1px solid #e5e7eb;
}

.medical-modal-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #6730DE;
    text-decoration: none;
}

.medical-modal-link:hover {
    color: #5625c6;
}

/* Responsive - 2 columns on tablet */
@media (max-width: 991px) {
    .medical-tab-content .row {
        grid-template-columns: repeat(2, 1fr);
    }

    .medical-card {
        padding: 1.5rem;
    }

    .medical-card-title {
        font-size: 1.0625rem;
    }
}

/* Enroll Now button beside Read more */
.medical-card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-top: auto;
    width: 100%;
}

.medical-enroll-btn {
    background: #6730DE;
    border: 2px solid #6730DE;
    color: #ffffff;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
}

.medical-enroll-btn:hover {
    background-color: #5625c6;
    border-color: #5625c6;
}

/* Responsive - 1 column on mobile */
@media (max-width: 767px) {
    .medical-tab-content .row {
        grid-template-columns: 1fr;
    }

    .medical-card {
        padding: 1.25rem;
    }
}