.dj-megamenu-default li a.dj-up_a {
  display: block;
  float: left;
  height: 60px;
  font-size: 12px;
  font-weight: bold;
  color: #fff;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0 20px;
  cursor: pointer;
  background: transparent;
  color: #424242 !important;
  border-right: 1px solid #fff !important;
  border-left: 1px solid #ffff !important;
  -webkit-transition: all 0.2s ease-out;
  transition: all 0.2s ease-out;
}
.floating-info .info-box i {
  font-size: 32px;
  color: #3ab4e9;
  margin-bottom: 10px;
  display: block;
}
.dj-megamenu-default li ul.dj-submenu > li > a {
  display: block;
  font-size: 13px;
  font-weight: normal;
  line-height: 16px;
  color: #c3c3c3;
  background: #b1dcf6 !important;
  text-decoration: none;
  padding: 12px 20px;
  margin: 0 -10px;
  -webkit-transition: all 0.2s ease-out;
  transition: all 0.2s ease-out;
}
.dj-megamenu-default li:hover a.dj-up_a, .dj-megamenu-default li.hover a.dj-up_a, .dj-megamenu-default li.active a.dj-up_a {
  color: #ffff;
  background: #b1dcf6 !important;
}
.dj-megamenu-default li ul.dj-submenu > li > a {
  background: #b1dcf6 !important;
  color: #121314 !important;
}

.dj-megamenu-default li ul.dj-submenu > li > a {
  display: block;
  font-size: 14px;
  line-height: 1.5;
  color: #131416;
  background: transparent !important;
  padding: 10px 20px;
  margin: 0;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease;
}

/* Hover styling for submenu links */
.dj-megamenu-default li ul.dj-submenu > li > a:hover {
  background: #131416 !important;
  color: #fff;
}

/* Hover effect */
.dj-megamenu-default li ul.dj-submenu > li > a:hover {
  background: #131416 !important;
  color: #fff !important;
}


.dj-megamenu-default li ul.dj-submenu > li > a {
  display: block;
  font-size: 13px;
  font-weight: normal;
  line-height: 16px;
  color: #131416 !important;
  text-decoration: none;
  padding: 12px 20px;
  margin: 0 -10px;
  -webkit-transition: all 0.2s ease-out;
  transition: all 0.2s ease-out;
  background: #3ab4e9 !important;
  border-bottom: ;
}

.mpesa-icon {
  width: 40px !important;             /* Increase size as needed */
  height: auto;             /* Maintain aspect ratio */
  vertical-align: middle;   /* Align with text baseline */
  margin-right: 0.5em;      /* Spacing before the text */
}

/* Slider container with blue background */
.hero-slider {
  position: relative;
  background-color: #03ace8 !important;
  overflow: hidden;
}

/* Carousel image height and fit - improved clarity */
.hero-slider .carousel-item img {
  height: 540px;
  object-fit: cover;
  width: 100%;
  opacity: 1; /* Full clarity */
  filter: contrast(1.1) saturate(1.1); /* Makes colors pop */
}

/* Overlay for text readability */
.hero-slider .carousel-item::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3); /* Semi-transparent dark overlay */
  z-index: 1;
}

.carousel-caption {
  position: absolute;
  z-index: 2; /* Ensure captions are above overlay */
  bottom: 210px !important;
  left: 5%;
  right: auto;
  background: rgba(0, 0, 0, 0.55);
  padding: 16px 24px;
  border-radius: 8px;
  max-width: 600px;
  text-align: left;
  animation: fadeIn 1s ease-in-out;
}

@media (min-width: 1248px) {
  
.carousel-caption {
    
}
}

.py-2 {
  padding-top: .5rem !important;
  padding-bottom: .5rem !important;
  font-weight: bold !important;
}

.carousel-caption h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.carousel-caption p {
  font-size: 1rem;
  color: #f0f0f0;
  margin: 0;
  line-height: 1.4;
}
.top-bar {
  background: #b1dcf6 !important;
  font-size: 0.9rem;
}


