/*
 Theme Name:   GeneratePress MLM 
 Theme URI:    https://generatepress.com
 Description:  GeneratePress child theme modified for MLM
 Author:       Fontaholic Designs
 Author URI:   https://fontaholic.biz
 Template:     generatepress
 Version:      0.1
 
 #2E3086 blue
 #DF6420 orange
 #00A7A5 teal
*/

/* Layout */
div.site-logo {margin-left:-116px;}
#page {margin-top:-2rem;}
body.wp-singular #page {margin-top:0;}
#main.site-main {margin:0;}
#right-sidebar,#left-sidebar {margin-top:10rem;}
div.inside-article {background-color:transparent; padding-top:0!important;}
body.archive div.inside-article,body.blog article.post {border-bottom:1px solid #2F3186;}
.separate-containers .inside-article,.separate-containers .inside-page-header {padding-left:0}

/* Buttons */
a.button,input.button {border-radius:100px;}
a.button,input.button {border-radius:100px;}
.wp-block-button__link {text-transform: uppercase;}

/* Navigation */
.main-navigation .main-nav ul li:last-child>a {padding-right:0!important;}
.main-navigation .main-nav ul li+li {position:relative;}
.main-navigation .main-nav ul li+li::before {content:""; position:absolute; left:0; top:50%; transform:translateY(-50%); height:1.2em; width:2px; background:#9a9a9a;}

/* Home */
body.home header:first-of-type .inside-header {position: relative;}
body.home header:first-of-type .inside-header::after {content: ""; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 100vw; border-bottom: 6px solid #F57128;}


/* Header containers – normalize */
header.page-header,.single .entry-header {padding:0; margin:0; position:relative;}

/* Align blog + archive headers */
body.blog header.page-header,body.archive header.page-header {padding-left:0; padding-right:0;}

/* Left sidebar: align title text to sidebar edge */
body.left-sidebar.blog h1.page-title,body.left-sidebar.archive h1.page-title {padding-left:calc(50vw - 50% - 300px);}

/* Full-width orange title bar */
h1.entry-title,h1.page-title {display:block; width:100vw; margin:0 calc(49% - 50vw); padding:1.75rem calc(50vw - 50% + var(--content-padding,40px)); background:#df6420; color:#fff; font-weight:600; line-height:1.15; position:relative; white-space:normal; overflow-wrap:anywhere; word-break:break-word; hyphens:auto; box-sizing:border-box;}

/* Extend orange behind grid */
h1.entry-title::before,h1.page-title::before {content:""; position:absolute; inset:0; left:-100vw; background:#df6420; z-index:-1;}


html body.blog div#page.hfeed div#content.site-content div#primary.content-area main#main.site-main article div.elementor-element.elementor-element-00ccfda.elementor-widget.elementor-widget-html {display: none;}


.resources-category-sections {
  display: grid;
  gap: 4rem;
}

.resource-subcategory {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e7e1d8;
}

.resource-featured-post {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.75rem;
  align-items: start;
}

.resource-featured-post.has-resource-image {
  grid-template-columns: minmax(0, 1.6fr) 300px;
}

.resource-featured-title {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  font-weight: 700;
}

.resource-featured-title a,
.resource-other-posts a {
  text-decoration: none;
}

.resource-featured-title a {
  color: #df6420;
  border-bottom: 0;
}

.resource-featured-title a:hover,
.resource-featured-title a:focus {
  color: #c4561b;
  text-decoration: none;
}

.resource-featured-excerpt {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #2f2f2f;
  max-width: 42rem;
}

.resource-featured-excerpt p {
  margin-bottom: 1rem;
}

.resource-featured-media {
  justify-self: end;
}

.resource-featured-image {
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 0;
  box-shadow: none;
}

.resource-featured-cta {
  margin: 1.5rem 0 0;
}

.resource-button {
  display: inline-block;
  padding: 0.9rem 1.7rem;
  border-radius: 999px;
  background: #0fa7a6;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
}

.resource-button:hover,
.resource-button:focus {
  background: #0b8f8f;
  color: #fff;
  text-decoration: none;
}

.resource-other-posts {
  margin: 1.5rem 0 0;
  padding-left: 1.2rem;
}

.resource-other-posts li {
  margin-bottom: 0.5rem;
}

.resource-other-posts a {
  color: #2e3086;
  font-size: 1rem;
}

.resource-other-posts a:hover,
.resource-other-posts a:focus {
  color: #df6420;
  text-decoration: underline;
}

.resource-subcategory-meta {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #727272;
}

.resource-subcategory-meta a {
  color: inherit;
  text-decoration: none;
}

.resource-subcategory-meta a:hover,
.resource-subcategory-meta a:focus {
  color: #2e3086;
  text-decoration: none;
}

@media (max-width: 900px) {
  .resource-featured-post.has-resource-image {
    grid-template-columns: 1fr;
  }

  .resource-featured-media {
    justify-self: start;
  }

  .resource-featured-image {
    max-width: 100%;
  }
}



/* Mailchimp Signup */
#mc_embed_signup {border:1px solid #2e3086; padding:5%; background:#f5ffff!important;}
input#mc-embedded-subscribe.button,input.email {width:100%!important; margin:3% 0; }
#mc_embed_signup_scroll>label:nth-child(1) {font-weight:600; font-size:1.4rem;}
input#mc-embedded-subscribe.button {text-transform: uppercase;}

/* Subpages Dropdown */
.subpages-dropdown-container {position:absolute; right:var(--content-padding,40px); top:50%; transform:translateY(-50%); background:#fff!important; padding:10px 14px; min-width:190px; z-index:20; border:1px solid #d9d9d9;}
.subpages-dropdown-view-all {color:#2e3086!important; font-weight:600; text-decoration:none; display:flex; align-items:center; justify-content:space-between; gap:10px;}
.subpages-dropdown-view-all::after {content:""; border-left:6px solid transparent; border-right:6px solid transparent; border-top:8px solid #2e3086!important;}
.subpages-dropdown {display:none; position:absolute; top:100%; left:0; width:100%; background:#2e3086; list-style:none; margin:0; padding:0;}
.subpages-dropdown-container:hover .subpages-dropdown,.subpages-dropdown-container:focus-within .subpages-dropdown {display:block;}
.subpages-dropdown a {color:#fff; text-decoration:none; display:block; padding:12px 14px;}
.subpages-dropdown a:hover {background:rgba(255,255,255,0.08);}

/* Footer */
div.site-footer footer.site-info div.inside-site-info.grid-container div.copyright-bar b a {color: #00A7A5;}

/* Mobile */
@media (max-width:768px){
  .subpages-dropdown-container {position:static; transform:none; margin-top:10px;}
  .subpages-dropdown {position:static; display:block;}
}
