/* ===== 1. GLOBAL RESET & THEME ===== */
body {
  margin: 0;
  background: #f2f4f7;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  line-height: 1.6;
}
/* Custom heading color - Bootstrap handles the sizes, we just override color */
h1,
h2,
h3,
h4,
h5 {
  color: #0a4a8a;
}
a {
  text-decoration: none;
  transition: 0.3s;
}

/* ===== 2. HEADER & NAVIGATION (Zero Gap Logic) ===== */
header {
  background-color: #0a4a8a;
  color: white;
}
/* Ensure the logo scales nicely on small screens */
.header-logo {
  height: 70px; /* Default height */
  max-width: 100%;
  object-fit: contain;
}
@media (max-width: 576px) {
  .header-logo {
    height: 45px; /* Smaller height for mobile phones */
  }

  /* Optional: Adjust header padding if the logo feels too cramped */
  header .container {
    padding-left: 60px; /* Gives the logo room so it doesn't touch the text */
  }
}
/* ===== 5. FOOTER (Tightened Spacing) ===== */
/* ===== 3. FOOTER ===== */
footer {
  text-align: center;
  padding: 20px;
  background: #0a4a8a;
  color: white;
  border-top: 4px solid #e5c769;
}
/* ===== 4. FORMS ===== */
/* Keep these if you have custom forms in register.php or login.php */
.form-group {
  margin-bottom: 15px;
}
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 5px;
}
.transition-hover {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.transition-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2) !important;
}
/* Kompakte Gallery Styl */
.compact-action-bar {
  background-color: #0a4a8a;
  padding: 25px 0;
  color: #ffffff;
  text-align: center; /* Sentreer alle inhoud */
}

.compact-action-bar h2,
.compact-action-bar p {
  color: #ffffff !important;
  margin-bottom: 10px;
  width: 100%; /* Dwing dit om die hele breedte te gebruik */
}

.gallery-thumbnail-container {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin-top: 25px;
  padding-bottom: 20px;
}

.gallery-thumb {
  width: 180px; /* Groter gemaak soos versoek */
  height: 180px;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.5);
  border-radius: 10px;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.gallery-thumb:hover {
  transform: scale(1.08);
  border-color: #ffc107; /* Geel raam wat pas by die knoppie */
}
/* ===== 6. AGENDA PREVIEW (A4 LOGIC) ===== */

/* Force the modal to A4 width */
.a4-modal {
  max-width: 210mm !important;
  margin: 1.5rem auto;
}

/* Force the content container to A4 height */
.a4-modal .modal-content {
  height: 297mm;
  border-radius: 0;
  display: flex;
  flex-direction: column;
}

/* Make the body fill the remaining space */
.a4-modal .modal-body {
  flex: 1;
  display: flex;
}

/* The iframe now fills 100% of the A4 body */
.preview-frame {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Responsive adjustment for shorter laptop screens */
@media screen and (max-height: 300mm) {
  .a4-modal {
    margin: 5px auto;
  }
  .a4-modal .modal-content {
    height: calc(100vh - 20px);
  }
}
