:root {
  --text-black: #333;
  --ifha-official: #003150;
  --text-grey: #888;
}

html {
  scroll-behavior: smooth;
}

.resources-block {
  -webkit-text-size-adjust: 100%;
  color: var(--text-black);
  font-family: Poppins, sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
  text-align: center;
  flex-direction: column;
  flex: none;
  justify-content: flex-start;
  align-items: center;
  max-width: 220px;
  font-size: 13.5px;
  line-height: 1.25em;
  display: flex;
  min-height: auto;
  padding: 10px 5px 5px;
}

.icon-circle {
  background-color: #f5f5f5;
  border: 3px solid #e2e2e2;
  border-radius: 100%;
  flex: none;
  width: 135px;
  height: 135px;
  margin-bottom: 10px;
  padding: 40px;
  text-decoration: none;
  transition: all 0.4s;
  overflow: hidden;
  box-shadow: 0 0 0 8px #f5f5f5;
  transition: transform 0.3s ease;
}

.icon-circle:hover {
  border: 3px solid var(--ifha-official);
  transform: translateY(-10px);
}

.flex-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.flex-col {
  width: 23%;
  margin-bottom: 20px;
}

/* 2x2 layout for mobile */
@media (max-width: 768px) {
  .flex-col {
    width: 48%;
  }
}

@media screen and (max-width: 991px) {
  .flex-col {
    width: 48%;
  }

  .icon-circle {
    width: 100px;
    height: 100px;
    padding: 25px;
  }

  .box-button.box-arrow.blue-box {
    font-size: 12px;
  }

  .flex-two-col {
    flex-direction: column !important;
  }

  .link-flex-box {
    width: 80% !important;
  }
}

.w-inline-block {
  max-width: 100%;
  display: inline-block;
}

.icon-center {
  opacity: 0.8;
  object-fit: contain;
  object-position: 50% 50%;
  width: 100%;
  height: 100%;
}

.image-below-gradient {
  object-fit: cover;
  width: 100%;
  height: 100%;
  margin-left: 2px;
  position: absolute;
  inset: 0%;
}

.gradient-image-deco {
  width: 60%;
  height: 100%;
  margin-left: auto;
  position: absolute;
  inset: 0% 0% 0% auto;
  overflow: hidden;
}

.feature-block-gradient {
  background-color: #ffffff;
  margin-bottom: 20px;
  position: relative;
}

.feature-block-content {
  text-shadow: 0 0 12px #ffffffe6;
  padding: 20px 30% 36px 20px;
  position: relative;
  inset: 0%;
}

.content-rt-compact {
  padding-bottom: 0.6em;
  position: relative;
}

