/* Nav menu icon and label container */
.nav-menu-container {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1001;
  display: flex;
  align-items: center;
}
.nav-menu-label {
  color: white;
  margin-left: 60px;
  font-size: 1.5em;
  font-family: inherit;
  white-space: nowrap;
  line-height: 1;
  position: relative;
  top: -8px;
}
/* General Styles */
body, html {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  font-family: Arial, sans-serif;
  overflow-x: hidden;
}


/* Video banner video portion omitted as requested. Name banner styling remains. */

/* Fixed name banner at the top, full width, not centered vertically */
.hero-space {
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.name-banner {
  color: white;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 18px 36px;
  border-radius: 8px;
  text-align: center;
  width: fit-content;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  z-index: 2;
  margin: 0;
}

/* Mobile styles (screens 767px wide or less) */
@media (max-width: 767px) {
  .name-banner {
    position: absolute; /* Ensure the name banner is positioned correctly */
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%); /* Center the banner */
    padding: 10px;
    width: auto; /* Allow the width to be determined by the content */
    box-sizing: border-box;
  }
}

.content-section {
  background-color: #2a2a2a;
  padding: 20px;
  border-radius: 5px;
  color: white;
  max-width: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 500px auto; /* Create even spacing between sections */
  box-sizing: border-box;
  width: 100%;
  padding-left: 0;
  padding-right: 0;
}



/* Contact Section Styles - unified with content-section */
.contact-section {
  text-align: center;
}
.contact-section h2 {
  margin-bottom: 24px;
}
.contact-info {
  font-size: 18px;
  line-height: 1.7;
}
.contact-info a {
  color: #00aaff;
  text-decoration: underline;
  font-size: 18px;
}
.contact-info a:hover {
  color: #ffaa00;
  text-decoration: none;
}

.igallery-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.main-image-container {
  width: 100%;
  text-align: center;
  margin-bottom: 20px;
}

.main-image {
  width: 80%;
  max-height: 80vh; /* Maximum height is 80% of the viewport height */
  max-width: 600px;  /* Maximum width for ultra-wide displays */
  min-width: 300px;  /* Minimum width for narrow displays */
  object-fit: contain;
  border-radius: 5px;
}

.image-caption {
  margin-top: 10px;
  font-size: 16px;
  color: #333;
}

.thumbnail-slider {
  display: flex;
  align-items: center;
  width: 80%;
  overflow: hidden;
  position: relative;
  padding: 0 60px; /* Ensure there's space for the arrow buttons */
  box-sizing: border-box;
}

.thumbnails {
  display: flex;
  justify-content: flex-start; /* Align thumbnails to the start */
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 10px;
  flex-grow: 1;
  padding: 0 10px; /* Add padding inside the thumbnails container */
}

.thumbnails::-webkit-scrollbar {
  display: none;
}

