/* Home page layout and section styles */

.hero {
  position: relative;
  background: var(--dark-gradient);
  color: #ffffff;
  padding: 5.5rem 0 6.5rem 0;
  overflow: hidden;
}

.hero-bg-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-glow-1 {
  position: absolute;
  top: -10%;
  right: 10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(245, 158, 11, 0.22) 0%,
    rgba(10, 37, 64, 0) 70%
  );
  border-radius: 50%;
  filter: blur(50px);
  animation: pulseGlow 8s infinite alternate ease-in-out;
}

.hero-glow-2 {
  position: absolute;
  bottom: -20%;
  left: -5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(0, 86, 179, 0.3) 0%,
    rgba(7, 25, 44, 0) 70%
  );
  border-radius: 50%;
  filter: blur(60px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.hero-content h1 {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.15;
  margin: 1.2rem 0;
}

.hero-content p {
  font-size: 1.12rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
  max-width: 580px;
}

.hero-cta-group {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  align-items: center;
}

.hero-highlights {
  display: flex;
  gap: 2rem;
  margin-top: 2.5rem;
  padding-top: 1.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.highlight-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.highlight-text strong {
  display: block;
  font-size: 0.98rem;
  color: #ffffff;
}
.highlight-text span {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
}

.hero-card-stack {
  position: relative;
}
.hero-main-card {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-xl);
  position: relative;
  z-index: 2;
}

.articleship-portal-section {
  background: linear-gradient(180deg, #f5f7fb 0%, #eef4ff 100%);
  padding-top: 4rem;
  padding-bottom: 4rem;
  border-top: 1px solid var(--border-light);
}

.articleship-portal-wrap {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.25rem;
  align-items: center;
}

.articleship-chip {
  display: inline-block;
  background: linear-gradient(135deg, #ec4899 0%, #d946ef 100%);
  color: #fff;
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 0.72rem 1.1rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 10px 22px rgba(236, 72, 153, 0.18);
}

.articleship-portal-copy h2 {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--primary);
  margin: 0 0 1rem;
}

.articleship-portal-copy p {
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.7;
  max-width: 640px;
  margin-bottom: 1.5rem;
}

.articleship-checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: grid;
  gap: 0.8rem;
}

.articleship-checklist li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--primary);
  font-size: 1rem;
  font-weight: 500;
}

.articleship-checklist i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(14, 116, 144, 0.08);
  color: var(--primary-accent);
  font-size: 0.8rem;
}

.articleship-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.articleship-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 1.15rem;
}

.articleship-feature-card {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(11, 37, 64, 0.08);
  border-radius: 18px;
  padding: 1.5rem 1.2rem;
  min-height: 175px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.articleship-feature-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(245, 158, 11, 0.12);
  color: var(--primary-accent);
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.articleship-feature-card h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-heading);
  font-size: 1.18rem;
  color: var(--primary);
}

.articleship-feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .articleship-portal-wrap {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .articleship-portal-section {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .articleship-feature-grid {
    grid-template-columns: 1fr;
  }

  .articleship-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .articleship-actions .btn {
    width: 100%;
    justify-content: center;
  }
}
.hero-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}
.hero-card-badge {
  background: var(--accent-gradient);
  color: #ffffff;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
}
.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}
.stat-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.2rem;
  border-radius: var(--radius-md);
  text-align: center;
  transition: var(--transition-fast);
}
.stat-box:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-gold);
}
.stat-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent-gold);
}
.stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

.why-signature-section {
  background: var(--bg-surface);
}
.why-signature-section .features-grid {
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}
.why-signature-section .feature-card {
  padding: 1.5rem 1.25rem;
}
.why-signature-section .feature-card h3 {
  font-size: 1.05rem;
}
.why-signature-section .feature-card p {
  font-size: 0.9rem;
}

.student-reviews-preview {
  background: var(--bg-alt);
}
.home-review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.home-review-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  animation: home-card-slide 7.5s ease-in-out infinite;
}
.home-review-card:nth-child(2) {
  animation-delay: 0.65s;
}
.home-review-card:nth-child(3) {
  animation-delay: 1.3s;
}
.review-stars {
  color: var(--accent-gold);
  letter-spacing: 0.15rem;
  margin-bottom: 1rem;
}
.home-review-card p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}
.home-review-card strong {
  color: var(--primary);
}
.section-action {
  text-align: center;
  margin-top: 2.5rem;
}

