/* ==========================================================================
   ReadyToGo - MAANG Placement Preparation Showcase Section
   NATURAL HOMEPAGE INTEGRATION (No Artificial Box / Seamless Flow)
   Card Order: META | AMAZON | APPLE | NETFLIX | GOOGLE
   ========================================================================== */

/* 1. SECTION WRAPPER - Full Width Seamless Flow (No hard box / no borders) */
.rtgo-maang-section {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 36px 0 45px 0;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  overflow: hidden;
  box-sizing: border-box;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Subtle Ambient Glow (Soft radial blend) */
.rtgo-maang-bg-glow {
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, 1100px);
  max-width: 100%;
  height: 480px;
  background: radial-gradient(50% 50% at 50% 45%, rgba(219, 234, 254, 0.42) 0%, rgba(248, 250, 252, 0) 100%);
  pointer-events: none;
  z-index: 0;
}

.rtgo-maang-bg-decor-left {
  position: absolute;
  bottom: 10px;
  left: 0;
  width: 280px;
  height: 240px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
}

.rtgo-maang-bg-decor-right {
  position: absolute;
  bottom: 10px;
  right: 0;
  width: 260px;
  height: 220px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

/* 2. INNER SECTION CONTAINER - Exactly matches homepage .container (1240px) */
.rtgo-maang-container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

/* 1. TOP PILL */
.rtgo-maang-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #eaf2ff;
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 999px;
  padding: 8px 24px;
  font-size: 0.84rem;
  font-weight: 700;
  color: #2563eb;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.06);
}

.rtgo-maang-pill-dot {
  width: 7px;
  height: 7px;
  background: #2563eb;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 7px rgba(37, 99, 235, 0.65);
}

/* 2. MAIN HEADLINE - 58px-66px Desktop */
.rtgo-maang-headline-wrap {
  position: relative;
  display: inline-block;
  text-align: center;
  margin: 0 0 14px 0;
  max-width: 1200px;
}

.rtgo-maang-headline {
  font-size: clamp(2.3rem, 4.3vw, 3.95rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: #0b192c;
  margin: 0;
  text-align: center;
}

.rtgo-maang-headline-accent {
  position: relative;
  display: inline-block;
  color: #2563eb;
  white-space: nowrap;
}


/* Playful hand-drawn curved underline */
.rtgo-maang-underline {
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 100%;
  height: 14px;
  pointer-events: none;
}

/* 3. LEARNING JOURNEY - 20px-24px */
.rtgo-maang-journey {
  font-size: clamp(1.15rem, 1.65vw, 1.4rem);
  font-weight: 600;
  color: #334e7a;
  text-align: center;
  margin: 0 0 14px 0;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px 18px;
}

.rtgo-maang-journey-step {
  color: #334e7a;
}

.rtgo-maang-journey-arrow {
  color: #627d98;
  font-weight: 400;
  opacity: 0.85;
}

/* 4. SUPPORTING DESCRIPTION - 18px-20px */
.rtgo-maang-description {
  font-size: clamp(1.02rem, 1.3vw, 1.2rem);
  line-height: 1.5;
  color: #526789;
  text-align: center;
  margin: 0 0 36px 0;
  max-width: 860px;
}

.rtgo-maang-description span {
  display: block;
}

/* 5. CARDS COMPOSITION WRAPPER */
.rtgo-maang-composition-wrap {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px 0 28px 0;
  min-height: 470px;
}

/* HANDWRITTEN ANNOTATIONS */
.rtgo-maang-annotation {
  position: absolute;
  font-family: 'Caveat', cursive, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.15;
  color: #35537e;
  pointer-events: none;
  z-index: 10;
  user-select: none;
}

.rtgo-maang-annot-left {
  top: -65px;
  left: 0;
  text-align: left;
  transform: rotate(-3deg);
}

.rtgo-maang-annot-left .rtgo-annot-arrow {
  position: absolute;
  top: 50px;
  left: 20px;
  width: 48px;
  height: 52px;
}

.rtgo-maang-annot-right {
  top: -65px;
  right: 0;
  text-align: right;
  transform: rotate(3deg);
}

.rtgo-maang-annot-right .rtgo-annot-arrow {
  position: absolute;
  top: 50px;
  right: 18px;
  width: 48px;
  height: 52px;
}

.rtgo-maang-annot-bottom {
  bottom: -28px;
  right: 10px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 8px;
  transform: rotate(-2deg);
}

.rtgo-maang-annot-bottom .rtgo-annot-arrow {
  width: 46px;
  height: 48px;
  flex-shrink: 0;
  margin-top: -6px;
}

/* 5 CARDS STACK / FAN CONTAINER - Fits exactly inside 1192px content grid */
.rtgo-maang-cards-fan {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  max-width: 1192px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* CARD BASE STYLES (244px width, 415px height - Fits 1192px container) */
.rtgo-maang-card {
  position: relative;
  width: 244px;
  min-width: 240px;
  max-width: 248px;
  height: 415px;
  border-radius: 20px;
  padding: 22px 18px 20px 18px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1);
  flex-shrink: 0;
}

/* ==========================================================================
   MANDATORY CARD ORDER: META | AMAZON | APPLE | NETFLIX | GOOGLE
   EXACT SPECIFIED ROTATIONS: -3deg, -1.5deg, 0deg, 1.5deg, 3deg
   ========================================================================== */

/* 1. META (FAR LEFT) */
.rtgo-card-meta {
  transform: rotate(-3deg) translateY(6px);
  z-index: 1;
  background: #087cf5;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  box-shadow: 0 16px 36px rgba(8, 124, 245, 0.28);
}

/* 2. AMAZON (SECOND) */
.rtgo-card-amazon {
  transform: rotate(-1.5deg) translateY(2px);
  margin-left: -14px;
  z-index: 2;
  background: #061b31;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
  box-shadow: 0 16px 36px rgba(6, 27, 49, 0.35);
}

/* 3. APPLE (CENTER ANCHOR) */
.rtgo-card-apple {
  transform: rotate(0deg) translateY(-8px);
  margin-left: -14px;
  z-index: 5;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.85);
  color: #0f172a;
  box-shadow: 0 22px 48px -8px rgba(15, 23, 42, 0.16), 0 2px 8px rgba(15, 23, 42, 0.05);
}

