h1.page-header__title, h2.page-header__headline, h3.page-header__meetup, .page-sermons__title, .page-featured__title {
    font-family: var(--serif);
    font-weight: 300;
    line-height: 1.1;
}

.page-sermons__title {
  font-size: 50px;
}

.page-header {
    position: relative;
}

.page-header__container {
    padding-top: 10rem;
    padding-bottom: 10rem;
}

.page-header__title {
    margin: 0 0 .5em;
    font-weight: 200 !important;
    font-size: 66px;
}

.page-header__headline {
    margin-top: 0;
    margin-bottom: .25em;
    font-size: 40px;
}

.page-header__meetup {
    margin-top: 0;
    margin-bottom: 2rem;
    font-size: 30px;
    font-style: italic;
}

.page-header__actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 768px) {
    .page-header__container {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }
    
    .page-header__title {
        margin-top: 1rem;
        margin-bottom: 0.5rem;
        font-size: 42px;
    }

    .page-header__headline {
        font-size: 24px;
        margin-bottom: 0.75rem;
    }

    .page-header__meetup {
        font-size: 16px;
        margin-bottom: 1.5rem;
    }
}

/* Page Header Video */
.page-header__video-wrapper {
  width: 100%;
  max-width: 800px;
  margin: 0 auto 3rem;
}

/* The #player styles from your media player partial will handle the rest */

/* Center align content when video is present */
.page-header--has-video .page-header__title,
.page-header--has-video .page-header__headline,
.page-header--has-video .page-header__meetup {
  text-align: center;
}

.page-header--has-video .page-header__actions {
  justify-content: center;
}

@media (max-width: 768px) {
  .page-header__video-wrapper {
    margin-bottom: 2rem;
  }
}


/* Center align content when video is present */
.page-header--has-video .page-header__title,
.page-header--has-video .page-header__headline,
.page-header--has-video .page-header__meetup {
  text-align: center;
}

.page-header--has-video .page-header__container {
  padding: 5rem 0;
}

.page-header--has-video .page-header__actions {
  justify-content: center;
}

@media (max-width: 768px) {
  .page-header__video-wrapper {
    margin-bottom: 2rem;
  }
}


/* Page About Section */
.page-about {
  padding: 4rem 0;
}

.page-about__container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.page-sermons__container, .page-events__container {
  max-width: 1400px;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.page-about__grid {
  display: grid;
  grid-template-columns: 2.33fr 1fr;
  gap: 4rem;
  align-items: start;
}

.page-about__content {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 27px;
  line-height: 1.3;
  overflow-wrap: break-word; /* Prevent content overflow */
  word-wrap: break-word;
}

.page-about__content p {
  margin-bottom: 1.5rem;
  line-height: 1.4;
  font-weight: 300;
}

.page-about__content img {
  max-width: 100%; /* Prevent images from causing overflow */
  height: auto;
}

.page-about__sidebar {
  position: -webkit-sticky;
  position: sticky;
  top: 2rem;
  align-self: start;
}

/* Responsive */
@media (max-width: 1024px) {
  .page-about__grid {
      gap: 2rem;
  }
  
  .page-about__content {
      font-size: 24px;
  }
}

@media (max-width: 768px) {
  .page-about__grid {
      grid-template-columns: 1fr;
      gap: 2rem;
  }

  .page-about__sidebar {
      position: static;
  }

  .page-about__content {
      font-size: 20px;
  }
}
/* Social Links in Sidebar */
.page-about__social-links {
  padding-top: 1.5rem;
  border-top: 1px solid #e5e5e5;
}

.page-about__social-icons {
  display: flex;
  gap: .25rem;
  align-items: center;
}

.page-about__social-icon {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.page-about__social-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor; /* This makes the SVG inherit the color */
}

.page-about__social-icon:hover {
  transform: scale(1.1);
  opacity: 0.8;
}

  /* Featured Content */

  h3.featured-custom__headline { font-size: 38px; font-family: var(--serif); font-weight: 300; border-top: 2px solid var(--gray); margin: 2em auto 0; padding: 19px 0 0; }
  .featured-custom__text { font-size: 21px; }
  .featured-custom__text p, .featured-custom__text li { font-weight: 450; line-height: 1.5; font-size: 20px; }
  .featured-custom__text li { margin: .5em .125em; }
  
/* Section spacing and full width */
.page-featured__container {
  width: 100%;
  max-width: 100%;
}

.page-featured__section {
  margin: 2rem 0;
  width: 100%;
}

/* Featured label and title grouping */
.page-featured__header {
  margin-bottom: 0;
}

.page-featured__label {
  margin-bottom: 0.5rem;
}

.page-featured__title {
  font-size: 2.75rem;
  line-height: 1.2;
  margin: 0;
}

/* Featured Video - Centered */
.page-featured__video-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.featured-video {
  width: 100%;
  /* Remove the padding-bottom hack since the media player handles aspect ratio */
}

/* The #player from media-player.php already handles responsive video */
.featured-video #player {
  width: 100%;
}

/* Featured Post - Grid Layout */
.featured-post {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.featured-post__content {
  width: 100%;
}

.featured-post__excerpt {
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  color: #333;
}

.featured-post__link {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  text-decoration: none;
  border-left: 3px solid var(--rust);
  padding-left: 1rem;
}

.featured-post__image {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
}

.featured-post__image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Reverse layout for alternating posts */
.featured-post--reverse {
  direction: rtl;
}

.featured-post--reverse > * {
  direction: ltr;
}

/* Custom Featured Section - Grid Layout */
.featured-custom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

/* Without image - full width content */
.featured-custom--no-image {
  grid-template-columns: 1fr;
  max-width: 800px;
}

.featured-custom__content {
  width: 100%;
}

.featured-custom__text {
  font-size: 1.125rem;
  line-height: 1.6;
  color: #333;
}

.featured-custom__image {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
}

.featured-custom__image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Reverse layout for alternating sections */
.featured-custom--reverse {
  direction: rtl;
}

.featured-custom--reverse > * {
  direction: ltr;
}

/* Video description */
.page-featured__description {
  font-size: 1.125rem;
  line-height: 1.6;
  margin-top: 1rem;
  color: #666;
}

/* Custom section button */
.featured-custom__button {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  text-decoration: none;
  border-left: 3px solid var(--rust);
  padding-left: 1rem;
  margin-top: 1.5rem;
  transition: padding-left 0.2s ease;
}

.featured-custom__button:hover {
  padding-left: 1.5rem;
}


/* Responsive */
@media (max-width: 992px) {
  .featured-post,
  .featured-custom {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  /* Remove reverse direction on mobile */
  .featured-post--reverse,
  .featured-custom--reverse {
    direction: ltr;
  }
  
  /* Image appears first (on top) on mobile */
  .featured-post__image,
  .featured-custom__image {
    order: -1;
  }
  
  .page-featured__title {
    font-size: 2rem;
  }
}