/* ====================== 
 BASE STYLES 
====================== */
body {
  background-color: #b7b9bc;
  margin: 0;
  padding: 0;
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: #333;
  flex: 1;
}
main {
  flex: 1;
}
html, body {
  height: 100%;
  display: flex;
  flex-direction: column;
}
html {
  scroll-behavior: smooth;
}

/* ====================== 
 HEADER/NAVIGATION 
====================== */
.icons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background-color: rgb(10, 10, 113);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  flex-wrap: wrap;
  text-align: center;
}

.icons-left,
.icons-right {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}
.icons a {
  color: #111;
  font-size: 18px;
  text-decoration: none;
  transition: transform 0.3s, color 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  color: white;
}

.icons a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 2px;
  background-color: #fff;
  transition: width 0.3s ease;
}

.icons a:hover::after {
  width: 100%;
}

.header-center {
  text-align: center;
  flex: 1;
}

.Title {
  font-size: 32px;
  color: white;
}
.Title .ball {
  font-size: 0.7em; 
  vertical-align: middle;
}

.tagline {
  color: #ddd;
  font-size: 14px;
  margin:2px 0 0 0;
  font-style: italic;
}

/* ====================== 
ARTICLE GRID SECTION 
 ====================== */
.articles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  padding: 20px;
}

.article {
  background: #fff;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  padding: 15px;
  border-radius: 6px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.article img {
  width: 100%;
  height: auto;
  max-height: 200px; 
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 10px;
}

.article h2 {
  font-size: 18px;
  font-weight: bold;
  color: #000;
  margin: 0 0 5px 0;
}

.article .dateandauthor {
  font-size: 12px;
  color: #555;
  margin: 0 0 10px 0;
}

.article p {
  font-size: 14px;
  color: #333;
}

.article button.read-more {
  margin-top: 10px;
  background: #0a0a71;
  color: #fff;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
  font-size: 12px;
  border-radius: 4px;
}

.article button.read-more:hover {
  background: #3333aa;
}

/* ====================== 
ABOUT US SECTION 
====================== */
#about{
 padding: 5px;
  color: black;
  font-family:'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif ;
}
#aboutP{
  font-size: 15px;
}

/* ======================
FIXTURES SECTION 
 ====================== */
#fixtures {
padding: 5px;
  color: black;
  font-family:'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif ;
}
#fixturesp{
  font-size: 15px;
}

/* ====================== 
LOAD MORE BUTTON 
====================== */
#loadMore {
  background-color: #0a0a71;
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: background-color 0.3s, transform 0.2s;
}

#loadMore:hover {
  background-color: #3333aa;
  transform: scale(1.05);
}

/*====================== 
 FOOTER SECTION 
====================== */
.footer {
  padding: 7px 2px;           
  background-color: rgb(10, 10, 113);
  color: white;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;                   
  font-size: 12px;             
  position: relative;
  bottom: auto;
  width: 100%;
  margin-top: 20px;
}
.footer .copyright {
  width: 100%;
  text-align: center;
  margin-top: 10px;
  font-size: 12px;
  color: #ccc;
}

.footer-section {
  flex: 1;
  min-width: 220px;
  max-width: 280px;
  text-align: center;
}

.footer-section h4 {
  margin-bottom: 2px;
  color: white;
  font-weight: bold;
  font-size: 13px;
  text-transform: uppercase;
}

.footer-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 18px;
}

.footer-icons a, .footer-icons i {
  color: white;
  transition: color 0.3s, transform 0.3s;
}

.footer-icons a:hover, .footer-icons i:hover {
  color: #00acee;
  transform: scale(1.2);
}

/* ====================== 
 GALLERY SECTION 
====================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-grid img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.gallery-grid img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 10px rgba(0,0,0,0.2);
}

/* ====================== 
 SHARE BUTTONS 
====================== */
.share-container {
  margin-top: 8px;
  margin-bottom: 10px;
}

