/* style.css - Global Styles for Header, Footer, and general layout */

/* --- ROOT VARIABLES --- */
:root {
    --primary-color: #3498db;
    --secondary-color: #f8f9fa;
    --text-color: #333;
    --light-text: #777;
    --border-color: #ddd;
    --white: #fff;
    --light-gray: #f5f5f5;

    /* Original Header Colors (Purple) */
    --header-bg-start-dark: #4a00e0;
    --header-bg-end-dark: #8e2de2;

    /* NEW LIGHTER HEADER COLORS (from footer.PNG / general light scheme) */
    --header-bg-start-light: #6dd5ed; /* Lighter blue */
    --header-bg-end-light: #2193b0;   /* Slightly darker blue */
    --header-text-light: #fff; /* White text for contrast */


    /* Global Container Width */
    --container-max-width: 1400px;
}

/* --- BASE STYLES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fa; /* Light background for the overall page */
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh; /* Ensure body takes full viewport height */
    display: flex;
    flex-direction: column; /* Allows footer to stick to bottom if content is short */
}

/* Global Container for content centering and max-width */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px; /* Horizontal padding for content within the container */
}

/* --- HEADER STYLES --- */
.main-site-header {
    /* Using lighter colors for this specific request */
    background: linear-gradient(to right, var(--header-bg-start-light), var(--header-bg-end-light));
    padding: 15px 0;
    color: var(--header-text-light); /* Apply light text color */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    width: 100%;
}

.header-inner-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-logo-container a {
    text-decoration: none;
    display: flex;
    align-items: center;
    color: var(--header-text-light); /* Ensure text color is light for the link */
}

.header-brand-logo {
    height: 55px; /* Slightly larger logo */
    width: auto;
    vertical-align: middle;
}

.header-brand-title {
    font-size: 2.0rem; /* Slightly larger title */
    font-weight: 700;
    letter-spacing: 0.8px;
    white-space: nowrap;
}

/* Main Navigation */
.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
}

.main-navigation ul li a {
    text-decoration: none;
    color: var(--header-text-light); /* Light text for navigation */
    font-size: 1.05rem;
    font-weight: 500;
    padding: 5px 0;
    position: relative;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.main-navigation ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--header-text-light); /* Underline color matching text */
    transition: width 0.3s ease;
}

.main-navigation ul li a:hover::after,
.main-navigation ul li a.active::after {
    width: 100%;
}

.main-navigation ul li a:hover,
.main-navigation ul li a.active {
    color: var(--white); /* Slightly lighter on hover/active */
    transform: translateY(-1px);
}

/* --- MAIN PAGE CONTENT WRAPPER --- */
.page-main-content {
    flex: 1; /* Allows this section to grow and push footer to bottom */
    padding-top: 40px; /* Space below header */
    padding-bottom: 40px; /* Space above footer */
}

/* bmi.css - Page-specific styles for the BMI Calculator */

/* No need for * { margin:0;...} or body styles here, as they are in style.css */

/* Re-styled the main container for the BMI calculator */
.bmi-calculator-section {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    width: 100%; /* Make it responsive */
    max-width: 400px; /* Set a max-width for the calculator box */
    margin: 0 auto 40px auto; /* Center it and add space below */
    text-align: center;
}

h1 {
    font-size: 1.8rem; /* Slightly larger heading for the tool */
    margin-bottom: 10px;
    color: #333;
    display: flex; /* For icon alignment */
    align-items: center;
    justify-content: center;
}

.icon-small {
    width: 45px; /* Adjusted icon size for the BMI page */
    height: 45px;
    vertical-align: middle;
    margin-right: 12px;
}

.bmi-description { /* Changed class from p for better targeting */
    font-size: 1rem;
    color: #666;
    margin-bottom: 25px;
}

label {
    display: block; /* Each label on its own line */
    text-align: left;
    margin-top: 15px;
    margin-bottom: 5px;
    font-weight: 600;
    color: #555;
    font-size: 0.95rem;
}

input[type="number"] {
    padding: 12px;
    font-size: 1rem;
    margin: 0 0 15px 0; /* Adjust margin to be consistent */
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 8px;
}

input[type="number"]:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

button {
    padding: 12px 20px;
    font-size: 1.1rem;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    width: 100%; /* Make button full width */
    margin-top: 10px;
}

button:hover {
    background-color: #218838;
    transform: translateY(-2px);
}

#result {
    margin-top: 25px;
    font-size: 1.1rem;
    color: #333;
    font-weight: 600;
    background-color: #e9f5ee; /* Light green background for result */
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #c8e6c9;
}

/* Info Sections (re-used from previous project, ensure consistency) */
.info-section {
    background-color: #f9f9ff;
    padding: 30px; /* Slightly more padding for info sections */
    margin: 40px auto; /* Top/bottom margin to separate sections */
    max-width: 900px; /* Max-width for info sections */
    border-radius: 14px; /* Consistent border-radius */
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1); /* Consistent shadow */
    text-align: left; /* Ensure text within sections is left-aligned */
}

.info-section h2 {
    color: #00695c;
    font-size: 26px;
    margin-bottom: 15px; /* Increased margin for headings */
}

.info-section p, .info-section li {
    color: #333;
    font-size: 17px;
    line-height: 1.8; /* Consistent line height */
    text-align: justify;
}

.info-section ol {
    padding-left: 25px; /* Slightly more padding for ordered lists */
}

/* Responsive adjustments for BMI calculator specific elements */
@media (max-width: 480px) {
    .bmi-calculator-section {
        padding: 20px;
        margin: 0 auto 30px auto;
    }

    h1 {
        font-size: 1.6rem;
        flex-direction: column; /* Stack icon and text on very small screens */
        gap: 5px;
    }

    .icon-small {
        margin-right: 0;
        width: 40px;
        height: 40px;
    }

    .bmi-description {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }

    input[type="number"], button {
        font-size: 0.95rem;
        padding: 10px;
    }

    #result {
        font-size: 1rem;
    }
}

/* --- FOOTER STYLES --- */
.site-footer {
    background-color: #2c3e50; /* Dark blue from footer.PNG */
    color: white;
    padding: 40px 0 20px;
    width: 100%;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-section {
    flex: 1;
    min-width: 200px;
}

.footer-logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.footer-brand-logo {
    height: 40px;
    width: auto;
}

.footer-brand-title {
    font-size: 1.5rem;
    font-weight: 600;
}

.about-us-footer p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.7);
}

.footer-section h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 5px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

/* --- RESPONSIVE STYLES --- */

/* Header Responsive */
@media (max-width: 992px) {
    .header-inner-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .main-navigation ul {
        justify-content: center;
        flex-wrap: wrap;
        gap: 20px;
    }

    .header-brand-title {
        font-size: 1.8rem; /* Adjusted for smaller screens */
    }

    .header-brand-logo {
        height: 50px; /* Adjusted for smaller screens */
    }
}

@media (max-width: 768px) {
    .header-inner-content {
        padding: 0 15px;
    }

    .header-brand-logo {
        height: 45px; /* Further adjusted for very small screens */
    }

    .header-brand-title {
        font-size: 1.6rem;
    }

    .main-navigation ul li a {
        font-size: 0.9rem;
        padding: 3px 0;
    }

    /* Footer Responsive */
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-section {
        min-width: unset;
        width: 100%;
        margin-bottom: 20px;
    }

    .footer-section h3 {
        text-align: center;
    }

    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-logo-container {
        justify-content: center;
    }
}

