/* ==========================================================================
   FINANCIAL CALCULATOR HUB STYLES
   Inspired by modern financial platforms, tailored to site visual identity
   ========================================================================== */

:root {
    --calc-primary: #2ecc71;
    --calc-primary-hover: #27ae60;
    --calc-primary-glow: rgba(46, 204, 113, 0.25);
    --calc-dark-bg: #19140e;
    --calc-card-bg: #261f17;
    --calc-card-border: rgba(255, 255, 255, 0.08);
    --calc-text-light: #ffffff;
    --calc-text-muted: #b0a595;
    --calc-accent-gold: #e67e22;
    --calc-accent-blue: #3498db;
    --calc-accent-purple: #9b59b6;
    --calc-light-bg: #f8fafc;
    --calc-shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.15);
    --calc-shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.3);
    --calc-radius: 16px;
    --calc-font: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* HARDWARE ACCELERATION & ZERO FLICKER COMPOSITING */
.calc-result-card,
.calc-chart-container,
.calc-range-slider,
.calc-output-panel,
.calc-active-container,
.calc-card-tile {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

/* 0. HIDE DEFAULT WORDPRESS THEME TITLE BANNER & OVERLAY ON CALCULATOR PAGE */
.page-template-page-calculator .greennature-page-title-wrapper,
.page-template-page-calculator .greennature-page-title-overlay,
body.page-template-page-calculator .greennature-page-title-wrapper,
body.page-template-page-calculator .greennature-page-title-overlay,
.greennature-page-title-overlay {
    display: none !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

.calc-hub-wrapper {
    font-family: var(--calc-font);
    color: #1f2937;
    background-color: #f8fafc;
    width: 100%;
    overflow-x: hidden;
}

/* --------------------------------------------------------------------------
   1. HERO SECTION
   -------------------------------------------------------------------------- */
.calc-hero-section {
    background: linear-gradient(135deg, #1a140d 0%, #2a2016 50%, #1f1810 100%);
    padding: 220px 20px 80px 20px !important;
    text-align: center;
    position: relative;
    color: #ffffff;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.calc-hero-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(rgba(46, 204, 113, 0.12) 1px, transparent 1px),
        radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 32px 32px;
    background-position: 0 0, 16px 16px;
    opacity: 0.6;
    pointer-events: none;
}

.calc-hero-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.calc-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(46, 204, 113, 0.15);
    border: 1px solid rgba(46, 204, 113, 0.35);
    color: var(--calc-primary);
    padding: 8px 22px;
    border-radius: 50px;
    font-size: 13.5px;
    font-weight: 600;
    margin-bottom: 22px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.15);
}

.calc-hero-title {
    font-size: 46px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 18px 0;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.calc-hero-subtitle {
    font-size: 18px;
    color: #d1c7b8;
    line-height: 1.65;
    margin: 0 auto 40px auto;
    max-width: 740px;
    font-weight: 400;
}

/* --------------------------------------------------------------------------
   2. SEARCH BOX
   -------------------------------------------------------------------------- */
.calc-search-wrapper {
    max-width: 640px;
    margin: 0 auto;
    position: relative;
    z-index: 5;
}

.calc-search-input-group {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.calc-search-icon {
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 18px;
    pointer-events: none;
    transition: color 0.3s ease;
    z-index: 2;
}

.calc-search-input {
    width: 100%;
    height: 58px;
    padding: 0 24px 0 58px !important;
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #ffffff;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease, background 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    box-sizing: border-box;
}

.calc-search-input::placeholder {
    color: #9ca3af;
}

.calc-search-input:focus {
    border-color: var(--calc-primary);
    background: rgba(255, 255, 255, 0.14);
    box-shadow: 0 8px 30px rgba(46, 204, 113, 0.3);
}

.calc-search-input:focus ~ .calc-search-icon {
    color: var(--calc-primary);
}

/* --------------------------------------------------------------------------
   3. CALCULATORS GRID SECTION
   -------------------------------------------------------------------------- */
.calc-grid-section {
    padding: 60px 20px;
    max-width: 1240px;
    margin: 0 auto;
}

.calc-section-header {
    text-align: center;
    margin-bottom: 40px;
}

.calc-section-title {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
}

.calc-section-desc {
    font-size: 15px;
    color: #6b7280;
}

.calc-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.calc-card-tile {
    background: #ffffff;
    border-radius: 16px;
    padding: 28px 24px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
    position: relative;
    overflow: hidden;
}

.calc-card-tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #2ecc71, #27ae60);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.calc-card-tile:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1);
    border-color: rgba(46, 204, 113, 0.4);
}

.calc-card-tile:hover::before {
    opacity: 1;
}

.calc-card-tile.active {
    border-color: var(--calc-primary);
    background: #f0fdf4;
    box-shadow: 0 8px 24px rgba(46, 204, 113, 0.15);
}

.calc-card-top {
    margin-bottom: 20px;
}

.calc-icon-badge {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.2);
    color: var(--calc-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 18px;
    transition: transform 0.3s ease, background-color 0.3s ease;
    flex-shrink: 0;
}

.calc-icon-badge svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    transition: transform 0.3s ease;
}

.calc-card-tile:hover .calc-icon-badge {
    background: var(--calc-primary);
    color: #ffffff;
    transform: scale(1.08) rotate(2deg);
}

.calc-card-tile:hover .calc-icon-badge svg {
    stroke: #ffffff;
    transform: scale(1.1);
}

.calc-card-name {
    font-size: 19px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 8px 0;
    transition: color 0.3s ease;
}

.calc-card-tile:hover .calc-card-name {
    color: var(--calc-primary-hover);
}

.calc-card-desc {
    font-size: 13.5px;
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
}

.calc-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #f3f4f6;
    font-size: 13px;
    font-weight: 600;
    color: var(--calc-primary);
}

