body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #1f1f1f;
  color: #f0f0f0;
}

html {
  -webkit-text-size-adjust: 100%;  /* Prevent Safari from enlarging text */
  text-size-adjust: 100%;          /* Standard property for all browsers */
}

.hero {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 45vh;              /* Default for desktop */
  min-height: 300px;
  max-height: 500px;
}

.hero img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(65%);
}

/* ?? MOBILE OVERRIDE */
@media (max-width: 768px) {
  .hero {
    height: 28vh;           /* Shrink hero on smaller screens */
    min-height: 180px;
    max-height: 320px;
  }

  .hero-text h2 {
    font-size: 1.3rem;
  }

  .hero-text p {
    font-size: 0.85rem;
  }
}

header {
  background-color: #2c2c2c;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1 {
  margin: 0;
  font-size: 1.8rem;
}

nav a {
  margin-left: 1.5rem;
  color: #f0f0f0;
  text-decoration: none;
  font-weight: bold;
}

nav a:hover {
  color: #cccccc;
}

/* main {		*/
/*  padding: 2rem;	*/
/*}			*/

footer {
  background-color: #2c2c2c;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  color: #aaa;
}

@media (max-width: 600px) {
  header,
  main,
  footer {
    padding: 1rem;
  }

  nav a {
    margin-left: 0.5rem;
    font-size: 0.9rem;
  }

  header {
    flex-direction: column;
    align-items: flex-start;
  }
}

.page-layout {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 2rem;
}

/* LEFT: Main content takes most of the width */
.main-content {
  flex: 1;
/*  min-width: 300px;*/
  padding: 2rem;
  box-sizing: border-box;
}

/* MIDDLE: Hidden on smaller or portrait screens */
.middle-column {
  width: 18%;
  max-width: 300px;
  min-width: 200px;
  background-color: #2a2a2a;
  border-left: 1px solid #444;
  padding: 1rem;
  box-sizing: border-box;
  display: block;
  position: sticky;
  top: 120px;
}

/* RIGHT: Sidebar is sticky and always visible */
.sidebar {
  width: 18%;
/*  max-width: 300px;*/
/*  min-width: 200px;*/
  padding: 1rem;
  box-sizing: border-box;
  position: sticky;
  top: 120px;
  background-color: #222;
  border-left: 1px solid #ccc;
}

/* === HIDE middle-column on narrower screens === */
@media (max-width: 1100px), (orientation: portrait) {
  .middle-column {
    display: none;
  }
}

@media (orientation: portrait) {
  .page-layout,
  header,
  footer,
  main {
    width: 100%;
    box-sizing: border-box;
  }

  html, body {
    overflow-x: hidden;
  }
}

@media (max-width: 768px) and (orientation: landscape) {
  .sidebar {
    width: 25%;
  }
}

@media (max-width: 768px) and (orientation: portrait) {
  .sidebar {
    width: 40%;
  }
}

.social-icons a {
  text-decoration: none;
  display: inline-block;
  margin: 0 4px;
}

.social-icons img {
  text-decoration: none;
  vertical-align: middle;
  transition: opacity 0.2s;
}

.social-icons img:hover {
  opacity: 0.7;
}