/* ============================================================
   home.css — Homepage: featured section, articles, magazine, media
   ============================================================ */

/* ── Featured section ── */
.featured-section-home {
  padding: 28px 0 56px;
  background: transparent;
}
.featured-section-home__main{
  padding: 0;
  margin-top: 30px;
}
.p-heading{
  padding: 0;
}

.featured-section-home .page-title {
  margin-bottom: 30px;
}

/* ── Hero card (content-wide) ── */
#content-wide {
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e3e1e1;
}

.featured-hero-card {
  margin-bottom: 12px;

}

.featured-hero-card__category-heading {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 300;
}

.featured-hero-card__title {
  font-size: 2em;
  font-weight: 600;
  margin: 6px 0 10px 0;
  line-height: 1.15;
}

.featured-hero-card__title a,
.featured-grid-card__title a,
.homepage-author-row__name {
  color: #111;
  text-decoration: none;
}

.featured-hero-card .descr {
  margin: 15px 0 18px 0;
  font-size: 1rem;
  line-height: 1.65;
  color: #444;
}

.featured-hero-card__category,
.featured-grid-card__category {
  display: inline-block;
  color: #1e499a;
  font-weight: 300;
  text-decoration: none;
}

.featured-hero-card__image-link,
.featured-grid-card__image-link {
  display: block;
}

.featured-hero-card__image {
  width: 100%;
  height: 100%;
  min-height: 255px;
  object-fit: cover;
  border-radius: 8px;
}

/* ── Grid cards (half-content) ── */
.featured-grid-cards .row {
  display: flex;
  align-items: stretch;
}
.featured-grid-cards .cols-4 {
  display: flex;
  flex-direction: column;
}
.featured-grid-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.featured-grid-card .p-heading {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.featured-grid-card__title {
  flex: 1;
}
.featured-grid-card .imgdiv {
  margin-bottom: 8px;
}

.featured-grid-card__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
}

.featured-grid-card__category-heading {
  margin: 0 0 4px;
  font-size: 0.9rem;
  font-weight: 300;
}

.featured-grid-card__title {
  font-size: 1.05rem;
  line-height: 1.38;
  margin: 0 0 8px;
  font-weight: 600;
}

/* ── Author row ── */
.homepage-author-row {
  display: flex;
  align-items: center;
}

.homepage-author-row .insights-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.homepage-author-row__avatar,
.homepage-author-row .author-dp {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

.homepage-author-row--compact .homepage-author-row__avatar,
.homepage-author-row--compact .author-dp {
  width: 28px;
  height: 28px;
}

.homepage-author-row__name {
  color: #000;
  font-size: 1em;
  font-weight: 400;
}

/* ── Sidebar ── */
.featured-section-home__sidebar.home-widget {
  padding-top: 0;
}

/* Search */
.home-search-plain__field {
  position: relative;
  display: flex;
  align-items: center;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  overflow: visible;
}

.home-search-plain__field input {
  flex: 1;
  border: none !important;
  outline: none !important;
  background: transparent;
  padding: 10px 6px 10px 0;
  font-size: 0.93rem;
  color: #333;
  min-width: 0;
  box-shadow: none !important;
  -webkit-appearance: none;
}

.home-search-plain__field input:focus,
.home-search-plain__field input:focus-visible,
.home-search-plain__field input:active {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
}

.home-search-plain__field:focus-within {
  border-color: #dde2ea;
  outline: none;
  box-shadow: none;
}

.home-search-plain__field input::placeholder {
  color: #aaa;
}

.home-search-plain__field input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.home-search-plain__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 8px;
  flex-shrink: 0;
}

.home-search-plain__icon-img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
}

/* Trending Now */
.home-trending-plain {
  padding: 0;
  margin-top: 0;
}

.home-trending-plain .widget-title,
.home-most-read .widget-title {
  font-size: 1.3em;
  font-weight: 500;
  margin-top: 40px;
}

.home-tag-list {
  display: flex;
  flex-wrap: wrap;
}

.home-tag-pill,
.tag-cloud-link.home-tag-pill {
  display: inline-block;
  padding: 3px 15px;
  border-radius: 25px;
  background: transparent;
  color: #494949;
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 400;
  border: 1px solid #e3e1e1;
  margin: 0 10px 10px 0;
}

