/* Import the fonts from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inria+Sans:wght@300;400;700&display=swap');

/* Reset and base styles */
:root {
    --primary-color: #f77a27;
    --primary-light: #fff1e6;
    --text-color: #333;
    --background-color: #fff;
}

body, html {
    margin: 0;
    padding: 0;
    font-family: 'Inria Sans', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .cta-button {
    font-family: 'Bebas Neue', sans-serif;
    line-height: 1.2;
}

strong, b {
    font-weight: 700;
}

.subtle-text {
    font-weight: 300;
}

/* Header styles */
header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background-color: transparent;
    z-index: 1000;
    padding: 1rem 2rem;
}

/* Navigation styles */
nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style-type: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap; /* Allow wrapping for smaller screens */
    justify-content: flex-end;
}

.nav-menu li {
    margin-left: 1rem; /* Reduced margin for better spacing */
    margin-bottom: 0.5rem; /* Add some vertical spacing when wrapped */
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease, background-color 0.3s ease;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.2rem; /* Slightly reduced font size */
    letter-spacing: 1px;
    padding: 0.4rem 0.8rem; /* Slightly reduced padding */
    border-radius: 5px;
}

.nav-menu a:hover {
    color: white;
    background-color: var(--primary-color);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.menu-toggle .bar {
    height: 3px;
    width: 100%;
    background-color: white;
    border-radius: 10px;
    transition: all 0.3s ease-in-out;
}

/* Hero section */
#hero {
    background-image: url('images/rj-presenting.png');
    background-size: cover;
    background-position: left center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Add this line */
    height: 100vh;
    width: 100%;
    position: relative;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: absolute;
    top: 14%;  
    right: 15%;
    z-index: 1;
    color: white;
    text-align: left;
    max-width: 50%;
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

#hero h1 {
    font-size: 4.2rem;
    margin-bottom: 0rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    letter-spacing: 2px;
}

#hero .tagline {
    font-family: 'Inria Sans', sans-serif;
    font-size: 1.8rem;
    line-height: 1.4;
    margin-bottom: 1.8rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    font-weight: 300;
}

#hero .tagline-emphasis {
    font-weight: 600;
    color: var(--primary-color);
}

#hero .community {
    font-family: 'Inria Sans', sans-serif;
    font-size: 1.1rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    font-weight: 300;
}

#hero .community .joinAPP {
    font-size: 1.3rem;
    font-weight: 500;
}

.cta-button {
    display: inline-block;
    padding: 0.75rem 2rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    font-size: 1.5rem;
    align-self: flex-start;
    letter-spacing: 1px;
}

.cta-button:hover {
    background-color: #e56a17;
}


@media (max-width: 768px) {
    #hero .tagline {
        font-size: 1.4rem;
    }
}



/* Main content area */
main {
    max-width: 100%;
}

section {
    padding: 4rem 2rem;
}

h2 {
    font-size: 3rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 2rem;
    letter-spacing: 1px;
}

h3 {
    font-size: 2.5rem;
    letter-spacing: 1px;
}

h4, h5, h6 {
    font-size: 2rem;
    letter-spacing: 1px;
}

/* About section */
#about {
    background-color: #fff;
    padding: 4rem 2rem;
}

#about h2 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 2rem;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.6;
}

.about-content p {
    margin-bottom: 1.5rem;
}

.about-content strong {
    color: inherit;
    font-weight: 700;
}



/* Testimonials section */
#testimonials, #additional-testimonials {
    background-color: var(--primary-color);
    padding: 4rem 2rem;
}

.testimonials-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.testimonial-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    max-width: 500px;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    font-size: 4rem;
    color: var(--primary-color);
    position: absolute;
    top: -0.5rem;
    left: 1rem;
    opacity: 0.2;
}

.testimonial-text {
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.testimonial-author {
    font-weight: bold;
    text-align: right;
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .testimonial-card {
        max-width: 100%;
    }
}




/* Principles section */
#principles {
    background-color: var(--primary-light);
    padding: 4rem 2rem;
}

.principles-intro {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: left;
    font-size: 1.1rem;
    line-height: 1.6;
}

.comparison-table {
    overflow-x: auto;
    margin: 3rem 0;  /* Increased spacing above and below the table */
    padding: 1rem 0;
}

