/* --------------------- */
/*       FONT FACES      */
/* --------------------- */
@font-face {
  font-family: "Platform";
  src: url("/fonts/platform-webfont.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap; /* ensures fallback text is shown immediately */
}

@font-face {
  font-family: "Platform-Medium";
  src: url("/fonts/platform-medium-webfont.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap; /* ensures fallback text is shown immediately */
}

@font-face {
  font-family: "Platform-Light";
  src: url("/fonts/platform-light-webfont.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap; /* ensures fallback text is shown immediately */
}

/* --------------------- */
/*       GLOBAL          */
/* --------------------- */
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Platform", sans-serif;
  overflow-x: hidden;
}

/* --------------------- */
/*       CONTAINER       */
/* --------------------- */
.container {
  background: #f3f3f3;
  width: 100%;
  /* Instead of a fixed height: */
  min-height: 100vh; /* Allows container to expand */
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column; /* Stacking header and content vertically */
  position: relative;
  padding-top: 20px; /* Space for the header */
}
@media screen and (max-width: 1261px) {
  .container {
    min-height: 30vh;
  }
}

.slider-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.slider-container img {
  height: 750px;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  justify-content: inherit;
  position: relative;
}

.slider {
  position: relative;
  max-width: fit-content;
  max-height: fit-content;
  overflow: hidden;
}

.slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.slides img {
  width: 100%;
  flex-shrink: 0;
  height: auto !important;
  min-height: 240px;
  object-fit: cover;
}

/* General Arrow Styling */
.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  font-size: 2rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 10; /* Ensure arrows are above slides */
}

.testimonial-arrow {
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  font-size: 2rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-left: 20px;
  margin-right: 20px;
}

.gallery-arrow.left {
  left: 15px; /* Adjust for better spacing */
}

.gallery-arrow.right {
  right: 15px; /* Adjust for better spacing */
}

.gallery-arrow:hover,
.testimonial-arrow:hover {
  background: rgba(0, 0, 0, 0.7);
}

/* Mobile Responsive Styles */
@media screen and (max-width: 1261px) {
  .slider {
    margin-top: 90px;
  }

  .gallery-arrow {
    font-size: 1.5rem;
    width: 30px;
    height: 30px;
  }
  .testimonial-arrow {
    display: none;
  }
}

@media screen and (min-width: 1262px) {
  .services-container {
    min-height: 65vh !important;
  }
}

@media screen and (max-width: 480px) {
  .gallery-arrow {
    font-size: 1.2rem;
    width: 25px;
    height: 25px;
  }
}

/* --------------------- */
/*       CONTENT         */
/* --------------------- */
.content {
  width: 100vw;
  height: 100vh;
  object-fit: cover; /* To maintain aspect ratio */
}
/* --------------------- */
/*       HEADER          */
/* --------------------- */
.header {
  display: flex; /* put items (logo, hamburger, nav) on one line */
  justify-content: flex-start; /* items start from the left, adjust as needed */
  align-items: center;
  position: absolute; /* or 'fixed' if you want the header to stay put */
  top: 0;
  left: 0;
  right: 0;
  padding: 20px 40px;
  box-sizing: border-box;
  background: #fff; /* so the header is visible over content */
  z-index: 999; /* keep on top */
}

.index-header {
  display: flex; /* put items (logo, hamburger, nav) on one line */
  justify-content: flex-start; /* items start from the left, adjust as needed */
  align-items: center;
  position: absolute; /* or 'fixed' if you want the header to stay put */
  top: -30px;
  left: 0;
  right: 0;
  padding: 20px 40px;
  box-sizing: border-box;
  background: #fff; /* so the header is visible over content */
  z-index: 999; /* keep on top */
}

/* Logo */
.logo {
  flex: 1;
}
.logo img {
  display: block;
  max-width: 200px;
  max-height: 95px;
  width: auto;
  height: auto;
  margin-left: 50px;
}

@media screen and (max-width: 1261px) {
  .logo img {
    max-width: 120px;
    margin-left: 0px;
  }
}
/* Hamburger icon */
.hamburger {
  display: none; /* hidden on desktop, will show on mobile */
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  margin-left: 20px; /* space between logo and hamburger, if desired */
  cursor: pointer;
}
.hamburger span {
  display: block;
  height: 3px;
  background: #413c58;
  border-radius: 2px;
}

/* Navigation */
.nav {
  display: flex; /* show in a row on desktop */
  justify-content: space-evenly;
  align-items: center;
  flex-wrap: wrap;
  transition: all 0.3s ease; /* optional for smoother toggles */
  flex: 3;
}

/* Desktop nav links */
.nav a {
  text-decoration: none;
  color: #413c58;
  font-size: 32px; /* base font size for desktop */
  font-weight: 300;
  line-height: normal;
  padding: 10px 15px;
  white-space: nowrap;
}

/* --------------------- */
/*       TITLES          */
/* ---------------------
   Using clamp() lets the text size
   adapt between min and max values: */
.title {
  color: #413c58;
  text-align: center;
  font-family: "Platform-Medium";
  /* Replaces fixed 90px with a responsive range */
  font-size: clamp(36px, 8vw, 90px);
  font-style: normal;
  font-weight: 500;
  line-height: 1.2;
  margin: 0; /* Add if needed */
}

/* --------------------- */
/*  SERVICES CONTAINER   */
/* ---------------------
   Use min-height instead of fixed height
   to allow expansion on small screens. */
.services-container {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  min-height: 100vh !important; /* replaced height: 100vh */
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
  background-color: #ffffff;
  margin-bottom: 92px;
}

.services-container-title {
  margin-top: 0px;
  padding-top: 92px;
  color: rgba(30, 93, 255, 0.58);
  text-align: center;
  /* smaller size for headings or can clamp it: */
  font-size: clamp(24px, 4vw, 40px);
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  font-family: "Platform-Medium";
}

.services-container-subtitle {
  margin-top: -20px;
  margin-bottom: 20px;
  color: #413c58;
  text-align: center;
  font-size: 28px; /* or clamp(18px, 4vw, 28px) */
  font-family: "Platform-Light";
}

/* --------------------- */
/*        GRID           */
/* ---------------------
   For modern responsiveness, you can do:
   grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
   so it auto-adjusts. For demonstration,
   we keep your original 3x2, but override
   in media queries. */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  justify-items: center;
  align-items: center;
  width: 80%;
  height: 50vh;
}

.box {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center; /* Center align text inside boxes */
}

.box img {
  width: 200px;
  height: 200px;
  max-width: 100%; /* Ensure image doesn't overflow */
  object-fit: contain; /* Maintain image aspect ratio */
}

