/*
Theme Name: Rugby Norway
Theme URI: https://rugby.no
Author: Rugby Norway
Author URI: https://rugby.no
Description: Custom WordPress theme for Rugby Norway, inspired by England Rugby design
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rugby-norway
Tags: sports, rugby, custom-design, responsive
*/

/* ==========================================================================
   CSS Variables
   ========================================================================== */

:root {
  /* Colors */
  --color-primary-red: #8B1538;
  --color-primary-red-dark: #6B0F2A;
  --color-secondary-blue: #00205B;
  --color-navy: #1E2952;
  --color-white: #FFFFFF;
  --color-light-gray: #F5F5F5;
  --color-medium-gray: #E0E0E0;
  --color-dark-gray: #333333;
  --color-gold: #D4AF37;
  
  /* Typography */
  --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-heading: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 4rem;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  
  /* Container */
  --container-max-width: 1200px;
  --container-padding: 1rem;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  color: var(--color-dark-gray);
  line-height: 1.6;
  background-color: var(--color-white);
  overflow-x: hidden;
}

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

a {
  color: var(--color-primary-red);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary-red-dark);
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
}

h1 {
  font-size: 3rem;
  text-transform: uppercase;
}

h2 {
  font-size: 2.5rem;
  text-transform: uppercase;
}

h3 {
  font-size: 2rem;
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: var(--spacing-sm);
}

/* ==========================================================================
   Layout
   ========================================================================== */

.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.container-fluid {
  width: 100%;
  padding: 0 var(--container-padding);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
}

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

.btn-primary:hover {
  background-color: var(--color-primary-red-dark);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
  background-color: var(--color-secondary-blue);
  color: var(--color-white);
}

.btn-secondary:hover {
  background-color: #001a4d;
  color: var(--color-white);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-primary-red);
  border: 2px solid var(--color-primary-red);
}

.btn-outline:hover {
  background-color: var(--color-primary-red);
  color: var(--color-white);
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-medium-gray);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-top {
  background-color: var(--color-light-gray);
  padding: 0.5rem 0;
}

.header-top .container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1rem;
}

.header-main {
  padding: 1rem 0;
}

.header-main .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo img {
  height: 60px;
  width: auto;
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.main-navigation {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.main-navigation ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.main-navigation a {
  color: var(--color-dark-gray);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  padding: 0.5rem 0;
  position: relative;
}

.main-navigation a:hover,
.main-navigation a.active {
  color: var(--color-primary-red);
}

.main-navigation a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary-red);
  transition: width var(--transition-normal);
}

.main-navigation a:hover::after,
.main-navigation a.active::after {
  width: 100%;
}

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

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
  position: relative;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6));
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: var(--color-white);
  max-width: 800px;
  padding: 0 var(--container-padding);
}

.hero-content h1 {
  font-size: 4rem;
  margin-bottom: var(--spacing-md);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-md);
}

/* ==========================================================================
   Countdown Timer
   ========================================================================== */

.countdown-section {
  background-color: var(--color-primary-red);
  background-image: url('assets/images/countdown-bg.jpg');
  background-size: cover;
  background-position: center;
  color: var(--color-white);
  padding: var(--spacing-xl) 0;
  text-align: center;
}

.countdown-title {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-md);
  text-transform: uppercase;
}

.countdown-timer {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: var(--spacing-md);
}

.countdown-item {
  text-align: center;
}

.countdown-value {
  font-size: 4rem;
  font-weight: 700;
  display: block;
  line-height: 1;
}

.countdown-label {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.5rem;
}

/* ==========================================================================
   Fixtures Grid
   ========================================================================== */

.fixtures-section {
  padding: var(--spacing-xl) 0;
}

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-lg);
  color: var(--color-navy);
}

.fixtures-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--spacing-md);
}

.fixture-card {
  background: var(--color-white);
  border: 1px solid var(--color-medium-gray);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.fixture-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.fixture-date {
  font-size: 0.9rem;
  color: var(--color-dark-gray);
  margin-bottom: var(--spacing-sm);
}

.fixture-teams {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-sm);
}

.fixture-team {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.team-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.fixture-score {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary-red);
}

.fixture-venue {
  font-size: 0.9rem;
  color: var(--color-dark-gray);
  margin-bottom: var(--spacing-sm);
}

/* ==========================================================================
   Video Gallery
   ========================================================================== */

.video-section {
  background-color: var(--color-primary-red);
  color: var(--color-white);
  padding: var(--spacing-xl) 0;
}

.video-section .section-title {
  color: var(--color-white);
}

.video-carousel {
  position: relative;
  overflow: hidden;
}

.video-carousel-track {
  display: flex;
  gap: var(--spacing-md);
  transition: transform var(--transition-normal);
}

.video-item {
  flex: 0 0 300px;
  position: relative;
  cursor: pointer;
}

.video-thumbnail {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.video-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition-fast);
}

.video-play-button::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 20px solid var(--color-primary-red);
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  margin-left: 4px;
}

.video-item:hover .video-play-button {
  background-color: var(--color-white);
}

.video-title {
  margin-top: var(--spacing-sm);
  font-size: 1rem;
}

.video-duration {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* ==========================================================================
   Newsletter Section
   ========================================================================== */

.newsletter-section {
  background-color: var(--color-light-gray);
  padding: var(--spacing-xl) 0;
}

.newsletter-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
}

.form-row {
  display: flex;
  gap: var(--spacing-sm);
}

.form-group {
  flex: 1;
}

.form-group input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--color-medium-gray);
  border-radius: var(--radius-sm);
  font-size: 1rem;
}

.form-group input:focus {
  outline: none;
  border-color: var(--color-primary-red);
}

.newsletter-consent {
  font-size: 0.9rem;
  text-align: left;
}

.newsletter-consent a {
  text-decoration: underline;
}

/* ==========================================================================
   Partners Section
   ========================================================================== */

.partners-section {
  background-color: var(--color-primary-red);
  color: var(--color-white);
  padding: var(--spacing-xl) 0;
}

.partners-section .section-title {
  color: var(--color-white);
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.partner-logo {
  background-color: var(--color-white);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-normal);
}

.partner-logo:hover {
  transform: scale(1.05);
}

