/* Base Styles */
:root {
  --primary-color: #00529B;
  --secondary-color: #008A39;
  --accent-color: #CD1719;
  --dark-color: #222831;
  --light-color: #F6F7F9;
  --text-color: #333333;
  --gray-color: #767676;
  --light-gray: #E5E5E5;
  --success-color: #28a745;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --border-radius: 8px;
  --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --container-width: 1200px;
  --header-height: 80px;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--light-color);
}

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

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

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

ul {
  list-style: none;
}

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

section {
  padding: 60px 0;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.3;
  margin-bottom: 15px;
  font-weight: 700;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 15px;
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  outline: none;
}

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

.btn.primary:hover {
  background-color: #003f77;
}

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

.btn.secondary:hover {
  background-color: #006b2c;
}

.btn.tertiary {
  background-color: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

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

/* Header Styles */
header {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
}

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

.logo img {
  height: 50px;
  width: auto;
}

nav ul {
  display: flex;
}

nav ul li {
  margin-left: 30px;
}

nav ul li a {
  color: var(--dark-color);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 10px 0;
  position: relative;
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 3px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

nav ul li a:hover::after,
nav ul li a.active::after {
  width: 100%;
}

nav ul li a.active {
  color: var(--primary-color);
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(0, 82, 155, 0.9), rgba(0, 82, 155, 0.9)), url('images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
  padding: 100px 0;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto 30px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* Featured Posts Section */
.featured-posts {
  background-color: white;
}

.featured-posts h2,
.blog-content h2 {
  text-align: center;
  margin-bottom: 40px;
}

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

.post-card {
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

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

.post-image {
  height: 200px;
  overflow: hidden;
}

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

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

.post-content {
  padding: 20px;
}

.post-content h3 {
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.post-content p {
  color: var(--gray-color);
  margin-bottom: 15px;
}

.read-more {
  font-weight: 600;
  color: var(--primary-color);
  display: inline-flex;
  align-items: center;
}

.read-more::after {
  content: '→';
  margin-left: 5px;
  transition: var(--transition);
}

.read-more:hover::after {
  margin-left: 8px;
}

.view-all {
  text-align: center;
  margin-top: 40px;
}

/* Prediction Tool */
.prediction-tool,
.spell-check,
.calculator {
  background-color: var(--light-color);
}

.tool-container {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--box-shadow);
}

.team-selection {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.team {
  display: flex;
  flex-direction: column;
  width: 40%;
}

.vs {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--gray-color);
}

.team label {
  margin-bottom: 10px;
  font-weight: 600;
}

.team select {
  padding: 12px;
  border-radius: var(--border-radius);
  border: 1px solid var(--light-gray);
  font-size: 1rem;
}

#predict-btn {
  margin: 0 auto;
  display: block;
}

.hidden {
  display: none;
}

#prediction-result {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid var(--light-gray);
}

.result-data {
  margin-top: 20px;
}

.probability {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.team-name {
  width: 100px;
}

.progress-bar {
  flex: 1;
  height: 15px;
  background-color: var(--light-gray);
  border-radius: 10px;
  margin: 0 15px;
  overflow: hidden;
}

.progress {
  height: 100%;
  border-radius: 10px;
  width: 0;
  transition: width 1s ease-in-out;
}

.progress.home-win {
  background-color: var(--primary-color);
}

.progress.draw {
  background-color: var(--warning-color);
}

.progress.away-win {
  background-color: var(--secondary-color);
}

.percentage {
  width: 50px;
  text-align: right;
  font-weight: 600;
}

/* Spell Check Tool */
.spell-check-tool {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--box-shadow);
}

#spell-check-text {
  width: 100%;
  height: 150px;
  padding: 15px;
  border-radius: var(--border-radius);
  border: 1px solid var(--light-gray);
  font-family: inherit;
  font-size: 1rem;
  margin-bottom: 20px;
  resize: vertical;
}

#spell-check-btn {
  margin: 0 auto;
  display: block;
}

#spell-check-result {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid var(--light-gray);
}

#corrected-text {
  margin-top: 15px;
  padding: 15px;
  background-color: var(--light-color);
  border-radius: var(--border-radius);
}

/* Calculator Tool */
.calculator-tool {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--box-shadow);
}

.calculator-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 10px;
  font-weight: 600;
}