.box-title {
  text-decoration: none;
  color: #4c1e4f;
  text-align: center;
  font-size: 24px;
  font-style: normal;
  font-weight: bold;
  line-height: normal;
  transition: transform 0.3s ease;
}
.box-title:hover {
  transform: scale(1.1);
}

.title-container {
  height: 41px;
  width: 300px;
  border-radius: 51.5px;
  background: #e8f5ff;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* --------------------- */
/*  LOGOS CONTAINER      */
/* --------------------- */
.marquee {
  height: 160px;
  /* background: #f6f6f6; */
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
  display: flex;
  position: relative;
  overflow-x: hidden;
  mask-image: linear-gradient(to right, hsl(0 0% 0% / 0), hsl(0 0% 0% / 1) 20%, hsl(0 0% 0% / 1) 80%, hsl(0 0% 0% / 0));
}

.marquee--6 {
  margin-bottom: 20px;
  --marquee-item-width: 300px;
  --marquee-item-height: 300px;
  --marquee-duration: 40s;
  --marquee-items: 36;
}

@media (max-width: 1261px) {
  .marquee--6 {
    --marquee-item-width: 250px;
    --marquee-item-height: 250px;
    --marquee-duration: 40s;
    --marquee-items: 36;
  }
}

.marquee__item {
  --marquee-item-offset: max(
    calc(var(--marquee-item-width) * var(--marquee-items)),
    calc(100% + var(--marquee-item-width))
  );
  --marquee-delay: calc(
    var(--marquee-duration) / var(--marquee-items) * (var(--marquee-items) - var(--marquee-item-index)) * -1
  );
  position: absolute;
  inset-inline-start: var(--marquee-item-offset);
  transform: translateX(-50%);
  animation: go linear var(--marquee-duration) var(--marquee-delay, 0s) infinite;
  max-height: 80%;
  object-fit: contain;
  margin: 0 50px;
  /* zoom: 0.7; */
}

.marquee__item:nth-child(4n) {
  border-top-right-radius: 1rem;
}

.marquee__item:nth-child(4n + 1) {
  border-bottom-right-radius: 1rem;
}

.marquee__item:nth-child(4n + 2) {
  border-bottom-left-radius: 1rem;
}

.marquee__item:nth-child(4n + 3) {
  border-top-left-radius: 1rem;
}

.marquee--6 .marquee__item:nth-of-type(1) {
  --marquee-item-index: 1;
}

.marquee--6 .marquee__item:nth-of-type(2) {
  --marquee-item-index: 2;
}

.marquee--6 .marquee__item:nth-of-type(3) {
  --marquee-item-index: 3;
}

.marquee--6 .marquee__item:nth-of-type(4) {
  --marquee-item-index: 4;
}

.marquee--6 .marquee__item:nth-of-type(5) {
  --marquee-item-index: 5;
}

.marquee--6 .marquee__item:nth-of-type(6) {
  --marquee-item-index: 6;
}

.marquee--6 .marquee__item:nth-of-type(7) {
  --marquee-item-index: 7;
}
.marquee--6 .marquee__item:nth-of-type(8) {
  --marquee-item-index: 8;
}
.marquee--6 .marquee__item:nth-of-type(9) {
  --marquee-item-index: 9;
}
.marquee--6 .marquee__item:nth-of-type(10) {
  --marquee-item-index: 10;
}
.marquee--6 .marquee__item:nth-of-type(11) {
  --marquee-item-index: 11;
}
.marquee--6 .marquee__item:nth-of-type(12) {
  --marquee-item-index: 12;
}
.marquee--6 .marquee__item:nth-of-type(13) {
  --marquee-item-index: 13;
}
.marquee--6 .marquee__item:nth-of-type(14) {
  --marquee-item-index: 14;
}
.marquee--6 .marquee__item:nth-of-type(15) {
  --marquee-item-index: 15;
}
.marquee--6 .marquee__item:nth-of-type(16) {
  --marquee-item-index: 16;
}
.marquee--6 .marquee__item:nth-of-type(17) {
  --marquee-item-index: 17;
}
.marquee--6 .marquee__item:nth-of-type(18) {
  --marquee-item-index: 18;
}
.marquee--6 .marquee__item:nth-of-type(19) {
  --marquee-item-index: 19;
}
.marquee--6 .marquee__item:nth-of-type(20) {
  --marquee-item-index: 20;
}
.marquee--6 .marquee__item:nth-of-type(21) {
  --marquee-item-index: 21;
}
.marquee--6 .marquee__item:nth-of-type(22) {
  --marquee-item-index: 22;
}
.marquee--6 .marquee__item:nth-of-type(23) {
  --marquee-item-index: 23;
}
.marquee--6 .marquee__item:nth-of-type(24) {
  --marquee-item-index: 24;
}
.marquee--6 .marquee__item:nth-of-type(25) {
  --marquee-item-index: 25;
}
.marquee--6 .marquee__item:nth-of-type(26) {
  --marquee-item-index: 26;
}
.marquee--6 .marquee__item:nth-of-type(27) {
  --marquee-item-index: 27;
}
.marquee--6 .marquee__item:nth-of-type(28) {
  --marquee-item-index: 28;
}
.marquee--6 .marquee__item:nth-of-type(29) {
  --marquee-item-index: 29;
}
.marquee--6 .marquee__item:nth-of-type(30) {
  --marquee-item-index: 30;
}
.marquee--6 .marquee__item:nth-of-type(31) {
  --marquee-item-index: 31;
}
.marquee--6 .marquee__item:nth-of-type(32) {
  --marquee-item-index: 32;
}
.marquee--6 .marquee__item:nth-of-type(33) {
  --marquee-item-index: 33;
}
.marquee--6 .marquee__item:nth-of-type(34) {
  --marquee-item-index: 34;
}
.marquee--6 .marquee__item:nth-of-type(35) {
  --marquee-item-index: 35;
}
.marquee--6 .marquee__item:nth-of-type(36) {
  --marquee-item-index: 36;
}

@keyframes go {
  to {
    inset-inline-start: calc(var(--marquee-item-width) * -1);
  }
}

/* --------------------- */
/*   TESTIMONIALS        */
/* --------------------- */
.testimonials-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: #f2fafe;
  padding-bottom: 60px; /* Space for pagination */
}

.quotes-container {
  min-height: 500px;
  overflow: hidden;
  position: relative;
}

.quote-slide {
  display: none;
  text-align: center;
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
}

.quote-slide.active {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  flex-direction: column;
}

.quotes {
  width: 868px;
  margin: 0 auto;
  color: #413c58;
  text-align: center;
  font-size: 24px;
  font-style: normal;
  font-weight: bold;
  line-height: 132.2%;
  word-wrap: break-word;
}

