/* -------------------------
   Global Reset & Typography
------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #fff;
  background: url('images/fans-bg.jpg') no-repeat center center fixed;
  background-size: cover;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: rgba(0,0,0,0.65);
  z-index: -1;
}

/* -------------------------
   Container
------------------------- */
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* -------------------------
   Header
------------------------- */
.site-header {
  background: rgba(0,0,0,0.85);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .brand {
  display: flex;
  align-items: center;
  gap: 15px;
}

.site-header .logo {
  height: 70px;
  width: 70px;
  object-fit: contain;
}

.site-title {
  font-size: 1.8rem;
  color: #ff0000; /* RCB Red */
}

.site-sub {
  font-size: 0.9rem;
  color: #f0f0f0;
}

/* -------------------------
   Navigation
------------------------- */
.nav {
  margin-top: 10px;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 20px;
}

.nav-list li a {
  text-decoration: none;
  color: #fff;
  padding: 5px 10px;
  border-radius: 5px;
  transition: 0.3s;
}

.nav-list li a:hover {
  background: #ff0000;
  color: #fff;
}

.nav-toggle {
  display: none;
}

/* -------------------------
   Hero Section
------------------------- */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  gap: 30px;
  text-align: center;
}

.hero-text h2 {
  font-size: 3rem;
  color: #ffcc00; /* RCB Gold */
  margin-bottom: 20px;
}

.hero-text h2::before {
  content: "🔥 "; /* Fire emoji */
}

.hero-text p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 25px auto;
}

.cta-row {
  display: flex;
  gap: 15px;
  justify-content: center;
}

/* Hero Buttons - Red and White */
.cta-row .btn {
  background-color: #ff0000; /* Red */
  color: #fff;
  padding: 12px 25px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 8px;
  transition: 0.3s;
}

.cta-row .btn:hover {
  background-color: #ffcc00;
  color: #000;
}

.cta-row .btn.outline {
  background-color: #fff; /* White */
  color: #ff0000;
}

.cta-row .btn.outline:hover {
  background-color: #ff0000;
  color: #fff;
}

.hero-media img {
  max-width: 60%;
  height: auto;
  border-radius: 15px;
  margin-top: 20px;
}

/* -------------------------
   Section Styling
------------------------- */
.section {
  padding: 50px 0;
}

.section h3 {
  font-size: 2rem;
  color: #ffcc00;
  margin-bottom: 25px;
  text-align: center;
}

.section h3::before {
  content: "⭐ "; /* Star emoji */
}

.section p {
  font-size: 1rem;
  line-height: 1.7;
  text-align: justify;
}

/* About Section */
.about .partners {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 20px;
}

.about .partners img {
  height: 50px;
  object-fit: contain;
}

/* -------------------------
   Memorable Moments Section
------------------------- */
.highlights {
  padding: 60px 0;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 12px;
}

.highlights .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.card {
  background: rgba(0, 0, 0, 0.65);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.6);
}

/* Default card image */
.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

/* Smaller images for Rajat Patidar & Tim David */
.card.rajat img,
.card.tim-david img {
  height: 150px;
  object-fit: cover;
}

.card:hover img {
  transform: scale(1.05);
}

.card h4 {
  font-size: 1.2rem;
  margin: 12px 15px 5px;
  color: #ffcc00;
  font-weight: 600;
}

.card p {
  font-size: 0.95rem;
  margin: 0 15px 15px;
  line-height: 1.4;
  color: #fff;
  flex-grow: 1;
}

/* -------------------------
   Quick Links
------------------------- */
.quick-links .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.tile {
  display: block;
  text-align: center;
  padding: 20px;
  background: rgba(255, 0, 0, 0.85);
  border-radius: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

.tile:hover {
  background: #ffcc00;
  color: #000;
}

/* -------------------------
   Footer
------------------------- */
.site-footer {
  background: rgba(0,0,0,0.85);
  text-align: center;
  padding: 15px 0;
  margin-top: 50px;
}

.site-footer p {
  color: #fff;
}

/* -------------------------
   Responsive adjustments
------------------------- */
@media screen and (max-width: 1024px) {
  .hero-media img {
    max-width: 70%;
  }
}

@media screen and (max-width: 768px) {
  .hero-text h2 {
    font-size: 2.2rem;
  }
  .card img {
    height: 180px;
  }
}

@media screen and (max-width: 480px) {
  .hero-text h2 {
    font-size: 1.8rem;
  }
  .card img {
    height: 160px;
  }
}
/* ===========================
   Squad Page Styling
=========================== */
.squad-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 25px;
}

.player-card {
  background: rgba(0,0,0,0.7);
  border: 2px solid #ff0000;
  border-radius: 15px;
  padding: 20px;
  color: #fff;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.player-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(255,0,0,0.6);
}

