@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #4a9d8f; /* Teal from screenshot */
    --primary-color-darker: #3b8072;
    --secondary-color: #82c4b5; /* Lighter teal for accents/borders */
    --text-color: #333;
    --text-color-light: #555;
    --background-color: #fff;
    --light-gray: #f4f4f4;
    --dark-gray: #333;
    --font-family: 'Poppins', sans-serif;
    --container-width: 1100px;
    --border-radius: 8px;
}

body {
    font-family: var(--font-family);
    margin: 0;
    color: var(--text-color);
    line-height: 1.7;
    background-color: var(--background-color);
    font-size: 16px;
}

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: auto;
}

/* Header & Navigation */
header {
    background: var(--background-color);
    padding: 20px 0;
    border-bottom: 3px solid var(--secondary-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative; /* Added for positioning context for nav-toggle */
}

.logo-container .logo {
    width: 180px; /* Adjusted size */
    height: auto;
    display: block;
}

header nav ul, footer nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 25px;
}

header nav ul li a, footer nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    padding: 8px 0;
    transition: color 0.3s ease, border-bottom-color 0.3s ease, transform 0.3s ease; /* Added transform transition */
    border-bottom: 2px solid transparent;
    display: inline-block; /* For transform to work as expected */
}

header nav ul li a:hover,
header nav ul li a.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    transform: translateY(-2px); /* Added subtle lift effect */
}

/* Hamburger Menu Styles */
.nav-toggle {
    display: none; /* Hidden by default, shown on mobile */
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 0.5em;
    position: absolute; /* Position relative to header or container if needed */
    right: 1em;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001; /* Above nav */
}

.hamburger-icon {
    display: block;
    position: relative;
    width: 2em;
    height: 3px;
    background: var(--dark-gray);
    transition: transform 0.3s ease-in-out, background-color 0.3s ease-in-out;
}

.hamburger-icon::before,
.hamburger-icon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--dark-gray);
    transition: transform 0.3s ease-in-out, top 0.3s ease-in-out, bottom 0.3s ease-in-out;
}

.hamburger-icon::before {
    top: -8px;
}

.hamburger-icon::after {
    bottom: -8px;
}

/* Hamburger animation to X */
.nav-open .nav-toggle .hamburger-icon {
    background: transparent; /* Middle bar disappears */
}

.nav-open .nav-toggle .hamburger-icon::before {
    transform: rotate(45deg);
    top: 0;
}

.nav-open .nav-toggle .hamburger-icon::after {
    transform: rotate(-45deg);
    bottom: 0;
}


/* Footer specific hover, if different from header */
footer nav ul li a:hover,
footer nav ul li a.active { /* Ensure footer active also has lift */
    color: var(--secondary-color); /* Existing footer hover color */
    border-bottom-color: var(--secondary-color); /* Existing footer hover border */
    transform: translateY(-2px); /* Added subtle lift effect */
}


/* Hero Section (index.html) */
.hero {
    background: var(--background-color); /* Match header or use a light tint */
    padding: 60px 0;
    text-align: left; /* As per screenshot */
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.hero-text {
    flex: 1.2; /* Give slightly more space to text */
}

.hero-text h1 {
    font-size: 2.8em; /* Larger heading */
    color: var(--dark-gray);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.hero-text p {
    font-size: 1.15em;
    color: var(--text-color-light);
    margin-bottom: 35px;
}

.hero-buttons .btn {
    display: inline-block;
    padding: 15px 35px; /* Larger buttons */
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    margin-right: 20px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 1em;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--primary-color-darker);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--secondary-color); /* Using lighter teal */
    color: var(--primary-color-darker); /* Darker text for contrast */
}

.btn-secondary:hover {
    background-color: #73b8a8; /* Slightly darker shade of secondary */
    transform: translateY(-2dpx);
}


.hero-image {
    flex: 1;
    text-align: right;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Main Content Sections */
main {
    padding: 40px 0;
}

.content-section {
    padding: 50px 0;
    border-bottom: 1px solid #e0e0e0;
}
.content-section:last-child {
    border-bottom: none;
}


main h2, .page-hero h1 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.2em;
    color: var(--dark-gray);
    font-weight: 600;
}
.page-hero h1 {
    margin-bottom: 0;
    padding: 40px 0;
    background-color: var(--light-gray); /* Light background for page titles */
}
.page-hero {
    padding: 0; /* Remove padding from section if h1 has it */
    border-bottom: 1px solid #e0e0e0;
}
/* Specific styling for page hero paragraph */
.page-hero p {
    text-align: center;
    font-size: 1.1em;
    color: var(--text-color-light);
    margin-top: 10px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}


