/* Standard Reset & Core Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary-blue: #044C8C;
    --primary-blue-dark: #023360;
    --accent-cyan: #0099D8;
    --bg-light: #F8FAFC;
    --text-main: #1E293B;
    --text-muted: #475569;
    --border-color: #D1D5DB;
    --card-bg: #FFFFFF;
    --tool-header-bg: #F8FAFC;
    --btn-grey: #5A6268;
    --btn-grey-hover: #484E53;
}

html {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-light);
    -webkit-font-smoothing: antialiased;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.site-header {
    background-color: #FFFFFF;
    border-bottom: 2px solid var(--primary-blue);
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
    padding: 0.75rem 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.logo-text {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary-blue);
    letter-spacing: -0.5px;
}

.header-tag {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-cyan);
    background: #EFF6FF;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    border: 1px solid #BFDBFE;
}

/* Main Container */
.main-wrapper {
    max-width: 960px;
    width: 100%;
    margin: 0 auto;
    padding: 1.25rem 1rem;
    flex: 1;
}

/* Tool Hero Section */
.tool-section {
    background: #FFFFFF;
    border-radius: 8px;
    padding: 1.5rem 1rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #E2E8F0;
}

.tool-heading {
    text-align: center;
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 1.25rem;
    line-height: 1.35;
}

/* Exact Tool Card Box Matching Screenshot */
.tool-card {
    max-width: 650px;
    margin: 0 auto;
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
    overflow: hidden;
}

.tool-card-header {
    background-color: var(--tool-header-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: #2D3748;
}

.tool-card-body {
    padding: 1.25rem 1rem;
}

.radio-group {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.radio-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: #2D3748;
    cursor: pointer;
}

.radio-label input[type="radio"] {
    accent-color: var(--primary-blue);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.input-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.ref-input {
    flex: 1;
    padding: 0.55rem 0.75rem;
    font-size: 0.95rem;
    border: 1px solid var(--border-color);
    border-radius: 3px;
    color: #1E293B;
    outline: none;
    transition: border-color 0.15s ease;
}

.ref-input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 2px rgba(4, 76, 140, 0.15);
}

.batch-select {
    padding: 0.55rem 0.75rem;
    font-size: 0.95rem;
    border: 1px solid var(--border-color);
    border-radius: 3px;
    background-color: #FFFFFF;
    color: #1E293B;
    outline: none;
    cursor: pointer;
    min-width: 60px;
}

.search-btn {
    background-color: var(--btn-grey);
    color: #FFFFFF;
    border: none;
    border-radius: 4px;
    padding: 0.55rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.search-btn:hover {
    background-color: var(--btn-grey-hover);
}

/* Article Content Layout */
.content-article {
    background: #FFFFFF;
    border-radius: 8px;
    padding: 1.5rem 1.75rem;
    border: 1px solid #E2E8F0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.content-article h1 {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    line-height: 1.3;
    border-bottom: 2px solid #E2E8F0;
    padding-bottom: 0.5rem;
}

.content-article h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-top: 1.5rem;
    margin-bottom: 0.6rem;
    line-height: 1.35;
}

.content-article h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #0F172A;
    margin-top: 1.15rem;
    margin-bottom: 0.4rem;
}

.content-article p {
    font-size: 0.98rem;
    color: #334155;
    margin-bottom: 0.85rem;
    line-height: 1.65;
}

.content-article a {
    color: var(--primary-blue);
    text-decoration: underline;
    font-weight: 600;
}

.content-article a:hover {
    color: var(--accent-cyan);
}

/* Professional Custom List Bullet Styling */
.content-article ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1rem;
}

.content-article ul li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.5rem;
    font-size: 0.98rem;
    line-height: 1.55;
    color: #334155;
}

.content-article ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.25rem;
    width: 18px;
    height: 18px;
    background-color: #EFF6FF;
    border: 1px solid #BFDBFE;
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23044C8C'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 11px 11px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.content-article ol {
    list-style: none;
    counter-reset: custom-counter;
    padding-left: 0;
    margin-bottom: 1rem;
}

