/* Heritage Bank - Main Styles */

:root {
    --primary-green: #1a472a;
    --secondary-green: #2d5f3f;
    --gold: #d4af37;
    --light-bg: #f0f2f5;
    --dark-text: #1e293b;
    --light-text: #64748b;
    --muted-text: #94a3b8;
    --card-bg: #ffffff;
    --card-border: #e2e8f0;
    --card-radius: 16px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.08);
    --transition: all 0.25s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
}

/* Firefox-only: apply macOS font smoothing without triggering warnings in other browsers */
@-moz-document url-prefix() {
    body {
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Global word-wrap protection */
h1, h2, h3, h4, h5, h6, p, span, td, th, li, a, label, input, textarea, select {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    padding: 16px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-transparent {
    background: transparent;
    box-shadow: none;
    border-bottom: 1px solid transparent;
}

.navbar-solid {
    background: rgba(15, 43, 26, 0.97);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    box-shadow: 0 4px 30px rgba(0,0,0,0.15);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 10px 0;
}

.navbar-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section .logo {
    height: 70px;
    filter: brightness(0) invert(1);
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 20px;
}

.nav-links a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.92rem;
    transition: var(--transition);
    letter-spacing: -0.01em;
}

.nav-links a:hover {
    color: var(--gold);
}

.signin-link {
    opacity: 0.85;
}

.signin-link:hover {
    opacity: 1;
}

.cta-button a {
    background: var(--gold);
    color: var(--primary-green);
    padding: 10px 22px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.92rem;
    transition: var(--transition);
}

.cta-button a:hover {
    background: #c99c2a;
    color: var(--primary-green);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212,175,55,0.3);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 3px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    from { transform: scale(1.0); }
    to { transform: scale(1.08); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10,30,18,0.95) 0%, rgba(26,71,42,0.85) 40%, rgba(15,43,26,0.75) 100%);
}

/* Floating particles */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    animation: particleFloat 15s infinite ease-in-out;
}

.particle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; animation-duration: 18s; }
.particle:nth-child(2) { left: 30%; top: 60%; animation-delay: 2s; animation-duration: 22s; width: 4px; height: 4px; }
.particle:nth-child(3) { left: 60%; top: 30%; animation-delay: 4s; animation-duration: 16s; width: 8px; height: 8px; }
.particle:nth-child(4) { left: 80%; top: 70%; animation-delay: 1s; animation-duration: 20s; }
.particle:nth-child(5) { left: 50%; top: 80%; animation-delay: 3s; animation-duration: 14s; width: 5px; height: 5px; }
.particle:nth-child(6) { left: 90%; top: 15%; animation-delay: 5s; animation-duration: 24s; width: 3px; height: 3px; }

@keyframes particleFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    50% { transform: translate(-60px, -80px) rotate(180deg); }
}

/* Hero Split Layout */
.hero-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    align-items: center;
    min-height: calc(100vh - 80px);
}

.hero-content {
    color: white;
    max-width: 580px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(212,175,55,0.15);
    border: 1px solid rgba(212,175,55,0.3);
    color: var(--gold);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 24px;
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.text-gradient {
    color: var(--gold);
    font-weight: inherit;
    animation: none;
}

/* Old gradient version - disabled for better visibility */
/*
.text-gradient {
    background: linear-gradient(135deg, var(--gold), #f0d060, var(--gold));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease-in-out infinite;
}
*/

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 36px;
    opacity: 0.88;
    line-height: 1.75;
    max-width: 520px;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

/* Hero Trust Row */
.hero-trust-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-trust-avatars {
    display: flex;
    align-items: center;
}

.hero-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-top: 24px;
}

.hero-benefit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.88);
    font-size: 0.95rem;
    font-weight: 500;
}

.hero-benefit i {
    color: var(--gold);
    font-size: 0.95rem;
}

.hero-trust-avatars img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
    object-fit: cover;
    margin-left: -10px;
}

.hero-trust-avatars img:first-child {
    margin-left: 0;
}

.hero-trust-more {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--primary-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 800;
    margin-left: -10px;
    border: 2px solid rgba(255,255,255,0.3);
}

.hero-trust-text {
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
}
.hero-trust-text strong {
    color: rgba(255,255,255,0.9);
}

/* ===== Hero 3D Visual ===== */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
}

.hero-3d-scene {
    position: relative;
    width: 100%;
    max-width: 480px;
    height: 440px;
    perspective: 1200px;
}

/* 3D Floating Credit Card */
.floating-card-3d {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotateY(-12deg) rotateX(8deg);
    width: 360px;
    height: 220px;
    animation: cardFloat 6s ease-in-out infinite;
    transform-style: preserve-3d;
    z-index: 3;
}

.card-3d-front {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a472a 0%, #0f2b1a 40%, #1a472a 100%);
    border-radius: 20px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow:
        0 30px 60px rgba(0,0,0,0.4),
        0 0 0 1px rgba(212,175,55,0.15),
        inset 0 1px 0 rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
}

.card-3d-front::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(212,175,55,0.12) 0%, transparent 70%);
    pointer-events: none;
}

.card-3d-front::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -20%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    pointer-events: none;
}

.card-3d-chip {
    width: 44px;
    height: 32px;
    background: linear-gradient(135deg, #d4af37, #f0d060, #d4af37);
    border-radius: 6px;
    position: relative;
}

.card-3d-chip::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 20px;
    border: 1.5px solid rgba(0,0,0,0.15);
    border-radius: 3px;
}

.card-3d-contactless {
    position: absolute;
    top: 28px;
    right: 28px;
    color: rgba(255,255,255,0.4);
    font-size: 1.2rem;
    transform: rotate(90deg);
}

.card-3d-number {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.85);
    letter-spacing: 0.1em;
    font-weight: 500;
    font-family: 'Courier New', monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.card-3d-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.card-3d-label {
    display: block;
    font-size: 0.55rem;
    color: rgba(255,255,255,0.35);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2px;
}

.card-3d-value {
    display: block;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.9);
    font-weight: 600;
    letter-spacing: 0.03em;
}

.card-3d-logo {
    height: 28px;
    filter: brightness(0) invert(1);
    opacity: 0.7;
}

.card-3d-visa {
    font-size: 2rem;
    color: rgba(255,255,255,0.85);
    line-height: 1;
}

@keyframes cardFloat {
    0%, 100% {
        transform: translate(-50%, -50%) rotateY(-12deg) rotateX(8deg) translateZ(0);
    }
    50% {
        transform: translate(-50%, -50%) rotateY(-8deg) rotateX(4deg) translateZ(20px) translateY(-12px);
    }
}

/* Hero Widgets */
.hero-widget {
    position: absolute;
    background: rgba(255, 255, 255, 0.12);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 4;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.widget-icon {
    width: 40px;
    height: 40px;
    background: rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 1rem;
}

.widget-icon-green {
    background: rgba(76, 175, 80, 0.2);
    color: #66bb6a;
}

.widget-label {
    display: block;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 2px;
}

.widget-value {
    display: block;
    font-size: 1.05rem;
    color: white;
    font-weight: 700;
}

.widget-value-green {
    color: #66bb6a;
}

.hero-widget-balance {
    top: 30px;
    right: 10px;
    animation: widgetFloat1 5s ease-in-out infinite;
}

.hero-widget-growth {
    bottom: 60px;
    left: -10px;
    animation: widgetFloat2 6s ease-in-out infinite 1s;
}

.hero-widget-txn {
    bottom: 10px;
    right: 30px;
    padding: 10px 16px;
    gap: 8px;
    animation: widgetFloat3 5.5s ease-in-out infinite 0.5s;
}

.widget-check {
    color: #66bb6a;
    font-size: 1rem;
}

.widget-txn-text {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

@keyframes widgetFloat1 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
@keyframes widgetFloat2 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}
@keyframes widgetFloat3 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* Hero Decorative Shapes */
.hero-shape {
    position: absolute;
    border-radius: 50%;
    z-index: 1;
}

.hero-shape-1 {
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    top: -20px;
    left: 20px;
    animation: shapeFloat 8s ease-in-out infinite;
}

.hero-shape-2 {
    width: 80px;
    height: 80px;
    border: 2px solid rgba(212, 175, 55, 0.1);
    bottom: 20px;
    left: 50%;
    animation: shapeFloat 10s ease-in-out infinite 2s;
}

.hero-shape-3 {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.03);
    top: 30%;
    right: -10px;
    animation: shapeFloat 7s ease-in-out infinite 1s;
}

@keyframes shapeFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

    border-radius: 12px;
    position: relative;
}

.scroll-wheel {
    width: 3px;
    height: 8px;
    background: rgba(255,255,255,0.6);
    border-radius: 2px;
    position: absolute;
    left: 50%;
    top: 6px;
    transform: translateX(-50%);
    animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
    0% { opacity: 1; top: 6px; }
    100% { opacity: 0; top: 20px; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.btn {
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gold);
    color: var(--primary-green);
    box-shadow: 0 2px 8px rgba(212,175,55,0.25);
}

.btn-primary:hover {
    background: #c99c2a;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(212,175,55,0.4);
}

.btn-glow {
    box-shadow: 0 0 20px rgba(212,175,55,0.3), 0 2px 8px rgba(212,175,55,0.25);
}

.btn-glow:hover {
    box-shadow: 0 0 40px rgba(212,175,55,0.5), 0 8px 24px rgba(212,175,55,0.4);
}

.btn-secondary {
    background: rgba(255,255,255,0.08);
    color: white;
    border: 1.5px solid rgba(255,255,255,0.25);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-3px);
}

.btn-outline-light {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.4);
}

.btn-outline-light:hover {
    background: rgba(255,255,255,0.1);
    border-color: white;
    transform: translateY(-3px);
}

/* Scroll Reveal */
.reveal-up {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-up.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stats Section */
.quick-stats {
    background: transparent;
    padding: 0;
    margin-top: -60px;
    position: relative;
    z-index: 2;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
    overflow: hidden;
    position: relative;
}

.stats-grid::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, rgba(212,175,55,0.3), transparent, rgba(26,71,42,0.3), transparent, rgba(212,175,55,0.3));
    background-size: 300% 300%;
    border-radius: 22px;
    z-index: -1;
    animation: gradientBorder 6s ease infinite;
}

