
/* =====================================================
   COURSE CONNECT DESIGN FIX
===================================================== */

.course-connect-section {
    background: #f7f8fc;
    padding: 30px 0 60px;
}

.course-connect-section > .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e8eaf1;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(14, 9, 74, 0.06);
}

/* =====================================================
   BREADCRUMB
===================================================== */

.course-connect-section .breadcrumb {
    margin: 0 0 28px;
    padding: 16px 18px;
    background: #f6f7fb;
    border: 1px solid #e1e4ed;
    border-radius: 12px;
}

.course-connect-section .breadcrumb-item {
    font-size: 14px;
    font-weight: 500;
}

.course-connect-section .breadcrumb-item a {
    color: #0e094a;
    font-weight: 600;
    text-decoration: none;
}

.course-connect-section .breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    padding: 0 10px;
    color: #9ba1b2;
}

/* =====================================================
   MAIN TWO-COLUMN LAYOUT
===================================================== */

.course-connect-section .row {
    display: grid;
    grid-template-columns: minmax(330px, 390px) minmax(0, 1fr);
    gap: 28px;
    margin: 0;
    align-items: start;
}

.course-connect-section .row > .col-sm-4,
.course-connect-section .row > .col-sm-8 {
    width: 100%;
    max-width: none;
    padding: 0;
    flex: none;
}

/* =====================================================
   LEFT FORM CARD
===================================================== */

.course-connect-section .row > .col-sm-4 {
    background: #ffffff;
    border: 1px solid #dfe3ec;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(14, 9, 74, 0.07);
}