.form-group input,
.form-group select {
  padding: 12px;
  border-radius: var(--border-radius);
  border: 1px solid var(--light-gray);
  font-size: 1rem;
}

#calculate-btn {
  grid-column: 1 / -1;
  width: fit-content;
  justify-self: center;
  margin-top: 10px;
}

#calculation-result {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid var(--light-gray);
  text-align: center;
}

#result-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
}

/* Newsletter Section */
.newsletter {
  background-color: var(--primary-color);
  color: white;
  text-align: center;
}

.newsletter h2 {
  margin-bottom: 15px;
}

.newsletter p {
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.newsletter-form {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 15px;
  border-radius: var(--border-radius) 0 0 var(--border-radius);
  border: none;
  font-size: 1rem;
}

.newsletter-form button {
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  background-color: var(--secondary-color);
}

.newsletter-form button:hover {
  background-color: #006b2c;
}

/* Footer Styles */
footer {
  background-color: var(--dark-color);
  color: white;
  padding: 60px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}

.footer-logo img {
  height: 50px;
  margin-bottom: 15px;
}

.footer-logo p {
  color: #b3b3b3;
}

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

.link-column h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: white;
}

.link-column ul li {
  margin-bottom: 10px;
}

.link-column ul li a {
  color: #b3b3b3;
  transition: var(--transition);
}

.link-column ul li a:hover {
  color: white;
}

.social-links {
  display: flex;
  gap: 15px;
}

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

.social-links a:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

.footer-contact h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.footer-contact p {
  color: #b3b3b3;
  margin-bottom: 10px;
}

.copyright {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #b3b3b3;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background-color: white;
  padding: 20px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  z-index: 1000;
  display: none;
}

.cookie-banner.show {
  display: block;
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.cookie-content {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Blog Page Styles */
.page-header {
  background: linear-gradient(rgba(0, 82, 155, 0.9), rgba(0, 82, 155, 0.9)), url('images/page-header-bg.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
  padding: 60px 0;
}

.blog-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.search-bar {
  display: flex;
  max-width: 400px;
  width: 100%;
}

.search-bar input {
  flex: 1;
  padding: 12px 15px;
  border-radius: var(--border-radius) 0 0 var(--border-radius);
  border: 1px solid var(--light-gray);
  font-size: 1rem;
}

.search-btn {
  padding: 12px 15px;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  border: none;
  background-color: var(--primary-color);
  color: white;
  cursor: pointer;
  transition: var(--transition);
}

.search-btn:hover {
  background-color: #003f77;
}

.categories select {
  padding: 12px 15px;
  border-radius: var(--border-radius);
  border: 1px solid var(--light-gray);
  font-size: 1rem;
  background-color: white;
}

.blog-grid .post-card {
  display: flex;
  flex-direction: column;
}

.blog-grid .post-image {
  height: 240px;
}

.post-meta {
  display: flex;
  gap: 15px;
  margin-bottom: 10px;
  color: var(--gray-color);
  font-size: 0.9rem;
}

.post-meta .category {
  color: var(--primary-color);
  font-weight: 600;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 40px;
}

.pagination a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--border-radius);
  background-color: white;
  color: var(--text-color);
  font-weight: 600;
  transition: var(--transition);
}

.pagination a.active,
.pagination a:hover {
  background-color: var(--primary-color);
  color: white;
}

.pagination a.next {
  width: auto;
  padding: 0 15px;
}

/* Predictions Page Styles */
.prediction-tools {
  background-color: white;
}

.tool-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--light-gray);
}

.tab-btn {
  padding: 12px 24px;
  background-color: transparent;
  border: none;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  color: var(--gray-color);
  transition: var(--transition);
}

.tab-btn::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 3px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.tab-btn.active,
.tab-btn:hover {
  color: var(--primary-color);
}

.tab-btn.active::after,
.tab-btn:hover::after {
  width: 100%;
}

.tab-content {
  display: none;
}

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

.predictor-container,
.form-analyzer-container,
.calculator-container {
  background-color: var(--light-color);
  border-radius: var(--border-radius);
  padding: 30px;
  margin-top: 20px;
}

.additional-factors {
  margin: 30px 0;
}

.additional-factors h3 {
  margin-bottom: 15px;
}

.factor {
  margin-bottom: 15px;
}

.factor label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
}

.factor select {
  width: 100%;
  padding: 12px;
  border-radius: var(--border-radius);
  border: 1px solid var(--light-gray);
  font-size: 1rem;
}