/* 4. NETFLIX (FOURTH) */
.rtgo-card-netflix {
  transform: rotate(1.5deg) translateY(2px);
  margin-left: -14px;
  z-index: 3;
  background: #870000;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  box-shadow: 0 16px 36px rgba(135, 0, 0, 0.35);
}

/* 5. GOOGLE (FAR RIGHT) */
.rtgo-card-google {
  transform: rotate(3deg) translateY(6px);
  margin-left: -14px;
  z-index: 1;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.85);
  color: #0f172a;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1);
}

/* Micro-interaction Hover */
@media (hover: hover) and (pointer: fine) {
  .rtgo-card-meta:hover {
    transform: rotate(-2deg) translateY(-4px) scale(1.02);
    z-index: 6;
    box-shadow: 0 24px 48px rgba(8, 124, 245, 0.38);
  }
  .rtgo-card-amazon:hover {
    transform: rotate(-0.5deg) translateY(-8px) scale(1.02);
    z-index: 6;
    box-shadow: 0 24px 48px rgba(6, 24, 45, 0.38);
  }
  .rtgo-card-apple:hover {
    transform: rotate(0deg) translateY(-14px) scale(1.02);
    z-index: 7;
    box-shadow: 0 28px 56px rgba(15, 23, 42, 0.2);
  }
  .rtgo-card-netflix:hover {
    transform: rotate(0.5deg) translateY(-8px) scale(1.02);
    z-index: 6;
    box-shadow: 0 24px 48px rgba(135, 0, 0, 0.42);
  }
  .rtgo-card-google:hover {
    transform: rotate(2deg) translateY(-4px) scale(1.02);
    z-index: 6;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.16);
  }
}

/* INTERNAL CARD HEADER */
.rtgo-card-header {
  position: relative;
  z-index: 2;
  margin-bottom: 8px;
}

.rtgo-card-brand {
  height: 34px;
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.rtgo-card-brand svg {
  display: block;
}

.rtgo-card-title {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.22;
  margin: 0 0 4px 0;
  letter-spacing: -0.015em;
}

.rtgo-card-sub {
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.35;
  margin: 0;
}

/* Card Theme Typography & Dividers */
.rtgo-card-meta .rtgo-card-title,
.rtgo-card-amazon .rtgo-card-title,
.rtgo-card-netflix .rtgo-card-title {
  color: #ffffff;
}

.rtgo-card-apple .rtgo-card-title,
.rtgo-card-google .rtgo-card-title {
  color: #0f172a;
}

.rtgo-card-meta .rtgo-card-sub {
  color: rgba(255, 255, 255, 0.88);
}

.rtgo-card-amazon .rtgo-card-sub {
  color: #94a3b8;
}

.rtgo-card-apple .rtgo-card-sub,
.rtgo-card-google .rtgo-card-sub {
  color: #64748b;
}

.rtgo-card-netflix .rtgo-card-sub {
  color: rgba(255, 255, 255, 0.78);
}

.rtgo-card-divider {
  width: 100%;
  height: 1px;
  margin: 10px 0 14px 0;
}

.rtgo-card-meta .rtgo-card-divider {
  background: rgba(255, 255, 255, 0.2);
}

.rtgo-card-amazon .rtgo-card-divider {
  background: rgba(255, 255, 255, 0.12);
}

.rtgo-card-apple .rtgo-card-divider,
.rtgo-card-google .rtgo-card-divider {
  background: #edf2f7;
}

.rtgo-card-netflix .rtgo-card-divider {
  background: rgba(255, 255, 255, 0.16);
}

/* INTERNAL CARD ROWS */
.rtgo-card-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 13px;
  flex: 1;
}

