/* homerzaragoza.my.id — brand layer on top of the Gridlove theme */

/* ---------------------------------------------------------- wordmark */
.gridlove-site-branding .site-title a.gridlove-wordmark {
  display: inline-block;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #111111;
  text-transform: none;
  padding: 6px 0;
}
.gridlove-site-branding .site-title a.gridlove-wordmark span { color: #009cff; }
.gridlove-site-branding .site-title a.gridlove-wordmark.mini { font-size: 24px; }
.gridlove-header-sticky .gridlove-site-branding .site-title a.gridlove-wordmark { font-size: 22px; padding: 0; }
.gridlove-header-responsive .gridlove-wordmark { font-size: 22px; padding: 0; }

/* ---------------------------------------------------------- category colours */
.gridlove-cat-science-research { background-color: #0E9755; }
.gridlove-cat-automotive-transportation { background-color: #003686; }
.gridlove-cat-social-issues { background-color: #CC650B; }
.gridlove-cat-history-mysteries { background-color: #8e5bb5; }
.gridlove-cat-sports-competition { background-color: #d60000; }

/* ---------------------------------------------------------- article body */
.entry-content .lede,
.entry-content p.lede {
  font-size: 20px;
  line-height: 1.55;
  color: #333;
}
.entry-content h2 { margin-top: 1.8em; }
.entry-content h3 { margin-top: 1.5em; }
.entry-content figure { margin: 1.6em 0; }
.entry-content figure img,
.entry-content .wp-block-image img { width: 100%; height: auto; }
.entry-content figcaption {
  font-size: 13px;
  color: #818181;
  text-align: center;
  margin-top: 8px;
}
.entry-content .key-facts {
  background: #f7f7f7;
  border-left: 4px solid #009cff;
  padding: 20px 24px;
  margin: 2em 0;
}
.entry-content .key-facts h3 { margin-top: 0; }
.entry-content .key-facts ul { margin-bottom: 0; }
.entry-content blockquote.pull-quote,
.entry-content .pull-quote {
  border-left: 4px solid #111;
  background: #fafafa;
  padding: 18px 24px;
  margin: 2em 0;
  font-size: 19px;
  line-height: 1.5;
  color: #222;
}
.entry-content blockquote.pull-quote:before { content: none; }

.gridlove-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 2em 0;
}
.gridlove-gallery figure { margin: 0; }
.gridlove-gallery img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------------------------------------------------------- author */
.gridlove-author-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: #009cff;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Lato', sans-serif;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* ---------------------------------------------------------- archive */
.gridlove-archive-desc {
  max-width: 820px;
  margin: -10px 0 30px;
  padding: 0 0 20px;
  border-bottom: 1px solid rgba(94, 94, 94, 0.12);
  color: #5e5e5e;
  font-size: 16px;
  line-height: 1.6;
}

/* ---------------------------------------------------------- newsletter + forms */
.gridlove-newsletter { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.gridlove-newsletter input[type="email"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(94, 94, 94, 0.25);
  background: #fff;
  color: #222;
  border-radius: 0;
}
.gridlove-newsletter .gridlove-button-search { width: 100%; cursor: pointer; }
.gridlove-newsletter .form-ok { color: #0E9755; font-size: 13px; margin: 0; }
.widget_text .gridlove-newsletter input[type="email"] { margin-bottom: 0; }

/* ---------------------------------------------------------- search */
.gridlove-search-page { display: flex; gap: 8px; max-width: 680px; margin: 0 0 30px; }
.gridlove-search-page input[type="text"] {
  flex: 1;
  padding: 11px 14px;
  border: 1px solid rgba(94, 94, 94, 0.25);
  border-radius: 0;
}
.gridlove-search-page .gridlove-button-search { cursor: pointer; }
.search-hint { color: #818181; }
.search-no-results { padding: 20px 0; color: #818181; }

/* ---------------------------------------------------------- misc */
.gridlove-cover-content .entry-content { margin-bottom: 10px; }
.gridlove-cover .entry-title a { color: #fff; }
.gridlove-post-c .entry-content p { margin-bottom: 0; }
.gridlove-page-layout-1 .entry-content h2 { margin-top: 1.6em; }
.gridlove-page-layout-1 .entry-content h1 { margin-top: 1.4em; }

/* ---------------------------------------------------------- header layout
   The theme positions the left/right header slots absolutely, so the menu
   slides under the wordmark once the labels are long. Lay the header out as
   a flex row and let the menu shrink instead of overlapping. */
@media (min-width: 1024px) {
  .gridlove-header-middle.container,
  .gridlove-header-sticky .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
  }
  .gridlove-header-middle .gridlove-slot-l,
  .gridlove-header-middle .gridlove-slot-r,
  .gridlove-header-sticky .gridlove-slot-l,
  .gridlove-header-sticky .gridlove-slot-r {
    position: static;
    left: auto;
    right: auto;
    display: flex;
    align-items: center;
    height: auto;
  }
  .gridlove-header-middle .gridlove-slot-r,
  .gridlove-header-sticky .gridlove-slot-r {
    flex: 1 1 auto;
    justify-content: flex-end;
    min-width: 0;
  }
  .gridlove-header-middle .gridlove-site-branding,
  .gridlove-header-sticky .gridlove-site-branding { float: none; }
  .gridlove-header-middle .gridlove-main-navigation,
  .gridlove-header-sticky .gridlove-main-navigation {
    flex: 0 1 auto;
    min-width: 0;
    text-align: right;
  }
  .gridlove-header-middle .gridlove-main-nav,
  .gridlove-header-sticky .gridlove-main-nav {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
  }
  .gridlove-header-middle .gridlove-main-nav > li > a {
    font-size: clamp(11px, 0.95vw, 14px);
    padding: 0 clamp(5px, 0.5vw, 10px);
    white-space: nowrap;
  }
  .gridlove-header-sticky .gridlove-main-nav > li > a {
    font-size: clamp(11px, 0.85vw, 13px);
    padding: 0 clamp(5px, 0.45vw, 9px);
    white-space: nowrap;
  }
  .gridlove-header-middle .gridlove-main-nav > li:first-child > a,
  .gridlove-header-sticky .gridlove-main-nav > li:first-child > a { padding-left: 0; }
  .gridlove-header-middle .gridlove-actions,
  .gridlove-header-sticky .gridlove-actions { flex: 0 0 auto; }
}

/* ---------------------------------------------------------- sidebar widget
   The theme keeps the recent-posts list hidden until its carousel script
   marks it as loaded. These pages are static, so show the list directly. */
.gridlove-posts-widget .gridlove-posts-widget-item-wrapper {
  opacity: 1;
  position: relative;
}
.gridlove-posts-widget { min-height: 0; }

/* ---------------------------------------------------------- homepage pick */
.home .gridlove-module { margin-bottom: 50px; }
.home .hz-pick {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  align-items: stretch;
  margin-left: 0;
  margin-right: 0;
}
.home .hz-pick > [class*="col-"] {
  width: auto;
  max-width: none;
  flex: none;
  padding: 0;
  float: none;
}
.home .hz-card {
  background: #fff;
  box-shadow: 0 3px 5px 0 rgba(0, 1, 1, 0.1);
  overflow: hidden;
}
.home .hz-lead { display: flex; flex-direction: column; height: 100%; }
.home .hz-lead .hz-thumb {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #ececec;
}.home .hz-lead .hz-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.home .hz-lead .hz-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 24px 30px 26px;
}
.home .hz-lead .entry-title.h3 {
  font-size: 27px;
  line-height: 1.24;
  margin: 10px 0 12px;
}
.home .hz-lead .hz-excerpt {
  color: #4a4a4a;
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 18px;
}
.home .hz-card .entry-meta {
  position: static;
  bottom: auto;
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  font-size: 12.5px;
  color: #6f6f6f;
}
.home .hz-card .entry-meta .meta-item { margin: 0; }
.home .hz-card .entry-category { margin: 0; }

.home .hz-side {
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 15px;
  height: 100%;
}
.home .hz-mini {
  display: flex;
  align-items: stretch;
  height: 100%;
  min-height: 132px;
  text-decoration: none;
}
.home .hz-mini:hover .entry-title a { color: #009cff; }
.home .hz-mini .hz-thumb {
  flex: 0 0 38%;
  max-width: 190px;
  align-self: stretch;
  overflow: hidden;
  background: #ececec;
}
.home .hz-mini .hz-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.home .hz-mini .hz-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1 1 auto;
  padding: 16px 18px;
  min-width: 0;
}
.home .hz-mini .entry-title {
  font-size: 17px;
  line-height: 1.32;
  margin: 8px 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.home .hz-mini .entry-meta { gap: 4px 12px; font-size: 11.5px; margin-top: 10px; }
.home .hz-mini .meta-rtime { display: none; }

@media (max-width: 1199px) {
  .home .hz-pick { display: block; }
  .home .hz-side { margin-top: 15px; grid-template-rows: none; }
  .home .hz-mini { min-height: 120px; }
  .home .hz-mini .hz-thumb { flex-basis: 190px; }
}

@media (max-width: 767px) {
  .gridlove-gallery { grid-template-columns: 1fr; }
  .gridlove-site-branding .site-title a.gridlove-wordmark { font-size: 24px; }
  .entry-content .lede { font-size: 18px; }
  .home .hz-lead .hz-body { padding: 20px 20px 22px; }
  .home .hz-lead .entry-title.h3 { font-size: 22px; }
  .home .hz-mini .hz-thumb { flex-basis: 118px; }
  .home .hz-mini .hz-body { padding: 14px; }
  .home .hz-mini .entry-title { font-size: 15.5px; }
}
