/* Reset margins and paddings for the body */
body, html {
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* Prevent horizontal scrolling */
  font-family: Arial, sans-serif;
  color: #333;
  background-color: #ffffff00;
}

/* Specific styles for HOLYARD and PRODUCTIONS */
.custom-font {
  font-family: Arial, sans-serif;/* Custom font for h1 and h2 */
  color: #fff; /* White or any preferred color */
  text-transform: uppercase;
  margin: 0;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to right, #000, #333); /* Add a gradient for depth */
  color: #fff;
  padding: 10px 20px; /* Add some padding for spacing */
  height: 100px; /* Set a specific height */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5); /* Box shadow (box-shadow: 0 2px 8px) gives the header subtle depth. */
}

.logo {
  display: flex;
  align-items: center;
}

.logo img.production-logo {
  height: 120px;
  margin-left: 10px;
  margin-bottom: -5px;
}

.logo .logo-text {
  color: #fff;
  margin-left: 5px;
  display: flex;
  flex-direction: column;
  line-height: 1;
  margin-bottom: -5px;
}

.logo .logo-text h1,
.logo .logo-text h2 {
  margin: 0;
  padding: 0; /* Remove padding */
  line-height: 1; /* Ensure no extra space between lines */
}

.logo .logo-text h1 {
  font-size: 50px; /* Adjust as needed */
}

.logo .logo-text h2 {
  font-size: 32px; /* Adjust as needed */
  margin-top: -10px; /* Negative margin to remove extra space */
}

.logo-text a {
  text-decoration: none; /* Removes the underline */
  color: inherit; /* Inherits the color from the parent element */
}

.logo-text a:hover {
  color: inherit; /* Ensures the color stays the same on hover */
}

nav ul {
  list-style: none;
  display: flex;
  gap: 5px;
  margin: 0;
  padding: 0;
  margin-bottom: 5px;
}

nav ul li {
  position: relative;
  right: -20px; /* Moves the entire nav to the left */
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  margin-right: 40px; /* Reduce space between items */
  font-family: 'Century Gothic';
  font-style: bold;
  font-size: 20px;
}


/* Remove underline from article title and artist links */
.articles h2 a, /* For article titles */
.articles p a {  /* For artist names */
  text-decoration: none;
  color: inherit; /* Ensure it inherits the default text color */
}

.articles h2 a:hover,
.articles p a:hover {
  color: rgb(0, 0, 0); /* Optionally, change the color on hover */
}

/* Dropdown Container */
nav ul li.dropdown {
  position: relative;
  display: inline-block;
}

/* Dropdown Content (Hidden by Default) */
nav ul li .dropdown-content {
  display: none;
  position: absolute;
  background-color: #000;
  top: 100%;
  left: 0;
  min-width: 150px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  z-index: 1000;
}

/* Dropdown Links */
nav ul li .dropdown-content a {
  font-weight: normal;
  color: rgb(255, 255, 255);
  padding: 12px 19px;
  text-decoration: none;
  display: block;
  text-align: left;
  transition: color 0.3s ease; /* Smooth transition for color change */
}

/* Change color on hover */
nav ul li .dropdown-content a:hover {
  color: #ffffff; /* Change this color to whatever you prefer */
}

/* Highlight Dropdown Links with Background on Hover */
nav ul li .dropdown-content a:hover {
  background-color: #b7ee53; /* Background color on hover */
}

/* Show the Dropdown Menu on Hover */
nav ul li.dropdown:hover .dropdown-content {
  display: block;
}

nav ul li a#explore {
  display: inline-flex;
  align-items: center;
}

nav ul li a#explore:after {
  content: ''; /* Unicode character for caret */
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid white;
  margin-left: 10px;
  transition: border-top-color 0.3s;
}

nav ul li a#explore:hover:after {
  border-top-color: #ff0;
}

main {
  padding: 20px;
}

.articles-header {
  text-align: center;
  background: transparent;
  padding: 56px 20px 8px;
  margin: 0 auto;
  width: min(100%, 980px);
  box-sizing: border-box;
}


