/*
Theme Name:     CMS Web Solutions 2025
Author:         CMS Web Solutions
Author URI:     https://cmswebsolutions.com
*/

/* roboto-regular - latin */
@font-face {
  font-display: swap;
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/roboto-v32-latin-regular.woff2') format('woff2'); 
}

/* roboto-500 - latin */
@font-face {
  font-display: swap; 
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 500;
  src: url('fonts/roboto-v32-latin-500.woff2') format('woff2'); 
}

/* roboto-700 - latin */
@font-face {
  font-display: swap; 
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  src: url('fonts/roboto-v32-latin-700.woff2') format('woff2'); 
}

/* General */
body {
  color: #163D67;
  margin: 0;
  font-family: 'Roboto', Arial, sans-serif;
  line-height: 1.5;
}

/* Skip to Content Link */
.skip-link {
  position: absolute;
  top: -9999px;
  left: 10px;
  background-color: #163D67;
  color: #FFF;
  padding: 0.5rem 1rem;
  text-decoration: none;
  border: 2px solid #FFF;
  border-radius: 10px;
  z-index: 1000;
  transition: top 0.3s ease;
}

.skip-link:focus {
  outline-offset: 0;
  top: 10px;
}

.container {
  max-width: 1060px;
  margin: 0 auto;
  padding: 2rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.hidden {
  display: none;
}

h1 {
  color: #163D67;
  position: relative;
  font-weight: 500;
}

h1::after {
  content: "";
  background-color: currentColor;
  display: block;
  width: 9ch;
  height: 5px;
}

h2, h3, h4, h5, h6 {
  color: #163D67;
  position: relative;
  font-weight: 500;
}

h2 {
  font-size: 2rem;
  font-weight: 500;
}

main a {
  color: #163D67;
}

.header-main a:focus,
main a:hover,
main a:focus {
  color: currentColor;
  outline: 2px currentColor solid;
  outline-offset: 4px;
  border-radius: 2px;
}

/* Contact Info Bar */
.header-top {
  background-color: #163D67;
  color: #FFF;
}

.header-top .container {
  padding: 0 2rem;
}

.contact-info {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 2rem;
}

@media (max-width: 768px) {
  .header-top .container {
    padding: 1rem 2rem;
  }

  .contact-info {
    display: block;
    text-align: center;
  }
}

.contact-info a {
  padding: .75rem;
  color: #FFF;
  text-decoration: none;
}

.contact-info a:hover,
.contact-info a:focus {
  color: #163D67;
  background-color: #FFF;
  text-decoration: underline;
}

/* Header */
.header-main {
  background-color: #FFF;
  padding: 1rem 0;
}

.header-main .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

.logo {
  max-height: 90px;
  height: auto;
  display: block;
}

/* Navigation */
#menu-toggle {
  display: none;
}

.menu {
  display: flex;
  flex-direction: row;
  margin: 0;
  padding: 0;
  gap: 2rem;
  align-items: center;
}

.menu ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu li a {
  color: #163D67;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  transition: color 0.3s ease, -webkit-text-decoration 0.3s ease;
  transition: color 0.3s ease, text-decoration 0.3s ease;
  transition: color 0.3s ease, text-decoration 0.3s ease, -webkit-text-decoration 0.3s ease;
}

.menu li a:hover,
.menu li a:focus {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 4px;
}

/* Mobile Menu */
@media (max-width: 768px) {
  .header-main .container {
    flex-direction: column;
    align-items: center;
  }

  #menu-toggle {
    display: block;
    margin: 0 auto;
    background-color: #163D67;
    color: #FFF;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 10px;
    transition: background-color 0.3s ease, transform 0.2s ease;
  }

  #menu-toggle:hover,
  #menu-toggle:focus {
    background-color: #163D67;
    transform: scale(1.05);
  }

  .menu {
    position: relative;
    width: 100%;
  }

  .menu button[aria-expanded="false"] + ul {
    display: none;
  }

  .menu button[aria-expanded="true"] + ul {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    width: 100%;
    text-align: center;
    background-color: #FFF;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    border-top: 1px solid #E0F2FE;
    z-index: 1000;
  }

  .menu li {
    margin: 0.5rem 0;
  }

  .menu li a {
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    transition: background-color 0.3s ease, color 0.3s ease;
  }

  .menu li a:hover,
  .menu li a:focus {
    background-color: #F6FBFF;
    color: #163D67;
  }
}

/* Hero Section */
.hero {
  background-color: #E0F2FE;
  padding: 3rem 1rem;
}

.hero .wp-block-group__inner-container {
  max-width: 1060px;
  margin: 0 auto;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  padding-left: 2rem;
  padding-right: 2rem;
}

