:root {
  --primary: #1a237e;
  --primary-dark: #0d1559;
  --primary-light: #283593;
  --accent: #FF6D00;
  --accent-dark: #E65100;
  --accent-light: #FF9100;
  --text: #212121;
  --text-secondary: #616161;
  --text-light: #ffffff;
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --bg-dark: #0a0e2a;
  --border: #e0e0e0;
  --shadow: rgba(26, 35, 126, 0.12);
  --shadow-strong: rgba(26, 35, 126, 0.2);
}

/* Reset */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent);
}

img {
  max-width: 100%;
  height: auto;
}

/* Header */
header {
  background: var(--primary);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px var(--shadow-strong);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
}

header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 64px;
}

.logo {
  font-size: 1.75rem;
  font-weight: 900;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0;
  letter-spacing: -0.5px;
}

.logo-soccer {
  color: var(--text-light);
}

.logo-365 {
  color: var(--accent);
  font-style: italic;
}

.logo:hover .logo-365 {
  color: var(--accent-light);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.25rem;
}

.nav-links li a {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-links li a:hover {
  color: var(--text-light);
  background: rgba(255, 255, 255, 0.1);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-light);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Hero */
.hero {
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('/img/football-stadium-night-match-hero.jpg');
  background-size: cover;
  background-position: center;
  color: var(--text-light);
  padding: 4rem 2rem 3.5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: transparent;
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: transparent;
  border-radius: 50%;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-ticker {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.4rem 1.25rem 0.4rem 0.5rem;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.ticker-label {
  background: var(--accent);
  color: white;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  letter-spacing: 1px;
  text-transform: uppercase;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.ticker-text {
  font-size: 0.9rem;
  opacity: 0.9;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1rem;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: 1.2rem;
  opacity: 0.85;
  max-width: 640px;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-primary:hover {
  background: var(--accent-dark);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255, 109, 0, 0.3);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  color: white;
  transform: translateY(-1px);
}

/* Latest Articles */
.latest-articles {
  padding: 4rem 2rem;
  background: var(--bg-alt);
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.section-title-bar h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
  white-space: nowrap;
}

.title-accent {
  flex: 1;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
  border-radius: 3px;
}

/* Article Grid */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

/* Card */
.card {
  background: var(--bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 4px var(--shadow);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px var(--shadow-strong);
}

.card-accent {
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-section {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.25rem;
}

.card-date {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.card h2,
.card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.75rem;
}

.card h2 a,
.card h3 a {
  color: var(--text);
}

.card h2 a:hover,
.card h3 a:hover {
  color: var(--primary);
}

.card-excerpt {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
  flex: 1;
}

.card-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-link:hover {
  color: var(--accent-dark);
}

/* Sections Overview */
.sections-overview {
  padding: 4rem 2rem;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.overview-card {
  text-align: center;
  padding: 2.5rem 2rem;
  background: var(--bg-alt);
  border-radius: 16px;
  border: 2px solid var(--border);
  transition: all 0.25s ease;
}

.overview-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--shadow);
}

.overview-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.overview-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.overview-card h3 a {
  color: var(--primary);
}

.overview-card h3 a:hover {
  color: var(--accent);
}

.overview-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Section Listing */
.section-listing {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.section-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 3px solid var(--accent);
}

.section-header h1 {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary);
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

/* Article Hero Banner */
.article-hero {
  background: linear-gradient(to bottom, rgba(10,15,20,0.55), rgba(10,15,20,0.8)), url('/img/football-stadium-night-match-hero.jpg');
  background-size: cover;
  background-position: center 40%;
  color: var(--text-light);
  padding: 4rem 2rem 3rem;
}

.article-hero-inner {
  max-width: 800px;
  margin: 0 auto;
}

.article-hero .article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.article-hero .article-section {
  font-size: 0.8rem;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: var(--accent);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
}

.article-hero .article-date {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
}

.article-hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  color: white;
  margin-bottom: 0.75rem;
}

.article-hero .article-subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
  margin-bottom: 1rem;
  max-width: 640px;
}

.article-hero .article-author {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
}

/* Article Single */
.article-single {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.article-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.article-section {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(255, 109, 0, 0.08);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
}

.article-date {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.article-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.article-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.article-author {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 600;
}

/* Article Content */
.article-content {
  font-size: 1.05rem;
  line-height: 1.8;
}

.article-content h2 {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--primary);
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent);
}

.article-content h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-light);
  margin: 2rem 0 0.75rem;
}

.article-content p {
  margin-bottom: 1.25rem;
}

.article-content ul,
.article-content ol {
  margin: 1rem 0 1.5rem 1.5rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

.article-content blockquote {
  border-left: 4px solid var(--accent);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--bg-alt);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--text-secondary);
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.article-content th {
  background: var(--primary);
  color: var(--text-light);
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 700;
}

.article-content td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--border);
}

.article-content tr:hover td {
  background: var(--bg-alt);
}

.article-content a {
  color: var(--accent);
  font-weight: 600;
  border-bottom: 1px solid transparent;
}

.article-content a:hover {
  border-bottom-color: var(--accent);
}

/* Article Footer */
.article-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(26, 35, 126, 0.06);
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  border: 1px solid rgba(26, 35, 126, 0.12);
  transition: all 0.2s ease;
}

.tag:hover {
  background: var(--primary);
  color: var(--text-light);
}

/* Page Single (Legal) */
.page-single {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.page-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid var(--primary);
}

.page-header h1 {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary);
}

.page-content {
  font-size: 1.05rem;
  line-height: 1.8;
}

.page-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin: 2rem 0 0.75rem;
}

.page-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 1.5rem 0 0.5rem;
}

.page-content p {
  margin-bottom: 1.25rem;
}

.page-content ul,
.page-content ol {
  margin: 1rem 0 1.5rem 1.5rem;
}

.page-content li {
  margin-bottom: 0.5rem;
}

.page-content a {
  color: var(--accent);
  font-weight: 600;
}

/* Footer */
footer {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 3.5rem 2rem 0;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col h4 {
  color: var(--text-light);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--accent);
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.6rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-col p {
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
}

/* Responsive */
@media (max-width: 992px) {
  .overview-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .overview-card {
    padding: 1.75rem 1.5rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .article-hero {
    padding: 2.5rem 1.5rem 2rem;
  }
  .article-hero h1 {
    font-size: 1.75rem;
  }
  .article-hero .article-subtitle {
    font-size: 1rem;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--primary);
    flex-direction: column;
    padding: 1rem 2rem 1.5rem;
    gap: 0;
    box-shadow: 0 8px 24px var(--shadow-strong);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li a {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .hero {
    padding: 2.5rem 1.5rem 2rem;
    background-position: center top;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
    gap: 0.75rem;
  }

  .btn {
    text-align: center;
  }

  .article-grid {
    grid-template-columns: 1fr;
  }

  .article-header h1 {
    font-size: 1.75rem;
  }

  .article-single {
    padding: 1.5rem;
  }

  .section-listing {
    padding: 2rem 1.5rem;
  }

  .page-single {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 480px) {
  header nav {
    padding: 0 1rem;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .ticker-text {
    font-size: 0.8rem;
  }

  .latest-articles {
    padding: 2.5rem 1rem;
  }

  .sections-overview {
    padding: 2.5rem 1rem;
  }

  .card-body {
    padding: 1.25rem;
  }

  .section-title-bar h2 {
    font-size: 1.35rem;
  }
}