.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 20px;
}


.service {
    padding: 30px 25px;
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    text-align: center; /* Center icon and text */
    border-top: 5px solid var(--primary-color); /* Top border instead of left */
}
.service:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.service-icon {
    font-size: 2.5em; /* Larger icons */
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--primary-color-darker); /* Darker for better contrast on light gray */
    font-size: 1.5em;
}

.service ul {
    list-style: none;
    padding-left: 0;
    margin-top: 15px;
    text-align: left; /* Align list items to the left */
}

.service ul li {
    font-size: 0.9em;
    color: var(--text-color-light);
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px; /* Space for custom bullet */
}

.service ul li::before {
    content: "\f00c"; /* Font Awesome check icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900; /* Required for solid icons */
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 1px; /* Adjust for vertical alignment */
}


/* How It Works Section - New Design */
.how-it-works-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px; /* Gap between chevrons might need to be 0 or negative margin for overlap */
    margin-top: 30px;
    position: relative; /* For chevron pseudo-elements if needed */
}

.step {
    background-color: #f0f0f0; /* Light gray from screenshot */
    padding: 30px 40px 30px 50px; /* More padding on left for chevron point */
    text-align: center;
    position: relative;
    /* Chevron shape using clip-path */
    clip-path: polygon(0% 0%, calc(100% - 20px) 0%, 100% 50%, calc(100% - 20px) 100%, 0% 100%, 20px 50%);
    margin-right: -20px; /* Overlap chevrons slightly */
}

/* Remove margin for the last step to avoid extra space */
.step:last-child {
    margin-right: 0;
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%, 20px 50%); /* No point on the right */
}
/* Adjust first step if it needs a flat left side - assuming it does based on typical chevron flows */
.step:first-child {
     clip-path: polygon(0% 0%, calc(100% - 20px) 0%, 100% 50%, calc(100% - 20px) 100%, 0% 100%); /* Flat left */
     padding-left: 30px;
}


.step-icon-container {
    font-size: 2.8em; /* Larger icons */
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1; /* Ensure icon vertical alignment */
}

.step h3 {
    font-size: 1.4em;
    color: var(--dark-gray);
    margin-bottom: 10px;
    font-weight: 600;
}

.step p {
    font-size: 0.95em;
    color: var(--text-color-light);
    line-height: 1.6;
}

/* Benefits Section - New Design */
.benefits-layout {
    display: flex;
    align-items: flex-start; /* Align items to the top */
    gap: 40px;
    margin-top: 30px;
}

.benefits-content {
    flex: 1.2; /* Give a bit more space to content */
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two columns for the first two items */
    gap: 20px;
}

.benefit-item {
    background-color: #f0f0f0; /* Light beige/gray from screenshot */
    padding: 20px;
    border-radius: var(--border-radius);
}

.benefit-item.benefit-item-full-width {
    grid-column: 1 / -1; /* Span both columns */
}

.benefit-item h3 {
    font-size: 1.2em;
    color: var(--dark-gray);
    margin-top: 0;
    margin-bottom: 8px;
    font-weight: 600;
}

.benefit-item p {
    font-size: 0.9em;
    color: var(--text-color-light);
    line-height: 1.5;
}

.benefits-image {
    flex: 0.8; /* Slightly less space for the image */
    text-align: center;
}

.benefits-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}


/* Feature Layout for Text & Image Sections (used for About page placeholders) */
.feature-layout {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 30px; /* Space below section title */
}

.feature-layout .feature-text {
    flex: 1;
}

.feature-layout .feature-image {
    flex: 1;
    text-align: center; /* Center image if it's smaller than container */
}

.feature-layout .feature-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Reverse layout for alternating sides */
.feature-layout.feature-layout-reverse {
    flex-direction: row-reverse;
}


