/* =BODY */
body {
  font-size: large;
  font-family: Arial, Helvetica, sans-serif;
  color: #555;
  line-height: 1.4;
  background-color: #cecece;
  margin: 0;
  padding: 0;
}

/* =LAYOUT */
#spacer {height: 8px; width: 98%; margin: 0 auto; }

#pod-home section{display:none;}

nav {
  width: 98%;
  margin: 0 auto;
  background-color: #fff;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  padding: 10px 0;
  border: 1px solid black;
}

nav ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

nav li {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 1.2em;
  text-align: center;
}

nav img {
  display: block;
  width: 65px;
  height: 65px;
  margin: 0 auto 6px;
}

@media (max-width: 600px) {
  nav li {
    margin: 0.4em;
  }
  nav img {
    width: 70px;
    height: 70px;
  }
}

/* =FOOTER */
footer {
  max-width: 98%;
  margin: 16px auto 0 auto;
  background-color: #fff;
  color: #000;
  font-size: 80%;
  padding: 20px;
  box-sizing: border-box;
  min-height:150px;
  border: 1px solid black;
}

footer .footerlinks,
footer .footerypod {
  text-align: center;
  float: none;
  width: 100%;
  padding: 10px 0;
}

footer .footerabout {
  width: 100%;
  text-align: center;
  margin-bottom: 10px;
}

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

footer li {
  display: inline-block;
  margin: 0 10px;
}

@media (min-width: 768px) {
  footer .footerabout { float: left; width: 40%; text-align: left; }
  footer .footerypod { float: right; width: 45%; text-align: right; }
}

/* =TYPOGRAPHY */
h1, h2, h3, p { margin: 0; color: #000; }
h1 {font-size: 1.4rem; padding:8px;}
h2 {font-size: 1.2rem; padding:8px;}
#categories h2{text-align: center; text-decoration: underline #4353ff; padding:40px;}
h3 { padding: 8px; font-size: 1.2rem; }
p { padding: 0 8px; line-height: 1.8; font-size: 1rem; }

/* =LINKS */
a { text-decoration: none; color: #4353ff; }
a:hover { text-decoration: underline; }
a.cats { color: #ffffff; }
a.cats:hover { color: #4353ff; }

/* =HOME */
#pod-home, #pod-home2 {
  max-width: 98%;
  margin: 0 auto;
  color: #000;
  padding-top: 8px;
  background-color: #fff;
  border: 1px solid black;
}
#pod-home2 { background-color: #f3f4f4; }

.wrap {max-width: 98%; margin: 0 auto; padding:10px;}

/* =CATEGORIES */
ul.img-list {
  list-style-type: none;
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  justify-items: center;
max-width: 90%;
}

ul.img-list li {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 200px;
  aspect-ratio: 1 / 1;
}

ul.img-list img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) brightness(0.9);
  transition: all 0.4s ease;
}

span.text-cats {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: bold;
  font-size: 1rem;
  transition: all 0.4s ease;
}

ul.img-list li:hover img {
  filter: none;
  background-color: #fff;
}

ul.img-list li:hover span.text-cats {
  background: rgba(255,255,255,0.8);
  color: #4353ff;
}

/* =PODCAST GRID */
ul.pod-list {
  list-style: none;
  display: grid;
  gap: 20px;
  padding: 0;
  margin: 0 auto;
}

ul.pod-list li { position: relative; }

.pod-link {
  display: block;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.pod-link img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.pod-link:hover img { transform: scale(1.05); }

.overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pod-link:hover .overlay { opacity: 1; }

/* =EPISODES */
#episode-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}

#pennod-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.episode-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
}

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

.episode-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

/* =RESPONSIVE BREAKPOINTS */
@media (max-width: 768px) {
  body {font-size: medium; }
  #pod-home, #pod-home2 { width: 98%; }
}

@media (max-width: 480px) {
  ul.pod-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
#episode-list {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
  ul.img-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  nav li { width: 70px; }
  span.text-cats { font-size: 0.9rem; }
}

@media (min-width: 481px) and (max-width: 1024px) {
  ul.pod-list {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }
#episode-list {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
  ul.img-list {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }
  nav li { width: 80px; }
  span.text-cats { font-size: 0.9rem; }
}

@media (min-width: 1025px) {
  ul.pod-list {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
  }

}


/* Favourites */
#favs-bar{width:98%;margin:10px auto;background-color:#fff;border: 1px solid black;}
#favs-bar div{margin:4px;}


/* Search Box */
#controls{display: block; margin: 1rem auto;}

#search-box {
  width: 60%;
  max-width: 600px;
  padding: 12px 16px;
  font-size: 1rem;
  color: #333;
  background-color: #fff;
  border: 1.5px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.25s ease;
}

#search-box::placeholder {
  color: #aaa;
}

#search-box:focus {
  outline: none;
  border-color: #0077ff;
  box-shadow: 0 0 6px rgba(0, 119, 255, 0.3);
  background-color: #f9fbff;
}

#category-filter {
  width: 20%;
  max-width: 200px;
  padding: 12px 16px;
  font-size: 1rem;
  color: #333;
  background-color: #fff;
  border: 1.5px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.25s ease;
  appearance: none;           /* removes default arrow styling */
  -webkit-appearance: none;   /* Safari fix */
  -moz-appearance: none;      /* Firefox fix */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23777' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5H7z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
 
}

#category-filter:focus {
  outline: none;
  border-color: #0077ff;
  box-shadow: 0 0 6px rgba(0, 119, 255, 0.3);
  background-color: #f9fbff;
}

/* Optional: make placeholder (first option) gray */
#category-filter option[value=""] {
  color: #888;
}


/* Social Icons */

:root {
  --facebook: #3B5998;
  --twitter: #55ACEE;
  --linkedin: #0e76a8;
  --instagram: #e4405f;
  --whatsapp: #4FCE5D;
  --share: #cc0000;
}

.fa {
  padding: 5px;
  margin: 5px;
  float: left;
  color: #fff;
  width: 40px;
  height: 40px;
  text-align: center;
  text-decoration: none;
  border-radius: 50%;
 font: normal normal normal 40px/1 FontAwesome !important;
}

.fa:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

/* Social Brand Colors */
.fa-facebook    { background: var(--facebook); }
.fa-twitter     { background: var(--twitter); }
.fa-linkedin    { background: var(--linkedin); }
.fa-instagram   { background: var(--instagram); }
.fa-whatsapp    { background: var(--whatsapp); display: none; }


label {
    display:block;
    margin-top:20px;
    letter-spacing:2px;
}

/* Centre the page */
.body {
    display:block;
    margin:0 auto;
    width:80%;
    padding:20px;
}

/* Centre the form within the page */
form {
    margin:0 auto;
    width:80%;
}

/* Style the text boxes */
input, textarea {
	width:80%;
	height:27px;
	background:#efefef;
	border:1px solid #dedede;
	padding:10px;
	margin-top:3px;
	font-size:0.9em;
	color:#3a3a3a;
}

textarea {
	height:213px;
    width:80%;
}

input, textarea {
    width:80%;
    height:27px;
    background:#efefef;
    border:1px solid #dedede;
    padding:10px;
    margin-top:3px;
    font-size:0.9em;
    color:#3a3a3a;
    -moz-border-radius:5px;
    -webkit-border-radius:5px;
    border-radius:5px;
}

input:focus, textarea:focus {
    border:1px solid #97d6eb;
}

#submit {
    width:127px;
    height:38px;
    border:none;
    margin-top:20px;
    cursor:pointer;
}

	#submit:hover {
	    opacity:.9;
	}
