@import url("https://fonts.googleapis.com/css2?family=Noto+Serif:ital,wght@0,400;0,700;1,400;1,700&display=swap");

/* Root variables matching the live site */
:root {
  --blue: #254a90;
  --red: #E00909;
  --primary: #375ead;
  --secondary: #1d3166;
  --blue-dark: #1d3166;
  --blue-light: #375ead;
  --danger: #E00909;
  --tertiary: #E00909;
  --light: #f8f9fa;
  --dark: #343a40;
}

/* Base */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #212529;
  background-color: #f8f9fa;
  margin: 0;
}

/* Links */
a {
  color: #0056b3;
  text-decoration: none;
  transition: all 0.3s ease-in-out 0s;
}

a:after {
  transition: all 0.3s ease-in-out 0s;
}

a:hover, a:active, a:focus {
  color: #003d82;
  text-decoration: underline;
}

/* Header */
header {
  background-color: #375ead;
}

header .navbar-brand {
  padding: 1rem 0;
  margin-left: 1rem;
  font-family: "Noto Serif", serif;
}

header a.site-title {
  color: #f8f9fa !important;
  font-size: 1.75rem !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  text-decoration: none;
}

@media (max-width: 1200px) {
  header a.site-title {
    font-size: calc(1.3rem + 0.6vw) !important;
  }
}

.site-logo img {
  max-height: 60px;
  margin-right: 1rem;
}

/* Navigation */
header nav {
  color: #212529;
  background-color: #E00909;
  padding: 0.25rem 1rem 0.5rem !important;
}

header nav.navbar {
  border-top: 3px solid #1d3166;
}

header .navbar-nav {
  margin: 0.5rem 1rem !important;
}

.navbar-nav .nav-link {
  padding: 0.5rem 0.75rem;
}

header nav a, header nav a:visited {
  color: #ced4da;
  border-bottom: none;
}

header nav a::after, header nav a:visited::after {
  display: block;
  content: "";
  height: 3px;
  width: 100%;
  background-color: transparent;
  transition: background-color 0.2s;
}

header nav a.is-active {
  color: white;
  font-weight: 700;
}

header nav a.is-active::after {
  background-color: white;
}

header nav a:hover, header nav a:focus {
  color: white;
}

header nav a:hover::after, header nav a:focus::after {
  background-color: rgba(255,255,255,0.5);
}

header nav a:active {
  color: white;
}

header nav a:active::after {
  background-color: white;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.5%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Main content */
main {
  padding-bottom: 2rem;
}

/* Page title */
.page-title, h1 {
  text-transform: capitalize;
  text-align: center;
  color: #375ead;
  margin-bottom: 1.5rem;
  padding: 1rem 0;
  font-size: 3.5rem;
  font-weight: 300;
}

.page-title:after, h1::after {
  background-color: #E00909;
  height: 5px;
  width: 100px;
  display: block;
  content: "";
  margin: 8px auto;
}

#block-pagetitle {
  margin-bottom: 0 !important;
  padding: 0 !important;
}

main #block-pagetitle {
  text-align: center;
  margin-bottom: 1.5rem;
  padding: 1rem 0;
  color: #375ead;
}

h3 {
  color: #E00909;
}

main p {
  margin-bottom: 0;
}

main .region-content-footer p, main .bs_grid p {
  margin-bottom: 1rem;
}

main .field--name-field-hero-image {
  margin: 0 auto 2rem;
}

main .field--name-field-hero-image img {
  width: 100%;
}

/* Icon columns (About page) */
main .icon-col {
  align-self: center;
  text-align: center;
  color: #375ead;
}

main .text-col h2 {
  color: #375ead;
}

.bs_grid {
  margin-bottom: 0;
}

main .bs_grid p {
  margin-bottom: 1rem;
}

/* About page section separators */
main .bs_grid .row {
  border-bottom: 2px solid #1d3166;
  margin-bottom: 0.75rem;
}

main .bs_grid:last-child .row {
  border-bottom: none;
}

/* Education page - remove borders inside blue background */
main.education-page .bs_grid .row {
  border-bottom: none;
}

/* Patient Education page - blue background with white cards */
.page-node-13 main, main.education-page {
  background-color: #375ead;
}

.page-node-13 main h1, main.education-page h1 {
  color: white;
}

.bg-white {
  background-color: white;
  padding: 1rem;
}

/* Custom bullet styling */
.noa-bullets {
  list-style: none !important;
  margin-left: 0 !important;
  padding-left: 1.5em !important;
}

.noa-bullets li {
  position: relative !important;
  margin-bottom: 0.5rem !important;
  padding-left: 0 !important;
}

.noa-bullets li::before {
  content: "\f35a" !important;
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 400 !important;
  color: #375ead !important;
  font-size: 1em !important;
  position: absolute !important;
  left: -1.5em !important;
  top: 0.05em !important;
}

