/*
Theme Name:        NSG Custom Theme
Theme URI:         https://github.com/cabinetoffice/nsg-app-wordpress
Description:       National School of Government and Public Services WordPress Theme
Version:           1.0.2
Author:            Cabinet Office
Requires at least: 6.4
Tested up to:      7.1
Requires PHP:      8.2
Text Domain:       nsg-theme
*/

/* Hero wrapper */
.nsg-article-hero {
  position: relative;
  padding-top: 4.5rem;
  padding-bottom: 1rem;
}

.nsg-article-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 68%;
  background-color: #a81852;
  background-image: url("assets/images/icon-banner.png");
  background-repeat: repeat-x;
  background-position: bottom left;
  background-size: auto 72px;
  z-index: 0;
}

/* Keep the featured image on top of the banner */
.nsg-article-hero__image {
  position: relative;
  z-index: 1;
}

.nsg-article-main {
  --nsg-article-width: 960px;
}

.nsg-article-hero .nsg-article-hero__image,
.nsg-article-header > *,
.nsg-article-body > :where(:not(.alignfull)) {
  max-width: var(--nsg-article-width) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.nsg-article-hero__image,
.nsg-article-hero__image img {
  border-radius: 0 !important;
  width: 100%;
  height: auto;
  display: block;
}

/* Date + Tag side-by-side */
.nsg-article-title {
  font-weight: 700;
  margin-bottom: 1rem;
}

.nsg-article-meta {
  gap: 1.25rem;
}

.nsg-article-date {
  font-weight: 700;
  font-size: 1rem;
}

/* Space above the footer */
.nsg-article-body {
  padding-bottom: 4rem;
}

@media (max-width: 1260px) {
  .nsg-news-hero__text {
    padding-bottom: 2rem;
  }
}
