/* ===========================
   Global Styles
   =========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #e8e8e8;
  color: #111;
  line-height: 1.6;
}

.main-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ===========================
   Navigation Bar
   =========================== */
.navbar {
  background-color: #ffffff;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  height: 50px;
  width: auto;
  margin-left: 20px;
}

.ucl-logo {
  margin-left: 5px;
  width: auto;
  height: 60px;
}

.brand-name {
  font-size: 24px;
  font-weight: bold;
  color: #808080;
  margin-left: 10px;
}

.nav-menu .nav-list {
  list-style: none;
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-list li a {
  text-decoration: none;
  color: #808080;
  padding: 8px 15px;
  border-radius: 5px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.nav-list li a:hover {
  background-color: #D4AF37;
  color: #ffffff;
}

/* ===========================
   Main Layout
   =========================== */
.main-layout {
  display: flex;
  gap: 20px;
  padding: 20px;
  flex: 1;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  align-items: flex-start;
}

/* ===========================
   Sidebar
   =========================== */
.left-sidebar {
  width: 250px;
  min-width: 250px;
  background-color: #ffffff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  height: fit-content;
  position: sticky;
  top: 100px;
}

.left-sidebar h3 {
  margin-bottom: 15px;
  font-size: 18px;
  color: #333;
  font-weight: 600;
  border-bottom: 3px solid #D4AF37;
  padding-bottom: 10px;
}

.left-sidebar ul {
  list-style: none;
  padding-left: 0;
}

.left-sidebar li {
  margin-bottom: 8px;
}

.left-sidebar a {
  color: #666;
  text-decoration: none;
  display: block;
  padding: 8px 12px;
  border-radius: 4px;
  transition: all 0.2s ease;
  font-size: 15px;
}

.left-sidebar a:hover {
  color: #D4AF37;
  background-color: #f5f5f5;
  padding-left: 18px;
}

/* ===========================
   Content Area
   =========================== */
.content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ===========================
   Hero Section
   =========================== */
.hero {
  background-color: #ffffff;
  text-align: center;
  background-image: url('foto/mbappe.jpg');
  padding: 80px 40px;
  border-radius: 8px 8px 0 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.hero-title {
  font-size: 48px;
  font-weight: bold;
  color: #FFFFFF;
  letter-spacing: 2px;
  margin: 0;
}

.subtitle {
  font-size: 18px;
  font-weight: 300;
  color: #666;
  margin-top: 10px;
}

/* Hero with Background Images */
.hero-trending,
.hero-matchday,
.hero-transfer,
.hero-adidas {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 100px 40px;
  overflow: hidden;
}

/* Dark overlay for better text readability */
.hero-trending::before,
.hero-matchday::before,
.hero-transfer::before,
.hero-adidas::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

/* Ensure text is above overlay */
.hero-trending > *,
.hero-matchday > *,
.hero-transfer > *,
.hero-adidas > * {
  position: relative;
  z-index: 2;
}

/* Text color for heroes with background */
.hero-trending .hero-title,
.hero-matchday .hero-title,
.hero-transfer .hero-title,
.hero-adidas .hero-title {
  color: #ffffff;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.hero-trending .subtitle,
.hero-matchday .subtitle,
.hero-transfer .subtitle,
.hero-adidas .subtitle {
  color: #ffffff;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
}

/* Background images for each hero */
.hero-trending {
  background-image: url('foto/header ucl.jpg');
}

.hero-matchday {
  background-image: url('foto/header matchday.jpg');
}

.hero-transfer {
  background-image: url('foto/header transfer.jpg');
}

.hero-adidas {
  background-image: url('foto/header adidas.jpg');
}

/* ===========================
   News Section
   =========================== */
.news-comp {
  background-color: #ffffff;
  padding: 40px;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.news-comp h2 {
  font-size: 26px;
  margin-bottom: 25px;
  color: #333;
  font-weight: 600;
}

.news-item {
  background-color: #ffffff;
  padding: 20px;
  border-radius: 6px;
  border-left: 5px solid #D4AF37;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
}

.news-item:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transform: translateX(3px);
}

.news-item h3 {
  font-size: 19px;
  margin-bottom: 10px;
  color: #222;
  line-height: 1.4;
  font-weight: 600;
}

.news-item p {
  margin-bottom: 12px;
  color: #666;
  line-height: 1.6;
  font-size: 15px;
}

.news-item a {
  color: #007BFF;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: color 0.2s ease;
}

.news-item a:hover {
  color: #0056b3;
  text-decoration: underline;
}

/* Jadwal List Styling */
.jadwal-list {
  list-style: none;
  padding-left: 0;
  margin-top: 15px;
}

.jadwal-list li {
  padding: 12px 15px;
  margin-bottom: 10px;
  background-color: #f8f9fa;
  border-left: 3px solid #D4AF37;
  border-radius: 4px;
  font-size: 15px;
  color: #555;
  transition: all 0.2s ease;
}

.jadwal-list li:hover {
  background-color: #e9ecef;
  transform: translateX(3px);
}

/* ===========================
   Error Message
   =========================== */
.error-message {
  background-color: #ffffff;
  padding: 60px 40px;
  text-align: center;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin: 40px auto;
  max-width: 600px;
}

.error-message h2 {
  color: #D4AF37;
  margin-bottom: 15px;
  font-size: 32px;
}

.error-message p {
  color: #555;
  font-size: 18px;
}

/* ===========================
   Footer
   =========================== */
.site-footer {
  background-color: #ffffff;
  color: #808080;
  text-align: center;
  padding: 20px;
  margin-top: 20px;
  box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.1);
}

.site-footer p {
  font-size: 14px;
  margin: 0;
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 1024px) {
  .main-layout {
    padding: 15px;
  }
  
  .news-comp {
    padding: 30px;
  }
}

@media (max-width: 768px) {
  .main-layout {
    flex-direction: column;
    gap: 15px;
    padding: 15px;
  }

  .left-sidebar {
    width: 100%;
    min-width: 100%;
    position: relative;
    top: 0;
  }

  .navbar {
    flex-direction: column;
    padding: 15px 20px;
    gap: 15px;
  }

  .nav-menu .nav-list {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    align-items: stretch;
  }
  
  .nav-list li a {
    text-align: center;
  }

  .hero,
  .hero-trending,
  .hero-matchday,
  .hero-transfer,
  .hero-adidas {
    padding: 60px 20px;
  }

  .hero-title {
    font-size: 32px;
  }

  .subtitle {
    font-size: 16px;
  }
  
  .news-comp {
    padding: 25px 20px;
  }
  
  .news-comp h2 {
    font-size: 22px;
    margin-bottom: 20px;
  }
  
  .news-item {
    padding: 18px;
  }
  
  .news-item h3 {
    font-size: 17px;
  }
  
  .news-item p {
    font-size: 14px;
  }

  .jadwal-list li {
    font-size: 14px;
    padding: 10px 12px;
  }
}

@media (max-width: 480px) {
  .logo {
    height: 40px;
    margin-left: 10px;
  }
  
  .ucl-logo {
    height: 45px;
  }
  
  .brand-name {
    font-size: 18px;
    margin-left: 5px;
  }
  
  .hero-title {
    font-size: 28px;
  }
  
  .news-comp h2 {
    font-size: 20px;
  }
  
  .news-item h3 {
    font-size: 16px;
  }
}