/* About Page Specifics */
#team .team-members {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.team-member {
    background-color: var(--light-gray);
    padding: 25px;
    border-radius: var(--border-radius);
    text-align: center;
    flex-basis: calc(33.333% - 20px); /* Adjust for 3 columns with gap */
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.team-member img { /* Assuming images will be added */
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid var(--secondary-color);
}

.team-member h3 {
    margin-bottom: 8px;
    font-size: 1.3em;
    color: var(--primary-color-darker);
}

.team-member p {
    font-size: 0.95em;
    color: var(--text-color-light);
}

#clinical-basis ul {
    list-style: disc;
    padding-left: 20px;
}
#clinical-basis ul li { /* This might be redundant if .styled-list is specific enough */
    margin-bottom: 10px;
}

/* General styled list for About page and potentially other pages */
.styled-list {
    list-style: none;
    padding-left: 0;
    margin-top: 20px; /* Add some space above the list */
}

.styled-list li {
    font-size: 1em; /* Match paragraph font size or adjust as needed */
    color: var(--text-color-light);
    margin-bottom: 12px; /* Space between list items */
    position: relative;
    padding-left: 28px; /* Space for custom bullet */
    line-height: 1.6; /* Improve readability of list items */
}

.styled-list li::before {
    content: "\f138"; /* Font Awesome circle-arrow-right icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900; /* Required for solid icons */
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 0px; /* Adjust for vertical alignment with text */
    font-size: 1.1em; /* Adjust icon size if needed */
}

/* Styling for nested lists within .styled-list (e.g., in ethics-privacy.html) */
.styled-list ul {
    list-style: none; /* Remove default bullets */
    padding-left: 20px; /* Indent nested list */
    margin-top: 10px;
    margin-bottom: 10px;
}

.styled-list ul li {
    font-size: 0.95em; /* Slightly smaller font for nested items */
    padding-left: 25px; /* Space for nested custom bullet */
    margin-bottom: 8px;
}

.styled-list ul li::before {
    content: "\f105"; /* Font Awesome chevron-right icon for nested items */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--secondary-color); /* Use secondary color for nested bullets */
    font-size: 1em; /* Adjust size of nested bullet */
    top: 2px; /* Fine-tune vertical alignment */
}


/* Lead paragraph styling for pages like ethics-privacy */
.lead-paragraph {
    font-size: 1.15em;
    color: var(--text-color-light);
    margin-bottom: 30px;
    line-height: 1.8;
    font-weight: 300; /* Lighter font weight for lead */
}


/* Disclaimer Section Styling */
.disclaimer-section {
    background-color: #fffadf; /* Light yellow-ish background */
    padding: 30px; /* More padding inside the disclaimer box */
    border-radius: var(--border-radius);
    border: 1px solid #f0e68c; /* Khaki border, softer than red/orange */
    margin-top: 30px; /* Ensure space from section above */
    margin-bottom: 30px; /* Ensure space from section below */
}

.disclaimer-section h2 {
    color: var(--dark-gray); /* Keep heading dark for readability */
    margin-top: 0; /* Remove default top margin if any */
    text-align: left; /* Align disclaimer title to the left */
}

.disclaimer-section p {
    color: var(--text-color); /* Ensure paragraph text is readable */
    font-size: 0.95em;
    line-height: 1.6;
}

/* Podcast Section Styling */
#podcast {
    text-align: center; /* Center the content of the podcast section */
}

.podcast-placeholder {
    margin-top: 25px;
    padding: 30px;
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    border: 1px dashed var(--secondary-color);
}

.podcast-btn {
    display: inline-block; /* Ensure button respects margins */
    margin-bottom: 15px;
}

.podcast-btn i {
    margin-right: 8px; /* Space between icon and text */
}

.podcast-placeholder p small {
    color: var(--text-color-light);
}


/* Footer */
footer {
    background: var(--dark-gray);
    color: #f4f4f4;
    text-align: center;
    padding: 30px 0;
    margin-top: 40px;
}
footer nav ul li a {
    color: #f4f4f4;
    font-weight: 400;
}
footer nav ul li a:hover,
footer nav ul li a.active {
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
}
footer p {
    margin-top: 20px;
    font-size: 0.9em;
}


