/* Moved over from Helix Custom CSS panel since it was getting too big + hiting character limit. Covers News & Media, News Articles on Homepage, Full Article Page, Request a Demo, and ETHOS AFP Page */



/* Customizes the Latest News section on the Homepage */
#sppb-addon-da99039d-d2a0-458d-b812-e30cb5e22d73 .sppb-addon-articles {
  font-family: 'Raleway', sans-serif;
}

/* 3 column row and forcing the columns to be a strict size overriding the flex columns from Jooomla */
#sppb-addon-da99039d-d2a0-458d-b812-e30cb5e22d73 .sppb-row {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}
#sppb-addon-da99039d-d2a0-458d-b812-e30cb5e22d73 .sppb-addon-article-layout {
  padding: 68px 18px 0;
  width: auto !important;
  max-width: none !important;
  flex: none !important;
}

/* Styling the card itself */
#sppb-addon-da99039d-d2a0-458d-b812-e30cb5e22d73 .sppb-addon-article {
  position: relative;
  height: 100%;
  border: 2px solid transparent;
  background-image: linear-gradient(#fff, #fff), linear-gradient(135deg, #0d1f5c, 
#1faf5a);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  border-radius: 36px;
  padding: 84px 33px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
#sppb-addon-da99039d-d2a0-458d-b812-e30cb5e22d73 .sppb-addon-article:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(13, 31, 92, 0.15);
}
/* Fallback icon circle */
#sppb-addon-da99039d-d2a0-458d-b812-e30cb5e22d73 .sppb-addon-article::before {
  content: "\f1ea";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 135px;
  height: 135px;
  border-radius: 50%;
  background: 
#0d1f5c;
  color: rgba(255,255,255,0.35);
  font-size: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

/* Circular icon look */
#sppb-addon-da99039d-d2a0-458d-b812-e30cb5e22d73 .sppb-article-img-wrap {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 135px;
  height: 135px;
  border-radius: 50%;
  border: 3px solid 
#1faf5a;
  background: #fff;
  overflow: hidden;
  z-index: 2;
  display: block;
}
#sppb-addon-da99039d-d2a0-458d-b812-e30cb5e22d73 .sppb-article-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#sppb-addon-da99039d-d2a0-458d-b812-e30cb5e22d73 .sppb-article-info-wrap {
  display: flex !important;
  flex-direction: column !important;
  gap: 15px;
  width: 100%;
  flex: 1;
}
#sppb-addon-da99039d-d2a0-458d-b812-e30cb5e22d73 .sppb-article-meta {
  order: 2 !important;
}
#sppb-addon-da99039d-d2a0-458d-b812-e30cb5e22d73 .sppb-article-meta time {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: 
#e30913;
}

/* I don't know why but the date was always above the title, etc so hence the explicit ordering */
#sppb-addon-da99039d-d2a0-458d-b812-e30cb5e22d73 .sppb-article-info-wrap h5 {
  order: 1 !important;
  font-size: 20px;
  font-weight: 600;
  color: 
#0d1f5c;
  line-height: 1.6;
  margin: 0;
  flex: 1;
}
#sppb-addon-da99039d-d2a0-458d-b812-e30cb5e22d73 .sppb-article-info-wrap h5 a {
  color: inherit;
  text-decoration: none;
}
#sppb-addon-da99039d-d2a0-458d-b812-e30cb5e22d73 .sppb-article-info-wrap::after {
  content: "";
  order: 3 !important;
  display: block;
  height: 1px;
  background: 
#e8e8e8;
  margin: 6px 0;
}
#sppb-addon-da99039d-d2a0-458d-b812-e30cb5e22d73 .sppb-readmore {
  position: static !important;
  order: 4 !important;
  display: inline-block;
  align-self: center;
  margin-top: auto;
  background: 
#1faf5a;
  color: #fff !important;
  font-size: 18px;
  font-weight: 600;
  padding: 12px 30px;
  border-radius: 9px;
  text-decoration: none;
  transition: background 0.2s ease;
}
#sppb-addon-da99039d-d2a0-458d-b812-e30cb5e22d73 .sppb-readmore:hover {
  background: 
#0d1f5c;
}

/* End of Latest News section on Homepage CSS block */


/* CSS for the Newsletter Signup Form on the Homepage. I had some issues with the ID selector earlier but I do not remember what it was before */

