/* -------------GF DAVID testimony category seletion* ------- */

body {
  background: #121212;
  font-family: "Lora", serif;
  font-size: 2rem;
  font-style: normal;
  font-weight: normal;
}

.category-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.category-bar {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 0.6rem;
  padding: 0.5rem 0.5rem;
  margin: 0 auto;
  scrollbar-width: none;
}

.category-bar::-webkit-scrollbar {
  display: none;
}

.category {
  flex: 0 0 auto;
  padding: 0.5rem 1rem;
  /*background-color: #f1f1f1;*/
  border: none;
  border-radius: 20px;
  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}
/*
.category:hover {
  background-color: #e0e0e0;
 
}*/

.category:hover,
.category:focus,
.category:active {
  color: #fb8b23;
  font-weight: 600;
  transform: scale(1.05);
 
}


.category.active {
  background-color: #000;
  color: #fff;
}

.scroll-btn {
  display: none; 
  background: #fff;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0 0.5rem;
  color: #333;
  z-index: 2;
}

.scroll-btn.visible {
  display: block;
}

.scroll-btn:hover {
 /* color: #000; */
  color:#000;
  background-color:#fb8b23;
}

.scroll-btn.left {
  margin-right: 0.3rem;
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
}

.scroll-btn.right {
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
  margin-left: 0.3rem;
}



/* ------------- testimony overall section* ------- */

.testimony-page-content{
  background-color: #0f0f0f;
}

.testimony-text-heading{
  max-width: 90%;
  margin: 0 auto;
}


.testimony-text-heading h3,
.testimony-text-heading h2 {
  text-align: center;
  color: #f1f1f1;
}

.testimony-text-heading p {
  color: #f1f1f1;
  font-size: 1.5rem;
}

.testimony-text-heading p {
  margin-top: 1rem; 
}

.testimony-text-heading{
padding-top: 2rem;

}

/* ------------------- testimony rows * ----------- */

.tstimony-page {
  max-width: 90%;
  margin: 0 auto;
  padding: 1rem 1rem;
 /* font-family: Arial, sans-serif; */
  padding-top: 2rem;
  padding-bottom: 5rem;
  background-color: #0f0f0f;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.video-card {
  cursor: pointer;
  transition: transform 0.3s ease;
}

.hidden{
  display: none;
}

.video-card:hover {
  transform: translateY(-4px);
}

.thumbnail {
  width: 100%;
  border-radius: 8px;
  display: block;
}

.video-info {
  margin-top: 0.6rem;
}

.video-title {
  font-size: 1rem;
  font-weight: bold;
  color: #f1f1f1;
  margin: 0 0 0.3rem;
  line-height: 1.3;
}

.channel-name {
  font-size: 0.9rem;
  color: #606060;
  margin: 0;
}

.meta {
  font-size: 0.8rem;
  color: #909090;
  margin-top: 0.2rem;
}

/* ------------- testimony video-placeholder and play button styling* ------- */

/* Container for the video element */
.video-placeholder {
    position: relative; /* Needed for absolute positioning of iframe/image */
    width: 100%;
    /* 16:9 aspect ratio trick: 9 / 16 = 0.5625 = 56.25% */
    padding-bottom: 56.25%; 
    height: 0;
    cursor: pointer;
    overflow: hidden; /* Ensures content doesn't spill out */

    /* ↓↓↓ ADDed 4 lines (optional but beautiful) */
    background: #000;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

/* Ensure the thumbnail and the eventual iframe fill the container */
.video-placeholder .thumbnail,
.video-placeholder iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Optional: Style for the play button overlay */
/* 
.play-button-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 50px;
    color: white;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    line-height: 80px;
    text-align: center;
    pointer-events: none; /* Allows click to pass through to the parent 
    transition: background 0.2s; */
   
    /* ↓↓↓ Effects: To make it look 100% like real YouTube 
    font-size: 60px;
    width: 90px;
    height: 90px;
    line-height: 90px;
    background: rgba(204, 0, 0, 0.8);   /* YouTube’s exact red 
} */

/* Visual feedback on hover 
.video-placeholder:hover .play-button-overlay {
    background: rgba(255, 0, 0, 0.8); /* YouTube red on hover 
} */

/* DELETE your old .play-button-overlay and the hover rule */

/* PUT THIS NEW ONE INSTEAD (copy-paste exactly) */
.play-button-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 84px;
    height: 84px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    pointer-events: none;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-button-overlay::before {
    content: "";
    width: 0;
    height: 0;
    border-left: 24px solid white;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    margin-left: 4px;   /* perfect centering */
}

/* New hover (replaces your old hover rule) */
.video-placeholder:hover .play-button-overlay {
    background: #FF0000;
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.4);
}