:root {
    --primary: #00a2e5;
    --dark-grey: #333333;
    --navy-blue: #003366;
    --white: #ffffff;
    --light-blue: rgba(0, 162, 229, 0.1);
    --light-grey: #f9f9f9;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth; /* Added for smooth scrolling to anchors */
}

body {
    color: var(--dark-grey);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    background-color: var(--white); /* Ensure body bg for elements */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 5;
}

/* Animated Background Elements */
.bg-element {
    position: fixed;
    opacity: 0.03;
    z-index: 1; /* Ensure they are behind content */
    pointer-events: none;
    animation: float 25s linear infinite;
    color: var(--navy-blue); /* Give icons a color */
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.03;
    }
    90% {
        opacity: 0.03;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg); /* Use vh for better viewport coverage */
        opacity: 0;
    }
}

/* Header Styles */
header {
    background-color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 5px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: var(--navy-blue);
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 20px; /* Adjusted margin for more links */
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-grey);
    font-weight: 600;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s;
    white-space: nowrap; /* Prevent wrapping on smaller navs */
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

/* Style for the new buttons - optional, making them look like buttons */
.nav-links a.nav-button {
     background-color: var(--primary);
     color: var(--white);
     padding: 8px 15px;
     border-radius: 20px;
     margin-left: 5px; /* Add some space before the button */
     transition: background-color 0.3s, transform 0.3s;
     border: 2px solid var(--primary);
}
.nav-links a.nav-button:hover {
     background-color: var(--navy-blue);
     border-color: var(--navy-blue);
     color: var(--white); /* Ensure text remains white on hover */
     transform: translateY(-2px);
}
.nav-links a.nav-button::after {
     display: none; /* Remove the underline effect */
}


.menu-toggle {
    display: none;
    cursor: pointer;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--dark-grey);
    margin: 5px 0;
    transition: 0.4s;
}

/* Hero Section */
.hero {
    background: linear-gradient(to right, rgba(0, 51, 102, 0.9), rgba(0, 162, 229, 0.8)), url('images/h1.jpeg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
    padding: 180px 20px 120px;
    margin-top: 0; /* Ensure no gap */
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero p {
    font-size: 22px;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1.2s ease;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

.hero-tagline {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 30px;
    animation: fadeInUp 1.4s ease;
    color: rgba(255, 255, 255, 0.9);
}

/* Button Styles */
.btn {
    display: inline-block;
    background-color: var(--primary);
    color: var(--white);
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: 2px solid var(--primary);
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 162, 229, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    z-index: -1;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 162, 229, 0.4);
}

.btn:hover::before {
    width: 100%;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--white);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.3);
}

.btn-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- Index Page Newsletter CTA Button --- */
.pre-section-cta {
    padding: 60px 0;
    text-align: center;
    background-color: var(--light-grey);
}

/* --- Our Approach Section --- */
.approach {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}
/* Add scroll margin top to prevent header overlap */
section[id] {
  scroll-margin-top: 80px; /* Adjust value based on your fixed header height */
}

.section-header {
    text-align: center;
    margin-bottom: 70px;
    position: relative;
}

.section-header h2 {
    font-size: 40px;
    color: var(--navy-blue);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary);
}

.section-header p {
    color: var(--dark-grey);
    max-width: 700px;
    margin: 20px auto 0;
    font-size: 18px;
}

.approach-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    align-items: center;
}

/* Approach Slideshow Styles */
.approach-image {
    position: relative;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 50px;
    width: 100%;
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
    aspect-ratio: 16/10; /* Maintain aspect ratio */
    background-color: var(--light-grey);
}

.approach-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100px;
    height: 100px;
    border-top: 4px solid var(--primary);
    border-left: 4px solid var(--primary);
    z-index: 10;
    opacity: 0.7;
}

.approach-image::after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    border-bottom: 4px solid var(--primary);
    border-right: 4px solid var(--primary);
    z-index: 10;
    opacity: 0.7;
}

.approach-slideshow .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    border-radius: 10px;
}

.approach-slideshow .slide.active {
    opacity: 1;
}

.approach-text {
     text-align: center;
     max-width: 800px;
     margin: 0 auto;
}

