/* ===== Base ===== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

.hlb-body {
  margin: 0;
  padding: 0;
  font-family: 'Droid Serif', serif;
  font-weight: 400;
  font-size: 14px;
  color: #9b9b9b;
  background-color: #eeeeee;
  background-image: url('pattern0.png'); /* put your own pattern here */
  background-position: top center;
  background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Droid Serif', serif;
  font-weight: 400;
  margin: 0 0 0.5em;
}

h1 { font-size: 28px; color: #8a3636; }
h2 { font-size: 24px; color: #666666; }
h3 { font-size: 22px; color: #666666; }
h4 { font-size: 20px; color: #666666; }
h5 { font-size: 18px; color: #666666; }
h6 { font-size: 16px; color: #666666; }

a {
  color: #617c7b;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ===== Layout helpers ===== */

.hlb-shell {
  min-height: 100vh;
}

.hlb-container {
  width: 960px;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 15px;
}

/* ===== Header ===== */

.hlb-header {
    background-image: url('pattern.jpg');
    background-repeat: repeat;          /* usually what you want for a pattern */
    background-position: top center;
    background-color: transparent;      /* optional, ensures no white shows through */
}

.hlb-header-row {
  background-color: #d8f1fa;
  width: 1000px;
  max-width: 100%;
  margin: 0 auto;   /* centers it so pattern shows on the sides */
  padding: 20px 15px;
}


/* Brand block */

.hlb-brand-block {
  max-width: 60%;
}

.hlb-logo {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 78px;
  font-weight: normal;
  color: #626277;
  margin: 0;
  line-height: 1;
}

.hlb-logo a {
  color: inherit;
  text-decoration: none;
}

.hlb-tagline {
  color: #626277;
  font-family: 'Droid Serif', serif;
  font-size: 15px;
  margin: 1px 0 0 0;
  padding: 5px 0 0 3px;
}


/* Social / header actions */

.hlb-header-actions {
  text-align: right;
}

.hlb-social-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hlb-social-label {
  font-size: 12px;
  color: #666666;
}

.hlb-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 2px;
  font-size: 14px;
  font-weight: bold;
  color: #ffffff;
  text-decoration: none;
}

.hlb-social-link--fb { background-color: #375593; }
.hlb-social-link--tw { background-color: #0eb6f6; }
.hlb-social-link--mail { background-color: #666666; }

/* Hero image */

.hlb-hero {
  margin: 0 0 0;
}

.hlb-hero-image {
  display: block;
  width: 100%;
  height: auto;
}

/* ===== Main navigation ===== */

.hlb-main-nav {
    width: 930px;
    max-width: calc(100% - 30px); /* keeps 15px on each side on small screens */
    margin: 0 auto;               /* centers the 1000px block */
    padding: 0 15px;              /* ← the indent you want */
    background-color: #617c7b;
}

.hlb-nav-toggle {
  display: none; /* simple static version – no JS */
}

.hlb-nav-list {
    display: flex;
    justify-content: center;   /* centers the list horizontally */
    align-items: center;
    gap: 0;                     /* remove if you don't want spacing */
    padding: 0;
    margin: 0;
    list-style: none;
}

.hlb-nav-item {
  margin: 0;
}

.hlb-nav-link {
  display: block;
  padding: 0 17px 0 2px;     /* top right bottom left */
  font-family: 'Open Sans', sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  line-height: 34px;         /* gives the menu bar some height */
}

.hlb-nav-link:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.hlb-nav-item--active .hlb-nav-link {
  background-color: rgba(255, 255, 255, 0.22);
}

/* ===== Secondary nav / trending ===== */

.hlb-secondary-nav {
  background: #f4f4f4;
  border-top: 1px solid #dddddd;
  border-bottom: 1px solid #dddddd;
}

.hlb-secondary-nav-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
}

.hlb-trend-icon {
  font-size: 16px;
}

.hlb-trend-label {
  font-size: 14px;
  color: #617c7b;
  font-weight: bold;
}

/* ===== Main content ===== */

.hlb-main {
  padding: 25px 0 40px;
  background: transparent;
}

.hlb-section-title {
  margin-bottom: 12px;
}

/* ===== Footer ===== */

.hlb-footer {
  background-color: #ffffff;
  border-top: 1px solid #dddddd;
  padding: 18px 0;
  margin-top: 20px;
  max-width: 930px;
  margin: 0 auto;     /* centers it */
}

.hlb-footer-note {
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  text-align: center;      /* center text */
  display: flex;           /* stack items vertically */
  flex-direction: column;  /* vertical layout */
  gap: 6px;                /* spacing between lines (optional) */
}

.hlb-footer-note {

}

.hlb-footer-email a {
  color: #617c7b;
}

.hlb-footer-credits {
    font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  text-align: center;      /* center text */
  display: flex;           /* stack items vertically */
  flex-direction: column;  /* vertical layout */
  gap: 6px;                /* spacing between lines (optional) */
}



/* ===== Simple responsiveness ===== */

@media (max-width: 768px) {
  .hlb-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .hlb-brand-block {
    max-width: 100%;
  }

  .hlb-header-actions {
    width: 100%;
    text-align: left;
  }

  .hlb-nav-list {
    flex-wrap: wrap;
  }

  .hlb-footer-note {
    flex-direction: column;
    align-items: flex-start;
  }

  .hlb-footer-credits {
    margin-left: 0;
  }

}

.hlb-subscribe-btn {
  display: inline-block;
  text-align: center;
  padding: 12px 18px;
  font-family: 'Open Sans', sans-serif;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.3;
  text-decoration: none;

  color: #fff;
  background-color: #4f6f73; /* adjust to your brand colour */
  border-radius: 4px;

  transition: background-color 0.2s ease;
}

.hlb-subscribe-btn:hover {
  background-color: #3e5b5f;
}

@media (max-width: 768px) {
  .hlb-header-row {
    flex-wrap: wrap;
  }

  .hlb-subscribe {
    width: 100%;
    text-align: center;
    margin-top: 12px;
  }
}

.hlb-header-row {
  display: flex;
  align-items: flex-start;
}

.hlb-subscribe {
  margin-left: auto;   /* pushes it to the right */
  margin-top: 20px;    /* moves it lower */
  margin-right: 40px;
}

/* ===== Mobile typography & header ===== */

@media (max-width: 768px) {
  .hlb-logo {
    font-size: 42px;
  }

  .hlb-tagline {
    font-size: 14px;
  }

  .hlb-header-row {
    padding: 15px;
  }

  .hlb-subscribe {
    margin: 15px 0 0 0;
    width: 100%;
    text-align: center;
  }
}

/* ===== Mobile navigation ===== */

.hlb-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-family: 'Open Sans', sans-serif;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  padding: 10px 0;
  cursor: pointer;
}

@media (max-width: 768px) {
  .hlb-nav-toggle {
    display: block;
  }

  .hlb-nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
  }

  .hlb-nav-list.is-open {
    display: flex;
  }

  .hlb-nav-link {
    padding: 12px 15px;
    line-height: 1.4;
    border-top: 1px solid rgba(255,255,255,0.2);
  }
}

@media (max-width: 768px) {
  .hlb-container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .hlb-main-nav {
    padding-left: 0;
    padding-right: 0;
  }
}

@media (max-width: 768px) {
  .hlb-footer {
    padding: 20px 15px;
  }

  .hlb-footer-note {
    font-size: 12px;
  }
}


/* ===== Mobile nav toggle: text left, burger right ===== */

@media (max-width: 768px) {

  .hlb-main-nav {
    position: relative;
    min-height: 44px; /* comfortable tap height */
  }

  .hlb-nav-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;

    padding: 10px 15px;

    background: none;
    border: none;

    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;

    color: #ffffff;
    cursor: pointer;
  }

  .hlb-nav-toggle-text {
    letter-spacing: 0.5px;
  }

  .hlb-nav-toggle-icon {
    font-size: 22px;
    line-height: 1;
  }

  .hlb-nav-list {
    display: none;
    flex-direction: column;
  }

  .hlb-nav-list.is-open {
    display: flex;
  }

  .hlb-nav-link {
    padding: 12px 15px;
    border-top: 1px solid rgba(255,255,255,0.2);
  }
}
