/* Original Homepage Design Styles */

/* Hero Section with Road Background */
.hero-section {
    position: relative;
    height: 100vh;
    background: url('/static/roadnew.png') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 60px;
    color: white;
    overflow: hidden;
}

.hero-content {
    max-width: 600px;
    z-index: 2;
    position: relative;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    color: white;
}

.hero-content p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 40px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    color: white;
}

.join-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 18px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.35);
    min-height: 56px;
    min-width: 160px;
    text-align: center;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.join-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.join-btn:hover::before {
    left: 100%;
}

.join-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.5);
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

.join-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}


/* Consistent Section Styling */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h4 {
    font-size: 14px;
    color: #667eea;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 15px;
    line-height: 1.2;
}

.section-header p {
    font-size: 16px;
    color: #4a5568;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.two-column-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.three-column-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* AI Companion Section */
.ai-companion-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.ai-companion-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.chat-interface {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid #e0e7ff;
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.ai-icon {
    font-size: 24px;
}

.ai-rating {
    font-size: 16px;
}

.chat-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: #2d3748;
}

.chat-messages {
    margin-bottom: 20px;
}

.message {
    margin-bottom: 15px;
}

.sender {
    font-size: 12px;
    color: #666;
    display: block;
    margin-bottom: 5px;
}

.bubble {
    padding: 12px 16px;
    border-radius: 18px;
    max-width: 80%;
    word-wrap: break-word;
}

.ai-message .bubble {
    background: #2d3748;
    color: white;
    margin-left: auto;
    margin-right: 0;
}

.user-message .bubble {
    background: #e2e8f0;
    color: #2d3748;
}

.chat-input {
    display: flex;
    gap: 10px;
}

.chat-input input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 25px;
    font-size: 14px;
}

.send-btn {
    background: #667eea;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 16px;
}

.ai-description h2 {
    font-size: 36px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 20px;
}

.highlight {
    color: #667eea;
}

.ai-description p {
    font-size: 18px;
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 25px;
}

.ai-description ul {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.ai-description li {
    font-size: 16px;
    color: #4a5568;
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.ai-description li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

.lets-talk-btn {
    background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.lets-talk-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 172, 254, 0.3);
}

/* Quote Section Standalone */
.quote-section-standalone {
    padding: 80px 0;
    background: white;
}

.quote-content {
    text-align: center;
    padding: 60px 20px;
}

.quote-content .quote-mark {
    font-size: 48px;
    color: #667eea;
    font-weight: bold;
    margin-bottom: 30px;
    line-height: 1;
}

.quote-content .quote-text {
    font-size: 24px;
    font-style: italic;
    color: #2d3748;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
}

.quote-content .quote-author {
    font-size: 16px;
    color: #4a5568;
    font-weight: 500;
}
.why-kognos-section {
    padding: 80px 0;
    background: white;
}

.kognos-card {
    background: white;
    border-radius: 20px;
    padding: 60px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    max-width: 1000px;
    margin: 0 auto;
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
}

.card-header h4 {
    font-size: 14px;
    color: #667eea;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 30px;
    line-height: 1.2;
}

.purple-text {
    color: #667eea;
}

.card-content p {
    font-size: 18px;
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 25px;
}

.card-content p:last-of-type {
    margin-bottom: 40px;
}

.find-therapist-btn {
    background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    padding: 15px 30px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.3);
}

.find-therapist-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 172, 254, 0.4);
}

/* Testimonials Section */
.testimonials-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.testimonials-header {
    text-align: center;
    margin-bottom: 50px;
}

.testimonials-header h4 {
    font-size: 14px;
    color: #667eea;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.testimonials-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 15px;
}

.testimonials-header p {
    font-size: 16px;
    color: #4a5568;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.testimonial-card {
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.purple-card {
    background: #667eea;
    color: white;
}

.white-card {
    background: white;
    color: #2d3748;
}

.testimonial-card p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.author {
    font-size: 14px;
    font-weight: 600;
    display: block;
    text-align: right;
}

.testimonial-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.nav-btn {
    background: #667eea;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    transform: scale(1.1);
}

/* Planner Section */
.planner-section {
    padding: 80px 0;
    background: white;
}

.planner-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
    align-items: center;
}

.habits-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid #e0e7ff;
}

.habits-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 25px;
}

.habits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.habit-item {
    text-align: center;
}

.habit-item img {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    margin-bottom: 10px;
    object-fit: cover;
}

.habit-item span {
    font-size: 12px;
    color: #4a5568;
    display: block;
}

.planner-description h2 {
    font-size: 32px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 20px;
}

.planner-description p {
    font-size: 16px;
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 25px;
}