.home-tag-pill:hover,
.tag-cloud-link.home-tag-pill:hover {
  color: #111c95;
  border-color: #111c95;
  background: transparent;
}

/* Most Read */
.home-most-read {
  background: #f1f4ff;
  border-top: 5px solid #012b6e;
  padding: 20px;
  margin-top: 30px;
}

.home-most-read-list,
ul.trending-posts.home-most-read-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-most-read-list__item {
  padding: 0;
  border-bottom: none;
  display: block;
  margin-bottom: 0;
}

.home-most-read-list__item::before {
  display: none;
}

.home-most-read-list__item a {
  color: #000;
  text-decoration: none;
  font-size: 1em;
  line-height: 1.4;
  font-weight: 500;
  display: block;
  position: relative;
  padding-left: 15px;
}

.home-most-read-list__item a::before {
  content: "";
  width: 4px;
  height: 4px;
  background: #111c95;
  position: absolute;
  top: 7px;
  left: 2px;
}

.home-most-read-list__item a::after {
  content: "";
  width: 8px;
  height: 8px;
  border: 1px solid #111c95;
  position: absolute;
  top: 5px;
  left: 0;
}

.home-most-read-list__item a h3 {
  font-size: inherit;
  font-weight: inherit;
  margin: 0;
  line-height: inherit;
  color: inherit;
}

.home-most-read-list__item a:hover,
.home-most-read-list__item a:hover h3 {
  color: #1f56c5;
}

@media (max-width: 1024px) {
  .featured-section-home__sidebar::after{
    display: none;
  }
  #spotlight .row::after{
    display: none;
  }
}

@media (max-width: 650px) {
  .featured-section-home {
    padding-top: 8px !important;
  }

  .featured-section-home__main {
    margin-top: 0 !important;
  }

  .featured-section-home .page-title {
    margin-bottom: 12px !important;
  }

  .featured-hero-card .imgwide .p-heading,
  .featured-hero-card .imgwide .imgdiv {
    float: none;
    width: 100%;
    padding: 0;
    margin-top: 20px;
  }

  .featured-hero-card__title {
    font-size: 1.7rem;
  }

  .featured-section-home .page-title {
    font-size: 1.2rem;
  }
  #half-content .post {
    padding-left: 15px;
    padding-right: 15px;
    margin-bottom: 30px;
    padding: 0;
  }
  .homepage-author-row .insights-author{
    gap: 0;
  }
}

/* ============================================================
   Articles section
   ============================================================ */
.articles-home-section {
  padding: 60px 0;
  background: transparent;
}
.articles-home-section__title{
  margin-top: 0;
  margin-bottom: 50px;
}

/* ── Shared tabs (articles + media) ── */
.home-tabs__nav {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  padding: 0;
  margin: -10px 0 40px 0;
}

.home-tabs__trigger {
  border: 0;
  background: transparent;
  padding: 15px;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: 500;
  color: #616161;
  border-radius: 0;
  transition: color 0.15s;
  position: relative;
}
.home-tabs__trigger:first-child {
    padding-left: 0;
}
.home-tabs__trigger::after {
  content: "";
  width: 0;
  height: 3px;
  display: block;
  background: #1f7aff;
  transition: width ease 0.2s;
  margin: 0 auto;
}

.home-tabs__trigger.is-active,
.home-tabs__trigger:hover {
  color: #000;
}

.home-tabs__trigger.is-active::after,
.home-tabs__trigger:hover::after {
  width: 100%;
}

.home-tabs__panel {
  display: none;
}

.home-tabs__panel.is-active {
  display: block;
}

.home-articles-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  align-items: stretch;
}

.home-articles-grid.row::before,
.home-articles-grid.row::after {
  display: none;
}

/* Discover more — inline 8th grid cell */
.home-article-discover-col {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
}

.home-article-discover {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 0!important;
  text-decoration: none;
  color: #111;
}

.home-article-discover-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #1a2d6b;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.18s;
}

.home-article-discover:hover .home-article-discover-icon {
  background: #142258;
}

.home-article-discover-arrow {
  width: 28px;
  height: auto;
  display: block;
  filter: brightness(0) invert(1);
}

