html,
body,
h1,
h2,
h3,
h4 {
  margin: 0;
  padding: 0;
}

* {
  box-sizing: border-box;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  color: #1f2937;
}

.hero-section {
  display: flex;
}

.hero-section>div {
  width: 33.33vw;
}

.main-section {
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.main-section h2 {
  font-size: clamp(2rem, 4vw, 5rem);
  text-align: right;
  line-height: clamp(2.2rem, 4vw, 5.2rem);
  font-family: "Playfair Display", serif;
}

.main-section h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.57rem);
  text-align: right;
  font-weight: 500;
  padding: 10px 0 0;
  line-height: clamp(1.28rem, 3vw, 1.6rem);
  font-family: "Playfair Display", serif;
}

.main-section p {
  font-size: clamp(0.85rem, 1.4vw, 1.12rem);
  text-align: right;
  margin: 0;
  padding: 10px 0;
  opacity: 0.8;
}

.top-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 20px;
}

.top-section a {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  position: relative;
  padding-bottom: 10px;
  /* display: flex;
  height: 40px;
  align-items: center;
  justify-content: center;
  width: 100px;
  padding: 0 20px;
  border-radius: 20px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.1); */
}

.top-section a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 5px;
  border-radius: 3px;
  background: #fff;
  transition: width 0.3s ease-in-out;
}

.top-section a:hover::after {
  width: 100%;
}

.top-section a:hover {}

.bottom-section {
  height: 33.33vw;
  position: relative;
  overflow: hidden;
}

.bottom-section::after {
  position: absolute;
  top: -1px;
  left: 0;
  width: 33.33vw;
  height: calc(33.33vw + 6px);
  background: #f04c47;
  content: "";
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.main-section-top {
  padding: 5%;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #f04c47;
  gap: 30px;
}

.logo {
  padding: 5%;
}

.logo img {
  width: 30%;
  min-width: 150px;
}

.influencer-section {
  display: flex;
  flex-direction: column;
}

.influencer-photo {
  background: #1f2937;
  position: relative;
  overflow: hidden;
}

.influencer-text {
  height: 33.33vw;
  background: linear-gradient(90deg, #5c0730 0%, #a4185c 40%, #f04c47 100%);
}

@media (min-aspect-ratio: 1/1) {
  .top-height {
    min-height: 40vw;
  }
}

@media (max-aspect-ratio: 1/1) {
  .top-height {
    min-height: 55vh;
  }
}

.influencer-text {
  padding: 10%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  gap: 30px;
}

.influencer-text h2 {
  font-size: clamp(2rem, 3vw, 5rem);
  text-align: right;
  line-height: clamp(2.2rem, 3vw, 5.2rem);
  font-family: "Playfair Display", serif;
}

.influencer-text h3 {
  font-size: clamp(1rem, 2vw, 1.57rem);
  text-align: right;
  font-weight: 500;
  padding: 10px 0 0;
  line-height: clamp(1.2rem, 2vw, 1.7rem);
  font-family: "Playfair Display", serif;
}

.influencer-text p {
  font-size: clamp(0.85rem, 1.4vw, 1.12rem);
  text-align: right;
  margin: 0;
  padding: 10px 0;
  font-family: "Playfair Display", serif;
}

.teachus-link {
  display: flex;
  align-items: end;
  justify-content: end;
  padding: 5% 0;
}

.teachus-link a {
  font-size: 16px;
  font-weight: 600;
  display: flex;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  align-items: center;
  justify-content: center;

  padding: 0 5px 0 20px;
  border-radius: 20px;
  cursor: pointer;
  text-decoration: none;
  color: #fff;
  gap: 10px;
}

.teachus-link a:hover {
  background: rgba(255, 255, 255, 0.1);
}

.teachus-link a svg {
  fill: #fff;
  height: 1.25em;
  width: 1.25em;
}

.influencer-details {
  padding: 5%;
  color: #fff;
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.5) 40%,

      rgba(0, 0, 0, 0.8) 100%);
}

.influencer-details h2 {
  font-size: 22px;
}

.influencer-details h3 {
  font-size: 16px;
  font-weight: normal;
}