@media (max-width: 1261px) {
  .quotes {
    width: 80%;
  }
}

.quote-author {
  font-family: "Platform-Light";
  color: #413c58;
  font-size: 20px;
  font-style: normal;
  font-weight: 300;
  line-height: 132.2%;
  text-align: center;
  margin-top: 65px;
}

.author-position {
  margin-top: -25px;
  color: #413c58;
  font-size: 20px;
  font-style: normal;
  font-weight: bold;
  line-height: 132.2%;
  text-align: center;
  margin-bottom: 8px;
}

.page-numbers {
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-numbers span {
  font-size: 18px;
  font-style: normal;
  font-weight: 500;
  line-height: 1.3;
  margin: 0 2px;
  cursor: pointer;
  padding: 1px;
}

.active-number {
  color: #413c58;
  font-size: 18px;
  font-style: normal;
  font-weight: 500;
  line-height: 132.2%;
}

.inactive-number {
  color: rgba(65, 60, 88, 0.25);
  font-size: 18px;
  font-style: normal;
  font-weight: 500;
  line-height: 132.2%;
}

/* --------------------- */
/*       CONTACT         */
/* --------------------- */
.contact-container {
  display: flex;
  align-items: center;
  flex-direction: column;
}

.contact-title {
  margin-top: 142px;
  margin-bottom: 15px;
  margin-right: 10px;
  margin-left: 10px;
  color: #413c58;
  text-align: center;
  font-size: 36px;
  font-family: "Platform-Light";
}

.contact-subtitle {
  max-width: 581px;
  margin-top: 0px;
  margin-bottom: 46px;
  color: #413c58;
  text-align: center;
  font-size: 36px;
  font-style: normal;
  font-weight: bold;
  line-height: normal;
}

.contact-title-container {
  width: 273px;
  height: 41px;
  border-radius: 51.5px;
  background: #e8f5ff;
  display: flex;
  text-align: center;
  align-items: center;
  justify-content: center;
  margin-bottom: 123px;
}

/* --------------------- */
/*       ABOUT PAGE      */
/* --------------------- */
.nav a.selected {
  border-bottom: 3px solid #413c58;
}

/* Layout containers */
.about-background,
.about-credentials,
.about-gallery,
.contact-gallery {
  display: flex;
  justify-content: space-around;
  width: 100%;
  padding-bottom: 50px;
}

/* Text blocks */
.background-info {
  max-width: 727px;
  color: #413c58;
  font-family: "Platform-Light";
  font-size: 24px;
  font-style: normal;
  font-weight: 300;
  line-height: normal;
}

.background-mission-text {
  color: #7da1ff;
  font-family: "Platform";
  font-size: 24px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}

/* Services sub-links */
.service-title {
  font-family: "Platform";
  text-decoration: underline;
  color: #413c58;
}

.sections {
  margin-top: 102px;
}

.section-info {
  margin-right: 73px;
  margin-top: 102px;
  margin-bottom: 50px;
}

.service-description {
  font-family: "Platform-Light";
}

.sections-ul {
  list-style-type: none;
}
.sections-li {
  text-decoration: none;
  color: rgba(76, 30, 79, 0.25);
  font-size: 40px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  font-family: "Platform-Medium";
}

b {
  color: #413c58;
  font-size: 24px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  font-family: "Platform-Medium";
}

@media (max-width: 1261px) {
  b {
    font-size: 18px;
  }
}

/* Credentials section */
.about-credentials {
  background: #f6f6f6;
  display: flex;
  justify-content: space-around;
  width: 100%;
}

/* -------------- */
/*   RESPONSIVE   */
/* -------------- */
@media (max-width: 1261px) {
  .contact-title {
    margin-top: 50px;
    font-size: 20px;
  }

  .contact-subtitle {
    padding: 20px;
    font-size: 20px;
  }

  .box-title {
    font-size: 20px;
  }

  .sections {
    margin-left: 20px;
    margin-top: 50px;
  }

  /* Stack these columns vertically */
  .about-background,
  .about-credentials,
  .about-gallery,
  .contact-gallery {
    flex-direction: column;
    align-items: flex-start; /* Align the entire column to the left */
  }

  /* Reduce default margins that are too big on mobile */
  .section-info {
    margin: 0;
  }

  /* Stack the `sections-ul` items vertically and align to the left */
  .sections-ul {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Align list items to the left */
    margin: 0;
    padding: 0;
  }

  .sections-li {
    text-decoration: none;
    color: rgba(76, 30, 79, 0.25);
    font-size: 40px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    font-family: "Platform-Medium";
  }

  /* Text size adjustments if you like smaller text on mobile */
  .background-info {
    margin-left: 20px;
    margin-right: 20px;
    font-size: 18px; /* smaller for mobile reading */
    line-height: 1.5; /* better spacing on small screens */
  }

  /* Timeline fixes: remove left offsets, ensure it fits mobile */
  .timeline {
    margin-left: 0;
    width: 90%; /* so it doesn't overflow horizontally */
  }

  /* If inline styles are setting big negative margins, override them */
  .about-credentials .section-info[style] {
    margin-left: 20px !important;
    padding: 30px;
  }

  /* Gallery: remove fixed heights, allow auto scaling */
  .about-gallery {
    height: auto !important; /* override inlined height */
    min-height: 300px; /* or any suitable mobile minimum */
    background-position: center;
    background-size: cover;
  }

  /* If your .sections-ul inside gallery has inline style, override it */
  .sections-ul[style] {
    padding-left: 0 !important;
  }
}
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}
/* --------------------- */
/*       TIMELINE        */
/* --------------------- */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  margin-left: 100px;
}

.timeline::before {
  margin-top: 13px;
  margin-bottom: 6px;
  content: "";
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 0;
  width: 0.5px;
  background: #413c58;
}

.timeline-start {
  margin-bottom: 20px;
  margin-left: 15px;
}
.timeline-start img {
  margin-top: 12px;
  margin-left: 9px;
  width: 12px;
  height: auto;
}

.timeline-end {
  margin-bottom: 20px;
  margin-left: 15px;
}
.timeline-end img {
  margin-top: -7px;
  margin-left: 8px;
  width: 13px;
  height: auto;
}

.timeline-item {
  display: flex;
  margin: 20px 0;
  position: relative;
}

