/*--------------------------------------------------------------
# Base Styles
--------------------------------------------------------------*/
/* Set core body defaults */
body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  line-height: var(--line-height-base);
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  color: var(--color-text);
  background-color: var(--color-background);
}

/* Sticky footer layout */
#page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-content {
  flex: 1 0 auto;
}

.site-footer {
  flex-shrink: 0;
}

/*--------------------------------------------------------------
# Headings
--------------------------------------------------------------*/
h1, h2, h3, h4, h5, h6 {
    color: var(--color-heading);
    letter-spacing: -0.03rem;
    font-weight: 600;
    line-height: 1.3;
}

h1 {
  font-size: var(--font-size-h1);
}
h2 {
  font-size: var(--font-size-h2);
}
h3 {
  font-size: var(--font-size-h3);
}
h4 {
  font-size: var(--font-size-h4);
}
/* h5 and h6 can use base or smaller sizes if needed */

/*--------------------------------------------------------------
# Lists
--------------------------------------------------------------*/
ol, ul {
    padding-left: 1rem;
}
li::marker {
    color: var(--color-primary-dark);
}
ul li {
  list-style-type: none;
  position: relative;
}
ol li ul li {
  list-style-type: none;
  position: relative;
  padding-left: 0; 
  margin-left: -1rem;
}
 li::before {
  content: "•"; 
  position: absolute;
  left: -1rem;
  color: var(--color-primary-dark)
}
ol li ul li::before {
  font-size: 1rem;
  top: 0.25rem;
}

/*--------------------------------------------------------------
# Article
--------------------------------------------------------------*/

article {
    margin-top: 1rem;
}

article .page-excerpt {
    color: var(--color-text);
    font-size: var(--font-size-small);
    font-style: italic;
    line-height: 1.6rem;
}

article .entry-header {
    padding: 1rem;
    text-align: center;
}
article .entry-header h1{
    font-size: var(--font-size-h1);
    line-height: 1.2;
    margin-top: var(--space-md);
    margin-bottom: var(--space-sm);
}

article .entry-content {
    font-size: var(--font-size-lg);
    line-height: 1.8;
    margin: 0 auto;
    position: relative;
}

article .entry-content p {
    margin-bottom: var(--space-md);
}
article .entry-content h2, article .entry-content h3 {
    margin-bottom: var(--space-md);
    margin-top: var(--space-sm);
    line-height: 1.3;
    padding-left: calc(1rem - 3px);
    padding-bottom: 0.75rem;
    margin-left: calc(-1rem - 3px);
    border-bottom: solid 6px var(--color-primary-light);
    border-left: solid 6px var(--color-primary-light);
    position: relative;
}
@media (min-width: 769px) {
     article {
         margin-top: 0;
     }
}
/* Progressive enhancement for gradient border */
@supports (background: linear-gradient(to right, red, blue)) {
    article .entry-content h2, article .entry-content h3 {
        border-bottom: none;
    }

    article .entry-content h2::after,
    article .entry-content h3::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 6px;
        background: linear-gradient(to right, var(--color-primary-light), var(--color-background));
    }
}

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

