/*
Theme Name: Chase Cooperative Pro
Theme URI: https://cooperative.chase.com.np
Author: Chase Saving & Credit Co-operative Ltd.
Author URI: https://cooperative.chase.com.np
Description: Customisable WordPress Theme & CMS for Chase Saving & Credit Co-operative Ltd. (चेज बचत तथा ऋण सहकारी संस्था लि.) with Bilingual Nepali/English content, Full WordPress Customizer CMS controls, Custom Post Types for Saving/Loan Schemes, and Interactive EMI Loan & Pension Calculators.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: chase-cooperative
*/

/* Base variables overridden dynamically by WordPress Customizer */
:root {
    --chase-green: #009944;
    --chase-green-dark: #007735;
    --chase-green-light: #e8f7ee;
    --chase-red: #d92626;
    --chase-blue: #0b5394;
    --chase-gold: #f59e0b;
    --chase-text: #1e293b;
    --chase-muted: #64748b;
    --chase-bg: #f8fafc;
    --chase-white: #ffffff;
    --chase-border: #e2e8f0;
    --radius: 12px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

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

body {
    font-family: 'Noto Sans Devanagari', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--chase-text);
    background-color: var(--chase-bg);
    line-height: 1.65;
    font-size: 16px;
}

a {
    color: var(--chase-green);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--chase-green-dark);
}

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

/* Top Bar */
.top-bar {
    background: var(--chase-green-dark);
    color: #fff;
    font-size: 13.5px;
    padding: 8px 0;
}

.top-bar-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.top-bar-left span, .top-bar-right span {
    margin-right: 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.reg-badge {
    background: rgba(255,255,255,0.18);
    padding: 2px 10px;
    border-radius: 99px;
    font-weight: 600;
}

/* Header & Navigation */
.site-header {
    background: var(--chase-white);
    border-bottom: 3px solid var(--chase-green);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    gap: 20px;
}

.brand-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-logo-svg {
    width: 54px;
    height: 54px;
    flex-shrink: 0;
}

.brand-titles .np-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--chase-green);
    line-height: 1.2;
}

.brand-titles .en-title {
    font-size: 13px;
    font-weight: 800;
    color: var(--chase-text);
    letter-spacing: 0.4px;
}

.brand-titles .slogan {
    font-size: 12px;
    color: var(--chase-red);
    font-weight: 600;
}

.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 22px;
}

.main-nav a {
    color: var(--chase-text);
    font-weight: 600;
    font-size: 15px;
    padding: 6px 2px;
}

.main-nav a:hover, .main-nav .current-menu-item > a {
    color: var(--chase-green);
    border-bottom: 2px solid var(--chase-green);
}

.header-cta {
    background: var(--chase-green);
    color: #fff !important;
    padding: 10px 18px !important;
    border-radius: 8px;
    font-weight: 700;
    border: none !important;
    display: inline-block;
}

.header-cta:hover {
    background: var(--chase-green-dark);
    transform: translateY(-1px);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: 1px solid var(--chase-border);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 20px;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #007735 0%, #009944 60%, #059669 100%);
    color: #fff;
    padding: 64px 0;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.hero-tag {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 5px 14px;
    border-radius: 99px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 14px;
}

.hero-title {
    font-size: 38px;
    line-height: 1.25;
    font-weight: 800;
    margin-bottom: 14px;
}

.hero-subtitle {
    font-size: 17px;
    opacity: 0.94;
    margin-bottom: 26px;
    max-width: 620px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.btn-primary {
    background: #fff;
    color: var(--chase-green-dark);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    background: #f1f5f9;
    color: var(--chase-green-dark);
}

.btn-outline {
    border: 2px solid #fff;
    color: #fff;
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 700;
}

.btn-outline:hover {
    background: rgba(255,255,255,0.12);
    color: #fff;
}

.hero-highlight-card {
    background: rgba(255, 255, 255, 0.97);
    color: var(--chase-text);
    padding: 26px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.18);
}

.hero-highlight-card h3 {
    color: var(--chase-green);
    font-size: 20px;
    margin-bottom: 14px;
    border-bottom: 2px solid var(--chase-green-light);
    padding-bottom: 8px;
}

.quick-stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.stat-box {
    background: var(--chase-green-light);
    padding: 14px;
    border-radius: 10px;
}

.stat-box .stat-val {
    font-size: 20px;
    font-weight: 800;
    color: var(--chase-green-dark);
}

.stat-box .stat-lbl {
    font-size: 12.5px;
    color: var(--chase-muted);
    font-weight: 600;
}

/* Sections */
.section-pad {
    padding: 64px 0;
}

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 42px;
}

.section-badge {
    background: var(--chase-blue);
    color: #fff;
    padding: 4px 14px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 8px;
}

.section-title {
    font-size: 30px;
    font-weight: 800;
    color: var(--chase-text);
    margin-bottom: 8px;
}

.section-desc {
    color: var(--chase-muted);
    font-size: 15.5px;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.scheme-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--chase-green);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease;
}

