/* ========================================
   City Group Bank Bank — Corporate Website CSS
   Design System matching HSBC corporate style
   ======================================== */

/* Reset & Base */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Brand Colors - matching City Group Bank's green palette */
  --brand-green: #008248;
  --brand-green-dark: #005931;
  --brand-green-darker: #004023;
  --brand-white: #ffffff;
  --brand-black: #000000;

  /* Neutral Colors */
  --grey-100: #f7f7f7;
  --grey-200: #ededed;
  --grey-300: #d4d4d4;
  --grey-400: #a8a8a8;
  --grey-500: #767676;
  --grey-600: #585858;
  --grey-700: #404040;
  --grey-800: #333333;
  --grey-900: #1a1a1a;

  /* Background colors */
  --bg-light: #eef0f1;
  --bg-white: #ffffff;
  --bg-footer: #3c3c3c;
  --bg-footer-bottom: #2d2d2d;

  /* Typography */
  --font-primary: 'Inter', 'Univers Next for HSBC', 'Arial', 'Helvetica Neue', sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-md: 1.125rem;
  --font-size-lg: 1.25rem;
  --font-size-xl: 1.5rem;
  --font-size-2xl: 2rem;
  --font-size-3xl: 2.5rem;
  --font-size-hero: 3.25rem;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 5rem;

  /* Layout */
  --max-width: 1280px;
  --nav-height: 80px;
  --border-radius: 0;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
  --transition-slow: 0.4s ease;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  font-weight: 300;
  color: var(--grey-800);
  background-color: var(--bg-light);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul,
ol {
  list-style: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

/* ========================================
   HEADER / NAVIGATION
   ======================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--brand-white);
  border-top: 3px solid var(--brand-green);
  border-bottom: 1px solid var(--grey-200);
}

.header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  padding: 0 var(--space-xl);
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.header__logo-icon {
  width: 40px;
  height: 40px;
  position: relative;
}

.header__logo-icon svg {
  width: 100%;
  height: 100%;
}

.header__logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--grey-800);
  letter-spacing: 0.5px;
}

/* Main nav */
.header__nav {
  display: flex;
  align-items: center;
  gap: 0;
}

.header__nav-list {
  display: flex;
  align-items: center;
  gap: 0;
}

.header__nav-item {
  position: relative;
}

.header__nav-link {
  display: flex;
  align-items: center;
  padding: 0 var(--space-lg);
  height: var(--nav-height);
  font-size: var(--font-size-sm);
  font-weight: 400;
  color: var(--grey-800);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: border-color var(--transition-fast), color var(--transition-fast);
  white-space: nowrap;
}

.header__nav-link:hover {
  border-bottom-color: var(--grey-800);
  color: var(--grey-900);
}

/* Mega menu dropdown */
.header__nav-item:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--brand-white);
  min-width: 320px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: all var(--transition-base);
  z-index: 100;
}

.mega-menu__section {
  padding: var(--space-lg) var(--space-xl);
}

.mega-menu__title {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--grey-800);
  padding-bottom: var(--space-sm);
  margin-bottom: var(--space-sm);
  border-bottom: 1px solid var(--grey-200);
}

.mega-menu__link {
  display: block;
  padding: var(--space-sm) 0;
  font-size: var(--font-size-sm);
  font-weight: 300;
  color: var(--grey-700);
  transition: color var(--transition-fast);
}

.mega-menu__link:hover {
  color: var(--brand-green);
}

/* Right side nav */
.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.header__action-link {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--grey-800);
  padding: var(--space-sm) var(--space-md);
  transition: color var(--transition-fast);
  white-space: nowrap;
}

.header__action-link:hover {
  color: var(--brand-green);
}

.header__action-link--bordered {
  border: 1px solid var(--grey-300);
  border-radius: 0;
}

.header__action-link--bordered:hover {
  border-color: var(--grey-800);
}

.header__search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--grey-800);
  border-left: 1px solid var(--grey-200);
  padding-left: var(--space-md);
  margin-left: var(--space-sm);
}

.header__search-btn svg {
  width: 20px;
  height: 20px;
}

.header__search-btn:hover {
  color: var(--brand-green);
}

/* Mobile menu toggle */
.header__mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  order: 3;
  z-index: 2001;
}

.header__mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--grey-800);
  transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.header__mobile-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header__mobile-toggle.active span:nth-child(2) { opacity: 0; }