.two-column-right,
.two-column-enneatype {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

@media (min-width: 769px) {
    .two-column-right,
    .two-column-enneatype {
        flex-direction: row;
    }

    .two-column-right .site-main,
    .two-column-enneatype .site-main {
        flex: 1;
    }

    .two-column-right .widget-area,
    .two-column-enneatype .widget-area {
        flex-basis: 300px; /* Example width */
        flex-shrink: 0;
    }
}

/*--------------------------------------------------------------
# Main Content Layout
--------------------------------------------------------------*/
.site-content {
    padding: 0 0 var(--space-lg) 0; /* Vertical padding, no horizontal */
}

.content-wrapper {
    max-width: var(--layout-width);
    margin-left: auto;
    margin-right: auto;
    padding: 0 var(--mobile-padding); /* Horizontal padding */
    word-break: break-word;
}

@media (min-width: 769px) {
    .site-content {
        padding: 0 0 var(--space-xl) 0;
    }
    .content-wrapper {
        padding: 0 var(--space-lg);
    }
}
@media (min-width: 1024px) {
    .content-wrapper {
        padding: 1rem;
    }
}
@media (min-width: 1200px) {
    .content-wrapper {
        padding: 0;
    }
}


/*--------------------------------------------------------------
# Post/Page Content
--------------------------------------------------------------*/
.entry-cover {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    margin-bottom: var(--space-md);
    max-width: 680px;
    margin: 0 auto 1.5rem auto;
}

.entry-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/*--------------------------------------------------------------
# Dynamic Content Layout (Constrained + Full-Width Breakouts)
--------------------------------------------------------------*/
.entry-content {
    --padding-inline: 1rem; /* Default mobile padding */

    display: grid;
    grid-template-columns:
    [full-start] minmax(var(--padding-inline), 1rem)
    [content-start] min(100% - (var(--padding-inline) * 2), 800px) [content-end]
    minmax(var(--padding-inline), 1rem) [full-end];
}

/* Place all direct children in the 'content' column by default */
.entry-content > * {
    grid-column: content;
}

/* Override for Full Width Pages (No Sidebar) */
.site-main--full-width .entry-content {
    display: block;
    max-width: 100%;
}

/* The 'breakout' class for full-width elements */
.entry-content .full-width {
    grid-column: full;
    width: 100%;
    padding: 1rem;
    margin: 0 auto;
    margin-bottom: var(--space-md);
}

/* Add vertical spacing to paragraphs */
.entry-content p {
    padding-block: 0.5rem;
}

/* Media query for tablet and larger */
@media (min-width: 769px) {
    .two-column-right .entry-content,
    .two-column-enneatype .entry-content {
        padding-right: 1rem;
    }
    .entry-content .full-width{
        padding: 2rem;
        max-width: 1000px;
        margin-bottom: var(--space-lg);
    }
}

/*--------------------------------------------------------------
# Links and Buttons
--------------------------------------------------------------*/
main a:not(.btn):not(.btn *):not(.wp-block-button):not(.wp-block-button *)  {
  color: var(--color-primary-dark);
    transition: color 0.3s ease, border-bottom 0.3s ease;
    text-decoration: none;
    border-bottom: solid 1px var(--color-underline);
}

main a:not(.btn):not(.btn *):not(.wp-block-button):not(.wp-block-button):not(.wp-block-button *):hover,
main a:not(.btn):not(.btn *):not(.wp-block-button):not(.wp-block-button):not(.wp-block-button *):focus {
    text-decoration: none;
    border-bottom: solid 1px var(--color-primary);
}
.btn {
    text-align: center;
}
.btn-container {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	margin-top: 2rem;
	align-items: center;
}

.wp-block-button a, .btn:not(:has(a)), .btn a {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    line-height: 1;
    background: var(--color-primary);
    color: #fff;
}
.wp-block-button a:hover, .btn:not(:has(a)):hover, .btn a:hover {
    background: var(--color-primary-dark);

}
.enneagram-button, .pin-button {
    background: var(--color-primary);
    color: white !important;
    padding: 12px 24px;
    border: none;
    border-radius: 9999px;
    font-size: 17px;
    transition: all 0.2s
    ease-in-out;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
}
.enneagram-button:hover{
    background: var(--color-primary-dark);
}
.enneagram-button.sm {
    font-size: 16px;
    padding: 5px 10px;
    min-width: 108px !important;
    min-height: 30px !important;
    display: block;
}

/*--------------------------------------------------------------
# Info Boxes
--------------------------------------------------------------*/
.info-box {
    background-color: var(--color-primary-light);
    font-size: var(--font-size-small);
    padding: var(--space-md);
    font-style: italic;
    border-radius: 1rem;
}
.notice-box {
    background: yellow;
    font-size: 12px;
    text-align: center;
    margin: 0;
}

#notice-container {
    display: none;
}
.inline-box {
    background-color: #efefef;
    font-size: var(--font-size-smaller);
    padding: 1rem;
    font-style: italic;
    border-radius: 1rem;
}
.inline-box a, .info-box a {
    text-decoration: underline !important;
}
.info-sticky .enneagram-button{
    background: white !important;
    color: var(--color-primary-dark) !important;
    text-decoration: none !important;
}
.info-sticky .info-texts a {
    text-decoration: none !important;
    border: 0 !important;
}
/*--------------------------------------------------------------
# Blockquote
--------------------------------------------------------------*/
blockquote {
	position: relative;
	padding-left: 2.5rem;
	padding-right: 2.5rem; /* Add space for the end quote */
	margin: var(--space-md) 0;
	font-style: italic;
    line-height: 1.8rem;;
}

