/* === Base Styles === */
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded');

body {
  font-family: 'sans-serif', Arial, sans-serif;
  background: #fdfdfd;
  margin: 0;
  color: #333;
  line-height: 1.5;          /* Comfortable line-height */
  font-size: 0.95rem;        /* Base text size */
  overflow-x: hidden;        /* Prevent horizontal scrolling */
}

/* === Download PDF Button === */
.download-btn {
  position: fixed;
  top: 15px;
  right: 15px;
  background: #00796b;
  color: #fff;
  font-size: 0.95rem;
  padding: 8px 14px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  box-shadow: 0 3px 6px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.3s ease, transform 0.2s ease;
  z-index: 999;
}

.download-btn:hover {
  background: #004d40;
  transform: scale(1.05);
}

/* === Floating Back Button === */
.back-btn {
  position: fixed;
  top: 15px;
  left: 15px;
  font-size: 0.85rem;
  color: #00796b;
  background: #f4f4f4;
  border: 1px solid #ccc;
  padding: 6px 10px;
  border-radius: 20px;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: background 0.3s ease;
}

.back-btn:hover {
  background: #e0f2f1;
}

 .logo {
  display: block;
  margin: 0 auto 1rem auto; /* Center logo with spacing below */
  max-width: 200px;         /* Scales well for PDF and mobile */
}

.page h1, 
.page h2 {
  text-align: center;       /* Center title and subtitle */
}

.researchers-block {
  border-radius: 10px;
  margin: 1rem auto;
  max-width: 500px;
  text-align: center; /* Center all inner content */
}

.researchers-block .researcher-names {
  margin-bottom: 20px;
}

.researchers-block .researcher-names p {
  margin: 0.3rem 0; /* Tighten spacing between names */
  text-align: center; /* Ensure each name is centered */
  font-size: 1rem;
  color:  #555;
}

.page .researchers-block strong {
  margin: 0.3rem 0; /* Consistent spacing for all paragraphs */
  font-size: 1rem;
  text-align: center; /* Ensure each name is centered */
  color: #555;
  margin-bottom: -50px;
}

.page .researchers-block p {
  text-align: center;
}

.researchers-block hr {
  border: none;
  border-top: 1.5px solid #aaa; /* Slightly thicker line */
  width:100%;                   /* Make line narrower */
  margin: 15px auto;            /* Auto horizontal margins to center */
  display: block;               /* Ensure it’s treated as a block element */
}

/* === eBook Container === */
.ebook-container {
  max-width: 900px;
  margin: 60px auto 30px;
  padding: 0 16px;
}

/* === Each Page === */
.cover-page {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  height: 100vh; /* Full page height for centering */
  padding: 2rem;
}

.page {
  margin-bottom: 10px;
  padding: 20px;
  border-radius: 6px;
  page-break-inside: avoid; /* Prevent breaking mid-block */
  page-break-after: always; /* Force break at end of page */
}

.page * {
  page-break-inside: avoid; /* Avoid cutting inside elements */
}

.page h1 {
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 0.8rem;
}

.page h2 {
  font-size: 1.3rem;
  text-align: center;
  color: #555;
  margin-bottom: 1rem;
}

.page h3 {
  font-size: 1.1rem;
  color: #333;
  margin-top: 1.4rem;
  border-bottom: 1px solid #ddd;
  padding-bottom: 4px;
  text-align: center;
}

.page p {
  font-size: 0.95rem;
  margin-bottom: 12px;
  color: #444;
  text-align: justify;
}

/* === Page Counter === */
.page-counter {
  position: fixed;
  bottom: 10px;
  right: 10px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 0.8rem;
  padding: 5px 10px;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* === Footer === */
footer {
  text-align: center;
  margin-top: 40px;
  font-size: 0.85rem;
  color: #888;
}

/* === Mobile Responsive === */
@media (max-width: 768px) {
  body {
    font-size: 0.9rem;          /* Slightly larger text for small screens */
    line-height: 1.5;
  }

  .download-btn, .back-btn {
    font-size: 0.85rem;
    padding: 6px 10px;
  }

  .ebook-container {
    padding: 0 10px;
  }

  .researchers-block strong {
    font-size: 0.9rem;         /* Slightly smaller text for names */
    margin-bottom: -30px;       /* Adjust spacing for smaller screens */
  }

  .researchers-block .researcher-names {
    font-size: 0.9rem;       
    margin-bottom: 25px;
  }

  .researchers-block hr {
    margin-top: 0px;         /* More space around horizontal rules */
    margin-bottom: 5px;       /* More space around horizontal rules */
  }

  .page {
    padding: 15px;
  }

  .page h1 {
    font-size: 1.4rem;
  }

  .page h2 {
    font-size: 1.1rem;
  }

  .page h3 {
    font-size: 1rem;
  }

  .page p {
    font-size: 0.88rem;
  }

  .page-counter {
    font-size: 0.75rem;
    padding: 4px 8px;
  }
}
