/* organisations.css */

/* Container and Titles */
.org-section {
  max-width: 1100px;
  margin: 20px auto;
  padding: 0 15px;
  box-sizing: border-box;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 20px;
  color: #ff7701;
  letter-spacing: 1px;
  font-weight: 700;
}

/* Organisation Card */
.org-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 12px #e3eef9;
  padding: 28px 18px;
  margin-bottom: 28px;
  box-sizing: border-box;
}

/* Card Header: Flex on desktop, column on mobile */
.org-header {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  justify-content: flex-start;
}

/* Title column */
.org-title-col {
  flex: 2 1 300px;
  min-width: 160px;
}

.org-title-col h3 {
  font-size: 2rem;
  margin: 0;
  color: #1978a5;
  font-weight: bold;
  text-align: left;
}

/* Image column */
.org-img-col {
  flex: 1 1 240px;
  min-width: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.org-img-col img {
  width: 240px;
  height: 240px;
  object-fit: cover;
  border-radius: 16px;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  cursor: pointer;
}

/* Organisation Contact */
.org-contact {
  margin-top: 10px;
  font-size: 1.08rem;
  color: #444;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-start;
}

/* Organisation About Paragraph */
.org-about {
  margin-top: 20px;
  line-height: 1.6;
  font-size: 1.03rem;
  color: #333;
  text-align: justify;
  /* Justified text on ALL screens */
}

/* Lightbox modal container */
.lightbox-modal {
  position: fixed;
  z-index: 9999; /* on top */
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: auto;
  background-color: rgba(0,0,0,0.8);
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Lightbox image */
.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 6px;
  box-shadow: 0 0 24px #000;
}

/* Close button */
.lightbox-close {
  position: fixed;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
  transition: color 0.3s ease;
  z-index: 10000;
}
.lightbox-close:hover {
  color: #ff7701;
}

/* ==== RESPONSIVE STYLES ==== */

/* Tablets and below (900px and lower) */
@media (max-width: 900px) {
  .section-title { font-size: 1.5rem; }
  .org-header { gap: 21px; }
  .org-card { padding: 20px 9px; }
  .org-title-col h3 { font-size: 1.4rem; }
  .org-img-col img { width: 160px; height: 160px; border-radius: 12px; }
}

/* Mobiles/small tablets (600px and lower) */
@media (max-width: 600px) {
  .org-header {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
  }
  .org-title-col, .org-img-col {
    width: 100%;
    min-width: 0;
    flex: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .org-title-col h3 {
    font-size: 1.15rem;
    text-align: center;
    width: 100%;
  }
  .org-img-col img {
    width: 110px;
    height: 110px;
    border-radius: 8px;
    margin: 0 auto;
  }
  .org-card { padding: 12px 5px; }
  .section-title { font-size: 1.07rem; }
  .org-contact { font-size: 0.97rem; justify-content: center; text-align: center; }
  .org-about {
    font-size: 0.98rem;
    margin-top: 10px;
    text-align: justify;
  }
}

/* Extra small screens (400px and lower) */
@media (max-width: 400px) {
  .org-img-col img { width: 85px; height: 85px;}
  .org-title-col h3 { font-size: 0.97rem; }
  .section-title { font-size: 0.95rem; }
}
