/* ========================================
   APEX SPORTS - Sports News Portal
   Style Reference: FIFA.com
   Theme Color: Orange
   ======================================== */

/* ----- Reset & Base ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #222;
  background: #f4f4f6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ----- Variables ----- */
:root {
  --orange: #FF6B00;
  --orange-dark: #E05A00;
  --orange-light: #FF8C3A;
  --orange-bg: #FFF3E8;
  --dark: #0D0D1A;
  --dark-2: #14142A;
  --dark-3: #1C1C3A;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-500: #6c757d;
  --gray-700: #495057;
  --gray-900: #212529;
  --container: 1200px;
  --header-h: 68px;
}

/* ----- Container ----- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* ========================================
   HEADER - FIFA.com Inspired
   ======================================== */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--dark);
  border-bottom: 3px solid var(--orange);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
}
.site-logo {
  display: flex; align-items: center; gap: 10px; color: #fff;
  font-size: 1.4rem; font-weight: 800; letter-spacing: -0.5px;
}
.site-logo .logo-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; background: var(--orange);
  border-radius: 8px; font-size: 1.1rem; font-weight: 900; color: #fff;
}
.site-logo span.highlight { color: var(--orange); }

/* Nav */
.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  color: rgba(255,255,255,.85); font-size: .875rem; font-weight: 600;
  padding: 8px 14px; border-radius: 6px; transition: .2s;
  text-transform: uppercase; letter-spacing: .5px;
}
.main-nav a:hover, .main-nav a.active { background: rgba(255,255,255,.1); color: var(--orange); }
.nav-search {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.08); border-radius: 50%; color: #fff;
  cursor: pointer; transition: .2s; margin-left: 4px;
}
.nav-search:hover { background: var(--orange); }

/* Mobile toggle */
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; background: none; border: none; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: .2s; }

/* ========================================
   HERO - Featured Story
   ======================================== */
.hero {
  position: relative; min-height: 520px; display: flex; align-items: flex-end;
  background: var(--dark-2); overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #1a1a3e 0%, #0d0d1a 40%, #2a1a0a 100%);
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.7) 0%, rgba(0,0,0,.2) 50%, transparent 100%);
}
.hero-content {
  position: relative; z-index: 2; padding: 60px 20px 50px; max-width: var(--container); margin: 0 auto; width: 100%;
}
.hero-tag {
  display: inline-block; background: var(--orange); color: #fff;
  padding: 4px 14px; border-radius: 4px; font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px;
}
.hero-title {
  font-size: 2.8rem; font-weight: 900; color: #fff; line-height: 1.15;
  max-width: 700px; margin-bottom: 14px;
}
.hero-meta {
  color: rgba(255,255,255,.65); font-size: .875rem; display: flex; gap: 16px; align-items: center;
}
.hero-meta .author { color: var(--orange-light); font-weight: 600; }

/* ========================================
   SECTION HEADERS
   ======================================== */
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px; padding-bottom: 12px;
  border-bottom: 2px solid var(--gray-300);
}
.section-header h2 {
  font-size: 1.35rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .5px;
}
.section-header h2::before {
  content: ''; display: inline-block; width: 4px; height: 18px;
  background: var(--orange); margin-right: 10px; vertical-align: middle;
  border-radius: 2px;
}
.section-header .view-all {
  font-size: .8rem; font-weight: 600; color: var(--orange); text-transform: uppercase;
  letter-spacing: .5px; transition: .2s;
}
.section-header .view-all:hover { color: var(--orange-dark); }

