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

/* Define Variables */
:root {
  --background-color: #ffffff; /* White background */
  --text-color: #000000; /* Black text */
  --secondary-text-color: #555555; /* Gray for subtitles/copyright */
  --border-color: #e0e0e0; /* Slightly darker gray for borders */
  --divider-color: #cccccc; /* Color for the vertical divider */
  --divider-color-dark: #241e1e; /* Color for the vertical divider */
  --accent-color: #000000; /* Black for buttons/accents */
  --tagline-bg-color: rgba(248, 248, 248, 0.95);
  --tagline-border-color: #eeeeee; /* Light border for tagline */
  --logo-border-color: #cccccc;

  /* Updated Font Variables */
  --font-mondwest: "PP Mondwest", sans-serif;
  --font-neuebit: "PP NeueBit", monospace;
  --font-atlas: "Atlas Typewriter LC Trial", monospace;

  /* Fonts - Assuming standard monospace and sans-serif based on typical design */
  --font-primary: "Courier New", Courier, monospace; /* For logo, tagline, pixel letters, button */
  --font-secondary: Arial, Helvetica, sans-serif; /* For body text, subtitles */

  /* Spacing */
  --section-padding-y: 50px;
  --container-max-width: 1200px;
  --header-padding-y: 14px;
  --footer-padding-y: 24px;
}

body {
  font-family: var(--font-secondary);
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-size: 16px;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  position: relative;
}

/* Remove default max-width/padding from header/main/footer directly */
header,
main,
footer {
  width: 100%;
  margin: 0 auto;
}

main {
  flex-grow: 1; /* Allow main content to fill available space */
}

section {
  padding: var(--section-padding-y) 0; /* Consistent vertical padding */
}

/* Utility class for container */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding-left: 15px;
  padding-right: 15px;
  box-sizing: border-box;
}

/* Basic link styling */
a {
  color: var(--accent-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Basic button styling */
button,
.button {
  background-color: var(--accent-color);
  color: var(--background-color);
  padding: 12px 28px;
  border: none;
  cursor: pointer;
  font-family: var(--font-primary);
  font-size: 0.9rem;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  letter-spacing: 1px;
  transition: opacity 0.2s ease-in-out;
  line-height: 1;
}

button:hover,
.button:hover {
  opacity: 0.85;
  text-decoration: none;
}

/* Hide elements visually but keep accessible */
.sr-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;
}

/* --- Header Styles --- */
.site-header {
  padding-top: var(--header-padding-y);
  padding-bottom: calc(var(--header-padding-y) / 2); /* Less padding below */
}

.site-header .container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.logo-container {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  transition: all 0.3s ease;
  flex: 1;
}

.logo-container::before,
.logo-container::after,
.logo-container .corner-wrapper::before,
.logo-container .corner-wrapper::after {
  content: "";
  position: absolute;
  width: 15px;
  height: 15px;
  border-color: transparent;
  border-style: solid;
  border-width: 2px;
  transition: all 0.3s ease;
  opacity: 0;
}

/* Top left corner */
.logo-container::before {
  top: 0;
  left: 0;
  border-top-color: var(--logo-border-color);
  border-left-color: var(--logo-border-color);
}

/* Top right corner */
.logo-container::after {
  top: 0;
  right: 0;
  border-top-color: var(--logo-border-color);
  border-right-color: var(--logo-border-color);
}

/* Bottom left corner */
.logo-container .corner-wrapper::before {
  bottom: 0;
  left: 0;
  border-bottom-color: var(--logo-border-color);
  border-left-color: var(--logo-border-color);
}

/* Bottom right corner */
.logo-container .corner-wrapper::after {
  bottom: 0;
  right: 0;
  border-bottom-color: var(--logo-border-color);
  border-right-color: var(--logo-border-color);
}

.logo-container:hover {
  background-color: #f9f7f7;
}

.logo-container:hover .institution-logo {
  filter: grayscale(0%);
  opacity: 1;
}

.logo-container:hover::before,
.logo-container:hover::after,
.logo-container:hover .corner-wrapper::before,
.logo-container:hover .corner-wrapper::after {
  opacity: 1;
}

.corner-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.header-text {
  font-family: var(--font-mondwest);
  font-size: 1.6rem;
  line-height: 1;
  text-align: center;
  color: var(--text-color);
  font-weight: 400;
  letter-spacing: 0.01em;
  margin: 0;
  display: block;
}

.header-text-large {
  font-family: var(--font-neuebit);
  font-size: 2.1rem;
  line-height: 1;
  text-align: center;
  color: var(--text-color);
  font-weight: 700;
  letter-spacing: 0.01em;
  margin: 0;
  display: block;
}

.logo-text {
  font-family: var(--font-primary);
  font-size: 2.5rem;
  line-height: 1.2;
  text-align: center;
  color: var(--text-color);
  font-weight: 400;
  letter-spacing: 0.01em;
}

/* --- Hero Section Styles --- */
#hero {
  text-align: center;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding-top: 20px;
  padding-bottom: var(--section-padding-y);
  position: relative;
  overflow: visible;
  margin-left: 25px;
  margin-right: 25px;
}

