:root {
  --default-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Ubuntu, "Helvetica Neue", Helvetica, Arial, "PingFang SC",
    "Hiragino Sans GB", "Microsoft Yahei UI", "Microsoft Yahei",
    "Source Han Sans CN", sans-serif;
  --Neutral-2: #DEE5ED;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Open Sans, var(--default-font-family);
  margin: 0;
  padding: 0;
}

.main-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

@media (min-width: 1200px) {
  .container {
      max-width: 1204px;
  }
}

/* Header Styles */
.header {
  position: absolute;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.0);
  z-index: 3;
}

.logo-img {
  width: auto;
  height: 39px;
}

.procaribe {
  margin-left: 10px;
  color: #ffffff !important;
  font-family: DM Sans, var(--default-font-family);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.15px;
}

.nav-link {
  color: #ffffff;
  margin-left: 20px;
  font-family: DM Sans, var(--default-font-family);
  font-size: 16px;
  padding: 0rem 0rem !important;
}

.header a:hover {
  text-decoration: underline !important;
}

.header a {
  transition: font-weight 0.2s ease, color 0.2s ease; 
}

a:hover {
  color: #ffffff;
}

.dropdown-item.active, .dropdown-item:active {
  color: #024764;
  font-weight: 700;
  text-decoration: none;
  background-color: #E6F0F4 !important;
}

.dropdown-item {
  color: #024764;
}

.dropdown-item:hover {
  transform: none !important;
}

.top-nav {
  gap: 13px;
}

.nav {
  gap: 13px;
}

.menu-line {
  margin: 0.5rem; 
  border: 0; 
  border-top: 2px solid rgba(255, 255, 255, 0.35)
}

/* Menu Dropdown Styles */

.mega-menu {
  margin-left: 50px;
  margin-right: 17px;
}

.small-menu {
  gap: 30px !important;
  margin-left: 39px;
  margin-top: 150px;
}

.menu-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: #005F88;
  height: 95vh;
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1);
  overflow: auto;
  z-index: 1000;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-10px); 
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.menu-dropdown.show {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.menu-dropdown.show + .nav-link {
  color: #99BFCF;
}

.menu-dropdown .container {
  padding: 20px 0;
}

.menu-dropdown h6 {
  font-weight: 600;
  color: #99BFCF;
  font-size: 14px;
  font-weight: 800;
  line-height: 20px; 
  text-transform: uppercase;
}

.menu-dropdown a {
  color: #FFF;
  font-family: "Open Sans";
  font-size: 16px;
  font-weight: 400;
  line-height: 137.5%; 
}

.menu-dropdown a:hover {
  text-decoration: underline !important;
  font-size: 16px !important;
}

.menu-citation {
  color: #99BFCF;
  font-family: "Open Sans";
  font-size: 14px;
  font-weight: 400;
  line-height: 20px; 
}

.country-text {
  width: 200px;
}

.col-md-2-5 {
  flex: 0 0 20%;
  max-width: 20%;
}

.col-md-2-3 {
  flex: 0 0 18%;
  max-width: 18%;
}

.close-btn {
  font-size: 24px;
  color: #FFF;
  background: none;
  border: none;
  cursor: pointer;
  float: right;
  outline: none !important;
  margin-right: 17px;
  margin-top: 17px;
}

/* Menu Countries Dropdown */
.highlight {
  color: #FFF;
  font-feature-settings: 'liga' off, 'clig' off;
  font-family: "Open Sans";
  font-size: 6px !important;
  font-style: normal;
  font-weight: 400;
  line-height: 20px;
  text-decoration-line: underline;
  text-decoration-style: wavy;
  text-decoration-color: #FFF;
  text-decoration-skip-ink: none;
  text-decoration-thickness: 20%; 
  text-underline-offset: 40%; 
  text-underline-position: auto;
}
.countries-dropdown {
  background-color: #005F88 !important;
  border: none;
  color: #FFFFFF;
  max-height: 420px; 
  overflow-y: scroll;
  width: 90%;
  overflow-x: hidden;
}
/* Custom scrollbar styling for WebKit browsers (macOS, Chrome, Safari) */
.countries-dropdown::-webkit-scrollbar {
  width: 4px;  
}

.countries-dropdown::-webkit-scrollbar-track {
  background: transparent;  /* Light background for the track */
}

.countries-dropdown::-webkit-scrollbar-thumb {
  background: #FFFFFF;  /* Thumb color */
  border-radius: 10px;  /* Rounded corners for the thumb */
}

.countries-dropdown::-webkit-scrollbar-thumb:hover {
  background: #FFFFFF;  /* Darker thumb color when hovered */
}
.countries-dropdown-item {
  padding: 0px 1.5rem;
}

.countries-dropdown-item:active,
.countries-dropdown-item:hover,
.countries-dropdown-item:focus {
  color: #FFFFFF !important;
  font-weight: 700;
  text-decoration: none;
  background-color: rgba(153, 191, 207, 0.50) !important;
  border-radius: 37px;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .menu-dropdown {
    position: fixed; 
    top: 0; 
    left: 0;
    width: 100%;
    height: 100vh; 
    overflow-y: auto; 
    padding: 20px;
  }

  .menu-dropdown .container {
    padding: 10px 15px; 
  }

  .menu-dropdown h6 {
    font-size: 12px; 
    line-height: 18px;
  }

  .menu-dropdown a {
    font-size: 14px; 
    line-height: 1.5; 
  }

  .menu-citation,
  .country-text {
    width: auto; 
    font-size: 12px; 
  }

  .countries-dropdown {
    width: 100%; 
    max-height: 50vh; 
  }

  .close-btn {
    font-size: 20px; 
    position: absolute; 
    top: 10px;
    right: 10px;
  }

  .col-md-2-5 {
    flex: 1 1 100%; 
    max-width: 100%; 
    margin-bottom: 15px; 
  }
}

/* Hero Section Styles */
.hero-section {
  position: relative;
  background-size: cover;
  background-position: center;
  color: #ffffff;
  text-align: left;
  padding-top: 15rem;
  padding-bottom: 15rem;
  z-index: 1;
  height: 95vh;
}

.hero-section .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 67, 97, 0.72);
  filter: blur(2px);
  z-index: 1;
}

.hero-section .video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.subtitle {
  font-family: Inter, var(--default-font-family);
  font-size: 16px;
}

.hero-title {
  font-family: Open Sans, var(--default-font-family);
  font-size: 48px;
  font-weight: 800;
  line-height: 55px;
  margin-top: 22px;
  max-width: 600px;
}

