/* ============================================================
   KOMTECH WEBSITE — ABOUT US PAGE STYLES
   about-us.css
   ============================================================ */

/* ─── ABOUT SECTION ─────────────────────────────────────────── */
.about-section {
  background: var(--page-bg);
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 40px;
}

.about-title {
  font-size: 42px;
  font-weight: 800;
  color: #1a1a1a;
  text-align: center;
  margin-bottom: 50px;
  letter-spacing: 2px;
}

/* ─── GOOGLE MAP ────────────────────────────────────────────── */
.map-container {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  margin-bottom: 50px;
}

.map-container iframe {
  display: block;
  width: 100%;
}

/* ─── ABOUT TEXT ────────────────────────────────────────────── */
.about-text {
  max-width: 1000px;
  margin: 0 auto;
}

.about-text p {
  font-size: 17px;
  color: #444;
  line-height: 1.8;
  margin-bottom: 18px;
}

/* ─── SADC TAGLINE ──────────────────────────────────────────── */
.sadc-tagline {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  text-align: center;
  font-style: italic;
  margin: 60px auto 40px;
  max-width: 900px;
  line-height: 1.4;
}

/* ─── PHOTO GALLERY ─────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.gallery-card {
  background: #f0f4f8;
  border: 1px solid #e0e8f0;
  border-radius: 12px;
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.25s ease;
  overflow: hidden;
}

.gallery-card:hover {
  border-color: #1e88e5;
  box-shadow: 0 8px 24px rgba(21,101,192,0.15);
  transform: translateY(-4px);
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-card:hover .gallery-img {
  transform: scale(1.05);
}

.gallery-icon {
  font-size: 42px;
  color: #aaa;
  transition: color 0.2s;
}

.gallery-card:hover .gallery-icon {
  color: #1e88e5;
}

.gallery-label {
  font-size: 14px;
  font-weight: 600;
  color: #666;
}

/* ─── LIGHTBOX POPUP ────────────────────────────────────────── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 40px;
  animation: lightboxFadeIn 0.25s ease;
}

.lightbox.open { display: flex; }

@keyframes lightboxFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.lightbox-content {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  max-width: 800px;
  width: 90%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: lightboxZoomIn 0.3s ease;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  display: block;
  border-radius: 6px;
}

@keyframes lightboxZoomIn {
  from { transform: scale(0.85); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.lightbox-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 340px;
}

.lightbox-icon {
  font-size: 90px;
  color: #ccc;
}

.lightbox-label {
  font-size: 19px;
  font-weight: 700;
  color: #333;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.15s;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.1);
}

/* ─── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-title { font-size: 32px; }
  .sadc-tagline { font-size: 18px; }
  .about-section { padding: 40px 20px; }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}
