/* ============================================================
   GLOBAL TOKENS
   Change brand colour here — it cascades everywhere.
============================================================= */
:root {
  --navy:       #0f2044;
  --blue:       #1a56db;
  --blue-dark:  #1e40af;
  --blue-light: #eff6ff;
  --font:       'Inter', system-ui, -apple-system, sans-serif;
}
.insurer-card:hover {
    box-shadow: 0px 0px 20px rgb(126 117 117 / 36%) !important;
}
body {
  font-family: var(--font);
}
.py-5 {
    padding-top: 1rem !important;
    padding-bottom: 1rem!important;
}
form button {
    font-size: 20px !important;
}
.img-fit-container{
  width: 100% !important;
}
.img-fit-p-container{

  width: 60% !important;
}
div#google_translate_element {
    margin-left: 4px;
    padding: 0 5px;
    height: 27px;
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #ced4da;
    border-radius: .375rem;
    box-shadow: inset 0 1px 2px rgba(0,0,0,.075);
}
.goog-te-gadget-simple {
    background-color: #FFF;
    border: none !important; 
    font-size: 10pt;
    display: inline-block;
    padding-top: 1px;
    padding-bottom: 2px;
    cursor: pointer;
}
#goog-gt-tt,
.goog-tooltip,
.goog-text-highlight {
    display: none !important;
}

body {
    position: static !important;
}
/* ============================================================
   UTILITY CLASSES  (extend Bootstrap)
============================================================= */
.fw-500  { font-weight: 500 !important; }
.fw-600  { font-weight: 600 !important; }
.fw-700  { font-weight: 700 !important; }
.fw-800  { font-weight: 800 !important; }
.text-navy { color: var(--navy) !important; }

/* Navbar brand logo sizing */
.navbar-brand svg {
  width: 48px !important;
  height: 48px !important;
}
.navbar-brand .fw-800 {
  font-size: 1.4rem !important;
}
.logo-tagline {
  font-size: 11px !important;
  font-weight: 700 !important;
  margin-top: 4px !important;
}

/* Footer logo sizing */
.site-footer a svg {
  width: 46px !important;
  height: 46px !important;
}
.site-footer a .fw-800 {
  font-size: 1.3rem !important;
}

/* Tagline under the logo text */
.logo-tagline {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--blue) !important;
  margin-top: 4px;
}


/* ============================================================
   NAVIGATION
============================================================= */
/* Navbar background */
.navbar {
  background: linear-gradient(135deg, #e8f0fe 0%, #dbeafe 60%, #eff6ff 100%) !important;
}

.navbar-nav .nav-link {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    padding: 5px 3px;
    border-radius: 6px;
    transition: color 0.18s, background 0.18s;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--blue);
  background: var(--blue-light);
}
.navbar-nav .nav-link.active {
  font-weight: 600;
}

/* Dropdown menu */
.dropdown-menu {
  border-radius: 10px;
  padding: 6px;
  min-width: 200px;
}
.dropdown-item {
  border-radius: 6px;
  font-size: 14px;
  padding: 9px 14px;
  color: #374151;
}
.dropdown-item:hover {
  background: var(--blue-light);
  color: var(--blue);
}


/* ============================================================
   HERO SECTION
============================================================= */
.hero-section {
  background: linear-gradient(135deg, #f0f6ff 0%, #e8f1ff 60%, #fff 100%);
  position: relative;
  overflow: hidden;
}

/* Card that holds the visa selector form */
.hero-card {
  border-radius: 14px !important;
}

/* Extra bottom padding makes room for the cards that float up over the hero */
.hero-section {
  padding-bottom: 100px;
}

/* Hero image column — sits inside the section flow */
.hero-img-col {
  position: relative;
}

/* Image is absolutely positioned to fill the full section height,
   ignoring the left column content height and bottom padding */
.hero-img-abs {
  position: absolute;
  top: 0;
  left: 12px;   /* matches Bootstrap column gutter (12px = half of 24px gutter) */
  right: 0;
  bottom: 0;
  width: calc(100% - 12px);
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 16px;
}


/* ============================================================
   VISA TYPE CARDS
   Negative margin-top pulls the cards up over the hero bottom,
   matching the floating-card effect in the sample design.
============================================================= */
.visa-cards-section {
  margin-top: -80px;
  position: relative;
  z-index: 10;
  padding: 0 0 48px;
}
.visa-card {
  border-radius: 12px !important;
  background: #fff !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10) !important;
  transition: box-shadow 0.2s, transform 0.2s;
  cursor: pointer;
}
.visa-card:hover {
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.16) !important;
  transform: translateY(-4px);
}

/* Circular icon background */
.icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* "Compare Plans →" link style */
.card-link {
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: gap 0.2s;
}
.card-link:hover {
  color: var(--blue-dark);
  gap: 9px;
}


