/* ========================================
   Universal Styles for TD Web Business Banking
   Base styles for all pages
   ======================================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #1a1a1a;
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* === BASIC LAYOUT CLASSES === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.white-background {
  background-color: #ffffff;
  color: #1a1a1a;
}

.light-blue-background {
  background-color: #f0f4f8;
  color: #1a1a1a;
}

.responsive-padding-centered {
  padding: 3rem 1rem;
}

@media (min-width: 768px) {
  .responsive-padding-centered {
    padding: 4rem 2rem;
  }
}

.flex-container-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.responsive-content-box {
  flex: 1 1 100%;
  min-width: 0;
}

@media (min-width: 768px) {
  .responsive-content-box {
    flex: 1 1 50%;
  }
}

.responsive-main-heading {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #1a1a1a;
}

@media (min-width: 768px) {
  .responsive-main-heading {
    font-size: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .responsive-main-heading {
    font-size: 3rem;
  }
}

.subtext-paragraph {
  font-size: 1.125rem;
  line-height: 1.6;
  color: #4a5568;
  margin-bottom: 1rem;
}

.section-bottom-padding {
  padding: 3rem 0;
}

.wide-responsive-column {
  flex: 1 1 100%;
  min-width: 0;
}

.negative-top-margin {
  margin-top: -2rem;
}

.blog.single {
  max-width: 100%;
}

/* === CARD STYLES === */
.card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.card-img-top {
  width: 100%;
  overflow: hidden;
}

.full-width-image {
  width: 100%;
  height: auto;
  display: block;
}

.card-body {
  padding: 1.5rem;
}

.adaptive-content-padding {
  padding: 1.5rem;
}

@media (min-width: 768px) {
  .adaptive-content-padding {
    padding: 2rem;
  }
}

/* === POST STYLES === */
.post-header {
  margin-bottom: 1rem;
}

.small-bottom-margin {
  margin-bottom: 1rem;
}

.header-label-details {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: #e2e8f0;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 0.75rem;
}

.large-text {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: #1a1a1a;
}

@media (min-width: 768px) {
  .large-text {
    font-size: 1.75rem;
  }
}

.positioned-element {
  position: relative;
}

.post {
  margin-bottom: 2rem;
}

.post a {
  color: #2563eb;
  text-decoration: none;
  transition: color 0.3s ease;
}

.post a:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.medium-bottom-gap {
  margin-bottom: 2rem;
}

/* === NAVIGATION CLASSES === */
.header-background-wrapper {
  background: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.light-navbar-theme {
  background: transparent;
}

.transparent {
  background: transparent !important;
}

.navbar {
  padding: 1rem 0;
}

.navbar-expand-lg {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.horizontal-align-xl-lg {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.full-width {
  width: 100%;
}

.navbar-brand {
  display: flex;
  align-items: center;
}

.align-center-flex {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.margin-right-small {
  margin-right: 0.75rem;
}

.small-image-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.responsive-text-style {
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a1a;
}

.hidden {
  display: none;
}

@media (min-width: 768px) {
  .hidden {
    display: block;
  }
}

.navbar-collapse {
  flex-basis: 100%;
  flex-grow: 1;
  align-items: center;
}

.offcanvas {
  position: fixed;
  bottom: 0;
  z-index: 1045;
  display: flex;
  flex-direction: column;
  max-width: 100%;
  visibility: hidden;
  background-color: #fff;
  background-clip: padding-box;
  outline: 0;
  transition: transform 0.3s ease-in-out;
}

.offcanvas-start {
  top: 0;
  left: 0;
  width: 400px;
  border-right: 1px solid rgba(0, 0, 0, 0.2);
  transform: translateX(-100%);
}

.offcanvas.show {
  visibility: visible;
  transform: translateX(0);
}

.offcanvas-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid #dee2e6;
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.button-style {
  background: transparent;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: #1a1a1a;
}

.screen-reader-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.icon-size-small {
  width: 24px;
  height: 24px;
}

.offcanvas-body {
  flex-grow: 1;
  padding: 1rem;
  overflow-y: auto;
}

.offcanvas-position-xl-lg {
  display: block;
}

.navbar-nav {
  display: flex;
  flex-direction: column;
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
}

.nav-item {
  margin-bottom: 0.5rem;
}

.nav-link {
  display: block;
  padding: 0.5rem 1rem;
  color: #1a1a1a;
  text-decoration: none;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out;
}

.nav-link:hover {
  color: #2563eb;
  background-color: #f7fafc;
}

.full-flex-auto-margin {
  margin-left: auto;
}

.navbar-other {
  display: flex;
  align-items: center;
}

.center-aligned-flex-row {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.responsive-hidden-large {
  display: block;
}

@media (min-width: 1024px) {
  .responsive-hidden-large {
    display: none;
  }
}

.hamburger {
  background: transparent;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #1a1a1a;
  transition: all 0.3s ease;
}

@media (min-width: 1024px) {
  .navbar-collapse {
    display: flex !important;
    flex-basis: auto;
  }
  
  .navbar-nav {
    flex-direction: row;
    gap: 1rem;
  }
  
  .offcanvas-position-xl-lg {
    position: static;
    display: flex;
    flex-direction: row;
  }
  
  .offcanvas {
    position: static;
    visibility: visible;
    transform: none;
    background: transparent;
    border: none;
  }
}

/* === FOOTER CLASSES === */
.full-width-banner {
  width: 100%;
  background: #1a202c;
  color: #ffffff;
  padding: 3rem 0;
}

.container-max-width {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.vertical-spacing {
  margin-bottom: 2rem;
}

.navigation-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.link-default {
  color: #cbd5e0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.link-default:hover {
  color: #ffffff;
  text-decoration: underline;
}

.section-divider {
  padding-top: 2rem;
  border-top: 1px solid #4a5568;
}

.flexible-layout {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.muted-text {
  color: #a0aec0;
  font-size: 0.875rem;
}

.contact-information {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  color: #cbd5e0;
  font-size: 0.875rem;
}

.contact-information a {
  color: #cbd5e0;
  text-decoration: none;
}

.contact-information a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.separator-line {
  color: #4a5568;
}

/* === POPUP CLASSES === */
.popup-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #2d3748;
  color: #ffffff;
  padding: 1.5rem;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.2);
  z-index: 10000;
}

.heading-large {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.body-small {
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.text-underline {
  color: #68d391;
  text-decoration: underline;
}

.text-underline:hover {
  color: #48bb78;
}

.actions-group {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.primary-button {
  background: #68d391;
  color: #ffffff;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.primary-button:hover {
  background: #48bb78;
}

.secondary-button {
  background: transparent;
  color: #cbd5e0;
  border: 1px solid #4a5568;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.secondary-button:hover {
  background: #4a5568;
  color: #ffffff;
}

/* === UTILITY CLASSES === */
.compact-list-styles {
  list-style: none;
  padding: 0;
  margin: 0;
}

.element-inline-display {
  display: inline;
}

/* === RESPONSIVE UTILITIES === */
@media (max-width: 767px) {
  .container {
    padding: 0 0.75rem;
  }
  
  .responsive-padding-centered {
    padding: 2rem 0.75rem;
  }
  
  .card-body {
    padding: 1rem;
  }
  
  .adaptive-content-padding {
    padding: 1rem;
  }
}

