/* ================= RESET ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #f4f6fb;
    color: #333;
}

/* ================= HEADER ================= */
.site-header {
    background: #2c3e50;
    height: 80px;
    display: flex;
    align-items: center;
}

.nav-container {
    max-width: 1600px;
    margin: auto;
    padding: 0 20px;
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo img {
    height: 48px;
    width: auto;
    display: block;
}

/* ================= NAV MENU ================= */
.nav-menu {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 12px;
}

/* Dropdown wrapper */
.dropdown {
    height: 100%;
    display: flex;
    align-items: center;
}

/* ================= MENU ITEMS ================= */
.dropbtn,
.nav-link {
    height: 100%;
    padding: 0 14px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 18px;
    font-weight: 500;
    color: #ffffff;
    line-height: normal;

    background: none;
    border: none;
    cursor: pointer;
    text-decoration: none;
}
/* Hover */
.dropbtn:hover,
.nav-link:hover {
    text-decoration: underline;
}

/* Remove button default style */
.dropbtn {
    appearance: none;
    -webkit-appearance: none;
}

/* Arrow via CSS (NO vertical shift) */
.dropbtn::after {
    content: "▾";
    font-size: 12px;
    margin-left: 6px;
}

/* ================= DROPDOWN ================= */
.dropdown-content {
    display: none;
    position: absolute;
    top: 80px;                 /* exactly below header */
    min-width: 190px;
    background: #ffffff;
    border-radius: 6px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    z-index: 1000;
}

.dropdown-content a {
    display: block;
    padding: 10px 14px;
    font-size: 14px;
    color: #333;
    text-decoration: none;
}
.dropdown-content a:hover {
    background: #f1f5f9;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* ================= HAMBURGER ================= */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 24px;
    height: 3px;
    background: #fff;
}

/* ================= MOBILE MENU (FINAL – WORKING) ================= */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;          /* yahin se size control */
    max-width: 300px;
    height: 100vh;
    background: #2c3e50;
    z-index: 9999;
    padding: 20px;
    overflow-y: auto;
    transition: right 0.3s ease-in-out;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu a {
    display: block;
    padding: 8px 0;
    color: #fff;
    text-decoration: none;
}

.mobile-menu strong {
    color: #9ecbff;
}

.mobile-menu hr {
    border: none;
    border-top: 1px solid #445;
    margin: 12px 0;
}

.menu-close {
    font-size: 26px;
    color: #fff;
    text-align: right;
    cursor: pointer;
    margin-bottom: 15px;
}

.hamburger {
    z-index: 10000;
}

body.menu-open .hamburger {
    display: none;
}

/* ================= MAIN CONTAINER ================= */
.container {
    max-width: 1600px;
    margin: 40px auto;
    padding: 20px;
}

/* ================= CALCULATOR BOX ================= */
.calculator-box {
    max-width: 700px;
    margin: auto;
    background: #ffffff;
    padding: 25px;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.calculator-box h1 {
    text-align: center;
    margin-bottom: 6px;
}

.subtitle {
    text-align: center;
    color: #555;
    margin-bottom: 20px;
}

/* ================= FORM ================= */
.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
}

input,
select {
    width: 100%;
    height: 46px;
    padding: 10px 14px;
    font-size: 15px;
    border: 1px solid #d1d5ff;
    border-radius: 8px;
}

input:focus,
select:focus {
    outline: none;
    border-color: #4f46e5;
}

/* Feet + Inches */
#feetBox {
    display: flex;
    gap: 10px;
}

#feetBox input {
    flex: 1;
}

/* ================= BUTTON ================= */
.calculator-box button {
    width: 100%;
    height: 48px;
    background: #4f46e5;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
}

.calculator-box button:hover {
    background: #4338ca;
}

/* ================= RESULT ================= */
#result {
    margin-top: 15px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
}

/* ================= CONTENT SECTION ================= */
.content-section {
    max-width: 1400px;
    margin: 50px auto 0;
}

.content-section h2 {
    margin-top: 25px;
    margin-bottom: 8px;
}

.content-section p {
    line-height: 1.7;
    color: #444;
}

.content-section ul {
    margin-left: 18px;
}

/* ================= FOOTER ================= */
.site-footer {
    background: #ffffff;
    border-top: 1px solid #e5e5e5;
    margin-top: 60px;
}

.footer-inner {
    max-width: 1600px;
    margin: auto;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.footer-links a {
    margin-left: 12px;
    color: #333;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* ================= INFO PAGES ================= */
.page-content {
    max-width: 900px;
    margin: 60px auto;
    padding: 0 20px;
}

.page-content h1 {
    font-size: 36px;
    margin-bottom: 20px;
}

.page-content h2 {
    font-size: 24px;
    margin-top: 35px;
    margin-bottom: 10px;
}

.page-content p {
    font-size: 17px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 15px;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
    .nav-menu {
        display: none;
    }

    .hamburger {
        display: flex;
    }

}
/* BMI Calculator Cards Grid */
.bmi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.bmi-card {
    display: block;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bmi-card h3 {
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 18px;
}

.bmi-card p {
    color: #555;
    font-size: 14px;
    line-height: 1.6;
}

.bmi-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

/* FAQ Section Styling */
.content-section h2 {
    margin-top: 40px;
}

.content-section h3 {
    margin-top: 20px;
    color: #2c3e50;
}

.content-section p {
    margin-bottom: 15px;
    line-height: 1.7;
}

/* ================= BMI RANGE BAR ================= */
.bmi-bar {
    display: flex;
    margin-top: 8px;
    border-radius: 6px;
    overflow: hidden;
}

.bmi-bar span {
    flex: 1;
    text-align: center;
    padding: 6px 0;
    font-size: 12px;
    color: #fff;
}

.bmi-bar .underweight { background: #4fa3ff; }
.bmi-bar .normal      { background: #4caf50; }
.bmi-bar .overweight  { background: #ff9800; }
.bmi-bar .obese       { background: #f44336; }

.bmi-bar .active {
    outline: 3px solid #000;
}

/* ================= BMI POINTER ================= */
.bmi-pointer {
    position: relative;
    font-size: 14px;
    font-weight: bold;
    color: #000;
    margin-top: 6px;
    transform: translateX(0);
}