.btn-learn {
  margin-top: 22px;
  background-color: transparent;
  border: 1px solid #ffffff;
  border-radius: 40px;
  color: #ffffff;
  padding: 10px 30px;
  font-size: 14px;
  font-weight: 600;
}

.buttons-block {
  width: 100%;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-blocks {
  margin-top: 0.3rem;
  margin-right: 0.3rem;
  background-color: #005388;
  border: 1px solid #ffffff;
  border-radius: 40px;
  color: #ffffff;
  padding: 10px 30px;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease; 
  display: inline-block;
}

.btn-blocks:hover {
  background-color: #0072b8; 
  color: #ffffff;
  transform: scale(1.05); 
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); 
}

.btn-learn .arrow-right {
  margin-left: 10px;
}

.btn-learn:active{
  background-color: transparent;
  border: 1px solid #ffffff;
  color: #ffffff;
}

.btn:hover{
  color: white;
}

/* Footer Styles */
.footer {
  background-color: #ffffff;
  padding: 40px 0;
}

.footer-title {
  font-size: 16px;
  font-weight: 600;
  color: #6c748f;
}

.list-unstyled {
    gap: 30px;
    display: flex;
    width: 219px;
    flex-direction: column;
    align-items: flex-start;
    font-size: 16px;
}

.menu-dropdown .list-unstyled {
  gap: 16px;
}

.footer a {
  color: #9c9fac;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.visitor-counter {
  display: flex;
  align-items: center;
}

.visitor-counter .counter {
  display: flex;
  gap: 0.2em; 
}

.visitor-counter .counter > span{
  background: #B4B9C9; 
  color: #FFF; 
  width: 1.1em;
  height: 1.6em; 
  display: flex;
  align-items: center; 
  justify-content: center; 
  border-radius: 0.2em; 
  font-size: 1.5em; 
  font-weight: 700; 
  font-style: normal; 
  line-height: 1.5em; 
  text-align: center; 
  flex-shrink: 0; 
}

.visitor-counter .users {
  margin-left: 10px;
  color: #b3b8c8;
  font-size: 16px;
}

.footer-bottom {
  padding-top: 20px;
  color: #6D758F;
}

.footer-bottom a {
  margin-left: 20px;
  color: #6D758F;
  text-decoration: underline;
}

.footer hr {
  border-top: 1px solid #f1f2f6;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; 
  text-align: left;        
}

.footer-top .col-md-3 {
  flex: 0 0 23%;
  max-width: 23%;
  margin-bottom: 20px;
  margin-left: 1%; 
  margin-right: 1%;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .hero-title {
    font-size: 36px;
  }
  .nav-link {
    margin-left: 10px;
    font-size: 14px;
  }
  .menu-dropdown {
    height: calc(100vh - 489px); /* height on mobile */
  }
  .footer-top .col-md-3 {
    flex: 0 0 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}

/* Partners Section Styles */
.partners-section {
  background-color: #f1f3f7;
  opacity: 0.95;
  position: relative;
}

.partners-section-title {
  color: #6d758f;
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
}

.partners-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap; 
}

.partner-logo {
  width: 139px;
  height: 81px;
  background-color: #ffffff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: 105px; 
}

.partner-logo.last-in-row {
  margin-right: 0; 
}

.partner-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.co-executing-partners .partners-row:first-of-type {
  margin-bottom: 34px;
}

.scroll-to-top {
  position: absolute;
  display: flex;
  width: 72px;
  height: 72px;
  padding: 17px 16.366px 16.366px 17px;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  border-radius: 57px;
  background: #0091D1;
  right: 162px;
  bottom: -105px;
  z-index: 1000;
  border: none;
  cursor: pointer;
  transform: translateY(-100%);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.scroll-to-top i {
  color: #ffffff;
  font-size: 38px; 
}

.scroll-to-top:hover {
  background: #007bb5; 
  cursor: pointer;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
  .partners-row {
    flex-wrap: wrap; 
  }
  .partner-logo {
    margin-right: 50px; 
    margin-bottom: 20px; 
  }
  .partner-logo.last-in-row {
    margin-right: 0;
  }
}

/* Project Philosophy Styles */
.vector-divider {
  width: 200px;
  height: 14px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin: 10rem auto 1rem auto;
}

.section-title {
  color: #0091d1;
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  font-family: Open Sans, var(--default-font-family);
  font-weight: 800;
  line-height: 55px;
  word-wrap: break-word;
}

.section-subtitle {
  color: #6c748f;
  font-size: 1.25rem;
}

/* Unified CKEditor Content Styles */
.ckeditor-content {
  color: #000;
  font-family: 'Open Sans', sans-serif;
  font-size: 18px;
  line-height: 1.6;
  font-weight: 400;
}

.ckeditor-content p {
  margin-bottom: 1rem;
}

.ckeditor-content h2,
.ckeditor-content h3,
.ckeditor-content h4 {
  color: #0091d1;
  font-family: 'Open Sans', sans-serif;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.ckeditor-content a {
  color: #0091d1;
  text-decoration: underline;
}

.ckeditor-content a:hover {
  text-decoration: none;
}

.sdg-cake-section {
  position: relative;
  background-color: #f1f3f7;
  border-radius: 8px;
  padding: 2rem;
  margin-top: 2rem;
}

.sdg-cake-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
}

.background-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 8px;
}

.sdg-cake-text {
  position: relative;
  z-index: 1;
}

.additional-info {
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .sdg-cake-text {
      font-size: 1rem;
  }
}

/* Thematic Scope Styles - Carousel Cards */
.thematic-scope-swiper {
  position: relative;
  padding: 10px 0;
  margin: 0;
}

.swiper-wrapper.thematic-scope-cards {
  display: flex;
  padding-bottom: 20px;
}

.swiper-slide {
  display: flex;
  justify-content: center;
  padding: 0 8px;
  box-sizing: border-box;
}

.thematic-scope-card {
  width: 100%;
  max-width: 360px;
  height: 380px;
  border: 2px solid #E8EAF0;
  border-radius: 10px;
  box-shadow: 0 2px 6px 0 rgba(24, 32, 60, 0.06);
  overflow: hidden;
  background-color: #fff;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.thematic-scope-image {
  height: 180px;
  background: #f8f9fb;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.thematic-scope-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.thematic-scope-card:hover .thematic-scope-image img {
  transform: scale(1.05);
}

.thematic-scope-card .card-body {
  padding: 20px;
  height: 200px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #fff;
  flex-grow: 1;
}

