/* ============================================================
   SPORTRIX THEME - MAIN STYLESHEET
   Modern AI-Powered Sport Technology Design
   ============================================================ */

/* === CSS Variables (Color Scheme from Reference) ========== */
:root {
  --primary-navy: #0a1628;
  --primary-green: #b8e986;
  --accent-green: #9dd45d;
  --text-dark: #1a1a1a;
  --text-light: #e8e8e8;
  --text-gray: #6b7280;
  --bg-light: #f9fafb;
  --bg-white: #ffffff;
  --border-color: #e5e7eb;
  --hover-green: #a8d96d;
}

/* === Info Bar (Compact) ==================================== */
.info-bar {
  background: var(--primary-navy);
  padding: 0.75rem 2rem;
  border-bottom: 1px solid rgba(184, 233, 134, 0.1);
}

.info-bar-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-light);
  font-size: 0.875rem;
  font-weight: 500;
}

.info-item svg {
  color: var(--primary-green);
  flex-shrink: 0;
}

/* === Content Blocks ======================================== */
.content-blocks {
  max-width: 1280px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.content-block {
  margin-bottom: 4rem;
}

.block-container {
  max-width: 900px;
  margin: 0 auto;
}

/* About Block */
.about-block {
  text-align: center;
}

.block-icon {
  width: 64px;
  height: 64px;
  background: var(--primary-green);
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--primary-navy);
}

.block-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1.25rem;
  line-height: 1.3;
}

.block-text {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-gray);
  max-width: 800px;
  margin: 0 auto;
}

/* Audience Block (Who We Serve) */
.audience-block .block-title {
  text-align: center;
  margin-bottom: 2.5rem;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.audience-card {
  background: var(--bg-white);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.audience-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.audience-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.audience-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.audience-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-gray);
}

/* Resources Block (What You'll Find) */
.resources-block {
  background: var(--bg-white);
  padding: 3rem 2rem;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.resources-block .block-title {
  text-align: center;
  margin-bottom: 2.5rem;
}

.resources-list {
  display: grid;
  gap: 1.5rem;
}

.resource-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.5rem;
  border-radius: 10px;
  background: var(--bg-light);
  transition: all 0.3s ease;
}

.resource-item:hover {
  background: rgba(184, 233, 134, 0.08);
  transform: translateX(8px);
}

.resource-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-green);
  min-width: 50px;
}

.resource-content h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.resource-content p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-gray);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 
               'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--bg-light);
  font-size: 16px;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

/* === Header Navigation ==================================== */
.site-header {
  background: var(--primary-navy);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--primary-green);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary-navy);
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--bg-white);
}

/* Main Navigation Menu */
#top_menus {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
}

#top_menus li {
  position: relative;
}

#top_menus .nav-link {
  color: var(--text-light);
  font-weight: 500;
  font-size: 1rem;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

#top_menus .nav-link:hover,
#top_menus .nav-link:focus,
#top_menus .current-menu-item .nav-link {
  color: var(--primary-green);
}

.cta-button {
  background: var(--primary-green);
  color: var(--primary-navy);
  padding: 0.75rem 1.75rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.cta-button:hover {
  background: var(--hover-green);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(184, 233, 134, 0.3);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-light);
  font-size: 1.5rem;
  cursor: pointer;
}

/* === Hero Section ========================================= */
.hero-section {
  background: linear-gradient(135deg, var(--primary-navy) 0%, #1a2942 100%);
  padding: 5rem 2rem;
  text-align: center;
  color: var(--text-light);
}

.hero-container {
  max-width: 900px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(184, 233, 134, 0.1);
  color: var(--primary-green);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--bg-white);
}

.hero-description {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 2.5rem;
  opacity: 0.9;
}

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

.btn-primary {
  background: var(--primary-green);
  color: var(--primary-navy);
  padding: 1rem 2.25rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--hover-green);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(184, 233, 134, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--bg-white);
  padding: 1rem 2.25rem;
  border-radius: 8px;
  font-weight: 600;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-secondary:hover {
  border-color: var(--primary-green);
  color: var(--primary-green);
}

/* === Blog Posts Grid ====================================== */
.posts-section {
  max-width: 1280px;
  margin: 4rem auto;
  padding: 0 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-gray);
  max-width: 600px;
  margin: 0 auto;
}

.post-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