/* For mobile screens */
@media (max-width: 768px) {
  .hero-slider .carousel-item img {
    height: 300px;
  }

  .carousel-caption {
    bottom: 25%;      /* Also adjust upward on mobile */
    left: 3%;
    padding: 12px 16px;
    font-size: 0.9rem;
  }

  .carousel-caption h2 {
    font-size: 1.2rem;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
  .hero-slider .carousel-item img {
    height: 300px;
  }

  .carousel-caption {
    bottom: 10%;
    left: 3%;
    padding: 12px 16px;
    font-size: 0.9rem;
  }

  .carousel-caption h2 {
    font-size: 1.2rem;
  }
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

/* White previous icon */
.carousel-control-prev-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23FFFFFF' viewBox='0 0 16 16'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
}

/* White next icon */
.carousel-control-next-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23FFFFFF' viewBox='0 0 16 16'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}
.cta-cards .cta-card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 25px 20px;
  transition: all 0.3s ease;
  border: 1px solid #e6e6e6;
  height: 100%;
}

.cta-cards .cta-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
  background-color: #f9f9f9;
}

.cta-icon {
  font-size: 40px;
  margin-bottom: 15px;
}

/* Horizontal floating menu (centered under slider) */
.floating-menu-horizontal {
  position: relative;
  margin-top: -30px; /* Pull closer to slider if needed */
  z-index: 10;
}

