/* Modern CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.5;
    padding: 0;
    margin: 0;
    min-height: 100vh;
}

.container {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    min-height: calc(100vh - 40px);
}

/* Calculator Inputs Section - Left Panel */
.calculator-inputs {
    background: #ffffff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    height: fit-content;
    overflow: visible;
    position: relative;
}

/* Calculator Results Section - Right Panel */
.calculator-results {
    height: fit-content;
    overflow: visible;
}

/* Hide scrollbars for results section when it becomes scrollable */
.calculator-results::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

.calculator-results {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

/* JavaScript will dynamically set the height of results section to match calculator */

/* Logo Container in calculator section */
.logo-container {
    text-align: center;
    margin-bottom: 20px;
}

.main-logo {
    max-width: 120px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.main-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.calculator-inputs h1 {
    text-align: center;
    color: #1a1a1a;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: -0.3px;
}

/* Form Groups - Compact */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: #495057;
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.form-group input[type="number"],
.form-group input[type="checkbox"],
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: #fff;
    color: #333;
}

.form-group input[type="number"]:focus,
.form-group input[type="checkbox"]:focus,
.form-group select:focus {
    outline: none;
    border-color: #007AFF;
    box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.1);
}

.form-group input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
    transform: scale(1.1);
}

/* Form Help Text */
.form-help {
    display: block;
    margin-top: 8px;
    font-size: 0.75rem;
    color: #6c757d;
    line-height: 1.4;
    font-style: italic;
}

.form-help strong {
    color: #495057;
    font-weight: 600;
}

/* Hidden elements */
.hidden {
    display: none !important;
}

/* Encash timing options styling */
#encash-timing-options .schedule-row {
    margin-bottom: 12px;
}

#encash-timing-options .schedule-row:last-child {
    margin-bottom: 0;
}

/* Encash timing container styling */
.encash-timing-container {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.timing-row {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    gap: 10px;
}

.timing-row:last-child {
    margin-bottom: 0;
}

.timing-row label {
    min-width: 120px;
    margin: 0;
    font-weight: 500;
    color: #495057;
    font-size: 0.85rem;
    text-transform: none;
    letter-spacing: normal;
}

.timing-row select,
.timing-row input[type="number"] {
    flex: 1;
    max-width: 200px;
    min-width: 150px;
}

.encash-summary {
    margin-top: 12px;
    padding: 8px 12px;
    background: #e3f2fd;
    border-radius: 6px;
    border-left: 4px solid #2196f3;
}

.encash-summary small {
    color: #1565c0;
    font-weight: 500;
    font-style: normal;
}

/* Encashed amount card styling */
#encashed-amount-card {
    background: #4caf5020 !important;
    border-color: #4caf50 !important;
    color: #4caf50 !important;
}

#encashed-amount-card h3,
#encashed-amount-card p {
    color: #4caf50 !important;
}

/* Tax card styling */
#tax-card {
    background: #ff572220 !important;
    border-color: #ff5722 !important;
    color: #ff5722 !important;
}

#tax-card h3,
#tax-card p {
    color: #ff5722 !important;
}

/* Inflation card styling */
#inflation-card {
    background: #9c27b020 !important;
    border-color: #9c27b0 !important;
    color: #9c27b0 !important;
}

#inflation-card h3,
#inflation-card p {
    color: #9c27b0 !important;
}

/* Contribution Schedule Layout */
.contribution-schedule {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.schedule-row {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    gap: 16px;
}

.schedule-row:last-child {
    margin-bottom: 0;
}

.centered-row {
    justify-content: center;
}

.schedule-label {
    font-size: 0.9rem;
    color: #495057;
    font-weight: 500;
    min-width: 140px;
    text-align: right;
}

.radio-options {
    display: flex;
    gap: 16px;
}

.vertical-options {
    flex-direction: column;
    gap: 12px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 6px;
}

.radio-option input[type="radio"] {
    width: auto;
    margin: 0;
    transform: scale(1.1);
}

.radio-option label {
    margin: 0;
    font-weight: 400;
    color: #666;
    cursor: pointer;
    text-transform: none;
    letter-spacing: normal;
    font-size: 0.85rem;
}

/* Button - Modern Design */
button {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #007AFF, #0056CC);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 16px;
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.3);
    position: relative;
    overflow: hidden;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 122, 255, 0.4);
    background: linear-gradient(135deg, #0056CC, #004499);
}

button:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.3);
}

button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

button:hover::before {
    left: 100%;
}

/* Calculator Results Section - Right Panel */
.calculator-results {
    background: #ffffff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.calculator-results h2 {
    color: #1a1a1a;
    margin-bottom: 24px;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
}

/* Chart Container */
#chart-container {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    margin-bottom: 32px;
    height: 500px;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

#chart-container canvas {
    width: 100% !important;
    height: 100% !important;
    touch-action: manipulation;
}

/* Chart container hover effect */
#chart-container:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* Mobile chart improvements */
@media (max-width: 768px) {
    /* Ensure chart text is readable on mobile */
    #chart-container {
        font-size: 14px;
        overflow: hidden;
    }
    
    /* Mobile chart canvas optimization */
    #chart-container canvas {
        max-width: 100%;
        height: auto !important;
        touch-action: manipulation;
    }
    
    /* Mobile chart container optimization */
    #chart-container {
        overflow: hidden;
        position: relative;
    }
    
    /* Ensure chart fits mobile viewport */
    #chart-container .chartjs-chart {
        width: 100% !important;
        height: 100% !important;
    }
}

/* Results Summary - Compact Cards with Colors Matching Chart */
.results-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.result-card {
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    /* Default colors that will be overridden by JavaScript */
    background: rgba(108, 117, 125, 0.125); /* Low opacity gray background */
    border-color: #6c757d;
    color: #6c757d;
}

.result-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.result-card h3 {
    color: #666;
    font-size: 0.8rem;
    margin-bottom: 8px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.result-card p {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

/* Card colors are now set dynamically via JavaScript to match chart colors */

/* Stats Section */
#stats {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 6px;
    margin-bottom: 24px;
    border: 1px solid #e9ecef;
}

#stats p {
    margin: 6px 0;
    color: #666;
    font-weight: 400;
    font-size: 0.9rem;
}