.header__mobile-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1024px) {
  .header__inner {
    padding: 0 var(--space-md);
    height: 60px;
  }
  .header__nav {
    display: none;
  }
  .header__mobile-toggle {
    display: flex;
  }
  .header__logo-text {
    font-size: 1rem;
  }
  .header__action-link { display: none; }
  #onlineBankingBtn { display: inline-flex; font-size: 12px; padding: 6px 12px; }
}

/* Mobile Drawer */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 350px;
    height: 100%;
    background: var(--brand-white);
    z-index: 2000;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 80px 30px 40px;
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
}

.mobile-drawer.active {
    right: 0;
}

.mobile-drawer__overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-drawer__overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-drawer__nav {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-drawer__link {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--grey-800);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-drawer__link svg {
    width: 20px;
    height: 20px;
    color: var(--brand-green);
}

/* Accordion Styles */
.mobile-accordion { border-bottom: 1px solid #f0f0f0; }
.mobile-accordion__btn {
    width: 100%;
    padding: 20px 0;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--grey-800);
    text-align: left;
    cursor: pointer;
}
.mobile-accordion__btn svg { transition: transform 0.3s ease; color: var(--brand-green); }
.mobile-accordion__btn.active svg { transform: rotate(180deg); }

.mobile-accordion__content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}
.mobile-accordion__content a {
    padding: 12px 15px;
    font-size: 0.95rem;
    color: var(--grey-600);
    text-decoration: none;
    border-left: 2px solid #eee;
    margin-left: 5px;
    margin-bottom: 5px;
}
.mobile-accordion__content a:hover { color: var(--brand-green); border-left-color: var(--brand-green); }

.mobile-drawer__footer {
    margin-top: auto;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  position: relative;
  width: 100%;
  height: 580px;
  overflow: hidden;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0.05) 0%,
      rgba(0, 0, 0, 0.35) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-xl);
}

.hero__title {
  font-size: var(--font-size-hero);
  font-weight: 300;
  color: var(--brand-white);
  line-height: 1.2;
  max-width: 700px;
  margin-bottom: var(--space-xl);
  letter-spacing: -0.5px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .hero { height: 480px; }
  .hero__title { font-size: 2.25rem; }
}

.hero__cta {
  display: inline-block;
  padding: 12px 32px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  color: var(--brand-white);
  font-size: var(--font-size-sm);
  font-weight: 400;
  letter-spacing: 0.5px;
  transition: all var(--transition-base);
  background: transparent;
}

.hero__cta:hover {
  background: var(--brand-white);
  color: var(--grey-800);
  border-color: var(--brand-white);
}

/* ========================================
   CONTENT SECTIONS
   ======================================== */
.content-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

/* Featured News Grid — 2 columns: large left, video + text right */
.featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 60px;
  background: var(--brand-white);
}

.featured-card {
  background: var(--brand-white);
  overflow: hidden;
}

.featured-card--large {
  grid-row: span 1;
}

.featured-card__image-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.featured-card__image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.featured-card:hover .featured-card__image-wrapper img {
  transform: scale(1.02);
}

.featured-card__image-wrapper--large {
  height: 440px;
}

.featured-card__image-wrapper--video {
  height: 250px;
  position: relative;
}

.featured-card__play-btn {
  position: absolute;
  bottom: 20px;
  left: 20px;
  width: 56px;
  height: 56px;
  background: var(--brand-green);
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.featured-card__play-btn:hover {
  background: var(--brand-green-dark);
}

.featured-card__play-btn svg {
  width: 24px;
  height: 24px;
  fill: var(--brand-white);
  margin-left: 3px;
}

.featured-card__content {
  padding: var(--space-2xl) var(--space-2xl);
}

.featured-card__title {
  font-size: var(--font-size-2xl);
  font-weight: 300;
  color: var(--grey-800);
  line-height: 1.3;
  margin-bottom: var(--space-lg);
  letter-spacing: -0.3px;
}

.featured-card__description {
  font-size: var(--font-size-base);
  font-weight: 300;
  color: var(--grey-600);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
}

.featured-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--grey-800);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.featured-card__link:hover {
  color: var(--brand-green);
}

.featured-card__link svg {
  width: 16px;
  height: 16px;
  color: var(--brand-green);
  flex-shrink: 0;
}

.featured-card__download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--grey-800);
  margin-top: var(--space-md);
}

.featured-card__download svg {
  width: 16px;
  height: 16px;
}

/* News tile grid — alternating image/text */
.news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--bg-light);
}

