﻿/* =========================
   GENERAL
========================= */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 20px;
    font-family: Georgia, "Times New Roman", serif;
    background: linear-gradient(135deg, #f8fbff, #edf4fc);
    color: #111;
}

.program-container {
    max-width: 1200px;
    margin: auto;
}

/* =========================
   SECTION TITLE
========================= */

.section-title {
    position: relative;
    width: 86%;
    margin: 5px auto 70px auto;
    background: linear-gradient(90deg, #071c3a, #173c70, #071c3a);
    color: white;
    text-align: center;
    padding: 13px 35px;
    font-size: 32px;
    font-weight: bold;
    letter-spacing: 1px;
    border-radius: 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.18);
}

    .section-title:before,
    .section-title:after {
        content: "";
        position: absolute;
        top: 0;
        width: 0;
        height: 0;
        border-top: 29px solid transparent;
        border-bottom: 29px solid transparent;
    }

    .section-title:before {
        left: -30px;
        border-right: 30px solid #071c3a;
    }

    .section-title:after {
        right: -30px;
        border-left: 30px solid #071c3a;
    }

.cap {
    font-size: 30px;
    margin: 0 25px;
}

/* =========================
   FACULTY GRID
========================= */

.faculty-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 70px;
}

/* =========================
   CARD
========================= */

.faculty-card {
    position: relative;
    background: white;
    min-height: 505px;
    border-radius: 15px;
    padding: 42px 17px 25px;
    border: 2px solid #e1e1e1;
    box-shadow: 0 5px 12px rgba(0,0,0,0.12);
}

/* Card bottom border colors */

.arts-card {
    border-bottom: 5px solid #55208e;
}

.commerce-card {
    border-bottom: 5px solid #08743b;
}

.science-card {
    border-bottom: 5px solid #1254a0;
}

/* =========================
   ROUND ICON
========================= */

.faculty-icon {
    position: absolute;
    top: -48px;
    left: 50%;
    transform: translateX(-50%);
    width: 88px;
    height: 88px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 43px;
    border: 5px solid white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.25);
}

.arts-icon {
    background: #52208a;
}

.commerce-icon {
    background: #08733b;
}

.science-icon {
    background: #1455a1;
}

/* =========================
   FACULTY RIBBON
========================= */

.faculty-name {
    position: relative;
    margin: 0 0 17px 0;
    padding: 9px 5px;
    color: white;
    text-align: center;
    font-size: 22px;
    font-weight: bold;
    clip-path: polygon( 0 0, 100% 0, 94% 50%, 100% 100%, 0 100%, 6% 50% );
}

.arts-name {
    background: #55208e;
}

.commerce-name {
    background: #08743b;
}

.science-name {
    background: #1254a0;
}

/* =========================
   DEGREE TITLE
========================= */

.degree {
    text-align: center;
    padding: 13px 10px;
    border-radius: 8px;
    font-size: 23px;
    font-weight: bold;
    margin-bottom: 18px;
}

.arts-degree {
    background: #f0e5f9;
    color: #452078;
}

.commerce-degree {
    background: #e5f3e9;
    color: #075f31;
}

.science-degree {
    background: #e5effd;
    color: #124a91;
}

/* =========================
   SUBJECT LIST
========================= */

.subject-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

    .subject-list li {
        position: relative;
        font-size: 21px;
        line-height: 1.5;
        padding: 7px 5px 7px 43px;
    }

        .subject-list li:before {
            content: "◆";
            position: absolute;
            left: 10px;
            top: 8px;
            font-size: 15px;
        }

/* Subject bullet colors */

.arts-card .subject-list li:before {
    color: #55208e;
}

.commerce-card .subject-list li:before {
    color: #08743b;
}

.science-card .subject-list li:before {
    color: #1254a0;
}

/* =========================
   FOOTER
========================= */

.footer {
    position: relative;
    margin-left: -20px;
    margin-right: -20px;
    margin-bottom: -20px;
    min-height: 105px;
    background: linear-gradient( 90deg, #102f62, #173f7b, #28548f );
    color: white;
    display: flex;
    align-items: center;
    padding: 15px 7%;
}

/* Footer building icon */

.footer-building {
    width: 80px;
    text-align: center;
    font-size: 45px;
    border-right: 2px solid white;
    padding-right: 25px;
    margin-right: 35px;
}

/* Footer text */

.footer-text {
    font-size: 20px;
    line-height: 1.45;
}

    .footer-text strong {
        font-size: 22px;
    }

/* Books illustration */

.footer-books {
    margin-left: auto;
    font-size: 65px;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 950px) {

    .section-title {
        font-size: 25px;
        width: 90%;
    }

    .faculty-grid {
        grid-template-columns: 1fr;
        max-width: 550px;
        margin-left: auto;
        margin-right: auto;
    }

    .faculty-card {
        min-height: auto;
    }

    .footer {
        padding: 15px 30px;
    }
}

@media (max-width: 600px) {

    body {
        padding: 10px;
    }

    .section-title {
        width: 95%;
        font-size: 19px;
        padding: 12px 8px;
        margin-bottom: 65px;
    }

    .cap {
        font-size: 18px;
        margin: 0 8px;
    }

    .faculty-name {
        font-size: 19px;
    }

    .degree {
        font-size: 20px;
    }

    .subject-list li {
        font-size: 18px;
    }

    .footer {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .footer-building {
        border-right: none;
        border-bottom: 1px solid white;
        padding: 0 0 10px;
        margin: 0;
    }

    .footer-books {
        margin: 0;
    }
}
