/* Loadng 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;
}
/* Navbar */
.login-button {
  background-color: #555553;
  color: #e7e6e2;
  font-size: 14px;
  padding: 8px 20px;
  border-radius: 50px;
  text-decoration: none;
  transition: 0.3s background-color;
}
.login-button.login-button:hover {
  background-color: #1b1b1b;
}
.navbar-toggler {
  border: none;
  font-size: 1.25rem;
}
.nav-link {
  color: rgb(255, 255, 255);
  font-weight: 500;
  position: relative;
}
.nav-link:hover,
.nav-link.active {
  color: rgb(231, 226, 226);
}

@media (min-width: 991px) {
  .nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: #d7d8d3;
    visibility: hidden;
    transition: 0.3s ease-in-out;
  }
  .nav-link:hover::before,
  .nav-link.active::before {
    width: 100%;
    visibility: visible;
  }
}
.navbar {
  background-color: #939c7b;
  height: 80px;
  margin: 20px;
  border-radius: 50px;
}
.offcanvas {
  background-color: #939c7b;
}
.offcanvas-body .nav-item,
.offcanvas-body .nav-link {
  position: relative !important;
  z-index: 9999 !important;
  pointer-events: auto !important;
}
.offcanvas-backdrop,
.modal-backdrop {
  z-index: 1020 !important;
}
.navbar-brand .brand-title {
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.1;
  color: #014a2d;
}
.navbar-brand .brand-subtitle {
  font-family: 'UnifrakturMaguntia', cursive;
  font-size: 1rem;
  color: #014a2d;
  letter-spacing: 0.5px;
}
.dropdown-menu {
  background-color: #939c7b;
}
.dropdown-menu .dropdown-item:hover {
  color: #525745;
}
@media (min-width: 992px) {
  .navbar-nav .dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
  }
  .navbar-nav .dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
  }
}
/* Body */
body {
  font-size: 1.5rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: #302c2c;
  background: #e6e1e1;
  line-height: 1.6;
  font-size: 14.4px;
}
.hero-section .container {
  height: 100vh;
  z-index: 1;
  position: relative;
}
.about-title {
  font-family: 'UnifrakturMaguntia', cursive;
  font-size: 3rem;
  font-weight: normal;
  margin-bottom: 0.5rem;
}
.about-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.25rem;
  font-weight: 300;
  margin-top: 0;
}
.btn-uinsa {
  border-radius: 40px !important;
  background-color: transparent !important;
  border: 1px solid #bdb7b7 !important;
  color: #302c2c !important;
  padding: 0.75rem 2rem;
  transition: all 0.3s ease;
}
.btn-uinsa:hover {
  background-color: rgba(189, 183, 183, 0.1) !important;
  color: #302c2c !important;
}
.custom-btn {
  border-radius: 40px !important;
  background-color: #222255 !important;
  border: 1px solid #f8fafc !important;
  color: #ffffff !important;
  padding: 0.75rem 2rem;
}
.custom-btn:hover {
  background-color: #2e2e6b !important;
  color: #ffffff !important;
}

