/* -------------------- RESET -------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.site-header {
  width: 100%;
  background-color: #ff6600;
  color: white;
  font-family: Arial, sans-serif;
}

/* -------------------- TOP ROW -------------------- */
.header-top {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  align-items: center;
  padding: 1px 1px;
}

.top-left {
  display: flex;
  align-items: center;
  gap: 4px;
}

.logo {
  height: 50px;
  width: auto;
}

.logo-text {
  font-size: 1.3rem;
  font-weight: bold;
}

.top-center {
  text-align: center;
}

.top-center h1 {
  font-size: 1.8rem;
  margin-bottom: 0px;
}

.top-center h2 {
  font-size: 1.2rem;
  font-weight: normal;
}

.top-right {
  text-align: right;
  font-size: .8rem;
}

/* -------------------- BOTTOM ROW -------------------- */
.header-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr; /* left: contact, right: editors-desk */
  padding: 1px 1px;
  align-items: center;
}

/* -------------------- DESK IMAGES -------------------- */
.header-bottom .desk-img {
  width: 100px;       /* exact width for left & right */
  height: auto;
  display: block;
  margin: 2px 0;      /* tiny gap above/below text */
  max-width: none;
}

/* -------------------- BOTTOM LEFT -------------------- */
.bottom-left {
  display: flex;
  flex-direction: column;
  gap: 2px;           /* small vertical spacing */
  padding-left: 30%;  /* shift right */
  font-size: 0.7rem;
}

.bottom-left a {
  font-size: inherit;
  line-height: 1;
  margin: 0;
  padding: 0;
  color: white;
  text-decoration: none;
}

/* -------------------- BOTTOM RIGHT -------------------- */
.bottom-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-self: end;
  padding-right: 30%; 
  margin: 10px 0;
}

.writers-text,
.meet-text {
  font-size: .8rem;
  line-height: 1;
}

/* -------------------- MEDIA QUERIES FOR RESPONSIVENESS -------------------- */
@media screen and (max-width: 1024px) {
  .header-top {
    grid-template-columns: 1fr 2fr 1fr;
  }
  .logo {
    height: 40px;
  }
  .logo-text {
    font-size: 1.1rem;
  }
  .top-center h1 {
    font-size: 1.5rem;
  }
  .top-center h2 {
    font-size: 1rem;
  }
  .bottom-left,
  .bottom-right {
    padding-left: 20%;
    padding-right: 20%;
  }
  .header-bottom .desk-img {
    width: 80px;
  }
}

@media screen and (max-width: 768px) {
  .header-top {
    grid-template-columns: 1fr 1fr 1fr;
    text-align: center;
  }
  .top-left {
    justify-content: center;
  }
  .bottom-left,
  .bottom-right {
    padding-left: 10%;
    padding-right: 10%;
  }
  .header-bottom {
    grid-template-columns: 1fr;  /* stack left & right vertically */
    row-gap: 10px;
  }
  .header-bottom .desk-img {
    width: 70px;
  }
}

@media screen and (max-width: 480px) {
  .logo {
    height: 35px;
  }
  .logo-text {
    font-size: 1rem;
  }
  .top-center h1 {
    font-size: 1.2rem;
  }
  .top-center h2 {
    font-size: 0.9rem;
  }
  .bottom-left,
  .bottom-right {
    padding-left: 5%;
    padding-right: 5%;
    font-size: 0.6rem;
  }
  .header-bottom .desk-img {
    width: 60px;
  }
  .writers-text,
  .meet-text {
    font-size: 0.7rem;
  }
}

/* -------------------- STACK AND CENTER HEADER ON SMALL SCREENS -------------------- */

@media screen and (max-width: 768px) {
  /* Stack top row vertically */
  .header-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 5px; /* small space between logo, headings, kudos */
  }

  .top-left,
  .top-center,
  .top-right {
    justify-content: center;
    align-items: center;
  }

  /* Stack bottom row vertically */
  .header-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 5px; /* space between bottom-left and bottom-right (if still visible) */
  }

  /* Hide bottom-right on small screens */
  .bottom-right {
    display: none !important;
  }

  /* Center bottom-left content */
  .bottom-left {
    padding-left: 0 !important;
    text-align: center !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Center desk image inside bottom-left */
  .bottom-left .desk-img {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Scale images and text smaller for mobile */
  .logo {
    height: 35px;
  }

  .logo-text {
    font-size: 1rem;
  }

  .top-center h1 {
    font-size: 1.2rem;
  }

  .top-center h2 {
    font-size: 0.9rem;
  }

  .bottom-left {
    font-size: 0.6rem;
  }

  .header-bottom .desk-img {
    width: 60px !important;
  }
}
