.course-profile-page {
    background-color: #ece7d2;
    padding-bottom: 70px;
}

.course-hero {
    background: linear-gradient(90deg, #6e49ea 0%, #6d47e7 50%, #6540e2 100%);
    padding: 65px 0 110px;
}

.course-hero h2 {
    color: #ffffff;
    font-size: 2.6rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.course-hero p {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 400;
}

.profile-content-wrap {
    margin-top: 50px;
}

.shared-admission-process {
    margin-top: 26px;
}

.courses-accordion {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 10px;
}

.course-dropdown-card {
    background: #f1eedf;
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(57, 31, 148, 0.12);
    overflow: hidden;
    border: 1px solid #e0ddcf;
}

.course-dropdown-toggle {
    width: 100%;
    border: 0;
    background: #4f2fd8;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    font-size: 1rem;
    font-weight: 700;
    text-align: left;
}

.toggle-arrow {
    font-size: 1.2rem;
    transition: transform 0.2s ease;
}

.course-dropdown-toggle.collapsed .toggle-arrow {
    transform: rotate(-90deg);
}

.course-dropdown-body {
    padding: 18px;
}

.course-subtitle {
    color: #5b5b5b;
    font-size: 0.92rem;
    margin: 0 0 14px;
}

.profile-icon-circle {
    width: 210px;
    height: 210px;
    border-radius: 50%;
    background: #f7c708;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 34px;
}

.profile-icon-circle.small {
    width: 120px;
    height: 120px;
    margin-bottom: 18px;
}

.profile-icon-circle.small img {
    width: 55px;
    height: 55px;
}

.profile-icon-circle img {
    width: 98px;
    height: 98px;
    object-fit: contain;
}

.profile-panel {
    position: relative;
    background: #ebebeb;
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(102, 61, 224, 0.2);
    padding: 22px 20px 18px;
    margin-bottom: 16px;
    overflow: hidden;
    border: 1px solid #ddd8ee;
}

.profile-panel::before {
    content: none;
}

.profile-panel h2 {
    color: #4d2ed2;
    font-size: 1.45rem;
    font-weight: 700;
    margin-bottom: 14px;
    padding-left: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-emoji {
    font-size: 1.05rem;
    line-height: 1;
}

.info-grid {
    display: grid;
    gap: 12px;
}

.three-col {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-card {
    background: #ebebeb;
    border-top: 4px solid #f6c400;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.info-card h4 {
    margin: 0 0 10px;
    font-size: 1rem;
    font-weight: 700;
    color: #4c30d8;
}

.info-card p {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 500;
    color: #2e2e2e;
    line-height: 1.45;
}

.status-badge {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
    background: #f6c400;
    color: #1a1a1a;
    border-radius: 999px;
    padding: 4px 16px;
}

.rank-timeline {
    margin-left: 18px;
    border-left: 3px solid #4e30d7;
    padding-left: 14px;
}

.rank-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    position: relative;
}

.rank-row:last-child {
    margin-bottom: 0;
}

.rank-dot {
    position: absolute;
    left: -22px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #f6c400;
    border: 2px solid #f6c400;
}

.rank-row p {
    margin: 0;
    font-size: 0.95rem;
    color: #4b4b4b;
}

.payment-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admission-journey-panel {
    background: linear-gradient(180deg, #f3f1fb 0%, #eeebfa 100%);
}

.admission-journey-note {
    margin: -2px 0 14px;
    color: #5c5c5c;
    font-size: 0.95rem;
    font-weight: 500;
}

.admission-journey-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.journey-card {
    background: #ffffff;
    border: 1px solid #ddd8ee;
    border-radius: 14px;
    box-shadow: 0 8px 18px rgba(57, 31, 148, 0.08);
    padding: 14px;
}

.journey-card h3 {
    margin: 0 0 12px;
    font-size: 1.02rem;
    font-weight: 700;
    color: #4c30d8;
}

.journey-steps {
    display: grid;
    gap: 17px;
}

.journey-step {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #f9f7ff;
    border: 1px solid #e7e3f7;
    border-radius: 12px;
    padding: 10px;
}

.step-number {
    min-width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #4f2fd8;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1;
    margin-top: 1px;
}

.journey-step h4 {
    margin: 0 0 4px;
    font-size: 0.92rem;
    font-weight: 700;
    color: #2f2f2f;
}

.journey-step p {
    margin: 0;
    font-size: 0.86rem;
    color: #4b4b4b;
    line-height: 1.4;
}

.journey-link-btn {
    display: inline-block;
    margin-top: 8px;
    padding: 7px 14px;
    border-radius: 999px;
    background: #4f2fd8;
    color: #ffffff;
    border: 1px solid #4f2fd8;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    transition: all 0.2s ease;
}

.journey-link-btn:hover {
    background: #ffffff;
    color: #4f2fd8;
}

.journey-link-btn:focus-visible {
    outline: 2px solid #f6c400;
    outline-offset: 2px;
}

.documents-panel {
    background: linear-gradient(140deg, #ffffff 0%, #f7f5ff 50%, #eef5ff 100%);
    border: 1px solid #ddd8ee;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 14px 28px rgba(57, 31, 148, 0.12);
}

.documents-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.documents-panel h2 {
    margin: 0;
    color: #35217c;
    font-size: 1.22rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.documents-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid #bcd2ff;
    background: #e7f0ff;
    color: #1f4eaa;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 4px 10px;
    letter-spacing: 0.02em;
}

.documents-subtitle {
    margin: 0 0 14px;
    color: #4f4f4f;
    font-size: 0.92rem;
}

.documents-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 11px;
}

.document-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #ffffff;
    border: 1px solid #e4e4ef;
    border-radius: 12px;
    padding: 10px 12px;
    box-shadow: 0 6px 12px rgba(28, 34, 74, 0.07);
}

.document-card p {
    margin: 0;
    color: #2f2f2f;
    font-size: 0.9rem;
    line-height: 1.4;
    font-weight: 500;
}

.document-check {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border-radius: 50%;
    background: linear-gradient(145deg, #4f2fd8 0%, #2e8cff 100%);
    margin-top: 1px;
    position: relative;
    box-shadow: 0 4px 10px rgba(47, 88, 219, 0.35);
}

.document-check::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 4px;
    width: 7px;
    height: 10px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.document-card.empty {
    justify-content: center;
    grid-column: 1 / -1;
    background: #f9f7ff;
}

@media (max-width: 1199px) {
    .course-hero h2 {
        font-size: 2.2rem;
    }

    .profile-panel h2 {
        font-size: 1.3rem;
    }
}

@media (max-width: 991px) {
    .course-hero {
        padding: 44px 0 96px;
    }

    .course-hero h2 {
        font-size: 1.8rem;
    }

    .course-hero p {
        font-size: 0.92rem;
    }

    .profile-content-wrap {
        margin-top: -65px;
    }

    .shared-admission-process {
        margin-top: 18px;
    }

    .profile-icon-circle {
        width: 160px;
        height: 160px;
    }

    .profile-icon-circle img {
        width: 75px;
        height: 75px;
    }

    .three-col,
    .payment-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .profile-panel h2 {
        font-size: 1.15rem;
    }

    .admission-journey-grid {
        grid-template-columns: 1fr;
    }

    .documents-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    .course-profile-page {
        padding-bottom: 45px;
    }

    .course-hero {
        padding: 32px 0 88px;
    }

    .course-hero h2 {
        font-size: 1.45rem;
        margin-bottom: 8px;
    }

    .course-hero p {
        font-size: 0.8rem;
        line-height: 1.5;
    }

    .course-dropdown-toggle {
        font-size: 0.84rem;
        padding: 10px 12px;
    }

    .course-dropdown-body {
        padding: 12px;
    }

    .profile-content-wrap {
        margin-top: -52px;
    }

    .shared-admission-process {
        margin-top: 14px;
    }

    .profile-icon-circle {
        width: 130px;
        height: 130px;
        margin-bottom: 20px;
    }

    .profile-icon-circle.small {
        width: 100px;
        height: 100px;
        margin-bottom: 14px;
    }

    .profile-icon-circle.small img {
        width: 46px;
        height: 46px;
    }

    .profile-icon-circle img {
        width: 62px;
        height: 62px;
    }

    .profile-panel {
        border-radius: 12px;
        padding: 14px 12px;
        margin-bottom: 12px;
    }

    .profile-panel h2 {
        font-size: 1.05rem;
        margin-bottom: 10px;
        gap: 6px;
    }

    .section-emoji {
        font-size: 0.9rem;
    }

    .three-col,
    .payment-grid {
        grid-template-columns: 1fr;
    }

    .info-card {
        border-top-width: 4px;
        border-radius: 10px;
        padding: 10px;
    }

    .info-card h4 {
        font-size: 0.84rem;
        margin-bottom: 5px;
    }

    .info-card p,
    .rank-row p,
    .status-badge {
        font-size: 0.78rem;
    }

    .rank-timeline {
        margin-left: 12px;
        padding-left: 10px;
        border-left-width: 3px;
    }

    .rank-dot {
        left: -22px;
        width: 14px;
        height: 14px;
    }

    .rank-row {
        margin-bottom: 12px;
    }

    .journey-card {
        border-radius: 12px;
        padding: 10px;
    }

    .journey-card h3 {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }

    .journey-step {
        border-radius: 10px;
        padding: 8px;
        gap: 8px;
    }

    .step-number {
        min-width: 24px;
        height: 24px;
        font-size: 0.74rem;
    }

    .journey-step h4 {
        font-size: 0.8rem;
    }

    .journey-step p {
        font-size: 0.76rem;
    }

    .admission-journey-note {
        font-size: 0.78rem;
        margin-bottom: 10px;
    }

    .journey-link-btn {
        padding: 6px 12px;
        font-size: 0.72rem;
    }

    .documents-panel {
        border-radius: 12px;
        padding: 12px;
    }

    .documents-panel-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 7px;
    }

    .documents-panel h2 {
        font-size: 1rem;
    }

    .documents-subtitle {
        font-size: 0.78rem;
        margin-bottom: 10px;
    }

    .documents-grid {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .document-card {
        border-radius: 10px;
        padding: 9px;
        gap: 8px;
    }

    .document-card p {
        font-size: 0.78rem;
    }

    .document-check {
        width: 18px;
        height: 18px;
        min-width: 18px;
    }

    .document-check::after {
        left: 5px;
        top: 3px;
        width: 6px;
        height: 9px;
    }
}