.thematic-scope-card .card-title {
  color: #005388;
  font-family: 'Open Sans', sans-serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 24px;
  margin-bottom: 0;
  transition: color 0.3s ease;
}

.thematic-scope-card .card-text {
  color: #5a5f7d;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  flex-grow: 1;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
}

.read-more {
  color: #414555;
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
  text-decoration: underline;
}

.thematic-scope-navigation {
  padding-top: 24px;
  padding-bottom: 20px;
  display: flex;
  gap: 12px;
}

.button-prev {
  width: 48px;
  height: 48px;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50% !important;
  border: 2px solid #005388 !important;
  background: #FFF !important;
  color: #005388 !important;
  transition: all 0.3s ease;
}

.button-prev:hover {
  background: #005388 !important;
  color: #fff !important;
  transform: scale(1.05);
}

.button-next {
  width: 48px;
  height: 48px;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50% !important;
  background: #005388 !important;
  color: white !important;
  border: 2px solid #005388 !important;
  transition: all 0.3s ease;
}

.button-next:hover {
  background: #007eb4 !important;
  border-color: #007eb4 !important;
  transform: scale(1.05);
}

.swiper-button-prev i,
.swiper-button-next i {
  font-size: 18px;
  color: #414555;
}

.swiper-button-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.thematic-scope-card:hover {
  /* transform: translateY(-5px); */
  box-shadow: 0 8px 16px rgba(24, 32, 60, 0.1);
  border-color: #007eb4;
}

.thematic-scope-card:hover .card-title {
  color: #007eb4 !important;
}

.thematic-scope-card:hover .card-text {
  color: #5a5f7d !important;
}

/* Ensure no white text on any element hover */
.thematic-scope-card:hover * {
  color: inherit;
}

.thematic-scope-card:hover .card-title {
  color: #007eb4 !important;
}

.thematic-scope-card:hover .card-text,
.thematic-scope-card:hover .card-text * {
  color: #5a5f7d !important;
}

/* Photo Carousel Styles - Builder Photo Carousel */
/* Builder sections - responsive width */
.builder-section,
.photo-carousel-section {
  margin-bottom: 40px;
  width: 100%;
  max-width: 100%;
  padding: 0 15px;
  box-sizing: border-box;
}

.photo-carousel-section {
  overflow: hidden;
}

@media (min-width: 768px) {
  .builder-section,
  .photo-carousel-section {
    max-width: 75%;
    margin-left: auto;
    margin-right: auto;
  }
}

.photo-carousel-swiper {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow: visible;
  border-radius: 0;
  box-sizing: border-box;
}

.photo-carousel-wrapper {
  display: flex;
  position: relative;
}

.photo-carousel-slide {
  width: 100%;
  flex-shrink: 0;
  padding: 0;
}

.photo-carousel-item {
  width: 100%;
  position: relative;
  display: block;
}

.photo-carousel-image-container {
  width: 100%;
  background: #f8f9fb;
  overflow: hidden;
  position: relative;
  display: block;
  line-height: 0;
  margin-bottom: 0;
}

.photo-carousel-image {
  width: 100%;
  height: auto;
  display: block;
  max-height: 85vh;
  object-fit: cover;
}

.photo-carousel-empty {
  color: #5a5f7d;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  padding: 20px;
  text-align: center;
  background: #f8f9fb;
  border-radius: 10px;
  border: 2px solid #E8EAF0;
}

/* Navigation Arrows - Positioned on sides */
.photo-carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50% !important;
  border: 2px solid #005388 !important;
  background: #FFF !important;
  color: #005388 !important;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.photo-carousel-prev {
  left: 20px;
}

.photo-carousel-next {
  right: 20px;
  background: #005388 !important;
  color: white !important;
}

.photo-carousel-nav-btn:hover:not(:disabled) {
  background: #005388 !important;
  color: #fff !important;
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.photo-carousel-next:hover:not(:disabled) {
  background: #007eb4 !important;
  border-color: #007eb4 !important;
}

.photo-carousel-nav-btn i {
  font-size: 18px;
}

/* Disabled state for navigation buttons */
.photo-carousel-nav-btn.swiper-button-disabled,
.photo-carousel-nav-btn:disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
}

.photo-carousel-nav-btn.swiper-button-disabled:hover,
.photo-carousel-nav-btn:disabled:hover {
  transform: translateY(-50%) !important;
  background: inherit !important;
  color: inherit !important;
  border-color: inherit !important;
}

/* Pagination Bar */
.photo-carousel-pagination {
  position: absolute;
  bottom: 0 !important;
  left: 0;
  right: 0;
  height: 60px;
  background: rgba(0, 83, 136, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 20px;
  z-index: 10;
  box-sizing: border-box;
  margin: 0 !important;
}

.photo-carousel-pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 1;
  border-radius: 50%;
  transition: all 0.3s ease;
  cursor: pointer;
}

.photo-carousel-pagination .swiper-pagination-bullet-active {
  width: 12px;
  height: 12px;
  background: #fff;
  transform: scale(1.2);
}

/* Subtitle Container */
.photo-carousel-subtitle-container {
  padding: 20px 0;
  text-align: center;
}

.photo-carousel-subtitle {
  color: #5a5f7d;
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  margin: 0;
}

/* Communication Photo Carousel */
.communication-carousel-section {
  margin: 40px 0;
  padding: 30px 0;
  border-top: 1px solid #E8EAF0;
}

.communication-carousel-section .carousel-section-title {
  color: #005388;
  font-family: 'Quicksand', sans-serif;
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 30px;
  text-align: left;
}

.communication-carousel {
  max-width: 100%;
  margin: 0 auto;
}

/* Responsive adjustments for communication carousel */
@media (max-width: 768px) {
  .communication-carousel-section .carousel-section-title {
    font-size: 24px;
    margin-bottom: 20px;
  }
  
  .communication-carousel-section .photo-carousel-image {
    max-height: 450px;
  }
  
  .communication-carousel-section .photo-carousel-nav-btn {
    width: 40px;
    height: 40px;
  }
  
  .communication-carousel-section .photo-carousel-prev {
    left: 10px;
  }
  
  .communication-carousel-section .photo-carousel-next {
    right: 10px;
  }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .swiper-slide {
    padding: 0 6px;
  }
  
  .thematic-scope-card {
    max-width: 300px;
    height: 350px;
  }

  .thematic-scope-image {
    height: 160px;
  }

  .thematic-scope-card .card-body {
    padding: 18px;
    height: 190px;
  }

  .thematic-scope-card .card-title {
    font-size: 16px;
    line-height: 22px;
  }

  .thematic-scope-card .card-text {
    font-size: 13px;
    line-height: 19px;
    -webkit-line-clamp: 5;
  }
  
  .button-prev,
  .button-next {
    width: 40px;
    height: 40px;
  }
  
  .button-prev i,
  .button-next i {
    font-size: 14px;
  }

  /* Photo Carousel Responsive Styles */
  .photo-carousel-image {
    max-height: 400px;
  }

  .photo-carousel-nav-btn {
    width: 40px;
    height: 40px;
  }

  .photo-carousel-nav-btn i {
    font-size: 16px;
  }

  .photo-carousel-prev {
    left: 10px;
  }

  .photo-carousel-next {
    right: 10px;
  }

  .photo-carousel-pagination {
    height: 50px;
    gap: 10px;
  }

  .photo-carousel-subtitle {
    font-size: 14px;
    line-height: 20px;
  }
}

