@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

body {
  font-family: 'Inter', 'Noto Sans SC', sans-serif;
  font-weight: 400;
  /* Regular for body */
}

/* Override font specifically when HTML lang="zh" */
:lang(zh) body,
:lang(zh) h1,
:lang(zh) h2,
:lang(zh) h3,
:lang(zh) p,
:lang(zh) a,
:lang(zh) button,
#video-content {
  font-family: 'Noto Serif SC', 'Source Han Serif SC', 'Source Han Serif', serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Inter', 'Noto Sans SC', sans-serif;
  font-weight: 700;
  /* Bold for headers */
}




.hover-red-bg-btn:hover {
  background: rgba(234, 35, 41, 255);
  border-color: rgba(234, 35, 41, 255) !important;
  color: var(--bs-white) !important;
}

.hover-dark-red-bg-btn:hover {
  background: rgb(174, 0, 5) !important;
}

.index-dropdown-btn.show,
.index-dropdown-btn:first-child:active,
.index-btn:active,
.program-learn-more-btn:active,
.load-more-stories-btn:active {
  background: rgba(234, 35, 41, 255) !important;
  color: var(--bs-white) !important;
  border-color: rgba(234, 35, 41, 255) !important;
}

.index-btn,
.index-dropdown-btn,
.load-more-stories-btn {
  background: var(--bs-white);
  border-color: rgba(234, 35, 41, 255);
  border-radius: 32px;
  border-width: 2.5px;
  color: rgba(234, 35, 41, 255);
  font-weight: bold;
}

.program-learn-more-btn {
  background: rgba(250, 251, 253, 255);
  border-color: rgba(234, 31, 38, 255);
  border-radius: 32px;
  border-width: 1.7px;
  color: rgba(234, 31, 38, 255);
  font-size: 18px;
}

.program-title-info-section {
  margin: auto;
  margin-bottom: 21px;
  max-width: 1320px;
  text-align: center;
}

.program-name {
  color: rgba(232, 32, 39, 255);
  font-size: 60px;
  font-weight: bold;
  margin-left: 5px;
  margin-right: 5px;
}

.program-title {
  font-weight: bold;
  font-size: 31px;
}

.program-info {
  font-size: 19px;
}

.program-title-info-section div {
  margin-right: 20px;
  margin-left: 20px;
}

.personal-stories-image-div img {
  margin: 0px;
  margin-right: 0px;
  margin-left: 0px;
  text-align: right;
}

.personal-stories-description {
  font-size: 1.2em;
  text-align: justify;
}

.personal-stories-name,
.personal-stories-profession,
.personal-stories-location {
  font-size: 1.2em;
  margin-bottom: 0;
}

.personal-stories-name {
  font-weight: bold;
}

.personal-stories-profession,
.personal-stories-location {
  color: rgba(123, 128, 133, 255);
}

.card {
  height: auto;
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
}

@media (min-width: 768px) {
  .card-image {
    height: auto;
    display: flex;
    justify-content: center;
    border-bottom: solid 1px var(--bs-card-border-color);
  }
}

@media (min-width: 768px) {
  .card-image img {
    height: 100px;
    margin: 0.5em 0;
  }
}

@media (max-width: 768px) {
  .card img {
    width: 100%;
  }
}

.card-title {
  color: black;
}

.card img {
  width: 100%;
  height: 400px;
}

