 <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        body {
            background: linear-gradient(135deg, #1a2a6c, #b21f1f, #1a2a6c);
            justify-content: center;
            align-items: center;
            color: #333;
        }

        .container {
         background-color:#fff;
            width: 100%;
            max-width: 1000px;
			padding:0px !important;
            overflow: hidden;
        }
		footer .container{
			background:none;
			padding:20px !important;
			
		}

.sub-header {
    background: linear-gradient(to right, #2575fc, #6a11cb);
    color: white;
    padding: 30px 40px;
    text-align: center;
}
.section {
    padding: 50px 0;
    color: #333;
}

.age-container {
    background-color: white;
    width: 100%;
    max-width: 1200px;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    margin: 0 auto;
}

header {
            background: linear-gradient(to right, #3a7bd5, #00d2ff);
            color: white;
            padding:15px 0;
            text-align: center;
            position: relative;
        }

        h1 {
            font-size: 2.8rem;
            margin-bottom: 10px;
            text-shadow: 0 2px 4px rgba(0,0,0,0.2);
        }

        .description {
            font-size: 1.1rem;
            max-width: 700px;
            margin: 0 auto 15px;
            line-height: 1.6;
        }

        .calculator-container {
            display: flex;
            padding: 30px;
            gap: 30px;
        }

        .input-section {
            flex: 1;
            min-width: 300px;
            padding: 20px;
        }

        .result-section {
            flex: 1;
            min-width: 300px;
            background: #f8f9ff;
            border-radius: 15px;
            padding: 25px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.05);
        }

        .input-group {
            margin-bottom: 25px;
        }

        .input-group label {
            display: block;
            font-weight: 600;
            margin-bottom: 10px;
            font-size: 1.1rem;
            color: #444;
        }

        .gender-selection {
            display: flex;
            gap: 15px;
            margin-bottom: 25px;
        }

        .gender-option {
            flex: 1;
            text-align: center;
            padding: 20px 10px;
            border-radius: 15px;
            cursor: pointer;
            font-weight: 600;
            transition: all 0.3s;
            background:none;
            border: 2px solid #e0e0e0;
        }

        .gender-option.active {
            background: #00d2ff;
            color: white;
            box-shadow: 0 5px 15px rgba(58, 123, 213, 0.3);
            border-color: #FFF;
        }

        .gender-option i {
            font-size: 2.5rem;
            margin-bottom: 10px;
            display: block;
        }

        .unit-toggle {
            display: flex;
            background: #eef2ff;
            border-radius: 50px;
            padding: 5px;
            margin-bottom: 25px;
        }

        .unit-option {
            flex: 1;
            text-align: center;
            padding: 12px;
            border-radius: 50px;
            cursor: pointer;
            font-weight: 600;
            transition: all 0.3s;
        }

        .unit-option.active {
            background: linear-gradient(to right, #3a7bd5, #00d2ff);
            color: white;
            box-shadow: 0 4px 10px rgba(58, 123, 213, 0.3);
        }

        .input-group input {
            width: 100%;
            padding: 15px;
            border: 2px solid #e0e0e0;
            border-radius: 10px;
            font-size: 1.1rem;
            transition: border-color 0.3s;
        }

        .input-group input:focus {
            outline: none;
            border-color: #3a7bd5;
            box-shadow: 0 0 0 3px rgba(58, 123, 213, 0.2);
        }

        .btn-calculate {
            background: linear-gradient(to right, #3a7bd5, #00d2ff);
            color: white;
            border: none;
            padding: 16px 30px;
            font-size: 1.2rem;
            font-weight: 600;
            border-radius: 10px;
            cursor: pointer;
            width: 100%;
            margin-top: 10px;
            transition: transform 0.2s, box-shadow 0.2s;
            box-shadow: 0 5px 15px rgba(58, 123, 213, 0.4);
        }

        .btn-calculate:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(58, 123, 213, 0.6);
        }

        .btn-calculate:active {
            transform: translateY(-1px);
        }

        .bmi-value {
            text-align: center;
            font-size: 4rem;
            font-weight: 800;
            margin: 20px 0;
            background: linear-gradient(to right, #3a7bd5, #00d2ff);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }

        .bmi-category {
            text-align: center;
            font-size: 1.8rem;
            font-weight: 700;
            margin-bottom: 20px;
            color: #3a7bd5;
        }

        .bmi-scale {
            height: 30px;
            background: linear-gradient(to right, #4facfe, #00f2fe, #00cdac, #f9f047, #ff7e5f);
            border-radius: 15px;
            margin: 25px 0;
            position: relative;
        }

        .bmi-indicator {
            position: absolute;
            top: -10px;
            width: 20px;
            height: 50px;
            background: #1a2a6c;
            clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
            transform: translateX(-50%);
            transition: left 1s ease-out;
        }

        .bmi-labels {
            display: flex;
            justify-content: space-between;
            margin-top: 10px;
            font-size: 0.9rem;
            font-weight: 600;
            color: #555;
        }

        .bmi-info {
            margin-top: 25px;
            padding: 20px;
            background: white;
            border-radius: 15px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
        }

        .bmi-info h3 {
            color: #3a7bd5;
            margin-bottom: 15px;
            text-align: center;
        }

        .category-info {
            display: flex;
            justify-content: space-between;
            margin-top: 10px;
            padding: 10px;
            border-radius: 10px;
            font-weight: 500;
        }

        .category-info.active {
            background: #e6f0ff;
            font-weight: 700;
        }

        .health-insights {
            margin-top: 25px;
            padding: 20px;
            background: #e6f7ff;
            border-radius: 15px;
            border-left: 4px solid #3a7bd5;
        }

        .health-insights h3 {
            color: #3a7bd5;
            margin-bottom: 15px;
        }

        .health-insights ul {
            padding-left: 20px;
        }

        .health-insights li {
            margin-bottom: 10px;
            line-height: 1.6;
        }

        .error {
            background: #ffebee;
            color: #e53935;
            padding: 15px;
            border-radius: 8px;
            margin-top: 15px;
            display: none;
        }

        .error.show {
            display: block;
        }
	/* BMI Formula Explanation Section Styling */
.bmi-formula-explanation {
    margin: 50px; /* Space above this section */
    text-align: left; /* Align text within this section */
    border-top: 1px solid #eee; /* A subtle line above the section */
    padding-top: 30px; /* Padding above content after the line */
    padding-bottom: 20px; /* Padding below the content */
}

.bmi-formula-explanation h2 {
    color: #0056b3; /* Dark blue for main heading */
    margin-bottom: 15px;
    font-size: 1.8em;
    text-align: center; /* Center the main heading */
    font-weight: 600;
}

.bmi-formula-explanation p {
    line-height: 1.6; /* Improve readability for paragraphs */
    margin-bottom: 15px;
    color: #333; /* Standard text color */
}

.bmi-formula-explanation h3 {
    color: #333; /* Slightly darker for sub-headings */
    font-size: 1.4em;
    margin-top: 25px; /* Space above sub-headings */
    margin-bottom: 15px;
    font-weight: 600;
}

/* Styling for the actual formula code block */
.bmi-formula-explanation pre {
    background-color: #eef; /* Light blue background for code */
    border: 1px solid #ddd; /* Subtle border */
    border-left: 5px solid #007bff; /* Highlight left border */
    padding: 15px 20px;
    margin: 20px 0; /* Space above and below code block */
    overflow-x: auto; /* Allow horizontal scrolling for long lines */
    border-radius: 5px; /* Rounded corners */
    font-family: 'Courier New', Courier, monospace; /* Monospace font for code */
    font-size: 1.1em;
    color: #333;
}

/* Styling for inline code snippets (e.g., 'kg', 'm') */
.bmi-formula-explanation code {
    font-family: 'Courier New', Courier, monospace;
    color: #c7254e; /* Reddish color for inline code */
    background-color: #f9f2f4; /* Light pink background */
    padding: 2px 4px;
    border-radius: 3px;
}

/* Styling for the ordered list (steps) */
.bmi-formula-explanation ol {
    margin-left: 20px; /* Indent the list */
    padding-left: 0;
    list-style-type: decimal; /* Numbered list */
    color: #333;
}

.bmi-formula-explanation ol li {
    margin-bottom: 10px; /* Space between list items */
    line-height: 1.5;
}

.bmi-formula-explanation ol li strong {
    color: #007bff; /* Blue for strong text in list items */
}

.bmi-formula-explanation ol li em {
    display: block; /* Make example text appear on new line */
    font-size: 0.9em;
    color: #777; /* Lighter color for examples */
    margin-top: 5px; /* Space above example text */
}

/* Styling for the general 'note' paragraph */
.bmi-formula-explanation p.note {
    font-size: 0.95em;
    color: #777;
    margin-top: 25px; /* More space above the note */
    font-style: italic; /* Italicize the note */
    text-align: center; /* Center the note */
}

/* Responsive adjustments for smaller screens */

@media (max-width: 768px) {
    .bmi-formula-explanation {
        padding-left: 15px;
        padding-right: 15px;
    }

    .bmi-formula-explanation h2 {
        font-size: 1.6em;
    }

    .bmi-formula-explanation h3 {
        font-size: 1.2em;
    }

    .bmi-formula-explanation pre {
        padding: 10px 15px;
        font-size: 1em;
    }

    .bmi-formula-explanation ol {
        margin-left: 15px;
    }

.calculator-container {
                flex-direction: column;
            }
            
            h1 {
                font-size: 2.2rem;
            }
            
            .bmi-value {
                font-size: 3rem;
            }
            
           
    

.footer {
            text-align: center;
            padding: 20px !important;
            background: #f8f9ff;
            color: #666;
            font-size: 0.9rem;
            border-top: 1px solid #eee;
        }
}
        @media (max-width: 480px) {
			 header {
                padding: 15px 20px;
            }
			
		}
        
		
    </style>