/* ==========================================================================
   ReduPortal / Reader Club - home.css
   Designed for clean integration with Bootstrap 5
   ========================================================================== */

:root {
  --rh-primary: #0062FF;
  --rh-primary-hover: #004ed0;
  --rh-primary-light: #EEF4FF;
  --rh-dark: #0F172A;
  --rh-navy: #0B132B;
  --rh-gray: #64748B;
  --rh-border: #E2E8F0;
  --rh-card-bg: #FFFFFF;
  --rh-star: #F59E0B;
}

/* Base Wrapper Scoping */
.reader-home {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--rh-dark);
  line-height: 1.6;
}

.reader-home section {
  padding: 3.5rem 0;
}

/* General Typography & Highlights */
.reader-home .highlight {
  color: var(--rh-primary);
  font-weight: inherit;
}

.reader-home .section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2.5rem;
  gap: 2rem;
}

.reader-home .section-header h2 {
  font-size: 2.4rem;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.02em;
}

.reader-home .section-header p {
  color: var(--rh-gray);
  margin: 0;
  max-width: 360px;
  text-align: right;
  font-size: 0.95rem;
}

.reader-home .view-all-link {
  color: var(--rh-primary);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  transition: opacity 0.2s ease;
}

.reader-home .view-all-link:hover {
  opacity: 0.8;
}

/* Button Variants */
.reader-home .btn {
  padding: 0.75rem 1.6rem;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.reader-home .btn-primary {
  background-color: var(--rh-primary);
  border: 1px solid var(--rh-primary);
  color: #ffffff;
}

.reader-home .btn-primary:hover {
  background-color: var(--rh-primary-hover);
  border-color: var(--rh-primary-hover);
  color: #ffffff;
  transform: translateY(-1px);
}

.reader-home .btn-secondary {
  background-color: transparent;
  border: 1.5px solid var(--rh-primary);
  color: var(--rh-primary);
}

.reader-home .btn-secondary:hover {
  background-color: var(--rh-primary-light);
  color: var(--rh-primary);
}

.reader-home .btn-white {
  background-color: #ffffff;
  color: var(--rh-dark);
  border: none;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.reader-home .btn-white:hover {
  background-color: #f8fafc;
  color: var(--rh-primary);
}

/* ==========================================================================
   1. HERO SECTION
   ========================================================================== */
.reader-home .hero-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3.5rem;
  padding-top: 2rem;
  padding-bottom: 2.5rem;
}

.reader-home .hero-left {
  flex: 1.1;
}

.reader-home .hero-tagline {
  color: var(--rh-primary);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.reader-home .hero-title {
  font-size: 3.8rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.reader-home .hero-desc {
  font-size: 1.15rem;
  color: var(--rh-gray);
  margin-bottom: 2.2rem;
  max-width: 520px;
}

.reader-home .hero-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
}

.reader-home .hero-features {
  display: flex;
  gap: 2.5rem;
}

.reader-home .feature-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.reader-home .feature-item i {
  font-size: 1.5rem;
  color: var(--rh-primary);
}

.reader-home .feature-item strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--rh-dark);
}

.reader-home .feature-item p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--rh-gray);
}

.reader-home .hero-right {
  flex: 0.9;
  display: flex;
  justify-content: center;
  align-items: center;
}

.reader-home .hero-right img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

/* ==========================================================================
   2. STATS SECTION
   ========================================================================== */
.reader-home .stats-section {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  background: var(--rh-card-bg);
  border: 1px solid var(--rh-border);
  border-radius: 16px;
  padding: 2rem 2.5rem;
  box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.04);
  margin-top: 1rem;
}

.reader-home .stat-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.reader-home .stat-item i {
  width: 48px;
  height: 48px;
  background: var(--rh-primary-light);
  color: var(--rh-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.reader-home .stat-item:last-child i {
  background: #FEF3C7;
  color: var(--rh-star);
}

.reader-home .stat-item h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0;
}

.reader-home .stat-item p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--rh-gray);
}

/* ==========================================================================
   3. SERVICES SECTION
   ========================================================================== */


.reader-home .service-card {
  background: var(--rh-card-bg);
  border: 1px solid var(--rh-border);
  border-radius: 16px;
  padding: 2.2rem;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.reader-home .service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px -5px rgba(0, 98, 255, 0.08);
}

.reader-home .icon-box {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.4rem;
}

