/* RESET */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #fff;
  color: #333;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}
img {

  width: 100%;        /* allow it to shrink on smaller screens */
  max-width: 1000px;  /* cap the width to 1000px on large screens */
  height: auto;       /* keep aspect ratio */
  display: block;     
  margin: 0 auto; /* center horizontally when narrower than parent */
 
}

/* CONTAINERS */
.main-container {
  max-width: 1430px;
  margin: 0 auto;
  padding: 0 15px;
}

.sticky-wrapper {
  position: sticky;
  top: 0;
  padding-top: 20px;
  padding-bottom: 30px;
  z-index: 1000;
  background: #fff;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  max-width: 1430px;
  margin: 0 auto;
  padding-left: 15px;
  padding-right: 15px;
  position: relative;
}

.name {
  font-size: 28px;
  font-weight: bold;
  text-decoration: none;
  color: #333;
  transition: color 0.2s ease;
}

.name:hover {
  color: #0077cc;
}

.desktop-nav a {
  margin-left: 20px;
  text-decoration: none;
  color: #333;
  transition: color 0.2s ease;
}

.desktop-nav a:hover {
  color: #0077cc;
}

/* Highlight current page in nav */
.desktop-nav a.active {
  color: #3ea8ff;
  text-decoration: underline;
  /* font-weight: bold; */
}

/* DYNAMIC HEADER */
.dynamic-header {
  height: 470px;
  background-size: cover;
  background-position: left;
  border-radius: 5px;
  width: 100%;
  margin-bottom: 20px;
}

/* GALLERY */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-bottom: 40px;
  margin-top: 20px;
}

.gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 5px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery img:hover {
  transform: scale(1.05);
}

/* FOOTER */
footer {
  text-align: center;
  padding: 30px;
  font-size: 14px;
  color: #888;
}

footer .social-icons a {
  margin: 0 10px;
  color: #888;
  font-size: 20px;
  transition: color 0.2s ease;
}

footer .social-icons a:hover {
  color: #0077cc;
}

/* =====================
   MOBILE MENU TOGGLE (IN HEADER)
===================== */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-toggle i {
  font-size: 28px;
  color: #333;
}

/* =====================
   MOBILE MENU (floating panel with fade)
===================== */
.mobile-menu {
  position: fixed;
  top: 112px;
  left: 0;
  right: 0;
  bottom: 0;
  width: auto;
  background: rgba(245, 245, 245, 0.85);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  padding: 30px;
  z-index: 9999;
  display: block;
  opacity: 0;
  pointer-events: none;
  border-radius: 0 0 10px 10px;
  overflow-y: auto;
  transition: opacity 0.3s ease;
}

.mobile-menu.show {
  opacity: 1;
  pointer-events: auto;
}

body.menu-open {
  overflow: hidden;
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
  opacity: 0;
  transition: opacity 0.3s ease 0.15s;
}

.mobile-menu.show .mobile-menu-links {
  opacity: 1;
}

.mobile-menu-links a {
  font-size: 24px;
  font-weight: bold;
  color: #7c8283;
  text-decoration: none;
  line-height: 1.4;
}

.mobile-menu-links a:hover {
  color: #0077cc;
}

.mobile-menu-links a.active {
  color: #3ea8ff;
  text-decoration: underline;
  font-weight: bold;
}

/* LIGHTBOX */
#lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#lightbox.visible {
  opacity: 1;
  pointer-events: all;
}

/* Adjusted Lightbox Transitions */

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  opacity: 0;
  transition: opacity 0.6s ease 0.2s;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  opacity: 0;
  transition: opacity 0.6s ease 0.2s;
}

#lightbox.visible .lightbox-content {
  opacity: 1;
}

#lightbox img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.6s ease 0.2s;
}

#lightbox.visible img {
  opacity: 1;
}

#lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.6s ease 0.2s;
  z-index: 10;
}

#lightbox.visible #lightbox-close {
  opacity: 1;
}

#lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

#lightbox.visible {
  opacity: 1;
  pointer-events: all;
}



#lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

#lightbox.visible {
  opacity: 1;
  pointer-events: all;
}


/* RESPONSIVE */
@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .gallery {
    grid-template-columns: 1fr;
  }
}


/****************************************
   Infographic Section (Updated)
*****************************************/
.infographic-container {
  margin-top: 0px;
  margin-bottom: 0px;
}

/* Each row: text + image side by side */
.infographic-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 70px;
}

/* TEXT STYLES */
.infographic-text {
  max-width: 400px;
  margin-right: 40px;
}
.infographic-text h2 {
  font-size: 26px;
  margin-bottom: 10px;
}
.infographic-text p {
  line-height: 1.6;
  font-size: 16px;
  margin-bottom: 20px;
  max-width: 100%;
}

/* PILL BUTTON – wraps text and is pill-shaped */
.info-button {
  background: #0077cc;
  color: #fff;
  font-size: 16px;
  padding: 8px 20px;
  border: none;
  border-radius: 9999px; /* pill shape */
  cursor: pointer;
  transition: background 0.3s ease;
  display: inline-block; /* wraps only its text */
}
.info-button:hover {
  background: #005da3;
}

/* BOX FOR THE IMAGE – no teal background */
.infographic-box {
  width: auto;
  max-width: 930px; 
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  margin: 0 auto; /* center if narrower than parent */
  text-align: center;
}

