/* ===============================
   Kajibs Capital — Team Page
=============================== */

/* General Page Layout */
#team {
  padding: 60px 20px 80px;
  text-align: center;
  background-color: #fff;
}

/* Section Title */
#team-section h2 {
  color: #004080;
  font-size: 2em;
  margin-bottom: 20px;
}

/* Intro Box */
.content-box {
  background-color: #f9f9f9;
  border: 2px solid #ccc;
  padding: 25px;
  margin: 20px auto 40px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  max-width: 900px;
  text-align: justify;
  color: #333;
  line-height: 1.6;
}

/* Contact Button */
#team button {
  background-color: #ff6600;
  color: white;
  padding: 10px 24px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1rem;
  margin-bottom: 50px;
  transition: background 0.3s ease;
}
#team button:hover { background-color: #e65c00; }

/* Team Grid */
.team-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

/* Team Member Card */
.team-member {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.team-member:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.2);
}

/* Team Photos */
.team-member img {
  width: 130px;
  height: 130px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 15px;
  border: 3px solid #006400;
}

.team-member h3 {
  color: #004080;
  font-size: 1.2em;
  margin-bottom: 5px;
}

.team-member p {
  color: #555;
  font-size: 0.95em;
}

/* ===============================
   Distinct Gradient Box — Our Culture Section
=============================== */
#culture {
  background: linear-gradient(180deg, #ffffff 0%, #f0f7f0 100%);
  border: 2px solid #d6e2d6;
  border-radius: 18px;
  padding: 60px 30px 70px;
  margin: 90px auto;
  max-width: 1100px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#culture:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

#culture h2 {
  color: #004080;
  font-size: 1.9em;
  margin-bottom: 30px;
  text-align: center;
  letter-spacing: 0.5px;
}

#culture .culture-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 20px;
}

/* Each culture card stays clean and subtle */
.culture-item {
  background: #fff;
  border-radius: 14px;
  padding: 25px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.culture-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}



.culture-item img {
  width: 80px;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
  object-fit: contain;
  margin-left: auto;
  margin-right: auto;
}

.culture-item h3 {
  color: #055c05;
  font-size: 1.2em;
  margin-bottom: 8px;
}

.culture-item p {
  color: #444;
  font-size: 0.95em;
  line-height: 1.5;
}

/* ===============================
   Board of Advisors
=============================== */
#advisors {
  margin-top: 80px;
  padding-top: 40px;
  border-top: 3px solid #055c05;
  text-align: center;
}

#advisors h2 {
  color: #004080;
  font-size: 1.8em;
  margin-bottom: 15px;
}

.advisor-intro {
  max-width: 700px;
  margin: 0 auto 40px;
  color: #444;
  font-size: 1.05em;
  line-height: 1.6;
}

/* Grid Layout */
.advisor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  max-width: 950px;
  margin: 0 auto;
}

/* Advisor Card */
.advisor-card {
  background: #fff;
  border-radius: 10px;
  padding: 18px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.advisor-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.advisor-card img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #006400;
  margin-bottom: 10px;
}

.advisor-card h3 {
  color: #004080;
  font-size: 1.1em;
  margin-bottom: 5px;
}

.advisor-card p {
  color: #555;
  font-size: 0.9em;
  margin-bottom: 5px;
}

/* ===============================
   Global Presence Section
=============================== */
#global {
  margin-top: 100px;
  text-align: center;
  background-color: #fff;
}

#global h2 {
  color: #004080;
  font-size: 1.8em;
  margin-bottom: 15px;
}

.global-intro {
  max-width: 800px;
  margin: 0 auto 40px;
  color: #444;
  font-size: 1.05em;
  line-height: 1.6;
}

/* Regional Grid */
.global-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto 40px;
}

.region {
  background: #f9f9f9;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.region:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}

.region img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 15px;
}

.region h3 {
  color: #055c05;
  margin-bottom: 8px;
  font-size: 1.1em;
}
.region p {
  color: #444;
  font-size: 0.95em;
  line-height: 1.5;
}

.map-container { margin-top: 40px; }
.world-map {
  max-width: 800px;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* ===============================
   Global Partnerships Section
=============================== */
#partners {
  margin-top: 100px;
  padding: 60px 20px;
  background-color: #fff;
  text-align: center;
  border-top: 3px solid #055c05;
}

#partners h2 {
  color: #004080;
  font-size: 1.8em;
  margin-bottom: 15px;
}

.partners-intro {
  max-width: 850px;
  margin: 0 auto 40px;
  color: #444;
  font-size: 1.05em;
  line-height: 1.6;
}

/* Desktop Grid */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 30px;
  align-items: center;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
}

.partner {
  background: #f9f9f9;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.partner:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}

.partner img {
  width: 120px;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}
.partner img:hover { filter: grayscale(0%); }

/* Hide mobile carousel by default */
.partners-carousel { display: none; }

/* ===============================
   Mobile Carousel
=============================== */
@media (max-width: 768px) {
  .desktop-view { display: none; }

  .partners-carousel {
    display: block;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
  }

  .carousel-track {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: flex-start;
    padding-left: 10px;
  }

  .partners-carousel .partner {
    min-width: 150px;
    flex: 0 0 auto;
    background: #f9f9f9;
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    scroll-snap-align: start;
  }

  .partners-carousel .partner img {
    width: 100px;
    height: auto;
    filter: grayscale(100%);
  }
  .partners-carousel .partner img:hover { filter: grayscale(0%); }

  .partners-carousel::-webkit-scrollbar { height: 8px; }
  .partners-carousel::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
  }
  .partners-carousel::-webkit-scrollbar-track { background: #f0f0f0; }
}

/* ===============================
   Join Our Team Section
=============================== */
#join-team {
  margin-top: 80px;
  padding: 60px 20px;
  background: #f5f7f5;
  text-align: center;
  border-top: 3px solid #055c05;
}

