/* ========================================
   VITERBO HEADER STYLES
   ======================================== */

/* Brand Colors
:root {
  --white: #FFFFFF;
  --primary-navy: #00344b;
  --primary-red: #ee323a;
  --secondary-flood: #76cfe7;
  --secondary-sunrise: #f1aa1e;
  --silver: #a3adb4;
  --gold: #9f762b;
  --mohagany: #693534;
  --dark-navy: var(--dark-navy);
}
*/
#toolbar-administration, #toolbar-administration * {
  z-index: 9999 !important;
}

.contextual-links[hidden] {
  display: none !important;
}

.site-header .contextual-links a,
.site-header .contextual-links li a {
  color: #333 !important;
  background-color: #fff !important;
  text-transform: none !important;
  font-weight: 400 !important;
  font-size: 13px !important;
  letter-spacing: normal !important;
  padding: 0.4em 0.6em !important;
  border-right: none !important;
  border-left: none !important;
  display: block !important;
  white-space: nowrap !important;
}

.site-header .contextual-links a:hover {
  color: #000 !important;
  background-color: #f7fcff !important;
}

/* ========================================
   HEADER STRUCTURE
   ======================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 999;
  background: var(--primary-navy);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transform: translateY(0);
  transition: transform 0.3s ease;
  will-change: transform;
}

.site-header.header--hidden {
  transform: translateY(-100%);
}

/* Drupal admin toolbar offsets.
   Desktop: toolbar is fixed, so offset the fixed header below it.
   Mobile: toolbar scrolls with the page, so use sticky instead of fixed
   so the header flows naturally below the toolbar. */
@media (min-width: 768px) {
  body.toolbar-fixed .site-header {
    top: 39px;
  }
  body.toolbar-fixed.toolbar-horizontal.toolbar-tray-open .site-header {
    top: 79px;
  }
}

/* ========================================
   FULL-WIDTH SEARCH OVERLAY
   ======================================== */

.header-search-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--primary-navy);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  display: flex;
  align-items: center;
}

.header-search-overlay.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.header-search-overlay .container-fluid {
  width: 100%;
}

.header-search-overlay__content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: 100%;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.header-search-overlay__input {
  flex: 1;
}

.header-search-overlay__input form,
.header-search-overlay__input .form--inline,
.header-search-overlay__input .form-inline {
  display: flex !important;
  align-items: center;
  width: 100%;
  margin: 0;
}

.header-search-overlay__input .form-item,
.header-search-overlay__input .js-form-item {
  flex: 1;
  margin: 0;
}

.header-search-overlay__input input[type="text"],
.header-search-overlay__input input[name="keys"],
.header-search-overlay__input .form-control {
  width: 100% !important;
  background: transparent !important;
  border: none !important;
  border-bottom: 2px solid rgba(255,255,255,0.4) !important;
  border-radius: 0 !important;
  color: var(--white) !important;
  font-size: 1.25rem !important;
  padding: 0.5rem 0.25rem !important;
  outline: none !important;
  box-shadow: none !important;
}

.header-search-overlay__input input:focus {
  border-bottom-color: var(--secondary-sunrise) !important;
  outline: none !important;
  box-shadow: none !important;
}

.header-search-overlay__input input::placeholder {
  color: rgba(255,255,255,0.5) !important;
}

.header-search-overlay__input .form-actions,
.header-search-overlay__input input[type="submit"],
.header-search-overlay__input button[type="submit"],
.header-search-overlay__input .progress-throbber {
  display: none !important;
}

.search-overlay-submit {
  background: transparent;
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;

}

.search-overlay-submit:hover {
  background: rgba(255,255,255,0.15);
}

.search-overlay-close {
  background: transparent;
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;

}

.search-overlay-close:hover {
  background: rgba(255,255,255,0.15);
}

/* ========================================
   MAIN HEADER LAYOUT: logo-col (left) + nav-col (right, flex-column)
   ======================================== */

.header-main__inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: 100%;
  max-width: 1300px;
  margin: 0 auto;
  width: 100%;
}

/* Desktop logo column — spans full header height, logo centered inside */
.header-logo-col {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding-left: 2rem;
  padding-right: 1.5rem;
}

.header-logo-col .navbar-brand {
  padding: 0.5rem 0;
}

/* Right column stacks tier-1 on top of tier-2 */
.header-nav-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 0;
}

/* On desktop, hide the logo rendered inside page.navigation
   since header-logo-col handles it */
