/* ── Google Font Import ── */
@import url('https://fonts.googleapis.com/css2?family=Stack+Sans+Headline:wght@400;700&display=swap');

.stack-sans-headline {
  font-family: "Stack Sans Headline", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

/* ── Skip to Content ── */
.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  background-color: #4a6fa5;
  color: #ffffff !important;
  font-family: "Stack Sans Headline", sans-serif;
  font-optical-sizing: auto;
  font-size: .85em;
  font-weight: normal;
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  z-index: 9999;
  transition: top 0.2s ease;
}
.skip-link:focus,
.skip-link:focus-visible {
  top: 10px;
  color: #ffffff !important;
}

/* ── Base ── */
html {
  scroll-behavior: auto;
}
 
body {
  font-family: "Stack Sans Headline", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-size: 16px;
  margin: 0;
  padding: 0;
  position: relative;
}
 
/* ── Nav ── */
nav {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #034f84;
  padding: 0 48px;
  height: 60px;
  margin-bottom: 30px;
}
nav a {
  padding: 0 20px;
  color: #FFFFFF;
  font-weight: normal;
  text-decoration: none;
}
nav a:link, nav a:visited, nav a:hover { color: #FFFFFF; }
a:visited { color: #FFFFFF; }
 
/* ── Headings ── */
h1 {
  font-family: "Stack Sans Headline", sans-serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
  font-size: 48px;
  color: #034f84;
  text-align: center;
}
h2 {
  font-family: "Stack Sans Headline", sans-serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
  font-size: 32px;
  color: #1a5fa8;
  margin-top: 0;
}
 
/* ── Flex containers (bio sections) ── */
.container, .container2 {
  display: flex;
  align-items: stretch;
  gap: 40px;
  padding: 30px 40px;
  text-align: left;
}
.container  { flex-direction: row; }
.container2 { flex-direction: row; }
 
.text, .text2 {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
 
.image, .image2 {
  flex-shrink: 0;
  max-width: 400px;
}
.image img, .image2 img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  object-position: center;
}

/* home page containers use media-box directly */
.container .media-box,
.container2 .media-box {
  flex-shrink: 0;
  width: 400px;
  max-height: 500px;
}

.container .media-box img,
.container2 .media-box img {
  max-height: 460px;
  object-fit: cover;
  object-position: center;
}

.resume-media-box {
  flex-shrink: 0;
  width: 300px;
}
 
/* ── Resume section ── */
.resume-container {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 30px 40px;
}
.resume-image {
  flex-shrink: 0;
  max-width: 300px;
}
.resume-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
#resumeheader {
  font-size: 2em;
}
 
/* Download button */
.download-btn {
  display: inline-block;
  align-self: center;
  margin-top: 20px;
  padding: 8px 16px;
  background-color: #4a6fa5;
  color: #ffffff;
  font-family: "Stack Sans Headline", sans-serif; font-optical-sizing: auto;
  font-size: .85em;
  font-weight: normal;
  text-decoration: none;
  border-radius: 8px;
  border: none;
}
.download-btn:hover {
  background-color: #034f84;
  color: #ffffff;
}
 
/* ── Contact section ── */
#contact {
  background-color: #1a2234;
  padding: 60px 40px;
  margin-top: 60px;
  scroll-margin-top: 70px;
}
.contact-container {
  display: flex;
  gap: 60px;
  align-items: flex-start;
  max-width: 1100px;
  margin: 0 auto;
}
.contact-left {
  flex: 1;
  color: #ccd6f6;
  font-family: "Stack Sans Headline", sans-serif; font-optical-sizing: auto;
}
.contact-left h2 {
  color: #ffffff;
  font-size: 2.5em;
  margin-bottom: 15px;
}
.contact-left p {
  font-family: "Stack Sans Headline", sans-serif; font-optical-sizing: auto;
  font-size: 16px;
  color: #a0aec0;
  line-height: 1.8;
}
.contact-left a {
  color: #a0aec0;
}
.contact-left a:hover {
  color: #ffffff;
}
.contact-label {
  font-family: "Stack Sans Headline", sans-serif; font-optical-sizing: auto;
  font-size: 0.75em;
  letter-spacing: 2px;
  color: #ffffff !important;
  margin-top: 25px;
  margin-bottom: 4px;
}
.contact-right {
  flex: 2;
  background-color: #f9f7f2;
  border-radius: 12px;
  padding: 40px;
}
.contact-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}
.contact-field {
  display: flex;
  flex-direction: column;
  flex: 1;
  margin-bottom: 20px;
}
.contact-field label {
  font-family: "Stack Sans Headline", sans-serif; font-optical-sizing: auto;
  font-size: 0.9em;
  color: #4a5568;
  margin-bottom: 6px;
}
.contact-field input,
.contact-field textarea {
  font-family: "Stack Sans Headline", sans-serif; font-optical-sizing: auto;
  padding: 14px;
  border: none;
  border-radius: 6px;
  background-color: #eeeae0;
  font-size: 0.95em;
  color: #4a5568;
  outline: none;
}
.contact-field textarea {
  height: 140px;
  resize: vertical;
}
button[type="submit"] {
  display: block;
  margin-left: auto;
  background-color: #4a6fa5;
  color: white;
  border: none;
  padding: 15px 40px;
  border-radius: 8px;
  font-family: "Stack Sans Headline", sans-serif; font-optical-sizing: auto;
  font-size: 1em;
  font-weight: normal;
  cursor: pointer;
}
button[type="submit"]:hover {
  background-color: #034f84;
}
 
