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

/* Make the document a column flex container so footer can stick to bottom */
html, body {
  min-height: 100vh;        /* ensure viewport height is used */
  display: flex;
  flex-direction: column;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #f9fafa;
  color: #222;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

a {
  color: #662d91;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

header.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1em 2em;
  background-color: #f4f0f8;
  color: black;
}

header.site-header .logo {
  height: 42px;
}

nav.nav-links {
  display: flex;
  gap: 1.25em;
  font-weight: 500;
  font-size: 0.95rem;
}

nav.nav-links a {
  color: #08306f;
}

footer.site-footer {
  background-color: #f0f0f0;
  color: #666;
  font-size: 0.85rem;
  padding: 1em 2em;
  text-align: center;
  border-top: 1px solid #ddd;
}

main.page {
    padding: 0;
    max-width: 860px;
    margin: 0 auto;
    background: white;
    box-sizing: border-box; 
    width: 100%;            
  }

/* Let the page/main content grow to take remaining space */
main.page, .page {
  flex: 1 0 auto;           /* grow, don't force shrink; allow content to determine height */
}

/* Ensure footer does not collapse or overlap */
footer.site-footer, .site-footer {
  flex-shrink: 0;           /* keep footer at its natural height */
}

section {
  margin-bottom: 3em;
}

h1, h2, h3 {
  font-family: 'Varela Round', sans-serif;
  font-weight: 500;
  color: #08306f;
  margin-bottom: 0.5em;
}

.modal {
    position: fixed;
    z-index: 9999;
    left: 0; top: 0; right: 0; bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.35);
}

.modal.hidden {
    display: none !important;
}

.modal-box {
    background: #fff;
    padding: 2rem 1.5rem;
    border-radius: 1rem;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 0 16px rgba(0,0,0,0.18);
}

dialog.modal {
  background-color: #fff !important;
  color: #111827; 
  border: none;
  border-radius: 1rem;
  max-width: 480px;
  max-height: 280px;
  width: 90%;
  padding: 1.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

dialog.modal:not([open]) {
  display: none !important;
}

.card {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    border: 2px solid #e5e7eb;
    padding: 1.5rem;
    margin-top: 1.5rem;
    transition: border-color 0.2s;
}
.card:hover {
    border-color: #ff9800; /* or your brand orange */
}

.btn {
  background-color: #08306f;
  color: #ffffff;
  padding: 0.6em 1.2em;
  border-radius: 5px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  margin-top: 1em;
  font-size: 1rem;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.2s ease;
}

.btn:hover {
  background-color: #062657;
}

input, textarea,select {
  width: 95%;
  max-width: 95%;
  padding: 0.75em;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1em;
  margin-top: 0.5em;
  background-color: #f4f0f8;
  color: #333;
  appearance: none; /* Remove default OS styling */
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg width='16' height='16' fill='%23662d91' viewBox='0 0 16 16'%3E%3Cpath d='M4.646 6.354a.5.5 0 0 1 .708 0L8 9l2.646-2.646a.5.5 0 0 1 .708.708l-3 3a.5.5 0 0 1-.708 0l-3-3a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75em center;
  background-size: 1em;
  padding-right: 2em; /* space for the icon */
}

input:focus, textarea:focus {
  outline: none;
  border-color: #662d91;
}

@media (max-width: 768px) {
  header.site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  nav.nav-links {
    flex-direction: column;
    width: 100%;
  }
}

.logo-full {
    display: block;
    height: 42px;
  }
  
  .logo-icon {
    display: none;
    height: 36px;
  }
  
  @media (max-width: 520px) {
    .logo-full {
      display: none;
    }
    .logo-icon {
      display: inline-block;
    }
  }

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

  .lang-toggle a {
    color: #08306f;
    font-weight: 500;
  }
  
  .lang-toggle a:hover {
    text-decoration: underline;
    color: #216588; /* darker shade for hover */
  }

  blockquote {
    background-color: #f4f0f8;
    padding: 1.5em 1.5em 1em;
    border-left: 5px solid #662d91;
    border-radius: 8px;
    margin: 2em 0;
    font-style: italic;
    font-size: 1.1em;
    position: relative;
  }

  blockquote p {
    margin: 0;
    line-height: 1.6;
  }
  
  blockquote footer {
    text-align: right;
    font-size: 0.9em;
    margin-top: 1em;
    color: #555;
  }

  /* ✅ Hamburger menu toggle button */
#hamburger-toggle {
  display: none;
  font-size: 1.8em;
  background: none;
  border: none;
  color: #08306f;
  cursor: pointer;
  margin-right: 1em;
}

/* ✅ Active nav link highlight */
.nav-links a.active {
  font-weight: bold;
  text-decoration: underline;
}

/* ✅ Responsive nav menu behavior */
@media (max-width: 768px) {
  nav.nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0.75em;
    margin-top: 1em;
  }

  nav.nav-links.visible {
    display: flex;
  }

  #hamburger-toggle {
    display: block;
  }

  header.site-header {
    align-items: flex-start;
  }
}

/* === Google Sign-In Button === */
.gsi-material-button {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  background-color: #fff;
  border: 1px solid #747775;
  border-radius: 20px;
  box-sizing: border-box;
  color: #1f1f1f;
  cursor: pointer;
  font-family: 'Roboto', arial, sans-serif;
  font-size: 14px;
  height: 40px;
  letter-spacing: 0.25px;
  outline: none;
  overflow: hidden;
  padding: 0 12px;
  text-align: center;
  transition: background-color .218s, border-color .218s, box-shadow .218s;
  vertical-align: middle;
  white-space: nowrap;
  max-width: 400px;
}
.gsi-material-button .gsi-material-button-icon {
  height: 20px;
  margin-right: 12px;
  min-width: 20px;
  width: 20px;
}
.gsi-material-button .gsi-material-button-content-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}
.gsi-material-button .gsi-material-button-contents {
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gsi-material-button:disabled {
  cursor: default;
  background-color: #ffffff61;
  border-color: #1f1f1f1f;
}
.gsi-material-button:not(:disabled):hover {
  box-shadow: 0 1px 2px rgba(60,64,67,.30), 0 1px 3px 1px rgba(60,64,67,.15);
}
.gsi-material-button:not(:disabled):active .gsi-material-button-state,
.gsi-material-button:not(:disabled):focus .gsi-material-button-state {
  background-color: #303030;
  opacity: 12%;
}

/* Optional: differentiate variants */
.gsi-material-button.rounded {
  border-radius: 20px;
}

.gsi-material-button.square {
  border-radius: 4px;
}

/*=== Outlook button features ===*/

.gsi-material-button,
.gsi-material-button.rounded {
  border-radius: 8px !important;   /* small rounded corners, not pill */
  padding: 0.45rem 0.9rem;         /* slightly less horizontal padding */
  height: 40px;                   /* keep consistent vertical size */
  line-height: 1;                 /* avoid vertical text misalignment */
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 120px;
  box-sizing: border-box;
}
.gsi-material-button .gsi-material-button-icon { 
  width: 20px; height: 20px; 
  flex: 0 0 20px;
}
.gsi-material-button .gsi-material-button-contents {
  white-space: nowrap;
  font-weight: 300;
}