/* Layout container */
.irpg-wrap {
	width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
  box-sizing: border-box;
}

/* Filters */
.irpg-filters {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
	background: #0067A6;
    padding: 12px 24px 12px 24px;
}
.irpg-filters select {
  padding: 10px 12px;
  border: 1px solid #0067A6;
  background: #fff;
  width: 260px;
  border-radius: 0;
}
.irpg-filters a#irpg-reset {
  color: #fff;
  text-decoration: underline;
  cursor: pointer;
  font-size: 14px;
}

/* Grid */
.irpg-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px; /* spacing between tiles */
  align-items: stretch;
}

/* Card */
.irpg-card {
  background: #f2f2f2;
  overflow: hidden;
}
.irpg-card a.irpg-card-link {
  color: inherit;
  text-decoration: none;
  display: block;
  height: 100%;
}
.irpg-card:hover {
}

/* Media area */
.irpg-card-media {
  width: 100%;
  aspect-ratio: 16 / 9; /* keeps all images consistent in shape */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f7f7f7;
}
.irpg-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Fallback */
.irpg-card-fallback {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f0f0f0, #e6e6e6);
}

/* Content */
/* Card Body */
.irpg-card-body {
  position: relative;
  display: flex;
    flex-direction: row;
    align-items: flex-end;
  padding: 18px;
  box-sizing: border-box;
}

.irpg-card-left {
	width: 65%;
	padding-right: 10px;
}
.irpg-card-right {
	width: 35%;
}

/* Category */
.irpg-card-category {
  font-size: 14px;
  color: #0067A6;
  text-transform: uppercase;
	font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

/* Title */
.irpg-card-title {
  margin: 0 0 6px 0;
}

/* Date */
.irpg-card-date {
  font-size: 12px;
  color: #0067A6;
  text-transform: uppercase;
  font-weight: 300
  margin-bottom: 18px;
}

/* Read More button */
.irpg-readmore-wrap {
	text-align: right;
}

.irpg-readmore {
  display: inline-block;
  padding: 8px 14px;
  background-color: #f2f2f2;
  color: #0067A6;
  font-size: 14px;
	font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.5px;
	border: 1px solid  #0067A6;
  transition: background-color 0.2s ease;
}

.irpg-readmore:hover {
  background-color:  #0067A6;
	color: #fff;
	border: 1px solid  #0067A6;
}

/* Pagination */
.irpg-pagination {
  display: flex;
  gap: 8px;
  margin-top: 48px;
  flex-wrap: wrap;
  justify-content: center;
}
.irpg-pagination a {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid #0067A6;
  text-decoration: none;
  color: #0067A6;
  font-size: 14px;
}
.irpg-pagination a.active {
  background: #0067A6;
  color: #fff;
  border-color: transparent;
}

/* No results */
.irpg-no-results {
  padding: 36px;
  text-align: center;
  color: #666;
}

/* Loading state */
.irpg-results.irpg-loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Responsive */
@media (max-width: 980px) {
	.irpg-filter-left {
		margin: 0 auto;
	}
	.irpg-filter-right {	
    width: 100%;
    text-align: center;

	}
  .irpg-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .irpg-filters {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
