/* =========================================================
   MOLAS UNIVERSITY PAGE
   Premium Apple-style Education Dashboard
   HTML unchanged
========================================================= */

.university-page {
    min-height: 100vh;
    background:
        radial-gradient(
            circle at 10% 0%,
            rgba(168, 50, 45, .08),
            transparent 32%
        ),
        radial-gradient(
            circle at 90% 20%,
            rgba(168, 50, 45, .055),
            transparent 30%
        ),
        #f3efe7;

    color: #111;
    padding: 0 0 90px;
}

.university-page-container {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}


/* =========================================================
   BACK
========================================================= */

.university-back {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    margin: 30px 0 22px;

    color: #777067;
    text-decoration: none;

    font-size: 13px;
    font-weight: 600;

    transition: .25s ease;
}

.university-back:hover {
    color: #a8322d;
    transform: translateX(-3px);
}


/* =========================================================
   UNIVERSITY HERO
========================================================= */

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

    min-height: 380px;

    display: flex;
    align-items: flex-end;

    padding: 55px;

    border-radius: 32px;

    background:
        radial-gradient(
            circle at 85% 15%,
            rgba(168, 50, 45, .30),
            transparent 30%
        ),
        radial-gradient(
            circle at 100% 100%,
            rgba(255, 255, 255, .08),
            transparent 35%
        ),
        #171717;

    color: #fff;

    box-shadow:
        0 25px 60px rgba(30, 25, 20, .14);
}


/* glowing decorative circles */

.university-hero::before {
    content: "";

    position: absolute;

    width: 360px;
    height: 360px;

    right: -110px;
    top: -120px;

    border-radius: 50%;

    border: 1px solid rgba(255,255,255,.09);

    box-shadow:
        0 0 0 45px rgba(255,255,255,.025),
        0 0 0 90px rgba(255,255,255,.018);

    pointer-events: none;
}


.university-hero::after {
    content: "";

    position: absolute;

    width: 9px;
    height: 9px;

    right: 90px;
    top: 80px;

    border-radius: 50%;

    background: #c84b43;

    box-shadow:
        0 0 25px rgba(200,75,67,.8),
        0 0 60px rgba(200,75,67,.35);

    pointer-events: none;
}


.university-hero-content {
    position: relative;
    z-index: 2;

    width: min(760px, 100%);
}


/* =========================================================
   UNIVERSITY TYPE
========================================================= */

.university-type {
    display: inline-flex;
    align-items: center;

    margin-bottom: 20px;

    padding: 7px 12px;

    border: 1px solid rgba(255,255,255,.13);

    border-radius: 999px;

    background: rgba(255,255,255,.07);

    color: #d6b47d;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: .15em;
    text-transform: uppercase;

    backdrop-filter: blur(12px);
}


/* =========================================================
   UNIVERSITY NAME
========================================================= */

#university-name {
    margin: 0;

    color: #faf8f3;

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "SF Pro Display",
        "SF Pro Text",
        Inter,
        "Segoe UI",
        sans-serif;

    font-size: clamp(42px, 6vw, 70px);

    font-weight: 700;

    line-height: .98;

    letter-spacing: -.055em;
}


/* =========================================================
   LOCATION
========================================================= */

#university-location {
    display: flex;
    align-items: center;
    gap: 9px;

    margin: 22px 0 0;

    color: #c4c0b9;

    font-size: 14px;
    font-weight: 600;
}


#university-location::before {
    content: "";

    width: 7px;
    height: 7px;

    flex: 0 0 7px;

    border-radius: 50%;

    background: #c04a42;

    box-shadow:
        0 0 12px rgba(192,74,66,.65);
}


/* =========================================================
   DESCRIPTION
========================================================= */

.university-description {
    max-width: 690px;

    margin: 15px 0 0;

    color: #99958e;

    font-size: 14px;

    line-height: 1.75;
}


/* =========================================================
   QUICK INFORMATION SECTION
========================================================= */

.university-information-section {
    margin-top: 45px;

    padding: 34px;

    border: 1px solid rgba(17,17,17,.07);

    border-radius: 30px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.92),
            rgba(250,248,243,.86)
        );

    box-shadow:
        0 18px 50px rgba(40,35,28,.07);

    backdrop-filter: blur(20px);
}


