/* Info Page Styles */
.info-page-main {
  margin-top: 100px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  padding: 2.5rem 2rem;
}

.info-page-main h1 {
  color: #9DD9F0;
  font-size: 2.2rem;
  margin-bottom: 2rem;
  text-align: center;
}

.info-page-main .content-section {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eee;
}

.info-page-main .content-section:last-child {
  border-bottom: none;
}

.info-page-main h2 {
  color: #9DD9F0;
  font-size: 1.3rem;
  margin-bottom: 0.7rem;
}

.info-page-main ul {
  margin-left: 1.2rem;
  margin-bottom: 0.5rem;
  color: white;
}

.info-page-main li {
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
}

.info-page-main p {
  color: white;
  font-size: 1.08rem;
}

@media (max-width: 900px) {
  .info-page-main {
    padding: 1.2rem 0.5rem;
  }
}

/* Info Section Styles */
.info-section {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background: url('img/background.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 22px 20vw;
  min-height: 150px;
}
.info-item {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: none;
}
.info-icon {
  color: #9DD9F0;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.info-icon svg {
  width: 60px;
  height: 60px;
  margin: 2px;
  stroke: #9DD9F0;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 0;
}
.info-title {
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 2px;
  color: white;
}
.info-desc {
  font-size: 1.1rem;
  color: white;
  text-align: center;
}

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

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333;
}

/* Prevent content flash while navigation loads */
body:not(.navigation-loaded) {
  visibility: hidden;
}