.teams-display {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 30px 0;
}

.team-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.team-display img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

.score-prediction {
  font-size: 2.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.probability-bars {
  margin: 30px 0;
}

.prediction-analysis {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 20px;
  margin-top: 30px;
}

/* Form Analyzer */
.team-selection-single {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 400px;
  margin-bottom: 30px;
}

.team-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.team-logo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.form-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat {
  background-color: white;
  padding: 15px;
  border-radius: var(--border-radius);
  text-align: center;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--gray-color);
  margin-bottom: 5px;
  display: block;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.match-results {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 10px;
}

.result {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.9rem;
}

.result:nth-child(1),
.result:nth-child(3),
.result:nth-child(5) {
  background-color: var(--success-color);
  color: white;
}

.result:nth-child(2) {
  background-color: var(--danger-color);
  color: white;
}

.result:nth-child(4) {
  background-color: var(--warning-color);
  color: var(--dark-color);
}

.form-chart {
  margin-bottom: 30px;
}

.chart-placeholder {
  height: 200px;
  background-color: white;
  border-radius: var(--border-radius);
  padding: 20px;
  position: relative;
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 15px;
  height: 100%;
}

.chart-bar {
  flex: 1;
  background-color: var(--primary-color);
  border-radius: 5px 5px 0 0;
}

/* Calculator */
.calculator-controls {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.calculation-type {
  margin-bottom: 10px;
}

.calc-inputs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.result-value {
  text-align: center;
  margin-bottom: 30px;
}

.result-value .result-label {
  font-size: 1.2rem;
  color: var(--gray-color);
  margin-bottom: 10px;
  display: block;
}

.result-value .value {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
}

.result-chart {
  height: 200px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

.donut-chart {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: conic-gradient(
    var(--primary-color) 0% var(--percentage),
    var(--light-gray) var(--percentage) 100%
  );
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.donut-chart::before {
  content: '';
  position: absolute;
  width: 100px;
  height: 100px;
  background-color: white;
  border-radius: 50%;
}

.chart-label {
  position: absolute;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.result-interpretation {
  background-color: var(--light-color);
  border-radius: var(--border-radius);
  padding: 20px;
}

/* Upcoming Fixtures */
.fixtures-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 30px;
}

.fixture {
  display: flex;
  align-items: center;
  background-color: white;
  border-radius: var(--border-radius);
  padding: 20px;
  box-shadow: var(--box-shadow);
}

.fixture-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-right: 30px;
  min-width: 60px;
}

.day {
  font-weight: 700;
  color: var(--gray-color);
}

.date {
  font-size: 0.9rem;
}

.fixture-teams {
  display: flex;
  align-items: center;
  flex: 1;
}

.team {
  display: flex;
  align-items: center;
  gap: 10px;
}

.team.home {
  text-align: right;
  margin-right: 20px;
}

.team.away {
  margin-left: 20px;
}

.team-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.fixture-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 80px;
}

.time {
  font-weight: 700;
}

.versus {
  font-size: 0.9rem;
  color: var(--gray-color);
}

.prediction-badge {
  margin-left: auto;
}

/* About Page Styles */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.about-image {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

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

.approach-card {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--box-shadow);
  text-align: center;
  transition: var(--transition);
}

.approach-card:hover {
  transform: translateY(-5px);
}

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: rgba(0, 82, 155, 0.1);
  color: var(--primary-color);
  margin-bottom: 20px;
}

.team-section {
  background-color: var(--light-color);
}

.section-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  font-size: 1.1rem;
}

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

.team-member {
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.team-member:hover {
  transform: translateY(-5px);
}

.team-member img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.team-member h3 {
  margin: 20px 20px 5px;
}

.team-member p {
  margin: 0 20px 20px;
}

.team-member p:nth-of-type(1) {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 10px;
}

.team-member .social-links {
  margin: 0 20px 20px;
}

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

.stat-card {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--box-shadow);
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.stat-description {
  color: var(--gray-color);
}

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

.partner {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 20px;
  box-shadow: var(--box-shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
  transition: var(--transition);
}

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

/* Contact Page Styles */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
}

.contact-info {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--box-shadow);
}

.info-item {
  display: flex;
  margin-bottom: 30px;
}

.info-item .icon {
  margin-bottom: 0;
  margin-right: 20px;
  width: 50px;
  height: 50px;
  flex-shrink: 0;
}

