/* Main Styles for Birmingham Leisure Theme */

/* Reset & Base Styles */
:root {
  --primary-color: #8cc63f; /* Green accent color */
  --secondary-color: #00a0df; /* Blue accent color */
  --dark-color: #333333;
  --light-color: #ffffff;
  --gray-color: #f5f5f5;
  --text-color: #333333;
  --border-color: #e0e0e0;
}

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

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--light-color);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

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

a:hover {
  text-decoration: underline;
}

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

/* Accessibility Mode */
.accessibility-mode {
  font-size: 110%;
  line-height: 1.8;
}

.accessibility-mode a:focus,
.accessibility-mode button:focus {
  outline: 3px solid var(--secondary-color);
  outline-offset: 2px;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

/* Header Styles */
.site-header {
  background-color: var(--light-color);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 100;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.site-branding {
  display: flex;
  align-items: center;
}

.site-logo {
  display: block;
  text-decoration: none;
}

.site-title h1 {
  font-size: 1.5rem;
  margin: 0;
  color: var(--dark-color);
}

.site-title p {
  font-size: 0.875rem;
  margin: 0;
  color: var(--dark-color);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.search-container {
  position: relative;
}

.search-form {
  display: flex;
  align-items: center;
}

.search-field {
  padding: 8px 15px;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  width: 250px;
  font-size: 0.875rem;
}

.search-submit {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--dark-color);
}

.accessibility-login {
  display: flex;
  align-items: center;
  gap: 15px;
}

.accessibility-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: var(--light-color);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  color: var(--dark-color);
}

.login-button {
  font-weight: bold;
  color: var(--dark-color);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-icon {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--dark-color);
  position: relative;
}

.menu-icon::before,
.menu-icon::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: var(--dark-color);
  left: 0;
}

.menu-icon::before {
  top: -8px;
}

.menu-icon::after {
  bottom: -8px;
}

/* Navigation Styles */
.main-navigation {
  background-color: var(--light-color);
  border-top: 1px solid var(--border-color);
}

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

.nav-menu li {
  position: relative;
}

.nav-menu a {
  display: block;
  padding: 15px;
  color: var(--dark-color);
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s;
}

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

.nav-menu .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--light-color);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  z-index: 10;
}

.nav-menu .sub-menu.toggled-on {
  display: block;
}

.nav-menu .sub-menu li {
  width: 100%;
}

.nav-menu .sub-menu a {
  padding: 10px 15px;
}

.dropdown-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  position: absolute;
  right: 0;
  top: 15px;
  width: 30px;
  height: 30px;
}

.dropdown-toggle::after {
  content: "\f107";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--dark-color);
}

.dropdown-toggle[aria-expanded="true"]::after {
  content: "\f106";
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 400px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--light-color);
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
}

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

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 20px;
  font-weight: 300;
}

.hero-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--primary-color);
  color: var(--light-color);
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  transition: background-color 0.3s;
}

.hero-button:hover {
  background-color: #7ab62f;
  text-decoration: none;
}

/* Hero Slider Styles */
.hero-slider {
  position: relative;
  width: 100%;
  height: 100vh; /* Full viewport height */
  min-height: 500px; /* Minimum height */
  max-height: 800px; /* Maximum height */
  overflow: hidden;
}

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

.slide {
  position: relative;
  height: 100%;
  width: 100%;
  overflow: hidden;
}

.slide--image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.slide--image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* This ensures the image covers the entire container */
  object-position: center; /* Centers the image */
}

.slide--overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
}

