 /* ==========================================================================
   Harborlink Trading — Blog stylesheet
   Extends assets/css/style.css. Load this file AFTER style.css.
   Palette sampled from the homepage design:
     Navy (hero/footer)   #0d2c3d / #022541
     Teal accent band     #03475a
     Gold accent          #c9a45c
     Cream section bg     #f7f5f0
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root{
  --hl-navy:        #0d2c3d;
  --hl-navy-deep:   #022541;
  --hl-teal:        #03475a;
  --hl-gold:        #c9a45c;
  --hl-gold-dark:   #b3893f;
  --hl-cream:       #f7f5f0;
  --hl-white:       #ffffff;
  --hl-text:        #26313a;
  --hl-text-light:  #6b7680;
  --hl-border:      #e7e2d6;
  --hl-radius:      10px;
  --hl-shadow:      0 10px 30px rgba(13, 44, 61, 0.08);
  --hl-font-head:   'Poppins', sans-serif;
  --hl-font-body:   'Inter', sans-serif;
}

/* ---------- generic helpers ---------- */
.hl-blog-page{
  font-family: var(--hl-font-body);
  color: var(--hl-text);
  background: var(--hl-white);
}
.hl-blog-page h1,
.hl-blog-page h2,
.hl-blog-page h3,
.hl-blog-page h4,
.hl-blog-page h5{
  font-family: var(--hl-font-head);
  color: var(--hl-navy);
  font-weight: 700;
}
.hl-eyebrow{
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--hl-font-head);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--hl-gold-dark);
}
.hl-eyebrow::before{
  content: "";
  width: 26px;
  height: 2px;
  background: var(--hl-gold);
  display: inline-block;
}
.hl-section{ padding: 80px 0; }
.hl-section--cream{ background: var(--hl-cream); }
@media (max-width: 767px){
  .hl-section{ padding: 52px 0; }
}

/* ---------- buttons (aligned to homepage gold / outline pattern) ---------- */
.hl-btn{
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--hl-font-head);
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .03em;
  text-transform: uppercase;
  padding: .8rem 1.75rem;
  border-radius: 6px;
  border: 1.5px solid transparent;
  transition: all .25s ease;
  text-decoration: none;
}
.hl-btn-gold{
  background: var(--hl-gold);
  color: var(--hl-navy-deep) !important;
}
.hl-btn-gold:hover{
  background: var(--hl-gold-dark);
  color: var(--hl-navy-deep) !important;
  transform: translateY(-2px);
}
.hl-btn-outline-light{
  border-color: rgba(255,255,255,.5);
  color: var(--hl-white) !important;
  background: transparent;
}
.hl-btn-outline-light:hover{
  border-color: var(--hl-white);
  background: rgba(255,255,255,.08);
}
.hl-btn-outline-navy{
  border-color: var(--hl-navy);
  color: var(--hl-navy) !important;
  background: transparent;
}
.hl-btn-outline-navy:hover{
  background: var(--hl-navy);
  color: var(--hl-white) !important;
}
.hl-btn-sm{ padding: .55rem 1.2rem; font-size: .75rem; }

/* ---------- page banner (used by both blogs.php & read-blog.php) ---------- */
.hl-page-banner{
  position: relative;
  background: linear-gradient(135deg, var(--hl-navy-deep) 0%, var(--hl-navy) 55%, var(--hl-teal) 100%);
  padding: 168px 0 72px;
  overflow: hidden;
}
.hl-page-banner::after{
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 85% 20%, rgba(201,164,92,.16), transparent 45%);
  pointer-events: none;
}
.hl-breadcrumb{
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  padding: 0;
  margin: 0 0 1rem;
  font-family: var(--hl-font-body);
  font-size: .85rem;
}
.hl-breadcrumb li{ color: rgba(255,255,255,.55); }
.hl-breadcrumb li + li::before{
  content: "/";
  margin-right: .4rem;
  color: rgba(255,255,255,.35);
}
.hl-breadcrumb a{ color: rgba(255,255,255,.85); text-decoration: none; }
.hl-breadcrumb a:hover{ color: var(--hl-gold); }
.hl-breadcrumb li:last-child{ color: var(--hl-gold); }