/* Buttons inside the slider or floating menus */
.slider-btn {
  font-size: 1rem;
  padding: 10px 20px;
  border-radius: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.portal-btn:hover {
  background: #00a3e4 !important;
}

.slider-btn:hover {
  transform: translateY(-2px);
}

/* Left vertical floating menu */
.floating-menu-vertical {
  position: fixed;
  top: 40%;
  left: 10px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.floating-menu-vertical .btn {
  width: 45px;
  height: 45px;
  padding: 0;
  font-size: 18px;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.floating-menu-vertical .btn:hover {
  transform: scale(1.1);
}
.top-menu-link {
  font-size: 0.875rem;
  color: #fff;
  transition: color 0.3s;
}
.best-products-section {
  background-color: #03ace8;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.product-slider-wrapper {
  height: 80px;
  width: 250px;
  overflow: hidden;
  margin: 0 auto;
  position: relative;
}

.product-slider {
  display: flex;
  flex-direction: column;
  animation: slideUp 10s infinite;
}

.product-item {
  height: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

@keyframes slideUp {
  0% { transform: translateY(0); }
  25% { transform: translateY(-80px); }
  50% { transform: translateY(-160px); }
  75% { transform: translateY(-240px); }
  100% { transform: translateY(0); }
}
.floating-social-icons {
  position: fixed;
  top: 50%;
  right: 0; /* changed from left to right */
  transform: translateY(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 5px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: #03ace8;
  color: #fff;
  border-radius: 5px 0 0 5px; /* Rounded left side */
  font-size: 16px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-icon:hover {
  background-color: #35495f;
  transform: translateX(-5px); /* slide left slightly on hover */
}

/* Optional: Brand-specific hover colors */
.fb:hover { background-color: #3b5998; }
.tw:hover { background-color: #1da1f2; }
.li:hover { background-color: #0077b5; }
.em:hover { background-color: #6c757d; }

.footer-section {
  background: #3e6272;
  color: #fff;
  padding: 60px 0 30px;
  font-size: 0.9rem;
}

.footer-section h4 {
  font-size: 1.2rem;
  margin-bottom: 16px;
  color: #03ace8;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #03ace8;
}

.footer-section p i {
  margin-right: 8px;
}

.social-icons a {
  display: inline-block;
  margin-right: 10px;
  color: #fff;
  font-size: 1.1rem;
  transition: color 0.3s;
}

.social-icons a:hover {
  color: #03ace8;
}

.footer-bottom {
  border-top: 1px solid #b1dcf6 !important;
  padding-top: 20px;
  margin-top: 40px;
  font-size: 0.85rem;
  color: #bbb;
}
/* Feature Products Section */
.feature-products {
  background-color: #f0f4f8;
  padding: 60px 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.feature-products h2 {
  font-weight: 700;
  font-size: 2rem;
  color: #121416 important;
  margin-bottom: 10px;
}

.feature-products p {
  font-size: 1rem;
  color: #666;
}

.product-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 30px 20px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease-in-out;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid #e0e0e0;
  text-align: center;
}

.product-card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  transform: translateY(-8px);
}

.product-card .icon {
  margin-bottom: 20px;
}

.product-card .icon i {
  font-size: 3rem;
  color: #03ace8;
  transition: transform 0.3s ease-in-out;
}

.product-card:hover .icon i {
  transform: scale(1.1);
}

.product-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #003366;
  margin-bottom: 10px;
}

.product-card p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
}

/* Responsive Grid Adjustments */
@media (max-width: 768px) {
  .product-card {
    padding: 20px 15px;
  }
  .product-card .icon i {
    font-size: 2.5rem;
  }
  .product-title {
    font-size: 1.1rem;
  }
}



/* Basic reset for nav */
.site-nav {
  font-family: "Helvetica Neue", Arial, sans-serif;
  background: #ffff; /* adjust to match brand */
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  height:93px;
  z-index: 999;
}

/* container */
.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0px !important;
  max-width: 1200px;
  margin: 0 auto;
}

/* Container for all board member cards */
.board-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 20px;
  padding: 40px 20px;
}

/* Individual member card */
.board-member {
  flex: 1 1 250px;
  max-width: 300px;
  background: #fff;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover interaction for desktop */
.board-member:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* Profile image styling */
.board-member img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 15px;
}

/* Name and position text */
.board-member .name {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 5px;
}

.board-member .position {
  font-size: 0.9rem;
  color: #555;
}

/* Make it fully responsive */
@media (max-width: 768px) {
  .board-container {
    justify-content: center;
    gap: 15px;
    padding: 20px 10px;
  }

  .board-member {
    flex: 1 1 200px;
    padding: 15px;
  }

  .board-member img {
    width: 100px;
    height: 100px;
    margin-bottom: 10px;
  }

  .board-member .name {
    font-size: 1rem;
  }

  .board-member .position {
    font-size: 0.85rem;
  }
}


/* logo */
.site-nav .brand {
  display: flex;
  align-items: center;
}
.site-nav .brand img { 
height: 83px; 
width: auto; 
display: block; 
margin-top: 5px !important;
}

/* main menu list */
.site-nav .menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.5rem;
  margin-top: -2px !important;
  align-items: center;
}

/* menu items */
.site-nav .menu > li {
  position: relative;
}
.site-nav .menu a {
  display: inline-block;
  padding: 10px 14px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.2px;
  transition: background .18s ease, color .18s ease;
  border-radius: 6px;
}

/* hover / active */
.site-nav .menu a:hover,
.site-nav .menu a:focus,
.site-nav .menu .active > a {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

/* dropdown wrapper */
.site-nav .menu li .submenu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 200px;
  background: #fff;
  color: #222;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  list-style: none;
  padding: 8px 0;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  overflow: hidden;
  z-index: 50;
}

/* show dropdown on hover (desktop) */
.site-nav .menu li:hover > .submenu,
.site-nav .menu li:focus-within > .submenu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* submenu items */
.site-nav .submenu li a {
  display: block;
  padding: 8px 14px;
  color: #222;
  text-decoration: none;
  font-weight: 500;
}
.site-nav .submenu li a:hover { background: rgba(11,59,102,0.06); color: #0b3b66; }

/* caret for items with dropdown */
.site-nav .menu li.has-child > a::after {
  content: "▾";
  margin-left: 8px;
  font-size: .7em;
  opacity: .9;
  vertical-align: middle;
}

/* Mobile toggle - hidden on desktop */
.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 22px;
  padding: 6px;
}

/* Responsive behavior */
@media (max-width: 980px) {
  .site-nav .container { padding: 0.5rem; }
  .site-nav .menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #0b3b66;
    flex-direction: column;
    gap: 0;
    padding: 10px 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .28s ease;
  }
  .site-nav .menu li { width: 100%; }
  .site-nav .menu a { padding: 12px 16px; }
  .site-nav .menu .submenu {
    position: static;
    background: transparent;
    box-shadow: none;
    padding-left: 12px;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    display: none;
  }
  .site-nav .menu li.open > .submenu { display: block; }

  .menu-toggle { display: inline-flex; align-items:center; gap:.5rem; }

  /* when nav is expanded set a large max-height */
  .site-nav.open .menu { max-height: 1000px; }
}

/* small niceties */
.site-nav .cta {
  margin-left: 8px;
  padding: 8px 12px;
  background: #ffb100;
  color: #0b3b66;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
}

/* Floating container over slider */
.floating-info {
  position: absolute;
  bottom: 20px; /* distance from bottom of slider */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 20px;
  z-index: 10;
}

/* Individual boxes */
.floating-info .info-box {
  background: rgba(0, 0, 0, 0.7); /* semi-transparent black */
  color: #fff;
  padding: 15px 20px;
  border-radius: 8px;
  width: 250px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: transform 0.3s ease, background 0.3s ease;
}

/* Floating container over slider */
.floating-info {
  position: absolute;
  bottom: 20px; /* distance from bottom of slider */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 20px;
  z-index: 10;
}

/* Individual boxes */
.floating-info .info-box {
  background: rgba(0, 0, 0, 0.7); /* semi-transparent black */
  color: #fff;
  padding: 15px 20px;
  border-radius: 8px;
  width: 250px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: transform 0.3s ease, background 0.3s ease;
}

/* Icon styling */
.floating-info .info-box i {
  font-size: 32px;
  color: #3ab4e9;
  margin-bottom: 10px;
  display: block;
  transition: color 0.3s ease;
}

/* Title styling */
.floating-info .info-box h3 {
  color: #3ab4e9;
  margin: 0 0 10px;
  font-size: 18px;
  transition: color 0.3s ease;
}

/* Text styling */
.floating-info .info-box p {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
}

/* Hover effects */
.floating-info .info-box:hover {
  transform: translateY(-5px);
  background: rgba(58, 180, 233, 0.9); /* blue background on hover */
}

.floating-info .info-box:hover i {
  color: #131416; /* dark gray icon on hover */
}

.floating-info .info-box:hover h3 {
  color: #11181d; /* slightly lighter dark gray title on hover */
}



.feature-products {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef); /* Light gradient */
  padding: 60px 0;
}

.feature-products h2 {
  font-weight: 700;
  letter-spacing: 1px;
}

.feature-products p {
  max-width: 600px;
  margin: auto;
}

.product-card {
  background: #ffffff;
  border: 1px solid #ddd;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border-radius: 0; /* Sharp edges */
}

.product-card .icon i {
  transition: transform 0.3s ease, color 0.3s ease;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  border-color: #007bff;
}

.product-card:hover .icon i {
  transform: scale(1.2);
  color: #0056b3; /* Darker pop on hover */
}

.product-title {
  font-weight: 600;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.text-muted.small {
  font-size: 0.9rem;
  line-height: 1.4;
}


.saccoverview {
  /* Layout & spacing */
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 3rem 1rem;

  /* Background & borders */
  background: linear-gradient(135deg, #f0f4ff, #dfe8fc);
  border: 2px solid #010101 !important;
  border-radius: 0; /* Sharp, modern edges */

  /* Depth effect */
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease-in-out;
}

.saccoverview:hover {
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.15);
}

.saccoverview .item {
  flex: 1 1 250px;
  background: #fff;
  border: 1px solid #ccc;
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease;
  border-radius: 0;
}

.saccoverview .item:hover {
  transform: translateY(-8px);
  border-color: #0056b3;
}

.saccoverview .item h3 {
  margin: 0.5rem 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #003366;
}

.saccoverview .item p {
  font-size: 1rem;
  color: #555;
  line-height: 1.5;
}

.saccoverview .item .btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem 1.2rem;
  background-color: #007bff;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  border: none;
  transition: background-color 0.3s ease;
}

.saccoverview .item .btn:hover {
  background-color: #0056b3;
}

/* Right column grid layout */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* exactly 2 columns */
  gap: 15px;
}

/* Product cards */
.products-grid .card {
  background: #fff;
  padding: 15px;
  border: 1px solid #ddd;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  font-weight: 600;
  color: #003366;
  transition: all 0.3s ease;
  cursor: pointer;
}

.products-grid .card i {
  font-size: 1.4rem;
  color: #007bff;
  transition: color 0.3s ease, transform 0.3s ease;
}

.products-grid .card:hover {
  transform: translateY(-4px);
  border-color: #0056b3;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.products-grid .card:hover i {
  color: #0056b3;
  transform: scale(1.2);
}

/* Responsive: stack products on small screens */
@media (max-width: 576px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
}

.latest-news {
  background-color: #f0f4f8;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #003366;
}

.news-body {
  background-color: #b1dcf6 !important;
  padding: 20px;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.news-card {
  background-color: #b1dcf6 !important;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}


.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}

.news-img {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  overflow: hidden;
}

.news-img img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures full coverage without distortion */
  display: block;
}


.news-img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.news-body {
  padding: 20px;
}

.news-body h4 {
  font-size: 1.25rem;
  color: #003366;
  margin-bottom: 12px;
}

.news-link {
  display: inline-block;
  background-color: #131416;
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 4px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.3s, transform 0.2s, color 0.3s;
}

.news-link:hover {
  background-color: #003366; /* Navy blue on hover */
  color: #ffffff; /* Stay white */
  transform: translateY(-2px);
}

/* Container for all staff member cards */
.container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  padding: 40px 20px;
}