/* Responsive adjustments */
@media (max-width: 992px) {
    .hero-text h1 {
        font-size: 2.4em;
    }
    .hero-buttons .btn {
        padding: 12px 28px;
    }
    .team-member {
        flex-basis: calc(50% - 15px); /* 2 columns */
    }
}

/* Contact Page Specific Styles */
.contact-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-top: 30px;
}

.contact-info,
.contact-form-container {
    flex: 1;
}

.contact-info h2,
.contact-form-container h2 {
    font-size: 1.8em;
    color: var(--dark-gray);
    margin-top: 0;
    margin-bottom: 20px;
    text-align: left; /* Override global h2 center alignment */
}

.contact-info p {
    font-size: 1em;
    color: var(--text-color-light);
    margin-bottom: 15px;
    line-height: 1.6;
}

.contact-info a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

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

.contact-info .address h3 {
    font-size: 1.2em;
    color: var(--primary-color-darker);
    margin-bottom: 5px;
}

.contact-info .address p {
    font-size: 0.95em;
    color: var(--text-color-light);
    line-height: 1.5;
}

/* Form Styles */
.contact-form-container form {
    background-color: var(--light-gray);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-gray);
    font-size: 0.95em;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="subject"], /* Added subject input type */
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: var(--font-family);
    font-size: 1em;
    color: var(--text-color);
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="subject"]:focus, /* Added subject input type */
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 157, 143, 0.2); /* Primary color with transparency */
    outline: none;
}

.form-group textarea {
    resize: vertical; /* Allow vertical resizing */
    min-height: 120px;
}

.contact-form-container .btn-primary {
    width: auto; /* Allow button to size naturally */
    padding: 12px 30px; /* Adjust padding for form button */
    font-size: 1em;
    display: block; /* Make button a block element to take full width if needed, or inline-block for natural width */
    margin-top: 25px; /* Space above the button */
}

/* Responsive adjustments for Contact Page */
@media (max-width: 768px) {
    .contact-layout {
        flex-direction: column;
    }
    .contact-info h2,
    .contact-form-container h2 {
        text-align: center; /* Center titles on mobile */
    }
    .contact-info,
    .contact-form-container {
        text-align: center; /* Center text content on mobile */
    }
    .contact-info p,
    .contact-info .address {
        text-align: center; /* Ensure paragraphs and address are centered */
    }
    .contact-form-container form {
        padding: 20px; /* Reduce padding on mobile */
    }
    .contact-form-container .btn-primary {
        width: 100%; /* Full width button on mobile */
    }
}