.content-article ol li {
    counter-increment: custom-counter;
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.55rem;
    font-size: 0.98rem;
    line-height: 1.55;
    color: #334155;
}

.content-article ol li::before {
    content: counter(custom-counter);
    position: absolute;
    left: 0;
    top: 0.15rem;
    width: 20px;
    height: 20px;
    background-color: var(--primary-blue);
    color: #FFFFFF;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 2px rgba(4, 76, 140, 0.2);
}

.content-article p:last-child {
    margin-bottom: 0;
}

/* Footer */
.site-footer {
    background-color: #0A192F;
    color: #94A3B8;
    padding: 1.25rem 1rem;
    text-align: center;
    font-size: 0.85rem;
    border-top: 3px solid var(--primary-blue);
    margin-top: 2rem;
}

.footer-container {
    max-width: 960px;
    margin: 0 auto;
}

.footer-container a {
    color: #38BDF8;
    text-decoration: none;
}

.footer-container a:hover {
    text-decoration: underline;
}

/* Mobile Responsiveness */
@media (max-width: 640px) {
    .main-wrapper {
        padding: 0.75rem 0.5rem;
    }
    
    .tool-section {
        padding: 1rem 0.75rem;
        margin-bottom: 1rem;
    }

    .tool-heading {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }

    .tool-card-body {
        padding: 1rem 0.75rem;
    }

    .radio-group {
        gap: 1rem;
    }

    .content-article {
        padding: 1.15rem 1rem;
    }

    .content-article h1 {
        font-size: 1.45rem;
    }

    .content-article h2 {
        font-size: 1.2rem;
    }

    .content-article h3 {
        font-size: 1.05rem;
    }
}

/* Header Navigation Links */
.header-container {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.header-nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.header-nav a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.15s ease;
}

.header-nav a:hover {
    color: var(--accent-cyan);
}

/* Hamburger Icon Button */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 19px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-btn span {
    width: 100%;
    height: 3px;
    background-color: var(--primary-blue);
    border-radius: 2px;
    transition: all 0.25s ease;
}

.hamburger-btn.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-btn.open span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Header & Menu */
@media (max-width: 768px) {
    .hamburger-btn {
        display: flex;
    }

    .header-nav {
        display: none;
        position: absolute;
        top: calc(100% + 0.75rem);
        left: -1rem;
        right: -1rem;
        background-color: #FFFFFF;
        flex-direction: column;
        gap: 0;
        border-bottom: 2px solid var(--primary-blue);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
        padding: 0.25rem 0;
        z-index: 999;
    }

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

    .header-nav a {
        padding: 0.85rem 1.5rem;
        width: 100%;
        border-bottom: 1px solid #F1F5F9;
        font-size: 1rem;
        display: block;
    }

    .header-nav a:last-child {
        border-bottom: none;
    }
}

/* Feature Images */
.feature-image-wrapper {
    margin: 1.25rem 0;
    text-align: center;
}

.responsive-img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 6px;
    border: 1px solid #E2E8F0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Footer Navigation Links */
.footer-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 0.75rem;
}

.footer-nav a {
    color: #CBD5E1;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: color 0.15s ease;
}

.footer-nav a:hover {
    color: #38BDF8;
    text-decoration: underline;
}

.footer-nav a:hover {
    color: #38BDF8;
    text-decoration: underline;
}

/* Contact Form Styling */
.contact-form-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1.25rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}

.form-group {
    margin-bottom: 1.15rem;
}

.form-label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: #1E293B;
    margin-bottom: 0.4rem;
}

.form-control {
    width: 100%;
    padding: 0.65rem 0.85rem;
    font-size: 0.95rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: #1E293B;
    background-color: #FFFFFF;
    outline: none;
    transition: border-color 0.15s ease;
}

.form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(4, 76, 140, 0.12);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.form-submit-btn {
    background-color: var(--primary-blue);
    color: #FFFFFF;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.7rem 1.75rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.form-submit-btn:hover {
    background-color: var(--primary-blue-dark);
}