.share-btn {
  background-color: #0a0a71;
  color: white;
  border: none;
  padding: 6px 12px;
  font-size: 14px;
  cursor: pointer;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.share-btn i {
  font-size: 16px;
}

.share-btn:hover {
  background-color: #3333aa;
}

/* ====================== 
 EXPANDED ARTICLE VIEW
 ====================== */

/* Update the expanded article styles */
.article.expanded {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  max-width: 800px;
  max-height: 80vh;
  overflow-y: auto;
  z-index: 1000;
  padding: 30px;
  box-shadow: 0 5px 30px rgba(0,0,0,0.3);
  background: white;
  border-radius: 8px;
}

.article.expanded img {
  max-height: 300px;
}

.article.expanded h2 {
  font-size: 24px;
}

.article.expanded .more-text {
  display: block !important;
  margin-top: 20px;
  font-size: 16px;
  line-height: 1.7;
}

/* Add overlay when article is expanded */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0,0,0,0.7);
  z-index: 999;
  display: none;
}

/* Hide other articles when one is expanded */
.articles:has(.expanded) .article:not(.expanded) {
  display: none;
}

/* Style for read less button */
.read-less {
  display: none;
  background: #0a0a71;
  color: #fff;
  border: none;
  padding: 8px 16px;
  cursor: pointer;
  font-size: 14px;
  border-radius: 4px;
  margin-top: 20px;
}

.read-less:hover {
  background: #3333aa;
}
/* ====================== 
MOBILE RESPONSIVE STYLES 
 ====================== */
@media (max-width: 600px) {
  /* Header adjustments */
  .icons {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .icons-left, .icons-right {
    justify-content: center;
    flex-wrap: wrap;
  }

  .header-center .Title {
    font-size: 24px;
  }

  .tagline {
    font-size: 12px;
  }

  /* Articles: already good, but enforce single column */
  .articles {
    grid-template-columns: 1fr;
  }

  /* Gallery grid: adjust image size */
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  /* Footer: stack neatly */
  .footer-section {
    min-width: 100%;
    text-align: center;
  }

  .footer {
    font-size: 11px;
  }
}


/* ====================== 
 FIXTURES SECTION STYLES
====================== */
.fixtures-container {
  max-width: 1000px;
  margin: 20px auto;
  padding: 25px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.fixtures-container h1 {
  text-align: center;
  margin-bottom: 25px;
  color: #0a0a71;
  font-size: 28px;
  font-weight: 700;
  position: relative;
  padding-bottom: 10px;
}

.fixtures-container h1::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: #0a0a71;
}

.fixtures-controls {
  display: flex;
  justify-content: center;
  margin-bottom: 25px;
  background: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
}

.round-selector {
  display: flex;
  align-items: center;
  gap: 10px;
}

.round-selector label {
  font-weight: 600;
  color: #333;
}

.round-selector select {
  padding: 8px 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: white;
  font-family: "Inter", sans-serif;
  color: #333;
  cursor: pointer;
  transition: all 0.3s;
}

.round-selector select:hover {
  border-color: #0a0a71;
}

.round-selector select:focus {
  outline: none;
  border-color: #0a0a71;
  box-shadow: 0 0 0 2px rgba(10,10,113,0.2);
}

/* Match Card */
.match-card {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.match-header {
  background-color: #b6c3f5;
  padding: 8px 15px;
  display: flex;
  justify-content: space-between;
  font-size: 0.9em;
  color: #666;
}

.match-content {
  display: flex;
  align-items: center;
  padding: 15px;
}
.match-card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transform: translateY(-2px);
  transition: all 0.2s ease;
}

.team {
  flex: 1;
  display: flex;
  align-items: center;
}

.home-team {
  justify-content: flex-end;
  text-align: right;
}

.away-team {
  justify-content: flex-start;
  text-align: left;
}

.team-logo {
  width: 40px;
  height: 40px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin: 0 10px;
}

.home-team .team-logo {
  order: 1;
}

.match-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 15px;
  min-width: 100px;
}

