/* Education page specific styles */
.education-section {
    padding: 3rem 0;
}

.education-content {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 2rem;
}

.education-article {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.education-article:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.education-article h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.education-article h4 {
    color: var(--dark-color);
    margin: 1.5rem 0 1rem;
    font-size: 1.4rem;
}

.education-article p {
    margin-bottom: 1.2rem;
    line-height: 1.6;
}

.education-sidebar {
    position: sticky;
    top: 2rem;
    align-self: start;
}

.sidebar-widget {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.sidebar-widget h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.sidebar-widget ul {
    list-style: none;
    padding: 0;
}

.sidebar-widget ul li {
    margin-bottom: 0.8rem;
}

.sidebar-widget ul li a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    padding: 0.3rem 0;
}

.sidebar-widget ul li a:hover {
    color: var(--primary-color);
}

/* Visual elements */
.visual-container {
    margin: 2rem 0;
    background-color: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
}

.visual-header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem;
    text-align: center;
}

.visual-header h4 {
    margin: 0;
    color: white;
}

.visual-content {
    padding: 2rem;
}

/* Hierarchy chart */
.hierarchy-chart {
    display: flex;
    justify-content: center;
}

.hierarchy-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 1rem;
}

.node-content {
    background-color: white;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    padding: 1rem;
    min-width: 180px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.node-content i {
    display: block;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.hierarchy-children {
    display: flex;
    margin-top: 2rem;
    position: relative;
}

.hierarchy-children:before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    width: 2px;
    height: 20px;
    background-color: var(--primary-color);
}

.main-node > .hierarchy-children:before {
    display: none;
}

.hierarchy-node:before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    width: 2px;
    height: 20px;
    background-color: var(--primary-color);
}

.leaf-node {
    margin-bottom: 0;
}

/* Regime comparison */
.comparison-chart {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.comparison-item {
    flex: 1;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.comparison-header {
    padding: 1.5rem;
    text-align: center;
    color: white;
}

.comparison-header i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.comparison-header h5 {
    margin: 0;
    font-size: 1.2rem;
}

.comparison-header.old-regime {
    background-color: #4a6fa5;
}

.comparison-header.new-regime {
    background-color: #28a745;
}

.comparison-features {
    padding: 1.5rem;
}

.comparison-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comparison-features ul li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
}

.comparison-features ul li i {
    margin-right: 0.8rem;
    font-size: 1rem;
}

.comparison-features ul li i.fa-check {
    color: #28a745;
}

.comparison-features ul li i.fa-times {
    color: #dc3545;
}

.comparison-footer {
    background-color: #f8f9fa;
    padding: 1rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.comparison-vs {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--dark-color);
    margin: 0 1.5rem;
}

/* Info table */
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.info-table th,
.info-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.info-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: var(--dark-color);
}

.info-table tfoot td {
    padding-top: 1rem;
    border-bottom: none;
}

.info-table tfoot small {
    color: var(--secondary-color);
    font-size: 0.85rem;
}

.table-responsive {
    overflow-x: auto;
    margin: 1.5rem 0;
}

