* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #5b5bd6;
    --primary-dark: #4747b8;
    --dark: #151522;
    --text: #555566;
    --light: #f7f7fb;
    --border: #e5e5ef;
    --white: #ffffff;
    --success: #16855b;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        Arial,
        Helvetica,
        sans-serif;

    background: var(--light);

    color: var(--dark);

    line-height: 1.6;
}

a {
    text-decoration: none;

    color: inherit;
}

.container {
    width: min(1180px, 92%);

    margin: auto;
}


/*
|--------------------------------------------------------------------------
| Header
|--------------------------------------------------------------------------
*/

.site-header {
    background: var(--white);

    border-bottom: 1px solid var(--border);

    position: sticky;

    top: 0;

    z-index: 100;
}

.header-inner {
    min-height: 72px;

    display: flex;

    align-items: center;

    justify-content: space-between;
}

.logo {
    font-size: 27px;

    font-weight: 800;

    letter-spacing: -1px;
}

.logo span {
    color: var(--primary);
}

.main-nav {
    display: flex;

    align-items: center;

    gap: 32px;
}

.main-nav a {
    font-size: 15px;

    font-weight: 600;

    color: var(--text);

    transition: 0.2s;
}

.main-nav a:hover {
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;

    background: none;

    border: 0;

    font-size: 26px;

    cursor: pointer;
}


/*
|--------------------------------------------------------------------------
| Hero
|--------------------------------------------------------------------------
*/

.hero {
    padding: 100px 0;

    background:
        radial-gradient(
            circle at top right,
            #e6e6ff,
            transparent 35%
        ),
        var(--white);
}

.hero-content {
    text-align: center;

    max-width: 800px;
}

.hero-badge {
    display: inline-block;

    padding: 7px 15px;

    border-radius: 30px;

    background: #eeeeff;

    color: var(--primary);

    font-size: 13px;

    font-weight: 700;

    margin-bottom: 20px;
}

.hero h1 {
    font-size: clamp(42px, 6vw, 72px);

    line-height: 1.05;

    letter-spacing: -3px;

    margin-bottom: 24px;
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    max-width: 650px;

    margin: auto auto 30px;

    font-size: 19px;

    color: var(--text);
}


/*
|--------------------------------------------------------------------------
| Buttons
|--------------------------------------------------------------------------
*/

.btn {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 48px;

    padding: 0 24px;

    border: 0;

    border-radius: 10px;

    font-weight: 700;

    cursor: pointer;

    transition: 0.2s;
}

.btn-primary {
    background: var(--primary);

    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);

    transform: translateY(-1px);
}

.btn-full {
    width: 100%;
}


/*
|--------------------------------------------------------------------------
| Sections
|--------------------------------------------------------------------------
*/

.tools-section,
.categories-section,
.why-section {
    padding: 90px 0;
}

.section-heading {
    text-align: center;

    margin-bottom: 45px;
}

.section-heading span {
    color: var(--primary);

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 2px;
}

.section-heading h2 {
    font-size: 38px;

    line-height: 1.2;

    margin: 10px 0;
}

.section-heading p {
    color: var(--text);
}


/*
|--------------------------------------------------------------------------
| Tools Grid
|--------------------------------------------------------------------------
*/

.tools-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 22px;
}

.tool-card {
    background: var(--white);

    border: 1px solid var(--border);

    border-radius: 18px;

    padding: 26px;

    display: flex;

    gap: 20px;

    transition:
        transform 0.2s,
        box-shadow 0.2s,
        border-color 0.2s;
}

.tool-card:hover {
    transform: translateY(-5px);

    border-color: #cfcff5;

    box-shadow:
        0 15px 40px
        rgba(30, 30, 70, 0.08);
}

.tool-icon {
    width: 55px;

    height: 55px;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 14px;

    background: #eeeeff;

    color: var(--primary);

    font-size: 25px;

    font-weight: 800;
}

.tool-category {
    color: var(--primary);

    font-size: 11px;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 1px;

    margin-bottom: 4px;
}

.tool-card h3 {
    font-size: 20px;

    margin-bottom: 7px;
}

.tool-card p {
    color: var(--text);

    font-size: 14px;

    margin-bottom: 14px;
}

.tool-link {
    color: var(--primary);

    font-size: 14px;

    font-weight: 700;
}


/*
|--------------------------------------------------------------------------
| Category
|--------------------------------------------------------------------------
*/

.category-grid {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 22px;

    max-width: 800px;

    margin: auto;
}

.category-card {
    background: var(--white);

    border: 1px solid var(--border);

    padding: 35px;

    border-radius: 18px;

    text-align: center;
}

.category-card > div {
    font-size: 35px;

    margin-bottom: 10px;
}

.category-card h3 {
    margin-bottom: 5px;
}

.category-card p {
    color: var(--text);

    font-size: 14px;
}


/*
|--------------------------------------------------------------------------
| Features
|--------------------------------------------------------------------------
*/

.features-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 22px;
}

.feature-card {
    background: var(--white);

    border: 1px solid var(--border);

    border-radius: 18px;

    padding: 35px;

    text-align: center;
}