.influencer {
  position: absolute;
  flex: 1;
  display: flex;
  flex-direction: column;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

.influencer.active {
  opacity: 1;
  pointer-events: auto;
}

.influencer-pic {
  flex: 1;
  overflow: hidden;
}

.influencer-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-dots {
  position: absolute;
  right: 5%;
  top: 5%;
  display: flex;
  gap: 10px;
  z-index: 20;
}

.carousel-dots span {
  width: 20px;
  height: 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dots span.active {
  background: white;
  transform: scale(1.4);
}

.influencer-action {
  display: flex;
  justify-content: space-between;
  padding: 20px 0 0;
  gap: 10px;
}

.influencer-action a {
  font-size: 14px;
  font-weight: 600;
  display: flex;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  align-items: center;
  justify-content: center;

  padding: 0 20px;
  border-radius: 20px;
  cursor: pointer;
  color: #fff;
  text-decoration: none;
}

.influencer-action a:hover {
  background: rgba(255, 255, 255, 0.1);
}

.influencer-action a.highlight {
  background: #f04c47;
  border-color: #f04c47;
}

.wht-mks-different {
  display: flex;
  padding: 10% 5% 0;
  gap: 5%;
}

.wht-mks-different>div {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wht-mks-different>div img {
  margin-bottom: 5%;
}

.wht-mks-different h3 {
  font-size: clamp(1rem, 2vw, 1.57rem);
  text-align: center;

  padding: 10px 0 0;
  line-height: clamp(1.2rem, 2vw, 1.7rem);
}

.wht-mks-different p {
  font-size: 18px;
  text-align: center;
  margin: 0;
  padding: 10px;
}

.page-content {
  padding: 10%;
}

.page-content h2 {
  font-size: clamp(2rem, 3vw, 5rem);
  text-align: center;
  line-height: clamp(2.2rem, 3vw, 5.2rem);
  font-family: "Playfair Display", serif;
}

.page-content h4 {
  font-size: clamp(1rem, 2vw, 1.57rem);
  text-align: center;
  font-weight: 500;
  padding: 10px 0 0;
  line-height: clamp(1.2rem, 2vw, 1.7rem);
  font-family: "Playfair Display", serif;
}

footer {
  background: #212121;
  padding: 10%;
  color: #fff;
  text-align: center;
}

.influencer-photo {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
}

.influencer {
  position: absolute;
  top: 0;
  width: 100%;
  left: 0;
  opacity: 0;
  transform: translateX(100%);
  transition:
    transform 0.7s ease,
    opacity 0.7s ease;
}

.influencer.prev {
  transform: translateX(-100%);
  opacity: 1;
  z-index: 1;
}

.influencer.active {
  transform: translateX(0);
  opacity: 1;
  z-index: 2;
}

.influencer.next {
  transform: translateX(100%);
  opacity: 1;
  z-index: 1;
}

.getstarted-button {
  display: flex;
  justify-content: flex-end;
  padding: 2.55% 0;
}

.getstarted-button a {
  font-size: 22px;
  font-weight: 600;
  display: flex;
  height: 60px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  align-items: center;
  justify-content: center;
  background: #fff;

  padding: 0 0 0 40px;
  border-radius: 30px;
  cursor: pointer;
  color: #f04c47;
  text-decoration: none;
}

.getstarted-button a svg {
  fill: #f04c47;
}

.getstarted-button a:hover {
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.hero-section {
  background: url(../images/apple-ipad.png) no-repeat 5% center;
  background-size: auto calc(90% - 230px);
}

.text-section {
  padding-top: 5vw;
}

@media (max-width: 1200px) {
  .influencer-details h3 {
    font-size: 14px;
  }

  .influencer-action a {
    font-size: 12px;
    height: 32px;
  }

  .wht-mks-different p {
    font-size: 14px;
  }

  .page-content {
    padding: 5%;
  }

  .wht-mks-different {
    padding: 5% 0 0;
  }
}

@media (max-width: 1200px) {
  .getstarted-button a {
    font-size: 18px;
  }

  .wht-mks-different {
    gap: 2.5%;
  }

  .wht-mks-different p {
    padding: 5px;
  }
}

@media (max-width: 750px) {
  .main-section {
    background: url(../images/apple-ipad.png) no-repeat center top;
    background-size: calc(100% - 20px) auto;
    padding-top: 30vh;
  }

  .hero-section {
    flex-direction: column;
    background: none;
  }

  .hero-section>div {
    width: 100%;
  }

  .top-section {
    position: absolute;
    right: 0;
    top: 0;
    padding: calc(5% + 10px) 5% 5%;
  }

  .logo img {
    width: auto;
    height: 40px;
  }

  .learners-section {
    position: relative;
    min-height: 68px;
    /* enough space for the hamburger button */
    padding: 14px;
  }

  .text-section {
    padding: 0;
  }

  .bottom-section {
    display: none;
  }

  .main-section-top.top-height {
    min-height: 0;
    gap: 0;
  }

  .getstarted-button {
    padding-bottom: 0;
  }

  .main-section h2 {
    text-align: center;
    font-size: 60px;
    line-height: 1.1em;
  }

  .main-section h3 {
    text-align: center;
    font-size: 30px;
    line-height: 1.1em;
  }

  .main-section p {
    font-size: 16px;
    text-align: center;
  }

  .getstarted-button {
    justify-content: center;
  }

  .influencer {
    width: 90%;
  }

  .influencer-pic img {
    object-position: center;
  }

  .influencer-pic.pic-1 img {
    object-position: top;
  }

  .carousel-dots {
    left: 5%;
    right: auto;
  }

  .influencer-text h2,
  .influencer-text h3 {
    text-align: left;
  }

  .influencer-text {
    padding: 5%;
    height: auto;
  }

  .teachus-link {
    justify-content: start;
  }

  .teachus-link {
    padding: 10px 0 0;
  }

  .wht-mks-different {
    flex-direction: column;
    gap: 30px;
  }

  .wht-mks-different h3 {
    font-size: 18px;
  }

  .wht-mks-different>div {
    padding: 20px 0;
  }
}

@media (max-width: 500px) {
  .top-section a {
    font-size: 14px;
  }

  .main-section h2 {
    font-size: 40px;
  }

  .main-section h3 {
    font-size: 25px;
  }

  .main-section-top,
  .influencer-details,
  .influencer-text,
  .page-content {
    padding: 20px;
  }
}

.logo a {
  text-decoration: none;
}

.popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 1000;
  transition: all 0.5s ease;
  padding: 0 5% 5%;
}

.popup.show {
  pointer-events: auto;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin-top: 0;
  transform: translateY(0);
  background: rgba(0, 0, 0, 0.3);
}

.popup-content {
  background: #fff;
  width: 100%;
  max-width: 1200px;
  min-height: 50vh;
  border-radius: 0 0 30px 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);

  position: relative;
  padding: 60px 20px 20px;
}

.popup.show .popup-content {}

.close {
  cursor: pointer;
  font-size: 30px;
  position: absolute;
  right: 10px;
  top: 10px;
  display: flex;
  height: 40px;
  width: 40px;

  border-radius: 50%;
  line-height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.2);
}

.close svg {
  width: 16px;
  height: 16px;
  fill: #fff;
}

.close:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.popup-content h2 {
  text-align: center;
  font-size: clamp(2rem, 3vw, 4rem);
  line-height: clamp(2rem, 3vw, 4rem);
  font-family: "Playfair Display", serif;
  padding-bottom: 10px;
}

.popup-content h3 {
  text-align: center;
  font-size: clamp(1.25rem, 2.5vw, 1.57rem);

  font-weight: 500;

  line-height: clamp(1.28rem, 3vw, 1.6rem);
  font-family: "Playfair Display", serif;
}

.popup-content p {
  text-align: center;
  width: 80%;
  margin: 10px auto;
  opacity: 0.8;
}

.Browse-button {
  display: flex;
  justify-content: center;
  padding: 20px 0 40px;
}

.Browse-button a {
  display: flex;
  height: 50px;
  justify-content: center;
  align-items: center;
  padding: 0 5px 0 20px;
  text-decoration: none;
  gap: 10px;
  border: 1px solid #fff;
  border-radius: 30px;
  color: #000;
  font-weight: bold;
  background: #fff;
  min-width: 300px;
  justify-content: space-between;
  font-size: 18px;
}

.Browse-button a svg {
  height: 40px;
  width: 40px;
  fill: #000;
}

.Browse-button a:hover {
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.popup-content {
  background: linear-gradient(45deg, #5c0730 0%, #a4185c 40%, #f04c47 100%);
  color: #fff;
  max-height: 100%;
  overflow: auto;
  overflow-x: hidden;
}

.advantage {
  display: flex;
  gap: 10px;
  margin: 0 auto;
  justify-content: center;

}

.advantage h4 {
  font-size: 18px;
}

.advantage h5 {
  font-weight: normal;
  margin: 0;
  padding: 0;
}

.advantage strong {
  display: block;
  font-weight: 600;
}

.advantage li {
  padding-bottom: 10px;
}

.advantage span {
  opacity: 0.7;
}

@media (max-width: 1400px) {
  .top-section {
    padding: 0;
  }
}

@media (max-width: 1100px) {
  .top-section {
    gap: 5px;
  }

  .top-section a {
    font-size: 16px;
  }
}

@media (max-width: 900px) {
  .top-section a {
    font-size: 12px;
  }
}


@media (max-width: 750px) {
  .top-section a {
    color: #f04c47;
    font-size: 16px;
    gap: 10px;
    padding: 10px;
  }

  .top-section a::after {
    background: #f04c47;
  }
}


@media (max-width: 600px) {
  .advantage {
    gap: 10px;
  }

  .popup-content p {
    width: 100%;
  }

  .advantage li {
    padding-bottom: 5px;
  }

  .advantage {
    flex-direction: column;
  }
}

@media (max-width: 400px) {}

/* =============================================
   HAMBURGER BUTTON  (visible only ≤ 750px)
   ============================================= */
.hamburger {
  display: none;
}

@media (max-width: 750px) {
  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    border-radius: 10px;
    cursor: pointer;
    padding: 0;
    position: absolute;
    top: 33px;
    right: 33px;
    z-index: 200;
    backdrop-filter: blur(6px);
    transition: background 0.2s;
  }

  .hamburger span {
    display: block;
    width: 25px;
    height: 4px;
    border-radius: 2px;
    background: #000;
    transition: transform 0.35s ease, opacity 0.25s ease, width 0.25s ease;
    transform-origin: center;
  }

  /* When open – morph into X */
  .hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .hamburger.open span:nth-child(2) {
    opacity: 0;
    width: 0;
  }

  .hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Hide the inline top-section links on mobile */
  .top-section {
    display: none !important;
  }
}

/* =============================================
   MOBILE NAV DRAWER
   ============================================= */
.mobile-nav {
  display: none;
  /* hidden by default on all sizes */
}

@media (max-width: 750px) {
  .mobile-nav {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 500;
    pointer-events: none;
  }

  /* Dim backdrop */
  .mobile-nav-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.35s ease;
  }

  /* Slide-in drawer */
  .mobile-nav-drawer {
    position: absolute;
    top: 0;
    right: 0;
    width: min(320px, 85vw);
    height: 100%;
    background: #000;
    transform: translateX(100%);
    transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    padding: 24px 28px 40px;
    gap: 0;
    overflow-y: auto;
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.35);
  }

  /* OPEN state */
  .mobile-nav.open {
    pointer-events: auto;
  }

  .mobile-nav.open .mobile-nav-overlay {
    background: rgba(0, 0, 0, 0.45);
  }

  .mobile-nav.open .mobile-nav-drawer {
    transform: translateX(0);
  }

  /* Close (X) button */
  .mobile-nav-close {
    align-self: flex-end;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
    margin-bottom: 32px;
  }

  .mobile-nav-close:hover {
    background: rgba(255, 255, 255, 0.25);
  }

  .mobile-nav-close svg {
    fill: #fff;
    width: 18px;
    height: 18px;
  }

  /* Logo inside drawer */
  .mobile-nav-logo {
    display: block;
    margin-bottom: 36px;
  }

  .mobile-nav-logo img {
    height: 32px;
    width: auto;
    filter: brightness(0) invert(1);
    /* force white */
  }

  /* Nav links */
  .mobile-nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
  }

  .mobile-nav-links li a {
    display: flex;
    align-items: center;
    padding: 14px 0;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    transition: color 0.2s, padding-left 0.2s;
    letter-spacing: -0.2px;
  }

  .mobile-nav-links li a:hover {
    padding-left: 8px;
    color: rgba(255, 255, 255, 0.75);
  }

  /* CTA buttons */
  .mobile-nav-cta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 36px;
  }

  .mobile-nav-cta a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    border-radius: 26px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: box-shadow 0.2s, transform 0.15s;
  }

  .mobile-nav-cta a:active {
    transform: scale(0.97);
  }

  /* Primary CTA */
  .mobile-nav-cta a:not(.secondary) {
    background: #fff;
    color: #f04c47;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  }

  .mobile-nav-cta a:not(.secondary):hover {
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.25);
  }

  /* Secondary CTA */
  .mobile-nav-cta a.secondary {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
  }

  .mobile-nav-cta a.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
  }
}