.comparison-table table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.comparison-table th, .comparison-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.comparison-table th {
    background-color: var(--primary-color);
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table td:first-child {
    font-weight: bold;
    background-color: #f0f0f0;
    color: var(--primary-color);
}

.comparison-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.comparison-table tr:nth-child(odd) {
    background-color: #ffffff;
}

.comparison-table tr:hover {
    background-color: #f0f8ff;
}

.roles-emphasis {
    font-weight: 700;
    color: var(--primary-color);
    padding-bottom: 2px;
}

.quote {
    font-style: italic;
    color: var(--primary-color);
    font-weight: 600;
    position: relative;
    padding-left: 20px;
}

.quote::before {
    content: '"';
    font-size: 24px;
    position: absolute;
    left: 0;
    top: -5px;
    color: var(--primary-color);
}

.principles-transition {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 3rem 0 2rem;
    position: relative;
}

.principles-transition::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 1rem auto 0;
}

.principles-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.principle {
    flex-basis: calc(33.333% - 2rem);
    min-width: 250px;
    max-width: 350px;
    background-color: var(--background-color);
    padding: 2rem 1.5rem;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.principle:hover {
    transform: translateY(-5px);
}

.principle i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
    text-align: center;
}

.principle h3 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    text-align: center;
}

.principle p {
    font-size: 1.1rem;
    line-height: 1.6;
    text-align: center;
}

@media (max-width: 768px) {
    .principle {
        flex-basis: 100%;
        max-width: 100%;
    }
    
    .principle h3 {
        font-size: 2rem;
    }
    
    .comparison-table {
        font-size: 0.9rem;
    }
    
    .comparison-table th, .comparison-table td {
        padding: 0.8rem;
    }
}



#community-highlight {
    background-color: var(--primary-color);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
    background-image: url('path-to-your-gif.gif');  /* Add your GIF here */
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
}

#community-highlight h2 {
    color: white;
}

.community-content {
    max-width: 1000px;
    margin: 0 auto;
}

.community-benefits {
    display: flex;
    justify-content: space-around;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.benefit {
    flex-basis: 30%;
    margin-bottom: 2rem;
}

.benefit i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.benefit h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .benefit {
        flex-basis: 100%;
    }
}

/* Update the join-community-button for better contrast on colored background */
#community-highlight .join-community-button {
    background-color: white;
    color: var(--primary-color);
    font-weight: bold;
    margin-top: 2rem;
}

#community-highlight .join-community-button:hover {
    background-color: #f0f0f0;
}




/* Book section styles */
#book {
    background-image: url('images/do-more-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Add this line */
    color: white;
    padding: 0;
}

.book-overlay {
    background-color: rgba(0, 0, 0, 0.6);
    padding: 4rem 2rem;
}

#book h2 {
    color: white;
    text-align: center;
    margin-bottom: 2rem;
}

.book-content {
    max-width: 1000px;
    margin: 0 auto 3rem;
    overflow: hidden;
}

.book-summary {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    text-align: left;
}

.book-cover {
    float: right;
    width: 300px;
    height: auto;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.testimonials {
    overflow: hidden;
}

.book-content .testimonials p {
    padding: 0 2.5rem;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    color: var(--primary-color);
}

blockquote {
    background-color: rgba(40, 40, 40, 0.75);
    color: white;
    padding: 1.5rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    font-style: italic;
    border-left: 4px solid var(--primary-color);
}

.book-links {
    text-align: center;
    margin-bottom: 2rem;
}

.book-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.2rem;
    margin: 0.5rem;
}

.book-button:hover {
    background-color: #e56a17;
}

.learn-more-container {
    text-align: center;
    margin-top: 2rem;
}

.learn-more {
    display: inline-block;
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.4rem;
    transition: all 0.3s ease;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--primary-color);
    border-radius: 5px;
}

.learn-more:hover {
    color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.1);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}




/* Newsletter Section */
#newsletter {
    background-color: #f5f6fa; /* Lighter background color */
    padding: 4rem 2rem;
    text-align: center;
}

.newsletter-container {
    max-width: 1000px;
    margin: 0 auto;
}

#newsletter h2 {
    color: #2f3640; /* Darker text color for contrast */
    font-size: 2.5rem;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.newsletter-form {
    display: flex;
    justify-content: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-form input[type="email"] {
    flex-grow: 1;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid #bbb; /* Slightly darker border as we discussed earlier */
    border-radius: 5px 0 0 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25); /* Updated as per your modification */
    transition: all 0.3s ease;
}

.newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); /* Slightly enhanced focus state */
}

.newsletter-form button {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 1px;
}

.newsletter-form button:hover {
    background-color: #e56a17;
}

@media (max-width: 768px) {
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input[type="email"] {
        border-radius: 5px;
        margin-bottom: 1rem;
    }
    
    .newsletter-form button {
        border-radius: 5px;
    }
}





/* Resources section */
#resources {
    color: #f0f4f8; 
    background-color: #2f3640; 
    padding: 4rem 0;
}

.resources-intro, .resources-container, .medium-feed {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

#resources h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

#resources p {
    text-align: left;
}

#resources h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-top: 3rem;
    margin-bottom: 1rem;
    text-align: center;
}

#resources h3 + p {
    text-align: left;
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

.resources-intro {
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.6;
}

.resources-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.resource {
    flex-basis: calc(33.333% - 1.5rem);
    min-width: 250px;
    background-color: #ffffff; /* White background for cards */
    padding: 1.5rem;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: #2f3640;
    position: relative;
    overflow: hidden;
}

.resource-sold-out,
.resource-unavailable {
    opacity: 0.7;
}

.resource-coming-soon {
    opacity: 0.8;
}

.resource-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
}

.resource-coming-soon .resource-overlay {
    background-color: rgba(0, 128, 0, 0.7); /* Green background for Coming Soon */
}

.resource:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.resource-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.2rem;
}

.resource h4 {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin: 0;
}

.resource-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #4a4a4a;
    margin: 0;
}

.resource-tagline {
    font-size: 1rem;
    font-style: italic;
    color: #6a6a6a;
    margin-bottom: 0.8rem;
}

.resource-description {
    flex-grow: 1;
    font-size: 0.9rem;
    line-height: 1.4;
}

.resource-link {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1rem;
    text-align: center;
    align-self: flex-start;
}

.resource:hover .resource-link {
    background-color: #e56a17;
}