.news-tile {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-column: span 2;
  background: var(--brand-white);
  margin-bottom: 2px;
}

@media (max-width: 900px) {
  .featured-grid { grid-template-columns: 1fr; margin-top: 40px; }
  .news-tile { grid-template-columns: 1fr; }
  .news-tile__content { padding: var(--space-xl); }
  .featured-card__content { padding: var(--space-xl); }
}

.news-tile--reverse {
  direction: rtl;
}

.news-tile--reverse>* {
  direction: ltr;
}

.news-tile__image {
  width: 100%;
  height: 100%;
  min-height: 360px;
  overflow: hidden;
}

.news-tile__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.news-tile:hover .news-tile__image img {
  transform: scale(1.02);
}

.news-tile__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-3xl);
}

.news-tile__title {
  font-size: var(--font-size-2xl);
  font-weight: 300;
  color: var(--grey-800);
  line-height: 1.3;
  margin-bottom: var(--space-lg);
}

.news-tile__description {
  font-size: var(--font-size-base);
  font-weight: 300;
  color: var(--grey-600);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
}

.news-tile__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--grey-800);
}

.news-tile__link svg {
  width: 16px;
  height: 16px;
  color: var(--brand-green);
}

.news-tile__link:hover {
  color: var(--brand-green);
}

/* Small feature cards — 2-up grey bg */
.feature-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  padding: var(--space-3xl) 0;
}

.feature-card {
  background: var(--grey-100);
  padding: var(--space-2xl) var(--space-2xl);
}

.feature-card__title {
  font-size: var(--font-size-lg);
  font-weight: 300;
  color: var(--grey-800);
  margin-bottom: var(--space-md);
}

.feature-card__description {
  font-size: var(--font-size-sm);
  font-weight: 300;
  color: var(--grey-600);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

.feature-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--grey-800);
}

.feature-card__link svg {
  width: 16px;
  height: 16px;
  color: var(--brand-green);
}

.feature-card__link:hover {
  color: var(--brand-green);
}

/* ========================================
   CAREERS CTA SECTION  
   ======================================== */
.careers-cta {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.careers-cta__wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
}

.careers-cta__image {
  width: 100%;
  height: 520px;
  object-fit: cover;
}

.careers-cta__content {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 50%;
  background: var(--brand-green-dark);
  color: var(--brand-white);
  padding: var(--space-3xl);
}

.careers-cta__title {
  font-size: var(--font-size-2xl);
  font-weight: 300;
  line-height: 1.3;
  margin-bottom: var(--space-lg);
}

.careers-cta__description {
  font-size: var(--font-size-base);
  font-weight: 300;
  line-height: 1.7;
  opacity: 0.9;
  margin-bottom: var(--space-xl);
}

@media (max-width: 900px) {
  .careers-cta__content {
    position: relative;
    width: 100%;
    padding: var(--space-xl);
  }
  .careers-cta__image {
    height: 350px;
  }
}

.careers-cta__btn {
  display: inline-block;
  padding: 12px 28px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: var(--brand-white);
  font-size: var(--font-size-sm);
  font-weight: 400;
  transition: all var(--transition-base);
}

.careers-cta__btn:hover {
  background: var(--brand-white);
  color: var(--brand-green-dark);
  border-color: var(--brand-white);
}

/* ========================================
   SHARE & FEEDBACK SECTION
   ======================================== */
.share-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-3xl) var(--space-xl);
}

.share-section__inner {
  border-top: 1px solid var(--grey-300);
  padding-top: var(--space-2xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (max-width: 768px) {
  .share-section__inner { flex-direction: column; gap: var(--space-xl); align-items: flex-start; }
  .feature-cards { grid-template-columns: 1fr; }
}

.share-row {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.share-row__label {
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--grey-800);
}

.share-row__icons {
  display: flex;
  gap: var(--space-md);
}

.share-icon {
  width: 36px;
  height: 36px;
  border: 1px solid var(--grey-400);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--grey-600);
  transition: all var(--transition-fast);
}

.share-icon:hover {
  border-color: var(--grey-800);
  color: var(--grey-800);
}

.share-icon svg {
  width: 16px;
  height: 16px;
}

.utility-row {
  display: flex;
  gap: var(--space-lg);
  align-items: center;
}

.utility-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--font-size-sm);
  font-weight: 400;
  color: var(--grey-600);
  padding-left: var(--space-lg);
  border-left: 1px solid var(--grey-300);
}

