/* Global Styles */
:root {
    --primary-color: #4a6fa5;
    --secondary-color: #6c757d;
    --accent-color: #ff9800;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --text-color: #333;
    --border-color: #dee2e6;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f5f7fa;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: #3a5683;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: 1rem;
}

.section-title {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Buttons */
.btn {
    display: inline-block;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #3a5683;
    color: white;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
    color: white;
}

/* Header */
header {
    background-color: white;
    box-shadow: 0 2px 10px var(--shadow-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 15px;
}

.logo h1 {
    font-size: 1.5rem;
    margin-bottom: 0;
    color: var(--primary-color);
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

nav ul li a.active {
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 4rem 0;
    background-color: #e9f0f9;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    flex: 1;
    padding-right: 2rem;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--secondary-color);
}

.hero-image {
    flex: 1;
    text-align: center;
}

/* Features Section */
.features {
    padding: 4rem 0;
    background-color: white;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 6px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px var(--shadow-color);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 0.5rem;
}

/* Tax Regimes Section */
.tax-regimes {
    padding: 4rem 0;
    background-color: #f5f7fa;
}

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

.regime-card {
    background-color: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 6px var(--shadow-color);
}

.regime-card h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.regime-card ul {
    margin-bottom: 1.5rem;
}

.regime-card ul li {
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 1.5rem;
}

.regime-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
}

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

.cta h2 {
    margin-bottom: 1rem;
}

.cta p {
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta .btn-primary {
    background-color: white;
    color: var(--primary-color);
}

.cta .btn-primary:hover {
    background-color: #f0f0f0;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 4rem 0 2rem;
}

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

.footer-logo h2 {
    color: white;
    margin-bottom: 0.5rem;
}

.footer-logo p {
    color: #adb5bd;
}

.footer-links h3,
.footer-resources h3 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-links ul li,
.footer-resources ul li {
    margin-bottom: 0.5rem;
}

.footer-links ul li a,
.footer-resources ul li a {
    color: #adb5bd;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover,
.footer-resources ul li a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #495057;
    color: #adb5bd;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

/* Page Header */
.page-header {
    background-color: #e9f0f9;
    padding: 3rem 0;
    text-align: center;
}

.page-header h2 {
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.page-header p {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--secondary-color);
}

/* Calculator Section */
.calculator-section {
    padding: 4rem 0;
    background-color: white;
}

.calculator-container {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 6px var(--shadow-color);
    margin-bottom: 2rem;
}

.calculator-container h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.form-section {
    margin-bottom: 2rem;
}

.form-section h4 {
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input[type="number"],
.form-group input[type="text"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    color: var(--secondary-color);
}

.radio-group {
    display: flex;
    gap: 1.5rem;
}

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

.radio-option input[type="radio"] {
    margin-right: 0.5rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
}

.results-container {
    background-color: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 6px var(--shadow-color);
}

.results-container h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.results-message {
    text-align: center;
    color: var(--secondary-color);
}

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

.regime-result {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
}

.regime-result h4 {
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.result-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed var(--border-color);
}

.result-item.total {
    margin-top: 1rem;
    padding-top: 0.5rem;
    border-top: 2px solid var(--border-color);
    font-weight: bold;
    font-size: 1.1rem;
}

.recommendation {
    background-color: #e9f0f9;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.recommendation h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.tax-breakdown {
    margin-top: 2rem;
}

.chart-container {
    height: 300px;
    margin-top: 1rem;
}

.tax-slabs {
    padding: 4rem 0;
    background-color: #f5f7fa;
}

.slabs-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.slab-table {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px var(--shadow-color);
}

.slab-table h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.slab-table table {
    width: 100%;
    border-collapse: collapse;
}

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

.slab-table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.disclaimer {
    margin-top: 2rem;
    text-align: center;
    color: var(--secondary-color);
}

/* Education Section */
.education-section {
    padding: 4rem 0;
    background-color: white;
}

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

.education-article {
    margin-bottom: 3rem;
}

.education-article h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.info-box {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    box-shadow: 0 4px 6px var(--shadow-color);
}

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

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

.info-column h5 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

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

.info-table {
    width: 100%;
    border-collapse: collapse;
}

.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;
}

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

.info-card {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px var(--shadow-color);
    text-align: center;
}

.info-card-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.process-steps {
    margin: 1.5rem 0;
}

.process-step {
    display: flex;
    margin-bottom: 1.5rem;
}

.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: 1rem;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

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

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

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
}

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

.comparison-table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.timeline {
    margin: 1.5rem 0;
}

.timeline-item {
    display: flex;
    margin-bottom: 1.5rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 100px;
    height: 100%;
    width: 2px;
    background-color: var(--border-color);
}

.timeline-date {
    width: 100px;
    font-weight: bold;
    color: var(--primary-color);
    padding-right: 1.5rem;
    flex-shrink: 0;
}

.timeline-content {
    flex: 1;
    background-color: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 4px 6px var(--shadow-color);
    margin-left: 1.5rem;
}

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

.education-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.sidebar-widget {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px var(--shadow-color);
}

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

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

/* Tax Saving Section */
.tax-saving-section {
    padding: 4rem 0;
    background-color: white;
}

.tax-saving-section:nth-child(even) {
    background-color: #f5f7fa;
}

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

.investment-card {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px var(--shadow-color);
    display: flex;
    align-items: flex-start;
}

.investment-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-right: 1rem;
    flex-shrink: 0;
}

.investment-details {
    flex: 1;
}

.investment-details h4 {
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.investment-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.meta-item {
    background-color: white;
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    font-size: 0.9rem;
}

.meta-label {
    font-weight: 500;
    margin-right: 0.25rem;
}

.investment-description {
    margin-bottom: 0.5rem;
}

.investment-best-for {
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.best-for-label {
    font-weight: 500;
    margin-right: 0.25rem;
}

.investment-strategy {
    background-color: #e9f0f9;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.investment-strategy h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.investment-strategy ul {
    list-style-type: disc;
    padding-left: 1.5rem;
}

.investment-strategy ul li {
    margin-bottom: 0.5rem;
}

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

.deduction-card {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px var(--shadow-color);
    text-align: center;
}

.deduction-card h4 {
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.deduction-amount {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.tax-saving-tip {
    background-color: #fff3e0;
    border-left: 4px solid var(--accent-color);
    border-radius: 4px;
    padding: 1.5rem;
    margin: 2rem 0;
    display: flex;
    align-items: flex-start;
}

.tip-icon {
    font-size: 2rem;
    color: var(--accent-color);
    margin-right: 1rem;
    flex-shrink: 0;
}

.tip-content {
    flex: 1;
}

.tip-content h4 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

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

.deduction-table table {
    width: 100%;
    border-collapse: collapse;
}

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

.deduction-table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.age-based-strategies {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.age-strategy {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px var(--shadow-color);
}

.age-strategy h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.age-strategy ul {
    list-style-type: disc;
    padding-left: 1.5rem;
}

.age-strategy ul li {
    margin-bottom: 0.5rem;
}

.when-where-how {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.wwh-card {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px var(--shadow-color);
}

.wwh-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
}

.wwh-card h4 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
    text-align: center;
}

.wwh-card ul {
    list-style-type: disc;
    padding-left: 1.5rem;
}

.wwh-card ul li {
    margin-bottom: 0.5rem;
}

/* Resources Section */
.resources-section {
    padding: 4rem 0;
    background-color: white;
}

.resources-section:nth-child(even) {
    background-color: #f5f7fa;
}

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

.resource-card {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px var(--shadow-color);
    display: flex;
    align-items: flex-start;
}

.resource-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-right: 1rem;
    flex-shrink: 0;
}

.resource-content {
    flex: 1;
}

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

.resource-links {
    margin: 1rem 0;
}

.resource-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.feature-tag {
    background-color: #e9f0f9;
    color: var(--primary-color);
    border-radius: 20px;
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
}

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

.resource-table table {
    width: 100%;
    border-collapse: collapse;
}

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

.resource-table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

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

.helpline-card {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px var(--shadow-color);
    display: flex;
    align-items: flex-start;
}

.helpline-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-right: 1rem;
    flex-shrink: 0;
}

.helpline-content {
    flex: 1;
}

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

.helpline-number,
.helpline-email {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.helpline-timing {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.timing-label {
    font-weight: 500;
    margin-right: 0.25rem;
}

.support-note {
    background-color: #e9f0f9;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
}

/* Examples Section */
.examples-section {
    padding: 4rem 0;
    background-color: white;
}

.examples-section:nth-child(even) {
    background-color: #f5f7fa;
}

.example-card {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 6px var(--shadow-color);
    margin-bottom: 2rem;
}

.example-profile {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

.profile-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-right: 1.5rem;
}

.profile-details h4 {
    margin-bottom: 0.25rem;
    color: var(--dark-color);
}

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

.income-details,
.deduction-details {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
}

.income-details h5,
.deduction-details h5 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.income-details ul,
.deduction-details ul {
    list-style-type: none;
}

.income-details ul li,
.deduction-details ul li {
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed var(--border-color);
}

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

.old-regime,
.new-regime {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
}

.old-regime h5,
.new-regime h5 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.calculation-steps {
    margin-top: 1rem;
}

.calc-step {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed var(--border-color);
}

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

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

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

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

.takeaway-card {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px var(--shadow-color);
    display: flex;
    align-items: flex-start;
}

.takeaway-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-right: 1rem;
    flex-shrink: 0;
}

.takeaway-content {
    flex: 1;
}

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

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

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

.cta-section p {
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section .btn-primary {
    background-color: white;
    color: var(--primary-color);
}

.cta-section .btn-primary:hover {
    background-color: #f0f0f0;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 2rem;
    }
    
    .education-section .container {
        grid-template-columns: 1fr;
    }
    
    .education-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    
    .logo {
        margin-bottom: 1rem;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav ul li {
        margin: 0.5rem 0;
    }
    
    .mobile-menu-btn {
        display: block;
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
    }
    
    nav ul {
        display: none;
    }
    
    nav.active ul {
        display: flex;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .feature-grid,
    .regime-comparison,
    .investment-options,
    .deduction-limits,
    .age-based-strategies,
    .when-where-how,
    .resource-cards,
    .helpline-cards,
    .example-details,
    .tax-calculation {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.75rem;
    }
    
    .hero-content h2 {
        font-size: 1.75rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .investment-card,
    .resource-card,
    .helpline-card,
    .takeaway-card {
        flex-direction: column;
    }
    
    .investment-icon,
    .resource-icon,
    .helpline-icon,
    .takeaway-icon {
        margin-bottom: 1rem;
        margin-right: 0;
    }
}