.hl-page-banner h1{
  color: var(--hl-white);
  font-size: 2.6rem;
  max-width: 760px;
  margin-bottom: .75rem;
}
.hl-page-banner p{
  color: rgba(255,255,255,.72);
  max-width: 620px;
  font-size: 1.05rem;
  margin-bottom: 0;
}
@media (max-width: 767px){
  .hl-page-banner{ padding: 130px 0 56px; }
  .hl-page-banner h1{ font-size: 1.85rem; }
}

/* ---------- category filter pills (blogs.php) ---------- */
.hl-filter-bar{
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-bottom: 3rem;
}
.hl-filter-pill{
  font-family: var(--hl-font-head);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .02em;
  padding: .55rem 1.25rem;
  border-radius: 30px;
  border: 1.5px solid var(--hl-border);
  background: var(--hl-white);
  color: var(--hl-text);
  cursor: pointer;
  transition: all .2s ease;
}
.hl-filter-pill:hover{ border-color: var(--hl-gold); color: var(--hl-navy); }
.hl-filter-pill.active{
  background: var(--hl-navy);
  border-color: var(--hl-navy);
  color: var(--hl-white);
}

/* ---------- featured post (top of blogs.php) ---------- */
.hl-featured-post{
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: stretch;
  background: var(--hl-white);
  border-radius: var(--hl-radius);
  overflow: hidden;
  box-shadow: var(--hl-shadow);
  border: 1px solid var(--hl-border);
  margin-bottom: 60px;
}
.hl-featured-post__media{
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
}
.hl-featured-post__media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hl-featured-post__body{
  padding: 2.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hl-tag{
  display: inline-block;
  font-family: var(--hl-font-head);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--hl-navy-deep);
  background: rgba(201,164,92,.18);
  border: 1px solid rgba(201,164,92,.4);
  padding: .3rem .7rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  width: fit-content;
}
.hl-featured-post__body h2{
  font-size: 1.65rem;
  line-height: 1.3;
  margin-bottom: .9rem;
}
.hl-featured-post__body p{
  color: var(--hl-text-light);
  margin-bottom: 1.4rem;
}
.hl-post-meta{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  font-size: .82rem;
  color: var(--hl-text-light);
  margin-bottom: 1.2rem;
}
.hl-post-meta span{ display: inline-flex; align-items: center; gap: .4rem; }
.hl-post-meta i{ color: var(--hl-gold-dark); }

@media (max-width: 900px){
  .hl-featured-post{ grid-template-columns: 1fr; }
  .hl-featured-post__body{ padding: 1.75rem; }
}

/* ---------- blog grid cards ---------- */
.hl-blog-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
@media (max-width: 991px){
  .hl-blog-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px){
  .hl-blog-grid{ grid-template-columns: 1fr; }
}

