/* General Styles */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f9;
    color: #333;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Header Styles */
header {
    background-color: #2c3e50;
    color: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .logo {
    display: flex;
    align-items: center;
}

header .logo img {
    height: 40px;
    margin-right: 10px;
}

header .logo span {
    font-size: 24px;
    font-weight: 600;
}

/* Desktop Menu Styles */
header .desktop-menu {
    display: flex;
    align-items: center;
}

header .desktop-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

header .desktop-menu ul li {
    margin-left: 25px;
}

header .desktop-menu ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
}

header .desktop-menu ul li a:hover {
    color: #1abc9c;
}

/* Mobile Menu Styles */
header .mobile-menu {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

header .nav-menu {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 250px;
    height: 100%;
    background-color: #2c3e50;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    transform: translateX(100%);
    z-index: 1001;
}

header .nav-menu.active {
    display: block;
    transform: translateX(0);
}

header .nav-menu ul {
    flex-direction: column;
    padding: 60px 20px 20px;
    margin: 0;
    list-style-type: none; /* Remove bullets/dots */
}

header .nav-menu ul li {
    margin: 15px 0;
    text-align: left;
    list-style-type: none; /* Ensure no bullets/dots */
}

header .nav-menu ul li a {
    font-size: 18px;
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

header .nav-menu ul li a:hover {
    color: #1abc9c;
}

header .nav-menu .close-icon {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
    z-index: 1002;
}

/* Main Content Styles */
main {
    padding: 40px 0;
}

.calculator-container {
    max-width: 400px;
    margin: 20px auto;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #2c3e50;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
}

input:focus {
    border-color: #2c3e50;
    outline: none;
}

button {
    width: 100%;
    padding: 12px;
    background-color: #2c3e50;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #34495e;
}

.result {
    margin-top: 20px;
    padding: 15px;
    background-color: #e9f5e9;
    border: 1px solid #c3e6c3;
    border-radius: 5px;
    text-align: center;
    font-size: 18px;
    color: #155724;
}

.result.error {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

/* Additional Content Section */
.additional-content, .second-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.additional-content h2, .second-container h2 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.additional-content p, .second-container p {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
}

/* Footer Styles */
footer {
    background-color: #2c3e50;
    color: #fff;
    text-align: center;
    padding: 15px 0;
    margin-top: 40px;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    header .desktop-menu {
        display: none;
    }

    header .mobile-menu {
        display: block;
    }

    .calculator-container {
        width: 85%;
        max-width: 300px;
        padding: 15px;
        margin: 10px auto;
    }

    h1 {
        font-size: 18px;
    }

    .form-group {
        margin-bottom: 10px;
    }

    label {
        font-size: 14px;
    }

    input {
        font-size: 12px;
        padding: 6px;
    }

    button {
        font-size: 12px;
        padding: 8px;
    }

    .result {
        font-size: 14px;
        padding: 8px;
    }

    .additional-content, .second-container {
        padding: 15px;
    }

    .additional-content h2, .second-container h2 {
        font-size: 20px;
    }

    .additional-content p, .second-container p {
        font-size: 14px;
    }
}

/* Base Styles */
body {
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

/* Sidebar Styles */
.sidebar {
    width: 250px; /* Sidebar width reduced */
    background-color: #ddd;
    padding: 10px;
    box-sizing: border-box;
    height: calc(100vh - 150px); /* Adjusted height to fit within the page */
    position: fixed;
    top: 80px; /* Adjusted top position to stay below header */
    overflow-y: auto; /* Enable scrolling if content overflows */
    z-index: 100; /* Ensure sidebar stays above other content */
    transform: none; /* Ensure no scaling is applied */
}

.sidebar.left {
    left: 10px; /* Left sidebar position with some margin */
}

.sidebar.right {
    right: 10px; /* Right sidebar position with some margin */
}

/* Main Content Styles */
.content {
    flex: 1;
    padding: 20px;
    margin-left: 270px; /* Adjusted margin for left sidebar */
    margin-right: 270px; /* Adjusted margin for right sidebar */
    box-sizing: border-box;
    min-height: 100vh; /* Ensure content takes full height */
    position: relative; /* Ensure content stays in place */
    z-index: 1; /* Ensure content stays below sidebar */
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .sidebar {
        width: 200px; /* Reduce sidebar width for smaller screens */
    }

    .content {
        margin-left: 220px; /* Adjust offset for left sidebar */
        margin-right: 220px; /* Adjust offset for right sidebar */
    }
}

@media (max-width: 992px) {
    .sidebar {
        width: 180px; /* Further reduce sidebar width */
    }

    .content {
        margin-left: 200px; /* Adjust offset for left sidebar */
        margin-right: 200px; /* Adjust offset for right sidebar */
    }
}

@media (max-width: 768px) {
    .sidebar {
        display: none; /* Hide sidebars on mobile */
    }

    .content {
        margin-left: 0; /* Remove offset for left sidebar */
        margin-right: 0; /* Remove offset for right sidebar */
    }
}



.faq-container {
    max-width: 700px;
    margin: 20px auto;
    padding: 10px;
}

.faq-item {
    border: 1px solid #ccc;
    margin: 10px 0;
    border-radius: 5px;
    overflow: hidden;
}

.question {
    background: #007bff;
    color: white;
    padding: 12px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.question .arrow {
    transition: transform 0.3s ease-in-out;
}

.answer {
    display: none;
    padding: 10px;
    background: #f8f9fa;
    color: #333;
    font-size: 14px;
}
