/* ─────────────────────────────────────────────
   videos.css — Specific page styles
───────────────────────────────────────────── */

/* Hero adjustments for video page */
.video-hero {
  position: relative;
  padding-top: 120px;
  padding-bottom: 80px;
  min-height: auto;
  background: var(--bg-hero, #150F0F);
  overflow: hidden;
}

.video-hero-glow {
  position: absolute;
  top: 50%;
  left: 20%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(167, 60, 38, 0.15) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.video-hero .hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0 40px;
}

.video-hero .hero-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
  z-index: 1;
}

.video-hero .hero-heading {
  font-family: var(--font-head);
  font-size: 60px;
  font-weight: 300;
  line-height: 72px;
  color: var(--text-white);
}

.hero-divider {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  width: calc(100% - 80px);
  max-width: var(--max-w, 1376px);
  margin: 0 auto;
}

.video-section {
  position: relative;
  padding: 80px clamp(32px, 4vw, 56px) 100px clamp(32px, 4vw, 56px);
  max-width: var(--max-w, 1376px);
  margin: 0 auto;
  z-index: 2;
  box-sizing: border-box;
}

.video-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 48px;
  padding-bottom: 24px;
  width: 100%;
  flex-wrap: wrap;
  gap: 20px;
}

.video-header-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

/* ── Video Filter Bar & Custom Dropdowns ── */
.video-filter-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.video-filter-dropdown {
  position: relative;
  min-width: 150px;
}

.video-dropdown-btn {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: 10px 16px;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.8px;
  color: var(--text-white, #ffffff);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-sizing: border-box;
  text-transform: uppercase;
}

.video-dropdown-btn:hover {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.06);
}

.video-filter-dropdown.open .video-dropdown-btn {
  border-color: var(--primary, #FFCE1B);
  background: rgba(255, 206, 27, 0.08);
}

.video-dropdown-btn .dropdown-chevron {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.video-filter-dropdown.open .dropdown-chevron {
  transform: rotate(180deg);
}

.video-dropdown-btn .dropdown-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 190px;
  text-align: left;
}

.video-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: max-content;
  min-width: 100%;
  max-width: 280px;
  max-height: 280px;
  overflow-y: auto;
  background: #181414;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 6px;
  z-index: 100;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  display: none;
}

.video-filter-dropdown.open .video-dropdown-menu {
  display: block;
}

