/* --- Wrapper --- */
.video-hero {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0 !important;
  display: block;
}

/* --- Inner Section --- */
.video-hero__inner {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  overflow: hidden;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* --- Overlay --- */
.video-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(18, 24, 32, 0.8);
  z-index: 1;
  border-radius: 20px;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .video-hero { padding: 0; }
  .video-hero__inner, .video-hero__overlay { border-radius: 0; }
  .video-hero__content { padding: 80px 15px; }
  .video-hero__content h1 { font-size: 40px; }
  .video-hero__content .subtitle { font-size: 32px; }
}
@media (max-width: 768px) {
  .video-hero { margin: 15px auto; padding: 0; }
  .video-hero__inner, .video-hero__overlay { border-radius: 0; }
  .video-hero__content { padding: 70px 15px; }
  .video-hero__content h1 { font-size: 32px; }
  .video-hero__content .subtitle { font-size: 26px; }
}
@media (max-width: 480px) {
  .video-hero__content { padding: 60px 10px; }
  .video-hero__content h1 { font-size: 26px; }
  .video-hero__content .subtitle { font-size: 22px; }
  .video-hero__content .breadcrumb { font-size: 14px; }
}

/* --- Text Content --- */
.video-hero__content {
  position: relative;
  z-index: 2;
  padding: 100px 20px;
  color: #fff;
  max-width: 900px;
  margin: auto;
}
.video-hero__content h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  color: #fff;
  margin: 0 0 10px;
  font-size: var(--e-global-typography-primary-font-size);
  line-height: var(--e-global-typography-primary-line-height);
}
.video-hero__content .subtitle {
  font-family: 'Lora', serif;
  font-size: var(--e-global-typography-primary-font-size);
  font-style: italic;
  font-weight: 400;
  margin: 0 0 25px;
  color: #fff;
}
.video-hero__content .breadcrumb {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  color: #fff;
  opacity: 1;
  margin: 0;
  justify-content: center;
}
.video-hero__content .breadcrumb span { opacity: 1; }


/* -----------------------------------------------------
   VIDEO SECTION TITLE (MATCH RECIPE PAGE STYLE)
----------------------------------------------------- */
.video-section-title {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 8px;
    width: 100%;
    text-align: center;

    font-size: 42px;
    line-height: 1.2;
    font-weight: 600;
    color: #000;
    margin-bottom: 40px;
}

/* Primary part (bold) */
.video-section-title .title-primary {
    font-family: var(--e-global-typography-primary-font-family);
    font-weight: 600;
    color: #000;
}

/* Secondary part (italic) */
.video-section-title .title-secondary {
    font-family: var(--e-global-typography-secondary-font-family);
    font-style: italic;
    font-weight: 400;
    color: #000;
}

/* Responsive */
@media (max-width: 768px) {
    .video-section-title {
        font-size: 32px;
        gap: 6px;
    }
}

@media (max-width: 480px) {
    .video-section-title {
        font-size: 28px;
        gap: 5px;
    }
}




/* ===== Filter + Search Styling ===== */
#video-filter input[type="text"],
#video-filter select {
  padding: 10px 14px !important;
  border: 2px solid var(--e-global-color-902f74e) !important;
  border-radius: 10px !important;
  background-color: #fff !important;
  color: #121820 !important;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  transition: border-color 0.25s ease-in-out;
  outline: none !important;
  box-shadow: none !important;
}
#video-filter input[type="text"]:hover,
#video-filter input[type="text"]:focus,
#video-filter select:hover,
#video-filter select:focus {
  border-color: var(--e-global-color-accent) !important;
  box-shadow: none !important;
}
#video-filter select option {
  background-color: #fff !important;
  color: #121820 !important;
  transition: all 0.2s ease;
}
#video-filter select option:hover {
  background-color: var(--e-global-color-902f74e) !important;
  color: #fff !important;
}
#video-filter {
  text-align: center;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}
#video-filter input, #video-filter select { min-width: 230px; }
@media (max-width: 768px) {
  #video-filter input, #video-filter select {
    width: 250px;
    max-width: 100%;
    margin-left: 0 !important;
  }
}

/* === Fix Magnific Popup video height and layout === */
.video-popup-container {
  position: relative;
  width: 90%;
  max-width: 900px;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.video-popup-container iframe {
  width: 100% !important;
  height: 70vh !important;
  border: 0 !important;
  display: block;
  border-radius: 12px !important;
  object-fit: cover;
}


/* ===== Force Popup to Center and Disable Scroll ===== */
html.mfp-helper,
body.mfp-helper {
  overflow: hidden !important;
  height: 100% !important;
}

.mfp-wrap,
.mfp-iframe-holder,
.mfp-content {
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  position: fixed !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  overflow: hidden !important;
  z-index: 99999 !important;
  background: rgba(0, 0, 0, 0.70) !important;
}



/* ===== Close Button ===== */
button.mfp-close {
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  padding: 0 !important;
  background: #db2f32 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 50% !important;
  width: 28px !important;
  height: 28px !important;
  line-height: 26px !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  text-align: center !important;
  opacity: 1 !important;
  cursor: pointer !important;
  transition: all 0.25s ease-in-out;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  z-index: 999999 !important;
}

button.mfp-close:hover {
  background: #fff !important;
  color: #db2f32 !important;
  border: 2px solid #db2f32 !important;
  transform: scale(1.1);
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 992px) {
  .video-popup-container {
    max-width: 720px;
  }
}

@media (max-width: 768px) {
  .video-popup-container {
    width: 95%;
    max-width: 95%;
  }

  button.mfp-close {
    top: 8px !important;
    right: 8px !important;
    width: 26px !important;
    height: 26px !important;
    font-size: 16px !important;
    line-height: 24px !important;
  }
}




/* --- Video Grid Layout --- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}
.video-card {
    border: 1px solid transparent;             
    border-radius: 14px;
    overflow: hidden;

    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06); 
    transition: 0.25s ease;

    background: #fff;
}

.video-card:hover {
    border-color: transparent !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08) !important;
    transform: translateY(-8px);
    transition: 0.25s ease;
    }
    
    
.video-thumb img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}
.video-content { padding: 20px; text-align: left; }
.video-content h3 {
  font-family: var(--e-global-typography-803a7aa-font-family), sans-serif;
  font-size: var(--e-global-typography-803a7aa-font-size);
  font-weight: 600;
  color: #121820;
  margin: 0 0 15px;
  line-height: 1.3;
}
.video-btn {
  display: inline-block;
  background: var(--e-global-color-902f74e);
  color: #fff;
  padding: 10px 22px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.3s ease;
}
.video-btn:hover {
  background: var(--e-global-color-accent);
  color: #fff;
}
@media (max-width: 768px) {
  .video-thumb img { height: 180px; }
  .video-content { padding: 15px; }
  .video-content h3 { font-size: 16px; }
}



.card-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.card-visible {
    opacity: 1;
    transform: translateY(0);
}

/* 4-column stagger */
.card-animate:nth-child(4n+1) { transition-delay: 0.1s; }
.card-animate:nth-child(4n+2) { transition-delay: 0.2s; }
.card-animate:nth-child(4n+3) { transition-delay: 0.3s; }
.card-animate:nth-child(4n+4) { transition-delay: 0.4s; }


.filter-active .video-btn .dashicons.play-icon {
    display: none !important;
}


/* FIX MAGNIFIC POPUP – REMOVE FORCED FLEXBOX */
.mfp-container {
    display: block !important;
}

.video-hero__content h1 {
    color: #ffffff !important;
}
