/* Services Application Styles */

.hero-savings {
    background: linear-gradient(rgba(27, 94, 32, 0.9), rgba(27, 94, 32, 0.9)),
        url("/static/images/backgrounds/pattern.f46a9516fb19.webp");
    background-size: cover;
    background-position: center;
}

.hero-loans {
    background: linear-gradient(rgba(191, 161, 95, 0.9), rgba(191, 161, 95, 0.9)),
        url("/static/images/backgrounds/pattern.f46a9516fb19.webp");
    background-size: cover;
    background-position: center;
}

/* Dark hero text overrides */
.hero-savings ~ .hero-content .hero-label,
.hero-loans ~ .hero-content .hero-label,
.hero-remittance ~ .hero-content .hero-label {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
}

.hero-savings ~ .hero-content .hero-title,
.hero-loans ~ .hero-content .hero-title,
.hero-remittance ~ .hero-content .hero-title {
    color: #fff;
}

.hero-savings ~ .hero-content .hero-desc,
.hero-loans ~ .hero-content .hero-desc,
.hero-remittance ~ .hero-content .hero-desc {
    color: rgba(255, 255, 255, 0.85);
}

.hero-savings ~ .hero-content .title-accent-words .accent-gold,
.hero-loans ~ .hero-content .title-accent-words .accent-gold,
.hero-remittance ~ .hero-content .title-accent-words .accent-gold {
    color: var(--accent-warm-light);
}

.hero-savings ~ .hero-content .title-accent-words .accent-green,
.hero-loans ~ .hero-content .title-accent-words .accent-green,
.hero-remittance ~ .hero-content .title-accent-words .accent-green {
    color: #a5d6a7;
}

.hero-small-service {
    padding-top: 180px !important;
    padding-bottom: 60px !important;
}

.savings-grid,
.loans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.savings-card,
.loan-card {
    background: white;
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border);
    transition: transform 0.3s ease;
}

.savings-card:hover,
.loan-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
}

.savings-icon,
.loan-icon,
.partner-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.hero-remittance {
    background: linear-gradient(rgba(21, 101, 192, 0.9), rgba(21, 101, 192, 0.9)),
        url("/static/images/backgrounds/pattern.f46a9516fb19.webp");
    background-size: cover;
    background-position: center;
}

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

.partner-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: transform 0.3s ease;
}

.partner-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.partner-name {
    font-weight: 600;
    color: var(--text);
}

/* Rates Table */
.table-container {
    max-width: 800px;
    margin-inline: auto;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border);
}

.rates-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.rates-table thead {
    background: var(--color-deuraligreen);
    color: #fff;
}

.rates-table th {
    padding: 1rem 1.25rem;
    font-weight: 600;
    text-align: center;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.rates-table th:first-child {
    text-align: left;
}

.rates-table td {
    padding: 0.875rem 1.25rem;
    text-align: center;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

.rates-table td:first-child {
    text-align: left;
    font-weight: 600;
    color: var(--text);
}

.rates-table td:last-child {
    font-weight: 700;
    color: var(--color-deuraligreen);
}

.rates-table tbody tr {
    background: var(--bg-elevated);
    transition: background 0.2s ease;
}

.rates-table tbody tr:nth-child(even) {
    background: var(--bg-subtle, rgba(0, 0, 0, 0.02));
}

.rates-table tbody tr:hover {
    background: rgba(27, 94, 32, 0.05);
}

.rates-table tbody tr:last-child td {
    border-bottom: none;
}

.rate-highlight {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(27, 94, 32, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
    font-weight: 700;
    color: var(--color-deuraligreen);
}

@media (max-width: 640px) {
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .rates-table {
        min-width: 480px;
    }

    .rates-table th,
    .rates-table td {
        padding: 0.75rem 0.875rem;
        font-size: 0.8125rem;
    }
}