body {
    margin: 0px;
    font-family: "Montserrat", serif;
    font-style: normal;
    font-weight: 400;
    margin-top: 95px;
}

.nav-wrapper {
    height: 75px;
    width: 100%;
    display: flex;
    position: fixed;
    top: 0;
    background-color: white;
    z-index: 1000;
    box-shadow: 0 0 0 white;
    border-bottom: 1px solid white;

    transition: box-shadow 0.3s ease, border-bottom-color 0.3s ease;
}

.nav-wrapper.scrolled {
    box-shadow: 0 2px 10px lightgray;
    border-bottom-color: lightgray;
}

.nav-wrapper-content {
    display: flex;
    width: 90%;
    max-width: 800px;
    height: 100%;
    align-items: center;
    margin: auto;
    justify-content: space-between;
}

.nav-wrapper > .nav-wrapper-content >.brainwaves-logo a img{
    height: 50px;
    width: auto;
    margin-top: 4px;
}

#brainwaves_header_logo {
    visibility: visible;
}

.nav-wrapper > .nav-wrapper-content >.brainwaves-logo {
    width: 600px;
    padding-right: 15px;
}

.nav-wrapper > .nav-wrapper-content >.desktop-nav > .header-links a{
    color: black;
    font-size: 1.1em;
    text-decoration: none;
    display: flex;
    width: 100%;
    height: 75px;
    align-items: center;
    margin-right: 30px;
}

.nav-wrapper > .nav-wrapper-content >.desktop-nav > .header-links a:hover{
    color: gray;
    font-size: 1.1em;
    text-decoration: underline;
    display: flex;
    width:100%;
    height: 75px;
    align-items: center;
    margin-right: 30px;
}

.desktop-nav {
    display: flex;
    align-items: center;
}

 
.footer-subscribe-button, 
.mobile-subscribe-button,
.navigation-subscribe-button,
.header-subscribe-button {
    cursor: pointer;
    width: 100%;
    background-color: #2a93d5;
    height: 40px;
    font-family: "Montserrat", serif;
    font-size: 1.1em;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    color: white;
    padding: 0 15px;
}
.header-subscribe-button {
    font-size: 1em;
}

/* Mobile Navigation Styles */
.mobile-nav {
    display: none;
}

.hamburger {
    position: relative;
    width: 40px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}
#hamburger.active {
  padding-right: 22px;
}

.hamburger span {
    display: block;
    position: absolute;
    height: 4px;
    background: black;
    border-radius: 4px;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Different widths and positions to match your image */
.hamburger span:nth-child(1) {
    width: 100%; /* Full width top line */
    top: 0;
}

.hamburger span:nth-child(2) {
    width: 100%; /* Full width middle line */
    top: 50%;
    transform: translateY(-50%);
}

.hamburger span:nth-child(3) {
    width: 60%; /* Shorter bottom line to match your image */
    right: 0; /* Align to right */
    bottom: 0;
}

/* Hamburger Animation */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu Overlay */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: white;
    z-index: 2000;
    flex-direction: column;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

.mobile-menu.active {
    display: flex;
    opacity: 1;
    transform: translateX(0);
}

/* Mobile Menu Header */
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    height: 75px;
    border-bottom: 1px solid #f0f0f0;
}

.mobile-menu-header .brainwaves-logo a img {
    height: 50px;
    width: auto;
    margin-top: 4px;
}


.mobile-menu-close {
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-weight: 300;
}
.mobile-menu-header > .mobile-menu-close img {
    width: 50%;
    height: auto;
}
.mobile-menu-close:hover {
    color: #666;
}

/* Mobile Menu Content */
.mobile-menu-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mobile-menu-item {
    font-size: 18px;
    font-weight: 400;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    padding: 10px 0px 10px 20px;
}

.mobile-menu-item:hover {
    color: #2a93d5;
}

/* Articles Section - Always Expanded */
.mobile-articles-section {
    border-bottom: 1px solid #f0f0f0;
    padding: 10px 0px 10px 20px;
}

.mobile-articles-title {
    font-size: 18px;
    font-weight: 400;
    color: #333;
    margin: 0;
}

.mobile-articles-content {
    display: flex;
    flex-direction: column;
    padding: 0 0 0px 20px;
    margin: 10px 0;
    gap: 10px;
    background-color: white;
    border-left: 2px solid #333;
}

.mobile-articles-content a {
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
}

.mobile-articles-content a:hover {
    color: #2a93d5;
}

.mobile-dropdown-subtitle {
    font-size: 12px;
    color: #999;
    font-weight: 300;
    margin-top: 2px;
    display: block;
}

/* Mobile Subscribe Section */
.mobile-subscribe-section {
    padding: 30px 20px;
}

.mobile-subscribe-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-email-input {
    padding: 12px 15px;
    border: 2px solid #c0c0c0;
    border-radius: 8px;
    font-size: 16px;
    background-color: white;
    font-family: "Montserrat", serif;
    color: #333;
}

.mobile-email-input::placeholder {
    color: #c0c0c0;
    font-weight: 700;
}

.mobile-subscribe-btn {
    background: #F4A261;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.5px;
    cursor: pointer;
    font-family: "Montserrat", serif;
    text-transform: uppercase;
}

