/* Main CSS - Layout and Specific Components */
/* Base, Typography, and Utilities handled by design-system.css */

.section-padding {
  padding: 80px 0;
}

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

.text-center {
  text-align: center;
}

.text-primary {
  color: var(--color-primary);
}

.text-secondary {
  color: var(--color-accent);
}

/* Header and Navigation handled by header.css */


.site-footer {
  background-color: var(--color-primary);
  /* Slate 900 */
  color: #f8fafc;
  padding: 60px 0 20px;
  margin-top: auto;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: white;
  margin-bottom: 24px;
  font-size: 1.1rem;
  font-weight: 600;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col a {
  color: #94a3b8;
  /* Slate 400 */
  transition: color 0.2s;
}

.footer-col a:hover {
  color: white;
}

.footer-logo {
  height: 50px;
  width: auto;
  margin-bottom: 16px;
  border-radius: 4px;
}

.footer-text {
  color: #94a3b8;
  line-height: 1.6;
  max-width: 300px;
}

.footer-social {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}

.footer-social a {
  color: white;
  font-size: 1.25rem;
  background: rgba(255, 255, 255, 0.1);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.footer-social a:hover {
  background: var(--color-primary);
  transform: translateY(-2px);
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: #94a3b8;
}

.footer-contact-item i {
  color: var(--color-accent);
  width: 20px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  padding-top: 24px;
  margin-top: 20px;
  color: #64748b;
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.heart {
  color: #ef4444;
}

#scrollTopBtn {
  background: var(--color-primary);
  color: white;
  border: none;
  padding: 12px;
  border-radius: 50%;
  cursor: pointer;
  position: fixed;
  bottom: 20px;
  right: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 99;
}



/* Hero Section */
.hero-section {
  padding: 80px 0;
  background-color: #f8fafc;
  background-image: 
      radial-gradient(at 0% 0%, hsla(210,100%,98%,1) 0, transparent 50%), 
      radial-gradient(at 50% 0%, hsla(220,100%,95%,1) 0, transparent 50%), 
      radial-gradient(at 100% 0%, hsla(230,100%,98%,1) 0, transparent 50%);
  position: relative;
  overflow: hidden;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}

.hero-content {
  max-width: 600px;
}

.hero-badge {
  display: inline-block;
  background: #e0f2fe;
  color: #0369a1;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-content h1 {
  margin-bottom: 24px;
  color: var(--text-primary);
}

.hero-content p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.6;
}

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-image {
  position: relative;
}

.hero-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transform: perspective(1000px) rotateY(-5deg);
  transition: transform 0.3s ease;
  max-width: 100%;
  height: auto;
  display: block;
  /* Remove inline-block spacing */
}

.hero-image:hover img {
  transform: perspective(1000px) rotateY(0deg);
}

.trusted-by {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

.trusted-by p {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 12px;
}

.trusted-stats {
  display: flex;
  gap: 32px;
}

.stat-item strong {
  display: block;
  font-size: 1.5rem;
  color: var(--color-primary);
}

.stat-item span {
  font-size: 0.9rem;
  color: var(--text-muted);
}


/* Features Section */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.feature-card {
  background: white;
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: #eff6ff;
  color: var(--color-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 24px;
}

/* Card Grid Common */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-content {
    margin: 0 auto;
    padding: 0 16px;
    /* Ensure lateral padding */
  }

  /* Fix for small mobile text resizing */
  .hero-content h1 {
    font-size: 2rem;
    /* Reduce header size */
    line-height: 1.2;
  }

  .hero-btns {
    justify-content: center;
  }

  .hero-image {
    order: -1;
    margin: 0 auto;
    max-width: 100%;
    /* Image first on mobile? Or content? Standard is content first. Keep default. */
    padding: 0 16px;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: 40px 0;
    /* Reduced top/bottom padding */
  }

  .hero-badge {
    font-size: 0.8rem;
    white-space: normal;
    /* Allow wrapping */
  }
}
/* =========================
   MODERN DESIGN TOKENS (Premium EdTech)
   ========================= */

.bg-mesh {
    background-color: #f8fafc;
    background-image: 
        radial-gradient(at 0% 0%, hsla(210,100%,98%,1) 0, transparent 50%), 
        radial-gradient(at 50% 0%, hsla(220,100%,95%,1) 0, transparent 50%), 
        radial-gradient(at 100% 0%, hsla(230,100%,98%,1) 0, transparent 50%);
}

.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

.glass-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-primary);
    box-shadow: 0 12px 48px 0 rgba(31, 38, 135, 0.12);
}

/* Resource Hub Specifics */
.resource-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.resource-card {
    padding: 40px 30px;
    border-radius: 20px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.resource-icon {
    font-size: 2.5rem;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--color-primary), #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.resource-card h3 {
    margin-bottom: 12px;
    font-size: 1.4rem;
}