/* =========================================================
   SECTION HEADER
========================================================= */

.university-information-section .section-heading {
    margin-bottom: 25px;
}


.university-information-section .small-label {
    display: block;

    margin-bottom: 7px;

    color: #a8322d;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: .17em;
    text-transform: uppercase;
}


.university-information-section h2 {
    margin: 0;

    color: #171717;

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "SF Pro Display",
        "SF Pro Text",
        Inter,
        "Segoe UI",
        sans-serif;

    font-size: 29px;

    font-weight: 700;

    letter-spacing: -.035em;
}


/* =========================================================
   INFORMATION GRID
========================================================= */

.university-info-list {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 14px;
}


/* =========================================================
   EACH ITEM
========================================================= */

.university-info-item {
    min-width: 0;

    border-radius: 22px;

    background: #fff;

    border: 1px solid #e8e2d8;

    overflow: hidden;

    box-shadow:
        0 7px 22px rgba(30,25,20,.045);

    transition:
        transform .3s ease,
        box-shadow .3s ease,
        border-color .3s ease;
}


.university-info-item:hover {
    transform: translateY(-3px);

    box-shadow:
        0 14px 35px rgba(30,25,20,.09);

    border-color: #ddd3c5;
}


/* =========================================================
   INFO CARD BUTTON
========================================================= */

.university-info-card {
    position: relative;

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

    display: grid;

    grid-template-columns: 48px minmax(0,1fr) 32px;

    align-items: center;

    gap: 13px;

    padding: 16px 18px;

    border: 0;

    background: transparent;

    color: #151515;

    text-align: left;

    cursor: pointer;

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "SF Pro Text",
        Inter,
        "Segoe UI",
        sans-serif;

    transition:
        background .3s ease,
        color .3s ease;
}


/* =========================================================
   ICON
========================================================= */

.university-info-icon {
    width: 48px;
    height: 48px;

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

    border-radius: 16px;

    background:
        linear-gradient(
            145deg,
            #f6eee5,
            #eee5da
        );

    font-size: 20px;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.8);
}


/* =========================================================
   TITLE
========================================================= */

.university-info-title {
    font-size: 14px;

    font-weight: 700;

    letter-spacing: -.01em;
}


/* =========================================================
   ARROW
========================================================= */

.university-info-arrow {
    width: 30px;
    height: 30px;

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

    border-radius: 50%;

    background: #f2eee8;

    color: #625d56;

    font-size: 20px;
    font-weight: 400;

    transition:
        transform .3s ease,
        background .3s ease,
        color .3s ease;
}


/* =========================================================
   OPEN STATE
========================================================= */

.university-info-item.is-open {
    grid-column: 1 / -1;

    border-color: rgba(168,50,45,.25);

    box-shadow:
        0 20px 45px rgba(40,30,25,.10),
        0 0 0 1px rgba(168,50,45,.04);
}


.university-info-item.is-open .university-info-card {
    background:
        linear-gradient(
            135deg,
            #171717,
            #252322
        );

    color: #fff;
}


.university-info-item.is-open .university-info-icon {
    background: rgba(255,255,255,.09);

    box-shadow: none;
}


.university-info-item.is-open .university-info-arrow {
    transform: rotate(45deg);

    background: #a8322d;

    color: #fff;
}


/* =========================================================
   EXPANDED CONTENT
========================================================= */

.university-info-content {
    padding: 0 26px 28px;

    background: #fff;

    animation:
        informationReveal .35s ease both;
}


@keyframes informationReveal {

    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


/* =========================================================
   INFORMATION ARTICLE
========================================================= */

.university-info-content article {
    padding-top: 25px;

    border-top: 1px solid #eee8df;
}


.university-info-content article + article {
    margin-top: 25px;
}


/* =========================================================
   CONTENT META
========================================================= */

.university-info-content .quick-information-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    margin-bottom: 9px;

    color: #8a837a;

    font-size: 10px;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: .08em;
}


