
@font-face {
  font-family: 'Alexandria';
  src: url('fonts/Alexandria-Regular.ttf') format('truetype');
  font-weight: 400;
}

@font-face {
  font-family: 'Alexandria';
  src: url('fonts/Alexandria-Bold.ttf') format('truetype');
  font-weight: 700;
}

/* ===== Global Styles ===== */
body {
  font-family: 'Montserrat', sans-serif;
  background-color: white;
  color: #333;
  margin: 0;
  padding: 0;
}

a {
  color: black;
  text-decoration: none;
}

a:hover {
  text-decoration: bold;
  color: #ffcc00;
}
  
header {
  position: relative;
  width: 100%;
  height: 35vh;
  overflow: hidden;
  margin: 0;
  padding: 0;

  display: flex;
  justify-content: center;
  align-items: flex-end;
}

header img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* fills width, slight crop if needed */
  object-position: center top; /* adjust focus: top/middle/bottom */
}

header::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.5), rgba(0,0,0,0));
  z-index: 1;
  pointer-events: none;
}



/* ===== Responsive Navigation ===== */
/* Default nav */
nav {
  background: white;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  height: 70px;
  transition: height 0.3s ease;
}

/* Responsive left/right padding for the navbar container */
.nav-container {
  padding-left: clamp(15px, 5vw, 60px);
  padding-right: clamp(15px, 5vw, 60px);
}

nav.shrink .nav-container {
  height: 50px;
}

.logo {
  font-family: 'Alexandria', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 5 px;
  color: black;
  opacity: 1;
  transition: font-size 0.3s ease;
}

nav.shrink .logo {
  font-size: 1rem;
}

.nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 5px;
}

.nav-links li a {
  text-decoration: none;
  color: black;
  font-family: 'Alexandria', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  transition: padding 0.3s ease, color 0.3s ease;
}

.nav-links li a.active {
  color: #ffcc00;
  border-bottom: 2px solid #ffcc00;
  padding-bottom: 2px;
}

/* Mobile menu */
.menu-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
}

@media(max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 60px;
    right: 0;
    width: 200px;
    background: white;
    flex-direction: column;
    align-items: flex-start;
    padding: 10px;
    display: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links li {
    width: 100%;
    padding: 10px 0;
  }

  .nav-links li a {
    width: 100%;
    padding-left: 10px;
  }
}





/* ===== Section Styling ===== */
section {
  padding: 80px 20px;
  margin: 0 auto;
  border-bottom: 1px solid #eee;
  text-align: center;
}

section:nth-of-type(even) {
  background: #f9f9f9;
  margin: 0;
}

section h2 {
  text-align: left;
  font-family: 'Alexandria', sans-serif;
  font-size: 2em;
  margin-bottom: 40px;
  letter-spacing: 1px;
  border-bottom: 2px solid #ddd;
  display: inline-block;
  padding-bottom: 5px;
}

section + section {
  margin-top: 60px;
}

/* ===== About Section ===== */
#about p {
  font-size: 0.8em;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

/* ===== Clips Grid Styling ===== */
.clips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.clip {
  background: white;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: left;
}

.clip:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Thumbnail container for uniform size */
.clip-thumb {
  width: 100%;
  max-width: 320px;
  height: 200px;
  margin: 0 auto 12px;
  overflow: hidden;
  border-radius: 6px;
}

.clip-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* Apply only to Data Analysis & NYT collections */
.data-analysis .clip-thumb,
.nyt-covid .clip-thumb {
  object-fit: contain; /* Prevent cropping */
  background-color: #fff; /* optional: adds a background for empty space */
  padding: 5px; /* optional: gives space if contained image doesn’t fill */
  box-sizing: border-box;
}

.data-analysis .clip-thumb img,
.nyt-covid .clip-thumb img {
  width: 100%;
  height: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Clip titles & text */
.clip h3 {
  font-family: 'Alexandria', sans-serif;
  font-size: 1em;
  margin: 8px 0 6px 0;
  color: black;
}

.clip p {
  font-size: 0.85em;
  line-height: 1.4;
  color: #555;
  margin: 0;
}

/* Awards section responsiveness */
#awards .awards-list {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 5px;
  
}
#awards h3 {
  font-family: 'Montserrat', sans-serif;
  text-align: left;
  font-size: 1em;
  font-weight: bold;
  margin: 8px 0 6px 0;
  color: black;
}

#awards p {
  font-size: 0.75em;
  line-height: 1.25;
  text-align: left;
}

/* Mobile tweaks */
@media (max-width: 600px) {
  #awards p {
    font-size: 0.95em;  /* slightly bigger for legibility */
    line-height: 1.5;
  }

  #awards .awards-list {
    padding: 0 5px;
    text-align: left;/* less cramped margins */
  }
  
  #awards p + p {
    margin-top: 0.15em; /* consistent spacing between lines */
  }
  
  #awards b {
    display: block;     /* put category titles on their own line */
    margin-top: 1em;
    font-size:1.25em;
    font-weight: 400;
  }
}

/* ===== Contact Section ===== */
#contact p {
  text-align: center;
  font-size: 1em;
  margin-bottom: 10px;
}

/* ===== Footer ===== */
footer {
  text-align: center;
  padding: 30px;
  background: white;
  color: #555;
  margin-top: 60px;
  font-size: 0.8em;
  border-top: 1px solid #eee;
}

/* ===== Responsive Adjustments ===== */
@media(max-width: 768px) {
  header h1 {
    font-size: 2em;
  }
  section {
    padding: 60px 15px;
  }
  section h2 {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .clips {
    gap: 15px;
  }
  .clip {
    padding: 12px;
  }
  .clip-thumb {
    max-width: 100%;
    height: 160px;
  }
  #about p {
    font-size: 0.9em;
  }
}
