
.logo-container {
  display: flex;
  align-items: center; /* Align the logo and text vertically */
  gap: 10px;
  max-width: 100%;
}

.site-logo {
  margin-right: 10px; /* Space between the logo and the site title */
  max-height: 50px; /* Optional: Resize the logo */
}

.site-title {
  font-size: 1.2em; /* Adjust the font size of the site title */
  font-weight: bold;
  color: #333; /* Adjust color if needed */
  line-height: 1.15;
  white-space: normal;
  overflow-wrap: anywhere;
}

#header .navbar {
  flex-wrap: wrap;
  gap: 10px;
}

#header .navbar .navbar-section.logo {
  flex: 1 1 320px;
  min-width: 260px;
}

#header .navbar .navbar-section.desktop-menu {
  flex: 3 1 520px;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

#header .navbar .navbar-section.desktop-menu .dropmenu {
  flex: 1 1 auto;
}

#header .navbar .navbar-section.desktop-menu .login-status-wrapper {
  white-space: nowrap;
}


    .info-block {
      background-color: #e8f5e9; /* Light green */
      border: 1px solid #c8e6c9; /* Slightly darker green */
      border-radius: 8px;
      text-align: center;
      padding: 15px;
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
      transition: transform 0.2s, box-shadow 0.2s;
      flex: 1 1 calc(33.33% - 20px); /* Flexible layout with space for 3 items per row */
      max-width: calc(33.33% - 20px); /* Ensure proper spacing in desktop */
      margin-bottom: 20px; /* Space between rows */
    }
    .info-block:hover {
      transform: translateY(-5px);
      box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
    }
    .info-block img {
      max-width: 100%;
      height: auto;
      border-radius: 8px;
      margin-bottom: 10px;
    }
    .info-block h3 {
      color: #1b5e20; /* Dark green */
      margin-bottom: 10px;
    }
    .info-container {
      display: flex; /* Flex layout for side-by-side items */
      flex-wrap: wrap; /* Wrap items to the next row on smaller screens */
      justify-content: center; /* Center blocks in the row */
      gap: 20px; /* Space between blocks */
    }
    @media (max-width: 768px) {
      .info-block {
        flex: 1 1 100%; /* Each block takes full width on mobile */
        max-width: 100%;
      }
    }

/* ===== Featured News ===== */
.featured-news {
  margin-bottom: 3rem;
}

.featured-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}

.featured-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,.75), transparent);
  padding: 2rem;
  color: #fff;
}

.featured-overlay h2 {
  margin: .5rem 0;
}

.badge {
  background: #0b5;
  padding: .3rem .7rem;
  border-radius: 6px;
  font-size: .8rem;
  font-weight: bold;
}

/* ===== News Grid (full width cards) ===== */
.news-grid {
  display: flex;
  flex-direction: column;  /* stack articles vertically */
  gap: 2rem;               /* space between articles */
}

.news-card {
  background: #fff;
    border-style: solid;
  border-width: 1px;
  border-radius: 12px;
  overflow: hidden;
  padding: 1.5rem;
  min-height: 250px;       /* taller cards */
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.news-card img {
  width: 100%;
  height: auto;
  margin-bottom: 1rem;
  border-radius: 6px;
}

.news-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.news-card .date {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1rem;
}

.news-card .news-summary {
  font-size: 0.8rem;
  line-height: 1.6;
}

/* ===== News Item Page ===== */
.news-item {
  max-width: 900px;
  margin: auto;
}

.news-content p {
  margin: 0 0 1rem 0;
  line-height: 1.5;
}

.news-item .news-gallery img {
  margin-bottom: 1rem;
  border-radius: 6px;
}

.news-card img {
  width: 150px;
  height: 150px;
  object-fit: cover;   /* ensures image fills the square without distortion */
  display: block;
  margin: 0 auto 1rem auto; /* centers the image */
  border-radius: 6px; /* optional rounded corners */
}

.events-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem; /* like news-grid */
}

.event-card {
  background: #fff;
  border-style: dotted;
  border-width: 1px;
  border-radius: 12px;
  overflow: hidden;
  padding: 1.5rem;
  min-height: 250px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.20);
}

.event-card img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  display: block;
  margin: 0 auto 1rem auto;
  border-radius: 6px;
}

