/* Google Fonts Import */
@import url("https://fonts.googleapis.com/css2?family=Noto+Serif:ital,wght@0,100..900;1,100..900&family=Overpass:ital,wght@0,100..900;1,100..900&display=swap");

@import url("https://fonts.googleapis.com/css2?family=Overpass:ital,wght@0,100..900;1,100..900&display=swap");

@import url("https://fonts.googleapis.com/css2?family=Overpass:wght@100;200;300;400;500;600;700;800;900&family=Overpass:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Hide scrollbar globally */
::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

/* Body */
/* body {
    font-family: "Overpass", sans-serif;

    animation: pageLoad 1s ease;
} */

body.search-open {
  overflow: hidden;
}

body.search-open .header {
  padding: 0 40px;
}

.search-results.has-results ~ .search-box,
.search-box.has-results {
  width: calc(100% - 58px);
}

body.sidebar-open {
  overflow: hidden;
  width: 100%;
  position: fixed;
  top: calc(-1 * var(--scroll-position));
}

@keyframes pageLoad {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Header */
.header {
  width: 100%;
  height: 100px;
  background-color: transparent;
  padding: 5px 40px;

  position: fixed;
  top: 0;
  left: 0;

  z-index: 999999999999;

  display: flex;
  align-items: center;
  justify-content: space-between;

  opacity: 1;

  transition:
    background 0.35s ease,
    opacity 0.35s ease,
    transform 0.35s ease;

  transform: translateY(0);

  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;

  will-change: transform;

  isolation: isolate;
}

/* Header Exit Animation */
.header.hide {
  transform: translateX(100%);
  opacity: 0;
}

/* Initial Page Load Animation */
.header.initial-load {
  transform: translateX(100%);
  opacity: 0;

  animation: headerLoad 1s ease forwards;
}

@keyframes headerLoad {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Header Hover Effect */
.header:hover,
.header.search-active {
  background: #fff;
}

/* Nav Links On Hover */

.header:hover .nav a,
.header.search-active .nav a {
  color: #1436db;
}

/* Active Underline */
.header:hover .nav a.active::after,
.header.search-active .nav a.active::after {
  background: #1436db;
}

.headerBorder {
  background: #0002;
  height: 1px;
  width: 100%;
}

/* Menu Icon */

.header:hover .menu-path,
.header.search-active .menu-path {
  fill: #1436db;
}

/* Hover */

.header:hover .header-search path {
  stroke: #1436db;
}

/* Scroll */

.header.scrolled .header-search path,
.header.all-article .header-search path {
  stroke: #1436db;
}

/* Logo */
.logo {
  color: white;
  font-size: 28px;
  font-weight: 700;
  font-family: "Noto Serif", serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Nav + Menu Wrapper */
.navMenuOptions {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
}

/* Navigation */
.nav {
  display: flex;
  gap: 16px;
}

/* Navigation Links */
.nav a {
  color: white;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  font-family: "Overpass", sans-serif;

  transition: 0.3s ease;
  position: relative;
}

/* Hover */
.nav a:hover {
  color: #999;
}

/* Active Underline */
.nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background-color: white;
  border-radius: 10px;

  transition: 0.3s ease;
}

/* Menu Icon */
.menu-icon {
  cursor: pointer;

  display: flex;
  align-items: center;
}

.menu-icon svg {
  margin-top: -5px;
}

/* Responsive */
@media (max-width: 768px) {
  .nav {
    display: none;
  }
}

/* Header Scroll Effect */
.header.scrolled {
  background-color: rgba(242, 242, 242, 1);
}

/* Nav Links on Scroll */
.header.scrolled .nav a {
  color: #0047ab;
}

/* Active Underline on Scroll */
.header.scrolled:not(.search-active) .nav a.active::after {
  background: #0047ab;
}

/* Active Underline On AllArticle */
.header.all-article .nav a.active::after {
  background: #0047ab;
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100dvh;
  background-color: rgba(242, 242, 242, 1);
  z-index: 999999999999;
  padding: 5px 40px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  /* Hidden Initially */
  transform: translateX(100%);
  transition: transform 0.7s ease;
  overflow-y: scroll;
}

/* Sidebar Open */
.sidebar.active {
  transform: translateX(0);
  overflow-y: auto;
  padding-bottom: 100px;
}

/* Sidebar Sections */
.sidebar-header,
.sidebar-subheader,
.sidebar-content {
  font-size: 24px;
  color: #0047ab;
  font-weight: 600;
}

/* Sidebar Header */
.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Search Icon */
.sidebar-search {
  display: flex;
  align-items: center;
  cursor: pointer;

  width: 40px;
}

/* Sidebar Logo */
.sidebar-logo {
  display: flex;
  justify-content: center;
  align-items: center;

  flex: 1;
}

.sidebar-logo img {
  /* height: 50px; */
  object-fit: contain;
}

/* Close Button */
.close-sidebar {
  font-size: 32px;
  color: #0047ab;
  cursor: pointer;
  line-height: 1;
  /* width: 40px; */
  transition: color 0.3s ease;
  display: flex;
  justify-content: flex-end;
}

.close-sidebar:hover {
  color: rgba(255, 182, 1, 1);
}

.sidebar-subheader {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 20px;
}

/* Sidebar Link */
.sidebar-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;

  width: fit-content;

  gap: 16px;

  color: #000;
  text-decoration: none;

  font-family: "Overpass", sans-serif;
  font-size: 22px;
  font-weight: 500;

  position: relative;

  transition: color 0.3s ease;
}

/* Default Arrow */
.sidebar-arrow-path {
  fill: #000;
  transition: fill 0.3s ease;
}

/* Hover */
.sidebar-link:hover {
  color: #1436db;
}

.sidebar-link:hover .sidebar-arrow-path {
  fill: #1436db;
}

/* Text Wrapper */
.sidebar-link span {
  position: relative;
}

/* Active Underline Default */
.sidebar-link.active span::after {
  content: "";

  position: absolute;
  left: 0;
  bottom: -1px;

  width: 100%;
  height: 2px;

  background: #000;

  border-radius: 10px;

  transition: background 0.3s ease;
}

/* Hover Active State */
.sidebar-link.active:hover {
  color: #1436db;
}

.sidebar-link.active:hover .sidebar-arrow-path {
  fill: #1436db;
}

.sidebar-link.active:hover span::after {
  background: #1436db;
}

/* Hide Arrow On Active */
.sidebar-link.active .sidebar-arrow {
  opacity: 0;
  visibility: hidden;
  display: none;
}

/* Sidebar Nav */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  /* gap: 10px; */
}

/* Sidebar Nav Links */
.sidebar-nav-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  text-decoration: none;
  font-family: Overpass;
  font-weight: 500;
  font-style: Medium;
  font-size: 36px;
  line-height: 100%;
  letter-spacing: 0%;
  transition: 0.3s ease;
  color: #1436db;
}