/* Strategic Alignment Styles */
.section-image-container {
  padding: 0rem 2rem 2rem 2rem;
}

.section-img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Introductory Section */
.section-title-two {
  color: #414555;
  font-family: 'Open Sans', sans-serif;
  font-size: 25px !important;
}

.first-row-column-2-welcome {
  padding-left: 0px !important;
  padding-right: 0px !important;
}

.first-row-left-title {
  color: #5F5F5F;
  font-feature-settings: 'liga' off, 'clig' off;
  font-family: "Open Sans";
  font-size: 25px;
  font-style: normal;
  font-weight: 800;
  line-height: 40px;
  margin-left: 3rem !important;
  margin-top: 3rem !important;
}

.first-row-left-text {
  /* Positioning and margins - other styles from .ckeditor-content */
  margin: 0rem 3rem 3rem 3rem !important;
}

.welcome-container {
  border-radius: 8px;
  border: 2px solid #F1F3F7;
}

/* First Row Right */
.img-fluid {
  max-width: 75% !important;
}

.first-row-right {
  border-radius: 8px 8px 0px 0px;
  background: #F1F3F7;
  height: 100%;
}

.first-row-right-text {
  color: #414555;
  font-feature-settings: 'liga' off, 'clig' off;
  font-family: "Open Sans", sans-serif;
  font-size: 25px;
  font-style: normal;
  font-weight: 400;
  line-height: 140%; /* 35px */
  margin: 0px 58px 0px 58px;
}

/* Second Row (Blue Section) */
.blue-section {
  position: relative;
  background-size: cover;
  background-position: center;
  padding-top: 130px;
  padding-bottom: 130px;
}

.blue-section .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 67, 97, 0.9);
}

.second-row-left-text {
  color: #FFF;
  font-family: "Open Sans", sans-serif;
  font-size: 31px;
  font-style: normal;
  font-weight: 800;
  line-height: 137.5%; 
  margin-left: 75px;
  width: 333px;
}

.second-row-right-text {
  /* Special styling for blue section - white text */
  color: #FFF;
  width: 612px;
}

/* Third Row Left */

.third-row-left {
  border-radius: 8px;
  background: #F1F3F7;
  height: 100%;
  margin: 0px -15px 0px -15px !important
}

.third-row-left-title {
  color: #5f5f5f;
  font-family: "Open Sans", sans-serif;
  font-size: 25px;
  font-style: normal;
  font-weight: 800;
  margin: 0rem 3rem 1rem 3rem !important;
}

.third-row-left-text {
  /* Positioning and margins - other styles from .ckeditor-content */
  margin: 0rem 3rem 0rem 3rem !important;
}

/* Stat Cards */
.third-row-column-2-welcome {
  padding: 5rem 3rem 3rem 3rem;
}

.stat-value {
  color: transparent;
  font-family: 'Open Sans', sans-serif;
  font-size: 36px;
  font-weight: 800;
  -webkit-text-stroke: 1px #007eb4;
  display: flex;
}

.stat-label {
  color: #414555;
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  font-weight: 700;
}

.stat-detail {
  color: #414555;
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
}

.vertical-line {
  width: 2px; 
  background-color: #F1F3F7; 
  height: 160px; 
  margin: 0 20px; 
  flex-shrink: 0; 
  align-self: center;
}

/* Hide the vertical line on small screens */
@media (max-width: 767.98px) {
  .vertical-line {
    display: none;
  }
}

/* Logos Section */
.logos-section {
  margin-top: 30px; 
}

.logo-label {
  color: #6c748f;
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  margin-bottom: 10px;
}

.logo-image {
  max-width: 100px;
}

.partner-logo-welcome {
  width: 139px;
  height: 81px;
  background-color: rgba(241, 243, 247, 0.50);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin: 0 auto; 
}

@media (max-width: 768px) {
  .stat-card {
    margin-bottom: 20px;
  }
  .logo-image {
    max-width: 80px;
  }
}

/* Geographic Scope */
.content-container {
  border: 2px solid #f1f3f7;
  border-radius: 8px;
  padding: 80px 70px 50px 70px;
  background-color: #fff;
}

.content-title {
  color: #5f5f5f;
  font-family: 'Open Sans', sans-serif;
  font-size: 25px;
  font-weight: 800;
  margin-bottom: 30px;
}

.stat-card {
  margin-bottom: 30px;
}

.stat-card-content {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stat-number {
  color: transparent;
  font-family: 'Open Sans', sans-serif;
  font-size: 36px;
  font-weight: 800;
  -webkit-text-stroke: 1px #007eb4;
}

.stat-heading {
  color: #414555;
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
}

.content-paragraph {
  font-family: 'Open Sans', sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
}

.content-text {
  color: #414555;
}

.content-link {
  color: #007eb4;
  text-decoration: underline;
}

.background-section {
  position: relative;
  background-color: #f1f3f7;
  border-radius: 0px 0px 8px 8px;
  padding: 2rem;
  margin-top: -5px;
}

.background-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  padding: 2rem;
}

@media (max-width: 767px) {
  .content-row {
    flex-direction: column;
  }
}

/* Communications Section  */
.communication-card {
  background: #ffffff;
  border: 2px solid #e1e3ec;
  border-radius: 8px;
}
/* First Card */
.communication-card.flex-md-row {
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .communication-card.flex-md-row {
    flex-direction: row;
  }
}

.communication-card.flex-md-row .image-wrapper,
.communication-card.flex-md-row .card-body {
  width: 100%;
}

@media (min-width: 768px) {
  .communication-card.flex-md-row .image-wrapper,
  .communication-card.flex-md-row .card-body {
    width: 50%;
  }
}