.card-soft-shadow {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

.card-soft-shadow:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.soft-shadow {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#company-logo {
  height: 70px !important;
  width: 70px !important;
  margin-right: 10px;
  margin-top: 5px;
}

.storiesAbout-TrainerName {
  font-size: 40px;
}

.trainerProfile {
  text-align: justify;
  color: rgba(15, 19, 26, 255);
}

.trainer-profile-photo {
  min-height: 250px;
}

.video-row {
  margin: 0em auto;
  max-width: 1320px;
}

.video-div {
  margin: 0em auto;
}

.video-div iframe {
  height: 315px;
  width: 560px;
}

@media (min-width: 300px) {
  .video-item {
    min-width: 330px;
    width: 100%;
    background: var(--bs-secondary-text-emphasis);
    padding: 3px;
    height: 300px;
  }
}

@media (min-width: 992px) {
  .video-item {
    height: 350px;
  }
}

.load-more-vid {
  display: flex !important;
}

.hidden-video {
  display: none;
}

/* Navbar Link Hover Animation */
.nav-link {
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: #d70008;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover {
  color: #d70008 !important;
}

.nav-link:hover::after {
  width: 100%;
}

.footer a:hover {
  color: #d70008 !important;
}

.navbar-toggler:hover {
  border-color: #d70008;
}

#info:hover {
  background: rgb(215, 0, 8) !important;
}

.dropdown-item:active,
#link.border:hover {
  background-color: #d70008;
  color: var(--bs-white) !important;
}

.image-border {
  border: solid var(--bs-gray-500) 1px;
  border-radius: 10px;
  width: 100%;
}

@media (max-width: 576px) {
  .owl-carousel {
    width: 100%;
  }
}

img {
  max-width: 100%;
  display: block;
}

figure {
  margin: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  break-inside: avoid;
  max-width: 100%;
}

figure>img {
  grid-row: 1 / -1;
  grid-column: 1;
}

figcaption {
  grid-row: 2;
  grid-column: 1;
  background-color: rgba(255, 255, 255, .5);
  padding: .2em .5em;
  justify-self: start;
  font: 1.1em 'Inter', 'Noto Sans SC', sans-serif;
  border-bottom-left-radius: 10px;
}

.masonry-container {
  column-count: 1;
  width: 100%;
}

@media (min-width: 992px) {
  .masonry-container {
    column-count: 3;
  }
}

/* Ensure bootstrap cols stack vertically inside masonry columns */
.masonry-container>[class*='col-'] {
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
}

.text-stories-row a {
  font-size: 30px;
}

.index-body h1 {
  margin-bottom: 20px !important;
}

.index-h1 {
  font-weight: bold;
}

@media (min-width: 768px) {
  .index-h1 {
    font-size: 3rem;
  }
}

@media (min-width: 768px) {
  .index-h6 {
    font-size: 1.25rem;
  }
}

.index-h5,
.sort-para,
.story-h5 {
  margin: 0;
  font-weight: bold;
}

.section-grey-background {
  background: var(--bs-gray-200);
}

.card-body p {
  margin: 0;
}

.card-body a,
.program a,
.program h2,
.program h5 {
  text-decoration: none;
  color: #ea2329;
  font-weight: bold;
}

.card-body .content {
  margin: 1em 0;
}

.card-body .name {
  font-weight: bold;
  font-size: 1.2em;
}

.card-body h3 {
  margin: 0;
  display: inline;
}

.card-body .program {
  margin-bottom: 8px;
}

section {
  padding: 2em 0;
}

#link:hover {
  border-color: rgba(234, 35, 41, 255) !important;
}

#link {
  border-color: rgba(234, 35, 41, 255) !important;
  padding: 0.5em;
  color: rgba(234, 35, 41, 255);
  font-weight: bold;
  border-width: 2.5px !important;
  text-decoration: none;
  background: var(--bs-white);
}

#red-link,
#search-button {
  border-color: rgba(234, 35, 41, 255) !important;
  padding: .3em 1.3em;
  color: var(--bs-white);
  font-weight: bold;
  border-width: 2.5px !important;
  text-decoration: none;
  background: rgba(234, 35, 41, 255);
  font-size: 1.2em;
}

a:hover {
  text-decoration: underline;
}

#masonry-container a figure {
  margin-bottom: 1em;
}

.video-title-container {
  margin-bottom: 2em;
}

@media (max-width: 575px) {
  .load-more-video-btn {
    display: none;
  }
}

@media (max-width: 575px) {
  .row {
    margin: auto 0;
  }
}

.index-h5 {
  font-size: 1.75rem;
}

@media (min-width: 768px) {
  .page-title-heading-section {
    margin: 0em 0 3em 0;
  }
}