.year {
  margin-left: -15px;
  margin-top: 5px;
  margin-right: 60px;
  color: #413c58;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}

.timeline-item-data {
  max-width: 727px;
  color: #413c58;
  font-size: 24px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}

.timelinte-item-data-p {
  margin-top: 0px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 26px;
  top: 10px;
  width: 8px;
  height: 8px;
  background-image: url("../img/Ellipse.svg");
  background-size: cover;
  background-repeat: no-repeat;
  z-index: 1;
}

/* --------------------- */
/*        GALLERY        */
/* --------------------- */
.gallery-li {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.25);
  font-size: 40px; /* Large screens */
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  font-family: "Platform-Medium";
}

/* Bullet container (for carousel or slideshow dots) */
.bullets {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
}

.bullets img {
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.bullets img.active {
  opacity: 1;
}

@media (max-width: 1261px) {
  .sections-ul--gallery-top-left {
    text-align: center;
    position: absolute;
    left: 0;
    top: 10px;
    right: 0;
  }
  .hide-mobile {
    display: none;
  }
}

/* --------------------- */
/*       SERVICES        */
/* --------------------- */
/* Title near the top of the page (if used) */
.services-title {
  display: flex;
  align-items: center;
  text-align: center;
  justify-content: center;
  font-size: clamp(28px, 5vw, 50px);
  color: #413c58;
  font-family: "Platform-Medium";
  line-height: 1;
  padding-top: 100px;
  position: relative;
}

/* The "service-item" circles (if used for small labels) */
.service-item {
  width: 273px;
  height: 41px;
  border-radius: 51.5px;
  background: #f2f8fa;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  color: #413c58;
  font-size: 20px;
  font-family: "Platform-Light";
}

/* 
   Collapsible category sections 
   by default: fixed max-height & row alignment 
*/
.category {
  width: 100%;
  min-height: 224px;
  max-height: 400px;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  cursor: pointer;
  transition:
    max-height 0.5s ease-in-out,
    background 0.3s ease-in-out;
  overflow: hidden; /* Prevent content from overflowing */
}

/* Expanded category */
.category.expanded {
  background: #dde5f4; /* or keep the original background logic */
  max-height: 1800px; /* allows text to show */
  align-items: flex-start; /* so text flows top-down */
  transition:
    max-height 0.5s ease-in-out,
    background 0.3s ease-in-out;
}

/* Category Title */
.category-title {
  color: #4c1e4f;
  font-size: 40px; /* Large on desktop */
  font-family: "Platform-Medium";
  min-width: 350px;
  max-width: 350px;
  margin-left: 10px;
}

.category.expanded .category-title {
  padding-top: 30px;
  width: 100%;
}

/* Hidden by default, shown only when expanded */
.category-expanded-title {
  display: none;
}
.category.expanded .category-expanded-title {
  display: block;
  opacity: 1;
}

/* Collapsed description vs. expanded description */
.category-description {
  max-width: 639px;
  color: #413c58;
  font-size: 24px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  transition: opacity 0.3s ease-in-out;
  font-family: "Platform-Light";
}
.category.expanded .category-description {
  display: none; /* hide the short version once expanded */
}

/* Shown only when expanded */
.category-expanded-description {
  display: none;
  color: #413c58;
  font-size: 24px;
  font-weight: 500;
  line-height: normal;
  transition: opacity 0.3s ease-in-out;
}
.category.expanded .category-expanded-description {
  font-family: "Platform-Light";
  display: block;
  opacity: 1;
  max-width: 639px;
  padding-top: 50px;
}

/* CTA link or action (Schedule, Book Hasmig, etc.) */
.category-action {
  color: #7da1ff;
  font-size: 24px;
  font-style: italic;
  font-family: "Platform";
}
.category.expanded .category-action {
  display: block;
  margin-top: 30px;
  margin-bottom: 30px;
}
.category.expanded .category-expanded-title .category-action {
  display: block;
  margin-top: 0px;
  margin-bottom: 0px;
}

.category img {
  transition: transform 0.3s ease-in-out;
}

/* 
   If you want the .container to scale the SVG 
   (if you haven't added style="width:100%;height:auto" inline):
*/
.container svg {
  width: 80%;
  height: auto;
  display: block; /* ensure no extra white space below inline svg */
  margin: 0 auto; /* center it if you want */
}

/* --------------------- */
/*   RESPONSIVE QUERIES  */
/* --------------------- */
@media (max-width: 1261px) {
  /* Make categories stack in column if they're too wide. 
     E.g., if two columns cause horizontal scroll, let's do 1 column. */
  .category {
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-height: fit-content;
  }

  .category.expanded .category-expanded-description {
    font-family: "Platform-Light";
    display: block;
    opacity: 1;
    max-width: 80%;
    margin: auto;
    padding-top: 50px;
    text-align: left;
  }

  /* If you need to reduce the large 40px text on smaller screens: */
  .category-title {
    font-size: 28px; /* scale down from 40px to 28px */
    margin: 0; /* remove extra margins if needed */
    padding-top: 20px;
    max-width: 100%; /* so it doesn't force horizontal scroll */
  }

  .category-description,
  .category-expanded-description {
    font-size: 20px; /* a bit smaller for readability on phones */
    line-height: 1.4;
    max-width: 90%; /* or 100%, so no text overflow */
  }

  /* If the category is expanded, let it be flexible in height */
  .category.expanded {
    max-height: none; /* let it expand fully */
  }

  /* Also ensure the foreignObjects or the text inside the SVG scale */
  .container svg {
    width: 100% !important;
    height: auto !important;
    margin-top: 20px;
    margin-bottom: -20px;
  }
  .brain-container {
    min-height: 0vh;
  }
}

/* Even smaller screens (< 480px, for instance) */
@media (max-width: 480px) {
  /* Possibly reduce even further */
  .category-title {
    font-size: 24px;
  }
  .category-description,
  .category-expanded-description {
    font-size: 18px;
  }
}

/* --------------------- */
/*        PRESS          */
/* --------------------- */
.interviews-title {
  /* Originally margin-left: 100px; can cause overflow on small screens */
  margin-left: 100px;
  color: rgba(30, 93, 255, 0.58);
  font-size: 48px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}

/* Container for interviews list */
.interviews-container {
  margin-top: 150px;
}

/* Header: language toggles and title */
.interviews-container-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 50px;
}

/* Each interview item */
.interview-container {
  display: flex;
  justify-content: space-evenly;
  padding-top: 83px;
  padding-bottom: 83px;
  cursor: pointer; /* so user sees it's clickable */
}
.interview-container:hover {
  background-color: rgba(30, 93, 255, 0.15);
}

/* Interview image styling */
.interview-image {
  width: 430px;
  height: 211px;
  border-radius: 30px;
}

/* Interview org logos */
.interview-logo {
  zoom: 0.6;
  width: 68px;
  border-radius: 4px;
}
.interview-logo-portrait {
  max-width: 28px;
  max-height: 54px;
}