.communication-card.flex-md-row .image-wrapper {
  overflow: hidden;
}

.communication-card.flex-md-row .image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
}

@media (min-width: 768px) {
  .communication-card.flex-md-row .image-wrapper img {
    border-radius: 8px 0 0 8px;
  }
}

/* Card Body */
.communication-card.flex-md-row .card-body {
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.communication-card.flex-md-row .card-title,
.communication-card.flex-md-row h5 {
  font-family: 'Open Sans', sans-serif;
  font-weight: 700;
  color: #6c748f;
  margin-bottom: 15px;
  font-size: 36px;
}

.communication-card.flex-md-row .card-text {
  font-family: 'Open Sans', sans-serif;
  font-size: 17px;
  color: #6c748f !important;
  flex-grow: 1;
}

.communication-card.flex-md-row .read-more-link {
  color: #6D758F;
  font-weight: 600;
  text-decoration: none;
  font-size: 16px;
}

.communication-card.flex-md-row .read-more-link:hover {
  text-decoration: underline;
}

.communication-card.flex-md-row .fa-arrow-right {
  color: #6D758F;
  margin-left: 5px;
}

.communication-card.flex-md-row .card-body .mt-auto {
  margin-top: auto;
}

/* Second Row Cards */
.custom-cards-space {
  margin-left: -5px;
  margin-right: -5px;
}

.custom-cards-space > [class*='col-'] {
  padding-left: 5px;
  padding-right: 5px;
}

.card-comm-img-top  {
  object-fit: cover;
  height: 300px;
  border-radius: 6px 6px 0 0;
}

.card.h-100 {
  display: flex;
  flex-direction: column;
}

.card.h-100 .card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.communication-card h5 {
  color: #6c748f;
  font-family: 'Open Sans', sans-serif;
  font-weight: 700;
  margin-bottom: 15px;
}

.communication-card .card-text {
  font-family: 'Open Sans', sans-serif;
  font-size: 17px;
  color: #6c748f !important;
  flex-grow: 1;
}

.communication-card .read-more-link {
  color: #6D758F;
  font-weight: 600;
  text-decoration: none;
  font-size: 16px;
}

.read-more-link {
  color: #6D758F;
  font-weight: 600;
  text-decoration: none;
  font-size: 16px;
}

.communication-card .read-more-link:hover {
  text-decoration: underline;
}

.read-more-link:hover {
  text-decoration: underline !important;
  color: #6D758F !important;
}

.communication-card .fa-arrow-right {
  color: #6D758F;
  margin-left: 5px;
}

.communication-card .card-body .mt-auto {
  margin-top: auto;
}

.text-muted {
  color: #6c748f !important;
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
}

.text-muted i {
  color: #6c748f;
}

@media (max-width: 767.98px) {
  .communication-card.flex-md-row {
    flex-direction: column;
  }
  .communication-card.flex-md-row .image-wrapper,
  .communication-card.flex-md-row .card-body {
    width: 100%;
  }
  .communication-card.flex-md-row .image-wrapper img {
    border-radius: 8px 8px 0 0;
  }
}

/* Article Page Styles */
.hero-section-subpage {
  position: relative;
  background-size: cover;
  background-position: center;
  color: #ffffff;
  text-align: left;
  padding-top: 150px;
  padding-bottom: 100px;
  z-index: 1;
}

.hero-section-subpage .container {
  position: relative;
  height: 100%; 
  z-index: 1;
  display: flex; 
  align-items: center; 
  justify-content: center; 
}

.hero-section-subpage .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 67, 97, 0.72);
  filter: blur(2px);
  z-index: 1;
}

.section-title-hero{
  color: white;
  font-family: Open Sans, var(--default-font-family);
  font-size: 48px;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 55px;
  word-wrap: break-word;
}

@media (max-width: 768px) {
  .section-title-hero {
      font-size: 3rem; 
      line-height: 44px; 
  }
}

@media (max-width: 480px) {
  .section-title-hero {
      font-size: 2rem; 
      line-height: 34px;
  }
}

.article-header {
  margin-bottom: 2rem;
}

.article-title {
  color: #005388;
  font-family: "Open Sans";
  font-size: 49px;
  font-style: normal;
  font-weight: 800;
  line-height: 130%; /* 63.7px */
}

.article-meta {
  font-size: 1rem;
  color: #6c748f;
  font-family: 'Open Sans', sans-serif;
}

.article-image img {
  border-radius: 8px;
  object-fit: cover;
}

.article-content {
  font-family: 'Open Sans', sans-serif;
  font-size: 18px;
  color: #6c748f;
  line-height: 1.6;
}

.article-content p {
  margin-bottom: 1rem;
}

.article-content h2,
.article-content h3,
.article-content h4 {
  color: #0091d1;
  font-family: 'Open Sans', sans-serif;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.article-content a {
  color: #0091d1;
  text-decoration: underline;
}

.article-content a:hover {
  text-decoration: none;
}

.btn-back {
  margin-top: 22px;
  background-color: transparent;
  border: 1px solid #005F88;
  border-radius: 40px;
  color: #005F88;
  padding: 10px 30px;
  font-size: 14px;
  font-weight: 600;
}

.btn-back:hover {
  background-color: #5a647e;
  border-color: #5a647e;
  color: white;
}

/* Goals Section */
.goal-card {
  display: flex;
  width: 318px;
  height: 215px;
  padding: 29px;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  border: 2px solid #F1F3F7;
  background: #F5F6F9;
  border-radius: 8px;
  transition: box-shadow 0.3s ease;
}

.goal-card:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Shadow effect on hover */
}

.goal-title {
  font-size: 31px !important;
  color: transparent;
  font-family: 'Open Sans', sans-serif;
  font-weight: 800;
  -webkit-text-stroke: 1px #007eb4;
  text-align: left;
  width: 100%;
}

.goal-description {
  color: rgba(75, 77, 78, 0.85);
  font-feature-settings: 'liga' off, 'clig' off;
  font-family: "Open Sans";
  font-size: 20px;
  font-style: normal;
  font-weight: 600;
  line-height: 137.5%; 
  text-align: left;
  width: 100%;
}

.second-row {
  display: flex;
  justify-content: center; 
  gap: 115px; 
}

.break-unit {
  display: inline-block; 
  margin-top: 0.5rem; 
  word-break: break-word;
  white-space: nowrap; 
}

.footer-sections-title {
  color: #6D758F;
  text-align: center;
  font-feature-settings: 'liga' off, 'clig' off;
  font-family: "Open Sans";
  font-size: 25px;
  font-style: normal;
  font-weight: 700;
  line-height: 137.5%; 
}

