:root {
  --mobile-font-size-h1: 35px;
  --mobile-content-title-size: 28px;
  --mobile-post-title-size: 28px;
  --mobile-font-size-h2: 1.8em;
  --mobile-font-size-h3: 18px;
  --mobile-content-text-size: 16px;
  --mobile-button-text-size: 16px;
}

/* =========== */
/* H E A D E R */
/* =========== */
#site-navigation .main-navbar {
  width: 100%;
}

/* =========== */
/* F O O T E R */
/* =========== */
/* Flex layout */
.row.clearfix {
  display: flex;
  justify-content: space-between;
  width: 100%;
}
.widget_block.footer-widget {
  flex: 1; /* Equal growth factor for all widgets */
  padding: 25px;
  margin-left: 15px;
  margin-right: 15px;
}
.widget_block.footer-widget:first-child {
  flex: 2; /* Or any other ratio to give the first widget more space */
  max-width: none;
}
/* Colour */
.footer:before {
  background-color: black;
  background-image: none;
}
.widget_block.footer-widget h4 {
  color: #1ca1db;
  margin-bottom: 10px;
}
.widget_block.footer-widget p,
.widget_block.footer-widget a,
.widget_block.footer-widget a:hover {
  font-size: 14px;
  color: #cccccc;
  line-height: 1em;
}
.widget_block.footer-widget a:hover {
  text-decoration: underline;
}
.footer-logo {
  margin-bottom: 10px;
}
.organization-description {
  padding-right: 80px;
}
/* bullets point, padding and margin */
footer ul {
  list-style-type: none;
}
footer ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}
@media (max-width: 600px) {
  .widget_block.footer-widget p,
  .widget_block.footer-widget a,
  .widget_block.footer-widget a:hover {
    font-size: 12px;
  }
  .organization-description {
    padding-right: 0;
  }
  .widget_block.footer-widget .fa {
    font-size: 16px;
  }
}

/* Contact us */
.widget.contact-information p {
  margin-bottom: 5px;
}

/* Follow us - social media icons */
.widget_block.footer-widget .fa {
  font-size: 24px;
  margin-right: 15px;
}

/* Footer headers */
.widget-newsletter-signup,
.widget.contact-information,
.widget-newsletter-signup,
.legal {
  margin-top: 35px;
}

/* footer credit */
.footer .footer-credits {
  border-top: 1px solid #ccc;
  padding-top: 20px;
}
.footer .footer-credits a {
  color: white;
}
.footer .footer-credits a:hover {
  color: white;
}
/* ======================== */
/* G E N E R A L  P A G E S */
/* ======================== */
/* Headings */
h1 {
  font-size: 60px;
  line-height: 1.2em;
  color: white;
  font-weight: 900;
  /* padding: 30px; */
  text-align: center;
}
h3 {
  font-size: 25px;
  line-height: 1.2em;
  color: white;
  font-weight: 500;
}
@media (max-width: 600px) {
  h1 {
    font-size: var(--mobile-font-size-h1);
  }
  h3 {
    font-size: var(--mobile-font-size-h3);
  }
}

/* content */
.content-piece {
  padding: 25px;
}
.content-piece.left {
  padding-right: 100px;
}
.content-piece.right {
  padding-left: 100px;
}
.content-title,
body.single h2 {
  color: #185e9a;
  /* font-weight: bolder; */
  margin-bottom: 30px;
  font-size: 35px;
}
h2.content-title,
body.single h2 {
  display: inline-block;
  padding-bottom: 20px;
  position: relative; /* Needed for absolute positioning of the pseudo-element */
}
h2.content-title::after,
body.single h2::after {
  content: "";
  display: block;
  width: 40%; /* Adjust this width to control the underline length */
  height: 4px; /* Thickness of the underline */
  background-color: #1ca1db; /* Color of the underline */
  position: absolute;
  left: 0;
  bottom: 0; /* Adjust if you need more or less space below the text */
}
/* center the underline for centered titles - need to add additional "centered" class */
h2.content-title.centered {
  text-align: center;
}
h2.content-title.centered::after {
  left: 50%; /* Moves the starting point of the underline to the middle of the element */
  transform: translateX(-50%); /* Centers the underline relative to its width */
}
.content-text,
#single-post .content-piece .content-text,
body.single p:not(.author):not(footer p) {
  text-align: left;
  color: #555555;
  font-size: 22px;
  font-weight: 300;
  line-height: 1.5;
  padding-bottom: 15px;
}
.content-text li {
  list-style-type: disclosure-closed;
}
@media (max-width: 600px) {
  .content-title {
    font-size: var(--mobile-content-title-size);
  }
  h2 {
    line-height: 35px;
  }
  .content-text {
    font-size: var(--mobile-content-text-size);
  }
  .content-piece {
    padding-top: 30px;
  }
  .content-piece.left {
    padding-right: 0;
  }
  .content-piece.right {
    padding-left: 0;
  }
  #mlb2-14472570.ml-form-embedContainer
    .ml-form-embedWrapper
    .ml-form-embedBody
    .ml-form-embedContent
    h4,
  #mlb2-14472570.ml-form-embedContainer
    .ml-form-embedWrapper
    .ml-form-successBody
    .ml-form-successContent
    h4 {
    font-size: 22px;
  }
}