/* Medium Feed Styles */
.medium-feed {
    margin-top: 3rem;
    padding: 2rem;
    background-color: #ffffff; /* White background for Medium feed */
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.medium-feed h3 {
    display: flex;
    align-items: center;
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.medium-feed h3 svg {
    margin-right: 0.5rem;
}

.medium-articles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.medium-article {
    background-color: #f8f8f8; /* Light gray background for individual articles */
    padding: 1.5rem;
    border-radius: 5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.medium-article:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.medium-article h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.medium-article a {
    color: #2f3640;
    text-decoration: none;
}

.medium-article a:hover {
    color: var(--primary-color);
}

.article-date {
    font-size: 0.9rem;
    color: #6a6a6a;
}

.view-all-articles {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.5rem 1rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1rem;
}

.view-all-articles:hover {
    background-color: #e56a17;
}

@media (max-width: 992px) {
    .resource {
        flex-basis: calc(50% - 1.5rem);
    }
}

@media (max-width: 768px) {
    .resource {
        flex-basis: 100%;
        padding: 1rem;  /* Ensure padding is maintained on small screens */
    }

    .resource h4 {
        font-size: 1.4rem;
    }

    .resource-price {
        font-size: 1.1rem;
    }

    .resource-tagline {
        font-size: 0.9rem;
    }

    #resources h3 + p {
        padding: 0 1rem;  /* Add some padding to paragraphs on small screens */
    }
    
    .medium-articles {
        grid-template-columns: 1fr;
    }
}




/* Footer styles */
footer {
    background-color: var(--text-color);
    color: var(--background-color);
    padding: 2rem;
    margin-bottom: 0;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.footer-nav ul {
    list-style-type: none;
    padding: 0;
}

.footer-nav li {
    margin-bottom: 0.5rem;
}

.footer-nav a {
    color: var(--background-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: var(--primary-color);
}

.footer-newsletter {
    flex-grow: 1;
    max-width: 500px;
    margin: 0 2rem;
}

.footer-newsletter h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-newsletter .newsletter-form {
    display: flex;
    width: 100%;
}

.footer-newsletter input[type="email"] {
    flex-grow: 1;
    padding: 0.5rem;
    font-size: 0.9rem;
    border: 1px solid #bbb;
    border-radius: 5px 0 0 5px;
}

.footer-newsletter button {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.footer-newsletter button:hover {
    background-color: #e56a17;
}

.social-links {
    display: flex;
    align-items: center;
}

.social-links a {
    display: inline-block;
    color: var(--background-color);
    margin: 0 0.5rem;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    text-align: center;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: var(--background-color);
    text-decoration: underline;
}

@media (max-width: 992px) {
    .footer-content {
        flex-direction: column;
    }
    
    .footer-nav, .footer-newsletter, .social-links {
        margin-bottom: 2rem;
    }
    
    .footer-newsletter {
        max-width: 100%;
        margin: 2rem 0;
    }
    
    .social-links {
        justify-content: center;
    }
}





/* Tooltip styles */
.tooltip {
    position: relative;
    display: inline-block;
    border-bottom: 1px dotted var(--primary-color);
    color: var(--primary-color);
    cursor: help;
}

.tooltip::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 10px;
    border-radius: 6px;
    width: 200px;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s;
    font-family: 'Inria Sans', sans-serif;
    font-weight: normal;
    font-size: 0.9rem;
    line-height: 1.4;
    z-index: 1;
}

.tooltip:hover::before {
    visibility: visible;
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .hero-content {
        right: 5%;
        max-width: 60%;
    }
}

@media (max-width: 992px) {
    .hero-content {
        top: 15%;
        right: 50%;
        transform: translateX(50%);
        text-align: center;
        max-width: 80%;
        align-items: center;
    }
    
    .cta-button {
        align-self: center;
    }
    
    .nav-menu {
        justify-content: center; /* Center align items on smaller screens */
    }
    
    .nav-menu li {
        margin: 0 0.5rem 0.5rem; /* Equal margins on both sides */
    }
}

@media (max-width: 768px) {
    header {
        position: absolute;
        background-color: transparent;
    }

    nav {
        justify-content: flex-end;
    }

    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        right: -100%;
        top: 0;
        flex-direction: column;
        background-color: rgba(0, 0, 0, 0.8);
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: 0.3s;
        justify-content: center;
        align-items: center;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    .nav-menu a {
        font-size: 1.4rem;
        padding: 0.8rem 1.6rem;
    }

    .nav-menu a:hover {
        background-color: var(--primary-color);
    }
    
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .menu-toggle.active .bar:nth-child(3) {
            transform: translateY(-8px) rotate(-45deg);
    }

    #hero {
        background-position: 15% center;
        height: 80vh;
    }

    .hero-content {
        top: 10%;
    }

    #hero h1 {
        font-size: 3.5rem;
    }

    #hero .tagline {
        font-size: 1.2rem;
        margin-bottom: 2rem;
    }

    .cta-button, .book-button {
        font-size: 1.4rem;
    }

    .principle, .course {
        flex-basis: calc(50% - 2rem);
    }

    h2 {
        font-size: 2.7rem;
    }

    h3 {
        font-size: 2.3rem;
    }

    h4, h5, h6 {
        font-size: 1.8rem;
    }

    .principle h3, .course h3 {
        font-size: 2rem;
    }

    .principles-intro {
        font-size: 1rem;
    }

    .book-cover {
        float: none;
        margin: 2rem auto;
        display: block;
    }

    .book-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 1rem;
    }

    .book-button {
        margin: 0.5rem 0;
        width: 100%;
        max-width: 300px;
    }

    .learn-more {
        display: block;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        box-sizing: border-box;
    }

    blockquote {
        font-size: 0.9rem;
    }

    .tooltip::before {
        width: 160px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    #hero {
        background-position: 10% center;
        height: 70vh;
    }
    
    #hero h1 {
        font-size: 3rem;
    }
    
    .hero-content {
        max-width: 90%;
    }
    
    .principle, .course {
        flex-basis: 100%;
    }
    
    .book-button, .learn-more {
        font-size: 1.2rem;
    }
}

/* Print styles */
@media print {
    body {
        font-size: 12pt;
        line-height: 1.5;
        background: none;
        color: #000;
    }
    
    header, footer, .cta-button, .book-button, .learn-more {
        display: none;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        page-break-inside: avoid;
    }
    
    img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }
    
    .principle, .course {
        page-break-inside: avoid;
    }
    
    a[href^="http"]:after {
        content: " (" attr(href) ")";
    }
}



/* Who Is R.J. section */

#who-is-rj {
    background-color: #f0f8ff; /* Light blue background */
    padding: 4rem 2rem;
}

#who-is-rj {
    padding: 4rem 2rem;
}