/* Table Container */
.table-container {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

/* Table title and hint - always in normal page flow */
.table-container h3,
.table-container .monthly-hint {
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
    width: 100%;
    box-sizing: border-box;
}

/* Mobile padding for table section */
@media (max-width: 768px) {
    .table-container h3 {
        padding: 0 20px;
        margin-bottom: 16px;
    }
    
    .table-container .monthly-hint {
        padding: 0 20px;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .table-container h3 {
        padding: 0 16px;
        margin-bottom: 14px;
    }
    
    .table-container .monthly-hint {
        padding: 0 16px;
        margin-bottom: 18px;
    }
}

.table-container h3 {
    color: #1a1a1a;
    margin-bottom: 16px;
    font-size: 1.2rem;
    font-weight: 500;
    text-align: center;
}

/* Monthly details hint styling */
.monthly-hint {
    text-align: center;
    color: #6c757d;
    margin-bottom: 20px;
    font-size: 0.85rem;
    font-weight: 400;
    padding: 12px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    position: relative;
}

.monthly-hint::before {
    content: '💡';
    margin-right: 8px;
    font-size: 1rem;
}

/* Table Styles - Compact */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #e9ecef;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

th, td {
    padding: 12px 8px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

th {
    background: #007AFF;
    color: white;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

td {
    color: #333;
    font-weight: 400;
}

/* Alternating row colors for yearly rows only */
tbody tr[data-year]:nth-child(even) {
    background-color: #f8f9fa;
}

tbody tr[data-year]:nth-child(odd) {
    background-color: #ffffff;
}

tbody tr[data-year]:hover {
    background-color: rgba(0, 122, 255, 0.05);
    transition: background-color 0.2s ease;
}

tr[data-year] {
    cursor: pointer;
    transition: all 0.2s ease;
}

tr[data-year]:hover {
    background-color: #e3f2fd;
}

tr.expanded {
    background-color: rgba(0, 122, 255, 0.1) !important;
    border-left: 3px solid #007AFF;
}

.monthly-row th {
    background: #6c757d;
    color: white;
    font-size: 0.75rem;
    padding: 8px 6px;
    font-weight: 500;
}

.monthly-row td {
    background: #fafafa;
    padding-left: 24px;
    font-size: 0.8rem;
    color: #666;
}

/* Monthly row styling - override any inherited backgrounds */
.monthly-row {
    background-color: #fafafa !important;
}

.monthly-row td {
    background-color: #fafafa !important;
}

/* Monthly row headers keep their dark styling */
.monthly-row th {
    background: #6c757d !important;
    color: white;
    font-size: 0.75rem;
    padding: 8px 6px;
    font-weight: 500;
}

/* Ensure monthly rows are never affected by nth-child selectors */
.monthly-row:nth-child(even),
.monthly-row:nth-child(odd) {
    background-color: #fafafa !important;
}

/* Utility Classes */
.hidden {
    display: none;
}

/* Mobile-specific improvements */
@media (max-width: 768px) {
    /* Better touch targets */
    .radio-option input[type="radio"] {
        transform: scale(1.2);
        margin-right: 10px;
    }
    
    .radio-option label {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    /* Improved form spacing */
    .contribution-schedule {
        padding: 20px;
        margin-top: 8px;
    }
    
    /* Better button touch area */
    button {
        min-height: 48px;
        touch-action: manipulation;
    }
    
    /* Chart legend mobile optimization */
    .chart-legend {
        flex-direction: column;
        gap: 8px;
    }
    
    /* Mobile table optimization */
    .table-container {
        overflow: hidden;
    }
    
    .table-container table {
        font-size: 0.75rem;
    }
    
    .table-container th,
    .table-container td {
        padding: 8px 4px;
        font-size: 0.75rem;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .calculator-inputs {
        position: static;
        order: 1;
        height: fit-content;
    }
    
    .calculator-results {
        order: 2;
        height: auto;
        overflow: visible;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 16px;
        gap: 16px;
    }
    
    .calculator-inputs,
    .calculator-results {
        padding: 20px;
        height: auto;
        overflow: visible;
    }
    
    .calculator-inputs h1 {
        font-size: 1.6rem;
        margin-bottom: 20px;
    }
    
    .results-summary {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .schedule-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .schedule-label {
        min-width: auto;
        text-align: left;
        margin-bottom: 4px;
    }
    
    .form-group {
        margin-bottom: 14px;
    }
    
    .form-group input[type="number"],
    .form-group input[type="checkbox"],
    .form-group select {
        padding: 10px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    button {
        padding: 14px 20px;
        font-size: 16px;
    }
    
    /* Table responsive improvements */
    .table-container {
        overflow: visible;
        margin: 0;
        padding: 20px;
    }
    
    .table-container table {
        overflow-x: auto;
        margin: 0;
        padding: 0;
        display: block;
        width: 100%;
        max-width: 100%;
    }
    
    table {
        min-width: 100%;
        font-size: 0.8rem;
        table-layout: auto;
    }
    
    th, td {
        padding: 10px 8px;
        font-size: 0.8rem;
        white-space: nowrap;
        min-width: auto;
    }
    
    /* Chart container mobile optimization */
    #chart-container {
        height: 350px;
        margin: 0 0 24px 0;
        padding: 16px;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    #chart-container canvas {
        max-height: 100%;
        touch-action: manipulation;
    }
    
    /* Chart legend mobile optimization */
    .chart-legend {
        flex-direction: column;
        gap: 8px;
        margin-bottom: 16px;
    }
    
    .chart-legend-item {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 0.8rem;
    }
    
    /* Chart title mobile optimization */
    #chart-container .chart-title {
        font-size: 1.1rem;
        margin-bottom: 16px;
        text-align: center;
    }
    
    /* Chart tooltip mobile optimization */
    .chartjs-tooltip {
        font-size: 0.8rem;
        padding: 8px 12px;
        border-radius: 6px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }
    
    /* Mobile chart text optimization */
    .chartjs-chart {
        font-size: 14px !important;
    }
    
    /* Mobile chart axis labels */
    .chartjs-chart .chartjs-axis-label {
        font-size: 12px !important;
        font-weight: 600 !important;
    }
    
    /* Mobile chart tick labels */
    .chartjs-chart .chartjs-tick-label {
        font-size: 11px !important;
        font-weight: 500 !important;
    }
    
    /* Mobile chart legend text */
    .chartjs-chart .chartjs-legend-item {
        font-size: 12px !important;
        font-weight: 500 !important;
    }
    
    /* Monthly hint mobile styling - no horizontal scroll */
    .monthly-hint {
        font-size: 0.8rem;
        padding: 10px 16px;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 12px;
        gap: 12px;
    }
    
    .calculator-inputs,
    .calculator-results {
        padding: 16px;
        height: auto;
        overflow: visible;
    }
    
    .calculator-inputs h1 {
        font-size: 1.4rem;
        margin-bottom: 16px;
    }
    
    .form-group label {
        font-size: 0.8rem;
    }
    
    .form-group input[type="number"],
    .form-group input[type="checkbox"],
    .form-group select {
        padding: 8px 10px;
        font-size: 16px;
    }
    
    button {
        padding: 12px 16px;
        font-size: 16px;
    }
    
    /* Table mobile optimization */
    .table-container {
        margin: 0;
        padding: 16px;
    }
    
    .table-container table {
        overflow-x: auto;
        margin: 0;
        padding: 0;
        display: block;
        width: 100%;
        max-width: 100%;
        min-width: 100%;
        font-size: 0.75rem;
    }
    
    th, td {
        padding: 8px 6px;
        font-size: 0.75rem;
        white-space: normal;
        word-wrap: break-word;
    }
    
    .monthly-row td {
        padding-left: 12px;
    }
    
    /* Chart container small mobile */
    #chart-container {
        height: 300px;
        margin: 0 0 20px 0;
        padding: 12px;
        border-radius: 6px;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    }
    
    /* Chart small mobile optimizations */
    #chart-container canvas {
        max-height: 100%;
        touch-action: manipulation;
    }
    
    /* Chart legend small mobile */
    .chart-legend {
        flex-direction: column;
        gap: 6px;
        margin-bottom: 12px;
    }
    
    .chart-legend-item {
        font-size: 0.75rem;
        gap: 6px;
    }
    
    /* Chart title small mobile */
    #chart-container .chart-title {
        font-size: 1rem;
        margin-bottom: 12px;
    }
    
    /* Chart tooltip small mobile */
    .chartjs-tooltip {
        font-size: 0.75rem;
        padding: 6px 10px;
        border-radius: 4px;
    }
    
    /* Small mobile chart text optimization */
    .chartjs-chart {
        font-size: 13px !important;
    }
    
    /* Small mobile chart axis labels */
    .chartjs-chart .chartjs-axis-label {
        font-size: 11px !important;
        font-weight: 600 !important;
    }
    
    /* Small mobile chart tick labels */
    .chartjs-chart .chartjs-tick-label {
        font-size: 10px !important;
        font-weight: 500 !important;
    }
    
    /* Small mobile chart legend text */
    .chartjs-chart .chartjs-legend-item {
        font-size: 11px !important;
        font-weight: 500 !important;
    }
    
    /* Monthly hint small mobile - no horizontal scroll */
    .monthly-hint {
        font-size: 0.75rem;
        padding: 8px 12px;
        margin-bottom: 16px;
    }
    
    /* Results summary mobile */
    .results-summary {
        gap: 8px;
    }
    
    .result-card {
        padding: 16px;
    }
    
    .result-card h3 {
        font-size: 0.75rem;
    }
    
    .result-card p {
        font-size: 1.3rem;
    }
}

/* Contribution increase frequency styling */
#contribution-increase-frequency {
    min-width: 120px;
}

/* Tax and inflation section styling */
#tax-rate,
#inflation-rate {
    text-align: center;
}

/* Breadcrumb Navigation Styling */
.breadcrumb-nav {
    background: #ffffff;
    padding: 16px 20px;
    border-bottom: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 0;
}

.breadcrumb {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item:not(:last-child)::after {
    content: '›';
    margin: 0 12px;
    color: #6c757d;
    font-weight: 600;
    font-size: 1.1rem;
}

.breadcrumb-item a {
    color: #007AFF;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    padding: 4px 8px;
    border-radius: 4px;
}

.breadcrumb-item a:hover {
    color: #0056CC;
    background-color: rgba(0, 122, 255, 0.1);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: #6c757d;
    font-weight: 600;
    padding: 4px 8px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

/* SEO Content Section Styling */
.seo-content {
    background: #ffffff;
    padding: 80px 20px;
    margin-top: 60px;
    border-top: 1px solid #e9ecef;
    position: relative;
}

.seo-content .container {
    max-width: 900px;
    margin: 0 auto;
    display: block;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0;
    overflow: visible;
}

/* Content Header */
.content-header {
    text-align: center;
    margin-bottom: 60px;
    padding: 0 20px;
}

.content-header h2 {
    color: #1a1a1a;
    font-size: 2.6rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.content-header .lead {
    font-size: 1.2rem;
    color: #6c757d;
    font-weight: 500;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.content-header .subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
    font-weight: 400;
}

/* Content Body */
.content-body {
    margin-bottom: 60px;
}

/* Content Sections */
.content-section {
    margin-bottom: 60px;
    padding: 0 20px;
}

.content-section:last-child {
    margin-bottom: 0;
}

.content-section h3 {
    color: #1a1a1a;
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0 0 24px 0;
    line-height: 1.3;
    position: relative;
    padding-bottom: 12px;
}

.content-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: #6c757d;
    border-radius: 1px;
}

.content-section h4 {
    color: #2d3748;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 28px 0 16px 0;
    line-height: 1.4;
}

.content-section h5 {
    color: #2d3748;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 20px 0 10px 0;
    line-height: 1.4;
}

.content-section h6 {
    color: #2d3748;
    font-size: 1rem;
    font-weight: 600;
    margin: 16px 0 8px 0;
    line-height: 1.4;
}

.content-section p {
    color: #4a5568;
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 18px;
    font-weight: 400;
}

/* Lists */
.content-section ul,
.content-section ol {
    margin: 20px 0;
    padding-left: 0;
}

.content-section li {
    color: #4a5568;
    font-size: 1.05rem;
    line-height: 1.5;
    margin-bottom: 10px;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #6c757d;
    box-shadow: none;
    transition: all 0.2s ease;
    position: relative;
    list-style: none;
}

.content-section li:hover {
    background: #e9ecef;
    transform: none;
}

.content-section li::before {
    display: none;
}

/* Special List Styles */
.definition-list li {
    background: #f8f9fa;
    border-left-color: #495057;
}

.definition-list li::before {
    color: #495057;
}

.example-list li {
    background: #f8f9fa;
    border-left-color: #495057;
}

.example-list li::before {
    color: #495057;
}

.benefit-list li {
    background: #f8f9fa;
    border-left-color: #495057;
}

.benefit-list li::before {
    color: #495057;
}

.strategy-list li {
    background: #f8f9fa;
    border-left-color: #495057;
}

.strategy-list li::before {
    color: #495057;
}

.factor-list li {
    background: #f8f9fa;
    border-left-color: #495057;
}

.factor-list li::before {
    color: #495057;
}

.resource-list li {
    background: #f8f9fa;
    border-left-color: #495057;
}

.resource-list li::before {
    color: #495057;
}

.principles-list li {
    background: #f8f9fa;
    border-left-color: #495057;
    font-weight: 500;
}

.principles-list li::before {
    color: #495057;
}

/* Strong Text */
.content-section strong {
    color: #1a1a1a;
    font-weight: 600;
}

/* Formula Box */
.content-section .formula-box {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 24px;
    margin: 28px 0;
    text-align: center;
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    color: #1a1a1a;
    font-weight: 600;
    box-shadow: none;
    position: relative;
}

.content-section .formula-box strong {
    background: none;
    color: #1a1a1a;
    font-size: 1.3rem;
}

/* Example Box */
.example-box {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 24px;
    margin: 28px 0;
    box-shadow: none;
}

.example-box h4 {
    color: #495057;
    margin-top: 0;
    margin-bottom: 18px;
    font-size: 1.2rem;
}

.example-box .result-highlight {
    background: #495057;
    color: white;
    padding: 10px 16px;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    margin: 18px 0;
    box-shadow: none;
}

/* Grid Layouts */
.frequency-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 28px 0;
}

.frequency-item {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    box-shadow: none;
    transition: all 0.2s ease;
}

.frequency-item:hover {
    border-color: #6c757d;
    transform: none;
}

.frequency-item h4 {
    color: #495057;
    margin-top: 0;
    margin-bottom: 14px;
    font-size: 1.1rem;
}

.frequency-item p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.info-item {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    box-shadow: none;
}

.info-item h5 {
    color: #495057;
    margin-top: 0;
    margin-bottom: 14px;
    font-size: 1rem;
}

.info-item p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

.comparison-box {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 24px;
    margin: 28px 0;
    box-shadow: none;
}

.comparison-box h5 {
    color: #495057;
    margin-top: 0;
    margin-bottom: 18px;
    font-size: 1.2rem;
    text-align: center;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.comparison-item {
    background: #ffffff;
    padding: 18px;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    text-align: center;
}

.comparison-item h6 {
    color: #495057;
    margin-top: 0;
    margin-bottom: 14px;
    font-size: 1rem;
}

.comparison-item .result-highlight {
    background: #495057;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: 600;
    margin: 14px 0 0 0;
    font-size: 0.9rem;
}

.investment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 28px 0;
}

.investment-item {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    box-shadow: none;
    transition: all 0.2s ease;
}

.investment-item:hover {
    border-color: #6c757d;
    transform: none;
}

.investment-item h4 {
    color: #495057;
    margin-top: 0;
    margin-bottom: 14px;
    font-size: 1.1rem;
}

.investment-item p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

.mistakes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 28px 0;
}

.mistake-item {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    box-shadow: none;
    transition: all 0.2s ease;
}

.mistake-item:hover {
    border-color: #6c757d;
    transform: none;
}

.mistake-item h4 {
    color: #495057;
    margin-top: 0;
    margin-bottom: 14px;
    font-size: 1.1rem;
}

.mistake-item p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin: 28px 0;
}

