@import url('https://fonts.googleapis.com/css2?family=Inknut+Antiqua:wght@300;400;500;600;700;800;900&family=Outfit:wght@100..900&family=Roboto+Flex:opsz,wght@8..144,100..1000&display=swap');

/* CSS Variables */

:root {
    --branding-font: "Inknut Antiqua", serif;
    --heading-font: "Outfit", serif;
    --paragraph-font: "Roboto Flex", sans-serif;

    --primary-color: #0C0009;
    --secondary-color: #6f1d1d;
    --accent1-color: #960303;
    --accent2-color: #a1d9ed;
    /* --accent2-color: #8D99AE; */
    --accent3-color: #E5EDF0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
}

body {
    width: 100vw;
    color: var(--primary-color);
    display: block;
}

h1 {
    font-family: var(--branding-font);
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: var(--accent3-color);
}

h2,
h3,
h4,
h5 {
    font-family: var(--heading-font);
}

h2 {
    color: var(--accent2-color);
    font-size: 1.8rem;
    font-weight: 500;
    padding: 4.8rem 3rem 0.7rem;
    text-align: center;
}

.tmh-subheading {
    color: var(--accent3-color);
    font-size: 1.4rem;
    line-height: 1.8rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    padding: 0 3rem 1.5rem;
    text-align: center;
}

h3 {
    background-color: var(--primary-color);
    color: var(--accent2-color);
    font-size: 1.3rem;
    font-weight: 450;
    text-align: center;
    padding: 1rem;
}

h4 {
    padding: 0.4rem 0 0.6rem;
}

.multicolumn h5 {
    margin: 0.5rem 1rem 1.5rem;
}

article h4 {
    font-size: 2rem;
}

p,
li {
    font-family: var(--paragraph-font);
    font-size: 1.1rem;
    line-height: 1.7rem;
}

ol {
    list-style-type: decimal;
    padding-left: 1.5rem;
    font-size: 1rem;
    color: var(--primary-color);
}

ol li {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

ul {
    list-style: none;
}


a {
    color: var(--secondary-color);
    text-decoration: none;
    text-align: center;
    padding: 1.5rem 0 .5rem;
    font-size: 1.1rem;
    font-weight: 500;
}

a:hover {
    color: var(--accent1-color);
    font-weight: 700;
}

header,
main,
footer {
    width: 100vw;
}

main,
.content,
.container {
    max-width: 100%;
    padding: 0 1rem;
}

header {
    padding: 1.1rem 0 0;
    padding-bottom: 0.1rem;
    background-color: var(--primary-color);
    position: relative;
    z-index: 1;
    /* Header above other content */
}

.banner-section {
    position: relative;
    width: 100vw;
    overflow: hidden;
    padding-top: 5rem;
    padding-bottom: 0rem;
}

#hangarau-banner img {
    width: 100%;
    height: auto;
    display: block;
}

.banner-text {
    position: absolute;
    top: clamp(20%, 30vw, 30%);
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    padding: 0 1.2rem;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.6);
    width: 100%;
    max-width: 90ch;
}

.banner-text h2 {
    font-size: clamp(1.8rem, 4vw, 4rem);
    /* min: 1.5rem, ideal: 4vw, max: 3rem */
    font-weight: 600;
    margin: 0.5rem 0;
}

.banner-text .h2subheading {
    font-size: clamp(1.3rem, 2.5vw, 2rem);
    font-weight: 400;
    line-height: 1.4;
    margin-top: 0.3rem;
}

header h1 {
    position: absolute;
    top: 0.5rem;
    left: 5.2rem;
}

header h1:first-letter {
    color: var(--secondary-color);
    text-shadow:
        -0.8px -0.5px 0 var(--accent3-color),
        1px -0.5px 0 var(--accent3-color),
        -0.8px 0.5px 0 var(--accent3-color),
        1px 0.5px 0 var(--accent3-color);
}

.cs-logo {
    width: 5em;
    margin: 0 1.2rem 0;
}

.cs-logo img {
    width: 100%;
    height: auto;
}

nav {
    background-color: var(--accent3-color);
    width: 100vw;
    margin-bottom: 1.1rem;
}

nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
}

nav a {
    display: block;
    color: var(--secondary-color);
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    padding: 1.5rem 0 .5rem;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: .1rem;
}

nav a:hover {
    color: var(--accent1-color);
    font-weight: 700;
}

/* Navigation menu: active link styling */
.active {
    color: var(--primary-color);
    font-weight: 500;
}

/* Navigation menu: styling */
#menu {
    width: 1.8rem;
    height: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: var(--accent2-color);
    position: absolute;
    top: 2.2rem;
    right: 1.3rem;
}

.navigation {
    position: absolute;
    top: 0;
    right: 0;
    width: 100vw;
    z-index: 2;
    /* Navigation displayed above header */
}

/* Navigation menu: hide links */
.navigation a {
    display: none;
}

.open a {
    display: block;
}

#menu {
    z-index: 3;
    /* menu button displayed above navigation */
}

#menu span {
    display: block;
    width: 1.8rem;
    height: 0.6rem;
    background-color: var(--secondary-color);
    border-radius: 5px;
    transition: all 0.3s ease;
}

#menu:hover span {
    background-color: var(--accent1-color);
}

/* Burger bar: styling */
.topbar,
.midbar,
.btmbar {
    content: '';
    display: block;
    width: 1.8rem;
    height: 0.3rem;
    background-color: var(--primary-color);
    border-radius: 5px;
}

