* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #05727f;
    --primary-dark: #045963;
    --primary-light: #e8f7f8;
    --dark: #172b35;
    --text: #52636b;
    --light: #f6f9fa;
    --white: #ffffff;
    --border: #e2eaed;
    --shadow: 0 8px 30px rgba(23, 43, 53, 0.07);
}

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: 92%;
    max-width: 1180px;
    margin: auto;
}


/* ================= HEADER ================= */

.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--dark);
}

.logo-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: white;
    border-radius: 10px;
    font-size: 21px;
    font-weight: bold;
}

.logo strong {
    display: block;
    font-size: 16px;
}

.logo small {
    display: block;
    color: var(--primary);
    font-size: 14px;
    font-weight: bold;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 25px;
}

.main-nav a {
    font-size: 14px;
    color: var(--text);
    font-weight: 600;
    transition: 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    border: none;
    background: none;
    font-size: 25px;
    cursor: pointer;
}


/* ================= HERO ================= */

.hero {
    background: linear-gradient(
        135deg,
        #eaf8f9 0%,
        #f7fbfc 55%,
        #ffffff 100%
    );

    padding: 80px 20px 90px;
    text-align: center;
}

.hero-content {
    max-width: 850px;
}

.hero-badge {
    display: inline-block;
    background: white;
    color: var(--primary);
    padding: 7px 15px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 20px;
    border: 1px solid #d7edef;
}

.hero h1 {
    font-size: 48px;
    line-height: 1.15;
    letter-spacing: -1.2px;
    margin-bottom: 20px;
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    max-width: 700px;
    margin: auto;
    font-size: 18px;
    color: var(--text);
}

.tool-search {
    max-width: 620px;
    margin: 35px auto 0;
    height: 58px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    box-shadow: var(--shadow);
}

.search-icon {
    font-size: 27px;
    color: #7a8b92;
    margin-right: 12px;
}

.tool-search input {
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    font-size: 16px;
    color: var(--dark);
}


/* ================= SECTIONS ================= */

.section {
    padding: 70px 0;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 30px;
}

.section-label {
    display: block;
    color: var(--primary);
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1.3px;
    margin-bottom: 7px;
}

.section-heading h2 {
    font-size: 30px;
}

.view-all {
    color: var(--primary);
    font-weight: bold;
    font-size: 14px;
}

.center-heading {
    display: block;
    text-align: center;
}

.center-heading p {
    color: var(--text);
    margin-top: 8px;
}


/* ================= TOOL CARDS ================= */

.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.tool-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 25px;
    display: flex;
    gap: 18px;
    transition: 0.25s;
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: #c9e3e6;
}

.tool-icon {
    min-width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 15px;
}

.gst-icon {
    background: #e7f7ef;
    color: #16824f;
}

.finance-icon {
    background: #eaf1ff;
    color: #315eb7;
    font-size: 22px;
}

.salary-icon {
    background: #fff3df;
    color: #bd7414;
    font-size: 22px;
}

.tax-icon {
    background: #f1eaff;
    color: #7043b7;
    font-size: 22px;
}

.business-icon {
    background: #eaf8f9;
    color: var(--primary);
}

.hr-icon {
    background: #fff0f0;
    color: #b54a4a;
}

.tool-content h3 {
    font-size: 17px;
    margin-bottom: 7px;
}

.tool-content p {
    font-size: 13px;
    color: var(--text);
    line-height: 1.5;
}

.tool-content a {
    display: inline-block;
    margin-top: 12px;
    color: var(--primary);
    font-size: 13px;
    font-weight: bold;
}

.no-results {
    display: none;
    text-align: center;
    padding: 30px;
    color: var(--text);
}


/* ================= CATEGORIES ================= */

.categories-section {
    background: white;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 35px;
}

.category-card {
    border: 1px solid var(--border);
    border-radius: 13px;
    padding: 22px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: 0.25s;
}

.category-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
}

