/* Container Background & Typography */
.mca-program {
    background-color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Accordion Main Container */
.accordion-section .accordion-item {
    border: 1px solid #f8d7da;
    /* Light pink border */
    border-radius: 12px !important;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

/* Left Accent Line */
.accordion-section .accordion-item {
    border-left: 6px solid #b11e3c;
    /* Main maroon color */
}

/* Accordion Header Customization */
.accordion-section .accordion-header .accordion-button {
    background-color: #fff;
    color: #333;
    font-weight: 700;
    padding: 1.25rem;
    font-size: 20px;
    box-shadow: none;
}

.accordion-body {
    overflow: hidden;
    transition: max-height 0.45s cubic-bezier(0.23, 1, 0.32, 1);
    background: #fefafb;
    border-top: 0px solid rgba(229, 52, 92, 0.2);
}


/* Removing the default blue focus/active state of Bootstrap */
.accordion-section .accordion-button:not(.collapsed) {
    background-color: #fffdfd;
    color: #b11e3c;
    box-shadow: none;
}

.accordion-section .accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0, 0, 0, .125);
}

/* Semester Sub-headings */
.sem-title {
    font-weight: 700;
    font-size: 1.2rem;
    margin: 1rem 0 1rem 0;
    background: #f9e2e8;
    display: inline-block;
    padding: 0.2rem 1rem;
    border-radius: 30px;
    color: #a1244a;
    letter-spacing: -0.2px;
}

/* Table Styling to match the image */
.accordion-section .table {
    margin-bottom: 2rem;
    border-collapse: separate;
    border-spacing: 0 5px;
    /* Creates spacing between rows if needed */
    border: none;
}

.accordion-section .table td {
    padding: 12px 15px;
    vertical-align: middle;
    border: none;
    border-bottom: 1px solid #f1f1f1;
    color: #555;
}

/* Course Code Badge Style (Left column) */
.accordion-section .table td:first-child {
    color: #b11e3c;
    font-weight: 700;
    width: 150px;
}

.specialization-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1rem 0 0.5rem 0;
}

.spec_text {
    margin-top: 20px;
    font-size: 15px;
}

/* Specialization Cards */
.spec-card {
    background: linear-gradient(145deg, #ffffff, #fef5f7);
    border-radius: 1rem;
    padding: 0.7rem 1.2rem;
    font-weight: 600;
    font-size: 0.85rem;
    color: #792358;
    border: 1px solid #ffc0d0;
    transition: all 0.1s;
}

/* Customizing the Accordion Arrow color */
.accordion-button::after {
    filter: sepia(100%) saturate(2000%) hue-rotate(310deg);
}


.course-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.5rem 0 1.5rem 0;
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.course-table td {
    padding: 10px 16px;
    border-bottom: 1px solid #f0e2e6;
    color: #2c1a24;
    font-weight: 500;
}

.course-code {
    font-weight: 600;
    background: #f3e9ec;
    padding: 0.2rem 0.4rem;
    border-radius: 12px;
    font-size: 0.8rem;
    display: inline-block;
    color: #c42c58;
}

.course-table th {
    background: #79235815;
    text-align: left;
    padding: 12px 16px;
    font-weight: 600;
    color: #3a1e2c;
    border-bottom: 2px solid #eebecd;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.research-badge {
    background: #e5345c10;
    font-style: italic;
    padding: 0.5rem;
    border-radius: 1rem;
    font-size: 0.85rem;
    border-left: 4px solid #e5345c;
    margin-top: 0.8rem;
}


/* ================== Media Queries ================== */

@media (min-width:0px) and (max-width:991px) {

    .research-badge,
    .course-table th,
    .course-code,
    .course-table td {
        font-size: 14px;
    }

    .accordion-section .accordion-header .accordion-button {
        font-size: 16px;
    }
}