.approach-text h3 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 26px;
}

.approach-text p {
    margin-bottom: 25px;
    font-size: 17px;
    color: #555;
}

/* Services Section */
.services {
    background-color: var(--light-grey);
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

/* Longevity AI Card */
.longevity-ai-card {
    background-color: var(--white);
    border-radius: 15px;
    padding: 30px 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    margin-bottom: 50px; /* Space before the grid of 3 cards */
    text-align: left;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 162, 229, 0.15);
}

.longevity-ai-card::before {
    content: '\f5dc'; /* FontAwesome brain icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 80px;
    color: rgba(0, 51, 102, 0.04); /* Navy blue, very transparent */
    position: absolute;
    top: 25px;
    right: 25px;
    line-height: 1;
    transform: rotate(10deg);
    z-index: 0; /* Behind content */
}

.longevity-ai-card > * { /* Ensure content is above the ::before */
    position: relative;
    z-index: 1;
}

.longevity-ai-card h3 {
    color: var(--navy-blue);
    font-size: 26px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 700;
}

.longevity-ai-card h4 { /* For "Exclusively for members..." */
    color: var(--primary);
    font-size: 20px;
    margin-top: 25px;
    margin-bottom: 15px;
    font-weight: 600;
}

.longevity-ai-card p {
    margin-bottom: 15px;
    color: var(--dark-grey);
    line-height: 1.7;
    font-size: 16px;
}

.longevity-ai-card ul {
    list-style-type: none;
    padding-left: 0;
    margin-top: 10px;
    margin-bottom: 20px;
}

.longevity-ai-card ul li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 30px;
    font-size: 16px;
    color: var(--dark-grey);
}

.longevity-ai-card ul li::before {
    content: "\f00c"; /* FontAwesome checkmark */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--primary);
    position: absolute;
    left: 0;
    top: 4px;
    font-size: 15px;
}

.longevity-ai-card p strong { /* For the last tagline */
    color: var(--navy-blue);
    display: block;
    margin-top: 25px;
    text-align: center;
    font-size: 17px;
    font-weight: 600;
}


.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.service-card {
    background-color: var(--white);
    border-radius: 15px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    position: relative;
    z-index: 5;
    overflow: hidden;
    border-bottom: 4px solid transparent;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 162, 229, 0.05) 0%, rgba(0, 51, 102, 0.02) 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-bottom: 4px solid var(--primary);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    font-size: 60px;
    color: var(--primary);
    margin-bottom: 25px;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-card h3 {
    color: var(--navy-blue);
    margin-bottom: 20px;
    font-size: 24px;
    position: relative;
    padding-bottom: 15px;
}

.service-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary);
}

.service-card p {
    margin-bottom: 25px;
    color: #555;
    flex-grow: 1;
}

.service-card ul {
    list-style-type: none;
    margin-bottom: 20px;
}

.service-card ul li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 28px;
    font-size: 16px;
}

.service-card ul li:before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--primary);
    position: absolute;
    left: 0;
}

/* Benefits Section */
.benefits {
    padding: 120px 0;
    background-color: var(--white);
}

.benefits-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
}