/* Individual staff card */
.card {
  flex: 1 1 220px;          /* Responsive base width */
  max-width: 280px;
  background-color: #ffffff;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}


/* Name and title styling */
.card .name {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.card .role {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 8px;
}

/* Optional description or bio */
.card p {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.4;
}

/* Hover effect for desktop users */
@media (hover: hover) {
  .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  }
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .staff-container {
    padding: 20px 10px;
    gap: 16px;
  }

  .card {
    flex: 1 1 180px;
    padding: 15px;
  }

  .card img {
    width: 80px;
    height: 80px;
    margin-bottom: 10px;
  }

  .card .name {
    font-size: 1rem;
  }

  .card .role,
  .card p {
    font-size: 0.8rem;
  }
}

/* ------------------------------------------
   SCOPE: Prefer page class .app-forms if you can set it on the menu item.
   Fallbacks included for Phoca Download output / general links.
-------------------------------------------*/

/* Base: remove default link underlines and tidy spacing */
.app-forms a,
.com-phocadownload.view-category a {
  text-decoration: none !important;
}
.app-forms a:hover,
.com-phocadownload.view-category a:hover {
  text-decoration: none !important;
  opacity: .9;
}

/* Page heading */
.app-forms h3,
.com-phocadownload.view-category h3,
.app-forms .componentheading,
.com-phocadownload.view-category .componentheading {
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  margin: 0 0 1rem 0;
  font-weight: 700;
}

/* Wrap area: turn the list into a responsive grid */
.app-forms .phoca-dl,
.com-phocadownload.view-category .phoca-dl,
.app-forms #content,
.com-phocadownload.view-category #content {
  --card-gap: 1rem;
  --card-bg: #ffffff;
  --card-border: #e8ecf2;
  --card-radius: 14px;
  --card-shadow: 0 6px 20px rgba(0,0,0,.06);
}

