/*
 Theme Name:   WLRH.org Child
 Theme URI:    https://wlrh.org/wlrh-child
 Description:  Child theme for WLRH Bootstrap
 Author:       Chester Lee
 Author URI:   https://aptv.org
 Template:     wlrh
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  wlrh-child
*/

html, body {
  font-family: 'Roboto', sans-serif !important;
}

.gap-3 {
    gap: 20px;
}

body {
  overflow-x: hidden;
}

p{
font-size: 18px;
}

a:hover {
    text-decoration: underline;
}

#main {
    margin-top: 30px !important;
    margin-bottom: 40px !important;
}


@media (min-width: 1400px) {
    .container{ max-width: 1550px !important;}
}


.row img{
	max-width: 100%;
}

.image-wrapper {
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;

}

.eachnews .image-wrapper{
     border-top-right-radius: 20px;
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* crops to fill while preserving aspect ratio */
  display: block;
}

.audio-progress {
  height: 6px;
  background: #e9ecef;         /* light grey track */
  border-radius: 3px;
  margin-top: 6px;
  overflow: hidden;
  width: 100%;
}
.audio-progress__bar {
  height: 100%;
  width: 0%;
  background: #0d6efd;         /* Bootstrap primary blue */
  transition: width 0.2s linear;
}

/* main page */
.row.hero {
    background-color: #3c5eae;
    margin: 0px 0px 50px -15px;
    color:white;
}

.hero .interior-news {
    padding: 20px 20px 20px 0px;
}

p.greydate {
    font-size: 14px;
    text-transform: uppercase;
    margin: 5px 0px 5px 0px;
    font-weight: 600;
    color: grey;
}

.hero p.greydate {
    color: white;
}

.hero h2 a {
    color: white;
    font-weight: bold;
}

p.series {
    font-size: 16px;
    margin: 0px;
}

p.title {
    font-weight: 600;
    font-size: 28px;
    line-height: normal;
    margin: 5px 0px;
    padding: 0px;
}
p.title a {
    color: black;
}

.story-1 p.title {
    font-size: 36px;
    line-height: 42px;
    margin-bottom: 10px;
}
.story-1 p.desc {
    font-size: 24px;
    line-height: 32px;
}

.story-2 {
    padding-left: 50px;
}

.story-2 p.title {
    font-size: 20px;
}
.story-2 p.desc {
    display: none;
}
.story-2 .interior-news {
    padding: 0px 0px 30px 0px;
}

.story-2 p.title {
    font-size: 24px;
    margin: 0px 0px 5px 0px;
}

.featured-news {
    margin: 50px 0px;
}

.listen-more .title, .more-news .title {
    font-size: 20px;
}

.listen-more p.desc, .more-news p.desc {
    font-size: 16px;
}

.each-episode {
    margin-bottom: 50px;
}

/* Make eachnews cards equal height */
.row.morenews {
  display: flex;
  flex-wrap: wrap;
}

.eachnews {
  display: flex;
  flex-direction: column;
  margin-bottom: 30px;
}

.eachnews .interior-news {
    background-color: #efefef;
    padding: 20px;
}

/* Ensure interior-news stretches to fill available space */
.eachnews .interior-news {
  display: flex;
  flex-direction: column;
  flex: 1; /* takes up remaining space */
}

.more-news.desktop {
    display: block;
}

.more-news.mobile {
    display: none;
}

@media (min-width: 0px)  and (max-width: 1100px) {
    .story-2 {
        padding-left: 0px;
    }

    .story-2 p.title {
        font-size: 18px;
        margin: 5px 0px 10px 0px;
    }

    .hero .interior-news {
        padding: 10px 10px 10px 0px;
    }

    .hero h2 {
        font-size: 26px;
    }

    .story-1 p.desc {
        font-size: 20px;
        line-height: 28px;
    }
}

@media (min-width: 768px)  and (max-width: 993px) {
      .hero .image-wrapper {
        aspect-ratio: auto;
        width: 100%;
        overflow: auto;
    }   

    .story-1 {
        margin-bottom: 50px;
    }
    .story-2 p.desc {
        display: block;
    }

    .featured-news p.title, .listen-more p.title {
        font-size: 18px;
    }

    .more-news.desktop {
        display: none;
    }

    .more-news.mobile {
        display: block;
    }
}

@media (min-width: 0px)  and (max-width: 767px) {
    .hero .interior-news {
        padding: 30px;
    }

 .story-2 p.desc {
        display: block;
    }

.story-1 p.title, .featured-news .title, .story-2 p.title {
    font-size: 20px;
    line-height: 24px;
    margin-bottom: 10px;
}

    .story-1 {
    margin-bottom: 30px;
    }

    .featured-news .interior-news {
    padding-bottom: 30px;
    }
}


/***************************************************header*/
nav.navbar {
    background-color: #46415d !important;
    color: white;
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
}

/* Remove left padding from the first nav item */
#menu-navigation > li:first-child .nav-link {
    padding-left: 0;
}

/* Increase horizontal spacing between menu items */
#menu-navigation > li {
    margin-right: 1.2rem; /* adjust as needed (1rem ≈ 16px) */
}

/* Optionally, ensure the last one doesn't push too far right */
#menu-navigation > li:last-child {
    margin-right: 0;
}

@media (min-width: 768px)  and (max-width: 992px) {
   #menu-navigation > li {
    margin-right: 9px; /* adjust as needed (1rem ≈ 16px) */
    }
    nav.navbar {
    font-size: 14px;
    text-transform: none;
    }
}


.nav-link{
    color:#fff !important;
}