/* Flag container styles */
.flag-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.flag-row {
  display: flex;
  width: 100%; 
  flex-wrap: nowrap;
}

.flag {
  width: 3.5%; 
  min-width: 40px;
  display: flex;
  justify-content: center;
  margin: 0.1rem;
}

.flag img {
  max-width: 100%;
  height: auto;
  max-height: 35px;
}

.accordion-item-custom {
  border-bottom: 1px solid #e3e6eb;
  border-radius: 0.25rem;
}

.accordion-header-custom {
  background-color: #ffffff;
  border-radius: 0.25rem;
  margin-bottom: 0;
}

/* JW - Temporary fix for accordion header BEGIN */
.accordion-button-custom, .accordion-header-custom-content {
  display: flex;
  align-items: center;
  width: 100%;
  font-size: 1rem;
  font-weight: 600;
  color: #6D758F;
  text-align: left;
  background-color: #ffffff;
  padding: 1rem;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
  border-radius: 0.25rem;
  position: relative;
  line-height: normal;
}

.accordion-header-custom-content .accordion-title {
  max-width: 100%; 
  width: 100%; 
}

/* JW - Temporary fix for accordion header END */

.accordion-title {
  max-width: 100%; 
  max-width: 662px;
  white-space: normal; 
  word-wrap: break-word; 
}

@media (min-width: 768px) {
  .accordion-title {
    width: 662px; 
  }
}

.accordion-button-custom::after {
  content: '\f078';
  font-family: "Font Awesome 5 Free"; 
  font-weight: 900; 
  position: absolute;
  right: 1rem;
  font-size: 1rem;
  transition: transform 0.2s ease;
}

.accordion-button-custom.collapsed::after {
  transform: rotate(0);
}

.accordion-button-custom:not(.collapsed)::after {
  transform: rotate(180deg);
  color: #005388;
}

.accordion-button-custom:not(.collapsed) {
  background-color: #ffffff !important;
  color: #005388;
}

.accordion-body-custom {
  padding: 1rem;
  background-color: #F2F7F9;
  border-radius: 0 0 0.25rem 0.25rem;
}

.accordion-button-custom:focus {
  outline: none;
  box-shadow: none;
}

.accordion-button-custom:active {
  background-color: #ffffff;
}

/* Pure CSS Tooltip */
/*== start of code for tooltips ==*/
.tool {
  cursor: help;
  position: relative;
}


/*== common styles for both parts of tool tip ==*/
.tool::before,
.tool::after {
  left: 50%;
  opacity: 0;
  position: absolute;
  z-index: -100;
}

.tool:hover::before,
.tool:focus::before,
.tool:hover::after,
.tool:focus::after {
  opacity: 1;
  transform: scale(1) translateY(0);
  z-index: 100; 
}


/*== pointer tip ==*/
.tool::before {
  border-style: solid;
  border-width: 1em 0.75em 0 0.75em;
  border-color: #6D758F transparent transparent transparent;
  bottom: 100%;
  content: "";
  margin-left: -0.5em;
  transition: all .65s cubic-bezier(.84,-0.18,.31,1.26), opacity .65s .5s;
  transform:  scale(.6) translateY(-90%);
} 

.tool:hover::before,
.tool:focus::before {
  transition: all .65s cubic-bezier(.84,-0.18,.31,1.26) .2s;
}


/*== speech bubble ==*/
.tool::after {
  background: #6D758F;
  border-radius: .25em;
  bottom: 125%;

  color: #ffffff;
  content: attr(data-tip);
  margin-left: -7.5em;
  padding: 1em;
  transition: all .65s cubic-bezier(.84,-0.18,.31,1.26) .2s;
  transform:  scale(.6) translateY(50%);  
  width: 15em;
  text-align: center;
}

.tool:hover::after,
.tool:focus::after  {
  transition: all .65s cubic-bezier(.84,-0.18,.31,1.26);
}

@media (max-width: 760px) {
.tool::after { 
      font-size: .75em;
      margin-left: -5em;
      width: 10em; 
}
}

figure.table {
  font-size: small;
}
.sticky figure.table {
  overflow-x: scroll;
  overflow-y: scroll;
  height: 720px;
}

.sticky figure.table tbody tr:first-child td{
  position: sticky;
  top: 0;
  z-index: 4;
}

.sticky figure.table tbody tr:nth-child(2) td{
  position: sticky;
  top: 20px;
}

.sticky-timeline figure.table tbody tr:nth-child(2) td{
  position: sticky;
  top: 45px;
}

.sticky-timeline figure.table tbody tr:nth-child(3) td{
  position: sticky;
  top: 90px;
}

figure.table tbody td:first-child, figure.table thead th:first-child {
  position: sticky;
  left: 0;
  z-index: 4;
}

.sticky figure.table tbody tr:first-child td:first-child, 
.sticky figure.table tbody tr:first-child td:nth-child(2) {
  z-index: 5;
}

figure.table tbody td:nth-child(2), figure.table thead td:nth-child(2) {
  position: sticky;
  left: 92px;
  background-color: white;
  z-index: 3;
}
figure.table tbody tr:nth-child(2) td:first-child,  figure.table tbody tr:nth-child(2) td:nth-child(2){
  left:0
}
.map-layout {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
}
.outputs {
  width: 30%;
  display: flex;
  flex-direction: column;
  font-family: "Open Sans", sans-serif;
}
.outputs table td .active {
  color: #0091d1 !important;
  font-weight: bold;
}
.outputs table td {
  color: #6c748f;
  cursor: pointer;
}

.map-hotspot .active {
  background-color: #0091d1 !important;
}

.outputs table td {
  font-size: small;
  padding: 3px;
}