.rtgo-card-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rtgo-card-icon {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.rtgo-card-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.rtgo-row-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.rtgo-row-heading {
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 2px;
}

.rtgo-row-desc {
  font-size: 0.74rem;
  font-weight: 500;
  line-height: 1.35;
}

.rtgo-card-meta .rtgo-row-heading,
.rtgo-card-amazon .rtgo-row-heading,
.rtgo-card-netflix .rtgo-row-heading {
  color: #ffffff;
}

.rtgo-card-apple .rtgo-row-heading,
.rtgo-card-google .rtgo-row-heading {
  color: #1e293b;
}

.rtgo-card-meta .rtgo-row-desc {
  color: rgba(255, 255, 255, 0.88);
}

.rtgo-card-amazon .rtgo-row-desc {
  color: #94a3b8;
}

.rtgo-card-apple .rtgo-row-desc,
.rtgo-card-google .rtgo-row-desc {
  color: #64748b;
}

.rtgo-card-netflix .rtgo-row-desc {
  color: rgba(255, 255, 255, 0.78);
}

/* WATERMARK BACKGROUND DECORATION */
.rtgo-card-watermark {
  position: absolute;
  bottom: -15px;
  right: -10px;
  pointer-events: none;
  z-index: 1;
  user-select: none;
}

.rtgo-card-meta .rtgo-card-watermark {
  opacity: 0.09;
  color: #ffffff;
}

.rtgo-card-amazon .rtgo-card-watermark {
  opacity: 0.08;
  color: #ff9900;
}

.rtgo-card-apple .rtgo-card-watermark {
  opacity: 0.045;
  color: #000000;
}

.rtgo-card-netflix .rtgo-card-watermark {
  opacity: 0.1;
  color: #e50914;
}

.rtgo-card-google .rtgo-card-watermark {
  opacity: 0.07;
  color: #1e293b;
}

/* 6. BOTTOM FEATURE / VALUE ROW */
.rtgo-maang-features {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 55px;
  margin-top: 36px;
  padding: 24px 32px;
  border-top: 1px solid #f1f5f9;
  width: min(100%, 1100px);
  box-sizing: border-box;
}

.rtgo-feature-item {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  justify-content: center;
  text-decoration: none;
  color: inherit;
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid transparent;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  box-sizing: border-box;
}

.rtgo-feature-item:hover {
  background: rgba(37, 99, 235, 0.05);
  border-color: rgba(37, 99, 235, 0.16);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.08);
}

.rtgo-feature-item:hover .rtgo-feature-icon {
  transform: scale(1.08);
  color: #1d4ed8;
}

.rtgo-feature-item:hover .rtgo-feature-title {
  color: #2563eb;
}

.rtgo-feature-arrow {
  display: inline-block;
  font-size: 0.9em;
  opacity: 0;
  transform: translate(-3px, 3px);
  transition: all 0.2s ease;
  color: #2563eb;
}

.rtgo-feature-item:hover .rtgo-feature-arrow {
  opacity: 1;
  transform: translate(0, 0);
}

.rtgo-feature-icon {
  width: 38px;
  height: 38px;
  min-width: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2563eb;
  transition: transform 0.25s ease, color 0.25s ease;
}

.rtgo-feature-icon svg {
  width: 32px;
  height: 32px;
}

.rtgo-feature-text {
  display: flex;
  flex-direction: column;
}

.rtgo-feature-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
  margin-bottom: 2px;
  transition: color 0.2s ease;
}

.rtgo-feature-desc {
  font-size: 0.88rem;
  font-weight: 500;
  color: #64748b;
  line-height: 1.35;
}

.rtgo-feature-divider {
  width: 1px;
  height: 38px;
  background: #e2e8f0;
  flex-shrink: 0;
}

/* Mobile Carousel Controls (Hidden on desktop) */
.rtgo-carousel-dots {
  display: none;
}

/* ==========================================================================
   RESPONSIVE DESIGN BREAKPOINTS
   ========================================================================== */