.home-article-discover-label {
  font-size: 1rem;
  font-weight: 700;
  color: #111;
  text-align: center;
}

.home-article-card {
  display: flex;
  flex-direction: column;
}

.home-article-card__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 12px;
}

.tech-minute-home .cols-sd-6{
  padding: 0 12px 0 0;
}
.home-article-card__category {
  color: #1e499a;
  text-decoration: none;
  font-weight: 300;
  padding: 8px 0;
}

.home-article-card h3 {
  margin: 0 0 8px;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.38;
  flex: 1;
}

.home-article-card h3 a,
.home-card-author__name {
  color: #111;
  text-decoration: none;
}

.home-article-card h3 a:hover {
  color: #111c95;
}

.home-card-author {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
}

.home-card-author__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.home-card-author__name {
  font-size: 1em;
  font-weight: 400;
  color: #000;
}

@media (max-width: 1200px) {
  .home-articles-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .home-tabs__trigger {
    font-size: 0.85rem;
    padding: 4px 10px;
  }

  .home-articles-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .home-articles-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Mobile dropdown toggle (hidden on desktop) ── */
.home-tabs__mobile-toggle {
  display: none;
}

@media (max-width: 650px) {
  .home-tabs {
    position: relative;
  }

  .home-tabs__mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(to bottom, #0f2e95, #2566ed);
    color: #fff;
    padding: 12px 20px;
    margin-bottom: 30px;
    cursor: pointer;
    font-weight: 500;
    font-size: 1.2em;
    position: relative;
    z-index: 11;
  }

  .home-tabs__mobile-arrow {
    transition: transform 0.3s ease;
  }

  .home-tabs__mobile-toggle.is-open .home-tabs__mobile-arrow {
    transform: rotate(180deg);
  }

  .home-tabs__nav {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0;
    border-bottom: none;
    background: #fff;
    border-top: none;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    height: 0;
    display: flex;
    transition: height 0.3s ease;
  }

  .home-tabs__nav.is-open {
    display: flex;
  }

  .home-tabs__trigger {
    width: 100%;
    text-align: left;
    padding: 14px 18px;
    font-size: 0.95rem;
    border-radius: 0;
    color: #333;
    position: relative;
  }

  .home-tabs__trigger:last-child {
    border-bottom: none;
  }

  .home-tabs__trigger::after {
    content: '';
    width: 0;
    height: 3px;
    display: block;
    position: relative;
    left: 0;
    bottom: -5px;
    background: #1f7aff;
    transition: width 0.2s ease;
    margin: 0 auto;
  }

  .home-tabs__trigger.is-active {
    border-bottom: none;
  }

  .home-tabs__trigger.is-active::after {
    width: 100%;
  }

  .home-articles-grid {
    grid-template-columns: 1fr;
  }
  .home-tabs{
      margin-top: 20px;
  }
}

/* ============================================================
   Magazine section
   ============================================================ */
.magazine-home-section {
  padding: 100px 0;
  background: #212121;
  color: #fff;
}

.magazine-row{
  margin-top: 50px;
}

.mag-wide {
  display: flex;
  align-items: flex-start;
}

.mag-wide .imgdivs {
    width: 40%;
    margin-right: 8%;
    padding: 0;
}

.magazine-cover__img {
  width: auto;
  border-radius: 4px;
  display: block;
  height: 500px;
}
.mag-heading {
    width: 50%;
    float: left;
}
.mag-wide .mag-heading h2 {
    margin-top: 0px;
    font-size: 1.875em;
    padding-bottom: 15px;
    position: relative;
}

.mag-heading h2 a {
  color: #fff;
  text-decoration: none;
}

#large-magazine{
  padding: 0;
}
#large-magazine .mag-heading p.descr {
    padding-right: 40px;
    color: rgb(225, 218, 218);
}

.mag-heading .published-date {
  margin: 20px 0;
  color: #8a93a0;
  font-style: italic;
}

.mag-read {
  color: #ffd602;
  font-weight: 500;
  font-size: 1.125em;
  display: inline-block;
  margin-top: 15px;
}

.mag-heading:hover h2 a,.mag-read:hover {
    color: #fff;
}