.articles-header h1 {
  color: #111;
  font-family: 'Century Gothic', Arial, sans-serif;
  font-size: clamp(34px, 7vw, 78px);
  line-height: 0.95;
  margin: 0;
  text-transform: uppercase;
}

.articles-header p {
  max-width: 58ch;
  margin: 14px auto 0;
  color: #333;
  font-family: 'Century Gothic', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

.articles {
  text-align: center;
  padding: 36px 0 82px;
}

.article-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.article-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 320px));
  justify-content: center;
  gap: clamp(24px, 4vw, 46px);
  width: 100%;
}

.article {
  max-width: 320px;
  text-align: left;
  box-sizing: border-box;
}

.article img {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  display: block;
  object-fit: cover;
  box-sizing: border-box;
}

.article h2 {
  font-size: 18px;
  line-height: 1.18;
  margin: 12px 0 6px;
  color: #000000;
  font-family: 'Century Gothic', Arial, sans-serif;
  font-weight: 700;
}

.article p {
  color: #000000;
  letter-spacing: 0;
  font-family: 'Century Gothic', Arial, sans-serif;
  font-size: 14px;
  line-height: 1.55;
}
.bold-gray {
  font-weight: bold;
  color: gray;
}
.date {
  margin-top: 0;
  margin-bottom: 8px;
}
.bold-paragraph {
  font-weight: 300; /* Makes the paragraph slightly bolder than normal */
  margin-bottom: 16px; /* Adds some space after the paragraph */
}

footer {
  width: 100%; /* Full width */
  background-color: #000;
  color: #fff;
  text-align: center;
  padding: 0px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

.footer-container {
  display: flex;
  justify-content: center;
  width: 100%;
  background-color: #000;
  color: #fff;
  text-align: center;
  padding: 32px 16px 24px;
  box-sizing: border-box;
}

.footer-shell {
  width: min(100%, 400px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-logo {
  display: flex;
  justify-content: center;
}

.footer-brand-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.footer-logo img {
  width: 112px;
  height: auto;
  display: block;
}

.footer-social-media {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-social-media a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
}

.footer-social-media a img {
  width: 28px;
  height: auto;
  margin: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.footer-social-media a img:hover {
  transform: scale(1.15);
  opacity: 0.92;
}

.footer-heading {
  margin: 0;
  max-width: 28ch;
  color: #fff;
  font-family: 'Century Gothic';
  font-size: 22px;
  line-height: 1.2;
}

.footer-newsletter,
.footer-search {
  width: min(100%, 360px);
}

#newsletter-form {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
}

#newsletter-form input[type="email"]::placeholder {
  color: #b0b0b0;
  font-family: 'Century Gothic';
}

#newsletter-form input[type="email"] {
  flex: 1 1 auto;
  min-width: 0;
  height: 46px;
  padding: 0 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
  color: #333;
  background-color: #fff;
  margin-right: 0;
  box-sizing: border-box;
}

#newsletter-form button {
  flex: 0 0 auto;
  height: 46px;
  padding: 0 22px;
  border: none;
  background-color: #b7ee53;
  color: #000000;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  white-space: nowrap;
}

#newsletter-form button:hover {
  filter: brightness(1.03);
}

#search {
  width: 100%;
  box-sizing: border-box;
  height: 48px;
  padding: 0 14px;
  margin-top: 0;
  border: 3px solid #ffffff;
  border-radius: 8px;
  font-size: 16px;
  color: #333;
  background-color: #b7ee53;
}

#search::placeholder {
  color: #fff;
  font-family: 'Century Gothic';
  font-weight: bold;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 0;
}

.footer-links a {
  color: #99caff;
  text-decoration: none;
  font-family: 'Century Gothic';
  display: inline-block;
}

.footer-links a:hover,
.footer-link:hover {
  color: #c9e7ff;
}

.footer-copy {
  margin-top: 0;
}

.footer-copy p {
  color: #ffffff;
  margin: 0;
  font-family: 'Comic Sans MS';
}

@media (max-width: 520px) {
  .footer-container {
    padding: 28px 14px 22px;
  }

  .footer-shell {
    width: 100%;
    gap: 14px;
  }

  .footer-heading {
    max-width: none;
    font-size: 20px;
  }

  #newsletter-form {
    flex-direction: column;
  }

  #newsletter-form input[type="email"],
  #newsletter-form button {
    width: 100%;
  }

  .footer-newsletter,
  .footer-search {
    width: 100%;
  }
}

