/* Interest Rates Calculator Styles */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #ffffff;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header Styles */
.main-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: 70px;
}

.logo a {
    font-size: 26px;
    font-weight: 700;
    color: #204080;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 12px;
    align-items: center;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 14px 18px;
    border-radius: 10px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav-links a:hover {
    color: #204080;
    background: rgba(32, 64, 128, 0.08);
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    min-width: 250px;
    padding: 12px;
    margin-top: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.dropdown-menu a {
    display: block;
    padding: 12px 16px;
    color: #333;
    font-size: 15px;
    border-radius: 8px;
    margin: 2px 0;
}

.dropdown-menu a:hover {
    background: rgba(32, 64, 128, 0.08);
    color: #204080;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #204080;
    font-size: 22px;
    cursor: pointer;
    padding: 8px;
}

/* Breadcrumb */
.breadcrumb {
    background: #f8f9fa;
    padding: 16px 0;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb nav ol {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
}

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

.breadcrumb nav ol li:not(:last-child)::after {
    content: '>';
    margin-left: 8px;
    color: #666;
}

.breadcrumb nav ol li a {
    color: #204080;
    text-decoration: none;
    font-size: 14px;
}

.breadcrumb nav ol li a:hover {
    text-decoration: underline;
}

.breadcrumb nav ol li[aria-current="page"] {
    color: #666;
    font-size: 14px;
}

/* Calculator Section */
.calculator-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 24px;
}

.calculator-intro {
    text-align: center;
    margin-bottom: 50px;
}

.calculator-intro h1 {
    font-size: 42px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.calculator-intro h1 .icon-primary {
    color: #204080;
    font-size: 38px;
}

.calculator-intro p {
    font-size: 20px;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Form Styles */
.calculator-form {
    background: white;
    border-radius: 18px;
    padding: 40px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 50px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.calculator-form h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 30px;
    text-align: center;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.input-group {
    display: flex;
    flex-direction: column;
}

.input-label {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.input-label.required::after {
    content: ' *';
    color: #e74c3c;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.currency-symbol {
    position: absolute;
    left: 16px;
    color: #666;
    font-weight: 600;
    z-index: 1;
}

.percent-symbol {
    position: absolute;
    right: 16px;
    color: #666;
    font-weight: 600;
}

.form-input, .with-currency {
    width: 100%;
    padding: 16px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.2s ease;
    background: white;
}

.with-currency {
    padding-left: 40px;
}

.form-input:focus, .with-currency:focus {
    outline: none;
    border-color: #204080;
    box-shadow: 0 0 0 3px rgba(32, 64, 128, 0.1);
}

.button-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.calculate-button, .reset-button {
    padding: 16px 32px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.calculate-button {
    background: #204080;
    color: white;
    box-shadow: 0 4px 15px rgba(32, 64, 128, 0.3);
}

.calculate-button:hover {
    background: #1a3366;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(32, 64, 128, 0.4);
}

.reset-button {
    background: #6c757d;
    color: white;
}

.reset-button:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* Results Section */
.calculator-results {
    background: white;
    border-radius: 18px;
    padding: 40px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 50px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.calculator-results h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 30px;
    text-align: center;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.result-item {
    background: #f8f9ff;
    border-radius: 14px;
    padding: 24px;
    text-align: center;
    border: 1px solid rgba(32, 64, 128, 0.1);
}

.result-item h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.result-item .icon-primary {
    color: #204080;
    font-size: 20px;
}

.result-value {
    font-size: 32px;
    font-weight: 700;
    color: #204080;
    margin: 0;
}

.breakdown {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 24px;
    margin-top: 20px;
}

.breakdown h3 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.breakdown .icon-primary {
    color: #204080;
    font-size: 18px;
}

.breakdown ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.breakdown li {
    padding: 8px 0;
    color: #666;
    font-size: 16px;
    border-bottom: 1px solid #e9ecef;
}

.breakdown li:last-child {
    border-bottom: none;
}

/* Related Calculators */
.related-calculators {
    background: white;
    border-radius: 18px;
    padding: 40px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 50px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.related-calculators h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 30px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.related-calculators .icon-primary {
    color: #204080;
    font-size: 26px;
}

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

.related-card {
    background: #f8f9ff;
    border-radius: 12px;
    padding: 24px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 1px solid rgba(32, 64, 128, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(32, 64, 128, 0.15);
    text-decoration: none;
    color: inherit;
}

.related-card .icon-primary {
    color: #204080;
    font-size: 24px;
}

.related-card span {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

/* FAQ Section */
.faq-section {
    background: white;
    border-radius: 18px;
    padding: 40px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 50px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.faq-header {
    text-align: center;
    margin-bottom: 40px;
}

.faq-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.faq-header .icon-primary {
    color: #204080;
    font-size: 26px;
}

.faq-header p {
    font-size: 18px;
    color: #666;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.faq-question {
    padding: 20px 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
    background: white;
}

.faq-question:hover {
    background: rgba(32, 64, 128, 0.02);
}

.faq-question h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    flex: 1;
}

.faq-question i {
    color: #204080;
    transition: transform 0.3s ease;
    font-size: 16px;
    margin-left: 16px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.faq-answer p {
    padding: 20px 0;
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

/* Footer Styles */
.main-footer {
    background: #1a1a1a;
    color: white;
    padding: 50px 0 25px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

.footer-section h3 {
    color: #204080;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-section p {
    color: #ccc;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 0;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section li {
    margin-bottom: 12px;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.2s ease;
}

.footer-section a:hover {
    color: #204080;
}

.footer-bottom {
    border-top: 1px solid #333;
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    color: #999;
    font-size: 14px;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 25px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        gap: 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid #eee;
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: block;
        padding: 18px 0;
        width: 100%;
        font-size: 18px;
    }

    .mobile-menu-btn {
        display: block;
    }

    .dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        margin: 18px 0 0 25px;
        background: #f8f9fa;
        border: none;
    }

    .calculator-intro h1 {
        font-size: 32px;
        flex-direction: column;
        gap: 10px;
    }

    .calculator-intro p {
        font-size: 18px;
    }

    .calculator-form,
    .calculator-results,
    .related-calculators,
    .faq-section {
        padding: 30px 20px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .results-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .related-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .button-group {
        flex-direction: column;
        align-items: center;
    }

    .calculate-button,
    .reset-button {
        width: 100%;
        max-width: 300px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .calculator-intro h1 {
        font-size: 28px;
    }

    .calculator-intro p {
        font-size: 16px;
    }

    .calculator-form h2,
    .calculator-results h2,
    .related-calculators h2,
    .faq-header h2 {
        font-size: 24px;
    }

    .result-value {
        font-size: 28px;
    }

    .calculator-form,
    .calculator-results,
    .related-calculators,
    .faq-section {
        padding: 24px 16px;
    }
}