/* ---------- RESET & BASE ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #222;
  background: #f4f6f9;
}
a {
  text-decoration: none;
  color: inherit;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
img, video {
  max-width: 100%;
  height: auto;
}

/* ---------- LOGO IMAGE (FIXED - moved outside header) ---------- */
.logo-img {
  height: 45px;
  width: auto;
  max-height: 50px;
  object-fit: contain;
  display: block;
}

/* ---------- HEADER (EA Dark Navy) ---------- */
header {
  background: #0A1A2F;
  color: #fff;
  padding: 0.8rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 2px solid #ED1B24;
}
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
.logo a {
  display: flex;
  align-items: center;
  font-size: 1.8rem;
  font-weight: 700;
}
.logo i {
  margin-right: 10px;
  color: #ED1B24;
}
.logo .highlight {
  color: #ED1B24;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #fff;
  cursor: pointer;
}
nav ul {
  display: flex;
  list-style: none;
  gap: 1.8rem;
}
nav a {
  color: #fff;
  font-weight: 500;
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
  transition: 0.2s;
}
nav a:hover, nav a.active {
  border-bottom-color: #ED1B24;
  color: #ED1B24;
}

/* ---------- HERO (Overlay with EA Red accent) ---------- */
.hero {
  background: linear-gradient(rgba(10, 26, 47, 0.8), rgba(10, 26, 47, 0.6)), url('../images/hero-bg.jpg') center/cover no-repeat;
  min-height: 60vh;
  display: flex;
  align-items: center;
  text-align: center;
  color: #fff;
  padding: 2rem 0;
}
.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.hero-content p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}
.btn {
  display: inline-block;
  padding: 0.8rem 2.2rem;
  border-radius: 30px;
  background: #ED1B24;
  color: #fff;
  font-weight: 600;
  transition: 0.3s;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(237, 27, 36, 0.4);
}
.btn:hover {
  background: #C4101A;
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(237, 27, 36, 0.5);
}

/* ---------- WELCOME ---------- */
.welcome {
  padding: 4rem 0;
  background: #fff;
}
.welcome h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 2.2rem;
  color: #0A1A2F;
}
.welcome > .container > p {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2.5rem;
}
.welcome-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}
.welcome-card {
  background: #f1f5f9;
  padding: 2rem 1.5rem;
  border-radius: 10px;
  text-align: center;
  transition: 0.3s;
}
.welcome-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}
.welcome-card i {
  font-size: 2.5rem;
  color: #ED1B24;
  margin-bottom: 1rem;
}

/* ---------- IMAGES ---------- */
.featured-images {
  padding: 3rem 0;
  background: #f4f6f9;
}
.featured-images h2 {
  color: #0A1A2F;
}
.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}
.media-figure {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.media-figure img, .media-figure svg {
  width: 100%;
  display: block;
}
.sport-icon {
  background: #0A1A2F;
  padding: 1rem;
  width: 100%;
  height: auto;
}
.sport-icon circle {
  fill: #0A1A2F;
  stroke: #ED1B24;
}
.sport-icon text {
  fill: #fff;
}
.media-figure figcaption {
  padding: 0.8rem;
  text-align: center;
  font-weight: 500;
  background: #fff;
  color: #0A1A2F;
}

/* ---------- AUDIO & VIDEO ---------- */
.media-section {
  padding: 3rem 0;
  background: #fff;
}
.media-section:nth-child(even) {
  background: #f4f6f9;
}
.media-section h2 {
  color: #0A1A2F;
}
.audio-wrapper, .video-wrapper {
  max-width: 700px;
  margin: 0 auto;
}
audio, video {
  width: 100%;
  border-radius: 8px;
  background: #0A1A2F;
}
.audio-transcript, .video-caption {
  margin-top: 1rem;
  padding: 1rem;
  background: #e8edf3;
  border-radius: 8px;
}
details summary {
  cursor: pointer;
  font-weight: 600;
  color: #0A1A2F;
}
details p {
  margin-top: 0.8rem;
  padding: 0.8rem;
  background: #fff;
  border-radius: 6px;
}

/* ---------- FORMAT TABLE ---------- */
.format-table-section {
  padding: 3rem 0;
  background: #f4f6f9;
}
.format-table-section h2 {
  color: #0A1A2F;
}
.table-responsive {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}
th, td {
  padding: 0.8rem 1rem;
  text-align: left;
  border-bottom: 1px solid #ddd;
}
th {
  background: #0A1A2F;
  color: #fff;
}
tr:hover {
  background: #f1f5f9;
}
caption {
  caption-side: top;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  color: #0A1A2F;
}

/* ---------- PAGE CONTENT (About, Contact) ---------- */
.page-content {
  padding: 4rem 0;
  background: #fff;
}
.page-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: #0A1A2F;
}
.page-content h2 {
  margin: 2rem 0 1rem;
  color: #0A1A2F;
}
.page-content ul {
  padding-left: 1.5rem;
  margin: 1rem 0;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}