/* ========================================
   NEWS GRID - Card Layout (FIFA.com style)
   ======================================== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.news-grid.featured-grid {
  grid-template-columns: 1fr 1fr;
}
.news-card {
  background: #fff; border-radius: 8px; overflow: hidden;
  transition: transform .25s, box-shadow .25s;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
.news-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.news-card .card-img {
  position: relative; aspect-ratio: 16/9; background: var(--gray-200);
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-500); font-size: .8rem; overflow: hidden;
}
.news-card .card-img .placeholder-icon {
  font-size: 2.5rem; opacity: .4;
}
.news-card .card-img .card-tag {
  position: absolute; top: 10px; left: 10px;
  background: var(--orange); color: #fff;
  padding: 2px 10px; border-radius: 3px;
  font-size: .7rem; font-weight: 700; text-transform: uppercase;
}
.news-card .card-body { padding: 18px; }
.news-card .card-body .card-category {
  font-size: .72rem; font-weight: 700; color: var(--orange);
  text-transform: uppercase; letter-spacing: .5px; margin-bottom: 6px;
}
.news-card .card-body h3 {
  font-size: 1rem; font-weight: 700; line-height: 1.35; margin-bottom: 8px;
}
.news-card .card-body .card-excerpt {
  font-size: .85rem; color: var(--gray-500); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-card .card-body .card-meta {
  font-size: .75rem; color: var(--gray-500); margin-top: 10px;
}

/* Big hero card */
.news-card.big-card .card-img { aspect-ratio: 21/9; }
.news-card.big-card .card-body h3 { font-size: 1.3rem; }

/* ========================================
   COMPETITIONS SECTION
   ======================================== */
.competitions-bar {
  background: var(--dark); padding: 20px 0; margin: 40px 0;
}
.comp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.comp-item {
  background: var(--dark-3); border-radius: 8px; padding: 18px 14px;
  text-align: center; color: #fff; transition: .2s; cursor: pointer;
}
.comp-item:hover { background: var(--orange); }
.comp-item .comp-icon {
  font-size: 1.8rem; margin-bottom: 6px; opacity: .7;
}
.comp-item .comp-name {
  font-size: .8rem; font-weight: 600; text-transform: uppercase;
}

/* ========================================
   STANDINGS TABLE
   ======================================== */
.standings-table-wrap {
  background: #fff; border-radius: 8px; overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,.08); margin-bottom: 40px;
}
.standings-table {
  width: 100%; border-collapse: collapse; font-size: .875rem;
}
.standings-table thead { background: var(--dark); color: #fff; }
.standings-table th {
  padding: 12px 16px; text-align: left; font-size: .75rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
}
.standings-table td {
  padding: 12px 16px; border-bottom: 1px solid var(--gray-200);
}
.standings-table tbody tr:hover { background: var(--orange-bg); }
.standings-table .pos { font-weight: 800; color: var(--orange); width: 36px; }
.standings-table .team-name { font-weight: 600; }
.standings-table .pts { font-weight: 700; }
.standings-table .highlight-row td { background: #fff8ee; font-weight: 600; }

/* ========================================
   PAGE HEADER (inner pages)
   ======================================== */
.page-header {
  background: var(--dark); padding: 40px 0 32px; color: #fff; margin-bottom: 40px;
}
.page-header h1 {
  font-size: 2rem; font-weight: 900; letter-spacing: -.5px;
}
.page-header .breadcrumb {
  font-size: .8rem; color: rgba(255,255,255,.5); margin-top: 6px;
}
.page-header .breadcrumb a { color: var(--orange-light); }
.page-header .breadcrumb a:hover { text-decoration: underline; }

/* ========================================
   MAIN CONTENT LAYOUT
   ======================================== */
.main-content { padding: 40px 0 60px; }
.content-section { margin-bottom: 50px; }

/* ========================================
   FOOTER - FIFA.com Style
   ======================================== */
.site-footer {
  background: var(--dark); color: rgba(255,255,255,.7); padding: 48px 0 0;
  border-top: 3px solid var(--orange);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; padding-bottom: 36px;
}
.footer-col h4 {
  color: #fff; font-size: .9rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px; margin-bottom: 16px;
}
.footer-col p { font-size: .85rem; line-height: 1.7; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
  font-size: .85rem; color: rgba(255,255,255,.6); transition: .2s;
}
.footer-col ul li a:hover { color: var(--orange); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0; display: flex; align-items: center;
  justify-content: space-between; font-size: .8rem;
}
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; background: rgba(255,255,255,.08);
  border-radius: 50%; color: #fff; font-size: .85rem;
  transition: .2s;
}
.footer-social a:hover { background: var(--orange); }

/* ========================================
   ABOUT & CONTACT PAGES
   ======================================== */
.about-content {
  background: #fff; border-radius: 8px; padding: 40px;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
.about-content h2 {
  font-size: 1.3rem; font-weight: 700; margin: 28px 0 12px;
}
.about-content h2:first-of-type { margin-top: 0; }
.about-content p { font-size: .95rem; line-height: 1.8; color: var(--gray-700); margin-bottom: 14px; }
.about-content .values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px; margin: 20px 0;
}
.about-content .value-card {
  background: var(--orange-bg); border-radius: 8px; padding: 24px;
  border: 1px solid rgba(255,107,0,.15);
}
.about-content .value-card h3 { color: var(--orange); font-size: 1rem; margin-bottom: 8px; }
.about-content .value-card p { font-size: .85rem; margin-bottom: 0; }

/* Contact Form */
.contact-form-wrap { max-width: 640px; }
.contact-form { background: #fff; border-radius: 8px; padding: 36px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: .85rem; font-weight: 600;
  margin-bottom: 6px; color: var(--gray-700);
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--gray-300);
  border-radius: 6px; font-size: .9rem; font-family: inherit;
  transition: border-color .2s; background: #fff;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,107,0,.12);
}
.form-group textarea { min-height: 140px; resize: vertical; }
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 28px; border: none; border-radius: 6px;
  font-size: .9rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .5px; cursor: pointer; transition: .2s;
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); }
.btn-outline { background: transparent; color: var(--orange); border: 2px solid var(--orange); }
.btn-outline:hover { background: var(--orange); color: #fff; }

.contact-info { background: #fff; border-radius: 8px; padding: 36px; margin-top: 30px; }
.contact-info h3 { font-size: 1rem; margin-bottom: 16px; }
.contact-info p { font-size: .85rem; color: var(--gray-500); margin-bottom: 8px; }

/* ========================================
   NEWS LIST (news.html)
   ======================================== */
.news-list { display: flex; flex-direction: column; gap: 20px; }
.news-list-item {
  display: flex; gap: 20px; background: #fff; border-radius: 8px;
  overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.08); transition: .2s;
}
.news-list-item:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1); }
.news-list-item .list-img {
  flex: 0 0 280px; aspect-ratio: 16/10;
  background: var(--gray-200); display: flex; align-items: center;
  justify-content: center; color: var(--gray-500);
}
.news-list-item .list-body { flex: 1; padding: 20px 20px 20px 0; }
.news-list-item .list-body .list-category {
  font-size: .72rem; font-weight: 700; color: var(--orange);
  text-transform: uppercase; letter-spacing: .5px; margin-bottom: 6px;
}
.news-list-item .list-body h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.news-list-item .list-body p { font-size: .85rem; color: var(--gray-500); }
.news-list-item .list-body .list-meta {
  font-size: .75rem; color: var(--gray-500); margin-top: 10px;
}

