* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary-color: #4299e1;
    --primary-hover: #3182ce;
    --text-color: #4a5568;
    --heading-color: #2d3748;
    --background-color: #e9ecf2;
    --card-background: #ffffff;
    --border-color: #e2e8f0;
    --shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

body {
    background-color: #e9ecf2;
    color: #4a5568;
    line-height: 1.6;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    min-height: 100vh;
    margin: 0 auto;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

h1 {
    text-align: center;
    color: #2d3748;
    margin-bottom: 0.8rem;
    font-size: 2.2rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

h2 {
    color: #2d3748;
    margin: 1.2rem 0 0.6rem;
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

h3 {
    color: #2d3748;
    margin-bottom: 0.4rem;
    font-size: 1.4rem;
    font-weight: 600;
}

p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-color);
}

.calculator-form {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.input-group {
    margin-bottom: 1rem;
}

label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 600;
    color: #4a5568;
}

input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

button {
    background-color: #4299e1;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

button:hover {
    background-color: #3182ce;
}

button:disabled {
    background-color: #cbd5e0;
    cursor: not-allowed;
}

.results {
    display: none;
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.card {
    background: white;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.card h3 {
    color: #4a5568;
    margin-bottom: 0.3rem;
    font-size: 1.2rem;
}

.card p {
    color: #2d3748;
    font-size: 1.5rem;
    font-weight: 600;
}

.chart-container {
    background: white;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    height: 400px;
}

.prepayment-section {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.table-controls {
    background: white;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 0.8rem;
}

.filter-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.range-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.pagination-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.8rem;
}

.page-size {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.page-size select {
    padding: 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    font-size: 0.9rem;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pagination button {
    width: auto;
    padding: 0.5rem 1rem;
}

#pageInfo {
    font-size: 0.9rem;
    color: #4a5568;
}

.table-container {
    overflow-x: auto;
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

th,
td {
    padding: 0.8rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

th {
    background-color: #f7fafc;
    font-weight: 600;
    color: #4a5568;
}

tr:hover {
    background-color: #f7fafc;
}

@media (max-width: 768px) {
    .container {
        /* margin: 1rem auto; */
        min-height: auto;
        padding: 1rem;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    h3 {
        font-size: 1.3rem;
    }

    .calculator-form,
    .prepayment-section,
    .table-container,
    .table-controls {
        padding: 1rem;
    }

    .chart-container {
        height: 300px;
    }

    .filter-controls {
        grid-template-columns: 1fr;
    }

    .pagination-controls {
        flex-direction: column;
        gap: 1rem;
    }

    th,
    td {
        padding: 0.75rem;
        font-size: 0.9rem;
    }

    p {
        font-size: 1rem;
    }

    .benefit-item {
        padding: 0.6rem;
    }

    .benefit-item h3 {
        font-size: 0.95rem;
    }

    .benefit-item p {
        font-size: 0.8rem;
    }

    .feature-card {
        padding: 0.8rem;
    }

    .feature-card h3 {
        font-size: 0.95rem;
    }

    .feature-card p {
        font-size: 0.8rem;
    }

    .final-cta {
        padding: 1.2rem 0.8rem;
    }

    .final-cta h2 {
        font-size: 1.2rem;
    }

    .final-cta p {
        font-size: 0.85rem;
    }

    .final-cta .cta-button {
        font-size: 0.85rem;
        padding: 0.5rem 1.2rem;
    }

    .main-nav {
        padding: 0.05rem 1rem;
    }

    .main-nav a {
        font-size: 0.85rem;
    }
}

/* Toast Styles */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.toast {
    background-color: #fff;
    color: #2d3748;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 300px;
    max-width: 400px;
    animation: slideIn 0.3s ease-in-out;
}

.toast.error {
    border-left: 4px solid #e53e3e;
}

.toast.success {
    border-left: 4px solid #48bb78;
}

.toast.warning {
    border-left: 4px solid #ed8936;
}

.toast-message {
    flex-grow: 1;
    margin-right: 1rem;
}

.toast-close {
    background: none;
    border: none;
    color: #718096;
    cursor: pointer;
    padding: 0;
    font-size: 1.2rem;
    width: auto;
}

.toast-close:hover {
    color: #2d3748;
    background: none;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.toast.hide {
    animation: slideOut 0.3s ease-in-out forwards;
}

/* --- Hamburger Navigation for All Screen Sizes --- */
.main-nav {
    background: transparent;
    padding: 0.1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 0.2rem;
    border-bottom: 1px solid #e2e8f0;
    position: relative;
}

/* Navigation Header with Hamburger and Title */
.nav-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    width: 100%;
    gap: 1rem;
}

/* App Title - Centered in Container */
.app-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    color: #4299e1;
    font-weight: 800;
    font-size: 2rem;
    letter-spacing: -0.02em;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    grid-column: 2;
}

.app-title:hover {
    color: #3182ce;
    transform: scale(1.05);
}

.app-title i {
    font-size: 1.8rem;
    color: #4299e1;
    transition: all 0.3s ease;
}

.app-title:hover i {
    color: #3182ce;
    transform: rotate(10deg);
}

.app-title span {
    color: #2d3748;
    transition: color 0.3s ease;
}

.app-title:hover span {
    color: #1a202c;
}

/* Hamburger Menu Button */
.hamburger-menu {
    display: block;
    position: relative;
    z-index: 1001;
}

.hamburger-icon {
    width: 30px;
    height: 24px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.hamburger-icon span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #4a5568;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hamburger Animation */
.hamburger-menu.active .hamburger-icon span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
    background-color: #4299e1;
}

.hamburger-menu.active .hamburger-icon span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .hamburger-icon span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
    background-color: #4299e1;
}

/* Navigation Menu - Hidden by default */
.main-nav ul {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(5px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    z-index: 1000;
    gap: 2rem;
    transition: all 0.3s ease;
}

/* Show menu when hamburger is active */
.main-nav.menu-active ul {
    display: flex;
}

/* Menu Overlay */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.1);
    z-index: 999;
    transition: opacity 0.3s ease;
}

.main-nav.menu-active .menu-overlay {
    display: block;
}

/* Navigation Links */
.main-nav a {
    color: #4a5568;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.2rem;
    padding: 1rem 2rem;
    position: relative;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 200px;
}

.main-nav a:hover {
    color: #4299e1;
    /* background-color: rgba(66, 153, 225, 0.1); */
    transform: translateY(-2px);
}

.main-nav a.active {
    color: #4299e1;
    font-weight: 600;
    /* background-color: rgba(66, 153, 225, 0.15); */
}

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden;
}

/* Responsive adjustments for hamburger menu */
@media (max-width: 768px) {
    .main-nav {
        padding: 0.05rem 1rem;
    }

    .app-title {
        font-size: 1.8rem;
        gap: 0.6rem;
    }

    .app-title i {
        font-size: 1.6rem;
    }

    .main-nav a {
        font-size: 1.1rem;
        padding: 0.8rem 1.5rem;
        min-width: 180px;
    }
}

@media (max-width: 480px) {
    .main-nav {
        padding: 0.05rem 0.8rem;
    }

    .app-title {
        font-size: 1.6rem;
        gap: 0.5rem;
    }

    .app-title i {
        font-size: 1.4rem;
    }

    .main-nav a {
        font-size: 1rem;
        padding: 0.7rem 1.2rem;
        min-width: 160px;
    }

    .hamburger-icon {
        width: 28px;
        height: 22px;
    }
}

/* Home Page Styles */
.info-section {
    padding: 1.2rem;
    margin-bottom: 1.2rem;
    background-color: var(--card-background);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    margin-left: 15px;
}

.section-icon {
    font-size: 1.4rem;
    color: #4299e1;
    background: rgba(66, 153, 225, 0.1);
    padding: 0.6rem;
    border-radius: 8px;
}

.section-header h2 {
    font-size: 1.4rem;
    margin: 0;
    color: var(--heading-color);
    font-weight: 600;
}

.info-content p {
    color: var(--text-color);
    line-height: 1.5;
    font-size: 0.95rem;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    padding: 0 0.5rem;
    position: relative;
}

.info-section:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.info-section ul {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
}

.info-section li {
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    padding: 0.8rem;
    border-radius: 8px;
    background: rgba(66, 153, 225, 0.05);
}

.info-section li:hover {
    color: #4299e1;
    background: rgba(66, 153, 225, 0.1);
    transform: translateX(5px);
}

.info-section li i {
    margin-right: 1rem;
    color: #4299e1;
    font-size: 1.4rem;
    background: rgba(66, 153, 225, 0.1);
    padding: 0.8rem;
    border-radius: 50%;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.feature-card {
    background: var(--card-background);
    padding: 1rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, #4299e1, #3182ce);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card h3 {
    color: #2d3748;
    margin-bottom: 0.6rem;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin: 1rem 0 0.5rem;
}

.feature-card p {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.cta-section {
    text-align: center;
    padding: 2rem 1rem;
    background-color: var(--background-color);
    margin: 1.5rem 0;
    border-radius: 10px;
}

.cta-section h2 {
    margin-bottom: 1rem;
    font-size: 2rem;
}

.cta-section p {
    margin-bottom: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.2rem;
}

.cta-button {
    display: inline-block;
    padding: 0.9rem 1.8rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease;
    font-size: 1.1rem;
}

@media (max-width: 768px) {

    .main-nav,
    .hero-section,
    .info-section,
    .feature-card,
    .benefits-section,
    .cta-section {
        margin-bottom: 0.8rem;
        /* padding: 1rem; */
    }

    .feature-card h3 {
        font-size: 1.3rem;
    }

    .cta-section h2 {
        font-size: 1.8rem;
    }

    .cta-section p {
        font-size: 1.1rem;
    }

    .cta-button {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 450px;
        margin: 0 auto;
        padding-left: 10px;
        padding-right: 10px;
        padding-bottom: 10px;
    }

    .page-content {
        max-width: none;
        width: auto;
        margin: 0;
        padding: 0;
        background: none;
        box-shadow: none;
        border-radius: 0;
    }

    .summary-cards {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }


}

/* Hero Section */
.hero-section {
    padding: 2rem 1.5rem;
    text-align: center;
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    margin-bottom: 1.5rem;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(66, 153, 225, 0.15);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><rect width="1" height="1" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.12;
}

.hero-section h1 {
    font-size: 1.8rem;
    margin-bottom: 0.6rem;
    color: white;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
}

.hero-subtitle {
    font-size: 1.3rem;
    line-height: 1.6;
    margin: 1rem 0 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    font-weight: 400;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.4rem;
    background-color: white;
    color: #4299e1;
    text-decoration: none;
    border-radius: 40px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.hero-cta i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.hero-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    background-color: #f8fafc;
}

.hero-cta:hover i {
    transform: translateX(2px);
}

.hero-cta:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .hero-section {
        padding: 1.5rem 1rem;
    }

    .hero-section h1 {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        padding: 0 0.5rem;
    }

    .hero-cta {
        padding: 0.5rem 1.2rem;
        font-size: 0.85rem;
    }
}

/* Benefits Section */
.benefits-section {
    background: #ffffff;
    padding: 1.2rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    margin-bottom: 1rem;
    border: 1px solid #e2e8f0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.benefit-item {
    text-align: center;
    padding: 0.8rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
}

.benefit-icon {
    font-size: 1.4rem;
    margin-bottom: 0.6rem;
    padding: 0.6rem;
}

.benefit-item h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.benefit-item p {
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Feature Cards Enhancement */
.feature-icon {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    padding: 0.6rem;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

/* Final CTA Section */
.final-cta {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    color: white;
    text-align: center;
    padding: 1.5rem 1rem;
    border-radius: 10px;
    margin-top: 1.2rem;
}

.final-cta h2 {
    color: white;
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
}

.final-cta p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    max-width: 500px;
    margin: 0 auto 1.2rem;
}

.final-cta .cta-button {
    background: white;
    color: #4299e1;
    font-size: 0.9rem;
    padding: 0.6rem 1.5rem;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.final-cta .cta-button:hover {
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 1rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-header {
        flex-direction: raw;
        text-align: center;
        gap: 0.5rem;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .final-cta {
        padding: 3rem 1.5rem;
    }

    .final-cta h2 {
        font-size: 1.8rem;
    }
}

/* Blog Page Styles */
.blog-header {
    text-align: center;
    margin: 2rem 0 3rem;
    padding: 0 1rem;
}

.blog-header h1 {
    font-size: 2.5rem;
    color: #2d3748;
    margin-bottom: 1rem;
}

.blog-subtitle {
    font-size: 1.1rem;
    color: #4a5568;
    max-width: 800px;
    margin: 0 auto;
}

.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 0 !important;
    margin-bottom: 2rem;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.blog-image {
    background: none !important;
    padding: 0 !important;
    margin: 0 !important;
    height: auto;
    display: block;
}

.blog-icon {
    font-size: 4rem;
    color: white;
}

.blog-content {
    padding: 1.5rem;
    padding-top: 1rem;
}

.blog-content h2 {
    font-size: 1.25rem;
    color: #2d3748;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.blog-meta {
    font-size: 0.875rem;
    color: #718096;
    margin-bottom: 1rem;
}

.blog-excerpt {
    color: #4a5568;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.read-more {
    color: #4299e1;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #2b6cb0;
}

.read-more i {
    font-size: 0.875rem;
    transition: transform 0.3s ease;
}

.read-more:hover i {
    transform: translateX(4px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .blog-header h1 {
        font-size: 2rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }

    .blog-card {
        max-width: 500px;
        margin: 0 auto;
    }
}

/* --- Blog Detail Page Enhancements --- */
.blog-detail-image img {
    width: 100%;
    border-radius: 12px;
    max-height: 340px;
    object-fit: cover;
    margin-bottom: 2rem;
    box-shadow: 0 6px 24px rgba(66, 153, 225, 0.10);
    transition: box-shadow 0.3s;
}

.blog-detail-image img:hover {
    box-shadow: 0 12px 32px rgba(66, 153, 225, 0.18);
}

.blog-detail-content {
    font-size: 1.08rem;
    color: #2d3748;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    padding: 0 0.5rem;
}

.blog-detail-content h2 {
    color: #4299e1;
    font-size: 1.25rem;
    margin-top: 2.2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.blog-quote {
    background: linear-gradient(90deg, #e3f0fc 0%, #f8fafc 100%);
    padding: 1.2rem 2rem;
    border-left: 5px solid #4299e1;
    font-style: italic;
    color: #2b6cb0;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    border-radius: 0 12px 12px 0;
    box-shadow: 0 2px 8px rgba(66, 153, 225, 0.07);
}

.blog-detail-content ol {
    margin: 1.5rem 0 1.5rem 1.5rem;
    padding-left: 1.2rem;
}

.blog-detail-content ol li {
    margin-bottom: 0.7rem;
    padding-left: 0.2rem;
}

.blog-detail-content ul {
    margin: 1.2rem 0 1.2rem 1.2rem;
    padding-left: 1.2rem;
}

.blog-detail-content ul li {
    margin-bottom: 0.6rem;
    padding-left: 0.2rem;
}

.blog-detail-content ul[style] {
    background: #f1f8fd;
    border-left: 4px solid #4299e1;
    border-radius: 8px;
    padding: 1.2rem 1.5rem;
    margin: 1.5rem 0;
}

.blog-detail-content a {
    color: #3182ce;
    text-decoration: underline;
    transition: color 0.2s;
}

.blog-detail-content a:hover {
    color: #2b6cb0;
    text-decoration: none;
}

@media (max-width: 600px) {
    .blog-detail-image img {
        max-height: 180px;
    }

    .blog-detail-content {
        font-size: 0.98rem;
        padding: 0;
    }

    .blog-quote {
        padding: 1rem 1rem;
        font-size: 1rem;
    }
}

/* Calculator Selection Page Styles */
.calculator-header {
    text-align: center;
    /* margin: 2rem 0 3rem; */
    padding: 0 1rem;
}

.calculator-header h1 {
    font-size: 2.5rem;
    color: #2d3748;
    margin-bottom: 1rem;
}

.calculator-subtitle {
    font-size: 1.1rem;
    color: #4a5568;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.calculators-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding: 0 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.calculator-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    box-shadow:
        0 10px 30px rgba(66, 153, 225, 0.1),
        0 4px 15px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    padding: 2.5rem 2rem;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    min-height: 200px;
}

.calculator-card:hover {
    transform: translateY(-3px);
    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.12),
        0 8px 25px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.calculator-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 50%, #2c5aa0 100%);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.8rem;
    transition: all 0.2s ease;
    box-shadow:
        0 8px 20px rgba(66, 153, 225, 0.25),
        0 4px 10px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.calculator-icon::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 ease;
}

.calculator-card:hover .calculator-icon {
    transform: scale(1.05);
    box-shadow:
        0 12px 30px rgba(66, 153, 225, 0.3),
        0 6px 15px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.calculator-card:hover .calculator-icon::before {
    left: 100%;
}

.calculator-icon i {
    font-size: 2.5rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.calculator-card h3 {
    font-size: 1.4rem;
    color: #2d3748;
    margin: 0;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

/* Hover effect for calculator cards */
.calculator-card:hover h3 {
    color: #1a202c;
    transform: translateY(-1px);
}

/* Individual calculator icon color variations */
.calculator-card:nth-child(1) .calculator-icon {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 50%, #2c5aa0 100%);
}

.calculator-card:nth-child(2) .calculator-icon {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 50%, #2f855a 100%);
    box-shadow:
        0 8px 20px rgba(72, 187, 120, 0.25),
        0 4px 10px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.calculator-card:nth-child(2):hover .calculator-icon {
    box-shadow:
        0 12px 30px rgba(72, 187, 120, 0.3),
        0 6px 15px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.calculator-card:nth-child(3) .calculator-icon {
    background: linear-gradient(135deg, #ed8936 0%, #dd6b20 50%, #c05621 100%);
    box-shadow:
        0 8px 20px rgba(237, 137, 54, 0.25),
        0 4px 10px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.calculator-card:nth-child(3):hover .calculator-icon {
    box-shadow:
        0 12px 30px rgba(237, 137, 54, 0.3),
        0 6px 15px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.calculator-card:nth-child(4) .calculator-icon {
    background: linear-gradient(135deg, #9f7aea 0%, #805ad5 50%, #6b46c1 100%);
    box-shadow:
        0 8px 20px rgba(159, 122, 234, 0.25),
        0 4px 10px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.calculator-card:nth-child(4):hover .calculator-icon {
    box-shadow:
        0 12px 30px rgba(159, 122, 234, 0.3),
        0 6px 15px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.calculator-card:nth-child(5) .calculator-icon {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 50%, #c53030 100%);
    box-shadow:
        0 8px 20px rgba(245, 101, 101, 0.25),
        0 4px 10px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.calculator-card:nth-child(5):hover .calculator-icon {
    box-shadow:
        0 12px 30px rgba(245, 101, 101, 0.3),
        0 6px 15px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.calculator-card:nth-child(6) .calculator-icon {
    background: linear-gradient(135deg, #38b2ac 0%, #319795 50%, #2c7a7b 100%);
    box-shadow:
        0 8px 20px rgba(56, 178, 172, 0.25),
        0 4px 10px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.calculator-card:nth-child(6):hover .calculator-icon {
    box-shadow:
        0 12px 30px rgba(56, 178, 172, 0.3),
        0 6px 15px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.calculator-card:nth-child(7) .calculator-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #5a4fcf 100%);
    box-shadow:
        0 8px 20px rgba(102, 126, 234, 0.25),
        0 4px 10px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.calculator-card:nth-child(7):hover .calculator-icon {
    box-shadow:
        0 12px 30px rgba(102, 126, 234, 0.3),
        0 6px 15px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.calculator-card:nth-child(8) .calculator-icon {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 50%, #ff8a80 100%);
    box-shadow:
        0 8px 20px rgba(255, 138, 128, 0.25),
        0 4px 10px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.calculator-card:nth-child(8):hover .calculator-icon {
    box-shadow:
        0 12px 30px rgba(255, 138, 128, 0.3),
        0 6px 15px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* RD Calculator - Card 9 */
.calculator-card:nth-child(9) .calculator-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #5a67d8 100%);
    box-shadow:
        0 8px 20px rgba(102, 126, 234, 0.25),
        0 4px 10px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.calculator-card:nth-child(9):hover .calculator-icon {
    box-shadow:
        0 12px 30px rgba(102, 126, 234, 0.3),
        0 6px 15px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* HRA Calculator - Card 10 */
.calculator-card:nth-child(10) .calculator-icon {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 50%, #e53e3e 100%);
    box-shadow:
        0 8px 20px rgba(240, 147, 251, 0.25),
        0 4px 10px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.calculator-card:nth-child(10):hover .calculator-icon {
    box-shadow:
        0 12px 30px rgba(240, 147, 251, 0.3),
        0 6px 15px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* EMI Calculator - Card 11 */
.calculator-card:nth-child(11) .calculator-icon {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 50%, #38b2ac 100%);
    box-shadow:
        0 8px 20px rgba(79, 172, 254, 0.25),
        0 4px 10px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.calculator-card:nth-child(11):hover .calculator-icon {
    box-shadow:
        0 12px 30px rgba(79, 172, 254, 0.3),
        0 6px 15px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Car Loan Calculator - Card 12 */
.calculator-card:nth-child(12) .calculator-icon {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 50%, #ffa726 100%);
    box-shadow:
        0 8px 20px rgba(250, 112, 154, 0.25),
        0 4px 10px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.calculator-card:nth-child(12):hover .calculator-icon {
    box-shadow:
        0 12px 30px rgba(250, 112, 154, 0.3),
        0 6px 15px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Responsive adjustments for calculator grid */
@media (max-width: 1024px) {
    .calculators-grid {
        max-width: 950px;
        padding: 0 1.5rem;
        gap: 1.8rem;
    }
}

@media (max-width: 768px) {
    .calculator-header h1 {
        font-size: 2rem;
    }

    .calculators-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
        max-width: 400px;
    }

    .calculator-card {
        padding: 2rem 1.5rem;
        min-height: 180px;
    }

    .calculator-icon {
        width: 75px;
        height: 75px;
        margin-bottom: 1.5rem;
        border-radius: 20px;
    }

    .calculator-icon i {
        font-size: 2.2rem;
    }

    .calculator-card h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .calculators-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        max-width: 350px;
    }

    .calculator-card {
        padding: 1.8rem 1.2rem;
        min-height: 160px;
    }

    .calculator-icon {
        width: 65px;
        height: 65px;
        margin-bottom: 1.2rem;
        border-radius: 18px;
    }

    .calculator-icon i {
        font-size: 2rem;
    }

    .calculator-card h3 {
        font-size: 1.1rem;
    }
}

/* Additional styles for new calculator pages */
.income-calculator {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.income-calculator h3 {
    color: #2d3748;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.income-calculator .input-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.income-calculator label {
    min-width: 150px;
    font-weight: 600;
}

.income-calculator input {
    flex: 1;
    max-width: 200px;
}

.income-calculator button {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.income-calculator button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 172, 254, 0.3);
}

.affordability-result {
    margin-top: 1rem;
}

.affordability-message {
    padding: 1rem;
    border-radius: 8px;
    font-weight: 600;
}

.affordability-message.success {
    background: rgba(72, 187, 120, 0.1);
    color: #2f855a;
    border: 1px solid rgba(72, 187, 120, 0.3);
}

.affordability-message.warning {
    background: rgba(237, 137, 54, 0.1);
    color: #c05621;
    border: 1px solid rgba(237, 137, 54, 0.3);
}

.affordability-message.danger {
    background: rgba(245, 101, 101, 0.1);
    color: #c53030;
    border: 1px solid rgba(245, 101, 101, 0.3);
}

/* Back button styles - Left corner positioning within container */
.back-button-container {
    margin-bottom: 1rem;
    margin-top: 0.5rem;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #ffffff;
    color: #4299e1;
    text-decoration: none;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    min-width: auto;
    width: fit-content;
}

.back-button:hover {
    background: #4299e1;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.25);
    border-color: #4299e1;
}

.back-button i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.back-button:hover i {
    transform: translateX(-3px);
}

/* Reset calculator header padding */
.calculator-header {
    position: relative;
    padding-top: 0;
}

/* Responsive adjustments for new calculator elements */
@media (max-width: 768px) {
    .income-calculator .input-group {
        flex-direction: column;
        align-items: stretch;
    }

    .income-calculator label {
        min-width: auto;
        margin-bottom: 0.5rem;
    }

    .income-calculator input {
        max-width: none;
        margin-bottom: 0.5rem;
    }

    .back-button-container {
        margin-bottom: 0.8rem;
        margin-top: 0.3rem;
    }

    .back-button {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
        gap: 0.4rem;
    }
}

/* Individual Calculator Page Styles */
.breakdown-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.breakdown-item {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e2e8f0;
}

.breakdown-label {
    font-size: 0.9rem;
    color: #4a5568;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.breakdown-value {
    font-size: 1.2rem;
    color: #2d3748;
    font-weight: 600;
}

.sip-breakdown,
.lumpsum-breakdown,
.swp-breakdown,
.mf-breakdown,
.ppf-breakdown {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 1.5rem;
}

.ppf-features {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 1.5rem;
}

.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.feature-item i {
    color: #4299e1;
    font-size: 1.2rem;
    min-width: 20px;
}

.feature-item span {
    color: #4a5568;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Form enhancements for individual calculators */
.calculator-form select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    font-size: 1rem;
    background-color: white;
    transition: border-color 0.3s ease;
}

.calculator-form select:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.calculator-form small {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.8rem;
    color: #718096;
}

/* Responsive adjustments for breakdown grids */
@media (max-width: 768px) {
    .breakdown-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 0.8rem;
    }

    .breakdown-item {
        padding: 0.8rem;
    }

    .breakdown-value {
        font-size: 1rem;
    }

    .features-list {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .feature-item {
        padding: 0.6rem;
    }
}

/* Enhanced Calculator Page Styles */

/* Popular Section */
.popular-section {
    margin: 1rem 0 1.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

.section-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.section-header h2 i {
    color: #4299e1;
    font-size: 1.3rem;
}

.section-header p {
    color: #4a5568;
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Popular Grid */
.popular-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.popular-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.popular-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0;
}

.popular-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4299e1, #3182ce);
}

.popular-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(66, 153, 225, 0.15);
}

.popular-icon {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    background: linear-gradient(135deg, #4299e1, #3182ce);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.popular-card:hover .popular-icon {
    transform: scale(1.05);
}

.popular-icon i {
    font-size: 2rem;
    color: white;
}



/* Category Sections */
.category-section {
    margin: 1.5rem 0;
}

.category-section .section-header {
    text-align: left;
    margin-bottom: 1rem;
}

.category-section .section-header h2 {
    justify-content: flex-start;
}

/* Enhanced Calculator Cards */
.calculator-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.calculator-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4299e1, #3182ce);
}

.calculator-card.investment::before {
    background: linear-gradient(90deg, #48bb78, #38a169);
}

.calculator-card.savings::before {
    background: linear-gradient(90deg, #ed8936, #dd6b20);
}

.calculator-card.loans::before {
    background: linear-gradient(90deg, #9f7aea, #805ad5);
}

.calculator-card.tax::before {
    background: linear-gradient(90deg, #f56565, #e53e3e);
}

.calculator-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.calculator-content {
    margin-top: 1rem;
}

.calculator-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.calculator-content p {
    color: #4a5568;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Responsive Design for Enhanced Calculator Page */
@media (max-width: 1024px) {
    .popular-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .popular-card {
        padding: 1.2rem;
    }

    .calculators-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .popular-section {
        padding: 1.5rem;
        margin: 1rem 0 1.2rem;
    }

    .section-header h2 {
        font-size: 1.3rem;
        flex-direction: column;
        gap: 0.3rem;
    }

    .section-header h2 i {
        font-size: 1.1rem;
    }

    .popular-grid {
        gap: 1rem;
    }

    .popular-card {
        padding: 1rem;
        gap: 0.8rem;
    }

    .popular-icon {
        width: 70px;
        height: 70px;
        border-radius: 14px;
    }

    .popular-icon i {
        font-size: 1.8rem;
    }

    .category-section {
        margin: 1.2rem 0;
    }

    .category-section .section-header {
        text-align: center;
        margin-bottom: 1rem;
    }

    .category-section .section-header h2 {
        justify-content: center;
    }

    .calculators-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .calculator-card {
        padding: 1.2rem;
    }

    .calculator-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 1rem;
    }

    .calculator-icon i {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .popular-section {
        padding: 1rem;
        margin: 0.8rem 0 1rem;
    }

    .section-header h2 {
        font-size: 1.2rem;
    }

    .popular-card {
        padding: 0.8rem;
    }

    .popular-icon {
        width: 60px;
        height: 60px;
        border-radius: 12px;
    }

    .popular-icon i {
        font-size: 1.6rem;
    }

    .popular-card h3 {
        font-size: 1rem;
    }

    .calculator-card {
        padding: 1rem;
    }

    .calculator-icon {
        width: 60px;
        height: 60px;
    }

    .calculator-icon i {
        font-size: 1.8rem;
    }

    .calculator-content h3 {
        font-size: 1rem;
    }

    .calculator-content p {
        font-size: 0.85rem;
    }
}

/* Enhanced Home Page Styles */

/* Enhanced Hero Section */
.hero-content {
    text-align: center;
    padding: 1rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(66, 153, 225, 0.1);
    color: #4299e1;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(66, 153, 225, 0.2);
}

.hero-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 1rem 0 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    margin-top: 0.3rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.hero-cta.primary {
    background: white;
    color: #4299e1;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hero-cta.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-cta:hover {
    transform: translateY(-2px);
}

.hero-cta.primary:hover {
    background: #f8fafc;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.hero-cta.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Quick Tools Section */
.quick-tools-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    margin: 2.5rem 0 1.5rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    max-width: 100%;
    overflow: hidden;
}

.quick-tools-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 100%;
}

.quick-tool-card {
    background: #f8fafc;
    border-radius: 10px;
    padding: 1rem;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    min-width: 0;
    flex: 1;
}

.quick-tool-card:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.tool-icon {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    background: linear-gradient(135deg, #4299e1, #3182ce);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.quick-tool-card.emi .tool-icon {
    background: linear-gradient(135deg, #48bb78, #38a169);
}

.quick-tool-card.ppf .tool-icon {
    background: linear-gradient(135deg, #ed8936, #dd6b20);
}

.quick-tool-card.fd .tool-icon {
    background: linear-gradient(135deg, #9f7aea, #805ad5);
}

.tool-icon i {
    font-size: 1.2rem;
    color: white;
}

.tool-info h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.2rem;
}

.tool-tag {
    font-size: 0.7rem;
    background: rgba(66, 153, 225, 0.1);
    color: #3182ce;
    padding: 0.1rem 0.4rem;
    border-radius: 8px;
    font-weight: 500;
}

/* Categories Overview */
.categories-overview {
    margin: 2rem 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.category-overview {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.category-overview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4299e1, #3182ce);
}

.category-overview.investment::before {
    background: linear-gradient(90deg, #48bb78, #38a169);
}

.category-overview.savings::before {
    background: linear-gradient(90deg, #ed8936, #dd6b20);
}

.category-overview.loans::before {
    background: linear-gradient(90deg, #9f7aea, #805ad5);
}

.category-overview.tax::before {
    background: linear-gradient(90deg, #f56565, #e53e3e);
}

.category-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: linear-gradient(135deg, #4299e1, #3182ce);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.category-overview.investment .category-icon {
    background: linear-gradient(135deg, #48bb78, #38a169);
}

.category-overview.savings .category-icon {
    background: linear-gradient(135deg, #ed8936, #dd6b20);
}

.category-overview.loans .category-icon {
    background: linear-gradient(135deg, #9f7aea, #805ad5);
}

.category-overview.tax .category-icon {
    background: linear-gradient(135deg, #f56565, #e53e3e);
}

.category-icon i {
    font-size: 1.3rem;
    color: white;
}

.category-overview h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.category-overview p {
    color: #4a5568;
    line-height: 1.5;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.category-count {
    background: rgba(66, 153, 225, 0.1);
    color: #3182ce;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
}

.category-overview.investment .category-count {
    background: rgba(72, 187, 120, 0.1);
    color: #2f855a;
}

.category-overview.savings .category-count {
    background: rgba(237, 137, 54, 0.1);
    color: #c05621;
}

.category-overview.loans .category-count {
    background: rgba(159, 122, 234, 0.1);
    color: #6b46c1;
}

.category-overview.tax .category-count {
    background: rgba(245, 101, 101, 0.1);
    color: #c53030;
}

/* Key Features Section */
.key-features-section {
    margin: 2rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.feature-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4299e1, #3182ce);
}

.feature-card.accuracy::before {
    background: linear-gradient(90deg, #48bb78, #38a169);
}

.feature-card.analysis::before {
    background: linear-gradient(90deg, #ed8936, #dd6b20);
}

.feature-card.security::before {
    background: linear-gradient(90deg, #9f7aea, #805ad5);
}

.feature-card.mobile::before {
    background: linear-gradient(90deg, #f56565, #e53e3e);
}

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: linear-gradient(135deg, #4299e1, #3182ce);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.feature-card.accuracy .feature-icon {
    background: linear-gradient(135deg, #48bb78, #38a169);
}

.feature-card.analysis .feature-icon {
    background: linear-gradient(135deg, #ed8936, #dd6b20);
}

.feature-card.security .feature-icon {
    background: linear-gradient(135deg, #9f7aea, #805ad5);
}

.feature-card.mobile .feature-icon {
    background: linear-gradient(135deg, #f56565, #e53e3e);
}

.feature-icon i {
    font-size: 1.3rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: #4a5568;
    line-height: 1.5;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.feature-badge {
    background: rgba(66, 153, 225, 0.1);
    color: #3182ce;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
}

.feature-card.accuracy .feature-badge {
    background: rgba(72, 187, 120, 0.1);
    color: #2f855a;
}

.feature-card.analysis .feature-badge {
    background: rgba(237, 137, 54, 0.1);
    color: #c05621;
}

.feature-card.security .feature-badge {
    background: rgba(159, 122, 234, 0.1);
    color: #6b46c1;
}

.feature-card.mobile .feature-badge {
    background: rgba(245, 101, 101, 0.1);
    color: #c53030;
}

/* Trust Section */
.trust-section {
    margin: 2rem 0;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.trust-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.trust-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.trust-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4299e1, #3182ce);
}

.trust-card.users::before {
    background: linear-gradient(90deg, #48bb78, #38a169);
}

.trust-card.calculations::before {
    background: linear-gradient(90deg, #ed8936, #dd6b20);
}

.trust-card.security::before {
    background: linear-gradient(90deg, #9f7aea, #805ad5);
}

.trust-card.availability::before {
    background: linear-gradient(90deg, #f56565, #e53e3e);
}

.trust-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: linear-gradient(135deg, #4299e1, #3182ce);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.trust-card.users .trust-icon {
    background: linear-gradient(135deg, #48bb78, #38a169);
}

.trust-card.calculations .trust-icon {
    background: linear-gradient(135deg, #ed8936, #dd6b20);
}

.trust-card.security .trust-icon {
    background: linear-gradient(135deg, #9f7aea, #805ad5);
}

.trust-card.availability .trust-icon {
    background: linear-gradient(135deg, #f56565, #e53e3e);
}

.trust-icon i {
    font-size: 1.3rem;
    color: white;
}

.trust-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.trust-card p {
    color: #4a5568;
    line-height: 1.5;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.trust-badge {
    background: rgba(66, 153, 225, 0.1);
    color: #3182ce;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
}

.trust-card.users .trust-badge {
    background: rgba(72, 187, 120, 0.1);
    color: #2f855a;
}

.trust-card.calculations .trust-badge {
    background: rgba(237, 137, 54, 0.1);
    color: #c05621;
}

.trust-card.security .trust-badge {
    background: rgba(159, 122, 234, 0.1);
    color: #6b46c1;
}

.trust-card.availability .trust-badge {
    background: rgba(245, 101, 101, 0.1);
    color: #c53030;
}

/* Planning Guide */
.planning-guide {
    margin: 2rem 0;
}

.planning-steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.step-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4299e1, #3182ce);
}

.step-card.assessment::before {
    background: linear-gradient(90deg, #48bb78, #38a169);
}

.step-card.investment::before {
    background: linear-gradient(90deg, #ed8936, #dd6b20);
}

.step-card.savings::before {
    background: linear-gradient(90deg, #9f7aea, #805ad5);
}

.step-card.tax::before {
    background: linear-gradient(90deg, #f56565, #e53e3e);
}

.step-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: linear-gradient(135deg, #4299e1, #3182ce);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    position: relative;
}

.step-card.assessment .step-icon {
    background: linear-gradient(135deg, #48bb78, #38a169);
}

.step-card.investment .step-icon {
    background: linear-gradient(135deg, #ed8936, #dd6b20);
}

.step-card.savings .step-icon {
    background: linear-gradient(135deg, #9f7aea, #805ad5);
}

.step-card.tax .step-icon {
    background: linear-gradient(135deg, #f56565, #e53e3e);
}

.step-icon i {
    font-size: 1.3rem;
    color: white;
}

.step-number {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: white;
    color: #2d3748;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.step-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.step-card p {
    color: #4a5568;
    line-height: 1.5;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.step-tools {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.step-tools span {
    background: rgba(66, 153, 225, 0.1);
    color: #3182ce;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.step-card.assessment .step-tools span {
    background: rgba(72, 187, 120, 0.1);
    color: #2f855a;
}

.step-card.investment .step-tools span {
    background: rgba(237, 137, 54, 0.1);
    color: #c05621;
}

.step-card.savings .step-tools span {
    background: rgba(159, 122, 234, 0.1);
    color: #6b46c1;
}

.step-card.tax .step-tools span {
    background: rgba(245, 101, 101, 0.1);
    color: #c53030;
}

.step-badge {
    background: rgba(66, 153, 225, 0.1);
    color: #3182ce;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
}

.step-card.assessment .step-badge {
    background: rgba(72, 187, 120, 0.1);
    color: #2f855a;
}

.step-card.investment .step-badge {
    background: rgba(237, 137, 54, 0.1);
    color: #c05621;
}

.step-card.savings .step-badge {
    background: rgba(159, 122, 234, 0.1);
    color: #6b46c1;
}

.step-card.tax .step-badge {
    background: rgba(245, 101, 101, 0.1);
    color: #c53030;
}

/* Simple CTA */
.simple-cta {
    background: #ffffff;
    color: #2d3748;
    padding: 3rem 2rem;
    border-radius: 16px;
    text-align: center;
    border: 1px solid #e2e8f0;
    margin: 2rem 0 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.simple-cta .cta-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.simple-cta .cta-icon i {
    font-size: 2rem;
    color: white;
}

.simple-cta h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #2d3748;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.simple-cta p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: #4a5568;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.simple-cta .cta-actions {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.simple-cta .cta-btn.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    border: none;
}

.simple-cta .cta-btn.secondary {
    background: white;
    color: #667eea;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    border: 2px solid #667eea;
}

.simple-cta .cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.simple-cta .cta-benefits {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.simple-cta .benefit {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    color: #4a5568;
    font-weight: 500;
}

.simple-cta .benefit i {
    color: #48bb78;
    font-size: 1.1rem;
}

/* Responsive Design for Enhanced Home Page */
@media (max-width: 1024px) {
    .quick-tools-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .quick-tool-card {
        padding: 0.8rem;
        gap: 0.6rem;
    }

    .categories-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .features-showcase {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .trust-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .planning-steps {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
}

@media (max-width: 768px) {
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .hero-actions {
        flex-direction: column;
        gap: 0.8rem;
    }

    .hero-cta {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .quick-tools-section {
        padding: 1rem;
        margin: 2rem 0 1rem 0;
    }

    .quick-tools-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .quick-tool-card {
        padding: 0.6rem;
        min-height: auto;
    }

    .tool-icon {
        width: 32px;
        height: 32px;
    }

    .tool-icon i {
        font-size: 0.9rem;
    }

    .tool-info {
        flex: 1;
        min-width: 0;
    }

    .tool-info h4 {
        font-size: 0.8rem;
        margin: 0 0 0.2rem 0;
        line-height: 1.2;
    }

    .tool-tag {
        font-size: 0.6rem;
        padding: 0.1rem 0.4rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .feature-card {
        padding: 1.2rem;
    }

    .feature-icon {
        width: 45px;
        height: 45px;
    }

    .feature-icon i {
        font-size: 1.1rem;
    }

    .step-card {
        padding: 1.2rem;
    }

    .step-icon {
        width: 45px;
        height: 45px;
    }

    .step-icon i {
        font-size: 1.1rem;
    }

    .step-number {
        width: 22px;
        height: 22px;
        font-size: 0.7rem;
    }

    .simple-cta {
        padding: 2rem 1.5rem;
    }

    .simple-cta h2 {
        font-size: 1.8rem;
    }

    .simple-cta .cta-actions {
        flex-direction: column;
        align-items: center;
    }

    .simple-cta .cta-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .simple-cta .cta-benefits {
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 0.5rem;
    }

    .hero-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .quick-tools-section {
        padding: 1rem;
    }

    .quick-tool-card {
        flex-direction: row;
        text-align: left;
        gap: 0.5rem;
        padding: 1rem;
        align-items: center;
    }

    .tool-info h4 {
        font-size: 0.85rem;
    }

    .tool-tag {
        font-size: 0.65rem;
    }

    .category-overview {
        padding: 1.2rem;
    }

    .category-icon {
        width: 45px;
        height: 45px;
    }

    .category-icon i {
        font-size: 1.2rem;
    }

    .feature-card {
        padding: 1rem;
    }

    .feature-icon {
        width: 40px;
        height: 40px;
    }

    .feature-icon i {
        font-size: 1rem;
    }

    .trust-card {
        padding: 1.2rem;
    }

    .trust-icon {
        width: 45px;
        height: 45px;
    }

    .trust-icon i {
        font-size: 1.1rem;
    }

    .step-card {
        padding: 1rem;
    }

    .step-icon {
        width: 40px;
        height: 40px;
    }

    .step-icon i {
        font-size: 1rem;
    }

    .step-number {
        width: 20px;
        height: 20px;
        font-size: 0.65rem;
    }

    .simple-cta {
        padding: 2rem 1rem;
    }

    .simple-cta .cta-icon {
        width: 60px;
        height: 60px;
    }

    .simple-cta .cta-icon i {
        font-size: 1.8rem;
    }

    .simple-cta h2 {
        font-size: 1.6rem;
    }

    .simple-cta p {
        font-size: 1.1rem;
    }

    .simple-cta .cta-benefits {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Responsive Design for Enhanced Home Page */
@media (max-width: 1024px) {
    .quick-tools-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .categories-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .trust-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .planning-steps {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
}

@media (max-width: 768px) {
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .hero-actions {
        flex-direction: column;
        gap: 0.8rem;
    }

    .hero-cta {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .quick-tools-section {
        padding: 1rem;
        margin: 2rem 0 1rem 0;
    }

    .quick-tools-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .quick-tool-card {
        flex-direction: row !important;
        text-align: left;
        gap: 0.5rem;
        padding: 0.6rem;
        min-height: auto;
        align-items: center;
    }

    .tool-icon {
        width: 32px;
        height: 32px;
    }

    .tool-icon i {
        font-size: 0.9rem;
    }

    .tool-info {
        flex: 1;
        min-width: 0;
    }

    .tool-info h4 {
        font-size: 0.8rem;
        margin: 0 0 0.2rem 0;
        line-height: 1.2;
    }

    .tool-tag {
        font-size: 0.6rem;
        padding: 0.1rem 0.4rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .feature-card {
        padding: 1.2rem;
    }

    .feature-icon {
        width: 45px;
        height: 45px;
    }

    .feature-icon i {
        font-size: 1.1rem;
    }

    .step-card {
        padding: 1.2rem;
    }

    .step-icon {
        width: 45px;
        height: 45px;
    }

    .step-icon i {
        font-size: 1.1rem;
    }

    .step-number {
        width: 22px;
        height: 22px;
        font-size: 0.7rem;
    }

    .enhanced-cta {
        padding: 2rem 1.5rem;
    }

    .enhanced-cta h2 {
        font-size: 1.5rem;
    }

    .cta-actions {
        flex-direction: column;
        align-items: center;
    }

    .cta-button {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .cta-features {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 0.5rem;
    }

    .hero-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .quick-tools-section {
        padding: 0.8rem;
        margin: 1.5rem 0 0.8rem 0;
    }

    .quick-tools-grid {
        gap: 0.4rem;
    }

    .quick-tool-card {
        flex-direction: row !important;
        text-align: left;
        gap: 0.3rem;
        padding: 0.5rem;
        min-height: auto;
        align-items: center;
    }

    .tool-icon {
        width: 28px;
        height: 28px;
    }

    .tool-icon i {
        font-size: 0.8rem;
    }

    .tool-info {
        flex: 1;
        min-width: 0;
    }

    .tool-info h4 {
        font-size: 0.75rem;
        margin: 0 0 0.1rem 0;
        line-height: 1.1;
    }

    .tool-tag {
        font-size: 0.55rem;
        padding: 0.1rem 0.3rem;
    }

    .category-overview {
        padding: 1.2rem;
    }

    .category-icon {
        width: 45px;
        height: 45px;
    }

    .category-icon i {
        font-size: 1.2rem;
    }

    .feature-card {
        padding: 1rem;
    }

    .feature-icon {
        width: 40px;
        height: 40px;
    }

    .feature-icon i {
        font-size: 1rem;
    }

    .trust-card {
        padding: 1rem;
    }

    .trust-icon {
        width: 40px;
        height: 40px;
    }

    .trust-icon i {
        font-size: 1rem;
    }

    .step-card {
        padding: 1rem;
    }

    .step-icon {
        width: 40px;
        height: 40px;
    }

    .step-icon i {
        font-size: 1rem;
    }

    .step-number {
        width: 20px;
        height: 20px;
        font-size: 0.65rem;
    }

    .enhanced-cta {
        padding: 1.5rem 1rem;
    }

    .cta-icon {
        width: 50px;
        height: 50px;
    }

    .cta-icon i {
        font-size: 1.5rem;
    }

    .enhanced-cta h2 {
        font-size: 1.3rem;
    }

    .enhanced-cta p {
        font-size: 1rem;
    }

    .cta-features {
        flex-direction: column;
        gap: 0.8rem;
    }

    .welcome-actions {
        gap: 6px;
        margin-top: 0.5rem;
    }

    .welcome-cta {
        padding: 6px 12px;
        max-width: 180px;
        font-size: 0.75rem;
    }
}

/* Welcome Section */
.welcome-section {
    background: linear-gradient(135deg, #f8faff 0%, #ffffff 50%, #f0f4ff 100%);
    border-radius: 20px;
    padding: 40px 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(102, 126, 234, 0.1);
    max-height: 70vh;
}

.welcome-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.05;
    pointer-events: none;
}

.floating-icons {
    position: absolute;
    width: 100%;
    height: 100%;
}

.floating-icons i {
    position: absolute;
    font-size: 2rem;
    color: #667eea;
    opacity: 0.3;
}

.floating-icons i:nth-child(1) {
    top: 20%;
    left: 10%;
    animation: float 6s ease-in-out infinite;
}

.floating-icons i:nth-child(2) {
    top: 60%;
    left: 15%;
    animation: float 8s ease-in-out infinite reverse;
}

.floating-icons i:nth-child(3) {
    top: 30%;
    right: 20%;
    animation: float 7s ease-in-out infinite;
}

.floating-icons i:nth-child(4) {
    top: 70%;
    right: 10%;
    animation: float 9s ease-in-out infinite reverse;
}

.floating-icons i:nth-child(5) {
    top: 10%;
    right: 50%;
    animation: float 5s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

.welcome-content {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.welcome-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 25px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.welcome-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 15px;
    line-height: 1.2;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-description {
    font-size: 1.1rem;
    color: #4a5568;
    line-height: 1.5;
    margin-bottom: 25px;
    opacity: 0.9;
}

.welcome-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 25px;
    padding: 20px 0;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 3px;
    display: block;
}

.stat-label {
    font-size: 0.85rem;
    color: #718096;
    font-weight: 500;
}

.welcome-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 10px
}

.welcome-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.welcome-cta.primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.welcome-cta.secondary {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border: 2px solid rgba(102, 126, 234, 0.2);
}

.welcome-cta:hover {
    transform: translateY(-3px);
}

.welcome-cta.primary:hover {
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.welcome-cta.secondary:hover {
    background: rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
}

@media (max-width: 768px) {
    .welcome-section {
        padding: 25px 20px;
        max-height: 60vh;
    }

    .welcome-title {
        font-size: 1.6rem;
    }

    .welcome-description {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .welcome-stats {
        gap: 25px;
        padding: 15px 0;
        margin-bottom: 20px;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .welcome-actions {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        margin-top: 0.8rem;
    }

    .welcome-cta {
        padding: 8px 16px;
        width: 100%;
        max-width: 200px;
        justify-content: center;
        font-size: 0.8rem;
    }

    .floating-icons {
        display: none;
    }
}

/* ===== GOOGLE ADS STYLING ===== */

/* Ad Container Base Styles */
.ad-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes shimmer {

    0%,
    100% {
        background-position: 200% 0;
    }

    50% {
        background-position: -200% 0;
    }
}

/* Ad Slot Styles */
.ad-slot {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    position: relative;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Specific Ad Container Styles */
.header-ad {
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.header-ad .ad-slot {
    width: 728px;
    height: 90px;
    max-width: 100%;
}

.content-ad {
    margin: 0.5rem 0;
}

.content-ad .ad-slot {
    width: 300px;
    height: 250px;
    max-width: 100%;
}

.footer-ad {
    margin: 3rem 0 2rem 0;
}

.footer-ad .ad-slot {
    width: 728px;
    height: 90px;
    max-width: 100%;
}

/* Loading State for Ads */
.ad-slot:empty::before {
    content: 'Advertisement';
    color: #a0aec0;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Mobile Responsive Ad Styles */
@media (max-width: 768px) {

    .header-ad .ad-slot,
    .footer-ad .ad-slot {
        width: 320px;
        height: 50px;
    }

    .content-ad .ad-slot {
        width: 300px;
        height: 250px;
    }
}

@media (max-width: 480px) {

    .header-ad .ad-slot,
    .footer-ad .ad-slot {
        width: 100%;
        max-width: 320px;
        height: 50px;
    }

    .content-ad .ad-slot {
        width: 100%;
        max-width: 300px;
        height: 250px;
    }
}

/* Anchor Ad Styles */
/* Ensure anchor ads don't interfere with page content */
body {
    padding-bottom: 60px;
    /* Space for anchor ad on mobile */
}

@media (min-width: 768px) {
    body {
        padding-bottom: 90px;
        /* Space for anchor ad on desktop */
    }
}

/* Ensure anchor ads work well with fixed navigation */
.anchor-ad-space {
    height: 60px;
    /* Mobile anchor ad height */
    width: 100%;
}

@media (min-width: 768px) {
    .anchor-ad-space {
        height: 90px;
        /* Desktop anchor ad height */
    }
}

/* Prevent anchor ads from covering important content */
.container {
    position: relative;
    z-index: 1;
}

/* Ensure anchor ads don't interfere with modals */
.modal {
    z-index: 10000 !important;
}

/* Anchor ad responsive adjustments */
@media (max-width: 480px) {
    body {
        padding-bottom: 50px;
        /* Smaller space on very small screens */
    }

    .anchor-ad-space {
        height: 50px;
    }
}

/* Ensure anchor ads don't interfere with calculator forms */
.calculator-form,
.results {
    margin-bottom: 20px;
}

/* Anchor ad compatibility with existing layout */
.simple-cta,
.enhanced-cta {
    margin-bottom: 20px;
}