.rj-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .rj-content {
        flex-direction: row;
        align-items: flex-start;
    }
}

.rj-portrait {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 50%;
}

@media (min-width: 768px) {
    .rj-content {
        flex-direction: row;
        align-items: flex-start;
    }
    
    .rj-bio {
        text-align: left;
    }
}



/* Burning Questions section */
#burning-questions {
    background-image: url('images/faq.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 4rem 0;
    position: relative;
    z-index: 1;
}

#burning-questions::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: -1;
}

.burning-questions-intro {
    max-width: 800px;
    margin: 0 auto 2rem;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
    color: white;
    text-align: left;
}

.burning-questions-intro p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.burning-questions-intro em {
    font-style: italic;
}

#burning-questions h2 {
    color: white;
    position: relative;
    z-index: 2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* Accordion Styles */
.accordion {
    max-width: 800px;
    margin: 2rem auto 4em auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.accordion-section {
    margin-bottom: 1rem;
    background-color: rgba(255, 255, 255, 0.85);
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    z-index: 3;
}

.accordion-toggle {
    width: 100%;
    padding: 1em 2em 1em 1em;
    text-align: left;
    background: #f77a27;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    transition: background-color 0.3s ease;
    position: relative;
}

.accordion-toggle:hover {
    background: #e56d1e;
}

.accordion-toggle::after {
    content: '\002B';
    position: absolute;
    right: 1em;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5em;
    transition: transform 0.3s ease;
}

.accordion-toggle.active::after {
    content: '\2212';
    transform: translateY(-50%) rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.5s ease;
    padding: 0 1em;
    background-color: transparent;
    color: #333;
}

.accordion-content.active {
    max-height: 500px;
    padding: 1em;
    background-color: rgba(255, 255, 255, 0.60);
    position: relative;
    z-index: 4;
}



/* Little orange arrow bullets */
#burning-questions .accordion-content ul {
    list-style-type: none;
    padding-left: 1.5em;
}

#burning-questions .accordion-content ul li {
    position: relative;
    margin-bottom: 0.5em;
}

#burning-questions .accordion-content ul li::before {
    content: '';
    position: absolute;
    left: -1.5em;
    top: 0.25em;
    width: 1em;
    height: 1em;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23f77a27'%3E%3Cpath d='M5 12h14M12 5l7 7-7 7'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}


/* Join community button styles */
.join-community-container {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    padding-bottom: 1rem;
}

.join-community-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.2rem;
}

.join-community-button:hover {
    background-color: #e56a17;
}



/* Responsive adjustments */
@media (max-width: 768px) {
    #burning-questions {
        background-attachment: scroll;
        padding: 3rem 1rem;
    }
        
    .burning-questions-intro {
        padding: 0 1rem;
    }

    .burning-questions-intro p {
        font-size: 1rem;
    }
    
    .accordion {
        padding: 0 1rem;
    }
    
    .accordion-toggle {
        font-size: 1.1em;
    }
}





/* Responsive adjustments */
@media (max-width: 768px) {
    #hero, #book, #burning-questions {
        background-attachment: scroll; /* Change to scroll on mobile for better performance */
    }
    #burning-questions {
        padding: 3rem 1rem;
    }
    
    .faq-container {
        padding: 1.5rem;
    }
    
    .faq-item h3 {
        font-size: 1.2rem;
    }
    
    .faq-item p {
        font-size: 0.9rem;
    }
}



.join-community-container {
    text-align: center;
    margin-top: 2rem;
}

.join-community-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.2rem;
}

.join-community-button:hover {
    background-color: #e56a17;
}





/* Email R.J. Section */
#email-rj {
    background-color: #f5f6fa;
    padding: 4rem 2rem;
    text-align: center;
}

.email-rj-container {
    max-width: 600px;
    margin: 0 auto;
}

#email-rj h2 {
    color: #2f3640;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    line-height: 1.2;
}

#email-rj-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
}

.form-group input,
.form-group textarea {
    flex-grow: 1;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid #bbb;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.submit-button {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 1px;
}

.submit-button:hover {
    background-color: #e56a17;
}

#email-response {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 5px;
    font-weight: bold;
}

#email-response.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#email-response.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.hidden {
    display: none;
}

@media (max-width: 768px) {
    #email-rj-form {
        flex-direction: column;
    }
    
    .form-group input,
    .form-group textarea,
    .submit-button {
        width: 100%;
    }
}