.info-item h3 {
  margin-bottom: 5px;
}

.info-item p {
  color: var(--gray-color);
  margin-bottom: 5px;
}

.social-contact {
  margin-top: 40px;
}

.contact-form-container {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--box-shadow);
}

.contact-form {
  display: grid;
  gap: 20px;
}

.contact-form .form-group {
  margin-bottom: 0;
}

.contact-form label {
  margin-bottom: 8px;
  font-weight: 600;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 15px;
  border-radius: var(--border-radius);
  border: 1px solid var(--light-gray);
  font-size: 1rem;
  font-family: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.consent input {
  width: auto;
  margin-top: 5px;
}

.consent label {
  margin-bottom: 0;
  font-weight: normal;
}

.map-container {
  margin-top: 30px;
  position: relative;
  height: 400px;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.map-placeholder {
  width: 100%;
  height: 100%;
  position: relative;
}

.map-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.map-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  gap: 20px;
}

.faq-container {
  margin-top: 40px;
}

.faq-item {
  margin-bottom: 15px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: white;
  padding: 20px;
  cursor: pointer;
}

.faq-question h3 {
  margin-bottom: 0;
}

.toggle-icon {
  font-size: 1.5rem;
  font-weight: 700;
  transition: var(--transition);
}

.faq-item.active .toggle-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 20px;
  background-color: white;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  padding: 0 20px 20px;
  max-height: 1000px;
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.show {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background-color: white;
  border-radius: var(--border-radius);
  max-width: 500px;
  width: 90%;
  position: relative;
  overflow: hidden;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal.show .modal-content {
  transform: scale(1);
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 1.5rem;
  color: var(--gray-color);
  cursor: pointer;
  transition: var(--transition);
}

.close-modal:hover {
  color: var(--primary-color);
}

.modal-body {
  padding: 40px;
  text-align: center;
}

.checkmark {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
}

.checkmark-circle {
  stroke: var(--success-color);
  stroke-width: 2;
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
  stroke: var(--success-color);
  stroke-width: 3;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.6s forwards;
}

@keyframes stroke {
  100% {
    stroke-dashoffset: 0;
  }
}

.close-btn {
  margin-top: 20px;
}

/* Blog Post Page */
.blog-post {
  background-color: white;
  padding: 60px 0;
}

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

.post-header h1 {
  margin-bottom: 20px;
}

.post-header .post-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
}

.post-info {
  display: flex;
  gap: 20px;
}

.post-actions {
  display: flex;
  gap: 20px;
  align-items: center;
}

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

.share-buttons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--light-color);
  color: var(--gray-color);
  transition: var(--transition);
}

.share-buttons a:hover {
  background-color: var(--primary-color);
  color: white;
}

.post-header .post-image {
  height: 500px;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.post-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.7;
}

.post-content h2 {
  margin-top: 40px;
  margin-bottom: 20px;
  font-size: 1.8rem;
}

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

