/* General Styles */
body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fa;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

/* Header Styles (Unchanged) */
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;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

/* Main Content */
main {
    margin-top: 100px; /* Matches header height */
    padding: 20px;
    min-height: calc(100vh - 100px - 200px); /* Adjust for header and footer */
    box-sizing: border-box;
}

section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Time Zone Converter Section */
.converter-header {
    text-align: center;
    margin-bottom: 20px;
}

.converter-header h2 {
    font-size: 32px;
    color: #062f66;
    margin-bottom: 10px;
    font-weight: 600;
}

.converter-header h2 i {
    margin-right: 10px;
}

.converter-header p {
    font-size: 16px;
    color: #666;
}

.converter-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: nowrap; /* Horizontal layout on desktop */
    width: 100%;
}

.input-card, .result-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 450px;
    flex: 1;
    box-sizing: border-box;
}

.input-card h3, .result-card h3 {
    font-size: 20px;
    color: #062f66;
    margin-bottom: 15px;
    text-align: center;
}

.input-card h3 i, .result-card h3 i {
    margin-right: 8px;
}

.time-inputs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.time-inputs input {
    width: 60px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    text-align: center;
}

.time-inputs input:focus {
    border-color: #062f66;
    outline: none;
}

.time-inputs span {
    font-size: 18px;
    color: #333;
}

.time-inputs select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    color: #062f66;
    margin-bottom: 8px;
}

.form-group label i {
    margin-right: 6px;
}

.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 15px;
    background: #fff;
}

.form-group select:focus {
    border-color: #062f66;
    outline: none;
}

#convertBtn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px;
    background: #062f66;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

#convertBtn i {
    margin-right: 8px;
}

#convertBtn:hover {
    background: #094b9e;
}

.result-display {
    text-align: center;
    padding: 20px;
    background: #f0f4f8;
    border-radius: 8px;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.result-display p {
    font-size: 18px;
    color: #000000;
    margin: 0;
    font-weight: 500;
}

/* Footer Styles (Unchanged) */
footer {
    background-color: #062f66;
    color: white;
    padding: 30px 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
}

.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;
        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 on mobile */
        padding: 15px;
    }

    section {
        padding: 15px;
    }

    .converter-header h2 {
        font-size: 24px;
    }

    .converter-header p {
        font-size: 14px;
    }

    .converter-container {
        flex-direction: column; /* Stack vertically on mobile */
        gap: 15px;
        width: 100%;
    }

    .input-card, .result-card {
        max-width: 100%;
        padding: 15px;
    }

    .input-card h3, .result-card h3 {
        font-size: 18px;
    }

    .time-inputs input {
        width: 50px;
        padding: 8px;
        font-size: 14px;
    }

    .time-inputs select {
        padding: 8px;
        font-size: 14px;
    }

    .form-group label {
        font-size: 13px;
    }

    .form-group select {
        padding: 10px;
        font-size: 14px;
    }

    #convertBtn {
        padding: 10px;
        font-size: 14px;
    }

    .result-display {
        padding: 15px;
        min-height: 50px;
    }

    .result-display p {
        font-size: 16px;
    }

    /* Footer */
    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-middle {
        margin-bottom: 20px;
    }

    .footer-middle h3 {
        margin-left: 0;
    }

    .footer-middle ul {
        margin-left: 0;
    }
}