/* ==========================================================================
   LEADERSHIP PAGE — leadership.css (სრული ვერსია + responsive)
   ========================================================================== */

.team-wrapper {
  padding-top: 50px;
  padding-bottom: 80px;
  background-color: var(--bg-main);
  min-height: 100vh;
}
.team-wrapper .team-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.eyebrow {
  color: var(--primary-blue);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 2px;
  font-family: 'DM Sans', sans-serif;
}
.main-title {
  font-size: 56px;
  font-weight: 800;
  margin: 15px 0;
  color: var(--text-primary);
  font-family: 'Cormorant Garamond', serif;
  line-height: 1.15;
}
.description {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
  font-family: 'DM Sans', sans-serif;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.member-card {
  background: var(--bg-card);
  padding: 30px;
  border-radius: 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 5px 15px var(--card-shadow);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid var(--border-color);
}
.member-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 5px rgba(29,78,216,0.25), 0 0 20px rgba(29,78,216,0.15), 0 15px 35px rgba(0,0,0,0.08);
}

.image-wrapper {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  margin-bottom: 25px;
  border: 4px solid rgba(29,78,216,0.1);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.member-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.member-details { margin-bottom: 10px; }
.member-name {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-primary);
  font-family: 'Cormorant Garamond', serif;
  letter-spacing: 0.01em;
}
.member-role {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  margin-top: 4px;
}

.contact-overlay {
  position: absolute;
  bottom: -100%;
  left: 0;
  width: 100%;
  background: var(--primary-blue);
  padding: 24px 28px;
  color: var(--white);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border-radius: 20px 20px 0 0;
  text-align: left;
}
.member-card:hover .contact-overlay { bottom: 0; }
.contact-title {
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.65);
  margin-bottom: 10px;
  font-family: 'DM Sans', sans-serif;
}
.contact-link {
  display: block;
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  margin-bottom: 7px;
  transition: color 0.3s ease, padding-left 0.3s ease;
  word-break: break-all;
  font-family: 'DM Sans', sans-serif;
}
.contact-link:hover {
  color: var(--gradiantlight-blue);
  padding-left: 6px;
}

/* DARK MODE */
body.dark-mode {
  --sb-track: #020617;
  --sb-thumb: #1D4ED8;
  --sb-hover: #3B82F6;
  --gradiantlight-blue: #0f172a;
  --gradiantdeep-blue: #020617;
  --footer-deep-blue: #0f172a;
  --footer-verydeep-blue: #020617;
  --header-gradient: linear-gradient(to bottom, var(--gradiantlight-blue), var(--gradiantdeep-blue));
  --footer-gradient: linear-gradient(to bottom, var(--footer-deep-blue), var(--footer-verydeep-blue));
  --burgerbar-gradient: linear-gradient(to bottom, var(--gradiantdeep-blue), var(--gradiantlight-blue));
  --footer-text: #94a3b8;
  --footer-white: #f1f5f9;
}
body.dark-mode .member-card {
  background: var(--bg-card);
  border-color: var(--border-color);
}
body.dark-mode .member-card:hover {
  box-shadow: 0 0 8px rgba(96,165,250,0.3), 0 0 25px rgba(96,165,250,0.15), 0 15px 35px rgba(0,0,0,0.4);
}
body.dark-mode .contact-overlay { background: var(--footer-deep-blue); }

.advisors-section {
  margin-top: 100px;
}

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

/* 1024px */
@media (max-width: 1024px) {
  .main-title { font-size: 48px; }
.team-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
  .section-header { margin-bottom: 44px; }
}

/* 768px */
@media (max-width: 768px) {
.team-wrapper {
  padding-top: 32px;
  padding-bottom: 52px;
}
  .team-wrapper .team-container { padding: 0 18px; }
.team-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.member-card {
  padding: 22px 16px;
  border-radius: 16px;
}
.image-wrapper {
  width: 100px;
  height: 100px;
  margin-bottom: 18px;
}
  .main-title { font-size: 38px; }
  .description { font-size: 15px; }
  .contact-link { font-size: 14px; }
}

/* 560px — 1 სვეტი, overlay ყოველთვის ჩანს */
@media (max-width: 560px) {
.team-grid {
  grid-template-columns: 1fr;
  gap: 16px;
}
  .member-card { padding: 22px 20px; }
.contact-overlay {
  position: static;
  border-radius: 0 0 14px 14px;
  margin-top: 16px;
  margin-left: -20px;
  margin-right: -20px;
  margin-bottom: -22px;
  width: calc(100% + 40px);
}
}

/* 480px */
@media (max-width: 480px) {
  .main-title { font-size: 32px; }
  .member-name { font-size: 17px; }
  .member-role { font-size: 13px; }
  .contact-link { font-size: 13px; }
  .contact-overlay { padding: 18px 20px; }
}

/* 360px */
@media (max-width: 360px) {
  .main-title { font-size: 29px; }
.image-wrapper {
  width: 84px;
  height: 84px;
}
  .member-card { padding: 18px 14px; }
}


/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  padding: 112px 0;
}

.cta-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

.cta-inner {
  background: #0F1117;
  border-radius: 28px;
  padding: 80px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Cormorant Garamond', serif;
  font-size: 230px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.02);
  pointer-events: none;
  white-space: nowrap;
  user-select: none;
}

.cta-inner h2 {
  color: white;
  font-family: 'Cormorant Garamond', serif;
  font-size: 64px;
  font-weight: 400;
  margin: 8px auto 24px;
  max-width: 500px;
  line-height: 1.05;
}

.cta-inner h2 em {
  color: rgba(255, 255, 255, 0.45);
  font-style: italic;
}

.cta-inner p {
  color: rgba(255, 255, 255, 0.45);
  max-width: 480px;
  margin: 0 auto 40px;
  font-size: 15px;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 40px;
  background: #1D4ED8;
  color: white;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  border-radius: 100px;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-cta:hover {
  background: #3B82F6;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(59, 130, 246, 0.4);
}

.btn-cta svg {
  transition: transform 0.3s ease;
}

.btn-cta:hover svg {
  transform: translateX(4px);
}

/* CTA - ქართული ენა */
:lang(ka) .cta-inner h2 {
  font-size: 45px;
  line-height: 1.2;
}

:lang(ka) .cta-inner h2 em {
  font-size: 38px;
}

:lang(ka) .btn-cta {
  font-size: 13px;
}

/* CTA - Responsive */
@media (max-width: 1024px) {
  .cta-inner {
    padding: 56px 40px;
  }
  .cta-inner h2 {
    font-size: 48px;
  }
}

@media (max-width: 768px) {
  .cta-section {
    padding: 64px 0;
  }
  .cta-inner {
    padding: 48px 24px;
    border-radius: 20px;
  }
  .cta-inner h2 {
    font-size: 42px;
  }
  .cta-inner p {
    font-size: 14px;
  }
  .cta-bg-text {
    display: none;
  }
  :lang(ka) .cta-inner h2 {
    font-size: 31px;
  }
}

@media (max-width: 480px) {
  .cta-inner {
    padding: 40px 20px;
  }
  .cta-inner h2 {
    font-size: 35px;
  }
  .btn-cta {
    padding: 14px 22px;
    font-size: 13px;
    width: 100%;
    justify-content: center;
  }
  :lang(ka) .cta-inner h2 {
    font-size: 26px;
  }
  :lang(ka) .btn-cta {
    font-size: 12px;
  }
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--sb-track);
}

::-webkit-scrollbar-thumb {
  background: var(--sb-thumb);
  border-radius: 0;
  border: 2px solid var(--sb-track);
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--sb-hover);
}