/* Divider */
.divider-line {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 4rem 0;
  height: 2px;
  position: relative;
}
.divider-line::before,
.divider-line::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, rgba(0, 128, 68, 0) 0%, rgba(0, 128, 68, 0.7) 25%, rgba(0, 128, 68, 0.7) 75%, rgba(0, 128, 68, 0) 100%);
  margin: 0 0.25rem;
}
:root {
  --divider-color: #302c2c;
}
.divider-dot {
  width: 4px;
  height: 4px;
  background-color: #014a2d;
  border-radius: 50%;
  margin: 0 1.5rem;
}
.divider-icon {
  display: inline-block;
  font-size: 1.25rem;
  color: var(--divider-color);
  position: relative;
  z-index: 2;
  animation: pulseZoom 2s ease-in-out infinite;
  filter: drop-shadow(0 0 2px #e9e6e6);
}
.divider-icon::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background: radial-gradient(circle closest-side, rgba(238, 233, 233, 0.25) 0%, rgba(0, 0, 0, 0) 100%);
  border-radius: 50%;
  z-index: -1;
  animation: pulseGlow 2s ease-in-out infinite;
}
@keyframes pulseZoom {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
}
@keyframes pulseGlow {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.6;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.3);
    opacity: 1;
  }
}
/* Newsroom Preview */
.newsroom {
  background-color: #292828;
  padding-top: 40px;
  color: #fff;
}
.bento-news-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.featured-card {
  width: 100%;
  background-color: #161b22 !important;
  border-radius: 16px !important;
  overflow: hidden;
  border: 1px solid #161b22(255, 255, 255, 0.1) !important;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}
.bento-grid-bottom {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
  align-items: stretch;
}
.bento-grid-bottom .card {
  min-height: 0;
  height: 100%;
}
.article-card,
.featured-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;
}
.featured-card:hover,
.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;
}
.featured-img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}
.article-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}
.animate-fade {
  animation: fadeIn 0.4s ease-in-out;
}
.article-card .read-more-wrapper {
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    visibility 0.3s ease;
}
.article-card:hover .read-more-wrapper {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.featured-card .feat-read-more-wrapper {
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    visibility 0.3s ease;
}
.featured-card:hover .feat-read-more-wrapper {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.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;
}
.newsroom .container {
  padding-left: 50px;
  padding-right: 50px;
}
#slider-container {
  position: relative;
}
.seamless-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  background-color: rgba(22, 27, 34, 0.75);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease,
    background-color 0.3s ease,
    transform 0.3s ease;
}
.nav-prev {
  left: -55px;
}
.nav-next {
  right: -55px;
}
#slider-container:hover .seamless-nav-btn:not(.is-hidden) {
  opacity: 1;
  visibility: visible;
}
.seamless-nav-btn:hover {
  background-color: rgba(255, 255, 255, 0.9);
  color: #000000;
  transform: translateY(-50%) scale(1.08);
}
.seamless-nav-btn.is-hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
@media (max-width: 992px) {
  .bento-grid-bottom {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento-grid-bottom > a:nth-child(3) {
    display: none !important;
  }
}
@media (max-width: 992px) {
  .newsroom .container {
    padding-left: 15px;
    padding-right: 15px;
  }
  .nav-prev {
    left: 10px;
  }
  .nav-next {
    right: 10px;
  }
  .seamless-nav-btn:not(.is-hidden) {
    opacity: 0.7;
    visibility: visible;
  }
  .bento-grid-bottom {
    grid-template-columns: repeat(2, 1fr);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0.3;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 576px) {
  .bento-grid-bottom {
    grid-template-columns: 1fr;
  }
}
.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;
}
#grid-cards-wrapper img {
  position: relative;
  z-index: 1;
}
@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;
  }
}

/* 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 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
}
.custom-footer p {
  font-family: 'Montserrat', sans-serif;
  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 {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  color: #ffffff;
}
.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;
}
/* Greetings */
.dynamic-wrapper {
  position: relative;
  display: inline-block;
  min-width: 100%;
  height: 1.5em;
  text-align: center;
}
.animated-text {
  position: absolute;
  width: 100%;
  left: 0;
  top: 0;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeSlide 18s infinite;
}
.text-1 {
  animation-delay: 0s;
}
.text-2 {
  animation-delay: 3s;
}
.text-3 {
  animation-delay: 6s;
}
.text-4 {
  animation-delay: 9s;
}
.text-5 {
  animation-delay: 12s;
}
.text-6 {
  animation-delay: 15s;
}

@keyframes fadeSlide {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  4% {
    opacity: 1;
    transform: translateY(0);
  }
  16% {
    opacity: 1;
    transform: translateY(0);
  }
  20% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 0;
    transform: translateY(-20px);
  }
}

.floating-ornament {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  opacity: 0.7;
}
.ornament-1 {
  top: 30%;
  left: 20%;
  width: clamp(60px, 5vw, 65px);
  animation: floating 4s ease-in-out infinite;
}
.ornament-2 {
  bottom: 25%;
  right: 20%;
  width: clamp(70px, 6vw, 90px);
  animation: floating 6s ease-in-out 1s infinite;
}
.ornament-3 {
  bottom: 30%;
  left: 25%;
  width: clamp(50px, 4vw, 55px);
  animation: floating 5s ease-in-out 0.5s infinite;
}
.ornament-4 {
  top: 35%;
  right: 25%;
  width: clamp(58px, 4.5vw, 60px);
  animation: floating 4.5s ease-in-out 2s infinite;
}
@keyframes floating {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-15px) rotate(8deg);
  }
  100% {
    transform: translateY(0px) rotate(0deg);
  }
}
/*News (some script adapted from 48 Today */
.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);
}

/* 48 Today */
.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;
}
/* 48 Today SliderSection */
.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;
  }
}

/* ABOUT UinSa48 */
.about-us-title {
  font-family: 'Montserrat', sans-serif;
}
.about-us-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 400;
}

@media only screen {
  .section1 {
    background: #1f2d52;
  }
}