@keyframes gradientBorder {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.stat-card {
    padding: 40px 24px;
    border-right: 1px solid var(--card-border);
    transition: var(--transition);
    position: relative;
}

.stat-card:last-child {
    border-right: none;
}

.stat-card:hover {
    background: linear-gradient(180deg, #f8fafc, white);
}

.stat-icon-wrap {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(26,71,42,0.08), rgba(26,71,42,0.04));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}

.stat-icon-wrap i,
.stat-card > i {
    font-size: 1.3rem;
    color: var(--primary-green);
}

.stat-card h3 {
    font-size: 2rem;
    color: var(--primary-green);
    margin-bottom: 4px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.stat-card p {
    color: var(--light-text);
    font-size: 0.82rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-tag {
    display: inline-block;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    color: var(--primary-green);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

.section-tag-gold {
    background: linear-gradient(135deg, rgba(212,175,55,0.2), rgba(212,175,55,0.1));
    color: var(--gold);
}

.section-header h2 {
    font-size: 2.8rem;
    color: var(--primary-green);
    margin-bottom: 14px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.section-header p {
    color: var(--light-text);
    font-size: 1.1rem;
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.6;
}

.section-header-light h2 {
    color: white;
}

.section-header-light p {
    color: rgba(255,255,255,0.7);
}

/* Services - Bento Grid */
.services {
    padding: 100px 0 110px;
    background: var(--light-bg);
    position: relative;
    overflow: hidden;
}

.services::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(26,71,42,0.04) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.services::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(212,175,55,0.04) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.services-bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.bento-card {
    background: var(--card-bg);
    padding: 36px 30px;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--card-border);
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* Dark overlay for cards with background images */
.bento-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10,20,14,0.35) 0%, rgba(10,20,14,0.65) 55%, rgba(10,20,14,0.92) 100%);
    z-index: 0;
    transition: background 0.4s;
}

.bento-card:hover .bento-img-overlay {
    background: linear-gradient(180deg, rgba(10,20,14,0.25) 0%, rgba(10,20,14,0.55) 50%, rgba(10,20,14,0.88) 100%);
}

/* Ensure all card content sits above the overlay */
.bento-card.has-bg .service-icon,
.bento-card.has-bg h3,
.bento-card.has-bg p,
.bento-card.has-bg .service-link,
.bento-card.has-bg .bento-glow {
    position: relative;
    z-index: 1;
}

.bento-card.has-bg h3 {
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
    font-size: 1.25rem;
}

.bento-card.has-bg p {
    color: rgba(255,255,255,0.85);
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.bento-card.has-bg .service-link {
    color: var(--gold);
}

.bento-card.has-bg .service-icon {
    background: rgba(212,175,55,0.18);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.bento-card.has-bg .service-icon i {
    color: var(--gold);
}

.bento-card.has-bg {
    border-color: rgba(255,255,255,0.08);
}

.bento-card.has-bg:hover {
    border-color: rgba(212,175,55,0.2);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

/* Bento card background images */
.bento-bg-checking { background-image: url('https://images.unsplash.com/photo-1563013544-824ae1b704d3?w=800&q=80'); }
.bento-bg-savings { background-image: url('https://images.unsplash.com/photo-1579621970795-87facc2f976d?w=600&q=80'); }
.bento-bg-mortgages { background-image: url('https://images.unsplash.com/photo-1570129477492-45c003edd2be?w=600&q=80'); }
.bento-bg-investments { background-image: url('https://images.unsplash.com/photo-1590283603385-17ffb3a7f29f?w=600&q=80'); }
.bento-bg-auto { background-image: url('https://images.unsplash.com/photo-1494976388531-d1058494cdd8?w=600&q=80'); }
.bento-bg-business { background-image: url('https://images.unsplash.com/photo-1497366216548-37526070297c?w=600&q=80'); }
.bento-bg-ira { background-image: url('https://images.unsplash.com/photo-1633158829585-23ba8f7c8caf?w=600&q=80'); }
.bento-bg-retirement { background-image: url('https://images.unsplash.com/photo-1556742049-0cfed4f6a45d?w=600&q=80'); }
.bento-bg-education { background-image: url('https://images.unsplash.com/photo-1541339907198-e08756dedf3f?w=600&q=80'); }

.bento-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(26,71,42,0.04) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.bento-card:hover .bento-glow {
    opacity: 1;
}

.bento-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-color: rgba(26,71,42,0.15);
}

.bento-large {
    grid-row: span 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border-color: transparent;
    color: white;
}

.bento-large .service-icon {
    background: rgba(212,175,55,0.15);
}

.bento-large .service-icon i {
    color: var(--gold);
}

.bento-large h3 {
    color: white;
    font-size: 1.5rem;
}

.bento-large p {
    color: rgba(255,255,255,0.75);
    font-size: 1rem;
    line-height: 1.8;
}

.bento-large .service-link {
    color: var(--gold);
}

.bento-wide {
    grid-column: span 2;
}

.bento-wide-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    position: relative;
    z-index: 1;
}

/* Wide card sub-items with their own background images */
.bento-wide-item {
    position: relative;
    padding: 36px 30px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.bento-wide-item:first-child {
    border-radius: 18px 0 0 18px;
}

.bento-wide-item:last-child {
    border-radius: 0 18px 18px 0;
}

.bento-wide-item .bento-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(10,20,14,0.88) 0%, rgba(15,43,26,0.82) 50%, rgba(10,26,16,0.9) 100%);
    z-index: 0;
    transition: background 0.4s;
}

.bento-wide-item:hover .bento-img-overlay {
    background: linear-gradient(160deg, rgba(10,20,14,0.8) 0%, rgba(15,43,26,0.72) 50%, rgba(10,26,16,0.82) 100%);
}

.bento-wide-item .service-icon,
.bento-wide-item h3,
.bento-wide-item p,
.bento-wide-item .service-link {
    position: relative;
    z-index: 1;
}

.bento-wide-item h3 { color: #fff; }
.bento-wide-item p { color: rgba(255,255,255,0.75); }
.bento-wide-item .service-link { color: var(--gold); }
.bento-wide-item .service-icon { background: rgba(212,175,55,0.18); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.bento-wide-item .service-icon i { color: var(--gold); }

/* Remove padding/bg from wide parent since items handle their own */
.bento-wide {
    padding: 0;
    background: transparent;
    border-color: rgba(255,255,255,0.08);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    position: relative;
    transition: transform 0.4s, box-shadow 0.4s;
}

.bento-card:hover .service-icon {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 8px 24px rgba(26,71,42,0.12);
}

.service-icon i {
    font-size: 1.5rem;
    color: var(--primary-green);
}

/* Service card decorative corner shapes */
.bento-card::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(26,71,42,0.04) 0%, transparent 70%);
    border-radius: 50%;
    transition: transform 0.4s;
    pointer-events: none;
}

.bento-card:hover::before {
    transform: scale(1.5);
}

/* Different icon gradients — now all gold on image cards */
.bento-card:nth-child(2) .service-icon {
    background: rgba(212,175,55,0.18);
}
.bento-card:nth-child(2) .service-icon i {
    color: var(--gold);
}

.bento-card:nth-child(3) .service-icon {
    background: rgba(212,175,55,0.18);
}
.bento-card:nth-child(3) .service-icon i {
    color: var(--gold);
}

.bento-card:nth-child(4) .service-icon {
    background: rgba(212,175,55,0.18);
}
.bento-card:nth-child(4) .service-icon i {
    color: var(--gold);
}

.bento-card h3 {
    color: var(--dark-text);
    margin-bottom: 10px;
    font-size: 1.2rem;
    font-weight: 700;
}

.bento-card p {
    color: var(--light-text);
    margin-bottom: 18px;
    line-height: 1.7;
    font-size: 0.92rem;
}

.service-link {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.service-link:hover {
    color: var(--gold);
    gap: 12px;
}

.learn-more {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
}

/* Why Choose Heritage Bank - Dark Section */
.why-us {
    padding: 100px 0 110px;
    background: linear-gradient(135deg, #0a1e12, #0f2b1a, #153321);
    position: relative;
    overflow: hidden;
}

.why-us-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 20% 50%, rgba(26,71,42,0.3) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 80%, rgba(212,175,55,0.06) 0%, transparent 50%);
    pointer-events: none;
}

/* Animated floating orbs */
.why-us-bg::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 5%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: orbFloat1 12s ease-in-out infinite;
}

.why-us-bg::after {
    content: '';
    position: absolute;
    bottom: 10%;
    right: 8%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(26, 71, 42, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: orbFloat2 15s ease-in-out infinite 3s;
}

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, -30px) scale(1.1); }
}

@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-30px, 20px) scale(1.15); }
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.why-card {
    background: rgba(255,255,255,0.04);
    padding: 36px 28px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255,255,255,0.06);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
}

/* Card shine effect on hover */
.why-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.04), transparent);
    transition: left 0.6s;
    pointer-events: none;
}

.why-card:hover::before {
    left: 100%;
}

.why-card:hover {
    transform: translateY(-8px);
    background: rgba(255,255,255,0.08);
    border-color: rgba(212,175,55,0.25);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3), 0 0 30px rgba(212,175,55,0.05);
}