.scheme-card:hover {
    transform: translateY(-4px);
}

.scheme-card.special {
    border-top-color: var(--chase-blue);
}

.scheme-card.loan {
    border-top-color: var(--chase-red);
}

.scheme-title {
    font-size: 19px;
    font-weight: 700;
    color: var(--chase-red);
    margin-bottom: 12px;
}

.scheme-card.loan .scheme-title {
    color: var(--chase-blue);
}

.scheme-meta-list {
    list-style: none;
    margin-bottom: 16px;
}

.scheme-meta-list li {
    padding: 6px 0;
    border-bottom: 1px dashed var(--chase-border);
    display: flex;
    justify-content: space-between;
    font-size: 14.5px;
}

.scheme-meta-list li:last-child {
    border-bottom: none;
}

.scheme-meta-list span.val {
    font-weight: 700;
    color: var(--chase-text);
}

.rate-pill {
    background: var(--chase-green-light);
    color: var(--chase-green-dark);
    font-weight: 800;
    padding: 2px 10px;
    border-radius: 99px;
    font-size: 14px;
}

/* Tables */
.table-wrap {
    overflow-x: auto;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 28px;
}

.chase-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    font-size: 14.5px;
}

.chase-table th {
    background: var(--chase-green);
    color: #fff;
    padding: 13px 16px;
    font-weight: 700;
}

.chase-table.blue th {
    background: var(--chase-blue);
}

.chase-table td {
    padding: 11px 16px;
    border-bottom: 1px solid var(--chase-border);
}

.chase-table tr:nth-child(even) {
    background: #f8fafc;
}

/* Pension Highlight Box */
.pension-box {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--shadow);
    border-left: 6px solid var(--chase-blue);
}

.pension-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 32px;
    align-items: start;
}

.pension-points {
    list-style: none;
}

.pension-points li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    font-size: 15px;
}

.pension-points li::before {
    content: "❖";
    position: absolute;
    left: 0;
    color: var(--chase-green);
    font-weight: bold;
}

/* Loan & Deposit Calculator Widget */
.calc-wrapper {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 35px rgba(0,0,0,0.08);
    overflow: hidden;
    border: 1px solid var(--chase-border);
}

.calc-tabs {
    display: flex;
    background: #f1f5f9;
    border-bottom: 1px solid var(--chase-border);
}

.calc-tab-btn {
    flex: 1;
    padding: 16px;
    border: none;
    background: transparent;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    color: var(--chase-muted);
    transition: all 0.2s;
}

.calc-tab-btn.active {
    background: #fff;
    color: var(--chase-green);
    border-bottom: 3px solid var(--chase-green);
}

.calc-body {
    padding: 32px;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 36px;
}

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

.form-group label {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 14.5px;
}

.form-control {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
}

input[type="range"] {
    width: 100%;
    accent-color: var(--chase-green);
    margin-top: 8px;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--chase-green-light);
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 14px;
}

.calc-results-panel {
    background: linear-gradient(160deg, #007735 0%, #009944 100%);
    color: #fff;
    padding: 28px;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.emi-highlight {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    margin-bottom: 20px;
}

.emi-highlight .lbl {
    font-size: 14px;
    opacity: 0.9;
}

.emi-highlight .amt {
    font-size: 34px;
    font-weight: 800;
    margin-top: 4px;
}

.res-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14.5px;
    border-bottom: 1px dashed rgba(255,255,255,0.2);
}

.res-row:last-child {
    border-bottom: none;
}

.amort-toggle-btn {
    margin-top: 18px;
    width: 100%;
    background: #fff;
    color: var(--chase-green-dark);
    border: none;
    padding: 11px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
}

/* Remittance Banner */
.remit-banner {
    background: linear-gradient(90deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #f59e0b;
    border-radius: 14px;
    padding: 24px 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-top: 32px;
}

/* Page & Single Content */
.page-banner {
    background: var(--chase-green);
    color: #fff;
    padding: 40px 0;
    margin-bottom: 40px;
}

.page-content-card {
    background: #fff;
    padding: 36px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 48px;
}

/* Footer */
.site-footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 56px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 32px;
    padding-bottom: 36px;
    border-bottom: 1px solid #1e293b;
}

.footer-title {
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 9px;
    font-size: 14.5px;
}

.footer-links a {
    color: #cbd5e1;
}

.footer-links a:hover {
    color: #34d399;
}

.footer-bottom {
    text-align: center;
    padding-top: 22px;
    font-size: 13.5px;
    color: #94a3b8;
}

@media (max-width: 920px) {
    .hero-grid, .pension-grid, .calc-body, .footer-grid {
        grid-template-columns: 1fr;
    }
    .main-nav {
        display: none;
        width: 100%;
    }
    .main-nav.open {
        display: block;
    }
    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
        padding-top: 12px;
    }
    .mobile-menu-toggle {
        display: block;
    }
    .header-inner {
        flex-wrap: wrap;
    }
}
