/* =======================================================
   GLOBAL STYLES (Your original + CV mobile styling merged)
========================================================= */
body {
  font-family: Arial, sans-serif;
  overflow-x: hidden;
  position: relative;
  background: var(--sky-gradient, linear-gradient(to bottom, #87ceeb, #f0f8ff));
  transition: background 1s linear;
  line-height: 1.6;
}

/* 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);
}

/* =======================================================
   YOUR ORIGINAL SECTION / TABLE / SYLLABUS CSS
========================================================= */

/* ---- General Section Layout ---- */
section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 0;
}

/* ---- Table Section ---- */
table {
  border-collapse: collapse;
  width: 400px;
  background-color: white;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}

th,
td {
  border: 1px solid #ccc;
  padding: 10px;
  text-align: center;
}

th {
  background-color: #1976d2;
  color: white;
}

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

/* ---- Syllabus Section ---- */
h1 {
  text-align: center;
  color: #2b3e50;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: 30px;
  position: relative;
}

.topic {
  position: relative;
  background-color: white;
  border: 2px solid #2196f3;
  border-radius: 12px;
  width: 300px;
  padding: 20px;
  font-size: 20px;
  color: #333;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: 0.2s;
  cursor: pointer;
}

.topic:hover {
  background-color: #e3f2fd;
  transform: scale(1.03);
}

/* ---- Subtopic Box ---- */
.subtopics {
  position: absolute;
  top: 0;
  left: 335px; /* shows beside the topic */
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 10px;
  width: 220px;
  display: none; /* hidden by default */
}

.subtopics ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.subtopics li {
  padding: 8px;
  border-bottom: 1px solid #eee;
  color: #333;
  font-size: 16px;
}

.subtopics li:last-child {
  border-bottom: none;
}

/* =======================================================
   CV + COVER LETTER SECTION
========================================================= */

/* Cover letter box */
.letter {
  white-space: pre-line;
  font-size: 16px;
  padding: 15px;
  background: #fafafa;
  border-left: 4px solid #0077ff;
  border-radius: 6px;
}

/* CV Title */
.cv-title {
  font-size: 26px;
  font-weight: bold;
  margin-top: 30px;
  text-align: center;
}

/* Section headers */
.section-title {
  font-weight: bold;
  font-size: 20px;
  margin-top: 25px;
  border-bottom: 2px solid #0077ff;
  padding-bottom: 5px;
}

/* =======================================================
   HEADER BOX (Your button section)
========================================================= */
.home-box {
  text-align: center;
  padding: 20px;
  background: #0077ff;
  color: white;
  border-radius: 10px;
  margin-bottom: 25px;
}

.home-btn {
  padding: 10px 20px;
  background: white;
  color: #0077ff;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
}

.home-btn:hover {
  background: #e0e0e0;
}

/* =======================================================
   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;
  }
}
