body {
    font-family: 'arial', sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #ffffff;
}

.container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    padding: 10px;
    margin: 0 auto;
    max-width: 1180px;
    box-sizing: border-box;
    border-radius: 10px;
    background-color: #ffffff;
}

.main-content {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 10px;
    border-radius: 10px;
    background-color: #ffffff;
}

.section {
    padding: 20px;
    font-size: 15px;
    max-width: 680px;
    background-color: #ffffff;
    border-radius: 10px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    margin-top: 20px;
    color: #4A4A4A;
    line-height: 1.9;
}

.calculator {
    max-width: 650px;
    padding: 50px;
    border-radius: 10px;
    background-color: #ffffff;
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.toggle-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.toggle-buttons button {
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: #888;
    font-weight: bold;
    background-color: #ffffff;
    border-radius: 8px;
}

.toggle-buttons .active {
    background-color: #e6f4ea;
    color: #4CAF50;
}

@media (width: 600px) {
    .toggle-buttons button {
        flex: 1 1 auto;
        max-width: none;
    }
}


.about {
    padding: 20px;
    font-size: 15px;
    font-family: 'arial', sans-serif;
    background-color: #ffffff;
    border-radius: 10px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    margin-top: 20px;
    color: #4A4A4A;
    line-height: 1.8;
}

.calculator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-top: 30px;
}

.calculator-card {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: left;
    position: relative;
    transition: 0.3s ease-in-out;
    border: 1px solid #E5E4E2;
}

.calculator-card h3 {
    margin: 0 0 10px;
    font-size: 18px;
    color: #222;
}

.calculator-card p {
    font-size: 14px;
    color: #555;
    margin-bottom: 50px;
}

.calculator-card i {
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 40px;
    color: #555;
    transition: transform 0.3s ease-in-out;
}

.calculator-card:hover i {
    transform: scale(1.2);
}

.calculator-card a {
    display: block;
    text-decoration: none;
    color: inherit;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.calculator-card i {
    background: linear-gradient(to left, #4cd3aa, #5367ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 35px;
    transition: transform 0.3s ease-in-out;
}

@media (max-width: 768px) {
    .calculator-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

h1 {
    font-size: 25px;
    font-weight: bold;
    color: #4A4A4A;
    text-align: left;
    margin-top: 5px;
    margin-bottom: 15px;
    font-family: 'arial', sans-serif;
    line-height: 1.5;
}

h2 {
    font-size: 24px;
    font-weight: bold;
    color: #4A4A4A;
    text-align: left;
    margin-top: 5px;
    margin-bottom: 15px;
    font-family: 'arial', sans-serif;
    line-height: 1.5;
}

h3, h4, h5 {
    color: #4A4A4A !important;
}


.sidebar {
    flex: 0 0 400px;
    background-color: #ffffff;
    border-radius: 8px;
    padding: 20px;
    margin-top: 48px;
}

.sidebar-content {
    flex: 0 0 400px;
    background-color: #ffffff;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.sidebar-menu {
    background: #fff;
    padding: 0px;
    border-radius: 10px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
}

.sidebar-menu h3 {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    border-bottom: 1px solid #ddd;
    margin-bottom: 0;
    padding: 12px 10px;
    margin-top: -1px;
}

.sidebar-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu ul li {
    padding: 8px;
    border-bottom: 1px solid #ddd;
}

.sidebar-menu ul li:last-child {
    border-bottom: none;
}

.sidebar-menu ul li a {
    text-decoration: none;
    color: #4A4A4A;
    display: block;
    font-size: 14px;
    padding: 5px;
    transition: background-color 0.3s ease;
}

.sidebar-menu ul li:hover {
    background-color: #e6f4ea;
}

footer {
    background-color: #4CAF50;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: auto;
    width: 100%;
}

.hidden {
    display: none;
}

#toggleSchedule {
    margin-bottom: 10px;
    padding: 8px 12px;
    background: #e6f4ea;
    color: green;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease, color 0.3s ease, font-weight 0.3s ease;
}

#toggleSchedule:hover {
    background: #e6f4ea;
    color: green;
    font-weight: bold;
}

.loan-schedule {
    margin-top: 20px;
    padding: 0px;
    background: #ffffff;
    color: #4A4A4A;
    font-size: 14px;
}

.year-section {
    cursor: pointer;
    margin-bottom: 10px;
    padding: 10px;
    background: #ffffff;
    border-radius: 5px;
    position: relative;
    color: #ddd;
    font-size: 14px;
}

.year-header {
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #4A4A4A;
    font-size: 14px;
}

.arrow {
    font-size: 14px;
    transition: transform 0.3s ease;
    color: #4A4A4A;
}

.year-header:hover .arrow {
    color: #555;
}

.year-header.open .arrow {
    transform: rotate(180deg);
}

hr {
    border: 0;
    height: 1px;
    background: #ddd;
    margin: 10px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 5px;
    color: #4A4A4A;
    font-size: 12px;
}

th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
    color: #4A4A4A;
    font-size: 12px;
}