.wp-block-button__link {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #163D67;
  border: 2px solid #163D67;
  color: #FFF;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.wp-block-button__link:hover,
.wp-block-button__link:focus {
  color: currentColor;
  background-color: #F6FBFF;
}

/* Mobile Hero Section */
@media (max-width: 768px) {
  .hero {
    padding: 2rem 1rem;
  }

  .wp-block-media-text {
    flex-wrap: wrap;
  }

  .wp-block-media-text .wp-block-media-text__content,
  .wp-block-media-text .wp-block-media-text__media {
    flex: 1 1 100%;
    max-width: 100%;
    /* text-align: center; */
    order: initial;
  }

  .wp-block-media-text .wp-block-media-text__content {
    padding: 1rem 0;
  }

  .wp-block-media-text .wp-block-media-text__content h1 {
    font-size: 2rem;
  }

  .wp-block-button__link {
    font-size: 1rem;
    padding: 0.5rem 1rem;
  }
}

main img {
  border-radius: 10px;
}

.preamble {
  background-color: #F6FBFF;
}

.podcast {
  margin-top: 4rem;
  padding: 3rem 1rem;
  background-color: #163D67;
  background-image: url(img/microphone.jpg);
  background-position: center right;
  background-repeat: no-repeat;
  background-size: cover;
}

.podcast .container {
  margin: 2rem auto;
  max-width: 600px;
  background: #FFF;
  border-radius: 10px;
}

.lede {
  font-size: 2rem;
}

.columns {
  display: flex;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media screen and (max-width: 768px) {
  .columns {
    display: block;
  }
}

.callout {
  padding: 2rem;
  border-radius: 10px;
}

.callout ul {
  padding-left: 0;
}

.callout li,
h3.checkmark {
  position: relative;
  list-style: none;
  margin-bottom: 1rem;
  padding-left: 30px; 
}

.callout li::before,
h3.checkmark::before {
  content: "";
  position: absolute;
  left: 0;
  /* top: 50%; */
  transform: translateY(10%);
  /* transform: translateY(-50%); */
  width: 20px; 
  height: 20px;
  background-image: url(img/checkmark.png);
  background-size: contain;
  background-repeat: no-repeat;
}

/* Podcasts */

.posts {
  list-style: none;
  padding-left: 0;
}

.posts a {
  display: block;
  text-decoration: none;
  color: currentColor;
}

.season,
.title {
  margin-top: 0;
  text-transform: uppercase;
}

.season::after,
.title::after {
  content: "";
  background-color: currentColor;
  display: block;
  width: 10ch;
  height: 5px;
}

.posts a h2 {
  color: currentColor;
}

audio {
  width: 100%; 
  border-radius: 10px; 
  padding: 5px;
}

audio:focus {
  outline: 2px solid #163D67;
  outline-offset: 4px;
}

details {
  background-color: #E0F2FE;
  border-radius: 10px;
  margin-bottom: 1rem;
  padding: 1rem;
}

summary {
  font-size: 1.2rem;
  list-style: none;
}

summary::before {
  content: "+";
  margin-right: 10px;
}

details[open] summary::before {
  content: "-";
}

.guest-lede {
  font-size: 1rem;
  text-transform: uppercase;
}

.guest-lede::after {
  content: "";
  background-color: currentColor;
  display: block;
  width: 16ch;
  height: 5px;
}

.guest {
  font-size: 1.2rem;
}

/* Podcast category page */
.list-item {
  display: flex;
  align-items: flex-start;
  overflow: visible; 
  position: relative;
  cursor: pointer;
  padding: 1.5rem;
  margin: 2rem 0 calc(2rem + 20px);
}

.list-item img {
  flex-shrink: 0;
  width: 300px;
  height: auto;
  position: absolute;
  top: -20px; 
  left: 20px; 
  z-index: 2;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.list-item .content {
  flex-grow: 1;
  background-color: #E0F2FE;
  border-radius: 10px;
  padding: 20px 20px 20px 150px;
  margin-left: 200px;
  position: relative;
  z-index: 1;
}

.posts li:first-of-type a {
  color:#FFF;
}

.posts li:first-of-type .content {
  color: #FFF;
  background-color: #163D67;
}

.list-item a:hover .content,
.list-item a:focus .content {
  color: #FFF;
  background-color: #163D67;
}

.posts li:first-of-type .list-item a:hover .content,
.posts li:first-of-type .list-item a:focus .content {
  color: #163D67;
  background-color: #E0F2FE;
}

.category-navigation {
  margin: 20px 0;
  padding: 0;
  text-align: center;
}

.category-navigation ul {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: space-between;
  margin: 10px 0;
}

.category-navigation li {
  flex: 1;
}

.category-navigation a {
  color: #FFF;
  background-color: #163D67;
  border: 5px solid transparent;
  border-radius: 10px;
  padding: .5rem 1rem;
  text-decoration: none;
}

.category-navigation a:hover,
.category-navigation a:focus {
  color: #163D67;
  background-color: #FFF;
  border: 5px solid #163D67;
}

@media screen and (max-width: 768px) {
  .list-item {
    display: block;
    padding: 10px;
  }

  .list-item img {
    position: relative;
    /* top: 0; */
    left: 0;
    margin-bottom: 20px;
    width: 100%; 
    max-width: 300px; 
    margin: 0 auto; 
    display: block;
  }

  .list-item .content {
    margin-left: 0;
    padding: 20px;
  }
}

footer {
  color: #FFF;
  background-color: #163D67;
}

footer .columns {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

@media screen and (max-width: 768px) {
  footer .columns {
    display: block;
  }
}

footer h2 {
  color: #FFF;
  font-size: 1.25rem;
}

footer a {
  color: #FFF;
}

footer a:hover,
footer a:focus {
  color: #ABCD61;
}

footer ul {
  list-style: none;
  padding-left: 0;
}

.social {
  display: flex;
}

.social li {
  margin-right: 0.5em;
  list-style: none;
}

.social a {
  color: #FFF;
  display: block;
}

.social a:hover,
.social a:focus {
  color: #ABCD61;
}

.social svg {
  width: 25px;
  height: 25px;
  fill: #FFF;
  padding: 0.5em;
}

.social svg:hover,
.social svg:focus {
  fill: #ABCD61;
}