.benefit-item {
    text-align: center;
    padding: 40px 30px;
    border-radius: 15px;
    background-color: var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    background-color: var(--light-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 25px;
}

.benefit-icon i {
    font-size: 40px;
    color: var(--primary);
}

.benefit-item h3 {
    color: var(--navy-blue);
    font-size: 22px;
    margin-bottom: 15px;
}

.benefit-item p {
    color: #555;
    font-size: 16px;
}

/* --- Process Section --- */
.process {
    padding: 120px 0;
    background-color: var(--light-grey);
    position: relative;
}

.process-steps {
    display: flex;
    justify-content: space-between; /* Distributes items along the line */
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    gap: 20px; /* Add some gap between flex items */
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 40px;
    width: calc(100% - 80px);
    height: 4px;
    background-color: var(--light-blue);
    z-index: 1;
}

.process-step {
    text-align: center;
    position: relative;
    z-index: 2;
    flex: 1; /* Make steps take equal width */
    margin-bottom: 40px; /* Keep bottom margin for responsive wrapping */
}

.step-number {
    width: 80px;
    height: 80px;
    background-color: var(--white);
    border: 4px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 30px;
    font-weight: bold;
    color: var(--primary);
    transition: all 0.3s ease;
    position: relative; /* Ensure number is above line */
    background-color: var(--light-grey); /* Match section background */
}

.process-step:hover .step-number {
    background-color: var(--primary);
    color: var(--white);
    transform: scale(1.1);
    box-shadow: 0 10px 20px rgba(0, 162, 229, 0.3);
}

.process-step h3 {
    color: var(--navy-blue);
    margin-bottom: 10px;
    font-size: 20px;
}

.process-step p {
    color: #555;
    font-size: 15px;
}

/* Team Section */
.team {
    padding: 120px 0;
    background-color: var(--white);
    position: relative;
    overflow: hidden;
}

.team-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.team-member {
    flex: 0 0 calc(20% - 16px);
    max-width: calc(20% - 16px);
    text-align: center;
    transition: all 0.4s ease;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
    display: flex;
    flex-direction: column;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.team-member-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    width: 100%;
    background-color: var(--light-grey);
}

.team-member img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
    display: block;
}

.team-member:hover img {
    transform: scale(1.05);
}

.team-member-info {
    padding: 25px 20px 25px 20px; /* Adjusted padding */
    position: relative;
    flex-grow: 1;
    text-align: left;
}

.team-member-details {
    margin-top: 15px;
}


.team-member h3 {
    color: var(--navy-blue);
    margin-bottom: 5px;
    font-size: 20px;
}

.team-member span.title {
    color: var(--primary);
    font-weight: 600;
    display: block;
    margin-bottom: 15px;
    font-size: 14px;
}

.team-member .credentials {
    color: #666;
    font-size: 14px;
    font-style: italic;
    margin-bottom: 15px;
    line-height: 1.4;
}

.team-member p {
    color: #666;
    font-size: 15px;
    margin-bottom: 15px;
    line-height: 1.5;
    padding-bottom: 15px; /* Add padding to bottom */
}

/* Success Stories Section */
.success-stories {
    padding: 120px 0;
    background-color: var(--light-grey);
    position: relative;
    overflow: hidden;
}

.stories-container {
    max-width: 1000px;
    margin: 0 auto;
}

.story-card {
    background-color: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
    position: relative;
}

.story-card::before {
    content: '\f10d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 80px;
    color: rgba(0, 162, 229, 0.05);
    position: absolute;
    top: 30px;
    left: 30px;
    line-height: 1;
}

.story-content {
    display: flex;
    gap: 40px;
    align-items: center;
    flex-wrap: wrap;
}

.story-text {
    flex: 1;
    min-width: 300px;
}

.story-text p {
    font-style: italic;
    margin-bottom: 25px;
    font-size: 17px;
    position: relative;
    z-index: 1;
}

.story-author {
    display: flex;
    align-items: center;
}

.story-author img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 20px;
    border: 3px solid rgba(0, 162, 229, 0.1);
}

.author-info h4 {
    color: var(--navy-blue);
    margin-bottom: 5px;
    font-size: 20px;
}

.author-info span {
    color: var(--primary);
    font-size: 15px;
}

.story-results {
    flex: 1;
    min-width: 300px;
    background-color: var(--light-blue);
    padding: 25px;
    border-radius: 10px;
}

.story-results h4 {
    color: var(--navy-blue);
    margin-bottom: 15px;
    font-size: 18px;
    text-align: center;
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.result-item:last-child {
    border-bottom: none;
}

.result-label {
    color: #555;
}

.result-value {
    font-weight: bold;
    color: var(--primary);
}

/* Blog Section */
.blog {
    padding: 120px 0;
    background-color: var(--white);
    position: relative;
    overflow: hidden;
}

.blog-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 50px;
}

.blog-card {
    background-color: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    position: relative;
}

