/* ============ Global ============ */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', Roboto, Arial, sans-serif;
  background: #f6f8fa;
  margin: 0;
  overflow-x: hidden;
  word-wrap: break-word;
}

img, video, canvas, svg { max-width: 100%; height: auto; }
iframe { max-width: 100%; }

/* ============ Header & Nav (Centered with Larger Logo) ============ */
header {
  background: #1978d4;
  color: #fff;
  padding: 1.5rem 1rem;
  display: flex;
  justify-content: center; /* This centers the main content block */
  align-items: center;
  position: relative;
}

.header-content {
  display: flex;
  align-items: center;
  gap: 1.5rem; /* Increased gap for the larger logo */
}

.header-logo {
  height: 75px; /* Increased size by 50% (from 50px) */
  width: auto;
}

.header-text {
  text-align: center;
}

header h1, header p {
  margin: 0;
  padding: 0;
}

header h1 {
  font-size: 2.2rem;
  line-height: 1.1;
  font-weight: 700;
}

header p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-top: 0.25rem;
}

/* Language switcher can be positioned if needed, or removed if not in the final design */
.lang-switch {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 0.95rem;
  background: #25c8db;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  cursor: pointer;
}

.lang-switch:hover { background: #0097a7; }

nav {
  background: #134486;
  text-align: center;
  padding: 0.5rem 0;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  overflow-x: auto;
  white-space: nowrap;
}

nav a {
  color: #fff;
  text-decoration: none;
  margin: 0 1rem;
  font-weight: 600;
  padding: 0.5rem 0.75rem;
  display: inline-block;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

nav a:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

/* ============ Mobile-Specific Header & Nav Optimizations ============ */
@media (max-width: 700px) {
  header {
    flex-direction: column;
    padding: 1.5rem 1rem;
    gap: 1rem;
  }
  
  .header-content {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }

  .header-logo {
    height: 60px; /* Adjusted smaller size for mobile */
  }
  
  .header-text {
      text-align: center;
  }

  .lang-switch {
      position: static;
      margin-top: 1rem;
  }
  
  nav a {
    margin: 0 0.5rem;
  }
}



/* ============ Mobile-Specific Header & Nav Optimizations ============ */
@media (max-width: 700px) {
  header {
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
  }
  
  .header-content {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
  
  .header-text {
      text-align: center;
  }

  .lang-switch {
      margin-top: 0.5rem;
  }
  
  nav a {
    margin: 0 0.5rem;
  }
}

/* ============ Hero Banner & Slides ============ */
.hero-banner {
  border-radius: 20px;
  box-shadow: 0 8px 28px rgba(20, 80, 130, .10);
  max-width: 1000px;
  margin: 1rem auto 0;
  width: 100%;
  position: relative;
  height: 280px;
  overflow: hidden;
}

.slides {
  display: flex;
  width: 100%;
  height: 100%;
}

.slide {
  flex: 0 0 100%;
  background-position: center;
  background-size: cover;
  position: relative;
}

.slide .text {
  position: absolute;
  bottom: 20px;
  left: 16px;
  right: 16px;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1.2;
  background: rgba(30, 130, 210, .18);
  border-radius: 7px;
  padding: 10px 12px;
  font-weight: 700;
  text-shadow: 2px 2px 7px rgba(0, 0, 0, .7);
}

.hero-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  background: rgba(0, 0, 0, .25);
  padding: 6px 8px;
  border-radius: 14px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ddd;
  border: 0;
  cursor: pointer;
  padding: 0;
}

.dot.is-active { background: #21e5ff; }

/* ============ News Banner ============ */
.news-banner {
  background: #ffe066;
  color: #222;
  font-weight: 700;
  text-align: center;
  font-size: 1rem;
  position: relative;
  box-shadow: 0 0 15px 7px #ffe066, 0 0 50px 12px #1978d4;
  animation: glow 1.5s infinite alternate;
  overflow: hidden;
  height: 44px;
  display: flex;
  align-items: center;
  border-radius: 12px;
  max-width: 1000px;
  margin: 12px auto;
}

@keyframes glow {
  from { box-shadow: 0 0 15px 7px #ffe066, 0 0 50px 12px #1978d4; }
  to { box-shadow: 0 0 30px 18px #a7e6ed, 0 0 90px 18px #1978d4; }
}

.marquee {
  white-space: nowrap;
  position: absolute;
  animation: slideText 20s linear infinite;
  font-weight: 600;
  letter-spacing: 1.2px;
}

@keyframes slideText {
  from { transform: translateX(100%); }
  to { transform: translateX(-100%); }
}

/* ============ Main & Sections ============ */
main {
  padding: 1rem;
  max-width: 1000px;
  margin: 0 auto;
}

section {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 6px 32px rgba(0, 0, 0, .08);
  padding: 1.5rem 1rem;
  margin-top: 2.5rem;
}

section h2 {
  margin: 0 0 0.9rem;
  font-size: 1.8rem;
  font-weight: 700;
  color: #134486;
  position: relative;
  display: inline-block;
}

section h2::after {
  content: "";
  display: block;
  height: 4px;
  width: 65%;
  background: linear-gradient(90deg, #1978d4 0, #21e5ff 100%);
  border-radius: 3px;
  margin-top: 10px;
}

.cta-btn {
  background: linear-gradient(90deg, #1978d4 0, #21e5ff 100%);
  color: #fff;
  font-weight: 700;
  padding: 12px 22px;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  display: block;
  width: fit-content;
  margin: 1.5rem auto 0;
}

.cta-btn:hover {
  background: linear-gradient(90deg, #1e579e 0, #00f2fe 100%);
  box-shadow: 0 6px 28px rgba(50, 130, 255, .16);
}

ul { padding-left: 20px; }

li {
  margin-bottom: 1.2em;
  padding: 0;
  box-shadow: none;
}

/* ============ Previous Tournaments Gallery ============ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.gallery-item {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  aspect-ratio: 4 / 3;
}

.gallery-image {
  width: 100%;
  height: 100%;
  background-position: center;
  background-size: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-image {
  transform: scale(1.1);
}

/* ============ Team Grid (Using Separate Divs) ============ */
.team-grid-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.team-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.team-member {
  background: #f2f8fd;
  padding: 1.5rem;
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(20, 80, 130, .08);
  text-align: center;
  transition: transform .25s;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-basis: 280px;
  max-width: 300px;
}

.team-member:hover {
  transform: translateY(-6px) scale(1.03);
}

.team-photo {
  border-radius: 50%;
  border: 3px solid #fff;
  width: 110px;
  height: 110px;
  object-fit: cover;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(20, 80, 130, .12);
  flex-shrink: 0;
}

.team-details {
  font-size: 0.9rem;
  color: #555;
}

.team-name {
  font-size: 1.2rem;
  color: #134486;
  font-weight: 650;
  margin-bottom: 4px;
}

.team-position {
  font-style: italic;
  color: #1978d4;
  margin: 0.15rem 0 0.8rem;
}

/* ============ Contact & Social Icons (Final Fix) ============ */
.contact-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.contact-social-icons {
  display: flex;
  gap: 12px;
  align-items: center;
}

.social-link {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .07);
  background: #fff;
  transition: transform 0.2s ease;
}

.social-link:hover {
  transform: scale(1.1);
}

.social-img {
  width: 70%;
  height: 70%;
  object-fit: contain;
}

/* ============ Footer ============ */
footer {
  background: #134486;
  color: #fff;
  text-align: center;
  padding: 1.5rem 0;
  margin-top: 3rem;
}