.slide--content {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.slide--caption {
  text-align: center;
  color: #ffffff;
  padding: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.slide--caption h2 {
  font-size: 3.5rem;
  font-weight: 300;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.slide--caption p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* Slider Navigation */
.slick-prev,
.slick-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 50px;
  height: 50px;
  border: none;
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.slick-prev:hover,
.slick-next:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.slick-prev {
  left: 20px;
}

.slick-next {
  right: 20px;
}

/* Slider Dots */
.slick-dots {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
  z-index: 10;
}

.slick-dots li {
  margin: 0 5px;
}

.slick-dots button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid white;
  background: transparent;
  font-size: 0;
  padding: 0;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.slick-dots li.slick-active button {
  background-color: white;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .hero-slider {
    min-height: 400px;
  }

  .slide--caption h2 {
    font-size: 2.5rem;
  }

  .slide--caption p {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .hero-slider {
    min-height: 300px;
  }

  .slide--caption h2 {
    font-size: 2rem;
  }

  .slide--caption p {
    font-size: 1rem;
  }

  .slick-prev,
  .slick-next {
    width: 40px;
    height: 40px;
  }
}

.carousel-widget-section {
  padding: 40px 0;
  background-color: var(--light-color);
}

.carousel-widget-section .widget-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 30px;
  color: var(--dark-color);
}

.carousel-widget-section img {
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Make sure the carousel is responsive */
@media (max-width: 768px) {
  .carousel-widget-section {
    padding: 30px 0;
  }

  .carousel-widget-section .widget-title {
    font-size: 1.75rem;
  }
}

/* Front Page Sections */
.welcome-section {
  padding: 80px 0;
  text-align: center;
}

.welcome-section h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--dark-color);
}

.welcome-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 4px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s;
}

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

.btn-primary:hover {
  background-color: #7ab62f;
  text-decoration: none;
}

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

.btn-secondary:hover {
  background-color: #0090c5;
  text-decoration: none;
}

.featured-section {
  padding: 60px 0;
  background-color: var(--gray-color);
}

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

.featured-card {
  background-color: var(--light-color);
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

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

.featured-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.featured-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--dark-color);
}

.featured-card p {
  margin-bottom: 20px;
  color: var(--text-color);
}

.featured-link {
  color: var(--secondary-color);
  font-weight: bold;
  text-decoration: none;
}

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

.cta-section {
  padding: 80px 0;
  background-color: var(--secondary-color);
  color: var(--light-color);
  text-align: center;
}

.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.cta-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.cta-button {
  display: inline-block;
  padding: 14px 30px;
  background-color: var(--light-color);
  color: var(--secondary-color);
  font-weight: bold;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s;
}

.cta-button:hover {
  background-color: var(--primary-color);
  color: var(--light-color);
  text-decoration: none;
}

.latest-news-section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: var(--dark-color);
}

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

