/* ------------------------------
   RESET & GLOBAL BOX MODEL
-------------------------------- */
* {
  margin: 0;
  padding: 0;
}

html {
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: inherit;
}

/* ------------------------------
   FONTS
-------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;700&family=Work+Sans:wght@400;600&display=swap');

/* Font variables for easy tweaking */
:root {
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Work Sans', Helvetica, Arial, sans-serif;

  --color-blue: #003262;
  --color-gold: #FDB515;
  --color-gray: #3B3B3B;
  --color-light: #F5F5F5;
  --color-fog: #D0D3D4;
}

/* ------------------------------
   GRID SYSTEM
-------------------------------- */
.grid {
  display: grid;
  gap: 40px;
  grid-template-columns: repeat(12, 1fr);
}

@media (max-width: 370px) {
  .grid-sm {
    column-gap: 0;
  }
}

/* Column utilities */
[class^="col-"] {
  width: 100%;
}

.col-12, .col-sm-12, .col-h-12 { grid-column: span 12; }
.col-9  { grid-column: span 9; }
.col-8  { grid-column: span 8; }
.col-8c { grid-column: span 8; text-align: center; }
.col-6  { grid-column: span 6; }
.col-6c { grid-column: span 6; text-align: center; }
.col-4  { grid-column: span 4; }
.col-4c { grid-column: span 4; text-align: end; place-items: end; }
.col-4s { grid-column: span 4; text-align: start; place-items: end; }
.col-3  { grid-column: span 3; }
.col-2  { grid-column: span 2; }

.col-h-12 {
  background-image: url("images/sunset 2.jpeg");
  background-size: cover;
  background-position: bottom;
}

/* ------------------------------
   BODY & LAYOUT
-------------------------------- */
body {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  font-family: var(--font-sans);
  color: var(--color-gray);
  background-color: var(--color-light);
  line-height: 1.6;
}

header {
  width: 100%;
  display: flex;
  justify-content: center;
  background-image: url("background.jpeg");
  background-size: cover;
  background-position: center;
}

header::after {
  content: '';
  display: table;
  clear: both;
}

/* ------------------------------
   TYPOGRAPHY
-------------------------------- */
.name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 38px;
  color: var(--color-blue);
  float: left;
  padding: 20px;
  letter-spacing: 0.5px;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--color-blue);
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.4rem; }

.section {
  width: 100%;
  padding: 2em 0;
}

.section h2,
.section h3,
.section h4 {
  margin-bottom: 1em;
}

.section > p {
  margin-bottom: 1em;
}

/* ------------------------------
   LIST STYLES
-------------------------------- */
ul.un,
.teaching > ul,
.research > ul,
.activities > ul {
  list-style: none;
  padding: 0;
}

.teaching > ul > li,
.activities > ul > li:not(:last-child),
.resources > ul > li {
  list-style: none;
  margin-bottom: 1em;
}

.resources > ul > li {
  font-size: 15px;
  margin-bottom: 2em;
}

/* ------------------------------
   NAVIGATION
-------------------------------- */
.container {
  width: 100%;
  margin: 0 auto;
}

nav {
  float: right;
  margin-right: 20px;
}

nav ul {
  list-style: none;
}

nav li {
  display: inline-block;
  margin-left: 40px;
  padding-top: 32px;
  position: relative;
}

nav a {
  color: var(--color-blue);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-sans);
  letter-spacing: 0.8px;
  transition: color 0.25s ease-in-out;
}

nav a:hover {
  color: var(--color-gold);
}

nav a::before {
  content: '';
  display: block;
  height: 4px;
  background-color: var(--color-gold);
  position: absolute;
  top: 0;
  width: 0%;
  transition: width 0.25s ease-in-out;
}

nav a:hover::before {
  width: 100%;
}

/* ------------------------------
   MEDIA & CONTENT ELEMENTS
-------------------------------- */
img {
  object-fit: cover;
  width: 100%;
  border-radius: 8px;
}

.center {
  display: block;
  margin: 0 auto;
  width: 50%;
}

.centered-text {
  display: grid;
  place-items: center;
  height: 200px;
}

/* ------------------------------
   COLLAPSIBLE SECTION
-------------------------------- */
.collapsible {
  cursor: pointer;
  padding: 18px;
  width: 100%;
  border: none;
  background: var(--color-blue);
  color: white;
  font-family: var(--font-sans);
  font-weight: 600;
  text-align: left;
  outline: none;
  border-radius: 6px;
}

.collapsible:hover,
.active {
  background-color: var(--color-gold);
  color: var(--color-blue);
}

.content {
  padding: 0 18px;
  display: none;
  overflow: hidden;
  background-color: var(--color-fog);
  border-radius: 0 0 6px 6px;
}

/* ------------------------------
   TABLES
-------------------------------- */
table {
  border-spacing: 2px;
  border-collapse: separate;
  width: 100%;
}

th, td {
  background-color: #eaf1f8;
  padding: 8px;
  font-size: 0.95rem;
}

th {
  background-color: var(--color-light);
  color: var(--color-blue);
  font-weight: 600;
}

/* ------------------------------
   LINKS
-------------------------------- */
a:link {
  color: var(--color-gold);
  text-decoration: none;
}

a:visited {
  color: var(--color-blue);
  text-decoration: none;
}

/* ------------------------------
   MISC
-------------------------------- */
.endive {
  height: 5%;
}
