/* ==================================================
   ROOT VARIABLES
================================================== */
:root {
  --black: #000;
  --green: #007a00;
  --red: #d40000;
  --white: #fff;
  --light-gray: #f9f9f9;
  --text-dark: #222;
}

/* ==================================================
   GLOBAL RESET
================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--light-gray);
  color: var(--text-dark);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

/* ==================================================
   HEADER & NAVIGATION
================================================== */
header {
  background: var(--black);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 30px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo-text img {
  width: 70px;
  margin: 8px auto;
  border-radius: 10px;
}

.navbar {
  display: flex;
  gap: 12px;
  background: #111;
  padding: 10px 15px;
  border-radius: 8px;
}

.navbar a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 6px 10px;
}

.navbar a:hover {
  color: var(--green);
}

.menu-toggle {
  display: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: white;
}

/* ==================================================
   SECTIONS
================================================== */
section {
  padding: 60px 20px;
  background: #fff;
}

section:nth-child(even) {
  background: var(--light-gray);
}

section h1 {
  text-align: center;
  color: var(--green);
  margin-bottom: 20px;
  font-size: 2rem;
}

section p {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 25px;
  font-size: 1rem;
}

/* Staff Management Main Title (explicit, safe override) */
.staff-management-title {
  color: var(--green);
  text-align: center;
  margin-bottom: 25px;
}

/* ==================================================
   PROFILE CARD GRIDS
   (ACHIEVERS / STAFF / COACHES)
================================================== */
.profile-cards,
.staff-grid,
.coach-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr); /* ⬛⬛⬛⬛⬛⬛ */
  gap: 25px;
  max-width: 1600px;
  margin: 40px auto;
  padding: 0 20px;
}

/* ==================================================
   CARD DESIGN (COMMON)
================================================== */
.profile-card,
.staff-card,
.coach-card {
  background: #fff;
  border-top: 5px solid var(--green); /* green header bar */
  border-radius: 14px;
  padding: 18px;
  text-align: center;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.profile-card:hover,
.staff-card:hover,
.coach-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.15);
}
/* ==================================================
   NEWS SECTION STYLES
================================================== */

/* ---------- NEWS GRID ---------- */
#newsContainer {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;           /* space between cards */
  justify-content: center;
  max-width: 1400px;
  margin: auto;
}

/* ---------- NEWS CARD ---------- */
.news-card {
  flex: 1 1 480px;     /* base width for desktop */
  max-width: 520px;    /* prevent card from getting too wide */
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(0,0,0,0.18);
  margin-bottom: 30px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.news-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.25);
}

/* ---------- IMAGE ---------- */
.news-card img {
  width: 100%;
  height: auto;        /* full image, no crop */
  object-fit: contain; /* fit image fully inside card */
}

/* ---------- CONTENT ---------- */
.news-card .content {
  padding: 20px;
}

.news-card h3 {
  margin: 0 0 10px;
  font-size: 1.5rem;
  color: #222;
}

.news-card small {
  color: #555;
  display: block;
  margin-bottom: 12px;
}

.news-card p {
  font-size: 1.1rem;    /* medium size */
  line-height: 1.6;
  color: #333;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .news-card {
    flex: 1 1 90%;      /* stack cards vertically on tablet */
  }
}

@media (max-width: 768px) {
  .news-card {
    flex: 1 1 100%;     /* full width on smaller mobile */
  }
}

@media (max-width: 480px) {
  .news-card h3 { font-size: 1.2rem; }
  .news-card p  { font-size: 1rem; }
}

/* ==================================================
   PROFILE IMAGES
================================================== */
.profile-card img,
.staff-card img,
.coach-card img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 12px;
}

/* ==================================================
   NAMES
================================================== */
.profile-card h3,
.staff-card h2,
.staff-card h3,
.coach-card h2 {
  font-size: 18px;
  margin-bottom: 6px;
  color: #222;
}

/* ==================================================
   ROLES / POSITIONS
================================================== */

/* Achievers role green */
.profile-card .role {
  color: var(--green);
  font-weight: 600;
  margin-bottom: 8px;
}

/* Staff positions black and bold for Position: and Based: */
.staff-card p.role,
.staff-card p strong {
  color: #000;       /* very black text */
  font-weight: bold;  /* bold for Position: and Based: */
  margin-bottom: 8px;
}

/* Coaches strong text (labels) */
.coach-card strong {
  color: #222;       /* dark text for coach labels */
  font-weight: bold;
}

/* ==================================================
   TEXT CONTENT
================================================== */
.profile-card p,
.staff-card p,
.coach-card p {
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 6px 0;
  text-align: center;
}

/* ==================================================
   RESPONSIVE BREAKPOINTS
================================================== */
@media (max-width: 1400px) {
  .profile-cards,
  .staff-grid,
  .coach-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 1024px) {
  .profile-cards,
  .staff-grid,
  .coach-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .profile-cards,
  .staff-grid,
  .coach-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .profile-cards,
  .staff-grid,
  .coach-grid {
    grid-template-columns: 1fr;
  }
}

/* ==================================================
   HOME / HERO SECTION (Slideshow)
================================================== */
.home {
  position: relative;
  height: 70vh;
  background-color: #000; /* fallback black */
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  padding: 20px;
  overflow: hidden; /* slides stay inside */
}

.bg-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: contain;
  background-position: top center;
  background-repeat: no-repeat;
  background-color: #000;
  opacity: 0; /* hidden by default */
  transition: opacity 1s ease-in-out;
}

.bg-slide.active {
  opacity: 1; /* visible slide */
}

.home-content {
  position: relative;
  z-index: 10; /* text stays above slides */
  color: #fff;
}
