/* =====================================================
   1. ROOT VARIABLES (Colors & Global Tokens)
===================================================== */
:root {
  /* Brand Colors */
  --primary: #d6643a;
  --secondary: #0074bb;
  --sky-blue: #D6E9F4;
  --aegis-dark: #313233;
  --light-blue: #f6f6f6;

  /* Black Opacity */
  --black-20: rgba(0, 0, 0, 0.2);
  --black-5: rgba(0, 0, 0, 0.05);
  --black-50: rgba(0, 0, 0, 0.5);
  --black-60: rgba(0, 0, 0, 0.6);

  /* White Opacity */
  --opacity-white-10: rgba(255, 255, 255, 0.10);
  --opacity-white-20: rgba(255, 255, 255, 0.20);
  --opacity-white-50: rgba(255, 255, 255, 0.50);
  --opacity-white-60: rgba(255, 255, 255, 0.60);
  --opacity-white-75: rgba(255, 255, 255, 0.75);

  /* Blue Opacity */
  --color-blue-opacity-8: rgba(0, 116, 187, 0.08);

  /* Other */
  --dark: #313233;
}

/* =====================================================
   2. GLOBAL TYPOGRAPHY
===================================================== */

/* Default font for whole site */
body {
  font-family: 'Nunito', sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  padding-top:79px;
}

/* Paragraph spacing */
p {
  margin-bottom: 16px;
}

/* Headings */
h1 { font-size: 36px; font-weight: 600; line-height: 1.2; }
h2 { font-size: 30px; font-weight: 600; line-height: 1.2; }
h3 { font-size: 26px; font-weight: 600; line-height: 1.2; }
h4 { font-size: 22px; font-weight: 600; line-height: 1.3; }
h5 { font-size: 18px; font-weight: 600; line-height: 1.4; }
h6 { font-size: 16px; font-weight: 600; line-height: 1.4; }

/* Custom h7 support */
h7 {
  display: block;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}

/* =====================================================
   3. TEXT UTILITIES
===================================================== */

.text-large   { font-size: 20px; line-height: 20px; }
.text-medium  { font-size: 18px; line-height: 18px; }
.text-regular { font-size: 16px; line-height: 16px; }
.text-small   { font-size: 14px; line-height: 14px; }
.text-tiny    { font-size: 12px; line-height: 12px; }

.fw-bold {
	font-weight: 600 !important;
}
.fw-bolder {
  font-weight: 700 !important;
}

.text-primary   { color: var(--primary) !important; }
.text-secondary { color: var(--secondary) !important; }
.text-dark      { color: var(--aegis-dark) !important; }
.text-black-50  { color: var(--black-50) !important; }
.text-light     { color: #fff !important; }

.white-opacity-60 { color: var(--opacity-white-60); }
.opacity-white-50 { color: var(--opacity-white-50); }
.opacity-white-50-link { color: var(--opacity-white-50); transition: all .3s ease-in;}
.opacity-white-50-link:hover { color: white; }
.link-primary     { transition: all .3s ease-in; color: var(--primary); }
.link-primary:hover { color: var(--primary); opacity:  0.75; }

.link-black-60 {
  color: var(--black-60);
  transition: all .3s ease-in;
  font-size: 16px;
  cursor: pointer;
  text-underline-offset: 8px;
  text-decoration-color: transparent;
}
.link-black-60:hover,
.link-black-60.active {
  color: var(--primary);
  text-underline-offset: 8px;
  text-decoration-color: var(--primary);
}

/* =====================================================
   4. BACKGROUNDS
===================================================== */

.green-bg-panel {
  background: linear-gradient(182deg, #77AA45 13.77%, #8FBF48 56.76%, #72AB3D 85.15%);
}

.light-blue-bg {
  background: rgba(0, 116, 187, 0.03);
}

.blue-bg {
  background: var(--color-blue-opacity-8);
}

.blue-gradient-bg {
  background-image: linear-gradient(
    0deg,
    #0053A2 0.05%,
    #0074BB 70.03%,
    #0095DA 100.02%
  );
}

/* dark - light blue */
.blue-gradient-bg-flip {
  background-image: linear-gradient(
    180deg,
    #0053A2 0.05%,
    #0074BB 70.03%,
    #0095DA 100.02%
  );
}

.footer-green-bg {
  background: linear-gradient(
    269deg,
    #77AA45 16.82%,
    #84BA33 48.73%,
    #72AB3D 80.63%
  );
}

/* =====================================================
   5. BUTTONS
===================================================== */

.btn {
  padding: 5px 8px;
  border-radius: 100px;
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: 1.5;
}

.btn i {
  margin-right: 10px;
}

.btn-link {
  text-underline-offset: 8px;
  font-weight: 400;
}
.btn-link:focus {
	box-shadow: none;
}

.footer-green-bg a:hover {
  color: var(--opacity-white-75) !important;
  text-decoration-color: var(--opacity-white-75) !important;
}

.btn-sky-blue {
  background-color: var(--sky-blue);
  border-color: var(--sky-blue);
  color: var(--aegis-dark);
}

.btn-light-dark {
  background-color: var(--black-20);
  color: #fff;
}

.btn-light-gray {
  background-color: var(--black-5);
  color: var(--primary);
}

/* =====================================================
   6. NAVBAR
===================================================== */

.navbar-brand img {
  max-width: 300px;
  max-height: 55px;
}
ul#aegis-headerNav > li > a{
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: 24px;
  color: var(--aegis-dark);
  padding: 0 16px;
}

/* =====================================================
   7. COMPONENTS
===================================================== */
#home-header .s8-templates-section-content {
  margin-top: 80px !important;
}