blockquote::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	width: 2rem;
	height: 2rem;
	background-color: var(--color-primary-light);
	-webkit-mask-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 320'%3e%3cpath d='M82.87 129.48S77.32 98.96 114.31 74c-12.95 0-89.7 30.52-89.7 113.74 0 33.09 27.59 59.73 61.01 58.19 29.85-1.37 54.07-25.6 55.44-55.45 1.54-33.41-25.1-61-58.19-61zm154.26 0S231.58 98.96 268.57 74c-12.95 0-89.7 30.52-89.7 113.74 0 33.09 27.58 59.73 61.01 58.19 29.85-1.37 54.07-25.6 55.44-55.45 1.54-33.41-25.1-61-58.19-61z' fill='%23FFF'/%3e%3c/svg%3e");
	mask-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 320'%3e%3cpath d='M82.87 129.48S77.32 98.96 114.31 74c-12.95 0-89.7 30.52-89.7 113.74 0 33.09 27.59 59.73 61.01 58.19 29.85-1.37 54.07-25.6 55.44-55.45 1.54-33.41-25.1-61-58.19-61zm154.26 0S231.58 98.96 268.57 74c-12.95 0-89.7 30.52-89.7 113.74 0 33.09 27.58 59.73 61.01 58.19 29.85-1.37 54.07-25.6 55.44-55.45 1.54-33.41-25.1-61-58.19-61z' fill='%23FFF'/%3e%3c/svg%3e");
	-webkit-mask-size: contain;
	mask-size: contain;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
}

blockquote::after {
	content: '';
	position: absolute;
	right: 0;
	bottom: 0;
	width: 2rem;
	height: 2rem;
	background-color: var(--color-primary-light);
	-webkit-mask-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 320'%3e%3cpath d='M82.87 129.48S77.32 98.96 114.31 74c-12.95 0-89.7 30.52-89.7 113.74 0 33.09 27.59 59.73 61.01 58.19 29.85-1.37 54.07-25.6 55.44-55.45 1.54-33.41-25.1-61-58.19-61zm154.26 0S231.58 98.96 268.57 74c-12.95 0-89.7 30.52-89.7 113.74 0 33.09 27.58 59.73 61.01 58.19 29.85-1.37 54.07-25.6 55.44-55.45 1.54-33.41-25.1-61-58.19-61z' fill='%23FFF'/%3e%3c/svg%3e");
	mask-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 320'%3e%3cpath d='M82.87 129.48S77.32 98.96 114.31 74c-12.95 0-89.7 30.52-89.7 113.74 0 33.09 27.59 59.73 61.01 58.19 29.85-1.37 54.07-25.6 55.44-55.45 1.54-33.41-25.1-61-58.19-61zm154.26 0S231.58 98.96 268.57 74c-12.95 0-89.7 30.52-89.7 113.74 0 33.09 27.58 59.73 61.01 58.19 29.85-1.37 54.07-25.6 55.44-55.45 1.54-33.41-25.1-61-58.19-61z' fill='%23FFF'/%3e%3c/svg%3e");
	-webkit-mask-size: contain;
	mask-size: contain;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
	transform: rotate(180deg);
}

blockquote p:last-of-type {
	margin-bottom: 0;
}
/*--------------------------------------------------------------
# Footer    
--------------------------------------------------------------*/
.site-footer {
    font-size: var(--font-size-small);
    position: relative;
    padding: var(--space-md);
    text-align: center;
    background-color: var(--color-primary);
    border-top: solid 10px var(--color-primary-light);
    border-bottom: solid 15px var(--color-primary-light);
}
.site-footer .footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}
.site-footer .footer-links {
    color: var(--color-primary-light);
    margin: 0.5rem 0;
}
.site-footer a {
    color: var(--color-primary-light);
}
.site-footer p {
    font-size: var(--font-size-smaller);
    color: var(--color-primary-darker);
}
/*--------------------------------------------------------------
# 404 Page
--------------------------------------------------------------*/
.error-404 {
    text-align: center;
    padding: 2rem 1rem;
}
.error404 .hero-title {
    text-align: center;
}
.error404 .hero-container{
    min-height: 150px;
}

