/**
 * Site Branding Styles
 * Makes the site title bold and responsive
 */

/* Parent organization (College of Engineering) styling - matches college-name styling */
.parent-org {
  color: #18453b !important;
  margin-bottom: 0.25rem !important;
  line-height: 1.2 !important;
  padding-top: 12px !important; /* Default padding for smallest screens */
}

/* Desktop - Large screens */
@media (min-width: 1200px) {
  .parent-org {
    font-size: 2rem !important; /* 32px - same as college-name */
    letter-spacing: 0.065rem !important;
    padding-top: 25px !important;
  }
}

/* Desktop - Medium screens */
@media (min-width: 992px) and (max-width: 1199px) {
  .parent-org {
    font-size: 1.875rem !important; /* 30px - same as college-name */
    letter-spacing: 0.06rem !important;
    padding-top: 20px !important;
  }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 991px) {
  .parent-org {
    font-size: 1.75rem !important; /* 28px - same as college-name */
    letter-spacing: 0.055rem !important;
    padding-top: 18px !important;
    padding-left: 15px !important;
  }
}

/* Mobile - Large */
@media (min-width: 576px) and (max-width: 767px) {
  .parent-org {
    font-size: 1.75rem !important; /* 28px - same as college-name */
    letter-spacing: 0.05rem !important;
    padding-top: 15px !important;
    padding-left: 15px !important;
  }
}

/* Mobile - Small */
@media (max-width: 575px) {
  .parent-org {
    font-size: 1.5rem !important; /* 24px - same as college-name */
    letter-spacing: 0.04rem !important;
    padding-top: 12px !important;
    padding-left: 15px !important;
  }
}

/* Parent organization link styling - matches college-name link styling */
.parent-org a {
  color: #18453b !important;
  text-decoration: none !important;
}

.parent-org a:hover {
  color: #0f2b23 !important; /* Darker green on hover - same as college-name */
  text-decoration: none !important;
}

/* Site title/college name styling */
p.college-name {
  color: #18453b !important;
  font-weight: 700 !important; /* Bold */
  margin-bottom: 0.25rem !important;
  line-height: 1.2 !important;
  padding-top: 0 !important; /* Remove top padding to bring closer to parent org */
  position: relative; /* For the :before pseudo-element */
  padding-left: 15px !important; /* Space for the green bar */
}

/* Green bar before Design Day title */
p.college-name:before {
  content: '';
  position: absolute;
  left: 0;
  top: 30%;
  transform: translateY(-50%);
  width: 6px;
  height: 40%;
  background-color: #47CF73; /* Match Design Day title color */
  /* Add visual indicator beyond color */
  box-shadow: 1px 0 0 rgba(0, 0, 0, 0.1);
}

p.college-name a {
  color: #18453b !important;
  font-weight: 700 !important; /* Bold */
  text-decoration: none !important;
}

p.college-name a:hover {
  color: #0f2b23 !important; /* Darker green on hover */
  text-decoration: none !important;
}

/* Desktop - Large screens */
@media (min-width: 1200px) {
  p.college-name {
    font-size: 2rem !important; /* 32px */
    letter-spacing: 0.065rem !important;
    padding-bottom: 25px !important;
  }
}

/* Desktop - Medium screens */
@media (min-width: 992px) and (max-width: 1199px) {
  p.college-name {
    font-size: 1.875rem !important; /* 30px */
    letter-spacing: 0.06rem !important;
    padding-bottom: 20px !important;
  }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 991px) {
  p.college-name {
    font-size: 1.75rem !important; /* 28px */
    letter-spacing: 0.055rem !important;
    padding-bottom: 18px !important;
    padding-left: 30px !important; /* 15px for alignment + 15px for green bar space */
  }
  
  /* Adjust green bar position for tablet */
  p.college-name:before {
    left: 15px; /* Align with parent org padding */
  }
}

/* Mobile - Large */
@media (min-width: 576px) and (max-width: 767px) {
  p.college-name {
    font-size: 1.75rem !important; /* 28px */
    letter-spacing: 0.05rem !important;
    padding-bottom: 15px !important;
    padding-left: 30px !important; /* 15px for alignment + 15px for green bar space */
  }
  
  /* Adjust green bar position for mobile large */
  p.college-name:before {
    left: 15px; /* Align with parent org padding */
  }
}

/* Mobile - Small */
@media (max-width: 575px) {
  p.college-name {
    font-size: 1.5rem !important; /* 24px */
    letter-spacing: 0.04rem !important;
    padding-bottom: 12px !important;
    padding-left: 30px !important; /* 15px for alignment + 15px for green bar space */
  }
  
  /* Adjust green bar position for mobile */
  p.college-name:before {
    left: 15px; /* Align with parent org padding */
  }
  
  /* Center the entire branding on mobile */
  .site-logo {
    display: block;
    margin: 0 auto;
  }
}

/* Ensure proper alignment with logo */
.egr-site-logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

/* Additional responsive adjustments for the logo */
@media (max-width: 767px) {
  .site-logo img {
    max-height: 60px !important;
  }
}

@media (max-width: 575px) {
  .site-logo img {
    max-height: 50px !important;
  }
  
  /* Stack logo and title on very small screens */
  .block-system-branding-block .row {
    text-align: center;
  }
  
  .block-system-branding-block .col-auto,
  .block-system-branding-block .col {
    width: 100%;
    text-align: center;
  }
}

/* Site slogan responsive styling */
.site-slogan {
  font-size: 0.875rem;
  line-height: 1.4;
}

@media (max-width: 767px) {
  .site-slogan {
    font-size: 0.75rem;
    text-align: center;
  }
}

/* MSU Masthead padding on smaller screens */
@media (max-width: 991px) {
  #msu-header a[href="https://www.msu.edu"] img[alt="Michigan State University Homepage"] {
    padding-left: 15px;
  }
}

/* Hide search box on mobile devices */
@media (max-width: 767px) {
  .region-searchbox {
    display: none !important;
  }
}

/* Ensure search box is visible on larger screens */
@media (min-width: 768px) {
  .region-searchbox {
    display: flex !important;
    justify-content: flex-end;
  }
}

/* Remove padding from breadcrumb block */
.block-system-breadcrumb-block {
  padding: 0 !important;
}

/* Also remove padding from the breadcrumb navigation itself */
.block-system-breadcrumb-block nav {
  padding: 0 !important;
}

/* Remove any margin that might be added */
.block-system-breadcrumb-block,
.block-system-breadcrumb-block nav,
.block-system-breadcrumb-block .breadcrumb {
  margin: 0 !important;
  padding: 0 !important;
}