:root {
    /* Corporate Palette - Deep & Trustworthy */
    --lbp-blue: #004B9B;
    /* Primary Brand Color */
    --lbp-blue-dark: #003366;
    /* Hover/Active states */
    --lbp-yellow: #FFCD00;
    /* Call to Actions */
    --lbp-yellow-hover: #E6B800;

    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-600: #4B5563;
    --gray-800: #1F2937;
    --gray-900: #111827;

    --text-primary: #1F2937;
    --text-secondary: #4B5563;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    --container-width: 1280px;
}

/* Base Reset & Typography */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    outline: none;
}

body {
    font-family: var(--font-sans);
    color: var(--text-primary);
    background-color: #FFFFFF;
    line-height: 1.5;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Utilities */
.fl-flex {
    display: flex;
}

.fl-items-center {
    align-items: center;
}

.fl-justify-between {
    justify-content: space-between;
}

.fl-gap-1 {
    gap: 4px;
}

.fl-gap-2 {
    gap: 8px;
}

.fl-gap-4 {
    gap: 16px;
}

.text-blue {
    color: var(--lbp-blue);
}

.text-white {
    color: white;
}

.fw-bold {
    font-weight: 700;
}

.fw-medium {
    font-weight: 600;
}

.text-sm {
    font-size: 14px;
}

.text-xs {
    font-size: 12px;
}

/* =========================================
   HEADER ARCHITECTURE (Professional Tier)
   ========================================= */
.site-header {
    background-color: white;
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 1000;
}

/* Top Bar: Institutional Links */
.top-bar {
    background-color: var(--gray-100);
    border-bottom: 1px solid var(--gray-200);
    padding: 8px 0;
    font-size: 13px;
    color: var(--gray-600);
}

.top-bar-inner {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}

.top-bar a:hover {
    color: var(--lbp-blue);
    text-decoration: underline;
}

/* Top Bar Mobile Actions - Hidden on desktop */
.top-bar-mobile-actions {
    display: none;
}

.top-bar-btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.top-bar-btn-primary {
    background: var(--lbp-yellow);
    color: var(--lbp-blue);
}

.top-bar-btn-primary:hover {
    background: #d97706;
    text-decoration: none;
}

.top-bar-btn-secondary {
    background: var(--lbp-blue);
    color: white;
}

.top-bar-btn-secondary:hover {
    background: #1e40af;
    text-decoration: none;
}

/* Main Navbar */
.main-header {
    padding: 0;
    height: 80px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--gray-200);
}

/* Premium Logo Styling */
.logo-container {
    text-decoration: none;
    display: block;
    /* Ensure it wraps the content */
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    /* Clickable */
}

.logo-icon {
    font-size: 32px;
    color: var(--lbp-blue);
}

.logo-text-col {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-main {
    font-family: 'Inter', sans-serif;
    /* Modern Corporate Sans */
    font-weight: 800;
    /* Extra Bold */
    font-size: 26px;
    color: var(--lbp-blue);
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

.logo-sub {
    font-size: 10px;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 2px;
    /* Wide spacing for elegance */
    margin-top: 4px;
    font-weight: 600;
}

.mobile-menu-toggle {
    display: none !important;
}

.mobile-nav-overlay {
    display: none !important;
}

.main-nav {
    margin-left: 40px;
    height: 100%;
}

.main-nav ul {
    display: flex;
    height: 100%;
    align-items: center;
    gap: 32px;
}

.main-nav a {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 15px;
    height: 100%;
    display: flex;
    align-items: center;
    border-bottom: 3px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--lbp-blue);
    border-bottom-color: var(--lbp-blue);
}

/* Search & Secure Actions */
.header-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-search {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--lbp-blue);
    background: var(--gray-50);
}

.btn-search:hover {
    background: var(--gray-200);
}

.btn-client-access {
    background-color: #D32F2F;
    /* Secure Red */
    color: white;
    padding: 10px 24px;
    font-weight: 600;
    border-radius: 2px;
    /* Bank Style usually squarish */
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}

.btn-client-access:hover {
    background-color: #B71C1C;
}