.map {
  width: 70%;
  position: relative;
  padding: 0;
}
.map-image {
  display: block;
  height: 100%;
  width: 100%;
  object-fit: scale-down;
}
.map-hotspot {
  position: absolute;
  margin: 0;
  padding: 0;
  transform: translate(-50%, -50%);
  z-index: 0;
}
.map-hotspot:hover .lg-hotspot__button, .map-hotspot:active .lg-hotspot__button {
  border-color: rgba(0, 67, 97, 0.33);
}
.map-hotspot:hover .lg-hotspot__button:after, .map-hotspot:active .lg-hotspot__button:after {
  background-color: rgba(0, 67, 97, 0.33);
}
.map-hotspot--selected {
  z-index: 999;
}
.map-hotspot--selected .lg-hotspot__label {
  opacity: 1;
}
.map-hotspot__button {
  height: 48px;
  width: 48px;
  padding: 0px;
  border-radius: 100%;
  border: 1px solid rgba(0, 67, 97, 0.33);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  z-index: 999;
  animation: button-pulse 7s ease-in-out infinite;
  cursor: pointer;
}
.map-hotspot__button:after {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  content: "";
  display: block;
  height: 16.8px;
  width: 16.8px;
  border-radius: 100%;
  border: 3px solid white;
  background-color: rgba(0, 67, 97, 0.33);
  transition: border-color 1s linear;
}
.map-hotspot__label {
  position: absolute;
  padding: 0 0 1.1em 0;
  width: 16em;
  max-width: 50vw;
  background-color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  font-family: "Open Sans", sans-serif;
  font-size: 14.5px;
  line-height: 1.45em;
  z-index: -1;
  border-radius: 2px;
  user-select: none;
  opacity: 0;
  transition: all 0.1s linear;
}
.map-hotspot__label h4 {
  margin: 0;
  padding: 0.65em 24px;
  background-color: #555;
  font-size: 1.1em;
  font-weight: normal;
  letter-spacing: 0.02em;
  color: white;
  border-radius: 2px 2px 0 0;
}
.map-hotspot__label p {
  margin: 0;
  padding: 1.1em 24px 0 24px;
  color: #333;
}
@keyframes button-pulse {
  0% {
    transform: scale(1, 1);
    opacity: 1;
 }
  40% {
    transform: scale(1.15, 1.15);
    opacity: 1;
 }
  100% {
    transform: scale(1, 1);
    opacity: 1;
 }
}
.outputs .vertical-text {
  text-align: center;
  writing-mode: vertical-rl; 
  text-orientation: mixed;  
  transform: rotate(180deg); 
  background-color: #e6f0f4;
  color: #005F88;
  font-weight: 600;
}

/*== Builder Blocks Layout ==*/

.content-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.content-lane {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 24px;
}

/* This will select direct descendents only */
.content-lane > * {
  width: 100%;
}

.layout-wrap {
  width: 100%;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

/*== End Layout ==*/

/*== Typography ==*/

.section__title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

/*== End Typography ==*/


/*== Aside ==*/

aside {
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  padding: 15px;
  border-image: url(https://storage.googleapis.com/cpit-procaribe-public-assets/Common/Images/welcome-vector_2024-10-17-125106_lakl.png) 30 round;
  /* Font styling from .ckeditor-content */
}

/*== End Aside ==*/

/*== Focus Text ==*/

.focus-text {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 65px;
  padding:65px;
  position: relative;
  background-size: cover;
  background-position: center;
  padding-top: 130px;
  padding-bottom: 130px;
  background-color: rgba(0, 67, 97, 0.9);
  background-blend-mode: multiply;
  background-image: url(https://storage.googleapis.com/cpit-procaribe-public-assets/Common/Images/clme-1_2024-10-17-124022_mxsz.png);
  color: white;
}

.focus-text__header {
  flex-grow: 3;
}

.focus-text__text {
  flex-grow: 1;
}

/*== End Focus Text ==*/

/*== Card ==*/

.card-builder {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  border-radius: 0.5rem;
  overflow: hidden;
  min-width: 20rem;
  max-width: 30em;
}

.card-builder--hover {
  transform: translateY(0px);
  box-shadow: 0 4px 8px rgba(24, 32, 60, 0.0);
  transition: all .3s;
}

.card-builder--hover:hover {
  transform: translateY(-5px); 
  box-shadow: 0 4px 8px rgba(24, 32, 60, 0.1);
  transition: all .3s;
}

.card-builder--bordered {
  border: 1px solid silver;
}

.card-builder--square {
  aspect-ratio: 1/1;
}

.card-builder--portrait {
  aspect-ratio: 2/3;
}

.card-builder__header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  padding: 1rem 1rem 0 1rem;
  margin: 0;
  font-size: 2rem;
  -webkit-text-stroke: 1px #007eb4;
  font-weight: 800;
}

.card-builder__image {
  width: 100%;
}

.card-builder__sub-header {
  padding: 0 1rem;
  font-size: 1rem;
  font-weight: 600;
}

.card-builder__sub-text {
  padding: 0 1rem 1rem 1rem;
  font-size: 1rem;
  font-weight: 400;
}

.basic-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between; 
  align-items: flex-start;
  width: 100%; 
  height: 100%; 
  min-height: 215px; 
  padding: 29px;
  border: 2px solid #F1F3F7;
  background: #F5F6F9;
  border-radius: 8px;
  transition: box-shadow 0.3s ease;
  box-sizing: border-box; 
  margin-bottom: 16px; 
}

/* Hover effect for .basic-card */
.basic-card:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Title style for .basic-card */
.basic-card-title {
  font-size: 31px !important;
  color: transparent;
  font-family: 'Open Sans', sans-serif;
  font-weight: 800;
  -webkit-text-stroke: 1px #007eb4;
  text-align: left;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap; 
}

/* Description style for .basic-card */
.basic-card-description {
  color: rgba(75, 77, 78, 0.85);
  font-family: "Open Sans";
  font-size: 20px;
  font-weight: 600;
  line-height: 1.375; 
  text-align: left;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis; 
  flex-grow: 1; 
}

/* Flex container for the cards */
.card-container {
  display: flex;
  flex-wrap: wrap; 
  gap: 16px; 
  justify-content: space-between; 
  width: 100%; 
  flex: 1 1 calc(30% - 20px);
}


/*== End Card ==*/

figure.image {
  display: flex;
  justify-content: center; 
  align-items: center;    
  margin: 1rem 0;
}

figure.image img {
  max-width: 100%; 
  height: auto;
  aspect-ratio: unset !important;
  width: auto !important;
  max-height: 500px;
  object-fit: contain;
}

/* Additional responsive styling for CKEditor images */
@media (max-width: 768px) {
  figure.image img {
    max-height: 300px;
  }
}

@media (max-width: 480px) {
  figure.image img {
    max-height: 250px;
  }
}

/* Styling for the expandable button */
.iframe-toggle {
  cursor: pointer;
  padding: 12px 15px;
  background: #F5F6F9;
  color: #005388;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: space-between; 
  width: 100%; 
  border: 2px solid #F1F3F7;
  border-radius: 8px;
  transition: background 0.3s ease-in-out;
}

.iframe-toggle:hover {
  background: #F5F6F9;
}

.iframe-toggle .icon-plus {
  font-size: 20px;
  font-weight: bold;
  transition: transform 0.3s ease;
}

.iframe-content.is-open + .iframe-toggle .icon-plus::before {
  content: "−"; 
}

.iframe-content {
  display: none;
  padding: 10px;
  transition: all 0.3s ease-in-out;
}

/* Show content when active */
.iframe-content.is-open, .article-content.is-open {
  display: block;
}

.is-hidden {
  display: none;
}

/* iFrame Video on CKeditor */
.media {
  margin: 2rem 0;
  width: 100%;
}
.media figure {
  margin: 0;
  padding: 0;
}
.media [data-oembed-url] {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
}
.media [data-oembed-url] iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Login, Register, and Account Page Specific Styles */
.login-page, .register-page {
  position: relative;
  z-index: 1001; /* Higher than menu dropdown */
}

.login-page .container, .register-page .container {
  position: relative;
  z-index: 1002;
}

.login-page .card, .register-page .card {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  z-index: 1003;
  position: relative;
}

/* Override global hover effects for login/register forms */
.login-page a, .register-page a {
  color: #007bff !important;
  text-decoration: none;
}

.login-page a:hover, .register-page a:hover {
  color: #0056b3 !important;
  text-decoration: underline !important;
}

/* Account page specific styles */
.login-page .btn-secondary {
  background-color: #6c757d;
  border-color: #6c757d;
}

.login-page .btn-secondary:hover {
  background-color: #5a6268;
  border-color: #545b62;
}

.login-page .btn-info {
  background-color: #17a2b8;
  border-color: #17a2b8;
}

.login-page .btn-info:hover {
  background-color: #138496;
  border-color: #117a8b;
}

/* Account page button group styling */
.login-page .account-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #dee2e6;
}

