/* ================= navigation_bar ================= */
/* Define color variables for consistent theme */
:root {
  --color-darkblue: #1B325F;
  --color-lightblue: #9CC4E4;
  --color-ultralight: #E9F2F9;
  --color-midblue: #3A89C9;
  --color-orange: #F26C4F;
  --color-textgray: #797979;
  --color-white: #FFFFFF;
}

/* Reset and base font */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Times New Roman', serif;
}

/* Page background and text color */
body {
  background-color: var(--color-white);
  color: var(--color-textgray);
}

/* ================= Header ================= */
/* Header container with dark background, used as top branding bar */
.header {
  background-color: var(--color-darkblue);
  color: var(--color-white);
  padding: 12px 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

/* Centered header content, spacing between name and nav links */
.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Main brand name */
.main-name {
  font-size: 26px;
  font-weight: bold;
  color: var(--color-white);
}

/* ================= Head Links ================= */
/* Top-level navigation links container */
.head-link {
  display: flex;
  list-style: none;
  flex-wrap: wrap;
}

.head-link li {
  margin-left: 20px;
}

/* Individual nav links */
.head-link a {
  color: var(--color-white);
  text-decoration: none;
  font-size: 16px;
  padding: 6px 12px;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.head-link a:hover {
  background-color: var(--color-lightblue);
  color: var(--color-darkblue);
}

/* ================= Navbar ================= */
/* White secondary navbar under the header */
.navbar {
  background: var(--color-white);
  display: flex;
  justify-content: center;
  padding: 12px 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

/* System name displayed in navbar */
.system-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--color-darkblue);
  margin-right: 130px;
  align-self: center;
}

/* Navigation links for pages */
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-links a {
  color: var(--color-darkblue);
  text-decoration: none;
  font-weight: bold;
  padding-bottom: 2px;
  transition: all 0.3s ease;
}

.nav-links a.active {
  color: var(--color-midblue);
  border-bottom: 2px solid var(--color-midblue);
}

/* ================= Footer ================= */
/* Footer styling with dark background and light text */
.footer {
  background-color: var(--color-darkblue);
  color: var(--color-white);
  padding: 24px 0;
  font-size: 14px;
  margin-top: 30vh;
}

.foot-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.foot-link {
  display: flex;
  list-style: none;
  justify-content: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.foot-link li {
  margin: 0 10px;
}

.foot-link a {
  color: var(--color-white);
  text-decoration: none;
}

.foot-link a:hover {
  text-decoration: underline;
}

.foot-text {
  font-size: 12px;
  width: 100%;
  text-align: center;
  color: var(--color-lightblue);
}

/* ================= Login Page ================= */
/* Container for login header */
.login-header {
  padding: 20px 30px;
  background-color: var(--color-white);
  border-bottom: 2px solid var(--color-lightblue);
  text-align: center;
}

/* Title inside login header */
.login-header h1 {
  color: var(--color-darkblue);
  font-size: 26px;
}

/* Main login background and layout */
.main {
  background: var(--color-ultralight);
  display: flex;
  justify-content: center;
  padding: 50px 0;
}

/* Login form card */
.login-box {
  background: var(--color-white);
  padding: 30px;
  width: 340px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Title within login box */
.login-title {
  text-align: center;
  padding-bottom: 12px;
  font-weight: bold;
  border-bottom: 3px solid;
  margin-bottom: 20px;
}

/* Login form label styling */
form label {
  font-size: 14px;
  margin: 6px 0 4px;
  display: block;
}

/* Input fields inside login form */
input {
  width: 100%;
  padding: 12px;
  margin-bottom: 14px;
  border: 1px solid var(--color-lightblue);
  border-radius: 5px;
  background-color: var(--color-ultralight);
}

/* Login button styling */
.login-btn {
  width: 100%;
  background-color: var(--color-darkblue);
  color: var(--color-white);
  padding: 12px;
  border: none;
  font-size: 16px;
  border-radius: 5px;
  margin-top: 10px;
  cursor: pointer;
}

.login-btn:hover {
  background-color: var(--color-lightblue);
}

/* Links under login form */
.login-links {
  margin-top: 12px;
  font-size: 13px;
  text-align: center;
}

.login-links a {
  margin: 0 6px;
  color: var(--color-midblue);
  text-decoration: none;
}

.login-links a:hover {
  text-decoration: underline;
}


/* ================= Login Banner ================= */
/* Banner section on the login page with background image */
.login-banner {
  max-width: 1000px;
  margin: 40px auto;
  height: 400px;
  padding: 0;
  position: relative;
  background: url('../login.png') center/cover no-repeat;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Content inside banner */
.login-banner-content {
  position: absolute;
  top: 50px;
  left: 70px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.login-banner-content p {
  color: var(--color-darkblue);
  font-size: 20px;
  margin-bottom: 10px;
}

/* CTA button for banner */
.login-cta-button {
  display: inline-block;
  background-color: var(--color-darkblue);
  color: var(--color-white);
  padding: 12px 28px;
  font-size: 16px;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.login-cta-button:hover {
  background-color: var(--color-orange);
  transform: scale(1.05);
}


/* ================= Visitor Carousel ================= */
/* Outer carousel container */
.carousel {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  margin: 60px auto;
  max-width: 1000px;
}

/* Track containing slides */
.carousel-track {
  display: flex;
  transition: transform 0.6s ease-in-out;
  width: 100%;
}

/* Individual slide card */
.slide {
  flex: 0 0 100%;
  padding: 50px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: var(--color-white);
  color: var(--color-textgray);
}

/* Slide title */
.slide h2 {
  font-size: 28px;
  margin-bottom: 20px;
  color: var(--color-testgray); /* Potential typo, check usage */
  display: flex;
  align-items: center;
  gap: 14px;
  border-left: 5px solid var(--color-midblue);
  padding-left: 12px;
}

/* Slide description */
.slide-desc {
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-testgray); /* Potential typo, check usage */
  margin-top: 10px;
}

/* Icon styling for slides */
.icon {
  font-size: 26px;
  color: var(--color-blackblue); /* Potential typo, check usage */
}

/* Navigation buttons for slides */
.nav-buttons {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  gap: 16px;
}

.nav-buttons button {
  padding: 12px 24px;
  background-color: var(--color-darkblue);
  color: var(--color-white);
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.nav-buttons button:hover {
  background-color: var(--color-darkblue);
  transform: scale(1.05);
}

/* CTA button below carousel */
.login-container {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.login-link {
  padding: 14px 30px;
  background-color: var(--color-orange);
  color: var(--color-white);
  text-decoration: none;
  font-size: 16px;
  border-radius: 8px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.login-link:hover {
  background-color: #d95634;
  transform: scale(1.05);
}


/* ================= Topbar ================= */
/* Small gray bar for minimal user tools */
.topbar {
  background: #f9f9f9;
  font-size: 14px;
  padding: 6px 20px;
  display: flex;
  justify-content: flex-end;
  border-bottom: 1px solid #ddd;
  color: #333;
}


/* ================= Account Info ================= */
/* Horizontal user info display under navbar */
.account-info {
  background-color: var(--color-white);
  padding: 20px 30px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.user-card {
  display: flex;
  align-items: center;
}

/* User avatar image */
.user-card .avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-right: 16px;
}

/* User name */
.user-card .name {
  font-size: 16px;
  color: var(--color-darkblue);
  margin: 0;
}

/* Notification area */
.notice {
  font-size: 14px;
  color: var(--color-textgray);
}


/* ================= Bank Card Section ================= */
/* Section showing bank cards in grid */
.card-section {
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 30px;
}

.card-section h2 {
  font-size: 20px;
  color: var(--color-darkblue);
  margin-bottom: 20px;
}

/* Card item container */
.card-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

/* Individual card display */
.card-item {
  background-color: var(--color-white);
  border-left: 5px solid var(--color-midblue);
  padding: 20px;
  width: 300px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.card-type {
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--color-midblue);
}

.card-number {
  font-size: 15px;
  color: #555;
  margin-bottom: 6px;
}

.card-balance {
  font-size: 16px;
  font-weight: bold;
  color: var(--color-orange);
}


/* ================= My Accounts Section ================= */
/* Container for showing all user accounts */
.my-accounts {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 30px;
}

/* Title heading */
.section-title {
  font-size: 20px;
  color: var(--color-darkblue);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Layout of multiple accounts */
.account-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

/* Card showing one account */
.account-card {
  background-color: var(--color-white);
  flex: 1 1 300px;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Hover animation */
.account-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 6px 10px rgba(0, 0, 0, 0.12),
    0 14px 28px rgba(0, 0, 0, 0.16);
}

.account-card h3 {
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--color-midblue);
}

.account-card p {
  color: var(--color-textgray);
  margin-bottom: 8px;
}

/* Buttons in card */
.card-actions button,
.account-card button {
  margin-right: 10px;
  padding: 6px 14px;
  background-color: var(--color-lightblue);
  border: none;
  border-radius: 4px;
  color: var(--color-darkblue);
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Highlighted action */
.account-card .highlight {
  background-color: var(--color-orange);
  color: white;
}

.card-actions button:hover,
.account-card button:hover {
  background-color: var(--color-midblue);
  color: white;
}
/* ================= Investment Section ================= */
/* Container for investment options layout */
.investment {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 30px;
}

/* Cards layout for different investment choices */
.investment-options {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* Single investment card */
.investment-card {
  background-color: var(--color-white);
  flex: 1 1 260px;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Tag label for card type */
.investment-card .tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 13px;
  margin-bottom: 10px;
}

/* Color-coded tag variants */
.tag-orange {
  background-color: #fff0e0;
  color: var(--color-orange);
}

.tag-blue {
  background-color: #e0f2ff;
  color: var(--color-midblue);
}

/* Investment rate */
.investment-card .rate {
  font-size: 20px;
  color: var(--color-darkblue);
  margin-bottom: 6px;
}

/* Investment card text */
.investment-card p {
  color: var(--color-textgray);
  font-size: 14px;
}


/* ================= News Section ================= */
/* Container for recent news items */
.news-section {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 30px;
}

.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.news-list li {
  margin-bottom: 10px;
}

/* News links */
.news-list a {
  color: var(--color-darkblue);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.3s ease;
}

.news-list a:hover {
  color: var(--color-orange);
}


/* ================= Account Form - Personal Info Section ================= */
/* Main section for editing personal info */
.personal-info-section {
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
  background-color: var(--color-white);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Header for personal info form */
.info-header {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
  border-bottom: 2px solid var(--color-lightblue);
  padding-bottom: 10px;
}

.info-header h2 {
  font-size: 22px;
  color: var(--color-darkblue);
  margin: 0;
}

/* Tab menu under header */
.tab-menu {
  display: flex;
  gap: 20px;
  margin-top: 10px;
  border-bottom: 1px solid #ccc;
  padding-bottom: 6px;
}

.tab-menu a {
  padding: 6px 12px;
  border-radius: 4px;
  text-decoration: none;
  color: var(--color-darkblue);
  font-weight: 500;
}

.tab-menu a.active {
  background-color: var(--color-lightblue);
  color: var(--color-darkblue);
  font-weight: bold;
}

/* Two-column form layout */
.info-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 40px;
  margin-top: 30px;
}

/* Labels inside the form */
.info-form label {
  font-weight: bold;
  color: #333;
  display: block;
  margin-bottom: 5px;
}

/* Input and select fields */
.info-form input,
.info-form select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #f9f9f9;
  font-size: 14px;
}

/* Input focus effects */
.info-form input:focus,
.info-form select:focus {
  outline: none;
  border-color: var(--color-midblue);
  background-color: #fff;
}

/* Red asterisk for required fields */
.required {
  color: var(--color-orange);
  margin-right: 5px;
}

/* Grouped form input */
.form-group {
  display: flex;
  flex-direction: column;
}

/* Row of form fields */
.form-row {
  display: flex;
  gap: 10px;
}

.info-form .inline-input {
  flex: 1;
}

/* Submit button area */
.form-actions {
  grid-column: span 2;
  text-align: center;
  margin-top: 30px;
}

.form-actions button {
  padding: 10px 24px;
  font-size: 16px;
  background-color: var(--color-darkblue);
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.form-actions button:hover {
  background-color: var(--color-orange);
}

/* Secondary action button */
.account-action-btn {
  padding: 8px 18px;
  background-color: var(--color-lightblue);
  border: none;
  border-radius: 5px;
  color: var(--color-darkblue);
  font-size: 15px;
  font-weight: 500;
  margin: 0 10px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.account-action-btn:hover {
  background-color: var(--color-midblue);
  color: #fff;
}


/* ================= Responsive ================= */
/* Responsive layout rules for mobile/tablet */
@media (max-width: 768px) {
  /* Stack account info vertically */
  .account-info {
    flex-direction: column;
    text-align: center;
  }

  .user-card {
    flex-direction: column;
  }

  /* Make card list stack */
  .card-list {
    justify-content: center;
  }

  .card-item {
    width: 90%;
  }

  .account-cards,
  .investment-options {
    flex-direction: column;
  }

  .info-form {
    grid-template-columns: 1fr;
  }

  .form-actions {
    grid-column: span 1;
  }

  /* Stack navbar vertically */
  .navbar {
    flex-direction: column;
    text-align: center;
  }

  .system-name {
    text-align: center;
    width: 100%;
    margin: 10px 0;
  }

  .nav-links {
    justify-content: center;
  }

  .header-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 0 20px;
    text-align: center;
  }

  .head-link {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .head-link li {
    margin: 5px;
  }

  .main-name {
    font-size: 22px;
  }

  .login-box {
    width: 90%;
  }

  .foot-link {
    flex-direction: column;
    align-items: center;
  }

  .foot-content {
    padding: 0 10px;
    text-align: center;
  }
}
