/*
Theme Name: Mitigating Dharma
Description: Child theme of Salient for mitigatingdharma.org
Author: Insight Designs
Template: salient
Version: 1.0.0
*/

@import url("../salient/style.css");


/* Styles added by Andy on Oct 3, 2025  */

/* ////////////////////////////////////////////////

Desktop Tweaks 

//////////////////////////////////////////////// */


body .dharma-menu-item:not(.dharma-connect-btn) .dharma-menu-link .dharma-letter {
    margin-bottom: 0px;
}

body #header-outer.small-nav {
    background-color: #f9f9f9 !important;
    box-shadow: 0 3px 1px rgb(0 0 0 / 8%);
}
#header-outer.small-nav .dharma-description {
    color: #ff981a;
    text-shadow: none;
    line-height: 1.3;
}
#header-outer.small-nav .dharma-menu-item:not(.dharma-connect-btn) .dharma-menu-link .dharma-letter {
    min-height: 50px;
}

#header-outer.small-nav .dharma-menu-item.menu-item-833 {
    top: 70px;
    right: 14%;
}

#header-outer.small-nav  li.dharma-menu-item.menu-item-37 {
    margin-top: -20px;
}

#header-outer.small-nav .dharma-menu-item.menu-item-833 .dharma-description {
    font-size: .85rem !important;
}

#footer-widgets .widget_nav_menu ul,
#copyright .widget_nav_menu ul {
    flex-wrap: wrap;
}

body .dharma-description {
    color: #ffb347;
    text-shadow: none;
}

#load-more-btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.spinner {
  display: inline-block;
  width: 1em;
  height: 1em;
  border: 2px solid #fff;
  border-right-color: transparent;
  border-radius: 50%;
  margin-right: 6px;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* === Related Themes Block === */
#care-related-themes {
  /* background-image: url('/wp-content/uploads/2025/11/related-themes-background-yellow.png'); */
  background-color: transparent;
  /* background-size: cover;
  background-position: center; */
  padding: 2.5rem 2rem;
  margin-top: 2rem;
  border-radius: 8px;
  color: rgb(25, 69, 96);
  border: 1px #e3d9d9 solid;
}

#care-related-themes h3 {
  font-size: 1.4rem;
  color: rgb(25, 69, 96);
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Related themes list */
.related-theme-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.related-theme-list li {
  margin: 0.4rem 0;
}

/* Theme links */
.related-theme-link {
  color: rgb(25, 69, 96);
  /* color: white; */
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  transition: color 0.2s ease, transform 0.2s ease;
}

.related-theme-link::after {
  content: " →";
  color: #ff9e21;
  transition: margin-left 0.2s ease;
}

/* Add { } around first letter for parent themes only */
.related-theme-link.parent-theme::first-letter, .related-theme-link.child-theme::first-letter {
  content: "";
  color: #ff9e21;
  position: relative;
}
.page-id-404 #ajax-content-wrap {
    display: block;
    width: 98%;
    margin: 0 6px;
}

/* Hover effect */
.related-theme-link:hover {
  color: #ff9e21;
  transform: translateX(3px);
}

.related-dthemes ul li {
    list-style: none;
}

body.home span.dharma-description {
    color: #ffffff;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

#Letter_Hero img {
    width: 100vw;
    height: auto;
    margin-bottom: -112px;
}
@media only screen and (max-width:1270px) {
    #Letter_Hero img {
        margin-bottom: -60px;
    }
}

@media only screen and (max-width:750px) {
    #Letter_Hero img {
        margin-bottom: -30px;
    }
}

main img.list-hero-rounded-image {
    width: 100%;
}

#ajax-content-wrap li.theme-item {
    margin-bottom: 0px;
}

.care-list-hero-text {
    font-size: 1rem;
    text-transform: uppercase;
    text-align: center;
    margin-top: 20px;
}

.care-list-hero-section {
    margin-bottom: 50px;
}

li.theme-item.has-children.accordion-open {
    /* background-color: #FF8C00; */
    /* color: white; */
    /* border-color: #FF8C00; */
}

body .theme-item.active {
    /* background-color: unset;
    color: unset;
    border-color: unset; */
}
body .accordion-toggle {
    font-size: 1.5rem;
    font-weight: normal;
}
body li.theme-item.has-children.accordion-open .accordion-toggle {
    font-size: 2rem;
}
body li.theme-item.accordion-open span.theme-name {
    font-weight: bold;
}