/*--------------------------------------------------------------
# Generic Hero
--------------------------------------------------------------*/

.hero-container {
    position: relative;
    min-height: 350px;
    color: var(--color-white);
    display: flex;
    align-items: center;
}

.hero-gradient-overlay{
    background: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.02) 100%);
    position: absolute;
    width: 100%;
    height: 100%;
}

.hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    z-index: 2;
    position: relative;
    width: 100%;
    min-height: 200px;
    justify-content: center;
    padding: 1rem;
}

.hero-container .hero-title {
    color: var(--color-white) !important;
    text-align: center;
    margin: 0;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.hero-image-container {
    max-width: 300px;
    flex-shrink: 0;
}

.hero-image {
    border-radius: 50%;
    width: 300px;
    height: 300px;
    object-fit: cover;
    border: 5px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Hide empty image container when no featured image */
.hero-image-container:empty {
    display: none;
}

.hero-shape {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 0;
    pointer-events: none;
}

.hero-shape svg {
    width: 100%;
    height: 23px;
    display: block;
}

.hero-shape-fill {
    fill: var(--color-background);
}

/* Tablet and Desktop */
@media (min-width: 769px) {
    .hero-container {
        min-height: 400px;
    }


    .hero-inner {
        flex-direction: row;
        justify-content: space-between;
        max-width: 1200px;
        margin: 0 auto;
        align-items: center;
    }

    .hero-content {
        flex: 1;
        margin-top: -5rem;
    }

    .hero-container .hero-title {
        text-align: left;
    }

    .hero-description {
        text-align: left;
        padding: 0;
    }

    .hero-shape svg {
        height: 80px;
    }
}

/*--------------------------------------------------------------
# Large Hero (Home + Test Page)
--------------------------------------------------------------*/

.hero-home {
    position: relative;
    padding: 2rem;
    color: var(--color-white);
    overflow: hidden;
}

.hero-home__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-home__content {
    text-align: center;
    max-width: 65ch;
}

.hero-home__title {
    font-size: var(--font-size-h1);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--color-white);
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.hero-home__lead {
    font-size: var(--font-size-lg);
    line-height: 1.6;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-home__cta {
    display: inline-block;
    padding: 0.875rem 2rem;
    background-color: var(--color-white);
    color: var(--color-primary-dark);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 50px;
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.hero-home__cta:hover {
    color: var(--color-primary);
}

.hero-home__image {
    max-width: 300px;
    flex-shrink: 0;
}

.hero-home__img {
    height: auto;
    object-fit: contain;
}

.hero-home__wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 1;
    pointer-events: none;
}

.hero-home__wave svg {
    width: 100%;
    height: 23px;
    display: block;
}

/* Large Hero Desktop */
@media (min-width: 769px) {
    .hero-home {
        padding-top: 4rem;
        padding-bottom: 6rem;
    }

    .hero-home__inner {
        flex-direction: row;
        justify-content: space-between;
    }

    .hero-home__content {
        text-align: left;
        flex: 1;
    }

    .hero-home__image {
        flex-basis: 35%;
        max-width: 300px;
    }

    .hero-home__wave svg {
        height: 80px;
    }
}

/*--------------------------------------------------------------
# Home Page Content Adjustments
--------------------------------------------------------------*/

.site-main--home h2 {
    border-left: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}

.site-main--home h2::after {
    display: none;
}

.site-main--home .entry-content {
    max-width: none;
}

.site-main--home .entry-content > * {
    grid-column: 1 / -1;
}

/*--------------------------------------------------------------
# Form Styles
--------------------------------------------------------------*/
form#verification_form, #email_form {
    display: flex;
    flex-direction: column;
    align-items: center;
}
#fader{
    margin-left: -1rem;
    width: calc(100% + 2rem);
}
#email_form {
    background: white;
    padding: 35px;
    border-radius: 6px;
    box-shadow: 0px 0px 10px -4px rgba(0, 0, 0, 0.2);
}
#email_form p {
    padding-block: 0;
    margin-bottom: 0;
}
@media screen and (min-width: 768px) {
    #email_form ul {
        -webkit-column-count: 2; /* Chrome, Safari, Opera */
        -moz-column-count: 2; /* Firefox */
        column-count: 2; /* Standard syntax */
        padding: 20px 0;
    }
}