/* Date, title, description */
.interview-date {
  margin-top: 5px;
  color: rgba(65, 60, 88, 0.5);
  font-size: 24px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}

.interview-title {
  color: #413c58;
  font-size: 23px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

.interview-description {
  color: #413c58;
  font-size: 24px;
  font-style: normal;
  font-weight: 300;
  line-height: normal;
}

/* Styled horizontal rule */
.styled-hr {
  padding: 0;
  border: none;
  height: 0.5px;
  background-color: #413c58;
  width: 70%;
  border-radius: 5px;
  margin: auto;
}

/* --------------------------------- */
/*         RESPONSIVE QUERIES        */
/* --------------------------------- */
@media (max-width: 1261px) {
  /* 1) Adjust big margins and center the title */
  .interviews-title {
    margin-left: 0;
    font-size: 32px; /* smaller on tablets */
    text-align: center;
  }

  /* Stack language toggles and title if needed */
  .interviews-container-header {
    margin-left: 25px;
    margin-right: 25px;
    margin-bottom: 0 !important;
    flex-direction: column;
    align-items: center;
    gap: 10px; /* spacing between title & toggles */
  }
  .interviews-container {
    margin-top: 60px !important;
  }

  /* 2) Make each interview item stack vertically */
  .interview-container {
    flex-direction: column;
    align-items: center;
    padding-top: 40px; /* less vertical padding on smaller screens */
    padding-bottom: 40px;
  }

  /* 3) Let the image scale down */
  .interview-image {
    width: 80%; /* fill the container width */
    max-width: 430px; /* so it doesn’t grow beyond its original size */
    height: auto; /* maintain aspect ratio */
    margin-bottom: 20px; /* add spacing below */
  }

  /* 4) Decrease fonts for better reading on small screens */
  .interview-date {
    font-size: 18px; /* smaller date text */
  }
  .interview-title {
    font-size: 20px; /* reduce from 23px */
  }
  .interview-description {
    font-size: 18px; /* reduce from 24px */
  }

  /* Optionally center align the text inside the interview container */
  .interview-container > div[style] {
    width: auto !important;
    text-align: center;
  }

  /* If the HR looks too wide on mobile, reduce or keep as is. Example: */
  .styled-hr {
    width: 100%;
  }
}

/* Even smaller screens (<480px) */
@media (max-width: 480px) {
  .interviews-title {
    font-size: 24px; /* even smaller if you want */
  }
  .interview-date,
  .interview-description {
    font-size: 16px;
  }
  .interview-title {
    font-size: 18px;
  }
}

/* --------------------- */
/*       BOOK CLUB       */
/* --------------------- */
/* Big background for the intro section */
.book-intro-container {
  padding-top: 140px;
  padding-bottom: 30px;
}

/* Large heading text with clamp() for responsive sizes */
.book-intro {
  width: 90%;
  padding: 15px;
  margin-left: 30px;
  text-align: left;
  margin-top: auto;
  margin-bottom: auto;
  color: #413c58;
  font-size: clamp(18px, 7vw, 36px);
  line-height: 1.3;
  letter-spacing: 1.4px;
}

.special-text {
  color: #7da1ff;
  font-size: clamp(18px, 7vw, 36px);
  font-style: normal;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 1.4px;
}

/* Arrows become disabled with this class */
.disabled {
  opacity: 0.4;
}

/* Books container header (title + arrows) */
.books-container-header {
  margin-top: -20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Title for the books container */
.books-container-title {
  padding-top: 30px;
  color: #413c58;
  font-size: 36px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  margin-left: 50px;
}

.arrows-container {
  display: flex;
  align-items: center;
  margin-right: 110px;
}

/* Individual book covers in the slider */
.book {
  width: 245px;
  height: 376px; /* maintain aspect ratio if it’s an image */
  background-size: cover; /* fill the container without distortion */
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 6px; /* optional: if you want rounded corners */
}

/* Books container holding the books slider */
.books-container {
  display: flex;
  justify-content: space-evenly;
  overflow: hidden; /* hides horizontal scrollbar when sliding */
  margin-bottom: 103px;
}

@media (max-width: 1261px) {
  /* Reduce or remove big top margin for .book-intro-container if needed */
  .book-intro-container {
    padding-top: 80px;
    padding-bottom: 40px;
    background: url("../img/rect-book.webp") lightgray center center / cover no-repeat;
  }

  /* Make the book-intro text a bit smaller for tablets, if desired */
  .book-intro {
    font-size: clamp(28px, 6vw, 60px);
    line-height: 1.2;
    margin-left: 10px; /* reduce horizontal margin */
    width: 90%; /* expand to fill container */
  }

  .special-text {
    font-size: clamp(28px, 6vw, 60px);
  }

  /* Adjust the books container title */
  .books-container-title {
    font-size: 28px;
    margin-left: 20px;
  }

  /* Possibly reduce the margin on the container header */
  .books-container-header {
    display: flex;
    justify-content: space-between;
  }

  .arrows-container {
    display: flex;
    align-items: center;
    margin-right: 20px;
  }

  /* If the .sections-ul has inline padding, override it */
  .sections-ul--gallery-top-left[style] {
    padding-left: 0 !important;
  }
  /* Or position top-left as you like */
  .sections-ul--gallery-top-left {
    position: absolute;
    top: 20px;
    left: 20px;
  }

  .books-container {
    height: 364px;
    margin-bottom: -45px;
    margin-top: 30px;
  }

  .book {
    width: 170px;
    height: 250px; /* or any height that fits your design */
    background-size: cover; /* fill the container without distortion */
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 6px; /* optional: if you want rounded corners */
  }
}

@media (max-width: 533px) {
  /* Further reduce text for smaller phones */
  .book-intro {
    font-size: clamp(24px, 6vw, 36px);
    line-height: 1.2;
    margin-left: 10px;
    width: 90%;
  }
  .special-text {
    font-size: clamp(24px, 6vw, 36px);
  }

  .books-container-title {
    font-size: 24px;
  }
}

/* --------------------- */
/*      CONTACT US       */
/* --------------------- */
.contact-us-title {
  color: #413c58;
  text-align: center;
  font-size: 36px;
  font-family: "Platform-Medium";
}

.contact-us-subtitle {
  color: rgba(30, 93, 255, 0.58);
  text-align: left;
  padding-left: 120px;
  font-size: 24px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  width: 68%;
  margin-bottom: 20px;
  margin-left: auto;
  margin-right: auto;
}

/* --------------------- */
/*      FORM STYLES      */
/* --------------------- */
.form-container {
  font-family: "Platform", sans-serif;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.interest-options {
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  justify-items: center;
}

.interest-option {
  display: flex;
  align-items: center;
  cursor: pointer;
}
.interest-option input[type="checkbox"] {
  display: none;
}

.custom-checkbox {
  width: 273px;
  height: 41px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 51.5px;
  border: 1px solid #7da1ff;
  padding: 10px 20px;
  color: #4c1e4f;
  background-color: white;
  font-size: 24px;
  transition:
    background-color 0.3s,
    color 0.3s,
    border-color 0.3s;
}

.interest-option input[type="checkbox"]:checked + .custom-checkbox {
  background-color: #e8f5ff;
  border-color: #6b4ce5;
}

.custom-checkbox:hover {
  border-color: #6b4ce5;
}

.form-fields {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  margin: auto;
  width: 60%;
  gap: 20px;
  margin-top: 20px;
}

.form-fields-1 {
  margin: auto;
  width: 60%;
  display: grid;
  gap: 20px;
}

/* Newsletter */
.newsletter {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.newsletter input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

/* Submit */
.submit-button {
  width: 273px;
  height: 41px;
  border-radius: 51.5px;
  border: 1px solid rgba(80, 80, 80, 0.45);
  margin: auto;
  color: #a09dab;
  font-size: 24px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  font-family: "Platform", sans-serif;
}
.submit-button:hover {
  background: #7da1ff;
  color: #fff;
}

/* Placeholder */
::placeholder {
  color: rgba(30, 93, 255, 0.58);
  font-size: 24px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}

/* Custom checkbox animations */
.cbx {
  position: relative;
  top: 1px;
  width: 27px;
  height: 27px;
  border: 1px solid #c8ccd4;
  border-radius: 3px;
  transition: background 0.1s ease;
  cursor: pointer;
  display: block;
}
.cbx:after {
  content: "";
  position: absolute;
  top: 2px;
  left: 8px;
  width: 7px;
  height: 14px;
  opacity: 0;
  transform: rotate(45deg) scale(0);
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transition: all 0.3s ease;
  transition-delay: 0.15s;
}
.lbl {
  margin-left: 5px;
  vertical-align: middle;
  cursor: pointer;
}
#cbx:checked ~ .cbx {
  border-color: transparent;
  background: rgba(30, 93, 255, 0.58);
  animation: jelly 0.6s ease;
}
#cbx:checked ~ .cbx:after {
  opacity: 1;
  transform: rotate(45deg) scale(1);
}
@keyframes jelly {
  from {
    transform: scale(1, 1);
  }
  30% {
    transform: scale(1.25, 0.75);
  }
  40% {
    transform: scale(0.75, 1.25);
  }
  50% {
    transform: scale(1.15, 0.85);
  }
  65% {
    transform: scale(0.95, 1.05);
  }
  75% {
    transform: scale(1.05, 0.95);
  }
  to {
    transform: scale(1, 1);
  }
}
.hidden-xs-up {
  display: none !important;
}

/* Fancy input fields */
.form__group {
  position: relative;
  padding: 20px 0 0;
  width: 100%;
}

.form__field {
  font-family: inherit;
  width: 100%;
  border: none;
  border-bottom: 2px solid #9b9b9b;
  outline: 0;
  font-size: 17px;
  color: #413c58;
  padding: 7px 0;
  background: transparent;
  transition: border-color 0.2s;
  font-family: "Platform";
}
.form__field::placeholder {
  color: transparent;
}
.form__field:placeholder-shown ~ .form__label {
  font-size: 24px;
  font-family: "Platform";
  cursor: text;
  top: 20px;
}
.form__label {
  position: absolute;
  top: 0;
  display: block;
  transition: 0.2s;
  font-size: 17px;
  font-family: "Platform";
  color: rgba(30, 93, 255, 0.58);
  pointer-events: none;
}
.form__field:focus {
  padding-bottom: 6px;
  font-weight: 700;
  border-width: 3px;
  border-image: linear-gradient(to right, #413c58, rgba(30, 93, 255, 0.58));
  border-image-slice: 1;
}
.form__field:focus ~ .form__label {
  position: absolute;
  top: 0;
  display: block;
  transition: 0.2s;
  font-size: 17px;
  color: rgba(30, 93, 255, 0.58);
  font-weight: 700;
  font-family: "Platform";
}
.form__field:required,
.form__field:invalid {
  box-shadow: none;
}

/* Success notifications */
.notifications-container {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
.flex {
  display: flex;
}
.flex-shrink-0 {
  flex-shrink: 0;
}
.success {
  padding: 1rem;
  border-radius: 0.375rem;
  background-color: rgb(240, 253, 244);
  max-width: 400px;
  width: 100%;
}
.succes-svg {
  color: rgb(74, 222, 128);
  width: 1.25rem;
  height: 1.25rem;
}
.success-prompt-wrap {
  margin-left: 0.75rem;
}
.success-prompt-heading {
  font-weight: bold;
  color: rgb(22, 101, 52);
}
.success-prompt-prompt {
  margin-top: 0.5rem;
  color: rgb(21, 128, 61);
}
.success-button-container {
  display: flex;
  margin-top: 0.875rem;
  margin-bottom: -0.375rem;
  margin-left: -0.5rem;
  margin-right: -0.5rem;
}
.success-button-main {
  padding: 0.375rem 0.5rem;
  background-color: #ecfdf5;
  color: rgb(22, 101, 52);
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: bold;
  border-radius: 0.375rem;
  border: none;
}
.success-button-main:hover {
  background-color: #d1fae5;
}
.success-button-secondary {
  padding: 0.375rem 0.5rem;
  margin-left: 0.75rem;
  background-color: #ecfdf5;
  color: #065f46;
  font-size: 0.875rem;
  line-height: 1.25rem;
  border-radius: 0.375rem;
  border: none;
}

/* ------------------------------
   RESPONSIVE CONTACT PAGE
------------------------------ */

/* Tablet & small desktops (<= 1261px) */
@media (max-width: 1261px) {
  .success {
    width: 80%;
  }
  .submit-button {
    background: #7da1ff;
    color: #fff;
  }
  /* 1) Title & Subtitle */
  .contact-us-title {
    font-size: 28px; /* down from 36px */
    margin: 0 20px; /* add some horizontal space instead of centered if you prefer */
  }

  .contact-us-subtitle {
    font-size: 20px; /* down from 24px */
    padding-left: 0; /* remove large left padding */
    width: 90%; /* let it fill more of the screen */
    margin: 10px auto 20px; /* center it, with vertical spacing */
    text-align: center; /* center text so it looks good on mobile */
  }

  /* 2) Interest Options: switch from 3 columns to 2 or 1 column on tablets */
  .interest-options {
    grid-template-columns: repeat(2, 1fr); /* was 3, reduce to 2 columns */
    gap: 15px; /* a bit more gap if you want */
    width: 90%; /* narrower container on small screens */
    margin: 20px auto; /* center it */
    justify-items: center;
  }

  /* Make the custom checkbox smaller on smaller screens if needed */
  .custom-checkbox {
    width: 220px; /* was 273px */
    font-size: 20px; /* was 24px */
  }

  /* 3) Form fields: narrower & stacked */
  .form-fields,
  .form-fields-1 {
    width: 90%; /* was 60%; let them fill more space on mobile */
    margin: 0 auto; /* center horizontally */
    flex-direction: column; /* stack if you want each field on its own row */
  }

  /* If you do stack .form-fields, remove display: flex or override it here */
  .form-fields {
    display: flex; /* might keep flex, but use column direction if you want 2 rows */
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  /* 4) Adjust the newsletter label spacing */
  .newsletter {
    font-size: 16px; /* was 14px or keep as you prefer */
    justify-content: center; /* center checkbox + label if you want */
  }

  /* 5) Buttons, etc. */
  .submit-button {
    width: 80%; /* narrower so it doesn’t span the entire screen */
    font-size: 20px; /* was 24px */
    margin-top: 10px; /* add some spacing above if needed */
  }
}

/* Phones & very small screens (<= 480px) */
@media (max-width: 480px) {
  .contact-us-title {
    font-size: 24px;
    margin: 0 10px;
  }
  .contact-us-subtitle {
    font-size: 18px;
    width: 90%;
    margin: 10px auto 15px;
  }

  .interest-options {
    grid-template-columns: 1fr; /* single column if you really want them stacked */
    gap: 10px;
    width: 90%;
  }

  .custom-checkbox {
    width: 180px; /* narrower on very small screens */
    font-size: 18px;
  }

  .form-fields,
  .form-fields-1 {
    width: 90%;
    gap: 15px;
  }

  .submit-button {
    width: 80%;
    font-size: 18px;
  }
}

/* --------------------------------- */
/*   RESPONSIVE MEDIA QUERIES        */
/* --------------------------------- */

/* Up to ~992px wide (small laptops / big tablets) */
@media (max-width: 992px) {
  .timeline {
    margin-left: 0;
  }
}

/* --------------------------------- */
/*   RESPONSIVE MEDIA QUERIES        */
/* --------------------------------- */

/* Up to ~992px wide (small laptops / big tablets) */
@media (max-width: 992px) {
  .timeline {
    margin-left: 0;
  }
}

/* Up to ~1261px wide (tablets) */
@media (max-width: 1261px) {
  /* Show hamburger, hide nav by default */
  .hamburger {
    display: flex;
  }
  .index-header {
    top: 0;
  }
  .header,
  .index-header {
    padding: 15px 20px;
    position: fixed;
    margin-top: 0px;
  }
  .nav {
    display: none;
    position: absolute;
    top: 70px; /* position below the header */
    right: 40px; /* or left: 0, if you want a different effect */
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    flex-direction: column; /* stack nav items vertically */
    width: auto; /* or set a fixed width if desired */
    padding: 15px;
  }
  /* When nav has .open, show it */
  .nav.open {
    display: flex;
  }

  /* Smaller font for mobile links */
  .nav a {
    font-size: 20px;
    margin: 8px 0; /* spacing between links */
    padding: 10px 12px;
    margin-bottom: 10px;
  }

  .nav a.selected {
    background-color: rgba(30, 93, 255, 0.15);
    border-radius: 4px; /* optional rounding */
    padding: 5px 10px; /* optional padding to make highlight more visible */
    text-decoration: none; /* remove underline if needed */
    width: 75%;
    text-align: center;
  }

  /* If needed, reduce .title further */
  .title {
    font-size: clamp(32px, 8vw, 60px);
  }

  /* Services container auto-height */
  .services-container {
    min-height: auto;
  }

  .grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on smaller screens */
    grid-template-rows: repeat(3, 1fr); /* Adjust to 3 rows */
    height: auto; /* Allow dynamic height */
    margin-top: 20px;
  }

  .box img {
    width: 150px; /* Adjust image size for smaller screens */
    height: 150px;
  }

  .box-title {
    font-size: 20px; /* Adjust title size for smaller screens */
  }

  .title-container {
    width: 210px;
  }

  .services-container-title {
    font-size: clamp(24px, 4vw, 32px);
  }

  /* Book intro smaller */
  .book-intro,
  .special-text {
    font-size: clamp(28px, 6vw, 50px);
    line-height: 1.2;
  }

  /* Interview containers stack more gracefully if needed */
  .interview-container {
    flex-direction: column;
    padding-top: 40px;
    padding-bottom: 40px;
  }
}

/* Up to ~480px wide (phones) */
@media (max-width: 480px) {
  .nav {
    flex-direction: column;
    align-items: center;
  }
  .nav a {
    font-size: 18px;
    padding: 8px 10px;
    margin-bottom: 8px;
  }

  .title {
    font-size: clamp(28px, 8vw, 36px);
  }

  /* Single column grid */
  .grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(6, 1fr);
  }

  /* Services container text */
  .services-container-title {
    font-size: 24px;
  }
  .services-container-subtitle {
    font-size: 20px;
  }

  /* Even smaller for the book intro if needed */
  .book-intro,
  .special-text {
    font-size: clamp(24px, 8vw, 36px);
    line-height: 1.2;
  }
}

footer {
  background: #413c58;
  width: 100%;
}

footer ul {
  /* Remove default browser margins/padding on <ul> */
  margin: 0 auto;
  padding: 0;
  list-style-type: none; /* no bullet points */

  /* Existing properties */
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  padding-top: 34px;
  padding-bottom: 30px;
}

footer li {
  color: #ffffff;
  font-size: 18px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}

footer li a {
  color: #ffffff;
  text-decoration: none;
}

/* --------------------- */
/*   RESPONSIVE FOOTER   */
/* --------------------- */
@media (max-width: 1261px) {
  footer ul {
    flex-direction: column; /* stack vertically */
  }

  footer li {
    margin-bottom: 10px;
    text-align: center;
  }

  footer li:last-child {
    margin-bottom: 0;
  }
}

.float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  right: 40px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 3px #999;
  z-index: 1000;
}

@media screen and (max-width: 1261px) {
  .float {
    bottom: 20px;
    right: 20px;
  }
}

/* ============ RESOURCES PAGE ============ */

.resources-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
  margin-top: 140px;
}

/* ----- TOP SECTION: Title on left, featured card on right ----- */
.resources-top {
  display: flex;
  flex-wrap: wrap; /* Allows wrapping on smaller screens */
  align-items: center;
  gap: 5rem;
  margin-bottom: 6rem;
}

/* Left side: “Resources” heading & paragraph */
.resources-heading {
  flex: 1; /* Let the left side shrink or grow */
  min-width: 250px; /* So it doesn’t get too squished on small screens */
}
.resources-heading h1 {
  margin-top: 0px;
  font-family: "Platform-Medium";
  font-weight: 500;
  font-size: 60px;
  line-height: 72px;
  letter-spacing: 0%;
  color: #1e5dff94;
}
.resources-heading p {
  margin-top: -15px;
  font-family: "Platform-Light";
  font-weight: 300;
  font-size: 24px;
  line-height: 28.8px;
  letter-spacing: 0%;
}

/* Right side: Featured card with image & text */
.featured-card {
  display: flex;
  flex: 2; /* Takes up more space */
  background-color: #f1f1f1;
  border-radius: 30px;
  overflow: hidden; /* Round corners on the image too */
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow */
  transition: box-shadow 0.2s ease;
  justify-content: center;
  align-items: center;
}

.featured-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}

