/* =========================================================
   MahaFind – IFSC Code Finder: Green Premium Theme
   Matches home-3d.css design system exactly.
   ========================================================= */

/* ─── Page Base ─── */
.ifsc-page {
    background: var(--h3d-primary-bg, #f0faf4);
}

/* ─── Hero Section ─── */
.ifsc-page .hero-section {
    background: linear-gradient(135deg, #15803d 0%, #16a34a 45%, #22c55e 100%);
    padding-top: 100px;
    padding-bottom: 5rem;
    position: relative;
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
    margin-bottom: -3rem;
    color: #fff;
    isolation: isolate;
}

/* Grid overlay */
.ifsc-page .hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

/* Orb */
.ifsc-page .hero-section::after {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 420px; height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 70%);
    animation: ifsc-orb 8s ease-in-out infinite;
    pointer-events: none;
}
@keyframes ifsc-orb {
    0%, 100% { transform: translateY(0) scale(1); }
    50%       { transform: translateY(-30px) scale(1.08); }
}

.ifsc-page .hero-content { position: relative; z-index: 2; }
.ifsc-page .hero-title {
    text-shadow: 0 4px 24px rgba(0,0,0,0.15);
    font-weight: 900;
    line-height: 1.15;
}
.ifsc-page .hero-badge {
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.18);
}

/* ─── Metrics Card ─── */
.ifsc-page .hero-insight {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.25);
    box-shadow: 0 16px 50px rgba(0,0,0,0.12);
    transform: perspective(1200px) rotateY(-5deg) rotateX(2deg);
    transition: transform 0.4s ease;
    position: relative;
    z-index: 2;
}
.ifsc-page .hero-insight:hover {
    transform: perspective(1200px) rotateY(0deg) rotateX(0deg) scale(1.02);
}
.ifsc-page .metric-tile {
    border-radius: 14px;
    padding: 1rem;
    text-align: center;
    transition: all 0.25s ease;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.1);
}
.ifsc-page .metric-tile:hover {
    transform: translateY(-4px);
    background: rgba(255,255,255,0.18);
}
.ifsc-page .metric-value {
    font-size: 1.7rem;
    font-weight: 900;
    display: block;
    line-height: 1.2;
    color: #86efac;
}

/* ─── IFSC Search Section ─── */
.ifsc-page .ifsc-section {
    position: relative;
    z-index: 10;
    padding-top: 0;
    background: transparent;
}
.ifsc-page .ifsc-card {
    background: #fff;
    border-radius: 24px;
    border: 1px solid rgba(22,163,74,0.12);
    box-shadow: 0 24px 80px rgba(22,163,74,0.20), 0 8px 24px rgba(0,0,0,0.08);
    transform: translateY(-50px);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.ifsc-page .ifsc-card:hover {
    transform: translateY(-56px);
    box-shadow: 0 30px 100px rgba(22,163,74,0.28);
}

/* ─── Form Inputs ─── */
.ifsc-page .form-control,
.ifsc-page .form-select {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: #fafbfc;
    color: #1e293b;
    font-family: 'Inter', sans-serif;
    transition: all 0.25s ease;
}
.ifsc-page .form-control:focus,
.ifsc-page .form-select:focus {
    border-color: #16a34a;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(22,163,74,0.12);
}
.ifsc-page .input-group-text {
    background: #f0faf4;
    border: none;
    border-radius: 12px 0 0 12px;
    color: #16a34a;
    padding-left: 1.1rem;
}

/* ─── Primary Button ─── */
.ifsc-page .btn-primary {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    border: none;
    border-radius: 12px;
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(22,163,74,0.38);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.ifsc-page .btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}
.ifsc-page .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(22,163,74,0.50);
    background: linear-gradient(135deg, #15803d 0%, #14532d 100%);
}
.ifsc-page .btn-primary:hover::before { left: 100%; }
.ifsc-page .btn-primary:active {
    transform: translateY(1px);
    box-shadow: inset 0 3px 5px rgba(0,0,0,0.15);
}

/* ─── Filter Toggle ─── */
#ifscFilterToggle {
    background: #f0faf4;
    border: 1.5px solid rgba(22,163,74,0.25) !important;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    color: #16a34a !important;
    transition: all 0.3s ease;
}
#ifscFilterToggle:hover {
    background: #dcfce7;
    box-shadow: 0 4px 12px rgba(22,163,74,0.15);
    transform: translateY(-1px);
}