.category-icon {
    width: 48px;
    height: 48px;
    border-radius: 11px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.category-card h3 {
    font-size: 16px;
}

.category-card p {
    font-size: 12px;
    color: var(--text);
}

.category-card > span {
    margin-left: auto;
    color: var(--primary);
    font-size: 20px;
}


/* ================= WHY SECTION ================= */

.why-section {
    background: #f3f8f9;
}

.why-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.why-content h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.why-content p {
    color: var(--text);
}

.benefits {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.benefit {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.benefit strong {
    display: block;
    color: var(--primary);
    margin-bottom: 5px;
}

.benefit span {
    font-size: 13px;
    color: var(--text);
}


/* ================= FOOTER ================= */

.site-footer {
    background: #172b35;
    color: white;
    padding: 55px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-logo {
    font-size: 20px;
    font-weight: bold;
}

.footer-about p {
    margin-top: 12px;
    color: #aebbc0;
    font-size: 13px;
    max-width: 280px;
}

.footer-grid h4 {
    margin-bottom: 15px;
}

.footer-grid > div > a:not(.footer-logo) {
    display: block;
    color: #aebbc0;
    font-size: 13px;
    margin-bottom: 8px;
}

.footer-grid > div > a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #30434b;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    color: #9eacb1;
    font-size: 12px;
}


/* ================= MOBILE ================= */

@media (max-width: 900px) {

    .main-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .tools-grid,
    .categories-grid {
        grid-template-columns: 1fr 1fr;
    }

    .why-content {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}


@media (max-width: 600px) {

    .hero {
        padding: 55px 15px 65px;
    }

    .hero h1 {
        font-size: 34px;
    }

    .hero p {
        font-size: 16px;
    }

    .tools-grid,
    .categories-grid,
    .benefits {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 50px 0;
    }

    .section-heading {
        align-items: start;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
    }

}

/* ================= PAGE HERO ================= */

.page-hero {
    background: linear-gradient(
        135deg,
        #eaf8f9 0%,
        #ffffff 100%
    );

    padding: 60px 0;
    text-align: center;
}

.page-hero h1 {
    font-size: 42px;
    margin-bottom: 12px;
}

.page-hero p {
    max-width: 650px;
    margin: auto;
    color: var(--text);
    font-size: 17px;
}


/* ================= INFORMATION CARDS ================= */

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.info-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 25px;
}

.info-card h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

.info-card p {
    color: var(--text);
    font-size: 14px;
}


/* ================= CALCULATOR ================= */

.calculator-wrapper {
    max-width: 720px;
    margin: auto;
}

.calculator-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input,
.form-group select {
    width: 100%;
    height: 50px;
    border: 1px solid #ccd9dd;
    border-radius: 8px;
    padding: 0 14px;
    font-size: 16px;
    outline: none;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--primary);
}

.calculate-btn {
    width: 100%;
    height: 52px;
    border: none;
    border-radius: 9px;
    background: var(--primary);
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.calculate-btn:hover {
    background: var(--primary-dark);
}

.calculator-result {
    display: none;
    margin-top: 25px;
    background: var(--primary-light);
    border: 1px solid #c9e7e9;
    border-radius: 12px;
    padding: 25px;
}

.calculator-result h3 {
    margin-bottom: 18px;
    color: var(--primary-dark);
}

.result-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #d5e9eb;
}

.result-row:last-child {
    border-bottom: none;
}

.result-row.total {
    font-weight: bold;
    font-size: 18px;
    color: var(--primary-dark);
    padding-top: 16px;
}

.error-message {
    display: none;
    color: #c0392b;
    background: #fff0ee;
    border: 1px solid #f2c5bf;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}


/* ================= MOBILE ================= */

@media (max-width: 700px) {

    .page-hero h1 {
        font-size: 32px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .calculator-card {
        padding: 20px;
    }

}

/* ================= CALCULATOR EXTRA ================= */

.calculator-intro {
    margin-bottom: 28px;
}

.calculator-intro h2 {
    font-size: 25px;
    margin-bottom: 8px;
}

.calculator-intro p {
    color: var(--text);
    font-size: 14px;
}


.result-actions {
    display: flex;
    gap: 10px;
    margin-top: 22px;
}

.secondary-btn {
    flex: 1;
    height: 44px;
    border: 1px solid var(--primary);
    background: white;
    color: var(--primary);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.secondary-btn:hover {
    background: var(--primary-light);
}


/* ================= FAQ ================= */

.faq-list {
    max-width: 800px;
    margin: 35px auto 0;
}

.faq-list details {
    background: white;
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 12px;
    padding: 18px 20px;
}

.faq-list summary {
    cursor: pointer;
    font-weight: 600;
}

.faq-list details p {
    margin-top: 15px;
    color: var(--text);
    font-size: 14px;
}


/* ================= DISCLAIMER ================= */

.tool-disclaimer {
    background: #fff9e8;
    border: 1px solid #f0dfaa;
    border-radius: 10px;
    padding: 18px;
    color: #685820;
    font-size: 13px;
    line-height: 1.7;
}


@media (max-width: 600px) {

    .result-actions {
        flex-direction: column;
    }

}

/* ================= EMI CALCULATOR ================= */

.tenure-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 10px;
}

.tenure-row input,
.tenure-row select {
    height: 50px;
    border: 1px solid #ccd9dd;
    border-radius: 8px;
    padding: 0 14px;
    font-size: 16px;
    outline: none;
    background: white;
}

.tenure-row input:focus,
.tenure-row select:focus {
    border-color: var(--primary);
}


.emi-highlight {
    background: var(--primary);
    color: white;
    border-radius: 12px;
    padding: 22px;
    margin-bottom: 20px;
    text-align: center;
}

.emi-highlight span {
    display: block;
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 5px;
}

.emi-highlight strong {
    display: block;
    font-size: 32px;
}


.emi-breakdown {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 20px;
}

.emi-breakdown div {
    background: #f6f9fa;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
}

.emi-breakdown span {
    display: block;
    color: var(--text);
    font-size: 13px;
    margin-bottom: 5px;
}

.emi-breakdown strong {
    color: var(--primary);
    font-size: 20px;
}


/* ================= TABLE ================= */

.table-wrapper {
    width: 100%;
    overflow-x: auto;
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.amortization-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 650px;
}

.amortization-table th {
    background: var(--primary);
    color: white;
    padding: 14px 12px;
    text-align: right;
    font-size: 13px;
}

.amortization-table th:first-child {
    text-align: center;
}

.amortization-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border);
    text-align: right;
    font-size: 13px;
}

.amortization-table td:first-child {
    text-align: center;
    font-weight: 600;
}

.amortization-table tr:last-child td {
    border-bottom: none;
}

.amortization-table tbody tr:hover {
    background: #f7fbfc;
}


@media (max-width: 600px) {

    .tenure-row {
        grid-template-columns: 1fr;
    }

    .emi-highlight strong {
        font-size: 27px;
    }

    .emi-breakdown {
        grid-template-columns: 1fr;
    }

}

/* ================= SALARY CALCULATOR ================= */

.salary-highlight {
    background: var(--primary);
    color: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    text-align: center;
}

.salary-highlight span {
    display: block;
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 5px;
}

.salary-highlight strong {
    display: block;
    font-size: 32px;
}


.salary-annual {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid var(--border);
}

.salary-annual h3 {
    margin-bottom: 15px;
    font-size: 19px;
}


@media (max-width: 600px) {

    .salary-highlight strong {
        font-size: 27px;
    }

}

/* ================= TAX CALCULATOR ================= */

.form-help {
    display: block;
    margin-top: 7px;
    color: var(--text);
    font-size: 12px;
    line-height: 1.5;
}


.tax-result-card {
    background: var(--primary-light);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 12px;
    text-align: center;
}

.tax-result-card span {
    display: block;
    font-size: 14px;
    margin-bottom: 7px;
}

.tax-result-card strong {
    display: block;
    color: var(--primary-dark);
    font-size: 27px;
}

.tax-result-card small {
    display: block;
    margin-top: 7px;
    color: var(--text);
}


.tax-comparison {
    margin-top: 22px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: white;
}

.tax-comparison h3 {
    margin-bottom: 12px;
}


@media (max-width: 600px) {

    .tax-result-card strong {
        font-size: 24px;
    }

}

/* =====================================================
   GST INVOICE GENERATOR
   ===================================================== */

.invoice-builder {
    max-width: 1100px;
    margin: 0 auto;
}

.invoice-form-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 25px;
    margin-bottom: 20px;
}

.invoice-form-card h2 {
    margin-bottom: 20px;
}

.invoice-form-card p {
    color: var(--text);
}

.invoice-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.invoice-form-grid .full-width {
    grid-column: 1 / -1;
}

.invoice-form-grid textarea {
    width: 100%;
    resize: vertical;
}

.invoice-items-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.add-item-btn {
    border: none;
    border-radius: 8px;
    padding: 11px 17px;
    background: var(--primary);
    color: #ffffff;
    cursor: pointer;
    font-weight: 600;
}

.add-item-btn:hover {
    opacity: 0.9;
}

.invoice-items-wrapper {
    width: 100%;
    overflow-x: auto;
}

.invoice-items-table {
    width: 100%;
    min-width: 950px;
    border-collapse: collapse;
}

.invoice-items-table th,
.invoice-items-table td {
    border: 1px solid var(--border);
    padding: 8px;
    text-align: left;
    vertical-align: middle;
}

.invoice-items-table th {
    background: var(--primary-light);
    font-size: 13px;
}

.invoice-items-table input,
.invoice-items-table select {
    width: 100%;
    min-width: 75px;
    padding: 9px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #ffffff;
}

.invoice-items-table .item-description {
    min-width: 180px;
}

.invoice-items-table .item-hsn {
    min-width: 100px;
}

.item-number {
    text-align: center !important;
    font-weight: 600;
}

.item-taxable {
    white-space: nowrap;
    font-weight: 600;
}

.remove-item-btn {
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    background: #f3f3f3;
    font-size: 20px;
    line-height: 1;
}

.remove-item-btn:hover {
    background: #e5e5e5;
}

.invoice-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    margin: 25px 0;
}