.btn-become-client {
    background-color: var(--lbp-yellow);
    color: var(--gray-900);
    padding: 10px 24px;
    font-weight: 600;
    border-radius: 2px;
    font-size: 14px;
}

.btn-become-client:hover {
    background-color: var(--lbp-yellow-hover);
}

/* =========================================
   HERO SECTION WITH LOGIN WIDGET
   ========================================= */
.hero-section {
    position: relative;
    background: url('../img/corporate-hero.jpg') no-repeat center center;
    /* Ideally needs a real image */
    background-size: cover;
    background-color: #0F172A;
    /* Fallback */
    height: 520px;
    display: flex;
    align-items: center;
}

/* Overlay gradient */
.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 75, 155, 0.9) 0%, rgba(0, 75, 155, 0.4) 60%, transparent 100%);
}

.hero-content-wrapper {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.hero-text {
    max-width: 600px;
    color: white;
}

.hero-text h1 {
    font-size: 48px;
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.hero-text p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 32px;
    line-height: 1.6;
}

.hero-links .link-white {
    color: white;
    font-weight: 600;
    text-decoration: underline;
    margin-right: 20px;
}

/* Floating Login Widget - Classic Bank Pattern */
.login-widget {
    background: white;
    padding: 32px;
    width: 360px;
    border-radius: 4px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.login-widget h3 {
    color: var(--lbp-blue);
    font-size: 20px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--lbp-yellow);
    padding-bottom: 10px;
    display: inline-block;
}

.login-input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--gray-200);
    border-radius: 2px;
    margin-bottom: 16px;
    background: var(--gray-50);
}

.login-btn-submit {
    width: 100%;
    padding: 14px;
    background: var(--lbp-blue);
    color: white;
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.login-btn-submit:hover {
    background: var(--lbp-blue-dark);
}

.login-extras {
    margin-top: 16px;
    font-size: 13px;
    color: var(--gray-600);
    display: flex;
    justify-content: space-between;
}

.login-extras a {
    text-decoration: underline;
}

/* =========================================
   QUICK ACCESS BAR
   ========================================= */
.quick-access-bar {
    background: var(--lbp-blue);
    padding: 24px 0;
    margin-top: -40px;
    /* Overlap Hero */
    position: relative;
    z-index: 20;
    color: white;
}

.quick-access-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.qa-item {
    background: var(--lbp-blue);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: background 0.2s;
    cursor: pointer;
}

.qa-item:hover {
    background: #003d80;
}

.qa-icon {
    font-size: 24px;
    margin-bottom: 12px;
    color: var(--lbp-yellow);
}

.qa-title {
    font-weight: 600;
    font-size: 15px;
}

/* =========================================
   NEWS & PRODUCTS CARDS
   ========================================= */
.section-std {
    padding: 80px 0;
}

.bg-gray {
    background-color: var(--gray-50);
}

.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

.section-title {
    font-size: 32px;
    color: var(--lbp-blue);
    font-weight: 700;
    position: relative;
    padding-left: 20px;
}

.section-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    bottom: 5px;
    width: 4px;
    background: var(--lbp-yellow);
}

.card-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.news-card-pro {
    background: white;
    border: 1px solid var(--gray-200);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-card-pro:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--lbp-blue);
}

.nc-img {
    height: 200px;
    background-color: #E2E8F0;
    position: relative;
}

.nc-category {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--lbp-yellow);
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 700;
    color: var(--gray-900);
    text-transform: uppercase;
}

.nc-body {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.nc-date {
    font-size: 13px;
    color: var(--gray-600);
    margin-bottom: 8px;
}

.nc-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 12px;
    line-height: 1.4;
}

.nc-excerpt {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    flex-grow: 1;
}

.nc-link {
    color: var(--lbp-blue);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* =========================================
   FOOTER (Institutional)
   ========================================= */
.footer-pro {
    background: #F3F4F6;
    border-top: 4px solid var(--lbp-blue);
    padding-top: 60px;
    color: var(--gray-800);
    font-size: 14px;
}

.footer-main-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid #E5E7EB;
}