.calc-arrow-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4b5563;
    font-size: 12px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.calc-card-tile:hover .calc-arrow-icon {
    background: var(--calc-primary);
    color: #ffffff;
    transform: translateX(4px);
}

.calc-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px 20px;
    background: #ffffff;
    border-radius: 16px;
    border: 1px dashed #d1d5db;
    display: none;
}

/* --------------------------------------------------------------------------
   4. ACTIVE CALCULATOR WORKSPACE SECTION
   -------------------------------------------------------------------------- */
.calc-active-section {
    padding: 20px 20px 60px 20px;
    max-width: 1240px;
    margin: 0 auto;
    scroll-margin-top: 200px;
}

.calc-active-container {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.calc-workspace-header {
    background: linear-gradient(135deg, #1a140d 0%, #261e14 100%);
    padding: 32px 36px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.calc-workspace-title-group {
    display: flex;
    align-items: center;
    gap: 16px;
}

.calc-workspace-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(46, 204, 113, 0.15);
    border: 1px solid rgba(46, 204, 113, 0.3);
    color: var(--calc-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.calc-workspace-icon svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.calc-workspace-title {
    font-size: 26px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.calc-workspace-subtitle {
    font-size: 14px;
    color: #b0a595;
    margin-top: 4px;
}

/* Category Navigation Pills Bar */
.calc-pills-bar {
    display: flex;
    gap: 10px;
    padding: 16px 36px;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    overflow-x: auto;
    scrollbar-width: thin;
}

.calc-pill-btn {
    padding: 8px 18px;
    border-radius: 30px;
    background: #ffffff;
    border: 1px solid #d1d5db;
    color: #4b5563;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.calc-pill-btn:hover {
    border-color: var(--calc-primary);
    color: var(--calc-primary-hover);
}

.calc-pill-btn.active {
    background: var(--calc-primary);
    border-color: var(--calc-primary);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.3);
}

/* Workspace Main Layout: Left Controls, Right Chart & Summary */
.calc-workspace-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 40px 36px;
}

/* Control Group Item */
.calc-control-item {
    margin-bottom: 28px;
}

.calc-control-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.calc-control-label {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
}

.calc-input-box-wrapper {
    display: flex;
    align-items: center;
    background: #f3f4f6;
    border: 1.5px solid #d1d5db;
    border-radius: 10px;
    padding: 4px 12px;
    transition: border-color 0.25s ease, background 0.25s ease;
}

.calc-input-box-wrapper:focus-within {
    border-color: var(--calc-primary);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.18);
}

.calc-input-prefix, .calc-input-suffix {
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    user-select: none;
}

.calc-number-input {
    border: none;
    background: transparent;
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    width: 120px;
    text-align: right;
    outline: none;
    padding: 6px 4px;
    font-family: var(--calc-font);
}

/* Custom Smooth Range Slider - No transitions on value update to avoid drag stutter */
.calc-slider-container {
    position: relative;
    width: 100%;
}

.calc-range-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 5px;
    background: #e5e7eb;
    outline: none;
    cursor: pointer;
    touch-action: none;
}

.calc-range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--calc-primary);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(46, 204, 113, 0.4);
    border: 3px solid #ffffff;
}