.utility-link:first-child {
  border-left: none;
  padding-left: 0;
}

.utility-link svg {
  width: 16px;
  height: 16px;
}

.utility-link:hover {
  color: var(--grey-800);
}

/* Feedback bar */
.feedback-bar {
  max-width: var(--max-width);
  margin: 0 auto var(--space-3xl);
  padding: 0 var(--space-xl);
}

.feedback-bar__inner {
  background: var(--grey-200);
  padding: var(--space-2xl) var(--space-3xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.feedback-bar__title {
  font-size: var(--font-size-2xl);
  font-weight: 300;
  color: var(--grey-800);
}

.feedback-bar__buttons {
  display: flex;
  gap: var(--space-md);
}

.feedback-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-md);
  padding: 12px 36px;
  background: var(--brand-white);
  border: 1px solid var(--grey-300);
  font-size: var(--font-size-base);
  font-weight: 400;
  color: var(--grey-800);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.feedback-btn:hover {
  border-color: var(--grey-800);
  background: var(--grey-100);
}

.feedback-btn svg {
  width: 20px;
  height: 20px;
  color: var(--grey-500);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--bg-footer);
  color: var(--brand-white);
}

.footer__top {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-3xl) var(--space-xl);
}

.footer__nav {
  display: flex;
  justify-content: center;
  gap: var(--space-3xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer__nav-link {
  font-size: var(--font-size-sm);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  transition: color var(--transition-fast);
}

.footer__nav-link:hover {
  color: var(--brand-white);
}

.footer__social {
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
  padding: var(--space-2xl) 0;
}

.footer__social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-fast);
}

.footer__social-link:hover {
  color: var(--brand-white);
}

.footer__social-link svg {
  width: 24px;
  height: 24px;
}

.footer__bottom {
  background: var(--bg-footer-bottom);
  padding: var(--space-lg) var(--space-xl);
}

.footer__bottom-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-md) var(--space-xl);
}

.footer__copyright {
  font-size: var(--font-size-xs);
  color: rgba(255, 255, 255, 0.5);
  font-weight: 300;
}

.footer__legal-link {
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.3);
  text-underline-offset: 3px;
  transition: color var(--transition-fast);
}

.footer__legal-link:hover {
  color: var(--brand-white);
  text-decoration-color: var(--brand-white);
}

/* ========================================
   COOKIE BANNER
   ======================================== */
.cookie-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity var(--transition-base);
}

.cookie-banner.hidden {
  opacity: 0;
  pointer-events: none;
}

.cookie-banner__card {
  background: var(--brand-white);
  max-width: 560px;
  width: 90%;
  padding: var(--space-2xl) var(--space-2xl);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
}

.cookie-banner__title {
  font-size: var(--font-size-2xl);
  font-weight: 300;
  color: var(--grey-800);
  margin-bottom: var(--space-lg);
}