.footer-col h5 {
    color: var(--lbp-blue);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col a {
    color: var(--gray-600);
}

.footer-col a:hover {
    color: var(--lbp-blue);
}

.contact-box {
    background: white;
    padding: 24px;
    border: 1px solid #E5E7EB;
    border-left: 4px solid var(--lbp-yellow);
}

.footer-legal-block {
    padding: 24px 0;
    background: #E5E7EB;
    color: #4B5563;
    font-size: 12px;
    text-align: justify;
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
    justify-content: center;
    padding: 20px 0;
    font-size: 13px;
    font-weight: 600;
}

/* Mobile & Tablet Responsive */
/* Max-width 1024px: Tablets & Small Laptops */
@media (max-width: 1024px) {
    .container {
        padding: 0 16px;
    }

    /* Top Bar: Show on mobile with action buttons */
    .top-bar {
        display: block;
        padding: 10px 0;
    }

    .top-bar-inner {
        justify-content: center;
        gap: 8px;
        flex-wrap: wrap;
    }

    /* Hide institutional links on mobile */
    .top-bar-inner>a {
        display: none;
    }

    /* Show mobile action buttons */
    .top-bar-mobile-actions {
        display: flex;
        gap: 8px;
        width: 100%;
        justify-content: center;
    }

    .top-bar-btn {
        flex: 1;
        max-width: 48%;
        justify-content: center;
        font-size: 14px;
        padding: 10px 12px;
    }

    /* Header */
    .main-header {
        height: 70px;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .logo-main {
        font-size: 22px;
    }

    .logo-group {
        order: 1;
        flex-shrink: 0;
    }

    /* Hide Desktop Nav */
    .main-nav {
        display: none;
    }

    /* Header Actions: Hide on mobile (now in top-bar) */
    .header-actions {
        display: flex;
        gap: 8px;
        order: 4;
    }

    /* Hide action buttons on mobile */
    .header-actions .btn-become-client,
    .header-actions .btn-client-access,
    .header-actions .btn-search {
        display: none;
    }

    /* Language switcher positioned at far right */
    .lang-switcher {
        margin-left: 0;
    }

    /* Mobile Menu Toggle */
    .mobile-menu-toggle {
        display: block !important;
        font-size: 24px;
        cursor: pointer;
        padding: 8px;
        order: 3;
        margin-left: auto;
        margin-right: 0;
    }

    /* Hero Section */
    .hero-section {
        height: auto;
        padding: 60px 0;
    }

    .hero-content-wrapper {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .hero-text {
        max-width: 100%;
        padding: 0;
    }

    .hero-text h1 {
        font-size: 36px;
    }

    .hero-links {
        display: flex;
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }

    .hero-links .link-white {
        margin-right: 0;
    }

    /* Quick Access Grid */
    .quick-access-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .quick-access-bar {
        margin-top: 0;
    }

    /* Footer */
    .footer-main-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

/* Max-width 768px: Mobile Phones */
@media (max-width: 768px) {

    /* Fonts */
    h1,
    .hero-text h1 {
        font-size: 30px;
    }

    h2,
    .section-title {
        font-size: 24px;
    }

    h3 {
        font-size: 20px;
    }

    /* Cards */
    .card-grid-3 {
        grid-template-columns: 1fr;
    }

    .news-card-pro {
        margin-bottom: 24px;
    }

    /* Login Widget */
    .login-widget {
        width: 100%;
        max-width: 100%;
        padding: 24px;
    }

    /* Stats or Features Grids if any */
    .features-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-main-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-bottom-links {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .footer-bottom-links span {
        display: none;
        /* Hide separators */
    }

    /* Header adjustments */
    .logo-main {
        font-size: 18px;
    }

    .btn-search {
        display: none;
        /* Save space */
    }
}

/* Mobile Menu Overlay Styles (To be toggled via JS) */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: white;
    z-index: 9999;
    display: none;
    overflow-y: auto;
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}

.mobile-nav-overlay.active {
    display: block !important;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 2px solid var(--lbp-blue);
    background: var(--gray-50);
}

.mobile-nav-list {
    padding: 20px;
}

.mobile-nav-section {
    margin-bottom: 20px;
}

.mobile-nav-section-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--lbp-blue);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.mobile-nav-list a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    color: var(--gray-800);
    font-size: 16px;
    font-weight: 500;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.mobile-nav-list a:hover {
    background: var(--gray-100);
    color: var(--lbp-blue);
    transform: translateX(4px);
}

.mobile-nav-list a i {
    color: var(--lbp-blue);
    font-size: 14px;
    width: 20px;
}


/* =========================================
   SUB-PAGES & PREMIUM CONTENT
   ========================================= */

/* Page Headers */
.page-header {
    background: var(--gray-50);
    padding: 60px 0;
    border-bottom: 1px solid var(--gray-200);
}

.page-header h1 {
    font-size: 36px;
    /* Responsive size handled by media queries */
    color: var(--lbp-blue);
    margin-bottom: 16px;
    font-weight: 800;
}

.page-intro {
    font-size: 18px;
    color: var(--gray-600);
    max-width: 800px;
    line-height: 1.6;
}

/* Document/Download Cards (Pricing) */
.doc-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 4px;
    padding: 24px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.doc-card:hover {
    border-color: var(--lbp-blue);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.doc-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.doc-icon {
    font-size: 28px;
    color: #E11D48;
    /* PDF Red */
}

/* Tables (Pricing) */
.fees-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    margin-top: 20px;
}

.fees-table th {
    text-align: left;
    padding: 16px;
    background: var(--gray-50);
    border-bottom: 2px solid var(--lbp-blue);
    color: var(--lbp-blue);
    font-weight: 700;
}

.fees-table td {
    padding: 16px;
    border-bottom: 1px solid var(--gray-200);
    color: var(--gray-800);
}

.fees-table tr:last-child td {
    border-bottom: none;
}

.fees-price {
    text-align: right;
    font-weight: 700;
    color: var(--gray-900);
}

/* Legal & Text Layouts */
.content-wrapper-narrow {
    max-width: 800px;
    /* Optimal reading width */
    margin: 0 auto;
}

.legal-block {
    margin-bottom: 40px;
}

.legal-block h3 {
    color: var(--lbp-blue);
    font-weight: 700;
    margin-bottom: 16px;
    font-size: 20px;
    border-left: 4px solid var(--lbp-yellow);
    padding-left: 12px;
}

.legal-block p,
.legal-block li {
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 12px;
}

/* Mobile Adjustments for Sub-pages */
@media (max-width: 768px) {
    .doc-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .doc-card .btn-outline {
        width: 100%;
        text-align: center;
    }

    .fees-table th,
    .fees-table td {
        padding: 12px 8px;
        font-size: 14px;
    }
}

/* =========================================
   GLOBAL RESPONSIVE FIXES (Forms & Tables)
   ========================================= */

/* Make all inputs responsive */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
textarea,
select {
    max-width: 100%;
    box-sizing: border-box;
    /* Ensure padding doesn't break width */
}

@media (max-width: 768px) {

    /* Stack form groups */
    .form-group {
        width: 100%;
        margin-bottom: 16px;
    }

    label {
        display: block;
        margin-bottom: 8px;
    }

    /* Responsive Tables */
    .table-container,
    .pricing-table-wrapper {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 24px;
        border: 1px solid var(--gray-200);
        border-radius: 4px;
    }

    table {
        min-width: 600px;
        /* Force scroll for complex tables */
    }

    /* General Padding */
    .section-std {
        padding: 40px 0;
    }

    .section-title {
        font-size: 24px;
        line-height: 1.3;
    }

    .section-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    /* Buttons full width on mobile */
    .btn,
    button,
    .btn-become-client,
    .btn-client-access {
        width: 100%;
        display: flex;
        justify-content: center;
        margin-bottom: 8px;
    }

    /* Adjust quick access grid text */
    .qa-title {
        font-size: 13px;
    }

    /* Sub-pages specific fixes */
    .contact-box,
    .login-widget {
        width: 100% !important;
        max-width: 100% !important;
        padding: 20px !important;
    }
}

.mobile-nav-list a {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-800);
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-100);
}