/*Loading Video --- */
.transition-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #014a2d;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  transition: opacity 0.5s ease;
  overflow: hidden;
}
.transition-overlay video {
  min-width: 100%;
  min-height: 100%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.transition-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}

/*48Today*/
body {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: #302c2c;
  background: #e6e1e1;
  line-height: 1.6;
  font-size: 14.4px;
}
.animate-fade {
  animation: fadeIn 0.4s ease-in-out;
}
@keyframes fadeIn {
  from {
    opacity: 0.3;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/*Navbar*/
.page-48today .custom-header-box {
  background-color: #ffffff !important;
  border-bottom: 1px solid #e5e5e5;
}
.page-48today .logo-img {
  height: 76px !important;
  width: auto !important;
}
.page-48today .articles-custom-nav-desktop {
  background-color: #ffffff !important;
  border-top: 1px solid #e5e5e5;
  padding-top: 20px !important;
  padding-bottom: 20px !important;
}
.page-48today .articles-custom-nav-desktop .articles-navbar-nav .articles-nav-link {
  color: #6c757d !important;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding-top: 20px !important;
  padding-bottom: 20px !important;
  transition: color 0.15s ease-in-out;
  display: block;
}
.page-48today .articles-custom-nav-desktop .articles-navbar-nav .articles-nav-link:hover,
.page-48today .articles-custom-nav-desktop .articles-navbar-nav .articles-nav-link.active,
.page-48today .articles-custom-nav-desktop .articles-navbar-nav .active .articles-nav-link {
  color: #be7200 !important;
}
.page-48today .mobile-toggler-btn {
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
}
.page-48today .mobile-toggler-icon-custom {
  display: inline-block;
  width: 24px;
  height: 24px;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: center;
}
.page-48today .offcanvas {
  background-color: #ffffff !important;
  color: #313131 !important;
}
.offcanvas-backdrop,
.modal-backdrop {
  z-index: 1020 !important;
}

/*Slider Editor's Pick's*/
.page-48today .section-wrapper {
  background-color: #f8f9fa;
}
.page-48today-slider-viewport {
  width: 100%;
  overflow: hidden;
  position: relative;
  touch-action: pan-y pinch-zoom;
}
.page-48today-slider-track {
  display: flex;
  gap: 20px;
}
.page-48today-card {
  flex: 0 0 50%;
  height: 420px;
  cursor: pointer;
  border-radius: 16px;
  overflow: hidden;
}
.page-48today-card:hover .card-img {
  transform: scale(1.05);
}
.page-48today-card .card-img {
  transition: transform 0.5s ease;
}
.custom-gradient-overlay {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.85) 100%);
}
.page-48today-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background-color: #111111;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 6px 12px;
  z-index: 3;
  border-radius: 10px 0px 10px 0px;
  text-transform: uppercase;
}
@media (max-width: 768px) {
  .page-48today-card {
    flex: 0 0 75%;
    height: 380px;
  }
}

/*Article Card*/
.custom-bento-card {
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
}
.custom-bento-card:hover {
  transform: translateY(-8px);
  background-color: #212529 !important;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}
.custom-bento-card img {
  transition: transform 0.4s ease;
}
.custom-bento-card:hover img {
  transform: scale(1.05);
}

.article-card {
  background-color: #161b22 !important;
  border: 1px solid #161b22 !important;
  border-radius: 16px !important;
  overflow: hidden;
  transition:
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.3s ease;
}
.article-card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.6),
    0 0 15px rgba(231, 231, 231, 0.05) !important;
}

/*Footer*/
.custom-footer {
  background-color: #0f0f0f;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-desc {
  color: rgba(255, 255, 255, 0.75);
}
.custom-footer h2,
.custom-footer p {
  font-family: 'Montserrat', sans-serif;
}
.custom-footer h2 {
  font-weight: 600;
}
.custom-footer p {
  font-weight: 300;
}
.custom-footer h6 {
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.75rem;
}
.footer-nav-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
  display: inline-block;
}
.footer-nav-link:hover {
  color: #ffffff;
  transform: translateX(4px);
}
.footer-line {
  border-color: #ffffff;
}
.footer-copyright,
.footer-disclaimer {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  color: #ffffff;
}
.footer-legal-link {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-legal-link:hover {
  color: #ffffff;
  text-decoration: underline;
}
.read-more-wrapper .btn-solid-custom,
.feat-read-more-wrapper .btn-solid-custom,
.article-card small.text-muted,
.featured-card small.text-muted,
#feat-date {
  color: #d6cfcf !important;
}
.read-more-wrapper .btn-solid-custom:hover,
.feat-read-more-wrapper .btn-solid-custom:hover {
  color: #ffffff !important;
}
.card img {
  transition: transform 0.4s ease-in-out;
}
.card:hover img {
  transform: scale(1.5);
}
#grid-cards-wrapper .card {
  overflow: hidden !important;
}
#grid-cards-wrapper .card-body {
  position: relative;
}
@media (max-width: 767.98px) {
  #grid-cards-wrapper > div:nth-child(3) {
    display: none !important;
  }
}
#grid-cards-wrapper {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 1rem;
}

@media (max-width: 767.98px) {
  #grid-cards-wrapper {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
