@import url("https://fonts.googleapis.com/css2?family=Anton&family=Josefin+Sans&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Josefin Sans', sans-serif;
  background-color: #e6f2f8;
}

/* Header Layout from home.css */
header {
  background-color: #0081a7;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
}

.logo {
  font-family: 'Anton', sans-serif;
  font-size: 28px;
  color: white;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 0;
}
nav a {
  font-family: 'Anton', sans-serif;
  font-size: 18px;
  color: white;
  text-decoration: none;
  transition: color 0.3s;
}

nav a:active {
color: #003638;
}

nav a:hover {
color: #003638;
}

nav a:focus {
color: #003638;
}

.pIcon img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

/* Profile Layout */
.main-profile-container {
  display: flex;
  padding: 40px;
  gap: 30px;
}

.sidebar {
  width: 200px;
  background-color: #d2e7f8;
  border-radius: 12px;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sidebar a.tab {
  display: block;
  background-color: transparent;
  text-decoration: none;
  color: #003638;
  font-weight: bold;
  font-size: 14px;
  padding: 10px 12px;
  width: 100%;
  transition: background-color 0.3s ease;
  border: 2px solid transparent;
}

.sidebar a.tab:hover,
.sidebar a.tab:focus {
  background-color: #003638;
  color: white;
}

.sidebar a.tab.active {
  background-color: #003638;
  color: white;
}

.sidebar a.logout {
  background-color: #a70000;
  color: white;
  font-weight: bold;
  padding: 10px 20px;
  border-radius: 25px;
  text-align: center;
  text-decoration: none;
  margin-top: auto;
}

.profile-section {
  flex: 1;
  background-color: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.profile-section h2 {
  font-size: 22px;
  margin-bottom: 20px;
}

.profile-section h3 {
  margin-top: 30px;
  margin-bottom: 10px;
  font-size: 18px;
}

.profile-section label {
  display: block;
  margin-top: 15px;
  font-weight: bold;
}

.profile-section input,
.profile-section textarea {
  width: 100%;
  margin-top: 5px;
  font-size: 14px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 30px;
}

.profile-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
}

.profile-info h2 {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
}

.profile-info p {
  font-size: 14px;
  margin: 0;
}

.profile-details h3 {
  margin-bottom: 37px;
}

.profile-details p {
  margin-bottom: 20px;
}

input:disabled,
textarea:disabled {
  background: none;
  border: none;
  color: #555;
  opacity: 0.85;
}

input:not(:disabled),
textarea:not(:disabled) {
  background: #f5f5f5;
  border: 1px solid #ccc;
}

.buttons {
  margin-top: 25px;
  display: flex;
  gap: 10px;
}

.buttons button {
  flex: 1;
  padding: 10px;
  font-weight: bold;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.buttons button:nth-child(1) {
  background-color: #004a61;
}

.container {
  padding: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

hr {
  margin: 30px 0;
  border: none;
  border-top: 2px solid #0081a7;
}

@media (max-width: 768px) {
  .main-profile-container {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    flex-direction: row;
    justify-content: space-around;
  }

  .sidebar a.tab {
    padding: 8px;
    font-size: 12px;
  }

  .profile-section {
    margin-top: 20px;
  }

  .buttons {
    flex-direction: column;
  }
}

.names {
 font-size: 14px;
 opacity: 0.9;
 margin: 0px;
}

footer {
  width: 100%;
  background-color: #0081a7;
  color: white;
  text-align: center;
  padding: 20px 0 10px 0;
  position: absolute;
  bottom: 0
}

footer h2 {
 font-size: 20px;
 margin: 0px;
 margin-bottom: 10px;
 font-family: 'Anton', sans-serif;
 letter-spacing: 2px;
 font-weight: 300;
}

.icons {
 display: flex;
 justify-content: center;
 gap: 25px;
 margin-bottom: 20px;
}

.icons img {
 width: 40px;
 height: 40px;
 object-fit: contain;
}

footer p {
 font-size: 14px;
 opacity: 0.9;
}