/* =========================================================
   CONTENT TITLE
========================================================= */

.university-info-content h3 {
    margin: 0 0 12px;

    color: #171717;

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "SF Pro Display",
        "SF Pro Text",
        Inter,
        "Segoe UI",
        sans-serif;

    font-size: 23px;

    font-weight: 700;

    line-height: 1.2;

    letter-spacing: -.035em;
}


/* =========================================================
   CONTENT TEXT
========================================================= */

.university-info-content p {
    max-width: 820px;

    margin: 0;

    color: #68635c;

    font-size: 14px;

    line-height: 1.8;
}


/* =========================================================
   READ MORE
========================================================= */

.university-info-content .university-update-link {
    display: inline-flex;

    margin-top: 18px;

    padding: 10px 15px;

    border-radius: 999px;

    background: #f2ece5;

    color: #a8322d;

    text-decoration: none;

    font-size: 11px;

    font-weight: 800;

    transition: .25s ease;
}


.university-info-content .university-update-link:hover {
    background: #a8322d;

    color: #fff;

    transform: translateY(-2px);
}


/* =========================================================
   OFFICIAL WEBSITE
========================================================= */

#university-website {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 50px;

    margin-top: 25px;

    border-radius: 16px;

    background:
        linear-gradient(
            135deg,
            #a8322d,
            #7f2521
        );

    color: #fff;

    text-decoration: none;

    font-size: 12px;
    font-weight: 800;

    box-shadow:
        0 10px 25px rgba(168,50,45,.18);

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}


#university-website:hover {
    transform: translateY(-2px);

    box-shadow:
        0 15px 30px rgba(168,50,45,.25);
}


/* =========================================================
   LOADING / EMPTY
========================================================= */

.university-info-content:empty {
    display: none;
}


.news-loading {
    padding: 25px;

    border-radius: 18px;

    background: #f7f3ed;

    color: #777067;

    font-size: 13px;

    line-height: 1.6;
}


.quick-information-empty {
    padding: 20px;

    color: #777067;

    text-align: center;
}


.quick-information-empty strong {
    display: block;

    margin-bottom: 7px;

    color: #222;
}


.quick-information-empty p {
    margin: 0;

    font-size: 13px;

    line-height: 1.6;
}


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

@media (max-width: 800px) {

    .university-page-container {
        width: min(100% - 32px, 680px);
    }

    .university-hero {
        min-height: 350px;

        padding: 45px;
    }

    .university-information-section {
        padding: 25px;
    }

}


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

@media (max-width: 600px) {

    .university-page {
        padding-bottom: 60px;
    }

    .university-page-container {
        width: calc(100% - 22px);
    }

    .university-back {
        margin: 20px 0 16px;
    }

    .university-hero {
        min-height: 365px;

        padding: 30px 24px;

        border-radius: 26px;
    }

    #university-name {
        font-size: clamp(38px, 12vw, 53px);

        letter-spacing: -.06em;
    }

    #university-location {
        font-size: 13px;
    }

    .university-description {
        font-size: 13px;

        line-height: 1.7;
    }

    .university-information-section {
        margin-top: 25px;

        padding: 20px 15px;

        border-radius: 25px;
    }

    .university-information-section h2 {
        font-size: 25px;
    }

    .university-info-list {
        grid-template-columns: 1fr;

        gap: 11px;
    }

    .university-info-card {
        min-height: 76px;

        grid-template-columns: 45px minmax(0,1fr) 30px;

        padding: 14px;
    }

    .university-info-icon {
        width: 45px;
        height: 45px;

        border-radius: 14px;
    }

    .university-info-content {
        padding: 0 17px 23px;
    }

    .university-info-content h3 {
        font-size: 20px;
    }

    .university-info-content p {
        font-size: 13px;
    }

}


/* =========================================================
   VERY SMALL PHONES
========================================================= */

@media (max-width: 380px) {

    .university-page-container {
        width: calc(100% - 16px);
    }

    .university-hero {
        padding: 27px 20px;
    }

    #university-name {
        font-size: 36px;
    }

    .university-information-section {
        padding: 18px 12px;
    }

}

