/* Home Start */
body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Header Styles */
header {
    background-color: #062f66;
    color: white;
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.header-left h1 {
    margin: 0;
    font-size: 28px;
}
.header-left a{
    text-decoration: none;
    color: #fbff00;
    
    
    
}
.header-left a:hover{
    color: #ffffff;
    
}
.header-left p {
    margin: 5px 0 0;
    font-size: 14px;
    opacity: 0.9;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #ffcc00;
}

#search-bar {
    width: 300px;
    padding: 10px;
    border: none;
    border-radius: 4px;
    margin-top: 12px;
    margin-left: 20px;
}

.menu-toggle {
    display: none; /* Hidden by default on desktop */
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

/* Main Content */
main {
    margin-top: 100px;
}

section {
    padding: 50px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

h2 {
    font-size: 32px;
    margin-bottom: 10px;
    text-align: center;
    color: #062f66;
    font-weight: 700;
}

/* Tax Term Calculator Section */
#tax-term-calculator p {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 30px;
    font-size: 18px;
    color: #555;
}

.calculator-container {
    display: flex;
    justify-content: space-between;
    max-width: 1000px;
    margin: 0 auto;
    background: linear-gradient(135deg, #ffffff, #f0f4f8);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    gap: 30px;
    box-sizing: border-box;
}

.input-section {
    flex: 1;
    max-width: 400px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 16px;
    margin-bottom: 8px;
    color: #062f66;
    font-weight: 600;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
    background-color: #fff;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #062f66;
    outline: none;
}

#calculateBtn {
    display: block;
    width: 100%;
    padding: 14px;
    background: linear-gradient(90deg, #062f66, #094b9e);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, background 0.3s;
}

#calculateBtn:hover {
    background: linear-gradient(90deg, #094b9e, #062f66);
    transform: translateY(-2px);
}

.result-section {
    flex: 1;
    max-width: 500px;
}

.result-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.result-table thead th {
    background: linear-gradient(90deg, #062f66, #094b9e);
    color: white;
    font-size: 18px;
    font-weight: 600;
    padding: 12px;
    text-align: center;
}

.result-table tbody tr {
    border-bottom: 1px solid #eee;
}

.result-table tbody td {
    padding: 10px 15px;
    font-size: 15px;
    color: #333;
}

.result-table tbody td:first-child {
    font-weight: 600;
    color: #062f66;
    text-align: left;
}

.result-table tbody td:last-child {
    font-weight: 500;
    color: #094b9e;
    text-align: right;
}

/* Footer */
footer {
    background-color: #062f66;
    color: white;
    padding: 30px 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    box-sizing: border-box; /* Changed from flex-wrap for consistency */
}

/* Adjusted to match demo */
.footer-left, .footer-middle {
    flex: 1;
}

.footer-left h3 {
    margin: 5px 10px;
    font-size: 24px;
}

.footer-left p {
    margin: 5px 10px 10px;
    font-size: 14px;
}

.privacy a {
    color: #ffffff;
    font-size: 12px;
    text-decoration: none;
}

.privacy p {
    color: #ffffff;
    font-size: 13px;
}

.social-icons p {
    font-weight: bold;
    margin: 8px 50px 10px;
}

.social-icons i {
    font-size: 30px;
    color: #ffffff;
    margin: 0 5px;
    transition: color 0.3s ease;
}

.social-icons i:hover {
    color: #ffcc00;
}

.footer-middle h3 {
    margin: 0 0 15px;
    font-size: 20px;
    margin-left: 70px;
    border-bottom: 2px solid #ffffff;
    padding-bottom: 10px;
}

.footer-middle ul {
    list-style: none;
    padding: 0;
    margin-left: 70px;
}

.footer-middle ul li {
    margin-bottom: 10px;
}

.footer-middle ul li a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-middle ul li a:hover {
    color: #ffcc00;
}

/* Mobile Styles */
@media (max-width: 768px) {
    /* Header */
    .header-container {
        flex-direction: column;
            align-items: flex-start;
            padding: 10px 15px;
        }
    
        .header-left h1 {
            font-size: 24px;
        }
    
        .header-left p {
            font-size: 12px;
        }
    
        .header-right {
            width: 100%;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
    
        .menu-toggle {
            display: block;
        }
    
        nav {
            display: none; /* Hidden by default on mobile */
            width: 100%;
        }
    
        nav.active {
            display: block;
        }
    
        nav ul {
            flex-direction: column;
            padding: 10px 0;
        }
    
        nav ul li {
            margin: 10px 0;
            text-align: center;
        }
    
        #search-bar {
            width: 100%;
            margin-top: 10px;
        }

    /* Main Content */
    main {
        margin-top: 120px; /* Adjusted for header height */
        width: 100%;
        overflow-x: hidden;
    }

    section {
        padding: 20px 10px;
        max-width: 100%;
        box-sizing: border-box;
    }

    h2 {
        font-size: 24px;
        margin-top: 50px;
    }

    /* Tax Term Calculator Section */
    #tax-term-calculator p {
        font-size: 14px;
        padding: 0 10px;
    }

    .calculator-container {
        flex-direction: column;
        align-items: center;
        padding: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
        gap: 20px;
    }

    .input-section {
        max-width: 100%;
        width: 100%;
        padding: 0;
        box-sizing: border-box;
    }

    .form-group {
        margin-bottom: 15px;
        width: 100%;
    }

    .form-group label {
        font-size: 14px;
    }

    .form-group input,
    .form-group select {
        padding: 10px;
        font-size: 13px;
        width: 100%;
        box-sizing: border-box;
    }

    #calculateBtn {
        padding: 12px;
        font-size: 14px;
        width: 100%;
        box-sizing: border-box;
    }

    .result-section {
        max-width: 100%;
        width: 100%;
        padding: 0;
        box-sizing: border-box;
    }

    .result-table {
        width: 100%;
        table-layout: fixed; /* Fixed layout for better control */
        margin-top: 20px;
        font-size: 13px;
    }

    .result-table thead th {
        font-size: 14px;
        padding: 8px;
    }

    .result-table tbody td {
        font-size: 12px;
        padding: 8px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .result-table tbody td:first-child {
        text-align: left;
        width: 50%; /* Equal split for readability */
    }

    .result-table tbody td:last-child {
        text-align: right;
        width: 50%;
    }

    /* Footer - Aligned with Demo */
    .footer-container {
        flex-direction: column;
        text-align: center; /* Matches demo */
        padding: 10px; /* Matches demo */
    }

    .footer-left, .footer-middle {
        width: 100%;
        margin-bottom: 20px; /* Matches demo */
    }

    .footer-middle h3 {
        margin-left: 0; /* Matches demo */
    }

    .footer-middle ul {
        margin-left: 0; /* Matches demo */
    }

    .social-icons p {
        margin: 8px 0 10px; /* Adjusted for center alignment, matches demo simplicity */
    }

    .footer-left h3 {
        margin: 5px 0; /* Adjusted for center alignment */
    }

    .footer-left p {
        margin: 5px 0 10px; /* Adjusted for center alignment */
    }

    .privacy p, .privacy a {
        margin: 0; /* Simplified for mobile */
    }
}