/* =========================
   GENERAL PAGE STYLING
   ========================= */

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f7fb;
    margin: 0;
    color: #1f2937;
}

#container {
    width: 90%;
    max-width: 1000px;
    margin: 30px auto;
}


/* =========================
   HEADER
   ========================= */

header {
    background: #123a6d;
    color: white;
    padding: 25px 40px 60px 40px;
    border-radius: 18px;
}


/* =========================
   NAVIGATION
   ========================= */

nav {
    text-align: right;
    margin-bottom: 50px;
}

nav a {
    color: white;
    text-decoration: none;
    margin-left: 25px;
    font-weight: bold;
}

nav a:hover {
    color: #ef3340;
}


/* =========================
   HERO SECTION
   ========================= */

.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.hero-text {
    max-width: 650px;
}

.course-name {
    color: #ef3340;
    font-weight: bold;
    letter-spacing: 2px;
}

header h1 {
    font-size: 48px;
    margin: 10px 0;
}

.intro {
    font-size: 20px;
    line-height: 1.5;
}

.semester {
    font-weight: bold;
}

.hero-photo img {
    width: 200px;
    height: auto;
    border-radius: 12px;
    border: 4px solid white;
}


/* =========================
   MAIN CONTENT
   ========================= */

main {
    padding: 40px 10px;
}

section {
    margin-bottom: 60px;
}

section h2 {
    color: #123a6d;
    border-left: 5px solid #ef3340;
    padding-left: 12px;
}


/* =========================
   ABOUT SECTION
   ========================= */

#about p {
    max-width: 800px;
    line-height: 1.7;
}


/* =========================
   COURSE WORK FEATURE
   ========================= */

#work {
    padding: 60px 20px;
}

.coursework-box {
    max-width: 820px;
    margin: 0 auto;
    padding: 50px 45px;

    text-align: center;

    background: linear-gradient(
        135deg,
        #ffffff 0%,
        #f4f7fb 100%
    );

    border: 1px solid #d7e0ea;
    border-top: 5px solid #ef3340;
    border-radius: 14px;

    box-shadow: 0 12px 30px rgba(18, 58, 109, 0.14);
}

.coursework-icon {
    width: 65px;
    height: 65px;

    margin: 0 auto 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    background-color: #123a6d;
    color: white;

    font-size: 1.3rem;
    font-weight: bold;

    border-radius: 50%;
}

.coursework-label {
    margin: 0 0 8px;

    color: #ef3340;

    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 2px;
}

.coursework-box h2 {
    margin: 0 0 18px;
    padding: 0;

    color: #123a6d;

    font-size: 2rem;

    border-left: none;
}

.coursework-text {
    max-width: 650px;

    margin: 0 auto 30px;

    color: #4b5563;

    font-size: 1.05rem;
    line-height: 1.7;
}

/* =========================
   ASSIGNMENT CARDS
   Used on Assignments page
   ========================= */

.cards {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.card {
    background: white;

    width: 280px;

    padding: 25px;

    border-radius: 12px;
    border-top: 4px solid #ef3340;

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
}

.card h3 {
    margin-top: 0;
    color: #123a6d;
}

.card p {
    line-height: 1.5;
}

.card a {
    display: inline-block;
    margin-top: 10px;

    color: #0066cc;

    font-weight: bold;
    text-decoration: none;
}

.card a:hover {
    text-decoration: underline;
}


/* =========================
   CONTACT
   ========================= */

#contact {
    text-align: left;
}

.email-link {
    color: #0066cc;
    text-decoration: none;
    line-height: 1.7;
}

.email-link:hover {
    text-decoration: underline;
}


/* =========================
   FOOTER
   ========================= */

footer {
    border-top: 1px solid #d5dce5;

    text-align: center;

    padding: 20px;

    color: #667085;
}


/* =========================
   RESPONSIVE DESIGN
   ========================= */

@media (max-width: 700px) {

    #container {
        width: 94%;
        margin: 15px auto;
    }

    header {
        padding: 20px 25px 40px 25px;
    }

    nav {
        text-align: center;
        margin-bottom: 35px;
    }

    nav a {
        display: inline-block;
        margin: 8px 10px;
    }

    .hero {
        flex-direction: column;
        text-align: center;
    }

    header h1 {
        font-size: 36px;
    }

    .hero-photo img {
        width: 170px;
    }

    main {
        padding: 30px 5px;
    }

    #work {
        padding: 40px 10px;
    }

    .coursework-box {
        padding: 40px 25px;
    }

    .coursework-box h2 {
        font-size: 1.6rem;
    }

    .assignments-button {
        width: 100%;
        box-sizing: border-box;
    }

    .cards {
        flex-direction: column;
    }

    .card {
        width: auto;
    }
}

/* VIEW MY ASSIGNMENTS BUTTON */

#work a.assignments-button,
#work a.assignments-button:visited {
    display: inline-block;

    padding: 14px 32px;

    background-color: #0066cc;
    color: #ffffff;

    font-size: 16px;
    font-weight: bold;
    text-decoration: none;

    border: 2px solid #0066cc;
    border-radius: 5px;

    box-shadow: 0 4px 10px rgba(0, 102, 204, 0.20);

    transition:
        background-color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


#work a.assignments-button:hover {
    background-color: #123a6d;
    border-color: #123a6d;
    color: #ffffff;

    text-decoration: none;

    transform: translateY(-3px);

    box-shadow: 0 7px 15px rgba(18, 58, 109, 0.30);
}


#work a.assignments-button:active {
    transform: translateY(0);
}

/* MAIN ASSIGNMENTS BUTTON */

#assignments-button,
#assignments-button:link,
#assignments-button:visited {
    display: inline-block;

    padding: 15px 32px;

    background-color: #0066cc !important;
    color: #ffffff !important;

    font-size: 16px;
    font-weight: bold;

    text-decoration: none !important;

    border: 2px solid #0066cc;
    border-radius: 6px;

    box-shadow: 0 4px 10px rgba(0, 102, 204, 0.25);

    cursor: pointer;

    transition: all 0.25s ease;
}

#assignments-button:hover {
    background-color: #123a6d !important;
    border-color: #123a6d;
    color: #ffffff !important;

    text-decoration: none !important;

    transform: translateY(-3px);

    box-shadow: 0 8px 18px rgba(18, 58, 109, 0.30);
}

#assignments-button:active {
    transform: translateY(0);
}