/* 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) - Kept for reference if you switch back */
    --header-bg-start-dark: #4a00e0;
    --header-bg-end-dark: #8e2de2;

    /* NEW LIGHTER HEADER COLORS for all pages */
    --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 {
    background: linear-gradient(to right, var(--header-bg-start-light), var(--header-bg-end-light)); /* Light color scheme */
    padding: 15px 0;
    color: var(--header-text-light); /* White text */
    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); /* Link text color */
}

.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); /* Navigation link color */
    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(--white); /* Underline in white */
    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); /* White 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 */
}
/* clothing-size.css - Page-specific styles for the Clothing Size Converter */

/* No need for * { margin:0;...} or body styles here, as they are in style.css */

/* Re-styled the main container for the clothing converter */
.clothing-converter-section { /* Changed from .container to be more specific */
    background: #fff;
    padding: 30px 25px;
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin: 0 auto 40px auto; /* Center it and add space below */
}

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 clothing size page */
    height: 45px;
    vertical-align: middle;
    margin-right: 12px;
}

.converter-description { /* Changed from .aim for clarity */
    font-size: 1rem;
    color: #555;
    margin-bottom: 25px;
}

.converter-box {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

select {
    padding: 12px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    width: 100%;
    /* Add basic styling for consistent appearance */
    -webkit-appearance: none; /* Remove default arrow on WebKit browsers */
    -moz-appearance: none;    /* Remove default arrow on Firefox */
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23007bff%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13.6-6.4H18.9c-7.7%200-13.6%204.8-13.6%206.4s-1.4%207.2%200%208.8l127.4%20128c5.4%205.4%2014.2%205.4%2019.6%200l127.4-128c1.4-1.6%200-7.2%200-8.8z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
    padding-right: 30px; /* Make space for the custom arrow */
}

select: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: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    width: 100%;
}

button:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

.result-box {
    text-align: left;
    margin-top: 10px;
    background: #f5f5f5;
    padding: 15px;
    border-radius: 8px;
    font-size: 1rem;
    color: #222;
    white-space: pre-wrap;
    word-break: break-word;
}

/* Info Sections (ensure consistency with other pages) */
.info-section {
    max-width: 900px;
    margin: 40px auto; /* Consistent margin for sections */
    background-color: #ffffff;
    padding: 30px; /* Consistent padding */
    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 {
    font-size: 26px; /* Consistent heading size */
    color: #2c3e50;
    margin-bottom: 15px;
}

.info-section p, .info-section ul, .info-section li {
    font-size: 17px; /* Consistent font size */
    color: #333;
    text-align: justify;
    line-height: 1.8; /* Consistent line height */
}

.info-section ul {
    padding-left: 25px; /* Consistent padding for lists */
}

/* Responsive adjustments for clothing converter specific elements */
@media (max-width: 500px) {
    .clothing-converter-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;
    }

    .converter-description {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }

    select, button {
        font-size: 0.95rem;
        padding: 10px;
    }

    .result-box {
        font-size: 0.95rem;
    }

    .info-section {
        padding: 20px;
        margin: 20px auto;
    }

    .info-section h2 {
        font-size: 22px;
    }

    .info-section p, .info-section ul, .info-section li {
        font-size: 15px;
    }
}

/* --- 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;
    }
}