/*
  Blog/News overview page styles (scoped to the Overview template).
  Based on Overview.html, but stripped down to only the page-specific rules.
*/

.roimon-overview .page-hero{
  position: relative;
  background: var(--blue);
  padding: 56px 0 44px 0;
  overflow:hidden;
}

.roimon-overview .page-hero::before{
  content:"";
  position:absolute;
  inset:0;
  background-image: var(--roimon-hero-bg-desktop, var(--roimon-hero-bg));
  background-position:center;
  background-size:cover;
  background-repeat:no-repeat;
  opacity: .20;
  pointer-events:none;
}

@media (max-width:760px){
  .roimon-overview .page-hero::before{
    background-image: var(--roimon-hero-bg-mobile, var(--roimon-hero-bg-desktop, var(--roimon-hero-bg)));
  }
}

.roimon-overview .page-hero > .container{ position:relative; z-index:1; }

.roimon-overview .hero-top{
  display:flex;
  align-items:flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.roimon-overview .breadcrumbs{
  font-size: 13px;
  line-height: 1.35;
  color: rgba(255,255,255,.82);
  margin: 0 0 10px 0;
}
.roimon-overview .breadcrumbs a{ color: rgba(255,255,255,.86); text-decoration: underline; }

.roimon-overview .page-hero h1{
  margin: 0 0 10px 0;
  color: #fff;
  font-size: clamp(30px, 3.0vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.roimon-overview .hero-sub{
  margin: 0;
  color: rgba(255,255,255,.86);
  font-size: var(--body);
  line-height: var(--body-lh);
  max-width: 75ch;
  font-weight: 300;
}

.roimon-overview .meta-row{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
  font-size: 13px;
  color: rgba(255,255,255,.78);
}
.roimon-overview .meta-dot{ opacity:.7; }

.roimon-overview .content-wrap{
  background:#fff;
  padding: 34px 0 56px 0;
}

.roimon-overview .content-grid{
  display:grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  align-items:start;
}

@media (max-width: 980px){
  .roimon-overview .content-grid{ grid-template-columns: 1fr; }
}

.roimon-overview .cards-top{
  display:flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 18px 0;
}


/* News section switcher: normal ROIMonitor news vs externally published coverage. */
.roimon-overview .roimon-news-section-tabs{
  display:flex;
  align-items:center;
  gap: 0;
  margin: 0 0 18px 0;
  border-bottom: 1px solid rgba(27,27,27,.14);
}
.roimon-overview .roimon-news-section-tab{
  display:inline-flex;
  align-items:center;
  min-height: 42px;
  padding: 0 16px;
  margin: 0 0 -1px 0;
  border-bottom: 2px solid transparent;
  color: rgba(27,27,27,.66);
  text-decoration:none;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 500;
  transition: color .16s ease, border-color .16s ease;
}
.roimon-overview .roimon-news-section-tab:first-child{ padding-left:0; }
.roimon-overview .roimon-news-section-tab:hover,
.roimon-overview .roimon-news-section-tab:focus-visible{
  color: var(--blue);
}
.roimon-overview .roimon-news-section-tab.is-active{
  color: var(--blue);
  border-bottom-color: var(--orange, #ff9c00);
}

.roimon-overview .cards-top h2{
  margin:0;
  color: var(--blue);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.15;
}

/* Filters bar: 2 left + 1 right */
.roimon-overview .filters-bar{
  background: transparent;
  border: none;
  box-shadow:none;
  padding: 0;
  border-radius: 0;
  overflow: visible;
  display:flex;
  align-items:center;
  gap: 14px 18px;
  flex-wrap: wrap;
  margin: 0 0 18px 0;
}

.roimon-overview .filters-left{
  display:flex;
  align-items:center;
  gap: 14px 18px;
  flex-wrap: wrap;
  min-width: 0;
}

.roimon-overview .filters-right{
  margin-left: auto;
  display:flex;
  align-items:center;
  flex: 0 0 auto;
}

/* Filter dropdowns */
.roimon-overview .filter-dd{ position: relative; flex: 0 0 auto; }

.roimon-overview .filter-dd summary{
  list-style: none;
  cursor: pointer;
  padding: 10px 12px;
  border-radius: var(--radius);
  border: 1px solid rgba(27,27,27,.18);
  background: #fff;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(27,27,27,.78);
  font-size: 14px;
  line-height: 1.35;
  font-weight: 300;
  white-space: nowrap;
  min-width: 170px;
  user-select: none;
}
.roimon-overview .filter-dd summary::-webkit-details-marker{ display:none; }

.roimon-overview .dd-arrow{
  margin-left: auto;
  width: 14px;
  height: 14px;
  position: relative;
  opacity: .75;
  flex: 0 0 14px;
}
.roimon-overview .dd-arrow::before,
.roimon-overview .dd-arrow::after{
  content:"";
  position:absolute;
  top:50%;
  width: 8px;
  height: 2px;
  background: rgba(27,27,27,.65);
  border-radius: 2px;
}
.roimon-overview .dd-arrow::before{ right: 5px; transform: translateY(-50%) rotate(45deg); }
.roimon-overview .dd-arrow::after{ right: 0px; transform: translateY(-50%) rotate(-45deg); }
.roimon-overview details[open] .dd-arrow::before{ transform: translateY(-50%) rotate(-45deg); }
.roimon-overview details[open] .dd-arrow::after{ transform: translateY(-50%) rotate(45deg); }

.roimon-overview .dd-panel{
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 260px;
  max-width: 75vw;
  background: #fff;
  border: 1px solid rgba(27,27,27,.18);
  border-radius: var(--radius);
  box-shadow:none;
  padding: 12px;
  z-index: 20;
}
.roimon-overview .dd-panel h4{
  margin: 0 0 10px 0;
  color: var(--blue);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.25;
}
.roimon-overview .dd-opt{
  display:flex;
  align-items:flex-start;
  gap: 10px;
  margin: 0 0 10px 0;
  font-size: 14px;
  line-height: 1.35;
  color: rgba(27,27,27,.78);
  font-weight: 300;
}
.roimon-overview .dd-opt:last-child{ margin-bottom: 0; }
.roimon-overview .dd-opt input{ margin-top: 2px; }

/* Disabled subcategory dropdown */
.roimon-overview .filter-dd.is-disabled summary{
  opacity: .55;
  cursor: default;
}

.roimon-overview .filter-dd.is-disabled .dd-panel{ display:none; }

/* Sort select */
.roimon-overview .filter-select{
  padding: 10px 12px;
  border-radius: var(--radius);
  border: 1px solid rgba(27,27,27,.18);
  background:#fff;
  font: inherit;
  font-weight: 300;
  color: rgba(27,27,27,.78);
  min-width: 190px;
}

/* Mobile filters: first 2 next to each other, 3rd below */
@media (max-width: 680px){
  .roimon-overview .filters-bar{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    align-items: start;
  }
  .roimon-overview .filters-left{
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .roimon-overview .filters-right{
    grid-column: 1 / -1;
    margin-left: 0;
    justify-content: flex-start;
  }
  .roimon-overview .filters-right .filter-select{ width: 100%; }
}

/* Grid */
.roimon-overview .card-grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
@media (max-width: 680px){
  .roimon-overview .card-grid{ grid-template-columns: 1fr; }
}

.roimon-overview .post{ text-decoration:none; color: inherit; display:block; }
.roimon-overview .post-media{ position: relative; margin-bottom: 12px; }
.roimon-overview .post-media img{
  width:100%;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius);
  display:block;
}


/* In the News cards reuse the normal News card dimensions but show the publisher brand in place of photography. */
.roimon-overview .post-media.roimon-media-source{
  height:160px;
  border: 1px solid rgba(27,27,27,.10);
  border-radius: var(--radius);
  overflow:hidden;
  background:#f6f7f8;
}
.roimon-overview .roimon-media-source__brand{
  width:100%;
  height:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap: 12px;
  padding: 28px 38px;
  box-sizing:border-box;
}
.roimon-overview .post-media .roimon-media-source__logo{
  width:auto;
  height:auto;
  max-width: 190px;
  max-height: 54px;
  object-fit:contain;
  border-radius:0;
  display:block;
}
.roimon-overview .roimon-media-source__name{
  display:block;
  max-width: 230px;
  color: var(--blue);
  font-size: 14px;
  line-height: 1.25;
  font-weight: 600;
  text-align:center;
}
.roimon-overview .roimon-external-news-card:focus-visible .roimon-media-source,
.roimon-overview .roimon-external-news-card:hover .roimon-media-source{
  border-color: rgba(27,27,27,.22);
}

.roimon-overview .post-label{
  position:absolute;
  top: 10px;
  right: 10px;
  background: rgba(255,156,0,.95);
  color: var(--black);
  border: 0.5px solid rgba(0,0,0,.18);
  border-radius: var(--radius);
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.2;
  width:max-content;
}

.roimon-overview .post-title{
  margin: 0 0 8px 0;
  color: var(--blue);
  font-size: 18px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.roimon-overview .post-excerpt{
  margin: 0 0 10px 0;
  color: rgba(27,27,27,.78);
  font-size: var(--body);
  line-height: var(--body-lh);
  font-weight: 300;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: calc(var(--body-lh) * 1em * 2);
}

.roimon-overview .post-meta{
  margin:0;
  font-size: 13px;
  line-height: 1.35;
  color: rgba(27,27,27,.65);
  font-weight: 300;
}

.roimon-overview .post:hover .post-title{
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Sidebar */
.roimon-overview .side{ display:flex; flex-direction: column; gap: 26px; }

.roimon-overview .side-box{
  background:#fff;
  border: 1px solid rgba(27,27,27,.18);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow:none;
}
.roimon-overview .side-box h4{
  margin: 0 0 10px 0;
  color: var(--blue);
  font-size: 16px;
  line-height: 1.25;
  font-weight: 700;
}
.roimon-overview .side-box p{
  margin: 0 0 12px 0;
  color: rgba(27,27,27,.78);
  font-size: 14px;
  line-height: 1.55;
  font-weight: 300;
}
.roimon-overview .side-box ul{
  margin:0;
  padding-left: 18px;
  color: rgba(27,27,27,.78);
  font-size: 14px;
  line-height: 1.55;
}

.roimon-overview .newsletter{
  background:#fff;
  border: 1px solid rgba(27,27,27,.18);
  border-radius: var(--radius);
  box-shadow:none;
  overflow:hidden;
}
.roimon-overview .nl-head{
  padding: 16px 14px;
  color: var(--blue);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.25;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
}
.roimon-overview .nl-left{ display:flex; align-items:center; gap: 12px; min-width:0; }
.roimon-overview .nl-icon{
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(1,138,156,.08);
  display:flex;
  align-items:center;
  justify-content:center;
  flex: 0 0 28px;
}
.roimon-overview .nl-icon svg{
  width: 16px;
  height: 16px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.roimon-overview .nl-title{ white-space: nowrap; overflow:hidden; text-overflow: ellipsis; }

.roimon-overview .nl-body{
  padding: 0 14px 16px 14px;
  color: rgba(27,27,27,.82);
  font-size: var(--body);
  line-height: var(--body-lh);
  font-weight: 300;
}
.roimon-overview .nl-body p{ margin: 0 0 12px 0; }
.roimon-overview .nl-form{ display:flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.roimon-overview .nl-input{
  width:100%;
  padding: 12px 12px;
  border-radius: var(--radius);
  border: 1px solid rgba(27,27,27,.18);
  background:#fff;
  font: inherit;
  font-weight: 300;
  outline:none;
}
.roimon-overview .nl-input::placeholder{ color: rgba(27,27,27,.55); }
.roimon-overview .nl-btn{ width:100%; justify-content:center; }

.roimon-overview .side-cta{
  background: var(--blue);
  color: #fff;
  border-radius: var(--radius);
  padding: 18px 16px;
  box-shadow:none;
}
.roimon-overview .side-cta .cta-head{ display:flex; align-items:center; gap: 12px; margin-bottom: 10px; }
.roimon-overview .side-cta .cta-icon{
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  display:flex;
  align-items:center;
  justify-content:center;
  flex: 0 0 32px;
}
.roimon-overview .side-cta .cta-icon svg{
  width: 18px;
  height: 18px;
  stroke: #fff;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .95;
}
.roimon-overview .side-cta h4{
  margin:0;
  color:#fff;
  font-size: 22px;
  line-height: 1.15;
  font-weight: 700;
}
.roimon-overview .side-cta p{
  margin:0 0 14px 0;
  color: rgba(255,255,255,.86);
  font-size: var(--body);
  line-height: var(--body-lh);
  font-weight: 300;
}
.roimon-overview .side-cta .cta-btn{
  width:100%;
  background: transparent;
  border: 1px solid rgba(255,255,255,.85);
  color: #fff;
  border-radius: var(--radius);
  padding: 12px 14px;
  font-weight: 500;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  transition: background .12s ease, border-color .12s ease;
}
.roimon-overview .side-cta .cta-btn:hover{
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.95);
}

.roimon-overview .side-articles{ display:flex; flex-direction: column; gap: 14px; }
.roimon-overview .side-articles-heading{
  margin:0;
  color: rgba(27,27,27,.65);
  font-size: 13px;
  font-weight: 300;
}

.roimon-overview .side-article{
  display:grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  align-items:center;
  text-decoration:none;
  color: inherit;
  height: 62px;
  overflow:hidden;
}
.roimon-overview .side-article img{
  width: 92px;
  height: 62px;
  object-fit: cover;
  border-radius: var(--radius);
  display:block;
  flex: 0 0 auto;
}
.roimon-overview .side-article > div{ min-width:0; }
.roimon-overview .side-article-title{
  font-weight:500;
  font-size:13px;
  line-height:1.15;
  margin:0 0 4px 0;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space: normal;
}
.roimon-overview .side-article-date{
  font-size: 12px;
  line-height: 1.2;
  color: rgba(27,27,27,.65);
  margin:0;
  font-weight: 300;
  white-space: nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
}
.roimon-overview .side-article:hover .side-article-title{
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Sticky sidebar on desktop */
@media (min-width: 981px){
  .roimon-overview .side{
    position: sticky;
    top: calc(var(--sticky-header, 92px) + 26px);
    align-self: start;
  }
}

/* Pagination */
.roimon-overview .roimon-pagination{
  margin-top: 22px;
}
.roimon-overview .roimon-pagination ul{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
}
.roimon-overview .roimon-pagination a,
.roimon-overview .roimon-pagination span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: var(--radius);
  border: 1px solid rgba(27,27,27,.18);
  text-decoration:none;
  font-size: 14px;
  font-weight: 300;
  color: rgba(27,27,27,.78);
  background:#fff;
}
.roimon-overview .roimon-pagination span.current{
  background: rgba(1,0,84,.06);
  border-color: rgba(1,0,84,.18);
  color: var(--blue);
  font-weight: 500;
}
.roimon-overview .roimon-pagination a:hover{
  border-color: rgba(1,0,84,.35);
}

/* Optional SEO copy block */
.roimon-overview .roimon-seo-copy{
  margin-top: 26px;
}

@media (max-width: 680px){
  .roimon-overview .roimon-news-section-tabs{ margin-bottom:16px; }
  .roimon-overview .roimon-news-section-tab{ flex:1 1 50%; justify-content:center; padding-left:10px; padding-right:10px; }
  .roimon-overview .roimon-news-section-tab:first-child{ padding-left:10px; }
  .roimon-overview .roimon-media-source__brand{ padding:24px 32px; }
}