@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 15px;
    }
    header nav ul {
    gap: 15px;
    /* flex-wrap: wrap; */ /* Replaced by hamburger logic */
    /* justify-content: center; */ /* Replaced by hamburger logic */
    }

    /* Mobile Navigation Menu Styles */
    .nav-toggle {
        display: block; /* Show hamburger on mobile */
    }

    header nav#main-nav {
        position: absolute;
        background: var(--background-color);
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        left: 0;
        right: 0;
        top: 100%; /* Position below header */
        transform: scaleY(0);
        transform-origin: top;
        transition: transform 0.3s ease-in-out;
        z-index: 1000; /* Below hamburger toggle, above content */
        padding: 1em 0;
    }
    
    header nav#main-nav ul#main-nav-ul {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    header nav#main-nav ul#main-nav-ul li {
        width: 100%;
        text-align: center;
    }

    header nav#main-nav ul#main-nav-ul li a {
        display: block;
        padding: 1em;
        width: 100%;
        border-bottom: 1px solid var(--light-gray); /* Separator for links */
    }
    header nav#main-nav ul#main-nav-ul li:last-child a {
        border-bottom: none;
    }

    header nav#main-nav ul#main-nav-ul li a:hover,
    header nav#main-nav ul#main-nav-ul li a.active {
        background-color: var(--light-gray);
        color: var(--primary-color);
        border-bottom-color: var(--primary-color); /* Keep consistent with desktop active */
        transform: none; /* No lift effect needed on mobile dropdown */
    }

    /* When nav is open */
    .nav-open header nav#main-nav {
        transform: scaleY(1);
    }
    /* Optional: Prevent body scroll when mobile menu is open */
    /* .nav-open-body-scroll-lock { overflow: hidden; } */


    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    .hero-text {
        order: 2; /* Text below image on mobile if preferred */
    }
    .hero-image {
        order: 1;
        margin-bottom: 30px; /* Space between image and text */
        text-align: center;
    }
    .hero-text h1 {
        font-size: 2em;
    }
    .hero-buttons {
        display: flex;
        flex-direction: column; /* Stack buttons */
        align-items: center; /* Center stacked buttons */
        gap: 15px;
    }
    .hero-buttons .btn {
        margin-right: 0;
        width: 80%; /* Make buttons wider */
        max-width: 300px;
    }

    main h2, .page-hero h1 {
        font-size: 1.8em;
    }
    .team-member {
        flex-basis: 100%; /* 1 column */
    }
    .feature-layout,
    .feature-layout.feature-layout-reverse {
        flex-direction: column;
        text-align: center; /* Center text on mobile */
    }
    .feature-layout .feature-image {
        margin-bottom: 20px; /* Space between image and text on mobile */
    }
    .feature-layout.feature-layout-reverse .feature-image {
        order: -1; /* Image on top for reversed layout on mobile */
    }

    .benefits-layout {
        flex-direction: column;
    }
    .benefits-content {
        grid-template-columns: 1fr; /* Stack benefit items */
        margin-bottom: 30px; /* Space before image on mobile */
    }
    .benefits-image {
        order: -1; /* Image on top on mobile if preferred, or remove for default flow */
    }

    .how-it-works-steps {
        grid-template-columns: 1fr; /* Stack steps on mobile */
        gap: 20px;
    }
    .step, .step:first-child, .step:last-child {
        clip-path: none; /* Remove chevron shape on mobile, make them simple cards */
        margin-right: 0;
        padding: 25px;
        border-radius: var(--border-radius); /* Add border radius for card look */
    }
    footer nav ul {
        flex-direction: column;
        gap: 10px;
    }
}

/* Benefits for Therapists Section */
.therapist-benefits-layout {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    margin-top: 30px;
}

.therapist-benefits-timeline {
    flex: 1.2; /* More space for timeline content */
    position: relative;
    padding-left: 30px; /* Space for the main timeline bar */
}

/* The main vertical timeline bar */
.therapist-benefits-timeline::before {
    content: '';
    position: absolute;
    left: 10px; /* Position of the bar */
    top: 15px;  /* Start below first icon's top */
    bottom: 15px; /* End above last icon's bottom */
    width: 2px;
    background-color: #ddd; /* Light gray for the bar */
}

.timeline-item {
    display: flex;
    align-items: flex-start; /* Align icon top with text top */
    margin-bottom: 30px;
    position: relative; /* For icon positioning relative to the bar */
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-icon {
    width: 40px;
    height: 40px;
    background-color: #f0f0f0; /* Light gray background for icon */
    border-radius: var(--border-radius); /* Rounded square */
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-color);
    font-size: 1.5em;
    margin-right: 20px;
    flex-shrink: 0;
    position: absolute; /* Position relative to timeline bar */
    left: -10px; /* Center icon on the timeline bar (half of width - bar left pos) */
    top: 0; /* Align with top of timeline-content */
    z-index: 1; /* Above the timeline bar */
}

.timeline-content {
    padding-left: 40px; /* Increased padding to give more space from icon */
}

.timeline-content h3 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 1.2em;
    color: var(--dark-gray);
    font-weight: 600;
}

.timeline-content p {
    font-size: 0.95em;
    color: var(--text-color-light);
    line-height: 1.6;
    margin: 0;
}

.therapist-benefits-image {
    flex: 0.8;
    text-align: center;
}

.therapist-benefits-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Responsive for Therapist Benefits */
@media (max-width: 768px) {
    .therapist-benefits-layout {
        flex-direction: column;
    }
    .therapist-benefits-image {
        order: -1; /* Image on top on mobile */
        margin-bottom: 30px;
    }
    .therapist-benefits-timeline {
        padding-left: 25px; /* Adjust for mobile */
    }
    .timeline-icon {
        left: -12px; /* Adjust icon position on bar */
    }
}


/* Alternating Background Section Style */
.section-bg-alt {
    background-color: var(--primary-color);
    color: var(--background-color); /* Default text color for this section */
}