.login-page .account-buttons .btn {
  min-width: 160px;
  padding: 12px 24px;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: white;
  border: 2px solid #005F88;
  color: #005F88;
}

.login-page .account-buttons .btn:hover {
  background-color: #f8f9fa;
  border-color: #004a6b;
  color: #004a6b;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 95, 136, 0.15);
  text-decoration: none;
}

/* Remove the old separate styling for btn-secondary and btn-info */
.login-page .account-buttons .btn-secondary {
  background-color: white;
  border: 2px solid #005F88;
  color: #005F88;
}

.login-page .account-buttons .btn-secondary:hover {
  background-color: #f8f9fa;
  border-color: #004a6b;
  color: #004a6b;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 95, 136, 0.15);
}

.login-page .account-buttons .btn-info {
  background-color: white;
  border: 2px solid #005F88;
  color: #005F88;
}

.login-page .account-buttons .btn-info:hover {
  background-color: #f8f9fa;
  border-color: #004a6b;
  color: #004a6b;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 95, 136, 0.15);
}

/* Remove emoji icons */
.login-page .account-buttons .btn-secondary::before,
.login-page .account-buttons .btn-info::before {
  display: none;
}

/* Account form alignment - align Update Password button with Groups field */
.login-page .account-form-row {
  display: flex;
  align-items: stretch;
}

.login-page .account-form-row .col-md-6 {
  display: flex;
  flex-direction: column;
}

.login-page .account-form-row .col-md-6 > h4 {
  margin-bottom: 1rem;
}

/* Left column - Account Information */
.login-page .account-form-row .col-md-6:first-child {
  padding-right: 15px;
}

.login-page .account-form-row .col-md-6:first-child .form-group {
  margin-bottom: 1rem;
}

.login-page .account-form-row .col-md-6:first-child .form-group:last-child {
  margin-bottom: 0;
  margin-top: auto;
}

/* Right column - Change Password */
.login-page .account-form-row .col-md-6:last-child {
  padding-left: 15px;
}

.login-page .account-form-row .col-md-6:last-child form {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.login-page .account-form-row .col-md-6:last-child .form-group {
  margin-bottom: 1rem;
}

.login-page .account-form-row .col-md-6:last-child .form-group:last-child {
  margin-bottom: 0;
  margin-top: auto;
  display: flex;
  align-items: end;
}

.login-page .account-form-row .col-md-6:last-child .form-group:last-child .btn {
  height: 38px; /* Match form control height */
  align-self: stretch;
}

/* Mobile responsive for account buttons */
@media (max-width: 768px) {
  .login-page .account-buttons {
    flex-direction: column;
    gap: 10px;
  }
  
  .login-page .account-buttons .btn {
    width: 100%;
    min-width: auto;
  }
  
  .login-page .account-form-row {
    display: block;
  }
  
  .login-page .account-form-row .col-md-6 {
    display: block;
    padding-left: 15px;
    padding-right: 15px;
    margin-bottom: 2rem;
  }
  
  .login-page .account-form-row .col-md-6:last-child form {
    display: block;
    height: auto;
  }
  
  .login-page .account-form-row .col-md-6:last-child .form-group:last-child {
    margin-top: 1rem;
  }
  
  .login-page .account-form-row .col-md-6:last-child .form-group:last-child .btn {
    height: auto;
  }
}

/* Ensure proper spacing from header */
.login-page .container, .register-page .container {
  margin-top: 100px; /* Push content below fixed header */
}

/* Form styling improvements */
.login-page .form-group, .register-page .form-group {
  margin-bottom: 1rem;
}

.login-page .form-control, .register-page .form-control {
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  padding: 0.375rem 0.75rem;
}

.login-page .form-control:focus, .register-page .form-control:focus {
  border-color: #80bdff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.login-page .btn-primary, .register-page .btn-primary {
  background-color: #007bff;
  border-color: #007bff;
  width: 100%;
}

.login-page .btn-primary:hover, .register-page .btn-primary:hover {
  background-color: #0056b3;
  border-color: #0056b3;
}

/* Text color fixes */
.login-page .text-muted, .register-page .text-muted {
  color: #6c757d !important;
}

.login-page .card-title, .register-page .card-title {
  color: #212529 !important;
}

.login-page label, .register-page label {
  color: #495057 !important;
  font-weight: 500;
}

/* Alert styling */
.login-page .alert, .register-page .alert {
  border-radius: 0.375rem;
  margin-bottom: 1rem;
}

.login-page .alert-success, .register-page .alert-success {
  color: #155724;
  background-color: #d4edda;
  border-color: #c3e6cb;
}

.login-page .alert-danger, .register-page .alert-danger {
  color: #721c24;
  background-color: #f8d7da;
  border-color: #f5c6cb;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .login-page .container, .register-page .container {
    margin-top: 80px;
    padding: 0 15px;
  }
  
  .login-page .col-md-6, .register-page .col-md-6 {
    max-width: 100%;
  }
}