/* ─── Feature Cards ─── */
.ifsc-page .feature-card {
    background: #fff;
    border-radius: 20px;
    padding: 2.2rem 1.8rem;
    border: 1px solid rgba(22,163,74,0.12);
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    transition: all 0.35s cubic-bezier(0.34,1.56,0.64,1);
    height: 100%;
    position: relative;
    overflow: hidden;
}
.ifsc-page .feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #16a34a, #22c55e);
    border-radius: 20px 20px 0 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}
.ifsc-page .feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(22,163,74,0.22);
}
.ifsc-page .feature-card:hover::before { transform: scaleX(1); }
.ifsc-page .feature-card i.fa-3x {
    width: 72px; height: 72px;
    line-height: 72px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #dcfce7;
    color: #16a34a;
    box-shadow: 0 8px 24px rgba(22,163,74,0.20);
    transition: all 0.35s ease;
}
.ifsc-page .feature-card:hover i.fa-3x {
    background: linear-gradient(135deg, #16a34a, #22c55e);
    color: #fff;
    transform: scale(1.12) rotate(8deg);
    box-shadow: 0 12px 36px rgba(22,163,74,0.45);
}
.ifsc-page .feature-card h4 {
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.5rem;
}
.ifsc-page .feature-card p {
    font-size: 0.87rem;
    color: #64748b;
    line-height: 1.65;
}

/* ─── Knowledge Card ─── */
.ifsc-page .knowledge-card {
    background: linear-gradient(135deg, #f0faf4 0%, #dcfce7 100%);
    border-radius: 20px;
    border: 1px solid rgba(22,163,74,0.15);
    box-shadow: 0 8px 32px rgba(22,163,74,0.10);
}
.ifsc-page .knowledge-card h3 {
    color: #15803d;
    font-weight: 800;
}
.ifsc-page .knowledge-card li {
    padding: 0.45rem 0;
    border-bottom: 1px solid rgba(22,163,74,0.1);
    color: #334155;
    font-size: 0.92rem;
}
.ifsc-page .knowledge-card li:last-child { border-bottom: none; }

/* ─── IFSC Highlights Pill ─── */
.ifsc-page .ifsc-highlights {
    background: rgba(22,163,74,0.12) !important;
    color: #15803d !important;
    border-radius: 2rem;
    padding: 0.35rem 0.9rem;
    font-size: 0.82rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.ifsc-page .ifsc-highlights i { font-size: 0.85rem; }

/* ─── Results Table ─── */
.ifsc-page .table-responsive {
    border-radius: 15px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.07);
    background: #fff;
    overflow: hidden;
}
.ifsc-page .table thead th {
    background: linear-gradient(135deg, #14532d 0%, #15803d 100%);
    color: #fff;
    border: none;
    padding: 1rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    font-size: 0.85rem;
    text-transform: uppercase;
}
.ifsc-page .table tbody tr {
    transition: all 0.22s ease;
    border-left: 3px solid transparent;
}
.ifsc-page .table tbody tr:hover {
    background-color: #f0faf4;
    border-left-color: #16a34a;
}
.ifsc-page .table tbody tr:hover td:first-child a {
    color: #15803d;
}

/* ─── SEO Content Card ─── */
.ifsc-page .seo-content-section .card {
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.06);
    border: 1px solid rgba(22,163,74,0.10);
}

/* ─── Responsive ─── */
@media (max-width: 991px) {
    .ifsc-page .hero-insight {
        transform: none;
        margin-top: 2rem;
    }
    .ifsc-page .hero-insight:hover {
        transform: translateY(-4px);
    }
    .ifsc-page .hero-section {
        clip-path: none;
        padding-bottom: 3rem;
        margin-bottom: 0;
    }
    .ifsc-page .ifsc-card {
        transform: none;
        margin-top: -1.5rem;
    }
}
@media (max-width: 576px) {
    .ifsc-page .hero-title { font-size: 1.9rem; }
    .ifsc-page .feature-card { padding: 1.5rem; }
}