/* Ensure headings and paragraphs within these sections also get the light color */
.section-bg-alt h2,
.section-bg-alt h3,
.section-bg-alt p {
    color: var(--background-color);
}

/* Specific overrides for components within an alternating background section */
/* Service items if they are on a green background */
.section-bg-alt .service {
    background-color: var(--primary-color-darker); /* Or a slightly lighter shade of primary, or transparent white */
    border-top-color: var(--background-color); /* Make border contrast */
}
.section-bg-alt .service .service-icon,
.section-bg-alt .service h3,
.section-bg-alt .service p {
    color: var(--background-color);
}

/* How It Works steps if they are on a green background */
.section-bg-alt .step {
    background-color: var(--primary-color-darker); /* Or a slightly lighter shade of primary */
}
.section-bg-alt .step .step-icon-container i,
.section-bg-alt .step h3,
.section-bg-alt .step p {
    color: var(--background-color);
}

/* Benefit items (for "Benefits for You") if on green background */
.section-bg-alt .benefit-item {
    background-color: var(--primary-color-darker);
}
.section-bg-alt .benefit-item h3,
.section-bg-alt .benefit-item p {
    color: var(--background-color);
}

/* Timeline items (for "Benefits for Therapists") if on green background */
.section-bg-alt .timeline-icon {
    background-color: var(--background-color); /* Light icon bg on green section */
    color: var(--primary-color); /* Dark icon on light bg */
}
.section-bg-alt .timeline-content h3,
.section-bg-alt .timeline-content p {
    color: var(--background-color);
}
.section-bg-alt .therapist-benefits-timeline::before {
    background-color: var(--secondary-color); /* Lighter timeline bar on green */
}


/* Taking Small Steps items if on green background */
.section-bg-alt .step-bar {
    background-color: var(--secondary-color); /* Lighter bar on green */
}
.section-bg-alt .step-item h3,
.section-bg-alt .step-item p {
    color: var(--background-color);
}


/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* "We All Do Mental Health" Section - Wellness Pillars Layout */
#we-all-do-mental-health {
    /* section-bg-alt is already applied in HTML for green background */
    padding-top: 60px;
    padding-bottom: 60px;
}

#we-all-do-mental-health h2 {
    color: var(--background-color); /* White text on green background */
    margin-bottom: 50px;
    text-align: center;
}

.wellness-pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.wellness-pillar {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white cards on green bg */
    padding: 30px 25px;
    border-radius: var(--border-radius);
    text-align: center;
    color: var(--background-color); /* White text for content */
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.wellness-pillar:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.pillar-icon {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: var(--background-color); /* White icon */
}

.wellness-pillar h3 {
    font-size: 1.5em;
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--background-color); /* White heading */
}

.wellness-pillar p {
    font-size: 0.95em;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9); /* Slightly off-white for paragraph */
}


/* Summary of Benefits Section on How Myndgard Works Page - New Grid Layout */
#summary-of-benefits {
    /* section-bg-alt is already applied in HTML for green background */
    padding-top: 60px;
    padding-bottom: 60px;
}

#summary-of-benefits h2 {
    color: var(--background-color); /* White text on green background */
    margin-bottom: 50px;
    text-align: center;
}

.benefits-grid { /* This class is for the new grid on how-myndgard-works.html */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* 2-4 columns */
    gap: 30px;
}

.benefit-card { /* Styling for individual cards in the benefits grid */
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white cards */
    padding: 30px 25px;
    border-radius: var(--border-radius);
    text-align: center;
    color: var(--background-color); /* White text for content */
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.benefit-card:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.benefit-icon { /* Icon within the benefit card */
    font-size: 2.8em;
    margin-bottom: 20px;
    color: var(--background-color); /* White icon */
}

.benefit-card h3 {
    font-size: 1.4em; /* Slightly smaller than wellness pillar h3 */
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--background-color); /* White heading */
}

.benefit-card p {
    font-size: 0.9em;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9); /* Slightly off-white for paragraph */
}

/* Removing old Pyramid Styles as they are no longer used */
/* .pyramid-complex-wrapper, .pyramid-graphic-element, .pyramid-graphic-segment, */
/* .pyramid-text-elements, .pyramid-text-item, .text-content-wrapper, */
/* #summary-of-benefits .pyramid-text-elements .pyramid-text-item:nth-child(1) etc. */
/* All pyramid-specific styles and their media queries are now removed. */