.post-card {
  background-color: var(--light-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

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

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

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

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

.post-content {
  padding: 20px;
}

.post-title {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.post-title a {
  color: var(--dark-color);
  text-decoration: none;
}

.post-title a:hover {
  color: var(--primary-color);
}

.post-meta {
  font-size: 0.875rem;
  color: #777;
  margin-bottom: 15px;
}

.post-excerpt {
  margin-bottom: 20px;
}

.read-more {
  display: inline-block;
  font-weight: bold;
  color: var(--secondary-color);
}

.view-all-posts {
  text-align: center;
}

@media (max-width: 768px) {
  .welcome-section {
    padding: 60px 0;
  }

  .welcome-section h2 {
    font-size: 2rem;
  }

  .welcome-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-content h2 {
    font-size: 2rem;
  }

  .cta-content p {
    font-size: 1rem;
  }

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

/* Facilities Page Styles */
.facilities-section {
  padding: 60px 0;
}

.facility-item {
  display: flex;
  margin-bottom: 60px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.facility-item:nth-child(even) {
  flex-direction: row-reverse;
}

.facility-image {
  flex: 1;
  min-height: 400px;
  background-size: cover;
  background-position: center;
}

.facility-content {
  flex: 1;
  padding: 40px;
  background-color: var(--light-color);
}

.facility-title {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--dark-color);
}

.facility-content p {
  margin-bottom: 20px;
  line-height: 1.8;
}

.facility-features {
  margin-bottom: 30px;
  padding-left: 20px;
}

.facility-features li {
  margin-bottom: 10px;
}

@media (max-width: 992px) {
  .facility-item,
  .facility-item:nth-child(even) {
    flex-direction: column;
  }

  .facility-image {
    min-height: 300px;
  }
}

/* Content Section */
.content-section {
  padding: 60px 0;
}

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

.content-section p {
  margin-bottom: 20px;
  line-height: 1.8;
}

/* Timetable Styles */
.timetable-section {
  padding: 60px 0;
}

.timetable-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
}

.timetable-button {
  padding: 10px 20px;
  background-color: var(--primary-color);
  color: var(--light-color);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s;
}

.timetable-button:hover {
  background-color: #7ab62f;
}

.timetable-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.filter-label {
  font-weight: bold;
}

.filter-select {
  padding: 8px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  min-width: 200px;
}

.timetable-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.timetable-table th {
  background-color: var(--dark-color);
  color: var(--light-color);
  padding: 12px;
  text-align: left;
}

.timetable-table td {
  padding: 12px;
  border-bottom: 1px solid var(--border-color);
}

.timetable-table tr:nth-child(even) {
  background-color: var(--gray-color);
}

/* Membership Styles */
.membership-section {
  padding: 60px 0;
}

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

.membership-card {
  background-color: var(--light-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.membership-image {
  height: 200px;
  background-size: cover;
  background-position: center;
}

.membership-content {
  padding: 20px;
}

.membership-title {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--dark-color);
}

.membership-description {
  margin-bottom: 20px;
  color: var(--text-color);
}

.membership-promo {
  display: flex;
  margin-top: 40px;
  background-color: #00a0df;
  border-radius: 8px;
  overflow: hidden;
}

.promo-content {
  flex: 1;
  padding: 30px;
  color: var(--light-color);
}

.promo-image {
  flex: 1;
  background-size: cover;
  background-position: center;
}

/* Search Results */
.search-result-item {
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border-color);
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item .entry-title {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.search-result-item .entry-meta {
  font-size: 0.875rem;
  color: #777;
  margin-bottom: 15px;
}

.search-result-item .entry-summary {
  margin-bottom: 15px;
}

/* 404 Page */
.error-404 {
  padding: 80px 0;
  text-align: center;
}

.error-404 .page-title {
  font-size: 3rem;
  margin-bottom: 20px;
}

.error-404 p {
  margin-bottom: 30px;
  font-size: 1.2rem;
}

.error-actions {
  margin-bottom: 40px;
}

.error-actions .search-form {
  max-width: 500px;
  margin: 20px auto;
}

.widget-area {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
}

.widget {
  flex: 1;
  min-width: 250px;
  max-width: 400px;
  text-align: left;
}

.widget h2 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.widget ul {
  list-style: none;
}

.widget li {
  margin-bottom: 10px;
}

/* Comments */
.comments-area {
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
}

.comments-title {
  font-size: 1.5rem;
  margin-bottom: 30px;
}

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

.comment {
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border-color);
}

.comment:last-child {
  border-bottom: none;
}

.comment-author {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.comment-author .avatar {
  margin-right: 15px;
  border-radius: 50%;
}

.comment-metadata {
  font-size: 0.875rem;
  color: #777;
  margin-bottom: 15px;
}

.comment-content {
  margin-bottom: 15px;
}

.comment-reply-link {
  font-weight: bold;
  color: var(--secondary-color);
}

.comment-form label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  margin-bottom: 15px;
}

.comment-form input[type="submit"] {
  background-color: var(--primary-color);
  color: var(--light-color);
  border: none;
  padding: 12px 24px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s;
}

.comment-form input[type="submit"]:hover {
  background-color: #7ab62f;
}

/* Footer Styles */
.site-footer {
  background-color: var(--gray-color);
  padding: 30px 0;
  margin-top: 60px;
}

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

.footer-info {
  margin-bottom: 20px;
}

.footer-info p {
  margin-bottom: 10px;
}

.footer-navigation {
  margin-bottom: 20px;
}

.footer-menu {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-menu li {
  margin: 0 15px;
}

.footer-menu a {
  color: var(--dark-color);
  text-decoration: none;
}

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

.site-info {
  font-size: 0.875rem;
  color: #777;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .search-field {
    width: 200px;
  }
}

@media (max-width: 768px) {
  .header-content {
    flex-wrap: wrap;
  }

  .search-container {
    order: 3;
    width: 100%;
    margin-top: 15px;
  }

  .search-field {
    width: 100%;
  }

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

  .menu-toggle {
    display: block;
  }

  .main-navigation {
    display: none;
  }

  .main-navigation.active {
    display: block;
  }

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

  .membership-promo {
    flex-direction: column;
  }

  .promo-image {
    height: 200px;
  }
}

@media (max-width: 576px) {
  .timetable-buttons {
    flex-direction: column;
  }

  .filter-select {
    min-width: 100%;
  }
}