.planner-description ul {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.planner-description li {
    font-size: 16px;
    color: #4a5568;
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.planner-description li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

.make-planner-btn {
    background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.tip-banner {
    background: #fef3c7;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.tip-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 16px;
    color: #92400e;
}

.tip-icon {
    font-size: 20px;
}

/* Resources Section */
.resources-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.resources-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%23667eea" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    opacity: 0.5;
}

.resources-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.resources-header h4 {
    font-size: 14px;
    color: #667eea;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.resources-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 15px;
}

.resources-header p {
    font-size: 16px;
    color: #4a5568;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
}

.resource-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.resource-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
}

.resource-image {
    margin-bottom: 20px;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.resource-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.resource-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.8), rgba(118, 75, 162, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 10px;
}

.resource-card:hover .resource-overlay {
    opacity: 1;
}

.resource-icon {
    font-size: 3rem;
    color: white;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.resource-card:hover .resource-image img {
    transform: scale(1.05);
}

.resource-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: #2F5F5F;
    margin-bottom: 15px;
}

.resource-card p {
    font-size: 14px;
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 0;
}

.resources-cta {
    text-align: center;
    position: relative;
    z-index: 2;
}

.know-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 18px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.know-more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.know-more-btn:hover::before {
    left: 100%;
}

.know-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.btn-icon {
    transition: transform 0.3s ease;
}

.know-more-btn:hover .btn-icon {
    transform: translateX(5px);
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background: white;
}

.contact-card {
    background: white;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    max-width: 1000px;
    margin: 0 auto;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-details h3 {
    font-size: 20px;
    font-weight: 600;
    color: #2F5F5F;
    margin-bottom: 20px;
}

.contact-details p {
    font-size: 16px;
    color: #4a5568;
    margin-bottom: 15px;
}

.contact-details a {
    color: #667eea;
    text-decoration: none;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin: 20px 0;
}

.social-icon {
    font-size: 24px;
    text-decoration: none;
}

.response-time {
    font-size: 14px;
    color: #666;
}

.contact-form {
    background: #f0f0ff;
    padding: 30px;
    border-radius: 15px;
}

.contact-form h3 {
    font-size: 20px;
    font-weight: 600;
    color: #2F5F5F;
    margin-bottom: 20px;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-bottom: 2px solid #e2e8f0;
    background: transparent;
    font-size: 16px;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-bottom-color: #667eea;
}

.send-message-btn {
    background: #2F5F5F;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.send-message-btn:hover {
    background: #1e4040;
    transform: translateY(-2px);
}

/* Therapist Page Header */
.therapist-page-header {
    padding: 60px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.page-header-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-header-content p {
    font-size: 18px;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.therapist-finder-main {
    padding: 40px 0;
    background: #f8f9fa;
    min-height: 70vh;
}

/* Therapist Finder Wizard Styles */
.therapist-finder-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.wizard-container {
    width: 100%;
    max-width: 720px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(9, 30, 66, 0.08);
    padding: 24px;
    margin: 20px auto;
}

.wizard-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.wizard-logo {
    font-size: 20px;
    font-weight: 700;
    color: #2563eb;
}

.wizard-step {
    display: none;
    padding: 20px 0;
}

.wizard-step.active {
    display: block;
}

.wizard-question {
    font-size: 18px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 20px;
    text-align: center;
}

.wizard-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.wizard-option {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    color: #4b5563;
}

.wizard-option:hover {
    background: #e0f2fe;
    border-color: #0ea5e9;
}

.wizard-option input[type="radio"] {
    margin-right: 8px;
    accent-color: #2563eb;
}

.wizard-option input[type="radio"]:checked + span,
.wizard-option:has(input[type="radio"]:checked) {
    background: #dbeafe;
    border-color: #2563eb;
    color: #1e40af;
    font-weight: 600;
}

.wizard-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.wizard-progress {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

.wizard-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wizard-btn:not(.ghost) {
    background: #2563eb;
    color: white;
}

.wizard-btn.ghost {
    background: transparent;
    color: #6b7280;
    border: 1px solid #d1d5db;
}

.wizard-btn:hover:not(.ghost) {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.wizard-btn.ghost:hover {
    background: #f3f4f6;
    color: #374151;
}

.find-match-btn {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.find-match-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
}

/* Results Section */
.results-section {
    max-width: 1020px;
    margin: 20px auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(9, 30, 66, 0.08);
    padding: 24px;
}

.results-count {
    font-size: 18px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 20px;
}

.results-table {
    width: 100%;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    margin-bottom: 20px;
}

.results-table thead {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
}

.results-table th {
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.results-table td {
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: top;
}

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

.results-table tr:hover {
    background: #f8fafc;
}

.load-more-container {
    text-align: center;
    margin-top: 20px;
}

.load-more-btn {
    background: #4b7bec;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.load-more-btn:hover {
    background: #3867d6;
    transform: translateY(-1px);
}

/* Responsive Design for Wizard */
@media (max-width: 768px) {
    .wizard-container {
        margin: 10px;
        padding: 16px;
    }
    
    .wizard-options {
        grid-template-columns: 1fr;
    }
    
    .wizard-footer {
        flex-direction: column;
        gap: 15px;
    }
    
    .wizard-btn {
        width: 100%;
    }
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.faq-header h4 {
    font-size: 14px;
    color: #667eea;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.faq-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 15px;
}

.faq-header p {
    font-size: 16px;
    color: #4a5568;
    margin-bottom: 30px;
    line-height: 1.6;
}

.faq-illustration {
    display: flex;
    justify-content: center;
}

.illustration-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid #8A56B2;
}

.illustration-card img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 10px;
}

.faq-header h4 {
    font-size: 14px;
    color: #2F5F5F;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.faq-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #2F5F5F;
    margin-bottom: 15px;
}

.faq-header p {
    font-size: 16px;
    color: #4a5568;
    margin-bottom: 30px;
}

.faq-list {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.faq-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item:hover {
    background: #f8f9fa;
    padding-left: 10px;
}

.faq-item span:first-child {
    font-size: 16px;
    color: #2d3748;
    font-weight: 500;
}

.faq-icon {
    color: #8A56B2;
    font-size: 20px;
    font-weight: bold;
}

/* Enhanced Mobile-First Responsive Design */
@media (max-width: 768px) {
    /* Global mobile adjustments */
    .container {
        padding: 0 15px;
        max-width: 100%;
    }
    
    .section-padding {
        padding: 60px 0;
    }
    
    /* Enhanced text readability for mobile */
    body {
        font-size: 16px; /* Base font size for mobile */
        line-height: 1.6; /* Improved line height for readability */
    }
    
    /* Headings with better mobile scaling */
    h1 {
        font-size: 28px;
        line-height: 1.3;
        margin-bottom: 20px;
    }
    
    h2 {
        font-size: 24px;
        line-height: 1.3;
        margin-bottom: 16px;
    }
    
    h3 {
        font-size: 20px;
        line-height: 1.4;
        margin-bottom: 14px;
    }
    
    h4 {
        font-size: 18px;
        line-height: 1.4;
        margin-bottom: 12px;
    }
    
    h5 {
        font-size: 16px;
        line-height: 1.4;
        margin-bottom: 10px;
    }
    
    h6 {
        font-size: 14px;
        line-height: 1.4;
        margin-bottom: 8px;
    }
    
    /* Paragraph text */
    p {
        font-size: 16px;
        line-height: 1.6;
        margin-bottom: 16px;
    }
    
    /* Small text */
    small, .small-text {
        font-size: 14px;
        line-height: 1.5;
    }
    
    /* Links */
    a {
        font-size: 16px;
        line-height: 1.5;
    }
    
    /* Lists */
    ul, ol {
        font-size: 16px;
        line-height: 1.6;
        padding-left: 20px;
    }
    
    li {
        margin-bottom: 8px;
    }
    
    /* Image optimization for mobile */
    img {
        max-width: 100%;
        height: auto;
        display: block;
    }
    
    .hero-section {
        background-size: cover;
        background-position: center right;
        background-attachment: scroll; /* Better performance on mobile */
    }
    
    /* Card layouts */
    .card, .kognos-card, .resource-card, .testimonial-card {
        margin: 0 0 20px 0;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
    
    /* Grid spacing optimization */
    .grid, .habits-grid, .resources-grid, .testimonials-grid {
        gap: 20px;
        margin: 0;
    }
    
    /* Content spacing */
    .content-section {
        padding: 40px 0;
    }
    
    .section-header {
        text-align: center;
        margin-bottom: 30px;
    }
    
    /* Prevent horizontal scrolling */
    * {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Table responsiveness */
    table {
        width: 100%;
        border-collapse: collapse;
        font-size: 14px;
    }
    
    th, td {
        padding: 12px 8px;
        text-align: left;
        border-bottom: 1px solid #eee;
    }
    
    /* Responsive tables */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Hero Section Mobile Optimization */
    .hero-section {
        padding: 0 20px;
        height: 80vh;
        min-height: 500px;
        background-position: center right;
        background-size: cover;
    }
    
    .hero-content {
        max-width: 100%;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 32px;
        line-height: 1.3;
        margin-bottom: 20px;
    }
    
    .hero-content p {
        font-size: 16px;
        line-height: 1.5;
        margin-bottom: 30px;
    }
    
    .join-btn {
        padding: 16px 32px;
        font-size: 16px;
        min-height: 52px; /* Touch-friendly */
        min-width: 150px;
        display: inline-flex;
        border-radius: 50px;
        letter-spacing: 0.5px;
        align-items: center;
        justify-content: center;
    }
    
    /* Touch-friendly buttons and links */
    .nav-link, .mobile-nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
        padding: 12px 16px;
    }
    
    .dropdown-item {
        min-height: 44px;
        display: flex;
        align-items: center;
        padding: 12px 20px;
    }
    
    /* Action buttons */
    .action-btn, .btn, button {
        min-height: 44px;
        min-width: 44px;
        padding: 12px 20px;
        font-size: 16px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
    
    /* Links in cards */
    .card-link, .resource-link {
        min-height: 44px;
        display: flex;
        align-items: center;
        padding: 12px 16px;
        text-decoration: none;
        color: inherit;
    }
    
    /* Form elements */
    input[type="text"], 
    input[type="email"], 
    input[type="password"], 
    textarea, 
    select {
        min-height: 44px;
        padding: 12px 16px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Checkbox and radio buttons */
    input[type="checkbox"], 
    input[type="radio"] {
        min-width: 44px;
        min-height: 44px;
        margin: 0 8px 0 0;
    }
    
    /* AI Companion Section */
    .ai-companion-section { 
        padding: 40px 0; 
    }
    
    .ai-companion-grid { 
        grid-template-columns: 1fr; 
        gap: 30px; 
    }
    
    .chat-interface { 
        order: 1; 
        margin-bottom: 20px;
    }
    
    .ai-description { 
        order: 2; 
        text-align: center;
    }
    
    /* Chat Interface Mobile */
    .chat-header {
        padding: 15px;
        flex-direction: column;
        gap: 10px;
    }
    
    .chat-messages {
        max-height: 300px;
        padding: 15px;
    }
    
    .message {
        margin-bottom: 15px;
    }
    
    .bubble {
        padding: 12px 16px;
        font-size: 14px;
        line-height: 1.4;
    }
    
    /* Grid Layouts */
    .two-column-grid,
    .ai-companion-grid,
    .planner-grid,
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .three-column-grid,
    .testimonials-grid,
    .resources-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    /* Contact Card */
    .contact-card {
        grid-template-columns: 1fr;
        padding: 30px 20px;
        gap: 20px;
    }
    
    /* Habits Grid */
    .habits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .habit-item {
        padding: 20px 15px;
        text-align: center;
    }
    
    .habit-item h4 {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .habit-item p {
        font-size: 14px;
        line-height: 1.4;
    }
    
    /* Cards and Sections */
    .kognos-card {
        padding: 40px 20px;
        margin: 20px 0;
    }
    
    .section-header h2 {
        font-size: 28px;
        line-height: 1.3;
        margin-bottom: 15px;
    }
    
    .section-header p {
        font-size: 16px;
        line-height: 1.5;
    }
    
    /* Quote Section */
    .quote-section-standalone {
        padding: 40px 0;
    }
    
    .quote-content {
        padding: 30px 20px;
    }
    
    .quote-text {
        font-size: 18px;
        line-height: 1.5;
    }
    
    .quote-author {
        font-size: 14px;
        margin-top: 15px;
    }
    
    /* Resources Section */
    .resources-grid {
        gap: 25px;
    }
    
    .resource-card {
        padding: 25px 20px;
        text-align: center;
    }
    
    .resource-card h4 {
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    .resource-card p {
        font-size: 14px;
        line-height: 1.4;
    }
    
    /* Testimonials */
    .testimonials-grid {
        gap: 25px;
    }
    
    .testimonial-card {
        padding: 25px 20px;
    }
    
    .testimonial-text {
        font-size: 16px;
        line-height: 1.5;
        margin-bottom: 15px;
    }
    
    .testimonial-author {
        font-size: 14px;
    }
    
    /* FAQ Section */
    .faq-grid {
        gap: 30px;
    }
    
    .faq-item {
        padding: 20px;
    }
    
    .faq-question {
        font-size: 16px;
        padding: 15px 0;
    }
    
    .faq-answer {
        font-size: 14px;
        line-height: 1.5;
    }
}

/* Extra Small Mobile Devices (480px and below) */
@media (max-width: 480px) {
    /* Global adjustments for very small screens */
    .container {
        padding: 0 12px;
    }
    
    .section-padding {
        padding: 40px 0;
    }
    
    /* Hero Section - Extra Small */
    .hero-section {
        padding: 0 15px;
        height: 70vh;
        min-height: 400px;
        background-position: center right;
    }
    
    .hero-content h1 {
        font-size: 24px;
        line-height: 1.2;
        margin-bottom: 15px;
    }
    
    .hero-content p {
        font-size: 14px;
        line-height: 1.4;
        margin-bottom: 25px;
    }
    
    .join-btn {
        padding: 14px 28px;
        font-size: 15px;
        min-height: 48px;
        width: 100%;
        max-width: 220px;
        border-radius: 50px;
        letter-spacing: 0.5px;
    }
    
    /* Grid Layouts - Single Column */
    .habits-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .habit-item {
        padding: 15px 10px;
    }
    
    .habit-item h4 {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .habit-item p {
        font-size: 12px;
        line-height: 1.3;
    }
    
    /* Section Headers */
    .section-header h2 {
        font-size: 24px;
        line-height: 1.2;
        margin-bottom: 10px;
    }
    
    .section-header p {
        font-size: 14px;
        line-height: 1.4;
    }
    
    /* Cards and Content */
    .kognos-card {
        padding: 30px 15px;
        margin: 15px 0;
    }
    
    .contact-card {
        padding: 20px 15px;
        gap: 15px;
    }
    
    /* Chat Interface - Extra Small */
    .chat-interface {
        margin: 0 10px;
    }
    
    .chat-header {
        padding: 12px;
        gap: 8px;
    }
    
    .chat-messages {
        max-height: 250px;
        padding: 12px;
    }
    
    .bubble {
        padding: 10px 14px;
        font-size: 13px;
        line-height: 1.3;
    }
    
    /* Quote Section - Extra Small */
    .quote-content {
        padding: 20px 15px;
    }
    
    .quote-text {
        font-size: 16px;
        line-height: 1.4;
    }
    
    .quote-author {
        font-size: 12px;
        margin-top: 10px;
    }
    
    /* Resources - Extra Small */
    .resource-card {
        padding: 20px 15px;
    }
    
    .resource-card h4 {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .resource-card p {
        font-size: 13px;
        line-height: 1.3;
    }
    
    /* Testimonials - Extra Small */
    .testimonial-card {
        padding: 20px 15px;
    }
    
    .testimonial-text {
        font-size: 14px;
        line-height: 1.4;
        margin-bottom: 12px;
    }
    
    .testimonial-author {
        font-size: 12px;
    }
    
    /* FAQ - Extra Small */
    .faq-item {
        padding: 15px;
    }
    
    .faq-question {
        font-size: 14px;
        padding: 12px 0;
    }
    
    .faq-answer {
        font-size: 13px;
        line-height: 1.4;
    }
    
    /* AI Description - Extra Small */
    .ai-description h3 {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .ai-description p {
        font-size: 14px;
        line-height: 1.4;
        margin-bottom: 20px;
    }
    
    .ai-features {
        gap: 15px;
    }
    
    .ai-feature {
        padding: 15px;
    }
    
    .ai-feature h4 {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .ai-feature p {
        font-size: 12px;
        line-height: 1.3;
    }
}

/* Additional Mobile Optimizations */
@media (max-width: 768px) {
    /* Smooth scrolling */
    html {
        scroll-behavior: smooth;
    }
    
    /* Focus states for accessibility */
    button:focus,
    a:focus,
    input:focus,
    textarea:focus,
    select:focus {
        outline: 2px solid #667eea;
        outline-offset: 2px;
    }
    
    /* Improved touch targets */
    .clickable {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Better spacing for mobile */
    .mobile-spacing {
        margin: 20px 0;
    }
    
    .mobile-padding {
        padding: 20px 15px;
    }
    
    /* Hide elements that don't work well on mobile */
    .desktop-only {
        display: none;
    }
    
    /* Show mobile-specific elements */
    .mobile-only {
        display: block;
    }
}

@media (max-width: 480px) {
    /* Extra small mobile optimizations */
    .mobile-only {
        display: block;
    }
    
    .desktop-only {
        display: none;
    }
    
    /* Reduce animations on very small screens for performance */
    * {
        animation-duration: 0.3s;
        transition-duration: 0.3s;
    }
    
    /* Optimize for very small screens */
    .container {
        padding: 0 10px;
    }
    
    .section-padding {
        padding: 30px 0;
    }
}

/* Landscape orientation optimizations */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        height: 100vh;
        min-height: 500px;
    }
    
    .mobile-nav-content {
        max-height: 60vh;
    }
}

/* High DPI display optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo-image,
    .hero-section {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}