/* Taking Small Steps Section */
#taking-small-steps h2 {
    text-align: left; /* Align title to the left as per screenshot */
    margin-bottom: 40px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* 4 columns on larger screens */
    gap: 30px;
    margin-top: 20px;
}

.step-item {
    /* No background color for the item itself, text is on page background */
}

.step-bar {
    display: block;
    width: 60px; /* Adjust width as needed */
    height: 6px; /* Adjust height as needed */
    background-color: #f0f0f0; /* Light gray bar */
    margin-bottom: 15px;
    border-radius: 3px; /* Slightly rounded ends for the bar */
}

.step-item h3 {
    font-size: 1.25em;
    color: var(--dark-gray);
    margin-top: 0;
    margin-bottom: 10px;
    font-weight: 600;
}

.step-item p {
    font-size: 0.9em;
    color: var(--text-color-light);
    line-height: 1.6;
}

/* Responsive for Taking Small Steps */
@media (max-width: 992px) {
    .steps-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* 2 columns on medium screens */
    }
}

@media (max-width: 576px) {
    .steps-grid {
        grid-template-columns: 1fr; /* 1 column on small screens */
    }
    #taking-small-steps h2 {
        text-align: center; /* Center title on small screens if preferred */
    }
    .step-item {
        text-align: center; /* Center text within item on small screens */
    }
    .step-bar {
        margin-left: auto;
        margin-right: auto; /* Center bar when item text is centered */
    }
}

/* Dashboard Overview Section on How It Works Page */
#dashboard-overview .feature-text h2 {
    text-align: left; /* Override default center alignment for this section's h2 */
    margin-bottom: 20px;
}

.dashboard-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.dashboard-feature-item {
    background-color: var(--secondary-color); /* Light teal background */
    padding: 20px;
    border-radius: var(--border-radius);
}

.dashboard-feature-item h3 {
    color: var(--primary-color-darker); /* Darker teal text for contrast */
    font-size: 1.15em;
    margin-top: 0;
    margin-bottom: 8px;
}

.dashboard-feature-item p {
    color: var(--text-color); /* Standard text color */
    font-size: 0.9em;
    margin-bottom: 0;
}

.dashboard-feature-item.full-width-feature {
    grid-column: 1 / -1; /* Span full width */
}

@media (max-width: 768px) {
    .dashboard-features-grid {
        grid-template-columns: 1fr; /* Stack items on smaller screens */
    }
    #dashboard-overview .feature-text h2 {
        text-align: center; /* Center title on mobile if preferred */
    }
}

/* Self-Assessment Tools Section on How It Works Page */
#self-assessment-tools h2 {
    /* Default center alignment is fine */
}

.assessment-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* 3 columns on larger screens */
    gap: 30px;
    margin-top: 20px;
}

.tool-item {
    background-color: var(--light-gray); /* Consistent light gray background */
    padding: 25px;
    border-radius: var(--border-radius);
    text-align: center; /* Center content within each tool item */
}

.tool-item h3 {
    font-size: 1.3em;
    color: var(--primary-color-darker);
    margin-top: 0;
    margin-bottom: 10px;
}

.tool-item p {
    font-size: 0.9em;
    color: var(--text-color-light);
    margin-bottom: 20px; /* Space before image */
    min-height: 3em; /* Give some space even if p is short, for alignment */
}

.tool-item img {
    max-width: 80%; /* Control image size within the item */
    height: auto;
    border-radius: var(--border-radius); /* Optional: round corners of app mockups */
    box-shadow: 0 4px 12px rgba(0,0,0,0.1); /* Subtle shadow for depth */
    margin: 0 auto; /* Center image if it's narrower than 80% */
}

/* Responsive for Self-Assessment Tools */
@media (max-width: 992px) {
    .assessment-tools-grid {
        /* Will naturally go to 2 columns if space allows, then 1 */
    }
}
    /* No specific changes for 768px needed if auto-fit works well,
   but can add if specific stacking or item styling is required. */

