/* BMI Calculator Styles */

/* SEO Content Styling */
.seo-content {
    margin-top: 50px;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    line-height: 1.7;
    color: #444;
}

.seo-content h2 {
    color: #2c3e50;
    margin: 30px 0 20px;
    font-size: 1.8rem;
    position: relative;
    padding-bottom: 10px;
}

.seo-content h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
}

.seo-content h3 {
    color: #34495e;
    margin: 25px 0 15px;
    font-size: 1.4rem;
}

.seo-content p {
    margin-bottom: 1.2em;
    font-size: 1.05rem;
    line-height: 1.7;
}

.seo-content ul, .seo-content ol {
    margin: 20px 0 20px 25px;
    padding: 0;
}

.seo-content li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.seo-content ul li:before {
    content: '•';
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.bmi-categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.bmi-category-item {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid var(--primary-color);
}

.bmi-category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.bmi-category-item h3 {
    color: var(--primary-color);
    margin-top: 0;
    display: flex;
    align-items: center;
    font-size: 1.2rem;
}

.bmi-category-item h3:before {
    content: '\f05a';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 10px;
    font-size: 1.1em;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.tip {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

.tip:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.tip h3 {
    color: var(--primary-color);
    margin-top: 0;
    display: flex;
    align-items: center;
    font-size: 1.1rem;
}

.tip h3 i {
    margin-right: 10px;
    font-size: 1.2em;
}

.faq {
    margin: 40px 0;
}

.faq h3 {
    color: #2c3e50;
    background: #f8f9ff;
    padding: 15px 20px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    margin-bottom: 0;
}

.faq h3:before {
    content: '\f059';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 10px;
    color: var(--primary-color);
}

.faq h3:hover {
    background: #f0f4ff;
}

.faq p {
    padding: 15px 20px 15px 45px;
    margin: 0;
    background: #fff;
    border-radius: 0 0 8px 8px;
    border-left: 2px solid #f0f4ff;
    border-right: 2px solid #f0f4ff;
    border-bottom: 2px solid #f0f4ff;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .seo-content {
        padding: 20px 15px;
    }
    
    .seo-content h2 {
        font-size: 1.6rem;
    }
    
    .seo-content h3 {
        font-size: 1.3rem;
    }
    
    .bmi-categories, .tips-grid {
        grid-template-columns: 1fr;
    }
}
.bmi-calculator-page {
    padding: 40px 0;
}

.bmi-calculator-container {
    background: #fff;
    border-radius: 15px;
    box-shadow: var(--box-shadow);
    padding: 30px;
    margin-bottom: 40px;
}

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

.calculator-inputs, .bmi-results {
    background: #f9faff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.bmi-results {
    background: #f0f4ff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.measurement-system {
    margin-bottom: 20px;
}

.measurement-toggle {
    display: flex;
    background: #e9ecef;
    border-radius: 30px;
    padding: 5px;
    margin-bottom: 20px;
}

.measurement-toggle button {
    flex: 1;
    border: none;
    background: none;
    padding: 10px 15px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.measurement-toggle button.active {
    background: var(--primary-color);
    color: white;
}

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

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-color);
}

.input-group input, .input-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: var(--transition);
}

.input-group input:focus, .input-group select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 107, 255, 0.2);
    outline: none;
}

.input-with-unit {
    position: relative;
}

.unit {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 14px;
}

.bmi-value {
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 15px 0;
    line-height: 1;
}

.bmi-category {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    padding: 8px 20px;
    border-radius: 20px;
    background: rgba(74, 107, 255, 0.1);
    color: var(--primary-color);
}

.bmi-scale {
    width: 100%;
    height: 20px;
    background: linear-gradient(90deg, 
        #4caf50, 
        #8bc34a, 
        #ffeb3b, 
        #ff9800, 
        #f44336);
    border-radius: 10px;
    margin: 20px 0;
    position: relative;
    overflow: hidden;
}

.bmi-indicator {
    position: absolute;
    top: -10px;
    width: 2px;
    height: 40px;
    background: #000;
    transform: translateX(-50%);
    transition: left 0.5s ease;
}

.bmi-indicator::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 10px solid #000;
}

.bmi-scale-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 5px;
}

.healthy-range {
    margin-top: 15px;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* BMI Categories */
.bmi-category.underweight { color: #2196f3; background: rgba(33, 150, 243, 0.1); }
.bmi-category.normal { color: #4caf50; background: rgba(76, 175, 80, 0.1); }
.bmi-category.overweight { color: #ffc107; background: rgba(255, 193, 7, 0.1); }
.bmi-category.obese { color: #ff9800; background: rgba(255, 152, 0, 0.1); }
.bmi-category.extremely-obese { color: #f44336; background: rgba(244, 67, 54, 0.1); }

/* Responsive */
@media (max-width: 768px) {
    .calculator-grid {
        grid-template-columns: 1fr;
    }
    
    .bmi-value {
        font-size: 3rem;
    }
}