.border-left {
  position: absolute;
  left: -20px;
  top: -80px;
  height: calc(100% + 120px);
  width: auto;
  object-fit: contain;
  margin-left: 20px;
}

.border-bottom {
  position: absolute;
  right: -20px;
  top: -80px;
  height: calc(100% + 120px);
  width: auto;
  object-fit: contain;
  margin-right: 20px;
}

/* Remove the previous pseudo-element styles */
#hero::before,
#hero::after {
  display: none;
}

.tagline-container {
  display: inline-block;
  margin: 30px 0;
  position: relative;
  padding: 12px 40px 12px 45px;
  background-color: var(--tagline-bg-color);
  border: 1px solid var(--tagline-border-color);
  border-radius: 3px;
}

.tagline-container::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 65%;
  background-color: var(--text-color);
}

.tagline {
  font-family: var(--font-atlas);
  font-size: 1.5rem;
  color: var(--text-color);
  display: inline-block;
  margin: 0;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.chart-container {
  display: flex;
  justify-content: center;
  align-items: stretch;
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  gap: 30px;
  position: relative;
}

.ruler-vertical {
  display: block;
}

.ruler-horizontal {
  display: none;
}

.ruler-vertical img,
.ruler-horizontal img {
  max-width: 100%;
  height: auto;
}

.chart-column {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0; /* Allow flex items to shrink below content size */
}

.chart-divider {
  min-width: 20px;
  width: 20px;
  background: linear-gradient(
    to bottom,
    var(--divider-color),
    var(--divider-color-dark)
  );
  margin: 0;
  align-self: stretch;
}

.chart-ruler {
  position: relative;
  min-width: 24px;
  width: 24px;
  height: 402px;
  background-image: url("../images/chart/ruler-vtc.png");
  background-size: cover;
  background-repeat: no-repeat;
  margin: 0;
  align-self: stretch;
}

.ruler-indicator {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-right: 14px solid #000;
  cursor: pointer;
}

@media (max-width: 960px) {
  .chart-ruler {
    width: calc(100% - 40px); /* Account for margins */
    height: 15px;
    margin: 0 20px;
    background-image: url("../images/chart/ruler-hrz.png");
    background-size: 100% 100%;
    background-position: center;
    position: relative;
    background-repeat: no-repeat;
  }

  .ruler-indicator {
    position: absolute;
    width: 0;
    height: 0;
    /* Position marker right on the ruler */
    top: 0;
    bottom: auto;
    left: 50%;
    transform: translateX(-50%); /* Center horizontally */
    margin: 0;
    padding: 0;
    cursor: pointer;
    z-index: 5;

    /* Upward-pointing triangle sitting ON the ruler */
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 14px solid #000; /* Use bottom border for upward triangle */
    border-top: none;
  }

  .border-left,
  .border-bottom {
    display: none;
  }

  #hero {
    border-top: none;
    border-bottom: none;
  }

  .vertical-line {
    display: none;
  }

  /* Adjust breakpoint for tablets */
  :root {
    --section-padding-y: 50px;
  }
  .logo-text {
    font-size: 1.8rem;
  }
  .tagline {
    font-size: 1.1rem;
  }
  .section-title {
    font-size: 2rem;
  }
  .section-subtitle {
    font-size: 1rem;
  }
  .pixel-letter {
    font-size: 4rem;
  }
  .chart-container {
    flex-direction: column;
    gap: 30px;
  }
  .chart-divider {
    width: auto;
    height: 15px;
    margin: 0 20px;
    background: linear-gradient(
      to right,
      var(--divider-color-dark),
      var(--divider-color)
    );
  }

  .plotly-chart {
    min-height: 350px;
  }
  .grid-item,
  .contact-item {
    height: 180px;
    padding: 45px 25px;
  }

  .vertical-line {
    display: none;
  }
}