.featured-card-image img {
  object-fit: cover;
  display: block;
}
.featured-card-text {
  flex: 1;
  padding: 1rem;
  padding-left: 3rem;
}
.featured-label {
  font-family: "Platform-Light";
  display: inline-block;
  background-color: #413c58;
  color: #fff;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
  font-weight: 300;
  font-size: 24px;
  line-height: 28.8px;
  letter-spacing: 0%;
}
.featured-card-text h2 {
  font-family: "Platform-Medium";
  font-weight: 500;
  font-size: 24px;
  line-height: 28.8px;
  max-width: 80%;
  color: #413c58;
}

.featured-card-text .category-action {
  font-family: "Platform-Medium";
}
.featured-readmore {
  text-decoration: none;
  color: #5f82ff;
  font-weight: 600;
}

/* Container that holds the sidebar and the blog grid */
.resources-content {
  display: flex; /* Sidebar on the left, grid on the right */
  gap: 2rem; /* Space between sidebar & grid */
  margin-top: 2rem; /* Spacing below the top section */
}

/* ---------- SIDEBAR ---------- */
.research-topics {
  min-width: 200px; /* Ensures sidebar doesn’t get too narrow */
  flex-shrink: 0; /* Prevents sidebar from shrinking when screen is small */
}

.research-topics h3 {
  font-family: "Platform-Light";
  font-weight: 300;
  font-size: 24px;
  line-height: 28.8px;
  text-decoration: underline;
}

