/*
Theme Name: Clean Whistle
Description: A WordPress theme for Clean Whistle Officiating - Everything you need to know about hockey!
Author: Clean Whistle Team
Version: 1.0.3
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: clean-whistle
Orange: #db690b
*/

/* Import compiled Tailwind CSS */
@import url('./assets/css/output.css');

/* Custom Font Styles */
body {
  font-family: Arial, sans-serif;
}

.orange-bg {background:#db690b;color:#FFF;}

.ow-button-base a {min-width: 260px;border:none !important;font-weight:bold;background:#db690b !important;color:#FFF !important;border-radius:0px !important;text-transform: uppercase;}

.textwidget p {margin-bottom:15px;font-size:20px;}

h3.widget-title,
h2.sow-headline {font-weight:bold;font-size:26px;}


#newsletter .wpcf7-response-output {color:#FFF;}

@media (max-width:575px) {

  h1 {font-size: 28px !important;}
  h2 {font-size: 26px !important;}
  h3 {font-size: 24px !important;}

  #mobileNav li a {font-weight: bold;text-transform: uppercase;}

  #front-blog a h3 {font-size: 16px !important;}

}


/* WordPress specific styles */
.wp-caption {
  max-width: 100%;
}

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

.alignleft {
  float: left;
  margin: 0 1rem 1rem 0;
}

.alignright {
  float: right;
  margin: 0 0 1rem 1rem;
}

.aligncenter {
  display: block;
  margin: 0 auto;
}

/* 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;
}

/* Page Header Styles */
.page-header {
  height: 200px;
  width: 100%;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.page-header-content {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
  text-align: center;
}

.page-header-title-wrapper {
  width: 100%;
  max-width: 800px;
  padding: 0 1.5rem;
}

.page-header-line {
  border-top: 4px solid #db690b;
  width: 100%;
}

.page-header-title {
  color: #ffffff;
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 1rem 0;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

@media (min-width: 768px) {
  .page-header-title {
    font-size: 2.5rem;
  }
}

/* Newsletter Form Styles */
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 1280px) {
  .newsletter-form {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 1rem;
    align-items: stretch;
  }

  .newsletter-form .newsletter-field {
    width: 100%;
  }

  .newsletter-form .newsletter-field p {
    width: 100%;
    margin: 0;
  }

  .newsletter-form .newsletter-field .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
  }

  .newsletter-form .newsletter-field input[type="text"],
  .newsletter-form .newsletter-field input[type="email"],
  .newsletter-form .newsletter-field select {
    width: 100% !important;
    box-sizing: border-box;
  }

  .newsletter-form .newsletter-submit {
    width: auto;
  }

  .newsletter-form input[type="submit"] {
    padding: 1rem 2.5rem;
    white-space: nowrap;
  }
}

.newsletter-form .newsletter-field,
.newsletter-form .newsletter-submit {
  width: 100%;
}

.newsletter-form .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

.newsletter-form input[type="text"],
.newsletter-form input[type="email"],
.newsletter-form select {
  padding: 1rem;
  width: 100%;
  outline: none;
  border: none;
  font-size: 1rem;
  box-sizing: border-box;
}

.newsletter-form select {
  background-color: #fff;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
}

.newsletter-form input[type="submit"] {
  text-transform: uppercase;
  background-color: #db690b;
  padding: 1rem 2.5rem;
  font-weight: 700;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 100%;
}

@media (min-width: 1280px) {
  .newsletter-form input[type="submit"] {
    width: auto;
  }
}

.newsletter-form input[type="submit"]:hover {
  background-color: #c45a09;
}

/* CF7 specific overrides */
.wpcf7 .newsletter-form .wpcf7-not-valid-tip {
  color: #ff6b6b;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.wpcf7 .newsletter-form .wpcf7-spinner {
  display: none;
}

.wpcf7 .newsletter-form .wpcf7-response-output {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border: none;
  text-align: center;
}

/* Video Upload Form Styles */
.video-upload-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.video-upload-form .form-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 768px) {
  .video-upload-form .form-row {
    flex-direction: row;
    gap: 1rem;
  }
}

.video-upload-form .form-field {
  flex: 1;
}

.video-upload-form .form-field-full {
  width: 100%;
}

.video-upload-form .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

.video-upload-form input[type="text"],
.video-upload-form input[type="email"] {
  padding: 1rem;
  width: 100%;
  outline: none;
  border: 1px solid #e5e7eb;
  font-size: 1rem;
  box-sizing: border-box;
  background-color: #fff;
}

.video-upload-form input[type="text"]:focus,
.video-upload-form input[type="email"]:focus,
.video-upload-form textarea:focus {
  border-color: #db690b;
  outline: none;
}

.video-upload-form textarea {
  padding: 1rem;
  width: 100%;
  min-height: 150px;
  outline: none;
  border: 1px solid #e5e7eb;
  font-size: 1rem;
  box-sizing: border-box;
  resize: vertical;
  font-family: inherit;
}

.video-upload-form input[type="file"] {
  padding: 1rem;
  width: 100%;
  border: 2px dashed #e5e7eb;
  background-color: #f9fafb;
  cursor: pointer;
  box-sizing: border-box;
}

.video-upload-form input[type="file"]:hover {
  border-color: #db690b;
  background-color: #fff;
}

.video-upload-form .form-submit-row {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.video-upload-form input[type="submit"] {
  text-transform: uppercase;
  background-color: #db690b;
  padding: 1rem 3rem;
  font-weight: 700;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-size: 1rem;
}

.video-upload-form input[type="submit"]:hover {
  background-color: #c45a09;
}

/* CF7 specific overrides for video upload form */
.wpcf7 .video-upload-form .wpcf7-not-valid-tip {
  color: #ff6b6b;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.wpcf7 .video-upload-form .wpcf7-spinner {
  display: none;
}

.wpcf7 .video-upload-form .wpcf7-response-output {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border: none;
  text-align: center;
}

/* Generic CF7 Form Styles - applies to all CF7 forms */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"] {
  padding: 1rem;
  width: 100%;
  outline: none;
  border: 1px solid #e5e7eb;
  font-size: 1rem;
  box-sizing: border-box;
  background-color: #fff;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 input[type="url"]:focus,
.wpcf7 textarea:focus {
  border-color: #db690b;
  outline: none;
}

.wpcf7 textarea {
  padding: 1rem;
  width: 100%;
  min-height: 150px;
  outline: none;
  border: 1px solid #e5e7eb;
  font-size: 1rem;
  box-sizing: border-box;
  resize: vertical;
  font-family: inherit;
}

.wpcf7 input[type="file"] {
  padding: 1rem;
  width: 100%;
  border: 2px dashed #e5e7eb;
  background-color: #f9fafb;
  cursor: pointer;
  box-sizing: border-box;
}

.wpcf7 input[type="file"]:hover {
  border-color: #db690b;
  background-color: #fff;
}

.wpcf7 input[type="submit"] {
  text-transform: uppercase;
  background-color: #db690b;
  padding: 1rem 3rem;
  font-weight: 700;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-size: 1rem;
}

.wpcf7 input[type="submit"]:hover {
  background-color: #c45a09;
}

.wpcf7 .wpcf7-not-valid-tip {
  color: #ff6b6b;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.wpcf7 .wpcf7-response-output {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  text-align: center;
}

/* Parents Page - Articles Grid */
.articles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .articles-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.article-card {
  background-color: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.article-card-image {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.article-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-card-content {
  padding: 1rem 0;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.article-card-title {
  font-size: 1rem;
  font-style: normal;
  font-weight: 400;
  color: #000;
  margin-bottom: 1rem;
  flex-grow: 1;
  line-height: 1.4;
  text-align: center;
}

.article-card .btn-primary {
  display: block;
  background-color: #db690b;
  color: #fff;
  padding: 0.875rem 1.5rem;
  font-weight: 700;
  font-size: 0.9375rem;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.3s ease;
}

.article-card .btn-primary:hover {
  background-color: #c45a09;
}

/* Parents Page - Junior Ref Signup Section */
.junior-ref-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 72rem;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .junior-ref-section {
    grid-template-columns: 1fr 1fr;
  }
}

.junior-ref-image {
  order: 2;
}

@media (min-width: 1024px) {
  .junior-ref-image {
    order: 1;
  }
}

.junior-ref-image img {
  width: 100%;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.junior-ref-content {
  order: 1;
}

@media (min-width: 1024px) {
  .junior-ref-content {
    order: 2;
  }
}

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

.junior-ref-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.junior-ref-list .bullet {
  color: #db690b;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

.junior-ref-list h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.junior-ref-list p {
  color: #4b5563;
  margin: 0;
}

.btn-black {
  display: inline-block;
  background-color: #000;
  color: #fff;
  padding: 0.75rem 2rem;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.btn-black:hover {
  background-color: #374151;
}

/* Section Styles */
.section-gray {
  background-color: #f3f4f6;
  padding: 4rem 0;
}

.section-white {
  background-color: #fff;
  padding: 4rem 0;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
}

/* Generic Button Styles */
.btn-primary {
  display: inline-block;
  background-color: #db690b;
  color: #fff !important;
  padding: 0.75rem 2rem;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

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

/* Referee Database Page Styles */
.referee-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

@media (min-width: 768px) {
  .referee-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .referee-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.referee-card {
  text-align: center;
}

.referee-card-image {
  width: 100%;
  aspect-ratio: 1;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin-bottom: 1rem;
}

.referee-card-name {
  color: #db690b;
  font-weight: 700;
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
}

.referee-card-name:hover {
  text-decoration: underline;
}

.referee-card-info {
  font-size: 0.875rem;
  color: #4b5563;
  margin: 0;
}