/*
Theme Name: WCM-Divi
Description: A custom Divi theme developed for WealthCreationMastermind.com
Version: 1.0.0
Author: Amanda Weber
Author URI: https://amandaweber.com
Theme URI: https://wealthcreationmastermind.com
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Template: Divi
*/


blockquote {
    border-color: #C2A34D !important;
    background: #fff;
    color: #666;
    padding-top: 30px;
    padding-bottom: 30px;
}
    blockquote a {
        font-weight: bold;
    }

.wp-block-image .alignleft, .wp-block-image.alignleft  {
    margin: .5em 1em .5em 0;
}
.wp-block-image .alignright, .wp-block-image.alignright  {
    margin: .5em 0 .5em 1em;
}

.gfield_label {
    color: #C2A34D;
    font-weight: normal !important;
    text-transform: uppercase;
}
li.gfield {
    margin-bottom: 30px;
}
input.gform_button {
    border: 0;
    background: #C2A34D;
    border: 2px solid #1C4876;
    color: #1C4876;
    padding: 5px 40px;
    text-transform: uppercase;
    cursor: pointer;
    font-weight: bold;
    letter-spacing: 0.1em;
}
    input.gform_button:hover {
        border: 2px solid #C2A34D;
        background: #1C4876;
        color: #C2A34D;
    }


/* === WCM Blog Card Grid (square image tiles with centered title) === */
.wcm-blog-cards .et_pb_post{
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 0;          /* set to 10-16px if you want rounded corners */
  aspect-ratio: 1 / 1;       /* makes the tiles square */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

/* Make featured image fill the entire card */
.wcm-blog-cards .et_pb_post .et_pb_image_container{
  position: absolute;
  inset: 0;
  margin: 0;
}

.wcm-blog-cards .et_pb_post .et_pb_image_container img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Dark overlay on top of the image */
.wcm-blog-cards .et_pb_post::before{
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45); /* adjust overlay darkness */
  z-index: 1;
}

/* Put the title above the overlay, centered */
.wcm-blog-cards .et_pb_post .entry-title{
  position: relative;
  z-index: 2;
  margin: 0;
  text-align: center;
}

/* Remove extra spacing around the title link */
.wcm-blog-cards .et_pb_post .entry-title a{
  color: #fff !important;
  text-decoration: none;
}

/* Hide any remaining meta/excerpt defensively */
.wcm-blog-cards .post-meta,
.wcm-blog-cards .et_pb_post .post-content,
.wcm-blog-cards .et_pb_post .more-link{
  display: none !important;
}

/* Gap between tiles (if your grid feels too tight) */
.wcm-blog-cards .et_pb_blog_grid .et_pb_post{
  margin-bottom: 28px;
}

/* Force the GRID ITEM itself to be square */
.wcm-blog-cards article,
.wcm-blog-cards .et_pb_post{
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.wcm-blog-cards .et_pb_image_container,
.wcm-blog-cards .et_pb_post .et_pb_image_container{
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.wcm-blog-cards .et_pb_image_container a,
.wcm-blog-cards .et_pb_image_container img{
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}

.wcm-blog-cards .et_pb_image_container img{
  object-fit: cover !important;
  object-position: center !important;
}

.wp-pagenavi {
    margin: 20px 0 40px;
    border: 0;
    text-align: center;
}
    .wp-pagenavi a, .wp-pagenavi span{
        font-size: 16px !important;
    }
    .wp-pagenavi span {
        border: none;
        background-color: #E0E0DE;
        display: inline-block;
        padding: 0 15px;
        height: 44px;
        line-height: 44px;
        text-align: center;
    }
    .wp-pagenavi a {
        text-decoration: none;
        border: none;
        background-color: #E0E0DE;
        display: inline-block;
        text-align: center;
        padding: 0 12px;
        min-width: 44px;
        height: 44px;
        line-height: 44px;
        font-weight: 700;
        color: #A4A29D;
    }
        .wp-pagenavi a:hover {
            color: #c2a34d;
            background-color: #fff;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.125);
            transform: translateY(-1px);
        }
    .wp-pagenavi span.current {
        font-weight: 700;
        color: #c2a34d;
        background-color: #f4efdf;
        min-width: 44px;
    }

/* Divi Post Title module: show only the first category link */
.single-category-only .et_pb_title_meta_container a:nth-of-type(n+2){
  display: none !important;
}

/* Remove the comma + space that appear between category links */
.single-category-only .et_pb_title_meta_container a:nth-of-type(1)::after{
  content: "" !important;
}

/* Divi Post Title: show only first category + hide comma text nodes */
.single-category-only .et_pb_title_meta_container{
  font-size: 0 !important;      /* hides commas + spaces that are text nodes */
  line-height: 0 !important;
}

.single-category-only .et_pb_title_meta_container a{
  font-size: 22px;              /* <-- set to whatever your meta font size is */
  line-height: 1.4;
  display: inline-block;
}

.single-category-only .et_pb_title_meta_container a:nth-of-type(n+2){
  display: none !important;     /* hides 2nd+ category links */
}

.et_pb_title_meta_container .author a {
    font-weight: bold;
    color: #1C4876 !important;
}
.et_pb_title_meta_container .published{
    font-style: italic;
}
.saboxplugin-wrap {
    margin: 40px 0 !important;
}

.wcm-post-bottom-meta{
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid rgba(0,0,0,0.12);
  font-size: 16px;
}

.wcm-post-bottom-meta p {
  margin: 0;
  padding: 0;
}

.wcm-post-bottom-meta strong{
  font-weight: 600;
  margin-right: 8px;
  display: inline-block;
  width: 80px;
}

.wcm-post-bottom-meta a {
  text-decoration: none;
  font-weight: bold;
}
    .wcm-post-bottom-meta a:hover {
        text-decoration: underline;
    }



/* Default: keep most items on one line */

/* Only these items wrap */
.wcm-main-nav ul.et-menu > li > a {
  white-space: normal !important;
  line-height: 1.15;
  text-align: center;
  display: inline-block;
  padding: 5px 10px !important;
  max-width: 130px; /* adjust until it breaks like your screenshot */
}
    .wcm-main-nav ul.et-menu > li.et_pb_menu_page_id-1372 > a {
        max-width: 170px;
    }
/* Base link styling (no layout jump on hover) */
.wcm-main-nav ul.et-menu > li > a {
  position: relative;
  border-radius: 6px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* Hover + keyboard focus */
.wcm-main-nav ul.et-menu > li > a:hover,
.wcm-main-nav ul.et-menu > li > a:focus {
  background-color: #173f63;       /* darker blue pill */
  color: #ffffff !important;
  text-decoration: none;
}

/* Active / current page (optional but recommended) */
.wcm-main-nav ul.et-menu > li.current-menu-item > a,
.wcm-main-nav ul.et-menu > li.current_page_item > a {
  background-color: #173f63;
  color: #ffffff !important;
}

.pretty-wrap {
  /* Modern browsers */
  text-wrap: pretty;

  /* Older / partial support */
  widows: 2;
  orphans: 2;

  /* Improves line-breaking behavior generally */
  overflow-wrap: break-word;
}


.two-digit-countdown .days.section.values .value {
  position: relative;
  display: inline-block;
}

/* Hide the leading zero */
.two-digit-countdown .days.section.values .value::first-letter {
  opacity: 0;
}

/* Pull the remaining digits back to center */
.two-digit-countdown .days.section.values .value {
  text-indent: -1ch;
}