#med-magazine .magazine-sec {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 0;
}

#med-magazine .magazine-sec:first-child {
  padding-top: 0;
}

#med-magazine .imgdivs {
  flex-shrink: 0;
  width: 25%;
  padding-right: 6%;
}

#med-magazine .mag-heading {
  flex: 1;
  min-width: 0;
  width: 69%;
}

#med-magazine .mag-heading h2 {
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.25em;
}
.mag-wide .mag-heading h2::after {
    content: "";
    width: 100%;
    height: 1px;
    display: block;
    bottom: 0px;
    position: absolute;
    left: 0px;
    background: rgb(100, 100, 100);
}

#med-magazine .mag-heading .published-date {
  margin: 5px 0 0;
  color: #bababa;
  font-style: italic;
}

.read-cta {
  margin-top: auto;
  padding-top: 18px;
}
#large-magazine .mag-heading {
    width: 52%;
    border-right: 1px solid rgb(100, 100, 100);
}

@media (max-width: 1024px) {
  .magazine-row {
    flex-direction: column;
  }

  #large-magazine,
  #med-magazine {
    width: 100%;
  }

  .mag-wide {
    flex-direction: column;
  }

  .mag-wide .imgdivs {
    width: 100%;
    margin-right: 0;
    text-align: center;
    margin-bottom: 20px;
  }

  .magazine-cover__img {
    height: auto;
    max-width: 360px;
    margin: 0 auto;
  }

  #large-magazine .mag-heading {
    width: 100%;
    border-right: none;
  }

  .mag-wide .mag-heading h2::after {
    display: none;
  }

  .mag-heading {
    width: 100%;
    float: none;
  }

  #med-magazine {
    margin-top: 30px;
  }

  #med-magazine .imgdivs {
    width: 60px;
    padding-right: 12px;
  }
}

@media (max-width: 768px) {
  .magazine-cover__img {
    max-width: 280px;
  }

  .mag-wide .mag-heading h2 {
    font-size: 1.4rem;
  }
}

@media only screen and (max-width: 650px) {
    #med-magazine .imgdivs {
        width: 33%;
        padding-right: 3%;
    }
    #med-magazine .mag-heading {
        width: 64%;
        padding: 0;
    }
    #med-magazine {
      padding:0;
    }
}

/* ============================================================
   Media section
   ============================================================ */
.media-home-section {
  padding: 60px 0;
  background: transparent;
}

.media-home-section__title {
  margin-top: 0;
  margin-bottom: 50px;
}

.home-media-row--3col {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}

.home-media-row--4col {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}

.home-media-card {
  display: flex;
  flex-direction: column;
}

.home-media-card__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
}

.home-media-card__image-link {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.home-media-card__image-link.card-type-videocast::after {
  content: "";
  display: block;
  width: 100%;
  height: 18%;
  position: absolute;
  left: 0;
  bottom: 0;
  background: url('../../../../sites/default/files/static/insight-videocast.png') #2A2A2A no-repeat;
  background-size: 92%;
  background-position: center;
  pointer-events: none;
}

.home-media-card__image-link.card-type-podcast::after {
  content: "";
  display: block;
  width: 100%;
  height: 18%;
  position: absolute;
  left: 0;
  bottom: 0;
  background: url('../../../../sites/default/files/static/insight-podcast.png') #2A2A2A no-repeat;
  background-size: 92%;
  background-position: center;
  pointer-events: none;
}

.home-media-card__category {
  margin: 0;
  color: #1e499a;
  text-decoration: none;
  font-weight: 300;
  padding: 20px 0 12px 0;
}

.home-media-card h3 {
  margin: 0 0 8px;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.38;
  flex: 1;
}

.home-media-card h3 a {
  color: #111;
  text-decoration: none;
}

.home-media-card h3 a:hover {
  color: #111c95;
}

.home-media-discover-col {
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid rgb(198, 198, 198);
}

.home-media-cta{
  padding-top: 0!important;
}

@media (max-width: 650px) {
  .home-media-row--3col,
  .home-media-row--4col {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .home-media-card .home-card-author {
    display: none;
  }

  .home-media-discover-col {
    border-left: none;
    padding: 12px 0;
    justify-content: center;
  }
}