.filter-option {
  padding: 8px 12px;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 11px;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.7);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.filter-option:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.filter-option.active {
  background: rgba(255, 206, 27, 0.15);
  color: var(--primary, #FFCE1B);
  font-weight: 600;
}

/* Card Badges */
.video-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.video-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.video-badge {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.video-badge.box-tag {
  background: rgba(255, 206, 27, 0.12);
  color: #FFCE1B;
  border: 1px solid rgba(255, 206, 27, 0.25);
}

.video-badge.model-tag {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Empty State Message */
.no-videos-message {
  text-align: center;
  padding: 60px 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  margin-top: 32px;
}

.no-videos-title {
  font-family: var(--font-head, sans-serif);
  font-size: 24px;
  font-weight: 400;
  color: #ffffff;
  margin-bottom: 8px;
}

.no-videos-sub {
  font-family: var(--font-body, sans-serif);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 20px;
}

.reset-filters-btn {
  background: var(--primary, #FFCE1B);
  color: #000000;
  border: none;
  border-radius: 6px;
  padding: 10px 20px;
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.reset-filters-btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 32px;
  width: 100%;
}

.video-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: transparent;
  width: 100%;
  text-decoration: none;
  cursor: pointer;
}

.thumb-wrapper {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #1e1e1e;
  transition: border-color 0.3s ease;
}

.video-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.duration-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  padding: 3px 6px;
  border-radius: 4px;
  font-weight: 500;
  letter-spacing: 0.5px;
  z-index: 2;
  transition: opacity 0.3s ease;
}

/* Card hover animation details */
.video-card:hover .thumb-wrapper {
  border-color: var(--primary, #FFCE1B);
}

.video-card:hover .video-thumb {
  transform: scale(1.04);
}

.video-card:hover .play-overlay {
  opacity: 1;
}

.video-card:hover .video-title {
  color: var(--primary, #FFCE1B);
}

.video-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.video-title {
  color: var(--text-white, #ffffff);
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  transition: color 0.2s ease;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.video-subtitle {
  color: var(--text-dim, rgba(255, 255, 255, 0.6));
  font-size: 13px;
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-weight: 300;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

/* Responsive constraints */
@media (max-width: 1024px) {
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .video-hero {
    padding-top: 100px;
    padding-bottom: 60px;
  }
  .video-hero .hero-heading {
    font-size: 44px;
    line-height: 54px;
  }
}

@media (max-width: 600px) {
  .video-grid {
    grid-template-columns: 1fr;
  }
  .video-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .models-search {
    width: 100%;
  }
  .video-hero {
    padding-top: 90px;
    padding-bottom: 50px;
  }
  .video-hero .hero-top {
    padding: 0 20px;
  }
  .video-hero .hero-heading {
    font-size: 32px;
    line-height: 42px;
  }
  .hero-divider {
    width: calc(100% - 40px);
  }
}



  /* ════════════════════════════════════════════════
     UPPER LINE REMOVAL & FOOTER LOWER LINE RESTORATION (<= 1024px)
  ════════════════════════════════════════════════ */
  /* 1. Restore Footer's own Top Border (Lower Line) */
  body .footer,
  body footer.footer,
  body footer#footer,
  body footer#footer-mobile,
  .footer,
  #footer,
  #footer-mobile {
    border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
  }

  /* 2. Hide horizontal line dividers directly above footer */
  .line-horizontal,
  .line-horizontal:last-of-type,
  main > .line-horizontal:last-child {
    display: none !important;
    border: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* 3. Hide dummy/glow sections right above footer */
  .why-section[style*="min-height:0"],
  .get-started-section[style*="min-height:0"],
  .why-section:last-of-type,
  .get-started-section:last-of-type {
    border-top: none !important;
    border-bottom: none !important;
    display: none !important;
  }

  /* 4. Remove section bottom borders right above footer on mobile (Upper Line) */
  main > section:last-of-type,
  main > div:last-of-type,
  section:last-of-type,
  .models-section,
  .faq-accordion-list,
  .dev-section,
  .tribute-section,
  .community-section,
  .jobs-grid,
  .dynamic-jd-wrapper,
  .phil2-contact-section,
  .phil-status-contact,
  .related-videos,
  .event-detail-body,
  .gallery-large,
  .event-quote,
  .event-meta,
  .md-code-tablet,
  .session-header-row {
    border-bottom: none !important;
  }


/* ════════════════════════════════════════════════
   MOBILE FOOTER OVERRIDES (<= 1024px)
════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  body .footer,
  body footer.footer,
  body footer#footer,
  body footer#footer-mobile,
  .footer,
  #footer,
  #footer-mobile {
    position: relative !important;
    top: auto !important;
    left: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    width: 100% !important;
    margin: 32px 0 0 0 !important;
    padding: 0 !important;
    background: #1c1414 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-sizing: border-box !important;
    display: block !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
    z-index: 10 !important;
  }

  
  /* Remove section bottom border right above footer on mobile to eliminate upper line */
  main > section:last-of-type,
  main > div:last-of-type,
  section:last-of-type,
  .phil2-mobile-page-wrapper > main > section:last-of-type,
  .phil-mobile-page-wrapper > main > section:last-of-type,
  .sbox-page section:last-of-type,
  .page-section:last-of-type,
  .faq-section,
  .get-started-section,
  .community-section,
  .related-videos,
  .phil2-contact-section {
    border-bottom: none !important;
  }

  body .footer .footer-inner,
  body footer#footer-mobile .footer-inner,
  .footer-inner {
    width: calc(100% - calc(var(--px, 24px) * 2)) !important;
    max-width: var(--max-w, 1376px) !important;
    margin: 0 auto !important;
    padding: 32px 20px !important;
    box-sizing: border-box !important;
    border-left: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.15) !important;
    display: block !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    height: auto !important;
  }

  /* Top Nav Row */
  body .footer .footer-nav-row,
  body footer#footer-mobile .footer-nav-row,
  .footer-nav-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 18px !important;
    padding-bottom: 24px !important;
    margin-bottom: 24px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
    position: relative !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  body .footer .footer-nav-links,
  body footer#footer-mobile .footer-nav-links,
  .footer-nav-links {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  body .footer .footer-nav-link,
  body footer#footer-mobile .footer-nav-link,
  .footer-nav-link {
    font-family: 'DM Sans', sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: rgba(255, 255, 255, 0.85) !important;
    text-decoration: none !important;
    white-space: nowrap !important;
  }

  /* Social Icons */
  body .footer .footer-socials,
  body footer#footer-mobile .footer-socials,
  .footer-socials {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 14px !important;
  }

  body .footer .social-icon,
  body footer#footer-mobile .social-icon,
  .social-icon {
    width: 32px !important;
    height: 32px !important;
    background: #ffffff !important;
    border-radius: 6px !important;
    border: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    white-space: nowrap !important;
  }

  body .footer .social-icon svg path,
  body .footer .social-icon svg circle,
  body footer#footer-mobile .social-icon svg path,
  body footer#footer-mobile .social-icon svg circle,
  .social-icon svg path,
  .social-icon svg circle {
    stroke: #000000 !important;
    fill: #000000 !important;
  }

  body .footer .social-icon svg path[fill="none"],
  body footer#footer-mobile .social-icon svg path[fill="none"],
  .social-icon svg path[fill="none"] {
    fill: none !important;
  }

  /* Middle Row: Addresses & Logos */
  body .footer .footer-bottom-row,
  body footer#footer-mobile .footer-bottom-row,
  .footer-bottom-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0 !important;
    padding-bottom: 24px !important;
    margin-bottom: 24px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
    position: relative !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Addresses: Left (Bengaluru) & Right (Palo Alto) */
  body .footer .footer-addresses,
  body footer#footer-mobile .footer-addresses,
  .footer-addresses {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    width: 100% !important;
    padding: 0 !important;
    gap: 16px !important;
    margin-bottom: 24px !important;
    order: 1 !important;
    box-sizing: border-box !important;
  }

  body .footer .footer-address:first-child,
  body footer#footer-mobile .footer-address:first-child,
  .footer-address:first-child {
    flex: 1 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    text-align: left !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important;
  }

  body .footer .footer-address:last-child,
  body .footer .footer-address:nth-child(2),
  body footer#footer-mobile .footer-address:last-child,
  body footer#footer-mobile .footer-address:nth-child(2),
  .footer-address:last-child,
  .footer-address:nth-child(2) {
    flex: 1 !important;
    margin-left: auto !important;
    margin-right: 0 !important;
    text-align: left !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important;
  }

  body .footer .footer-city,
  body footer#footer-mobile .footer-city,
  .footer-city {
    font-family: 'DM Sans', sans-serif !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #ffffff !important;
    margin: 0 !important;
  }

  body .footer .footer-addr-text,
  body footer#footer-mobile .footer-addr-text,
  .footer-addr-text {
    font-family: 'DM Sans', sans-serif !important;
    font-size: 11px !important;
    font-weight: 300 !important;
    color: rgba(255, 255, 255, 0.6) !important;
    line-height: 1.5 !important;
    margin: 0 !important;
  }

  /* ZIROHLabs Logo: Below Addresses, Left Aligned */
  body .footer .footer-ziroh,
  body footer#footer-mobile .footer-ziroh,
  .footer-ziroh {
    order: 2 !important;
    align-self: flex-start !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    margin-bottom: 24px !important;
    grid-column: auto !important;
    grid-row: auto !important;
    display: block !important;
    text-align: left !important;
  }

  body .footer .ziroh-logo,
  body footer#footer-mobile .ziroh-logo,
  .ziroh-logo {
    height: 28px !important;
    width: auto !important;
    display: block !important;
    margin-left: 0 !important;
    margin-right: auto !important;
  }

  /* Big K. Square Logo: Below ZIROHLabs Logo, Left Aligned */
  body .footer .footer-big-logo,
  body footer#footer-mobile .footer-big-logo,
  .footer-big-logo {
    order: 3 !important;
    align-self: flex-start !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    grid-column: auto !important;
    grid-row: auto !important;
    display: block !important;
  }

  body .footer .big-k-square,
  body footer#footer-mobile .big-k-square,
  .big-k-square {
    width: 72px !important;
    height: 72px !important;
    border-radius: 4px !important;
    display: block !important;
    margin-left: 0 !important;
  }

  /* Bottom Legal Section */
  body .footer .footer-legal,
  body footer#footer-mobile .footer-legal,
  .footer-legal {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
    padding-top: 0 !important;
    margin-top: 0 !important;
    border-top: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  body .footer .footer-legal-links,
  body footer#footer-mobile .footer-legal-links,
  .footer-legal-links {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    gap: 24px !important;
    order: 1 !important;
    width: 100% !important;
  }

  body .footer .footer-legal-links a,
  body footer#footer-mobile .footer-legal-links a,
  .footer-legal-links a {
    font-family: 'DM Sans', sans-serif !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none !important;
    white-space: nowrap !important;
  }

  body .footer .footer-copyright,
  body footer#footer-mobile .footer-copyright,
  .footer-copyright {
    font-family: 'DM Sans', sans-serif !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    color: rgba(255, 255, 255, 0.6) !important;
    margin: 0 !important;
    order: 2 !important;
    width: 100% !important;
    text-align: left !important;
  }
}