.research-topics ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.research-topics li {
  margin-bottom: 0.5rem;
}

.research-topics li a {
  color: #000; /* or your brand color */
  text-decoration: none;
  font-size: 1rem;
}

.research-topics li a:hover {
  text-decoration: underline;
}

/* ---------- BLOG GRID ---------- */
.blog-grid {
  flex: 1; /* Fill remaining horizontal space (beside the sidebar) */
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
  align-items: start;
}

/* Each blog card */
.blog-card {
  text-align: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow */
  transition: box-shadow 0.2s ease;
  border-radius: 31px;
  background-color: #f1f1f1;
}

.blog-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}

.blog-details {
  padding-left: 2rem;
  padding-right: 4rem;
  text-align: left;
}

.blog-date {
  font-family: "Platform-Light";
  display: block;
  color: #555;
  margin-bottom: 0.5rem;
  font-weight: 300;
  font-size: 16px;
  line-height: 19.2px;
}

.blog-card-image {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 0.75rem;
  object-fit: cover; /* optional: crop to fit */
}

.blog-card h2 {
  margin: 0.5rem 0;
  color: #413c58;
  font-family: "Platform-Medium";
  font-weight: 500;
  font-size: 24px;
  line-height: 28.8px;
  margin-bottom: 3rem;
}