.join-container {
  max-width: 850px;
  margin: 0 auto;
  background: #fff;
  border-radius: 12px;
  padding: 40px 25px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

#join-team h2 {
  color: #004080;
  font-size: 1.8em;
  margin-bottom: 15px;
}

#join-team p {
  color: #444;
  font-size: 1.05em;
  line-height: 1.6;
  margin-bottom: 25px;
}

/* Career Form */
.career-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  max-width: 400px;
  margin: 0 auto;
}
.career-form input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1em;
  outline: none;
  transition: border 0.3s ease;
}
.career-form input:focus { border-color: #055c05; }

.career-form button {
  background: #ff6600;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}
.career-form button:hover {
  background: #e65c00;
  transform: translateY(-2px);
}

/* ===============================
   Animations & Responsive Adjustments
=============================== */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.9s, transform 0.9s; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 768px) {
  .content-box { padding: 20px; }
  .team-member img { width: 100px; height: 100px; }
  .team-container { gap: 20px; }
  .advisor-grid { gap: 20px; }
  .advisor-card img { width: 85px; height: 85px; }
  .culture-grid { gap: 20px; }
  .culture-item img { height: 130px; }
  .join-container { padding: 30px 20px; }
  #join-team h2 { font-size: 1.6em; }
  #join-team p { font-size: 0.95em; }
}

@media (max-width: 480px) {
  .career-form input { font-size: 0.9em; }
  .career-form button { width: 100%; }
}









/* ===============================
   LIVE MAP (Leaflet)
=============================== */
#live-map {
  height: 200px;
  width: 90%;
  max-width: 2000px;
  margin: 40px auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 1;
}

.map-description {
  max-width: 700px;
  margin: 0 auto 20px;
  color: #444;
  font-size: 1.05em;
  line-height: 1.6;
}

.leaflet-popup-content-wrapper {
  background: #004080;
  color: #fff;
  border-radius: 8px;
  font-size: 0.95em;
  box-shadow: 0 3px 10px rgba(0,0,0,0.3);
}
.leaflet-popup-tip {
  background: #004080;
}

.leaflet-container {
  border: 2px solid #055c05;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  #live-map {
    height: 350px;
    width: 95%;
  }
}


/* ===============================
   🌍 Divider Before Global Connections — Full Width
=============================== */
#global-map { position: relative; }

#global-map::before {
  content: "";
  display: block;
  position: relative;
  left: 50%;
  right: 50%;
  width: 100vw;               /* full viewport width */
  height: 3px;
  background-color: #055c05;  /* green divider */
  margin: 80px 0 50px -50vw;  /* centers and spans full width */
  border-radius: 0;
}

@media (max-width: 768px) {
  #global-map::before {
    height: 2px;
    margin: 60px 0 40px -50vw;
  }
}



/* ===============================
   Global Map (Full Width)
=============================== */


#global-map.full-bleed {
  position: relative;
  left: 50%;
  right: 50%;
  width: 100vw;
  margin-left: -50vw;
  margin-right: -50vw;
}


#global-map {
  width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
}

/* Proper full-bleed alignment */
.full-bleed {
  position: relative;
  width: 100%;
  left: 0;
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
}

/* Map fills full browser width & stays centered */
#live-map {
  display: block;
  width: 100%;
  height: 500px;
  margin: 0 auto;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* Make sure Leaflet doesn’t add its own background */
.leaflet-container {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* Keep heading centered and readable */
#global-map h2 {
  color: #ff6600;
  text-align: center;
  font-size: 1.8em;
  margin-top: 40px;
}

#global-map .map-description {
  color: auto;
  max-width: 900px;
  text-align: center;
  margin: 10px auto 20px;
}


/* ===============================
    Animated Dots + Labels
=============================== */
/* ===== HQ AirDrop-style waves (works with DivIcon) ===== */
.hq-beacon {
  position: relative;
  width: 0; height: 0;
  transform: translate(-50%, -50%);
  z-index: 400;
}
.hq-beacon .hq-dot {
  position: absolute;
  left: 50%; top: 50%;
  width: 12px; height: 12px;
  margin-left: -6px; margin-top: -6px;
  background: #00bfff;
  border-radius: 50%;
  box-shadow: 0 0 14px #00bfff;
  animation: hqPulse 2s ease-in-out infinite;
}
.hq-beacon::before,
.hq-beacon::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 26px; height: 26px;
  margin-left: -13px; margin-top: -13px;
  border: 3px solid rgba(0,191,255,0.7);
  border-radius: 50%;
  transform: scale(0.2);
  opacity: 0.9;
  animation: airdropPulse 2.8s ease-out infinite;
}
.hq-beacon::after { animation-delay: 1.4s; }

@keyframes airdropPulse {
  0%   { transform: scale(0.25); opacity: 0.9; border-color: rgba(0,191,255,0.8); }
  60%  { transform: scale(2.6); opacity: 0.35; border-color: rgba(0,191,255,0.35); }
  100% { transform: scale(3.4); opacity: 0; border-color: rgba(0,191,255,0); }
}
@keyframes hqPulse {
  0%,100% { transform: scale(1);   box-shadow: 0 0 14px #00bfff; }
  50%     { transform: scale(1.22); box-shadow: 0 0 26px #33ccff; }
}

/* Map labels */
.map-label {
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
  transform: translate(-50%, -120%);
  white-space: nowrap;
  pointer-events: none;
}