/* ========================================
   PAGINATION
   ======================================== */
.pagination {
  display: flex; justify-content: center; gap: 6px; margin-top: 36px;
}
.pagination a {
  display: flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; border-radius: 6px;
  font-size: .85rem; font-weight: 600; background: #fff;
  color: var(--gray-700); transition: .2s;
}
.pagination a:hover { background: var(--orange-bg); color: var(--orange); }
.pagination a.active { background: var(--orange); color: #fff; }

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 992px) {
  .hero-title { font-size: 2.2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .news-grid.featured-grid { grid-template-columns: 1fr; }
  .news-list-item { flex-direction: column; }
  .news-list-item .list-img { flex: none; width: 100%; }
  .news-list-item .list-body { padding: 16px; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .main-nav {
    display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--dark-2); flex-direction: column; padding: 16px;
    border-bottom: 3px solid var(--orange);
  }
  .main-nav.open { display: flex; }
  .main-nav a { width: 100%; padding: 12px 16px; }
  .nav-search { display: none; }
  .hero { min-height: 360px; }
  .hero-title { font-size: 1.6rem; }
  .hero-content { padding: 40px 16px 30px; }
  .news-grid { grid-template-columns: 1fr; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .standings-table { font-size: .78rem; }
  .standings-table th, .standings-table td { padding: 8px 10px; }
  .page-header h1 { font-size: 1.5rem; }
  .about-content { padding: 24px; }
  .contact-form { padding: 24px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.3rem; }
  .hero { min-height: 280px; }
  .comp-grid { grid-template-columns: repeat(2, 1fr); }
  .site-logo { font-size: 1.1rem; }
}

/* ========================================
   UTILITY
   ======================================== */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