#sppb-addon-1738867296696 .sppb-addon-content {
  max-width: 900px !important;
  margin: 0 auto !important;
}

#sppb-addon-1738867296696 .convertforms {
  background: linear-gradient(to right, #00A950, #2A3189) !important;
  padding: 3px !important;
  border-radius: 60px 0px 60px 0px !important;
  box-shadow: 0 2px 10px rgba(13, 31, 92, 0.06) !important;
  display: block !important;
}

#sppb-addon-1738867296696 .cf-form-wrap {
  background: #ffffff !important;
  border: none !important;
  border-radius: 58px 0px 58px 0px !important;
  box-shadow: none !important;
  padding: 32px 48px !important;
  position: relative;
  overflow: hidden;
}

#sppb-addon-1738867296696 .cf-fields {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 14px 20px !important;
}

#sppb-addon-1738867296696 .cf-control-group.cf-one-half {
  width: auto !important;
  max-width: none !important;
  flex: none !important;
  margin: 0 !important;
}

#sppb-addon-1738867296696 fieldset.cf-control-group,
#sppb-addon-1738867296696 .cf-control-group[data-type="submit"] {
  grid-column: 1 / -1 !important;
}

#sppb-addon-1738867296696 fieldset.cf-control-group .cf-checkbox-group {
  display: flex !important;
  justify-content: center !important;
}

#sppb-addon-1738867296696 .cf-control-group[data-type="submit"] {
  display: flex !important;
  justify-content: center !important;
  margin-top: 8px !important;
}

#sppb-addon-1738867296696 .cf-input {
  border-radius: 8px !important;
  height: auto !important;
  padding: 12px 16px !important;
  border: 1px solid #dde0ea !important;
  background: #fafafa !important;
  font-size: 14px !important;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

#sppb-addon-1738867296696 .cf-input:focus {
  border-color: #2B3086 !important;
  background: #ffffff !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(43, 48, 134, 0.08) !important;
}

#sppb-addon-1738867296696 .cf-label {
  display: block !important;
  visibility: visible !important;
  position: static !important;
  width: auto !important;
  height: auto !important;
  overflow: visible !important;
  clip: auto !important;
  white-space: normal !important;
  margin: 0 0 6px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  color: #2B3086 !important;
}

#sppb-addon-1738867296696 fieldset.cf-control-group .cf-label {
  text-transform: none !important;
  font-weight: 400 !important;
  font-size: 13px !important;
  letter-spacing: normal !important;
  color: #444 !important;
}

#sppb-addon-1738867296696 fieldset.cf-control-group input[type="checkbox"] {
  accent-color: #2B3086;
}

#sppb-addon-1738867296696 .cf-btn {
  background: #2B3086 !important;
  color: #ffffff !important;
  border-radius: 8px !important;
  padding: 14px 40px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  border: none !important;
  margin-top: 16px !important;
  transition: background 0.2s ease;
}

#sppb-addon-1738867296696 .cf-btn:hover {
  background: #1d2260 !important;
}

/* End of Newsletter Signup CSS block*/


/* CSS for Request a Demo page begins here */

.demo-split-row {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  max-width: 1150px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}