.why-icon {
    width: 68px;
    height: 68px;
    background: linear-gradient(135deg, rgba(212,175,55,0.2), rgba(212,175,55,0.05));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    transition: transform 0.4s, box-shadow 0.4s;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.why-card:hover .why-icon {
    transform: scale(1.1) translateY(-4px);
    box-shadow: 0 12px 32px rgba(212,175,55,0.15);
}

.why-icon i {
    font-size: 1.6rem;
    color: var(--gold);
}

.why-card h3 {
    color: white;
    margin-bottom: 10px;
    font-size: 1.15rem;
    font-weight: 700;
}

.why-card p {
    color: rgba(255,255,255,0.6);
    line-height: 1.7;
    font-size: 0.92rem;
}

/* Testimonials Section */
.testimonials {
    padding: 100px 0 110px;
    background: var(--light-bg);
    overflow: hidden;
}

/* Marquee scrolling container */
.testimonials-marquee {
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    margin-bottom: 20px;
}

.testimonials-marquee:last-of-type {
    margin-bottom: 0;
}

.marquee-track {
    display: flex;
    gap: 20px;
    width: max-content;
    will-change: transform;
}

.marquee-left {
    animation: marquee-scroll-left 60s linear infinite;
}

.marquee-right {
    animation: marquee-scroll-right 60s linear infinite;
}

@keyframes marquee-scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes marquee-scroll-right {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

.testimonials-marquee:hover .marquee-track {
    animation-play-state: paused;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}

.testimonial-card {
    background: var(--card-bg);
    padding: 32px 26px;
    border-radius: 20px;
    border: 1px solid var(--card-border);
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-width: 340px;
    max-width: 340px;
    flex-shrink: 0;
}

/* Testimonial card shine effect */
.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212,175,55,0.03), transparent);
    transition: left 0.6s;
    pointer-events: none;
}

.testimonial-card:hover::before {
    left: 100%;
}

.testimonial-card:hover {
    box-shadow: 0 20px 48px rgba(0,0,0,0.1);
    border-color: rgba(26,71,42,0.12);
    transform: translateY(-6px);
}

.testimonial-featured {
    background: linear-gradient(135deg, #0f2b1a, #1a472a);
    border-color: transparent;
    transform: scale(1.04);
}

.testimonial-featured:hover {
    transform: scale(1.04) translateY(-4px);
}

.testimonial-featured .testimonial-text {
    color: rgba(255,255,255,0.85);
}

.testimonial-featured .author-info h4 {
    color: white;
}

.testimonial-featured .author-info span {
    color: rgba(255,255,255,0.5);
}

.testimonial-featured .author-avatar {
    background: rgba(212,175,55,0.2);
    color: var(--gold);
}

.testimonial-featured .testimonial-quote i {
    color: rgba(212,175,55,0.15);
}

.testimonial-quote {
    position: absolute;
    top: 20px;
    right: 24px;
}

.testimonial-quote i {
    font-size: 2.5rem;
    color: rgba(26,71,42,0.06);
}

.testimonial-stars {
    display: flex;
    gap: 3px;
}

.testimonial-stars i {
    color: var(--gold);
    font-size: 0.95rem;
}

.testimonial-text {
    color: var(--light-text);
    font-style: normal;
    line-height: 1.75;
    flex-grow: 1;
    font-size: 0.95rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 18px;
    border-top: 1px solid var(--card-border);
}

.testimonial-featured .testimonial-author {
    border-top-color: rgba(255,255,255,0.1);
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--primary-green);
    flex-shrink: 0;
    overflow: hidden;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-avatar span {
    display: block;
}

.author-info h4 {
    color: var(--dark-text);
    margin-bottom: 2px;
    font-size: 0.95rem;
    font-weight: 700;
}

.author-info span {
    color: var(--muted-text);
    font-size: 0.82rem;
}

/* CTA Banner */
.cta-banner {
    padding: 0;
    background: transparent;
}

.cta-inner {
    background: linear-gradient(135deg, #0f2b1a, #1a472a);
    border-radius: 24px;
    padding: 64px 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    margin: -20px auto;
    max-width: 1100px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(15,43,26,0.3);
}

.cta-inner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(212,175,55,0.12) 0%, transparent 70%);
    pointer-events: none;
    animation: ctaOrb 8s ease-in-out infinite;
}

.cta-inner::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
    pointer-events: none;
    animation: ctaOrb 10s ease-in-out infinite 2s;
}

@keyframes ctaOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-20px, 10px) scale(1.1); }
}