.feature-icon {
    font-size: 35px;

    margin-bottom: 15px;
}

.feature-card h3 {
    margin-bottom: 8px;
}

.feature-card p {
    color: var(--text);

    font-size: 14px;
}


/*
|--------------------------------------------------------------------------
| Footer
|--------------------------------------------------------------------------
*/

.site-footer {
    background: #151522;

    color: white;

    padding-top: 50px;
}

.footer-inner {
    display: flex;

    justify-content: space-between;

    gap: 30px;

    padding-bottom: 40px;
}

.footer-logo {
    color: white;
}

.site-footer p {
    color: #aaaaba;

    margin-top: 10px;
}

.footer-links {
    display: flex;

    gap: 25px;

    align-items: center;
}

.footer-links a {
    color: #ccc;

    font-size: 14px;
}

.footer-bottom {
    border-top: 1px solid #292936;

    text-align: center;

    color: #888898;

    padding: 20px;
}


/*
|--------------------------------------------------------------------------
| Tool Page
|--------------------------------------------------------------------------
*/

.tool-page {
    padding: 50px 0 90px;
}

.breadcrumb {
    display: flex;

    gap: 10px;

    align-items: center;

    color: #888;

    font-size: 14px;

    margin-bottom: 25px;
}

.breadcrumb a {
    color: var(--primary);

    font-weight: 600;
}

.tool-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 2fr)
        minmax(280px, 1fr);

    gap: 25px;

    align-items: start;
}

.calculator-card,
.tool-info-card {
    background: var(--white);

    border: 1px solid var(--border);

    border-radius: 20px;

    padding: 32px;
}

.calculator-header {
    display: flex;

    gap: 18px;

    align-items: center;

    margin-bottom: 32px;
}

.large-tool-icon {
    width: 65px;

    height: 65px;

    flex-shrink: 0;

    display: flex;

    justify-content: center;

    align-items: center;

    background: #eeeeff;

    border-radius: 16px;

    color: var(--primary);

    font-size: 29px;

    font-weight: 800;
}

.calculator-header h1 {
    font-size: 32px;

    line-height: 1.2;

    margin-bottom: 6px;
}

.calculator-header p {
    color: var(--text);

    font-size: 14px;
}


/*
|--------------------------------------------------------------------------
| Forms
|--------------------------------------------------------------------------
*/

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;

    margin-bottom: 8px;

    font-size: 14px;

    font-weight: 700;
}

.form-control {
    width: 100%;

    height: 50px;

    padding: 0 15px;

    border: 1px solid var(--border);

    border-radius: 10px;

    background: white;

    font-size: 15px;

    outline: none;

    transition: 0.2s;
}

.form-control:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 3px
        rgba(91, 91, 214, 0.1);
}
/* Custom Select Arrow */
select.form-control {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23111111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");

    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    
    padding-right: 45px;
}

/*
|--------------------------------------------------------------------------
| Result
|--------------------------------------------------------------------------
*/

.result-box {
    margin-top: 25px;

    padding: 25px;

    border-radius: 15px;

    background: #f7f7ff;

    border: 1px solid #e4e4fb;
}

.result-box h3 {
    margin-bottom: 20px;
}

.hidden {
    display: none !important;
}

.age-result-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 15px;

    text-align: center;

    margin-bottom: 20px;
}

.age-result-grid > div {
    background: white;

    border-radius: 12px;

    padding: 20px;
}

.age-result-grid strong {
    display: block;

    color: var(--primary);

    font-size: 32px;
}

.age-result-grid span {
    color: var(--text);

    font-size: 13px;
}

.result-box p {
    color: var(--text);

    font-size: 14px;

    text-align: center;
}

.big-result {
    text-align: center;

    margin: 10px 0 5px;
}

.big-result span {
    color: var(--primary);

    font-size: 42px;

    font-weight: 800;
}

.result-row {
    display: flex;

    justify-content: space-between;

    gap: 20px;

    padding: 14px 0;

    border-bottom: 1px solid var(--border);
}

.result-row span {
    color: var(--text);
}

.result-row strong {
    font-size: 17px;
}

.result-total {
    border-bottom: 0;

    padding-bottom: 0;
}

.result-total strong {
    color: var(--success);

    font-size: 20px;
}

.emi-main-result {
    text-align: center;

    background: white;

    padding: 20px;

    border-radius: 12px;

    margin-bottom: 15px;
}

.emi-main-result span {
    display: block;

    color: var(--text);

    font-size: 14px;
}

.emi-main-result strong {
    display: block;

    color: var(--primary);

    font-size: 32px;

    margin-top: 4px;
}



.form-control {
    font-family: inherit;
}

select.form-control {
    cursor: pointer;
}

/*
|--------------------------------------------------------------------------
| Tool Info
|--------------------------------------------------------------------------
*/

.tool-info-card {
    position: sticky;

    top: 95px;
}

.tool-info-card h2 {
    font-size: 22px;

    margin-bottom: 15px;
}

.tool-info-card p {
    color: var(--text);

    font-size: 14px;

    margin-bottom: 20px;
}

