body.page-calculators {
            --primary-green: #00A651;
            --dark-bg: #111111;
            --light-bg: #f8f9fb;
            --border-color: #e5e5e5;
        }

        body.page-calculators * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
        }

        body.page-calculators {
            background: #fff;
            color: #222;
            line-height: 1.7;
        }

        body.page-calculators .container {
            max-width: 1240px;
            margin: auto;
            padding: 0 20px;
        }

        body.page-calculators header {
            background-color: #0a0a0a;
            position: sticky;
            top: 0;
            z-index: 1000;
            border-bottom: 1px solid #222;
        }

        body.page-calculators .navbar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 16px 0;
        }

        body.page-calculators .logo img {
            height: 36px;
            display: block;
        }

        body.page-calculators .nav-links {
            display: flex;
            align-items: center;
            gap: 24px;
            list-style: none;
        }

        body.page-calculators .nav-links a {
            color: #ffffff;
            text-decoration: none;
            font-size: 13px;
            font-weight: 500;
            transition: 0.3s ease;
        }

        body.page-calculators .nav-links a:hover,
body.page-calculators .nav-links a.active {
            color: #00A651;
        }


        body.page-calculators .page-hero {
            position: relative;
            background:
                linear-gradient(rgba(10, 10, 10, 0.82), rgba(10, 10, 10, 0.82)),
                url('assets/resource-hero.webp') center/cover no-repeat;
            color: #fff;
            padding: 110px 0 90px;
            text-align: center;
        }

        body.page-calculators .page-hero-content {
            max-width: 820px;
            margin: auto;
        }

        body.page-calculators .section-subtitle {
            color: #00A651;
            font-size: 12px;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 1.5px;
            margin-bottom: 12px;
        }

        body.page-calculators .page-hero h1 {
            font-size: 54px;
            line-height: 1.1;
            margin-bottom: 18px;
            font-weight: 800;
        }

        body.page-calculators .page-hero p {
            max-width: 720px;
            margin: auto;
            color: #d8d8d8;
            font-size: 16px;
        }

        body.page-calculators .calculator-card,
body.page-calculators .highlight-card {
            background: #fff;
            border: 1px solid #e8e8e8;
            border-radius: 14px;
            overflow: hidden;
            transition: 0.35s ease;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
        }

        body.page-calculators .calculator-card:hover,
body.page-calculators .highlight-card:hover {
            transform: translateY(-7px);
            box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
        }

        body.page-calculators .hero {
            background: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.8)), url('assets/calculator-hero-bg.webp') center/cover no-repeat;
            color: white;
            padding: 110px 0;
            text-align: center;
        }

        body.page-calculators .hero h1 {
            font-size: 50px;
            margin-bottom: 20px;
        }

        body.page-calculators .hero p {
            max-width: 700px;
            margin: auto;
            color: #ddd;
        }

        body.page-calculators .calculator-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 30px;
            padding: 80px 0;
        }

        body.page-calculators .calculator-card {
            border: 1px solid var(--border-color);
            border-radius: 14px;
            padding: 35px;
            background: white;
        }

        body.page-calculators .calculator-card i {
            font-size: 44px;
            color: var(--primary-green);
            margin-bottom: 20px;
        }

        body.page-calculators .calculator-card h3 {
            font-size: 28px;
            margin-bottom: 15px;
        }

        body.page-calculators .calculator-card p {
            color: #666;
            margin-bottom: 25px;
        }

        body.page-calculators .header-contact {
            display: flex;
            align-items: center;
            gap: 18px;
            color: #fff;
            font-size: 13px;
            font-weight: 600;
        }

        body.page-calculators .header-contact i {
            color: #00A651;
            margin-right: 5px;
        }

        body.page-calculators .tool-section {
            background: var(--light-bg);
            padding: 80px 0;
        }

        body.page-calculators .tool-box {
            background: white;
            border-radius: 14px;
            padding: 40px;
            border: 1px solid var(--border-color);
            max-width: 800px;
            margin: auto;
        }

        body.page-calculators .tool-box h2 {
            margin-bottom: 20px;
            font-size: 32px;
        }

        body.page-calculators .form-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 20px;
        }

        body.page-calculators .form-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            font-size: 14px;
        }

        body.page-calculators .form-group input,