.event-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.event-card .date,
.event-card .location {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1rem;
  display: block;
}

.event-card .event-summary {
  font-size: 1rem;
  line-height: 1.6;
}



/* Center the form */
.add-event-form {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin: 3rem auto;
}

/* Form labels */
.add-event-form label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

/* Inputs & textarea */
.add-event-form input[type="text"],
.add-event-form input[type="url"],
.add-event-form input[type="datetime-local"],
.add-event-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 1rem;
}

/* Buttons */
.add-event-form .button {
    background-color: #2a7a4a; /* or your brand color */
    color: #fff;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

.add-event-form .button:hover {
    background-color: #215e37;
}

/* TinyMCE editor fix */
.tox-tinymce {
    border-radius: 6px !important;
    border: 1px solid #ddd !important;
}





.albums-wrapper {
  --albums-accent: #34a83d;
  --albums-border: rgba(0, 0, 0, 0.10);
  --albums-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  --albums-radius: 14px;
}

.albums-wrapper .albums-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid var(--albums-border);
  border-radius: var(--albums-radius);
  padding: 10px;
  margin-bottom: 14px;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 10px;
}

.albums-wrapper .albums-strip {
  display: flex;
  overflow-x: auto;
  gap: 12px;
  padding: 4px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.albums-wrapper .albums-strip::-webkit-scrollbar {
  height: 10px;
}

.albums-wrapper .albums-strip::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.18);
  border-radius: 999px;
}