/* Left panel - I used raw HTML for the left panel and put the styling here for consistency */
.demo-left-panel {
  background: #0d1f5c;
  padding: 64px 56px !important;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.demo-ring1 {
  position: absolute; right: -50px; top: -50px;
  width: 200px; height: 200px; border-radius: 50%;
  border: 40px solid rgba(255,255,255,0.05);
}

.demo-ring2 {
  position: absolute; left: -30px; bottom: -50px;
  width: 160px; height: 160px; border-radius: 50%;
  border: 30px solid rgba(31,175,90,0.08);
}

.demo-left-inner { position: relative; z-index: 1; }

.demo-eye {
  font-size: 13px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: #1faf5a; margin-bottom: 13px;
}

.demo-title {
  font-size: 28px; font-weight: 700; color: #fff;
  line-height: 1.35; margin-bottom: 20px;
}

.demo-desc {
  font-size: 16px; color: rgba(255,255,255,0.55);
  line-height: 1.8; margin-bottom: 35px;
}

.demo-perks { display: flex; flex-direction: column; gap: 15px; }
.demo-perk { display: flex; align-items: flex-start; gap: 13px; }

.demo-perk-ic {
  width: 35px; height: 35px; border-radius: 50%;
  background: rgba(31,175,90,0.15); display: flex;
  align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px;
}

.demo-perk-ic i { font-size: 16px; color: #1faf5a; }

.demo-perk-text { font-size: 15px; color: rgba(255,255,255,0.65); line-height: 1.6; }
.demo-perk-text strong { color: #fff; display: block; font-size: 15px; margin-bottom: 2px; }

/* White card container style - right panel */
.demo-form-card {
  background: #fff !important;
  border: 1px solid #e0e3ec !important;
  border-radius: 12px !important;
  box-shadow: 0 2px 10px rgba(13, 31, 92, 0.05) !important;
  padding: 40px !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
}
.demo-form-card {
  background: #fff !important;
  border: 1px solid #e0e3ec !important;
  border-radius: 12px !important;
  box-shadow: 0 2px 10px rgba(13, 31, 92, 0.05) !important;
  padding: 40px !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
}


/* Removing the card styling off the Convert Forms wrapper so only the outer column shows a border/shadow*/
/* Not sure if I could have done this another way */
.demo-form-card .convertforms,
.demo-form-card .cf,
.demo-form-card .cf-form-wrap,
.demo-form-card .cf-fields,
.demo-form-card fieldset.cf-control-group {
  border: none !important;
  box-shadow: none !important;
  background: none !important;
}

.demo-split-row .cf-fields { margin-bottom: 0; }

/* This styles the text input boxes on the actual form */
.demo-split-row .cf-fields input.cf-input {
  font-family: 'Raleway', sans-serif !important;
  font-size: 16px !important;
  padding: 13px 18px !important;
  border: 1px solid #dde0ea !important;
  border-radius: 6px !important;
  background: #fafafa !important;
  color: #252525 !important;
  height: auto !important;
  width: 100% !important;
}

.demo-split-row .cf-fields input.cf-input:focus {
  border-color: #0d1f5c !important;
  background: #fff !important;
  outline: none !important;
}

/* Styling the checkbox row */
.demo-split-row fieldset.cf-control-group {
  display: block !important;
  width: 100% !important;
  margin: 8px 0 16px !important;
  border: none !important;
  padding: 0 !important;
}

.demo-split-row fieldset.cf-control-group .cf-checkbox-group {
  display: flex !important;
  align-items: flex-start !important;
  gap: 8px !important;
  justify-content: flex-start !important;
}

.demo-split-row fieldset.cf-control-group input.cf-input {
  width: auto !important;
  height: auto !important;
  margin: 2px 0 0 !important;
  padding: 0 !important;
  border: 1px solid #ccc !important;
  background: #fff !important;
  flex-shrink: 0;
}

.demo-split-row fieldset.cf-control-group .cf-label {
  font-size: 14px !important;
  font-weight: 400 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  color: #999 !important;
  line-height: 1.5 !important;
}


.demo-split-row .cf-control-group[data-type="submit"] {
  display: block !important;
  width: 100% !important;
}

.demo-split-row .cf-btn {
  background: #1faf5a !important;
  color: #fff !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  font-family: 'Raleway', sans-serif !important;
  padding: 15px 35px !important;
  border-radius: 6px !important;
  border: none !important;
  margin-top: 16px !important;
}

.demo-split-row .cf-btn:hover {
  background: #0d1f5c !important;
}

/* Styling the Privacy Note */
/* This is a separate text block addon */
.demo-privacy-note {
  text-align: center !important;
  padding-left: 0 !important;
  margin: 20px 0 0 !important;
  font-size: 14px !important;
  color: #999 !important;
}

.demo-privacy-note a {
  color: #0d1f5c !important;
  text-decoration: underline !important;
}

/* Added so it looks good on mobile - stacks the two demo panels on top of each other */
@media (max-width: 768px) {
  .demo-split-row { flex-direction: column; }
  .demo-left-panel { padding: 32px 24px; }
  .demo-form-card { padding: 32px 24px; }
}

.demo-form-card .sppb-addon-content {
  max-width: 500px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

#sppb-addon-27612c07-a45b-4b34-a592-e66b0cc8c7e9 .sppb-addon-title {
  font-family: 'Raleway', sans-serif !important;
  color: #0d1f5c !important;
  font-weight: 700 !important;
}

/* Makes this header on the same level as the title in the left panel */
#sppb-addon-27612c07-a45b-4b34-a592-e66b0cc8c7e9 .sppb-addon-header {
  padding-top: 42px !important;
  margin-bottom: 20px !important;
}

/* End of CSS block for Request a Demo Page */


/* CSS for the Ethos AFP Page begins here */
/* Two sections of the ETHOS Page, the two tables are built with raw HTML, I have put the styling for those elements here */

.ethos-terminal-img-only {
width: 200px;
height: auto;
margin: 0 auto;
}

.ethos-hero-img {
  max-width: 100% !important;
  height: auto !important;
}

/* First Section (Platform Capabilities) built with HTML: Features grid */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-cell {
  position: relative;
  background: #ffffff;
  border: 1px solid #eceef3;
  border-radius: 10px;
  padding: 28px 24px;
  box-shadow: 0 1px 3px rgba(13, 31, 92, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.feature-cell:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(13, 31, 92, 0.09);
  border-color: #dfe3ee;
}

.feature-num {
  display: block;
  color: #c8102e;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.feature-title {
  color: #0d1f5c;
  font-weight: 700;
  font-size: 16px;
  margin: 0 0 8px 0;
}

.feature-desc {
  color: #8a8f9c;
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
}

.feature-bar {
  display: block;
  width: 32px;
  height: 3px;
  border-radius: 2px;
  background-color: #1faf5a;
  margin-top: 16px;
  transition: width 0.25s ease;
}

.feature-cell:hover .feature-bar {
  width: 48px;
}

@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* Second Section (Connectivity) built with HTML: Features grid */

.conn-list {
  border: 1px solid #e0e3ec;
  border-radius: 8px;
  overflow: hidden;
}

.conn-item {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  border-bottom: 1px solid #e0e3ec;
  background: #fff;
}

.conn-item:last-child {
  border-bottom: none;
}

.conn-item:hover {
  background: #f7f8fb;
}

.conn-ic {
  width: 40px;
  height: 40px;
  background: #0d1f5c;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.conn-ic i {
  font-size: 18px;
  color: #fff;
}

.conn-name {
  font-size: 13px;
  font-weight: 700;
  color: #0d1f5c;
  margin: 0 0 3px 0;
}

.conn-desc {
  font-size: 12px;
  color: #999;
  margin: 0;
}

.conn-tag {
  font-size: 10px;
  font-weight: 700;
  color: #1faf5a;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #e8f6ee;
  padding: 3px 9px;
  border-radius: 3px;
  white-space: nowrap;
  justify-self: end;
}


/* Styling for the Partners Section of ETHOS AFP Page */

.partner-box {
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 16px;
  padding: 48px 32px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(13, 31, 92, 0.04);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  height: 100%;
  overflow: hidden;
  flex-direction: column;
  justify-content: flex-start;
}

@media (max-width: 767px) {
  .partner-box {
    padding: 24px 20px;
  }
}

.partner-box:hover {
  box-shadow: 0 12px 28px rgba(13, 31, 92, 0.08);
  transform: translateY(-4px);
}

.partner-box .sppb-img-container {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-bottom: 28px;
}

.partner-box .sppb-img-container img {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: 180px !important;
  max-height: 64px !important;
  object-fit: contain !important;
}

.partner-box .sppb-addon-title {
  font-size: 13px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  color: #1faf5a !important;
  margin: 0 0 10px !important;
}

/* I am using the :not() method. It basically targets everything in the container besides the title */
.partner-box .sppb-media-content > *:not(.sppb-addon-title) {
  color: #999 !important;
  font-size: 13px !important;
  line-height: 1.6 !important;
  margin: 0 !important;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.partners-row .sppb-column {
  display: flex;
}

/* End of Ethos AFP Page CSS block */



/* Beginning of the CSS block for the News and Media page which lists all the articles */
/* They all have one card style. For the latest article, I enabled Leading Articles in Joomla Admin and set it to 1 to style that separately */

.article-list.cols-3 > .row > .col-lg-4 {
  flex: 0 0 100%;
  max-width: 100%;
}

.article-list .article-intro-image a {
  display: block;
  width: 100%;
  align-self: center;
  margin-top: auto;
  margin-bottom: auto;
}

.article-list .article .category-name {
  display: none;
}

.article-info .article-separator {
  display: none;
}

.article-list .article {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
  align-items: center;
  padding: 0 !important;
  border: 1px solid #e8e8e4;
  border-radius: 8px !important;
  background: #fff;
  margin-bottom: 3px !important;
  overflow: hidden;
  position: relative;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.article-list .article:hover {
  box-shadow: 0 8px 24px rgba(13, 31, 92, 0.1);
  transform: translateY(-2px);
  border-color: #0d1f5c;
}

.article-list .article .article-intro-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  border-radius: 0;
  background: #f4f6fb;
  overflow: hidden;
  position: static;
  float: none !important;
  margin: 0 !important;
  border-bottom: none !important;
}

.article-list .article .article-intro-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  border-radius: 0 !important;
  display: block;
}

.article-list .article .article-body {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "title title"
    "excerpt excerpt"
    "button date";
  align-items: center;
  padding: 24px;
}

.article-list .article .article-header {
  grid-area: title;
  margin-bottom: 6px;
}

.article-list .article .article-header h2 {
  min-height: 0 !important;
  margin: 0 !important;
}

.article-list .article .article-header h2 a {
  font-family: 'Raleway', sans-serif;
  font-size: 16px;
  font-weight: 700 !important;
  line-height: 1.4;
  color: #2B3086;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-list .article .article-header h2 a:hover {
  color: #e30913;
}

.article-list .article .article-introtext {
  grid-area: excerpt;
  margin-bottom: 20px;
}

.article-list .article .article-introtext p {
  font-family: 'Raleway', sans-serif;
  font-size: 13px;
  font-weight: 400 !important;
  line-height: 1.65;
  color: #999;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Only shows the first paragrapgh in the intro text there are mulitple */
.article-list .article .article-introtext p ~ p {
  display: none;
}

.article-list .article .article-info {
  grid-area: date;
  justify-self: end;
  display: block !important;
  margin-bottom: 0 !important;
}

.article-list .article .article-info > span + span::before {
  content: none !important;
}

.article-list .article .article-info .published {
  font-family: 'Raleway', sans-serif;
  font-size: 12px;
  font-weight: 600 !important;
  color: #e30913;
  white-space: nowrap;
}

.article-list .article .readmore {
  grid-area: button;
  justify-self: start;
}

.article-list .article .readmore a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #00A950;
  color: #fff !important;
  font-family: 'Raleway', sans-serif;
  font-size: 12px;
  font-weight: 700 !important;
  padding: 8px 18px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.article-list .article .readmore a:hover {
  background: #067a3c;
}

@media (max-width: 600px) {
  .article-list .article {
    grid-template-columns: 1fr;
  }
  .article-list .article .article-intro-image {
    width: 100%;
    aspect-ratio: 3 / 2;
    height: auto;
    margin-bottom: 12px;
  }
}

/* Customizing the latest article to look bigger and have a "Latest" badge using the Leading Articles class */

.items-leading .article {
  grid-template-columns: 300px 1fr;
  border-left: 4px solid #0d1f5c;
}

.items-leading .article-body {
  padding: 32px;
}

.items-leading .article-header h2 a {
  font-size: 22px;
  -webkit-line-clamp: 3;
}

.items-leading .article-introtext {
  margin-bottom: 20px;
}

.items-leading .article-introtext p {
  font-size: 14px;
  -webkit-line-clamp: 3;
}

.items-leading .article-info {
  position: relative;
}

.items-leading .article-info::before {
  content: "Latest";
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
  background: #0d1f5c;
  padding: 3px 9px;
  border-radius: 3px;
  margin-right: 10px;
}

@media (max-width: 600px) {
  .items-leading .article {
    grid-template-columns: 1fr;
  }
}

/* This prevents the leading article css form being enabled on page 2 and other pages since Helix/Joomla doesn't restrict leading articles to only page 1 */
/* See the custom.js file for the javascript used to workaround this */
html.is-paginated .items-leading {
  display: none !important;
}

/* Joomla's generic page heading wrapper styled to look consistent with the rest of the website */
.com-content-category-blog .page-header {
  border: none;
  margin-bottom: 32px;
  padding: 0;
}

.com-content-category-blog .page-header h1 {
  font-family: 'Raleway', sans-serif;
  font-size: 34px;
  font-weight: 700;
  color: #0d1f5c;
  margin: 0;
  padding-bottom: 16px;
  border-bottom: 1px solid #e8e8e4;
}

/* CSS for the pagination */
/* Styling the actual wrapper that contains the pagination buttons*/
.com-content-category-blog__navigation .pagination {
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 40px;
}

/* Styling the individual buttons themselves */
.com-content-category-blog__navigation .page-item .page-link {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e0e0da;
  border-radius: 6px;
  color: #666;
  font-size: 12px;
  font-weight: 600 !important;
  padding: 0;
}

.com-content-category-blog__navigation .page-item.active .page-link {
  background: #0d1f5c;
  border-color: #0d1f5c;
  color: #fff;
}

/* Once again using the :not() method to prevent hover styling for the disabled pages*/
.com-content-category-blog__navigation .page-item:not(.active):not(.disabled) .page-link:hover {
  background: #f0f0ec;
  border-color: #0d1f5c;
  color: #0d1f5c;
}

.com-content-category-blog__navigation .page-item.disabled .page-link {
  opacity: 0.4;
}

.com-content-category-blog__counter {
  font-size: 12px;
  color: #999;
}


/* Styling for single article page, basically full article page */
/* Adjust image aspect ratio, give colors to the category and date, etc */
/* Custom JS code moves the main article image, title, and sidebar column so that the title sits above the image */
/* and the article body and sidebar (further contact card + related articles) sits underneath the title and image */
.ddcap-hero-image {
  float: none !important;
  width: 100%;
  margin: 0 0 30px 0;
}
.ddcap-hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  aspect-ratio: auto;
  object-fit: unset;
  border-radius: 8px;
  display: block;
}

.article-header h2 {
  font-family: 'Raleway', sans-serif;
  color: #2B3086;
  font-weight: 700;
}

.page-header h1 {
  font-family: 'Raleway', sans-serif;
  color: #0d1f5c;
}

.article-details .article-info {
  gap: 10px;
}

.article-details .article-info > span + span::before {
  content: none !important;
}

.article-details .article-info .category-name,
.article-details .article-info .category-name a {
  color: #00A950 !important;
  font-weight: 700;
  text-decoration: none;
}

.article-details .article-info .published {
  color: #e30913;
  font-weight: 700;
}

.article-details .article-ratings-social-share a {
  background: #0d1f5c !important;
  color: #fff !important;
  border: none !important;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.article-details .article-ratings-social-share a:hover {
  background: #00A950 !important;
  color: #fff !important;
}

.item-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}

.item-page .page-header h2,
.item-page h1 {
  font-size: 26px;
  font-weight: 700;
  color: #0d1f5c;
  line-height: 1.35;
  margin-bottom: 14px;
}

.article-details [itemprop="articleBody"] p,
.article-details [itemprop="articleBody"] li {
  color: rgb(43, 48, 134);
  font-size: 15px;
  line-height: 1.85;
  margin-bottom: 18px;
}

/* Styles the reusable contact sidebar that can be added or removed for each article */
.ddcap-contact-sidebar {
  width: 100% !important;
  background: #0d1f5c !important;
  border-radius: 0 70px 0 70px !important;
  padding: 28px 22px !important;
  margin: 0 !important;
  display: block !important;
  position: relative !important;
  overflow: hidden !important;
}

.ddcap-contact-sidebar::after {
  content: "" !important;
  position: absolute !important;
  bottom: -30px !important;
  right: -30px !important;
  width: 100px !important;
  height: 100px !important;
  border-radius: 50% !important;
  border: 22px solid rgba(31,175,90,0.1) !important;
}

.ddcap-contact-sidebar::before {
  content: "" !important;
  position: absolute !important;
  top: -20px !important;
  left: -20px !important;
  width: 70px !important;
  height: 70px !important;
  border-radius: 50% !important;
  border: 16px solid rgba(255,255,255,0.04) !important;
}

.ddcap-contact-sidebar p {
  margin: 0 0 6px !important;
  position: relative !important;
  z-index: 1 !important;
}

/* Handles the text elements inside the contact bar*/
.ddcap-cs-label {
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  color: #1faf5a !important;
  margin-bottom: 16px !important;
}

.ddcap-cs-name {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #fff !important;
  margin-bottom: 2px !important;
}

.ddcap-cs-role {
  font-size: 11px !important;
  color: rgba(255,255,255,0.5) !important;
  line-height: 1.55 !important;
  margin-bottom: 16px !important;
}

.ddcap-cs-divider {
  height: 1px !important;
  background: rgba(255,255,255,0.1) !important;
  margin-bottom: 14px !important;
  display: block !important;
  position: relative !important;
  z-index: 1 !important;
}

.ddcap-cs-row {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 11px !important;
  color: rgba(255,255,255,0.65) !important;
  margin-bottom: 9px !important;
  position: relative !important;
  z-index: 1 !important;
}

.ddcap-cs-row:last-child {
  margin-bottom: 0 !important;
}

.ddcap-cs-row i {
  font-size: 12px !important;
  color: #1faf5a !important;
  flex-shrink: 0 !important;
}

.ddcap-cs-row a {
  color: #1faf5a !important;
  text-decoration: none !important;
}

.ddcap-cs-row a:hover {
  text-decoration: underline !important;
}

/* Pushes any content in the sidebar down as the contact sidebar & related articles was showing up too high*/
#sp-right .sp-column {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Fixes the bug where the contact sidebar was showing up on the articles listing page*/
body:not(.view-article) .ddcap-contact-sidebar {
  display: none !important;
}

body:not(.view-article) #sp-right {
  display: none !important;
}

body:not(.view-article) #sp-component {
  flex: 0 0 100% !important;
  max-width: 100% !important;
  width: 100% !important;
}

/* NOTE: I created a custom module using the Joomla Site Modules Related Articles - Category */
/* This block styles it */
#sp-right .sp-module {
  background: #f7f8fb;
  border: 1px solid #e8e8e8;
  border-radius: 0 70px 0 70px;
  padding: 20px 18px;
  margin-top: 10px !important;
}