.academic-excellence-section {
  background: #eaf5fb;
}
.achievers-slider {
  width: 100%;
  padding-top: 1rem;
  overflow: hidden;
}
.achievers-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: achievers-slide 32s linear infinite;
}
.achievers-track:hover {
  animation-play-state: paused;
}
.achiever-card {
  position: relative;
  width: clamp(280px, 31vw, 490px);
  min-height: 315px;
  flex: 0 0 auto;
  text-align: center;
  background: rgba(255, 255, 255, 0.82);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.5rem 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.9);
}
.achiever-card-featured {
  border-color: rgba(245, 158, 11, 0.45);
}
.achiever-rank {
  position: absolute;
  top: -1rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-gradient);
  color: #fff;
  border-radius: var(--radius-full);
  padding: 0.35rem 1rem;
  font-weight: 800;
}
.achiever-avatar {
  width: 112px;
  height: 112px;
  margin: 0 auto 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--accent-gold);
  font-size: 2.5rem;
  border: 5px solid #fff;
  box-shadow: var(--shadow-md);
}
.achiever-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.achiever-avatar[data-achiever-image] {
  cursor: zoom-in;
  outline: none;
}
.achiever-avatar[data-achiever-image]:focus-visible {
  box-shadow: 0 0 0 4px var(--accent-gold), var(--shadow-md);
}
.home-lightbox-open {
  overflow: hidden;
}
.home-achiever-lightbox[hidden] {
  display: none;
}
.home-achiever-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(3, 18, 35, 0.88);
}
.home-achiever-lightbox-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: min(92vw, 900px);
  max-height: 92vh;
}
.home-achiever-lightbox-content img {
  display: block;
  width: auto;
  max-width: 92vw;
  max-height: calc(92vh - 3.5rem);
  border-radius: var(--radius-lg);
  object-fit: contain;
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.4);
}
.home-achiever-lightbox-content p {
  margin: 0.75rem 0 0;
  color: #fff;
  font-weight: 700;
  text-align: center;
}
.home-achiever-lightbox-close {
  position: absolute;
  top: clamp(0.75rem, 2vw, 1.5rem);
  right: clamp(0.75rem, 2vw, 1.5rem);
  z-index: 1;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--primary);
  font-size: 1.35rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
}
.home-achiever-lightbox-close:hover,
.home-achiever-lightbox-close:focus-visible {
  background: var(--accent-gold);
  color: #fff;
}
.achiever-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 0.65rem;
}
.achiever-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.placement-section {
  padding: 5rem 0;
  background: var(--bg-surface);
  overflow: hidden;
}

.partner-slider {
  width: 100%;
  overflow: hidden;
}

.partner-track {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  width: max-content;
  animation: partner-slide 28s linear infinite;
}

.partner-pill {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.75rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--bg-main);
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  white-space: nowrap;
}

.partner-pill i {
  color: var(--accent-gold);
}

@keyframes pulseGlow {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  100% {
    transform: scale(1.15);
    opacity: 1;
  }
}
@keyframes partner-slide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
@keyframes home-card-slide {
  0%,
  72%,
  100% {
    transform: translateY(0);
  }
  78% {
    transform: translateY(-10px);
  }
  85% {
    transform: translateY(0);
  }
}
@keyframes achievers-slide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50% - 0.75rem));
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-review-card,
  .achievers-track,
  .marquee-track,
  .hero-glow-1,
  .partner-track {
    animation: none;
  }
}

@media (min-width: 1401px) {
  .hero {
    padding-top: 6.5rem;
    padding-bottom: 7rem;
  }

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

  .hero-main-card {
    padding: 2.3rem;
  }

  .why-signature-section .features-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 1200px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-content {
    max-width: 760px;
    margin: 0 auto;
    text-align: left;
  }

  .hero-card-stack {
    max-width: 760px;
    margin: 0 auto;
    width: 100%;
  }

  .why-signature-section .features-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .hero {
    padding-top: 4.75rem;
    padding-bottom: 5.25rem;
  }

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

  .why-signature-section .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .articleship-portal-wrap {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .hero {
    padding-top: 4rem;
    padding-bottom: 4.5rem;
  }

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

  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .hero-highlights {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem 1.25rem;
  }

  .why-signature-section .features-grid,
  .home-review-grid {
    grid-template-columns: 1fr;
  }

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

  .partner-pill {
    padding: 0.8rem 1.35rem;
    font-size: 1rem;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 3.5rem;
    padding-bottom: 4rem;
  }

  .hero-content h1 {
    font-size: 2.1rem;
    line-height: 1.15;
  }

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

  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta-group .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-highlights {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .highlight-item {
    width: 100%;
  }

  .hero-main-card {
    padding: 1.25rem;
  }

  .hero-card-header {
    align-items: flex-start;
    gap: 0.75rem;
    flex-direction: column;
  }

  .hero-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
  }

  .stat-number {
    font-size: 1.7rem;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .articleship-feature-grid {
    grid-template-columns: 1fr;
  }

  .partner-slider {
    padding-inline: 0.5rem;
  }

  .partner-track {
    gap: 0.8rem;
  }
}

@media (max-width: 420px) {
  .hero-content h1 {
    font-size: 1.8rem;
  }

  .badge {
    font-size: 0.72rem;
    padding: 0.38rem 0.8rem;
  }

  .hero-stats-grid {
    grid-template-columns: 1fr;
  }

  .home-review-card,
  .achiever-card,
  .feature-card {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .partner-pill {
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
  }
}