.plotly-chart {
  width: 100%;
  min-height: 460px;
  min-width: 0; /* Allow chart to shrink */
}

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

/* --- Team Section Styles --- */
#team {
  padding: 70px;
}

#team .section-title {
  font-family: var(--font-atlas);
  font-size: 2.2rem;
  text-align: left;
  color: var(--text-color);
  font-weight: bold;
  letter-spacing: 0.02em;
}

#team .section-title-2 {
  font-family: var(--font-atlas);
  font-size: 1.5rem;
  text-align: left;
  color: var(--text-color);
  font-weight: 700;
  letter-spacing: 0.02em;
}

#team .section-subtitle {
  font-family: var(--font-atlas);
  font-size: 1rem;
  color: var(--secondary-text-color);
  margin-bottom: 50px;
  text-align: left;
  font-weight: 400;
}

.logos-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  overflow: hidden;
}

.logo-row {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: clamp(15px, 2vw, 30px);
  width: 100%;
  flex-wrap: nowrap;
}

.institution-logo {
  width: 100%;
  height: auto;
  max-height: 45px;
  object-fit: contain;
  opacity: 0.9;
  filter: grayscale(100%);
  transition: all 0.3s ease;
  display: block;
}

.thanks-grid {
  width: 100%;
  overflow: hidden;
}

.labs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border-color);
  width: 100%;
  margin: 0;
  position: relative;
}

.grid-item {
  border-right: 1px solid var(--border-color);
  text-align: center;
  padding: auto;
  position: relative;
  height: 240px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.grid-item:last-child {
  border-right: none;
}

/* First cell - left side dots */
.grid-item:first-child::before,
.grid-item:first-child::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  background-color: var(--text-color);
  left: 32px;
  display: block;
}

.grid-item:first-child::before {
  top: 32px;
}

.grid-item:first-child::after {
  bottom: 32px;
}

/* Last cell - right side dots */
.grid-item:last-child::before,
.grid-item:last-child::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  background-color: var(--text-color);
  right: 32px;
  display: block;
}

.grid-item:last-child::before {
  top: 32px;
}

.grid-item:last-child::after {
  bottom: 32px;
}

.pixel-letter {
  font-family: var(--font-neuebit);
  font-size: 12.5rem;
  font-weight: 700;
  color: var(--text-color);
  line-height: 1;
  letter-spacing: -0.05em;
  image-rendering: pixelated;
  -webkit-font-smoothing: none;
  -moz-osx-font-smoothing: none;
}