/* Hover */
.sidebar-nav-link:hover {
  background: rgba(255, 182, 1, 1);
}

/* Active Sidebar Nav Link */
.sidebar-nav-link.active {
  background: rgba(255, 182, 1, 1);
}

/* Sidebar Content */
.sidebar-content {
  display: flex;
  /* flex-direction: column; */
  gap: 20px;
}

/* Sidebar Content */
.sidebar-content {
  display: flex;
  gap: 20px;
}

/* Content Boxes */
.sidebar-content-box {
  height: 157px;
  width: 100%;

  color: white;

  border-radius: 32px;

  padding: 20px;

  position: relative;
  overflow: hidden;
  cursor: pointer;

  display: flex;
  align-items: flex-end;
  justify-content: center;

  transition:
    transform 0.4s ease,
    background 0.4s ease;
}

/* Hover */
.sidebar-content-box:hover {
  transform: scale(1.02);
}

/* Inner Wrapper */
.sidebar-content-inner {
  position: relative;

  width: 100%;
  height: 100%;

  display: flex;
  justify-content: center;
  align-items: center;

  text-align: center;
}

/* Title */
.sidebar-content-title {
  position: absolute;

  top: 50%;
  left: 50%;

  transform: translate(-50%, -50%);

  width: 90%;

  font-family: "Noto Serif", serif;
  font-weight: 600;
  font-size: 27px;
  line-height: 120%;

  opacity: 1;

  transition:
    transform 0.45s ease,
    opacity 0.35s ease;

  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;

  overflow: hidden;
}

