/**
 * Theme Name: Blocksy Child
 * Description: Blocksy Child theme
 * Author: Creative Themes
 * Template: blocksy
 * Text Domain: blocksy
 */

.topbar,
.topbar *,
.hero,
.hero *,
.proof-strip,
.proof-strip *,
.section,
.section *,
.cta-section,
.cta-section * {
  box-sizing: border-box;
}

.topbar img,
.hero img,
.section img {
  max-width: 100%;
  display: block;
}

.topbar a,
.section a,
.hero a {
  text-decoration: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(8, 16, 34, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand img {
  width: 188px;
  height: auto;
}

.menu {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.menu a {
  color: #f3f7ff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.86;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.menu a:hover {
  color: #8dd8ff;
  opacity: 1;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 72px;
  background:
    radial-gradient(circle at top left, rgba(64, 153, 255, 0.2), transparent 34%),
    radial-gradient(circle at 80% 20%, rgba(88, 63, 222, 0.18), transparent 26%),
    linear-gradient(135deg, #081228 0%, #10264a 55%, #0f1c33 100%);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(8, 18, 40, 0.66), rgba(8, 18, 40, 0.78)),
    url("https://www.educourse.co.za/wp-content/uploads/2025/12/college-campus-hero.webp") center/cover no-repeat;
  opacity: 0.28;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 46px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: #8dd8ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow.accent {
  color: #4f7cff;
}

.eyebrow.light {
  color: #a9dcff;
}

.hero h1 {
  margin: 0 0 18px;
  color: #ffffff;
  font-size: clamp(2.5rem, 5vw, 4.85rem);
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.hero-text {
  max-width: 640px;
  margin: 0;
  color: rgba(235, 244, 255, 0.86);
  font-size: 18px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 32px 0 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, #4f7cff 0%, #1b56f5 100%);
  color: #ffffff;
  box-shadow: 0 18px 44px rgba(27, 86, 245, 0.34);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.button-light {
  background: #ffffff;
  color: #11284f;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
}

.search-card {
  max-width: 560px;
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.18);
}

.search-pill {
  display: inline-flex;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(141, 216, 255, 0.14);
  color: #dff6ff;
  font-size: 13px;
  font-weight: 700;
}

.search-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.search-grid span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
}

.hero-visual {
  position: relative;
  min-height: 560px;
}

.hero-stack {
  position: absolute;
  overflow: hidden;
  border-radius: 26px;
  box-shadow: 0 34px 80px rgba(2, 8, 20, 0.4);
}

.hero-stack img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stack-top {
  top: 0;
  right: 0;
  width: min(420px, 92%);
  height: 330px;
  transform: rotate(2deg);
}

.stack-middle {
  left: 10px;
  bottom: 54px;
  width: min(300px, 68%);
  height: 350px;
  border: 10px solid rgba(255, 255, 255, 0.9);
  background: #ffffff;
  transform: rotate(-6deg);
}

.hero-note {
  position: absolute;
  right: 20px;
  bottom: 0;
  max-width: 270px;
  padding: 18px 20px;
  border-radius: 20px;
  background: #ffffff;
  color: #0f2242;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.22);
}

.mini-label {
  display: inline-block;
  margin-bottom: 8px;
  color: #4f7cff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.proof-strip {
  position: relative;
  z-index: 2;
  margin-top: -24px;
  padding-bottom: 24px;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.proof-card {
  padding: 24px 22px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(17, 40, 79, 0.08);
  border: 1px solid rgba(17, 40, 79, 0.06);
}

.proof-number {
  display: block;
  margin-bottom: 8px;
  color: #11284f;
  font-size: 28px;
  font-weight: 800;
}

.proof-text {
  color: #51627f;
  font-size: 14px;
  line-height: 1.6;
}

.section {
  padding: 92px 0;
  background: #f6f9ff;
}

.featured-section,
.opportunities-section,
.articles-section,
.stories-section {
  background: #f6f9ff;
}

.paths-section {
  background: linear-gradient(180deg, #f6f9ff 0%, #eef4ff 100%);
}

.dashboard-section {
  background: #ffffff;
}

.cta-section {
  background: #f6f9ff;
  padding-top: 0;
}

.section-head {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 28px;
  align-items: end;
  margin-bottom: 40px;
}

.section-head h2,
.dark-panel h2,
.dashboard-copy h2,
.cta-box h2 {
  margin: 0;
  color: #11284f;
  font-size: clamp(2rem, 3.2vw, 3.15rem);
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 0;
  color: #5e6f8d;
  font-size: 16px;
  line-height: 1.75;
}

.feature-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
}

.feature-spotlight {
  overflow: hidden;
  border-radius: 30px;
  background: #ffffff;
  box-shadow: 0 30px 70px rgba(17, 40, 79, 0.08);
}

.feature-spotlight img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.feature-spotlight-copy {
  padding: 28px;
}

.feature-spotlight-copy h3,
.card h3,
.path-card h3,
.opportunity-card h3,
.article-card h3,
.story-card footer {
  margin: 0;
}

.feature-spotlight-copy h3,
.card h3,
.path-card h3,
.opportunity-card h3,
.article-card h3 {
  color: #11284f;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 800;
}

.feature-spotlight-copy p,
.card p,
.path-card p,
.opportunity-card p,
.dashboard-copy p,
.feature-list li,
.story-card p {
  color: #5e6f8d;
  font-size: 15px;
  line-height: 1.75;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.card,
.path-card,
.story-card,
.article-card {
  padding: 26px 24px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(17, 40, 79, 0.07);
  border: 1px solid rgba(17, 40, 79, 0.06);
}

.tag {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #eef3ff;
  color: #2f5cff;
  font-size: 12px;
  font-weight: 800;
}

.paths-shell {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 24px;
  align-items: stretch;
}

.dark-panel {
  padding: 34px;
  border-radius: 28px;
  background: linear-gradient(145deg, #10264a 0%, #081228 100%);
  box-shadow: 0 28px 70px rgba(7, 18, 40, 0.2);
}

.dark-panel h2,
.dark-panel p {
  color: #ffffff;
}

.dark-panel p {
  margin: 16px 0 0;
  color: rgba(233, 241, 255, 0.82);
  line-height: 1.8;
}

.paths-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.path-card {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(6px);
}

.opportunity-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.opportunity-card {
  min-height: 280px;
  padding: 28px;
  border-radius: 28px;
  color: #ffffff;
  box-shadow: 0 26px 60px rgba(17, 40, 79, 0.14);
}

.opportunity-card p,
.opportunity-card h3,
.opportunity-card .mini-label {
  color: #ffffff;
}

.orange-card {
  background: linear-gradient(180deg, #f29838 0%, #d96f18 100%);
}

.blue-card {
  background: linear-gradient(180deg, #3a87ff 0%, #1d4df5 100%);
}

.dark-card {
  background: linear-gradient(180deg, #162948 0%, #0a1428 100%);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 32px;
  align-items: center;
}

.dashboard-copy p {
  margin: 16px 0 0;
}

.feature-list {
  margin: 22px 0 0;
  padding-left: 20px;
}

.feature-list li {
  margin-bottom: 10px;
}

.dashboard-visual {
  position: relative;
}

.dashboard-visual img {
  width: 100%;
  border-radius: 28px;
  box-shadow: 0 34px 80px rgba(17, 40, 79, 0.12);
}

.floating-panel {
  position: absolute;
  left: 24px;
  bottom: 24px;
  max-width: 320px;
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  color: #11284f;
  box-shadow: 0 18px 44px rgba(17, 40, 79, 0.16);
}

.article-grid,
.story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.article-card {
  padding: 0;
  overflow: hidden;
}

.article-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.article-card > div {
  padding: 22px;
}

.story-card {
  margin: 0;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.story-card p {
  margin: 0 0 18px;
  color: #334666;
  font-size: 17px;
}

.story-card footer {
  color: #4f7cff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 38px;
  border-radius: 32px;
  background: linear-gradient(135deg, #10264a 0%, #20498a 55%, #3e7aff 100%);
  box-shadow: 0 34px 80px rgba(17, 40, 79, 0.18);
}

.cta-box h2,
.cta-box p {
  color: #ffffff;
}

.cta-box p {
  margin: 0 0 12px;
}

@media (max-width: 1100px) {
  .hero-grid,
  .feature-layout,
  .paths-shell,
  .dashboard-grid,
  .section-head {
    grid-template-columns: 1fr;
  }

  .proof-grid,
  .opportunity-grid,
  .article-grid,
  .story-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-visual {
    min-height: 520px;
  }
}

@media (max-width: 820px) {
  .menu {
    display: none;
  }

  .proof-grid,
  .cards-grid,
  .paths-grid,
  .opportunity-grid,
  .article-grid,
  .story-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 72px 0 52px;
  }

  .hero-visual {
    min-height: 460px;
  }

  .stack-top {
    width: 100%;
    height: 260px;
  }

  .stack-middle {
    left: 0;
    bottom: 72px;
    width: 72%;
    height: 250px;
  }

  .hero-note {
    right: 0;
    left: auto;
    max-width: 240px;
  }

  .section {
    padding: 72px 0;
  }

  .cta-box {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 20px, 1180px);
  }

  .nav {
    min-height: 70px;
  }

  .brand img {
    width: 156px;
  }

  .hero h1 {
    font-size: 2.35rem;
  }

  .hero-text {
    font-size: 16px;
  }

  .search-card,
  .proof-card,
  .card,
  .path-card,
  .story-card,
  .feature-spotlight-copy,
  .opportunity-card,
  .dark-panel,
  .cta-box {
    padding: 22px;
  }

  .hero-visual {
    min-height: 390px;
  }

  .stack-top {
    height: 220px;
  }

  .stack-middle {
    width: 70%;
    height: 210px;
    bottom: 60px;
    border-width: 8px;
  }

  .hero-note {
    max-width: 200px;
    padding: 14px 16px;
  }

  .feature-spotlight img,
  .article-card img {
    height: 200px;
  }

  .section-head h2,
  .dark-panel h2,
  .dashboard-copy h2,
  .cta-box h2 {
    font-size: 2rem;
  }
}