.blog-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.blog-image {
    height: 220px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-content {
    padding: 25px;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 14px;
    color: #777;
}

.blog-meta span {
    display: flex;
    align-items: center;
}

.blog-meta i {
    margin-right: 5px;
    color: var(--primary);
}

.blog-card h3 {
    color: var(--navy-blue);
    margin-bottom: 15px;
    font-size: 22px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.blog-card:hover h3 {
    color: var(--primary);
}

.blog-excerpt {
    color: #666;
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.6;
}

.read-more {
    display: inline-flex;
    align-items: center;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.read-more i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.read-more:hover {
    color: var(--navy-blue);
}

.read-more:hover i {
    transform: translateX(5px);
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.blog-tag {
    background-color: var(--light-blue);
    color: var(--primary);
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.blog-tag:hover {
    background-color: var(--primary);
    color: white;
}

.view-all-btn {
    text-align: center;
    margin-top: 50px;
}

/* Affiliations Section */
.affiliations {
    padding: 120px 0;
    background-color: var(--light-grey);
}

.affiliations-grid {
    display: flex;
    justify-content: center;
    align-items: stretch; /* Make items equal height */
    gap: 50px;
    flex-wrap: wrap;
    margin-top: 50px;
}

.affiliation-item {
    background-color: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
    flex: 1;
    max-width: 450px;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
}

.affiliation-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.affiliation-item a {
    display: block;
    margin-bottom: 25px;
}

.affiliation-item img {
    max-height: 100px; /* Control height */
    width: auto;
    max-width: 100%;
}

.affiliation-item h3 {
    color: var(--navy-blue);
    font-size: 22px;
    margin-bottom: 15px;
}

.affiliation-item p {
    color: #555;
    font-size: 16px;
    line-height: 1.6;
    flex-grow: 1; /* Pushes content down if needed */
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--navy-blue), var(--primary));
    color: var(--white);
    text-align: center;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.cta h2 {
    font-size: 40px;
    margin-bottom: 25px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.cta p {
    max-width: 700px;
    margin: 0 auto 35px;
    font-size: 18px;
    line-height: 1.7;
}

/* --- START: NEWSLETTER HUB PAGE STYLES --- */
.newsletter-hub-hero {
    background: linear-gradient(to right, rgba(0, 51, 102, 0.9), rgba(0, 162, 229, 0.8)), url('images/blog1.avif');
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
    padding: 180px 20px 120px;
    margin-top: 0;
}
.newsletter-hub-hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
.newsletter-hub-hero p {
    font-size: 22px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-archive {
    padding: 120px 0;
    background-color: var(--white);
}

.newsletter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.newsletter-card {
    background-color: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    border-left: 5px solid var(--primary);
}

.newsletter-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-left-color: var(--navy-blue);
}

.newsletter-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Makes the card content fill height */
}

.newsletter-meta {
    font-size: 14px;
    color: #777;
    margin-bottom: 15px;
    font-weight: 600;
}

.newsletter-meta i {
    margin-right: 8px;
    color: var(--primary);
}

.newsletter-card h3 {
    color: var(--navy-blue);
    margin-bottom: 15px;
    font-size: 24px;
    line-height: 1.4;
}

.newsletter-excerpt {
    color: #666;
    margin-bottom: 25px;
    font-size: 16px;
    line-height: 1.6;
    flex-grow: 1; /* Pushes the button to the bottom */
}

.newsletter-card .btn {
    padding: 10px 25px;
    font-size: 14px;
    border-radius: 25px;
    align-self: flex-start; /* Aligns button to the left */
}
/* --- END: NEWSLETTER HUB PAGE STYLES --- */


/* Footer */
footer {
    background-color: var(--navy-blue);
    color: var(--white);
    padding: 100px 0 20px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary), transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 60px;
    margin-bottom: 80px;
}

.footer-column h3 {
    color: var(--primary);
    margin-bottom: 25px;
    font-size: 22px;
    position: relative;
    padding-bottom: 15px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s;
    padding-left: 0;
    position: relative;
    display: inline-block;
}

.footer-links a::before {
    content: '\f054';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 12px;
    position: absolute;
    left: -15px;
    top: 5px;
    opacity: 0;
    transition: all 0.3s;
    color: var(--primary);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 15px;
}

.footer-links a:hover::before {
    opacity: 1;
    left: 0;
}

.contact-info {
    list-style: none;
}

.contact-info li {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
}

.contact-info i {
    margin-right: 15px;
    color: var(--primary);
    font-size: 18px;
    margin-top: 5px;
}

.contact-info p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.social-media {
    display: flex;
    margin-top: 25px;
    gap: 12px;
}

.social-media a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 18px;
}

.social-media a:hover {
    background-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 162, 229, 0.3);
}

.subscribe-form {
    margin-top: 25px;
}

.subscribe-form input {
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.05);
    margin-bottom: 15px;
    color: var(--white);
    transition: all 0.3s;
}