@media (max-width: 576px) {
  #inspiring-heading {
    font-size: 1.75em;
    margin-bottom: 0.5em;
  }
}

.page-title-heading-section .dropdown {
  margin: 0.5rem;
}

.sort-para {
  font-size: 1.2em;
}

.hidden {
  display: none;
}

#personal-stories iframe,
#video-page-section iframe {
  position: absolute;
  width: calc(100% - 10px);
  height: 100%;
  top: 0;
  left: 5px;
}

#video-col {
  padding-top: 56.25%;
  position: relative;
}

#personal-stories #video-col {
  margin: 0 calc(var(--bs-gutter-x) * .5);
  width: calc(100% - var(--bs-gutter-x));
}

@media (min-width: 768px) {
  #video-page-section #video-col {
    padding-top: 28.125%;
  }
}

#index-tell-story-section .contact-btn {
  border-radius: 30px;
  border-width: 3px;
  font-size: 1.2em;
  color: white;
}

.contact-btn:hover,
.contact-btn:active {
  color: white !important;
}

.whatsapp-btn {
  background: #25d366;
  border-color: #25d366 !important;
}

.whatsapp-btn:hover,
.whatsapp-btn:active {
  background-color: #169a48 !important;
}

.phone-btn {
  background: #FCAF45;
  border-color: #FCAF45 !important;
}

.phone-btn:hover,
.phone-btn:active {
  background-color: #ba8031 !important;
}

.messenger-btn {
  background: #006AFF;
  border-color: #006AFF !important;
}

.messenger-btn:hover,
.messenger-btn:active {
  background-color: #0049b0 !important;
}

a {
  text-decoration: none;
  color: red;
}

#program-banner-section .row {
  box-shadow: 0px 0px 20px 0px var(--bs-border-color-translucent);
  border-width: 0px;
  border-style: solid;
  padding: 1.5em;
}

#learn-more-banner .container {
  background: #00000010;
  border-width: 0px;
  border-style: solid;
  padding: 2em;
}

h2.personal-stories-name {
  font-size: 2rem;
}

#red-link.learn-more {
  padding: .3em 1em .3em 1.5em;
}

#program-banner-section .button-div {
  margin-top: 1.5em;
}

@media (min-width: 992px) {
  #index-tell-story-section .fas.fa-arrow-right {
    display: block !important;
  }
}

#index-tell-story-section .fas.fa-arrow-right {
  font-size: 30px;
  margin-left: 10px;
  display: none;
}

.navbar {
  background: #ffffff;
  transition: top 0.5s;
  border-bottom: 1px solid var(--bs-gray-200);
}

@media (min-width: 992px) {
  #sticky-bottom {
    position: fixed;
    width: 100%;
    bottom: 0;
    z-index: 2;
    transition: 0.5s;
  }
}

@media (min-width: 992px) {
  #index-tell-story-section {
    position: sticky;
    top: 105px;
    z-index: 2;
    transition: 0.5s;
  }
}

#sticky-bottom {
  background: #ea2329;
  color: white;
}

#index-tell-story-section {
  background: #ea2329;
  color: white;
}

#index-tell-story-section .fab,
#index-tell-story-section .fas {
  margin-left: 10px;
  font-size: 30px;
}

.seperator {
  border-left: solid 3px red;
  margin: 3px 10px;
}

.program h5,
#personal-stories h2 {
  display: flex;
}

.footer img {
  max-width: 300px;
  width: 100%;
}

.footer {
  border-top: 1px solid var(--bs-gray-200);
}

#social-review-section a {
  color: initial;
}

.dropdown-menu {
  border-color: #d70008;
}

#navcol .nav-item {
  text-align: center !important;
}

@media (max-width: 767px) {
  #navcol .nav-item.d-flex {
    justify-content: center;
  }
}

@media (min-width: 768px) {
  .nav-item {
    margin: 0 0.5em;
  }
}

#index-tell-story-section h1 {
  font-size: 1.5em;
  margin: 0;
}

h5 {
  font-weight: bold;
}

