/*
Theme Name: captainscove
Theme URI: https://dev.snworks.com/captainscove/wp-content/themes/captainscove
Author: Synergy Web Design and Marketing - Lora Champion
Author URI: https://snwebdm.com/
Description: This theme works best with Elementor, although you can also use blocks with it (remove bottom section from functions.php to enable block editor). Recommended plugins: Elementor, Yoast, Contact7, WooCommerce, Ultimate Member.
Tags: blog, one-column, custom-background, custom-colors, custom-logo, custom-menu, editor-style, featured-images, footer-widgets, full-width-template, sticky-post, theme-options, block-styles, wide-blocks
Version: 2.1.0
Requires at least: 5.0
Tested up to: 6.8
Requires PHP: 7.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: captainscove
*/

/* ultimate member login page */
.um-misc-ul li a {
  font-size: 24px !important;
}

.available {
  font-size: 24px;
}

.available h5 {
  font-family: "Poppins", Sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #004c70;
}

li.linkapproved {
  background: green !important;
}

/* adds font awesome v5 fa-solid support */
.fa-solid {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
}

/* <weight>: Use a value from 100 to 900
<uniquifier>: Use a unique and descriptive class name */

.inter-900 {
  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  font-weight: 900;
  font-style: normal;
}

/* required wp styles 10/14/25 */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.screen-reader-text:focus {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip: auto;
}

.wp-caption {
}
.wp-caption-text {
}
.sticky {
}
.gallery-caption {
}
.bypostauthor {
}
.alignright {
}
.alignleft {
}
.aligncenter {
}

/* end wp required styles */
.aligncenter {
}

/* end recommended styles */

body {
  font-family: "Open Sans", sans-serif;
  color: #333;
  line-height: 1.6;
  background-color: #f9fafb;
}

h1,
h2,
h3 {
  font-family: "Poppins", sans-serif;
  color: #004c70;
}

#dashboardnav {
  z-index: 9999;
}

.mega-menu-open,
.mega-menu-primary-mobile-open {
  z-index: 99999 !important;
}

.utility-bar {
  background: #f8f8f8;
}

.utility-bar a {
  color: #004c70;
}

#menumembers_id.menu {
  padding-left: 6px;
}

#menumembers_id.menu li a {
  font-size: 21px;
}

#menumembers_id {
  list-style: none;
  margin-bottom: 0;
  padding-top:12px;
  padding-bottom: 12px;
}

.icons {
  font-size: 21px !important;
  color: #004c70;
}

/*  sticky fixed site header*/
.sticky {
  /* background: #2C3E50; */
  background: #004c70;
  color: white;
  padding: 0;
  position: relative;
  transition: all 0.9s ease; /* smoothness */
  width: 100%;
}

.sticky.fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  z-index: 1000;
}

/*
.sticky .site-header img.img-fluid.mx-auto.top-logo {
  transition: width 0.5s ease, height 0.5s ease;
}

.sticky img.img-fluid.mx-auto.top-logo,
.sticky.unfixed img.img-fluid.mx-auto.top-logo {
  width: 200px !important;
  height: auto;
  padding: 12px 0;
}

*/

.sticky.fixed img.img-fluid.mx-auto.top-logo {
  width: 100px !important;
  height: auto;
  padding: 6px 0;
}

.sticky img.img-fluid.mx-auto.top-logo {
  width: 260px !important;
  height: auto;
  padding: 6px 0;
}

/* contact form */

.wpcf7-form .wpcf7-form-control-wrap button,
.wpcf7-form .wpcf7-form-control-wrap input,
.wpcf7-form optgroup,
.wpcf7-form select,
.wpcf7-form textarea {
  margin: 0;
  font-family: inherit !important;
  font-size: inherit !important;
  line-height: inherit !important;
  padding: 12px !important;
  border-radius: 12px !important;
  width: 100% !important;
  border: 2px solid #ccc !important;
}

.search-container {
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* Input hidden initially, positioned to the left of the button */
.search-field {
  width: 0;
  padding: 0;
  border: 1px solid #ccc;
  border-radius: 20px;
  opacity: 0;
  pointer-events: none;
  transition: width 0.4s ease, padding 0.4s ease, opacity 0.4s ease;
  position: absolute;
  right: 40px; /* space for the magnifying glass */
  font-size: 1em;
  background: #fff;
}

/* Button (magnifying glass) */
.search-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5em;
  z-index: 2;
  position: relative;
}

/* When active, expand input to the left */
.search-container.active .search-field {
  width: 200px; /* adjust width as needed */
  padding: 5px 10px;
  opacity: 1;
  pointer-events: auto;
}

/* calendar archive page */
#my-calendar {
  padding: 40px 10px 80px;
  font-size: 16px;
}

body.single-mc-events article.post {
  max-width: 1280px;
  margin: 20px auto;
}

body.single-mc-events .notice {
  display: none;
}

.listed h5 {
  font-size: 36px !important;
}

.listed li.cat-item {
  font-size: 24px !important;
}

/* mega menu over-ride */
.mega-menu-link {
  font-family: "Inter", sans-serif !important;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
}

h1,
h2,
h3,
h4,
h5 {
}

.doclist {
  font-size: 18px !important;
  font-weight: 500;
  color: #25412b;
}

.site-footer {
  background-color: #004c70;
  color: #fff;
}

.site-footer a {
  color: #fff;
  margin: 0 0.5rem;
}

a.back-to-top {
  text-decoration: none;
}

.back-to-top {
  position: fixed;
  bottom: 65px;
  right: 0px;
  background: transparent;
  color: #fff;
  padding: 10px 13px;
  border-radius: 50%;
  font-size: 30px;
  text-align: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 9999;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

/*  ************************* @media ***************************************** */

@media (max-width: 1420px) {
  #dashboardnav {
    position: fixed !important;
    margin: 0;
  }
}

@media (max-width: 1024px) {
  #dashboardnav {
    position: relative !important;
    margin: 0;
  }
}
/* Medium screens (tablets) */
@media (max-width: 991px) {
  .cal-nowrap.e-con.e-flex {
    /* --width: 100%; */
    --flex-wrap: nowrap !important;
  }

  #dasboard-mt {
    margin-top: 20px;
  }
  .googlemap {
    display: none;
  }
  .sticky {
    /* background: #2C3E50; */
    background: #004c70;
    color: white;
    padding: 0;
    position: relative;
    transition: all 0.9s ease; /* smoothness */
    width: 100%;
  }

  .sticky.fixed {
    position: relative;
  }

  .sticky.fixed img.img-fluid.mx-auto.top-logo {
    width: 100px !important;
    height: auto;
    padding: 6px 0;
  }

  .sticky img.img-fluid.mx-auto.top-logo {
    width: 180px !important;
    height: auto;
    padding: 6px 0;
  }
  .search-container.active .search-field {
    width: 150px; /* slightly smaller on tablets */
  }

  #dashboardnav {
    position: relative !important;
    margin: 0;
  }
}

/* Small screens (mobiles) */
@media (max-width: 480px) {
  .search-container {
    display: flex;
    justify-content: flex-end; /* keep search button on the right */
  }
  .search-field {
    right: 35px; /* adjust for smaller button spacing */
    font-size: 0.9em;
  }
  .search-container.active .search-field {
    width: 120px; /* smaller input for small screens */
    padding: 4px 8px;
  }
}
