/* Homepage icon boxes + sidebar announcements */

.site-container--home-top {
  margin-top: 1.25rem;
}

/* ----- Icon boxes: single row ----- */
.home-icon-panel {
  border: 1px solid var(--header-topbar-border, #e2e8f0);
  border-radius: var(--header-radius-sm, 0.375rem);
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 6px 18px rgba(15, 23, 42, 0.05);
  overflow: hidden;
}

.home-icon-panel__grid--row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  width: 100%;
}

.home-icon-box {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-width: 0;
  min-height: 7.5rem;
  padding: 1rem 0.65rem;
  border-right: 1px solid var(--header-topbar-border, #e2e8f0);
  background: #fff;
  color: var(--header-ink, #0f172a);
  text-align: center;
  text-decoration: none;
  transition: background-color 0.18s ease;
}

.home-icon-panel__grid--row .home-icon-box:last-child {
  border-right: 0;
}

.home-icon-box:hover,
.home-icon-box:focus {
  background: rgba(218, 33, 39, 0.04);
  color: var(--header-ink, #0f172a);
  text-decoration: none;
}

.home-icon-box__icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--header-radius-sm, 0.375rem);
  background: rgba(218, 33, 39, 0.08);
  color: var(--header-brand, #da2127);
  font-size: 1rem;
  line-height: 1;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.home-icon-box__icon i,
.home-icon-box__icon svg,
.home-icon-box__icon .ez-icon,
.home-icon-box__icon .ez-icon i {
  display: block;
  font-size: 1rem;
  line-height: 1;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
}

.home-icon-box:hover .home-icon-box__icon,
.home-icon-box:focus .home-icon-box__icon {
  background: var(--header-brand, #da2127);
  color: #fff;
}

.home-icon-box__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  width: 100%;
  min-width: 0;
  text-align: center;
}

.home-icon-box__title {
  display: block;
  font-family: Rubik, system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--header-ink, #0f172a);
}

.home-icon-box__desc {
  display: block;
  font-family: Rubik, system-ui, sans-serif;
  font-size: 0.625rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--header-muted, #64748b);
}

.home-icon-box:hover .home-icon-box__title,
.home-icon-box:focus .home-icon-box__title {
  color: var(--header-brand, #da2127);
}

/* ----- Sidebar stack ----- */
.home-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-width: 0;
}

.home-sidebar__widgets {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
}

@media (min-width: 992px) {
  .home-sidebar {
    padding-left: 0.25rem;
  }

  .home-sidebar .home-announcements__header {
    padding: 0.7rem 0.75rem;
  }

  .home-sidebar .home-announcements__title {
    font-size: 0.8125rem;
  }

  .home-sidebar .home-announcements__all {
    padding: 0.25rem 0.45rem;
    font-size: 0.625rem;
  }

  .home-sidebar .home-announcements__item {
    padding: 0.65rem 0.75rem;
  }

  .home-sidebar .home-announcements__item-title {
    font-size: 0.75rem;
  }

  .home-sidebar .home-calendar__header {
    padding: 0.7rem 0.75rem;
  }

  .home-sidebar .home-calendar__title {
    font-size: 0.8125rem;
  }
}

/* ----- President message card ----- */
.home-president {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--header-topbar-border, #e2e8f0);
  border-radius: var(--header-radius-sm, 0.375rem);
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 6px 18px rgba(15, 23, 42, 0.05);
  text-decoration: none;
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.home-president::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 3px;
  background: var(--header-brand, #da2127);
}

.home-president:hover,
.home-president:focus {
  border-color: rgba(218, 33, 39, 0.22);
  box-shadow: 0 8px 22px rgba(218, 33, 39, 0.1);
  transform: translateY(-1px);
  text-decoration: none;
}

.home-president__photo {
  flex: 0 0 3.5rem;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--header-radius-sm, 0.375rem);
  overflow: hidden;
  border: 1px solid var(--header-topbar-border, #e2e8f0);
}

.home-president__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-president__content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.home-president__label {
  font-family: Rubik, system-ui, sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--header-muted, #64748b);
}

.home-president__name {
  font-family: Rubik, system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--header-ink, #0f172a);
  transition: color 0.18s ease;
}

.home-president:hover .home-president__name,
.home-president:focus .home-president__name {
  color: var(--header-brand, #da2127);
}

.home-president__arrow {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: var(--header-radius-sm, 0.375rem);
  background: rgba(218, 33, 39, 0.08);
  color: var(--header-brand, #da2127);
  font-size: 0.65rem;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.home-president:hover .home-president__arrow,
.home-president:focus .home-president__arrow {
  background: var(--header-brand, #da2127);
  color: #fff;
  transform: translateX(2px);
}

.home-sidebar .home-announcements {
  margin-top: 0;
}

.home-sidebar .sidebar {
  margin-top: 0;
}

/* ----- Announcements card ----- */
.home-announcements {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--header-topbar-border, #e2e8f0);
  border-radius: var(--header-radius-sm, 0.375rem);
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 6px 18px rgba(15, 23, 42, 0.05);
  overflow: hidden;
}

.home-announcements__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--header-topbar-border, #e2e8f0);
  background: #fafafa;
}

.home-announcements__title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  font-family: Rubik, system-ui, sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--header-ink, #0f172a);
}

.home-announcements__title::before {
  content: "";
  flex: 0 0 3px;
  width: 3px;
  height: 1.1rem;
  border-radius: 999px;
  background: var(--header-brand, #da2127);
}

.home-announcements__all {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.55rem;
  border: 1px solid rgba(218, 33, 39, 0.18);
  border-radius: var(--header-radius-sm, 0.375rem);
  background: rgba(218, 33, 39, 0.04);
  font-family: Rubik, system-ui, sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--header-brand, #da2127);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.home-announcements__all:hover,
.home-announcements__all:focus {
  background: var(--header-brand, #da2127);
  border-color: var(--header-brand, #da2127);
  color: #fff;
  text-decoration: none;
}

.home-announcements__body {
  display: flex;
  flex-direction: column;
}

.home-announcements__item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--header-topbar-border, #e2e8f0);
  transition: background-color 0.18s ease;
}

.home-announcements__item:last-child {
  border-bottom: 0;
}

.home-announcements__item:hover {
  background: rgba(218, 33, 39, 0.03);
}

.home-announcements__date {
  display: inline-block;
  width: fit-content;
  padding: 0.15rem 0.45rem;
  border-radius: calc(var(--header-radius-sm, 0.375rem) - 2px);
  background: #f1f5f9;
  font-family: Rubik, system-ui, sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--header-muted, #64748b);
}

.home-announcements__item-title {
  margin: 0;
  font-family: Rubik, system-ui, sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.45;
}

.home-announcements__item-title a {
  color: var(--header-ink, #0f172a);
  text-decoration: none;
  transition: color 0.18s ease;
}

.home-announcements__item:hover .home-announcements__item-title a,
.home-announcements__item-title a:focus {
  color: var(--header-brand, #da2127);
}

/* ----- Calendar card ----- */
.home-calendar {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--header-topbar-border, #e2e8f0);
  border-radius: var(--header-radius-sm, 0.375rem);
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 6px 18px rgba(15, 23, 42, 0.05);
  overflow: hidden;
}

.home-calendar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--header-topbar-border, #e2e8f0);
  background: #fafafa;
}

.home-calendar__title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  font-family: Rubik, system-ui, sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--header-ink, #0f172a);
}

.home-calendar__title::before {
  content: "";
  flex: 0 0 3px;
  width: 3px;
  height: 1.1rem;
  border-radius: 999px;
  background: var(--header-brand, #da2127);
}

.home-calendar__body {
  padding: 0.55rem 0.55rem 0.65rem;
}

.home-calendar .calendar-card {
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.home-calendar .fc {
  font-family: Rubik, system-ui, sans-serif;
}

.home-calendar .fc-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  margin-bottom: 0.55rem !important;
}

.home-calendar .fc-toolbar .fc-left,
.home-calendar .fc-toolbar .fc-center,
.home-calendar .fc-toolbar .fc-right {
  float: none !important;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.home-calendar .fc-center h2 {
  margin: 0 !important;
  font-family: Rubik, system-ui, sans-serif;
  font-size: 0.75rem !important;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--header-ink, #0f172a);
  text-transform: capitalize;
}

.home-calendar .fc-button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  height: 1.65rem !important;
  min-width: 1.65rem;
  padding: 0 0.45rem !important;
  border: 1px solid var(--header-topbar-border, #e2e8f0) !important;
  border-radius: var(--header-radius-sm, 0.375rem) !important;
  background: #fff !important;
  box-shadow: none !important;
  text-shadow: none !important;
  font-family: Rubik, system-ui, sans-serif;
  font-size: 0.625rem !important;
  font-weight: 600 !important;
  color: var(--header-ink, #0f172a) !important;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.home-calendar .fc-button:hover,
.home-calendar .fc-button:focus,
.home-calendar .fc-button:active,
.home-calendar .fc-button.fc-state-active,
.home-calendar .fc-button.fc-state-hover {
  background: var(--header-brand, #da2127) !important;
  border-color: var(--header-brand, #da2127) !important;
  color: #fff !important;
  outline: none;
}

.home-calendar .fc-button.fc-state-disabled {
  opacity: 0.45;
}

.home-calendar .fc-button-group > .fc-button {
  margin: 0 0.1rem 0 0 !important;
}

.home-calendar .fc-icon {
  font-size: 0.75rem;
  top: 0 !important;
  margin: 0 !important;
}

.home-calendar .fc-view-container {
  border: 1px solid var(--header-topbar-border, #e2e8f0);
  border-radius: var(--header-radius-sm, 0.375rem);
  overflow: hidden;
}

.home-calendar .fc-day-header {
  padding: 0.4rem 0 !important;
  border-color: var(--header-topbar-border, #e2e8f0) !important;
  background: #f8fafc;
  font-family: Rubik, system-ui, sans-serif;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--header-muted, #64748b);
}

.home-calendar .fc-day-grid td,
.home-calendar .fc-widget-content {
  border-color: var(--header-topbar-border, #e2e8f0) !important;
}

.home-calendar .fc-day-number {
  float: none !important;
  display: block;
  padding: 0.25rem !important;
  font-family: Rubik, system-ui, sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  text-align: center;
  color: var(--header-ink, #0f172a);
}

.home-calendar .fc-other-month .fc-day-number {
  color: #94a3b8;
  opacity: 1;
}

.home-calendar .fc-today {
  background: rgba(218, 33, 39, 0.06) !important;
}

.home-calendar .fc-today .fc-day-number {
  color: var(--header-brand, #da2127);
}

.home-calendar .fc-event {
  margin: 1px 2px !important;
  padding: 0.1rem 0.25rem !important;
  border: 0 !important;
  border-radius: calc(var(--header-radius-sm, 0.375rem) - 2px) !important;
  background-color: var(--header-brand, #da2127) !important;
  font-family: Rubik, system-ui, sans-serif;
  font-size: 0.5625rem !important;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
}

.home-calendar .fc-event .fc-content {
  color: #fff;
  padding: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-calendar .fc-day-grid-event .fc-time {
  display: none;
}

.home-calendar .fc-basic-view .fc-body .fc-row {
  min-height: 2.4rem !important;
}

.home-event-modal .modal-content {
  border: 1px solid var(--header-topbar-border, #e2e8f0);
  border-radius: var(--header-radius-sm, 0.375rem);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
  overflow: hidden;
}

.home-event-modal .modal-header {
  align-items: center;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--header-topbar-border, #e2e8f0);
  background: #fafafa;
}

.home-event-modal .modal-title {
  margin: 0;
  font-family: Rubik, system-ui, sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--header-ink, #0f172a);
}

.home-event-modal .close {
  margin: 0;
  padding: 0;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--header-muted, #64748b);
  opacity: 1;
}

.home-event-modal .modal-body {
  padding: 1rem;
  font-family: Rubik, system-ui, sans-serif;
  font-size: 0.875rem;
  color: var(--header-ink, #0f172a);
}

.home-event-modal .modal-body p {
  margin-bottom: 0.65rem;
}

.home-event-modal .modal-body strong {
  color: var(--header-muted, #64748b);
  font-weight: 600;
}

/* ----- Sidebar banners ----- */
.home-banners {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: 100%;
  min-width: 0;
}

.home-banner {
  display: block;
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--header-topbar-border, #e2e8f0);
  border-radius: var(--header-radius-sm, 0.375rem);
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 6px 18px rgba(15, 23, 42, 0.05);
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.home-banner:hover,
.home-banner:focus {
  border-color: rgba(218, 33, 39, 0.22);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
  transform: translateY(-1px);
  outline: none;
}

.home-banner img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  vertical-align: middle;
}

.home-sidebar .home-banners,
.home-sidebar__widgets .home-banners {
  width: 100%;
}

@media (max-width: 991.98px) {
  .home-icon-panel__grid--row {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .home-icon-box {
    flex: 0 0 9.5rem;
    min-height: 7rem;
  }
}

@media (max-width: 575.98px) {
  .home-icon-box {
    flex: 0 0 8.25rem;
    padding: 0.85rem 0.5rem;
  }

  .home-icon-box__title {
    font-size: 0.6875rem;
  }
}

/* ----- Home news section ----- */
.home-news-section {
  padding-top: 1.25rem;
  padding-bottom: 0.5rem;
}

.home-news-layout {
  align-items: flex-start;
}

.home-news-panel {
  border: 1px solid var(--header-topbar-border, #e2e8f0);
  border-radius: var(--header-radius-sm, 0.375rem);
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 6px 18px rgba(15, 23, 42, 0.05);
  padding: 0.85rem;
  overflow: hidden;
}

.home-news-grid {
  margin-left: -0.4rem;
  margin-right: -0.4rem;
}

.home-news-grid > [class*="col-"] {
  display: flex;
  padding-left: 0.4rem;
  padding-right: 0.4rem;
  margin-bottom: 0.8rem;
}

.home-news-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  border: 1px solid var(--header-topbar-border, #e2e8f0);
  border-radius: var(--header-radius-sm, 0.375rem);
  background: #fff;
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.home-news-card:hover {
  border-color: rgba(218, 33, 39, 0.2);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

.home-news-card__media {
  position: relative;
  display: block;
  overflow: hidden;
  text-decoration: none;
}

.home-news-card__media img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.home-news-card:hover .home-news-card__media img {
  transform: scale(1.03);
}

.home-news-card__date {
  position: absolute;
  right: 0.65rem;
  bottom: 0.65rem;
  padding: 0.2rem 0.5rem;
  border-radius: calc(var(--header-radius-sm, 0.375rem) - 2px);
  background: rgba(255, 255, 255, 0.95);
  font-family: Rubik, system-ui, sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--header-muted, #64748b);
}

.home-news-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.75rem 0.8rem 0.85rem;
}

.home-news-card__title {
  margin: 0;
  font-family: Rubik, system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.4;
}

.home-news-card__title a {
  color: var(--header-ink, #0f172a);
  text-decoration: none;
  transition: color 0.18s ease;
}

.home-news-card:hover .home-news-card__title a,
.home-news-card__title a:focus {
  color: var(--header-brand, #da2127);
}

.home-news-card__excerpt {
  margin: 0;
  flex: 1 1 auto;
  font-family: Rubik, system-ui, sans-serif;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--header-muted, #64748b);
}

.home-news-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: fit-content;
  margin-top: auto;
  font-family: Rubik, system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--header-brand, #da2127);
  text-decoration: none;
  transition: gap 0.18s ease, color 0.18s ease;
}

.home-news-card__link i {
  font-size: 0.65rem;
}

.home-news-card__link:hover,
.home-news-card__link:focus {
  color: var(--header-brand-hover, #b91c22);
  gap: 0.5rem;
  text-decoration: none;
}

.home-news-panel__footer {
  margin-top: 0.15rem;
  padding: 0.85rem 0.5rem 0.25rem;
  border-top: 1px solid var(--header-topbar-border, #e2e8f0);
}

.home-news-panel__all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  min-height: 2.375rem;
  padding: 0 1rem;
  border: 1px solid #cbd5e1;
  border-radius: var(--header-radius-sm, 0.375rem);
  background: #fff;
  font-family: Rubik, system-ui, sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--header-ink, #0f172a);
  text-decoration: none;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.home-news-panel__all i {
  font-size: 0.7rem;
  color: var(--header-brand, #da2127);
  transition: transform 0.18s ease, color 0.18s ease;
}

.home-news-panel__all:hover,
.home-news-panel__all:focus {
  background: var(--header-ink, #0f172a);
  border-color: var(--header-ink, #0f172a);
  color: #fff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
  transform: translateY(-1px);
  text-decoration: none;
}

.home-news-panel__all:hover i,
.home-news-panel__all:focus i {
  color: #fff;
  transform: translateX(2px);
}

@media (max-width: 767.98px) {
  .home-news-panel {
    padding: 0.65rem;
  }

  .home-news-card__body {
    padding: 0.8rem 0.85rem 0.9rem;
  }

  .home-news-card__title {
    font-size: 0.875rem;
  }
}

/* ----- Brand logos strip (above footer) ----- */
.home-brands {
  padding: 1.25rem 0 1.5rem;
  background: #f8fafc;
  border-top: 1px solid var(--header-topbar-border, #e2e8f0);
}

.home-brands__panel {
  border: 1px solid var(--header-topbar-border, #e2e8f0);
  border-radius: var(--header-radius-sm, 0.375rem);
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 6px 18px rgba(15, 23, 42, 0.05);
  padding: 0.65rem 0.5rem;
  overflow: hidden;
}

.home-brands__carousel {
  margin: 0;
}

.home-brands__carousel .slick-list {
  margin: 0;
}

.home-brands__carousel .slick-track {
  display: flex !important;
  align-items: center;
}

.home-brands__item {
  padding: 0 0.35rem;
}

.home-brands__link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 4.25rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid transparent;
  border-radius: var(--header-radius-sm, 0.375rem);
  background: transparent;
  transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.home-brands__link:hover,
.home-brands__link:focus {
  background: #fafafa;
  border-color: var(--header-topbar-border, #e2e8f0);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
  outline: none;
}

.home-brands__link img {
  display: block;
  width: auto !important;
  max-width: 100%;
  max-height: 2.75rem;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.7;
  transition: filter 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.home-brands__link:hover img,
.home-brands__link:focus img {
  filter: grayscale(0);
  opacity: 1;
  transform: scale(1.03);
}

@media (max-width: 767.98px) {
  .home-brands {
    padding: 1rem 0 1.15rem;
  }

  .home-brands__panel {
    padding: 0.45rem 0.25rem;
  }

  .home-brands__link {
    min-height: 3.5rem;
    padding: 0.45rem 0.5rem;
  }

  .home-brands__link img {
    max-height: 2.15rem;
  }
}