.gradient-layer {
  background-image: linear-gradient(90deg, #ffffff, #fff0);
  position: absolute;
  inset: 0%;
}

.box-button.box-arrow.blue-box {
  background-color: var(--ifha-official);
}

.box-button.box-arrow {
  background-color: var(--ifha-official);
  background-image: url("/AibResources/arrow.svg");
  background-position: 91%;
  background-repeat: no-repeat;
  background-size: auto 10px;
  min-width: 130px;
  padding-right: 60px;
  transition: background-position 0.3s ease;
}

.box-button {
  background-color: var(--ifha-official);
  color: #fff;
  letter-spacing: 0.015em;
  text-shadow: none;
  font-family: Montserrat, sans-serif;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
}

.w-button {
  color: #fff;
  line-height: inherit;
  cursor: pointer;
  background-color: var(--ifha-official);
  border: 0;
  border-radius: 0;
  padding: 9px 15px;
  text-decoration: none !important;
}

.box-button.box-arrow:hover {
  background-position: 95%;
}

.box-button,
.box-button a :hover {
  color: white !important;
}

.flex-two-col.stretch {
  justify-content: space-around;
  align-items: stretch;
}

.flex-two-col {
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  padding-bottom: 0;
  display: flex;
  position: relative;
}

.link-flex-box {
  z-index: 9;
  color: var(--text-black);
  text-align: center;
  background-color: #fff;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-left: 25px;
  margin-right: 25px;
  margin-top: 35px;
  padding: 35px 25px 30px;
  line-height: 1.6em;
  text-decoration: none !important;
  transition: all 0.2s;
  display: flex;
  position: relative;
  box-shadow: 1px 1px 20px #1e345626;
  transition: transform 0.3s ease;
}

.link-flex-box:hover {
  transform: translateY(-5px);
}

.content-p {
  color: var(--text-black);
  flex-grow: 1;
  text-decoration: none;
}

.box-button.box-line {
  border: 1px solid var(--text-black);
  color: var(--text-black);
  text-align: center;
  cursor: pointer;
  background-color: #fff;
  width: auto;
  min-width: 200px;
  height: auto;
  padding: 9px 25px;
  position: relative;
  overflow: hidden;
  color: black !important;
}

.box-button.box-line:hover {
  background-color: var(--ifha-official);
  color: white !important;
}

.link-clean h4 {
  color: var(--text-black) !important;
  text-decoration: none;
}

.link-clean h4:hover {
  color: var(--ifha-official) !important;
}

.deco-bar {
  background-color: var(--ifha-official);
  width: 50px;
  height: 6px;
  margin-top: 15px;
  margin-bottom: 15px;
}

.member-title {
  text-align: center;
  margin-top: 45px;
  color: var(--ifha-official);
  font-family: "Longines Sans Text";
}

.title-detailed {
  font-size: 14px;
  font-weight: 400;
  color: var(--ifha-official);
}

.title-detailed.second {
  color: var(--text-grey);
}

.member-name.council {
  margin-top: 50px;
}

li {
  margin-top: 15px;
}

.cover-image-container {
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.cover-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: var(--ifha-official);
  padding: 5px;
}

.fancy-hr {
  border: none;
  height: 2px;
  background: linear-gradient(
    to right,
    var(--ifha-official),
    transparent,
    var(--ifha-official)
  );
  margin: 20px 0 20px 0;
}

.paper-title {
  color: var(--ifha-official) !important;
  font-weight: bold;
  font-family: "Longines Sans Text";
}

.paper-date {
  color: var(--text-grey);
  font-family: sans-serif;
}

.video-date {
  color: var(--text-grey);
  font-family: sans-serif;
  margin-top: 15px;
}

.faq-text {
  line-height: 1.8;
  font-size: larger;
}

.sub-navbar {
  background-color: var(--ifha-official); /* Primary background color */
  padding: 15px 0; /* Slightly more padding for breathing room */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
  border-radius: 8px; /* Rounded corners for softer look */
  margin-bottom: 25px;
}

.sub-navbar .nav-pills > li > a {
  color: #ffffff; /* White text color */
  font-weight: bold;
  border-radius: 25px;
  padding: 10px 20px;
  position: relative;
  background-color: transparent;
  transition: background-color 0.3s ease, color 0.3s ease;
  text-decoration: none;
  overflow: hidden;
}

/* Hover effect: underline animation */
.sub-navbar .nav-pills > li > a::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: #1ecbe1; /* Light aqua underline */
  transition: width 0.3s ease, left 0.3s ease;
}

.sub-navbar .nav-pills > li > a:hover::before {
  width: 100%; /* Extend underline */
  left: 0; /* Align underline to the start */
}

.sub-navbar .nav-pills > li > a:hover {
  background-color: #0d4373; /* Slightly lighter blue on hover */
  color: #ffffff;
}

.sub-navbar .nav-pills > li.active > a {
  background-color: #1ecbe1; /* Aqua active link */
  color: #003150; /* Dark blue text for contrast */
}

.sub-navbar .nav-pills > li.active > a::before {
  background-color: #0d4373; /* White underline for active */
  width: 100%;
  left: 0;
}

.sub-navbar .nav-pills > li {
  margin-right: 10px;
}

.sub-navbar .nav-pills > li:last-child {
  margin-right: 0;
}

/* Mobile adjustments */
@media (max-width: 767px) {
  .sub-navbar .nav-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0;
  }

  .sub-navbar .nav-pills > li {
    flex: 0 0 45%;
    margin: 5px;
  }

  .sub-navbar .nav-pills > li > a {
    text-align: center;
    width: 100%;
    padding: 12px 0;
    font-size: 14px;
  }
}