.topbar {
    margin-bottom: 0.3rem;
}

.btmbar {
    margin-top: 0.3rem;
}

/* Burger bar: animation */
#menu.open .topbar {
    transform: rotate(45deg);
    position: relative;
    top: 10px;
}

#menu.open .midbar {
    background-color: transparent;
}

#menu.open .btmbar {
    transform: rotate(-45deg);
    position: relative;
    top: -10px;
}

main {
    width: 100%;
    max-width: 43.75rem;
    margin: 0 auto;
    padding: 0;
}

/* Hangarau navigation links [div] */
.hangarau-nav {
    position: sticky;
    top: 0;
    background-color: var(--accent2-color);
    z-index: 5;
    padding: 1rem;
    width: 100%;
    max-width: 75rem;
    margin: 0 auto;
}

.hangarau-nav ul {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    list-style: none;
}

.hangarau-nav a {
    display: block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    text-align: right;
    letter-spacing: 0.05em;
    padding: 0.2rem;
}

.hangarau-nav a:hover {
    color: var(--accent3-color);
}

.sticky-div {
    /* Safari css */
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1000;
    /* Display on top */
    padding: 0.5rem 1.1rem;
    display: flex;
    justify-content: flex-end;
    /* Align items horizontally */
    align-items: flex-start;
    /* Align items vertically */
}

#main-hyperlinks {
    display: block;
    /* Initially shows hyperlink content */
}

#main-hyperlinks.hide {
    display: none;
    /* Collapses content on 'click' */
}

#toggle-button {
    background-color: var(--accent2-color);
    color: var(--secondary-color);
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 1rem;
}

#toggle-button:hover {
    color: var(--accent1-color)
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80%, 1fr));
    gap: 1.8rem;
    padding: 1rem;
    background-color: var(--accent3-color);
}

figure {
    margin: 0 0 1rem;
    padding: 0;
    background-color: var(--accent3-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

figure:hover {
    transform: translateY(-5px);
}

figure h3 {
    padding: 0.4rem;
    margin-top: 1.1rem;
}

figure a {
    text-decoration: none;
    color: var(--secondary-color);
    font-family: var(--paragraph-font);
    font-size: 1rem;
}

figure a:hover {
    color: var(--primary-color);
    font-weight: 450;
}


.index a {
    line-height: 1rem;
    padding: 0.7rem 2rem;
}

figure img {
    width: 100%;
    height: auto;
    display: block;
}

figcaption {
    padding: 0.5rem;
    font-family: var(--paragraph-font);
    font-size: 1rem;
    color: var(--primary-color);
    text-align: left;
    position: relative;
}

figcaption h4 {
    color: var(--primary-color);
}

figcaption p {
    font-size: 1rem;
}

.caption-full {
    display: none;
}

.caption-full.show {
    display: block;
}

.toggle-caption {
    background: none;
    border: none;
    color: var(--secondary-color);
    cursor: pointer;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.toggle-caption:hover {
    color: var(--accent1-color)
}

.caption-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
}

.caption-controls .toggle-caption {
    margin: 0;
}

.caption-controls .back-link {
    font-size: 0.9rem;
    color: var(--secondary-color);
    text-decoration: none;
}

.caption-controls .back-link:hover {
    color: var(--accent1-color);
    text-decoration: underline;
}

#mapImg {
    width: 100%;
    height: auto;
}

/* Ensure the image is responsive */
.responsive-image {
    max-width: 100%;
    height: auto;
    display: block;
    /* Prevents inline spacing */
}

.thumb-image {
    max-width: 12.5rem;
    height: auto;
    display: block;
}

.custom-details li {
    font-family: var(--paragraph-font);
    font-size: 1rem;
}

.custom-details summary {
    cursor: pointer;
    padding: 0.5em 1em;
    font-weight: 500;
    color: var(--secondary-color);
}

.custom-details[open] summary {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.custom-details summary::after {
    content: "▸";
    color: var(--secondary-color);
    font-size: 1em;
    position: absolute;
    right: 1em;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.2s ease;
}

.custom-details[open] summary::after {
    transform: translateY(-50%) rotate(90deg);
}


#curriculum {
    background-color: var(--accent3-color);
    padding: 0.5rem 1.5rem;
    margin: 1rem 0;
}

#research {
    background-color: var(--accent3-color);
    padding: 0.5rem 1.5rem;
    margin: 1rem 0;
}

.image-caption {
    font-size: 0.9rem;
    color: #555;
    margin-top: 4px;
    text-align: center;
}

figure {
    max-width: 25rem;
}





@media (max-width: 48rem) {

    .container,
    .content,
    main,
    #app {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .multi-column {
        column-count: 1;
        /* stack into one column on small screens */
    }
}

/* --------------------------------------------------------
OPTIONS FOR REVIEW
-------------------------------------------------------- */

/* 
.info-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
    background-color: var(--accent3-color);
}

.gallery-item {
    background-color: var(--primary-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

.gallery-text {
    padding: 1rem;
    color: var(--accent3-color);
}

.gallery-text h3 {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.gallery-text p {
    font-family: var(--paragraph-font);
    font-size: 1rem;
    line-height: 1.5;
} */






/* POP UP INFO GALLERY Gallery styles (same as before) */

/* .popup {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.popup-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 8px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
} */





/* EXPAND/COLLAPSE GALLERY */
/* Gallery styles (same as before) */

/* .hidden-content {
    display: none;
}

.hidden-content.show {
    display: block;
} */