.player-card h3 {
  color: #ffcc00;
  margin: 10px 0;
}

.player-card h3 span {
  font-size: 0.85rem;
  color: #ccc;
}

.player-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 15px;
}

.bio {
  font-size: 0.95rem;
  margin-bottom: 15px;
  color: #ddd;
}

.player-card ul {
  margin: 5px 0 15px 20px;
  padding: 0;
}

.player-card ul li {
  font-size: 0.9rem;
  margin-bottom: 5px;
}

.player-card ul li::marker {
  color: #ffcc00;
}

.stats {
  background: rgba(255,255,255,0.1);
  padding: 10px;
  border-radius: 8px;
  font-size: 0.9rem;
}
/* Background same as homepage */
body.team-bg {
  background: url("images/rcb forever.jpg") no-repeat center center fixed;
  background-size: cover;
  color: #fff;
}

/* Navigation bar */
.main-nav {
  text-align: center;
  margin-top: 15px;
}
.main-nav a {
  margin: 0 15px;
  padding: 6px 12px;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  border-radius: 6px;
  transition: background 0.3s;
}
.main-nav a:hover,
.main-nav a.active {
  background: rgba(255,0,0,0.8);
}

/* Squad grid */
.squad-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}

/* Player card flexible height */
.player-card {
  background: rgba(0,0,0,0.8);
  border: 2px solid #ff0000;
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.player-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(255,0,0,0.6);
}

.player-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 12px;
}

.player-card h3 {
  font-size: 1.1rem; /* compact so names fit */
  margin: 8px 0 5px;
  color: #ffcc00;
}

.player-card .role {
  font-size: 0.9rem;
  color: #ccc;
  margin-bottom: 10px;
}

.bio {
  font-size: 0.85rem;
  margin-bottom: 12px;
  color: #ddd;
}

.player-card h4 {
  font-size: 0.95rem;
  margin: 10px 0 6px;
  color: #ff6666;
}

.player-card ul {
  list-style: disc;
  margin: 0 0 10px 18px;
  padding: 0;
  text-align: left;
}

.player-card ul li {
  font-size: 0.8rem;
  margin-bottom: 4px;
  color: #eee;
}

.stats {
  background: rgba(255,255,255,0.08);
  padding: 8px;
  border-radius: 8px;
  font-size: 0.8rem;
  text-align: left;
  margin-top: 8px;
}
/* Center nav below logo like home page */
.main-nav {
  display: flex;
  justify-content: center; /* center the nav */
  margin-top: 15px;
}

.main-nav ul.nav-list {
  display: flex;
  list-style: none;
  gap: 20px;
  padding: 0;
  margin: 0;
}

.main-nav ul.nav-list li a {
  color: #fff;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: bold;
  transition: 0.3s;
}

.main-nav ul.nav-list li a:hover,
.main-nav ul.nav-list li a.active {
  background: rgba(255,0,0,0.8);
}
/* Center nav below logo like team page */
.main-nav {
  display: flex;
  justify-content: center; /* center the nav */
  margin-top: 15px;
}

.main-nav ul.nav-list {
  display: flex;
  list-style: none;
  gap: 20px;
  padding: 0;
  margin: 0;
}

.main-nav ul.nav-list li a {
  color: #fff;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: bold;
  transition: 0.3s;
}

.main-nav ul.nav-list li a:hover,
.main-nav ul.nav-list li a.active {
  background: rgba(255,0,0,0.8);
}
/* -------------------------
   Navigation (Center-aligned for Team & Stats page)
------------------------- */
/* -------------------------
   Stats Page Header & Navigation (Smaller)
------------------------- */
.site-header {
  background: rgba(0,0,0,0.85);
  padding: 10px 0;       /* reduced from 15px */
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .brand {
  display: flex;
  align-items: center;
  gap: 10px;             /* reduced gap between logo and title */
}

.site-header .logo {
  height: 50px;           /* smaller logo */
  width: 50px;
  object-fit: contain;
}

.site-title {
  font-size: 1.4rem;      /* smaller title */
  color: #ff0000;
}

.site-sub {
  font-size: 0.8rem;      /* smaller subtitle */
  color: #f0f0f0;
}

/* Navigation */
.main-nav {
  text-align: center;
  margin-top: 5px;        /* smaller margin */
}

.main-nav ul {
  list-style: none;
  padding: 0;
  display: inline-flex;
  gap: 12px;              /* smaller gap between links */
}

.main-nav ul li a {
  text-decoration: none;
  color: #fff;
  padding: 4px 8px;       /* smaller padding */
  font-weight: bold;
  border-radius: 5px;
  font-size: 0.85rem;     /* smaller font */
  transition: background 0.3s;
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
  background: rgba(255,0,0,0.8);
  color: #fff;
}