body.navigation-loaded {
  visibility: visible;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Header Styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: url('img/background.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1000;
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

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

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

.logo-icon {
  width: 40px;
  height: 40px;
  background: #9DD9F0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 1.2rem;
}

.logo-text {
  font-weight: bold;
  font-size: 1.2rem;
  color: #333;
}

.logo-image {
  height: 70px;
  width: auto;
  max-width: 300px;
  object-fit: contain;
  border-radius: 10px;
  padding: 0;
  margin: 0;
  /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); */
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav a {
  text-decoration: none;
  color: white;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav a:hover {
  color: #9DD9F0;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.icon {
  width: 24px;
  height: 24px;
  background: #333;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.icon:hover {
  background: #9DD9F0;
}

/* Navbar Styles */
.navbar-links {
  list-style: none;
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
  align-items: center;
}
.navbar-links li {
  position: relative;
}
.navbar-links li a {
  text-decoration: none;
  color: white;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.2s;
  padding: 8px 16px;
  display: block;
}
.navbar-links li a:hover {
  color: #9DD9F0;
}
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #4E4E4E;
  min-width: 220px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.12);
  z-index: 100;
  right: 0;
  top: 100%;
}
.dropdown-content a {
  color: white;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  font-size: 1rem;
}
.dropdown-content a:hover {
  background-color: #5E5E5E;
  color: #4CAF50;
}

/* Footer Styles */
.footer {
  background: url('img/background.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  padding: 3rem 0 2rem 0;
  margin-top: 4rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-section h3 {
  color: white;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.footer-section p,
.footer-section a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  line-height: 1.6;
}

.footer-section a:hover {
  color: #4CAF50;
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.7);
}
.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
  display: block;
}

/* Hero Section */
.hero {
  height: 80vh;
  background: url('img/Futsalfestivalen_bg.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.2);
}

.hero-content {
  text-align: center;
  color: #333;
  z-index: 10;
  max-width: 800px;
  padding: 0 2rem;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-title span {
  display: block;
}

.hero-title img {
  max-width: 720px;
  width: 240%;
  height: auto;
  opacity: 0.95;
  /* margin-left: -5%; */
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  color: #333;
  font-weight: bold;
}

.cta-button {
  background: #9DD9F0;
  color: #333;
  border: 2px solid #000;
  padding: 0.7rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: none;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  display: inline-block;
}

.cta-button:hover {
  background: #7BC5E8;
}

.cta-white {
  background: #fff;
  color: #222;
  border: 2px solid #000;
  padding: 0.7rem 1.5rem;
  font-size: 1rem;
}

.cta-white:hover {
  background: #f5f5f5;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
}
.hero-buttons a {
  flex: 1 1 0;
  min-width: 180px;
  text-align: center;
}

/* Page Content Styles */
.page-content {
  margin-top: 80px;
  min-height: calc(100vh - 80px);
  padding: 2rem 0;
  background: url('img/background.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.page-content h1 {
  font-size: 2.5rem;
  color: white;
  margin-bottom: 2rem;
  text-align: center;
}

.content-section {
  margin-bottom: 3rem;
}

.content-section h2 {
  font-size: 1.8rem;
  color: #9DD9F0;
  margin-bottom: 1rem;
}

.content-section h3 {
  color: #9DD9F0;
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
}

.content-section p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1rem;
  color: white;
}

.content-section ul {
  margin-left: 2rem;
  margin-bottom: 1rem;
}

.content-section li {
  font-size: 1.1rem;
  line-height: 1.7;
  color: white;
  margin-bottom: 0.5rem;
}

/* Blog Styles */
.blog-section {
  margin-bottom: 3rem;
}

.blog-post {
  background: white;
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.blog-post h2 {
  color: #333;
  margin-bottom: 0.5rem;
}

.post-date {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.read-more {
  color: #9DD9F0;
  text-decoration: none;
  font-weight: 600;
}

.read-more:hover {
  text-decoration: underline;
}

.newsletter-section {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
}

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

.newsletter-form input {
  flex: 1;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
}

/* Contact Styles */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.contact-item {
  margin-bottom: 2rem;
}

.contact-item h3 {
  color: #9DD9F0;
  margin-bottom: 0.5rem;
}

.contact-form {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
}

.form-group textarea {
  resize: vertical;
}

.map-section {
  margin-bottom: 3rem;
}

.map-placeholder {
  background: #f8f9fa;
  padding: 3rem;
  text-align: center;
  border-radius: 8px;
  color: #666;
}

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

.social-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1rem;
}

.social-link {
  padding: 0.8rem 1.5rem;
  background: #9DD9F0;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.3s ease;
}

.social-link:hover {
  background: #c0392b;
}

.nav a.active {
  color: #9DD9F0;
  font-weight: bold;
}

/* Hamburger Menu Styles */
.hamburger {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.hamburger-line {
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

.hamburger.active .hamburger-line:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-container {
    padding: 0 1rem;
    position: relative;
  }
  
  .hamburger {
    display: flex;
  }
  
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: url('img/background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: right 0.3s ease;
    z-index: 1000;
    padding-top: 80px;
  }
  
  .nav.active {
    right: 0;
  }
  
  .navbar-links {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
  }
  
  .navbar-links li {
    width: 100%;
    text-align: center;
  }
  
  .navbar-links li a {
    font-size: 1.2rem;
    padding: 1rem;
    display: block;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }
  
  .dropdown-content {
    position: static;
    display: none;
    background: rgba(0, 0, 0, 0.3);
    box-shadow: none;
    width: 100%;
    margin-top: 0.5rem;
  }
  
  .dropdown.active .dropdown-content {
    display: block;
  }
  
  .dropdown-content a {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-title img {
    max-width: 450px;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .social-icons {
    display: none;
  }

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

  .newsletter-form {
    flex-direction: column;
  }

  .social-links {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .logo-text {
    font-size: 1rem;
  }
  
  .logo-image {
    height: 45px;
    max-width: 150px;
  }
  
  .hero-title {
    font-size: 1.8rem;
  }
  
  .hero-title img {
    max-width: 100%;
    width: 100%;
  }
  
  .hero-subtitle {
    font-size: 0.9rem;
  }
  
  .cta-button {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
  
  .nav {
    gap: 0.5rem;
  }
  
  .nav a {
    font-size: 0.9rem;
  }

  .container {
    padding: 0 1rem;
  }

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

  .blog-post,
  .contact-form {
    padding: 1.5rem;
  }
  
  .info-section {
    padding: 1.5rem 0.5rem;
  }
  
  .info-icon svg {
    width: 40px;
    height: 40px;
  }
  
  .info-title {
    font-size: 1rem;
  }
  
  .info-desc {
    font-size: 0.8rem;
  }
}

/* Teams specific styles */
.team-category {
  margin-bottom: 2rem;
}

.gender-title {
  font-size: 1.4rem;
  color: #9DD9F0;
  margin-bottom: 1rem;
  font-weight: 600;
  border-bottom: 2px solid #9DD9F0;
  padding-bottom: 0.5rem;
}

/* Simple team list layout */
.teams-list {
  margin-bottom: 2rem;
}

.team-list-item {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition: background-color 0.2s ease;
}

.team-list-item:hover {
  background: rgba(157, 217, 240, 0.1);
  padding-left: 1rem;
}

.team-list-item:last-child {
  border-bottom: none;
}

.team-list-name {
  color: white;
  font-size: 1.1rem;
  font-weight: 500;
}

/* Rules specific styles */
.rules-list {
  margin-left: 2rem;
  margin-bottom: 1rem;
}

.rules-list li {
  margin-bottom: 0.5rem;
}

.age-classes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.age-class {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid #9DD9F0;
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
}

.age-class h4 {
  color: #9DD9F0;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.age-class p {
  margin: 0;
  font-size: 1rem;
  color: white;
}

.game-times-table {
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.game-times-table table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.game-times-table th,
.game-times-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.game-times-table td {
  color: #333;
  background: rgba(255, 255, 255, 0.95);
}

.game-times-table th {
  background: #9DD9F0;
  color: #333;
  font-weight: 600;
}

.game-times-table tr:hover td {
  background: rgba(157, 217, 240, 0.1);
}

.highlight-box {
  background: rgba(157, 217, 240, 0.2);
  border-left: 4px solid #9DD9F0;
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 8px 8px 0;
}

.highlight-box h4 {
  color: #9DD9F0;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.highlight-box p {
  color: white;
}

.warning-box {
  background: rgba(157, 217, 240, 0.2);
  border: 1px solid #9DD9F0;
  border-left: 4px solid #9DD9F0;
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 0 8px 8px 0;
}

.warning-box p {
  margin: 0;
  color: white;
}

.external-link {
  color: #9DD9F0;
  text-decoration: none;
  font-weight: 500;
}

.external-link:hover {
  text-decoration: underline;
}

/* Override for specific external links that should be white */
a[href^="https://www.futsalclubkungsbacka.se"] {
  color: white !important;
  text-decoration: underline;
  font-weight: normal;
}

a[href^="https://www.futsalclubkungsbacka.se"]:hover {
  color: white;
  text-decoration: underline;
}

.email-link {
  color: #9DD9F0;
  text-decoration: none;
  font-weight: 500;
}

.email-link:hover {
  text-decoration: underline;
}

/* Responsive layout for hero and info-section */
@media (max-width: 900px) {
  .hero {
    height: 60vh;
  }
  .info-section {
    padding: 0 5vw;
    flex-wrap: wrap;
  }
  .info-icon {
    font-size: 64px;
  }
  .info-title {
    font-size: 1.1rem;
  }
  .info-desc {
    font-size: 1rem;
  }
  .info-icon svg {
    width: 64px;
    height: 64px;
  }
}

/* Additional mobile responsive styles */
@media (max-width: 768px) {
  .hero {
    height: 50vh;
    padding: 0 1rem;
  }
  
  .hero-content {
    padding: 0 1rem;
  }
  
  .hero-title img {
    max-width: 100%;
    width: 100%;
    margin-left: 0;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
  }
  
  .hero-buttons a {
    min-width: auto;
    width: 100%;
  }
  
  .info-section {
    flex-direction: column;
    padding: 2rem 1rem;
    gap: 2rem;
    align-items: center;
    justify-content: center;
  }
  
  .info-item {
    max-width: 100%;
    text-align: center;
    align-items: center;
  }
  
  .info-icon {
    justify-content: center;
    align-items: center;
    width: 100%;
  }
  
  .info-icon svg {
    width: 50px;
    height: 50px;
  }
  
  .info-title {
    font-size: 1.2rem;
    text-align: center;
  }
  
  .info-desc {
    font-size: 0.9rem;
    text-align: center;
  }
}

/* Responsive design for teams */
@media (max-width: 768px) {
  .teams-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
  
  .team-card {
    padding: 1rem;
  }
  
  .team-name {
    font-size: 1.1rem;
  }
  
  .age-classes-grid {
    grid-template-columns: 1fr;
  }
  
  .game-times-table {
    font-size: 0.9rem;
  }
  
  .game-times-table th,
  .game-times-table td {
    padding: 0.8rem;
  }
  
  .highlight-box,
  .warning-box {
    padding: 1rem;
  }
}