/* === Post Card Design ===================================== */
.post-item {
  background: var(--bg-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.post-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.post-featured-image {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: var(--border-color);
}

.post-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.post-item:hover .post-featured-image img {
  transform: scale(1.05);
}

.post-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: var(--text-gray);
}

.post-date {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.post-item h3 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.post-item h3 a {
  color: var(--text-dark);
}

.post-item h3 a:hover {
  color: var(--accent-green);
}

.post-item p {
  color: var(--text-gray);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.read-more-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-green);
  font-weight: 600;
  font-size: 0.95rem;
  transition: gap 0.3s ease;
}

.read-more-link:hover {
  gap: 0.75rem;
}

/* === Pagination =========================================== */
nav.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3rem;
  margin-bottom: 4rem;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 1rem;
  border-radius: 8px;
  font-weight: 600;
  color: var(--text-dark);
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.page-numbers:hover,
.page-numbers.current {
  background: var(--primary-green);
  color: var(--primary-navy);
  border-color: var(--primary-green);
}

.page-numbers.dots {
  border: none;
  background: transparent;
  cursor: default;
}

.page-numbers.prev,
.page-numbers.next {
  font-size: 0.875rem;
}

/* === Single Post/Page Styles =========================== */
.breadcrumbs {
  max-width: 900px;
  margin: 2rem auto 0;
  padding: 0 2rem;
  font-size: 0.875rem;
  color: var(--text-gray);
}

.breadcrumbs a {
  color: var(--accent-green);
  transition: color 0.3s ease;
}

.breadcrumbs a:hover {
  color: var(--primary-navy);
}

.page-content {
  max-width: 900px;
  margin: 2rem auto 4rem;
  padding: 3rem;
  background: var(--bg-white);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.page-content .post-featured-image {
  height: auto;
  margin-bottom: 2rem;
  border-radius: 8px;
  overflow: hidden;
}

.page-content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.page-content .content {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text-dark);
}

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

.page-content .content h2 {
  font-size: 1.875rem;
  font-weight: 600;
  margin: 2.5rem 0 1.25rem;
  color: var(--text-dark);
}

.page-content .content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 2rem 0 1rem;
  color: var(--text-dark);
}

.page-content .content img {
  border-radius: 8px;
  margin: 2rem 0;
}

.page-content .content ul,
.page-content .content ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

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

/* === Footer =============================================== */
.site-footer {
  background: var(--primary-navy);
  color: var(--text-light);
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-info {
  text-align: center;
  margin-bottom: 2rem;
}

.footer-logo {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--bg-white);
  margin-bottom: 1rem;
}

.footer-slogan {
  font-size: 1rem;
  color: var(--text-light);
  opacity: 0.8;
  margin-bottom: 1.5rem;
}

.footer-contacts {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.contact-item a {
  color: var(--primary-green);
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: var(--hover-green);
}

/* Footer Menu */
.footer-menu {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  list-style: none;
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 2rem;
}

.footer-menu a {
  color: var(--text-light);
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-menu a:hover {
  color: var(--primary-green);
}

.footer-bottom {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-light);
  opacity: 0.7;
}

.footer-bottom a {
  color: var(--primary-green);
  transition: color 0.3s ease;
}

.footer-bottom a:hover {
  color: var(--hover-green);
}

/* === Related Articles Section ============================= */
.related-articles {
  max-width: 1280px;
  margin: 4rem auto 2rem;
  padding: 0 2rem;
}

.related-articles .section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.related-articles .section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.related-articles .section-subtitle {
  font-size: 1rem;
  color: var(--text-gray);
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

@media (max-width: 768px) {
  .related-posts-grid {
    grid-template-columns: 1fr;
  }
  
  .related-articles {
    margin: 3rem auto 1.5rem;
  }
}

/* === 404 Page ============================================= */
.error-404-content {
  text-align: center;
  padding: 5rem 2rem;
}

.error-404-title {
  font-size: 8rem;
  font-weight: 700;
  color: var(--primary-green);
  line-height: 1;
  margin-bottom: 1rem;
}

.error-404-message {
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-bottom: 2rem;
}

/* === Responsive Design ==================================== */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.75rem;
  }
  
  .post-list {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
  }

  .audience-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .header-container {
    padding: 0 1rem;
  }

  #top_menus {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primary-navy);
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  }

  #top_menus.active {
    display: flex;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .info-bar {
    padding: 0.75rem 1rem;
  }

  .info-bar-container {
    gap: 1.5rem;
    font-size: 0.8rem;
  }

  .hero-section {
    padding: 3rem 1.5rem;
  }

  .hero-title {
    font-size: 2rem;
  }

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

  .content-blocks {
    padding: 3rem 1rem;
  }

  .block-title {
    font-size: 1.5rem;
  }

  .block-text {
    font-size: 1rem;
  }

  .audience-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .resources-block {
    padding: 2rem 1.25rem;
  }

  .resource-item {
    flex-direction: column;
    gap: 1rem;
  }

  .resource-number {
    font-size: 1.25rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .post-list {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }

  .page-content {
    padding: 2rem 1.5rem;
    margin: 1.5rem 1rem 3rem;
  }

  .page-content h1 {
    font-size: 1.875rem;
  }

  .footer-contacts {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .info-bar-container {
    flex-direction: column;
    gap: 0.75rem;
  }

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

  .hero-actions {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    text-align: center;
  }

  .block-title {
    font-size: 1.375rem;
  }

  .audience-icon {
    font-size: 2.5rem;
  }

  .error-404-title {
    font-size: 5rem;
  }
}

/* === Accessibility ======================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* === Smooth Animations ==================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