th {
    background: #ffffff;
    color: #000;
}

tr:nth-child(even) {
    background: #f5f5f5;
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
        padding: 5px;
        margin: 0 auto;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .main-content {
        width: 100%;
        margin: 0 auto;
        padding: 10px;
        border-radius: 10px;
        background-color: #ffffff;
        box-sizing: border-box;
    }

    .calculator {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        padding: 10px;
        border-radius: 10px;
        background-color: #ffffff;
        box-sizing: border-box;
    }

    .sidebar {
        width: 100%;
        margin: 20px auto;
        padding: 15px;
        box-sizing: border-box;
    }
}

.slider-container {
    margin-bottom: 50px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.label-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.label {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 0px;
}

.input-wrapper {
    display: flex;
    align-items: center;
    border-radius: 5px;
    background: #e6f4ea;
    width: 100px;
    justify-content: center;
    padding: 10px 10px;
}

.input-wrapper span {
    align-items: center;
    font-size: 15px;
    color: #4CAF50;
    text-align: right;
}

.input-wrapper input {
    color: #4CAF50;
    font-weight: bold;
    border: none;
    background: transparent;
    text-align: right;
    outline: none;
    width: 100%;
    font-size: 15px;
}

input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.result {
    margin-top: 20px;
    font-size: 14px;
}

input[type=range] {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 5px;
    background: #ddd;
    border-radius: 5px;
    transition: background 0.3s ease;
}

input[type=range]::-webkit-slider-runnable-track {
    height: 5px;
    background: #ddd;
    border-radius: 5px;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 15px;
    height: 15px;
    background: #4CAF50;
    border-radius: 50%;
    cursor: pointer;
    margin-top: -5px;
}

input[type=range]:focus::-webkit-slider-thumb {
    background: #45a049;
}

.result-card {
    max-width: 650px;
    background: #fff;
    padding: 0px;
    margin: auto;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px;
    border-bottom: 1px solid #ddd;
    line-height: 2;
    height: 50px;
}

.result-item:last-child {
    border-bottom: none;
}

.label {
    font-size: 14px;
    color: #555;
    text-align: left;
    flex: 1;
}

.result-number {
    font-size: 16px;
    font-weight: bold;
    color: #4CAF50;
    text-align: right;
}

.num-to-words {
    font-size: 12px;
    color: #888;
    margin-left: 8px;
}

.faq-container {
    max-width: 650px;
    margin: 20px auto;
}

.faq-item {
    border-bottom: 1px solid #ccc;
}

.faq-question {
    color: #333;
    padding: 25px 15px;
    background: #ffffff;
    cursor: pointer;
    border: none;
    width: 100%;
    text-align: left;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    touch-action: manipulation;
}

.faq-answer {
    padding: 10px 15px;
    display: none;
    background: #fff;
    font-size: 14px;
    line-height: 1.6;
    letter-spacing: 0.5px;
    margin-top: 0;
}

.faq-question:after {
    content: '\25B6';
    font-size: 12px;
    transition: transform 0.3s;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-item.active .faq-question:after {
    transform: rotate(90deg);
}
