* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Improve touch interactions on mobile */
@media (hover: none) and (pointer: coarse) {
    button, a, .treatment-circle, .rating-pill {
        -webkit-tap-highlight-color: rgba(44, 90, 160, 0.2);
    }
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    overflow-x: hidden;
    padding-top: 80px; 
    /* Enable smooth scrolling */
    scroll-behavior: smooth;
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
header {
    background: linear-gradient(135deg, #4a90d9, #2c5aa0);
    color: white;
    padding: 0.5rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.logo {
    font-size: 1.0rem;
    font-weight: bold;
}
.logo a {
    color: inherit;
    text-decoration: none;
}
.logo a:hover {
    color: inherit;
    text-decoration: none;
}
.nav-group {
    display: flex;
    align-items: center;
}
nav {
    background-color: #1e3a5f;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-container {
    display: flex;
    justify-content: right;
    flex-wrap: wrap;
}
.nav-btn {
    background: none;
    border: none;
    color: white;
    padding: 15px 25px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
    border-right: 1px solid #2c5aa0;
    text-decoration: none;
    display: inline-block;
}
.nav-btn:hover, .nav-btn.active {
    background-color: #2c5aa0;
    color: white;
    text-decoration: none;
}
.nav-btn:last-child {
    border-right: none;
}

/* Dropdown menu styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-btn {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #1e3a5f;
    min-width: 250px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1001;
    top: 100%;
    left: 0;
    white-space: nowrap;
}

.dropdown-content a {
    color: white;
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s ease;
}

.dropdown-content a:hover {
    background-color: #2c5aa0;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown:hover .dropdown-btn {
    background-color: #2c5aa0;
}

main {
    min-height: 100vh;
    padding: 0;
}

.page {
    display: none;
    animation: fadeIn 0.5s ease-in;
}
.page.active {
    display: block;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.hero {
    background: linear-gradient(rgba(74, 144, 217, 0.8), rgba(42, 87, 154, 0.8)), url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 400"><rect fill="%23e3f2fd" width="1200" height="400"/><circle cx="200" cy="100" r="50" fill="%23bbdefb" opacity="0.5"/><circle cx="800" cy="300" r="80" fill="%2390caf9" opacity="0.3"/><circle cx="1000" cy="150" r="60" fill="%2364b5f6" opacity="0.4"/></svg>');
    color: white;
    text-align: center;
    padding: 4rem 0;
    margin-bottom: 2rem;
    border-radius: 10px;
}
.hero-image {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    max-width: none;
    overflow: hidden;
    height: 50vh; 
    margin-top: -2rem; 
    margin-bottom: 0;
    display: flex;
    align-items: flex-start;
    padding-top: 6vh;
    justify-content: flex-start;
}
.hero-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}
.hero-image-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 10%;
}
.hero-image h2 {
    color: #2c5aa0;
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: none;
    text-align: left;
    line-height: 1.15;
}
.hero-image p {
    font-size: 1.8rem;
    color: rgb(0, 0, 0);
    text-align: left;
    margin: 0;
    line-height: 1.3;
}
.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}
.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}
.card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.15);
}
.card h2 {
    color: #2c5aa0;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    border-bottom: 3px solid #4a90d9;
    padding-bottom: 0.5rem;
}
.card h3 {
    color: #1e3a5f;
    margin: 1.5rem 0 1rem 0;
    font-size: 1.3rem;
}
.card h2,
.card h3 {
    color: #2c5aa0;
}
.about-page h2,
.about-page h3 {
    color: #2c5aa0;
}
.symptom-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}
.symptom-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    border-left: 5px solid #4a90d9;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}
.symptom-card:hover {
    transform: translateX(5px);
}
.warning-box {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-left: 5px solid #ff9800;
}
.warning-box h3 {
    color: #856404;
    margin-bottom: 0.5rem;
}
.emergency-box {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    border: 1px solid #dc3545;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-left: 5px solid #dc3545;
}
.emergency-box h3 {
    color: #721c24;
    margin-bottom: 0.5rem;
}
.info-box {
    background: linear-gradient(135deg, #d1ecf1, #bee5eb);
    border: 1px solid #17a2b8;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-left: 5px solid #17a2b8;
}
.info-box h3 {
    color: #0c5460;
    margin-bottom: 0.5rem;
}
.contact-info {
    background: linear-gradient(135deg, #4a90d9, #2c5aa0);
    color: white;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    margin: 2rem 0;
}
.contact-info h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: white;
}
.contact-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}
.contact-item {
    background: rgba(255,255,255,0.1);
    padding: 1rem;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}
ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}
li {
    margin-bottom: 0.5rem;
}
.btn {
    display: inline-block;
    background: linear-gradient(135deg, #4a90d9, #2c5aa0);
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 10px 5px;
    font-weight: 500;
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(44, 90, 160, 0.4);
    color: white;
    text-decoration: none;
}
footer {
    background-color: #1e3a5f;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}
.action-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 0;
    padding: 2rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}
.action-button {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    text-decoration: none;
    color: inherit;
    display: block;
}
.action-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(44, 90, 160, 0.2);
    border-color: #4a90d9;
    text-decoration: none;
    color: inherit;
}
.action-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
}
.action-icon img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}
.action-button p {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c5aa0;
    margin: 0;
}
.test-form {
    margin: 2rem 0;
}
.question {
    background: #f8f9fa;
    padding: 1.5rem;
    margin: 1rem 0;
    border-radius: 8px;
    border-left: 4px solid #4a90d9;
}
.question h4 {
    color: #2c5aa0;
    margin-bottom: 1rem;
}
.question label {
    display: block;
    margin: 0.5rem 0;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}
.question label:hover {
    background-color: rgba(74, 144, 217, 0.1);
}
.question input[type="radio"] {
    margin-right: 0.5rem;
}
.result-box {
    background: linear-gradient(135deg, #d1ecf1, #bee5eb);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #17a2b8;
    text-align: center;
}
.treatment-page {
    color: #2c5aa0;
    padding: 2rem 0;
    text-align: left;
}
.treatment-page h2{
    color: #2c5aa0;
    text-align: center;
}
.treatment-page a{
    color: #424242;
}
.treatment-page p{
    color: #000000;
}
.treatment-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
    max-width: 975px;
    margin-left: auto;
    margin-right: auto;
}
.treatment-option {
    text-align: center;
    cursor: pointer;
}
.treatment-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    position: relative;
}
.treatment-circle:hover {
    background-color: #d0d0d0;
    transform: scale(1.05);
}
.treatment-circle.selected {
    background-color: #4a90d9;
    border-color: #2c5aa0;
}
.treatment-circle .checkmark {
    font-size: 2rem;
    color: white;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.treatment-circle.selected .checkmark {
    opacity: 1;
}
.treatment-option h3 {
    color: #2c5aa0;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}
.treatment-option p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.3;
    margin: 0;
}
.rating-scale {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}
.rating-item {
    text-align: center;
}
.rating-pill {
    width: 80px;
    height: 30px;
    border-radius: 15px;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem auto;
    border: 2px solid transparent;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}
.rating-pill:hover {
    background-color: #c8d6e5;
    border-color: #4a90d9;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(74, 144, 217, 0.3);
}
.rating-pill.selected {
    background-color: #4a90d9;
    border-color: #2c5aa0;
}
.rating-pill .checkmark {
    font-size: 1rem;
    color: white;
    font-weight: bold;
    opacity: 0;
}
.rating-pill.selected .checkmark {
    opacity: 1;
}
.rating-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}
.compare-section {
    text-align: center;
    margin-top: 0;
    margin-bottom: 2rem;
}
.compare-btn {
    background: linear-gradient(135deg, #4a90d9, #2c5aa0);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Arial Black', Arial, sans-serif;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.compare-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(44, 90, 160, 0.3);
}
.compare-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.info-btn {
    background: linear-gradient(135deg, #4a90d9, #2c5aa0);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Arial Black', Arial, sans-serif;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    text-decoration: none;
    opacity: 1;
}

.info-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(44, 90, 160, 0.3);
}

.effectiveness-question {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.effectiveness-question h1 {
    color: #2c5aa0;
    font-size: 1.4rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    line-height: 1.5;
}
.effectiveness-question h2 {
    color: #2c5aa0;
    font-size: 1.4rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.treatment-selection {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.treatment-selection h1 {
    color: #2c5aa0;
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
    font-weight: 600;
}
.treatment-selection h2 {
    color: #2c5aa0;
    text-align: center;
    margin-bottom: 3rem;
    font-size: 1.55rem;
    font-weight: 600;
}
.comparison-page {
    padding: 2rem 0;
}
.comparison-page h1 {
    color: #2c5aa0;
    margin-bottom: 2rem;
    text-align: left;
}
.comparison-page h2 {
    color: #2c5aa0;
    margin-bottom: 2rem;
    text-align: left;
}
.comparison-page p {
    color: #000000;
    margin-bottom: 2rem;
    text-align: left;
}
.back-button {
    margin-bottom: 2rem;
}
.back-button .btn {
    background: #4a90d9;
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
    transition: background 0.3s ease;
}
.back-button .btn:hover {
    background: #2c5aa0;
}
.comparison-section {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.comparison-title {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #4a90d9, #2c5aa0);
    color: white;
    border-radius: 10px;
}
.comparison-title h2 {
    color: white;
    font-size: 1.8rem;
    margin: 0;
}
.comparison-header {
    margin-bottom: 1.5rem;
}
.comparison-header h2 {
    color: #2c5aa0;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.comparison-subtitle {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    color: #666;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}
.comparison-subtitle span {
    background: #f8f9fa;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 2px solid #4a90d9;
    color: #2c5aa0;
}
.treatment-comparison {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}
.treatment-col h3 {
    color: #2c5aa0;
    margin-bottom: 1rem;
}
.treatment-col ul {
    list-style: none;
    padding: 0;
}
.treatment-col li {
    background: #f8f9fa;
    padding: 0.5rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 5px;
    border-left: 4px solid #4a90d9;
}
.chart-container {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
}
.chart-item {
    text-align: center;
    flex: 1;
}
.bar-chart {
    height: 250px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    margin-bottom: 1rem;
    padding: 10px;
}
.bar {
    width: 80px;
    background: #4a90d9;
    border-radius: 5px 5px 0 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    color: white;
    font-weight: bold;
    transition: all 0.3s ease;
    position: relative;
    min-height: 30px;
    box-shadow: 0 2px 8px rgba(74, 144, 217, 0.3);
}
.bar:hover {
    background: #2c5aa0;
    transform: scale(1.05);
}
.bar-label {
    position: absolute;
    bottom: 8px;
    font-size: 14px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}
.chart-label {
    font-weight: bold;
    color: #2c5aa0;
    font-size: 1.1rem;
}
.icon-chart-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
}
.icon-chart-item h4 {
    color: #2c5aa0;
    margin-bottom: 1rem;
    text-align: center;
}
.icon-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 4px;
    max-width: 400px;
    margin: 0 auto;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
}
.person-icon {
    font-size: 18px;
    text-align: center;
    color: #ccc;
    opacity: 0.175;
    transition: all 0.3s ease;
}
.person-icon.highlighted {
    color: #e74c3c;
    opacity: 1;
    transform: scale(1.1);
}
.info-bubble {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #4a90d9, #2c5aa0);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    margin-left: 8px;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(74, 144, 217, 0.3);
}
.info-bubble:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(74, 144, 217, 0.4);
    background: linear-gradient(135deg, #5ba0e9, #3c6ab0);
}
.info-bubble:active {
    transform: scale(0.95);
}
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    animation: fadeIn 0.3s ease-out;
}
.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 2rem;
    border: none;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.3s ease-out;
}
.modal-content:focus {
    outline: none;
}
.modal-content p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
    transition: color 0.3s ease;
}
.close:hover,
.close:focus {
    color: #333;
    text-decoration: none;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-30px) scale(0.9);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
@media (max-width: 768px) {
    header {
        padding: 0.25rem 0;
    }
    .container {
        padding: 0 10px;
    }
    .header-content {
        flex-direction: row;
        gap: 0;
        justify-content: center;
    }
    .logo {
        display: none;
    }
    .nav-group {
        width: 100%;
        justify-content: center;
        flex-wrap: nowrap;
        gap: 0;
    }
    .nav-btn {
        padding: 8px 8px;
        font-size: 0.75rem;
        flex: 0 1 auto;
        white-space: nowrap;
        border-right: 1px solid rgba(255,255,255,0.2);
    }
    .nav-btn:last-child {
        border-right: none;
    }
    .dropdown-btn {
        padding: 8px 8px;
        font-size: 0.75rem;
    }
    /* Dropdown mobile improvements */
    .dropdown {
        flex: 0 1 auto;
        text-align: left;
    }
    .dropdown-btn {
        width: 100%;
        text-align: center;
    }
    .dropdown-content {
        left: 0;
        transform: none;
        min-width: 200px;
        width: auto;
    }
    /* Make dropdown work on click/touch for mobile */
    .dropdown.active .dropdown-content {
        display: block;
    }
    main {
        padding: 0;
    }
    .hero-image {
        height: 40vh;
        padding-top: 4vh;
    }
    .hero-image-content {
        padding: 0 5%;
    }
    .hero-image h2 {
        font-size: 1.5rem;
        line-height: 1.2;
        margin-bottom: 0.5rem;
    }
    .hero-image p {
        font-size: 1.1rem;
        line-height: 1.3;
    }
    .action-buttons {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 0;
        padding: 1.5rem 5%;
    }
    .action-button {
        padding: 1.5rem;
    }
    .action-icon {
        width: 60px;
        height: 60px;
    }
    .action-icon img {
        width: 60px;
        height: 60px;
    }
    .action-button p {
        font-size: 1rem;
    }
    .card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    .card h2 {
        font-size: 1.5rem;
    }
    .symptom-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .treatment-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    .treatment-circle {
        width: 80px;
        height: 80px;
    }
    .treatment-option h3 {
        font-size: 1rem;
    }
    .treatment-option p {
        font-size: 0.8rem;
    }
    .rating-scale {
        gap: 1rem;
    }
    .rating-pill {
        width: 70px;
        height: 28px;
    }
    .slider-container {
        margin: 1.5rem 0 2rem 0;
        padding: 1.5rem;
    }
    .slider-wrapper {
        max-width: 450px;
    }
    .slider-labels {
        margin-bottom: 1.2rem;
    }
    .slider-label {
        font-size: 0.8rem;
    }
    .tick {
        width: 2.5px;
        height: 18px;
    }
    .rating-slider::-webkit-slider-thumb {
        height: 20px;
        width: 20px;
    }
    .rating-slider::-moz-range-thumb {
        height: 20px;
        width: 20px;
    }
    .compare-btn {
        padding: 12px 30px;
        font-size: 1rem;
    }
    .effectiveness-question,
    .treatment-selection {
        padding: 1.5rem;
    }
    .effectiveness-question h1 {
        font-size: 1.2rem;
        flex-wrap: wrap;
        gap: 8px;
    }
    .treatment-selection h1 {
        font-size: 1.6rem;
    }
    .treatment-selection h2 {
        font-size: 1.3rem;
    }
    .comparison-section {
        padding: 1.5rem;
    }
    .treatment-comparison {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .chart-container {
        flex-direction: row;
        gap: 1rem;
    }
    .bar {
        width: 60px;
    }
    .bar-chart {
        height: 200px;
    }
    .icon-chart-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .icon-grid {
        grid-template-columns: repeat(10, 1fr);
        gap: 2px;
    }
    .person-icon {
        font-size: 14px;
    }
    .comparison-subtitle {
        flex-direction: column;
        gap: 0.5rem;
    }
    .modal-content {
        width: 90%;
        margin: 20% auto;
        padding: 1.5rem;
    }
    .close {
        font-size: 24px;
        top: 8px;
        right: 15px;
    }
    .info-bubble {
        width: 20px;
        height: 20px;
        font-size: 12px;
        margin-left: 4px;
    }
    /* Treatment info page mobile */
    .treatment-page {
        padding: 1.5rem;
    }
    .treatment-page h1 {
        font-size: 1.8rem;
    }
    .treatment-page h3 {
        font-size: 1.3rem;
    }
    .treatment-page p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    /* Ensure buttons are touch-friendly */
    .compare-btn,
    .cta-button {
        min-height: 44px; /* Apple's recommended minimum touch target */
        padding: 14px 30px;
    }
}
@media (max-width: 480px) {
    .logo {
        font-size: 1.3rem;
    }
    .nav-btn {
        padding: 10px 15px;
        font-size: 0.85rem;
    }
    .hero-image h2 {
        font-size: 1.6rem;
        margin-bottom: 0.75rem;
    }
    .hero-image p {
        font-size: 1.1rem;
    }
    .action-button {
        padding: 1.2rem;
    }
    .action-icon {
        width: 50px;
        height: 50px;
    }
    .action-icon img {
        width: 50px;
        height: 50px;
    }
    .card {
        padding: 1.2rem;
    }
    .card h2 {
        font-size: 1.3rem;
    }
    .treatment-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .treatment-circle {
        width: 70px;
        height: 70px;
    }
    .rating-pill {
        width: 60px;
        height: 25px;
    }
    .rating-label {
        font-size: 0.8rem;
    }
    .slider-container {
        margin: 1rem 0 1.5rem 0;
        padding: 1rem;
    }
    .slider-wrapper {
        max-width: 350px;
    }
    .slider-labels {
        margin-bottom: 1rem;
    }
    .slider-label {
        font-size: 0.7rem;
        line-height: 1.2;
    }
    .tick {
        width: 2px;
        height: 16px;
    }
    .rating-slider::-webkit-slider-thumb {
        height: 18px;
        width: 18px;
    }
    .rating-slider::-moz-range-thumb {
        height: 18px;
        width: 18px;
    }
    .effectiveness-question h1 {
        font-size: 1.1rem;
    }
    .treatment-selection h1 {
        font-size: 1.4rem;
    }
    .treatment-selection h2 {
        font-size: 1.2rem;
    }
    .modal-content {
        margin: 20% auto;
        padding: 1rem;
    }
    .effectiveness-question {
        padding: 1.5rem;
    }
    /* Treatment info page for very small screens */
    .treatment-page {
        padding: 1rem;
    }
    .treatment-page h1 {
        font-size: 1.5rem;
    }
    .treatment-page h3 {
        font-size: 1.1rem;
    }
    /* Dropdown content width adjustment for small screens */
    .dropdown-content {
        min-width: 180px;
        font-size: 0.85rem;
    }
    .dropdown-content a {
        padding: 10px 15px;
    }
}
.personal-test main.container {
    /* keep default container width; only adjust padding if needed */
    padding-left: 0;
    padding-right: 0;
}
/* Personal test: keep boxes to a comfortable reading width on larger screens */
.personal-test .treatment-selection {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}
.personal-test .questions-container {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
.personal-test .effectiveness-question {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
.personal-test .slider-container {
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0.5rem 0 !important;
}
.personal-test .slider-wrapper,
.personal-test .slider-track-container {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
}
/* Avoid overly wide labels row on sliders */
.personal-test .slider-labels { width: 100%; }
/* Personal test page: reduce boxiness and use full width on mobile */
@media (max-width: 768px) {
    .personal-test .treatment-selection,
    .personal-test .questions-container,
    .personal-test .effectiveness-question {
        border-radius: 0;
        margin: 0;
        padding: 1rem 1rem;
        box-shadow: none;
        border: none;
    }
    .personal-test .questions-container {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
        background: transparent !important;
    }
    .personal-test .questions-container .effectiveness-question {
        padding: 1rem 0;
        border-bottom: 1px solid #e9ecef;
    }
    .personal-test .questions-container .effectiveness-question:last-child {
        border-bottom: none;
    }
    .personal-test .treatment-selection h1,
    .personal-test .treatment-selection h2,
    .personal-test .questions-container .effectiveness-question h2 {
        padding-left: 1rem;
        padding-right: 1rem;
        line-height: 1.4;
    }
    /* Make slider block full-width and add breathing room */
    .personal-test .slider-container {
        padding: 0.75rem 1rem;
        margin: 0.5rem 0 1.25rem 0;
        background: transparent;
        box-shadow: none;
    }
    .personal-test .slider-wrapper {
        max-width: none;
        width: 100%;
        padding: 0 1rem;
    }
    /* Prevent label crowding; stack labels on two lines if needed */
    .personal-test .slider-labels {
        width: 100%;
        gap: 6px;
    }
    .personal-test .slider-label {
        font-size: 0.8rem;
        line-height: 1.25;
        white-space: normal;
        word-break: keep-all;
    }
    /* Increase min tap targets */
    .personal-test .rating-slider::-webkit-slider-thumb {
        width: 28px;
        height: 28px;
    }
    .personal-test .rating-slider::-moz-range-thumb {
        width: 28px;
        height: 28px;
    }
    /* Buttons spacing */
    .personal-test .compare-section {
        padding: 0 1rem;
    }
}
.questions-container {
    background: white !important;
    border-radius: 15px;
    padding: 3rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    border: 1px solid #e9ecef;
}
.questions-container .effectiveness-question {
    background: transparent !important;
    border-radius: 0;
    padding: 2rem 0;
    margin-bottom: 2rem;
    box-shadow: none !important;
    border-left: none;
    border-bottom: 2px solid #e9ecef;
    transition: all 0.3s ease;
}
.questions-container .effectiveness-question:last-child {
    margin-bottom: 0;
    border-bottom: none;
}
.questions-container .effectiveness-question:hover {
    background: rgba(74, 144, 217, 0.02) !important;
    transform: none;
    box-shadow: none !important;
    border-left: none;
}
.questions-container .effectiveness-question h2 {
    color: #2c5aa0 !important;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.4;
    font-weight: 600;
}
.questions-container .rating-scale {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}
.questions-container .rating-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
    flex: 1;
    min-width: 110px;
    transition: all 0.2s ease;
}
.questions-container .rating-item:hover {
    transform: translateY(-2px);
}
.questions-container .rating-pill {
    width: 95px !important;
    height: 95px !important;
    border-radius: 50% !important;
    background: #e9ecef !important;
    border: 4px solid #dee2e6 !important;
    cursor: pointer !important;
    transition: all 0.3s ease-in-out !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    user-select: none !important;
    box-sizing: border-box !important;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12) !important;
}

.questions-container .rating-pill:hover {
    background: #b3d4fc !important;
    border-color: #4a90d9 !important;
    transform: scale(1.08) !important;
    box-shadow: 0 5px 15px rgba(74, 144, 217, 0.5) !important;
}

.questions-container .rating-pill.selected {
    background: #6ba4e3 !important;
    border-color: #4a90d9 !important;
    color: white !important;
}

.questions-container .rating-pill.selected:hover {
    background: #4a90d9 !important;
    border-color: #2c5aa0 !important;
    transform: scale(1.08) !important;
    box-shadow: 0 5px 15px rgba(74, 144, 217, 0.5) !important;
}

.questions-container .rating-pill.selected::after {
    content: '';
    font-size: 48px;
    font-weight: bold;
    color: white;
    z-index: 1;
    position: relative;
}
.questions-container .rating-label {
    font-size: 0.9rem;
    text-align: center;
    color: #495057;
    font-weight: 500;
    transition: all 0.2s ease;
}
.questions-container .rating-item:hover .rating-label {
    color: #2c5aa0;
    font-weight: 600;
}
.info-bubble {
    background: #4a90d9 !important;
    border: none;
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    flex-shrink: 0;
}
.info-bubble:hover {
    background: #2c5aa0 !important;
    transform: scale(1.2) rotate(15deg);
    box-shadow: 0 4px 15px rgba(44, 90, 160, 0.3);
}
.info-bubble:active {
    transform: scale(0.95);
}
.compare-btn {
    background: linear-gradient(135deg, #4a90d9, #2c5aa0) !important;
    border: none;
    color: white;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(74, 144, 217, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.compare-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(74, 144, 217, 0.5);
    background: linear-gradient(135deg, #5ba0e9, #3c6ab0) !important;
}
.compare-btn:active:not(:disabled) {
    transform: translateY(-1px);
}
.compare-btn:disabled {
    background: #dee2e6 !important;
    color: #6c757d !important;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
/* Slider styles for personal test */
.slider-container {
    margin: 2rem 0 3rem 0;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: center;
    align-items: center;
}
.slider-wrapper {
    width: 100%;
    max-width: 700px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    position: relative;
    width: 123%;
}

.slider-label {
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    font-weight: 500;
    flex: 1;
    position: relative;
}

    .slider-track-container {
        position: relative;
        width: 80%;
        display: flex;
        justify-content: center;
        align-items: center;
}

.rating-slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(to right, #ff6b6b, #ffa726, #ffd54f, #66bb6a, #42a5f5);
    outline: none;
    margin: 0.5rem 0;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    position: relative;
    z-index: 2;
}

.rating-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    height: 24px;
    width: 24px;
    border-radius: 50%;
    background: white;
    border: 3px solid #2c5aa0;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
}

.rating-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(44, 90, 160, 0.3);
}

.rating-slider::-moz-range-thumb {
    height: 24px;
    width: 24px;
    border-radius: 50%;
    background: white;
    border: 3px solid #2c5aa0;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
    border: none;
}

.rating-slider::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(44, 90, 160, 0.3);
}

.rating-slider::-moz-range-track {
    background: transparent;
    border: none;
}

.slider-ticks {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    z-index: 1;
    pointer-events: none;
}

.tick {
    width: 3px;
    height: 20px;
    background-color: #999;
    border-radius: 1.5px;
    position: relative;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.tick:first-child {
    margin-left: 0;
}

.tick:last-child {
    margin-right: 0;
}

/* --- Comparison table styles --- */
.comparison-table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin: 1.5rem 0 2rem 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    overscroll-behavior-x: contain;
    touch-action: pan-y pan-x;
}
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    overflow: hidden;
    table-layout: fixed;
}
.comparison-table thead th {
    background: #f3f5f7;
    color: #2c5aa0; /* blue for bold headers */
    font-weight: 700; /* make header text (Faktor + treatment names) bold */
    padding: 14px 12px;
    border-bottom: 1px solid #e6e8eb;
    text-align: left;
    white-space: normal; /* allow wrapping on small devices */
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.comparison-table thead th:first-child {
    width: 180px;
    max-width: 180px;
}
.comparison-table .sub-label {
    display: block;
    color: #64748b;
    font-weight: 400;
    font-size: 0.9rem;
    margin-top: 4px;
}
.comparison-table tbody td {
    padding: 14px 12px;
    border-bottom: 1px solid #eef1f4;
    vertical-align: top;
    font-weight: 600; /* make data bold */
    color: #111;      /* keep data black */
    word-wrap: break-word;
    white-space: normal;
    line-height: 1.45;
    overflow-wrap: break-word;
    max-width: 200px;
}
.comparison-table tbody tr:nth-child(even) td {
    background: #fafbfc;
}
.comparison-table .row-title {
    color: #2c5aa0;  /* blue for bold row titles */
    font-weight: 700;
    background: #f9fafb;
}
.comparison-table td br { line-height: 1.45; }

@media (max-width: 768px) {
    .comparison-table thead th:first-child { width: 180px; }
    .comparison-table thead th,
    .comparison-table tbody td {
        padding: 12px 14px;
        font-size: 1rem;
        line-height: 1.5;
    }
    .comparison-table .sub-label {
        font-size: 0.9rem;
    }
}

/* Sticky first column for better readability when scrolling horizontally */
.comparison-table thead th:first-child,
.comparison-table tbody td:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    background: #fff;
    box-shadow: 3px 0 6px -4px rgba(0,0,0,0.2);
}
.comparison-table thead th:first-child {
    z-index: 2; /* stay above body cells */
    background: #f3f5f7;
}

/* Scroll hint (shown above table on small screens) */
.scroll-hint {
    display: none;
}
@media (max-width: 768px) {
    .scroll-hint {
        display: block;
        font-size: 0.9rem;
        color: #6c757d;
        text-align: right;
        margin: 0.5rem 0 -0.5rem 0;
    }
}

/* Force-remove inner-most slider box inside questions area */
.questions-container .slider-container,
.questions-container .slider-container .slider-wrapper,
.questions-container .slider-container .slider-track-container {
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0 !important;
}
.questions-container .slider-labels { width: 100% !important; }

/* Personal test: remove the big box around all questions, keep title area intact */
.personal-test .questions-container {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
}
.personal-test .questions-container .effectiveness-question {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Personal test: give each slider its own box (but not the question heading above) */
.personal-test .questions-container .slider-container {
    background: #fff !important;
    border: 1px solid #e9ecef !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06) !important;
    padding: 1.25rem 1.25rem !important;
    margin: 0.75rem auto 1rem auto !important;
    max-width: 820px;
}

.personal-test .questions-container .effectiveness-question:last-child .slider-container {
    margin-bottom: 0rem !important;
}

@media (max-width: 768px) {
    .personal-test .questions-container .slider-container {
        padding: 1rem !important;
        margin: 0.5rem auto 1.25rem auto !important;
    }
}

/* Treatment info page styles */
.treatment-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.treatment-info-grid .card {
    padding: 1.5rem;
}

.treatment-info-grid .card h2 {
    color: #2c5aa0;
    margin-bottom: 0.5rem;
}

.treatment-info-grid .card h3 {
    color: #666;
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: normal;
}

.treatment-info-grid .card p {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.treatment-info-grid .card p strong {
    color: #2c5aa0;
}