/* GENERAL BODY */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  background: #f9f9f9;
  color: #333;
}

/* HEADER TITLE */
.site-title {
  font-family: Georgia, serif;
  font-size: 40px;
  font-weight: bold;
  text-align: center;
  padding: 1rem 0;
  color: white;
  background-color: #003366;
  margin: 0;
}

/* White separator under title */
.separator-line {
  height: 2px;
  background-color: white;
  margin: 0;
}

/* NAVBAR */
nav {
  background-color: #003366;
  overflow-x: auto;
  white-space: nowrap;
  padding: 0.5rem 1rem;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

nav a {
  display: inline-block;
  background-color: #1574a8;
  color: white;
  padding: 10px 16px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
}

nav a:hover {
  background-color: white;
  color: #003366;
  text-decoration: none;
}

/* PROFILE SECTION CONTAINER */
#profile {
  background-color: #f5f5f5; /* The back rectangle color */
  width: 100%; /* Full width of screen */
  padding: 40px 0; /* Space above & below */
}

.profile-container {
  display: flex;
  align-items: center;
  justify-content: center; /* Center horizontally */
  gap: 40px; /* Increased gap for balance */
  padding: 0 20px;
  background-color: #f5f5f5;
  max-width: 1200px; /* Prevents it from stretching too wide on large screens */
  margin: 0 auto; /* Centers the whole container */
}



/* LEFT SIDE OF PROFILE */
/* Profile picture */
.profile-pic {
  width: 100%;
  max-width: 450px; /* increased from 300px */
  height: auto;
  border-radius: 20%;
}

.left-section {
  display: flex;
  flex-direction: column;
  align-items: center; /* center horizontally */
  justify-content: center;
  padding: 20px;
  flex: 0 0 300px;
}


/* Text beside profile */
.profile-text {
  font-size: 20px;
  line-height: 1.6;
  max-width: 400px;
  flex: 1;
  margin-left: 20px;
  text-align: left;
}


.profile-text a {
  color: #007acc;
  text-decoration: none;
}

/* RIGHT SIDE (books image) */
.profile-right {
  flex: 0 0 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}


.books-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* GENERAL STYLES */
section {
  padding: 2rem;
  background: #fff;
  border-bottom: 1px solid #ccc;
}

h2 {
  color: #003366;
}

ul {
  list-style-type: disc;
  margin-left: 1.5rem;
}

input[type="text"] {
  padding: 0.5rem;
  width: 300px;
  margin-right: 8px;
}

button {
  padding: 0.5rem 1rem;
  background-color: #003366;
  color: white;
  border: none;
  cursor: pointer;
}

button:hover {
  background-color: #00264d;
}

footer {
  text-align: center;
  padding: 1rem;
  background: #003366;
  color: white;
}


/* PUBLICATION ICON SECTION */
.publication-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
  margin: 40px 0;
  text-align: center;
}

.publication-icons a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 130px;
  height: 130px;
  border-radius: 8px;
  padding: 10px;
  background: white;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.publication-icons a:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.publication-icons img {
  width: 100%;
  height: auto;
  max-height: 100px;
  object-fit: contain;
}

.small-text {
  font-size: 0.85rem;
  line-height: 1.4;
  white-space: pre-line;

}

.newline {
  white-space: pre-line;
}

.books-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  border-radius: 10px
  flex-wrap: wrap;
  margin-top: 20px;
}

.book-item {
  text-align: center;
}

.book-item img {
  width: 130px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.downloads {
  font-size: 14px;
  margin-top: 8px;
  color: #333;
}

.downloads-note {
  text-align: center;
  font-size: 12px;
  color: #555;
  margin-top: 20px;
}


.book-item a img {
  width: 160px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.book-item a img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.25);
}


.topics-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.topic-category {
  flex: 1;
  min-width: 250px;
}

.topic-category h3 {
  margin-bottom: 10px;
  font-size: 1.2em;
  border-bottom: 2px solid #ccc;
  padding-bottom: 5px;
}

.topics-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.topics-list button {
  padding: 8px 12px;
  background-color: #003366; /* your dark blue */
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.3s ease;
}

.topics-list button:hover {
  background-color: #00264d; /* slightly darker on hover */
}


/* Table Styling */
.lectures-table {
  width: 90%;
  margin: 30px auto;
  border-collapse: collapse;
  background-color: white;
}

.lectures-table th, .lectures-table td {
  border: 1px solid #ccc;
  padding: 10px;
  text-align: left;
}

.lectures-table th {
  background-color: #002b5c;
  color: white;
}

.lectures-table a {
  color: #004080;
  text-decoration: none;
}

.lectures-table a:hover {
  text-decoration: underline;
}

/* ---------- RESPONSIVE LAYOUT ---------- */


@media (max-width: 768px) {
  /* Profile should be column layout */
  #profile {
    display: flex;
    flex-direction: column;
  }

  /* Profile content is row (image left, text right) */
  #profile .profile-container {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 0;
    padding: 20px; /* reduce padding for mobile */
  }

  #profile .profile-left .profile-pic {
    width: 100px;
    height: auto;
    border-radius: 8px;
  }

  #profile .profile-text {
    flex: 1;
    font-size: 0.95em;
  }

  /* Books Section is now full width under profile */
  #books {
    margin-top: 10px;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
  }

  #books .books-grid {
    display: flex;
    flex-direction: row;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 10px 0;
    margin: 0;
  }

  #books .books-grid::-webkit-scrollbar {
    display: none;
  }

  #books .book-item {
    flex: 0 0 70%;
    max-width: 250px;
    text-align: center;
    scroll-snap-align: center;
  }

  #books .book-item img {
    width: 100%;
    height: auto;
    border-radius: 6px;
  }
}







