html, body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ===============================
   GLOBAL RESET (FIX SPACING)
================================ */
body {
  margin: 0;
  padding: 0;
}

/* IMPORTANT: inherit font from header.css */
* {
  font-family: inherit;
}

/* ===============================
   SECTION HEADINGS (BRAND STYLE)
================================ */

.section-title {
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  color: #191660;
  margin-bottom: 60px;
  position: relative;
}

.section-title::before {
  content: '/';
  color: #7ed0fb;
  font-weight: 800;
  margin-right: 8px;
}

.section-title::after {
  content: '';
  display: block;
  width: 64px;
  height: 3px;
  background: #7ed0fb;
  margin: 14px auto 0;
  border-radius: 2px;
}


/* ===============================
   HERO + SLIDER
================================ */

.team-hero {
  position: relative;
  height: 85vh;
  overflow: hidden;
}

.team-hero .hero-slider div {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  animation: teamHero 24s ease-in-out infinite;
}

.team-hero .hero-slider div:nth-child(1) {
  background-image: url('/roneemedia/assets/images/team-roneemedia-1.jpg');
  animation-delay: 0s;
}
.team-hero .hero-slider div:nth-child(2) {
  background-image: url('/roneemedia/assets/images/team-roneemedia-2.jpg');
  animation-delay: 6s;
}
.team-hero .hero-slider div:nth-child(3) {
  background-image: url('/roneemedia/assets/images/team-roneemedia-3.jpg');
  animation-delay: 12s;
}
.team-hero .hero-slider div:nth-child(4) {
  background-image: url('/roneemedia/assets/images/team-roneemedia-4.jpg');
  animation-delay: 18s;
}

@keyframes teamHero {
  0% { opacity: 0; }
  8% { opacity: 1; }
  28% { opacity: 1; }
  36% { opacity: 0; }
  100% { opacity: 0; }
}

/* Overlay */
.team-hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.55),
    rgba(0,0,0,0.75)
  );
  z-index: 2;
}

/* Hero text */
.team-hero .hero-center {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 0 24px;
}

.team-hero h1 {
  font-size: 56px;
  margin-bottom: 16px;
}

.team-hero p {
  font-size: 18px;
  max-width: 760px;
  margin: auto;
}

/* ===============================
   SECTIONS
================================ */

.team-section {
  padding: 100px 0;
}

.team-section.light {
  background: #f7f9fc;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.center {
  text-align: center;
}

/* ===============================
   LEADERSHIP
================================ */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.team-card {
  background: #fff;
  padding: 36px;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}

.team-card .avatar {
  width: 96px;
  height: 96px;
  background: #e5e7eb;
  border-radius: 50%;
  margin: 0 auto 20px;
}

/* ===============================
   OUR TEAMS (FULL)
================================ */

.teams-full-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
  margin-top: 60px;
}

.team-box {
  background: #191660;
  color: #fff;
  padding: 40px;
  border-radius: 16px;
}

.team-box h3 {
  margin-bottom: 12px;
}

.team-group {
  margin-top: 80px;
}

.team-group h3 {
  font-size: 28px;
  margin-bottom: 40px;
  text-align: center;
}

/* ===============================
   CTA
================================ */

.team-cta {
  padding: 100px 0;
  background: linear-gradient(120deg, #191660, #000);
  color: #fff;
}

/* ===============================
   RESPONSIVE
================================ */

@media (max-width: 768px) {
  .team-hero h1 {
    font-size: 40px;
  }
}

/* ===============================
   VIEW CAREERS CTA BUTTON
================================ */

.view-careers-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 14px 36px;
  margin-top: 24px;

  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.3px;

  color: #ffffff;
  background: linear-gradient(135deg, #191660, #0f0d4a);
  border-radius: 40px;

  text-decoration: none;
  border: none;
  cursor: pointer;

  box-shadow: 0 12px 30px rgba(25, 22, 96, 0.35);
  transition: all 0.35s ease;
}

/* Hover */
.view-careers-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(25, 22, 96, 0.45);
  background: linear-gradient(135deg, #1f1c7a, #191660);
}

/* Active */
.view-careers-btn:active {
  transform: translateY(0);
  box-shadow: 0 10px 24px rgba(25, 22, 96, 0.3);
}