.contact-details {
  list-style: none;
  padding: 0;
}
.contact-details li {
  margin: 0.8rem 0;
  font-size: 1.1rem;
}
.contact-details i {
  width: 2rem;
  color: #ED1B24;
}

/* ---------- UPLOAD FORM ---------- */
.upload-form {
  max-width: 600px;
  margin: 2rem 0;
  background: #f4f6f9;
  padding: 2rem;
  border-radius: 10px;
}
.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: #0A1A2F;
}
.form-group input[type="file"] {
  padding: 0.5rem;
  border: 2px solid #d1d5db;
  border-radius: 6px;
  width: 100%;
}
.form-group input[type="file"]:focus {
  border-color: #ED1B24;
  outline: none;
}
.form-group small {
  display: block;
  color: #666;
  margin-top: 0.3rem;
}
.upload-message {
  padding: 1rem;
  border-radius: 6px;
  margin: 1rem 0;
  font-weight: 500;
}
.upload-message.success {
  background: #d4edda;
  color: #155724;
}
.upload-message.error {
  background: #f8d7da;
  color: #721c24;
}
.upload-info {
  background: #e8edf3;
  padding: 1.5rem;
  border-radius: 10px;
  margin-top: 2rem;
}
.upload-info h3 {
  color: #0A1A2F;
}
.upload-info ul {
  padding-left: 1.5rem;
}

/* ---------- GALLERY ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.gallery-item {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
  transition: 0.3s;
}
.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.gallery-thumb {
  background: #f1f5f9;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
}
.gallery-img {
  width: 100%;
  height: auto;
  max-height: 180px;
  object-fit: cover;
}
.gallery-icon {
  color: #0A1A2F;
  padding: 1rem;
}
.gallery-audio, .gallery-video {
  width: 100%;
}
.gallery-info {
  padding: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.gallery-name {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #0A1A2F;
}
.gallery-type {
  font-size: 0.8rem;
  color: #666;
  text-transform: uppercase;
}
.delete-btn {
  align-self: flex-start;
  background: #ED1B24;
  color: #fff;
  padding: 0.3rem 0.8rem;
  border-radius: 5px;
  font-size: 0.8rem;
  border: none;
  cursor: pointer;
  transition: 0.2s;
}
.delete-btn:hover {
  background: #C4101A;
}

/* ---------- FOOTER (EA Dark Navy) ---------- */
footer {
  background: #0A1A2F;
  color: #ccc;
  padding: 2rem 0 0;
  border-top: 3px solid #ED1B24;
}
.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  padding-bottom: 2rem;
}
.footer-col h4 {
  color: #fff;
  margin-bottom: 1rem;
}
.footer-col ul {
  list-style: none;
}
.footer-col ul li {
  margin: 0.4rem 0;
}
.footer-col a {
  color: #ccc;
  transition: 0.2s;
}
.footer-col a:hover {
  color: #ED1B24;
}
.social-icons a {
  display: inline-block;
  margin-right: 1rem;
  font-size: 1.4rem;
  color: #ccc;
}
.social-icons a:hover {
  color: #ED1B24;
}
.footer-bottom {
  background: #050D1A;
  text-align: center;
  padding: 0.8rem 0;
  font-size: 0.9rem;
  border-top: 1px solid #1A2A45;
  color: #9ca3af;
}

/* ---------- RESPONSIVE (MEDIA QUERIES) ---------- */
/* Tablet */
@media (max-width: 1024px) {
  .hero-content h1 {
    font-size: 2.8rem;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }
  nav {
    display: none;
    width: 100%;
    margin-top: 1rem;
  }
  nav.open {
    display: block;
  }
  nav ul {
    flex-direction: column;
    gap: 0.8rem;
    background: #0A1A2F;
    padding: 1rem 0;
    border-top: 2px solid #ED1B24;
  }
  nav a {
    display: block;
    padding: 0.6rem 1rem;
  }
  .hero {
    min-height: 40vh;
  }
  .hero-content h1 {
    font-size: 2.2rem;
  }
  .welcome-grid {
    grid-template-columns: 1fr;
  }
  .image-grid {
    grid-template-columns: 1fr;
  }
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .footer-container {
    grid-template-columns: 1fr;
  }
  .hero-content h1 {
    font-size: 1.8rem;
  }
  .btn {
    padding: 0.6rem 1.5rem;
  }
}