@media (max-width: 767px) {
  #program-banner-section .program-detail {
    margin-top: 1em;
  }
}

.nav-item a:hover,
#index-tell-story-section a:hover,
.dropdown a:hover,
.footer a:hover {
  text-decoration: none !important;
}

.trainer-profile {
  font-size: 1.2em;
}

@media (max-width: 767px) {
  #trainer-details {
    margin-top: 1em;
  }
}

#back {
  color: var(--bs-black);
  margin: 2em 0;
  background: var(--bs-gray-300);
}

#back:hover {
  text-decoration: none;
  background-color: var(--bs-gray-500);
}

.popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 2;
}

.popup img {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 90%;
}

.popup #video-col {
  padding: 0;
  align-items: center;
  justify-content: center;
  display: flex;
}

.close-button {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 30px;
  color: white;
  cursor: pointer;
  z-index: 10;
}

.sticky-top {
  z-index: 2;
}

.video-thumbnail {
  width: 100%;
  padding-bottom: 56.25%;
  /* 16:9 Aspect Ratio */
  background-position: center center !important;
  background-size: cover !important;
  display: flex;
  position: relative;
  /* Contain absolute children */
  align-content: center;
  justify-content: center;
}

.video-thumbnail i {
  color: white;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* Start perfect centering */
  font-size: 50px;
  z-index: 1;
}

/* Obsolete media queries removed */

.video-thumbnail:hover {
  cursor: pointer;
}

.video-thumbnail:hover::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.4);
  position: absolute;
  top: 0;
  left: 0;
}

.show-video {
  display: flex !important;
}

nav.pagination {
  margin-top: 2em;
}


/* CTA Banner Redesign */
#index-tell-story-section {
  background: white !important;
  position: sticky !important;
  top: 0;
  z-index: 1000;
  padding: 0;
  transition: top 0.3s;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

#index-tell-story-section .container {
  padding: 0;
}

.cta-banner {
  background: #ffffff;
  height: 90px;
}

.cta-left-decoration {
  background-color: #b91d23;
  /* Darker red */
  width: 140px;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  border-top-right-radius: 90px;
  border-bottom-right-radius: 90px;
  z-index: 10;
}

.cta-icon-circle {
  width: 50px;
  height: 50px;
  border: 3px solid #e0e0e0;
  background: #f8f9fa;
  color: #b91d23;
  z-index: 11;
}

.cta-content {
  margin-left: 160px;
  /* clear left decoration */
  margin-right: 320px;
  /* clear right decoration */
  z-index: 20;
  position: relative;
  white-space: nowrap;
}

.cta-right-decoration {
  background-color: #ea2329;
  /* Brand Red */
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 400px;
  clip-path: polygon(60px 0, 100% 0, 100% 100%, 0% 100%);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 40px;
  /* Compensate for slant */
}

.cta-right-decoration .btn {
  background: #fff;
  color: #ea2329;
  border: none;
  padding: 10px 24px;
  font-size: 1rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cta-right-decoration .btn:hover {
  background: #f8f9fa;
  transform: translateY(-1px);
}

.notification-icon {
  margin-left: 20px;
  cursor: pointer;
  transition: transform 0.2s;
}

.notification-icon:hover {
  transform: scale(1.1);
}

/* Responsive adjustments */
@media (max-width: 991px) {
  #index-tell-story-section {
    padding: 1rem 0;
    position: relative !important;
    top: auto !important;
  }

  .cta-banner {
    height: auto;
    flex-direction: column;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
  }

  .cta-left-decoration {
    position: relative;
    width: 100%;
    height: 80px;
    border-radius: 0;
    border-bottom-left-radius: 50% 20px;
    border-bottom-right-radius: 50% 20px;
    margin-bottom: 20px;
    background-color: #b91d23;
  }

  .cta-content {
    margin: 0;
    text-align: center;
    padding: 20px;
    white-space: normal;
  }

  .cta-right-decoration {
    position: relative;
    width: 100%;
    height: auto;
    padding: 30px;
    clip-path: none;
    background-color: #ea2329;
    /* create a top slant for mobile? */
    clip-path: polygon(0 20px, 100% 0, 100% 100%, 0% 100%);
  }
}