.tool-info-card ul {
    padding-left: 20px;

    color: var(--text);

    font-size: 14px;
}

.tool-info-card li {
    margin-bottom: 8px;
}

.formula-box {
    background: #f5f5fb;

    border: 1px solid var(--border);

    padding: 15px;

    border-radius: 10px;

    font-size: 14px;

    font-weight: 700;

    margin: 15px 0;
}

/*
|--------------------------------------------------------------------------
| SEO Tool Content
|--------------------------------------------------------------------------
*/

.tool-content {
    max-width: 900px;

    margin: 60px auto 0;

    background: var(--white);

    border: 1px solid var(--border);

    border-radius: 20px;

    padding: 40px;
}

.tool-content h2 {
    font-size: 28px;

    line-height: 1.3;

    margin-top: 35px;

    margin-bottom: 12px;

    color: var(--dark);
}

.tool-content h2:first-child {
    margin-top: 0;
}

.tool-content p {
    color: var(--text);

    font-size: 16px;

    line-height: 1.8;

    margin-bottom: 18px;
}

.tool-content ol,
.tool-content ul {
    margin: 15px 0 25px;

    padding-left: 25px;

    color: var(--text);
}

.tool-content li {
    margin-bottom: 10px;

    line-height: 1.7;
}




/*
|--------------------------------------------------------------------------
| FAQ Section
|--------------------------------------------------------------------------
*/

.faq-section {
    max-width: 900px;

    margin: 35px auto 0;

    background: var(--white);

    border: 1px solid var(--border);

    border-radius: 20px;

    padding: 40px;
}

.faq-section > h2 {
    font-size: 28px;

    line-height: 1.3;

    margin-bottom: 25px;
}

.faq-item {
    padding: 22px 0;

    border-bottom: 1px solid var(--border);
}

.faq-item:first-of-type {
    padding-top: 0;
}

.faq-item:last-child {
    border-bottom: 0;

    padding-bottom: 0;
}

.faq-item h3 {
    font-size: 18px;

    line-height: 1.4;

    margin-bottom: 8px;

    color: var(--dark);
}

.faq-item p {
    color: var(--text);

    font-size: 15px;

    line-height: 1.7;

    margin: 0;
}


/*
|--------------------------------------------------------------------------
| Related Tools
|--------------------------------------------------------------------------
*/

.related-tools {
    padding-top: 80px;
}

.related-tools .section-heading {
    margin-bottom: 35px;
}


/*
|--------------------------------------------------------------------------
| Age Calculator Error
|--------------------------------------------------------------------------
*/

.age-error {
    margin-top: 15px;

    padding: 12px 15px;

    border-radius: 10px;

    background: #fff2f2;

    border: 1px solid #f0cccc;

    color: #b42318;

    font-size: 14px;

    line-height: 1.5;
}


/*
|--------------------------------------------------------------------------
| SEO Content Responsive
|--------------------------------------------------------------------------
*/

@media (max-width: 700px) {

    .tool-content,
    .faq-section {
        padding: 25px;

        margin-top: 30px;

        border-radius: 15px;
    }

    .tool-content h2,
    .faq-section > h2 {
        font-size: 24px;
    }

    .tool-content p {
        font-size: 15px;

        line-height: 1.7;
    }

    .faq-item h3 {
        font-size: 17px;
    }

    .related-tools {
        padding-top: 55px;
    }

}
/*
|--------------------------------------------------------------------------
| Responsive
|--------------------------------------------------------------------------
*/

@media (max-width: 900px) {

    .tools-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns:
            1fr;
    }

    .tool-layout {
        grid-template-columns:
            1fr;
    }

    .tool-info-card {
        position: static;
    }

}


@media (max-width: 700px) {

    .main-nav {
        display: none;

        position: absolute;

        top: 72px;

        left: 0;

        right: 0;

        background: white;

        padding: 20px;

        border-bottom: 1px solid var(--border);

        flex-direction: column;

        align-items: flex-start;
    }

    .main-nav.mobile-open {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero {
        padding: 70px 0;
    }

    .hero h1 {
        font-size: 44px;

        letter-spacing: -2px;
    }

    .tools-grid,
    .category-grid {
        grid-template-columns:
            1fr;
    }

    .section-heading h2 {
        font-size: 30px;
    }

    .calculator-card,
    .tool-info-card {
        padding: 22px;
    }

    .calculator-header {
        align-items: flex-start;
    }

    .calculator-header h1 {
        font-size: 26px;
    }

    .age-result-grid {
        grid-template-columns:
            1fr;
    }

    .footer-inner {
        flex-direction: column;
    }

    .footer-links {
        flex-wrap: wrap;
    }

}


@media (max-width: 450px) {

    .tool-card {
        padding: 20px;
    }

    .tool-icon {
        width: 45px;

        height: 45px;

        font-size: 20px;
    }

    .hero h1 {
        font-size: 38px;
    }

}



.formula-box {
    margin: 20px 0;
    padding: 18px 20px;
    background: #f7f7fb;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-weight: 600;
    line-height: 1.7;
    overflow-x: auto;
}