.albums-wrapper .scroll-btn,
.albums-wrapper .manage-btn,
.albums-wrapper .close-btn {
  cursor: pointer;
  border: 1px solid var(--albums-border);
  background: #fff;
  border-radius: 12px;
  padding: 8px 10px;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.albums-wrapper .scroll-btn:hover,
.albums-wrapper .manage-btn:hover,
.albums-wrapper .close-btn:hover {
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.albums-wrapper .manage-btn {
  border-color: rgba(52, 168, 61, 0.35);
}

.albums-wrapper .album-cat {
  min-width: 220px;
  max-width: 240px;
  cursor: pointer;
  scroll-snap-align: start;
  border-radius: var(--albums-radius);
  border: 1px solid var(--albums-border);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.albums-wrapper .album-cat:hover {
  transform: translateY(-2px);
  box-shadow: var(--albums-shadow);
}

.albums-wrapper .album-cat img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}

.albums-wrapper .album-cat span {
  display: block;
  padding: 10px 12px;
  font-weight: 700;
  font-size: 0.95rem;
  color: #1f2937;
  text-align: left;
  border-top: 1px solid var(--albums-border);
}

.albums-wrapper .no-thumb,
.albums-wrapper .no-images {
  width: 100%;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
  color: rgba(0,0,0,0.6);
}

.albums-wrapper .photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.albums-wrapper .photo-grid a {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--albums-border);
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.albums-wrapper .photo-grid a:hover {
  transform: translateY(-2px);
  box-shadow: var(--albums-shadow);
}

.albums-wrapper .photo-grid a.is-selected {
  outline: 4px solid rgba(220, 38, 38, 0.70);
  outline-offset: -4px;
}

.albums-wrapper .photo-grid img {
  width: 100%;
  height: 175px;
  object-fit: cover;
  display: block;
}

.albums-wrapper .loader {
  margin: 16px 0 0 0;
  text-align: center;
  color: rgba(0, 0, 0, 0.65);
}

.albums-wrapper .album-manager {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
  padding: 16px;
}

.albums-wrapper .album-manager .panel {
  background: #fff;
  padding: 18px;
  border-radius: var(--albums-radius);
  width: min(520px, 100%);
  text-align: left;
  box-shadow: 0 20px 60px rgba(0,0,0,0.30);
  border: 1px solid rgba(255,255,255,0.35);
}

.albums-wrapper .album-manager .panel h3 {
  margin: 0 0 12px 0;
}

.albums-wrapper .album-manager .manager-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.albums-wrapper .album-manager button {
  border: 1px solid var(--albums-border);
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
}

.albums-wrapper .album-manager button:hover {
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.albums-wrapper .album-manager input[type="file"] {
  width: 100%;
}

.albums-wrapper .albums-manage {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.albums-wrapper .album-manager-inline {
  display: flex;
  margin: 0 0 14px 0;
}

.albums-wrapper .album-manager-inline .panel {
  width: 100%;
}

.albums-wrapper .album-manager-inline {
  position: sticky;
  top: 10px;
  z-index: 80;
}

.albums-wrapper .album-manager-inline .panel {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid var(--albums-border);
}

.albums-wrapper .album-manager-inline .panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.albums-wrapper .manager-label {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  color: rgba(0,0,0,0.70);
  margin-bottom: 6px;
}

.albums-wrapper .manager-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.albums-wrapper .manager-block select {
  width: 100%;
  border: 1px solid var(--albums-border);
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
}

.albums-wrapper .manager-block select:focus {
  outline: none;
  border-color: rgba(52, 168, 61, 0.55);
  box-shadow: 0 0 0 4px rgba(52, 168, 61, 0.12);
}

.albums-wrapper .manager-actions-row {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 12px;
}

.albums-wrapper .manager-primary {
  border: 1px solid rgba(52, 168, 61, 0.45);
  background: rgba(52, 168, 61, 0.08);
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  font-weight: 700;
}

.albums-wrapper .manager-primary:hover {
  border-color: rgba(52, 168, 61, 0.65);
  background: rgba(52, 168, 61, 0.12);
}

.albums-wrapper .manager-secondary {
  border: 1px solid var(--albums-border);
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
}

.albums-wrapper .manager-secondary:hover {
  box-shadow: 0 6px 16px rgba(0,0,0,0.10);
}

.albums-wrapper .browse-row {
  display: flex;
  gap: 10px;
  justify-content: flex-start;
  margin-top: 10px;
}

.albums-wrapper .upload-area {
  border: 2px dashed rgba(0,0,0,0.20);
  border-radius: var(--albums-radius);
  padding: 16px;
  text-align: center;
  background: rgba(0,0,0,0.02);
  transition: background 0.15s ease, border-color 0.15s ease;
  user-select: none;
}

.albums-wrapper .upload-area:hover {
  border-color: rgba(0,0,0,0.32);
}

.albums-wrapper .upload-area.is-dragover {
  background: rgba(52, 168, 61, 0.08);
  border-color: rgba(52, 168, 61, 0.55);
}

.albums-wrapper .upload-title {
  font-weight: 800;
  color: rgba(0,0,0,0.75);
}

.albums-wrapper .upload-subtitle {
  margin-top: 4px;
  font-size: 0.9rem;
  color: rgba(0,0,0,0.60);
}

.albums-wrapper .upload-list {
  margin-top: 12px;
  border: 1px solid var(--albums-border);
  border-radius: var(--albums-radius);
  overflow: hidden;
}

.albums-wrapper .upload-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-top: 1px solid var(--albums-border);
  background: #fff;
}

.albums-wrapper .upload-item:first-child {
  border-top: 0;
}

.albums-wrapper .upload-item .name {
  font-weight: 700;
  color: rgba(0,0,0,0.75);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.albums-wrapper .upload-item .meta {
  color: rgba(0,0,0,0.55);
  font-size: 0.85rem;
  white-space: nowrap;
}

.albums-wrapper .album-spotlight {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.82);
  z-index: 2000;
}

.albums-wrapper .album-spotlight img {
  max-width: min(1100px, 95vw);
  max-height: 85vh;
  width: auto;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 20px 80px rgba(0,0,0,0.55);
  background: #111;
}

.albums-wrapper .album-spotlight .spotlight-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(0,0,0,0.35);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.albums-wrapper .album-spotlight .spotlight-close:hover {
  background: rgba(0,0,0,0.55);
}

@media (max-width: 768px) {
  .albums-wrapper .albums-header {
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "left strip right"
      "manage manage manage";
  }

  .albums-wrapper .manage-btn {
    grid-column: 1 / -1;
    justify-self: stretch;
  }

  .albums-wrapper .album-cat {
    min-width: 200px;
  }

  .albums-wrapper .photo-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }

  .albums-wrapper .photo-grid img {
    height: 160px;
  }

  .albums-wrapper .manager-grid {
    grid-template-columns: 1fr;
  }

  .albums-wrapper .manager-actions-row {
    justify-content: stretch;
    flex-direction: column;
  }

  .albums-wrapper .browse-row {
    flex-direction: column;
    justify-content: stretch;
  }
}
