/* Header section */
#top-header {
  display: flex;
  justify-content: center;   
  align-items: center;
  background-color: #d4e3fa;
  padding: 20px 60px;
  position: relative;        
  height: 350px;              
  overflow: hidden;          
}

/* The image */
#banner {
  position: absolute;
  top: 25px;                 
  right: 60px;               
  height: 300px;
  width: 300px;
  border-radius: 20px;
  object-fit: cover;
}

/* The name */
#top-header h1 {
  margin: 0;
  font-size: 4rem;
  font-weight: 700;
  color: #222;
  font-family: "Lucida Handwriting", cursive;}

/* Main Layout */
#layout {
  display: flex;
  justify-content: space-between;
}

/* Sidebar navigation */
nav.side-tabs {
  width: 200px;
  background-color: #eae0ff;
  padding: 20px;
  text-align: right; 
}

nav.side-tabs ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

nav.side-tabs li {
  margin-bottom: 15px;
}

nav.side-tabs a {
  text-decoration: none;
  color: #000;
  font-weight: 500;
}

nav.side-tabs a:hover {
  color: #042236;
}

/* Article content */
article {
  flex-grow: 1;
  padding: 40px;
  line-height: 1.6;
  font-size: 1.05rem;
}

/* General body styles */
body {
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  background-color:#e5f0e5 
}
/* =========================
   Responsive layout
   ========================= */
@media (max-width: 900px) {
  #layout {
    flex-direction: column;
  }

  nav.side-tabs {
    width: 100%;
    text-align: center;
  }

  article {
    padding: 20px;
  }
}

@media (max-width: 600px) {
  #top-header {
    flex-direction: column;
    height: auto;
    padding: 15px 20px;
  }

  #top-header h1 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 10px;
  }

  /* Hide large banner image on small screens */
  #banner {
    display: none;
  }

  nav.side-tabs ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  nav.side-tabs li {
    margin-bottom: 0;
  }

  nav.side-tabs a {
    display: inline-block;
    padding: 8px 12px;
  }
}

/* =========================
   Table styling (About Me)
   ========================= */
.profile-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background-color: #ffffff;
}

.profile-table th,
.profile-table td {
  border: 1px solid #ccc;
  padding: 10px 12px;
  text-align: left;
}

.profile-table th {
  background-color: #d4e3fa;
  font-weight: bold;
}

/* Responsive table using data-label method */
@media (max-width: 600px) {
  .profile-table thead {
    display: none;
  }

  .profile-table,
  .profile-table tbody,
  .profile-table tr,
  .profile-table td {
    display: block;
    width: 100%;
  }

  .profile-table tr {
    margin-bottom: 15px;
    border: 1px solid #ccc;
    padding: 10px;
  }

  .profile-table td {
    text-align: left;
    padding-left: 45%;
    position: relative;
  }

  .profile-table td::before {
    content: attr(data-label);
    position: absolute;
    left: 10px;
    top: 0;
    font-weight: bold;
  }
}

/* =========================
   Contact form styling
   ========================= */
.contact-form {
  margin-top: 20px;
  background-color: #ffffff;
  padding: 20px;
  border-radius: 8px;
}

.contact-form label {
  display: block;
  margin-top: 10px;
  font-weight: 600;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 8px;
  margin-top: 4px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
}

.contact-form textarea {
  min-height: 120px;
}

.contact-form .option-group {
  margin-top: 5px;
}

.contact-form .option-group label {
  display: inline-block;
  margin-right: 15px;
  font-weight: 400;
}

.contact-form button[type="submit"] {
  margin-top: 15px;
  padding: 10px 18px;
  border: none;
  border-radius: 4px;
  background-color: #042236;
  color: #ffffff;
  font-size: 1rem;
  cursor: pointer;
}

.contact-form button[type="submit"]:hover {
  background-color: #06406a;
}

/* =========================
   Media section (audio/video)
   ========================= */
#intro-media {
  margin-top: 25px;
}

#intro-media video,
#intro-media audio {
  display: block;
  margin-top: 10px;
  max-width: 100%;
}