@media (max-width: 767px) {
    #email_form {
        padding: 25px 20px;
        align-items: flex-start;
    }
}

#email_form li {
    font-size: 18px;
}

.action-button {
    background: #1564b8;
    padding: 20px;
    border-radius: 9999px;
    color: #fff;
    cursor: pointer;
    margin-top: 15px;
    margin-bottom: 4px;
    font-weight: 600;
}

.popup-title, #share-result-container h2 {
    font-size: 36px;
    color: #111;
    font-weight: 600;
    text-align: center;
    margin: 10px 0 20px 0;
    line-height: 1;
    border: none !important;
}
.popup-title::after, #share-result-container h2::after {
    height: 0 !important;
}

.popup-description {
    font-weight: 400;
    text-align: center;
    font-size: 16px;
    margin: 10px 0;
    color: #111;
}

.popup-small-info {
    text-align: center;
    font-size: 13px;
    margin-top: 20px;
}

.popup-small-info a {
    color: var(--color-primary);
    text-decoration: underline !important;
    font-weight: 600;
}


.popup-small-info a:hover {
    text-decoration: underline;
}

span#submit_registration {
    margin: 10px 0;
    line-height: 1.2em;
}

div#card-thank-you {
    padding: 35px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

input#email {
    padding: 20px 5px 20px 65px;
    border-radius: 8px;
    border: 1px solid #c1c1c1;
    font-size: 18px;
    outline: none;
    margin-top: 15px;
    margin-bottom: 10px;
    width: 65%;
    background: transparent url("/wp-content/uploads/enneagramly-email-icon.png") no-repeat 20px center;
}

input#email.error {
    border: 1px solid red !important;
}

input#email:focus {
    outline: none;
    box-shadow: 0 0 0 2px #57a4f6;
}

@media (max-width: 767px) {
    .popup-title {
        font-size: 31px;
        margin-bottom: 5px;
        text-align: left;
    }

    .popup-description {
        font-size: 15px;
        margin-bottom: 15px;
        text-align: left;
    }

    .popup-email-input {
        background-size: 25px;
    }

    input#email {
        padding: 10px 5px 7px 45px;
        width: 100%;
        background-size: 25px;
        background-position-x: 12px;
        margin-top: 15px;
    }

    span#submit_registration {
        align-self: center;
    }
}


.submit-feedback-form {
    width: 85%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 auto;
    margin-top: 20px;
}

#verificationWrapper {
    padding: 50px 0;
}


#verification-email-container {
    max-width: 660px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 45px;
}

#verification-email-container .popup-description {
    margin-bottom: 25px;
}

.verification-email-input-wrapper {
    display: flex;
    align-items: center;
    flex: 1;
    width: 100%;
    justify-content: center;
}

#verification_email {
    width: 70%;
    border-radius: 9999px;
    padding: 15px;
    margin-right: 10px;
}

#verification-form-container {
    display: none;
}

#verification-code-container {
    display: flex;
    width: 275px;
    justify-content: space-between;
}

.verification-input {
    font-size: 39px !important;
    width: 60px !important;
    height: 60px !important;
    border-radius: 4px !important;
    border: 1px solid #c8c8c8 !important;
    text-align: center;
    color: var(--color-text) !important;
    font-family: 'Open Sans', sans-serif !important;
}

.verification-input:focus {
    outline: 1px solid var(--color-primary);
}

@media (max-width: 767px) {
    .verification-email-input-wrapper {
        flex-direction: column;
    }

    .verification-email-input-wrapper .enneagram-button.lg {
        width: 100%;
    }

    #verification_email {
        width: 100%;
        margin-bottom: 12px;
        text-align: center;
    }
}