/* Header banner image */
.page-hero-banner h1 {
  color: #fff;
  font-size: 40px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6); /* Text shadow for better readability */
}
.page-hero-banner {
  /* background-image: url("/wp-content/uploads/2018/11/YMCO_Header_Banner.png"); */
  background-image: url("/wp-content/uploads/2024/05/Hero_Banner-Dark-blue.png");
  /* background-image: url("/wp-content/uploads/2024/05/Hero_Banner-Light-blue.png"); */
  height: 200px; /* Set the height of the banner */
  background-size: cover; /* Ensure the background covers the full banner */
  background-position: center; /* Center the background image */
  display: flex; /* Use flexbox for alignment */
  align-items: center; /* Center the content vertically */
  justify-content: center; /* Center the content horizontally */
  color: #ffffff; /* White color for text */
  font-size: 2rem; /* Larger font size for visibility */
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); /* Text shadow for better readability */
  margin-bottom: 100px;
}
@media (max-width: 600px) {
  .page-hero-banner h1 {
    font-size: 25px;
    padding: 30px;
  }
}

/* CTA Button */
#primary-button-outline,
#primary-button,
#secondary-button,
.primary-button,
.secondary-button,
#comments .submit {
  background-color: green; /* Light blue color from your logo */
  border: none;
  color: white;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 20px;
  font-weight: bolder;
  margin: 24px 2px;
  cursor: pointer;
  border-radius: 5px; /* Rounded corners for a modern look */
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19); /* Adds shadow for depth */
  transition: background-color 0.3s, box-shadow 0.3s; /* Smooth transition for hover effects */
}
#primary-button:hover,
#secondary-button:hover,
.primary-button:hover,
.secondary-button:hover,
#comments .submit:hover {
  background-color: darkgreen; /* Darker blue for hover effect */
  box-shadow: 0 12px 16px 0 rgba(0, 0, 0, 0.24),
    0 17px 50px 0 rgba(0, 0, 0, 0.19); /* Larger shadow on hover */
}
#primary-button,
.primary-button {
  text-align: center;
  padding: 12px 50px; /* Increased padding for a longer button */
}
#secondary-button,
.secondary-button,
#comments .submit {
  text-align: left;
  padding: 12px 30px;
  text-transform: none;
}
#primary-button-outline,
.primary-button-outline {
  background-color: transparent;
  border: 4px solid #ffffff;
  color: #ffffff;
}
#primary-button-outline:hover,
.primary-button-outline:hover {
  background-color: green;
  border: 4px solid transparent;
}
@media (max-width: 600px) {
  #primary-button-outline,
  #primary-button,
  #secondary-button,
  .primary-button,
  .secondary-button,
  #comments .submit {
    font-size: var(--mobile-button-text-size);
    /* margin: 24px 2px; */
    /* border-radius: 5px;  */
  }
}