body li.theme-item .child-theme-item:hover{
    /* color: #194560; */
}
body ul.theme-list li.theme-item:hover {
    /* background: #ff8c18;
    color: #ffffff; */
}

.resource-item .resource-content:before {
    content: "";
    font-family: 'FontAwesome';
    position: absolute;
    width: 40px;
    z-index: -1;
    top: 0px;
    left: -35px;
    height: 45px;
    background: url(/wp-content/uploads/2025/10/Frame.png);
    background-size: contain;
    background-repeat: no-repeat;
}


body #header-secondary-outer {
    background-color: transparent;
    border-bottom: none;
    min-height: unset;
}

body #header-secondary-outer .nectar-center-text {
    text-align: right; 
    padding: 0;
    max-width: 80% !important;
}

body #header-secondary-outer .nectar-center-text a {
    color: #ffffff;
    margin-left: 20px;
    line-height: 1;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}
body #header-secondary-outer .nectar-center-text a:hover {
    text-decoration: underline;
}

body #header-secondary-outer>.container>nav {
    min-height: unset;
    height: 20px;
}

div#header-outer.small-nav #header-secondary-outer .nectar-center-text a {
        color: #ce434e;
        font-size: .85rem;
        text-shadow:none;
}

body:not(.home,.page-id-41) #header-secondary-outer .nectar-center-text a {
    color: #cb3540;
    text-shadow: none;
}

body #header-secondary-outer>.container {
    min-height: unset;
}

body .dharma-menu-item:not(.dharma-connect-btn) .dharma-menu-link .dharma-letter {
    min-height: 60px !important;
}

@media only screen and (min-width:1000px) {
    
    body .dharma-description {
        line-height: 1.5rem;
    }
    .dharma-menu-item.menu-item-833 {
        position: absolute;
        top: 120px;
        right: 8%;
    }
    .dharma-menu-item.menu-item-833 a {
        color: #fff !important;
        text-transform:uppercase;
        font-weight: 600;
        font-size: .8rem !important;
        letter-spacing: 1px;
        transition: all 0.3s ease;
        height: 54px !important;
        margin-left: 5px !important;
    }
    .dharma-menu-item.menu-item-833 a .dharma-description {
        font-size:1rem !important;
    }
    .dharma-menu-item.menu-item-833 .dharma-letter {
        display: none !important;
    }




}




/* /////////////////////////////////////////////////

Middle Styles 

////////////////////////////////////////////////// */

@media only screen and  (max-width:999px) {

    body div#header-outer.scrolled-down {
        background-color:#ffffff !important;
    }
    body #top #logo img,
    #header-outer[data-permanent-transparent="false"] #logo .dark-version {
        height: 74px !important;
    }
    .slide-out-widget-area-toggle.mobile-icon .lines-button:after,
    .slide-out-widget-area-toggle.mobile-icon .lines:after,
    .slide-out-widget-area-toggle.mobile-icon .lines:before {
        height: 3px !important;
        width: 32px !important;
    }
    #footer-outer .one-fourths.span_3 {
        width: 100% !important;
    }
    #footer-widgets .container .col {
        margin-bottom: 0px !important;
    }
    #footer-widgets .col:first-child {
        max-width: unset;
    }
    .video-wrapper img {
        width: inherit !important;
    }
    body .off-canvas-menu-container li.dharma-connect-btn {
        text-align: center;
    }
}

@media only screen and (max-width:999px) {
    
    .nectar-mobile-only.mobile-header {
        display: none;
    }

}


@media only screen and (max-width:769px) {

    .when-harm-arises.wpb_row h1.gradient-text {
        margin-top: 30px;
        font-size: 3.5rem;
        line-height: 4rem;
    }
    .community-heading h2 {
        line-height: 1.2em;
    }
    .community-heading h2 {
        font-size: 2.5rem;
    }
    .community-heading .wpb_wrapper {
        width: 100%;
    }
    body .dharma-subtitle, body .dharma-description {
        text-shadow: 0 0 5px #000000, 0 0 15px #000000, 0 0 20px #000000, 0 0 25px #000000;
    }

    .off-canvas-menu-container.mobile-only .secondary-header-text {
        position: absolute;
        bottom: 0;
        width: 80%;
        text-align: center;
    }
    .off-canvas-menu-container.mobile-only .secondary-header-text a {
        display: block;
        margin-bottom: 15px;
    }

    body .dharma-menu-item:not(.dharma-connect-btn) .dharma-menu-link .dharma-letter {
        min-height: 30px !important;
    }
    .red-flag {
        margin: 0 auto!important;
        float: none!important;
    }


}

