/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 1rem 0;
}

.header-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    color: #2c3e50;
    font-weight: 700;
}

.logo-link {
    text-decoration: none;
}

.main-nav {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #3498db;
}

.nav-link i {
    font-size: 1.1rem;
}

/* Language Selector */
.language-selector {
    margin-left: 1rem;
    position: relative;
}

.language-select-wrapper {
    position: relative;
}

.language-icon {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: #3498db;
    font-size: 0.9rem;
    pointer-events: none;
    z-index: 2;
}

.language-select-btn {
    padding: 0.6rem 2.5rem 0.6rem 2.5rem;
    border: 1.5px solid #e0e0e0;
    border-radius: 25px;
    background: white;
    color: #2c3e50;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    font-family: inherit;
}

.language-select-btn:hover {
    border-color: #3498db;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.15);
}

.language-select-btn.active {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.language-selected {
    flex: 1;
    text-align: left;
}

.language-arrow {
    font-size: 0.7rem;
    color: #3498db;
    transition: transform 0.3s ease;
}

.language-select-btn.active .language-arrow {
    transform: rotate(180deg);
}

.language-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: white;
    border: 1.5px solid #e0e0e0;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 1000;
    overflow: hidden;
    min-width: 120px;
}

.language-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    padding: 0.8rem 1.2rem;
    color: #2c3e50;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-radius: 12px;
    margin: 0.3rem;
}

.language-option:first-child {
    margin-top: 0.5rem;
}

.language-option:last-child {
    margin-bottom: 0.5rem;
}

.language-option:hover {
    background-color: #f8f9fa;
}

.language-option.active {
    background-color: #3498db;
    color: white;
}

@media (max-width: 768px) {
    .language-selector {
        margin-left: 0.5rem;
    }
    
    .language-select-btn {
        padding: 0.5rem 2rem 0.5rem 2.2rem;
        font-size: 0.85rem;
        min-width: 100px;
    }
    
    .language-icon {
        left: 0.7rem;
        font-size: 0.8rem;
    }
    
    .language-dropdown {
        min-width: 100px;
    }
}

/* Main Content */
main {
    margin-top: 120px;
    padding: 0;
}

/* Title Section */
.title-section {
    text-align: center;
    padding: 2rem 1rem;
    background-color: #f8fafc;
    margin-bottom: 2rem;
}

.title-section h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.title-section .subtitle {
    font-size: 1.2rem;
    color: #7f8c8d;
    margin-bottom: 2rem;
}

.title-section .highlight {
    color: #3498db;
}

/* Site Description */
.site-description {
    max-width: 1100px;
    margin: 3rem auto;
    padding: 0 2rem;
    text-align: center;
}

.site-description h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.site-description h3 {
    color: #3498db;
    margin: 2rem 0 1rem;
    font-size: 1.4rem;
}

.site-description p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.site-description ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.site-description li {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    text-align: left;
}

/* Search Section */
.search-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-container input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.search-container input:focus {
    border-color: #3498db;
    outline: none;
}

.search-button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #3498db;
    cursor: pointer;
    padding: 0.5rem;
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 100;
    display: none;
}

.suggestion-item {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid #eee;
}

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

.suggestion-item a {
    color: #2c3e50;
    text-decoration: none;
    display: block;
}

.suggestion-item:hover {
    background-color: #f8f9fa;
}

/* Calculator Grid */
.calculator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.calculator-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.calculator-card:hover {
    transform: translateY(-5px);
}

.calculator-card i {
    font-size: 2.5rem;
    color: #3498db;
    margin-bottom: 1rem;
}

.calculator-card h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.calculator-card p {
    color: #666;
    margin-bottom: 1.5rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #2980b9;
}

/* Footer */
.footer {
    background-color: #2c3e50;
    color: white;
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.footer-links {
    margin-bottom: 1rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    margin: 0 1rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #3498db;
}

.copyright {
    font-size: 0.9rem;
    color: #bdc3c7;
}

/* Loan Calculator Styles */
.calculator-main {
    margin-top: 100px;
    padding: 2rem;
}

.calculator-container {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.calculator-description {
    text-align: center;
    color: #666;
    margin-bottom: 2rem;
}

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

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

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

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    border-color: #3498db;
    outline: none;
}

.calculate-btn {
    width: 100%;
    padding: 1rem;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.calculate-btn:hover {
    background-color: #2980b9;
}

.results-container {
    display: none;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #f0f0f0;
}

.results-container h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    text-align: center;
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.result-item span:first-child {
    color: #666;
}

.result-item span:last-child {
    color: #2c3e50;
    font-weight: 600;
}

.loan-info-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.loan-info-section h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.loan-info-section p {
    color: #505965;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.key-features {
    margin-top: 2rem;
}

.key-features ul {
    list-style-type: none;
    padding: 0;
}

.key-features li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.key-features li:before {
    content: "✓";
    color: #3498db;
    position: absolute;
    left: 0;
}

/* Responsive Styles for Loan Calculator */
@media (max-width: 768px) {
    .calculator-container,
    .loan-info-section {
        padding: 1.5rem;
    }

    .calculator-main {
        padding: 1rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        padding: 0 1rem;
        flex-direction: column;
        gap: 1rem;
    }

    .logo h1 {
        font-size: 1.5rem;
    }

    .main-nav {
        width: 100%;
        justify-content: center;
    }

    main {
        padding: 0;
        margin-top: 120px;
    }

    .site-description h1 {
        font-size: 2rem;
    }

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

    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
}

/* FAQ Section Styles */
.faq-section {
    max-width: 1100px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.faq-section h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

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

.faq-item h3 {
    color: #3498db;
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

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

/* Responsive Styles */
@media (max-width: 768px) {
    .title-section h1 {
        font-size: 2rem;
    }
    
    .title-section .subtitle {
        font-size: 1rem;
    }
    
    .site-description {
        padding: 0 1rem;
    }
    
    .site-description ul {
        grid-template-columns: 1fr;
    }
    
    .faq-section {
        padding: 0 1rem;
    }
    
    .faq-item {
        padding: 1rem;
    }
    
    .calculator-grid {
        padding: 0 1rem;
    }
}

/* Breadcrumb Navigation */
.breadcrumb {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem;
}

.breadcrumb nav {
    font-size: 0.9rem;
}

.breadcrumb ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li:not(:last-child)::after {
    content: '/';
    margin-left: 0.5rem;
    color: #666;
}

.breadcrumb a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.breadcrumb [aria-current="page"] {
    color: #666;
    font-weight: 500;
} 