/*=============== VARIABLES CSS ===============*/

:root {
  /*========== Colors ==========*/
  --primary-clr: #1b263b;
  --secondary-clr: #415a77;
  --tertiary-clr: #778da9;
  --black-clr: #292929;
  --white-clr: #ffffff;
  --gray-clr: #f7f7f7;

  /*========== Font and Typography ==========*/
  --body-ff: 'Fira Sans', sans-serif;
  --fs-big: calc(44rem / 16);
  --fs-medium: calc(32rem / 16);
  --fs-xlg: calc(24rem / 16);
  --fs-lg: calc(18rem / 16);
  --fs-regular: calc(16rem / 16);

  /*========== Font weight ==========*/
  --weight-light: 300;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semi-bold: 600;
  --weight-bold: 700;
  --weight-bolder: 800;
}

/*=============== BASE ===============*/
*,
*::before,
*::after {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  font-family: inherit;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-ff);
  font-size: var(--fs-regular);
  font-weight: var(--weight-regular);
  background-color: var(--white-clr);
  color: var(--primary-clr);
  overflow: hidden;
  min-height: 100dvh;
  line-height: 1.5;
}

ul,
ol {
  list-style: none;
}

a {
  text-decoration: none;
  color: unset;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

.container {
  max-width: calc(992rem / 16);
  width: calc(100% - calc(44rem / 16));
  margin: 0 auto;
}

.body-content {
  display: flex;
  min-height: 100dvh;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: calc(320rem / 16);
  background-color: var(--gray-clr);
  min-height: 100dvh;
  box-shadow: rgba(0, 0, 0, 0.05) 0px 0px 0px 1px;
  z-index: 2;
}

.header-title {
  font-size: var(--fs-medium);
  font-weight: var(--weight-semi-bold);
  text-align: center;
  color: var(--secondary-clr);
}

.header-navbar {
  margin-top: calc(44rem / 16);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(16rem / 16);
}

.header-navlink {
  font-size: var(--fs-lg);
  font-weight: var(--fs-medium);
  padding: calc(6rem / 16) calc(12rem / 16);
  background-color: transparent;
  transition: all 250ms ease;
  border-radius: calc(4rem / 16);
  width: 100%;
  text-align: center;
}

.header-navlink:hover {
  background-color: var(--secondary-clr);
  color: var(--white-clr);
}

.header-navlink.current {
  background-color: var(--secondary-clr);
  color: var(--white-clr);
}

.header-content {
  padding: calc(16rem / 16) calc(32rem / 16);
}

.main {
  display: flex;
  flex-direction: column;
  overflow: auto;
  flex: 1;
  position: relative;
}

.section-header {
  padding: calc(14rem / 16);
  background-color: var(--secondary-clr);
  position: fixed;
  top: 0;
  right: 0;
  width: calc(100% - calc(320rem / 16));
  border-bottom: 8px solid var(--tertiary-clr);
}

.section-header-title {
  font-size: var(--fs-medium);
  font-weight: var(--weight-semi-bold);
  text-align: center;
  color: var(--white-clr);
  letter-spacing: 0.5px;
  width: fit-content;
  margin: 0 auto;
  text-transform: uppercase;
  position: relative;
}

.section-header-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: calc(44rem / 16);
  height: 3px;
  background-color: var(--white-clr);
}

.section-wrapper {
  display: flex;
  flex-direction: column;
  overflow: auto;
  height: calc(100dvh - calc(84rem / 16));
  margin-top: calc(84rem / 16);
  margin-left: calc(320rem / 16);
  overflow-y: auto;
}

.articles {
  padding-top: calc(48rem / 16);
  padding-bottom: calc(32rem / 16);
}

.links {
  padding-top: calc(48rem / 16);
  padding-bottom: calc(32rem / 16);
}

.pb-0 {
  padding-bottom: 0;
}

.articles-title {
  font-size: var(--fs-medium);
  text-align: center;
  font-weight: var(--weight-semi-bold);
  color: var(--secondary-clr);
  margin-bottom: calc(24rem / 16);
  letter-spacing: 0.25px;
}

.articles-item {
  display: flex;
  align-items: flex-start;
  gap: calc(12rem / 16);
  margin-bottom: calc(20rem / 16);
}

.articles-item:last-child {
  margin-bottom: 0;
}

.articles-item-link {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: calc(12rem / 16);
  margin-bottom: calc(20rem / 16);
}

.articles-item-link:last-child {
  margin-bottom: 0;
}

.articles-info-links {
  display: flex;
  align-items: center;
  gap: calc(16rem / 16);
}

.articles-info-links > a > img {
  width: calc(20rem / 16);
}

.articles-info-links > span {
  display: block;
  color: var(--secondary-clr);
  width: calc(110rem / 16);
  font-size: var(--fs-lg);
  font-weight: var(--fs-medium);
}

.articles-info-link > span {
  color: var(--tertiary-clr);
}

.articles-info-link {
  font-size: var(--fs-lg);
  font-weight: var(--fs-medium);
  color: var(--secondary-clr);
  transition: color 250ms ease;
  flex: 1;
}

.persons-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: calc(32rem / 16);
  height: calc(32rem / 16);
  border-radius: 50%;
  background-color: var(--secondary-clr);
}