.btn:focus-visible {
  color: white;
  background: #ea2329;
  border: #ea2329;
  outline: 0;
  box-shadow: 0 0 0 0.25em #ea232961;
}

#search-input {
  font-size: 1.2em;
  padding: 0.2em;
  margin-right: 1em;
}

#search-input:focus-visible {
  outline: #ea2329 auto 1px;
}

.searching-title-inputs {
  --bs-gutter-x: 1.5em;
  padding: 0 calc(var(--bs-gutter-x) * .5);
}

@media (min-width: 768px) {
  .searching-title-inputs {
    padding: 0;
  }
}

.video-fullwidth {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  overflow: hidden;
  border-radius: 12px;
}

.video-fullwidth iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
}

.video-fullwidth video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
}

.ratio-16x9 {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 350px;
  overflow: hidden;
  border-radius: 8px;
}

.ratio-16x9 iframe,
.ratio-16x9 video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 20px rgba(0, 0, 0, .12);
}

.video-container iframe,
.video-container video {
  width: 100%;
  height: 100%;
  display: block;
}

.video-wrapper {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

#video-content .program a {
  font-weight: 600;
  text-decoration: none;
}

#video-content .program .seperator {
  display: inline-block;
  width: 12px;
}

.personal-stories-description {
  margin-top: 1rem;
  line-height: 1.6;
}

.card .program h5 {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: baseline;
  line-height: 1.4em;
  word-break: break-word;
  white-space: normal;
}

.program-link,
.trainer-link {
  font-weight: 600;
  text-decoration: none;
}

.program-link:hover,
.trainer-link:hover {
  text-decoration: underline;
}

.seperator {
  margin: 0 4px;
  color: #666;
  font-weight: normal;
}

.program h2 {
  line-height: 1.4em;
  white-space: normal;
  word-break: break-word;
}

.story-tag {
  background-color: #fafafa;
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 13px;
  color: #b30000;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.story-tag:hover {
  background: #ffe5e5;
}

.tag-container {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid #f1f1f1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#trainer-programs a.trainer-program-link {
  font-size: 1.05rem;
  color: #b00;
  text-decoration: none;
  transition: color 0.2s ease;
}

.programs-header {
  font-family: inherit;
  font-size: 1.15rem;
  font-weight: 500;
  color: #333;
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  margin-bottom: 0.4rem;
}

.programs-title-cn {
  color: #000;
  font-weight: 600;
}

.programs-separator {
  color: rgba(145, 158, 171, 0.8);
}

.programs-title-en {
  color: rgba(100, 100, 100, 0.8);
  font-weight: 400;
}

.program-list {
  margin-top: 0.5rem;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
}

.page-btn {
  padding: 8px 14px;
  border: none;
  border-radius: 5px;
  background-color: #eee;
  cursor: pointer;
  transition: all 0.2s ease;
}

.page-btn:hover {
  background-color: #ccc;
}

.page-btn:active {
  background-color: #c00;
  color: #fff;
  font-weight: bold;
}

/* General Footer Styles */
.site-footer {
  background: #444;
  color: #eee;
  font-family: 'Inter', 'Noto Sans SC', sans-serif;
  font-size: 15px;
  border-top: 1px solid #2b2b2b;
  padding: 20px 0;
  width: 100%;
}

.footer-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
}

/* Footer Left Content */
.footer-left p {
  margin: 0;
  line-height: 1.5;
  color: #ddd;
}

/* Footer Right Content (Links) */
.footer-right {
  text-align: right;
}

.footer-right a {
  color: #f1f1f1;
  text-decoration: none;
  margin-left: 8px;
  transition: color .2s;
}

.footer-right a:hover {
  color: #ffd15c;
}

/* Responsive Styles for smaller screens (<= 768px) */
@media (max-width:768px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .footer-right {
    text-align: left;
  }
}

