/* CSS Document */

/* -----------------------------------------------------
   Newsletter Builder – Base Styling
   ----------------------------------------------------- */

:root {
    --nl-max-width: 750px;
    --nl-sidebar-width: 380px;
    --nl-spacing: 2.2rem;
    --nl-card-gap: 1.5rem;
    --nl-header-color-text: #eaeaea;
	--nl-color-text: #333;
    --nl-color-muted: #777;
    --nl-color-button: #FF233C;
    --nl-color-button-text: #fff;
    --nl-color-border: #e5e5e5;
    --nl-radius: 30px;
	--nl-image-radius: 10px;
}

/* General wrapper */
.newsletter-layout {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
	max-width: 1240px;
	margin: 0 auto;
}

.newsletter-main {
    flex: 1;
    max-width: var(--nl-max-width);
}

.newsletter-content {
	padding:0 30px 0px; 
	background:#dfdfdf;
	border-radius: 6px;
    overflow: clip;
    box-shadow: 0 0 33px 0px rgba(0, 0, 0, .2);

}
.breakout {
    margin-left: -30px;
    margin-right: -30px;
    width: calc(100% + 60px);
	border-radius: 0 !important;
}

p {margin-bottom:1em;}
p:last-child {margin-bottom:0em;}

/* Sidebar */
.newsletter-sidebar {
    width: var(--nl-sidebar-width);
    border-left: 1px solid var(--nl-color-border);
    padding-left: 2rem;
}

.newsletter-archive-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.newsletter-archive-list li {
    margin-bottom: 0.8rem;
}

.newsletter-archive-item-title {
    font-weight: 500;
}

.newsletter-archive-item-date {
    color: var(--nl-color-muted);
    font-size: 0.85rem;
}


aside.newsletter-sidebar .slim-nl-form {background: #e1e1e1b5; margin-bottom: 30px;}

section .slim-nl-form {color:#333; background: #e1e1e1e0;}

/* Sticky Sidebar */
.newsletter-sidebar {
    position: sticky;
    top: 4rem; /* distance from top during scroll */
    height: fit-content;
}


/* -----------------------------------------------------
   Header Area
   ----------------------------------------------------- */

.newsletter-header {
    margin-bottom: 3rem;
  /*  border-bottom: 1px solid var(--nl-color-border);*/
    padding-bottom: 1.5rem;
	color: var(--nl-header-color-text);
}

.newsletter-title {
    font-size: 2.4rem;
    margin-bottom: 0.5rem;
}

.newsletter-date {
    font-size: 0.95rem;
    color: var(--nl-color-muted);
}

.newsletter-summary {
    font-size: 1.2rem;
    max-width: 650px;
    margin-top: 1rem;
   color: var(--nl-header-color-text);
}

/* -----------------------------------------------------
   Section Base
   ----------------------------------------------------- */

.nl-section {
    margin-bottom: var(--nl-spacing);
    padding: 1rem 0;
}

/* -----------------------------------------------------
   Hero Section
   ----------------------------------------------------- */

.nl-hero-header {
    padding: 3rem 2rem;
    color: #fff; /* default, can be overridden */
    border-radius: var(--nl-radius);
}

.nl-hero-inner {
    max-width: 700px;
}

.nl-hero-title {
    font-size: 2rem;
    font-weight: 300;
	line-height: 2rem;
	margin-top:1rem;
	margin-bottom: 1em;
}

.nl-hero-subtitle {
    font-size: 1.2rem;
    margin-top: 0.5rem;
    opacity: 0.9;
}

.nl-hero-intro {
    margin-top: 1rem;
    font-size: 1.1rem;
	margin-bottom: 1rem;
}

.nl-hero-inner img {border-radius: var(--nl-image-radius);}

p a:link {text-decoration: underline;}

/* -----------------------------------------------------
   Intro Paragraph
   ----------------------------------------------------- */

.nl-intro-paragraph p {
    font-size: 1.1rem;
    line-height: 1.65;
}

/* -----------------------------------------------------
   Featured Article
   ----------------------------------------------------- */

.nl-featured-inner {
    display: flex;
    gap: 1rem;
    align-items: center;
	flex-direction: column;
}

.nl-featured-image img {
    width: 100%;
    height: auto;
    border-radius: var(--nl-image-radius);
    object-fit: cover;
}

.nl-featured-title {
    font-size: 1.6rem;
    font-weight: 600;
}

.nl-featured-description {
    margin: 0.6rem 0 1rem;
    color: var(--nl-color-text);
}

.nl-featured-link .nl-button {
    background: var(--nl-color-button);
    color: var(--nl-color-button-text);
    padding: 0.3rem 2.2rem;
    border-radius: var(--nl-radius);
    display: inline-block;
    text-decoration: none;
    font-weight: 300;
	transition: all ease 0.25s;
}

.nl-featured-link .nl-button:hover{
	background-color:#000;
}

/* -----------------------------------------------------
   Secondary Cards
   ----------------------------------------------------- */

.nl-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: var(--nl-card-gap);
}

.nl-card {
    background: #fff;
    border: 1px solid var(--nl-color-border);
    padding: 1rem;
    border-radius: var(--nl-image-radius);
}

.nl-card-image img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: var(--nl-image-radius);
}