.faq-item {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    box-shadow: none;
    transition: all 0.2s ease;
}

.faq-item:hover {
    border-color: #6c757d;
    transform: none;
}

.faq-item h4 {
    color: #495057;
    margin-top: 0;
    margin-bottom: 14px;
    font-size: 1.1rem;
}

.faq-item p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* CTA Section */
.cta-section {
    background: #ffffff;
    border: 2px solid #dee2e6;
    border-radius: 12px;
    padding: 48px 40px;
    margin: 48px 0;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.cta-section h3 {
    color: #1a1a1a;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: none;
    padding: 0;
    background: none;
    margin-left: 0;
    text-shadow: none;
}

.cta-section h3::after {
    display: none;
}

.cta-section p {
    color: #4a5568;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 400;
}

.cta-section .cta-highlight {
    margin-bottom: 0;
    font-weight: 600;
    color: #1a1a1a;
    font-size: 1.2rem;
    text-shadow: none;
    background: #f8f9fa;
    padding: 16px 24px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    display: inline-block;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.cta-section .cta-highlight:hover {
    background: #e9ecef;
    border-color: #6c757d;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cta-section .cta-highlight:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

/* Responsive Design for SEO Content */
@media (max-width: 768px) {
    .breadcrumb-nav {
        padding: 12px 16px;
    }
    
    .breadcrumb {
        font-size: 0.8rem;
    }
    
    .breadcrumb-item:not(:last-child)::after {
        margin: 0 8px;
        font-size: 1rem;
    }
    
    .seo-content {
        padding: 40px 16px;
        margin-top: 20px;
    }
    
    .content-header {
        margin-bottom: 40px;
        padding: 0 16px;
    }
    
    .content-header h2 {
        font-size: 2rem;
        margin-bottom: 16px;
    }
    
    .content-header .lead {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }
    
    .content-header .subtitle {
        font-size: 1rem;
    }
    
    .content-section {
        margin-bottom: 40px;
        padding: 0 16px;
    }
    
    .content-section h3 {
        font-size: 1.5rem;
        margin-bottom: 18px;
    }
    
    .content-section h4 {
        font-size: 1.2rem;
        margin: 24px 0 14px 0;
    }
    
    .content-section h5 {
        font-size: 1rem;
        margin: 18px 0 10px 0;
    }
    
    .content-section h6 {
        font-size: 0.95rem;
        margin: 14px 0 8px 0;
    }
    
    .content-section p {
        font-size: 1rem;
        margin-bottom: 16px;
    }
    
    .content-section li {
        font-size: 1rem;
        padding: 12px 14px;
        margin-bottom: 8px;
    }
    
    .frequency-grid,
    .info-grid,
    .comparison-grid,
    .investment-grid,
    .mistakes-grid,
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        margin: 24px 0;
    }
    
    .frequency-item,
    .info-item,
    .comparison-item,
    .investment-item,
    .mistake-item,
    .faq-item {
        padding: 18px;
    }
    
    .example-box {
        padding: 20px;
        margin: 24px 0;
    }
    
    .example-box h4 {
        font-size: 1.1rem;
        margin-bottom: 14px;
    }
    
    .example-box .result-highlight {
        padding: 8px 14px;
        margin: 16px 0;
        font-size: 0.9rem;
    }
    
    .comparison-box {
        padding: 20px;
        margin: 24px 0;
    }
    
    .comparison-box h5 {
        font-size: 1.1rem;
        margin-bottom: 14px;
    }
    
    .comparison-item .result-highlight {
        padding: 5px 10px;
        margin: 12px 0 0 0;
        font-size: 0.85rem;
    }
    
    .cta-section {
        padding: 32px 24px;
        margin: 32px 0;
    }
    
    .cta-section h3 {
        font-size: 1.5rem;
    }
    
    .cta-section p {
        font-size: 1rem;
        margin-bottom: 18px;
    }
    
    .cta-section .cta-highlight {
        font-size: 1.1rem;
        padding: 14px 20px;
    }
}

@media (max-width: 480px) {
    .breadcrumb-nav {
        padding: 10px 12px;
    }
    
    .breadcrumb {
        font-size: 0.75rem;
    }
    
    .breadcrumb-item:not(:last-child)::after {
        margin: 0 6px;
        font-size: 0.9rem;
    }
    
    .seo-content {
        padding: 30px 12px;
        margin-top: 16px;
    }
    
    .content-header {
        margin-bottom: 30px;
        padding: 0 12px;
    }
    
    .content-header h2 {
        font-size: 1.8rem;
        margin-bottom: 14px;
    }
    
    .content-header .lead {
        font-size: 1rem;
        margin-bottom: 16px;
    }
    
    .content-header .subtitle {
        font-size: 0.95rem;
    }
    
    .content-section {
        margin-bottom: 30px;
        padding: 0 12px;
    }
    
    .content-section h3 {
        font-size: 1.4rem;
        margin-bottom: 16px;
    }
    
    .content-section h4 {
        font-size: 1.1rem;
        margin: 20px 0 12px 0;
    }
    
    .content-section h5 {
        font-size: 0.95rem;
        margin: 16px 0 8px 0;
    }
    
    .content-section h6 {
        font-size: 0.9rem;
        margin: 14px 0 6px 0;
    }
    
    .content-section p {
        font-size: 0.95rem;
        margin-bottom: 14px;
    }
    
    .content-section li {
        font-size: 0.95rem;
        padding: 10px 12px;
        margin-bottom: 6px;
    }
    
    .frequency-grid,
    .info-grid,
    .comparison-grid,
    .investment-grid,
    .mistakes-grid,
    .faq-grid {
        gap: 16px;
        margin: 20px 0;
    }
    
    .frequency-item,
    .info-item,
    .comparison-item,
    .investment-item,
    .mistake-item,
    .faq-item {
        padding: 16px;
    }
    
    .example-box {
        padding: 18px;
        margin: 20px 0;
    }
    
    .example-box h4 {
        font-size: 1rem;
        margin-bottom: 12px;
    }
    
    .example-box .result-highlight {
        padding: 6px 12px;
        margin: 14px 0;
        font-size: 0.85rem;
    }
    
    .comparison-box {
        padding: 18px;
        margin: 20px 0;
    }
    
    .comparison-box h5 {
        font-size: 1rem;
        margin-bottom: 12px;
    }
    
    .comparison-item .result-highlight {
        padding: 4px 8px;
        margin: 10px 0 0 0;
        font-size: 0.8rem;
    }
    
    .cta-section {
        padding: 24px 16px;
        margin: 24px 0;
    }
    
    .cta-section h3 {
        font-size: 1.3rem;
    }
    
    .cta-section p {
        font-size: 0.95rem;
        margin-bottom: 16px;
    }
    
    .cta-section .cta-highlight {
        font-size: 1rem;
        padding: 12px 16px;
    }
}