.hl-blog-card{
  background: var(--hl-white);
  border: 1px solid var(--hl-border);
  border-radius: var(--hl-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
  height: 100%;
}
.hl-blog-card:hover{
  transform: translateY(-6px);
  box-shadow: var(--hl-shadow);
}
.hl-blog-card__media{
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;   /* rectangular, fixed ratio thumbnails */
  overflow: hidden;
}
.hl-blog-card__media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.hl-blog-card:hover .hl-blog-card__media img{ transform: scale(1.06); }
.hl-blog-card__media .hl-tag{
  position: absolute;
  top: 1rem;
  left: 1rem;
  margin: 0;
  background: rgba(2,37,65,.85);
  color: var(--hl-white);
  border-color: transparent;
}
.hl-blog-card__body{
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.hl-blog-card__body h3{
  font-size: 1.12rem;
  line-height: 1.4;
  margin-bottom: .7rem;
}
.hl-blog-card__body h3 a{
  color: var(--hl-navy);
  text-decoration: none;
}
.hl-blog-card__body h3 a:hover{ color: var(--hl-gold-dark); }
.hl-blog-card__body p{
  color: var(--hl-text-light);
  font-size: .92rem;
  margin-bottom: 1.2rem;
}
.hl-blog-card__footer{
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--hl-border);
}
.hl-read-more{
  font-family: var(--hl-font-head);
  font-size: .8rem;
  font-weight: 600;
  color: var(--hl-navy-deep);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.hl-read-more i{ transition: transform .2s ease; color: var(--hl-gold-dark); }
.hl-read-more:hover i{ transform: translateX(4px); }

/* ---------- pagination ---------- */
.hl-pagination{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .5rem;
  margin-top: 3.5rem;
}
.hl-pagination a{
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1.5px solid var(--hl-border);
  color: var(--hl-navy);
  text-decoration: none;
  font-family: var(--hl-font-head);
  font-weight: 600;
  font-size: .9rem;
  transition: all .2s ease;
}
.hl-pagination a.active,
.hl-pagination a:hover{
  background: var(--hl-navy);
  border-color: var(--hl-navy);
  color: var(--hl-white);
}

/* ---------- newsletter / CTA band ---------- */
.hl-newsletter{
  background: linear-gradient(120deg, var(--hl-navy-deep), var(--hl-teal));
  border-radius: var(--hl-radius);
  padding: 3.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.hl-newsletter h3{ color: var(--hl-white); margin-bottom: .4rem; font-size: 1.5rem; }
.hl-newsletter p{ color: rgba(255,255,255,.7); margin: 0; max-width: 420px; }
.hl-newsletter form{
  display: flex;
  gap: .6rem;
  flex: 1;
  min-width: 280px;
  max-width: 420px;
}
.hl-newsletter input[type="email"]{
  flex: 1;
  border: none;
  border-radius: 6px;
  padding: .85rem 1rem;
  font-family: var(--hl-font-body);
  font-size: .9rem;
}
.hl-newsletter input[type="email"]:focus{ outline: 2px solid var(--hl-gold); }

/* =========================================================================
   read-blog.php — single article layout
   ========================================================================= */
.hl-article-meta-row{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  color: rgba(255,255,255,.75);
  font-size: .88rem;
  margin-top: 1.5rem;
}
.hl-article-meta-row span{ display: inline-flex; align-items: center; gap: .45rem; }
.hl-article-meta-row i{ color: var(--hl-gold); }
.hl-author-chip{
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}
.hl-author-chip img{
  width: 34px; height: 34px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--hl-gold);
}

.hl-article-hero-img{
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  border-radius: var(--hl-radius);
  box-shadow: var(--hl-shadow);
  margin-top: -70px;
  position: relative;
  z-index: 2;
  border: 6px solid var(--hl-white);
}
@media (max-width: 767px){
  .hl-article-hero-img{ aspect-ratio: 4/3; margin-top: -40px; }
}

.hl-article-body{
  font-family: var(--hl-font-body);
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--hl-text);
}
.hl-article-body h2{
  font-size: 1.5rem;
  margin: 2.4rem 0 1rem;
}
.hl-article-body h3{
  font-size: 1.2rem;
  margin: 2rem 0 .9rem;
}
.hl-article-body p{ margin-bottom: 1.3rem; color: var(--hl-text); }
.hl-article-body ul{ margin-bottom: 1.3rem; padding-left: 1.3rem; }
.hl-article-body li{ margin-bottom: .5rem; }
.hl-article-body img{
  width: 100%;
  border-radius: var(--hl-radius);
  aspect-ratio: 16/9;
  object-fit: cover;
  margin: 1.75rem 0 .6rem;
}
.hl-img-caption{
  font-size: .82rem;
  color: var(--hl-text-light);
  text-align: center;
  margin-bottom: 1.75rem;
}
.hl-blockquote{
  border-left: 4px solid var(--hl-gold);
  background: var(--hl-cream);
  padding: 1.5rem 1.75rem;
  border-radius: 0 8px 8px 0;
  font-family: var(--hl-font-head);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--hl-navy);
  margin: 2rem 0;
}

.hl-tags-row{
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--hl-border);
}
.hl-tag-chip{
  font-size: .78rem;
  padding: .4rem .9rem;
  border-radius: 20px;
  background: var(--hl-cream);
  color: var(--hl-navy);
  text-decoration: none;
  border: 1px solid var(--hl-border);
}
.hl-tag-chip:hover{ background: var(--hl-gold); color: var(--hl-navy-deep); }

