/* Budget Basics Page Specific Styles */

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--navy) 0%, #2a3f5f 100%);
    color: var(--white);
    padding: 80px 20px;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p {
    font-size: 20px;
    max-width: 600px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.hero-verse {
    font-style: italic;
    color: var(--white);
    margin-top: 20px;
    font-size: 16px;
}

/* Main Content */
.container {
    /* relies on global .container for layout */
    /* this override is only if you want less vertical padding: */
    padding-top: 40px;
    padding-bottom: 40px;
}

.section-title {
    /* uses global styles, just tweak spacing if needed */
    margin-bottom: 40px;
}

/* Tool Categories */
.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.tool-card {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: 15px;
    padding: 30px;
    transition: all 0.3s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.tool-card:hover {
    border-color: var(--white);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(8, 102, 42, 0.1);
}

.tool-icon {
    width: 60px;
    height: 60px;
    background: var(--green);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin-bottom: 20px;
}

.tool-card h3 {
    color: var(--navy);
    font-size: 24px;
    margin-bottom: 10px;
    align-items: center;
    display: flex;
    flex-direction: column;
}
}

.tool-card p {
    color: #666;
    margin-bottom: 20px;
}

.tool-card button {
    background: var(--green);
    color: var(--white);
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    width: 100%;
}

.tool-card button:hover {
    background: #0a7a32;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    overflow-y: auto;
}

.modal-content {
    background: var(--white);
    max-width: 800px;
    margin: 50px auto;
    border-radius: 20px;
    padding: 40px;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 30px;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--navy);
}

.modal h2 {
    color: var(--navy);
    margin-bottom: 30px;
    font-size: 32px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--navy);
    font-weight: 600;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--green);
}

.calculate-btn {
    background: var(--green);
    color: var(--white);
    border: none;
    padding: 15px 40px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin-top: 20px;
    transition: background 0.3s;
}

.calculate-btn:hover {
    background: #0a7a32;
}

.result-box {
    background: var(--light-gray);
    border-left: 4px solid var(--green);
    padding: 20px;
    margin-top: 30px;
    border-radius: 8px;
    display: none;
}

.result-box h3 {
    color: var(--navy);
    margin-bottom: 15px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

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

.result-label {
    font-weight: 600;
    color: var(--navy);
}

.result-value {
    color: var(--green);
    font-weight: 700;
    font-size: 18px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 18px;
    }

    .tool-grid {
        grid-template-columns: 1fr;
    }
}
