/* =========================
   GLOBAL RESET
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #f4f7fb;
    color: #222;
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: auto;
    padding: 0 20px;
}

.page-wrapper {
    padding: 40px 0;
    contain: layout style;
}

h1, h2, h3 {
    color: #0a4fa3;
    margin-bottom: 12px;
}

p {
    margin-bottom: 12px;
}

/* =========================
   HEADER
========================= */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    position: relative;
    height: 70px;
}

.logo-area img {
    width: 150px;
    height: auto;
    display: block;
}

.site-nav {
    display: flex;
    gap: 25px;
}

.site-nav a {
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    color: #222;
    transition: 0.3s;
}

.site-nav a:hover {
    color: #ff6600;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: #222;
}

/* =========================
   HERO
========================= */
.hero-section {
    text-align: center;
    margin-bottom: 15px;
}

.hero-section h1 {
    font-size: 26px;
}

.hero-section p {
    color: #555;
}

/* =========================
   CONVERTER / TOOL BOX
========================= */
.converter-wrapper,
.tool-box {
    text-align: center;
    max-width: 750px;
    margin: 20px auto;
    padding: 25px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.07);
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.input-box {
    flex: 1 1 280px;
    display: flex;
    flex-direction: column;
}

.input-box label {
    font-weight: 600;
    margin-bottom: 6px;
    color: #0a4fa3;
}

.input-box input {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.input-box input:focus {
    border-color: #0a4fa3;
    outline: none;
    box-shadow: 0 0 0 3px rgba(10,79,163,0.1);
}

/* =========================
   BUTTONS
========================= */
.btn-group {
    flex: 0 0 100%;
    text-align: center;
    margin-top: 10px;
}

#copyBtn,
.tool-box button,
.conversion-table button,
.primary-btn,
.chart-btn {
    padding: 12px 22px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: 0.3s ease;
}

#copyBtn {
    width: 200px;
    background: #28a745;
    color: #fff;
}

#copyBtn:hover,
.tool-box button:hover,
.conversion-table button:hover,
.primary-btn:hover,
.chart-btn:hover {
    background: #1e7e34;
    transform: translateY(-1px);
}

.primary-btn {
    background: #28a745;
    color: #fff;
}

.chart-btn {
    padding: 14px 26px;
    font-size: 15px;
}

/* =========================
   CONVERSION TABLE
========================= */
.table-wrapper {
    overflow-x: auto;
    margin-top: 25px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.04);
}

.conversion-table {
    width: 100%;
    border-collapse: collapse;
}

.conversion-table th,
.conversion-table td {
    padding: 12px;
    text-align: center;
    font-size: 14px;
}

.conversion-table thead th {
    position: sticky;
    top: 0;
    background: #0a4fa3;
    color: #fff;
    font-weight: 600;
}

.conversion-table tbody tr:nth-child(even) {
    background: #f4f7fb;
}

.conversion-table tbody tr:hover {
    background: #e1f5fe;
}

.conversion-table button {
    padding: 6px 12px;
    background: #28a745;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: 0.3s;
}

#searchInput,
#searchCalInput {
    width: 100%;
    max-width: 280px;
    margin: 15px 0 25px;
    padding: 10px 12px;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
}

#loadMoreBtn,
#loadMoreCalBtn {
    display: block;
    margin: 20px auto;
    padding: 12px 25px;
    font-size: 15px;
    font-weight: 600;
    background: #ff9800;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

#loadMoreBtn:hover,
#loadMoreCalBtn:hover {
    background: #f57c00;
    transform: translateY(-1px);
}

/* =========================
   FOOTER
========================= */
.site-footer {
    background: #fff;
    color: #333;
    padding-top: 60px;
    margin-top: 60px;
    border-top: 1px solid #eee;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-col {
    flex: 1;
    min-width: 220px;
}

.footer-brand {
    flex: 1.5;
}

.footer-logo {
    max-width: 180px;
    margin-bottom: 15px;
}

.footer-desc {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

.footer-col h4 {
    margin-bottom: 15px;
    font-size: 16px;
    color: #0a4fa3;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #555;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
}

.footer-col ul li a:hover {
    color: #0a4fa3;
}

.footer-bottom {
    border-top: 1px solid #eee;
    margin-top: 40px;
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
    color: #777;
}

/* =========================
   SINGLE CONVERTER / RESULTS
========================= */
.single-converter {
    max-width: 600px;
    margin: 20px auto;
    flex-direction: column;
    align-items: center;
}

.result-box {
    width: 100%;
    text-align: center;
    margin-top: 15px;
}

.result {
    font-size: 18px;
    font-weight: 600;
    color: #0a4fa3;
}

/* =========================
   CONTACT PAGE
========================= */
.contact-section,
.contact-card,
.contact-form {
    padding: 20px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.06);
    max-width: 700px;
    margin: 30px auto;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 6px;
    color: #0a4fa3;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    font-size: 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0a4fa3;
    box-shadow: 0 0 0 3px rgba(10,79,163,0.1);
}

/* =========================
   MOBILE RESPONSIVENESS
========================= */
/* =========================
   SECONDARY BUTTON
========================= */
.secondary-btn {
    display: inline-block;
    padding: 12px 22px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    border: 2px solid #0a4fa3;
    background: #fff;
    color: #0a4fa3;
    text-decoration: none;
    transition: 0.3s ease;
}

.secondary-btn:hover {
    background: #0a4fa3;
    color: #fff;
    transform: translateY(-1px);
}

.chart-cta {
    text-align: center;
    margin: 20px 0;
}

.chart-btn {
    display: inline-block;
    background: #0a4fa3;
    color: #fff !important;
    text-decoration: none;
    border-radius: 8px;
}

.chart-btn:hover {
    background: #083d82;
    color: #fff;
}

@media (max-width: 768px) {
    .site-header {
        padding: 15px 20px;
    }

    .site-nav {
        display: none;
        flex-direction: column;
        gap: 0;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        z-index: 999;
        padding: 10px 0;
    }

    .site-nav.active {
        display: flex;
    }

    .site-nav a {
        padding: 12px 20px;
        border-bottom: 1px solid #f0f0f0;
    }

    .menu-toggle {
        display: flex;
    }

    /* Hamburger animation */
    .menu-toggle.open span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    .menu-toggle.open span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.open span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }
    .menu-toggle span {
        transition: 0.3s;
    }

    .converter-wrapper,
    .tool-box {
        flex-direction: column;
        padding: 15px;
        gap: 8px;
        margin: 10px auto;
    }

    .input-box {
        flex: 1 1 auto;
        width: 100%;
    }

    .btn-group {
        margin-top: 5px;
    }

    #copyBtn {
        width: 100%;
    }

    .footer-inner {
        flex-direction: column;
        gap: 30px;
    }

    .logo-area img {
        width: 150px;
    }

    .conversion-table th,
    .conversion-table td {
        font-size: 13px;
        padding: 8px;
    }

    #searchInput,
    #searchCalInput {
        max-width: 100%;
    }
}

/* =========================
   GLOBAL IMAGE
========================= */
img {
    max-width: 100%;
    height: auto;
    display: block;
}