/* Essential CSS Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

img {
  max-width: 100%;
  display: block;
}

ul, ol {
  list-style: none;
}

button, input, textarea {
  font: inherit;
}

body {
  line-height: 1.5;
}

body {
  font-family: Arial, sans-serif;
}

.logo-placeholder {
  width: 150px;
  height: 150px;
  display: block; /* ensures margin auto works */
  margin: 30px auto 20px;
}

.logo-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.title {
  font-size: xx-large;
  color: #20a9bb;
  position: relative;
  display: block;
  width: fit-content;  /* shrink to text width */
  margin: 0 auto;      /* center horizontally */
}

.title-wrapper {
    margin-bottom: 60px;
}

.title::after {
    content: "";
    position: absolute;
    left: 50%;                  /* center starting point */
    bottom: -5px;
    width: 50%;                  /* line width */
    height: 4px;                 /* line thickness */
    background-color: red;
    transform: translateX(-50%); /* shift left by half of its width to truly center */
}

header {
    display: flex;
    flex-direction: row;
    align-items: center;
    background-color: #20a9bb;
    margin-bottom: 30px;
}

.pre-logo {
    margin: 0 auto;
}

.pre-logo p {
    font-family: "Great Vibes", cursive;
    font-weight: 500;
    font-style: normal;
}

.books-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.book-card {
  width: 200px;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
}

.book-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

#a-propos h2 {
  text-align: center;
}

/* Remove default underline for the whole link */
a {
  text-decoration: none;
  color: inherit;
}

/* Add underline only to the title text inside the card */
.book-card h3 {
  text-decoration: underline;
  display: inline; /* keeps underline behavior on the text */
}

/* Remove underline for the professor name */
.book-card h3 .prof-name {
  text-decoration: none;
  display: inline-block; /* helps some browsers treat the span separately */
  color: blue;
}

#books {
  margin-bottom: 50px;
}

.a-propos-title {
  font-size: xx-large;
  color: #20a9bb;
  margin-bottom: 30px;
}

.a-propos-paragraph {
  max-width: 600px;
  margin: 0 auto;
  text-align: justify;
}

.footer {
  text-align: center;
  padding: 20px 0;
  font-size: 14px;
  color: #666;
}

.a-propos-paragraph {
  font-family: 'Inter', sans-serif;
  font-weight: 400;       /* normal weight */
  font-size: 16px;        /* readable size */
  line-height: 1.7;       /* good spacing for paragraphs */
  color: #333;            /* optional: dark text for readability */
}

.pre-logo p {
  font-size: clamp(1rem, 0.2958rem + 3.0047vw, 3rem);
}
@media screen and (max-width: 768px) {
  .logo-placeholder {
    width: 80px;
    height: 80px;
  }
  #books, #a-propos {
    padding-inline: 16px;
  }
}

@media screen and (max-width: 767px) {
  .logo-placeholder {
    width: 60px;
    height: 60px;
  }  
}