/* Small Desktop / Tablet Landscape (992px to 1239px) - e.g. 1024x768 */
@media (max-width: 1239px) and (min-width: 992px) {
  .rtgo-maang-cards-fan {
    max-width: 976px;
  }
  .rtgo-maang-card {
    width: 202px;
    min-width: 198px;
    max-width: 206px;
    height: 395px;
    padding: 18px 14px 16px 14px;
    border-radius: 18px;
  }
  .rtgo-card-amazon,
  .rtgo-card-apple,
  .rtgo-card-netflix,
  .rtgo-card-google {
    margin-left: -12px;
  }
  .rtgo-card-brand {
    height: 28px;
    margin-bottom: 8px;
  }
  .rtgo-card-brand svg {
    max-width: 96px;
    max-height: 26px;
  }
  .rtgo-card-title {
    font-size: 0.92rem;
    line-height: 1.2;
    margin-bottom: 3px;
  }
  .rtgo-card-sub {
    font-size: 0.72rem;
    line-height: 1.3;
  }
  .rtgo-card-divider {
    margin: 8px 0 10px 0;
  }
  .rtgo-card-body {
    gap: 10px;
  }
  .rtgo-card-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
  }
  .rtgo-card-icon svg {
    width: 16px;
    height: 16px;
  }
  .rtgo-row-heading {
    font-size: 0.79rem;
    line-height: 1.2;
  }
  .rtgo-row-desc {
    font-size: 0.68rem;
    line-height: 1.3;
  }
  .rtgo-maang-annot-left,
  .rtgo-maang-annot-right {
    display: none;
  }
  .rtgo-maang-features {
    gap: 24px;
    padding: 20px 16px;
  }
  .rtgo-feature-title {
    font-size: 0.95rem;
  }
  .rtgo-feature-desc {
    font-size: 0.8rem;
  }
}

/* Medium Tablets & Mobile (< 992px) */
@media (max-width: 991px) {
  .rtgo-maang-section {
    padding: 32px 16px 36px 16px;
  }

  .rtgo-maang-headline {
    font-size: clamp(2rem, 5.2vw, 2.6rem);
  }


  .rtgo-maang-journey {
    font-size: 1.1rem;
    gap: 10px 12px;
  }

  .rtgo-maang-description {
    font-size: 1rem;
    margin-bottom: 28px;
  }

  .rtgo-maang-composition-wrap {
    padding: 10px 0 16px 0;
    min-height: auto;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    display: block;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
  }

  .rtgo-maang-composition-wrap::-webkit-scrollbar {
    display: none;
  }

  .rtgo-maang-cards-fan {
    display: flex;
    justify-content: flex-start;
    padding: 16px max(20px, calc((100vw - min(84vw, 300px)) / 2)) 24px max(20px, calc((100vw - min(84vw, 300px)) / 2));
    width: max-content;
    gap: 16px;
    box-sizing: border-box;
  }

  .rtgo-maang-card {
    transform: none !important;
    margin-left: 0 !important;
    width: min(84vw, 300px);
    min-width: min(84vw, 300px);
    max-width: 320px;
    height: 415px;
    scroll-snap-align: center;
    scroll-snap-stop: normal;
    box-sizing: border-box;
  }

  .rtgo-maang-annotation {
    display: none;
  }

  .rtgo-carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    margin-bottom: 24px;
    padding: 6px 0;
  }

  .rtgo-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cbd5e1;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    border: none;
    box-sizing: content-box;
  }

  .rtgo-carousel-dot.active {
    width: 26px;
    border-radius: 999px;
    background: #2563eb;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
  }

  .rtgo-maang-features {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
    padding: 16px 0;
    width: 100%;
    border-top: 1px solid #e2e8f0;
  }

  .rtgo-feature-item {
    justify-content: flex-start;
    width: 100%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
  }

  .rtgo-feature-item:hover {
    background: #f8fafc;
    border-color: #2563eb;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.08);
  }

  .rtgo-feature-arrow {
    opacity: 1;
    transform: none;
  }

  .rtgo-feature-divider {
    display: none;
  }
}

/* Small Mobile Screens (<= 767px) */
@media (max-width: 767px) {
  .rtgo-maang-section {
    padding: 24px 16px 28px 16px;
  }

  .rtgo-maang-pill {
    padding: 7px 20px;
    font-size: 0.78rem;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
  }

  .rtgo-maang-headline {
    font-size: 1.85rem;
    line-height: 1.2;
  }

  .rtgo-maang-journey {
    font-size: 0.95rem;
    gap: 8px 10px;
  }

  .rtgo-maang-description {
    font-size: 0.9rem;
    margin-bottom: 16px;
  }

  .rtgo-maang-card {
    width: min(85vw, 300px);
    min-width: min(85vw, 300px);
    max-width: 320px;
    height: 415px;
    padding: 22px 18px;
    border-radius: 20px;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .rtgo-maang-card {
    transition: none !important;
  }
}
