        /* * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        } */

        body {
            line-height: 1.6;
            min-height: 100vh;
            /* padding: 150px; */
            margin: 0; /* Ensure no default margin */
            overflow-x: hidden; /* Prevent horizontal overflow */
            background-color: rgb(0, 0, 0);
        }

        .page-container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 150px 2rem 2rem 2rem; /* Simplified padding */
        }

        /* Override footer container padding to make it full width */
        .ftlt-footer-container {
            /* max-width: none !important; */
            /* padding-left: 2rem !important;
            padding-right: 2rem !important; */
            /* max-width: 1200px; */
            /* margin: 0 auto; */
            padding: 4rem 2rem 2rem;
            position: relative;
            z-index: 2;
            
        }

        /* Ensure footer spans full width */
        .ftlt-footer {
            width: 100vw;
            position: relative;
            left: 50%;
            right: 50%;
            margin-left: -50vw;
            margin-right: -50vw;
        }

        .calculators-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 1.5rem;
            margin-bottom: 2rem;
        }

        .calculator-section {
            background-color: #f9f9f9;
            border: 1px solid #e0e0e0;
            border-radius: 8px;
            padding: 1rem;
            min-height: 500px;
            display: flex;
            flex-direction: column;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
        }

        .calculator-section:hover {
            transform: translateY(-5px);
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        }

        .section-header {
            text-align: center;
            margin-bottom: 1rem;
            padding-bottom: 0.5rem;
            border-bottom: 1px solid #e0e0e0;
        }

        .section-header h3 {
            color: #333;
            font-size: 1.1rem;
            margin-bottom: 0.25rem;
        }

        .section-header p {
            color: #666;
            font-size: 0.8rem;
        }

        .compact-calculator {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1rem;
            flex-grow: 1;
        }

        .input-section {
            background-color: #fff;
            padding: 1rem;
            border-radius: 6px;
            border: 1px solid #e0e0e0;
        }

        .input-group {
            margin-bottom: 0.75rem;
        }

        .input-group label {
            display: block;
            margin-bottom: 0.25rem;
            color: #555;
            font-weight: 500;
            font-size: 0.8rem;
        }

        .input-group input,
        .input-group select {
            width: 100%;
            padding: 0.4rem;
            border: 1px solid #ddd;
            border-radius: 4px;
            background-color: #fff;
            color: #333;
            font-size: 0.8rem;
            transition: border-color 0.3s ease;
        }

        .input-group input:focus,
        .input-group select:focus {
            outline: none;
            border-color: #999;
        }

        .radio-group {
            display: flex;
            gap: 0.5rem;
            flex-wrap: wrap;
        }

        .radio-group input[type="radio"] {
            width: auto;
            margin-right: 0.25rem;
        }

        .radio-group label {
            display: flex;
            align-items: center;
            cursor: pointer;
            margin-bottom: 0;
            padding: 0.25rem 0.5rem;
            border: 1px solid #ddd;
            border-radius: 4px;
            transition: all 0.3s ease;
            font-size: 0.7rem;
            background-color: #fff;
            color: #333;
        }

        .radio-group input[type="radio"]:checked + label {
            background-color: #f0f0f0;
            border-color: #999;
        }

        .toggle-group {
            display: flex;
            margin-bottom: 0.25rem;
        }

        .toggle-btn {
            flex: 1;
            padding: 0.3rem;
            background-color: #fff;
            color: #333;
            border: 1px solid #ddd;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 0.7rem;
            font-weight: 500;
        }

        .toggle-btn:first-child {
            border-radius: 4px 0 0 4px;
        }

        .toggle-btn:last-child {
            border-radius: 0 4px 4px 0;
        }

        .toggle-btn.active {
            background-color: #f0f0f0;
            border-color: #999;
        }

        .height-input {
            display: none;
        }

        .height-input.active {
            display: block;
        }

        .height-input input {
            margin-bottom: 0.25rem;
        }

        #bf-height-ft input,
        #tdee-height-ft input,
        #adv-height-ft input {
            width: calc(50% - 0.25rem);
            display: inline-block;
        }

        #bf-height-ft input:first-child,
        #tdee-height-ft input:first-child,
        #adv-height-ft input:first-child {
            margin-right: 0.5rem;
        }

        .custom-macro-inputs {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 0.5rem;
        }

        .custom-macro-inputs div {
            display: flex;
            flex-direction: column;
        }

        .custom-macro-inputs label {
            font-size: 0.7rem;
            margin-bottom: 0.125rem;
            color: #555;
        }

        .custom-macro-inputs input {
            padding: 0.3rem;
        }

        .button-group {
            display: flex;
            gap: 0.5rem;
            margin-top: 1rem;
        }

        .calculate-btn,
        .reset-btn {
            flex: 1;
            padding: 0.5rem 0.75rem;
            border: none;
            border-radius: 4px;
            font-size: 0.8rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .calculate-btn {
            background-color: #333;
            color: #fff;
        }

        .calculate-btn:hover {
            background-color: #555;
        }

        .reset-btn {
            background-color: #fff;
            color: #333;
            border: 1px solid #ddd;
        }

        .reset-btn:hover {
            background-color: #f0f0f0;
        }

        .output-section {
            background-color: #fff;
            padding: 1rem;
            border-radius: 6px;
            border: 1px solid #e0e0e0;
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
        }

        .result-card {
            background-color: #f9f9f9;
            padding: 0.75rem;
            border-radius: 6px;
            border: 1px solid #e0e0e0;
        }

        .result-card h4 {
            color: #333;
            margin-bottom: 0.5rem;
            text-align: center;
            font-size: 0.9rem;
        }

        .result-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 0.5rem;
            padding: 0.25rem 0;
            border-bottom: 1px solid #eee;
            font-size: 0.8rem;
        }

        .result-item:last-child {
            margin-bottom: 0;
            border-bottom: none;
        }

        .result-item.highlight {
            background-color: #f0f0f0;
            color: #333;
            padding: 0.5rem;
            border-radius: 4px;
            font-weight: bold;
            font-size: 1rem;
            justify-content: center;
        }

        .result-label {
            color: #666;
            font-weight: 500;
        }

        .result-value {
            color: #333;
            font-weight: bold;
        }

        .macro-breakdown {
            margin-top: 0.5rem;
        }

        .macro-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0.5rem;
            margin-bottom: 0.25rem;
            background-color: #fff;
            border-radius: 4px;
            border-left: 3px solid #ddd;
            font-size: 0.8rem;
        }

        .macro-name {
            color: #333;
            font-weight: 600;
        }

        .macro-value {
            color: #333;
            font-weight: bold;
        }

        .rep-max-table {
            max-height: 200px;
            overflow-y: auto;
        }

        .rep-table-header {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 0.5rem;
            padding: 0.5rem;
            background-color: #f0f0f0;
            color: #333;
            font-weight: bold;
            border-radius: 4px 4px 0 0;
            text-align: center;
            font-size: 0.8rem;
        }

        .rep-table-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 0.5rem;
            padding: 0.4rem;
            border-bottom: 1px solid #eee;
            text-align: center;
            font-size: 0.7rem;
            background-color: #fff;
        }

        .rep-table-row:nth-child(even) {
            background-color: #f9f9f9;
        }

        .rep-table-row:hover {
            background-color: #f0f0f0;
        }

        .info-section {
            background-color: #f0f0f0;
            padding: 0.75rem;
            border-radius: 6px;
            border-left: 3px solid #ddd;
            margin-top: 0.5rem;
        }

        .info-section p {
            color: #666;
            line-height: 1.4;
            font-size: 0.8rem;
        }

        .faq-container {
            margin-top: 2rem;
            max-width: 100%;
            padding: 2rem 0;
        }

        .faq-header {
            text-align: center;
            margin-bottom: 2rem;
        }

        .faq-header h2 {
            font-size: 2rem;
            font-weight: 300;
            margin-bottom: 0.5rem;
            color: #ffffff;
        }

        .faq-header p {
            color: #666;
            font-size: 1.1rem;
        }

        .faq-item {
            border-bottom: 1px solid #ffffff;
            margin-bottom: 0;
        }

        .faq-question {
            width: 100%;
            background: none;
            border: none;
            color: #ffffff;
            padding: 1.5rem 0;
            font-size: 1.1rem;
            font-weight: 400;
            text-align: left;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: color 0.3s ease;
        }

        .faq-question:hover {
            color: #ff0000;
        }

        .faq-question span:first-child {
            flex: 1;
            padding-right: 1rem;
        }

        .icon {
            font-size: 1.5rem;
            font-weight: 300;
            min-width: 20px;
            text-align: center;
            transition: transform 0.3s ease;
            color: #ffffff;
        }

        .faq-item.active .icon {
            transform: rotate(45deg);
        }

        .faq-answer {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease-out;
            background-color: #fff;
        }

        .faq-item.active .faq-answer {
            max-height: 1000px;
            transition: max-height 0.5s ease-in;
        }

        .faq-answer p,
        .faq-answer ul,
        .faq-answer .strategies,
        .faq-answer .age-ranges {
            padding: 1.5rem;
            color: #444;
            font-size: 0.95rem;
            line-height: 1.7;
        }

        .faq-answer ul {
            padding-left: 3rem;
            padding-top: 0;
        }

        .faq-answer li {
            margin-bottom: 0.5rem;
            color: #555;
        }

        .faq-answer h4 {
            color: #333;
            font-size: 1rem;
            margin-bottom: 0.5rem;
            font-weight: 500;
        }

        .faq-answer strong {
            color: #333;
            font-weight: 500;
        }

        .age-ranges {
            padding-top: 0 !important;
        }

        .age-ranges h4:first-child {
            margin-top: 0;
        }

        .age-ranges h4:not(:first-child) {
            margin-top: 1.5rem;
        }

        .strategies p {
            margin-bottom: 1rem;
            padding: 0;
        }

        .strategies p:last-child {
            margin-bottom: 0;
        }

        /* =========================
           MOBILE RESPONSIVE IMPROVEMENTS
           Added from the edits file
        ========================= */

        /* Fix page container responsive padding */
        .page-container {
            padding: 150px 2rem 2rem 2rem; /* Simplified padding */
        }

        /* Improved mobile breakpoints */
        @media (max-width: 1200px) {
            .calculators-grid {
                grid-template-columns: 1fr;
                gap: 1rem;
            }
            
            .calculator-section {
                min-height: auto;
            }

            body {
                padding-left: 2rem;
                padding-right: 2rem;
            }
        }

        @media (max-width: 1024px) {
            .page-container {
                padding: 120px 1.5rem 1.5rem 1.5rem;
            }
        }

        @media (max-width: 768px) {
            .page-container {
                padding: 100px 1rem 1rem 1rem;
            }
            
            /* Stack calculators vertically on tablets */
            .calculators-grid {
                grid-template-columns: 1fr;
                gap: 1.5rem;
            }
            
            /* Better calculator layout on mobile */
            .compact-calculator {
                grid-template-columns: 1fr;
                gap: 1rem;
            }
            
            /* Improve section headers */
            .section-header h3 {
                font-size: 1.2rem;
                line-height: 1.3;
            }
            
            .section-header p {
                font-size: 0.9rem;
            }
            
            /* Better input groups */
            .input-group {
                margin-bottom: 1rem;
            }
            
            .input-group label {
                font-size: 0.9rem;
                margin-bottom: 0.5rem;
            }
            
            .input-group input,
            .input-group select {
                padding: 0.75rem;
                font-size: 1rem; /* Prevent zoom on iOS */
                border-radius: 6px;
            }
            
            /* Fix radio buttons on mobile */
            .radio-group {
                flex-direction: row;
                flex-wrap: wrap;
                gap: 0.5rem;
            }
            
            .radio-group label {
                font-size: 0.85rem;
                padding: 0.5rem 0.75rem;
                min-width: auto;
                flex: 1;
                text-align: center;
                justify-content: center;
            }
            
            /* Better toggle buttons */
            .toggle-group {
                margin-bottom: 0.5rem;
            }
            
            .toggle-btn {
                padding: 0.6rem;
                font-size: 0.9rem;
                font-weight: 600;
            }
            
            /* Improve custom macro inputs */
            .custom-macro-inputs {
                grid-template-columns: 1fr;
                gap: 0.75rem;
            }
            
            .custom-macro-inputs input {
                padding: 0.6rem;
            }
            
            /* Better button groups */
            .button-group {
                flex-direction: column;
                gap: 0.75rem;
                margin-top: 1.5rem;
            }
            
            .calculate-btn,
            .reset-btn {
                padding: 0.75rem 1rem;
                font-size: 1rem;
                font-weight: 600;
                border-radius: 6px;
            }
            
            /* Improve result cards */
            .result-card {
                padding: 1rem;
                margin-bottom: 1rem;
            }
            
            .result-card h4 {
                font-size: 1.1rem;
                margin-bottom: 0.75rem;
            }
            
            .result-item {
                padding: 0.5rem 0;
                font-size: 0.9rem;
            }
            
            .result-item.highlight {
                padding: 0.75rem;
                font-size: 1.2rem;
            }
            
            /* Better macro breakdown */
            .macro-item {
                padding: 0.75rem;
                margin-bottom: 0.5rem;
                font-size: 0.9rem;
            }
            
            /* Improve rep max table */
            .rep-max-table {
                max-height: 250px;
            }
            
            .rep-table-header,
            .rep-table-row {
                padding: 0.6rem;
                font-size: 0.85rem;
            }
            
            /* Better FAQ section */
            .faq-header h2 {
                font-size: 1.8rem;
                margin-bottom: 1rem;
            }
            
            .faq-header p {
                font-size: 1rem;
            }
            
            .faq-question {
                padding: 1.2rem 0;
                font-size: 1rem;
            }
            
            .faq-answer p,
            .faq-answer ul,
            .faq-answer .strategies,
            .faq-answer .age-ranges {
                padding: 1rem;
                font-size: 0.9rem;
                line-height: 1.6;
            }
            
            .icon {
                font-size: 1.4rem;
            }
        }

        @media (max-width: 480px) {
            .page-container {
                padding: 90px 0.75rem 0.75rem 0.75rem;
            }
            
            /* Smaller calculator sections */
            .calculator-section {
                padding: 1rem;
                border-radius: 6px;
            }
            
            .section-header h3 {
                font-size: 1.1rem;
            }
            
            .section-header p {
                font-size: 0.8rem;
            }
            
            /* Compact input sections */
            .input-section,
            .output-section {
                padding: 0.75rem;
            }
            
            .input-group {
                margin-bottom: 0.75rem;
            }
            
            .input-group label {
                font-size: 0.85rem;
            }
            
            .input-group input,
            .input-group select {
                padding: 0.6rem;
                font-size: 1rem;
            }
            
            /* Stack radio buttons vertically on very small screens */
            .radio-group {
                flex-direction: column;
                gap: 0.3rem;
            }
            
            .radio-group label {
                font-size: 0.8rem;
                padding: 0.4rem 0.6rem;
            }
            
            /* Vertical toggle buttons */
            .toggle-group {
                flex-direction: column;
                gap: 0.25rem;
            }
            
            .toggle-btn {
                border-radius: 4px;
                padding: 0.5rem;
                font-size: 0.85rem;
            }
            
            /* Smaller height inputs */
            #bf-height-ft input,
            #tdee-height-ft input,
            #adv-height-ft input {
                width: calc(50% - 0.125rem);
                margin-bottom: 0.25rem;
            }
            
            /* Compact result cards */
            .result-card {
                padding: 0.75rem;
            }
            
            .result-card h4 {
                font-size: 1rem;
            }
            
            .result-item {
                font-size: 0.85rem;
            }
            
            .result-item.highlight {
                font-size: 1.1rem;
                padding: 0.6rem;
            }
            
            /* Smaller macro items */
            .macro-item {
                padding: 0.6rem;
                font-size: 0.85rem;
            }
            
            /* Compact FAQ */
            .faq-header h2 {
                font-size: 1.6rem;
            }
            
            .faq-question {
                padding: 1rem 0;
                font-size: 0.95rem;
            }
            
            .faq-answer p,
            .faq-answer ul,
            .faq-answer .strategies,
            .faq-answer .age-ranges {
                padding: 0.75rem;
                font-size: 0.85rem;
            }
            
            .icon {
                font-size: 1.2rem;
            }
        }

        /* Extra small devices (phones in portrait) */
        @media (max-width: 360px) {
            .page-container {
                padding: 80px 0.5rem 0.5rem 0.5rem;
            }
            
            .calculator-section {
                padding: 0.75rem;
            }
            
            .input-section,
            .output-section {
                padding: 0.5rem;
            }
            
            .section-header h3 {
                font-size: 1rem;
            }
            
            .input-group input,
            .input-group select {
                padding: 0.5rem;
                font-size: 0.9rem;
            }
            
            .calculate-btn,
            .reset-btn {
                padding: 0.6rem;
                font-size: 0.9rem;
            }
            
            .result-card {
                padding: 0.5rem;
            }
            
            .faq-question {
                font-size: 0.9rem;
            }
        }

        /* Landscape orientation improvements */
        @media (max-width: 768px) and (orientation: landscape) {
            .page-container {
                padding-top: 80px;
            }
            
            .calculators-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 1rem;
            }
            
            .compact-calculator {
                grid-template-columns: 1fr 1fr;
                gap: 0.75rem;
            }
        }

        /* Touch-friendly improvements */
        @media (hover: none) and (pointer: coarse) {
            .calculate-btn,
            .reset-btn,
            .toggle-btn,
            .faq-question {
                min-height: 48px; /* Minimum touch target size */
            }
            
            .radio-group label {
                min-height: 40px;
            }
            
            .input-group input,
            .input-group select {
                min-height: 48px;
            }
        }

        /* Accessibility improvements */
        @media (prefers-reduced-motion: reduce) {
            .calculator-section,
            .toggle-btn,
            .calculate-btn,
            .reset-btn,
            .faq-question,
            .icon {
                transition: none;
            }
        }

        /* High contrast mode support */
        @media (prefers-contrast: high) {
            .calculator-section {
                border: 2px solid #000;
            }
            
            .input-section,
            .output-section {
                border: 1px solid #000;
            }
            
            .toggle-btn.active {
                background-color: #000;
                color: #fff;
            }
        }

        ::-webkit-scrollbar {
            width: 6px;
        }

        ::-webkit-scrollbar-track {
            background-color: #f0f0f0;
        }

        ::-webkit-scrollbar-thumb {
            background-color: #ccc;
            border-radius: 3px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background-color: #999;
        }
    