/* Mobile-First Base Styles */
:root {
    --primary-color: #1a73e8;
    --secondary-color: #34a853;
    --background-color: #f8f9fa;
    --text-color: #202124;
    --border-color: #dadce0;
    --shadow-color: rgba(60, 64, 67, 0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #202124;
    color: var(--text-color, #202124);
    background: #f8f9fa;
    background: var(--background-color, #f8f9fa);
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    margin: 0;
    padding: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    margin: 2rem 0 1rem;
    font-weight: 600;
}

h1 {
    font-size: clamp(1.875rem, 5vw, 2.5rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    letter-spacing: -0.01em;
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
}

p {
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* Touch-friendly elements */
button,
.nav-btn,
.feature-card,
input,
select,
textarea {
    min-height: 44px;
    touch-action: manipulation;
}

/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

@media (min-width: 768px) {
    .container {
        padding: 2rem;
    }
}

/* Breadcrumb Navigation */
.breadcrumb {
    background: white;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 20; /* Increased z-index to ensure it's above other elements */
    width: 100%;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.nav-wrapper ol {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-wrapper li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-color);
    font-size: 0.95rem;
}

.nav-wrapper li:not(:last-child)::after {
    content: "/";
    color: var(--border-color);
    opacity: 0.7;
}

.nav-wrapper a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    margin: -0.25rem -0.5rem;
}

.nav-wrapper a:hover {
    color: var(--secondary-color);
    background: rgba(26, 115, 232, 0.05);
}

.nav-wrapper .active {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    background: var(--background-color);
}

/* Back Button */
.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    background: rgba(26, 115, 232, 0.05);
    white-space: nowrap;
}

.back-button:hover {
    color: var(--secondary-color);
    background: rgba(26, 115, 232, 0.1);
    transform: translateX(-4px);
}

.back-button i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
    position: relative;
    left: 0;
}

.back-button:hover i {
    transform: translateX(-2px);
    left: -2px;
}

.back-button span {
    font-size: 0.95rem;
    font-weight: 500;
}

/* Base Colors */
/* Base Colors and Variables */
:root {
    --primary-color: #1a73e8;
    --secondary-color: #34a853;
    --accent-color: #fbbc05;
    --background-color: #f8f9fa;
    --text-color: #202124;
    --border-color: #dadce0;
    --hover-color: #1557b0;
    --shadow-color: rgba(60, 64, 67, 0.15);
}

/* Fallback Background Colors */
.gradient-primary {
    background: #1a73e8;
    background: -webkit-linear-gradient(315deg, #1a73e8 0%, #34a853 100%);
    background: linear-gradient(135deg, #1a73e8 0%, #34a853 100%);
}

.gradient-light {
    background: #f8f9fa;
    background: -webkit-linear-gradient(315deg, rgba(26, 115, 232, 0.05) 0%, rgba(52, 168, 83, 0.05) 100%);
    background: linear-gradient(135deg, rgba(26, 115, 232, 0.05) 0%, rgba(52, 168, 83, 0.05) 100%);
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

/* Base Styles */
body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--background-color);
    min-height: 100vh;
    padding: 0;
    margin: 0;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: var(--gradient-primary);
    opacity: 0.1;
    z-index: -1;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #1a73e8 0%, #34a853 100%);
    background: linear-gradient(135deg, var(--primary-color, #1a73e8) 0%, var(--secondary-color, #34a853) 100%);
    color: white;
    padding: 3rem 1rem;
    text-align: center;
    margin-bottom: 2rem;
}

.hero-section h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.hero-section p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Navigation */
.nav-links {
    display: -webkit-flex;
    display: flex;
    -webkit-justify-content: center;
    justify-content: center;
    gap: 1rem;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.nav-btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.nav-btn:hover, .nav-btn.active {
    background: rgba(255, 255, 255, 0.25);
    -webkit-transform: translateY(-2px);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Feature Section */
.feature-section {
    text-align: center;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.feature-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #1a73e8;
    color: var(--primary-color, #1a73e8);
}

.feature-section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}


.feature-card i {
    font-size: 2rem;
    color: #1a73e8;
    color: var(--primary-color, #1a73e8);
    margin-bottom: 1rem;
    display: block;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin: 1rem 0;
    color: #202124;
    color: var(--text-color, #202124);
}

.feature-card p {
    color: #202124;
    color: var(--text-color, #202124);
    opacity: 0.8;
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.5;
}

.feature-card::after {
    content: "Learn More →";
    position: absolute;
    bottom: 1rem;
    left: 0;
    right: 0;
    text-align: center;
    color: var(--primary-color);
    font-weight: 500;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.feature-card:hover {
    -webkit-transform: translateY(-5px);
    transform: translateY(-5px);
    -webkit-box-shadow: 0 8px 16px rgba(60, 64, 67, 0.15);
    box-shadow: 0 8px 16px rgba(60, 64, 67, 0.15);
    border-color: #1a73e8;
    border-color: var(--primary-color, #1a73e8);
    padding-bottom: 3.5rem;
}

.feature-card:hover::after {
    opacity: 1;
    transform: translateY(0);
}

.feature-card p {
    margin-bottom: 0.5rem;
    transition: margin 0.3s ease;
}

.feature-card:hover p {
    margin-bottom: 1.5rem;
}

.feature-card:hover .nav-btn {
    background: var(--primary-color);
    color: white;
}

.feature-card i {
    font-size: 2.5rem;
    color: #1a73e8;
    color: var(--primary-color, #1a73e8);
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #202124;
    color: var(--text-color, #202124);
}

.feature-card p {
    font-size: 1rem;
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.feature-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.feature-card ul li {
    padding: 0.5rem 0;
    color: var(--text-color);
    opacity: 0.8;
    position: relative;
    padding-left: 1.5rem;
    line-height: 1.4;
}

.feature-card ul li:before {
    content: "✓";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
        width: 95%;
    }
}

/* Calculator Section */
.calculator-section {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    -webkit-box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    margin: 2rem 0;
}

.calculator-section h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: #1a73e8;
    color: var(--primary-color, #1a73e8);
}

/* Form Elements */
.form-group {
    margin-bottom: 1.5rem;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
    position: relative;
    padding: 1.5rem;
    background: white;
    border-radius: 16px;
    border: 1px solid #dadce0;
    border: 1px solid var(--border-color, #dadce0);
    -webkit-box-shadow: 0 4px 8px rgba(60, 64, 67, 0.15);
    box-shadow: 0 4px 8px rgba(60, 64, 67, 0.15);
}

.form-group:hover {
    -webkit-transform: translateY(-2px);
    transform: translateY(-2px);
    border-color: #1a73e8;
    border-color: var(--primary-color, #1a73e8);
}

label {
    display: block;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #202124;
    color: var(--text-color, #202124);
    font-size: 1.1rem;
}

input[type="number"] {
    width: 100%;
    padding: 1rem;
    border: 2px solid #dadce0;
    border: 2px solid var(--border-color, #dadce0);
    border-radius: 12px;
    font-size: 1.1rem;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
    background-color: white;
}

input[type="number"]:focus {
    border-color: #1a73e8;
    border-color: var(--primary-color, #1a73e8);
    -webkit-box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.15);
    box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.15);
    outline: none;
}

.input-with-unit {
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.input-with-unit input {
    -webkit-flex: 1;
    flex: 1;
    padding-right: 3rem;
}

.input-with-unit .unit {
    position: absolute;
    right: 1rem;
    color: #202124;
    color: var(--text-color, #202124);
    opacity: 0.7;
}

/* Unit Toggle */
.unit-toggle {
    display: -webkit-flex;
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    background: #f8f9fa;
    background: var(--background-color, #f8f9fa);
    padding: 0.5rem;
    border-radius: 8px;
    width: -webkit-fit-content;
    width: fit-content;
}

.unit-toggle button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #202124;
    color: var(--text-color, #202124);
    cursor: pointer;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
    min-width: 100px;
}

.unit-toggle button.active {
    background: white;
    color: #1a73e8;
    color: var(--primary-color, #1a73e8);
    -webkit-box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Activity and Goal Options */
.activity-options, .goal-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.activity-option, .goal-option {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid #dadce0;
    border: 2px solid var(--border-color, #dadce0);
    cursor: pointer;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
    text-align: center;
}

.activity-option:hover, .goal-option:hover {
    border-color: #1a73e8;
    border-color: var(--primary-color, #1a73e8);
    -webkit-transform: translateY(-2px);
    transform: translateY(-2px);
}

.activity-option.active, .goal-option.active {
    border-color: #1a73e8;
    border-color: var(--primary-color, #1a73e8);
    background: rgba(26, 115, 232, 0.05);
    -webkit-box-shadow: 0 4px 8px rgba(26, 115, 232, 0.15);
    box-shadow: 0 4px 8px rgba(26, 115, 232, 0.15);
}

.activity-option i, .goal-option i {
    font-size: 2rem;
    color: #1a73e8;
    color: var(--primary-color, #1a73e8);
    margin-bottom: 1rem;
}

.activity-option h4, .goal-option h4 {
    margin: 0.5rem 0;
    color: #202124;
    color: var(--text-color, #202124);
}

.activity-option p, .goal-option p {
    font-size: 0.9rem;
    color: #202124;
    color: var(--text-color, #202124);
    opacity: 0.8;
    margin: 0;
}

/* Calculate Button */
.calculate-btn {
    background: linear-gradient(135deg, #1a73e8 0%, #1557b0 100%);
    background: linear-gradient(135deg, var(--primary-color, #1a73e8) 0%, var(--hover-color, #1557b0) 100%);
    color: white;
    padding: 1.2rem 2.5rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 600;
    width: 100%;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
    -webkit-box-shadow: 0 4px 8px rgba(26, 115, 232, 0.2);
    box-shadow: 0 4px 8px rgba(26, 115, 232, 0.2);
}

.calculate-btn:hover {
    -webkit-transform: translateY(-2px);
    transform: translateY(-2px);
    -webkit-box-shadow: 0 8px 16px rgba(26, 115, 232, 0.3);
    box-shadow: 0 8px 16px rgba(26, 115, 232, 0.3);
}

/* Results Section */
.results {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    -webkit-box-shadow: 0 12px 24px rgba(60, 64, 67, 0.15);
    box-shadow: 0 12px 24px rgba(60, 64, 67, 0.15);
    margin-top: 3rem;
    -webkit-animation: slideIn 0.6s ease-out;
    animation: slideIn 0.6s ease-out;
}

.results h2 {
    text-align: center;
    color: #1a73e8;
    color: var(--primary-color, #1a73e8);
    margin-bottom: 2rem;
    font-size: 2rem;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.result-item {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    background: linear-gradient(135deg, #ffffff, var(--background-color, #f8f9fa));
    padding: 2rem;
    border-radius: 12px;
    -webkit-box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
    text-align: center;
}

.result-item:hover {
    -webkit-transform: translateY(-5px);
    transform: translateY(-5px);
    -webkit-box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.result-item i {
    font-size: 2.5rem;
    color: #1a73e8;
    color: var(--primary-color, #1a73e8);
    margin-bottom: 1rem;
}

.result-item h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #202124;
    color: var(--text-color, #202124);
}

.result-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1a73e8;
    color: var(--primary-color, #1a73e8);
    margin: 1rem 0;
}

.result-label {
    font-size: 1.1rem;
    color: #202124;
    color: var(--text-color, #202124);
    opacity: 0.8;
}

/* Animation */
@-webkit-keyframes slideIn {
    from { opacity: 0; -webkit-transform: translateY(30px); transform: translateY(30px); }
    to { opacity: 1; -webkit-transform: translateY(0); transform: translateY(0); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    margin-top: 2rem;
    color: #202124;
    color: var(--text-color, #202124);
    opacity: 0.8;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Mobile-First Responsive Design */
@media (max-width: 768px) {
    /* Base Typography */
    body {
        font-size: 16px;
        line-height: 1.5;
    }

    /* Header & Navigation */
    .hero-section {
        padding: 2rem 1rem;
    }

    .hero-section h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .hero-section p {
        font-size: 1rem;
        line-height: 1.5;
    }

    .nav-links {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.5rem;
    }

    .nav-btn {
        width: 100%;
        text-align: center;
        padding: 1rem;
        font-size: 1rem;
        touch-action: manipulation;
    }

    /* Calculator Section */
    .calculator-section {
        padding: 1rem;
        margin: 1rem 0;
    }

    .calculator-section h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    /* Form Elements */
    .form-group {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    label {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    input[type="number"] {
        font-size: 1rem;
        padding: 0.8rem;
        min-height: 44px; /* Touch target size */
    }

    .unit-toggle {
        width: 100%;
        justify-content: center;
        margin-bottom: 1rem;
    }

    .unit-toggle button {
        flex: 1;
        text-align: center;
        padding: 0.8rem;
        min-height: 44px;
        font-size: 1rem;
    }

    /* Activity and Goal Options */
    .activity-options, .goal-options {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .activity-option, .goal-option {
        padding: 1rem;
        min-height: 44px;
        touch-action: manipulation;
    }

    .activity-option i, .goal-option i {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .activity-option h4, .goal-option h4 {
        font-size: 1rem;
        margin: 0.3rem 0;
    }

    .activity-option p, .goal-option p {
        font-size: 0.8rem;
    }

    /* Results Section */
    .results {
        padding: 1.5rem;
        margin-top: 2rem;
    }

    .results h2 {
        font-size: 1.5rem;
    }

    .results-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .result-item {
        padding: 1.5rem;
    }

    .result-item i {
        font-size: 2rem;
    }

    .result-value {
        font-size: 1.3rem;
    }

    /* Calculate Button */
    .calculate-btn {
        padding: 1rem;
        font-size: 1.1rem;
        min-height: 44px;
        margin-top: 1rem;
    }

    /* Breadcrumb Navigation */
    .breadcrumb {
        padding: 0.5rem 0;
        font-size: 0.9rem;
        white-space: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-wrapper {
        gap: 1rem;
    }

    .nav-wrapper ol {
        flex-wrap: nowrap;
    }

    .back-button span {
        display: none;
    }
    
    .back-button {
        padding: 0.5rem;
    }

    /* Touch Interactions */
    button, 
    .nav-btn,
    .activity-option,
    .goal-option,
    .calculate-btn {
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

    /* Prevent Zoom on Input Focus */
    @supports (-webkit-touch-callout: none) {
        input[type="number"],
        select {
            font-size: 16px !important;
        }
    }
}

/* Header Styles */
header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 3rem 1rem;
    text-align: center;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

header p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* Success Stories */
.story-quote {
    font-style: italic;
    margin: 1rem 0;
    opacity: 0.9;
    line-height: 1.5;
}

.feature-card .nav-btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.8rem 1.5rem;
    background: rgba(26, 115, 232, 0.1);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.feature-card .nav-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px var(--shadow-color);
    border-color: var(--primary-color);
}

.story-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.story-card:hover .story-image {
    transform: scale(1.05);
}

.story-content {
    padding: 2rem;
    background: white;
    text-align: center;
}

.success-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.story-content h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    font-weight: 600;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.stat-card {
    background: linear-gradient(135deg, #ffffff, var(--background-color));
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 8px var(--shadow-color);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px var(--shadow-color);
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-color);
    opacity: 0.8;
    font-weight: 500;
}

.story-quote {
    font-style: italic;
    margin: 2rem 0;
    color: var(--text-color);
    opacity: 0.9;
    line-height: 1.8;
    padding: 1.5rem;
    background: var(--background-color);
    border-radius: 12px;
    position: relative;
}

.story-quote::before {
    content: '"';
    position: absolute;
    top: -0.5rem;
    left: 1rem;
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.2;
}

.cta-button {
    display: inline-block;
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--hover-color) 100%);
    color: white;
    padding: 1.2rem 2.5rem;
    border-radius: 12px;
    text-decoration: none;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px var(--shadow-color);
    margin-top: 2rem;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px var(--shadow-color);
}

/* Educational Content */
.education-section {
    margin: 3rem 0;
}

.education-content {
    margin: 2rem 0;
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.education-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    -webkit-box-shadow: 0 4px 8px rgba(60, 64, 67, 0.15);
    box-shadow: 0 4px 8px rgba(60, 64, 67, 0.15);
    text-align: center;
}

.education-card:hover {
    -webkit-transform: translateY(-5px);
    transform: translateY(-5px);
    -webkit-box-shadow: 0 8px 16px rgba(60, 64, 67, 0.15);
    box-shadow: 0 8px 16px rgba(60, 64, 67, 0.15);
    border-color: var(--primary-color);
}

.education-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.education-card h4 {
    color: var(--text-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.education-card p {
    color: var(--text-color);
    opacity: 0.8;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.education-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.education-card ul li {
    padding: 0.5rem 0;
    color: var(--text-color);
    opacity: 0.8;
    position: relative;
    padding-left: 1.5rem;
    line-height: 1.4;
}

.education-card ul li:before {
    content: "✓";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.section-title {
    color: var(--primary-color);
    font-size: 2rem;
    margin: 2rem 0 1rem;
    text-align: center;
    font-weight: 600;
}

.section-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem;
    color: var(--text-color);
    opacity: 0.8;
    line-height: 1.6;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .education-grid {
        grid-template-columns: 1fr;
    }
    
    .education-card {
        padding: 1.5rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .section-description {
        font-size: 1rem;
        padding: 0 1rem;
    }
}

@media (max-width: 768px) {
    .education-section {
        margin: 2rem 0;
        padding: 1.5rem;
    }
}

.education-content h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin: 3rem 0 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--background-color);
}

.education-content h3:first-child {
    margin-top: 0;
}

.education-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--text-color);
    font-size: 1.1rem;
}

.education-content ul {
    list-style-type: none;
    padding: 0;
    margin: 1.5rem 0 3rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.education-content ul li {
    padding: 1rem 1rem 1rem 2.5rem;
    position: relative;
    line-height: 1.6;
    background: var(--background-color);
    border-radius: 8px;
    font-size: 1.1rem;
}

.education-content ul li:before {
    content: "✓";
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 1rem;
}

@media (max-width: 768px) {
    .education-content {
        padding: 1.5rem;
    }

    .education-content h3 {
        font-size: 1.5rem;
        margin: 2rem 0 1rem;
    }

    .education-content ul {
        grid-template-columns: 1fr;
    }

    .education-content p {
        font-size: 1rem;
    }
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.info-card {
    background: var(--background-color);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-2px);
}

.info-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.info-card h4 {
    color: var(--text-color);
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

.info-card p {
    font-size: 0.95rem;
    margin: 0;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .education-content {
        padding: 1.5rem;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .info-card {
        padding: 1.2rem;
    }
}

/* Rich Content Styles */
.intro {
    font-size: 1.3rem;
    line-height: 1.8;
    color: var(--text-color);
    margin: 2rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(26, 115, 232, 0.05) 0%, rgba(52, 168, 83, 0.05) 100%);
    border-radius: 16px;
    border-left: 4px solid var(--primary-color);
}

/* Base styles with fallbacks */
:root {
    --primary-color: #1a73e8;
    --secondary-color: #34a853;
    --background-color: #f8f9fa;
    --text-color: #202124;
    --border-color: #dadce0;
    --shadow-color: rgba(60, 64, 67, 0.15);
}

.content-section {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: #ffffff;
    background: white;
    border-radius: 8px;
    -webkit-box-shadow: 0 2px 8px rgba(60, 64, 67, 0.15);
            box-shadow: 0 2px 8px rgba(60, 64, 67, 0.15);
}

.content-section > *:first-child {
    margin-top: 0;
}

.content-section > *:last-child {
    margin-bottom: 0;
}

.content-section h2 {
    color: var(--primary-color);
    margin: 3rem 0 1.5rem;
    font-size: 2rem;
    line-height: 1.3;
    padding: 1rem 1.5rem;
    background: var(--gradient-light);
    border-radius: 8px;
    position: relative;
    display: inline-block;
}

.content-section h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient-primary);
    border-radius: 4px 0 0 4px;
}

.content-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
}

.content-section h3 {
    color: var(--text-color);
    margin: 2rem 0 1rem;
    font-size: 1.5rem;
}

.content-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    transition: transform 0.3s ease;
}

.content-section p:hover {
    transform: translateX(5px);
}

.success-story {
    background: #f8f9fa;
    background: -webkit-linear-gradient(315deg, #ffffff 0%, #f8f9fa 100%);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
    border-left: 4px solid #1a73e8;
    border-left: 4px solid var(--primary-color, #1a73e8);
    -webkit-box-shadow: 0 2px 8px rgba(60, 64, 67, 0.15);
            box-shadow: 0 2px 8px rgba(60, 64, 67, 0.15);
    position: relative;
    overflow: hidden;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.success-story:hover {
    -webkit-transform: translateY(-2px);
            transform: translateY(-2px);
    -webkit-box-shadow: 0 4px 12px rgba(60, 64, 67, 0.2);
            box-shadow: 0 4px 12px rgba(60, 64, 67, 0.2);
}

.success-story:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--shadow-color);
}

.success-story::before {
    content: '"';
    position: absolute;
    top: 1rem;
    right: 2rem;
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.1;
    font-family: Georgia, serif;
}

.success-story h3 {
    color: var(--primary-color);
    margin-top: 0;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Container and Layout Styles */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.hero-section .container {
    margin: 0 auto;
    background: transparent;
    box-shadow: none;
}

.container > *:first-child {
    margin-top: 0;
}

.container > *:last-child {
    margin-bottom: 0;
}

.hero-section {
    background: var(--gradient-primary);
    color: white;
    padding: 3rem 1rem;
    margin-bottom: 2rem;
}

.hero-section h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-section p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.success-story h3::before {
    content: '★';
    color: var(--secondary-color);
    font-size: 1.2rem;
}

/* Steps Section */
.steps {
    background: var(--gradient-light);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 15px var(--shadow-color);
    margin: 2rem 0;
    counter-reset: step;
    border: 1px solid rgba(26, 115, 232, 0.1);
}

.steps::before {
    content: 'How It Works';
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.steps li {
    margin: 1.5rem 0;
    padding: 1rem 1rem 1rem 3.5rem;
    position: relative;
    font-size: 1.1rem;
    line-height: 1.6;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.steps li:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--shadow-color);
}

.steps li::before {
    content: counter(step);
    counter-increment: step;
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 2rem;
    height: 2rem;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(26, 115, 232, 0.2);
}

.steps {
    background: linear-gradient(135deg, #ffffff 0%, var(--background-color) 100%);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin: 2rem 0;
    counter-reset: step;
}

.steps li {
    margin: 1.5rem 0;
    padding-left: 3.5rem;
    position: relative;
    font-size: 1.1rem;
    line-height: 1.6;
}

.steps li::before {
    content: counter(step);
    counter-increment: step;
    position: absolute;
    left: 0;
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(26, 115, 232, 0.2);
}

.steps li:hover::before {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

@media (max-width: 768px) {
    .intro {
        font-size: 1.1rem;
        margin: 1.5rem 0;
    }

    .content-section {
        padding: 1rem;
    }

    .content-section h2 {
        font-size: 1.6rem;
        margin: 2rem 0 1rem;
    }

    .content-section h3 {
        font-size: 1.3rem;
    }

    .content-section p {
        font-size: 1rem;
    }

    .success-story {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }

    .steps {
        padding: 1.5rem;
    }
}

/* Contact Form Styles */
.contact-section {
    margin: 3rem 0;
    padding: 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 16px var(--shadow-color);
}

.contact-section h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
}

.contact-section p {
    text-align: center;
    margin-bottom: 2rem;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

/* Feature Page Styles */
.content-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.content-section h2 {
    color: var(--primary-color);
    margin: 2rem 0 1rem;
    font-size: 1.8rem;
}

.content-section p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.calculation-breakdown {
    background: var(--background-color);
    padding: 2rem;
    border-radius: 16px;
    margin: 2rem 0;
}

.calculation-breakdown h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.formula {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin: 1rem 0;
    font-family: monospace;
    white-space: pre-wrap;
    color: var(--text-color);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.info-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 8px var(--shadow-color);
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.info-card h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
}

.info-card ul {
    list-style: none;
    padding: 0;
}

.info-card ul li {
    padding: 0.5rem 0;
    color: var(--text-color);
    opacity: 0.8;
    position: relative;
    padding-left: 1.5rem;
}

.info-card ul li:before {
    content: "✓";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

.related-features {
    margin: 4rem 0;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.related-features h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .content-section {
        padding: 1rem;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .calculation-breakdown {
        padding: 1rem;
    }
    
    /* Final Layout Enhancements */
    .content-block {
        margin: 4rem 0;
        opacity: 0;
        animation: fadeIn 0.6s ease-out forwards;
    }
    
    .intro-section {
        margin: 3rem auto;
        max-width: 800px;
        padding: 2.5rem;
        background: linear-gradient(135deg, #ffffff 0%, var(--background-color) 100%);
        border-radius: 16px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        border-left: 4px solid var(--primary-color);
        transform: translateY(20px);
        opacity: 0;
        animation: slideUp 0.6s ease-out forwards;
    }
    
    .intro-section p {
        font-size: clamp(1.1rem, 2.5vw, 1.3rem);
        line-height: 1.8;
        color: var(--text-color);
        margin: 0;
    }
    
    /* Animations */
    @keyframes fadeIn {
        from {
            opacity: 0;
        }
        to {
            opacity: 1;
        }
    }
    
    @keyframes slideUp {
        from {
            transform: translateY(20px);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }
    
    /* Section Spacing */
    .content-section + .content-section {
        margin-top: 3rem;
    }
    
    .goals-section,
    .testimonials-section {
        margin: 4rem 0;
        padding: 2rem;
        background: white;
        border-radius: 16px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }
    
    /* Mobile Optimizations */
    @media (max-width: 768px) {
        .content-block {
            margin: 2rem 0;
        }
    
        .intro-section {
            margin: 2rem auto;
            padding: 1.5rem;
            border-radius: 12px;
        }
    
        .goals-section,
        .testimonials-section {
            margin: 2rem 0;
            padding: 1.5rem;
        }
    }
    
    /* Enhanced Goals and Testimonials */
    .goals-grid,
    .testimonials-grid {
        display: grid;
        gap: 2rem;
        margin: 2rem 0;
        padding: 1rem;
    }
    
    /* Reset and Base Styles */
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }
    
    body {
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
        line-height: 1.6;
        color: #202124;
        background: #f8f9fa;
        min-height: 100vh;
    }
    
    /* Container and Layout */
    .main-content {
        width: 90%;
        max-width: 1200px;
        margin: 0 auto;
        padding: 2rem 1rem;
        position: relative;
    }
    
    /* Apply card styling to the content inside main-content, not to the container itself */
    .main-content > .calculator-section,
    .main-content > .feature-section,
    .main-content > .results,
    .main-content > .content-section {
        background: white;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        padding: 2rem;
        margin-bottom: 2rem;
    }
    
    .container {
        width: 90%;
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 1rem;
    }
    
    .hero-section {
        background: linear-gradient(135deg, #1a73e8 0%, #34a853 100%);
        color: white;
        padding: 6rem 0 8rem;
        text-align: center;
        position: relative;
        overflow: hidden;
    }
    
    /* Enhanced Content Sections */
    .content-section {
        background: white;
        border-radius: 12px;
        padding: 2.5rem;
        margin-bottom: 3rem;
        position: relative;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        transition: all 0.3s ease;
    }
    
    .content-section:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
    
    .content-section::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, #1a73e8, #34a853);
        border-radius: 12px 12px 0 0;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .content-section:hover::after {
        opacity: 1;
    }
    
    .content-section h2 {
        color: #1a73e8;
        font-size: clamp(1.5rem, 4vw, 2rem);
        margin-bottom: 1.5rem;
        position: relative;
        padding-bottom: 0.5rem;
    }
    
    .content-section h2::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 60px;
        height: 3px;
        background: linear-gradient(90deg, #1a73e8, #34a853);
    }
    
    .content-section p {
        font-size: clamp(1rem, 2.5vw, 1.1rem);
        line-height: 1.8;
        color: #202124;
        margin-bottom: 1.5rem;
        max-width: 70ch;
    }
    
    .goal-card {
        background: white;
        border-radius: 12px;
        padding: 2rem;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        transition: all 0.3s ease;
        border: 1px solid #dadce0;
        position: relative;
        overflow: hidden;
    }
    
    .goal-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, #1a73e8, #34a853);
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .goal-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    }
    
    .goal-card:hover::before {
        opacity: 1;
    }
    
    .goal-card h3 {
        color: #1a73e8;
        font-size: clamp(1.2rem, 3vw, 1.4rem);
        margin-bottom: 1rem;
    }
    
    .goal-card p {
        color: #202124;
        line-height: 1.7;
        opacity: 0.87;
    }
    
    @media (max-width: 768px) {
        .content-section {
            padding: 1.5rem;
            margin-bottom: 2rem;
        }
    
        .goal-card {
            padding: 1.5rem;
        }
    }
    
    .hero-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
        transform: skewY(-6deg);
        transform-origin: top left;
    }
    
    .hero-section h1 {
        font-size: clamp(2rem, 5vw, 3rem);
        margin-bottom: 1rem;
        position: relative;
        z-index: 1;
    }
    
    .hero-section p {
        font-size: clamp(1.1rem, 2.5vw, 1.3rem);
        opacity: 0.9;
        max-width: 600px;
        margin: 0 auto;
        position: relative;
        z-index: 1;
    }
    
    @media (max-width: 768px) {
        .main-content {
            padding: 1rem;
        }
    }
    
    .content-section {
        background: white;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        padding: 2.5rem;
        margin-bottom: 3rem;
    }
    
    .content-section:last-child {
        margin-bottom: 0;
    }
    
    .content-section > *:first-child {
        margin-top: 0;
    }
    
    .content-section > *:last-child {
        margin-bottom: 0;
    }
    
    .content-section h2 {
        color: var(--primary-color);
        font-size: clamp(1.5rem, 4vw, 2rem);
        margin-bottom: 1.5rem;
        line-height: 1.3;
        border-bottom: 2px solid var(--background-color);
        padding-bottom: 0.5rem;
    }
    
    .content-section p {
        font-size: clamp(1rem, 2.5vw, 1.1rem);
        line-height: 1.8;
        color: var(--text-color);
        margin-bottom: 1.5rem;
        max-width: 70ch;
    }
    
    .intro-section {
        background: linear-gradient(135deg, #ffffff 0%, var(--background-color) 100%);
        padding: 2.5rem;
        border-radius: 16px;
        margin: 0 auto 3rem;
        max-width: 800px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        border-left: 4px solid var(--primary-color);
    }
    
    .intro-section p {
        font-size: clamp(1.1rem, 2.5vw, 1.3rem);
        line-height: 1.8;
        color: var(--text-color);
        margin: 0;
    }
    
    @media (max-width: 768px) {
        .content-section {
            padding: 1.5rem;
            margin-bottom: 2rem;
        }
    
        .intro-section {
            padding: 1.5rem;
            margin-bottom: 2rem;
        }
    }
    
    @media (min-width: 768px) {
        .goals-grid {
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        }
        
        .testimonials-grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }
    
    .goal-card {
        background: linear-gradient(135deg, #ffffff 0%, var(--background-color) 100%);
        padding: 2rem;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        transition: all 0.3s ease;
        border-left: 4px solid var(--primary-color);
        position: relative;
        overflow: hidden;
    }
    
    .goal-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .goal-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    }
    
    .goal-card:hover::before {
        opacity: 1;
    }
    
    .goal-card h3 {
        color: var(--primary-color);
        font-size: clamp(1.2rem, 3vw, 1.4rem);
        margin-bottom: 1rem;
        line-height: 1.3;
    }
    
    .goal-card p {
        color: var(--text-color);
        font-size: clamp(1rem, 2.5vw, 1.1rem);
        line-height: 1.7;
        opacity: 0.9;
    }
    
    .success-story {
        background: linear-gradient(135deg, #ffffff 0%, var(--background-color) 100%);
        padding: 2rem;
        border-radius: 12px;
        margin: 1rem 0;
        border-left: 4px solid var(--primary-color);
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        position: relative;
        overflow: hidden;
        transition: all 0.3s ease;
    }
    
    .success-story::before {
        content: '"';
        position: absolute;
        top: 1rem;
        right: 1rem;
        font-size: 4rem;
        font-family: Georgia, serif;
        color: var(--primary-color);
        opacity: 0.1;
        line-height: 1;
    }
    
    .success-story:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    }
    
    .success-story h3 {
        color: var(--primary-color);
        font-size: clamp(1.2rem, 3vw, 1.4rem);
        margin-bottom: 1rem;
        padding-right: 3rem;
    }
    
    .success-story p {
        font-size: clamp(1rem, 2.5vw, 1.1rem);
        line-height: 1.8;
        color: var(--text-color);
        opacity: 0.9;
    }
    
    @media (max-width: 768px) {
        .goals-grid,
        .testimonials-grid {
            padding: 0;
        }
    
        .goal-card,
        .success-story {
            padding: 1.5rem;
        }
    
        .success-story::before {
            font-size: 3rem;
        }
    }
    
    /* Enhanced Hero Section */
    .hero-section {
        background: linear-gradient(135deg, #1a73e8 0%, #34a853 100%);
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
        color: white;
        padding: 4rem 1rem;
        text-align: center;
        margin-bottom: 3rem;
        position: relative;
        overflow: hidden;
        z-index: 1; /* Lower z-index than breadcrumb */
    }
    
    /* Fix for margin-top in calculator pages */
    .hero-section + .main-content {
        margin-top: 0;
    }
    
    .hero-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
        transform: skewY(-6deg);
        transform-origin: top left;
    }
    
    .hero-section .container {
        position: relative;
        z-index: 1;
        max-width: 800px;
        margin: 0 auto;
    }
    
    .hero-section h1 {
        font-size: clamp(2rem, 5vw, 3rem);
        margin-bottom: 1.5rem;
        line-height: 1.2;
        text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    
    .hero-section p {
        font-size: clamp(1.1rem, 2.5vw, 1.3rem);
        opacity: 0.9;
        max-width: 600px;
        margin: 0 auto;
        line-height: 1.6;
    }
    
    /* Enhanced Content Layout */
    .content-section {
        margin: 2rem auto;
        padding: 2.5rem;
        background: white;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        max-width: 800px;
    }
    
    .content-section h2 {
        color: var(--primary-color);
        font-size: clamp(1.5rem, 4vw, 2rem);
        margin-bottom: 1.5rem;
        line-height: 1.3;
        border-bottom: 2px solid var(--background-color);
        padding-bottom: 0.5rem;
    }
    
    .content-section p {
        font-size: clamp(1rem, 2.5vw, 1.1rem);
        line-height: 1.8;
        color: var(--text-color);
        margin-bottom: 1.5rem;
    }
    
    @media (max-width: 768px) {
        .hero-section {
            padding: 3rem 1rem;
        }
    
        .content-section {
            padding: 1.5rem;
            margin: 1rem;
            border-radius: 8px;
        }
    }
    
    /* Process Section Styles */
    .process-section {
        background: linear-gradient(135deg, #ffffff 0%, var(--background-color) 100%);
        border-radius: 12px;
        padding: 2rem;
    }
    
    .steps-container {
        background: white;
        border-radius: 8px;
        padding: 2rem;
        margin: 2rem 0;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .steps {
        counter-reset: step;
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    .steps li {
        position: relative;
        padding: 1.5rem 1.5rem 1.5rem 4rem;
        margin-bottom: 1rem;
        background: var(--background-color);
        border-radius: 8px;
        transition: transform 0.3s ease;
    }
    
    .steps li:last-child {
        margin-bottom: 0;
    }
    
    .steps li::before {
        content: counter(step);
        counter-increment: step;
        position: absolute;
        left: 1rem;
        top: 50%;
        transform: translateY(-50%);
        width: 2rem;
        height: 2rem;
        background: var(--gradient-primary);
        color: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: bold;
    }
    
    .steps li:hover {
        transform: translateX(8px);
    }
    
    .highlight-text {
        font-size: 1.2rem;
        color: var(--primary-color);
        text-align: center;
        margin: 2rem 0;
        font-weight: 500;
    }
    
    .feature-box {
        background: white;
        border-radius: 8px;
        padding: 2rem;
        margin: 1.5rem 0;
        border: 1px solid var(--border-color);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .conclusion-text {
        font-size: 1.2rem;
        line-height: 1.8;
        text-align: center;
        max-width: 800px;
        margin: 2rem auto;
        padding: 1rem;
        border-top: 2px solid var(--background-color);
        border-bottom: 2px solid var(--background-color);
    }
    
    /* Mobile Optimizations */
    @media (max-width: 768px) {
        .steps-container {
            padding: 1rem;
        }
    
        .steps li {
            padding: 1rem 1rem 1rem 3rem;
        }
    
        .steps li::before {
            width: 1.5rem;
            height: 1.5rem;
            font-size: 0.9rem;
        }
    
        .highlight-text,
        .conclusion-text {
            font-size: 1.1rem;
            padding: 0.5rem;
        }
    }
    
    /* Enhanced Content Layout */
    .intro-section {
        background: linear-gradient(135deg, #ffffff 0%, var(--background-color) 100%);
        padding: 2rem;
        border-radius: 12px;
        margin-bottom: 3rem;
        border-left: 4px solid var(--primary-color);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .intro-section .intro {
        font-size: clamp(1.1rem, 2.5vw, 1.3rem);
        line-height: 1.8;
        color: var(--text-color);
        margin: 0;
    }
    
    .content-block {
        margin: 2rem 0;
    }
    
    .content-section {
        margin-bottom: 4rem;
        padding: 2rem;
        background: #ffffff;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .highlight-box {
        background: linear-gradient(135deg, rgba(26, 115, 232, 0.05) 0%, rgba(52, 168, 83, 0.05) 100%);
        padding: 2rem;
        border-radius: 8px;
        margin: 2rem 0;
        border-left: 4px solid var(--primary-color);
    }
    
    .goals-grid {
        display: grid;
        gap: 2rem;
        margin: 2rem 0;
    }
    
    @media (min-width: 768px) {
        .goals-grid {
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        }
    }
    
    .goal-card {
        background: #ffffff;
        padding: 2rem;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease;
    }
    
    .goal-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
    
    .goal-card h3 {
        color: var(--primary-color);
        margin-top: 0;
        margin-bottom: 1rem;
        font-size: clamp(1.2rem, 3vw, 1.4rem);
    }
    
    .testimonials-grid {
        display: grid;
        gap: 2rem;
        margin: 2rem 0;
    }
    
    @media (min-width: 768px) {
        .testimonials-grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }
    
    /* Mobile Optimizations */
    @media (max-width: 768px) {
        .content-section {
            padding: 1.5rem;
            margin-bottom: 2rem;
        }
    
        .intro-section,
        .highlight-box {
            padding: 1.5rem;
        }
    
        .goal-card {
            padding: 1.5rem;
        }
    }
    
    /* Enhanced Feature Cards */
    .feature-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 2rem auto;
        max-width: 1200px;
        padding: 0 1rem;
    }
    
    @media (min-width: 768px) {
        .feature-grid {
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 2rem;
            padding: 0;
        }
    }
    
    /* Enhanced Feature Cards */
    .feature-card {
        position: relative;
        overflow: hidden;
        padding: 2rem 2rem 4rem;
        background: white;
        border-radius: 12px;
        border: 1px solid var(--border-color);
        box-shadow: 0 4px 12px var(--shadow-color);
        text-decoration: none;
        color: var(--text-color);
        cursor: pointer;
        text-align: center;
        transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
        margin-bottom: 1.5rem;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        min-height: 280px;
        -webkit-tap-highlight-color: transparent;
    }
    
    .feature-card:hover,
    .feature-card:focus {
        transform: translateY(-4px);
        box-shadow: 0 8px 24px var(--shadow-color);
        border-color: var(--primary-color);
        outline: none;
    }
    
    .feature-card i {
        font-size: clamp(2rem, 5vw, 2.5rem);
        color: var(--primary-color);
        margin-bottom: 1.5rem;
        display: block;
        transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    }
    
    .feature-card:hover i {
        transform: scale(1.1);
    }
    
    .feature-card h3 {
        font-size: clamp(1.2rem, 3vw, 1.4rem);
        margin: 1rem 0;
        color: var(--primary-color);
        line-height: 1.4;
    }
    
    .feature-card p {
        font-size: clamp(0.9rem, 2vw, 1rem);
        color: var(--text-color);
        opacity: 0.85;
        margin-bottom: 1.5rem;
        line-height: 1.7;
    }
    
    .feature-card ul {
        text-align: left;
        list-style: none;
        padding: 0;
        margin: 1rem 0 2rem;
    }
    
    .feature-card ul li {
        padding: 0.5rem 0 0.5rem 1.5rem;
        position: relative;
        line-height: 1.4;
    }
    
    .feature-card ul li:before {
        content: "✓";
        color: var(--primary-color);
        position: absolute;
        left: 0;
    }
    
    .feature-card .cta-button {
        position: absolute;
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
        padding: 0.8rem 1.5rem;
        background: rgba(26, 115, 232, 0.1);
        color: var(--primary-color);
        text-decoration: none;
        border-radius: 8px;
        transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
        opacity: 0;
        transform: translateY(20px);
    }
    
    .feature-card:hover .cta-button {
        opacity: 1;
        transform: translateY(0);
    }
    
    .feature-card .cta-button:hover {
        background: var(--primary-color);
        color: white;
    }
    
    .feature-card:not(:has(.cta-button))::after {
        content: 'Click for more info →';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 1rem;
        background: linear-gradient(to top, rgba(255,255,255,0.95), rgba(255,255,255,0));
        color: var(--primary-color);
        font-size: 0.9rem;
        font-weight: 500;
        opacity: 0;
        transform: translateY(100%);
        transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    }
    
    .feature-card:not(:has(.cta-button)):hover::after {
        opacity: 1;
        transform: translateY(0);
    }
    
    @media (max-width: 768px) {
        .feature-card {
            padding: 1.5rem 1.5rem 3.5rem;
        }
        
        .feature-card i {
            font-size: 2rem;
            margin-bottom: 1rem;
        }
        
        .feature-card h3 {
            font-size: 1.2rem;
        }
        
        .feature-card p {
            font-size: 0.95rem;
            margin-bottom: 1rem;
        }
    }
    
    /* Mobile Touch Optimizations */
    @media (max-width: 768px) {
        .feature-card {
            padding: 1.5rem;
            min-height: auto;
        }
    
        .feature-card:active {
            transform: scale(0.98);
        }
    }
    
    /* Enhanced Content Styles */
    .content-section {
        max-width: 800px;
        margin: 1rem auto;
        padding: 1.5rem;
        background: #ffffff;
        border-radius: 12px;
        -webkit-box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
                box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
    
    @media (min-width: 768px) {
        .content-section {
            margin: 2rem auto;
            padding: 2.5rem;
        }
    }
    
    .content-section h2 {
        color: #1a73e8;
        color: var(--primary-color, #1a73e8);
        padding-bottom: 0.5rem;
        border-bottom: 2px solid #f8f9fa;
        border-bottom: 2px solid var(--background-color, #f8f9fa);
        margin-top: 3rem;
        font-size: clamp(1.5rem, 4vw, 2rem);
    }
    
    .content-section h2:first-child {
        margin-top: 0;
    }
    
    .content-section h3 {
        color: #202124;
        color: var(--text-color, #202124);
        font-size: clamp(1.25rem, 3vw, 1.5rem);
        margin-top: 2rem;
    }
    
    .content-section p {
        color: #202124;
        color: var(--text-color, #202124);
        opacity: 0.87;
        max-width: 65ch;
        margin: 1rem auto 1.5rem;
        font-size: clamp(1rem, 2.5vw, 1.125rem);
        line-height: 1.8;
    }
    
    .content-section ul,
    .content-section ol {
        margin: 1.5rem 0;
        padding-left: 1.5rem;
        max-width: 65ch;
        margin-left: auto;
        margin-right: auto;
    }
    
    .content-section li {
        margin-bottom: 0.75rem;
        line-height: 1.6;
        font-size: clamp(1rem, 2.5vw, 1.125rem);
    }
    
    /* Success Stories Enhanced */
    .success-story {
        background: #f8f9fa;
        background: -webkit-linear-gradient(315deg, #ffffff 0%, #f8f9fa 100%);
        background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
        padding: 1.5rem;
        border-radius: 12px;
        margin: 1.5rem 0;
        border-left: 4px solid #1a73e8;
        border-left: 4px solid var(--primary-color, #1a73e8);
        -webkit-box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
                box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
    
    @media (min-width: 768px) {
        .success-story {
            padding: 2.5rem;
            margin: 2rem 0;
        }
    }
    
    .success-story h3 {
        color: #1a73e8;
        color: var(--primary-color, #1a73e8);
        font-size: clamp(1.25rem, 3vw, 1.5rem);
        margin-top: 0;
        margin-bottom: 1rem;
    }
    
    .success-story p {
        font-size: clamp(1rem, 2.5vw, 1.125rem);
        line-height: 1.8;
        margin: 0;
    }

    .formula {
        font-size: 0.9rem;
        padding: 1rem;
    }
}

/* Coming Soon Section */
/* Coming Soon Button */
.nav-btn.coming-soon {
    background: linear-gradient(135deg, #6b47ff 0%, #8787ff 100%);
    color: white;
    border: none;
    position: relative;
    overflow: hidden;
}

.nav-btn.coming-soon:hover {
    background: linear-gradient(135deg, #8787ff 0%, #6b47ff 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(107, 71, 255, 0.3);
}

.nav-btn.coming-soon i {
    margin: 0 0.3rem;
}

.coming-soon-btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8787 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.coming-soon-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 107, 107, 0.3);
}

.coming-soon-btn.active {
    background: linear-gradient(135deg, #ff8787 0%, #ff6b6b 100%);
    color: white;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 94, 184, 0.1);
}

.submit-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--hover-color) 100%);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--shadow-color);
}

@media (max-width: 768px) {
    .contact-section {
        padding: 1rem;
    }
    
    .contact-form {
        padding: 0;
    }
}

/* Small Screen Optimizations */
@media (max-width: 360px) {
    .hero-section h1 {
        font-size: 1.5rem;
    }

    .form-group {
        padding: 0.8rem;
    }
    

    .activity-option, .goal-option {
        padding: 0.8rem;
    }

    .story-card {
        margin: 1rem 0;
    }

    .story-image {
        height: 200px;
    }

    .story-content {
        padding: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Main Navigation for All Pages */
.main-nav {
    background: white;
    padding: 1rem 0;
    box-shadow: 0 4px 12px var(--shadow-color);
    position: absolute;
    z-index: 999;
    margin-top: -2rem;
    border-radius: 12px;
    margin-left: auto;
    margin-right: auto;
    left: 0;
    right: 0;
    max-width: 1200px;
    width: 90%;
    display: block !important;
}

.main-nav .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.main-nav .nav-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0.5rem;
}

.main-nav .nav-btn {
    color: var(--primary-color);
    text-decoration: none;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    background: rgba(26, 115, 232, 0.05);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.main-nav .nav-btn:hover {
    background: rgba(26, 115, 232, 0.1);
    transform: translateY(-2px);
}

.main-nav .nav-btn.active {
    background: var(--primary-color);
    color: white;
}

@media (max-width: 768px) {
    .main-nav {
        margin-top: -3.5rem;
        padding: 0.75rem 0;
        width: 95%;
    }

    .main-nav .nav-links {
        gap: 0.75rem;
        padding: 0.25rem;
    }

    .main-nav .nav-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}
