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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8fafc;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
}

nav {
    display: flex;
    gap: 2rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

nav a:hover {
    opacity: 0.8;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Intro Section */
.intro {
    padding: 3rem 0;
    background: white;
}

.intro-text {
    font-size: 1.125rem;
    line-height: 1.7;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    color: #4a5568;
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: #2d3748;
}

.calculator-card {
    background: white;
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    max-width: 600px;
    margin: 0 auto;
}

.input-section {
    text-align: center;
    margin-bottom: 2rem;
}

.input-section label {
    display: block;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2d3748;
}

#income {
    width: 100%;
    max-width: 300px;
    padding: 1rem;
    font-size: 1.125rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    text-align: center;
    transition: border-color 0.3s ease;
    margin-bottom: 1.5rem;
}

#income:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.calculate-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.calculate-btn:active {
    transform: translateY(0);
}

/* Results */
.results {
    animation: fadeIn 0.5s ease;
}

.results.hidden {
    display: none;
}

.results h3 {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    color: #2d3748;
}

.budget-breakdown {
    display: grid;
    gap: 1.5rem;
}

.budget-item {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    border-radius: 12px;
    transition: transform 0.2s ease;
}

.budget-item:hover {
    transform: translateY(-2px);
}

.budget-item.needs {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
}

.budget-item.wants {
    background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
    color: white;
}

.budget-item.savings {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    color: white;
}

.budget-icon {
    font-size: 2rem;
    margin-right: 1rem;
}

.budget-details h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.amount {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.description {
    opacity: 0.9;
    font-size: 0.875rem;
}

/* Guide Section */
.guide-section {
    padding: 4rem 0;
    background: white;
}

.guide-content {
    max-width: 800px;
    margin: 0 auto;
}

.guide-content h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #2d3748;
}

.guide-content h4 {
    font-size: 1.375rem;
    font-weight: 600;
    margin: 2rem 0 1rem 0;
    color: #4a5568;
}

.guide-steps {
    margin-bottom: 3rem;
    padding-left: 1.5rem;
}

.guide-steps li {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.category-explanation {
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: #f7fafc;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.category-explanation ul {
    margin-top: 1rem;
    padding-left: 1.5rem;
}

.category-explanation li {
    margin-bottom: 0.5rem;
}

.tips-list {
    padding-left: 1.5rem;
}

.tips-list li {
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* FAQ Section */
.faq-section {
    padding: 4rem 0;
    background: #f7fafc;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.faq-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2d3748;
}

.faq-item p {
    line-height: 1.6;
    color: #4a5568;
}

/* Footer */
.footer {
    background: #2d3748;
    color: white;
    padding: 2rem 0;
    text-align: center;
}

/* Privacy Policy Page */
.privacy-section {
    padding: 4rem 0;
    background: white;
    min-height: 60vh;
}

.privacy-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: #2d3748;
}

.privacy-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

.privacy-content h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #4a5568;
}

.privacy-content p {
    margin-bottom: 1.5rem;
    color: #4a5568;
}

.privacy-content a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.privacy-content a:hover {
    text-decoration: underline;
}

/* Contact Us Page */
.contact-info {
    margin: 3rem 0;
}

.contact-method {
    background: #f7fafc;
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid #667eea;
    margin-bottom: 2rem;
}

.contact-method h3 {
    font-size: 1.375rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2d3748;
}

.contact-method p {
    margin-bottom: 0.5rem;
    color: #4a5568;
}

.contact-method a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.contact-method a:hover {
    text-decoration: underline;
}

/* About Us Page */
.about-section {
    padding: 4rem 0;
    background: white;
    min-height: 60vh;
}

.about-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: #2d3748;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

.about-intro {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 3rem;
    text-align: center;
}

.about-intro p {
    font-size: 1.125rem;
    margin: 0;
    line-height: 1.6;
}

.about-content h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin: 3rem 0 1.5rem 0;
    color: #2d3748;
}

.about-content p {
    margin-bottom: 1.5rem;
    color: #4a5568;
}

.about-content a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.about-content a:hover {
    text-decoration: underline;
}

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

.value-item {
    background: #f7fafc;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border-left: 4px solid #667eea;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.value-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.value-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.value-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2d3748;
}

.value-item p {
    color: #4a5568;
    margin: 0;
    line-height: 1.6;
}

.features-list {
    margin: 2rem 0;
    padding-left: 0;
    list-style: none;
}

.features-list li {
    background: #f7fafc;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    border-left: 4px solid #48bb78;
    line-height: 1.6;
}

.features-list strong {
    color: #2d3748;
}

.cta-section {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    padding: 3rem;
    border-radius: 12px;
    text-align: center;
    margin: 3rem 0;
}

.cta-section h2 {
    color: white;
    margin-top: 0;
    margin-bottom: 1rem;
}

.cta-section p {
    color: white;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    background: white;
    color: #38a169;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    color: #38a169;
    text-decoration: none;
}

/* Article Page Styles */
.article-section {
    padding: 4rem 0;
    background: white;
    min-height: 60vh;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: #2d3748;
    line-height: 1.2;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    font-size: 1.125rem;
}

.article-content h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin: 3rem 0 1.5rem 0;
    color: #2d3748;
    border-left: 4px solid #667eea;
    padding-left: 1rem;
}

.article-content h3 {
    font-size: 1.375rem;
    font-weight: 600;
    margin: 2rem 0 1rem 0;
    color: #4a5568;
}

.article-content p {
    margin-bottom: 1.5rem;
    color: #4a5568;
}

.article-content ul {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.75rem;
    color: #4a5568;
}

.savings-goals {
    display: grid;
    gap: 2rem;
    margin: 2rem 0;
}

.goal-item {
    background: #f7fafc;
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid #48bb78;
}

.goal-item h3 {
    color: #2d3748;
    margin-top: 0;
    margin-bottom: 1rem;
}

.goal-item p {
    margin: 0;
    color: #4a5568;
}

.dialogue-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    font-style: italic;
}

.dialogue-box p {
    color: white;
    margin-bottom: 1rem;
}

.dialogue-box p:last-child {
    margin-bottom: 0;
    font-style: normal;
    font-weight: 600;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .calculator-card {
        padding: 2rem 1rem;
    }
    
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    nav {
        gap: 1rem;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .calculator-card {
        margin: 0 1rem;
    }
    
    .budget-item {
        flex-direction: column;
        text-align: center;
    }
    
    .budget-icon {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
}