.cta-text h2 {
    font-size: 2rem;
    color: white;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.cta-text p {
    color: rgba(255,255,255,0.7);
    font-size: 1.05rem;
    max-width: 400px;
}

.cta-actions {
    display: flex;
    gap: 14px;
    flex-shrink: 0;
}

/* Contact Section */
.contact {
    padding: 100px 0 110px;
    background: var(--card-bg);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 48px;
    margin-top: 40px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-icon-wrap {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon-wrap i,
.contact-item > i {
    font-size: 1.1rem;
    color: var(--primary-green);
}

.contact-item h4 {
    color: var(--dark-text);
    margin-bottom: 4px;
    font-size: 1rem;
    font-weight: 700;
}

.contact-item p {
    color: var(--light-text);
    line-height: 1.7;
    font-size: 0.92rem;
}

.contact-form-wrapper {
    background: var(--light-bg);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--card-border);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    color: var(--dark-text);
    font-weight: 600;
    font-size: 0.88rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 1.5px solid var(--card-border);
    border-radius: 12px;
    font-size: 0.92rem;
    font-family: inherit;
    transition: all 0.3s;
    background: var(--card-bg);
    color: var(--dark-text);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 4px rgba(26,71,42,0.08);
}

.form-group textarea {
    resize: vertical;
    min-height: 110px;
}

/* Footer */
.footer {
    background: linear-gradient(180deg, #0a1e12, #071510);
    color: white;
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section p {
    color: rgba(255,255,255,0.65);
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.footer-logo {
    height: 50px;
    margin-bottom: 15px;
    filter: brightness(0) invert(1);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
    font-size: 0.9rem;
}

.social-links a:hover {
    background: var(--gold);
    color: var(--primary-green);
    transform: translateY(-2px);
}

.footer-section h4 {
    color: var(--gold);
    margin-bottom: 18px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.88rem;
}

.footer-section a:hover {
    color: var(--gold);
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.8);
}

.contact-list i {
    color: var(--gold);
    width: 20px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 28px;
    border-top: 1px solid rgba(255,255,255,0.08);
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    color: rgba(255,255,255,0.5);
    font-size: 0.82rem;
    margin: 0;
}

.footer-badges {
    display: flex;
    gap: 18px;
}

.footer-badges span {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.5);
    font-size: 0.8rem;
}

.footer-badges i {
    color: var(--gold);
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid .footer-section:first-child {
        grid-column: span 2;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid .footer-section:first-child {
        grid-column: span 1;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* App Footer (logged-in pages) */
.app-footer {
    background: #1a2332;
    padding: 20px 0;
    margin-top: 40px;
    text-align: center;
}
.app-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.app-footer-links {
    margin-bottom: 10px;
}
.app-footer-links a {
    color: #8899aa;
    text-decoration: none;
    margin: 0 10px;
    font-size: 0.8rem;
}
.app-footer-links a:hover {
    color: #aabbcc;
}
.app-footer-copy {
    color: #556677;
    font-size: 0.75rem;
    margin: 0;
}
/* Admin helper classes */
.admin-desc {
    color: #888;
    margin-bottom: 20px;
}
.admin-refresh-btn {
    margin-bottom: 20px;
}
.admin-restrict-actions {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}
.admin-restrict-alert {
    margin-top: 15px;
}

/* Utility: hidden by default (toggled by JS) */
.initially-hidden {
    display: none;
}

/* Transfer page form select */
.form-select-styled {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    font-size: 0.95rem;
}

/* Transfer page beneficiary header */
.beneficiary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

/* Receipt conversion row */
.receipt-conversion-row {
    display: none;
    text-align: center;
    margin-bottom: 14px;
}
.receipt-conversion-label {
    color: #888;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.receipt-conversion-amount {
    font-size: 1.4rem;
    font-weight: 700;
    color: #28a745;
}
.receipt-conversion-rate {
    font-size: 0.72rem;
    color: #999;
}
.receipt-status-success {
    color: #28a745;
    font-weight: 700;
}
.receipt-total-row {
    font-weight: 700;
    font-size: 1rem;
}
.receipt-total-row .rlabel,
.receipt-total-row .rvalue {
    color: #1a472a;
}

/* Dashboard Header & Notification Dropdown */
.header-welcome-group {
    display: flex;
    align-items: center;
    gap: 15px;
}
.header-welcome-text {
    color: #666;
    margin-bottom: 5px;
}
.notif-dropdown {
    display: none;
    position: absolute;
    top: 55px;
    right: 80px;
    width: 340px;
    max-height: 400px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 1000;
    overflow: hidden;
}
.notif-dropdown-header {
    padding: 15px;
    border-bottom: 1px solid #eee;
    font-weight: 600;
    color: #1a472a;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.notif-mark-read-btn {
    background: none;
    border: none;
    color: #2196F3;
    cursor: pointer;
    font-size: 0.85rem;
}
.notif-list {
    max-height: 320px;
    overflow-y: auto;
    padding: 5px 0;
}
.notif-empty {
    text-align: center;
    color: #999;
    padding: 20px;
}
.status-active {
    color: #28a745;
}

/* Session Timeout Modal Buttons */
.session-extend-btn {
    padding: 12px 30px;
    background: #1a472a;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-right: 10px;
}
.session-logout-btn {
    padding: 12px 30px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

/* Settings Page Inline-Style Replacements */
.settings-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    line-height: 1.8;
}
.settings-value {
    color: #1a472a;
}
.settings-value-mono {
    font-family: monospace;
    color: #1a472a;
    font-weight: bold;
}
.settings-value-capitalize {
    text-transform: capitalize;
    color: #1a472a;
}
.settings-value-bold {
    color: #1a472a;
    font-weight: bold;
    font-size: 1.1rem;
}
.required-mark {
    color: red;
}
.readonly-hint {
    color: #666;
    font-size: 0.9rem;
}
.input-readonly {
    background: #f0f2f5;
    cursor: not-allowed;
}
.verification-badge {
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
}
.settings-limits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    line-height: 2;
}
.limit-increase-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}
.limit-increase-msg {
    display: none;
    margin-top: 10px;
    padding: 10px;
    background: #e8f5e9;
    border-radius: 6px;
    color: #1a472a;
}
.login-history-section {
    margin-bottom: 30px;
}
.login-history-heading {
    margin-bottom: 15px;
    color: #1a472a;
}
.login-history-container {
    max-height: 300px;
    overflow-y: auto;
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
}
.login-history-loading {
    text-align: center;
    color: #999;
}

/* Settings Page - Active Sessions */
.active-sessions-section {
    margin-bottom: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}
.active-sessions-heading {
    margin-bottom: 15px;
    color: #1a472a;
}
.active-sessions-container {
    display: grid;
    gap: 10px;
}
.active-sessions-loading {
    text-align: center;
    color: #999;
}

/* Settings Page - Security */
.settings-desc {
    color: #666;
    font-size: 0.9rem;
}
.password-form-section {
    display: none;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}
.password-strength-bar {
    margin-top: 8px;
    height: 5px;
    background: #eee;
    border-radius: 5px;
    overflow: hidden;
}
.password-strength-meter {
    width: 0%;
    height: 100%;
    background: #dc3545;
    transition: width 0.3s, background 0.3s;
}
.password-strength-text {
    color: #666;
}
.security-item-separator {
    padding-top: 20px;
    border-top: 1px solid #eee;
    margin-top: 20px;
}
.twofa-setup {
    display: none;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
}

/* Settings Page - Verification */
.verification-status {
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}
.verification-loading {
    color: #999;
}
.doc-request-alert {
    margin-bottom: 15px;
    padding: 15px;
    background: #fff3e0;
    border-left: 4px solid #ff9800;
    border-radius: 4px;
}
.doc-request-title {
    margin: 0;
    color: #e65100;
}
.doc-request-msg {
    margin: 8px 0 0;
    font-size: 0.9rem;
    color: #333;
}
.doc-upload-zone {
    padding: 20px;
    background: #f9f9f9;
    border: 2px dashed #ddd;
    border-radius: 8px;
    text-align: center;
}
.doc-upload-hint {
    margin-top: 10px;
    font-size: 0.85rem;
    color: #666;
}
.uploaded-docs-list {
    display: grid;
    gap: 10px;
    margin-top: 15px;
}

/* Settings Page - Beneficiaries */
.beneficiaries-list {
    display: grid;
    gap: 15px;
    margin-bottom: 20px;
}
.beneficiaries-loading {
    text-align: center;
    color: #999;
}
.add-beneficiary-form {
    display: none;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
}
.btn-cancel-ml {
    margin-left: 10px;
}

/* Settings Page - Preference Icons */
.icon-freeze {
    color: #ff9800;
}
.icon-intl {
    color: #2196F3;
}
.icon-dark {
    color: #6c5ce7;
}
.icon-pin {
    color: #e17055;
}

/* Settings Page - Close Account */
.close-account-section {
    border-top: 2px solid #f8d7da;
    padding-top: 20px;
    margin-top: 10px;
}
.icon-close-account {
    color: #dc3545;
    background: #ffeaec;
}
.close-account-label {
    color: #dc3545;
}

/* Settings Page - PIN Modal */
.pin-modal-desc {
    color: #666;
    margin-bottom: 20px;
    text-align: center;
}
.pin-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Cards Page */
.cards-section-heading {
    color: #1a472a;
    margin-top: 0;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.cards-loading {
    color: #999;
    text-align: center;
    padding: 20px;
}
.cards-apply-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
@media (max-width: 700px) {
    .cards-apply-grid { grid-template-columns: 1fr; }
}
.card-option-box {
    background: linear-gradient(135deg, #f8faf9 0%, #f0f4f1 100%);
    padding: 28px;
    border-radius: 16px;
    border: 1.5px solid rgba(26, 71, 42, 0.08);
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}
.card-option-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1a472a, #d4af37);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.card-option-box:hover {
    border-color: rgba(26, 71, 42, 0.15);
    box-shadow: 0 8px 25px rgba(26, 71, 42, 0.1);
    transform: translateY(-3px);
}
.card-option-box:hover::before {
    opacity: 1;
}
.card-option-title {
    margin: 0 0 10px 0;
    color: #1a472a;
    font-size: 1.1rem;
}
.card-option-title i {
    color: #d4af37;
    margin-right: 4px;
}
.card-option-desc {
    margin: 0 0 18px 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}
.btn-full-width {
    width: 100%;
}
.btn-card-submit {
    padding: 14px;
    background: linear-gradient(135deg, #1a472a 0%, #2d5f3f 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(26, 71, 42, 0.2);
}
.btn-card-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(26, 71, 42, 0.3);
}

/* Statements Page */
.back-link {
    color: #d4af37;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 20px;
}
.page-heading-green {
    color: #1a472a;
    margin-top: 0;
}
.page-subtitle {
    color: #666;
}
.form-mt {
    margin-top: 30px;
}
.prev-statements-list {
    margin-top: 20px;
}

/* Sign-in Page */
.signin-back-link {
    margin-top: 10px;
}
.signin-legal {
    text-align: center;
    font-size: 0.75rem;
    color: #999;
    margin-top: 20px;
    line-height: 1.5;
}
.signin-legal a {
    color: #1a472a;
}

/* Pay Bills Page */
.biller-info-box {
    background: #f0f7f2;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}
.biller-info-name {
    color: #1a472a;
}

/* Messages Page */
.compose-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}
.btn-cancel {
    background: #6c757d;
    color: white;
}

/* Request Loan Page */
.loan-section-heading {
    text-align: center;
    margin-bottom: 40px;
    color: #1a472a;
}
.loan-form-heading {
    text-align: center;
    margin-bottom: 30px;
    color: #1a472a;
}
.loan-subsection-heading {
    color: #1a472a;
    margin-bottom: 20px;
}
.loan-subsection-heading-spaced {
    color: #1a472a;
    margin: 30px 0 20px;
}
.auth-notice-text {
    margin: 5px 0 0;
    color: #856404;
}
.label-flex {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: normal;
}
.link-teal {
    color: #1a472a;
}
.success-note {
    font-size: 0.9rem;
    color: #888;
}
.btn-success-done {
    margin-top: 20px;
}

/* Branches Page */
.branch-map {
    height: 400px;
    border-radius: 15px;
    margin-bottom: 40px;
    z-index: 1;
}

/* Open Account Enhanced */
.form-step-heading {
    color: #1a472a;
    margin-bottom: 25px;
}
.review-summary-box {
    background: #f0f2f5;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
}

/* Investment Page */
.invest-section-heading {
    color: #1a472a;
    margin-top: 0;
}
.invest-min-amount {
    margin: 0;
    color: #1a472a;
}
.invest-term-info {
    margin: 0;
    color: #999;
    font-size: 12px;
}
.invest-select {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}
.invest-submit-btn {
    padding: 12px;
    background: #d4af37;
    color: #1a472a;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    font-size: 16px;
}
.invest-submit-btn:hover {
    background: #c9a030;
}
.invest-disclaimer {
    color: #999;
    font-size: 12px;
    text-align: center;
    margin-top: 20px;
}
.invest-notification {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 8px;
    z-index: 1000;
    min-width: 250px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    font-weight: 600;
    transition: all 0.3s ease;
}

/* Blog Page */
.blog-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}

/* Privacy Page */
.privacy-subheading {
    color: #333;
    margin: 20px 0 10px;
}
.info-box-spaced {
    margin-top: 30px;
}

/* Mobile Deposit Page */
.capture-label-spaced {
    margin-top: 20px;
}

/* Mobile Deposit Utilities */
.mt-20 {
    margin-top: 20px;
}
.btn-mt-15 {
    margin-top: 15px;
}
.loading-text {
    text-align: center;
    color: #888;
    padding: 20px;
}

/* About Page */
.about-card-centered {
    text-align: center;
}
.about-cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}
.btn-cta-green {
    background: #1a472a;
    color: white;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}
.btn-cta-green:hover {
    opacity: 0.9;
}
.btn-cta-gold {
    background: #d4af37;
    color: #1a472a;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}
.btn-cta-gold:hover {
    opacity: 0.9;
}

/* Contact Page */
.contact-extra-info {
    margin-top: 10px;
}
.contact-hours-note {
    margin-top: 15px;
    color: #888;
    font-size: 0.85rem;
}
.contact-hours-note a {
    color: #1a472a;
}

/* Disclosures & Security Pages */
.no-bottom-margin {
    margin-bottom: 0;
}
.fdic-note {
    margin-top: 8px;
    margin-bottom: 0;
}

/* Support Page */
.support-hours {
    line-height: 2;
}

/* Savings Goals */
.goal-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}
.goal-header-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* ===== Rates Showcase ===== */
.rates-showcase {
    padding: 100px 0 110px;
    background: var(--light-bg);
}

.rates-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.rate-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 36px 28px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.rate-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-color: rgba(26,71,42,0.15);
}

.rate-card-featured {
    background: linear-gradient(135deg, #0f2b1a, #1a472a);
    border-color: transparent;
    transform: scale(1.04);
}

.rate-card-featured:hover {
    transform: scale(1.04) translateY(-6px);
    box-shadow: 0 24px 48px rgba(15,43,26,0.3);
}

.rate-card-featured .rate-type,
.rate-card-featured .rate-detail {
    color: rgba(255,255,255,0.7);
}

.rate-card-featured .rate-value {
    color: white;
}

.rate-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--gold);
    color: #1a472a;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.rate-type {
    font-size: 0.9rem;
    color: var(--light-text);
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.rate-value {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-green);
    line-height: 1;
    margin-bottom: 6px;
    letter-spacing: -0.03em;
}

.rate-unit {
    font-size: 1rem;
    font-weight: 600;
    opacity: 0.7;
}

.rate-detail {
    font-size: 0.85rem;
    color: var(--muted-text);
    margin-bottom: 20px;
}

.rate-card .btn {
    width: 100%;
    font-size: 0.85rem;
    padding: 10px 16px;
}

.rates-disclaimer {
    text-align: center;
    font-size: 0.75rem;
    color: var(--muted-text);
    margin-top: 24px;
    font-style: italic;
}

/* ===== Mobile App Section ===== */
.mobile-app-section {
    padding: 100px 0 110px;
    background: var(--card-bg);
    overflow: hidden;
    position: relative;
}

.mobile-app-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(26,71,42,0.03) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.app-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.app-info .section-tag {
    display: inline-block;
    margin-bottom: 16px;
}

.app-info h2 {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--dark-text);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.app-info > p {
    color: var(--light-text);
    line-height: 1.8;
    font-size: 1.02rem;
    margin-bottom: 28px;
}

.app-features {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.app-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--dark-text);
    font-weight: 500;
}

