/* ===================================
   1. Base & Global Styles
   =================================== */

/* Main content container setup */
main {
  display: flex;
  flex-direction: column;
  font-family: Verdana;
}

/* Default text alignment for direct children of main */
main h1,
main p {
  text-align: center; /* centers the text inside */
}

/* Global link styling */
a {
  color: rgba(0, 0, 0, 1); /* Makes the text black */
  text-decoration: underline;
  font-weight: bold;
}

a:hover {
  color: gray; /* Optional: changes color on hover */
}

/* ===================================
   2. General Layout Components
   =================================== */

/* A full-width row with a centered highlight band */
.text-box {
  width: 100vw;
  padding: 20px 0;
  /* centered horizontal band that fades to transparent at edges */
  background: linear-gradient(
      to right,
      rgba(255, 255, 255, 0.05) 0%,
      rgba(255, 255, 255, 0.2) 50%,
      rgba(255, 255, 255, 0.05) 100%
    )
    no-repeat center;
}

/* ===================================
   3. Specific Page Components
   =================================== */

/* --- Header --- */
.header {
  overflow: hidden;
  display: flex;
  align-items: center; /* vertically center */
  justify-content: center; /* horizontally center */
  width: 100%;
  padding: 40px 0px;
  background: linear-gradient(to bottom, #00228a, #010A21);
  color: white;
}

.header-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.header h1 {
  color: #fff;
  font-size: clamp(1.1rem, 10vw, 3rem);
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1s ease-out;
}

.header p {
  font-size: clamp(1rem, 4vw, 1.5rem);
  color: #ddd;
  margin: auto;
  opacity: 0.9;
  animation: fadeInUp 1s ease-out;
}

/* --- Publications Page --- */
.publication-class {
  width: 100vw;
  padding: 20px 0;
  /* centered horizontal band */
  background: linear-gradient(
      to right,
      rgba(255, 255, 255, 0.2) 0%,
      rgba(255, 255, 255, 0.2) 50%,
      rgba(255, 255, 255, 0.2) 100%
    )
    no-repeat center;
}

.publication-class h1 {
  text-align: left; /* left just the heading */
  margin: 0% 10%;
  max-width: fit-content; /* shrink box around text */
  font-size: 2rem; /* big title */
  font-weight: bold;
  color: rgba(0, 0, 0, 1);
}

.publication-class h2 {
  text-align: center; /* center just the heading */
  margin: 30px 10% 1rem 10%; /* top 30px, bottom 1rem, sides 10% */
  max-width: fit-content; /* shrink box around text */
  font-size: 1.2rem;
  font-weight: bold;
  color: rgb(0, 0, 83);
}

.publication-class p {
  margin: 0 10%;
  text-align: left;
  max-width: 100%;
  font-size: 0.9rem; /* normal body text */
  line-height: 1.6;
}

/* Keywords paragraph styling */
.publication-class p.keywords {
  margin: 1em 10% 0 10%; /* top margin increased */
  text-align: left;
  max-width: 100%;
  font-size: 0.9rem;
  line-height: 1.6;
}

.publication-class p.keywords::before {
  content: "Keywords: ";
  font-weight: bold;
  font-size: 1rem;
}

/* Horizontal rule styling */
.publication-class hr {
  border: none; /* remove default border */
  height: 3px; /* line thickness */
  background-color: #000; /* black line */
  width: 90%; /* 90% of container width */
  margin: 0 auto 20px auto; /* center and add spacing below */
}

/* Specific style for the second <hr> */
.publication-class hr.hr2 {
  background-color: rgba(0, 0, 0, 0.3); /* 30% opacity */
  width: 50%;
  margin: 5% auto 20px;
}

/* ===================================
   4. Animations
   =================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}