.pillars-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 0; /* No space between cards */
  justify-content: center;
  padding: 1rem;
}

.pillar-card {
  display: block;
  background: #fff;
  text-decoration: none;
  color: inherit;
  border-radius: 0; /* No rounded corners */
  box-shadow: none; /* Remove default shadow */
  padding: 1.5rem;
  width: 274px;
  flex: 0 0 auto;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.pillar-card:hover {
  background-color: #f5f5f5;
}

.pillar-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
  flex-direction: row;
}

.pillar-icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.pillar-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
  color: #037b90;
}

.pillar-description {
  color: #333;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  line-height: 1.5em;
  max-height: 6em;
  position: relative;
}

.pillar-description {
  display: -webkit-box;
  -webkit-line-clamp: 5;      /* Limit to 5 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  position: relative;
  line-height: 1.5em;
  max-height: calc(1.5em * 5); /* Fallback height */
}


.pillar-description:hover::after {
  background: #f5f5f5;
}

@media (max-width: 768px) {
  .pillars-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .pillar-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .pillar-icon img {
    margin-bottom: 0.5rem;
  }
}

/*Node Pilar*/
.no-pillar-main-icon img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.no-pillar-description img {
  max-width: 100%;
  height: auto;
}

.no-pillar-related-icon {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 8px;
}

/* Make the h1 title even bigger */
.no-pillar-header h1 {
  font-size: 2.75rem; /* Override Bootstrap if needed */
  font-weight: 700;
  color: #000; /* Ensure it's black */
}

/* List styling (already mostly okay) */
.no-pillar-description {
  line-height: 1.7;
  font-size: 1.05rem;
  color: #333;
}

.no-pillar-description ul,
.no-pillar-description ol {
  padding-left: 2rem;  /* Indentation */
  margin-bottom: 1rem;
}

.no-pillar-description li {
  margin-bottom: 0.5rem;
  list-style: disc outside;  /* Bullet or number outside the line */
}



/*Resources*/
.resource-cards-wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 40px 0;
  padding: 0 16px;
}

.resource-card {
  display: block;
  text-decoration: none;
  background-color: #ffffff;
  padding: 16px;
  transition: box-shadow 0.3s ease;
}

.resource-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.resource-card-inner {
  display: flex;
  align-items: center;
  gap: 20px;
}

.resource-card-image {
  flex-shrink: 0;
}

.resource-card-image img {
  width: 80px;
  height: 80px;
  object-fit: cover;
}

.resource-card-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.resource-card-title {
  margin: 0 0 2px;
  font-size: 1.25rem;
  font-weight: 600;
  color: #222222;
}

.resource-card-description {
  font-size: 1rem;
  color: #444444;
  line-height: 1.5;
}

/* Responsive: 1 column on small screens */
@media (max-width: 768px) {
  .resource-cards-wrapper {
    grid-template-columns: 1fr;
  }

  .resource-card-inner {
    flex-direction: row;
    align-items: flex-start;
  }

  .resource-card-image img {
    width: 60px;
    height: 60px;
  }
}


/*Research List*/
.ad-research-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  max-width: 100%;
  margin-bottom: 40px; /* You can adjust this value as needed */
}

.ad-research-item {
  display: flex;
  flex-direction: column;
  background-color: #f7f7f7
}

.ad-research-image {
  width: 100%;
  height: 240px;
  background-size: cover;
  background-position: center;
}

.ad-research-title {
  padding-left: 12px; 
  padding-right: 12px;
}