.app-features li i {
    color: var(--primary-green);
    font-size: 1.1rem;
}

.app-store-badges {
    display: flex;
    gap: 14px;
}

.store-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: #0f2b1a;
    color: white;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    transition: all 0.3s;
}

.store-badge i {
    font-size: 1.3rem;
}

.store-badge:hover {
    background: var(--primary-green);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15,43,26,0.25);
}

.store-badge.store-badge-disabled {
    opacity: 0.85;
    cursor: default;
    pointer-events: none;
}

.store-badge.store-badge-disabled:hover {
    background: #0f2b1a;
    transform: none;
    box-shadow: none;
}

/* Phone Mockup - 3D Realistic iPhone */
.app-phone-mockup {
    display: flex;
    justify-content: center;
}

.phone-3d-wrapper {
    position: relative;
    perspective: 1200px;
}

.phone-3d-wrapper .phone-frame {
    transform: rotateY(-8deg) rotateX(3deg);
    animation: phoneFloat 6s ease-in-out infinite;
}

.phone-glow {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 220px;
    height: 60px;
    background: radial-gradient(ellipse, rgba(212, 175, 55, 0.18) 0%, transparent 70%);
    filter: blur(20px);
    z-index: -1;
}

@keyframes phoneFloat {
    0%, 100% { transform: rotateY(-8deg) rotateX(3deg) translateY(0); }
    50% { transform: rotateY(-5deg) rotateX(1deg) translateY(-10px); }
}

