/* Imports */
@import url("https://fonts.googleapis.com/css2?family=Lato:wght@400;700;900&family=Mr+Dafoe&display=swap");

/* Root and Reset */
:root {
  --silver: #c1c1c1;
  --primary-teal: #00a896;
}

html { box-sizing: border-box; }
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "Lato", sans-serif;
  display: grid;
  place-items: center;
  color: #3d3d3d;
  background-color: #ffffff;
  background-image: url("https://www.transparenttextures.com/patterns/first-aid-kit.png");
  overflow-x: hidden;
}

a { font-weight: bold; text-decoration: none; color: inherit; }
ul { list-style: none; }

.navbar {
  position: relative;
  z-index: 10; 
}
/* ======================================== Master Container ======================================== */
.master-container {
	
  max-width: 2060px;
  width: 100%;
}

/* ======================================== Main Header ======================================== */
.main-header {
  width: 100%;
  display: grid;
}

.main-header ul { list-style-type: none; }

.search-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1em;
}

/* Logo/Topnav area (moves entire circled group) */
.topnav {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 6em; /* This value has been changed from 5em to 10em */
  transform: translateX(10px); /* nudge whole block right */
  transition: transform 120ms ease;
  /* removed margin-right hack */
}

.logo {
  min-width: 0;
  padding: 1em;
  display: grid;
  place-items: center;
  color: var(--primary-teal);
  text-align: center;
}

.logo h1 {
  font-family: "Mr Dafoe", sans-serif;
  font-size: 5em;
  color: black;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
}

.logo p {
  font-weight: bold;
  font-size: 1.2rem;
}

/* Butterfly/logo image */
.ms-logo img {
  height: 150px;
  width: auto;
  /* removed previous translateX to avoid double shift */
}

/* ======================================== Navigation Bar ======================================== */
.navbar {
  display: flex;
  align-items: center;
  margin: 0 auto;
  border-top: 1px solid var(--silver);
  height: 60px;
  width: 800px;
}

.navbar ul {
  display: flex;
  margin: 0 auto;
  padding: 0;
}

.navbar li { margin: 0 10px; }

.navbar a {
  font-size: 0.9rem;
  text-transform: uppercase;
  color: #848484;
  cursor: pointer;
}

.navbar a:hover { color: var(--primary-teal); }
.navbar a.active { color: var(--primary-teal); pointer-events: none; }

/* ======================================== Page Content Container ======================================== */
.page-content-container {
  display: flex;
  justify-content: center;
  margin-top: -8em; /* Changed from -5em to move it up */
  padding: 1em 0;
  min-height: 500px;
  width: 100%;
}

/* ======================================== Main Column ======================================== */
main {
  width: 100%;
  max-width: 3500px;
  padding: 0 1em;
}

.content-box-container {
  border: none; /* Removed the border as requested */
  margin-bottom: 10px;
  background-color: transparent;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px;
}

.content-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  flex-grow: 1;
  border: none; /* Removed the border as requested */
  padding: 20px;
  margin-left: 50px; /* Adjust this value to control the distance */
}

.main-heading {
  font-size: 3em;
  font-weight: bold;
  margin-bottom: 20px;
}

.sub-text {
  font-size: 1.2em;
  margin-bottom: 10px;
}

/* ===== STYLES FOR LOGOS INSIDE CONTENT-LEFT ===== */
.content-left .content-middle-logos {
  display: flex;
  flex-direction: row; /* Align logos horizontally */
  gap: 25px; /* Space between logos */
  margin-top: 30px; /* Space above the logos */
  padding: 0;
  align-self: flex-start; /* Align with the text above */
}

.content-left .content-middle-logos img {
  width: 100px; /* Adjust size as needed */
  height: auto;
}
/* ===== END LOGO STYLES ===== */

.content-right {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  border: none; /* Removed the border as requested */
}

.content-logo {
  height: 600px; /* Adjust height as needed */
  width: auto;
  border-radius: 50%; /* Existing property to make the image circular */
}

.text-gradient-header {
  background: linear-gradient(to bottom, #016764, #005958, #014848, #00312F, #001E1E);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-fill-color: transparent;
  display: inline-block;
}

.content-box h3 {
  color: #3d3d3d;
  margin-bottom: 10px;
  font-size: 1.5rem;
}

/* ======================================== Comments ======================================== */
.comments { margin: 1em 0 0; }

.comments ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  grid-gap: 20px;
}

.comment-card {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--silver);
  border-radius: 5px;
  background-color: transparent;
}

.comment-card > div {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
}

.comment-card img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 10px;
}

.comment-card p strong { font-size: 0.9rem; }

/* ======================================== Footer (Transparent) ======================================== */
.footer-transparent {
  text-align: center;
  padding: 0em;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #848484;
  font-size: 0.95rem;
  font-weight: bold;
  margin-top: -30px;
}

.footer-transparent small {
  display: block;
  font-weight: 700;
}

/* ======================================== Media Queries ======================================== */
@media (max-width: 768px) {
  .search-bar { gap: 10px; }
  .topnav { justify-content: center; }
  .navbar ul {
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 10px;
  }
  .navbar li { margin: 5px; }
  main { padding: 0 10px; }
  .comments ul { grid-template-columns: 1fr; }
  .content-box-container {
    flex-direction: column;
    padding: 20px;
  }
  .content-left {
    align-items: center;
    text-align: center;
    margin-left: 0; /* Reset margin for mobile */
  }
  
  /* ===== MOBILE STYLES FOR LOGOS ===== */
  .content-left .content-middle-logos {
    flex-direction: row; 
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    align-self: center; /* Center them on mobile */
  }

  .content-left .content-middle-logos img {
    width: 60px; /* Make them smaller on mobile */
  }
  /* ===== END MOBILE LOGO STYLES ===== */
  
  .content-right {
    margin-top: 20px;
  }
}

@media (max-width: 480px) {
  .logo h1 { font-size: 3em; }
  .logo p { font-size: 1rem; }
  .topnav { transform: translateX(4px); } /* smaller nudge on phones */
}