.persons-icon > img {
  width: calc(16rem / 16);
}

.articles-info-link:hover {
  color: var(--primary-clr);
}

.articles-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: calc(32rem / 16);
  height: calc(32rem / 16);
  border-radius: 50%;
  background-color: var(--secondary-clr);
}

.articles-icon > img {
  width: calc(14rem / 16);
}

.articles-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.articles-info > a {
  font-size: var(--fs-lg);
  font-weight: var(--fs-medium);
  color: var(--secondary-clr);
  transition: color 250ms ease;
}

.articles-info > a:hover {
  color: var(--primary-clr);
}

.articles-author {
  color: var(--tertiary-clr);
  font-weight: var(--weight-light);
}

.articles-date {
  color: var(--tertiary-clr);
  font-style: italic;
  font-weight: var(--weight-light);
}

.about {
  padding-top: calc(48rem / 16);
}

.about-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: calc(24rem / 16);
}

.about-item {
  width: calc(500rem / 16);
}

.about-item > img {
  width: calc(320rem / 16);
  height: calc(320rem / 16);
  object-fit: cover;
  border-radius: 50%;
  object-position: center;
  border: 4px solid var(--secondary-clr);
  padding: calc(8rem / 16);
  margin: 0 auto;
}

.about-title {
  font-size: var(--fs-xlg);
  font-weight: var(--weight-semi-bold);
  text-align: center;
  margin-top: calc(8rem / 16);
}

.about-designation {
  background-color: var(--tertiary-clr);
  width: fit-content;
  margin: 0 auto;
  padding: calc(2rem / 16) calc(12rem / 16);
  font-size: var(--fs-lg);
  font-weight: var(--fs-medium);
  color: var(--white-clr);
  margin-top: calc(8rem / 16);
}

.about-info {
  width: calc(360rem / 16);
  text-align: center;
}

.about-text {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: calc(12rem / 16);
}

.about-text > a:hover {
  color: var(--secondary-clr);
}

.about-text:last-child {
  margin-top: calc(24rem / 16);
}

.about-text > span {
  display: flex;
  justify-content: center;
  align-items: center;
  width: calc(32rem / 16);
  height: calc(32rem / 16);
  background-color: var(--tertiary-clr);
  border-radius: 50%;
}

.about-text > span > img {
  width: calc(18rem / 16);
}

.quote {
  padding-top: calc(30rem / 16);
}

.quote-text {
  background-color: var(--black-clr);
  color: var(--white-clr);
  text-align: center;
  padding: calc(6rem / 16) calc(12rem / 16);
}

.footer-section {
  padding: calc(32rem / 16) 0;
  margin-top: auto;
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: calc(44rem / 16);
}

.footer-link img {
  width: calc(52rem / 16);
  border-radius: 50%;
}

.footer-link .footer-orcid {
  border-radius: unset;
  width: calc(100rem / 16);
}

.header-menu-mobile {
  display: none;
}

.header-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: calc(320rem / 16);
  background-color: var(--gray-clr);
  min-height: 100dvh;
  box-shadow: rgba(0, 0, 0, 0.05) 0px 0px 0px 1px;
  z-index: 4;
}

.header-menu-navbar {
  margin-top: calc(32rem / 16);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(16rem / 16);
  padding: calc(10rem / 16) calc(24rem / 16);
}

.header-menu {
  left: calc(-320rem / 16);
  transition: all 250ms ease-in;
}

.header-menu.active {
  left: 0;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.25);
  z-index: 3;
  display: none;
}

.overlay.active {
  display: block;
}

/* Media Queries */
@media (max-width: 860px) {
  :root {
    --fs-big: calc(36rem / 16);
    --fs-medium: calc(26rem / 16);
  }

  .body-content {
    flex-direction: column;
  }

  .header {
    position: fixed;
    min-height: auto;
    width: 100%;
  }

  .header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: calc(32rem / 16);
    max-width: calc(992rem / 16);
    width: calc(100% - calc(32rem / 16));
    margin: 0 auto;
    padding: calc(10rem / 16) 0;
  }

  .container {
    width: calc(100% - calc(24rem / 16));
  }

  .header-navbar {
    display: none;
  }

  .section-header {
    padding: calc(10rem / 16) 0;
    top: calc(59rem / 16);
    width: 100%;
  }

  .about {
    padding-top: calc(80rem / 16);
  }

  .links {
    padding-top: calc(80rem / 16);
  }

  .articles {
    padding-top: calc(50rem / 16);
  }

  .about-item {
    max-width: calc(500rem / 16);
    width: 100%;
  }

  .about-info {
    max-width: calc(360rem / 16);
    width: 100%;
  }

  .section-wrapper {
    margin-left: 0;
  }

  .header-menu-mobile {
    display: block;
    cursor: pointer;
  }

  .header-title {
    font-size: var(--fs-xlg);
  }

  .header-menu-close {
    display: flex;
    padding-left: calc(12rem / 16);
    align-items: center;
    height: calc(59rem / 16);
    cursor: pointer;
  }

  .quote {
    padding-top: calc(60rem / 16);
  }

  .footer-links {
    gap: calc(24rem / 16);
  }

  .footer-link img {
    width: calc(36rem / 16);
  }
}