.partner-logo img {
  max-height: 60px;
  width: auto;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background-color: var(--color-navy);
  color: var(--color-white);
  padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-main {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.footer-column h3 {
  margin-bottom: var(--spacing-md);
  font-size: 1.25rem;
}

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

.footer-column ul li {
  margin-bottom: var(--spacing-sm);
}

.footer-column a {
  color: var(--color-white);
  opacity: 0.8;
  transition: opacity var(--transition-fast);
}

.footer-column a:hover {
  opacity: 1;
  color: var(--color-white);
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: var(--spacing-md);
}

.social-icon {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition-fast);
}

.social-icon:hover {
  background-color: var(--color-primary-red);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: var(--spacing-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.footer-legal {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 992px) {
  .main-navigation {
    display: none;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .main-navigation.active {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--color-white);
    flex-direction: column;
    padding: var(--spacing-md);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }
  
  .main-navigation.active ul {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .countdown-timer {
    gap: 1rem;
  }
  
  .countdown-value {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .hero-section {
    height: 400px;
  }
  
  .form-row {
    flex-direction: column;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 576px) {
  .countdown-timer {
    flex-wrap: wrap;
  }
  
  .countdown-value {
    font-size: 2rem;
  }
  
  .fixtures-grid {
    grid-template-columns: 1fr;
  }
  
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
.mt-5 { margin-top: var(--spacing-xl); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
.mb-5 { margin-bottom: var(--spacing-xl); }

.d-none {
  display: none;
}

.d-block {
  display: block;
}

.d-flex {
  display: flex;
}

.align-items-center {
  align-items: center;
}

.justify-content-center {
  justify-content: center;
}

.justify-content-between {
  justify-content: space-between;
}


/* ==========================================================================
   Custom Rugby Norway Enhancements
   ========================================================================== */

/* More Games Button on Homepage */
.more-games-wrapper {
    text-align: center;
    margin-top: 40px;
}

.more-games-button {
    display: inline-block;
    padding: 16px 40px;
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

.more-games-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.4);
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
}

/* Matches Archive Page */
.page-header {
    background: linear-gradient(135deg, #002147 0%, #003d82 100%);
    color: #fff;
    padding: 80px 0 60px;
    text-align: center;
}

.page-header h1 {
    font-size: 48px;
    font-weight: 800;
    margin: 0 0 16px 0;
    text-transform: uppercase;
}

.page-header p {
    font-size: 20px;
    margin: 0;
    opacity: 0.9;
}

.matches-archive-section {
    padding: 60px 0;
    background: #f5f5f5;
}

/* 3 Ways to Play Rugby - Australia Rugby Style with Image Overlays */
.ways-to-play {
    padding: 80px 0;
    background-color: #f5f5f5;
}

.ways-to-play h2 {
    text-align: center;
    font-size: 48px;
    font-weight: 700;
    color: #002147;
    margin-bottom: 60px;
}

.ways-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.way-card {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    height: 450px;
}

.way-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.way-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.way-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #002147;
    color: white;
    padding: 30px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.way-card h3 {
    font-size: 32px;
    font-weight: 700;
    color: white;
    margin: 0 0 15px 0;
    line-height: 1.2;
}

.way-card p {
    font-size: 16px;
    line-height: 1.6;
    color: white;
    margin: 0 0 20px 0;
    flex-grow: 1;
}

.way-card-arrow {
    color: white;
    font-size: 24px;
    font-weight: 700;
    display: inline-block;
    transition: transform 0.3s ease;
}

.way-card:hover .way-card-arrow {
    transform: translateX(10px);
}

/* Match Cards - LFF.lt Style */
.matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.match-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
    border-left: 4px solid #FF6B9D;
}

.match-card:nth-child(2) {
    border-left-color: #9B59B6;
}

.match-card:nth-child(3) {
    border-left-color: #FF9800;
}

.match-card:nth-child(4) {
    border-left-color: #00BCD4;
}

.match-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.match-card-header {
    padding: 15px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.match-competition {
    font-size: 12px;
    color: #6c757d;
    font-weight: 600;
    text-transform: uppercase;
    margin: 0;
}

.match-date-time {
    font-size: 14px;
    color: #495057;
    margin: 5px 0 0 0;
    font-weight: 500;
}

.match-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    gap: 15px;
}

.match-team {
    flex: 1;
    text-align: center;
}

.match-team-logo {
    width: 60px;
    height: 60px;
    margin: 0 auto 10px;
    object-fit: contain;
}

.match-team-name {
    font-size: 16px;
    font-weight: 700;
    color: #212529;
    margin: 0;
}

.match-vs {
    font-size: 14px;
    font-weight: 700;
    color: #6c757d;
}

.match-venue {
    padding: 12px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 8px;
}

.match-venue-icon {
    color: #FF9800;
    font-size: 16px;
}

.match-venue-text {
    font-size: 13px;
    color: #6c757d;
    margin: 0;
}

.match-actions {
    padding: 15px 20px;
    background: white;
}

.match-action-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: #FFB81C;
    color: #002147;
    border: none;
    border-radius: 4px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s ease;
    text-align: center;
    text-decoration: none;
}

.match-action-btn:hover {
    background: #FFA500;
}

.matches-section {
    background: #f5f5f5;
    padding: 60px 0;
}

.matches-section h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
    color: #002147;
}

/* Header - Australia Rugby Style */
.site-header {
    background-color: #002147;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: none;
}

.header-main {
    padding: 0;
}

.header-main .container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: 80px;
}

.header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.site-branding {
    flex-shrink: 0;
}

.site-logo img,
.custom-logo {
    height: 60px;
    width: auto;
    display: block;
}

.main-navigation {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}

.main-navigation li {
    margin: 0;
    padding: 0;
}

.main-navigation a {
    display: block;
    color: white;
    padding: 28px 20px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.main-navigation a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.main-navigation a::after {
    display: none;
}

.main-navigation li.highlight a,
.main-navigation li:last-child a {
    background-color: #FFB81C;
    color: #002147;
}

.main-navigation li.highlight a:hover,
.main-navigation li:last-child a:hover {
    background-color: #FFA500;
}

.header-utilities {
    display: flex;
    gap: 15px;
    align-items: center;
}

.header-icon {
    color: white;
    font-size: 20px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.header-icon:hover {
    opacity: 0.8;
}

.header-icon svg {
    width: 24px;
    height: 24px;
}

/* Page Content Styling */
.site-main {
    padding: 60px 0;
    min-height: 400px;
}

.entry-header {
    margin-bottom: 40px;
}

.entry-title {
    font-size: 48px;
    font-weight: 700;
    color: #002147;
    margin-bottom: 20px;
}

.entry-content {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
}

.entry-content h2 {
    font-size: 36px;
    font-weight: 700;
    color: #002147;
    margin: 40px 0 20px;
}

.entry-content p {
    margin-bottom: 20px;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .ways-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .way-card:last-child {
        grid-column: span 2;
        max-width: 600px;
        margin: 0 auto;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .ways-to-play h2 {
        font-size: 36px;
        margin-bottom: 40px;
    }
    
    .ways-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .way-card {
        height: 400px;
    }
    
    .way-card:last-child {
        grid-column: span 1;
        max-width: 100%;
    }
    
    .way-card-content {
        padding: 20px;
        min-height: 180px;
    }
    
    .way-card h3 {
        font-size: 28px;
    }
    
    .way-card p {
        font-size: 15px;
    }
    
    .page-header h1,
    .entry-title {
        font-size: 32px;
    }
    
    .page-header p {
        font-size: 16px;
    }
    
    .more-games-button {
        font-size: 16px;
        padding: 14px 32px;
    }
    
    .main-navigation {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
}

/* Match Cards - LFF.lt Style - 4 Cards in One Row */
.matches-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 40px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.match-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border-left: 4px solid #FF6B9D;
    display: flex;
    flex-direction: column;
}

.match-card:nth-child(1) {
    border-left-color: #FF6B9D;
}

.match-card:nth-child(2) {
    border-left-color: #9B59B6;
}

.match-card:nth-child(3) {
    border-left-color: #FF9800;
}

.match-card:nth-child(4) {
    border-left-color: #00BCD4;
}

.match-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.match-card-header {
    padding: 15px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.match-competition {
    font-size: 11px;
    color: #6c757d;
    font-weight: 600;
    text-transform: uppercase;
    margin: 0 0 5px 0;
    letter-spacing: 0.5px;
}

.match-date-time {
    font-size: 13px;
    color: #495057;
    margin: 0;
    font-weight: 500;
}

.match-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 15px;
    gap: 10px;
    flex: 1;
}

.match-team {
    flex: 1;
    text-align: center;
}

.match-team-logo {
    width: 50px;
    height: 50px;
    margin: 0 auto 10px;
    object-fit: contain;
}

.match-team-name {
    font-size: 14px;
    font-weight: 700;
    color: #212529;
    margin: 0;
    line-height: 1.3;
}

.match-vs {
    font-size: 12px;
    font-weight: 700;
    color: #6c757d;
    text-transform: uppercase;
}

.match-venue {
    padding: 12px 15px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 6px;
}

.match-venue-icon {
    color: #FF9800;
    font-size: 14px;
    flex-shrink: 0;
}

.match-venue-text {
    font-size: 12px;
    color: #6c757d;
    margin: 0;
    line-height: 1.4;
}

.match-actions {
    padding: 0;
    background: #FFB81C;
}

.match-action-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.match-action-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.match-action-item:last-child {
    border-bottom: none;
}

.match-action-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 15px;
    color: #002147;
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
    transition: background-color 0.2s ease;
}

.match-action-link:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Active/Available links are bold */
.match-action-link.active {
    font-weight: 700;
}

/* Disabled/unavailable links are lighter */
.match-action-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.match-action-link.disabled:hover {
    background-color: transparent;
}

.match-action-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* Responsive - 3 columns on tablets */
@media (max-width: 1200px) {
    .matches-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Responsive - 2 columns on small tablets */
@media (max-width: 900px) {
    .matches-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive - 1 column on mobile */
@media (max-width: 600px) {
    .matches-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 20px 15px;
    }
}

/* Hero Slider Section */
.hero-section {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 0;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 20px;
    z-index: 2;
}

.hero-title {
    font-size: 72px;
    font-weight: 900;
    letter-spacing: 4px;
    margin: 0 0 20px 0;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 24px;
    font-weight: 400;
    margin: 0 0 40px 0;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.5;
}

.hero-button {
    display: inline-block;
    padding: 18px 50px;
    background-color: #C8102E;
    color: white;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(200, 16, 46, 0.3);
}

.hero-button:hover {
    background-color: #A00D25;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(200, 16, 46, 0.4);
}

/* Slider Controls */
.hero-slider-prev,
.hero-slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(5px);
}

.hero-slider-prev:hover,
.hero-slider-next:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.hero-slider-prev {
    left: 30px;
}

.hero-slider-next {
    right: 30px;
}

/* Slider Dots */
.hero-slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.hero-dot:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.2);
}

.hero-dot.active {
    background: white;
    border-color: #C8102E;
    transform: scale(1.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        height: 500px;
    }
    
    .hero-title {
        font-size: 48px;
        letter-spacing: 2px;
    }
    
    .hero-subtitle {
        font-size: 18px;
        margin-bottom: 30px;
    }
    
    .hero-button {
        padding: 15px 40px;
        font-size: 16px;
    }
    
    .hero-slider-prev,
    .hero-slider-next {
        width: 40px;
        height: 40px;
    }
    
    .hero-slider-prev {
        left: 15px;
    }
    
    .hero-slider-next {
        right: 15px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        height: 400px;
    }
    
    .hero-title {
        font-size: 36px;
        letter-spacing: 1px;
    }
    
    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 25px;
    }
    
    .hero-button {
        padding: 12px 30px;
        font-size: 14px;
    }
}

/* Clickable Match Card Link */
.match-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.match-card-link:hover .match-card {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.match-card-link:focus {
    outline: 2px solid #002147;
    outline-offset: 2px;
}

/* Remove default hover from match-card since it's now on the link */
.match-card {
    transform: none !important;
}

.match-card-link:hover .match-card {
    cursor: pointer;
}

/* Ensure action buttons don't interfere with card click */
.match-action-link {
    pointer-events: none;
}

/* Match Hero Section */
.match-hero {
    background: linear-gradient(135deg, #002147 0%, #003d82 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.match-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.03)"/></svg>');
    background-size: 100px 100px;
    opacity: 0.5;
}

.match-hero-overlay {
    position: relative;
    z-index: 1;
}

.match-competition-badge {
    background: rgba(255, 184, 28, 0.9);
    color: #002147;
    padding: 8px 20px;
    border-radius: 20px;
    display: inline-block;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 30px;
}

.match-teams-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 30px;
}

.match-team-home,
.match-team-away {
    flex: 1;
    text-align: center;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

.match-team-logo-large {
    width: 120px;
    height: 120px;
    margin-bottom: 15px;
    object-fit: contain;
}

.match-team-name-large {
    font-size: 32px;
    font-weight: 900;
    color: white;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.match-vs-large {
    flex-shrink: 0;
    text-align: center;
    color: white;
}

.vs-text {
    display: block;
    font-size: 48px;
    font-weight: 900;
    color: #FFB81C;
    margin-bottom: 15px;
}

.match-datetime {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px 25px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.match-day {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 5px 0;
    color: #FFB81C;
}

.match-date {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 5px 0;
}

.match-time {
    font-size: 24px;
    font-weight: 900;
    margin: 0;
}

.match-venue-display {
    text-align: center;
    color: white;
    font-size: 18px;
    margin-bottom: 30px;
}

.venue-icon {
    font-size: 20px;
    margin-right: 8px;
}

.venue-text {
    font-weight: 600;
}

.match-hero-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.match-hero-button {
    background: #C8102E;
    color: white;
    padding: 15px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(200, 16, 46, 0.3);
}

.match-hero-button:hover {
    background: #A00D25;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(200, 16, 46, 0.4);
}

.button-icon {
    font-size: 18px;
}

/* Match Content Section */
.match-content {
    padding: 60px 0;
    background: #f5f5f5;
}

.match-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #ddd;
}

.match-tab {
    background: transparent;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 700;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    position: relative;
    bottom: -2px;
}

.match-tab:hover {
    color: #002147;
}

.match-tab.active {
    color: #002147;
    border-bottom-color: #C8102E;
}

.match-tab-content {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* Match Info Grid */
.match-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.match-info-card {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid #C8102E;
}

.match-info-card h3 {
    color: #002147;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 20px 0;
}

.match-details-table {
    width: 100%;
    border-collapse: collapse;
}

.match-details-table tr {
    border-bottom: 1px solid #ddd;
}

.match-details-table tr:last-child {
    border-bottom: none;
}

.match-details-table td {
    padding: 12px 0;
    font-size: 15px;
}

.match-details-table td:first-child {
    width: 40%;
    color: #666;
}

/* Stats and Lineup */
.match-stats-placeholder,
.match-lineup-grid {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.match-lineup-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    text-align: left;
}

.lineup-section h3 {
    color: #002147;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #FFB81C;
}

/* Related News Section */
.related-news-section {
    padding: 60px 0;
    background: white;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.news-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.news-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 20px;
}

.news-content h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 700;
}

.news-content h3 a {
    color: #002147;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-content h3 a:hover {
    color: #C8102E;
}

.news-date {
    color: #999;
    font-size: 13px;
    margin: 0 0 10px 0;
}

.news-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .match-teams-display {
        flex-direction: column;
        gap: 20px;
    }
    
    .match-team-logo-large {
        width: 80px;
    }
    
    .match-team-name-large {
        font-size: 24px;
    }
    
    .vs-text {
        font-size: 36px;
    }
    
    .match-tabs {
        flex-direction: column;
        border-bottom: none;
    }
    
    .match-tab {
        border-bottom: 1px solid #ddd;
        border-left: 3px solid transparent;
    }
    
    .match-tab.active {
        border-bottom-color: #ddd;
        border-left-color: #C8102E;
    }
    
    .match-lineup-grid {
        grid-template-columns: 1fr;
    }
}

/* Video Embed Section */
.match-video-section {
    padding: 60px 0;
    background: white;
}

.match-video-section .section-title {
    color: #002147;
    font-size: 32px;
    font-weight: 900;
    text-align: center;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.video-embed-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background: #000;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.video-embed-wrapper iframe,
.video-embed-wrapper object,
.video-embed-wrapper embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .match-video-section {
        padding: 40px 0;
    }
    
    .match-video-section .section-title {
        font-size: 24px;
    }
}

/* Latest Videos Section - All Blacks Style */
.latest-videos-section {
    background: #0a0a0a;
    padding: 60px 0;
    overflow: hidden;
}

.latest-videos-section .container-fluid {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Videos Header */
.videos-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.videos-title {
    color: white;
    font-size: 36px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 0;
}

.videos-title .arrow-icon {
    width: 32px;
    height: 32px;
}

/* Navigation Buttons */
.videos-nav {
    display: flex;
    gap: 10px;
}

.video-nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.video-nav-btn:hover {
    background: #f0f0f0;
    transform: scale(1.05);
}

.video-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.video-nav-btn svg {
    width: 24px;
    height: 24px;
    color: #000;
}

/* Carousel Wrapper */
.videos-carousel-wrapper {
    overflow: hidden;
    position: relative;
}

.videos-carousel {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease;
}

/* Video Card */
.video-card {
    flex: 0 0 calc(25% - 15px);
    min-width: 300px;
}

.video-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Video Thumbnail */
.video-thumbnail {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    border-radius: 8px;
    background: #1a1a1a;
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

/* Video Overlay */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 50%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-card:hover .video-overlay {
    opacity: 1;
}

/* Video Badge */
.video-badge {
    align-self: flex-start;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.video-badge.highlights {
    background: #C8102E;
    color: white;
}

.video-badge.press-conference {
    background: #7B3FF2;
    color: white;
}

.video-badge .play-icon {
    width: 12px;
    height: 12px;
}

/* Play Button */
.play-button {
    align-self: center;
    margin-top: auto;
    margin-bottom: auto;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.video-card:hover .play-button {
    opacity: 1;
    transform: scale(1);
}

/* Video Info */
.video-info {
    padding: 15px 0;
}

.video-title {
    color: white;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 10px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.video-card:hover .video-title {
    color: #FFB81C;
}

.video-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 13px;
    color: #999;
}

.video-channel {
    font-weight: 600;
}

.video-time {
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
}

/* Responsive Design */
@media (max-width: 1400px) {
    .video-card {
        flex: 0 0 calc(33.333% - 14px);
    }
}

@media (max-width: 1024px) {
    .latest-videos-section .container-fluid {
        padding: 0 20px;
    }
    
    .videos-title {
        font-size: 28px;
    }
    
    .video-card {
        flex: 0 0 calc(50% - 10px);
        min-width: 250px;
    }
}

@media (max-width: 768px) {
    .latest-videos-section {
        padding: 40px 0;
    }
    
    .videos-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .videos-title {
        font-size: 24px;
    }
    
    .videos-title .arrow-icon {
        width: 24px;
        height: 24px;
    }
    
    .video-nav-btn {
        width: 40px;
        height: 40px;
    }
    
    .video-card {
        flex: 0 0 calc(100% - 0px);
        min-width: 280px;
    }
    
    .video-title {
        font-size: 14px;
    }
}

/* Smooth Scrolling */
.videos-carousel-wrapper {
    scroll-behavior: smooth;
}

/* Loading State */
.video-thumbnail.loading {
    background: linear-gradient(90deg, #1a1a1a 25%, #2a2a2a 50%, #1a1a1a 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Sponsors Carousel Section */
.sponsors-section {
    background: #f8f9fa;
    padding: 60px 0;
    overflow: hidden;
}

.sponsors-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.sponsors-title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    color: #002147;
    margin-bottom: 40px;
    letter-spacing: 2px;
}

.sponsors-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
}

.sponsors-carousel {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.sponsors-track {
    display: flex;
    gap: 40px;
    transition: transform 0.5s ease;
    align-items: center;
}

.sponsor-slide {
    flex: 0 0 auto;
    width: 200px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sponsor-slide:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.sponsor-link {
    display: block;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sponsor-logo {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.sponsor-slide:hover .sponsor-logo {
    filter: grayscale(0%);
    opacity: 1;
}

.sponsor-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e9ecef;
    border-radius: 4px;
    color: #6c757d;
    font-size: 14px;
    font-weight: 600;
}

.sponsors-nav {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: white;
    border: 2px solid #002147;
    color: #002147;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.sponsors-nav:hover {
    background: #002147;
    color: white;
    transform: scale(1.1);
}

.sponsors-nav:active {
    transform: scale(0.95);
}

.sponsors-nav svg {
    width: 24px;
    height: 24px;
}

/* Auto-scroll animation */
@keyframes scroll-sponsors {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.sponsors-track.auto-scroll {
    animation: scroll-sponsors 30s linear infinite;
}

.sponsors-track.auto-scroll:hover {
    animation-play-state: paused;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .sponsor-slide {
        width: 160px;
        height: 100px;
    }
    
    .sponsors-title {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .sponsors-section {
        padding: 40px 0;
    }
    
    .sponsors-title {
        font-size: 24px;
        margin-bottom: 30px;
    }
    
    .sponsor-slide {
        width: 140px;
        height: 90px;
        padding: 15px;
    }
    
    .sponsors-carousel-wrapper {
        gap: 10px;
    }
    
    .sponsors-track {
        gap: 20px;
    }
    
    .sponsors-nav {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .sponsors-nav {
        display: none;
    }
    
    .sponsors-carousel-wrapper {
        padding: 0 10px;
    }
    
    .sponsor-slide {
        width: 120px;
        height: 80px;
    }
}


/* Match Tab Panels */
.match-tab-panel {
    display: none;
}

.match-tab-panel.active {
    display: block;
}
/* Fix for Related News cards spacing and consistency */

.news-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensure cards fill grid cell */
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.news-thumbnail {
    flex-shrink: 0; /* Prevent thumbnail from shrinking */
}

.news-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block; /* Remove extra space below image */
}

.news-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Allow content to grow and fill space */
}

.news-content h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.news-content h3 a {
    color: #002147;
    text-decoration: none;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Limit title to 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-content h3 a:hover {
    color: #C8102E;
}

.news-date {
    color: #999;
    font-size: 13px;
    margin-bottom: 10px;
    flex-shrink: 0;
}

.news-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Limit excerpt to 3 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Ensure grid items have equal height */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: stretch; /* Make all grid items same height */
}

@media (max-width: 968px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}
/* Fix for Related News cards spacing and consistency - CORRECTED VERSION */

.news-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important; /* Ensure cards fill grid cell */
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.news-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Allow content to grow and fill space */
}

.news-card-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.news-card-title a {
    color: #002147;
    text-decoration: none;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Limit title to 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-title a:hover {
    color: #C8102E;
}

.news-card-date {
    color: #999;
    font-size: 13px;
    margin-bottom: 10px;
    flex-shrink: 0;
}

.news-card-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Limit excerpt to 3 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Ensure grid items have equal height */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: stretch !important; /* Make all grid items same height */
}

@media (max-width: 968px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}
/* Latest News Section */
.latest-news-section {
    padding: 80px 0;
    background: #f5f5f5;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.section-title-large {
    font-size: 48px;
    font-weight: 900;
    color: #000;
    margin: 0;
    letter-spacing: -1px;
}

.see-all-link {
    font-size: 16px;
    color: #0066CC;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.see-all-link:hover {
    color: #004499;
}

.latest-news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.latest-news-card {
    background: white;
    border-radius: 0;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.latest-news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.news-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.news-card-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

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

.latest-news-card:hover .news-card-image img {
    transform: scale(1.05);
}

.news-card-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.news-category-badge {
    position: absolute;
    bottom: 15px;
    left: 15px;
    padding: 8px 16px;
    background-color: #E91E63;
    color: white;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 0;
}

.news-card-body {
    padding: 25px;
}

.news-card-date {
    display: block;
    font-size: 13px;
    color: #999;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-card-title-large {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    color: #000;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.latest-news-card:hover .news-card-title-large {
    color: #C8102E;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .latest-news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 968px) {
    .latest-news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .section-title-large {
        font-size: 36px;
    }
    
    .latest-news-section {
        padding: 60px 0;
    }
}

@media (max-width: 640px) {
    .latest-news-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .section-title-large {
        font-size: 28px;
    }
    
    .latest-news-section {
        padding: 40px 0;
    }
}

/* Single Post Styles */

/* Container */
.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.single-post-article {
    background: white;
}

/* Post Header */
.single-post-header {
    padding: 60px 0 40px;
    background: #f8f9fa;
}

.post-category-badge {
    display: inline-block;
    padding: 8px 16px;
    background-color: #E91E63;
    color: white;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.single-post-title {
    font-size: 48px;
    font-weight: 900;
    line-height: 1.2;
    color: #000;
    margin: 0 0 20px 0;
    letter-spacing: -1px;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #666;
}

.post-date,
.post-author,
.post-views {
    font-weight: 500;
}

.meta-separator {
    color: #ccc;
}

/* Featured Image */
.single-post-featured-image {
    width: 100%;
    max-height: 600px;
    overflow: hidden;
    margin-bottom: 60px;
}

.single-post-featured-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* Post Content */
.single-post-content {
    padding: 0 0 60px;
}

.post-content-wrapper {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
}

.post-content-wrapper p {
    margin-bottom: 24px;
}

.post-content-wrapper h2 {
    font-size: 32px;
    font-weight: 700;
    margin: 48px 0 24px;
    color: #000;
}

.post-content-wrapper h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 36px 0 18px;
    color: #000;
}

.post-content-wrapper h4 {
    font-size: 20px;
    font-weight: 700;
    margin: 24px 0 12px;
    color: #000;
}

.post-content-wrapper ul,
.post-content-wrapper ol {
    margin-bottom: 24px;
    padding-left: 30px;
}

.post-content-wrapper li {
    margin-bottom: 12px;
}

.post-content-wrapper blockquote {
    border-left: 4px solid #C8102E;
    padding-left: 24px;
    margin: 32px 0;
    font-style: italic;
    color: #555;
    font-size: 20px;
}

.post-content-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 32px 0;
}

.post-content-wrapper a {
    color: #0066CC;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.post-content-wrapper a:hover {
    color: #C8102E;
}

/* Post Tags */
.post-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid #e0e0e0;
}

.tags-label {
    font-weight: 700;
    color: #666;
    font-size: 14px;
}

.post-tag {
    display: inline-block;
    padding: 6px 14px;
    background: #f0f0f0;
    color: #333;
    text-decoration: none;
    font-size: 13px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.post-tag:hover {
    background: #002147;
    color: white;
}

/* Social Share */
.post-share {
    margin-top: 48px;
    padding: 32px;
    background: #f8f9fa;
    border-radius: 8px;
}

.share-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: #000;
}

.share-buttons {
    display: flex;
    gap: 12px;
}

.share-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: white;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid #e0e0e0;
}

.share-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.share-facebook:hover {
    background: #1877F2;
    color: white;
    border-color: #1877F2;
}

.share-twitter:hover {
    background: #1DA1F2;
    color: white;
    border-color: #1DA1F2;
}

.share-linkedin:hover {
    background: #0A66C2;
    color: white;
    border-color: #0A66C2;
}

.share-email:hover {
    background: #666;
    color: white;
    border-color: #666;
}

/* Post Navigation */
.post-navigation-wrapper {
    background: #f8f9fa;
    padding: 48px 0;
    border-top: 1px solid #e0e0e0;
}

.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.nav-previous,
.nav-next {
    display: flex;
    flex-direction: column;
}

.nav-next {
    text-align: right;
}

.nav-label {
    font-size: 13px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.nav-title {
    font-size: 18px;
    font-weight: 700;
    color: #000;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
}

.nav-title:hover {
    color: #C8102E;
}

/* Related Posts */
.related-posts-section {
    padding: 80px 0;
    background: white;
}

.related-posts-title {
    font-size: 32px;
    font-weight: 900;
    margin: 0 0 40px 0;
    color: #000;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.related-post-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.related-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: #C8102E;
}

.related-post-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.related-post-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

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

.related-post-card:hover .related-post-image img {
    transform: scale(1.05);
}

.related-post-content {
    padding: 20px;
}

.related-post-date {
    display: block;
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.related-post-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    color: #000;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-post-card:hover .related-post-title {
    color: #C8102E;
}

/* Responsive Design */
@media (max-width: 968px) {
    .single-post-title {
        font-size: 36px;
    }
    
    .post-content-wrapper {
        font-size: 16px;
    }
    
    .post-content-wrapper h2 {
        font-size: 28px;
    }
    
    .post-content-wrapper h3 {
        font-size: 22px;
    }
    
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .post-navigation {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .nav-next {
        text-align: left;
    }
}

@media (max-width: 640px) {
    .single-post-header {
        padding: 40px 0 30px;
    }
    
    .single-post-title {
        font-size: 28px;
    }
    
    .post-meta {
        flex-wrap: wrap;
        font-size: 13px;
    }
    
    .single-post-featured-image {
        max-height: 400px;
        margin-bottom: 40px;
    }
    
    .single-post-content {
        padding: 0 0 40px;
    }
    
    .post-content-wrapper {
        font-size: 16px;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .related-posts-title {
        font-size: 24px;
    }
    
    .share-buttons {
        flex-wrap: wrap;
    }
}

/* Mobile Fixes - Hamburger Menu and Horizontal Scrolling Carousels */

/* ========================================================================== 
   Hamburger Menu Icon Styling
   ========================================================================== */

/* Hamburger menu button */
.menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 1000;
}

/* Hamburger icon lines */
.menu-toggle-icon {
    display: block;
    width: 28px;
    height: 3px;
    background-color: white;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Hamburger animation when menu is open */
.menu-toggle.active .menu-toggle-icon:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

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

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

/* Show hamburger on mobile */
@media (max-width: 968px) {
    .menu-toggle {
        display: flex;
    }
    
    /* Hide desktop navigation */
    .nav-menu {
        display: none;
    }
    
    /* Show mobile menu when active */
    .main-navigation.active .nav-menu {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #002147;
        padding: 20px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        z-index: 999;
    }
    
    .main-navigation.active .nav-menu li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .main-navigation.active .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .main-navigation.active .nav-menu a {
        display: block;
        padding: 15px 20px;
        color: white;
        font-size: 16px;
    }
}

/* ========================================================================== 
   Mobile Horizontal Scrolling Carousels
   ========================================================================== */

/* Match Cards - Horizontal Scroll on Mobile */
@media (max-width: 968px) {
    .matches-grid {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 15px;
        padding: 20px;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
    }
    
    /* Hide scrollbar for Chrome, Safari and Opera */
    .matches-grid::-webkit-scrollbar {
        display: none;
    }
    
    .match-card {
        flex: 0 0 85%; /* Each card takes 85% of viewport width */
        min-width: 280px;
        max-width: 400px;
        scroll-snap-align: start;
    }
}

@media (max-width: 640px) {
    .match-card {
        flex: 0 0 90%; /* Slightly wider on smaller screens */
        min-width: 260px;
    }
}

/* Latest News Cards - Horizontal Scroll on Mobile */
@media (max-width: 968px) {
    .latest-news-grid {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 20px;
        padding: 0 20px 20px 20px;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
    }
    
    /* Hide scrollbar for Chrome, Safari and Opera */
    .latest-news-grid::-webkit-scrollbar {
        display: none;
    }
    
    .news-card {
        flex: 0 0 85%; /* Each card takes 85% of viewport width */
        min-width: 280px;
        max-width: 400px;
        scroll-snap-align: start;
    }
}

@media (max-width: 640px) {
    .news-card {
        flex: 0 0 90%; /* Slightly wider on smaller screens */
        min-width: 260px;
    }
}

/* News Grid (on news archive page) - Horizontal Scroll on Mobile */
@media (max-width: 968px) {
    .news-grid {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 20px;
        padding: 0 20px 20px 20px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .news-grid::-webkit-scrollbar {
        display: none;
    }
    
    .news-grid .news-card {
        flex: 0 0 85%;
        min-width: 280px;
        max-width: 400px;
        scroll-snap-align: start;
    }
}

@media (max-width: 640px) {
    .news-grid .news-card {
        flex: 0 0 90%;
        min-width: 260px;
    }
}

/* Scroll Indicator (optional - shows user can scroll) */
@media (max-width: 968px) {
    .matches-section::after,
    .latest-news-section::after {
        content: '';
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 60px;
        height: 100%;
        background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.8));
        pointer-events: none;
        z-index: 1;
    }
    
    .matches-section,
    .latest-news-section {
        position: relative;
    }
}

/* Smooth scrolling behavior */
.matches-grid,
.latest-news-grid,
.news-grid {
    scroll-behavior: smooth;
}

/* Touch-friendly spacing */
@media (max-width: 640px) {
    .matches-grid,
    .latest-news-grid,
    .news-grid {
        padding: 20px 15px;
    }
}

/* ==========================================================================
   MOBILE FIXES V2 - Force hamburger menu and horizontal news scrolling
   ========================================================================== */

/* Force hamburger menu to show on mobile with !important */
@media (max-width: 968px) {
    .menu-toggle {
        display: flex !important;
        position: relative;
        z-index: 1001;
    }
    
    /* Ensure desktop nav is hidden on mobile */
    .main-navigation .nav-menu {
        display: none;
    }
    
    /* Show mobile menu when active */
    .main-navigation.active .nav-menu {
        display: flex !important;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--color-navy-blue);
        padding: 20px;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }
    
    /* Latest News - Force horizontal scrolling on mobile */
    .latest-news-grid {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch !important;
        gap: 20px !important;
        padding: 0 20px !important;
        grid-template-columns: none !important;
    }
    
    .latest-news-grid .news-card {
        flex: 0 0 85vw !important;
        min-width: 280px !important;
        max-width: 400px !important;
        scroll-snap-align: start !important;
    }
    
    /* Hide scrollbar but keep functionality */
    .latest-news-grid::-webkit-scrollbar {
        display: none !important;
    }
    
    .latest-news-grid {
        -ms-overflow-style: none !important;
        scrollbar-width: none !important;
    }
}

/* Extra small mobile devices */
@media (max-width: 640px) {
    .latest-news-grid .news-card {
        flex: 0 0 90vw !important;
    }
}

/* ==========================================================================
   NEWS GRID FIX V3 - Completely override grid layout on mobile
   ========================================================================== */

@media (max-width: 968px) {
    /* Force horizontal scrolling for news grid */
    .latest-news-grid {
        display: flex !important;
        flex-direction: row !important;
        grid-template-columns: none !important; /* Override grid */
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch !important;
        gap: 20px !important;
        padding: 0 20px 20px 20px !important;
    }
    
    .latest-news-grid .news-card,
    .latest-news-grid .latest-news-card {
        flex: 0 0 85vw !important;
        min-width: 280px !important;
        max-width: 400px !important;
        scroll-snap-align: start !important;
        width: auto !important; /* Override any fixed width */
    }
    
    /* Hide scrollbar */
    .latest-news-grid::-webkit-scrollbar {
        display: none !important;
    }
    
    .latest-news-grid {
        -ms-overflow-style: none !important;
        scrollbar-width: none !important;
    }
}

@media (max-width: 640px) {
    .latest-news-grid {
        grid-template-columns: none !important; /* Override grid */
    }
    
    .latest-news-grid .news-card,
    .latest-news-grid .latest-news-card {
        flex: 0 0 90vw !important;
    }
}

/* ==========================================================================
   News Archive Page Styles
   ========================================================================== */

/* Page Header */
.page-header {
    background-color: #f5f5f5;
    padding: 60px 0 40px;
    margin-bottom: 60px;
}

.page-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--color-navy-blue);
    margin: 0 0 15px 0;
    letter-spacing: -0.5px;
}

.archive-description {
    font-size: 18px;
    color: #666;
    max-width: 800px;
}

/* News Archive Section */
.news-archive-section {
    padding: 0 0 80px;
}

/* News Archive Grid */
.news-archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

/* News Archive Card */
.news-archive-card {
    background: white;
    border-radius: 0;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e0e0;
}

.news-archive-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* News Archive Image */
.news-archive-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

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

.news-archive-card:hover .news-archive-image img {
    transform: scale(1.05);
}

.news-archive-category {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background-color: #00BCD4;
    color: white;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* News Archive Content */
.news-archive-content {
    padding: 25px;
}

.news-archive-meta {
    margin-bottom: 12px;
}

.news-archive-date {
    font-size: 13px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-archive-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 15px 0;
}

.news-archive-title a {
    color: var(--color-navy-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-archive-title a:hover {
    color: var(--color-rugby-red);
}

.news-archive-excerpt {
    font-size: 15px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 15px;
}

.news-archive-link {
    display: inline-block;
    color: var(--color-rugby-red);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.news-archive-link:hover {
    color: var(--color-navy-blue);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 60px;
}

.pagination .nav-links {
    display: flex;
    gap: 10px;
    align-items: center;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 10px 18px;
    background-color: white;
    border: 2px solid var(--color-navy-blue);
    color: var(--color-navy-blue);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background-color: var(--color-navy-blue);
    color: white;
}

.pagination .current {
    background-color: var(--color-rugby-red);
    border-color: var(--color-rugby-red);
    color: white;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 80px 20px;
}

.no-results h2 {
    font-size: 36px;
    color: var(--color-navy-blue);
    margin-bottom: 20px;
}

.no-results p {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .news-archive-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 40px 0 30px;
        margin-bottom: 40px;
    }
    
    .page-title {
        font-size: 36px;
    }
    
    .news-archive-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .news-archive-image {
        height: 220px;
    }
    
    .news-archive-title {
        font-size: 20px;
    }
}

@media (max-width: 640px) {
    .page-title {
        font-size: 28px;
    }
    
    .archive-description {
        font-size: 16px;
    }
    
    .news-archive-content {
        padding: 20px;
    }
}

/* ==========================================================================
   MOBILE MENU - FINAL VERSION
   Only hamburger visible on mobile, utility icons inside menu
   ========================================================================== */

@media (max-width: 968px) {
    /* Hide desktop utility icons on mobile */
    .header-utilities {
        display: none !important;
    }
    
    /* Show hamburger menu button */
    .menu-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 44px;
        height: 44px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 8px;
        margin-left: auto;
        z-index: 1001;
    }
    
    .menu-toggle-icon {
        display: block;
        width: 28px;
        height: 3px;
        background-color: white;
        margin: 3px 0;
        transition: all 0.3s ease;
    }
    
    /* Hamburger animation when menu is open */
    .menu-toggle.active .menu-toggle-icon:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .menu-toggle.active .menu-toggle-icon:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active .menu-toggle-icon:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }
    
    /* Mobile navigation menu */
    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background-color: var(--color-navy-blue);
        z-index: 1000;
        transition: right 0.3s ease;
        overflow-y: auto;
        padding: 80px 0 40px;
    }
    
    .main-navigation.active {
        right: 0;
    }
    
    /* Navigation menu items */
    .nav-menu {
        display: flex;
        flex-direction: column;
        list-style: none;
        margin: 0;
        padding: 0;
    }
    
    .nav-menu li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-menu a {
        display: block;
        padding: 18px 30px;
        color: white;
        text-decoration: none;
        font-size: 16px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        transition: background-color 0.3s ease, padding-left 0.3s ease;
    }
    
    .nav-menu a:hover,
    .nav-menu li.current-menu-item > a {
        background-color: rgba(255, 255, 255, 0.1);
        padding-left: 40px;
    }
    
    /* Mobile utility icons inside menu */
    .mobile-menu-utilities {
        display: flex;
        flex-direction: column;
        padding: 20px 0;
        margin-top: 20px;
        border-top: 2px solid rgba(255, 255, 255, 0.2);
    }
    
    .mobile-utility-link {
        display: flex;
        align-items: center;
        gap: 15px;
        padding: 15px 30px;
        color: white;
        text-decoration: none;
        font-size: 15px;
        font-weight: 500;
        transition: background-color 0.3s ease, padding-left 0.3s ease;
    }
    
    .mobile-utility-link:hover {
        background-color: rgba(255, 255, 255, 0.1);
        padding-left: 40px;
    }
    
    .mobile-utility-link svg {
        flex-shrink: 0;
    }
    
    /* Overlay backdrop */
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.7);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    
    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* Prevent body scroll when menu is open */
    body.mobile-menu-open {
        overflow: hidden;
    }
}

/* Desktop - hide mobile menu utilities */
@media (min-width: 969px) {
    .mobile-menu-utilities {
        display: none !important;
    }
    
    .menu-toggle {
        display: none !important;
    }
    
    .header-utilities {
        display: flex !important;
    }
}


/* Enhanced Hamburger Menu Visibility Fix */
@media (max-width: 968px) {
    /* Force hamburger button to display */
    .site-header .header-flex .menu-toggle {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        width: 44px !important;
        height: 44px !important;
        background: transparent !important;
        border: none !important;
        cursor: pointer !important;
        padding: 8px !important;
        margin-left: auto !important;
        z-index: 1001 !important;
        position: relative !important;
        order: 3 !important;
    }
    
    /* Force hamburger icon bars to be visible */
    .site-header .menu-toggle .menu-toggle-icon {
        display: block !important;
        width: 28px !important;
        height: 3px !important;
        background-color: #ffffff !important;
        margin: 3px 0 !important;
        transition: all 0.3s ease !important;
    }
    
    /* Ensure header has dark background on mobile */
    .site-header {
        background-color: #002147 !important;
    }
    
    /* Ensure navigation is hidden by default on mobile */
    .main-navigation {
        display: none !important;
    }
    
    /* Show navigation when active */
    .main-navigation.active {
        display: block !important;
    }
}

/* Mobile Logo Size - 20% smaller */
@media (max-width: 968px) {
    .site-logo img,
    .custom-logo {
        height: 48px !important;
        width: auto !important;
    }
}

/* FINAL HAMBURGER MENU FIX - Maximum Visibility */
@media (max-width: 968px) {
    /* Ultra-specific selector with debug background */
    body .site-header .header-main .container .header-flex .menu-toggle,
    .site-header .menu-toggle,
    button.menu-toggle {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        width: 50px !important;
        height: 50px !important;
        background: rgba(255, 0, 0, 0.3) !important; /* Red debug background */
        border: 2px solid #ffffff !important;
        border-radius: 4px !important;
        cursor: pointer !important;
        padding: 10px !important;
        margin: 0 !important;
        margin-left: auto !important;
        z-index: 9999 !important;
        position: relative !important;
        order: 999 !important;
        flex-shrink: 0 !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }
    
    /* Hamburger icon bars with maximum visibility */
    body .site-header .menu-toggle .menu-toggle-icon,
    .site-header .menu-toggle span,
    button.menu-toggle span {
        display: block !important;
        width: 30px !important;
        height: 4px !important;
        background-color: #ffffff !important;
        margin: 4px 0 !important;
        transition: all 0.3s ease !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    /* Ensure header flex layout works */
    .site-header .header-main .container .header-flex {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: nowrap !important;
    }
    
    /* Ensure navigation is hidden on mobile by default */
    .site-header .main-navigation {
        display: none !important;
        position: fixed !important;
        top: 0 !important;
        right: -100% !important;
        width: 300px !important;
        height: 100vh !important;
        background-color: #002147 !important;
        transition: right 0.3s ease !important;
        z-index: 9998 !important;
    }
    
    /* Show navigation when active */
    .site-header .main-navigation.active {
        display: block !important;
        right: 0 !important;
    }
}

/* FINAL MOBILE MENU ORDER FIX */
@media (max-width: 968px) {
    /* Remove red debug background and show hamburger icon */
    body .site-header .header-main .container .header-flex .menu-toggle,
    .site-header .menu-toggle,
    button.menu-toggle {
        background: transparent !important;
        border: none !important;
    }
    
    /* Ensure hamburger icon bars are visible */
    body .site-header .menu-toggle .menu-toggle-icon,
    .site-header .menu-toggle span,
    button.menu-toggle span {
        background-color: #ffffff !important;
    }
    
    /* Mobile navigation flex container */
    .main-navigation {
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        height: 100vh !important;
        padding-top: 60px; /* To clear the header */
    }
    
    /* Main menu (primary) at the top */
    .main-navigation .menu {
        order: 1;
        flex-grow: 1;
    }
    
    /* Utility links at the bottom */
    .main-navigation .mobile-utilities {
        order: 2;
        padding: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    
    .main-navigation .mobile-utilities .mobile-utility-link {
        display: flex;
        align-items: center;
        gap: 10px;
        color: #ffffff;
        text-decoration: none;
        font-size: 1.2rem;
        padding: 10px 0;
    }
    
    .main-navigation .mobile-utilities .mobile-utility-link svg {
        width: 24px;
        height: 24px;
        stroke: #ffffff;
    }
}


/* FINAL MOBILE MENU ORDER FIX V2 */
@media (max-width: 968px) {
    /* Ensure hamburger icon bars are white */
    .menu-toggle .menu-toggle-icon {
        background-color: #ffffff !important;
    }
    
    /* Mobile navigation flex container */
    .main-navigation {
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        height: 100vh !important;
        padding-top: 60px; /* To clear the header */
    }
    
    /* Main menu (primary) at the top */
    .main-navigation .nav-menu {
        order: 1;
        flex-grow: 1;
    }
    
    /* Utility links at the bottom */
    .main-navigation .mobile-menu-utilities {
        order: 2;
        padding: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    
    .main-navigation .mobile-menu-utilities .mobile-utility-link {
        display: flex;
        align-items: center;
        gap: 10px;
        color: #ffffff;
        text-decoration: none;
        font-size: 1.2rem;
        padding: 10px 0;
    }
    
    .main-navigation .mobile-menu-utilities .mobile-utility-link svg {
        width: 24px;
        height: 24px;
        stroke: #ffffff;
    }
}


/* FINAL HAMBURGER ICON COLOR FIX */
.site-header .header-main .container .header-flex button.menu-toggle span.menu-toggle-icon {
    background-color: #ffffff !important;
}


/* FINAL MOBILE MENU ORDER FIX V3 - REVERSE ORDER AND RED ICON */
@media (max-width: 968px) {
    /* Revert hamburger icon to red debug background */
    .menu-toggle {
        background-color: #ff0000 !important;
    }
    .menu-toggle .menu-toggle-icon {
        background-color: #ffffff !important;
    }
    
    /* Reverse the order: Main menu at top (order 1), Utilities at bottom (order 2) */
    .main-navigation .nav-menu {
        order: 1 !important;
    }
    
    .main-navigation .mobile-menu-utilities {
        order: 2 !important;
    }
}


/* FINAL MOBILE MENU CLEANUP - RED ICON */
@media (max-width: 968px) {
    /* Revert hamburger icon to red debug background */
    .menu-toggle {
        background-color: #ff0000 !important;
    }
    .menu-toggle .menu-toggle-icon {
        background-color: #ffffff !important;
    }
    /* Hide the mobile utilities block */
    .mobile-menu-utilities {
        display: none !important;
    }
}


/* FINAL MOBILE MENU LAYOUT AND ICON FIX */
@media (max-width: 968px) {
    /* Fix excessive top space */
    .main-navigation {
        padding-top: 0 !important;
    }
    /* Force hamburger icon to white */
    .menu-toggle .menu-toggle-icon {
        background-color: #ffffff !important;
    }
    /* Force hamburger button to red for visibility test */
    .menu-toggle {
        background-color: #ff0000 !important;
    }
}

/* FINAL MOBILE MENU LAYOUT AND ICON FIX V3 */
@media (max-width: 968px) {
    /* Fix excessive top space */
    .main-navigation {
        padding-top: 0 !important;
    }
    /* Force hamburger icon to red for visibility test */
    .menu-toggle {
        background-color: #ff0000 !important;
    }
    .menu-toggle .menu-toggle-icon {
        background-color: #ffffff !important;
    }
    /* Hide the mobile utilities block */
    .mobile-menu-utilities {
        display: none !important;
    }
}

/* MATCHES ARCHIVE MOBILE LAYOUT FIX */
@media (max-width: 768px) {
    /* Make match cards full width */
    .matches-archive-section .fixtures-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    /* Center match teams */
    .matches-archive-section .match-teams {
        justify-content: center;
    }
    /* Stack team logo and name vertically */
    .matches-archive-section .match-team {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    /* Reduce logo size on mobile */
    .matches-archive-section .team-logo img {
        max-width: 50px;
        height: auto;
    }
    /* Stream logo positioning */
    .matches-archive-section .match-stream-logo {
        position: absolute;
        top: 10px;
        right: 10px;
        z-index: 10;
    }
    .matches-archive-section .match-stream-logo img {
        width: 30px;
        height: 30px;
    }
    /* Ensure match actions are visible */
    .matches-archive-section .match-actions {
        padding: 10px 0;
    }
}

/* FINAL HAMBURGER ICON VISIBILITY FIX V4 */
@media (max-width: 968px) {
    /* Force hamburger button to red for visibility test */
    .menu-toggle {
        background-color: #ff0000 !important;
        border: 2px solid #ff0000 !important;
    }
    /* Force hamburger icon to white */
    .menu-toggle .menu-toggle-icon {
        background-color: #ffffff !important;
    }
    /* Fix excessive top space */
    .main-navigation {
        padding-top: 0 !important;
    }
    /* Hide the mobile utilities block */
    .mobile-menu-utilities {
        display: none !important;
    }
}

/* MATCHES ARCHIVE TABLE LAYOUT - PROPER ALIGNMENT FIX */
@media (min-width: 769px) {
    /* Container width adjustment */
    .matches-archive-section .container {
        max-width: 1400px;
    }
    
    /* Remove gap from fixtures grid */
    .matches-archive-section .fixtures-grid {
        gap: 0 !important;
        display: block;
    }
    
    /* Style the header row */
    .matches-archive-section .match-header-row {
        display: grid;
        /* Date, Time, Venue, Competition, Home Team, Score, Away Team */
        grid-template-columns: 120px 80px 200px 180px 1fr 80px 1fr; 
        align-items: center;
        padding: 15px 0;
        background-color: #000;
        color: #fff;
        font-weight: bold;
        text-transform: uppercase;
        font-size: 0.8rem;
    }
    .matches-archive-section .match-header-row .header-col {
        padding: 0 10px;
    }
    .matches-archive-section .match-header-row .date { 
        grid-column: 1;
        text-align: left;
    }
    .matches-archive-section .match-header-row .time { 
        grid-column: 2;
        text-align: left;
    }
    .matches-archive-section .match-header-row .venue { 
        grid-column: 3;
        text-align: left;
    }
    .matches-archive-section .match-header-row .competition { 
        grid-column: 4;
        text-align: left;
    }
    .matches-archive-section .match-header-row .home-team { 
        grid-column: 5;
        text-align: right; 
        padding-right: 10px;
    }
    .matches-archive-section .match-header-row .score { 
        grid-column: 6;
        text-align: center; 
    }
    .matches-archive-section .match-header-row .away-team { 
        grid-column: 7;
        text-align: left; 
        padding-left: 10px;
    }
    
    /* Style the individual match card as a table row */
    .matches-archive-section .match-card {
        display: grid;
        /* MUST match header: Date, Time, Venue, Competition, Home Team, Score, Away Team */
        grid-template-columns: 120px 80px 200px 180px 1fr 80px 1fr; 
        align-items: center;
        padding: 15px 0;
        border-bottom: 1px solid #e0e0e0;
        box-shadow: none;
        transform: none;
        border-radius: 0;
        background-color: #fff;
        color: #333;
        text-decoration: none;
    }
    .matches-archive-section .match-card:hover {
        background-color: #f5f5f5;
    }
    .matches-archive-section .match-card:last-child {
        border-bottom: none;
    }
    
    /* Column 1: Date */
    .matches-archive-section .match-date-col {
        grid-column: 1;
        text-align: left;
        font-size: 0.9rem;
        padding: 0 10px;
        color: #333;
    }
    
    /* Column 2: Time */
    .matches-archive-section .match-time-col {
        grid-column: 2;
        text-align: left;
        font-size: 0.9rem;
        padding: 0 10px;
        color: #333;
    }
    
    /* Column 3: Venue */
    .matches-archive-section .match-venue-col {
        grid-column: 3;
        text-align: left;
        font-size: 0.9rem;
        padding: 0 10px;
        color: #333;
    }
    
    /* Column 4: Competition */
    .matches-archive-section .match-competition-col {
        grid-column: 4;
        text-align: left;
        font-size: 0.85rem;
        padding: 0 10px;
        font-weight: 600;
        color: #002147;
    }
    
    /* Column 5: Home Team */
    .matches-archive-section .match-home-team-col {
        grid-column: 5;
        justify-content: flex-end;
        text-align: right;
        padding: 0 10px;
        display: flex;
        align-items: center;
        gap: 10px;
    }
    .matches-archive-section .match-home-team-col .team-name {
        order: 1;
        color: #333;
    }
    .matches-archive-section .match-home-team-col .team-logo {
        order: 2;
        width: 30px;
        height: 30px;
        flex-shrink: 0;
    }
    .matches-archive-section .match-home-team-col .team-logo img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
    
    /* Column 6: Score */
    .matches-archive-section .match-score-col {
        grid-column: 6;
        text-align: center;
        padding: 0 10px;
    }
    .matches-archive-section .match-score-col .vs-text {
        font-weight: bold;
        color: #c41e3a;
        font-size: 1rem;
    }
    
    /* Column 7: Away Team */
    .matches-archive-section .match-away-team-col {
        grid-column: 7;
        justify-content: flex-start;
        text-align: left;
        padding: 0 10px;
        display: flex;
        align-items: center;
        gap: 10px;
    }
    .matches-archive-section .match-away-team-col .team-logo {
        order: 1;
        width: 30px;
        height: 30px;
        flex-shrink: 0;
    }
    .matches-archive-section .match-away-team-col .team-logo img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
    .matches-archive-section .match-away-team-col .team-name {
        order: 2;
        color: #333;
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .matches-archive-section .match-header-row {
        display: none;
    }
    
    .matches-archive-section .match-card {
        display: block !important;
        padding: 20px;
        margin-bottom: 15px;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
    }
    
    .matches-archive-section .match-date-col,
    .matches-archive-section .match-time-col,
    .matches-archive-section .match-venue-col,
    .matches-archive-section .match-competition-col {
        display: block;
        text-align: left;
        padding: 5px 0;
    }
    
    .matches-archive-section .match-home-team-col,
    .matches-archive-section .match-away-team-col {
        display: flex;
        justify-content: center;
        text-align: center;
        padding: 10px 0;
    }
    
    .matches-archive-section .match-score-col {
        display: block;
        text-align: center;
        padding: 10px 0;
    }
}

/* ==========================================================================
   PROFESSIONAL FOOTER STYLES
   ========================================================================== */

/* Footer Main Section */
.site-footer {
    background-color: #002147;
    color: #ffffff;
    margin-top: 60px;
}

.footer-main {
    padding: 60px 0 40px;
    background-color: #002147;
}

.footer-columns {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
}

/* Footer About Column */
.footer-about .footer-logo {
    margin-bottom: 20px;
}

.footer-about .footer-logo img {
    max-width: 150px;
    height: auto;
}

.footer-description {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #e0e0e0;
    margin-bottom: 25px;
}

/* Social Media Icons */
.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #ffffff;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background-color: #c41e3a;
    transform: translateY(-3px);
}

.footer-social svg {
    width: 20px;
    height: 20px;
}

/* Footer Column Titles */
.footer-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Footer Menus */
.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 12px;
}

.footer-menu a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-menu a:hover {
    color: #c41e3a;
    padding-left: 5px;
}

/* Footer Contact */
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    color: #e0e0e0;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-contact svg {
    flex-shrink: 0;
    margin-top: 3px;
    color: #c41e3a;
}

.footer-contact a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: #c41e3a;
}

/* Footer Bottom Section */
.footer-bottom {
    background-color: #001a35;
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright {
    color: #e0e0e0;
    font-size: 0.9rem;
}

.footer-copyright p {
    margin: 0;
}

/* Footer Legal Links */
.footer-legal {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.footer-legal a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 8px 16px;
    border: 1px solid rgba(196, 30, 58, 0.5);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.footer-legal a:hover {
    background-color: #c41e3a;
    border-color: #c41e3a;
    color: #ffffff;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .footer-columns {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .footer-main {
        padding: 40px 0 30px;
    }
    
    .footer-columns {
        grid-template-columns: 1fr;
        gap: 35px;
    }
    
    .footer-about .footer-logo img {
        max-width: 120px;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-legal {
        justify-content: center;
    }
    
    .footer-legal a {
        font-size: 0.85rem;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .footer-social {
        justify-content: center;
    }
    
    .footer-legal {
        flex-direction: column;
        width: 100%;
    }
    
    .footer-legal a {
        width: 100%;
        text-align: center;
    }
}

/* ========================================
   ABOUT US PAGE STYLES
   Australian Rugby-inspired design
   ======================================== */

/* Hero Section */
.about-hero {
    background-color: #002147; /* Navy blue */
    padding: 80px 0 60px;
    margin-top: 0;
}

.about-hero-title {
    color: #ffffff;
    font-size: 72px;
    font-weight: 700;
    margin: 0;
    padding: 0;
    line-height: 1.1;
}

/* Navigation Tabs */
.about-nav-tabs {
    background-color: #f5f5f5;
    padding: 0;
    border-bottom: 1px solid #e0e0e0;
}

.nav-tabs-wrapper {
    display: flex;
    justify-content: flex-start;
    gap: 0;
    flex-wrap: wrap;
    padding: 0;
}

.nav-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 24px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    color: #ffffff;
    transition: all 0.3s ease;
    border: none;
    position: relative;
}

.nav-tab:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.nav-tab-icon {
    font-size: 18px;
}

.nav-tab-text {
    white-space: nowrap;
}

/* Tab Colors */
.nav-tab-red {
    background-color: #c41e3a;
}

.nav-tab-orange {
    background-color: #ff6b35;
}

.nav-tab-green {
    background-color: #00d9a3;
}

.nav-tab-blue {
    background-color: #0066cc;
}

.nav-tab-purple {
    background-color: #6b4c9a;
}

.nav-tab-cyan {
    background-color: #00bcd4;
}

/* Introduction Section */
.about-intro {
    background-color: #ffffff;
    padding: 80px 0;
}

.about-intro-text {
    font-size: 32px;
    font-weight: 700;
    color: #002147;
    text-align: center;
    line-height: 1.4;
    max-width: 1000px;
    margin: 0 auto;
}

/* Split Sections */
.about-section {
    width: 100%;
    margin: 0;
    padding: 0;
}

.about-section-split {
    display: flex;
    align-items: stretch;
    min-height: 500px;
}

.about-split-image {
    flex: 0 0 60%;
    position: relative;
    overflow: hidden;
}

.about-split-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-split-content {
    flex: 0 0 40%;
    background-color: #002147;
    color: #ffffff;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-split-content h2 {
    font-size: 48px;
    font-weight: 700;
    margin: 0 0 24px 0;
    color: #ffffff;
    line-height: 1.2;
}

.about-split-content p {
    font-size: 18px;
    line-height: 1.6;
    margin: 0 0 32px 0;
    color: #ffffff;
}

/* Reverse Layout (Text Left, Image Right) */
.about-section-reverse {
    flex-direction: row-reverse;
}

/* Button Styling */
.about-btn {
    display: inline-block;
    padding: 14px 32px;
    background-color: #00d9a3;
    color: #002147;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.about-btn:hover {
    background-color: #00c490;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 217, 163, 0.3);
    color: #002147;
}

/* Smooth Scrolling for Anchor Links */
html {
    scroll-behavior: smooth;
}

/* Section Anchor Offset (to account for fixed header) */
.about-section[id] {
    scroll-margin-top: 100px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .about-hero-title {
        font-size: 56px;
    }

    .about-intro-text {
        font-size: 28px;
        padding: 0 20px;
    }

    .about-split-content h2 {
        font-size: 40px;
    }

    .about-split-content p {
        font-size: 16px;
    }

    .about-split-content {
        padding: 50px 40px;
    }
}

@media (max-width: 768px) {
    .about-hero {
        padding: 60px 0 40px;
    }

    .about-hero-title {
        font-size: 42px;
        padding: 0 20px;
    }

    .nav-tabs-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-tab {
        padding: 14px 20px;
        font-size: 13px;
    }

    .nav-tab-icon {
        font-size: 16px;
    }

    .about-intro {
        padding: 60px 0;
    }

    .about-intro-text {
        font-size: 24px;
        padding: 0 20px;
    }

    /* Stack sections vertically on mobile */
    .about-section-split,
    .about-section-reverse {
        flex-direction: column !important;
    }

    .about-split-image,
    .about-split-content {
        flex: 0 0 100%;
    }

    .about-split-image {
        min-height: 300px;
    }

    .about-split-content {
        padding: 40px 24px;
    }

    .about-split-content h2 {
        font-size: 32px;
    }

    .about-split-content p {
        font-size: 16px;
    }

    .about-btn {
        padding: 12px 28px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .about-hero-title {
        font-size: 36px;
    }

    .about-intro-text {
        font-size: 20px;
    }

    .nav-tab {
        padding: 12px 16px;
        font-size: 12px;
    }

    .about-split-content h2 {
        font-size: 28px;
    }

    .about-split-content p {
        font-size: 15px;
    }
}

/* Print Styles */
@media print {
    .about-nav-tabs {
        display: none;
    }

    .about-section-split,
    .about-section-reverse {
        flex-direction: column;
        page-break-inside: avoid;
    }

    .about-btn {
        display: none;
    }
}

/* ========================================
   DROPDOWN MENU STYLES - Australian Rugby Style
   ======================================== */

/* Main Navigation */
.main-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}

.menu-item {
    position: relative;
    margin: 0;
    padding: 0;
}

.menu-item > a {
    display: block;
    padding: 20px 20px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.menu-item > a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Shop Button Special Styling */
.menu-item.shop-button > a {
    background-color: #ffd700;
    color: #002147;
    padding: 20px 30px;
    font-weight: 700;
}

.menu-item.shop-button > a:hover {
    background-color: #ffed4e;
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    list-style: none;
    margin: 0;
    padding: 0;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
}

.menu-item.has-dropdown:hover .dropdown-menu,
.menu-item.has-dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu li a {
    display: block;
    padding: 15px 20px;
    color: #002147;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: background-color 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}

.dropdown-menu li a:hover {
    background-color: #f8f9fa;
    color: #c41e3a;
    padding-left: 25px;
}

/* Dropdown Menu Colorful Borders (Australian Rugby Style) */
.dropdown-menu li:nth-child(1) {
    border-left: 4px solid #ff6b35; /* Orange */
}

.dropdown-menu li:nth-child(2) {
    border-left: 4px solid #c41e3a; /* Red */
}

.dropdown-menu li:nth-child(3) {
    border-left: 4px solid #00d9a3; /* Cyan/Green */
}

.dropdown-menu li:nth-child(4) {
    border-left: 4px solid #0066cc; /* Blue */
}

.dropdown-menu li:nth-child(5) {
    border-left: 4px solid #6b4c9a; /* Purple */
}

.dropdown-menu li:nth-child(6) {
    border-left: 4px solid #00bcd4; /* Light Blue */
}

/* Header Icons */
.header-icons {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 20px;
}

.header-icons a,
.header-icons button {
    color: #ffffff;
    font-size: 18px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    transition: color 0.3s ease;
}

.header-icons a:hover,
.header-icons button:hover {
    color: #ffd700;
}

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

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background-color: #002147;
    z-index: 10000;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-close {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    float: right;
}

.mobile-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-menu li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-menu li a {
    display: block;
    padding: 15px 20px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
}

.mobile-nav-menu li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
}

@media (min-width: 1025px) {
    .mobile-menu,
    .mobile-menu-overlay {
        display: none !important;
    }
}

/* Dropdown Menu Arrow Indicator */
.menu-item.has-dropdown > a::after {
    content: '\f107'; /* FontAwesome down arrow */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-left: 5px;
    font-size: 12px;
}

/* ========================================
   SECONDARY NAVIGATION STYLES
   Below Hero on Section Pages
   ======================================== */

.secondary-navigation {
    background-color: #f8f9fa;
    border-bottom: 3px solid #002147;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.secondary-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.secondary-nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}

.secondary-nav-menu::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}

.secondary-nav-item {
    margin: 0;
    padding: 0;
    white-space: nowrap;
}

.secondary-nav-item a {
    display: block;
    padding: 18px 25px;
    color: #002147;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.secondary-nav-item a:hover {
    color: #c41e3a;
    background-color: #ffffff;
}

.secondary-nav-item.active a {
    color: #c41e3a;
    border-bottom-color: #c41e3a;
    background-color: #ffffff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .secondary-nav-item a {
        padding: 15px 20px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .secondary-nav-item a {
        padding: 12px 15px;
        font-size: 12px;
    }
}

/* ========================================
   HEADER FIX - Restore Nice Design + Fix Dropdowns
   ======================================== */

/* Remove conflicting dropdown menu styles */
.dropdown-menu {
    display: block !important; /* Force vertical display */
    flex-direction: column !important; /* Ensure column layout */
}

/* Ensure dropdown menu items stack vertically */
.dropdown-menu li {
    display: block !important; /* Each item on its own line */
    width: 100% !important;
}

/* Header Container Fix */
.site-header {
    background-color: #002147 !important;
    padding: 0 !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    border-bottom: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

/* Logo Styling */
.site-header .logo {
    flex-shrink: 0;
}

.site-header .logo img,
.site-header .custom-logo {
    height: 60px;
    width: auto;
    display: block;
}

/* Main Navigation Container */
.main-navigation {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
    margin-left: 40px;
}

/* Navigation Menu */
.nav-menu {
    display: flex !important;
    flex-direction: row !important; /* Main menu horizontal */
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
    align-items: center;
}

/* Menu Items */
.menu-item {
    position: relative;
    margin: 0;
    padding: 0;
}

.menu-item > a {
    display: block;
    padding: 28px 20px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.menu-item > a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Shop Button */
.menu-item.shop-button > a {
    background-color: #ffd700;
    color: #002147;
    padding: 28px 30px;
    font-weight: 700;
}

.menu-item.shop-button > a:hover {
    background-color: #ffed4e;
}

/* Dropdown Menu - VERTICAL LAYOUT */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    list-style: none;
    margin: 0;
    padding: 0;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
    display: block !important; /* Force block display for vertical layout */
}

.menu-item.has-dropdown:hover .dropdown-menu,
.menu-item.has-dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Dropdown Menu Items - VERTICAL STACKING */
.dropdown-menu li {
    display: block !important; /* Force each item to be on its own line */
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #f0f0f0;
    width: 100%;
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu li a {
    display: block;
    padding: 15px 20px;
    color: #002147;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: background-color 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
    white-space: nowrap;
}

.dropdown-menu li a:hover {
    background-color: #f8f9fa;
    color: #c41e3a;
    padding-left: 25px;
}

/* Colorful Left Borders */
.dropdown-menu li:nth-child(1) {
    border-left: 4px solid #ff6b35;
}

.dropdown-menu li:nth-child(2) {
    border-left: 4px solid #c41e3a;
}

.dropdown-menu li:nth-child(3) {
    border-left: 4px solid #00d9a3;
}

.dropdown-menu li:nth-child(4) {
    border-left: 4px solid #0066cc;
}

.dropdown-menu li:nth-child(5) {
    border-left: 4px solid #6b4c9a;
}

.dropdown-menu li:nth-child(6) {
    border-left: 4px solid #00bcd4;
}

/* Header Icons */
.header-icons {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 20px;
}

.header-icons a,
.header-icons button {
    color: #ffffff;
    font-size: 18px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    transition: color 0.3s ease;
}

.header-icons a:hover,
.header-icons button:hover {
    color: #ffd700;
}

/* Dropdown Arrow */
.menu-item.has-dropdown > a::after {
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-left: 5px;
    font-size: 12px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
}

/* Responsive */
@media (max-width: 1024px) {
    .nav-menu {
        display: none !important;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
}

/* ========================================
   AUSTRALIAN RUGBY STYLE PAGES
   ======================================== */

/* Hero Section */
.page-hero {
    position: relative;
    width: 100%;
    height: 600px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 33, 71, 0.3), rgba(0, 33, 71, 0.6));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #ffffff;
}

.hero-title {
    font-size: 72px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

/* Secondary Navigation */
.secondary-navigation {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 80px;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.secondary-nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.secondary-nav-menu li {
    flex-shrink: 0;
}

.secondary-nav-menu li a {
    display: block;
    padding: 20px 25px;
    color: #002147;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.secondary-nav-menu li a:hover {
    color: #c41e3a;
    background-color: #ffffff;
}

.secondary-nav-menu li.current a {
    border-bottom-color: #c41e3a !important;
    background-color: #ffffff;
}

/* Main Content Container */
.page-content.australian-style {
    padding: 60px 0;
}

.page-content.australian-style .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Content Sections */
.content-section {
    margin-bottom: 80px;
}

.content-section:last-child {
    margin-bottom: 0;
}

/* Split Layout (Image + Text) */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.split-section.reverse {
    direction: rtl;
}

.split-section.reverse > * {
    direction: ltr;
}

.split-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.split-content {
    padding: 20px;
}

.split-content h2 {
    font-size: 36px;
    font-weight: 700;
    color: #002147;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.split-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #333333;
    margin-bottom: 20px;
}

/* Featured Campaign Section */
.campaign-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-bottom: 80px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.campaign-graphic {
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
}

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

.campaign-content {
    background-color: #002147;
    color: #ffffff;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.campaign-content h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.campaign-content p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 30px;
}

/* Content Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.content-card {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 30px;
}

.card-content h3 {
    font-size: 24px;
    font-weight: 700;
    color: #002147;
    margin-bottom: 15px;
}

.card-content p {
    font-size: 16px;
    line-height: 1.6;
    color: #666666;
    margin-bottom: 20px;
}

/* CTA Buttons */
.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background-color: #c41e3a;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.cta-button:hover {
    background-color: #a01830;
    transform: translateY(-2px);
}

.cta-button.outline {
    background-color: transparent;
    border: 2px solid #c41e3a;
    color: #c41e3a;
}

.cta-button.outline:hover {
    background-color: #c41e3a;
    color: #ffffff;
}

/* Full-Width Text Section */
.full-width-text {
    background-color: #f8f9fa;
    padding: 80px 60px;
    text-align: center;
    margin-bottom: 80px;
}

.full-width-text h2 {
    font-size: 42px;
    font-weight: 700;
    color: #002147;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.full-width-text p {
    font-size: 18px;
    line-height: 1.8;
    color: #333333;
    max-width: 900px;
    margin: 0 auto 30px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 48px;
    }
    
    .page-hero {
        height: 400px;
    }
    
    .split-section,
    .campaign-section {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .split-section.reverse {
        direction: ltr;
    }
    
    .campaign-graphic,
    .campaign-content {
        padding: 40px;
    }
    
    .campaign-content h2 {
        font-size: 36px;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .secondary-nav-menu {
        justify-content: flex-start;
    }
    
    .full-width-text {
        padding: 60px 30px;
    }
    
    .full-width-text h2 {
        font-size: 32px;
    }
}

/* Participate Page Card Grid Styles */
.card-grid-section {
    padding: 60px 0;
    background-color: #f5f5f5;
}

.card-grid-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-intro {
    text-align: center;
    margin-bottom: 50px;
}

.section-intro h2 {
    font-size: 36px;
    font-weight: bold;
    color: #003366;
    margin-bottom: 20px;
}

.section-intro p {
    font-size: 18px;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.card-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
    background-color: #ddd;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    padding: 25px;
}

.card-content h3 {
    font-size: 24px;
    font-weight: bold;
    color: #003366;
    margin-bottom: 15px;
}

.card-content p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.card-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: #003366;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.card-link:hover {
    background-color: #005599;
}

@media (max-width: 768px) {
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    .section-intro h2 {
        font-size: 28px;
    }
    
    .section-intro p {
        font-size: 16px;
    }
}

/* About Page Styles */
.about-intro-section {
    padding: 60px 0;
    background-color: #f5f5f5;
    text-align: center;
}

.about-intro-section .intro-text {
    font-size: 24px;
    color: #003366;
    font-weight: 600;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.6;
}

.about-section {
    display: flex;
    align-items: stretch;
    min-height: 500px;
}

.about-section-image-left {
    flex-direction: row;
}

.about-section-image-right {
    flex-direction: row-reverse;
}

.about-image {
    flex: 1;
    min-width: 50%;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-content {
    flex: 1;
    min-width: 50%;
    background-color: #003366;
    color: white;
    padding: 80px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-content h2 {
    font-size: 48px;
    font-weight: bold;
    color: white;
    margin-bottom: 30px;
    line-height: 1.2;
}

.about-content p {
    font-size: 18px;
    color: white;
    line-height: 1.8;
    margin-bottom: 30px;
}

.about-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: #00CED1;
    color: #003366;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 700;
    font-size: 16px;
    transition: background-color 0.3s ease;
    align-self: flex-start;
}

.about-button:hover {
    background-color: #00B8BA;
    color: #003366;
}

@media (max-width: 968px) {
    .about-section {
        flex-direction: column !important;
        min-height: auto;
    }
    
    .about-image {
        min-height: 300px;
    }
    
    .about-content {
        padding: 50px 30px;
    }
    
    .about-content h2 {
        font-size: 36px;
    }
    
    .about-content p {
        font-size: 16px;
    }
    
    .about-intro-section .intro-text {
        font-size: 18px;
        padding: 0 20px;
    }
}

/* Floating card style - Australian Rugby */
.about-section {
    position: relative;
    margin: 0;
    padding: 0;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.about-section-image-left {
    flex-direction: row;
}

.about-section-image-right {
    flex-direction: row-reverse;
}

.about-section .about-image {
    width: 100%;
    position: relative;
}

.about-section .about-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

.about-section .about-content {
    position: absolute;
    background: #003366;
    color: white;
    padding: 40px;
    max-width: 450px;
    z-index: 10;
}

.about-section-image-left .about-content {
    right: 80px;
    top: 50%;
    transform: translateY(-50%);
}

.about-section-image-right .about-content {
    left: 80px;
    top: 50%;
    transform: translateY(-50%);
}

.about-section .about-content h2 {
    color: white;
    font-size: 36px;
    font-weight: bold;
    margin: 0 0 20px 0;
}

.about-section .about-content p {
    color: white;
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 25px 0;
}

.about-section .about-button {
    display: inline-block;
    background: #00bfa5;
    color: #003366;
    padding: 12px 30px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    transition: background 0.3s;
}

.about-section .about-button:hover {
    background: #009688;
}

@media (max-width: 768px) {
    .about-section .about-content {
        position: relative;
        right: auto !important;
        left: auto !important;
        top: auto;
        transform: none;
        max-width: 100%;
        margin: 20px;
    }
    
    .about-section .about-image img {
        height: 300px;
    }
}

/* Floating Card Style - Override */
.about-section.about-section-image-left,
.about-section.about-section-image-right {
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
    min-height: 500px !important;
    display: block !important;
    background: #f5f5f5 !important;
}

.about-section .about-image {
    width: 100% !important;
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
}

.about-section .about-image img {
    width: 100% !important;
    height: 500px !important;
    object-fit: cover !important;
    display: block !important;
}

.about-section .about-content {
    position: absolute !important;
    background: #003366 !important;
    color: white !important;
    padding: 40px !important;
    max-width: 450px !important;
    width: 450px !important;
    z-index: 10 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
}

.about-section-image-left .about-content {
    right: 80px !important;
    left: auto !important;
}

.about-section-image-right .about-content {
    left: 80px !important;
    right: auto !important;
}

.about-section .about-content h2 {
    color: white !important;
    font-size: 36px !important;
    font-weight: bold !important;
    margin: 0 0 20px 0 !important;
}

.about-section .about-content p {
    color: white !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
    margin: 0 0 25px 0 !important;
}

.about-section .about-button {
    display: inline-block !important;
    background: #00bfa5 !important;
    color: #003366 !important;
    padding: 12px 30px !important;
    text-decoration: none !important;
    font-weight: bold !important;
    border-radius: 4px !important;
    transition: background 0.3s !important;
}

.about-section .about-button:hover {
    background: #009688 !important;
}

@media (max-width: 768px) {
    .about-section .about-content {
        position: relative !important;
        right: auto !important;
        left: auto !important;
        top: auto !important;
        transform: none !important;
        max-width: 100% !important;
        width: auto !important;
        margin: 20px !important;
    }
    
    .about-section .about-image img {
        height: 300px !important;
    }
}

/* Floating Card Sections - Australian Rugby Style */
.floating-card-section {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: visible;
}

.floating-card {
    position: absolute;
    background: #1a1464;
    color: white;
    padding: 50px 40px;
    max-width: 420px;
    z-index: 10;
    top: 50%;
    transform: translateY(-50%);
}

.floating-card-right {
    right: 100px;
}

.floating-card-left {
    left: 100px;
}

.floating-card h2 {
    color: white;
    font-size: 38px;
    font-weight: bold;
    margin: 0 0 20px 0;
    letter-spacing: 1px;
}

.floating-card p {
    color: white;
    font-size: 16px;
    line-height: 1.7;
    margin: 0 0 30px 0;
}

.floating-card .card-button {
    display: inline-block;
    background: #00bfa5;
    color: #1a1464;
    padding: 14px 32px;
    text-decoration: none;
    font-weight: bold;
    font-size: 15px;
    border-radius: 4px;
    transition: all 0.3s;
}

.floating-card .card-button:hover {
    background: #009688;
    transform: translateY(-2px);
}

@media (max-width: 1024px) {
    .floating-card-right {
        right: 40px;
    }
    
    .floating-card-left {
        left: 40px;
    }
    
    .floating-card {
        max-width: 350px;
        padding: 35px 30px;
    }
}

@media (max-width: 768px) {
    .floating-card {
        position: relative;
        right: auto !important;
        left: auto !important;
        top: auto;
        transform: none;
        max-width: 100%;
        margin: -60px 20px 40px 20px;
    }
    
    .floating-card h2 {
        font-size: 28px;
    }
}

/* Floating Card Sections - Australian Rugby Style - FINAL */
.floating-card-section {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: visible;
    background: #f5f5f5; /* Light gray background */
    padding: 50px 0; /* Vertical padding for the gray area */
}

.floating-card-section img {
    display: block;
    width: 90%; /* Image is not full width */
    max-width: 1200px; /* Max width for the image */
    height: 500px;
    object-fit: cover;
    margin: 0 auto; /* Center the image */
    box-shadow: 0 10px 20px rgba(0,0,0,0.1); /* Subtle shadow on image */
}

.floating-card {
    position: absolute;
    background: #1a1464;
    color: white;
    padding: 50px 40px;
    max-width: 420px;
    z-index: 10;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2); /* Shadow on card */
}

.floating-card-right {
    right: 50px; /* Position relative to the edge of the gray background */
}

.floating-card-left {
    left: 50px;
}

.floating-card h2 {
    color: white;
    font-size: 38px;
    font-weight: bold;
    margin: 0 0 20px 0;
    letter-spacing: 1px;
}

.floating-card p {
    color: white;
    font-size: 16px;
    line-height: 1.7;
    margin: 0 0 30px 0;
}

.floating-card .card-button {
    display: inline-block;
    background: #00bfa5;
    color: #1a1464;
    padding: 14px 32px;
    text-decoration: none;
    font-weight: bold;
    font-size: 15px;
    border-radius: 4px;
    transition: all 0.3s;
}

.floating-card .card-button:hover {
    background: #009688;
    transform: translateY(-2px);
}

@media (max-width: 1024px) {
    .floating-card-right {
        right: 40px;
    }
    
    .floating-card-left {
        left: 40px;
    }
    
    .floating-card {
        max-width: 350px;
        padding: 35px 30px;
    }
}

@media (max-width: 768px) {
    .floating-card-section {
        padding: 20px 0;
    }
    
    .floating-card-section img {
        width: 95%;
        height: 300px;
    }
    
    .floating-card {
        position: relative;
        right: auto !important;
        left: auto !important;
        top: auto;
        transform: none;
        max-width: 100%;
        margin: -60px 20px 40px 20px;
    }
    
    .floating-card h2 {
        font-size: 28px;
    }
}

