body {
  font-family: "Segoe UI", Arial, "Noto Sans Bengali", "Noto Serif Bengali",
    sans-serif;
  background-color: #f4f6f9;
  margin: 0;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  font-size: 17px;
  line-height: 1.7;
}

table {
  width: 90%;
  max-width: 900px;
  border-collapse: collapse;
  background-color: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  overflow: hidden;
}

th,
td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

th {
  background-color: #007bff;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

tr:nth-child(even) {
  background-color: #f9f9f9;
}

tr:hover {
  background-color: #e8f0fe;
  transition: background 0.3s;
}

h2 {
  color: #007bff;
  text-transform: uppercase;
  letter-spacing: 1px;
}

@media (max-width: 600px) {
  table {
    font-size: 14px;
  }

  th,
  td {
    padding: 8px;
  }
}

.image-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.image-gallery a img {
  width: 250px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s, box-shadow 0.3s;
}

.image-gallery a img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

body {
  font-family: Arial, sans-serif;
  margin: 20px;
}

ul {
  list-style-type: none;
}

.home-box {
  text-align: center;
  margin-bottom: 40px;
}


/* Make download button bigger and touch-friendly */
.download-btn {
  font-size: 20px;
  text-decoration: none;
  padding: 12px 18px;
  background-color: #4caf50;
  color: white;
  border-radius: 5px;
  display: inline-block;
  margin: 20px 0;
}

/* Page wrapper for CV + Letter */
.page-container {
  max-width: 900px;
  background: #ffffff;
  margin: 20px auto;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}


/* =======================================================
   RESPONSIVE SETTINGS (MOBILE FRIENDLY)
========================================================= */

@media (max-width: 768px) {
  .page-container {
    margin: 10px;
    padding: 15px;
  }

  table {
    width: 100%;
  }

  .letter {
    font-size: 15px;
  }

  .topic {
    width: 260px;
  }

  .subtopics {
    position: static; /* show below instead of right side */
    width: 90%;
    margin-top: 10px;
  }

  .cv-title {
    font-size: 22px;
  }

  .section-title {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .letter {
    font-size: 14px;
  }

  .contact div {
    font-size: 14px;
  }

  .topic {
    width: 240px;
    font-size: 18px;
  }

  .home-box {
    padding: 15px;
  }

  .home-btn {
    display: inline-block;
    margin-top: 10px;
  }
}


/* Mobile */
@media (max-width: 480px) {
  .download-btn {
    width: 80%;
    padding: 14px;
    font-size: 16px;
  }
}