.calc-range-slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--calc-primary);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(46, 204, 113, 0.4);
    border: 3px solid #ffffff;
}

.calc-slider-marks {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #9ca3af;
    margin-top: 6px;
}

/* Toggle Switch / Compound Selector Buttons */
.calc-compounding-toggle {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.calc-toggle-btn {
    flex: 1;
    padding: 8px 12px;
    border-radius: 8px;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    font-size: 13px;
    font-weight: 600;
    color: #4b5563;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.calc-toggle-btn.active {
    background: #111827;
    color: #ffffff;
    border-color: #111827;
}

/* Right Panel: Output Cards & Visualization */
.calc-output-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #f8fafc;
    border-radius: 18px;
    padding: 30px;
    border: 1px solid #e2e8f0;
    min-height: 380px;
}

.calc-results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 30px;
}

.calc-results-grid.two-cols {
    grid-template-columns: repeat(2, 1fr);
}

.calc-result-card {
    background: #ffffff;
    padding: 20px 16px;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    border-top: 3.5px solid var(--calc-primary);
    display: flex;
    flex-direction: column;
}

.calc-result-card.alt-accent-1 {
    border-top-color: var(--calc-accent-blue);
}

.calc-result-card.alt-accent-2 {
    border-top-color: var(--calc-accent-gold);
}

.calc-result-label {
    font-size: 12.5px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.calc-result-value {
    font-size: 22px;
    font-weight: 800;
    color: #111827;
    line-height: 1.2;
}

/* Chart Container */
.calc-chart-container {
    position: relative;
    width: 100%;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calc-chart-legend {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 20px;
    font-size: 13px;
    font-weight: 600;
}

.calc-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.calc-legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

/* Amortization Table Modal / Accordion */
.calc-amortization-wrapper {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e5e7eb;
}

.calc-table-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: #111827;
    color: #ffffff;
    border-radius: 30px;
    font-size: 13.5px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background-color 0.25s ease;
}

.calc-table-toggle-btn:hover {
    background: var(--calc-primary-hover);
}

.calc-amortization-table-container {
    max-height: 350px;
    overflow-y: auto;
    margin-top: 16px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    display: none;
}

.calc-amortization-table-container.open {
    display: block;
}

.calc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
    text-align: left;
}

.calc-table th {
    background: #f1f5f9;
    color: #334155;
    padding: 12px 16px;
    font-weight: 700;
    position: sticky;
    top: 0;
    z-index: 2;
}

.calc-table td {
    padding: 10px 16px;
    border-bottom: 1px solid #f1f5f9;
    color: #475569;
}

.calc-table tr:hover td {
    background: #f8fafc;
}

/* --------------------------------------------------------------------------
   5. FORMULA & EXPLANATION SECTION
   -------------------------------------------------------------------------- */
.calc-details-container {
    padding: 40px 36px;
    background: #fafafa;
    border-top: 1px solid #e5e7eb;
}