.mobile-subscribe-btn:hover {
    background: #E76F51;
}
/*
.powered-by {
    text-align: center;
    margin-top: 20px;
    font-size: 12px;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-family: "Spectral", serif;
}

.substack-logo {
    height: 16px;
    width: auto;
    filter: grayscale(1);
}
*/
.form-control {
    width: 100%;
    height: 50px;
    border: 2px solid #c0c0c0;
    border-radius: 8px;
    box-sizing: border-box;
    font-family: "Montserrat", serif;
    font-size: min(3.5vw, 1.3em);
    text-align: left;
    padding-left: 15px;
    margin-bottom: 10px;
}
.form-control::placeholder {
    color: #c0c0c0;
    font-size: 0.8em;
    font-weight: 700;
    margin: auto 0;
}
/* The overlay background */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.7);
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 3000;
}

.close-button {
    position: absolute;
    top: 15px;
    right: 15px;
    border: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.close-button img {
    width: 100%;
    height: auto;
    margin: auto 0;
    cursor: pointer;
}
.close-button img:hover {
    opacity: 0.6; /* Adjust to how transparent you want it */
    transition: opacity 0.2s ease; /* Smooth fade effect */
}

.overlay-content {
    position: relative; /* required for absolute close button */
    background: white;
    padding: 40px;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    text-align: center;
}

.footer {
    width: 100%;
    z-index: 200;
    display: block;
    margin-bottom: 100px;
}

.footer > .social-media-footer {
    width: 100%;
    display: flex;
    height: 100px;
    background: linear-gradient(90deg, rgba(0,212,255,1) 0%, rgba(41,105,169,1) 60%, rgba(2,0,36,1) 100%);
    align-items: center;
}

.footer > .social-media-footer > .social-media-footer-content {
    display: grid;
    margin: auto;
    width: 90%;
    max-width: 800px;
    color:white;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.footer > .social-media-footer > .social-media-footer-content > .social-media-footer-links {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
}

.footer > .social-media-footer a img{
    height: 30px;
    width: auto;
}

.footer > .social-media-footer > .social-media-footer-content a {
    display: flex;
    align-items: center;
}

.footer > .social-media-footer a img:hover {
    filter: invert(1);
}

.footer > .content-footer {
    display: flex;
    width: 90%;
    margin: auto;
    max-width: 800px;
    padding-top: 25px;
}

.footer > .content-footer > .subscribe-area {
    width: 40%;
    margin-right: 0%;
}

.footer > .content-footer > .subscribe-area > .email-subscribe-form {
    width: 100%;
}

.footer > .content-footer > .subscribe-area > .email-subscribe-form > .footer-email-form {
    width: 100%;
    height: 40px;
    border: 2px solid #c0c0c0;
    border-radius: 8px;
    box-sizing: border-box;
    font-family: "Montserrat", serif;
    font-size: min(3.5vw, 1.3em);
    text-align: left;
    padding-left: 15px;
    margin-bottom: 15px;
}

.footer > .content-footer > .subscribe-area > .email-subscribe-form > .footer-email-form::placeholder {
    color: #c0c0c0;
    font-size: 0.8em;
    font-weight: 700;
    margin: auto 0;
}

.footer > .content-footer > .footer-information {
    display: grid;
    width: 55%;
    margin-left: 5%;
    grid-template-columns: 1fr 1fr;
    gap: 5%;
}

.footer > .content-footer > .footer-information > .content-library {
    grid-column-start: 1;
    grid-column-end: 2;
    width: 100%;
}

.footer > .content-footer > .footer-information > .content-library a,
.footer > .content-footer > .footer-information > .learn-more a,
.footer> .content-footer > .footer-information > .contact a {
    display: block;
    width: 100%;
    color: gray;
    text-decoration: none;
    margin-bottom:10px;
    font-size: min(0.9em, 2.5vw);
}

.footer > .content-footer > .footer-information > .content-library h3,
.footer > .content-footer > .footer-information > .learn-more h3,
.footer> .content-footer > .footer-information > .contact h3{
    font-size: min(1.2em, 2.5vw);
}

.footer> .content-footer > .footer-information > .contact a {
    word-break: break-all;
}

.footer > .content-footer > .footer-information > .content-library a:hover,
.footer > .content-footer > .footer-information > .learn-more a:hover,
.footer> .content-footer > .footer-information > .contact a:hover{
    text-decoration: underline;
}

.footer > .content-footer > .footer-information > .learn-more {
    grid-column-start: 2;
    grid-column-end: 3;
    width: 100%;
}

.footer> .content-footer > .footer-information > .contact {
    grid-column-start: 2;
    grid-column-end: 3;
    width: 100%;
    font-size: 0.8em;
}
.contact a img {
    height: 0.8em; /* Match the text size */
    vertical-align: middle; /* Aligns with text */
    margin-bottom: 2px;
    margin-right: 0.4em; /* Adds a bit of space between icon and text */
}
#saturday-morning-newsletter-article-section {
    scroll-margin-top: 100px;
}
.footer > .final-brainwaves-footer-image a img {
    width: 90%;
    padding: 0% 5%;
    padding-top: 10px;
    max-width: 400px;
    display: block;
    margin: auto;
}

.footer > .final-brainwaves-footer-image {
    padding-top: 25px;
}

.footer > .final-brainwaves-footer-image hr {
    margin: 10px 0;
}

/* Scrollbar */
body, * {
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
}

*::-webkit-scrollbar {
    width: 10px;
}

*::-webkit-scrollbar-track {
    background: transparent;
}

*::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: content-box;
}



/* Prevent body scroll when mobile menu is open */
body.mobile-menu-open {
    overflow: hidden;
}