/* Image size adjustments for specific sections on how-myndgard-works.html */
#how-works-hero .hero-image img, /* Added for the hero section image on this page */
#dashboard-overview .feature-image img,
#movement-tracking .feature-image img,
#personalisation-profile .feature-image img {
    max-width: 75%; /* Reduce size to 75% of the .feature-image container */
    display: block; /* Needed to allow margin auto to center */
    margin-left: auto;
    margin-right: auto;
}


/* Movement Tracking Section on How It Works Page */
#movement-tracking .feature-text h2 {
    text-align: left;
    margin-bottom: 25px;
}

ul.feature-list {
    list-style: none;
    padding-left: 0; /* Remove default ul padding */
}

ul.feature-list li {
    position: relative;
    padding-left: 25px; /* Space for the vertical bar */
    margin-bottom: 20px;
}

ul.feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px; /* Align with text */
    width: 4px; /* Bar width */
    height: calc(100% - 10px); /* Bar height, adjust as needed */
    background-color: var(--secondary-color); /* Light teal bar */
    border-radius: 2px;
}

ul.feature-list li strong {
    display: block;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 4px;
    font-size: 1.1em;
}

ul.feature-list li p {
    margin: 0;
    font-size: 0.9em;
    color: var(--text-color-light);
}

@media (max-width: 768px) {
    #movement-tracking .feature-text h2 {
        text-align: center;
    }
    ul.feature-list li {
        padding-left: 20px; /* Adjust for mobile */
    }
    ul.feature-list li::before {
        left: 0px;
    }
} /* Added missing closing brace for @media (max-width: 768px) */

/* Personalisation & Profile Section on How It Works Page */
#personalisation-profile .feature-text h2 {
    text-align: left;
    margin-bottom: 25px;
}

ul.icon-feature-list {
    list-style: none;
    padding-left: 0;
}

ul.icon-feature-list li {
    display: flex;
    align-items: flex-start; /* Align icon top with text block */
    margin-bottom: 25px;
    gap: 15px; /* Gap between icon and text content */
}

.icon-feature-icon {
    font-size: 1.6em; /* Icon size */
    color: var(--primary-color);
    width: 30px; /* Fixed width for alignment */
    text-align: center;
    flex-shrink: 0;
}

.icon-feature-content strong {
    display: block;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 3px;
    font-size: 1.1em;
}

.icon-feature-content p {
    margin: 0;
    font-size: 0.9em;
    color: var(--text-color-light);
}

@media (max-width: 768px) {
    #personalisation-profile .feature-text h2 {
        text-align: center;
    }
}

/* New Mindfulness Support Section Styles - Grid Layout */
#mindfulness-support h2 {
    text-align: center; /* Center title for grid layout */
    margin-bottom: 40px;
}

.mindfulness-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive grid */
    gap: 30px;
    margin-top: 20px;
}

.mindfulness-card {
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid var(--secondary-color); /* Accent border */
}

.mindfulness-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.mindfulness-card i {
    font-size: 2.5em; /* Icon size */
    color: var(--primary-color);
    margin-bottom: 15px;
}

.mindfulness-card h3 {
    font-size: 1.3em;
    color: var(--primary-color-darker);
    margin-top: 0;
    margin-bottom: 8px;
}

.mindfulness-card p {
    font-size: 0.9em;
    color: var(--text-color-light);
    line-height: 1.5;
    margin-bottom: 0; /* Remove bottom margin if it's the last element */
}

/* How To Register Page Styles */
.registration-steps {
    margin-top: 30px;
}

.registration-step {
    background-color: var(--light-gray);
    padding: 25px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

.step-number-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: #fff;
    font-size: 1.8em;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.registration-step h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--primary-color-darker);
}

.registration-step p {
    margin-bottom: 10px;
    line-height: 1.6;
}
.registration-step p:last-child {
    margin-bottom: 0;
}

.app-store-buttons {
    margin-top: 15px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.app-store-btn {
    background-color: var(--dark-gray) !important; /* Override btn-secondary for these */
    color: #fff !important;
    padding: 10px 20px !important;
}
.app-store-btn:hover {
    background-color: #555 !important;
}

.app-store-btn i {
    margin-right: 8px;
}

@media (max-width: 768px) {
    .registration-step {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .step-number-icon {
        margin-bottom: 15px;
    }
    .app-store-buttons {
        justify-content: center;
    }
}