/* Try to select the list container that holds the items */
.app-forms .phoca-dl-category-box,
.app-forms .phoca-dl-files,
.com-phocadownload.view-category .phoca-dl-category-box,
.com-phocadownload.view-category .phoca-dl-files,
.app-forms .item-page .content,
.com-phocadownload.view-category .item-page .content {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--card-gap);
}

/* Individual item: title + actions (“Download”, “Details”) often appear as separate <a> tags.
   We group them visually using :where(li, p, div) as generic containers. */
.app-forms :where(.phoca-dl-file-box, .phoca-dl-item, li, p, div) > a:first-child[href*="download="],
.com-phocadownload.view-category :where(.phoca-dl-file-box, .phoca-dl-item, li, p, div) > a:first-child[href*="download="],
.app-forms :where(.phoca-dl-file-box, .phoca-dl-item, li, p, div) > a:first-child:not([class]) {
  display: block;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  padding: 16px 16px 56px; /* room for button row */
  position: relative;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  min-height: 140px;
}

/* Hover lift */
.app-forms :where(.phoca-dl-file-box, .phoca-dl-item, li, p, div) > a:first-child:hover,
.com-phocadownload.view-category :where(.phoca-dl-file-box, .phoca-dl-item, li, p, div) > a:first-child:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0,0,0,.08);
  border-color: #dfe6ee;
}

