/* FILE PURPOSE: HOMEPAGE STYLES
   LOCATION: /var/www/learn/css/home.css
   LAST REVIEWED: 2026-08-14 */

/* HERO */
.home-hero {
  background: linear-gradient(135deg,
    #3d52a8 0%, #5b7dd8 60%, #4f6bc4 100%);
  padding: 64px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.home-hero-bg-text {
  position: absolute;
  top: -20px;
  left: 0;
  right: 0;
  font-size: 130px;
  opacity: 0.04;
  color: #fff;
  font-family: 'Noto Serif Bengali', serif;
  letter-spacing: 20px;
  line-height: 1.2;
  pointer-events: none;
  user-select: none;
}

.home-hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  font-size: 12px;
  padding: 4px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}

.home-hero h1 {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 12px;
  font-family: 'Noto Serif Bengali', serif;
}

.home-hero .hero-sub {
  font-size: clamp(16px, 2.5vw, 22px);
  color: rgba(255,255,255,0.88);
  margin-bottom: 8px;
  font-family: 'Noto Serif Bengali', serif;
}

.home-hero .hero-assamese {
  font-size: clamp(13px, 1.8vw, 16px);
  color: rgba(255,255,255,0.65);
  margin-bottom: 32px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.home-hero-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.home-btn-primary {
  background: #fff;
  color: #3d52a8;
  padding: 13px 28px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  font-family: 'Noto Serif Bengali', serif;
  transition: opacity 0.2s ease;
  display: inline-block;
}

.home-btn-primary:hover {
  opacity: 0.9;
}

.home-btn-secondary {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.4);
  padding: 13px 28px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  font-family: 'Noto Serif Bengali', serif;
  transition: background 0.2s ease;
  display: inline-block;
}

.home-btn-secondary:hover {
  background: rgba(255,255,255,0.2);
}

/* STATS BAR */
.home-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
}

.home-stat {
  padding: 24px 16px;
  text-align: center;
  border-right: 1px solid #e2e8f0;
}

.home-stat:last-child {
  border-right: none;
}

.home-stat-num {
  font-size: 28px;
  font-weight: 700;
  color: #3d52a8;
  line-height: 1;
  font-family: 'Noto Serif Bengali', serif;
}

.home-stat-label {
  font-size: 12px;
  color: #64748b;
  margin-top: 4px;
  font-family: 'Noto Serif Bengali', serif;
}

/* SECTIONS */
.home-section {
  padding: 56px 20px;
}

.home-section-alt {
  background: #f8faff;
}

.home-section-label {
  font-size: 15px;
  font-weight: 600;
  color: #5b7dd8;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
  font-family: 'Noto Serif Bengali', serif;
}

.home-section-title {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
  font-family: 'Noto Serif Bengali', serif;
}

.home-section-desc {
  font-size: 14px;
  color: #64748b;
  line-height: 1.7;
  max-width: 100%;
  margin-bottom: 32px;
  white-space: nowrap;
}

/* MISSION BOX */
.home-about-box {
  background: linear-gradient(135deg,
    #eef2ff, #e8edff);
  border: 1px solid #c7d2fe;
  border-radius: 16px;
  padding: 32px 36px;
}

.home-about-as {
  font-size: 20px;
  font-weight: 700;
  color: #3d52a8;
  font-family: 'Noto Serif Bengali', serif;
  margin-bottom: 12px;
}

.home-about-text {
  font-size: 16px;
  color: #4a5568;
  line-height: 1.8;
  max-width: 640px;
  font-family: 'Noto Serif Bengali', serif;
}

/* TOOL CARDS */
.home-tool-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.home-tool-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 24px;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: all 0.2s ease;
}

.home-tool-card:hover {
  border-color: #5b7dd8;
  box-shadow: 0 4px 20px rgba(91,125,216,0.1);
  transform: translateY(-2px);
}

.home-tool-icon {
  font-size: 36px;
  margin-bottom: 12px;
  display: block;
}

.home-tool-name {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
  font-family: 'Noto Serif Bengali', serif;
  line-height: 1.3;
}

.home-tool-name span {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #5b7dd8;
  margin-top: 2px;
}

.home-tool-desc {
  font-size: 14px;
  color: #64748b;
  line-height: 1.7;
  margin-bottom: 12px;
  font-family: 'Noto Serif Bengali', serif;
}

.home-tool-tag {
  display: inline-block;
  background: #eef2ff;
  color: #3d52a8;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 12px;
  border: 1px solid #c7d2fe;
  font-family: 'Noto Serif Bengali', serif;
}

/* AUDIENCE CARDS */
.home-audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.home-audience-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 24px;
}

.home-aud-icon {
  font-size: 32px;
  margin-bottom: 14px;
  display: block;
}

.home-aud-title {
  font-size: 17px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
  font-family: 'Noto Serif Bengali', serif;
  line-height: 1.3;
}

.home-aud-title span {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #5b7dd8;
  margin-top: 2px;
}

.home-aud-desc {
  font-size: 13px;
  color: #64748b;
  line-height: 1.7;
  font-family: 'Noto Serif Bengali', serif;
}

/* MOBILE */
@media (max-width: 768px) {
  .home-hero {
    padding: 48px 16px;
  }

  .home-hero-bg-text {
    font-size: 60px;
  }

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

  .home-stat:nth-child(2) {
    border-right: none;
  }

  .home-stat:nth-child(3) {
    border-top: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
  }

  .home-stat:nth-child(4) {
    border-top: 1px solid #e2e8f0;
  }

  .home-tool-grid {
    grid-template-columns: 1fr;
  }

  .home-audience-grid {
    grid-template-columns: 1fr;
  }

  .home-about-box {
    padding: 20px;
  }

  .home-section {
    padding: 40px 16px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .home-tool-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .home-audience-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
