/**
 * WordPress-Specific CSS Overrides
 * 
 * This file contains WordPress-specific styles that may be needed
 * to override default WordPress styles or fix theme conflicts.
 */

/* Remove WordPress admin bar spacing if needed */
body.admin-bar {
  margin-top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar {
    margin-top: 46px;
  }
}

/* Ensure body has proper styling */
body {
  font-family: "Quicksand", sans-serif;
  margin: 0;
  padding: 0;
}

/* Fix WordPress alignment classes */
.alignleft {
  float: left;
  margin-right: 1.5rem;
}

.alignright {
  float: right;
  margin-left: 1.5rem;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* WordPress gallery fixes */
.gallery {
  margin-bottom: 1.5rem;
}

.gallery-item {
  display: inline-block;
  text-align: center;
  vertical-align: top;
  width: 100%;
}

/* Ensure images are responsive */
img {
  max-width: 100%;
  height: auto;
}

/* Fix for embedded content */
embed,
iframe,
object {
  max-width: 100%;
}

/* Screen reader text */
.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 !important;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: #f1f1f1;
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  clip-path: none;
  color: #21759b;
  display: block;
  font-size: 0.875rem;
  font-weight: bold;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

/* WordPress menu fix */
.nav-list li {
  display: inline-block;
  margin: 0 1rem;
}

.nav-list a {
  cursor: pointer;
}

/* Ensure WordPress classes don't break layout */
.wp-block-image,
.wp-block-embed {
  margin: 0;
}

/* Fix for WordPress default link styles */
a {
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

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

/* Clearfix */
.clearfix::after {
  content: "";
  display: table;
  clear: both;
}