.nl-card-title {
    font-size: 1.1rem;
    margin-top: 0.6rem;
    font-weight: 600;
}

.nl-card-excerpt {
    font-size: 0.95rem;
    color: var(--nl-color-muted);
    margin: 0.4rem 0 0.8rem;
}

.nl-card-link a {
    font-weight: 500;
    color: var(--nl-color-button);
}

/* -----------------------------------------------------
   Callout Section
   ----------------------------------------------------- */

.nl-callout {
    padding: 2rem;
    border-radius: var(--nl-radius);
    color: var(--nl-color-text);
}

.nl-callout-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.nl-callout-body p {
    margin-bottom: 1rem;
}

.nl-callout-cta .nl-button {
    background: var(--nl-color-button);
    color: #fff;
    padding: 0.3rem 2.2rem;
    border-radius: var(--nl-radius);
    display: inline-block;
	transition: all ease 0.25s;
}

.nl-callout-cta .nl-button:hover {background-color: #000;}

/* Light mode (default) */
.nl-callout.nl-mode-light {
    color: #222;
}



/* Dark mode */
.nl-callout.nl-mode-dark {
    color: #fff;
}




/* -----------------------------------------------------
   Newsletter Footer
   ----------------------------------------------------- */

.nl-footer {
    border-top: 1px solid var(--nl-color-border);
    padding-top: 2rem;
	background-color:#000;
	color:#fff;
}
.nl-footer .nl-footer-inner {padding: 20px 30px; color:#fff; font-size: 14px;}

.nl-footer-logo img {
    max-width: 180px;
    height: auto;
    margin-bottom: 1rem;
}

.nl-footer-contact {
    margin-bottom: 1rem;
    color: var(--nl-color-button-text);
	line-height: 1.7em;
}

.nl-footer-social {
    display: flex;
    gap: 1rem;
}

.nl-footer-social img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

/*Remove margin from the section above the footer*/
.newsletter-content .nl-section:has(+ .nl-footer) {
    margin-bottom: 0 !important;
}

/* -----------------------------------------------------
   Responsive
   ----------------------------------------------------- */

@media (max-width: 1024px) {
    .newsletter-layout {
        flex-direction: column;
    }

    .newsletter-sidebar {
        width: 100%;
        border-left: none;
        padding-left: 0;
        margin-top: 3rem;
    }
}

@media (max-width: 768px) {
    .nl-featured-inner {
        flex-direction: column;
    }

    .nl-featured-image img {
        width: 100%;
    }
}



/* -----------------------------------------------------
   Newsletter Archive page
   ----------------------------------------------------- */
.archive-posts article.newsletter {max-height: 250px; overflow: hidden;}
.archive-posts article.newsletter img {object-fit: contain; max-width: inherit;}