.content-image {
  margin: 30px 0;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.image-caption {
  display: block;
  text-align: center;
  padding: 10px;
  background-color: var(--light-color);
  font-size: 0.9rem;
  color: var(--gray-color);
}

.stats-container {
  background-color: var(--light-color);
  border-radius: var(--border-radius);
  padding: 30px;
  margin: 30px 0;
}

.stats-container h3 {
  text-align: center;
  margin-bottom: 20px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

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

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  display: block;
  margin-bottom: 5px;
}

.stat-label {
  color: var(--gray-color);
}

.post-tags {
  margin: 40px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.tags-title {
  font-weight: 600;
}

.tag {
  display: inline-block;
  padding: 5px 15px;
  background-color: var(--light-color);
  border-radius: 30px;
  font-size: 0.9rem;
  transition: var(--transition);
}

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

.author-bio {
  background-color: var(--light-color);
  border-radius: var(--border-radius);
  padding: 30px;
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
}

.author-image {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.author-info h3 {
  font-size: 1rem;
  color: var(--gray-color);
  margin-bottom: 5px;
}

.author-info h4 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.author-info .social-links {
  margin-top: 15px;
}

.author-info .social-links a {
  background-color: white;
}

.related-posts {
  margin-bottom: 40px;
}

.related-posts h3 {
  margin-bottom: 30px;
}

.posts-grid .post-card.small {
  grid-template-columns: 120px 1fr;
}

.posts-grid .post-card.small .post-image {
  height: 100%;
}

.posts-grid .post-card.small .post-content {
  padding: 15px;
}

.posts-grid .post-card.small h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.comments-section {
  margin-top: 60px;
}

.comment-form {
  background-color: var(--light-color);
  border-radius: var(--border-radius);
  padding: 30px;
  margin-bottom: 40px;
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.comment {
  display: flex;
  gap: 20px;
  background-color: var(--light-color);
  border-radius: var(--border-radius);
  padding: 20px;
}

.comment-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.comment-author {
  margin-bottom: 0;
}

.comment-date {
  font-size: 0.9rem;
  color: var(--gray-color);
}

.comment-actions {
  margin-top: 15px;
}

.reply-link {
  color: var(--primary-color);
  font-weight: 600;
}

.load-more {
  text-align: center;
  margin-top: 20px;
}

/* Spell Check Panel */
.spell-check-panel {
  background-color: var(--light-color);
  border-radius: var(--border-radius);
  padding: 20px;
  margin-bottom: 30px;
}

.spell-check-panel textarea {
  width: 100%;
  height: 150px;
  padding: 15px;
  border-radius: var(--border-radius);
  border: 1px solid var(--light-gray);
  font-family: inherit;
  font-size: 1rem;
  margin-bottom: 15px;
  resize: vertical;
}

.spell-check-panel .results {
  margin-top: 15px;
  padding: 15px;
  background-color: white;
  border-radius: var(--border-radius);
  min-height: 50px;
}

.spell-check-mini {
  margin-bottom: 30px;
}

#spell-check-panel {
  margin-top: 15px;
}

.spell-check-inline {
  margin-bottom: 20px;
}

/* Responsive Styles */
@media screen and (max-width: 1200px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  
  .footer-links {
    grid-column: span 2;
    margin-top: 30px;
  }
}

@media screen and (max-width: 992px) {
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .about-content {
    grid-template-columns: 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .post-header .post-meta {
    flex-direction: column;
    gap: 15px;
  }
  
  .post-actions {
    justify-content: flex-start;
  }
  
  .fixture {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  
  .fixture-date {
    flex-direction: row;
    gap: 10px;
    margin-right: 0;
  }
  
  .prediction-badge {
    margin-left: 0;
    align-self: flex-start;
  }
}

@media screen and (max-width: 768px) {
  .container {
    padding: 0 15px;
  }
  
  section {
    padding: 40px 0;
  }
  
  header {
    height: auto;
    padding: 15px 0;
  }
  
  header .container {
    flex-direction: column;
    gap: 20px;
  }
  
  nav ul {
    justify-content: center;
  }
  
  nav ul li {
    margin: 0 10px;
  }
  
  .cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .newsletter-form input {
    border-radius: var(--border-radius);
    margin-bottom: 15px;
  }
  
  .newsletter-form button {
    border-radius: var(--border-radius);
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .footer-links {
    grid-template-columns: 1fr;
    grid-column: auto;
  }
  
  .team-selection {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
  
  .team {
    width: 100%;
  }
  
  .vs {
    margin: 10px 0;
  }
  
  .blog-controls {
    flex-direction: column;
    gap: 20px;
  }
  
  .search-bar {
    max-width: 100%;
  }
  
  .categories {
    width: 100%;
  }
  
  .categories select {
    width: 100%;
  }
  
  .post-header .post-image {
    height: 300px;
  }
  
  .author-bio {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .tool-tabs {
    flex-direction: column;
    gap: 0;
  }
  
  .tab-btn {
    width: 100%;
    text-align: left;
    padding: 15px;
    border-bottom: 1px solid var(--light-gray);
  }
  
  .tab-btn::after {
    display: none;
  }
  
  .tab-btn.active,
  .tab-btn:hover {
    background-color: var(--light-color);
  }
}

@media screen and (max-width: 480px) {
  .logo img {
    height: 40px;
  }
  
  nav ul li {
    margin: 0 5px;
  }
  
  nav ul li a {
    font-size: 0.9rem;
    padding: 5px 0;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .post-info {
    flex-direction: column;
    gap: 5px;
  }
  
  .comment {
    flex-direction: column;
  }
  
  .comment-avatar {
    margin-bottom: 10px;
  }
  
  .comment-header {
    flex-direction: column;
    gap: 5px;
  }
}
