/* Enhanced Management Page Styles */

.management-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 20px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
}

.leoxTitle {
  text-align: center;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 300;
  margin-bottom: 60px;
  color: #004b42; /* Plantation Bay Teal */
  letter-spacing: 1px;
}

.intro-text {
  text-align: center;
  font-size: clamp(1.2rem, 1.1rem + 0.5vw, 1.6rem);
  line-height: 1.8;
  margin-bottom: 80px;
  color: #555;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.profile-section {
  background: #fff;
  padding: 50px;
  margin-bottom: 60px;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-section:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
}

.profile-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 30px;
  border-bottom: 1px solid #eee;
  padding-bottom: 20px;
}

.profile-name {
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  color: #004b42;
  margin: 0;
  font-weight: 600;
}

.profile-title {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
  font-weight: 400;
}

.profile-email {
  display: block;
  font-size: clamp(0.85rem, 1.2vw, 0.95rem);
  color: #00796b;
  text-decoration: none;
  font-weight: 400;
  margin-top: 2px;
}

.profile-email:hover {
  color: #004b42;
  text-decoration: underline;
}

.profile-bio {
  font-size: clamp(1.1rem, 1rem + 0.6vw, 1.35rem);
  line-height: 1.9;
  color: #444;
  margin-bottom: 30px;
}

.profile-bio p {
  margin-bottom: 20px;
}

.certificates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.certificate-item {
  border: 1px solid #eee;
  padding: 10px;
  border-radius: 4px;
  transition: border-color 0.3s;
  cursor: pointer;
}

.certificate-item:hover {
  border-color: #004b42;
}

.certificate-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
}

.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.close-lightbox {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
}

/* Travel Experience Section */
.travel-experience-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-left: 4px solid #004b42;
  padding: 40px;
  margin: 60px 0;
  border-radius: 0 8px 8px 0;
}

.travel-content p {
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem);
  line-height: 1.9;
  color: #444;
  text-align: justify;
  margin: 0;
}

/* Contact Cards Section */
.contact-cards-section {
  margin-top: 80px;
  padding-top: 60px;
  border-top: 1px solid #eee;
}

.contact-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.contact-card {
  background: linear-gradient(145deg, #e8f5f3 0%, #d4edea 100%);
  border: 1px solid rgba(0, 75, 66, 0.1);
  border-radius: 12px;
  padding: 30px 25px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #004b42, #00796b);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 75, 66, 0.15);
}

.contact-card:hover::before {
  transform: scaleX(1);
}

.card-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #004b42, #00796b);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: white;
  box-shadow: 0 4px 15px rgba(0, 75, 66, 0.3);
}

.contact-card h4 {
  font-size: 1.1rem;
  color: #004b42;
  margin: 0 0 15px 0;
  font-weight: 600;
  line-height: 1.4;
}

.contact-card p {
  font-size: 0.95rem;
  color: #555;
  margin: 8px 0;
  line-height: 1.5;
}

.contact-card a {
  color: #00796b;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.contact-card a:hover {
  color: #004b42;
  text-decoration: underline;
}

.card-wide {
  grid-column: span 1;
}

.card-address p strong {
  color: #004b42;
}

.viber-note {
  font-style: italic;
  color: #00796b !important;
  font-size: 0.9rem !important;
}

.emergency-note {
  font-size: 0.85rem !important;
  color: #888 !important;
  margin-top: 15px !important;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .contact-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-wide {
    grid-column: span 1;
  }
}

@media (max-width: 768px) {
  .management-container {
    padding: 30px 15px;
  }

  .profile-section {
    padding: 30px;
  }

  .contact-cards-grid {
    grid-template-columns: 1fr;
  }

  .travel-experience-section {
    padding: 25px;
    margin: 40px 0;
  }

  .contact-card {
    padding: 25px 20px;
  }
}

/* ─── Typography Measure ─── */
/* .intro-text is centered (text-align:center) — exempt (max-width:100%!important).
   .contact-card p is a compact UI card element — exempt.
   Prose targets: .profile-bio p and .travel-content p. */
.profile-bio p {
  max-width: 68ch;
  line-height: 1.9;
  font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
}

.travel-content p {
  max-width: 68ch;
  line-height: 1.9;
  font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
}

.intro-text {
  max-width: 100% !important;
}

.profile-bio li,
.travel-content li {
  max-width: 72ch;
  line-height: 1.85;
}