/* ========= */
/* C A R D S */
/* ========= */
.card-container {
  display: flex;
  justify-content: center; /* Aligns the cards horizontally in the center */
  align-items: start; /* Aligns cards to the top of the container */
  flex-wrap: wrap; /* Allows cards to wrap to next line if not enough space */
  gap: 30px; /* Provides space between cards */
}
.card {
  width: 300px; /* Fixed width for each card */
  display: flex;
  flex-direction: column; /* Stack image and content vertically */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  border-radius: 5px;
  overflow: hidden; /* Ensures contents do not spill outside the border */
  background: #fff; /* Optional: sets a background color */
}
.card-container .card img {
  width: 100%; /* maintain full width */
  height: 200px; /* fix the height */
  object-fit: cover; /* cover the frame without distorting the image */
  object-position: center; /* center the image within the frame */
}
.card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1; /* Takes up remaining space in the card */
}
.card h3,
.what-we-do-card-titles,
body.single h3:not(.author-name) {
  margin-top: 10px;
  margin-bottom: 20px;
  color: #185e9a; /* Theme color for the header */
  font-size: 25px;
}
.card p {
  flex-grow: 1; /* Ensures the paragraph expands to fill available space */
}
.secondary-button {
  align-self: center;
  padding: 10px 20px;
  background-color: green;
  color: white;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s;
}
.secondary-button:hover {
  background-color: darkgreen;
}
/* ========= */
/* S T A T S */
/* ========= */
.content-title-stats {
  color: white;
  font-weight: 900;
  margin-bottom: 10px;
  font-size: 35px;
  text-align: center;
}
.elementor-counter {
  padding: 20px;
}
.elementor-counter .elementor-counter-number-prefix,
.elementor-counter .elementor-counter-number {
  font-size: 40px;
  color: #1ca1db;
}
.elementor-counter .elementor-counter-title {
  font-size: 20px;
  color: #185e9a;
}

/* ====================== */
/* S I N G L E  P O S T S */
/* ====================== */
#single-post.container {
  padding-left: 10%;
  padding-right: 10%;
}
.post-hero {
  position: relative;
  width: 100%; /* Adjust the width of the image container */
  margin: 20px auto; /* Center the image container, add margin for avatar */
  overflow: visible; /* Allow contents to overflow the boundaries */
  text-align: center; /* Aligns text to the center */
}
.featured-image {
  width: 100%; /* Ensures the image covers the container */
  height: auto; /* Maintains aspect ratio */
  display: block; /* Removes any unwanted space below the image */
}
.post-hero .post-title {
  position: absolute; /* Positions the title absolutely relative to its parent */
  top: 50%; /* Centers vertically */
  left: 50%; /* Centers horizontally */
  transform: translate(
    -50%,
    -50%
  ); /* Adjusts the positioning to be perfectly centered */
  color: white; /* Sets the text color */
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.7); /* Adds text shadow for better visibility */
  width: 100%; /* Ensures the title spans the width of the container */
}
.featured-image,
#single-post .content-piece img {
  width: 100%;
  height: 400px; /* Fixed height for the image */
  object-fit: cover; /* Ensures the image covers the area */
  display: block;
}
#single-post .content-piece img {
  width: 60%;
  height: 300px;
  margin: auto;
  padding: 20px;
}
#single-post .content-piece .gallery-images {
  width: 30%;
  height: 200px;
  margin: auto;
  padding: 20px 5px;
  display: inline-block;
}
.author-info {
  position: absolute;
  bottom: -100px; /* Position the bottom of the avatar half outside the image */
  left: 50%;
  transform: translateX(-50%); /* Center horizontally */
  text-align: center; /* Center text under the avatar */
  margin-left: 0;
}
.author-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 5px solid white;
  display: block; /* Ensure block display for proper alignment */
  margin: 0 auto; /* Center the avatar */
  background: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Optional: add shadow for depth */
}
.author-name {
  color: #333333; /* Adjust text color as needed */
  margin-top: 0px; /* Space between avatar and name */
  font-size: 20px;
}
.author-info::after {
  content: "";
  display: block;
  width: 150px; /* Adjust this width to control the underline length */
  height: 4px; /* Thickness of the underline */
  background-color: #1ca1db; /* Color of the underline */
  position: relative;
  left: 0;
  bottom: -10px; /* Adjust if you need more or less space below the text */
  text-align: center;
}
#single-post .content-title {
  margin-top: 100px;
  margin-bottom: 0;
}
/* comments section */
#comments p,
#comments textarea {
  font-size: 18px;
}
#comments .submit {
  height: 100%;
}
@media (max-width: 600px) {
  .author-avatar {
    width: 90px;
    height: 90px;
  }
  #single-post .content-title {
    margin-top: 0;
    font-size: var(--mobile-post-title-size);
    padding-top: 30px;
  }
  .content-title,
  body.single h2 {
    font-size: var(--mobile-post-title-size);
  }
  #single-post .content-piece {
    padding-top: 30px;
  }
  .content-text,
  #single-post .content-piece .content-text,
  body.single p:not(.author):not(footer p) {
    font-size: 16px;
  }
  .card h3,
  .what-we-do-card-titles,
  body.single h3:not(.author-name) {
    font-size: var(--mobile-font-size-h3);
    margin-bottom: 5px;
  }
}