/* 2-column page layout */
.twocol-section {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.twocol-section .twocol-first {
  flex: 0 0 50%;
  max-width: 50%;
}

.twocol-section .twocol-first img,
.twocol-section .twocol-first picture {
  max-width: 100%;
  height: auto;
}

.twocol-section .twocol-second {
  flex: 0 0 50%;
  max-width: 50%;
}

.twocol-section .twocol-second iframe {
  max-width: 100%;
}

/* Dialysis clinic cards */
.views-row {
  padding: 1rem;
}

.views-field-title {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.views-field-body {
  margin-bottom: 0.25rem;
}

.views-field-field-phone {
  font-size: 0.95rem;
}

.views-label {
  font-weight: 600;
}

/* File download links */
.file {
  display: inline-block;
  min-height: 16px;
  padding-left: 20px;
  background-repeat: no-repeat;
  background-position: left center;
}

.file--application-pdf {
  background-image: url(/img/application-pdf.png);
}

.file-link a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.file-link i {
  color: #E00909;
  font-size: 1.2em;
}

/* Contact page spacing */
.twocol-first .row p {
  margin-bottom: 0.75rem;
}

/* Home page spacing */
.row.no-gutters picture {
  margin-bottom: 1rem;
}

/* About page spacing */
.about-intro {
  margin-bottom: 1.5rem;
}

/* Content footer cards */
main .region-content-footer {
  display: flex;
  flex-direction: row;
  margin-top: 2rem;
}

.about-block, .providers-block, .staff-block {
  background-color: #254a90;
  color: white;
  padding: 1rem;
}

.about-block .fontawesome-icon-inline, .providers-block .fontawesome-icon-inline, .staff-block .fontawesome-icon-inline {
  font-size: 2.5rem;
}

.about-block h4, .providers-block h4, .staff-block h4 {
  text-transform: uppercase;
  font-weight: 200;
  color: white;
}

.about-block .btn, .providers-block .btn, .staff-block .btn {
  background-color: #E00909;
  color: white;
  border-color: #E00909;
}

.about-block .btn:hover, .providers-block .btn:hover, .staff-block .btn:hover {
  background-color: #c00808;
  border-color: #c00808;
}

.about-block {
  border-left: 4px solid #1d3166;
  border-right: 4px solid #1d3166;
}

.providers-block, .staff-block {
  background-color: #375ead;
}

/* Staff/provider media */
.media {
  margin-bottom: 1.5rem;
}

.media img {
  border-radius: 0.375rem;
}

/* Provider & physician extender cards */
.provider-card {
  display: flex;
}

.provider-photo {
  flex-shrink: 0;
  width: 248px;
}

.provider-photo img, .provider-photo picture {
  width: 100%;
  height: auto;
}

.provider-photo h5 {
  text-align: center;
  margin-top: 0.5rem;
}

.provider-bio {
  flex: 1;
  padding: 1rem;
}

/* Staff photos - uniform size */
.staff-photo {
  height: 350px;
  width: 100%;
  object-fit: cover;
  object-position: top;
}

/* Constrain all pictures */
picture {
  display: block;
  max-width: 100%;
}

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

main .node--type-doctor-bio .field--name-title,
main .node--type-physician-extender .field--name-title,
main .node--type-staff-member .field--name-title {
  font-weight: bold;
}

main .node--type-doctor-bio .node__content .field__label,
main .node--type-doctor-bio .node__content .field__item,
main .node--type-physician-extender .node__content .field__label,
main .node--type-physician-extender .node__content .field__item,
main .node--type-staff-member .node__content .field__label,
main .node--type-staff-member .node__content .field__item {
  padding-bottom: 1rem;
}

/* Footer */
footer {
  background-color: #E00909;
  color: #f8f9fa;
  padding: 1rem 0;
}

footer .region-footer {
  flex-direction: row;
}

footer p {
  margin-bottom: 0;
}

footer a {
  color: #f8f9fa;
  text-decoration: none;
}

footer a:hover {
  color: #f8f9fa;
}

/* Copy/credit bar */
.copy-credit {
  background-color: #375ead;
  color: #f8f9fa;
  border-top: 2px solid #1d3166;
}

.copy-credit p {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.75rem;
}

.copy-credit a, .copy-credit a:visited {
  color: #f85757;
  border-bottom-color: transparent;
}

.copy-credit a:active, .copy-credit a.is-active, .copy-credit a:hover, .copy-credit a:focus {
  color: #fa8888;
  border-bottom: 1px solid #fa8888;
}

/* Region content padding */
.region-content {
  padding: 0 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  header .navbar-brand {
    padding: 1rem;
  }

  header a.site-title {
    font-size: calc(1.3rem + 0.6vw) !important;
  }

  main .region-content-footer {
    flex-direction: column;
  }
}