.invoice-preview-section {
    background: #f6f7f8;
}

.invoice-preview-actions {
    max-width: 1000px;
    margin: 0 auto 20px;
    display: flex;
    justify-content: flex-end;
}

.invoice-preview {
    max-width: 1000px;
    margin: 0 auto;
    background: #ffffff;
    padding: 40px;
    border: 1px solid #dddddd;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.invoice-header {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    padding-bottom: 25px;
    border-bottom: 2px solid #222222;
}

.invoice-business {
    flex: 1;
}

.invoice-business h1 {
    margin-bottom: 10px;
}

.invoice-business p {
    margin: 5px 0;
    white-space: pre-line;
}

.invoice-title {
    text-align: right;
    min-width: 220px;
}

.invoice-title h2 {
    margin-bottom: 15px;
}

.invoice-title p {
    margin: 6px 0;
}

.invoice-parties {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 25px 0;
}

.invoice-parties > div {
    padding: 15px;
    border: 1px solid #dddddd;
    border-radius: 8px;
}

.invoice-parties h3 {
    margin-bottom: 10px;
    font-size: 15px;
}

.invoice-parties p {
    margin: 6px 0;
    white-space: pre-line;
}

.generated-invoice-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.generated-invoice-table th,
.generated-invoice-table td {
    border: 1px solid #cccccc;
    padding: 10px;
    font-size: 13px;
}