/* ================== */
/* M I L E S T O N E  */
/* ================== */
.timeline {
  position: relative;
  width: 100%;
  padding: 40px 0;
}
.timeline::after {
  content: "";
  position: absolute;
  width: 6px;
  background-color: #ddd;
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
}
.milestone-entry {
  position: relative;
  width: 50%;
  padding: 20px;
  box-sizing: border-box;
}
.milestone-entry::after {
  content: "";
  position: absolute;
  width: 25px;
  height: 25px;
  right: -13px;
  background-color: #ffffff;
  border: 4px solid #1ca1db;
  /* border: 4px solid #ffffff; */
  top: 15px;
  border-radius: 50%;
  z-index: 1;
}
.milestone-entry.left {
  left: 0;
}
.milestone-entry.right {
  left: 50%;
}
.milestone-entry .content {
  padding: 20px;
  background: white;
  position: relative;
  border-radius: 8px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
}
.milestone-entry.left .content {
  margin-right: 30px;
}
.milestone-entry.right .content {
  margin-left: 30px;
}
.milestone-entry.right::after {
  /* left: auto; */
  /* right: -13px; */
  right: auto;
  left: -13px;
}
.hub-updates img {
  width: 100%; /* maintain full width */
  max-height: 400px; /* allows for flexible height */
  object-fit: cover; /* cover the frame without distorting the image */
  object-position: center; /* center the image within the frame */
}

/* ============== */
/* C O N T A C T  */
/* ============== */
/* Styles for the contact form container */
.contact-form {
  max-width: 600px; /* Limits the width of the form */
  margin: 0 auto; /* Centers the form in the page */
  padding: 20px; /* Adds padding inside the form */
  background-color: #f9f9f9; /* Light grey background */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
  border-radius: 8px; /* Rounded corners */
}

/* General styles for input fields and textarea */
.contact-form input,
.contact-form textarea {
  width: 100%; /* Full width */
  padding: 10px; /* Padding inside the fields */
  margin: 8px 0; /* Margin for spacing between fields */
  box-sizing: border-box; /* Includes padding in width calculation */
  border: 1px solid #ccc; /* Light grey border */
  border-radius: 4px; /* Rounded corners for the fields */
  font-size: 16px; /* Matches the font size of paragraphs */
}

/* Specific styles for the textarea to adjust height */
.contact-form textarea {
  height: 150px; /* Sets a fixed height for the textarea */
  resize: vertical; /* Allows only vertical resizing */
}

/* Styles for the submit button */
.contact-form22222 .secondary-button {
  background-color: #0056b3; /* Blue background */
  color: white; /* White text */
  border: none; /* No border */
  padding: 10px 20px; /* Padding for the button */
  cursor: pointer; /* Pointer cursor on hover */
  border-radius: 4px; /* Rounded corners for the button */
  transition: background-color 0.3s; /* Smooth transition for hover effect */
  font-size: 16px; /* Ensures font size matches other inputs */
  display: block; /* Makes the button block level */
  width: 100%; /* Full width */
  margin-top: 10px; /* Margin on top for spacing */
}

/* Hover and focus styles for inputs and button */
.contact-form input:hover,
.contact-form input:focus,
.contact-form textarea:hover,
.contact-form textarea:focus,
.contact-form22222 .secondary-button:hover {
  border-color: #0056b3; /* Blue border on hover/focus */
}

.contact-form22222 .secondary-button:hover {
  background-color: #004494; /* Darker blue on hover */
}

/* Ensures placeholders have a lighter color */
::placeholder {
  color: #aaa; /* Light grey for placeholders */
  opacity: 1; /* Fixes any cross-browser opacity issues */
}
