.sectionHead {
    max-width: 756px;
    width: 100%;
    margin: 70px auto 50px;
}

.sectionHead h1 {
    font-weight: 600;
    font-size: 30px;
    line-height: 100%;
    letter-spacing: 0%;
    text-align: center;
    color: #121212;
    margin-bottom: 20px;
}

.sectionHead p {
    font-family: Inter;
    font-weight: 400;
    font-size: 15px;
    line-height: 180%;
    letter-spacing: 0%;
    text-align: center;
    color: #64748B;
}

.calculator {
    background: linear-gradient(180deg, #24C7BD 0%, #046761 100%);
    border-radius: 15px;
    width: 737px;
    margin: 0 auto 40px;
    padding: 22px 0 29px;
    color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.gpa-header {
    text-align: center;
    margin-bottom: 10px;
}

.gpa-header h2 {
    font-weight: 500;
    font-size: 28px;
    line-height: 100%;
    letter-spacing: 0%;
    text-align: center;
    color: #fff;
    margin-bottom: 25px;
}

.toogle-wrapBtn {
    background-color: #E9F4F4;
    height: 38px;
    max-width: 228px;
    width: 100%;
    margin: 0 auto;
    border-radius: 100px;
    padding: 4px 5px;
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.toggle-btn {
    font-weight: 600;
    font-size: 14px;
    line-height: 170%;
    letter-spacing: 0px;
    max-width: max-content;
    background-color: #05ADA3;
    border: none;
    border-radius: 100px;
    color: white;
    height: 30px;
    cursor: pointer;
    margin-right: 4px;
    padding: 0 15px;
}

.toggle-btn.secondary {
    background-color: #ffffff;
    color: #8C8C8C;
}
#semesters  .semester:first-child .semester-header .remove-semester{
opacity: 0.6;
pointer-events: none;
}
#semesters  .semester:first-child .courseWrap:has(.course-row:nth-child(2)) .remove-course {
opacity: 1;
pointer-events: auto;/* or flex, etc., as per your layout */
}

#semesters  .semester:first-child .courseWrap:not(:has(.course-row:nth-child(2))) .remove-course {
opacity: 0.6;
pointer-events: none;
}

.semester {
    padding: 0 30px 31px;
    margin-bottom: 25px;
    border-bottom: 1px solid #fff;
}

.semester-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 31px;
}

.semester-header .remove-semester {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    position: relative;
    top: 2px;
}

.semesterTitle {
    display: flex;
    width: 100%;
    gap: 8px;
    margin-right: 20px;
}

.semesterTitleinput {
    background: none;
    outline: none;
    display: flex;
    border: none;
    border-bottom: 1px solid #FFFFFF99;
    color: #fff;
    width: 100%;
    padding-bottom: 15px;
    font-weight: 500;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0%;

}
.semesterTitleinput:hover,
.semesterTitleinput:focus{
    border-color: #fff;
}
.inputCheckBox {
    max-width: 83px;
    width: 100%;
    font-family: Inter;
    font-weight: 400;
    font-size: 13px;
    line-height: 100%;
    letter-spacing: 0%;
    display: flex;
    align-items: center;
    margin-top: 2px;

}

.inputCheckBox input[type='checkbox'] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 14px;
    height: 14px;
    border: 1px solid #fff;
    border-radius: 3px;
    background-color: #fff;
    cursor: pointer;
    position: relative;
    flex: 0 0 14px;

    margin-right: 5px;
}

.gradeInput {
    display: none;
}

.gradeInputWrap {
    width: 100%;
}

.inputCheckBox input[type='checkbox']:checked::after {
    content: '✓';
    color: #21beb5;
    font-size: 13px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

input[type='checkbox']:checked {
    background-color: #fff;
    border-color: #fff;
}

.gradeInput .active {
    display: block;
}

.remove-semester::after {
    content: "";
    background-image: url(../images/removeIcon.svg);
    display: inline-block;
    width: 18px;
    height: 18px;
    background-repeat: no-repeat;
}

.SgpaGroup,
.course-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
}

.SgpaGroup {
    display: none;
    justify-content: start;
}

.SgpaGroup .gpaInputgroup input,
.course-row input, .course-row select {
    padding: 15px 20px;
    border: none;
    width: 100%;
    height: 49px;
    border-radius: 100px;
    color: #3F3F3F;
    font-weight: 400;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0%;

}

.course-row .gpaInputgroup:first-child input {
    min-width: 285px;
}

.course-row .gpaInputgroup .credit {
    width: 161px;
}

.SgpaGroup .gpaInputgroup input {
    max-width: 168px;
    width: 100%;
}

.course-row input::placeholder {
    color: #8C8C8C;
}

.course-row .selection {
    border: 1px solid #fff;
    z-index: 1;
    position: relative;
    display: block;
    border-radius: 100px;
    height: 49px;
    background: #fff;
}

.course-row .select2-container--default .select2-selection--single {
    background-color: #ffffff00;
    border: 1px solid #aaaaaa00;
    height: 49px;
    display: flex;
    align-items: center;
}

.course-row .select2-container .select2-selection--single .select2-selection__rendered {
    padding: 0;
    color: #8C8C8C;
    font-size: 16px;
    font-weight: 400;
}
 .course-row .select2-container--default .select2-selection__rendered:not([title="Grade"]) {
  color: #3F3F3F; /* Change to any desired color */
  
}
/* .course-row .select2-container--default .select2-selection__rendered[title="Grade"] {
  color: #999;
} */

/* .selected-option {
    color: #3F3F3F !important;
} */

.course-row .select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-width: unset;
    border: unset;
    width: 24px;
    height: 24px;
    left: -14px;
    transform: translateY(0px);
    background-color: #000;
    mask-image: url(../images/dropDownArrow.svg);
    -webkit-mask-image: url(../images/dropDownArrow.svg);
    display: block;
}