/* Individual Card Icon Background & Colors as per Reference */
.reader-home .service-card:nth-child(1) .icon-box { background: #EFF6FF; color: #2563EB; }
.reader-home .service-card:nth-child(2) .icon-box { background: #FEF2F2; color: #DC2626; }
.reader-home .service-card:nth-child(3) .icon-box { background: #FAF5FF; color: #9333EA; }
.reader-home .service-card:nth-child(4) .icon-box { background: #F0FDF4; color: #16A34A; }
.reader-home .service-card:nth-child(5) .icon-box { background: #F0F9FF; color: #0284C7; }
.reader-home .service-card:nth-child(6) .icon-box { background: #EFF6FF; color: #0062FF; }

.reader-home .service-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.reader-home .service-card p {
  color: var(--rh-gray);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.reader-home .card-link {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--rh-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--rh-primary);
  text-decoration: none;
  font-weight: 700;
  transition: all 0.2s ease;
}

.reader-home .card-link:hover {
  background-color: var(--rh-primary);
  border-color: var(--rh-primary);
  color: #ffffff;
}

/* ==========================================================================
   4. COMPANIES SECTION
   ========================================================================== */
.reader-home .companies-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.reader-home .companies-header h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0;
}

.reader-home .companies-logos img {
  max-height: 30px;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.reader-home .companies-logos img:hover {
  transform: scale(1.05);
}

/* ==========================================================================
   5. GLOBAL BANNER
   ========================================================================== */
.reader-home .global-banner {
  background: var(--rh-navy);
  border-radius: 24px;
  padding: 4.5rem;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 2rem 0;
  position: relative;
  overflow: hidden;
}

.reader-home .banner-tagline {
  color: #94A3B8;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.reader-home .banner-content h2 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.reader-home .banner-content h2 .highlight {
  color: #38BDF8;
}

.reader-home .banner-content p {
  color: #CBD5E1;
  font-size: 1.1rem;
  max-width: 480px;
  margin: 0;
}

/* ==========================================================================
   6. WHY CHOOSE SECTION
   ========================================================================== */
.reader-home .features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.reader-home .feature-card {
  background: var(--rh-card-bg);
  border: 1px solid var(--rh-border);
  border-radius: 16px;
  padding: 2.2rem 1.6rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.reader-home .feature-card:hover {
  transform: translateY(-3px);
  border-color: #CBD5E1;
}

.reader-home .feature-card i {
  font-size: 2.2rem;
  display: inline-block;
  margin-bottom: 1.2rem;
}

.reader-home .feature-card:nth-child(1) i { color: #F59E0B; }
.reader-home .feature-card:nth-child(2) i { color: #EF4444; }
.reader-home .feature-card:nth-child(3) i { color: #0062FF; }
.reader-home .feature-card:nth-child(4) i { color: #10B981; }

.reader-home .feature-card h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.reader-home .feature-card p {
  color: var(--rh-gray);
  font-size: 0.9rem;
  margin: 0;
}

/* ==========================================================================
   7. TESTIMONIALS SECTION
   ========================================================================== */
.reader-home .section-tagline {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--rh-primary);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.reader-home .testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}

.reader-home .testimonial-card {
  background: var(--rh-card-bg);
  border: 1px solid var(--rh-border);
  border-radius: 16px;
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.reader-home .testimonial-card .quote {
  font-size: 1rem;
  color: var(--rh-dark);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.reader-home .author strong {
  display: block;
  font-weight: 700;
  font-size: 1rem;
}

.reader-home .author span {
  font-size: 0.85rem;
  color: var(--rh-gray);
}

.reader-home .stars {
  color: var(--rh-star);
  margin-top: 1rem;
  font-size: 1.1rem;
  letter-spacing: 2px;
}

/* ==========================================================================
   8. FAQ SECTION
   ========================================================================== */
.reader-home .faq-section {
  display: flex;
  gap: 3.5rem;
  align-items: flex-start;
}

.reader-home .faq-left {
  flex: 1.6;
}

.reader-home .faq-left h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 2rem;
}

.reader-home .faq-list {
  display: flex;
  flex-direction: column;
}

.reader-home .faq-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--rh-border);
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.reader-home .faq-item:hover {
  color: var(--rh-primary);
}

.reader-home .faq-item i {
  font-size: 1.3rem;
  color: var(--rh-gray);
}

.reader-home .faq-right {
  flex: 0.9;
}

.reader-home .contact-box {
  background: #F8FAFC;
  border: 1px solid var(--rh-border);
  border-radius: 20px;
  padding: 3.5rem 2rem;
  text-align: center;
}

.reader-home .contact-box i {
  font-size: 2.5rem;
  color: var(--rh-primary);
  margin-bottom: 1.2rem;
  display: inline-block;
}

.reader-home .contact-box h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.reader-home .contact-box p {
  color: var(--rh-gray);
  margin-bottom: 1.8rem;
  font-size: 0.95rem;
}

/* ==========================================================================
   9. BOTTOM CTA
   ========================================================================== */
.reader-home .bottom-cta-section {
  background: var(--rh-primary-light);
  border-radius: 24px;
  padding: 3.5rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
}

.reader-home .cta-tagline {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--rh-primary);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.reader-home .cta-content h2 {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.reader-home .cta-content p {
  color: var(--rh-gray);
  font-size: 1.05rem;
  margin: 0;
}

.reader-home .cta-action .btn {
  padding: 0.9rem 2rem;
  font-size: 1.05rem;
  border-radius: 10px;
}

/* ==========================================================================
   10. RESPONSIVENESS
   ========================================================================== */
@media (max-width: 992px) {
  .reader-home .hero-section,
  .reader-home .faq-section,
  .reader-home .bottom-cta-section,
  .reader-home .global-banner {
    flex-direction: column;
    text-align: center;
    gap: 2.5rem;
  }

  .reader-home .hero-desc,
  .reader-home .banner-content p {
    margin-left: auto;
    margin-right: auto;
  }

  .reader-home .hero-actions {
    justify-content: center;
  }

  .reader-home .hero-features {
    justify-content: center;
  }

  .reader-home .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  .reader-home .section-header p {
    text-align: left;
  }

  .reader-home .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .reader-home .features-grid,
  .reader-home .stats-section,
  .reader-home .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .reader-home .hero-title {
    font-size: 2.6rem;
  }

  .reader-home .services-grid,
  .reader-home .features-grid,
  .reader-home .stats-section,
  .reader-home .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .reader-home .global-banner,
  .reader-home .bottom-cta-section {
    padding: 2.5rem 1.5rem;
  }
}

/* ==========================================================================
   ANIMATED MARQUEE CARDS (Pop-up on Hover)
   ========================================================================== */

/* Outer wrapper with left/right blur fading effect */
.reader-home .marquee-wrapper {
  overflow: hidden;
  width: 100%;
  position: relative;
  padding: 1.5rem 0 3rem 0;
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

/* The moving track */
.reader-home .marquee-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: scroll-left 25s linear infinite;
}

.reader-home .track-reverse {
  animation: scroll-right 25s linear infinite;
}

/* Pause animation on hover */
.reader-home .marquee-track:hover {
  animation-play-state: paused;
}

/* Subject Cards (Matching Screenshot) */
.reader-home .subject-card {
  width: 260px;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #E2E8F0;
  overflow: hidden;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

/* Hover Pop-up Effect */
.reader-home .subject-card:hover {
  transform: scale(1.08) translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
  z-index: 10;
  position: relative;
}

/* =========================================
   UPDATED: Top Gradient Area with Icons
   ========================================= */
.reader-home .sc-top {
  height: 100px; /* Badi height icons ke liye */
  width: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding-left: 1.2rem;
}

.reader-home .bg-purple { background: linear-gradient(135deg, #8B5CF6, #A855F7); }
.reader-home .bg-blue { background: linear-gradient(135deg, #0EA5E9, #3B82F6); }
.reader-home .bg-purple-light { background: linear-gradient(135deg, #A855F7, #D946EF); }

/* Background Watermark Icon */
.reader-home .sc-bg-icon {
  position: absolute;
  right: -10px;
  bottom: -20px;
  font-size: 5.5rem;
  color: rgba(255, 255, 255, 0.15); 
  transform: rotate(-15deg);
  pointer-events: none;
}

/* Glassmorphism Solid Icon */
.reader-home .sc-icon-wrapper {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(5px);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.4rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  z-index: 2;
}

/* =========================================
   UPDATED: Bottom Text Area & Meta Info
   ========================================= */
.reader-home .sc-bottom {
  padding: 1.2rem;
  background: white;
}

.reader-home .sc-bottom h4 {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0 0 0.4rem 0;
  color: var(--rh-dark);
}

.reader-home .sc-bottom p {
  font-size: 0.9rem;
  color: var(--rh-gray);
  margin: 0;
  margin-bottom: 1rem;
}

/* New Meta Row (100+ Resources etc.) */
.reader-home .sc-meta {
  padding-top: 0.8rem;
  border-top: 1px dashed var(--rh-border);
  font-size: 0.8rem;
  color: var(--rh-primary);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.reader-home .sc-meta i {
  font-size: 0.9rem;
}

/* =========================================
   UPDATED: Company Card (With Jobs Count)
   ========================================= */
.reader-home .company-card {
  width: 230px;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #E2E8F0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1.2rem 1rem 1.2rem;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  cursor: pointer;
}

.reader-home .company-card:hover {
  transform: scale(1.1) translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.08);
  z-index: 10;
  position: relative;
}

/* Company Logo Container */
.reader-home .company-logo {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  width: 100%;
}

.reader-home .company-logo img {
  max-width: 80%;
  max-height: 100%;
  object-fit: contain;
}

/* Bottom Jobs Count Area */
.reader-home .company-jobs {
  width: 100%;
  text-align: center;
  padding-top: 0.8rem;
  border-top: 1px dashed var(--rh-border);
  font-size: 0.85rem;
  color: var(--rh-gray);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.reader-home .company-jobs i {
  color: var(--rh-primary);
  font-size: 0.95rem;
}

/* =========================================
   Keyframes
   ========================================= */
@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 0.75rem)); }
}

@keyframes scroll-right {
  0% { transform: translateX(calc(-50% - 0.75rem)); }
  100% { transform: translateX(0); }
}