.cookie-banner__text {
  font-size: var(--font-size-sm);
  color: var(--grey-600);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.cookie-banner__text ul {
  margin: var(--space-md) 0;
  padding-left: var(--space-xl);
}

.cookie-banner__text ul li {
  list-style: disc;
  margin-bottom: var(--space-xs);
}

.cookie-banner__text a {
  text-decoration: underline;
  color: var(--grey-800);
  font-weight: 500;
}

.cookie-banner__actions {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-xl);
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 12px 24px;
  font-size: var(--font-size-sm);
  font-weight: 400;
  border: 1px solid var(--grey-400);
  background: var(--brand-white);
  color: var(--grey-800);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cookie-btn:hover {
  border-color: var(--grey-800);
  background: var(--grey-100);
}

.cookie-manage {
  display: block;
  margin-top: var(--space-md);
  font-size: var(--font-size-sm);
  color: var(--grey-600);
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
}

.cookie-manage:hover {
  color: var(--grey-800);
}

/* ========================================
   SEARCH OVERLAY 
   ======================================== */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9998;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 120px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.search-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.search-overlay__inner {
  max-width: 600px;
  width: 90%;
}

.search-overlay__input-wrap {
  display: flex;
  border-bottom: 2px solid var(--brand-white);
}

.search-overlay__input {
  flex: 1;
  background: transparent;
  border: none;
  font-size: var(--font-size-2xl);
  color: var(--brand-white);
  font-weight: 300;
  padding: var(--space-md) 0;
  outline: none;
  font-family: inherit;
}

.search-overlay__input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.search-overlay__close {
  position: absolute;
  top: 24px;
  right: 32px;
  color: var(--brand-white);
  font-size: var(--font-size-xl);
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ========================================
   ONLINE BANKING DROPDOWN
   ======================================== */
.banking-dropdown {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9997;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 60px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.banking-dropdown.active {
  opacity: 1;
  pointer-events: auto;
}

.banking-dropdown__card {
  background: var(--brand-white);
  max-width: 500px;
  width: 90%;
  padding: var(--space-2xl);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
}

.banking-dropdown__title {
  font-size: var(--font-size-xl);
  font-weight: 300;
  color: var(--grey-800);
  margin-bottom: var(--space-lg);
}

.banking-dropdown__notice {
  font-size: var(--font-size-sm);
  color: var(--grey-600);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
  padding: var(--space-md);
  background: var(--grey-100);
}

.banking-dropdown__link {
  display: block;
  font-size: var(--font-size-sm);
  color: var(--grey-800);
  text-decoration: underline;
  margin-top: var(--space-md);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
  .header__nav {
    display: none;
  }

  .header__mobile-toggle {
    display: flex;
  }

  .hero {
    height: 400px;
  }

  .hero__title {
    font-size: var(--font-size-2xl);
  }

  .featured-grid {
    grid-template-columns: 1fr;
  }

  .news-tile {
    grid-template-columns: 1fr;
  }

  .news-tile--reverse {
    direction: ltr;
  }

  .feature-cards {
    grid-template-columns: 1fr;
  }

  .careers-cta__content {
    position: relative;
    width: 100%;
  }

  .careers-cta__image {
    height: 300px;
  }

  .share-section__inner {
    flex-direction: column;
    gap: var(--space-xl);
    align-items: flex-start;
  }

  .feedback-bar__inner {
    flex-direction: column;
    gap: var(--space-lg);
    text-align: center;
  }

  .footer__nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-lg);
  }
}

@media (max-width: 640px) {
  :root {
    --space-xl: 1.25rem;
    --space-2xl: 2rem;
    --space-3xl: 2.5rem;
  }

  .hero {
    height: 320px;
  }

  .hero__title {
    font-size: var(--font-size-xl);
  }

  .featured-card__content {
    padding: var(--space-xl);
  }

  .featured-card__title,
  .news-tile__title {
    font-size: var(--font-size-xl);
  }

  .news-tile__content {
    padding: var(--space-xl);
  }

  .careers-cta__content {
    padding: var(--space-xl);
  }

  .cookie-banner__actions {
    flex-direction: column;
  }

  .footer__bottom-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ========================================
   UTILITY / ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Chevron icon for links */
.chevron-right {
  display: inline-block;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 7px solid var(--brand-green);
}

/* ========================================
   GLOBAL MOBILE RESPONSIVENESS HACK
   (Fixing internal pages with inline grid styles)
   ======================================== */
@media (max-width: 900px) {
  /* Force all inline grids to stack */
  [style*="display: grid"] {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }
  
  /* Reset container widths and margins */
  .container--wide {
    padding: 0 20px !important;
  }
  
  /* Reset Hero fonts and heights */
  .hero {
    min-height: 350px !important;
  }
  .hero h1 {
    font-size: 2.2rem !important;
  }
  
  /* Reset internal section padding */
  section[style*="padding: 100px"] {
    padding: 60px 0 !important;
  }
  
  /* Reset colored sections with negative margins */
  [style*="margin: 0 -4rem"], [style*="margin: 0 -1.5rem"] {
    margin: 0 -20px !important;
    padding: 40px 20px !important;
    width: auto !important;
  }

  /* Reset Flex containers where it makes sense */
  .news-tile, .featured-grid, .careers-cta {
    /* These specific ones are handled by their own queries above */
  }

  /* Target generic flex containers that should stack */
  [style*="display: flex"][style*="justify-content: space-between"],
  [style*="display: flex"][style*="gap: 100px"],
  [style*="display: flex"][style*="gap: 80px"] {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 20px !important;
  }
  
  /* Reset image heights */
  [style*="height: 250px"], [style*="height: 450px"] {
    height: 200px !important;
  }

  /* Specific fix for hero banners with absolute text in containers */
  .hero .container--wide {
     padding: 0 20px !important;
  }

  /* Fix for strategy section specifically seen in screenshots */
  [style*="grid-template-columns: repeat(3, 1fr)"] {
     grid-template-columns: 1fr !important;
  }
}