@media (min-width: 768px) {
  .site-branding .navbar-brand {
    display: none !important;
  }
}

/* ========================================
   TIER 1: UTILITY QUICK-ACCESS BAR (desktop only)
   ======================================== */

.header-tier-1 {
  background: transparent;
  padding: 0;
  width: 100%;
  align-self: stretch;
}

.header-tier-1 .block,
.header-tier-1 .block-menu {
  background: transparent !important;
}

.header-tier-1__content {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 0.5rem 0 1rem;
  min-height: 52px;
  gap: 0;
  max-width: 1300px;
  margin: 0 auto;
  width: 100%;
}

.tier-1-links {
  display: flex;
  align-items: stretch;
  align-self: stretch;
  background: var(--dark-navy);
}

/* Drupal block wrappers between tier-1-links and ul.nav must also stretch */
.tier-1-links .block,
.tier-1-links .block-menu,
.tier-1-links nav {
  display: flex;
  align-items: stretch;
  height: 100%;
}

.header-tier-1 ul.nav,
.header-tier-1 .utility-navigation {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch;
  height: 100%;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
  flex-wrap: nowrap;
}

.header-tier-1 li {
  display: flex;
  align-items: stretch;
  margin: 0;
}

.header-tier-1 a {
  color: var(--white);
  background-color: transparent !important;
  text-decoration: none !important;
  font-size: 16px;
  font-weight: 700;
  padding: 16px 24px !important;
  display: block;
  white-space: nowrap;
}

/* Top-level nav links only: fill full bar height, center text.
   Covers both menu--utility-navigation.html.twig (.nav-link class)
   and the fallback menu.html.twig used by FAC (plain <a>, no .nav-link class). */