#sp-right .sp-module-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #e30913;
  margin: 0 0 12px;
}

#sp-right .mod-articlescategory {
  list-style: none;
  margin: 0;
  padding: 0;
}

#sp-right .mod-articlescategory li {
  padding: 8px 0;
  border-bottom: 1px solid #e8e8e8;
}

#sp-right .mod-articlescategory li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

#sp-right .mod-articlescategory li:first-child {
  padding-top: 0;
}

#sp-right .mod-articles-category-title {
  font-size: 11px;
  font-weight: 600;
  color: #0d1f5c;
  line-height: 1.5;
  text-decoration: none;
  display: block;
}

#sp-right .mod-articles-category-title:hover {
  color: #1faf5a;
  text-decoration: underline;
}
/* End of Article Full Page Styling Block*/


/* The CSS block below provides alternative styling for the partners section on the ETHOS AFP page */
/* Reason being is because the directors wanted to compare the original style with the new one hence why I have left the css at the bottom */

/* Partner cards — styled to match Latest News card design */
.partner-badge-card .sppb-row-column {
  padding-top: 65px;
}
.partner-badge-card .ddcap-award-col {
  position: relative;
  height: 100%;
  max-width: 85%;
  margin: 0 auto;
  min-height: 190px;
  background: #fff;
  border: 2px solid #0d1f5c;
  border-radius: 20px;
  padding: 58px 10px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.partner-badge-card .ddcap-award-col:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(13, 31, 92, 0.15);
}
.partner-badge-card .sppb-column-addons {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 100%;
}
.partner-badge-card .sppb-addon-single-image-container {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140px;
  height: 140px;
  border-top-left-radius: 50% !important;
  border-top-right-radius: 50% !important;
  border-bottom-right-radius: 50% !important;
  border-bottom-left-radius: 50% !important;
  border: 3px solid #1faf5a;
  background: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.partner-badge-card .sppb-addon-single-image-container img {
  width: 78%;
  height: 78%;
  object-fit: contain;
}
.partner-badge-card .addon-root-text-block {
  margin-top: 48px;
  flex: none;
}
.partner-badge-card .addon-root-text-block p {
  font-size: 12px;
  color: #0d1f5c;
  line-height: 1.5;
  margin: 0;
}
.partner-badge-card .addon-root-button {
  display: none;
}
.hero-image-container-now {
  padding-left: 200px !important;
}