body {
  font-family: 'Georgia', serif;
  margin: 0;
  background: url('../images/leaf-bg.png') repeat;
  background-size: 400px;
  color: #3a2d1d;
}

.wrapper {
  display: flex;
  min-height: 100vh;
  flex-direction: row;
}

.sidebar {
  background-color: #5a3e2b;
  padding: 20px;
  width: 200px;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
}

.sidebar-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 20px;
}


.sidebar img {
  max-width: 100%;
  height: auto;
  margin-bottom: 20px;
  border-radius: 10px;
}

.sidebar nav ul {
  list-style: none;
  padding: 0;
  width: 100%;
}

.sidebar nav ul li {
  margin-bottom: 10px;
}

.sidebar nav ul li a {
  text-decoration: none;
  color: white;
  background-color: #6e4b34;
  padding: 16px 20px;
  display: block;
  border-radius: 8px;
  transition: all 0.3s ease;
  opacity: 0.85;
  font-size: 1.1em;
  font-weight: 600;
  text-align: center;
}


.sidebar nav ul li a:hover {
  background-color: #8b5c3e;
  opacity: 1;
}

.sidebar nav ul li a.active {
  background-color: #d9a15d;
  font-weight: bold;
  opacity: 1;
}

.main {
  flex: 1;
  margin-left: 200px; 
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
}

.banner {
  width: 100%;
  max-width: 1200px;
  height: auto;
  max-height: 300px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 20px;
}

.content-card {
  background-color: rgba(255, 255, 245, 0.96);
  padding: 30px;
  border-radius: 10px;
  max-width: 1000px;
  width: 100%;
  box-shadow: 0 0 15px rgba(90, 62, 43, 0.2);
  animation: fadeIn 1.2s ease;
}

footer {
  margin-top: 40px;
  font-size: 0.85em;
  color: #5a3e2b;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.service-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 30px 0;
}

.service-btn {
  text-align: center;
  background-color: #d9a15d;
  color: white;
  font-weight: bold;
  padding: 12px 20px;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.service-btn:hover {
  background-color: #8b5c3e;
  transform: scale(1.02);
}

.exp-toggle {
  margin-top: 1em;
  background-color: #f9f4f1;
  border: 1px solid #d9c5b4;
  border-radius: 6px;
  padding: 1em;
  overflow: hidden;
  transition: background-color 0.3s ease;
}

.exp-toggle summary {
  font-weight: bold;
  cursor: pointer;
  color: #6e4b34;
  font-size: 1.1em;
  list-style: none;
}

.exp-toggle summary::marker {
  display: none;
}

.exp-toggle[open] {
  background-color: #f3eae5;
}

.exp-toggle p {
  margin: 0.8em 0 0;
  color: #4a3a2a;
  animation: fadeSlide 0.3s ease-in-out;
}

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

table {
  width: 100%;
  border-collapse: collapse;
  background-color: #f9f4f1;
  margin-top: 1rem;
}

th, td {
  text-align: left;
  padding: 0.75em;
}

thead tr {
  background-color: #e6d9cc;
  color: #5a3c2f;
}

tbody tr:nth-child(even) {
  background-color: #f2ebe6;
}

tbody tr:hover {
  background-color: #e6d9cc;
  transition: background-color 0.3s ease;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
  background-color: #f9f6f0;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.contact-form label {
  font-weight: bold;
  color: #5c3d2e;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
}

.contact-form button {
  background-color: #8b5c3e;
  color: #fff;
  padding: 0.75rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: #6e442f;
}

@media (max-width: 768px) {
  .wrapper {
    flex-direction: column;
  }

  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    padding: 10px;
  }

  .main {
    margin-left: 0; 
    padding: 10px;
  }

  .sidebar nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  .sidebar nav ul li {
    margin: 5px;
    flex: 1 1 100px; 
  }

  .sidebar nav ul li a {
    padding: 12px;
    font-size: 1em;
  }

  .dark-toggle {
    margin-top: 15px;
    width: auto;
  }
}

@media (max-width: 768px) {
  .wrapper {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    padding: 10px;
  }

  .sidebar nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  .sidebar nav ul li {
    margin: 5px;
  }

  .main {
    padding: 10px;
  }

  .content-card {
    padding: 20px;
  }

  .banner {
    max-height: 200px;
  }

}