.match-time {
  font-weight: bold;
  font-size: 1.1em;
  margin-bottom: 5px;
}

.match-status {
  font-size: 0.8em;
  padding: 3px 8px;
  border-radius: 12px;
  background-color: #f0f0f0;
}

.match-status.upcoming {
  background-color: #e3f2fd;
  color: #1976d2;
}
.match-status.live {
  background: #e53935;
  color: white;
  animation: pulse 1.5s infinite;
}

.match-status.finished {
  background: #4caf50;
  color: white;
}

/* No Fixtures Message */
.no-fixtures {
  text-align: center;
  padding: 40px 20px;
  background: #f8f9fa;
  border-radius: 8px;
  margin-top: 20px;
}

.no-fixtures p {
  color: #666;
  font-size: 16px;
  margin-bottom: 20px;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .fixtures-container {
    padding: 15px;
  }
  
  .match-content {
    flex-direction: column;
    padding: 15px;
  }
  
  .team, .match-details {
    width: 100%;
    margin-bottom: 15px;
  }
  
  .home-team, .away-team {
    text-align: center;
    flex-direction: row;
    justify-content: center;
    gap: 10px;
  }
  
  .team-logo {
    margin-bottom: 0;
    margin-right: 10px;
  }
  
  .team-name {
    white-space: normal;
  }
  
  .match-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  
  .match-venue {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .fixtures-controls {
    flex-direction: column;
    gap: 10px;
  }
  
  .round-selector {
    flex-direction: column;
    align-items: flex-start;
  }
}


.home-team {
  justify-content: flex-end;
  text-align: right;
  flex-direction: row;
}


.away-team {
  justify-content: flex-start;
  text-align: left;
  flex-direction: row; 
}

/* Logo spacing */
.team-logo {
  margin: 0 8px;
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.match-status.completed {
      background-color: #4CAF50;
      color: white;
    }
    
    .view-results-btn {
      background-color: #2196F3;
      color: white;
      border: none;
      padding: 5px 10px;
      border-radius: 4px;
      cursor: pointer;
      font-size: 12px;
      margin-top: 5px;
      text-decoration: none;
      display: inline-block;
    }
    
    .view-results-btn:hover {
      background-color: #0b7dda;
    }

/* ====================== 
MODAL STYLES 
====================== */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  overflow-y: auto;
}

.modal-content {
  background-color: #fff;
  margin: 5% auto;
  padding: 20px;
  border-radius: 8px;
  width: 90%;
  max-width: 800px;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.close-button {
  position: absolute;
  right: 20px;
  top: 15px;
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
}

.close-button:hover {
  color: #000;
}

#modalArticleContent {
  margin-top: 20px;
}

#modalArticleContent img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
}

#modalArticleContent h2 {
  color: #0a0a71;
  margin-bottom: 10px;
}

#modalArticleContent h6 {
  color: #666;
  margin-bottom: 20px;
  font-style: italic;
}

#modalArticleContent p {
  line-height: 1.6;
  color: #333;
}

#modalArticleContent .share-container {
  margin: 15px 0;
}
/* Loading spinner */
.loader {
  border: 5px solid #f3f3f3;
  border-top: 5px solid #0a0a71;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
/* Article content formatting */
.article-content p {
  margin-bottom: 15px;
  line-height: 1.6;
}

.more-text p {
  margin-bottom: 15px;
  line-height: 1.6;
}

.more-text p:last-child {
  margin-bottom: 0;
}

/* Image credit styling */
.image-credit {
  font-size: 12px;
  color: #666;
  margin-top: 20px;
  font-style: italic;
  border-top: 1px solid #eee;
  padding-top: 10px;
}

/* Hard-coded articles image credit */
.article p:last-child {
  font-size: 12px;
  color: #666;
  margin-top: 10px;
  font-style: italic;
}

/* Fix for the double "By" issue */
.dateandauthor {
  font-size: 12px;
  color: #555;
  margin: 0 0 10px 0;
}
