/* Hero Section Redesign Styles */

/* Hero Container */
.hero-container {
  max-width: 1600px;
  margin: 0 auto;
  padding-top: 30px;
  padding-bottom: 30px;
}

/* Hero News Container */
.hero-news-container,
.hero-standings-container {
  border-radius: 10px;
  overflow: hidden;
  height: 100%;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  background-color: rgba(0, 0, 0, 0.4) !important;
  backdrop-filter: blur(10px);
}

.hero-standings-container {
  overflow-y: hidden;
  scrollbar-width: none;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}
.hero-section-header h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0;
  letter-spacing: 1px;
}

/* Main Featured News Item */
.hero-main-news {
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  height: 450px;
}

.hero-main-news img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}

/* Featured News Item (Secondary) */
.hero-featured-news {
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  height: 320px;
}

.hero-featured-news img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}

.hero-news-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  color: white;
}

.hero-news-content .news-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
  color: white;
}

.hero-news-content .news-excerpt {
  font-size: 0.85rem;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.8);
}

.hero-news-content .news-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

.read-more {
  color: #3498db;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}

.read-more:hover {
  color: #2980b9;
}

.read-more i {
  margin-left: 5px;
  transition: transform 0.2s ease;
}

.read-more:hover i {
  transform: translateX(3px);
}

/* News Items */
.hero-news-item {
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  height: 110px;
  background-color: rgba(0, 0, 0, 0.2) !important;
  transition: all 0.2s ease;
  display: flex;
}

.hero-news-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

.hero-news-item img {
  width: 40%;
  height: 100%;
  object-fit: cover;
}

.news-item-content {
  padding: 10px;
  color: white;
  width: 60%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.news-item-content h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: white;
  text-overflow: ellipsis;
}

.news-date {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Hero Standings Table */
.hero-standings-table-wrapper {
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: 8px;
  max-height: 350px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
  padding-bottom: 40px;
}

.hero-standings-table-wrapper::-webkit-scrollbar {
  width: 6px;
}

.hero-standings-table-wrapper::-webkit-scrollbar-track {
  background: transparent;
}

.hero-standings-table-wrapper::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 10px;
}

.hero-standings-table {
  width: 100%;
  border-collapse: collapse;
}

.hero-standings-table th,
.hero-standings-table td {
  padding: 8px;
  text-align: center;
  color: white;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
}

.hero-standings-table th {
  background-color: rgba(0, 0, 0, 0.3);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.hero-standings-table .team-column {
  text-align: left;
  width: 50%;
}

.hero-standings-table .team-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-standings-table .team-info-details {
  display: flex;
  align-items: center;
  gap: 8px;
}
.team-info-details img {
  width: 30px;
  height: 30px;
  object-fit: cover;
  border-radius: 50%;
  background-color: white;
  padding: 1px;
}

.hero-standings-table .team-info img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  border-radius: 50%;
  background-color: white;
  padding: 2px;
}

.hero-standings-table tr.champions-league {
  background-color: rgba(52, 152, 219, 0.1);
}

.hero-standings-table tr.relegation {
  background-color: rgba(231, 76, 60, 0.1);
}

/* Responsive Adjustments */
/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .hero-main-news {
    height: 450px;
  }

  .hero-news-item {
    height: 120px;
  }
}

/* Large devices (desktops, 992px to 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
  .hero-main-news {
    height: 400px;
  }

  .hero-news-item {
    height: 110px;
  }

  .hero-news-content .news-title {
    font-size: 1.1rem;
  }

  .hero-news-content .news-excerpt {
    font-size: 0.8rem;
  }
}

/* Medium devices (tablets, 768px to 991px) */
@media (min-width: 768px) and (max-width: 991px) {
  .hero-container {
    padding-left: 25px;
    padding-right: 25px;
  }

  .hero-news-container,
  .hero-standings-container {
    margin-bottom: 20px;
  }

  .hero-main-news {
    height: 350px;
  }

  .hero-news-item {
    height: 120px;
    margin-bottom: 15px;
  }

  .news-item-content h4 {
    font-size: 0.85rem;
  }

  .hero-standings-table th,
  .hero-standings-table td {
    padding: 6px;
    font-size: 0.8rem;
  }

  /* Special handling for tablet view */
  .col-md-4 .hero-news-item {
    display: flex;
    flex-direction: row;
  }

  .col-md-4 .hero-news-item img {
    width: 40%;
    height: 100%;
  }

  .col-md-4 .news-item-content {
    width: 60%;
    padding: 10px;
  }
}

/* Small devices (landscape phones, 576px to 767px) */
@media (min-width: 576px) and (max-width: 767px) {
  .hero-container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .hero-main-news {
    height: 300px;
    margin-bottom: 20px;
  }

  .hero-news-item {
    height: 100px;
    margin-bottom: 15px;
  }

  .news-item-content h4 {
    font-size: 0.8rem;
    -webkit-line-clamp: 1;
  }

  .hero-news-content .news-excerpt {
    -webkit-line-clamp: 2;
    font-size: 0.8rem;
  }

  .hero-section-header h2 {
    font-size: 1.2rem;
  }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575px) {
  .hero-container {
    padding-left: 10px;
    padding-right: 10px;
  }

  .hero-main-news {
    height: 250px;
    margin-bottom: 15px;
  }

  .hero-news-item {
    height: 90px;
    margin-bottom: 10px;
  }

  .hero-news-content {
    padding: 15px;
  }

  .hero-news-content .news-title {
    font-size: 1rem;
    margin-bottom: 5px;
  }

  .hero-news-content .news-excerpt {
    font-size: 0.75rem;
    -webkit-line-clamp: 2;
    margin-bottom: 5px;
  }

  .hero-news-content .news-meta {
    font-size: 0.7rem;
  }

  .news-item-content {
    padding: 8px;
  }

  .news-item-content h4 {
    font-size: 0.75rem;
    -webkit-line-clamp: 1;
    margin-bottom: 3px;
  }

  .news-date {
    font-size: 0.65rem;
  }

  .hero-section-header h2 {
    font-size: 1.1rem;
  }

  .hero-standings-table th,
  .hero-standings-table td {
    padding: 5px;
    font-size: 0.7rem;
  }

  /* Improved mobile layout */
  .hero-news-container,
  .hero-standings-container {
    padding: 10px !important;
  }

  .category-badge {
    font-size: 0.7rem;
    padding: 3px 8px;
  }

  .read-more {
    font-size: 0.7rem;
  }

  .rpl-section-divider {
    margin: 5px 0 10px;
  }
}