.ad-research-title a {
  color: #000;
  box-shadow: inset 0 -1px 0 #ff7f50;
  background: linear-gradient(to bottom, #ff7f50 0%, #ff7f50 100%);
  background-position: 0 100%;
  background-repeat: repeat-x;
  background-size: 0 0;
  text-decoration: none;
  transition: background-size .2s;
}

.ad-research-title a:hover {
  background-size: 4px 100%;
  color: #000;
}

.ad-research-meta {
  font-size: 0.9em;
  padding-left: 12px; 
  padding-right: 12px; 
  color: #444;
}

.ad-research-area {
  color: #037b90;
  font-weight: bold;
}

.ad-research-summary {
  margin-bottom: 12px;
  font-size: 0.9em;
  white-space: nowrap;
  overflow: hidden;
  padding-left: 12px; 
  padding-right: 12px; 
  text-overflow: ellipsis;
}


/*New View*/
/* Card container */
.ouk-news-card {
  background-color: #f8f8f8;
  padding: 1.5rem;
}

/* News list - flexible cards that fill the row */
.ouk-news-list {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: flex-start;
}

/* Individual card fills available space equally */
.ouk-news-item {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #eee;
  overflow: hidden;
  flex: 1 1 calc(33.333% - 2rem); /* 3 items per row with gaps */
  min-width: 280px; /* Prevent too small on large screens */
}

/* Image section */
.ouk-news-image-wrapper {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
}

.ouk-news-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Date overlay top-right */
.ouk-news-date-overlay {
  position: absolute;
  top: 12px;
  right: 12px;
  background-color: #ff7f50;
  color: #fff;
  font-size: 0.9rem;
  padding: 0.35rem 0.7rem;
  font-weight: bold;
}

/* Content below image */
.ouk-news-content {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ouk-news-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
  color: #000;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ouk-news-title a {
  color: #000;
  text-decoration: none;
  box-shadow: inset 0 -1px 0 #ff7f50;
  background: linear-gradient(to bottom, #ff7f50 0%, #ff7f50 100%);
  background-position: 0 100%;
  background-repeat: repeat-x;
  background-size: 0 0;
  transition: background-size 0.2s;
}

.ouk-news-title a:hover {
  background-size: 4px 100%;
  color: #000;
}

/* More link */
.ouk-news-more-wrapper {
  margin-top: 1.2rem;
  width: 100%;
  text-align: center;
}

.ouk-news-more-button {
  color: #ff7f50;
  text-decoration: none;
  font-weight: bold;
}

.ouk-news-more-button:hover {
  text-decoration: underline;
}

/* Responsive for tablets and mobile */
@media (max-width: 1024px) {
  .ouk-news-item {
    flex: 1 1 calc(50% - 2rem); /* 2 per row on medium screens */
  }
}

@media (max-width: 767px) {
  .ouk-news-list {
    flex-direction: column;
    align-items: center;
  }

  .ouk-news-item {
    flex: 1 1 100%;
    width: 95%; /* Full width on mobile */
  }
}



/*Event*/
/* Wrapper for events */
.ouk-event-wrapper {
  padding-bottom: 1rem;
}

/* Event list as responsive grid */
.ouk-event-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  justify-content: center;
}

/* Individual event card */
.ouk-event-item {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #eee;
  overflow: hidden;
}

/* Event image wrapper */
.ouk-event-image-wrapper {
  position: relative;
  width: 100%;
}

/* Event image */
.ouk-event-image {
  width: 100%;
  height: 160px; /* Consistent image height */
  object-fit: cover;
  display: block;
}

/* Date overlay on image */
.ouk-event-date-overlay {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #ff7f50;
  color: #fff;
  font-size: 0.85rem;
  padding: 0.3rem 0.6rem;
  font-weight: bold;
}

/* Event content below image */
.ouk-event-content {
  padding: 0.8rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-align: left; /* <-- left-aligned now */
}

/* Event title */
.ouk-event-title {
  font-size: 1.15rem;
  margin: 0;
  color: #000;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ouk-event-title a {
  color: #000;
  box-shadow: inset 0 -1px 0 #ff7f50;
  background: linear-gradient(to bottom, #ff7f50 0%, #ff7f50 100%);
  background-position: 0 100%;
  background-repeat: repeat-x;
  background-size: 0 0;
  text-decoration: none;
  transition: background-size .2s;
}

.ouk-event-title a:hover {
  background-size: 4px 100%;
  color: #000;
}

/* Location & Time */
.ouk-event-location {
  font-size: 0.9rem;
  color: #000;
}

.ouk-event-time {
  font-size: 0.85rem;
  color: #666;
}

/* Responsive for tablet: 2 per row */
@media (max-width: 991px) {
  .ouk-event-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Responsive for mobile: stack vertically */
@media (max-width: 767px) {
  .ouk-event-list {
    grid-template-columns: 1fr;
  }

  .ouk-event-title {
    white-space: normal;
  }
}

/* Menu Custom Description */
.mega-menu__dropdown__desc.line-clamp-7 {
  display: -webkit-box;
  -webkit-line-clamp: 7;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}



/*Job Advert*/
.job-advert-heading,
.job-advert-description {
  text-align: left;
  margin-bottom: 1rem;
}

.job-advert-table {
  width: 100%;
  border-collapse: collapse;
  font-family: Arial, sans-serif;
}

.job-advert-table thead {
  background-color: #037b90;
  color: #fff;
}

.job-advert-table th,
.job-advert-table td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: left;
  vertical-align: top;
}

.vertical-list {
  padding-left: 1.2em;
  margin: 0;
}

.action-btn {
  display: inline-block;
  padding: 6px 12px;
  background-color: #ff7f50;
  color: white;
  border-radius: 4px;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background-color 0.3s;
}

.action-btn:hover {
  background-color: #e46a3d;
  color: #fff;
}

.job-advert-title a {
  color: #000;
  text-decoration: none;
  box-shadow: inset 0 -1px 0 #ff7f50;
  background: linear-gradient(to bottom, #ff7f50 0%, #ff7f50 100%);
  background-position: 0 100%;
  background-repeat: repeat-x;
  background-size: 0 0;
  transition: background-size 0.2s;
  display: inline-block;
  white-space: normal;         /* allow wrapping */
  overflow-wrap: break-word;   /* wrap long words */
  word-break: break-word;
  max-width: 100%;             /* ensure it doesn't overflow parent */
}

.job-advert-title a:hover {
  background-size: 4px 100%;
  color: #000;
}

/* Responsive for mobile */
@media screen and (max-width: 768px) {
  /* Hide selected columns on mobile */
  .hide-on-mobile {
    display: none !important;
  }

  .job-advert-table th,
  .job-advert-table td {
    font-size: 14px;
    padding: 8px;
  }
}
.job-tabs {
  display: flex;
  gap: 1rem;
  list-style: none;
  padding-left: 0;
  margin-bottom: 1rem;
  border-bottom: 2px solid #ccc;
}

.job-tabs li {
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-bottom: 3px solid transparent;
}

.job-tabs li.active {
  border-color: #037b90;
  font-weight: bold;
  color: #037b90;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}


/*Advert Node*/
.node-job-title {
  font-size: 2.8rem !important;
  margin-bottom: 1rem;
  color: #037b90;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-weight: 700;
}

.node-job-status-label {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: bold;
  line-height: 1;
}

.node-job-status-label.closed {
  background-color: rgba(255, 0, 0, 0.1);
  color: #cc0000;
}

.node-job-status-label.open {
  background-color: rgba(0, 128, 0, 0.1);
  color: #006400;
}

.node-job-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0.25rem 1rem;
  margin-bottom: 1.5rem;
  background-color: #f9f9f9;
  padding: 1rem;
}

.node-job-detail {
  font-size: 1rem;
  line-height: 1.5;
  color: #333;
}

.node-job-detail.full-width {
  grid-column: span 2;
}

.node-job-file-list,
.node-job-tag-list {
  list-style: none;
  padding: 0;
  margin-top: 0.5rem;
}

.node-job-file-list li a {
  color: #037b90;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.node-job-file-list li a:hover {
  border-color: #037b90;
}

.node-job-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.node-job-tag-list li {
  background-color: #eef7f8;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
  color: #037b90;
  font-weight: 600;
}

.node-job-body {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333;
}

.node-job-body ol,
.node-job-body ul {
  margin-left: 1.5rem;
  padding-left: 0.5rem;
}

.node-job-body ol {
  list-style-type: decimal;
}

.node-job-body ul {
  list-style-type: disc;
}

.node-job-apply-top,
.node-job-apply-bottom {
  margin: 1.5rem 0;
  display: flex;
  justify-content: flex-end;
}

.node-job-apply-button {
  background-color: #ff7f50;
  color: white;
  padding: 14px 28px;
  font-size: 1.1rem;
  font-weight: bold;
  border: none;
  text-decoration: none;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.node-job-apply-button:hover,
.node-job-apply-button:focus {
  background-color: #037b90;
  color: white;
  outline: none;
}

.node-job-detail.apply {
  grid-column: span 2;
  display: flex;
  justify-content: flex-end;
  margin-top: 1.5rem;
}

@media (max-width: 600px) {
  .node-job-title {
    font-size: 2rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .node-job-apply-button {
    width: 100%;
    text-align: center;
  }

  .node-job-details-grid {
    grid-template-columns: 1fr;
  }

  .node-job-detail.full-width {
    grid-column: span 1;
  }
}

.node-job-related-section {
  background-color: #f5f5f5;
  padding: 1rem 1.5rem;
  margin-top: 2rem;
  border-left: 4px solid #037b90;
}

.node-job-related-title {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  color: #000;
  font-weight: 600;
}

.node-job-related-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.node-job-related-list li {
  margin-bottom: 0.5rem;
}

.node-job-related-list li a {
  text-decoration: none;
  color: #333;
  transition: color 0.3s;
}

.node-job-related-list li a:hover {
  color: #000;
}

.node-job-title-file a {
  color: #000;
  text-decoration: none;
  box-shadow: inset 0 -1px 0 #ff7f50;
  background: linear-gradient(to bottom, #ff7f50 0%, #ff7f50 100%);
  background-position: 0 100%;
  background-repeat: repeat-x;
  background-size: 0 0;
  transition: background-size 0.2s;

  display: inline-block;
  white-space: normal;         /* Allow text to wrap */
  overflow: visible;           /* Don't cut off text */
  text-overflow: unset;        /* Disable ellipsis */
  word-break: break-word;      /* Break long words if needed */
  max-width: 100%;             /* Ensure it doesn't exceed the parent */
}


.node-job-title-file a:hover {
  background-size: 4px 100%;
  color: #000;
}