/* General Styling (from previous response - kept the same) */
.social-media-footer {
  background-color: white;
  color: black;
  padding: 30px 0;
  font-family: 'Inter', 'Noto Sans SC', sans-serif;
  text-align: center;
}

.social-links-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Base List Styling (for Desktop/Larger Screens) */
.social-media-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  flex-wrap: nowrap;
  /* Keep them in a single line on large screens */
}

.social-media-footer li {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 20%;
  /* 5 items * 20% = 100% width on desktop */
  padding: 0 10px;
  /* Add slight horizontal padding */
  box-sizing: border-box;
  /* Include padding in the width calculation */
}

/* Text and Link Styling (from previous response - kept the same) */
.social-media-footer li p {
  font-size: 0.85em;
  margin: 0 0 15px 0;
  letter-spacing: 1px;
  font-weight: 500;
}

.social-media-footer li a {
  color: black;
  text-decoration: none;
  font-size: 1em;
  font-weight: bold;
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  white-space: nowrap;
  /* Prevents link text from wrapping */
}

.social-media-footer li a i {
  margin-right: 8px;
  font-size: 1.1em;
}

/* Line under the links (from previous response - kept the same) */
.social-media-footer li::after {
  content: '';
  display: block;
  height: 3px;
  width: 60px;
  margin-top: 5px;
}

/* Custom Colors for the Lines (from previous response - kept the same) */
.facebook::after {
  background-color: #3b5998;
}

.youtube::after {
  background-color: #ff0000;
}

.instagram::after {
  background-color: #833ab4;
}

.telegram::after {
  background-color: #0088cc;
}

.linkedin::after {
  background-color: #0077b5;
}


/* --- RESPONSIVENESS (Media Query) --- */

@media (max-width: 768px) {

  /* Tablet and smaller screens */
  .social-media-footer ul {
    flex-wrap: wrap;
    /* Allow items to wrap to the next line */
    justify-content: center;
    /* Center items when they wrap */
  }

  .social-media-footer li {
    width: 33.33%;
    /* Show 3 items per row */
    margin-bottom: 30px;
    /* Add vertical space between rows */
    min-width: 150px;
    /* Ensures minimum space for content */
  }
}

@media (max-width: 480px) {

  /* Extra small screens (Phones) */
  .social-media-footer ul {
    flex-direction: column;
    /* Stack all items vertically */
  }

  .social-media-footer li {
    width: 100%;
    /* Each item takes full width */
    margin-bottom: 25px;
  }

  .social-media-footer li p {
    /* Make the heading text slightly larger on mobile */
    font-size: 0.9em;
  }
}

/* Limit height and enable scrolling for all filter dropdowns */
#program-dropdown,
#trainer-dropdown,
#Location-dropdown {
  max-height: 300px;
  /* Maximum height of the box */
  overflow-y: auto;
  /* Shows scrollbar only when content exceeds 300px */
}

/* --- MASONRY LAYOUT CONTAINER (JS controlled) --- */
#masonry-container {
  position: relative;
  /* for absolutely positioned cards */
  width: 100%;
}

/* Masonry cards */
.review-card-wrapper {
  position: absolute;
  /* positioned by JS */
  background: #fff;
  border-radius: 8px;
  box-sizing: border-box;
  overflow: visible;
  /* we control height ourselves */
}

/* Inner wrapper that we scale */
.review-card-inner {
  transform-origin: top left;
}

/* Make iframe fill its inner wrapper width */
.review-card-inner iframe {
  display: block;
  width: 100%;
}

/* Load More button */
#loadCountReview {
  display: block !important;
  margin: 40px auto !important;
  float: none !important;
}