/* Home Industry Panel */
.home-industry-panel h4 {
  margin-top: 16px;
  margin-bottom: 32px;
}

/* Gray Shield Icon */
.gray-shield-icon {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='66' height='68' viewBox='0 0 66 68' fill='none'><path d='M64.3244 4.20908C37.7162 -1.39522 29.6659 -1.41082 1.8102 4.20908C-3.54807 34.3326 1.8103 53.8242 33.9603 68C66.1106 51.1663 68.7898 31.6746 64.3244 4.20908Z' fill='%230074BB' fill-opacity='0.08'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
  width: 66px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gray-shield-icon i {
  font-size: 32px;
  font-style: normal;
  font-weight: 400;
  line-height: 1;
  color: var(--primary);
}

/* Testimonial Card */
.testi-card {
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border-radius: 16px;
  border: none;
  background-color: var(--color-blue-opacity-8);
  opacity: 0.4;
}

.testi-card h2,
.testi-card h5 {
  color: var(--dark);
}

.testi-card h6 {
  color: var(--secondary);
}

.testi-card.swiper-slide-active {
  background-image: linear-gradient(
    0deg,
    #0053A2 0.05%,
    #0074BB 70.03%,
    #0095DA 100.02%
  );
  opacity: 1;
}

.testi-card.swiper-slide-active h2,
.testi-card.swiper-slide-active h5 {
  color: #fff;
}

.testi-card.swiper-slide-active h6 {
  color: var(--opacity-white-60);
}

.testi-arrow i {
  font-size: 32px;
}



/* =====================================================
   8. LAYOUT UTILITIES (Spacing & Gap)
===================================================== */

.mt-70 { margin-top: 40px; }
.mt-80 { margin-top: 40px; }
.mb-80 { margin-bottom: 40px; }
.mt-32 {margin-top: 32px; }
.ms-32 {margin-left: 32px; }
.mb-32 {margin-bottom: 32px; }

.my-32 {
  margin-top: 20px;
  margin-bottom: 20px;
}

.padding-top-80    { padding-top: 40px; }
.padding-bottom-80 { padding-bottom: 40px; }
.padding-top-48    { padding-top: 28px; }
.padding-bottom-48 { padding-bottom: 28px; }
.py-32 {
  padding-top: 20px;
  padding-bottom: 20px;
}

.padding-16 { padding: 16px; }
.p-32 { padding: 20px; }

.gap-80 { gap: 40px; }
.gap-53 { gap: 30px; }
.gap-32 { gap: 20px; }
.gap-16 { gap: 16px; }
.gap-10 { gap: 10px; }

.gutter-32 { --bs-gutter-x: 32px; }

.rounded-24 { border-radius: 24px; }
.border-radius-16 { border-radius: 16px; }

.list-bold {
  font-weight: 600;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* =====================================================
   9. FOOTER
===================================================== */

.footer-contact-block {
  display: flex;
  padding: 12px;
  align-items: flex-start;
  gap: 10px;
  align-self: stretch;
  border-radius: 16px;
  background: var(--opacity-white-10);
  transition: all 0.2s ease-in;
}

.footer-contact-block a {
  text-decoration: none;
  display: block;
  width: 100%;
  height: 100%;
}

.footer-contact-block:hover {
  background-color: var(--opacity-white-20);
}

.footer-contact-block p {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}

.social-link-holder a {
  font-size: 16px;
  color: white;
}

.call-link {
  text-decoration-color: var(--opacity-white-50);
}

.award-row {
  align-items: flex-end;
  margin-top: auto;
}

.award-row .light-blue-bg {
  background: rgba(32, 95, 150, 0.05);
  height: 100%;
}

/* about page */


/* career page */
.career-why-join-panel h7,
.career-why-stay-panel h7{
    line-height: 1.3;
}
.career-header-img {
    /* image is cut off, so hide it */
    display: none;
}

/* service general page */
.service-type-row {
  --bs-gutter-x: 32px;
  --bs-gutter-y: 32px;
}
.service-type-row .col .blue-bg {
	height: 100%;
}
.books-you-trust-row {
  --bs-gutter-x: 40px;
}
.row-gap-32 {
  --bs-gutter-y: 32px;
}
.row-gap-x-32 {
  --bs-gutter-x: 32px;
}
.row-gap-80 {
  --bs-gutter-x: 40px;
}
.row-gap-16 {
  --bs-gutter-x: 16px;
  --bs-gutter-y: 16px;
}
.object-fit-contain {
  object-fit: contain !important;
}

/*resources*/
.resource-header img {
  width: 50%;
}


.latest-blog-panel img {
  aspect-ratio: 3/2;
  border-radius: 16px;
  box-shadow: 0 4px 8px -2px rgba(0, 0, 0, 0.10), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
  object-fit: cover;

}
.post-link  {
	display: flex !important;
	flex-direction: column;
	height: 100%;
}
.post-link > * {
  transition: all .3s ease-in;
}
.post-link:hover > * {
  opacity: 0.7;
}
.cat-btn-group {
	min-height: 36px;
}

/*contact form*/
.formRow:not(.client-type-radio-holder) {
  border-radius: 8px;
  padding: 5px 10px;
}
.formRowLabel {
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: var(-black-50);
  padding-bottom: 8px;
}
input, textarea {
  border-color: transparent;
  background-color: var( --opacity-white-60);
}
.client-type-radio-holder {
  background-color: transparent;
}
.client-type-radio-holder .formRowLabel {
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.5;
  color: var(--aegis-dark);
}

.client-type-radio-holder .s8-radiobutton-wrapper {
  display: inline-block;
  padding: 5px 8px;
  margin-right: 0.5rem;
  border-radius: 100px;
  background-color: var(--black-5);
  cursor: pointer;
  user-select: none;
  color: var(--primary);
  flex-grow: 1;
  width: 50%;
  flex-basis: 50%;
}
.s8-radiobutton-label {
  margin-left: 10px;
}
.client-type-radio-holder .s8-radiobuttongroup {
  flex-direction: row;
  gap: 32px;
}
.enquiry-type-radio-holder input {
  margin-right: 8px;
}
#message {
  height: 220px !important;
}


@media (min-width: 768px) {

  h1 { font-size: 44px; }
  h2 { font-size: 38px; }
  h3 { font-size: 32px; }
  h4 { font-size: 26px; }
  h5 { font-size: 22px; }
  h6 { font-size: 18px; }

}



@media (min-width: 992px) {
  p {
    margin-bottom: 32px;
  }
  .mt-70 { margin-top: 70px; }
  .mt-80 { margin-top: 80px; }
  .mb-80 { margin-bottom: 80px; }
  .mt-32 {margin-top: 32px; }
  .mb-32 {margin-bottom: 32px; }

  .my-32 {
    margin-top: 32px;
    margin-bottom: 32px;
  }

  .padding-top-80    { padding-top: 80px; }
  .padding-bottom-80 { padding-bottom: 80px; }
  .padding-top-48    { padding-top: 48px; }
  .padding-bottom-48 { padding-bottom: 48px; }
  .py-32 {
    padding-top: 32px;
    padding-bottom: 32px;
  }
  .p-32 { padding: 32px; }
  .gap-80 { gap: 80px; }
  .gap-53 { gap: 53px; }
  .gap-32 { gap: 32px; }

  .about-header-img {
    position: absolute;
    width: 55%;
    bottom: 0;
    right: -20%;
    top: auto;
  }
  .padding-bottom-lg-80 {
    padding-bottom: 80px;
  }
  .about-award-image-holder {
    position: absolute;
    bottom: -10px;
    right: 40px;
  }
  .books-you-trust-row {
    --bs-gutter-x: 80px;
  }

  .row-gap-80 {
    --bs-gutter-x: 80px;
  }
}

@media (min-width: 1200px) {

  h1 { font-size: 56px; }
  h2 { font-size: 48px; }
  h3 { font-size: 40px; }
  h4 { font-size: 32px; }
  h5 { font-size: 24px; }
  h6 { font-size: 20px; }
  .career-header-img {
    position: absolute;
    width: 30%;
    bottom: -20%;
    right: 5%;
    top: auto;
    display: block;
  }
  .padding-bottom-xl-80 {
    padding-bottom: 80px;
  }

}



@media (min-width: 1400px) {
  .content-ontop {
    position: absolute;
    top: 25%;
    left: 50%;
    transform: translate(-50%, 0);
    text-align: center;
    width: 70%;
  }
  .award-row {
    align-items: flex-end;
    margin-top: -168px;
  }
  .resource-header {
    height: 397px;
  }
  .resource-header img {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 50%;
  }
}


@media (max-width: 1399.98px) {
  ul#aegis-headerNav {
    padding: 1rem 0;
  }
  /* footer */
  .footer-why-choose svg {
    display: none;
  }
  .content-ontop {
      position: relative;
      top: auto;
      left: auto;
      transform: none;
      width: 100%;
      padding: 1rem;
      margin-bottom: 1.5rem;
      background-color: var(--opacity-white-20);
      border-radius: 16px;
  }
}
@media (max-width: 991.98px) {
  .resource-header .left-column {
    text-align: center;
  
  }
  .footer-accreditation-panel .logo-item {
    width: 16.66%;
    flex-basis: 16.66%;
  }
}

@media (max-width: 575.98px) {
  .text-left-mobile {
    text-align: left;
  }
}

.bg-light-blue {
	background-color: var(--light-blue);
}
.list-bold li {
	line-height: 1.3;
}