.blog-card .category-action {
  font-family: "Platform-Medium";
  display: block;
  margin-bottom: 1rem;
}

/* Radio button css */
/* =============================================== */
.label {
  display: flex;
  align-items: center;
  border-radius: 100px;
  padding: 14px 16px;
  margin: 5px 0;
  cursor: pointer;
  transition: 0.3s;
}

.label:hover,
.label:focus-within,
.label:active {
  background: hsla(0, 0%, 80%, 0.14);
}

.radio-input {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  z-index: -1;
  top: auto;
}

.radio-input-wrapper {
  margin-left: -20px;
}

.radio-design {
  width: 22px;
  height: 22px;
  border-radius: 100px;
  background: #1e5dff94;
  position: relative;
}

.radio-design::before {
  content: "";
  display: inline-block;
  width: inherit;
  height: inherit;
  border-radius: inherit;
  background: hsl(0, 0%, 90%);
  transform: scale(1.1);
  transition: 0.3s;
}

.radio-input:checked + .radio-design::before {
  transform: scale(0);
}

.label-text {
  font-family: "Platform-Light";
  font-weight: 300;
  font-size: 24px;
  line-height: 28.8px;
  color: #413c58;
  margin-left: 14px;
  letter-spacing: 1px;
}

.radio-input:checked ~ .label-text {
  color: hsl(0, 0%, 40%);
}

/* =========================================
   RESPONSIVE STYLES
   ========================================= */
@media (max-width: 768px) {
  .resources-page {
    margin-top: 70px;
    margin-left: 20px;
    margin-right: 20px;
  }

  /* 1) Let the top section stack */
  .resources-top {
    flex-direction: column;
    margin-bottom: 3rem;
    gap: 2rem; /* smaller gap on mobile */
  }

  /* Make the featured card stack the image above the text if desired */
  .featured-card {
    flex-direction: column;
    align-items: flex-start; /* image & text left-aligned */
  }
  .featured-card-image img {
    width: 100%;
    height: auto;
  }
  .featured-card-text {
    padding-left: 1rem; /* reduce side padding on mobile */
  }

  /* 2) Stack sidebar & blog grid */
  .resources-content {
    flex-direction: column; /* vertical stacking */
    gap: 3rem; /* space between sidebar and grid */
  }

  .research-topics {
    width: 100%; /* fill the width on mobile */
    order: 0; /* you can reorder if you want the sidebar below the grid */
  }

  .radio-input-wrapper {
    margin-left: 0px;
  }

  /* 3) Blog grid: fewer columns on smaller screens */
  .blog-grid {
    order: 1;
    grid-template-columns: 1fr; /* single-column on very small screens */
  }

  /* If you want at least 2 columns on slightly bigger phones/tablets,
       you could use a separate breakpoint, e.g. @media (min-width: 480px) {...} */
}

@media (min-width: 480px) and (max-width: 768px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