/* Flat card system */
.flat-card,
.flat-card-box,
.story-card,
.article-card,
.feature-card,
.service-card,
.heat-card,
.media-card,
.route-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 6px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.article.flat-card,
.interview.flat-card,
.featured-section.flat-card {
  padding: 12px;
}

.flat-card img,
.flat-card iframe,
.flat-card video,
.media-card img,
.media-card iframe,
.media-card video {
  border-radius: 4px;
}

.articles .article.flat-card,
.articles .article.flat-card-box,
.articles .article.article-card,
.articles .article.media-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

.articles .article.media-card img,
.articles .article.flat-card img {
  border-radius: 4px;
}

@media (max-width: 900px) {
  header {
    max-width: 100%;
    min-width: 0;
    flex-wrap: wrap;
    gap: 10px;
    height: auto;
  }

  .logo,
  nav,
  nav ul {
    max-width: 100%;
    min-width: 0;
  }

  nav ul {
    justify-content: center;
    flex-wrap: wrap;
  }

  nav ul li {
    right: auto;
  }

  nav ul li a {
    margin-right: 12px;
    font-size: 14px;
  }

  .logo img.production-logo {
    height: 92px;
  }

  .logo .logo-text h1 {
    font-size: 38px;
  }

  .logo .logo-text h2 {
    font-size: 24px;
    margin-top: -7px;
  }

  main,
  .articles,
  .article-list,
  .article-row {
    max-width: 100%;
    min-width: 0;
  }

  .article-row {
    grid-template-columns: repeat(2, minmax(0, 320px));
  }
}

@media (max-width: 620px) {
  html,
  body {
    width: 100%;
  }

  header {
    height: auto;
    min-height: 92px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px;
  }

  .logo img.production-logo {
    height: 78px;
    margin: 0;
  }

  .logo .logo-text h1 {
    font-size: 32px;
  }

  .logo .logo-text h2 {
    font-size: 20px;
    margin-top: -6px;
  }

  nav {
    width: 100%;
    overflow-x: visible;
  }

  nav ul {
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
  }

  nav ul li {
    right: auto;
  }

  nav ul li a {
    margin-right: 0;
    font-size: 13px;
  }

  main {
    width: 100%;
    max-width: 100vw;
    padding: 16px;
    box-sizing: border-box;
  }

  .articles-header {
    padding: 42px 0 4px;
    width: 100%;
    max-width: 100%;
  }

  .articles {
    padding: 28px 0 64px;
  }

  .articles-header h1 {
    font-size: clamp(28px, 7.8vw, 34px);
  }

  .articles-header p {
    width: min(100%, 30ch);
    max-width: 100%;
  }

  .articles,
  .article-list,
  .article-row,
  .article {
    max-width: 100%;
  }

  .article-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }

  .article {
    max-width: none;
  }

  .article p {
    max-width: 32ch;
    overflow-wrap: break-word;
  }
}

/* Popup styles */
.popup-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(255, 255, 0); /* Yellow background with slight transparency */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  visibility: visible; /* Initially visible */
  opacity: 1;
  pointer-events: none;
  animation: articlesPopupAutoDismiss 1.1s ease 0.85s forwards;
  transition: visibility 0s linear 0.5s, opacity 0.5s ease-in-out;
}

.spinning-logo {
  width: 100px;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes articlesPopupAutoDismiss {
  0% {
    opacity: 1;
    visibility: visible;
  }

  99% {
    opacity: 0;
    visibility: visible;
  }

  100% {
    opacity: 0;
    visibility: hidden;
  }
}

/* Let the existing submenu escape its navigation row. */
header nav {
  overflow: visible;
}

nav ul li.dropdown.is-explore-open .dropdown-content {
  display: block;
}

nav ul li.dropdown.is-explore-closed .dropdown-content {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .spinning-logo {
    animation: none;
  }

  .popup-container {
    animation: none;
    transition: none;
    opacity: 0;
    visibility: hidden;
  }
}