.subscribe-form input:focus {
    outline: none;
    border-color: var(--primary);
    background-color: rgba(255, 255, 255, 0.1);
}

.subscribe-form button {
    background-color: var(--primary);
    color: var(--white);
    border: none;
    padding: 14px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.subscribe-form button:hover {
    background-color: #0082b5;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.copyright {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 1s ease forwards;
}

.fade-in-up {
    opacity: 0; /* Start hidden for JS animation OR CSS :loaded rule */
}
body.loaded .fade-in-up { /* Apply animation once body is loaded */
     animation: fadeInUp 1s ease forwards;
}


/* Media Queries */
@media (max-width: 1200px) {
     .team-member {
         flex: 0 0 calc(33.33% - 14px);
         max-width: calc(33.33% - 14px);
     }
     .nav-links li {
         margin-left: 15px; /* Reduce spacing slightly */
     }
     .nav-links a {
         font-size: 0.95em; /* Slightly smaller font */
     }
     .nav-links a.nav-button {
         padding: 7px 12px;
     }
}

@media (max-width: 992px) {
    /* Approach section already stacks due to single column grid */
    .approach-image {
        margin-bottom: 40px; /* Adjust spacing if needed */
    }
     .approach-text {
         text-align: left; /* Revert centering if desired on smaller screens */
    }


    .hero {
        padding: 150px 20px 100px;
    }

    .hero h1 {
        font-size: 42px;
    }

    .service-card, .benefit-item { /* Note: .longevity-ai-card will also inherit this if not overridden */
        transform: translateY(0) !important;
    }
    .longevity-ai-card { /* Ensure longevity card does not have hover transforms meant for smaller cards */
         transform: translateY(0) !important;
    }

    /* Process Steps Responsive */
    .process-steps {
        flex-wrap: wrap; /* Allow wrapping */
        justify-content: center; /* Center items when wrapped */
        gap: 20px;
        max-width: 100%; /* Allow full width */
    }

    .process-steps::before {
        display: none; /* Hide connecting line when wrapping */
    }

    .process-step {
        flex: 0 0 calc(33% - 14px); /* Roughly 3 per line */
        max-width: 250px; /* Max width for each step */
    }

     /* Team layout for tablets */
     .team-member {
         flex: 0 0 calc(50% - 10px);
         max-width: calc(50% - 10px);
     }
     /* Hide button styles for mobile menu trigger point */
     .nav-links a.nav-button {
         display: none;
     }
     .newsletter-hub-hero {
        padding: 150px 20px 100px;
     }
     .newsletter-hub-hero h1 {
        font-size: 42px;
     }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        z-index: 1001;
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        background-color: var(--white);
        width: 80%;
        height: 100vh;
        flex-direction: column;
        align-items: center;
        padding: 100px 0 30px;
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
        transition: left 0.4s ease;
        z-index: 1000;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 15px 0;
        margin-left: 0; /* Reset margin for vertical layout */
    }
    /* Show nav buttons in mobile menu */
    .nav-links a.nav-button {
         display: inline-block; /* Or block if you want full width */
         margin-left: 0;
         margin-top: 10px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
    }

    .hero-tagline {
        font-size: 22px;
    }

    .section-header h2 {
        font-size: 32px;
    }
    .section-header {
        margin-bottom: 50px; /* Adjust for new card spacing */
    }


    .footer-content {
        gap: 40px;
    }

    .btn-group {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .btn {
        width: 80%;
        max-width: 300px;
    }

    .blog-container {
        grid-template-columns: 1fr;
    }

    .story-content {
        flex-direction: column;
    }

     .process-step {
        flex: 0 0 calc(50% - 10px); /* 2 per line */
     }

    /* Team layout for mobile - Stacked */
    .team-grid {
         flex-direction: column;
         align-items: center;
    }
    .team-member {
         flex: 0 0 90%;
         max-width: 400px;
         margin-bottom: 30px;
    }
     .team-member:last-child {
         margin-bottom: 0;
    }

    .longevity-ai-card {
        padding: 25px 20px;
    }
    .longevity-ai-card h3 {
        font-size: 22px;
    }
    .longevity-ai-card h4 {
        font-size: 18px;
    }
    .longevity-ai-card::before { /* Hide decorative icon on smaller screens or make smaller */
        font-size: 60px;
        top: 15px;
        right: 15px;
    }
    .newsletter-hub-hero h1 {
        font-size: 32px;
    }
    .newsletter-hub-hero p {
        font-size: 18px;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 130px 20px 80px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .service-card, .team-member, .benefit-item, .story-card, .blog-card, .affiliation-item {
        padding: 25px 20px;
    }
     .team-member-info {
         padding: 20px 15px 20px 15px; /* Adjusted padding */
    }

    .step-number {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
     .process-steps::before {
         /* display: none; */
     }

    .blog-image {
        height: 180px;
    }
    .longevity-ai-card::before {
        display: none; /* Hide decorative icon on very small screens */
    }

    .newsletter-card {
        padding: 20px;
    }
    .newsletter-content {
        padding: 20px;
    }
    .newsletter-hub-hero {
        padding: 130px 20px 80px;
    }
}
/* --- START: NEWSLETTER ARTICLE PAGE STYLES --- */
.newsletter-article-page {
    padding: 40px 0 80px;
    background-color: var(--white);
    margin-top: 80px; /* Offset for fixed header */
}

.newsletter-article {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--white);
}

.newsletter-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.newsletter-date {
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    font-size: 16px;
}

.newsletter-header h1 {
    font-size: 42px;
    color: var(--navy-blue);
    margin-bottom: 15px;
    line-height: 1.2;
}

.newsletter-tagline {
    font-size: 20px;
    font-style: italic;
    color: var(--dark-grey);
    margin-bottom: 30px;
}

.newsletter-body h2 {
    font-size: 28px;
    color: var(--navy-blue);
    margin-top: 50px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light-blue);
}

.newsletter-body h3 {
    font-size: 22px;
    color: var(--primary);
    margin-top: 30px;
    margin-bottom: 15px;
}

.newsletter-body p, .newsletter-body li {
    font-size: 17px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 20px;
}

.newsletter-body ul, .newsletter-body ol {
    padding-left: 20px;
}

.newsletter-body ul li, .newsletter-body ol li {
    margin-bottom: 15px;
}

.newsletter-image-full {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin-top: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.newsletter-image-inline {
    width: 100%;
    border-radius: 10px;
    margin: 20px 0;
}

/* Box for the general news updates */
.news-update-box {
    background-color: var(--light-grey);
    padding: 40px;
    border-radius: 15px;
    margin-top: 60px;
    border-left: 5px solid var(--primary);
}

.news-update-box h2 {
    border-bottom: none;
    text-align: center;
    margin-top: 0;
    margin-bottom: 40px;
}
.news-update-box p, .news-update-box li {
    font-size: 16px;
}
.news-update-box h3 {
    margin-top: 40px;
}


/* Special layout for sections with images */
.content-image-split {
    display: flex;
    gap: 30px;
    align-items: center;
    margin: 30px 0;
}
.content-image-split .text-content {
    flex: 1;
}
.content-image-split .image-content {
    flex: 0 0 250px; /* Fixed width for the image container */
}
 .content-image-split .image-content img {
    width: 100%;
    border-radius: 10px;
    display: block;
}
/* Reverse order for alternating layouts */
.content-image-split.reverse {
    flex-direction: row-reverse;
}


.newsletter-cta {
    text-align: center;
    padding: 50px 30px;
    margin-top: 60px;
    background-color: var(--light-blue);
    border-radius: 15px;
}

.newsletter-cta h2 {
    color: var(--navy-blue);
    font-size: 28px;
    margin-bottom: 15px;
}

.newsletter-cta p {
    margin-bottom: 30px;
    font-size: 18px;
}

/* --- END: NEWSLETTER ARTICLE PAGE STYLES --- */