/* ── Footer ── */
footer {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #034f84;
  padding: 0 48px;
  height: 60px;
  margin-top: 0;
}
footer a {
  padding: 0 20px;
  color: #FFFFFF;
  font-weight: normal;
  text-decoration: none;
}
footer a:link, footer a:visited, footer a:hover { color: #ffffff; }
 
/* ── Mobile (phone) responsive ── */
@media (max-width: 768px) {
  h1 { font-size: 32px; }
  h2 { font-size: 24px; }
 
  nav, footer {
    flex-wrap: wrap;
    height: auto;
    padding: 12px 20px;
    gap: 8px;
  }
  nav a, footer a { padding: 6px 10px; }
 
  .container, .container2, .resume-container {
    flex-direction: column;
    padding: 20px;
  }
  .container { flex-direction: column; }
  .container2 { flex-direction: column-reverse; }
 
  .image, .image2, .resume-image {
    max-width: 100%;
  }
 
  .contact-container {
    flex-direction: column;
    gap: 30px;
  }
  .contact-row {
    flex-direction: column;
    gap: 0;
  }
  .contact-right {
    padding: 24px;
  }
}
/* ── Social Media Page ── */
.page-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px 60px;
}

.page-intro, .page-outro {
  margin-bottom: 40px;
  line-height: 1.8;
}

.page-outro {
  margin-top: 40px;
}

.media-section {
  margin-bottom: 50px;
}

.media-flex {
  display: flex;
  align-items: center;
  gap: 40px;
}

.media-flex.reverse {
  flex-direction: row-reverse;
}

/* Blue rounded box behind media */
.media-box {
  flex-shrink: 0;
  width: 420px;
  background-color: #034f84;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.media-box img,
.media-box video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.media-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.media-text h2 {
  margin-bottom: 12px;
}

/* ── Slideshow ── */
.slideshow {
  position: relative;
  width: 100%;
}

.slide {
  display: none;
}

.slide.active {
  display: block;
}

.slide img {
  width: 100%;
  border-radius: 8px;
}

.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255,255,255,0.25);
  color: white;
  border: none;
  font-size: 2em;
  padding: 4px 12px;
  cursor: pointer;
  border-radius: 6px;
  line-height: 1;
}

.slide-btn:hover {
  background-color: rgba(255,255,255,0.5);
}

.slide-btn.prev { left: 6px; }
.slide-btn.next { right: 6px; }

.slide-dots {
  text-align: center;
  margin-top: 10px;
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  background-color: rgba(255,255,255,0.4);
  border-radius: 50%;
  margin: 0 4px;
  cursor: pointer;
}

.dot.active {
  background-color: #ffffff;
}

/* ── Responsive for social media page ── */
@media (max-width: 768px) {
  .page-content {
    padding: 0 20px 40px;
  }

  .media-flex,
  .media-flex.reverse {
    flex-direction: column;
  }

  .media-box {
    width: 100%;
  }
}

/* ── Stacked section: heading + text above, media below ── */
.media-section-stacked {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.media-section-stacked h2,
.media-section-stacked p {
  width: 100%;
}

.media-section-stacked .download-btn {
  margin-bottom: 20px;
}

.media-box-centered {
  width: 460px;
  max-width: 100%;
  margin: 0 auto;
}