/*!
Theme Name: success
Theme URI: http://underscores.me/
Author: Dhali
Author URI: https://dhali.com/
Description: Theme by Dhali
Version: 1.2.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: success
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

success is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
## Layouts
# Components
	- Header / Menu
	- Footer
	- Blog Cards
	- Comments
	- Media
	- Captions
	- Galleries
	- Pagination
	- RYAN
# Blocks
	- Buttons
# plugins
	- Jetpack infinite scroll
	- Gravity Forms
		- form #1
# Utilities
	- Accessibility
	- Bootstrap Additions

--------------------------------------------------------------*/
/*--------------------------------------------------------------
# Layouts
--------------------------------------------------------------*/
#page {
  max-width: 2000px;
  margin: auto;
}
/*--------------------------------------------------------------
# Components
--------------------------------------------------------------*/
/* Header / Menu
--------------------------------------------- */
header#masthead > nav {
  padding: 20px 0;
}

header#masthead > nav .nav-link {
  color: var(--bs-heading-color);
  font-family: var(--wp--preset--font-family--dhali-lato);
}

#menu-bumper {
  padding-top: 110px;
}

#menu-cta-btn {
  font-size: 14px;
  text-transform: uppercase;
}

@media (max-width: 500px) {
  header#masthead > nav {
    padding: 8px 0;
  }

  img.custom-logo {
    max-width: 200px;
    height: auto;
  }

  #menu-bumper {
    padding-top: 76.63px;
  }
}

/* Footer
--------------------------------------------- */
#site-footer {
  padding: 60px 0;
  background-color: var(--wp--preset--color--off-white);
}

.footer-widget h1,
.footer-widget h2,
.footer-widget h3,
.footer-widget h4,
.footer-widget h5,
.footer-widget h6 {
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 30px;
}

.footer-widget h1::after,
.footer-widget h2::after,
.footer-widget h3::after,
.footer-widget h4::after,
.footer-widget h5::after,
.footer-widget h6::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 3px;
  background-color: var(--wp--preset--color--primary-blue);
  left: 56px;
  bottom: 0;
  border-right: 10px solid var(--wp--preset--color--primary-blue);
  box-shadow: 15px 0 0 0 var(--wp--preset--color--primary-blue);
}

.footer-widget h1::before,
.footer-widget h2::before,
.footer-widget h3::before,
.footer-widget h4::before,
.footer-widget h5::before,
.footer-widget h6::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 51px;
  height: 3px;
  background-color: var(--wp--preset--color--primary-blue);
}

#site-copywrite {
  padding: 16px 0;
  color: #fff;
  background-color: var(--wp--preset--color--primary-blue);
}

#site-copywrite a {
  color: #fff;
  text-decoration: none;
}

#site-copywrite a:hover {
  text-decoration: underline;
}

/* Blog Cards
--------------------------------------------- */
.card-img-wrapper {
  height: 250px;
  height: clamp(200px, 30vw, 350px);
}

.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.card-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Adjust card image height on very small screens */
@media (max-width: 350px) {
  .card-img-wrapper {
    height: 180px !important;
  }
}

/* Comments
--------------------------------------------- */
.comment-content a {
  word-wrap: break-word;
}

.bypostauthor {
  display: block;
}

/* Media
--------------------------------------------- */
/* Make sure logo link wraps around logo image. */
.custom-logo-link {
  display: inline-block;
}