.tier-1-links ul.nav > li > a {
  display: flex !important;
  align-items: center;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.tier-1-links .nav-link:hover,
.tier-1-links .action-btn:hover,
.tier-1-links a:hover {
  color: var(--white) !important;
  background: var(--primary-red) !important;
  border-bottom: none !important;
}

a.\.fac-utility-primary {
  background-color: var(--primary-red) !important;
}

a.\.fac-utility-primary:hover {
  background-color: var(--secondary-sunrise) !important;
  color: var(--primary-navy) !important;
}

/* Utility nav dropdown parent: navy hover instead of red */
.tier-1-links .nav-item.dropdown,
.header-tier-1 li.dropdown {
  position: relative;
  display: flex;
  align-items: stretch;
}

.tier-1-links .nav-item.dropdown:hover > .nav-link,
.tier-1-links .nav-item.dropdown:hover > a {
  background: var(--primary-navy) !important;
  color: var(--white) !important;
  border-bottom: none !important;
}

/* Utility nav dropdown menu — mirrors main nav dropdown */
.tier-1-links .dropdown-menu {
  background: var(--primary-navy);
  border: none;
  border-radius: 0;
  padding: 0.25rem 0;
  white-space: nowrap;
  width: max-content;
  min-width: 100%;
  margin-top: 0;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1300;
  display: none;
}

.tier-1-links .nav-item.dropdown, .header-tier-1 .a:hover {
  color: var(--secondary-sunrise); 
}

.tier-1-links .nav-item.dropdown:hover > .dropdown-menu {
  display: block;
}

.tier-1-links .dropdown-item {
  padding: 0;
  background: transparent !important;
  border: none;
  display: block;
}

.tier-1-links .dropdown-item a {
  display: block;
  padding: 0.65rem 1.5rem;
  color: var(--white) !important;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none !important;
  white-space: nowrap;
  background: transparent;
}

.tier-1-links .dropdown-item a:hover,
.tier-1-links .dropdown-item a:focus {
  background: var(--primary-red) !important;
  color: var(--white) !important;
}

.header-tier-2__content .search-toggle {
  background: transparent;
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: 0 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  flex-shrink: 0;

  border-bottom: 5px solid transparent;
}

.header-tier-2__content .search-toggle:hover {
  color: var(--secondary-sunrise);
  border-bottom-color: var(--secondary-sunrise);
}

/* ========================================
   TIER 2: LOGO + MAIN NAV
   ======================================== */

.header-tier-2 {
  background: var(--primary-navy);
  padding: 0;
  width: 100%;
}

.header-tier-2__content {
  display: flex;
  align-items: stretch;
  min-height: 90px;
  max-width: 1300px;
  margin: 0 auto;
  width: 100%;
}

/* ========================================
   SITE BRANDING (logo + desktop nav container)
   ======================================== */

.site-branding {
  display: flex;
  align-items: center;
  width: 100%;
  flex: 1;
  overflow: visible;
}

.navbar-brand {
  display: flex !important;
  align-items: center !important;
  flex-direction: row !important;
  flex-shrink: 0;
  padding: 0.75rem 0;
}

.navbar-brand img {
  width: 100%;
  margin-right: 12px;
  max-height: 70px;
}

.site-branding__text {
  margin-left: 0;
  display: inline-block;
  line-height: 1;
}

.site-branding__text a {
  color: var(--white) !important;
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1;
  display: block;
}

/* ========================================
   DESKTOP MAIN NAVIGATION (in tier 2)
   ======================================== */

@media (min-width: 768px) {
  .main_navigation-block--desktop {
    display: flex !important;
    align-items: center;
    align-self: stretch;
  }

  .main_navigation-block--desktop .navbar-nav,
  .main_navigation-block--desktop .nav {
    display: flex !important;
    flex-direction: row !important;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
    height: 100%;
    align-items: stretch;
  }

  .main_navigation-block--desktop .nav-item {
    position: relative;
    display: flex;
    align-items: stretch;
  }
  
  .header-search-icon, .header-close-icon {
    width: 22px;
    height: auto;
    stroke-width: 2.5;
  }

  .main_navigation-block--desktop .nav-link {
    color: white !important;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    padding: 0 1rem !important;
    white-space: nowrap;
    display: flex !important;
    align-items: center;
    gap: 0.25rem;
    text-decoration: none !important;

    border-bottom: 5px solid transparent;
  }

  .main_navigation-block--desktop .nav-link:hover,
  .main_navigation-block--desktop .nav-link:focus {
    color: var(--secondary-sunrise) !important;
    border-bottom-color: var(--secondary-sunrise);
  }

}

@media (min-width: 768px) {
  /* Hide caret — dropdowns open on hover */
  .main_navigation-block--desktop .nav-item.dropdown .caret,
  .main_navigation-block--desktop .nav-item.expanded .caret {
    display: none !important;
  }

  .main_navigation-block--desktop .dropdown-toggle::after {
    display: none !important;
  }

  /* Desktop dropdown menus */
  .main_navigation-block--desktop .dropdown-menu {
    background: var(--primary-navy);
    border: none;
    border-radius: 0px;
    padding: 0.25rem 0;
    white-space: nowrap;
    width: max-content;
    min-width: 100%;
    margin-top: 0;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1300;
  }

  /* Show dropdown on hover */
  .main_navigation-block--desktop .nav-item.dropdown:hover > .dropdown-menu {
    display: block;
  }

  /* The <li> wrapper — no padding, no background */
  .main_navigation-block--desktop .dropdown-item {
    padding: 0;
    background: transparent !important;
    border: none;
    display: block;
  }

  /* The <a> inside each dropdown item */
  .main_navigation-block--desktop .dropdown-item a {
    display: block;
    padding: 0.65rem 1.5rem;
    color: var(--white) !important;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none !important;
    white-space: nowrap;
  }

  .main_navigation-block--desktop .dropdown-item a:hover,
  .main_navigation-block--desktop .dropdown-item a:focus {
    background: rgba(255, 255, 255, 0.1) !important;
    color: var(--secondary-sunrise) !important;
  }

  .header-tier-2 {
    overflow: visible;
  }
}

/* ========================================
   MOBILE HEADER ICONS (search + hamburger)
   ======================================== */

.mobile-header-icons {
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}

.mobile-search-toggle {
  background: transparent;
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: 0.5rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;

}

.mobile-search-toggle:hover {
  background: rgba(255,255,255,0.1);
}

.mobile-search-toggle:focus, .search-overlay-submit:focus, .search-overlay-close:focus, .header-tier-2__content .search-toggle:focus {
  outline: none;
}

/* ========================================
   MOBILE MENU OVERLAY
   ======================================== */

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  max-width: 100vw;
  overflow-x: clip;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-container {
  position: absolute;
  top: 0;
  right: 0;
  min-height: 100%;
  max-height: 100%;
  width: 100%;
  max-width: 450px;
  background: var(--primary-navy);
  padding: 0 3rem 0;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

@media (max-width: 767.98px) {
  .mobile-menu-container {
    max-width: 100%;
    padding: 0 2rem 0;
  }
}

.mobile-menu-overlay.active .mobile-menu-container {
  transform: translateX(0);
}

/* Prevent body scroll when menu is open */
body.mobile-menu-open {
  overflow: hidden;
}

/* ========================================
   MOBILE MENU HEADER ROW (logo + close button)
   ======================================== */

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  margin: 0 -3rem 0 -3rem;
  padding: 0 3rem;
  flex-shrink: 0;
  margin-bottom: 1.5rem;
}

@media (max-width: 767.98px) {
  .mobile-menu-header {
    margin: 0 -2rem 0 -2rem;
    padding: 0 15px;
  }
}

.mobile-menu-header__logo {
  display: flex;
  align-items: center;
}

.mobile-menu-header__logo a {
  padding: 0;
  margin: 0;
}

.mobile-menu-header__logo .navbar-brand {
  padding: 1rem 0 2rem;
}

.mobile-menu-header__logo img {
  max-height: 45px;
  width: 100%;
  display: block;
}

/* ========================================
   MOBILE MENU CLOSE BUTTON
   ======================================== */

.mobile-menu-close {
  background: transparent;
  border: transparent;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.mobile-menu-close svg {
  width: 28px;
  height: 28px;
}

/* ========================================
   MOBILE ACTION CARDS
   ======================================== */

.mobile-action-section {
  margin: 2rem 0;
}

/*

.action-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 8px;
  min-height: 60px;
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.action-card.primary {
  background: var(--secondary-sunrise);
  color: var(--white);
}

.action-card.primary:hover {
  transform: translateY(-2px);
  background: var(--gold);
  color: var(--white);
  text-decoration: none;
}

.action-card.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  backdrop-filter: blur(10px);
}

.action-card.secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--gold);
  transform: translateY(-2px);
  color: var(--white);
  text-decoration: none;
}

*/

.action-title {
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.action-subtitle {
  font-size: 11px;
  opacity: 0.8;
  font-weight: 400;
}

/* ========================================
   MOBILE BRANDING SIZE
   ======================================== */

@media (max-width: 767.98px) {
  .header-tier-2__content {
    min-height: 60px;
  }

  .navbar-brand {
    width: auto;
    height: auto;
    padding: 1rem 0 2rem;
  }

  .navbar-brand img {
    max-height: 45px;
  }

  .site-branding__text a {
    font-size: 1.2rem;
  }
}

/* ========================================
   MOBILE MENU ACTION GRID
   ======================================== */

.mobile-action-section .action-grid {
  display: flex;
  flex-direction: column;
}


/* * * * * * * * * * * * * * * * * * * *
 *  Card Three CTA Right Image Styles
 * * * * * * * * * * * * * * * * * * * */
.card-cta-container {
  background: var(--primary-navy);
  padding: 2rem 1rem 0 1rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.card-cta-title {
  color: var(--white);
  font-size: 1.8rem;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.card-cta-description {
  color: var(--white);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  display: none;
}
.card-cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}
.cta-button a {
  display: block;
  background-color: var(--secondary-sunrise);
  color: var(--primary-navy) !important;
  text-decoration: none !important;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  min-width: 250px;
  text-align: center;
  font-weight: 600;
  transition: all 0.3s ease;
}
.cta-button a:hover {
  background-color: var(--gold);
  transform: translateY(-2px);
}
.card-cta-image {
  width: 350px;
  height: 175px;
  margin: 2rem auto 0 auto;
}
.card-cta-image img {
  width: 350px;
  height: 350px;
  object-fit: cover;
  object-position: top;
  border-radius: 50%;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

@media (min-width: 768px) {
  .card-three-cta-right-image {
    margin-top: 3rem;
    margin-bottom: 3rem;
  }
  .card-cta-container {
    width: 96%;
    margin-left: auto;
    margin-right: 0;
    border-radius: 175px 0 0 175px;
    display: flex;
    align-items: center;
    text-align: left;
    padding: 2rem;
    overflow: hidden;
    height: 350px;
    margin-bottom: 5rem;
  }

  .card-cta-content {
    flex: 1;
    margin-bottom: 0;
    margin-right: 2rem;
    margin-left: 10%;
  }
  .card-cta-title {
    font-size: 1.6rem;
  }
  .card-cta-description {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
  }
  .card-cta-buttons {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 1rem;
  }
  .cta-button a {
    min-width: 200px;
    padding: 0.8rem 1.5rem;
  }
  .card-cta-image {
    width: 450px;
    height: 450px;
    margin: 0;
    flex-shrink: 0;
    transform: translateX(30px);
  }
  .card-cta-image img {
    width: 450px;
    height: 450px;
    object-position: center;
  }
}
@media (min-width: 992px) {
  .card-cta-container {
    width: 95%;
    height: 450px;
    padding: 3rem;
    border-radius: 250px 0 0 250px;
  }

  .card-cta-content {
    margin-left: 8%;
    margin-right: 3rem;
  }

  .card-cta-title {
    font-size: 2rem;
    margin-bottom: 1.25rem;
  }

  .card-cta-description {
    font-size: 1.3rem;
    margin-bottom: 2rem;
  }

  .card-cta-buttons {
    gap: 1.5rem;
  }

  .cta-button a {
    min-width: 220px;
    padding: 1rem 2rem;
    font-size: 1rem;
  }

  .card-cta-image {
    width: 550px;
    height: 550px;
    transform: translateX(40px);
  }

  .card-cta-image img {
    width: 550px;
    height: 550px;
  }
}

@media (min-width: 1440px) {
  .card-cta-description {
    display: inline;
  }
  .card-cta-description p:last-child {
    margin-bottom: 2rem;
  }
}

/* Events & News Card Custom Styling */

.custom-events-news-card {
  background: var(--primary-navy);
  color: white;
  display: flex;
  flex-direction: column;
  height: auto;
  width: 100%;
  border-radius: 0;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.custom-events-news-card .card-main-heading {
  font-size: 1.75rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
}

.custom-events-news-card .card-main-heading .field {
  display: inline;
  margin: 0 auto;
}

.custom-events-news-card .card-subtitle {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.8);
  font-weight: 400;
  margin-bottom: 1rem;
}

.custom-events-news-card .card-description {
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
}

.custom-events-news-card .events-news-content-wrapper {
  flex: 1;
  padding: 1.5rem;
}

.custom-events-news-card .views-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  height: 100%;
}

.custom-events-news-card .news-section,
.custom-events-news-card .events-section {
  flex: 1;
  min-height: 0;
}

.custom-events-news-card .custom-view-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--secondary-sunrise);
}

.custom-events-news-card .view-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: white;
  margin: 0;
}

.custom-events-news-card .view-more-link {
  display: flex;
  font-size: 1rem;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  background-color: var(--secondary-sunrise);
  background-image: linear-gradient(var(--primary-red), var(--primary-red));
  background-size: 0% 100%;
  background-repeat: no-repeat;
  background-position: left center;
  color: var(--primary-navy);
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 2px;
  transition: background-size 0.15s ease-in-out, color 0.15s;
  width: fit-content;
}

.custom-events-news-card .view-more-link:hover {
  background-size: 100% 100%;
  color: white;
}

.view-more-link .btn-arrow {
  margin-left: 4px
}

.custom-events-news-card .clean-view-content {
  font-size: 1rem;
  line-height: 1.6;
  color: white;
}

/* News Section */
.custom-events-news-card .news-section .content {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  text-align: left;
  gap: 0.75rem;
  margin-top: 2rem;
}

.custom-events-news-card .news-section .image {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  overflow: hidden;
  border-radius: 8px;
}

.custom-events-news-card .news-section .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.custom-events-news-card .news-section .wrapper {
  flex: 1;
  padding: 0 !important;
}

.custom-events-news-card .news-section .wrapper h2 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.3;
  margin-top: 0;
}