.resource-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.resource-badge {
    display: inline-block;
    padding: 4px 12px;
    background: #f0f7ff;
    color: #0284c7;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

/* Mentorship Bubble (PW Inspired) */
.mentorship-bubble {
    position: absolute;
    bottom: 10%;
    left: -20px;
    background: white;
    padding: 15px 20px;
    border-radius: 20px 20px 20px 0;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    z-index: 10;
    max-width: 200px;
    animation: floatBubble 4s ease-in-out infinite;
}

@keyframes floatBubble {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.mentorship-bubble p {
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
    color: var(--text-primary);
}

.mentorship-bubble span {
    display: block;
    font-size: 0.7rem;
    color: var(--color-primary);
    margin-top: 4px;
    font-weight: 700;
}

/* =========================
   SCROLLING TESTIMONIALS
   ========================= */

.testimonials-section {
    padding: 80px 0;
    overflow: hidden;
    background: #ffffff;
}

.testimonial-header {
    text-align: center;
    margin-bottom: 50px;
}

.highlight-underline {
    position: relative;
    z-index: 1;
    white-space: nowrap;
}

.highlight-underline::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 5px;
    width: 100%;
    height: 12px;
    background: #fef08a; /* Yellow highlight */
    z-index: -1;
    transform: skewX(-15deg);
}

.marquee-container {
    display: flex;
    overflow: hidden;
    user-select: none;
    gap: 30px;
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.marquee-content {
    display: flex;
    flex-shrink: 0;
    gap: 30px;
    animation: scroll-marquee 40s linear infinite;
}

.marquee-container:hover .marquee-content {
    animation-play-state: paused;
}

@keyframes scroll-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.testimonial-card {
    width: 380px;
    background: white;
    border-radius: 24px;
    padding: 35px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 10px 25px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
}

.tm-quote {
    color: #e2e8f0;
    font-size: 2.5rem;
    margin-top: -10px;
}

.tm-content h4 {
    color: var(--color-primary);
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.tm-content p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.tm-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.tm-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    background: #f1f5f9;
}

.tm-info strong {
    display: block;
    font-size: 1rem;
    color: var(--text-primary);
}

.tm-info span {
    font-size: 0.85rem;
    color: #94a3b8;
}

@media (max-width: 768px) {
    .testimonial-card {
        width: 320px;
        padding: 25px;
    }
    .testimonials-section {
        padding: 60px 0;
    }
}

.tm-avatar-icon {
    width: 50px;
    height: 50px;
    background: #f1f5f9;
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
}

/* =========================
   TRENDING PRODUCTS SLIDER
   ========================= */

.trends-section {
    padding: 100px 0;
    overflow: hidden;
    background: #fbfdff; /* Very soft highlight */
    border-top: 1px solid #f1f5f9;
}

.trend-card {
    width: 340px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    flex-shrink: 0;
    text-align: left;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.trend-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 30px 60px rgba(11, 60, 93, 0.12);
    border-color: var(--color-primary);
}

.trend-image {
    width: 100%;
    height: 180px;
    background: #f8fafc;
    position: relative;
    overflow: hidden;
}

.trend-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.trend-card:hover .trend-image img {
    transform: scale(1.1);
}

.trend-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--color-primary);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 2;
}

.trend-info {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.trend-info h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--text-primary);
    line-height: 1.4;
}

.trend-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.trend-btn {
    margin-top: auto;
    width: 100%;
    background: var(--color-primary);
    color: white;
    padding: 14px;
    border-radius: 12px;
    font-weight: 700;
    text-align: center;
    transition: all 0.3s ease;
}

.trend-card:hover .trend-btn {
    background: #082d46;
    box-shadow: 0 4px 15px rgba(11, 60, 93, 0.2);
}


/* =========================
   MOBILE RESPONSIVENESS OVERHAUL
   ========================= */

@media (max-width: 992px) {
    .resource-hub-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 Columns on Tablet as recommended */
    }
}

@media (max-width: 768px) {
    .resource-hub-grid {
        grid-template-columns: 1fr;
    }
    
    .trusted-stats {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }

    .mentorship-bubble {
        position: relative;
        bottom: 0;
        left: 0;
        margin: 20px auto 0;
        border-radius: 20px;
        max-width: 100%;
        text-align: center;
        animation: none; /* Stop floating on mobile for better focus */
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    /* Adjust Card widths for small screens */
    .testimonial-card, .trend-card {
        width: 85vw;
        max-width: 340px;
        padding: 25px;
    }

    .marquee-container {
        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);
    }
    
    .highlight-underline {
        white-space: normal; /* Allow titles to wrap on mobile */
    }
}

@media (max-width: 480px) {
    .hero-btns {
        flex-direction: column;
    }
    
    .hero-btns .btn {
        width: 100%;
        text-align: center;
        padding: 14px;
    }

    .trend-image {
        height: 150px;
    }

    .card-grid {
        gap: 16px;
    }

    .section-padding {
        padding: 40px 0;
    }
}

/* =========================
   STICKY MOBILE CTA
   ========================= */
.sticky-mobile-cta {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 999;
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from { transform: translateY(100px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@media (max-width: 768px) {
    .sticky-mobile-cta {
        display: block;
    }
    
    .sticky-mobile-cta .btn {
        box-shadow: 0 10px 25px rgba(11, 60, 93, 0.3);
        border: 2px solid white;
        padding: 12px 20px;
        font-size: 0.95rem;
    }
}
