/*
Theme Name: Starting a Sport FSE Child
Description: FSE-enabled child theme.
Author: Your Name
Version: 1.0
Template: twentytwentyfour
*/

/* ========================
   BASE STYLES
   ======================== */
body {
  margin: 0;
  font-family: system-ui, sans-serif;
  background: #f9f9f9;
  color: #222;
  overflow-x: hidden;
}

/* ========================
   HEADER & NAVIGATION
   ======================== */
.site-header {
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  padding: 1rem 2rem;
  position: relative;
  z-index: 100;
}

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

.site-logo img {
  max-width: 120px;
  height: auto;
  display: block;
}

/* Main Navigation */
.main-navigation {
  flex-grow: 1;
}

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

.primary-menu a {
  display: block;
  padding: 10px 15px;
  text-decoration: none;
  color: #222;
  transition: all 0.2s;
}

/* Desktop Menu */
@media (min-width: 1025px) {
  .primary-menu li {
    position: relative;
  }

  .primary-menu li ul {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: #fff;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    display: none;
    z-index: 1000;
  }

  .primary-menu li:hover > ul {
    display: block;
  }
}

/* Mobile Menu */
#menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

@media (max-width: 1024px) {
  #menu-toggle {
    display: block;
  }

  .main-navigation {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    height: 100vh;
    background: #fff;
    transition: left 0.3s ease;
    z-index: 1000;
    padding: 2rem 1rem;
  }

  .main-navigation.open {
    left: 0;
  }

  .primary-menu {
    flex-direction: column;
  }
}

/* ========================
   HERO SECTION
   ======================== */
.intro-hero {
  padding: 80px 20px;
  background: #f2f2f2;
}

.hero-text h1 {
  font-size: 3rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-text .static-line {
  display: block;
  color: #000;
}

.hero-text .rotating-word {
  display: block;
  color: #6a5acd;
}

/* ========================
   CONTENT BLOCKS
   ======================== */
.wp-block-group.alignfull > div {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.wp-block-group.alignfull:nth-of-type(even) {
  background: linear-gradient(135deg, #cccce0 85%, #dfdfdd 100%);
}

/* ========================
   CONTACT FORM
   ======================== */
.contact-container {
  max-width: 600px;
  margin: 3rem auto;
  padding: 2rem;
  background: linear-gradient(to bottom, #f9f8fa, #eeeef2);
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* ========================
   MODALS & ANIMATIONS
   ======================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 9999;
  animation: fadeIn 0.5s ease-in-out;
}

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

/* ========================
   RESPONSIVE ADJUSTMENTS
   ======================== */
/* Ensure template is loading */
body.archive .wp-block-group.alignfull {
  display: block !important;
}

/* Grid layout */
.wp-block-post-template {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* Card styling */
.wp-block-group.has-base-2-background-color {
  transition: all 0.3s ease;
  height: 100%;
}
.wp-block-group.has-base-2-background-color:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Responsive fixes */
@media (max-width: 1024px) {
  .wp-block-post-template {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .wp-block-post-template {
    grid-template-columns: 1fr;
  }
}

.site-header {
  background: #f5f5f5;
  border-bottom: 1px solid #ddd;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
}
.site-branding a {
  font-size: 1.5em;
  font-weight: bold;
  text-decoration: none;
}
.main-navigation .menu {
  display: flex;
  list-style: none;
  gap: 30px;
  margin: 0;
  padding: 0;
}
.lang-switch a {
  padding: 6px 12px;
  border: 1px solid #aaa;
  border-radius: 4px;
  font-weight: bold;
  text-decoration: none;
}

.mobile-toggle {
  display: none;
}

@media (max-width: 1024px) {
  .mobile-toggle {
    display: block;
  }
}

/* Wider Container Layout with Styled Background */
#primary.wp-block-group {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Content Background Style */
.wp-block-group.has-background {
    background-color: #f8f9fa !important;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Featured Image */
.wp-block-post-featured-image {
    margin: 1rem auto 1.5rem;
}

.wp-block-post-featured-image img {
    width: auto;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 4px;
}

/* Content Typography */
.wp-block-post-content {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #333;
}

.wp-block-post-content p {
    margin-bottom: 1.5rem;
}

/* Related Posts Section */
.wp-block-query.alignwide {
    margin: 2rem 0;
}

.wp-block-post-template {
    gap: 1.5rem;
}

.wp-block-post-template .wp-block-post-featured-image img {
    object-fit: cover;
    transition: transform 0.3s ease;
}

.wp-block-post-template .wp-block-post-featured-image:hover img {
    transform: scale(1.02);
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .wp-block-query.alignwide {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    #primary.wp-block-group {
        width: 100%;
        padding: 0 15px;
    }
    
    .wp-block-group.has-background {
        padding: 1.5rem !important;
    }
    
    .wp-block-query.alignwide {
        grid-template-columns: 1fr;
    }
    
    .wp-block-post-title {
        font-size: 2rem !important;
    }
}
/* Post Navigation Styles */
.wp-block-post-navigation-link {
    padding: 12px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.wp-block-post-navigation-link a {
    text-decoration: none;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wp-block-post-navigation-link__label {
    font-weight: 500;
}

.wp-block-post-navigation-link:hover {
    background-color: #f0f0f0;
}

.wp-block-post-navigation-link.next {
    margin-left: auto;
    text-align: right;
}

/* Responsive Navigation */
@media (max-width: 600px) {
    .wp-block-group:has(.wp-block-post-navigation-link) {
        flex-wrap: wrap !important;
        gap: 1rem;
    }
    .wp-block-post-navigation-link {
        width: 100%;
    }
    .wp-block-post-navigation-link.next {
        text-align: left;
    }
}

/* Force consistent heading sizes */
.entry-content h2 {
    font-size: 1.6rem !important;
    margin: 2rem 0 1rem !important;
}
.entry-content h3 {
    font-size: 1.4rem !important;
    margin: 1.75rem 0 0.75rem !important;
}