/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #121212;
  color: #f0f0f0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
}

/* Header and Logo */
header {
  display: flex;
  align-items: center;
  background-color: #1e1e1e;
  padding: 10px 20px;
  border-bottom: 1px solid #333;
}

.logo-container {
  margin-right: 20px;
}

.logo {
  height: 75px;
  width: auto;
}

/* Navigation - horizontal menu */
nav ul {
  list-style: none;
  display: flex;
  padding: 0;
  margin: 0;
}

nav ul li {
  margin-right: 20px;
}

nav ul li:last-child {
  margin-right: 0;
}

nav ul li a {
  color: #f0f0f0;
  text-decoration: none;
  font-weight: bold;
  padding: 10px 5px;
  display: block;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #ff9800;
  background-color: transparent;
}

/* Main content */
.main-content {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
}

.main-content h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #ffffff;
}

.main-content p {
  font-size: 1.1rem;
  color: #cccccc;
}

/* Footer */
footer {
  background-color: #1e1e1e;
  color: #aaa;
  text-align: center;
  padding: 15px 0;
  margin-top: 40px;
  border-top: 1px solid #333;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  .logo-container {
    margin-bottom: 10px;
  }

  nav ul {
    flex-direction: column;
  }

  nav ul li {
    margin-right: 0;
    margin-bottom: 10px;
  }

  nav ul li:last-child {
    margin-bottom: 0;
  }

  .main-content {
    padding: 0 10px;
  }
}

/* Image row layout */
.image-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.image-row img {
  width: calc(33.333% - 1rem);
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

/* Contact form styling */
.contact-form {
  max-width: 600px;
  margin: 2rem auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  font-size: 1rem;
}

.contact-form label {
  font-weight: bold;
  margin-bottom: 0.25rem;
}

.contact-form input,
.contact-form textarea {
  background-color: #1e1e1e;
  color: #f0f0f0;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  width: 100%;
  box-sizing: border-box;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #888;
}

.contact-form textarea {
  min-height: 180px;
  resize: vertical;
  font-family: inherit;
}

.contact-form button {
  background-color: #64b5f6;
  color: #000;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
  align-self: flex-start;
}

.contact-form button:hover {
  background-color: #42a5f5;
}

.quote {
  color: #d4af37; /* classic gold */
  text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
}

.aphorism-container {
  text-align: center;
  margin: 80px auto;
  max-width: 1000px;
  padding: 0 20px;
}

.quote {
  font-family: 'Dancing Script', cursive;
  font-size: 3.2rem;
  line-height: 1.4;
  color: #d4af37; /* gold */
  text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
}

.author {
  margin-top: 25px;
  font-size: 1.5rem;
  color: #bbbbbb;
  font-style: italic;
  text-align: right;
  padding-right: 20px;
}

@media (max-width: 600px) {
  .quote {
    font-size: 2rem;
  }

  .author {
    font-size: 1.1rem;
    text-align: center;
    padding-right: 0;
  }
}

.site-footer {
  background-color: #1e1e1e;
  color: #ccc;
  text-align: center;
  padding: 2em 1em;
  font-size: 0.9em;
  border-top: 1px solid #444;
}

.site-footer .social-links {
  margin-top: 1em;
}

.site-footer .social-links a {
  display: inline-block;
  margin: 0 0.5em;
  transition: transform 0.2s ease;
}

.site-footer .social-links a:hover {
  transform: scale(1.1);
}

.site-footer .social-icon {
  width: 24px;
  height: 24px;
  vertical-align: middle;
  filter: brightness(0) invert(1); /* Makes dark-mode friendly */
}

/* Modal backdrop */
.modal {
  position: fixed;
  z-index: 1000;
  padding-top: 60px;
  left: 0; top: 0;
  width: 100%; height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.85);
  text-align: center;
}

/* Modal image */
.modal-content {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 6px;
  box-shadow: 0 0 20px rgba(255,255,255,0.3);
}

/* Caption */
#modal-caption {
  margin-top: 15px;
  color: #ccc;
  font-size: 1.1em;
}

/* Close button */
.modal-close {
  position: absolute;
  top: 25px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
  user-select: none;
}

.modal-close:hover {
  color: #bbb;
}

table {
  background-color: #404040; /* Dark grey background */
  color: #000000;            /* Black text */
  border-collapse: separate;
  border-spacing: 0 0.75em;
  font-size: 1rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgb(0 0 0 / 0.1);
}

thead th {
  background-color: #505050; /* Slightly lighter dark grey for headers */
  color: #000000;            /* Black text */
  border-bottom: 2px solid #666666;
  padding: 0.75em 1em;
  font-weight: 600;
}

tbody tr {
  background-color: #404040; /* Same as table bg */
  color: #000000;
  border-radius: 6px;
  box-shadow: none; /* Keep it subtle */
  transition: background-color 0.3s ease;
}

tbody tr:hover {
  background-color: #606060; /* Lighter grey on hover */
  color: #000000;
}

tbody td {
  padding: 0.75em 1em;
  vertical-align: middle;
  color: #000000; /* Ensure text stays black */
}

/* Responsive styles remain unchanged */
@media (max-width: 600px) {
  /* ... keep previous responsive styles ... */
}