.copyright {
  text-align: center;
  font-size: 0.9rem;
  color: var(--secondary-text-color);
  font-family: var(--font-atlas);
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

.copyright-text {
  display: inline-block;
}

.copyright-text:first-child {
  order: 2;
}

.copyright-text:last-child {
  order: 1;
}

.copyright-divider {
  display: inline-block;
  order: 1.5;
}

.desktop-only {
  display: inline-block;
}

.footer {
  padding-top: var(--footer-padding-y);
  padding-bottom: var(--footer-padding-y);
}
/* --- Responsive Design (Focus on Desktop - minor adjustments) --- */
/* Keep existing media query structure but ensure desktop styles are primary */

@media (max-width: 960px) {
  /* Adjust breakpoint for tablets */
  :root {
    --section-padding-y: 50px;
  }
  .logo-text {
    font-size: 1.8rem;
  }
  .tagline {
    font-size: 1.1rem;
  }
  .section-title {
    font-size: 2rem;
  }
  .section-subtitle {
    font-size: 1rem;
  }
  /* .contact-content {
    gap: 40px;
  }
  .contact-logo .logo-text {
    font-size: 3rem;
  } */
  .pixel-letter {
    font-size: 4rem;
  }
  .chart-container {
    flex-direction: column;
    gap: 30px;
  }
  .chart-divider {
    width: auto;
    height: 15px;
    margin: 0 20px;
    background: linear-gradient(
      to right,
      var(--divider-color-dark),
      var(--divider-color)
    );
  }

  .plotly-chart {
    min-height: 350px;
  }
  .grid-item,
  .contact-item {
    height: 180px;
    padding: 45px 25px;
  }
}
/* Utility classes */
.mobile-only {
  display: none;
}

@media (max-width: 768px) {
  /* Mobile styles */
  :root {
    --section-padding-y: 40px;
    --header-padding-y: 30px;
    --footer-padding-y: 30px;
  }

  body {
    font-size: 15px;
  }
  .container {
    width: 95%;
  }

  #hero {
    margin-left: 20px;
    margin-right: 20px;
  }

  .logo-text {
    font-size: 1.6rem;
  }
  .tagline-container {
    padding: 8px 15px 8px 25px;
    margin-bottom: 40px;
  }
  .mobile-only {
    display: inline;
  }
  .tagline-container::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 7px;
    height: 65%;
    background-color: var(--text-color);
  }

  .tagline {
    font-size: 0.9rem;
  }

  .chart-container {
    flex-direction: column;
    gap: 2rem;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    padding: 0;
    margin: 0;
  }

  .chart-column {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
  }

  .plotly-chart {
    width: 100%;
    min-height: 300px;
    padding: 0;
    margin: 0;
  }

  /* Ensure Plotly container doesn't overflow */
  .js-plotly-plot {
    width: 100% !important;
    max-width: 100% !important;
  }

  .js-plotly-plot .plot-container {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Fix ruler in mobile view */
  .chart-ruler {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
  }

  .section-title {
    font-size: 1.125rem;
  }

  #team {
    padding: 0;
  }

  #team .section-subtitle {
    font-size: 0.75rem;
    line-height: 1.4;
    margin-bottom: 30px;
  }

  .logo-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    width: 100%;
  }

  .logos-container {
    margin-bottom: 10px;
    padding: 0 20px;
  }

  .logo-container {
    flex: none;
    width: 100%;
    padding: 8px;
    display: flex;
    justify-content: flex-start;
  }

  .institution-logo {
    max-height: 45px;
    width: auto;
    max-width: 100%;
    opacity: 1;
    filter: none;
  }

  .logo-container:last-child {
    grid-column: 1 / -1;
    justify-self: start;
    width: 50%;
  }

  .thanks-grid::before {
    display: none;
  }

  .thanks-grid {
    padding-top: 0;
  }

  .button {
    padding: 8px 20px;
    font-size: 0.75rem;
  }

  .copyright {
    flex-direction: column;
    gap: 2px;
  }

  .copyright-text {
    display: block;
  }

  .copyright-text:first-child {
    order: 1;
  }

  .copyright-text:last-child {
    order: 2;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns */
    margin-bottom: 30px;
  }
  .labs-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border: 1px solid var(--border-color);
  }

  .grid-item,
  .contact-item {
    height: 140px;
    padding: 30px 15px;
  }

  .grid-item:last-child {
    border-right: none;
  }

  .grid-item:nth-child(2n) {
    border-right: 1px solid var(--border-color);
  }

  .grid-item:nth-child(4) {
    border-right: none;
  }

  .grid-item:first-child::before,
  .grid-item:first-child::after,
  .grid-item:last-child::before,
  .grid-item:last-child::after {
    content: "";
    position: absolute;
    width: 4px;
    height: 4px;
    background-color: var(--text-color);
  }

  /* Top left dots */
  .grid-item:first-child::before {
    top: 15px;
    left: 15px;
  }

  .grid-item:first-child::after {
    bottom: 15px;
    left: 15px;
  }

  /* Top right dots */
  .grid-item:last-child::before {
    top: 15px;
    right: 15px;
  }

  .grid-item:last-child::after {
    bottom: 15px;
    right: 15px;
  }

  .pixel-letter {
    font-size: 2.5rem;
  }

  .contact-section {
    display: none;
  }

  /* Add padding to the section titles */
  #team .section-title,
  #team .section-subtitle {
    padding-left: 20px;
    padding-right: 20px;
  }

  #team .section-title-2 {
    padding-top: 20px;
    padding-left: 20px;
    padding-right: 20px;
    font-size: 1rem;
  }

  .ruler-vertical {
    display: none;
  }

  .ruler-horizontal {
    display: block;
  }

  .desktop-only {
    display: none;
  }
}