/* The image – center + responsive */
.infographic-box img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  transition: filter 0.3s ease;
}

/* WRAPPER FOR TEXT + IMAGE
   Entire row is clickable. */
.infographic-card-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  color: inherit;
  gap: 30px;
  transition: transform 0.2s ease;
}

/* no more: .infographic-card-link:hover img { filter: brightness(70%); } */

/* Instead, limit the dim effect to hovering the image area */
.infographic-card-link:hover img {
  filter: none !important;
}

.infographic-box:hover img {
  filter: brightness(70%) !important;
}


/* Responsive – stack vertically on mobile */
@media (max-width: 760px) {
  .infographic-card-link {
    flex-direction: column;
    align-items: flex-start;
  }

  .infographic-text {
    order: -1; /* Force text to come before image on mobile */
    max-width: 100%;
    margin-right: 0;
  }

  .infographic-box {
    width: 100%;
    margin-bottom: 15px;
  }
}



/* Medium screens – auto scale the .infographic-box if less than 930px wide */
@media (max-width: 1200px) {
  .infographic-box {
    width: 100%;
    max-width: 930px;
  }
}



/* =====================
   VIDEO
===================== */

/* Outer wrapper: Fixed max width on large screens, center horizontally */
.video-wrapper {
  max-width: 1030px;
  margin: 0 auto;
  /* Add 15px of left/right padding */
  padding: 0 15px;
  box-sizing: border-box; /* ensures padding doesn't exceed the max-width */
}

.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  margin-top: 20px; /* optional spacing above video */
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}



/* =====================
   Web embed
===================== */

/* Base wrapper style */
.embed-wrapper {
  width: 1400px;
  margin: 40px auto;
  overflow: hidden;
  min-height: 500px; /* Gives iframe something to inherit */
}

/* Iframe styling */
.embed-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  min-height: 500px; /* Ensures visibility */
}

/* Specific heights */
.embed-nursing {
  height: 3600px;
}

.embed-msu {
  height: 750px; /* or whatever height you want */
}

/* Mobile: scale proportionally */
@media (max-width: 768px) {
  .embed-wrapper {
    width: 100%;
    padding: 0 15px;
  }

  .embed-nursing {
    height: auto;
    aspect-ratio: 1400 / 3600;
  }

  .embed-msu {
    height: auto;
    aspect-ratio: 1400 / 2200;
  }
}






/* =====================
About Page
===================== */
.random-header {
  height: 470px;
  background-size: cover;
  background-position: center;
  border-radius: 5px;
  width: 100%;
  margin-bottom: 20px;
  background-position: center;
}

@media (max-width: 768px) {
  .random-header,
  #aboutHeader {
    background-position: left center; /* Aligns image to the left */
  }
}



/* =====================
About Page
===================== */
.about-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center; /* ⬅ Center both sides */
  gap: 40px;
  margin: 60px 0;
}

.about-text {
  flex: 1 1 500px;
  max-width: 600px;
}

.about-text h2 {
  font-size: 36px;
  margin-bottom: 20px;
}

.about-text p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.about-image {
  flex: 1 1 300px;
  max-width: 300px;
  display: flex;
  justify-content: center;
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: 50%;         /*  Make it a circle */
  object-fit: cover;
  aspect-ratio: 1 / 1;        /* Keeps it perfectly square before the circle mask */
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Responsive: stack vertically, image BELOW text, keep left-aligned */
@media (max-width: 768px) {
  .about-section {
    flex-direction: column;
    align-items: flex-start;   /* ⬅ Keep left-aligned */
    text-align: left;
  }

  .about-text, .about-image {
    max-width: 100%;
  }

  .about-image {
    order: 1;                  /* ⬅ Moves image BELOW text */
    margin-top: 20px;
    align-self: center;        /* ⬅ Image is centered visually */
  }
}






/* =====================
   Contact Section
===================== */
.contact-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* Centers everything */
  gap: 40px;
  margin: 60px auto 0;
  padding-top: 40px;
  border-top: 1px solid #eee;
  max-width: 1000px; /* Restrict total width */
}

.contact-intro {
  flex: 1 1 400px;
  max-width: 460px;
}

.contact-intro h3 {
  font-size: 24px;
  margin-bottom: 10px;
}

.contact-intro p {
   font-size: 18px;
  line-height: 1.6;
  margin-bottom: 20px;
}
}

.resume-link {
  display: inline-block;
  margin-top: 10px;
  font-weight: bold;
  color: #0077cc;
  text-decoration: none;
}

.resume-link:hover {
  text-decoration: underline;
}

.contact-form {
  flex: 1 1 400px;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  font-size: 16px;
  border-radius: 4px;
}

.contact-form button {
  width: fit-content;
  padding: 12px 20px;
  font-size: 16px;
  border: 1px solid #333;
  background: transparent;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-form button:hover {
  background: #333;
  color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
  .contact-section {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }

  .contact-intro,
  .contact-form {
    max-width: 100%;
  }
}


/* ==========================
   TEMP STYLE TEST SECTION
========================== */
.test-area {
  background: #ff0077;
  color: #fff;
  padding: 40px 20px;
  text-align: center;
  font-size: 18px;
}

.test-area h2 {
  margin-top: 0;
  font-size: 28px;
}