.phone-frame {
    width: 280px;
    height: 580px;
    background: linear-gradient(145deg, #3a3a3c, #1c1c1e, #2c2c2e);
    border-radius: 44px;
    padding: 10px;
    box-shadow:
        0 50px 100px rgba(0,0,0,0.4),
        0 20px 40px rgba(0,0,0,0.2),
        inset 0 1px 0 rgba(255,255,255,0.12),
        inset 0 -1px 0 rgba(0,0,0,0.3),
        0 0 0 0.5px rgba(255,255,255,0.08);
    position: relative;
    transition: transform 0.3s;
}

/* Dynamic Island */
.phone-frame::before {
    content: '';
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 84px;
    height: 22px;
    background: #000;
    border-radius: 20px;
    z-index: 10;
    box-shadow: inset 0 0 4px rgba(0,0,0,0.8);
}

/* Side button */
.phone-frame::after {
    content: '';
    position: absolute;
    right: -2.5px;
    top: 130px;
    width: 3px;
    height: 42px;
    background: linear-gradient(180deg, #505052, #3a3a3c, #505052);
    border-radius: 0 2px 2px 0;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #f7f8fa 0%, #f0f2f5 50%, #eef0f4 100%);
    border-radius: 36px;
    padding: 14px 16px 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Status Bar */
.phone-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 4px;
    margin-bottom: 16px;
}
.status-time { color: #1e293b; font-size: 0.68rem; font-weight: 700; min-width: 36px; }
.status-island { width: 64px; }
.status-icons { display: flex; gap: 4px; color: #1e293b; font-size: 0.5rem; min-width: 36px; justify-content: flex-end; }

/* App Header with Avatar */
.phone-app-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 0 2px;
}
.phone-avatar {
    width: 30px; height: 30px; border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #818cf8);
    color: white; display: flex; align-items: center; justify-content: center;
    font-size: 0.6rem; font-weight: 800; flex-shrink: 0;
}
.phone-greeting { color: #94a3b8; font-size: 0.55rem; line-height: 1.2; }
.phone-user-name { color: #334155; font-size: 0.75rem; font-weight: 700; }
.phone-bell { margin-left: auto; color: #cbd5e1; font-size: 0.78rem; }

/* Balance Card */
.phone-balance-card {
    background: linear-gradient(135deg, #2d6b45 0%, #4a9e6e 60%, #6bc28b 100%);
    border: none;
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 14px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(74,158,110,0.3);
}
.phone-balance-card::before {
    content: '';
    position: absolute;
    top: -40%; right: -25%;
    width: 100px; height: 100px;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    border-radius: 50%;
}
.phone-balance-label {
    color: rgba(255,255,255,0.75); font-size: 0.58rem;
    text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 2px;
    position: relative;
}
.phone-balance {
    color: white; font-size: 1.65rem; font-weight: 800;
    letter-spacing: -0.02em; position: relative;
}
.phone-balance-change {
    color: rgba(255,255,255,0.8); font-size: 0.55rem; margin-top: 2px;
    display: flex; align-items: center; justify-content: center; gap: 3px;
    position: relative;
}
.phone-balance-change i { font-size: 0.45rem; }
.phone-label { display: none; }
.phone-header { display: none; }

/* Quick Actions */
.phone-actions { display: flex; gap: 8px; margin-bottom: 12px; justify-content: center; }
.phone-actions span {
    display: flex; flex-direction: column; align-items: center;
    gap: 5px; color: #94a3b8; font-size: 0.55rem;
}
.phone-actions span i {
    width: 36px; height: 36px; background: white;
    border-radius: 12px; display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem; color: #4a9e6e;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Section Title */
.phone-section-title {
    color: #94a3b8; font-size: 0.58rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.8px;
    margin-bottom: 6px; padding: 0 2px;
}

/* Transactions */
.phone-transactions {
    width: 100%; display: flex; flex-direction: column; gap: 5px;
}
.phone-txn {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 10px; background: white;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.phone-txn-icon {
    width: 28px; height: 28px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.65rem; flex-shrink: 0;
}
.phone-txn-icon-gold { background: #fef9ee; color: #d4af37; }
.phone-txn-icon-green { background: #ecfdf5; color: #059669; }
.phone-txn-icon-blue { background: #eff6ff; color: #3b82f6; }
.phone-txn-info { flex: 1; display: flex; flex-direction: column; }
.phone-txn-name { color: #334155; font-size: 0.65rem; font-weight: 600; }
.phone-txn-date { color: #b0bec5; font-size: 0.52rem; }
.phone-txn-amount { font-size: 0.65rem; font-weight: 700; }
.phone-txn-debit { color: #e57373; }
.phone-txn-credit { color: #4caf50; }

/* Bottom Nav */
.phone-bottom-nav {
    display: flex; justify-content: space-around;
    padding-top: 8px; margin-top: auto;
    border-top: 1px solid #e2e8f0;
}
.phone-nav-item {
    display: flex; flex-direction: column; align-items: center;
    gap: 2px; color: #cbd5e1; font-size: 0.45rem;
}
.phone-nav-item i { font-size: 0.7rem; }
.phone-nav-item.active { color: #4a9e6e; }

/* ===== Trust Partners Bar ===== */
.trust-partners {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
    padding: 28px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.35);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.trust-badge i {
    font-size: 1.6rem;
}

/* ===== Back to Top Button ===== */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #1a472a, #0f2b1a);
    color: white;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 8px 24px rgba(15,43,26,0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--gold);
    color: #1a472a;
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(212,175,55,0.3);
}

/* ===== Page Loader ===== */
.page-loader.loaded {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s;
}

/* ===== Shared Public Page Hero ===== */
.page-hero {
    background: linear-gradient(135deg, #0a1e12 0%, #1a472a 50%, #153321 100%);
    padding: 140px 0 70px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(212,175,55,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(26,71,42,0.15) 0%, transparent 70%);
    pointer-events: none;
}

.page-hero .section-tag {
    margin-bottom: 16px;
}

.page-hero h1 {
    font-size: 2.6rem;
    font-weight: 800;
    margin-bottom: 14px;
    letter-spacing: -0.02em;
    position: relative;
}

.page-hero h1 i {
    margin-right: 10px;
    color: var(--gold);
}

.page-hero p {
    font-size: 1.1rem;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ===== Shared Page Content ===== */
.page-content {
    padding: 80px 0 100px;
    background: var(--light-bg);
}

.page-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-card {
    background: var(--card-bg);
    padding: 48px 44px;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.04);
    border: 1px solid var(--card-border);
    margin-bottom: 28px;
    transition: all 0.3s;
}

.page-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.07);
}

.page-card h2 {
    color: var(--primary-green);
    margin: 0 0 20px;
    font-size: 1.5rem;
    font-weight: 700;
}

.page-card h2 i {
    color: var(--gold);
    margin-right: 8px;
}

.page-card h3 {
    color: var(--dark-text);
    margin: 24px 0 12px;
    font-size: 1.15rem;
    font-weight: 700;
}

.page-card p,
.page-card li {
    color: var(--light-text);
    line-height: 1.8;
    font-size: 0.95rem;
}

.page-card ul, .page-card ol {
    padding-left: 24px;
    margin: 12px 0;
}

.page-card li {
    margin-bottom: 8px;
}

/* Highlight boxes inside page cards */
.highlight-box,
.info-box {
    background: linear-gradient(135deg, #e8f5e9, #f1f8e9);
    border-left: 4px solid var(--primary-green);
    padding: 20px 24px;
    border-radius: 0 12px 12px 0;
    margin: 20px 0;
    font-size: 0.92rem;
}

.danger-box {
    background: linear-gradient(135deg, #fef2f2, #fff5f5);
    border-left: 4px solid #dc3545;
    padding: 20px 24px;
    border-radius: 0 12px 12px 0;
    margin: 20px 0;
    font-size: 0.92rem;
}

.success-box {
    background: linear-gradient(135deg, #e8f5e9, #f1f8e9);
    border-left: 4px solid #28a745;
    padding: 20px 24px;
    border-radius: 0 12px 12px 0;
    margin: 20px 0;
    font-size: 0.92rem;
}

/* Table of contents */
.toc {
    background: var(--light-bg);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 24px 28px;
    margin-bottom: 28px;
}

.toc h3 {
    color: var(--primary-green);
    margin: 0 0 14px;
    font-size: 1rem;
}

.toc ol, .toc ul {
    padding-left: 22px;
    margin: 0;
}

.toc li {
    margin-bottom: 6px;
}

.toc a {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.92rem;
    transition: color 0.2s;
}

.toc a:hover {
    color: var(--gold);
}

/* Data/fee tables in pages */
.data-table,
.fee-table,
.cookie-table,
.hours-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
    margin: 20px 0;
    border: 1px solid var(--card-border);
}

.data-table th,
.fee-table th,
.cookie-table th,
.hours-table th {
    background: var(--primary-green);
    color: white;
    padding: 14px 18px;
    text-align: left;
    font-size: 0.88rem;
    font-weight: 600;
}

.data-table td,
.fee-table td,
.cookie-table td,
.hours-table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--card-border);
    font-size: 0.9rem;
    color: var(--dark-text);
}

.data-table tr:last-child td,
.fee-table tr:last-child td,
.cookie-table tr:last-child td,
.hours-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:nth-child(even) td,
.fee-table tr:nth-child(even) td,
.cookie-table tr:nth-child(even) td,
.hours-table tr:nth-child(even) td {
    background: var(--light-bg);
}

/* Feature grids on public pages */
.features-grid,
.values-grid,
.security-features,
.rights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.feature-item,
.value-card,
.security-card,
.rights-card {
    background: var(--light-bg);
    padding: 28px 24px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--card-border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-item:hover,
.value-card:hover,
.security-card:hover,
.rights-card:hover {
    border-color: rgba(26,71,42,0.15);
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.06);
}

.feature-item i,
.value-card i,
.security-card i,
.rights-card i {
    font-size: 1.8rem;
    color: var(--gold);
    margin-bottom: 14px;
    display: block;
}

.feature-item h4,
.value-card h4,
.security-card h4,
.rights-card h4 {
    color: var(--primary-green);
    margin-bottom: 8px;
    font-weight: 700;
}

.feature-item p,
.value-card p,
.security-card p,
.rights-card p {
    color: var(--light-text);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* Contact page grid */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.contact-card {
    background: var(--card-bg);
    padding: 32px 24px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--card-border);
    transition: all 0.3s;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.06);
}

.contact-card i {
    font-size: 1.8rem;
    color: var(--gold);
    margin-bottom: 14px;
}

.contact-card h3 {
    color: var(--primary-green);
    margin-bottom: 8px;
}

.contact-card p {
    color: var(--light-text);
    font-size: 0.92rem;
}

/* Emergency banner */
.emergency-banner {
    background: linear-gradient(135deg, #fff3e0, #ffecd2);
    border: 1px solid #ffb74d;
    border-radius: 14px;
    padding: 20px 24px;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.emergency-banner i {
    color: #e65100;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.emergency-banner p {
    color: #bf360c;
    font-size: 0.92rem;
    margin: 0;
}

/* Form card for contact/support */
.form-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--card-border);
    margin-top: 28px;
}

.form-card h2 {
    color: var(--primary-green);
    margin-bottom: 24px;
    font-size: 1.4rem;
}

.form-card .form-group {
    margin-bottom: 18px;
}

.form-card .form-group label {
    display: block;
    color: var(--dark-text);
    font-weight: 600;
    font-size: 0.88rem;
    margin-bottom: 6px;
}

.form-card .form-group input,
.form-card .form-group select,
.form-card .form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--card-border);
    border-radius: 12px;
    font-size: 0.92rem;
    font-family: inherit;
    transition: all 0.3s;
    background: var(--card-bg);
    color: var(--dark-text);
    box-sizing: border-box;
}

.form-card .form-group input:focus,
.form-card .form-group select:focus,
.form-card .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 4px rgba(26,71,42,0.08);
}

.form-card .submit-btn {
    padding: 14px 32px;
    background: var(--primary-green);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.form-card .submit-btn:hover {
    background: #0f2b1a;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15,43,26,0.25);
}

/* FAQ page */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.search-box {
    margin-bottom: 32px;
}

.search-box input {
    width: 100%;
    padding: 16px 20px 16px 48px;
    border: 1.5px solid var(--card-border);
    border-radius: 14px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s;
    background: var(--card-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85zm-5.242.656a5 5 0 1 1 0-10 5 5 0 0 1 0 10z'/%3E%3C/svg%3E") no-repeat 18px center;
    box-sizing: border-box;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 4px rgba(26,71,42,0.08);
}

.faq-category {
    margin-bottom: 32px;
}

.faq-category h2 {
    color: var(--primary-green);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--card-border);
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: all 0.3s;
}

.faq-item:hover {
    border-color: rgba(26,71,42,0.15);
}

.faq-question {
    padding: 18px 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--dark-text);
    font-size: 0.95rem;
}

.faq-question i {
    transition: transform 0.3s;
    color: var(--primary-green);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 24px 18px;
    display: none;
    color: var(--light-text);
    line-height: 1.8;
    font-size: 0.92rem;
}

.faq-item.active .faq-answer {
    display: block;
}

.contact-cta {
    background: linear-gradient(135deg, #0f2b1a, #1a472a);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    color: white;
    margin-top: 40px;
}

.contact-cta h3 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.contact-cta p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

/* Blog page */
.blog-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.blog-filter-btn {
    padding: 8px 20px;
    border: 2px solid var(--card-border);
    background: var(--card-bg);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--light-text);
    cursor: pointer;
    transition: all 0.25s;
    font-family: inherit;
}
.blog-filter-btn:hover {
    border-color: #1a472a;
    color: #1a472a;
}
.blog-filter-btn.active {
    background: #1a472a;
    border-color: #1a472a;
    color: white;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
    margin-top: 24px;
}

.blog-card {
    background: var(--card-bg);
    border-radius: 18px;
    border: 1px solid var(--card-border);
    overflow: hidden;
    transition: all 0.35s;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.08);
}

.blog-image-cover {
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: #1a472a;
    position: relative;
}

.blog-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: linear-gradient(135deg, #d4a520, #c9a030);
    color: #1a1a1a;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 5px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.blog-content {
    padding: 24px;
}

.blog-content h3 {
    color: var(--dark-text);
    font-size: 1.1rem;
    margin-bottom: 10px;
    line-height: 1.4;
}
.blog-content h3 a {
    color: inherit;
    text-decoration: none;
}
.blog-content h3 a:hover {
    color: #1a472a;
}

.blog-category {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}
.cat-investing { background: #e3f2fd; color: #1565c0; }
.cat-savings { background: #e8f5e9; color: #2e7d32; }
.cat-security { background: #fce4ec; color: #c62828; }
.cat-homebuying { background: #fff3e0; color: #e65100; }
.cat-business { background: #f3e5f5; color: #7b1fa2; }
.cat-fintech { background: #e0f7fa; color: #00838f; }
.cat-retirement { background: #fff8e1; color: #f57f17; }

.blog-excerpt {
    color: var(--light-text);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.blog-full {
    display: none;
    margin-bottom: 16px;
}
.blog-full p {
    color: var(--light-text);
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 12px;
}

.blog-author-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    margin-bottom: 14px;
    border-top: 1px solid var(--card-border);
    flex-wrap: wrap;
    gap: 10px;
}
.blog-author-info {
    display: flex;
    align-items: center;
    gap: 10px;
}
.blog-author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a472a, #2d5f3f);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
}
.blog-author-name {
    display: block;
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--dark-text);
}
.blog-author-title {
    display: block;
    font-size: 0.72rem;
    color: var(--muted-text);
}
.blog-meta-right {
    display: flex;
    gap: 14px;
    font-size: 0.78rem;
    color: var(--muted-text);
}
.blog-meta-right i {
    margin-right: 4px;
}

.blog-meta {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    font-size: 0.8rem;
    color: var(--muted-text);
}

.read-more {
    color: #1a472a;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}
.read-more:hover {
    color: var(--gold);
    gap: 10px;
}

.featured-post {
    grid-column: span 2;
}
.featured-post .blog-image-cover {
    height: 300px;
}
.featured-post .blog-content h3 {
    font-size: 1.4rem;
}

/* Trending sidebar */
.trending-list li a {
    display: flex;
    align-items: center;
    gap: 10px;
}
.trending-list li a i {
    width: 18px;
    text-align: center;
    color: #1a472a;
}
.trending-badge {
    background: linear-gradient(135deg, #ff5722, #ff9800);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    margin-left: auto;
}

.newsletter-box {
    background: linear-gradient(135deg, #0f2b1a, #1a472a);
    border-radius: 20px;
    padding: 32px;
    text-align: center;
    color: white;
    margin-top: 24px;
}

.newsletter-box h3 {
    color: white;
    margin-bottom: 12px;
}

.newsletter-box p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.newsletter-form-blog {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.newsletter-form-blog input {
    padding: 12px 16px;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-family: inherit;
    width: 100%;
    box-sizing: border-box;
}
.newsletter-form-blog button {
    padding: 12px;
    background: var(--gold);
    color: #1a472a;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    font-size: 0.9rem;
}
.newsletter-form-blog button:hover {
    background: #c9a030;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 460px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 14px 18px;
    border: none;
    border-radius: 12px;
    font-size: 0.92rem;
    font-family: inherit;
}

.newsletter-form button {
    padding: 14px 24px;
    background: var(--gold);
    color: #1a472a;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.newsletter-form button:hover {
    background: #c9a030;
    transform: translateY(-2px);
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .featured-post {
        grid-column: span 1;
    }
    .featured-post .blog-image-cover {
        height: 200px;
    }
    .featured-post .blog-content h3 {
        font-size: 1.1rem;
    }
    .blog-filters {
        gap: 6px;
    }
    .blog-filter-btn {
        padding: 6px 14px;
        font-size: 0.78rem;
    }
    .blog-author-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Branch cards */
.branches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.branch-card {
    background: var(--card-bg);
    padding: 28px 24px;
    border-radius: 16px;
    border: 1px solid var(--card-border);
    transition: all 0.3s;
}

.branch-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.06);
}

.branch-card h3 {
    color: var(--primary-green);
    margin-bottom: 8px;
}

.branch-card p {
    color: var(--light-text);
    font-size: 0.9rem;
    line-height: 1.7;
}

.branch-services {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 12px 0;
}

.branch-services span {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    color: var(--primary-green);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

.branch-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.branch-actions a {
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

/* Timeline */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gold);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    padding-left: 55px;
    margin-bottom: 30px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 5px;
    width: 20px;
    height: 20px;
    background: var(--primary-green);
    border: 3px solid var(--gold);
    border-radius: 50%;
}

.timeline-item h3 {
    color: var(--primary-green);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.timeline-item span {
    color: var(--gold);
    font-weight: 700;
    font-size: 0.85rem;
}

.timeline-item p {
    color: var(--light-text);
    margin-top: 8px;
    line-height: 1.7;
    font-size: 0.92rem;
}

/* Leadership */
.leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.leader-card {
    text-align: center;
    padding: 28px;
    background: var(--light-bg);
    border-radius: 16px;
    border: 1px solid var(--card-border);
    transition: all 0.3s;
}

.leader-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.06);
}

.leader-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a472a, #2d5f3f);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    font-size: 1.8rem;
    color: white;
    box-shadow: 0 4px 16px rgba(26,71,42,0.2);
}

.leader-card h4 {
    color: var(--primary-green);
    margin-bottom: 4px;
    font-weight: 700;
}

.leader-card p {
    color: var(--muted-text);
    font-size: 0.85rem;
}

/* Stats bar for branches */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin: 28px 0;
}

.stat-item {
    background: var(--primary-green);
    color: white;
    padding: 24px;
    border-radius: 14px;
    text-align: center;
}

.stat-item .stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gold);
}

.stat-item .stat-label {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-top: 4px;
}

/* Tips grid for security page */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.tip-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 18px;
    background: var(--light-bg);
    border-radius: 14px;
    border: 1px solid var(--card-border);
}

.tip-item i {
    color: var(--gold);
    font-size: 1.2rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.tip-item p {
    color: var(--light-text);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* ATM cards */
.atm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.atm-card {
    background: var(--card-bg);
    padding: 22px;
    border-radius: 14px;
    border: 1px solid var(--card-border);
}

/* Categories sidebar for blog */
.categories-sidebar {
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--card-border);
    padding: 24px;
    margin-top: 28px;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--card-border);
}

.category-list li:last-child {
    border-bottom: none;
}

.category-list a {
    color: var(--dark-text);
    text-decoration: none;
    font-size: 0.92rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-list a:hover {
    color: var(--primary-green);
}

/* Form row */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* Alerts */
.alert {
    padding: 16px 20px;
    border-radius: 12px;
    margin-top: 16px;
    display: none;
    font-size: 0.92rem;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Blog layout */
.blog-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
}

.blog-full {
    display: none;
}

/* Branch map & search */
.branch-map {
    height: 400px;
    border-radius: 16px;
    margin-bottom: 40px;
    overflow: hidden;
}

.region-title {
    font-size: 1.4rem;
    color: var(--primary-green);
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--card-border);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.region-title:first-of-type {
    margin-top: 0;
}

.search-section {
    padding: 40px 0;
    background: var(--card-bg);
    border-bottom: 1px solid var(--card-border);
}

.search-section .search-box {
    max-width: 600px;
    display: flex;
    gap: 10px;
}

.search-section .search-box input {
    flex: 1;
    padding: 15px 20px;
    border: 1.5px solid var(--card-border);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
}

.search-section .search-box input:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 4px rgba(26,71,42,0.08);
}

.search-section .search-box button {
    padding: 15px 30px;
    background: var(--primary-green);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.search-section .search-box button:hover {
    background: #0f2b1a;
}

.btn-directions {
    background: var(--primary-green);
    color: white;
}

.btn-directions:hover {
    background: #0f2b1a;
}

.btn-call {
    background: #e8f5e9;
    color: var(--primary-green);
}

.btn-call:hover {
    background: #c8e6c9;
}

.branch-info p {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--light-text);
}

.branch-info p i {
    color: var(--primary-green);
    margin-top: 4px;
    width: 16px;
    flex-shrink: 0;
}

/* Contact extras */
.contact-extra-info {
    margin-top: 8px;
}

/* Last-updated badge for legal pages */
.last-updated {
    background: linear-gradient(135deg, #e8f5e9, #f1f8e9);
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 28px;
    color: var(--primary-green);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-hours-note {
    margin-top: 16px;
    font-size: 0.85rem;
    color: var(--muted-text);
}

.contact-hours-note a {
    color: var(--primary-green);
    font-weight: 600;
    text-decoration: none;
}

/* ===== Public Page Responsive ===== */
@media (max-width: 768px) {
    .page-hero {
        padding: 100px 0 50px;
    }

    .page-hero h1 {
        font-size: 1.8rem;
    }

    .page-hero p {
        font-size: 0.95rem;
    }

    .page-card {
        padding: 28px 22px;
    }

    .featured-post {
        grid-column: span 1;
    }

    .featured-post .blog-card-img {
        height: 200px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .contact-grid,
    .blog-grid,
    .branches-grid {
        grid-template-columns: 1fr;
    }

    .form-card {
        padding: 28px 22px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .blog-layout {
        grid-template-columns: 1fr;
    }

    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
    }

    .search-section .search-box {
        flex-direction: column;
    }

    .branch-map {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .page-hero {
        padding: 90px 0 40px;
    }

    .page-hero h1 {
        font-size: 1.4rem;
    }

    .page-card {
        padding: 22px 16px;
    }

    .faq-question {
        font-size: 0.88rem;
        padding: 14px 18px;
    }

    .form-card {
        padding: 22px 16px;
    }

    .branch-actions {
        flex-direction: column;
    }

    .stats-bar {
        gap: 10px;
    }

    .stat-item {
        padding: 18px;
    }

    .search-section .search-box button {
        padding: 12px;
    }

    .app-store-badges {
        flex-direction: column;
        align-items: stretch;
    }

    .store-badge {
        justify-content: center;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .services-bento {
        grid-template-columns: repeat(2, 1fr);
    }

    .bento-large {
        grid-row: span 1;
    }

    .bento-wide {
        grid-column: span 2;
    }

    .why-us-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonial-card {
        min-width: 300px;
        max-width: 300px;
    }

    .cta-inner {
        flex-direction: column;
        text-align: center;
        padding: 48px 36px;
    }

    .cta-text p {
        max-width: 100%;
    }

    .cta-actions {
        justify-content: center;
    }

    .rates-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .rate-card-featured {
        transform: none;
    }

    .rate-card-featured:hover {
        transform: translateY(-6px);
    }

    /* Hero split layout tablet */
    .hero {
        min-height: 0;
        padding-bottom: 60px;
    }

    .hero-layout {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
        min-height: 0;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-trust-row {
        justify-content: center;
    }

    .hero-visual {
        min-height: 380px;
    }

    .hero-3d-scene {
        max-width: 400px;
        height: 380px;
        margin: 0 auto;
    }

    .floating-card-3d {
        width: 300px;
        height: 185px;
    }

    .hero-widget-balance {
        top: 10px;
        right: -5px;
    }

    .hero-widget-growth {
        bottom: 40px;
        left: -5px;
    }

    .hero-widget-txn {
        bottom: -5px;
        right: 10px;
    }

    .app-showcase {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .app-features {
        align-items: center;
    }

    .app-store-badges {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 76px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 76px);
        background: var(--primary-green);
        flex-direction: column;
        padding: 32px 20px;
        transition: left 0.3s;
        gap: 8px;
    }

    .nav-links.active {
        left: 0;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-badge {
        font-size: 0.75rem;
    }

    .hero-scroll-indicator {
        display: none;
    }

    .hero {
        min-height: 0;
        padding-top: 80px;
        padding-bottom: 40px;
    }

    .hero-layout {
        grid-template-columns: 1fr;
        gap: 20px;
        min-height: 0;
    }

    .hero-visual {
        min-height: 280px;
    }

    .hero-3d-scene {
        max-width: 320px;
        height: 280px;
    }

    .floating-card-3d {
        width: 260px;
        height: 160px;
    }

    .card-3d-front {
        padding: 18px;
    }

    .card-3d-chip {
        width: 34px;
        height: 24px;
    }

    .card-3d-number {
        font-size: 0.78rem;
        letter-spacing: 0.08em;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .card-3d-label {
        font-size: 0.5rem;
    }

    .card-3d-value {
        font-size: 0.72rem;
    }

    .card-3d-visa {
        font-size: 1.5rem;
    }

    .hero-widget {
        padding: 10px 14px;
    }

    .widget-icon {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }

    .widget-value {
        font-size: 0.88rem;
    }

    .widget-label {
        font-size: 0.58rem;
    }

    .hero-trust-row {
        flex-direction: column;
        gap: 8px;
    }

    .btn {
        padding: 12px 22px;
        font-size: 0.92rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .section-header p {
        font-size: 0.92rem;
    }

    .section-tag {
        font-size: 0.7rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-card {
        border-right: none;
        border-bottom: 1px solid var(--card-border);
        padding: 24px 16px;
    }

    .stat-card:nth-child(odd) {
        border-right: 1px solid var(--card-border);
    }

    .stat-card:nth-last-child(-n+2) {
        border-bottom: none;
    }

    .stat-card h3 {
        font-size: 1.5rem;
    }

    .services-bento {
        grid-template-columns: 1fr;
    }

    .bento-large {
        grid-row: span 1;
    }

    .bento-wide {
        grid-column: span 1;
    }

    .bento-wide-inner {
        grid-template-columns: 1fr;
    }

    .bento-wide-item:first-child {
        border-radius: 18px 18px 0 0;
    }

    .bento-wide-item:last-child {
        border-radius: 0 0 18px 18px;
    }

    .why-us-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-card {
        min-width: 280px;
        max-width: 280px;
    }

    .bento-card,
    .why-card {
        padding: 28px 22px;
    }

    .quick-stats {
        margin-top: -40px;
    }

    .services,
    .why-us,
    .testimonials {
        padding: 60px 0 70px;
    }

    .bento-card {
        min-height: 0;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-form-wrapper {
        padding: 24px 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .cta-inner {
        padding: 40px 24px;
        border-radius: 16px;
    }

    .cta-text h2 {
        font-size: 1.5rem;
    }

    .cta-actions {
        flex-direction: column;
        width: 100%;
    }

    .cta-actions .btn {
        width: 100%;
        text-align: center;
    }

    .rates-grid {
        grid-template-columns: 1fr;
    }

    .rate-value {
        font-size: 2.4rem;
    }

    .app-info h2 {
        font-size: 1.8rem;
    }

    .phone-frame {
        width: 240px;
        height: 500px;
    }

    .footer-section h4 {
        font-size: 0.9rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .trust-partners {
        gap: 18px;
    }

    .trust-badge i {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-content h1 {
        font-size: 1.75rem;
        line-height: 1.2;
    }

    .text-gradient {
        font-size: inherit;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    .section-header h2 {
        font-size: 1.35rem;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0;
    }

    .stat-card {
        padding: 20px 14px;
    }

    .stat-card h3 {
        font-size: 1.3rem;
    }

    .stat-icon-wrap {
        width: 40px;
        height: 40px;
    }

    .stat-card p {
        font-size: 0.78rem;
    }

    .bento-card {
        padding: 22px 18px;
    }

    .service-icon {
        width: 48px;
        height: 48px;
    }

    .bento-card h3,
    .why-card h3 {
        font-size: 1.05rem;
    }

    .testimonial-card {
        padding: 22px 18px;
    }

    .quick-stats {
        margin-top: -30px;
    }

    .hero {
        padding-bottom: 30px;
    }

    .hero-layout {
        gap: 16px;
    }

    .hero-visual {
        min-height: 240px;
    }

    .hero-3d-scene {
        max-width: 280px;
        height: 240px;
    }

    .services,
    .why-us,
    .testimonials,
    .contact {
        padding: 40px 0 50px;
    }

    .particle {
        display: none;
    }

    .phone-frame {
        width: 200px;
        height: 420px;
    }

    .phone-balance {
        font-size: 1.3rem;
    }

    .phone-actions span i {
        width: 30px;
        height: 30px;
        font-size: 0.7rem;
    }

    .phone-txn-icon {
        width: 24px;
        height: 24px;
    }

    .store-badge {
        padding: 12px 20px;
        font-size: 0.82rem;
    }

    .rates-showcase,
    .mobile-app-section {
        padding: 50px 0 60px;
    }

    .footer {
        padding: 40px 0 20px;
    }

    .footer-grid {
        gap: 24px;
    }

    .social-links a {
        width: 32px;
        height: 32px;
    }
}

/* Footer newsletter signup */
.newsletter-signup { margin-top: 16px; }
.newsletter-signup h4 { margin-bottom: 8px; }
.newsletter-signup-form { display: flex; gap: 6px; }
.newsletter-signup-form input {
    flex: 1; padding: 8px 12px; border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px; background: rgba(255,255,255,0.1); color: #fff; font-size: 0.85rem;
}
.newsletter-signup-form button {
    padding: 8px 14px; background: var(--gold, #d4af37); color: #1a472a;
    border: none; border-radius: 6px; font-weight: 600; cursor: pointer; font-size: 0.85rem;
}

/* About page CTA buttons */
.about-cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.about-cta-btn { padding: 14px 28px; border-radius: 12px; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.about-cta-btn.gold { background: var(--gold); color: #1a472a; }

/* Admin sidebar footer */
.admin-sidebar-footer { padding: 16px 24px; border-top: 1px solid rgba(255,255,255,0.08); }
.admin-sidebar-footer .logout-btn { width: 100%; justify-content: center; }
.admin-divider { margin: 16px 0; border-color: var(--border-color); }

/* Investment page utilities */
.invest-icon-bonds { background: #d1fae5; color: #065f46; }
.invest-icon-index { background: #fef3c7; color: #92400e; }
.invest-icon-cd { background: #dbeafe; color: #1e40af; }
.invest-icon-growth { background: #fee2e2; color: #991b1b; }
.est-return-val { color: #16a34a; }
.modal-btn-full { flex: 1; }
.icon-gold { color: #d4af37; }
.icon-map-signs { color: #d4af37; }
.admin-section-heading { margin-bottom: 12px; }

/* Auth page select (signup gender) */
.auth-select {
    width: 100%; padding: 12px 16px; border: 1px solid rgba(255,255,255,0.15);
    border-radius: 12px; background: rgba(255,255,255,0.06); color: #fff;
    font-size: 0.95rem; outline: none; transition: border-color 0.3s;
}
.auth-select-placeholder { color: #999; }
.resize-vertical { resize: vertical; }
.biometric-creds-spacing { margin-top: 8px; }

/* ========================================
   LEGAL PAGES — Sidebar + Accordion Layout
   ======================================== */
.legal-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    align-items: start;
}

/* Sidebar */
.legal-sidebar {
    position: sticky;
    top: 100px;
}
.legal-sidebar-inner {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    overflow: hidden;
}
.legal-sidebar-header {
    padding: 18px 20px;
    font-weight: 600;
    font-size: 0.92rem;
    color: #1a5632;
    background: #f0fdf4;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 8px;
}
.legal-nav {
    display: flex;
    flex-direction: column;
    padding: 8px 0;
}
.legal-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: #4b5563;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}
.legal-nav-link:hover {
    background: #f9fafb;
    color: #1a5632;
}
.legal-nav-link.active {
    background: #f0fdf4;
    color: #1a5632;
    border-left-color: #16a34a;
    font-weight: 600;
}
.legal-nav-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 0.72rem;
    font-weight: 700;
    flex-shrink: 0;
}
.legal-nav-link.active .legal-nav-num {
    background: #dcfce7;
    color: #16a34a;
}
.legal-sidebar-cta {
    padding: 16px 20px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}
.legal-sidebar-cta p {
    margin: 0 0 8px;
    font-size: 0.82rem;
    color: #6b7280;
}
.legal-sidebar-cta a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #16a34a;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
}
.legal-sidebar-cta a:hover { color: #15803d; }

/* Main column */
.legal-main { min-width: 0; }
.legal-main .page-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

/* Meta bar */
.legal-meta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}
.legal-version {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background: #f0fdf4;
    color: #16a34a;
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 20px;
    border: 1px solid #bbf7d0;
}

/* Intro box */
.legal-intro-box {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 20px 24px;
    background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
    border-radius: 12px;
    margin-bottom: 28px;
    border: 1px solid #bbf7d0;
}
.legal-intro-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #dcfce7;
    color: #16a34a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.legal-intro-box strong {
    display: block;
    margin-bottom: 4px;
    color: #1a5632;
    font-size: 1rem;
}
.legal-intro-box p {
    margin: 0;
    color: #4b5563;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Accordion sections */
.legal-section {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}
.legal-section:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.legal-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    cursor: pointer;
    background: #fafafa;
    transition: background 0.2s;
    user-select: none;
}
.legal-section-header:hover {
    background: #f3f4f6;
}
.legal-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
}
.legal-section-title h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
}
.legal-section-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #dcfce7;
    color: #16a34a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}
.legal-chevron {
    color: #9ca3af;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}
.legal-chevron.rotated {
    transform: rotate(180deg);
}
.legal-section-body {
    display: none;
    padding: 0 20px 20px;
    color: #374151;
    font-size: 0.92rem;
    line-height: 1.7;
}
.legal-section-body.open {
    display: block;
}
.legal-section-body p { margin: 12px 0; }
.legal-section-body ul { margin: 8px 0 12px 20px; }
.legal-section-body li { margin-bottom: 6px; }
.legal-section-body h3 {
    margin: 20px 0 12px;
    font-size: 0.95rem;
    color: #1a5632;
}

/* List grid (2-col icon list) */
.legal-list-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 16px 0;
}
.legal-list-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 14px;
    background: #f9fafb;
    border-radius: 8px;
    font-size: 0.88rem;
    color: #374151;
}
.legal-list-item i {
    color: #16a34a;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Subsection cards (privacy page) */
.legal-subsection-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 16px 0;
}
.legal-subsection-card {
    background: #f9fafb;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e5e7eb;
}
.legal-subsection-card h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    font-size: 0.9rem;
    color: #1f2937;
}
.legal-subsection-card ul {
    margin: 0;
    padding-left: 18px;
    font-size: 0.85rem;
    color: #4b5563;
}
.legal-subsection-card li { margin-bottom: 4px; }

/* Contact grid */
.legal-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin: 16px 0;
}
.legal-contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 16px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    gap: 8px;
}
.legal-contact-card i {
    font-size: 1.4rem;
    color: #16a34a;
}
.legal-contact-card strong {
    font-size: 0.88rem;
    color: #1f2937;
}
.legal-contact-card span {
    font-size: 0.82rem;
    color: #6b7280;
    line-height: 1.5;
}

/* Related documents */
.legal-related {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}
.legal-related h3 {
    margin: 0 0 16px;
    font-size: 1rem;
    color: #1f2937;
}
.legal-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}
.legal-related-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    color: #374151;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}
.legal-related-card:hover {
    background: #f0fdf4;
    border-color: #86efac;
    color: #1a5632;
}
.legal-related-card i {
    color: #16a34a;
    font-size: 1rem;
}

/* Legal pages responsive */
@media (max-width: 900px) {
    .legal-layout {
        grid-template-columns: 1fr;
    }
    .legal-sidebar {
        position: static;
    }
    .legal-sidebar-inner {
        border-radius: 12px;
    }
    .legal-nav {
        flex-direction: row;
        flex-wrap: wrap;
        padding: 8px 12px;
        gap: 4px;
    }
    .legal-nav-link {
        padding: 6px 10px;
        border-left: none;
        border-radius: 6px;
        font-size: 0.78rem;
    }
    .legal-nav-link.active {
        border-left: none;
        background: #dcfce7;
    }
    .legal-nav-num { display: none; }
    .legal-list-grid { grid-template-columns: 1fr; }
    .legal-contact-grid { grid-template-columns: 1fr 1fr; }
    .legal-related-grid { grid-template-columns: 1fr 1fr; }
    .legal-main .page-card { padding: 20px; }
}
@media (max-width: 600px) {
    .legal-contact-grid { grid-template-columns: 1fr; }
    .legal-related-grid { grid-template-columns: 1fr; }
    .legal-intro-box { flex-direction: column; align-items: center; text-align: center; }
    .legal-subsection-cards { grid-template-columns: 1fr; }
}
