/* ===== Reset & Base Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: rgb(10, 10, 10);
}

a {
  color: rgb(10, 10, 10);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

#logo a {
  text-decoration: none;
}

img {
  max-width: 100%;
}

h1#logo {
  margin: 0;
}

/* ===== Layout ===== */
main {
  margin-top: 50px;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  height: 50px;
  padding: 0 2rem 0 2rem;
  background-color: white;
}

/* ===== Navigation ===== */
nav ul {
  display: flex;
  gap: 1rem;
  margin-top: 8px;
  padding: 0;
}

li {
  list-style: none;
}

li a {
  color: #474747;
}

li[active] {
  text-decoration: underline;
}

/* ===== Sections ===== */
section {
  display: block;
}

#intro {
  width: 100%;
  margin: 0 auto;
}

#intro-text {
  width: 50vw;
  position: absolute;
  bottom: 0;
  right: 3rem;
  padding: 3rem;
  background-color: white;
  font-size: 1rem;
}

.programs {
  background-color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* ===== Carousel ===== */
.carousel {
  position: relative;
  margin: 0 auto;
  width: 100%;
  height: calc(100vh - 50px);
}

.carousel ul {
  margin: 0;
  padding: 0;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 2s ease-in-out;
}

.slide[data-active] {
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.slide p.caption {
  max-width: 45vw;
}

p.caption {
  padding: 0 1rem;
  font-size: 12px;
  color: gray;
}

/* ===== Home Page: Programs ===== */

.content-text {
  padding: 6rem 2rem;
}

.content p,
.content-container p {
  margin-bottom: 1rem;
}

.content-container .caption {
  text-align: center;
}

.content-container {
  padding: 5rem 2rem;
}

.text-container {
  max-width: 75ch;
  margin: 0 auto;
}

.text-container p {
  margin-bottom: 1rem;
}

.contained-image {
  padding: 0 2rem;
  width: fit-content;
  margin: 0 auto;
}

.contained-image img {
  margin: 0 auto;
  max-width: 100%;
}

.contained-image .caption {
  padding: 0;
  text-align: center;
}

.medium-image {
  max-width: 970px;
}

/* ===== Grids ===== */

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  column-gap: 2rem;
}

.grid-2 > * {
  grid-row: 1;
}

.col-2 {
  grid-column: 2;
}

.col-1 {
  grid-column: 1;
}

.programs-container {
  max-width: 55ch;
}

/* ===== Footer ===== */

footer {
  margin-top: 4rem;
  display: flex;
  justify-content: space-between;
  align-items: end;
  padding: 1rem 2rem 2rem 2rem;
}

/* ===== Buttons ===== */
.button-container {
  display: flex;
  justify-content: center;
}

button {
  font-family: "optima-lt-pro", sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.75em 1.5em;
  background: none;
  color: rgb(10, 10, 10);
  border: 2px solid rgb(10, 10, 10);
  cursor: pointer;
  margin: 0 auto;
}

button:hover {
  color: gray;
  border: 2px solid gray;
}

/* ===== Animations ===== */
.fade-in {
  animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