/* Captions
--------------------------------------------- */
.wp-caption {
  margin-bottom: 1.5em;
  max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.wp-caption .wp-caption-text {
  margin: 0.8075em 0;
}

.wp-caption-text {
  text-align: center;
}

/* Galleries
--------------------------------------------- */
.gallery {
  margin-bottom: 1.5em;
  display: grid;
  grid-gap: 1.5em;
}

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

.gallery-columns-2 {
  grid-template-columns: repeat(2, 1fr);
}

.gallery-columns-3 {
  grid-template-columns: repeat(3, 1fr);
}

.gallery-columns-4 {
  grid-template-columns: repeat(4, 1fr);
}

.gallery-columns-5 {
  grid-template-columns: repeat(5, 1fr);
}

.gallery-columns-6 {
  grid-template-columns: repeat(6, 1fr);
}

.gallery-columns-7 {
  grid-template-columns: repeat(7, 1fr);
}

.gallery-columns-8 {
  grid-template-columns: repeat(8, 1fr);
}

.gallery-columns-9 {
  grid-template-columns: repeat(9, 1fr);
}

.gallery-caption {
  display: block;
}

/* Pagination
--------------------------------------------- */
/* Make WordPress pagination work with Bootstrap */
.pagination {
  display: flex;
  list-style: none;
  padding-left: 0;
  justify-content: center;
  margin-top: 2rem;
}

.pagination .page-link {
  position: relative;
  display: block;
  padding: 0.5rem 0.75rem;
  margin-left: -1px;
  line-height: 1.25;
  color: var(--wp--preset--color--primary-blue);
  background-color: #fff;
  border: 1px solid #dee2e6;
  text-decoration: none;
}

.pagination .page-link:hover {
  z-index: 2;
  color: #0056b3;
  text-decoration: none;
  background-color: #e9ecef;
  border-color: #dee2e6;
}

.pagination .page-link:focus {
  z-index: 3;
  outline: 0;
  box-shadow: 0 0 0 0.2rem var(--wp--preset--color--primary-blue);
}

.pagination .page-link.active,
.pagination .page-link[aria-active="page"] {
  z-index: 3;
  color: #fff;
  background-color: var(--wp--preset--color--primary-blue);
  border-color: var(--wp--preset--color--primary-blue);
}

.pagination .page-link.dots {
  color: #6c757d;
  pointer-events: none;
  background-color: #fff;
  border-color: #dee2e6;
}

.pagination .page-link:first-child {
  margin-left: 0;
  border-top-left-radius: 0.25rem;
  border-bottom-left-radius: 0.25rem;
}

.pagination .page-link:last-child {
  border-top-right-radius: 0.25rem;
  border-bottom-right-radius: 0.25rem;
}

/* Make pagination more tap-friendly on mobile */
@media (max-width: 575.98px) {
  .pagination .page-link {
    padding: 0.5rem 0.6rem;
    min-width: 38px;
    text-align: center;
  }

  .pagination .dots {
    display: none;
  }
}

/* Adjust card image height on very small screens */
@media (max-width: 350px) {
  .card-img-wrapper {
    height: 180px !important;
  }
}

/*  RYAN  */

#menu-main-menu li > .dropdown-menu {
  max-height: 500px;
  overflow-y: auto;
}

.post-3661 .page-header {
  background-color: var(--wp--preset--color--off-white);
}

.ryan .cta-blue-left-buttons a:last-child {
  background-color: var(--wp--preset--color--dhali-text);
}

/* END */

/*--------------------------------------------------------------
# Blocks
--------------------------------------------------------------*/

/* Button
--------------------------------------------- */
@media (max-width: 576px) {
  .wp-block-buttons
    > .wp-block-button.has-custom-font-size
    .wp-block-button__link {
    padding: 0.6rem 1.5rem !important;
    font-size: 0.95rem;
  }
}

/*--------------------------------------------------------------
# Plugins
--------------------------------------------------------------*/

/* Jetpack infinite scroll
--------------------------------------------- */

/* Hide the Posts Navigation and the Footer when Infinite Scroll is in use. */
.infinite-scroll .posts-navigation,
.infinite-scroll.neverending .site-footer {
  display: none;
}

/* Re-display the Theme Footer when Infinite Scroll has reached its end. */
.infinity-end.neverending .site-footer {
  display: block;
}

/* Gravity Forms
--------------------------------------------- */

/* Form #1 */
#gform_1 .gform_fields {
  column-gap: 10px;
  row-gap: 20px;
}

/*--------------------------------------------------------------
# Utilities
--------------------------------------------------------------*/

/* Accessibility
--------------------------------------------- */

/* Text meant only for screen readers. */
.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: 700;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

.icon-fix {
  line-height: 20px;
}

/* Bootstrap Additions
--------------------------------------------- */
.w-unset {
  width: unset !important;
}

@media (min-width: 576px) {
  .w-sm-unset {
    width: unset !important;
  }

  .w-sm-25 {
    width: 25% !important;
  }

  .w-sm-50 {
    width: 50% !important;
  }

  .w-sm-75 {
    width: 75% !important;
  }

  .w-sm-100 {
    width: 100% !important;
  }
}

@media (min-width: 768px) {
  .w-md-unset {
    width: unset !important;
  }

  .w-md-25 {
    width: 25% !important;
  }

  .w-md-50 {
    width: 50% !important;
  }

  .w-md-75 {
    width: 75% !important;
  }

  .w-md-100 {
    width: 100% !important;
  }
}

@media (min-width: 992px) {
  .w-lg-unset {
    width: unset !important;
  }

  .w-lg-25 {
    width: 25% !important;
  }

  .w-lg-50 {
    width: 50% !important;
  }

  .w-lg-75 {
    width: 75% !important;
  }

  .w-lg-100 {
    width: 100% !important;
  }
}

@media (min-width: 1200px) {
  .w-xl-unset {
    width: unset !important;
  }

  .w-xl-25 {
    width: 25% !important;
  }

  .w-xl-50 {
    width: 50% !important;
  }

  .w-xl-75 {
    width: 75% !important;
  }

  .w-xl-100 {
    width: 100% !important;
  }
}

@media (min-width: 1400px) {
  .w-xl-unset {
    width: unset !important;
  }

  .w-xl-25 {
    width: 25% !important;
  }

  .w-xl-50 {
    width: 50% !important;
  }

  .w-xl-75 {
    width: 75% !important;
  }

  .w-xl-100 {
    width: 100% !important;
  }
}