.custom-events-news-card .news-section .wrapper h2 a {
  color: white;
  text-decoration: none;
}

.custom-events-news-card .news-section .wrapper h2 a:hover {
  color: var(--secondary-sunrise);
  text-decoration: underline;
}

.custom-events-news-card .news-section .wrapper {
  font-size: 0;
}

.custom-events-news-card .news-section .wrapper h2 {
  font-size: 1.125rem;
}

/* Events Section */
.custom-events-news-card .card-header-section {
  display: none;
}

.custom-events-news-card .events-section .views-field-nothing-1 {
  flex-shrink: 0 !important;
  flex-grow: 0 !important;
}

.custom-events-news-card .events-section .views-field-nothing {
  flex: 1 !important;
  display: flex !important;
  align-items: center !important;
  min-height: 60px !important;
}

.custom-events-news-card .events-section .views-field-nothing-1 .date {
  background: silver;
  color: var(--primary-navy);
  padding: 0.3rem;
  border-radius: 8px;
  text-align: center;
  width: 80px;
  height: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.custom-events-news-card .events-section .view-content > div {
  display: flex;
  flex-direction: row;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.custom-events-news-card .events-section .date .month {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 2px;
}

.custom-events-news-card .events-section .date .day {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
}

.custom-events-news-card .events-section .ev-details {
  text-decoration: none;
  display: block;
  width: 100%;
}

.custom-events-news-card .events-section .title {
  font-weight: 600;
  color: white;
  font-size: 1.125rem;
  line-height: 1.3;
  display: block;
}

.custom-events-news-card .events-section .ev-details:hover .title {
  color: var(--secondary-sunrise);
  text-decoration: underline;
}

.custom-events-news-card .mb-4 {
  margin-bottom: 0 !important;
}

.custom-events-news-card .clearfix::after {
  display: none;
}

/* Tablet Styles */
@media (min-width: 769px) {
  .custom-events-news-card {
    width: 100%;
    margin: 0 auto;
  }

  .custom-events-news-card .view-title {
    font-size: 2rem;
  }

  .custom-events-news-card .news-section .content {
    margin-top: 1.75rem;
  }

  .custom-events-news-card .news-section .image {
    width: 120px;
    height: 120px;
  }

  .custom-events-news-card .events-news-content-wrapper {
    padding: 1rem 1.5rem;
  }

  .custom-events-news-card .views-container {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .custom-events-news-card .custom-view-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 0;
  }

  .custom-events-news-card .events-section .view-content > div {
    margin-bottom: 1rem;
  }
}

/* Desktop Styles */
@media (min-width: 1200px) {
  .custom-events-news-card {
    width:100%;
    margin-top: 2rem;
  }

  .custom-events-news-card .news-section .content {
    margin-top: 2rem;
  }

  .custom-events-news-card .news-section .image {
    width: 150px;
    height: 150px;
  }

  .custom-events-news-card .events-section .title {
    font-size: 1.5rem;
  }

  .custom-events-news-card .events-section .views-field-nothing-1 .date {
    width: 100px;
    height: 100px;
  }

  .custom-events-news-card .events-section .date .month {
    font-size: 1.5rem;
  }

  .custom-events-news-card .news-section .wrapper {
    font-size: 1rem;
  }

.custom-events-news-card .news-section .wrapper h2 {
    font-size: 1.5rem;
  }

  .custom-events-news-card .card-header-section {
    padding: 2rem 3rem 1rem;
    border-bottom: 2px solid var(--secondary-sunrise);
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .custom-events-news-card .events-news-content-wrapper {
    padding: 1rem;
  }

  .custom-events-news-card .card-main-heading {
    font-size: 2.25rem;
  }

  .custom-events-news-card .events-section .view-content > div {
    margin-bottom: 2rem;
  }

  .custom-events-news-card .view-more-link {
    display: flex;
  }

  .custom-events-news-card .custom-view-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 0;
  }
}

/* Enhanced announcement banner styling */
.block-views-blocksite-announcements-block-1 {
  background: var(--primary-red);
  color: white;
  padding: 20px 20px;
  text-align: center;
  margin: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  border-bottom: 3px solid var(--primary-navy);
}

/* Announcement text styling */
.view-site-announcements .views-row {
  margin: 0;
}

.view-site-announcements p {
  margin: 0;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.4;
}

.view-site-announcements a {
  color: var(--primary-navy);
  text-decoration: underline;
  font-weight: 700;
  transition: all 0.2s ease;
}

.view-site-announcements a:hover {
  color: white;
  text-decoration: none;
}

@media (max-width: 768px) {
  .block-views-blocksite-announcements-block-1 {
    padding: 12px 15px;
  }

  .view-site-announcements p {
    font-size: 14px;
  }
}

/* ========================================
   TABLET NAV COMPACT (768px – 999px)
   Prevents nav overflow and whitespace on right
   ======================================== */

@media (min-width: 768px) and (max-width: 999px) {
  .header-main__inner {
    gap: 0.25rem;
  }

  .header-logo-col {
    padding-right: 0.5rem;
  }

  .navbar-brand img {
    max-height: 48px;
  }

  .main_navigation-block--desktop .nav-link {
    font-size: 0.875rem;
    padding: 0 0.45rem !important;
    letter-spacing: 0;
  }

  .header-tier-1 a {
    font-size: 0.75rem;
    padding: 0.5rem 1rem !important;
  }

  .header-tier-2__content .search-toggle {
    padding: 0 0.4rem;
  }
}