.thumbnails {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

.thumbnail-image {
  width: 150px; /* Fixed width for each thumbnail */
  height: 100px; /* Fixed height for each thumbnail */
  object-fit: cover;
  border-radius: 5px;
  cursor: pointer;
  /* Ensure no display or visibility properties are causing issues */
  display: block;
  visibility: visible;
}

.arrow {
  background-color: #ccc;
  border: none;
  padding: 10px;
  cursor: pointer;
  font-size: 20px;
  border-radius: 5px;
  position: absolute;
  z-index: 1;
}

.left-arrow {
  left: 0;
  margin-left: 10px;
}

.right-arrow {
  right: 0;
  margin-right: 10px;
}

/*
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-size: cover;
  animation: slideshow 20s infinite;
}

@keyframes slideshow {
  0% { background-image: url('Media/3V5A7574.JPG'); }
  25% { background-image: url('Media/3V5A7672.JPG'); }
  50% { background-image: url('Media/3V5A7900.JPG'); }
  75% { background-image: url('Media/3V5A7678.JPG'); }
  100% { background-image: url('Media/3V5A7859.JPG'); }
}
*/

body {
  background: url('Media/3V5A7859.JPG') no-repeat center 0% fixed;
  background-size: cover;
}

.table-content {
  width: 80%;  /* Default width of the container */
  max-width: 1200px;  /* Maximum width for ultra-wide displays */
  display: flex;  /* Flexbox layout for children */
  flex-direction: column;  /* Arrange children in a column */
  padding: 20px;  /* Add padding on the sides for margins */
  margin: auto;  /* Center the container */
  justify-content: center;  /* Center the content vertically */
}

.table-content .row {
  display: flex;  /* Flexbox layout for the row */
  width: 100%;  /* Full width of the container */
  margin-bottom: 20px;  /* Space between rows */
}

.table-content .column {
  flex: 1;  /* Columns will take up equal space */
  padding: 10px;  /* Padding inside each column */
}

.table-content table {
  width: 100%;  /* Full width of the column */
  border-collapse: collapse;  /* Collapse borders for table */
}

.table-content table td {
  padding: 5px;  /* Padding inside table cells */
  border: 0;  /* Remove default table cell borders */
}

.table-content .row-wide {
  flex-direction: column;  /* Arrange children in a column for wide rows */
}

.table-content .education-row {
  display: flex;
  justify-content: space-between; /* Space the title and links evenly */
  align-items: center; /* Center items vertically */
  width: 100%;
  padding: 10px 0;
}

.table-content .education-row h3 {
  margin: 0; /* Remove default margin */
  flex: 1; /* Allow the title to take up one portion of the space */
}

.table-content .education-links {
  display: flex;
  flex: 2; /* Allow the links to take up two portions of the space */
  justify-content: space-between; /* Space the links evenly */
  gap: 20px; /* Optional: Add a gap between the links */
}

.table-content .education-links p {
  margin: 0;
}

a {
  color: #00aaff; /* Adjust this color code as needed */
  text-decoration: none; /* Optional: Remove underline for cleaner look */
}

a:hover {
  color: #ffaa00; /* Optional: Change color on hover for emphasis */
  text-decoration: underline; /* Optional: Add underline on hover */
}


.content-section h2, .content-section h3 {
  color: white; /* Adjust color as needed */
  text-align: center;
  width: 100%;
}

.work-section {
  width: 100%;  /* Allow full width usage */
  max-width: 100%;  /* Ensure no constraints */
  margin-bottom: 40px;  /* Space between each work section */
}

.work-table-container {
  width: 80%;  /* Default width of the container */
  max-width: 1200px;  /* Maximum width for ultra-wide displays */
  min-width: 300px;  /* Minimum width for narrow displays */
  margin: 0 auto;  /* Center the container */
  background-color: #2a2a2a; /* Same background color as the content box */
  border-radius: 5px;
  padding: 20px;
  box-sizing: border-box;
}

.work-table {
  width: 100%;
  border-collapse: collapse;
  color: white;
}

.work-table th, .work-table td {
  border-bottom: 1px solid #444; /* Only horizontal borders */
  padding: 10px;
  text-align: left;
}

.work-table th h3 {
  margin: 0;  /* Remove default margin from h3 */
  font-size: 1.5em; /* Adjust font size as needed */
}

.gallery-container {
  background-color: #2a2a2a;
  border-radius: 5px;
  color: white;
  width: 100%;
  display: flex;
  justify-content: center; /* Center the .video-gallery horizontally */
  align-items: center; /* Center the .video-gallery vertically */
  margin: 500px auto; /* Create even spacing between sections */
  padding-top: 24px; /* Add padding to the top */
  padding-bottom: 24px; /* Add padding to the bottom */
}


.gallery-container .video-gallery {
  width: 80%;  /* Default width of the container */
  max-width: 1200px;  /* Maximum width for ultra-wide displays */
  min-width: 300px;  /* Minimum width for narrow displays */
  display: flex;
  justify-content: center;
  align-items: flex-start; /* Align items at the top */
  padding-top: 24px;
  gap: 12px;
  margin: 0; /* Ensure no additional margin is applied */
}

.video-gallery h3.video-title {
  line-height: 1.6;
  font-weight: 700;
  font-size: 20px;
  margin: 0; /* Reset margin */
}

.video-gallery .thumbnail {
  height: 120px;
  cursor: pointer;
}

.video-gallery .video {
  position: relative;
}

.video-gallery .video:hover .play-icon {
  opacity: 1;
}

.video-gallery .play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  opacity: 0;
  transition: opacity 400ms ease;
}

.video-gallery .video .play-icon img {
  width: 50px;
  height: 50px;
}