/* Title inside the card */
.app-forms :where(.phoca-dl-file-box, .phoca-dl-item, li, p, div) > a:first-child,
.com-phocadownload.view-category :where(.phoca-dl-file-box, .phoca-dl-item, li, p, div) > a:first-child {
  color: #0f172a; /* slate-900 */
  font-weight: 700;
  line-height: 1.3;
}

/* Action row: target the next “Download”/“Details” links and style as buttons */
.app-forms :where(.phoca-dl-file-box, .phoca-dl-item, li, p, div) > a + a,
.app-forms :where(.phoca-dl-file-box, .phoca-dl-item, li, p, div) ~ a[href*="download="],
.com-phocadownload.view-category :where(.phoca-dl-file-box, .phoca-dl-item, li, p, div) > a + a,
.com-phocadownload.view-category :where(.phoca-dl-file-box, .phoca-dl-item, li, p, div) ~ a[href*="download="] {
  position: absolute;
  left: 16px;
  bottom: 12px;
  display: inline-block;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid #0ea5e9; /* sky-500 */
  background: #0ea5e9;
  color: #fff !important;
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1;
  margin-right: 8px;
}

/* If there's a third link like “Details”, show it as a ghost button beside Download */
.app-forms :where(.phoca-dl-file-box, .phoca-dl-item, li, p, div) > a + a + a,
.com-phocadownload.view-category :where(.phoca-dl-file-box, .phoca-dl-item, li, p, div) > a + a + a {
  position: absolute;
  left: 120px; /* sits to the right of Download */
  bottom: 12px;
  background: transparent;
  color: #0ea5e9 !important;
  border: 1px solid #0ea5e9;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.875rem;
}

/* Make the plain “Details” text (when not third) look like a small link under the title */
.app-forms a:where(:not([href*="download="])):where(:contains("Details")),
.com-phocadownload.view-category a:where(:not([href*="download="])):where(:contains("Details")) {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.875rem;
  color: #0369a1 !important;
}
/* Note: :contains() is not standard; see note below for a safer alternative. */

/* Compact the empty lines that Phoca sometimes outputs between links */
.app-forms br,
.com-phocadownload.view-category br {
  display: none;
}

/* Mobile tweaks */
@media (max-width: 480px) {
  .app-forms .phoca-dl-category-box,
  .app-forms .phoca-dl-files,
  .com-phocadownload.view-category .phoca-dl-category-box,
  .com-phocadownload.view-category .phoca-dl-files {
    grid-template-columns: 1fr;
  }
  .app-forms :where(.phoca-dl-file-box, .phoca-dl-item, li, p, div) > a:first-child,
  .com-phocadownload.view-category :where(.phoca-dl-file-box, .phoca-dl-item, li, p, div) > a:first-child {
    padding-bottom: 72px; /* more room for buttons on small screens */
  }
  .app-forms :where(.phoca-dl-file-box, .phoca-dl-item, li, p, div) > a + a + a,
  .com-phocadownload.view-category :where(.phoca-dl-file-box, .phoca-dl-item, li, p, div) > a + a + a {
    left: 16px;
    bottom: 12px;
    transform: translateY(40px); /* drop below Download */
  }
}

/* Subtle focus ring for accessibility */
.app-forms a:focus,
.com-phocadownload.view-category a:focus {
  outline: 2px solid #38bdf8;
  outline-offset: 2px;
  border-radius: 8px;
}