.nav-link:focus, .nav-link:hover, .nav-link.active {
    color: #ffc107 !important;
}

button.navbar-toggler {
    color: white !important;
    text-align: center !important;
}

.btn-donate {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
    white-space: nowrap;
}


/***************************************************sidebar*/
#sidebar .promo-item, #sidebar #widget-area {
    text-align: center;
    margin: 0 auto; 
     margin-bottom: 40px;
}

.promo-title a {
    font-size: 24px;
    font-weight: bold;
    color: black;
}

.promo-text {
    width: 300px;
    border-bottom: solid;
    border-left: solid;
    border-right: solid;
    border-width: 1px;
    padding: 20px;
    font-size: 18px;
    margin-left: auto;
    margin-right: auto;
}

a.dropdown-item:hover {
    background-color: #7f74b7;
    color: white;
}


@media (min-width: 768px)  and (max-width: 1028px) {
	.promo-text {
	    width: 100%;
	}
}

@media (min-width: 1199px){ 
    #sidebar .promo-item, #sidebar #widget-area {
        text-align: center;
        margin: inherit;
        margin-bottom: 40px;
        width: 300px;
        float: right;
    }
}


/********************************************************footer*/
#footer {
    background-color: #000000 !important;
    color: white;
    padding: 50px 0px 40px 0px;
}

#footer p {
    font-size: 16px;
}

#footer a{
    color:white;
    text-decoration: underline;
}

#footer a:hover{
    text-decoration: none;
}

#footer .wp-block-columns {
    margin-bottom: 0px !important;
}

.SocialBar-items {
  display: flex;           /* Makes the <li> items line up horizontally */
  gap: 1rem;               /* Space between icons (adjust as needed) */
  list-style: none;        /* Removes default bullets */
  margin: 0;               /* Remove default <ul> margin */
  padding: 0;              /* Remove default <ul> padding */
}

.SocialBar-items-item a {
  display: inline-flex;    /* Keeps icon clickable area tight */
  align-items: center;     /* Vertically centers the icon */
  justify-content: center; /* Centers icon horizontally */
  color: inherit;          /* Matches parent text color */
  text-decoration: none;   /* No underline */
  transition: transform 0.2s ease;
}

.SocialBar-items-item a:hover {
  transform: scale(1.1);   /* Slight grow on hover (optional) */
}

a.SocialLink {
    text-decoration: none !important;
}


#footercopyright {
    background-color: #56516b;
    color: white;
    font-weight: 600;
    padding: 15px 0px;
    font-size: 14px !important;
}

#footercopyright p{
    font-size: 14px !important;
    margin: 0px;
    padding: 0px;
}

/****************************************All Series and Archived Series Page */
.series-grid.row {
    margin-top: 40px;
}

.series-item {
    margin-bottom: 60px;
}

.series-item img {
    min-width: 100%;
}

a .series-title {
    margin: 10px 0px 0px 0px;
    font-size: 24px;
    color: black;
    font-weight: 600;
}



/***************episode cards and page*********************************/
.full-episode-image img {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    /* min-width: 100%; */
    object-fit: cover;
    display: block;
    width: 100%;
}

.description {
    margin: 30px 0px;
}

.focus-title {
    font-weight: 700;
    margin: 10px 0px 20px;
}

p.return-link{
    font-weight:600;
}

.series-info {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: flex-start;
    margin-bottom: 15px;
}

img.series-image {
    flex: 1;
}
.series-text {
    flex: 2;
}

p.episode-date {
    font-size: 14px;
    margin: 0px 0px 5px 0px;
    color: grey;
    font-weight: 500;
}

h1.series-title {
    margin: 0px 0px 20px;
    padding: 0px;
    font-weight: 700;
}

h3.hosted {
    font-size: 20px;
    margin-bottom: 0px;
}

.series-host-card {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    align-items: center;
}
.series-host-card img {
    border-radius: 100px;
    width: 80px;
}


#episodes-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.episode-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    
}

.episode-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
}

.episode-image img {
    width: 200px;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.episode-image:hover img {
    transform: scale(1.03);
}

.episode-content {
    flex: 1;
    min-width: 200px;
}

.episode-title {
    margin: 0 0 0.5rem;
    font-size: 1.3rem;
}

.episode-title a {
    text-decoration: none;
    color: inherit;
}

.episode-title a:hover {
    text-decoration: underline;
}

.episode-description {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    color: #444;
}

.episode-content audio {
    width: 100%;
    margin-top: 0.5rem;
}

#load-more-episodes {
    display: block;
    margin: 2rem auto;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    background-color: #0073aa;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

#load-more-episodes.loading::after {
    content: "";
    display: inline-block;
    margin-left: 10px;
    width: 14px;
    height: 14px;
    border: 2px solid #ccc;
    border-top: 2px solid #333;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

#load-more-episodes:hover {
    background-color: #005f8d;
    transform: scale(1.02);
}


@media (max-width: 767.98px){
    #navbar .navbar-nav .nav-link {
    font-size: 1.1rem; /* bigger text */
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }

  .navbar-brand img {
    width: 100%;
    max-width: 100%;
    height: auto;
  }


}

@media (max-width: 576px) {
    .episode-row {
        flex-direction: column;
        align-items: center;
    }

    .episode-image img {
        width: 100%;
        max-width: 300px;
    }

    .episode-content {
        text-align: center;
    }
     .top-bar .gap-3 {
        gap: 0.75rem !important; /* slightly tighter gap on small screens */
     }
  
    .top-bar .btn-donate {
    font-size: 0.9rem;
    padding: 0.3rem 0.6rem;
    }

}
 