.calc-formula-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 28px;
    border: 1px solid #e5e7eb;
    margin-bottom: 36px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.calc-detail-title {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.calc-detail-title i {
    color: var(--calc-primary);
}

.calc-formula-display {
    background: #19140e;
    color: #2ecc71;
    padding: 18px 24px;
    border-radius: 12px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 18px;
    font-weight: 700;
    margin: 16px 0;
    overflow-x: auto;
    letter-spacing: 0.5px;
    border-left: 4px solid var(--calc-primary);
}

.calc-formula-vars {
    list-style: none;
    padding: 0;
    margin: 16px 0 0 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.calc-formula-vars li {
    font-size: 14px;
    color: #4b5563;
}

.calc-formula-vars li strong {
    color: #111827;
}

/* Educational Content Grid */
.calc-edu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 36px;
}

.calc-edu-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #e5e7eb;
}

.calc-edu-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 10px 0;
}

.calc-edu-card p, .calc-edu-card ul {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.6;
    margin: 0;
}

.calc-edu-card ul {
    padding-left: 20px;
}

.calc-edu-card li {
    margin-bottom: 6px;
}

/* --------------------------------------------------------------------------
   6. FAQ ACCORDION SECTION
   -------------------------------------------------------------------------- */
.calc-faq-wrapper {
    background: #ffffff;
    border-radius: 16px;
    padding: 28px;
    border: 1px solid #e5e7eb;
}

.calc-faq-list {
    margin-top: 20px;
}

.calc-faq-item {
    border-bottom: 1px solid #e5e7eb;
}

.calc-faq-item:last-child {
    border-bottom: none;
}

.calc-faq-question {
    width: 100%;
    padding: 18px 0;
    background: none;
    border: none;
    text-align: left;
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: color 0.25s ease;
}

.calc-faq-question:hover {
    color: var(--calc-primary-hover);
}

.calc-faq-icon {
    font-size: 14px;
    color: #6b7280;
    transition: transform 0.3s ease;
}

.calc-faq-item.open .calc-faq-icon {
    transform: rotate(180deg);
    color: var(--calc-primary);
}

.calc-faq-answer {
    padding: 0 0 18px 0;
    font-size: 14.5px;
    color: #4b5563;
    line-height: 1.6;
    display: none;
}

.calc-faq-item.open .calc-faq-answer {
    display: block;
}

/* --------------------------------------------------------------------------
   7. CTA SECTION
   -------------------------------------------------------------------------- */
.calc-cta-section {
    background: linear-gradient(135deg, #1f1911 0%, #2a2117 100%);
    padding: 70px 20px;
    text-align: center;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.calc-cta-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.calc-cta-title {
    font-size: 36px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 16px 0;
}

.calc-cta-desc {
    font-size: 17px;
    color: #d1c7b8;
    line-height: 1.6;
    margin: 0 0 36px 0;
}

.calc-cta-btns {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.calc-btn-primary {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: #ffffff;
    padding: 14px 34px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.35);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
}

.calc-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(46, 204, 113, 0.5);
    color: #ffffff;
}

.calc-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 14px 34px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.calc-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    color: #ffffff;
}

/* --------------------------------------------------------------------------
   8. RESPONSIVENESS (DESKTOP, TABLET, MOBILE)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .calc-hero-section {
        padding-top: 180px !important;
    }

    .calc-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .calc-workspace-body {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .calc-hero-section {
        padding-top: 160px !important;
        padding-bottom: 50px !important;
    }

    .calc-hero-title {
        font-size: 32px;
    }
    
    .calc-hero-subtitle {
        font-size: 15px;
    }
    
    .calc-grid {
        grid-template-columns: 1fr;
    }
    
    .calc-workspace-header {
        padding: 24px 20px;
    }
    
    .calc-pills-bar {
        padding: 12px 20px;
    }
    
    .calc-workspace-body {
        padding: 24px 20px;
    }
    
    .calc-results-grid {
        grid-template-columns: 1fr;
    }

    .calc-results-grid.two-cols {
        grid-template-columns: 1fr;
    }
    
    .calc-formula-vars, .calc-edu-grid {
        grid-template-columns: 1fr;
    }
    
    .calc-details-container {
        padding: 24px 20px;
    }
}