/* Description */
.sidebar-content-description {
  position: absolute;

  top: 50%;
  left: 50%;

  transform: translate(-50%, 40px);

  width: 90%;

  opacity: 0;

  text-align: center;

  font-family: "Overpass", sans-serif;
  font-weight: 200;
  font-style: italic;
  font-size: 18px;
  line-height: 140%;

  transition:
    opacity 0.45s ease,
    transform 0.45s ease;

  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;

  overflow: hidden;
}

/* Hover */
.sidebar-content-box:hover .sidebar-content-title {
  opacity: 0;

  transform: translate(-50%, -90px);
}

.sidebar-content-box:hover .sidebar-content-description {
  opacity: 1;

  transform: translate(-50%, -50%);
}

/* Dark Overlay */
.sidebar-content-box::before {
  content: "";

  position: absolute;
  inset: 0;

  border-radius: 32px;

  background: rgba(0, 0, 0, 0.2);

  z-index: 1;
}

.sidebar-profile {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 10px;
  cursor: pointer;
}

.loginplusName {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.sidebar-profile span {
  margin-left: 10px;
  font-family: "Overpass", sans-serif;
  font-weight: 500;
  font-size: 22px;
  color: #0047ab;
  text-transform: capitalize;
}

#pplogout {
  font-family: "Overpass", sans-serif;
  font-weight: 500;
  font-size: 22px;
  color: #0047ab;
  text-transform: capitalize;
}

/* =========================
   Search Overlay
========================= */
/* Header Search */

.header-search-wrapper {
  position: relative;

  display: flex;
  align-items: center;
}

.header-search {
  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;

  width: 24px;
  height: 24px;
}

.header-search svg {
  display: block;
}

body.search-open {
  overflow-y: scroll;

  position: fixed;

  width: 100%;

  top: calc(-1 * var(--scroll-position));
}

/* Dropdown */
.header-search-dropdown {
  position: fixed;

  top: 0;
  left: 0;

  width: 100%;

  background: #fff;

  padding: 10px 0px;
  margin-top: 100px;

  transform: translateY(-105%);

  opacity: 0;
  visibility: hidden;

  transition:
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.4s ease,
    visibility 0.4s ease;

  z-index: 9999999999;

  /* border-radius: 0 0 40px 40px; */

  /* box-shadow: 0 12px 30px -15px rgba(0, 0, 0, 0.12); */

  overflow: hidden;
}

/* Active */

.header-search-wrapper.active .header-search-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.header.search-active {
  background: #fff !important;

  backdrop-filter: none;
}

.header-search-wrapper.active ~ .header,
.header.search-active {
  background: #fff !important;
}

/* Search Box */

.search-box {
  width: calc(100% - 40px);
  padding: 16px 40px;
  margin: 0 auto;
  display: flex;
  align-items: center;

  gap: 16px;

  border: 2px solid #1436db;

  /* border-radius: 60px; */
  border-radius: 16px;
}

/* Input */

.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 18px;
  text-align: left;
  direction: ltr;
  color: #1436db;
}

/* Placeholder */

.search-input::placeholder {
  color: #1436db;
  opacity: 1;
  text-align: left;
}

/* Button */

.search-btn {
  border: none;

  background: #fa7d45;
  color: #fff;

  padding: 12px 24px;

  border-radius: 8px;

  cursor: pointer;

  font-size: 15px;
  font-weight: 600;
}

.search-results {
  width: 100%;
  margin: 0 auto;
  margin-top: 0px;
  overflow-y: scroll;
}

/* Results */
.search-results.has-results {
  overflow-y: auto;
  margin-top: 30px;
  width: calc(100%);
  max-height: calc(100vh - 220px);
}

.search-results.has-results::-webkit-scrollbar {
  width: 8px;
}

.search-results.has-results::-webkit-scrollbar-thumb {
  background: #007bff;
  border-radius: 10px;
}

.search-results.has-results::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.search-results-header span {
  color: white;
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  background: #1436db;
  text-align: left;
  font-family: "Noto Serif";
  font-size: 36px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
  padding-left: 40px;
}

/* Grid */

.search-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 90px;
  padding: 40px;
}

/* Card */

.search-result-card {
  background: #fff;
  overflow: hidden;
  cursor: pointer;
  transition: 0.3s ease;
}