.course-row .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-width: unset;
    border: unset;
    width: 24px;
    height: 24px;
    transform: rotateX(160deg) translateY(1px);
}

.course-row .select2-container--default .select2-selection--single .select2-selection__arrow {

    display: block;

}
  .select2-container--open .select2-dropdown--below {
    border-top: none;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-radius: 11px;
    margin-top: 7px;
    overflow: hidden;
}
.remove-course {
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    font-size: 16px;
}
.remove-course:hover img {
    opacity: .6;
}
.gpa-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 40px;
}

.gpa-footer p span,
.gpa-footer p {
    font-weight: 400;
    font-size: 18px;
    line-height: 100%;
    letter-spacing: 0%;
}

.add-course {
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    font-weight: 500;
    font-size: 13px;
    line-height: 100%;
    letter-spacing: 0%;
    display: flex;
    align-items: center;
}

.add-course:hover span {
    text-decoration: underline;
}

.add-course::after {
    content: "";
    background: url('../images/addButton.svg');
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-left: 6px;
}
/* .add-course:hover::after{
    opacity: .6;
} */
.add-semester::before {
    content: "";
    background: url('../images/addButton.svg');
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 9px;
}

.add-semester {
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    font-weight: 500;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0%;
    margin-left: 30px;
    display: flex;
    align-items: center;
}

.add-semester:hover span {
    text-decoration: underline;
}

.promo {
    display: flex;

    align-items: center;
    background-color: #55a7a2;
    border-radius: 5px;
    height: 96px;
    margin: 27px 30px 24px;
    gap: 53px;

}

.timeBox {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 182px;
    width: 100%;
    padding: 11px 22px;
    background: #3d9a95;
    border-radius: 5px 0px 0px 5px;
}

.timeBox strong {

    font-weight: 600;
    font-size: 20px;
    line-height: 100%;
    letter-spacing: 0%;

}

.promoContentbox {
    width: 100%;
    padding-right: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.promo-text {
    font-weight: 300;
    font-size: 17px;
    line-height: 150%;
    letter-spacing: 0%;
    text-align: center;
    max-width: 227px;
    display: block;
}

.promo-text strong {
    font-weight: 700;
}

.learn-more {
    position: relative;
    box-sizing: border-box;
    background: linear-gradient(90deg, #059E8D 0%, #08C474 30.45%, #5ACD5A 70.42%, #C5D146 100%);
    border-radius: 100px;
    z-index: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    column-gap: 6px;
    cursor: pointer;
    padding: 11px 15px;
    transition: 0.2s;
    border: none;
    overflow: hidden;
    max-width: 138px;
    width: 100%;
}

.learn-more span {
    font-weight: 600;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0%;
    color: #fff;

}

.learn-more:hover {
    transform: scale(1.04);
    border-bottom: none;
}

.learn-more::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    transform: skewX(-20deg);
    background-image: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: 1.75s linear infinite shine;
}

@keyframes shine {
    0% {
        left: -200%;
    }

    100% {
        left: 200%;
    }
}

.gpaOutput {
    background-color: #fff;
    height: 98px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 16px;
    margin: 0 30px;
}

.gpaOutput p {

    font-weight: 400;
    font-size: 20px;
    color: #3F3F3F;
    line-height: 100%;
    letter-spacing: 0%;

}

#totalGPA {
    font-weight: 700;
}

.timeBox img {
    animation: ringAlarm 1s infinite;
    transform-origin: center;
}

@keyframes ringAlarm {
    0% {
        transform: rotate(0deg);
    }

    20% {
        transform: rotate(12deg);
    }

    40% {
        transform: rotate(-12deg);
    }

    60% {
        transform: rotate(9deg);
    }

    80% {
        transform: rotate(-9deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

@media(max-width:575px) {
    .gpa-header h2 {
        margin-top: 0;
        font-size: 24px;
    }

    .calculator {
        padding: 32px 0 30px;
        margin-bottom: 20px;
        width: 100%;
    }

    .toogle-wrapBtn {
        max-width: 220px;
        margin-bottom: 49px;
    }

    .toggle-btn {
        font-size: 13px;

        margin-right: 6px;
    }

    .SgpaGroup, .course-row {
        flex-direction: column;
        border: 1px solid #FFFFFF99;
        padding: 40px 15px 16px;
        border-radius: 15px;
        position: relative;
        gap: 20px;
    }

    .promo {
        height: auto;
        flex-direction: column;
        margin: 30px 15px 20px;
        gap:0;
                
    }

    .course-row .gpaInputgroup .credit {
        max-width: 100%;
        width: 100%;
    }

    .course-row .gpaInputgroup:first-child input {
        min-width: 100%;
    }

    .gpaInputgroup {
        width: 100%;
    }

    .remove-course {
        position: absolute;
        top: 10px;
        right: 10px;
    }

    .semester {
        padding: 0 15px 30px;
    }
    .timeBox {
    display: flex;
    align-items: center;
    max-width: 100%;
    padding: 10px 22px;
    border-radius: 5px 5px 0px 0px;
    justify-content: center;
}
.promoContentbox {
    padding-right: 0;
    flex-direction: column;
    justify-content: start;
    gap: 25px;
    margin: 20px 0 16px;

}
.learn-more {
 
    max-width: 128px;
    width: 100%;
}
.learn-more span {
 
    font-size: 15px;
}
.gpaOutput {
    height: 64px;
    margin: 0 15px;
}
.inputCheckBox{
  position: absolute;
    right: 0; 
}
.semesterTitle{
    margin-right: 0;
}
.semester-header{
    position: relative;
}
}