.generated-invoice-table th {
    background: #f3f3f3;
    font-weight: 700;
}

.invoice-total-section {
    display: flex;
    justify-content: flex-end;
    margin-top: 25px;
}

.invoice-total-box {
    width: 360px;
}

.invoice-total-box .result-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 9px 0;
    border-bottom: 1px solid #eeeeee;
}

.invoice-total-box .result-row.total {
    border-top: 2px solid #222222;
    border-bottom: 0;
    padding-top: 15px;
    font-size: 18px;
}

.invoice-notes {
    margin-top: 35px;
    padding-top: 20px;
    border-top: 1px solid #dddddd;
}

.invoice-notes h3 {
    margin-bottom: 10px;
}

.invoice-notes p {
    white-space: pre-line;
}

.invoice-signature {
    margin-top: 50px;
    margin-left: auto;
    width: 250px;
    text-align: center;
}

.signature-space {
    height: 70px;
    border-bottom: 1px solid #555555;
    margin-bottom: 10px;
}


/* ================= MOBILE ================= */

@media (max-width: 700px) {

    .invoice-form-grid {
        grid-template-columns: 1fr;
    }

    .invoice-form-grid .full-width {
        grid-column: auto;
    }

    .invoice-items-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .invoice-preview {
        padding: 20px;
    }

    .invoice-header {
        flex-direction: column;
    }

    .invoice-title {
        text-align: left;
    }

    .invoice-parties {
        grid-template-columns: 1fr;
    }

    .invoice-total-section {
        justify-content: stretch;
    }

    .invoice-total-box {
        width: 100%;
    }

}
@media print {

    body {
        background: #ffffff;
    }

    .site-header,
    .page-hero,
    .invoice-builder,
    .invoice-preview-actions,
    .site-footer,
    .invoice-preview-section > .container > .invoice-preview-actions {
        display: none !important;
    }

    .invoice-preview-section {
        display: block !important;
        padding: 0 !important;
        margin: 0 !important;
        background: #ffffff !important;
    }

    .invoice-preview {
        max-width: none;
        width: 100%;
        margin: 0;
        padding: 20px;
        border: none;
        box-shadow: none;
    }

    @page {
        size: A4;
        margin: 12mm;
    }

}

/* =====================================================
   CONTENT / LEGAL PAGES
   ===================================================== */

.content-page {
    max-width: 900px;
    margin: 0 auto;
}

.content-page h2 {
    margin-top: 35px;
    margin-bottom: 14px;
}

.content-page p {
    line-height: 1.8;
    margin-bottom: 15px;
}

.content-page ul {
    margin: 15px 0 20px 25px;
}

.content-page li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.content-page a {
    font-weight: 600;
}