body.page-calculators .form-group select {
            width: 100%;
            padding: 14px;
            border-radius: 6px;
            border: 1px solid #ccc;
        }

        body.page-calculators .results {
            margin-top: 30px;
            background: #f3fff8;
            border-left: 5px solid var(--primary-green);
            padding: 25px;
            border-radius: 8px;
        }

        body.page-calculators .results h3 {
            color: var(--primary-green);
            margin-bottom: 10px;
        }

        body.page-calculators .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 12px 22px;
            border-radius: 6px;
            font-size: 13px;
            font-weight: 600;
            text-decoration: none;
            transition: 0.3s ease;
        }

        body.page-calculators .btn-outline {
            border: 1px solid #00A651;
            color: #fff;
            background: transparent;
        }

        body.page-calculators .btn-outline:hover {
            background: #00A651;
        }

        body.page-calculators .btn:hover {
            background: #008a43;
        }

        body.page-calculators footer {
            background: #0a0a0a;
            padding: 70px 0 35px;
            color: #aaa;
            border-top: 1px solid #222;
        }

        body.page-calculators .footer-grid {
            display: grid;
            grid-template-columns: 1.5fr 1fr 1fr;
            gap: 60px;
            margin-bottom: 45px;
        }

        body.page-calculators .footer-logo img {
            height: 34px;
            margin-bottom: 20px;
        }

        body.page-calculators .footer-title {
            color: #fff;
            margin-bottom: 22px;
            font-size: 14px;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        body.page-calculators footer ul {
            list-style: none;
        }

        body.page-calculators footer li {
            margin-bottom: 15px;
            display: flex;
            gap: 10px;
            align-items: flex-start;
        }

        body.page-calculators footer li i {
            color: #00A651;
            margin-top: 4px;
        }

        body.page-calculators footer a {
            color: #aaa;
            text-decoration: none;
            transition: 0.3s ease;
        }

        body.page-calculators footer a:hover {
            color: #00A651;
        }

        body.page-calculators .footer-bottom-bar {
            border-top: 1px solid #222;
            padding-top: 25px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        body.page-calculators .social-links {
            display: flex;
            gap: 12px;
        }

        body.page-calculators .social-links a {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: #151515;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        body.page-calculators .social-links a:hover {
            background: #00A651;
            color: white;
        }

        @media(max-width: 768px) {

            body.page-calculators .calculator-grid,
body.page-calculators .form-grid {
                grid-template-columns: 1fr;
            }

            body.page-calculators .hero h1 {
                font-size: 36px;
            }

            body.page-calculators .navbar {
                flex-direction: column;
                gap: 20px;
            }
        }

/* Shared styles used across the site. */
/* Shared responsive guardrails for legacy navigation layouts. */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

@media (max-width: 768px) {
  body .navbar {
    width: 100%;
    min-width: 0;
  }

  body .nav-links {
    display: flex;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 18px;
    padding: 4px 2px 10px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
  }

  body .nav-links > li {
    flex: 0 0 auto;
  }

  body .page-hero .container,
  body .page-hero-content {
    width: auto;
    min-width: 0;
    max-width: 100%;
  }

  body .page-hero p {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
}

/* Font Awesome restore.
   Scoped page resets set font-family on every element, so explicitly return
   icon elements to the Font Awesome font family. */
body i.fas,
body i.fa-solid {
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900 !important;
}

body i.far,
body i.fa-regular {
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 400 !important;
}

body i.fab,
body i.fa-brands {
  font-family: "Font Awesome 6 Brands" !important;
  font-weight: 400 !important;
}
