/* Styles for the "Our Client" page template (our-client.php) */

/* ---------- Section Styling ---------- */
.school-profile-section {
  background: linear-gradient(135deg, #5bceff 0%, white 100%);
  font-family: 'Raleway', sans-serif;
  padding: 4rem 0;
}

.section-title {
  font-size: 2.6rem;
  font-weight: 700;
  background: linear-gradient(135deg, #5ea4ff, #b32eff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 3rem;
  text-align: center;
}

/* ---------- Filter Section ---------- */
.filter-box {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  padding: 1.5rem 2rem;
  margin-bottom: 2.5rem;
}

.filter-box select {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 0.6rem 1rem;
  font-size: 0.95rem;
}

.filter-box label {
  font-weight: 600;
  color: #444;
}

/* ---------- Card Styling ---------- */
.member-box {
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  position: relative;
  transition: all 0.3s ease-in-out;

  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  animation: fadeUp 0.8s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.member-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.27);
    border: 3px solid #d153ff;
}

/* ---------- Decorative Shape ---------- */
.member-box .shape {
  width: 180px;
  height: 180px;
  background: linear-gradient(135deg, #49abd6 0%, #d153ff 100%);
  opacity: 0.15;
  position: absolute;

  top: 0;
  right: -80px;
  transform: rotate(45deg);
  z-index: 0;
}

/* ---------- Logo Image ---------- */
.member-box .card-img-top {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  margin: 25px auto 10px;
  border: 3px solid #be5cff8b;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  z-index: 2;
  position: relative;
  object-fit: cover;
}

/* ---------- Card Body ---------- */
.member-box .card-body {
  z-index: 2;
  position: relative;
}

/* ---------- School Title ---------- */
.member-title {
  font-weight: 700;
  font-size: 1rem;
  color: #333;
}

/* ---------- Client Info ---------- */
.member-designation {
  color: #555;
  font-size: 0.9rem;

}

/* ---------- Gradient Text Link ---------- */
.school-link {
  text-decoration: none;
  background: linear-gradient(135deg, #5bceff 0%, #d153ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: opacity 0.3s ease;
}

.member-box .school-link:hover  {
  opacity: 0.8;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .member-title {
    font-size: 0.95rem;
  }
  .member-designation {
    font-size: 0.85rem;
  }
}

/* ============================================================
   NOTE: the rules below (.country-tabs / .tab-btn / .member-box
   3D hover) were originally written as several overlapping
   "v1 -> v2 -> v3" passes in the template file, where each later
   block re-overrides properties set by an earlier one. They are
   kept in their original order here (unchanged) so the final
   rendered result stays exactly the same as before. A future
   cleanup could collapse each selector into a single rule, but
   that needs visual QA against the live site to be done safely.
   ============================================================ */

/* ---------- PREMIUM Country Tabs ---------- */
.country-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.country-tabs .tab-btn {
  padding: 10px 22px;
  border: none;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;

  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);

  border: 2px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);

  color: #444;
  transition: all 0.35s ease;
}

/* Hover Effect */
.country-tabs .tab-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  background: rgba(255, 255, 255, 0.75);
}

/* Active Tab Premium Gradient */
.country-tabs .tab-btn.active {
  background: linear-gradient(135deg, #5ea4ff, #b32eff);
  color: white !important;

  box-shadow: 0 10px 28px rgba(179, 46, 255, 0.5),
              0 0 12px rgba(94, 164, 255, 0.6);
  transform: translateY(-4px);
  border: none;
}

/* Responsive */
@media (max-width: 576px) {
  .country-tabs .tab-btn {
    font-size: 0.85rem;
    padding: 8px 18px;
  }
}

/* ---------- SUPER PREMIUM ANIMATED TABS ---------- */
.country-tabs {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

/* Default Button Style */
.country-tabs .tab-btn {
  padding: 12px 26px;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.4);

  /* Animation Base */
  transform-style: preserve-3d;

  transition: transform 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
  color: #333;

  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* Hover 3D Flip */
.country-tabs .tab-btn:hover {
  transform: rotateX(18deg) rotateY(10deg) translateY(-6px);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.25);
}

/* Active Button – Modern Gradient + Bounce Animation */
.country-tabs .tab-btn.active {
  background: linear-gradient(135deg, #5ea4ff, #b32eff);
  color: white !important;
  box-shadow: 0 12px 35px rgba(137, 46, 255, 0.6);

  animation: bounceTab 0.5s ease-out;
}

/* Bounce Animation */
@keyframes bounceTab {
  0%   { transform: scale(0.8); }
  50%  { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* Extra Modern Flip When Activated */
.country-tabs .tab-btn.active {
  transform: rotateX(10deg) rotateY(-10deg) translateY(-5px);
}

/* Responsive */
@media (max-width: 576px) {
  .country-tabs .tab-btn {
    padding: 9px 20px;
    font-size: 0.85rem;
  }
}

/* ============================================
   GLOWING WAVE BEHIND TABS
=============================================== */
.tabs-glow {
  position: absolute;
  top: 240px;
  left: 50%;
  transform: translateX(-50%);
  width: 380px;
  height: 120px;
  background: radial-gradient(
      circle,
      rgba(255,255,255,0.8),
      rgba(94,164,255,0.7),
      rgba(179,46,255,0.6),
      transparent 70%
  );
  filter: blur(70px);
  animation: glowWave 4s infinite ease-in-out alternate;
  z-index: 0;
}

@keyframes glowWave {
  0% { transform: translateX(-50%) scale(1); opacity: 0.8; }
  100% { transform: translateX(-50%) scale(1.4); opacity: 1; }
}

/* ============================================
   NEON ROTATING BORDER SHINE ON ACTIVE TAB
=============================================== */
.country-tabs .tab-btn.active {
  position: relative;
  overflow: hidden;
}

.country-tabs .tab-btn.active::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50px;
  padding: 2px;
  background: conic-gradient(
    #ffffff,
    #5ea4ff,
    #b32eff,
    #ffffff
  );
  -webkit-mask:
      linear-gradient(#000 0 0) content-box,
      linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;

  animation: neonRotate 2s linear infinite;
}

@keyframes neonRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ============================================
   CARD 3D FLIP HOVER ANIMATION
=============================================== */
.member-box {
  transform-style: preserve-3d;
  perspective: 900px;
  transition: transform 0.4s ease-in-out;
  cursor: pointer;
}

.member-box:hover {
  transform: rotateY(12deg) rotateX(6deg);
}