.hl-share-row{
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-top: 1.75rem;
}
.hl-share-row span{
  font-family: var(--hl-font-head);
  font-weight: 600;
  font-size: .85rem;
  color: var(--hl-navy);
  margin-right: .3rem;
}
.hl-share-row a{
  width: 38px; height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--hl-cream);
  color: var(--hl-navy);
  border: 1px solid var(--hl-border);
  transition: all .2s ease;
}
.hl-share-row a:hover{ background: var(--hl-navy); color: var(--hl-white); }

.hl-author-card{
  display: flex;
  gap: 1.25rem;
  background: var(--hl-cream);
  border-radius: var(--hl-radius);
  padding: 1.75rem;
  margin-top: 2.5rem;
  align-items: flex-start;
}
.hl-author-card img{
  width: 68px; height: 68px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--hl-white);
  flex-shrink: 0;
}
.hl-author-card h5{ margin-bottom: .3rem; }
.hl-author-card p{
  color: var(--hl-text-light);
  font-size: .9rem;
  margin-bottom: 0;
}

/* ---------- sidebar (read-blog.php) ---------- */
.hl-sidebar-box{
  background: var(--hl-white);
  border: 1px solid var(--hl-border);
  border-radius: var(--hl-radius);
  padding: 1.75rem;
  margin-bottom: 1.75rem;
}
.hl-sidebar-box h4{
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 1.4rem;
  padding-bottom: .9rem;
  border-bottom: 2px solid var(--hl-gold);
  display: inline-block;
}
.hl-sidebar-post{
  display: flex;
  gap: .9rem;
  margin-bottom: 1.2rem;
  text-decoration: none;
}
.hl-sidebar-post:last-child{ margin-bottom: 0; }
.hl-sidebar-post__img{
  width: 70px;
  height: 70px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}
.hl-sidebar-post__img img{
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.hl-sidebar-post h6{
  font-family: var(--hl-font-head);
  font-size: .88rem;
  font-weight: 600;
  color: var(--hl-navy);
  margin-bottom: .3rem;
  line-height: 1.35;
}
.hl-sidebar-post span{
  font-size: .76rem;
  color: var(--hl-text-light);
}
.hl-sidebar-post:hover h6{ color: var(--hl-gold-dark); }

.hl-cat-list{ list-style: none; padding: 0; margin: 0; }
.hl-cat-list li{
  display: flex;
  justify-content: space-between;
  padding: .65rem 0;
  border-bottom: 1px dashed var(--hl-border);
}
.hl-cat-list li:last-child{ border-bottom: none; }
.hl-cat-list a{
  color: var(--hl-text);
  text-decoration: none;
  font-size: .92rem;
}
.hl-cat-list a:hover{ color: var(--hl-gold-dark); }
.hl-cat-list .count{
  background: var(--hl-cream);
  color: var(--hl-text-light);
  font-size: .75rem;
  padding: .1rem .55rem;
  border-radius: 10px;
}

.hl-sidebar-cta{
  background: linear-gradient(135deg, var(--hl-navy-deep), var(--hl-teal));
  border-radius: var(--hl-radius);
  padding: 2rem 1.75rem;
  text-align: center;
}
.hl-sidebar-cta i{ font-size: 2rem; color: var(--hl-gold); margin-bottom: .75rem; }
.hl-sidebar-cta h4{ color: var(--hl-white); border: none; padding: 0; font-size: 1.05rem; margin-bottom: .6rem; }
.hl-sidebar-cta p{ color: rgba(255,255,255,.7); font-size: .85rem; margin-bottom: 1.25rem; }

/* ---------- related posts ---------- */
.hl-related{
  margin-top: 5rem;
  padding-top: 3.5rem;
  border-top: 1px solid var(--hl-border);
}

/* ---------- misc responsive tune-ups ---------- */
@media (max-width: 767px){
  .hl-newsletter{ padding: 2rem; text-align: center; justify-content: center; }
  .hl-newsletter form{ margin: 0 auto; }
  .hl-author-card{ flex-direction: column; text-align: center; align-items: center; }
  .hl-share-row{ flex-wrap: wrap; }
}