/* Social review screenshot fallback */
.review-card-wrapper img.social-review-screenshot {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* Added for Inspiring Stories heading */
.index-h3 {
  font-weight: bold;
  font-size: 2.5rem;
  margin-bottom: 0.5em;
}

/* Masonry Override for cards */
.masonry-container {
  column-count: 3;
  column-gap: 20px;
}

@media (max-width: 992px) {
  .masonry-container {
    column-count: 2;
  }
}

@media (max-width: 576px) {
  .masonry-container {
    column-count: 1;
  }
}

.masonry-container .col-12,
.masonry-container .col-md-6,
.masonry-container .col-lg-4 {
  width: 100% !important;
  display: inline-block;
  margin-bottom: 20px;
  break-inside: avoid;
}

/* Story Card Program/Author Link Styling */
.program a {
  color: #6c757d !important;
  /* Default grey */
  text-decoration: none;
  transition: color 0.2s ease;
}

.program a:hover {
  color: #ea2329 !important;
  /* Red on hover */
}

/* Justify Story Card Content */
.card-body .content {
  text-align: justify;
  color: #6c757d;
}

/* Fix Search Grid Alignment */
#stories .card {
  height: 100%;
}

/* Search Bar Animation */
.search-input-animated {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.search-input-animated:hover,
.search-input-animated:focus {
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

/* Dropdown Button Hover Shadow */
/* Dropdown Button Soft Shadow */
.index-dropdown-btn {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

.index-dropdown-btn:hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Modern Dropdown Menu Styling */
.dropdown-menu {
  border: none;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  padding: 10px 0;
  margin-top: 10px !important;
  /* Spacing from button */
  animation: dropdownFadeIn 0.3s ease;
  overflow: hidden;
  /* Prevent scrollbars */
}

.dropdown-item {
  padding: 10px 20px;
  font-weight: 500;
  color: #333;
  transition: all 0.2s ease;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background-color: #f8f9fa;
  color: #ea2329;
  transform: translateX(5px);
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Homepage Header Text Shadow */
.index-h1,
.index-h3,
.index-h5,
.index-h6 {
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Load More Button Shadow */
.index-btn {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

/* Active Language Toggle */
.active-lang {
  font-weight: bold !important;
  font-size: 1.3em !important;
  color: #ea2329 !important;
}

/* Dynamic Story Images */
.story-dynamic-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 16/9;
  /* Enforce consistent aspect ratio for cards */
}

/* Specific override for Text Story Detail to allow natural height or specific ratio */
#text-stories-image.story-dynamic-img {
  aspect-ratio: auto;
  /* Allow detail image to be natural shape */
  max-height: 500px;
  /* Cap height on large screens */
}

@media (max-width: 768px) {
  .story-dynamic-img {
    aspect-ratio: 4/3;
    /* Slightly taller on mobile */
  }
}

/* Floating Language Toggle Button */
#floating-lang-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #ea2329;
  color: white;
  border: none;
  box-shadow: 0 4px 15px rgba(234, 35, 41, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
}

#floating-lang-btn:hover {
  transform: translateY(-3px) scale(1.05);
  background-color: #c91e23;
  box-shadow: 0 8px 25px rgba(234, 35, 41, 0.6);
}

#floating-lang-btn:active {
  transform: translateY(0) scale(0.95);
}

/* Ad Banner Styles */
.ad-banner {
  border-radius: 12px;
  /* Smooth corners */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  /* Subtle shadow */
  overflow: hidden;
  /* Keeps image inside corners */
  display: block;
  /* Removes bottom spacing issues */
}

.ad-banner:hover {
  transform: translateY(-5px);
  /* Moves up */
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  /* Shadow grows */
}

/* Ad Grid Layout */
.ad-grid-container {
  display: grid;
  grid-template-columns: 1fr;
  /* Default to stacked (Mobile) */
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .ad-grid-container {
    grid-template-columns: 1fr 1fr;
    /* Side-by-side on Desktop */
  }
}

.ad-grid-container img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
}

.section-cream-bg {
  background-color: #fffdfa;
}

.story-card,
.story-card h1,
.story-card h2,
.story-card h3,
.story-card h4,
.story-card h5,
.story-card h6,
.story-card p,
.story-card a {
  font-family: 'Source Han Sans SC', 'Source Han Sans', sans-serif !important;
}

/* Bokeh Parallax Effect */
#parallax-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: multiply;
  pointer-events: none;
  will-change: transform;
}