/* ===== Reset & Base ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #222;
  background-color: #fdfdfd;
  display: flex;
  min-height: 100vh;
}

/* ===== Sidebar ===== */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 270px;
  height: 100vh;
  background: #f4f4f6;
  border-right: 1px solid #ddd;
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sidebar img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 3px solid #4c9faf;
}

.sidebar h1 {
  font-size: 1.4rem;
  text-align: center;
  margin-bottom: 0.5rem;
  color: #0c3c47;
}

.sidebar p {
  font-size: 0.9rem;
  color: #555;
  text-align: center;
  margin-bottom: 1.5rem;
}

/* ===== Navigation ===== */
.nav-links {
  width: 100%;
}

.nav-links a {
  display: block;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  margin: 0.3rem 0;
  transition: background 0.3s, color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  background: #4c9faf;
  color: #fff;
}

/* ===== Main Content ===== */
main {
  margin-left: 270px;
  padding: 3rem 4rem;
  flex: 1;
  max-width: 900px;
}

h2 {
  font-size: 2rem;
  color: #0c3c47;
  margin-bottom: 1rem;
  border-bottom: 3px solid #4c9faf;
  display: inline-block;
  padding-bottom: 0.3rem;
}

/* ===== About Section ===== */
.about-img {
  width: 100%;
  max-width: 400px;
  border-radius: 12px;
  margin: 1rem 0;
  display: block;
}
.about-img2 {
  width: 100%;
  max-width: 600px;
  border-radius: 12px;
  margin: 1rem 0;
  display: block;
}


.about-text p {
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.2rem;
  background: #4c9faf;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  margin-top: 1rem;
  transition: background 0.3s;
}

.btn:hover {
  background: #367b8a;
}

/* ===== Responsive Design ===== */
@media (max-width: 900px) {
  body {
    flex-direction: column;
  }

  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    flex-direction: row;
    justify-content: space-between;
    padding: 1rem 2rem;
  }

  .sidebar img {
    width: 80px;
    height: 80px;
    margin-bottom: 0;
  }

  .sidebar h1 {
    font-size: 1rem;
  }

  .nav-links {
    display: flex;
    gap: 0.8rem;
  }

  main {
    margin-left: 0;
    padding: 2rem;
  }
}
/* Contact form styling */
.contact-form label {
  display: flex;
  flex-direction: column; /* Stack input/textarea below the label text */
  margin-bottom: 1rem;
  font-weight: 500;
}

.contact-form input,
.contact-form textarea {
  padding: 0.6rem 0.8rem;
  margin-top: 0.3rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  width: 100%;
}

.contact-form textarea {
  resize: vertical; /* Allow vertical resizing */
}
.social-icon {
  width: 32px;      /* Adjust size as needed */
  height: 32px;
  margin-right: 10px; /* Space between icons */
  vertical-align: middle; /* Align with text */
  transition: transform 0.3s;
}

.social-icon:hover {
  transform: scale(1.1); /* Slight zoom on hover */
}
/* ===== Table Styling ===== */
.styled-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border-radius: 8px;
  overflow: hidden;
}

.styled-table thead {
  background-color: #4c9faf;
  color: #fff;
  text-align: center;
}

.styled-table th,
.styled-table td {
  border: 1px solid #ddd;
  padding: 0.75rem 1rem;
  text-align: center;
}

.styled-table tbody tr:nth-child(even) {
  background-color: #f4f4f6;
}

.styled-table tbody tr:hover {
  background-color: #e0f0f3;
}
.image-row {
  display: flex;
  gap: 1rem;           /* space between images */
  justify-content: center; /* center the row */
  align-items: flex-start;
  flex-wrap: nowrap;    /* prevents stacking */
}

.side-img {
  width: 48%;           /* each image takes ~half of the row */
  max-width: 500px;     /* optional max width */
  height: auto;
  border-radius: 12px;
}
.topic-category {
  margin-bottom: 2rem;
}

.topic-category h3 {
  color: #4c9faf;
  border-bottom: 2px solid #4c9faf;
  display: inline-block;
  padding-bottom: 0.3rem;
  margin-bottom: 0.5rem;
}
@media (max-width: 600px) {
  .sidebar {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .nav-links {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  main {
    padding: 1rem;
  }

  h2 {
    font-size: 1.5rem;
  }
}
.image-row {
  flex-wrap: wrap;
}

.side-img {
  width: 100%;
  max-width: 400px;
}
.styled-table {
  display: block;
  overflow-x: auto;
}