.video-gallery .all-videos {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Default to 2 columns */
  gap: 12px;
  width: 33%; /* Limit the width to 1/3 of the container */
  margin: 0; /* Ensure no additional margin is applied */
}

.video-gallery .thumbnail {
  width: 100%; /* Make sure the thumbnails take the full width of their grid cell */
  height: auto; /* Maintain aspect ratio */
  cursor: pointer;
}

.featured-video {
  flex: 2 1 66%; /* Take up 2/3 of the width */
  max-width: 800px;
  height: auto;
  object-fit: contain; /* Use 'contain' to preserve the aspect ratio */
  margin: 0; /* Ensure no additional margin is applied */
}

.featured-video video {
  width: 100%;
  height: auto; /* Let the height adjust automatically to preserve the aspect ratio */
  object-fit: contain; /* Use 'contain' to maintain the aspect ratio */
  display: block; /* Ensure the video behaves as a block element */
  margin: 0; /* Ensure no additional margin is applied */
}

@media (max-width: 1200px) {
  .gallery-container .video-gallery {
    flex-direction: column;
    align-items: center; /* Ensure the content is centered in the column layout */
    margin: 0 auto; /* Ensure it stays centered */
  }
  .video-gallery .all-videos {
    grid-template-columns: repeat(3, 1fr); /* Use 3 columns below 1200px */
    width: 100%; /* Allow the all-videos to take full width in column layout */
  }
}

.site-footer {
  background-color: #2a2a2a;
  color: white;
  text-align: center;
  padding: 10px 0;
  font-size: 14px;
  position: relative; /* If you want the footer to be at the bottom of the content */
  width: 100%;
}

/* Side Menu */
.side-menu {
  position: fixed;
  bottom: 10px; /* Start from the bottom */
  right: 10px; /* Align to the right */
  display: flex;
  flex-direction: column; /* Change to column for vertical layout */
  align-items: flex-end; /* Align items to the right */
  color: white;
  gap: 15px; /* Adjust gap between buttons */
  z-index: 1000;
  padding: 10px; /* Add padding for aesthetics */
  border-radius: 20px; /* Round the corners */
}

.side-menu a,
.side-menu .nav-btn,
.side-menu .contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; /* Set width */
  height: 40px; /* Set height */
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  overflow: visible;
}


.side-menu .nav-btn {
  width: 100px; /* Set width */
  height: 50px; /* Set height */
}

.side-menu img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: invert(0); /* Ensure no color inversion unless needed */
  transition: transform 0.2s;
}

.side-menu img:hover {
  transform: scale(1.1); /* Slightly enlarge on hover */
}

/* Responsive layout for mobile */
@media (max-width: 767px) {
  /* Reduce font size on mobile */
  body, html {
    font-size: 14px;
  }

  .table-content .row {
    flex-direction: column; /* Stack columns vertically on mobile */
    align-items: center;
  }

  .side-menu img {
    width: 33px; /* Reduce the icon size by 1/3 */
    height: 33px;
  }
}

/* Navigation Icon */

.nav-icon {
  position: fixed;
  top: 10px;
  left: 10px;
  width: 50px;
  height: 50px;
  cursor: pointer;
  z-index: 1000;
  color: white;
}


.nav-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}


/* Hidden Navigation Menu */
.dropdown-nav {
  display: none; /* Initially hidden */
  position: fixed;
  top: 60px; /* Adjust based on the height of the nav icon */
  left: 10px;
  flex-direction: column;
  color: white;
  padding: 10px;
  border-radius: 5px;
  z-index: 1000;
  row-gap: 0px; /* Remove default gap between buttons */
}

.dropdown-nav .nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100px; /* Double the width */
  height: 100px; /* Double the height */
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: white;
}

.dropdown-nav .nav-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Toggle menu visibility */
.dropdown-nav.show {
  display: flex;
}

@media (max-width: 767px) {
  .dropdown-nav {
    row-gap: 0px;
  }
  .dropdown-nav .nav-btn {
    width: 80px; /* Double the previous mobile size */
    height: 80px;
  }
  .nav-icon {
    width: 40px;
    height: 40px;
    left: 10px;
    right: auto;
  }
  .dropdown-nav {
    left: 10px;
    right: auto;
  }
}