@media only screen and (min-width:480px) and (max-width:769px) {





}





@media only screen and (max-width:600px) {
    #footer-widgets .dharma-footer-logo-section {
        flex-direction: column;
        align-items: center;
    }
}

/* /////////////////////////////////////////////////

Phone Styles 

////////////////////////////////////////////////// */

@media only screen and (min-width:0px) and (max-width:479px) {

    .when-harm-arises.wpb_row h1.gradient-text {
        margin-top: 20px;
        font-size: 2rem;
        line-height: 2.2rem;
    }
    .homepage-resources-slider .slick-slide {
        background-size: cover;
    }
    .homepage-resources-slider .slick-dots {
        bottom: unset;
        position: relative;
    }
    .caveat-of-care {
        margin-top: 0px !important;
        padding-top: 0px !important;
    }
    body .vertical-sidebar-text {
        transform: rotate(0deg);
        position: relative;
        writing-mode: unset;
    }
    h1 {
        font-size: 2rem;
        line-height: 2rem;
    }
    div#ajax-content-wrap {
        max-width: var(--mobile-container-width);
        margin: 0 auto;
    }
    #ajax-content-wrap:not(.page-id-2 #ajax-content-wrap) {
        padding-top: 30px;
    }
    .resource-item .resource-content:before {
        display:none;
    }
    body #slide-out-widget-area .secondary-header-text {
        line-height: 0.9em !important;
        margin-bottom: 20px !important;
        padding-top: 15px !important;
    }
    body #slide-out-widget-area .secondary-header-text a {
        margin-bottom: 10px !important;
    }
}

.bibliography-item a::after, .resource-title a::after {
  content: " ↗";
  margin-left: 4px;
  font-size: 1.3em;
  opacity: 0.65;
  font-weight: 1000;
}

.video-wrapper {
  position: relative;
  display: inline-block; /* Keeps wrapper sized to image */
}

.video-thumbnail {
  display: block;
  width: 100%;
  height: auto;
}

.video-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  
  /* Optional: makes the button clickable and clean */
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;

  /* Optional: disable default button styling */
  outline: none;
}

.video-play-button svg {
  display: block;
  width: 100%;
  height: auto;
}
.video-play-button:hover svg {
  transform: scale(1.05);
  transition: transform 0.2s ease;
}



/* Andy's styles Oct 29th */

body.page-id-41 #header-outer {
	    background: linear-gradient(0deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.38) 100%);
}

body.page-id-41 #header-outer.small-nav {
	    background: unset;
}

.connect-hero h2, .connect-hero h3, .connect-hero p, .connect-hero a {
    text-shadow: 0 0 10px rgba(0, 0, 0, .9);
}

body.page-id-41 a#logo {
    background: #77970278;
    box-shadow: 0 0 15px #617b068f, 0 0 30px #617b068f, 0 0 45px #617b068f, 0 0 60px #617b068f, 0 0 75px #617b068f;
    border-radius: 50%;
}

body.page-id-41 #header-outer.small-nav a#logo {
    background: none;
    box-shadow: none;
    border-radius: none;
}

body.page-id-41 div#ajax-content-wrap {
    padding-top: 0px !important;
}

/* Andy's footer styles Nov 5th */

.footer-submenu-wrapper {
    display: none;
}

#footer-widgets .row .col.span_3.footer-col-2.one-fourths.right-edge {
    flex-direction: column;
}

#footer-widgets #block-9 {
    margin-left: 60px;
}

@media only screen and (max-width:779px) {
    #footer-widgets #block-9 {
        margin-left: 0px;
    }

    #footer-outer[data-full-width="1"] .container {
        padding: 0px !important;
    }
    #footer-widgets {
        padding: 30px 0px !important;
    }
}


#footer-widgets #block-9 ul.wp-block-list li {
    border-bottom: 0px;
    border-right: 1px solid;
	  padding-block: 0;
    padding-inline: 10px;
}

#footer-widgets #block-9 ul.wp-block-list li:last-child {
	border-right: none;
}

#block-9 ul {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

#block-9 ul, #block-9 a {
    color: #6c6b6b;
    line-height:1.3;
}


.care-footer .see-all-quotes {
    padding: 10px 24px;
    background: #007cba;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.2s ease;
    float:right;
        border-radius: 24px;
}