table {
  border-radius: 8px;
  overflow: hidden;
}

table {
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 10px;
  overflow: hidden;
}

thead tr:first-child th:first-child {
  border-top-left-radius: 10px;
}

thead tr:first-child th:last-child {
  border-top-right-radius: 10px;
}

tbody tr:last-child td:first-child {
  border-bottom-left-radius: 10px;
}

tbody tr:last-child td:last-child {
  border-bottom-right-radius: 10px;
}

body.dark-mode {
  background-color: #1e1e1e;
  color: #e0dcd5;
}

body.dark-mode .content-card,
body.dark-mode .exp-toggle,
body.dark-mode .service-btn,
body.dark-mode table,
body.dark-mode footer {
  background-color: #2c2c2c;
  color: #e0dcd5;
  box-shadow: 0 0 10px rgba(0,0,0,0.4);
}

body.dark-mode .sidebar {
  background-color: #333;
}

body.dark-mode .sidebar nav ul li a {
  background-color: #444;
  color: #eee;
}

body.dark-mode .sidebar nav ul li a.active {
  background-color: #666;
  color: #fff;
}

body.dark-mode .service-btn:hover {
  background-color: #555;
}

body.dark-mode .exp-toggle {
  background-color: #444;
  color: #f2f2f2;
  border: 1px solid #666;
}

body.dark-mode .exp-toggle:hover {
  background-color: #555;
}


.dark-toggle {
  margin-top: 30px;
  padding: 10px 16px;
  background-color: #d9a15d;
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1em;
  width: 100%;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.dark-toggle:hover {
  background-color: #8b5c3e;
  transform: scale(1.03);
}

body.dark-mode .dark-toggle {
  background-color: #6e4b34;
  color: #f1e6d0;
}

.banner-container {
  position: relative;
}

.banner-container .banner {
  width: 100%;
  display: block;
}

body.dark-mode .banner-container::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4); 
  pointer-events: none;
}

body.dark-mode {
  background: url('../images/leaf-bg-dark.png') repeat;
  background-size: 400px;
  color: #e0dcd5;
}

.info-card {
  background-color: rgba(255, 255, 245, 0.96);
  padding: 20px;
  border-radius: 10px;
  width: 280px;
  box-shadow: 0 0 10px rgba(90, 62, 43, 0.15);
  transition: background-color 0.3s, color 0.3s;
}

.info-card h2,
.info-card p {
  margin-top: 0;
  color: #3a3a3a;
}

body.dark-mode .info-card {
  background-color: #333;
  color: #f0ece4;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

body.dark-mode .info-card h2,
body.dark-mode .info-card p {
  color: #f0ece4;
}

body.dark-mode .exp-toggle {
  background-color: #444;
  color: #f8f8f8;
  border: 1px solid #666;
}

body.dark-mode .exp-toggle:hover {
  background-color: #555;
}

body.dark-mode .exp-content p {
  color: #eaeaea;
}

body.dark-mode th,
body.dark-mode td {
  color: #f0ece4;
}

body.dark-mode .content-card h2,
body.dark-mode .content-card p {
  color: #f0ece4;
}

body.dark-mode .content-card,
body.dark-mode .content-card *,
body.dark-mode .exp-toggle,
body.dark-mode .exp-toggle * {
  color: #f0ece4 !important;
}

body.dark-mode table th,
body.dark-mode table td {
  color: #f0ece4 !important;
}

body.dark-mode table th,
body.dark-mode table td {
  color: #e0dcd5; 
}

body.dark-mode tbody tr:nth-child(even) {
  background-color: #2f2f2f; 
}

body.dark-mode tbody tr:hover {
  background-color: #3a3a3a;
}

body.dark-mode thead tr {
  background-color: #3a3a3a; 
  color: #f2f2f2; 
}

body.dark-mode .contact-form {
  background-color: #2c2c2c;
  color: #f2f2f2;
}

body.dark-mode .contact-form input,
body.dark-mode .contact-form textarea {
  background-color: #444;
  color: #f2f2f2;
  border: 1px solid #666;
}

body.dark-mode .contact-form input::placeholder,
body.dark-mode .contact-form textarea::placeholder {
  color: #bbb;
}

.sidebar-top {
  display: flex;
  flex-direction: column;
  align-items: center;
}