@media (max-width: 480px) {
  /* Smaller mobile */
  .logo-text {
    font-size: 1.4rem;
  }
  .tagline {
    font-size: 0.8rem;
  }
  .section-title {
    font-size: 1.5rem;
  }
  .pixel-letter {
    font-size: 3rem;
  }
  .logo-row {
    gap: 20px;
  }
  .logo-container {
    flex: 0 0 calc(33.333% - 20px); /* 3 logos per row on smaller screens */
  }
  .institution-logo {
    max-height: 30px;
  }
  .grid-item,
  .contact-item {
    height: 100px;
    padding: 20px 10px;
  }

  :root {
    --container-max-width: 100%;
  }

  .container {
    padding-left: 10px;
    padding-right: 10px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  #hero {
    width: calc(100% - 40px);
    max-width: calc(100% - 40px);
    overflow: hidden;
  }
}

/* --- Contact Grid Styles --- */
.contact-section {
  width: 100%;
  overflow: hidden;
  display: block;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border-color);
  width: 100%;
  margin: 0;
  position: relative;
}

.contact-item {
  border-right: 1px solid var(--border-color);
  text-align: center;
  padding: auto;
  position: relative;
  height: 240px;
}

.contact-item-centered .logo-text {
  font-family: var(--font-mondwest);
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin: 0;
  gap: 0;
  font-size: 3rem;
  color: #000;
}

.contact-item .logo-text span {
  display: inline-block;
  line-height: 1;
}

.contact-item .section-title {
  font-family: var(--font-atlas);
  font-size: 1.75rem;
  margin-bottom: 0.25rem;
  letter-spacing: 0.02em;
  text-align: left;
}

.contact-item p {
  font-family: var(--font-atlas);
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--secondary-text-color);
  margin-bottom: 0.5rem;
  text-align: left;
  max-width: 90%;
}

