* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: #FAFAFA;
  font-family: "Inter", sans-serif;
}

.d-none {
  display: none !important;
}

main.body-content.video-page-content {
  padding-top: 60px;
  padding-bottom: 72px;
  min-height: 75vh;
}

.sub-heading-text {
  color: #F6841F;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 500;
  display: block;
  margin-bottom: 12px;
}

.header-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.page-title {
  font-family: "Inter Tight", sans-serif;
  font-size: 40px;
  font-weight: 500;
  color: #070707;
  margin: 0;
  line-height: 120%;
}

.search-filter-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-container {
  display: flex;
  margin-bottom: 0;
}

.search-form {
  position: relative;
  max-width: 320px;
  width: 100%;
}

.search-input {
  font-family: "Inter", sans-serif;
  width: 100%;
  padding: 10px 16px 10px 42px;
  font-size: 14px;
  color: #1F2937;
  background-color: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  outline: none;
  transition: all 0.2s ease-in-out;
}

.search-input:focus {
  border-color: #232D68;
  box-shadow: 0 0 0 3px rgba(35, 45, 104, 0.1);
}

.search-icon-left {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #9CA3AF;
  pointer-events: none;
}

.category-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 48px;
}

.category-btn {
  display: inline-block;
  padding: 8px 16px;
  background-color: #F1F5F9;
  color: #475569 !important;
  border-radius: 6px;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 400;
  text-decoration: none !important;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.category-btn:hover {
  background-color: #E2E8F0;
}

.category-btn.active {
  background-color: #232D68 !important;
  color: #FFFFFF !important;
}

.toggle-categories-btn {
  display: none;
}

.videos-grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 24px;
  margin-bottom: 48px;
}

.video-card {
  background-color: #FFFFFF;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  height: 100%;
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.08);
}

.video-card-img-wrap {
  position: relative;
  height: 240px;
  width: 100%;
  overflow: hidden;
  background-color: #0F2D59;
}

.video-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.video-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.1) 60%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-card-play {
  width: 54px;
  height: 54px;
  background-color: rgba(246, 132, 31, 0.9);
  border: none;
  border-radius: 50%;
  color: #FFFFFF;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.25s ease, background-color 0.25s ease;
  cursor: pointer;
  padding-left: 4px;
}

.video-card:hover .btn-card-play {
  transform: scale(1.15);
  background-color: #EA701B;
}

.video-category-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background-color: #FAFD86;
  color: #0F2D59;
  font-family: "Inter Tight", sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  z-index: 2;
}

.video-card-content {
  display: flex;
  align-items: center;
  padding: 24px;
  flex-grow: 1;
}

.video-card-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-right: 18px;
  margin-right: 18px;
  border-right: 1px solid #E2E8F0;
  flex-shrink: 0;
}

.date-day {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 600;
  font-size: 24px;
  line-height: 1.2;
  color: #0F2D59;
}

.date-my {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 500;
  font-size: 13px;
  color: #64748B;
}

.video-card-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.video-card-title {
  font-family: "Inter Tight", sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 140%;
  color: #070707;
  letter-spacing: 0.2px;
  margin: 0 0 6px 0;
  transition: color 0.2s ease;
}

.video-card:hover .video-card-title {
  color: #EA701B;
}

.video-watch-now {
  font-family: "Inter Tight", sans-serif;
  font-weight: 500;
  font-size: 12.6px;
  color: #64748B;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.video-card:hover .video-watch-now {
  color: #F6841F;
}

.pagination-container {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

.pagination {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.page-item .page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  background-color: #FFFFFF;
  color: #475569;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.page-item .page-link:hover {
  background-color: #F1F5F9;
  color: #0F2D59;
  border-color: #CBD5E1;
}

.page-item .page-link.active {
  background-color: #232D68;
  color: #FFFFFF;
  border-color: #232D68;
}

.no-results-msg {
  display: none;
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background-color: #FFFFFF;
  border-radius: 12px;
  border: 1px dashed #CBD5E1;
  font-family: "Inter", sans-serif;
  color: #475569;
  font-size: 18px;
}

.video-lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}

.video-lightbox-modal.show {
  display: flex;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  cursor: pointer;
}

.modal-content {
  position: relative;
  width: 90%;
  max-width: 900px;
  z-index: 10000;
}

.iframe-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  background-color: #000000;
}

.iframe-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: transparent;
  border: none;
  color: #FFFFFF;
  font-size: 32px;
  cursor: pointer;
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: #F6841F;
}

@media (max-width: 1199.98px) {
  .videos-grid-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 991.98px) {
  .header-top-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 767.98px) {
  .page-title {
    font-size: 32px;
  }

  .search-filter-wrapper {
    width: 100%;
  }

  .search-container {
    width: 100%;
  }

  .search-form {
    max-width: 100%;
  }

  .category-container {
    margin-bottom: 48px;
  }

  .category-container.has-toggle {
    margin-bottom: 0;
  }

  .category-container.collapsed .category-btn:nth-child(n+8) {
    display: none;
  }

  .toggle-categories-btn.show-on-mobile {
    display: block;
    width: 100%;
    background-color: #232D68;
    color: #FFFFFF;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-family: "Inter Tight", sans-serif;
    font-size: 14px;
    font-weight: 500;
    margin-top: 16px;
    margin-bottom: 48px;
    cursor: pointer;
    text-align: center;
  }

  .videos-grid-container {
    grid-template-columns: 1fr;
  }

  .video-card-img-wrap {
    height: 200px;
  }

  .video-card-content {
    padding: 16px;
  }

  .video-card-date {
    padding-right: 12px;
    margin-right: 12px;
  }

  .date-day {
    font-size: 20px;
  }

  .date-my {
    font-size: 12px;
  }
}