/* ============================================================
   WHAT IS 8501 — SHIELD GRAPHIC
============================================================= */
.shield-wrap {
  width: 240px;
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Small icon pills floating around the shield */
.float-icon {
  position: absolute;
  width: 52px;
  height: 52px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Push bottom icons up from the true bottom of the wrapper */
.float-icon.bottom-shield {
  bottom: 28px !important;
}

html,
body {
    overflow-x: hidden;
    max-width: 100%;
}
/* ============================================================
   HOW IT WORKS
============================================================= */
.step-icon-wrap {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-card {
  transition: transform 0.2s;
}
.step-card:hover {
  transform: translateY(-4px);
}


/* ============================================================
   INSURER LOGOS
============================================================= */
.insurer-card {
  min-height: 105px;
  transition: box-shadow 0.2s;
}
.insurer-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
}

/* Actual logo image */
.insurer-img {
  height: 36px;
  object-fit: contain;
}

/* Text fallback shown when logo file is missing */
.insurer-name-fallback        { font-size: 15px; }
.insurer-name-fallback.allianz  { color: #003781; }
.insurer-name-fallback.medibank { color: #c8102e; font-size: 13px; }
.insurer-name-fallback.nib      { color: #00b140; font-size: 18px; }
.insurer-name-fallback.bupa     { color: #0096d6; font-size: 18px; }
.insurer-name-fallback.hcf      { color: #e31837; font-size: 22px; }

/* Dashed border for the "and more..." tile */
.border-dashed { border-style: dashed !important; }


/* ============================================================
   WHY CHOOSE US
============================================================= */
.feature-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-item {
  transition: transform 0.2s;
}
.feature-item:hover {
  transform: translateY(-3px);
}


/* ============================================================
   GUIDE / BLOG CARDS
============================================================= */
.guide-card {
  border-radius: 12px !important;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.guide-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12) !important;
  transform: translateY(-4px);
}

/* Fixed-height image wrapper so all cards align */
.guide-img-wrap {
    height: 130px;
    display: block;
    width: 100% !important;
}
.guide-img-wrap img,
.guide-img-wrap .card-img-top {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  object-position: center center;
  border-radius: 0 !important;
  transition: transform 0.4s;
}
.guide-card:hover .guide-img-wrap img {
  transform: scale(1.05);
}


/* ============================================================
   CALL TO ACTION BANNER
============================================================= */
.cta-section {
  background: var(--navy);
}


/* ============================================================
   FOOTER
============================================================= */
.site-footer {
  background: var(--navy);
}

/* Section headings inside footer columns */
.footer-heading {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

/* Footer nav links */
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color 0.18s;
  word-break: break-all;
}
.footer-links a:hover {
  color: #fff;
}

/* Social icon buttons — bright white so they're clearly visible */
.social-btn {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;               /* solid white — easy to see */
  font-size: 17px;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}
.social-btn:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

/* Contact icons in footer */
.footer-links .bi {
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  flex-shrink: 0;
}

/* Thin separator above copyright line */
.footer-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}


/* ============================================================
   RESPONSIVE OVERRIDES
============================================================= */

/* On small screens the hero has no image so the negative margin
   would leave a gap — reset it to a simple top-padding instead */
@media (max-width: 991px) {
  .hero-section {
    padding-bottom: 48px;
  }
  .visa-cards-section {
    margin-top: 0;
    padding-top: 48px;
    background: #fff !important;
  }
}


/* ============================================================
   MOBILE NAVBAR: HAMBURGER → CROSS ICON
   The toggler animates from three bars to an X when the nav opens.
   JS adds/removes .nav-open on the button to trigger the change.
============================================================= */

/* Hide Bootstrap's default SVG icon — we draw our own */
.navbar-toggler .navbar-toggler-icon {
  display: none;
}

/* Size and center the button */
.navbar-toggler {
  width: 36px;
  height: 36px;
  padding: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none !important;
  box-shadow: none !important;
}
.navbar-toggler:focus,
.navbar-toggler:active {
  outline: none !important;
  box-shadow: none !important;
  border-color: transparent !important;
}

/* Top and bottom bars (drawn with pseudo-elements) */
.navbar-toggler::before,
.navbar-toggler::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 2px;
  background: #374151;
  border-radius: 2px;
  transition: transform 0.3s ease, top 0.3s ease, bottom 0.3s ease;
}

.navbar-toggler::before { top: 10px; }
.navbar-toggler::after  { bottom: 10px; }

/* Middle bar (added via JS as a <span class="bar-middle">) */
.navbar-toggler .bar-middle {
  position: absolute;
  width: 22px;
  height: 2px;
  background: #374151;
  border-radius: 2px;
  transition: opacity 0.2s ease;
}

/* When nav is open: rotate top + bottom bars into an X */
.navbar-toggler.nav-open::before {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}
.navbar-toggler.nav-open::after {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}
.navbar-toggler.nav-open .bar-middle {
  opacity: 0;
}


/* ============================================================
   SCROLL-IN ANIMATIONS
   Cards fade up when they enter the viewport (driven by main.js)
============================================================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

.anim {
  opacity: 0;
}
.anim.visible {
  animation: fadeUp 0.5s ease forwards;
}


/* ============================================================
   SECTION HEADING REVEAL ANIMATIONS
   Section headings and hero text slide up as they scroll into view.
   JS adds .reveal to targeted elements and .reveal-visible when visible.
============================================================= */
@keyframes revealUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
}
.reveal.reveal-visible {
  animation: revealUp 0.55s ease forwards;
}