.contact-item .button {
  background-color: #000;
  color: #fff;
  padding: 12px 28px;
  font-family: var(--font-atlas);
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  display: inline-block;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.contact-item .button:hover {
  opacity: 0.85;
}

.grid-span-2 {
  grid-column: span 2;
  padding: 60px 45px !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

/* Move all contact-related media queries together */
@media (max-width: 768px) {
  .contact-section {
    display: none !important; /* Force hide */
  }
}

@media (max-width: 480px) {
  .contact-item {
    height: 100px;
    padding: 20px 10px;
  }

  .contact-item .logo-text {
    font-size: 1.4rem;
    flex-direction: column;
  }
}

/* Base height for larger screens */
.contact-item {
  border-right: 1px solid var(--border-color);
  text-align: center;
  padding: auto;
  position: relative;
  height: 240px;
}

/* Height for medium screens */
@media (max-width: 960px) {
  .contact-item {
    height: 180px;
  }

  .grid-span-2 {
    padding: 40px 45px !important;
  }

  .contact-item .section-title {
    margin: 0;
    font-size: 1.5rem;
    line-height: 1.2;
  }

  .contact-item p {
    margin: 0;
    line-height: 1.3;
  }

  .contact-item .button {
    margin: 0;
    padding: 8px 20px;
    font-size: 0.75rem;
  }
}

.grid-span-2 {
  grid-column: span 2;
}

/* New Mobile Contact Section Styles */
.contact-section-mobile {
  text-align: center;
  background-color: var(--background-color); /* Adjust as needed */
  border-top: 1px solid var(--border-color);
}

.contact-section-mobile .contact-item {
  margin-bottom: 15px;
}

.contact-section-mobile .logo-text {
  font-family: var(--font-mondwest); /* Match the font */
  font-size: 2.5rem; /* Match the size */
  line-height: 1.2; /* Adjust line height if needed */
  color: var(--text-color); /* Match the color */
  border-top: 1px solid var(--border-color);
  padding-top: var(--section-padding-y);
}

.contact-section-mobile .section-title {
  font-size: 1.75rem; /* Adjust size for mobile */
  margin-bottom: 10px;
  font-family: var(--font-atlas); /* Match the font */
}

.contact-section-mobile p {
  font-size: 0.875rem; /* Adjust size for mobile */
  font-family: var(--font-atlas); /* Match the font */
  color: var(--secondary-text-color);
  padding: 0 20px;
}

.contact-section-mobile .button {
  padding: 12px 24px;
  font-size: 0.875rem;
  margin-bottom: calc(var(--section-padding-y) / 2);
  margin-top: 20px;
  font-family: var(--font-atlas); /* Match the font */
}
.contact-item-centered {
  border-right: 1px solid var(--border-color);
  display: flex; /* Make it a flex container */
  flex-direction: column; /* Stack children vertically */
  justify-content: center; /* Center content vertically */
  align-items: center; /* Center content horizontally */
  height: 240px; /* Default height for larger screens */
}

/* Responsive Design */
@media (min-width: 768px) {
  .contact-section-mobile {
    display: none; /* Hide mobile section on larger screens */
  }
}

@media (max-width: 767px) {
  .contact-section {
    display: none; /* Hide desktop section on smaller screens */
  }
}

/* Media Queries to Match Sibling Height */
@media (max-width: 960px) {
  .contact-item-centered {
    height: 180px; /* Match height for medium screens */
  }
}

@media (max-width: 480px) {
  .contact-item-centered {
    height: 100px; /* Match height for smaller screens */
  }
}

@media (max-width: 960px) {
  .ruler-vertical {
    display: none;
  }

  .ruler-horizontal {
    display: block;
  }
}

.vertical-line {
  position: absolute;
  left: 50%;
  top: 0;
  height: 100%;
  width: 1px;
  background: var(--border-color);
  pointer-events: none;
  z-index: -1;
}

@media (max-width: 960px) {
  .contact-item-centered .logo-text {
    flex-direction: column;
    font-size: 2rem;
    gap: 5px;
  }

  .contact-item-centered .logo-text span {
    display: block;
    line-height: 1;
  }
}