/* .search-result-card:hover {

    transform: translateY(-4px);

    border-color: #1436DB;

} */

/* Image */

.search-result-image {
  width: 100%;
  height: 330px;

  overflow: hidden;
}

.search-result-image img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  display: block;
}

/* Content */

.search-result-content {
  padding: 20px;
}

/* Title */

.search-result-title {
  font-family: "Noto Serif";
  font-size: 20px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;

  color: #1436db;

  display: -webkit-box;

  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;

  overflow: hidden;

  margin-bottom: 14px;
}

/* Description */

.search-result-description {
  font-family: Overpass;
  font-size: 18px;
  font-style: italic;
  font-weight: 200;
  line-height: normal;
  color: #000;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Loader */

.search-loading,
.no-results {
  font-family: "Noto Serif";
  font-size: 20px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
  color: #1436db;
  padding: 20px 40px;
}

/* Responsive */

.Footer-Shower {
  display: none !important;
}

/* Search Icon Spacing */

/* Search Hover */

.header:hover .header-search path,
.header.search-active .header-search path {
  stroke: #1436db;
}

/* Scroll */

.header.scrolled .header-search path,
.header.all-article .header-search path {
  stroke: #1436db;
}

/* Default */

.header .header-search path {
  transition: 0.3s ease;
}

/* Better Nav Alignment */

.nav {
  align-items: center;
}

@media screen and (min-width: 1024px) and (max-width: 1300px) {
  .sidebar-content-title {
    font-size: 22px;
  }

  .search-grid {
    gap: 40px;
  }
}

@media screen and (min-width: 768px) and (max-width: 1024px) {
  .sidebar-content-title {
    font-size: 22px;
  }

  .search-grid {
    gap: 20px;
    padding: 30px 20px;
  }

  .search-result-content {
    padding: 10px 0;
  }
}

/* Responsive */
@media (max-width: 768px) {
  body.search-open {
    overflow-y: scroll;

    position: fixed;

    width: 100%;

    top: calc(-1 * var(--scroll-position));
  }

  .search-results.has-results {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .sidebar {
    padding: 30px 20px;
  }

  .sidebar-content-title {
    font-size: 20.68px;
  }

  .nav {
    display: none;
  }

  .headerBorder {
    border-top: 1px solid rgba(0, 0, 0, 0.15);
  }

  .sidebar-subheader {
    gap: 10px;
  }

  .sidebar-content {
    flex-direction: column;
    gap: 25px;
  }

  .sidebar-nav-link {
    font-size: 29.68px;
    padding: 6px;
  }

  .sidebar-nav-link svg {
    width: 40px;
    height: 40px;
  }

  .search-box {
    padding: 12px 20px;
  }

  .search-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    padding: 30px 20px;
  }
}

@media (max-width: 500px) {
  .header-search-dropdown {
    margin-top: 80px;
  }

  .sidebar-subheader {
    flex-direction: column;
    gap: 10px;
  }

  .sidebar-link {
    font-size: 17.38px;
  }

  .sidebar-nav-link {
    font-size: 29.68px;
  }

  .logo-icon {
    width: 88px;
    height: 56px;
  }

  .sidebar-logo img {
    width: 88px;
    height: 56px;
  }

  .close-sidebar {
    justify-content: flex-start;
  }

  .search-grid {
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
    padding: 30px 20px;
  }

  .search-box {
    width: calc(100% - 20px);

    padding: 10px 12px;

    display: flex;
    align-items: center;
    gap: 8px;

    flex-wrap: nowrap;
  }

  .search-input-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .search-input-icon svg {
    width: 18px;
    height: 18px;
  }

  .search-input {
    flex: 1;
    min-width: 0;

    font-size: 14px;
  }

  .search-btn {
    flex-shrink: 0;

    padding: 10px 14px;

    font-size: 13px;

    white-space: nowrap;
  }

  .sidebar-profile {
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
  }
}

@media (max-width: 500px) {
  .header {
    height: 80px;
    padding: 0 16px;
  }

  .navMenuOptions {
    gap: 12px;
  }

  .sidebar-link {
    gap: 8px;
  }
}

@media (max-width: 350px) {
  .sidebar-profile {
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
  }

  .sidebar-nav-link {
    font-size: 20px;
    padding: 0 3px;
  }
}