/* Process flow */
.process-flow {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.process-step-visual {
    display: flex;
    align-items: flex-start;
    width: 100%;
    max-width: 600px;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-weight: bold;
    margin-right: 1.2rem;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content h5 {
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.process-arrow {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin: 0.5rem 0;
}

/* Income types chart */
.income-types-chart {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.income-type {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.income-type:hover {
    transform: translateY(-5px);
}

.income-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    margin: 0 auto 1rem;
}

.income-icon i {
    font-size: 1.5rem;
}

.income-type h5 {
    margin-bottom: 0.8rem;
    color: var(--dark-color);
}

.income-type p {
    font-size: 0.9rem;
    color: var(--text-color);
}

/* Deductions chart */
.deductions-chart {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.deduction-category {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.category-header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem;
    display: flex;
    align-items: center;
}

.category-header i {
    font-size: 1.5rem;
    margin-right: 0.8rem;
}

.category-header h5 {
    margin: 0;
    font-size: 1.1rem;
}

.category-items {
    padding: 1rem;
}

.deduction-item {
    background-color: #f8f9fa;
    border-radius: 4px;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.deduction-item:last-child {
    margin-bottom: 0;
}

/* Info box */
.info-box {
    background-color: #e9f0f9;
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 4px 4px 0;
}

.info-box h4 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 1rem;
}

.info-box p {
    margin-bottom: 0.8rem;
}

.info-box p:last-child {
    margin-bottom: 0;
}

.info-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.info-column h5 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

/* Example calculation */
.example-calculation {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.example-data {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.data-section h5 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.data-section ul {
    padding-left: 1.5rem;
}

.data-section ul li {
    margin-bottom: 0.5rem;
}

.calculation-comparison {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.calculation-column h5 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.calculation-steps {
    font-size: 0.9rem;
}

.calc-step {
    margin-bottom: 0.8rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px dashed var(--border-color);
}

.calc-step:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.calc-step.total {
    margin-top: 1.2rem;
    padding-top: 0.8rem;
    border-top: 2px solid var(--border-color);
    font-weight: bold;
}

.step-label {
    font-weight: 500;
    margin-bottom: 0.3rem;
}

.step-calculation ul {
    padding-left: 1.5rem;
    margin-top: 0.5rem;
}

.example-conclusion {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1.5rem;
}

.example-conclusion h5 {
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.tax-saving-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1.5rem;
}

.tax-bar {
    width: 120px;
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    border-radius: 8px;
}

.tax-bar.old-regime {
    background-color: #4a6fa5;
}

.tax-bar.new-regime {
    background-color: #28a745;
}

.tax-amount {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.tax-label {
    font-size: 0.9rem;
}

.tax-difference {
    margin: 0 1.5rem;
    text-align: center;
}

.difference-amount {
    font-size: 1.2rem;
    font-weight: bold;
    color: #28a745;
    margin-bottom: 0.3rem;
}

.difference-label {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.difference-arrow {
    color: #28a745;
    font-size: 1.5rem;
}

/* Tax rate chart */
.tax-rate-chart {
    height: 300px;
    position: relative;
}

.chart-container {
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
}

.chart-legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
}

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

.legend-color {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 0.5rem;
    border-radius: 3px;
}

.legend-color.old-regime {
    background-color: #4a6fa5;
}

.legend-color.new-regime {
    background-color: #28a745;
}

/* CTA section */
.cta-section {
    background-color: var(--primary-color);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.cta-section h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section .btn {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Responsive styles */
@media (max-width: 992px) {
    .education-content {
        grid-template-columns: 1fr;
    }
    
    .education-sidebar {
        position: static;
        margin-top: 2rem;
    }
    
    .comparison-chart {
        flex-direction: column;
    }
    
    .comparison-item {
        width: 100%;
        margin-bottom: 1.5rem;
    }
    
    .comparison-vs {
        margin: 1rem 0;
    }
}

@media (max-width: 768px) {
    .calculation-comparison {
        grid-template-columns: 1fr;
    }
    
    .calculation-column {
        margin-bottom: 1.5rem;
    }
    
    .calculation-column:last-child {
        margin-bottom: 0;
    }
    
    .tax-saving-visual {
        flex-direction: column;
    }
    
    .tax-bar {
        margin-bottom: 1rem;
    }
    
    .tax-difference {
        margin: 1rem 0;
    }
    
    .difference-arrow {
        transform: rotate(90deg);
    }
}

@media (max-width: 576px) {
    .example-data {
        grid-template-columns: 1fr;
    }
    
    .income-types-chart {
        grid-template-columns: 1fr;
    }
    
    .deductions-chart {
        grid-template-columns: 1fr;
    }
}