/* Form header */
.course-connect-section .row > .col-sm-4::before {
    content: "Enter Your Marks";
    display: block;
    padding: 24px 24px 8px 82px;
    margin: 0;

    background: linear-gradient(135deg, #0e094a, #1a1372);
    color: #ffffff;

    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
}

/* Form header description */
.course-connect-section .row > .col-sm-4::after {
    content: "Add your seven subjects and marks to check which UJ courses you may qualify for.";
    display: block;

    padding: 0 24px 22px 82px;
    margin: 0;

    background: linear-gradient(135deg, #0e094a, #1a1372);
    color: rgba(255, 255, 255, 0.78);

    font-size: 13px;
    line-height: 1.55;
}

/* Form body */
.course-connect-section form {
    position: relative;
    padding: 24px 20px 26px;
}

/* Header icon */
.course-connect-section form::before {
    content: "▦";

    position: absolute;
    top: -108px;
    left: 22px;

    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(255, 255, 255, 0.13);
    border-radius: 50%;

    color: #ffffff;
    font-size: 25px;
}

/* Privacy message */
.course-connect-section form::after {
    content: "Your information is used only to calculate your results.";
    display: block;

    margin-top: 17px;

    color: #70788c;
    font-size: 12px;
    text-align: center;
}

/* =====================================================
   LABELS AND FORM CONTROLS
===================================================== */

.course-connect-section form br {
    display: none;
}

.course-connect-section form label {
    display: block;
    margin: 0 0 8px;

    color: #11143a;
    font-size: 13px;
    font-weight: 700;
}

.course-connect-section form label:not(:first-of-type) {
    margin-top: 21px;
}

.course-connect-section form select,
.course-connect-section form input[type="number"] {
    width: 100%;
    height: 48px;

    display: block;

    padding: 0 14px;
    margin: 0;

    background: #ffffff !important;
    border: 1px solid #dce1eb;
    border-radius: 9px;

    color: #11143a !important;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.course-connect-section form input[type="number"] {
    margin-top: 9px;
}

.course-connect-section form select:focus,
.course-connect-section form input[type="number"]:focus {
    border-color: #0e094a;
    box-shadow: 0 0 0 4px rgba(14, 9, 74, 0.09);
}

.course-connect-section form input::placeholder {
    color: #8b92a4;
}

/* Submit button */
.course-connect-section form input[type="submit"] {
    width: 100%;
    min-height: 52px;

    margin-top: 26px;
    padding: 13px 18px;

    background: linear-gradient(135deg, #ff6200, #e94f00);
    border: none;
    border-radius: 9px;

    color: #ffffff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;

    cursor: pointer;

    box-shadow: 0 8px 18px rgba(255, 98, 0, 0.22);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.course-connect-section form input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(255, 98, 0, 0.28);
}

/* =====================================================
   RIGHT RESULTS AREA
===================================================== */

.course-connect-section .row > .col-sm-8 {
    min-width: 0;
}

.course-connect-section .notify {
    margin: 0 0 20px;
    text-align: left !important;
}

.course-connect-section .notify h2 {
    margin: 0 0 7px;

    color: #0e094a;
    font-size: clamp(25px, 2.2vw, 34px);
    font-weight: 700;
    line-height: 1.18;
}

.course-connect-section .notify::after {
    content: "Your calculated APS and matching UJ programmes will be displayed below.";

    display: block;

    color: #6d7487;
    font-size: 14px;
    line-height: 1.6;
}

/* =====================================================
   RESULTS CARD
===================================================== */

.course-connect-section .course-list {
    position: relative;

    width: 100%;
    min-height: 250px;

    padding: 130px 24px 24px;

    background: #ffffff;
    border: 1px solid #dfe3ec;
    border-radius: 16px;

    color: #0e094a;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.65;

    box-shadow: 0 8px 22px rgba(14, 9, 74, 0.06);

    overflow: hidden;
}

/* APS header */
.course-connect-section .course-list::before {
    content: "YOUR ADMISSION POINT SCORE";

    position: absolute;
    top: 0;
    left: 0;
    right: 0;

    height: 110px;

    display: flex;
    align-items: center;

    padding: 20px 25px 20px 106px;

    background: linear-gradient(135deg, #0e094a, #1a1372);

    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

/* APS icon */
.course-connect-section .course-list::after {
    content: "▦";

    position: absolute;
    top: 27px;
    left: 28px;

    width: 56px;
    height: 56px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(255, 255, 255, 0.12);
    border-radius: 50%;

    color: #ff6200;
    font-size: 27px;
}

/* APS output */
.course-connect-section .course-list .aps-output {
    margin: 0 0 18px;
    padding: 16px 18px;

    background: #f8f9fd;
    border: 1px solid #e4e7ef;
    border-radius: 10px;

    color: #0e094a;
    font-size: 20px;
    font-weight: 700;
}

/* Course separators */
.course-connect-section .course-list hr {
    margin: 12px 0;
    border: none;
    border-top: 1px solid #e9ebf1;
}

/* Empty-state text */
.course-connect-section .empty-results {
    padding: 20px;

    background: #f8f9fd;
    border: 1px dashed #ccd1df;
    border-radius: 10px;

    color: #6d7487;
    font-weight: 500;
    text-align: center;
}

/* =====================================================
   INFORMATION BOX
===================================================== */

.course-connect-section .row > .col-sm-8::after {
    content: "Important: These results are only an indication. Final admission remains subject to UJ's official requirements and selection process.";

    display: block;

    margin-top: 18px;
    padding: 16px 18px;

    background: #f1f4ff;
    border: 1px solid #d8e0ff;
    border-radius: 11px;

    color: #263670;
    font-size: 12px;
    line-height: 1.6;
    text-align: center;
}

/* =====================================================
   LOADING ANIMATION
===================================================== */

.course-connect-section .loading-container {
    position: absolute;
    inset: 110px 0 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(255, 255, 255, 0.92);
    z-index: 4;
}

.course-connect-section .loading-animation {
    width: 38px;
    height: 38px;

    border: 4px solid #eeedf8;
    border-top-color: #0e094a;
    border-radius: 50%;

    animation: courseLoader 0.8s linear infinite;
}

@keyframes courseLoader {
    to {
        transform: rotate(360deg);
    }
}

/* =====================================================
   TABLET
===================================================== */

@media (max-width: 991px) {

    .course-connect-section .row {
        grid-template-columns: 340px minmax(0, 1fr);
        gap: 20px;
    }

    .course-connect-section .notify h2 {
        font-size: 27px;
    }
}

/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 767px) {

    .course-connect-section {
        padding: 18px 0 40px;
    }

    .course-connect-section > .container {
        width: calc(100% - 20px);
        padding: 14px;
        border-radius: 14px;
    }

    .course-connect-section .row {
        display: block;
    }

    .course-connect-section .row > .col-sm-4 {
        margin-bottom: 28px;
    }

    .course-connect-section .notify h2 {
        font-size: 24px;
    }

    .course-connect-section .course-list {
        padding: 122px 16px 18px;
    }

    .course-connect-section .course-list::before {
        height: 100px;
        padding-left: 88px;
        font-size: 11px;
    }

    .course-connect-section .course-list::after {
        top: 24px;
        left: 19px;
        width: 50px;
        height: 50px;
    }
}




/* =====================================================
   UNIVERSAL UNIVERSITY COURSE HERO
===================================================== */

.university-course-hero {
    position: relative;
    overflow: hidden;

    width: 100%;
    padding: 70px 24px;

    background: #ffffff;
    border-bottom: 1px solid #eceef4;
}

/* Main container */
.university-course-hero__container {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 1240px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
    align-items: center;
    gap: 70px;
}

/* =====================================================
   LEFT CONTENT
===================================================== */

.university-course-hero__content {
    max-width: 700px;
}

/* Badge */
.university-course-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    margin-bottom: 22px;
    padding: 9px 15px;

    background: #0e094a;
    border-radius: 50px;

    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;

    box-shadow: 0 8px 18px rgba(14, 9, 74, 0.14);
}

.university-course-hero__badge i {
    font-size: 13px;
}

/* Main heading */
.university-course-hero__content h1 {
    max-width: 720px;

    margin: 0 0 20px;

    color: #0e094a;
    font-size: clamp(42px, 5.2vw, 68px);
    font-weight: 750;
    line-height: 1.04;
    letter-spacing: -1.8px;
}

/* Description */
.university-course-hero__description {
    max-width: 650px;

    margin: 0 0 30px;

    color: #667085;
    font-size: 16px;
    line-height: 1.75;
}

/* =====================================================
   FEATURES
===================================================== */

.university-course-hero__features {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;

    margin-bottom: 32px;
}

.university-course-hero__feature {
    display: flex;
    align-items: center;
    gap: 12px;

    min-width: 145px;
}

.university-course-hero__feature-icon {
    flex: 0 0 48px;

    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #f7f8fc;
    border: 1px solid #e7e9f0;
    border-radius: 50%;

    color: #ff6200;
    font-size: 18px;

    box-shadow: 0 7px 17px rgba(14, 9, 74, 0.06);
}

.university-course-hero__feature div:last-child {
    display: flex;
    flex-direction: column;
}

.university-course-hero__feature strong {
    color: #0e094a;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
}

.university-course-hero__feature span {
    color: #72798b;
    font-size: 12px;
    line-height: 1.4;
}

/* =====================================================
   CTA BUTTON
===================================================== */

.university-course-hero__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    min-height: 54px;
    padding: 14px 24px;

    background: #ff6200;
    border: 1px solid #ff6200;
    border-radius: 9px;

    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.25px;

    box-shadow: 0 12px 24px rgba(255, 98, 0, 0.22);

    transition:
        transform 0.22s ease,
        background 0.22s ease,
        box-shadow 0.22s ease;
}

.university-course-hero__button:hover {
    background: #e95700;
    border-color: #e95700;

    color: #ffffff;
    text-decoration: none;

    transform: translateY(-3px);

    box-shadow: 0 16px 30px rgba(255, 98, 0, 0.28);
}

.university-course-hero__button i {
    font-size: 13px;
    transition: transform 0.22s ease;
}

.university-course-hero__button:hover i {
    transform: translateX(4px);
}

/* =====================================================
   RIGHT VISUAL AREA
===================================================== */

.university-course-hero__visual {
    position: relative;

    min-height: 430px;

    display: flex;
    align-items: center;
    justify-content: center;
}

/* Rings wrapper */
.university-course-hero__rings {
    position: relative;

    width: 430px;
    height: 430px;

    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ring styles */
.university-course-hero__ring {
    position: absolute;

    border: 1px solid #e5e8ef;
    border-radius: 50%;
}

.university-course-hero__ring.ring-one {
    width: 430px;
    height: 430px;
}

.university-course-hero__ring.ring-two {
    width: 340px;
    height: 340px;
}

.university-course-hero__ring.ring-three {
    width: 265px;
    height: 265px;
}

/* Logo card */
.university-course-hero__logo-card {
    position: relative;
    z-index: 2;

    width: 250px;
    height: 250px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 36px;

    background: #ffffff;
    border: 1px solid #e8eaf1;
    border-radius: 50%;

    box-shadow:
        0 24px 45px rgba(14, 9, 74, 0.12),
        0 7px 17px rgba(14, 9, 74, 0.06);
}

/* University logo */
.university-course-hero__logo {
    display: block;

    width: auto;
    height: auto;

    max-width: 175px;
    max-height: 165px;

    object-fit: contain;
}

/* Small orange marker */
.university-course-hero__logo-card::after {
    content: "";

    position: absolute;
    right: -27px;
    top: 50%;

    width: 11px;
    height: 11px;

    background: #ff6200;
    border-radius: 50%;

    box-shadow:
        0 28px 0 #ff6200,
        0 56px 0 #ff6200;
}

/* Decorative dotted areas */
.university-course-hero__dots {
    position: absolute;

    display: grid;
    grid-template-columns: repeat(3, 6px);
    gap: 12px;
}

.university-course-hero__dots span {
    width: 6px;
    height: 6px;

    background: #d8dbe4;
    border-radius: 50%;
}

.university-course-hero__dots--top {
    top: 42px;
    left: 12px;
}

.university-course-hero__dots--bottom {
    right: 6px;
    bottom: 38px;
}

/* Soft decorative glow */
.university-course-hero__visual::before {
    content: "";

    position: absolute;

    width: 330px;
    height: 330px;

    background: radial-gradient(
        circle,
        rgba(14, 9, 74, 0.05),
        transparent 67%
    );

    border-radius: 50%;
}

/* =====================================================
   TABLET
===================================================== */

@media (max-width: 1050px) {

    .university-course-hero {
        padding: 58px 22px;
    }

    .university-course-hero__container {
        grid-template-columns: minmax(0, 1.1fr) minmax(310px, 0.9fr);
        gap: 40px;
    }

    .university-course-hero__visual {
        min-height: 360px;
    }

    .university-course-hero__rings {
        width: 350px;
        height: 350px;
    }

    .university-course-hero__ring.ring-one {
        width: 350px;
        height: 350px;
    }

    .university-course-hero__ring.ring-two {
        width: 285px;
        height: 285px;
    }

    .university-course-hero__ring.ring-three {
        width: 225px;
        height: 225px;
    }

    .university-course-hero__logo-card {
        width: 210px;
        height: 210px;
        padding: 30px;
    }

    .university-course-hero__logo {
        max-width: 145px;
        max-height: 135px;
    }
}

/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 767px) {

    .university-course-hero {
        padding: 42px 18px 48px;
    }

    .university-course-hero__container {
        display: flex;
        flex-direction: column;

        gap: 34px;

        text-align: center;
    }

    .university-course-hero__content {
        max-width: 100%;
    }

    .university-course-hero__content h1 {
        font-size: 38px;
        line-height: 1.08;
        letter-spacing: -1px;
    }

    .university-course-hero__description {
        margin-left: auto;
        margin-right: auto;

        font-size: 14px;
    }

    .university-course-hero__features {
        justify-content: center;
        gap: 16px;
    }

    .university-course-hero__feature {
        min-width: 135px;
        text-align: left;
    }

    .university-course-hero__button {
        width: 100%;
        max-width: 310px;
    }

    .university-course-hero__visual {
        width: 100%;
        min-height: 300px;
    }

    .university-course-hero__rings {
        width: 290px;
        height: 290px;
    }

    .university-course-hero__ring.ring-one {
        width: 290px;
        height: 290px;
    }

    .university-course-hero__ring.ring-two {
        width: 235px;
        height: 235px;
    }

    .university-course-hero__ring.ring-three {
        width: 190px;
        height: 190px;
    }

    .university-course-hero__logo-card {
        width: 180px;
        height: 180px;
        padding: 25px;
    }

    .university-course-hero__logo {
        max-width: 125px;
        max-height: 115px;
    }

    .university-course-hero__logo-card::after {
        right: -18px;

        width: 8px;
        height: 8px;

        box-shadow:
            0 20px 0 #ff6200,
            0 40px 0 #ff6200;
    }

    .university-course-hero__dots {
        display: none;
    }
}

/* =====================================================
   SMALL MOBILE
===================================================== */

@media (max-width: 430px) {

    .university-course-hero__content h1 {
        font-size: 31px;
    }

    .university-course-hero__badge {
        font-size: 10px;
    }

    .university-course-hero__features {
        display: grid;
        grid-template-columns: 1fr;
        gap: 13px;

        width: 100%;
        max-width: 270px;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 28px;
    }

    .university-course-hero__feature {
        width: 100%;
    }

    .university-course-hero__rings {
        width: 250px;
        height: 250px;
    }

    .university-course-hero__ring.ring-one {
        width: 250px;
        height: 250px;
    }

    .university-course-hero__ring.ring-two {
        width: 205px;
        height: 205px;
    }

    .university-course-hero__ring.ring-three {
        width: 165px;
        height: 165px;
    }

    .university-course-hero__logo-card {
        width: 155px;
        height: 155px;
        padding: 22px;
    }

    .university-course-hero__logo {
        max-width: 105px;
        max-height: 98px;
    }
}
