/* =========================================================
   Hazelip School of Theology Canvas Catalog Storefront
   Hybrid page: custom intro + live Canvas Catalog courses
   ========================================================= */

:root {
  --hazelip-purple: #2d075f;
  --hazelip-purple-dark: #25004f;
  --hazelip-gold: #b59a42;
  --hazelip-gold-bright: #f6a400;
  --hazelip-cream: #fbf6e8;
  --hazelip-text: #252525;
  --hazelip-muted: #5a5362;
  --hazelip-white: #ffffff;
  --hazelip-border: rgba(45, 7, 95, 0.16);
  --hazelip-max: 1240px;
}

/* Main wrappers */
#hazelip-storefront-top,
#hazelip-storefront-bottom {
  width: 100%;
  margin: 0;
  padding: 0;
  color: var(--hazelip-text);
  background: var(--hazelip-white);
  font-family: inherit;
  line-height: 1.4;
  box-sizing: border-box;
}

#hazelip-storefront-top *,
#hazelip-storefront-top *::before,
#hazelip-storefront-top *::after,
#hazelip-storefront-bottom *,
#hazelip-storefront-bottom *::before,
#hazelip-storefront-bottom *::after {
  box-sizing: border-box;
}

#hazelip-storefront-top a,
#hazelip-storefront-bottom a {
  color: inherit;
  text-decoration: none;
}

#hazelip-storefront-top img,
#hazelip-storefront-bottom img {
  display: block;
  max-width: 100%;
}

.hazelip-container {
  width: min(var(--hazelip-max), calc(100% - 60px));
  margin: 0 auto;
}

/* =========================================================
   Hero
   ========================================================= */

.hazelip-hero {
  width: 100%;
  min-height: 430px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image:
    linear-gradient(
      90deg,
      rgba(15, 8, 28, 0.78) 0%,
      rgba(15, 8, 28, 0.48) 48%,
      rgba(15, 8, 28, 0.78) 100%
    ),
    url("https://images.unsplash.com/photo-1504052434569-70ad5836ab65?auto=format&fit=crop&w=1800&q=80");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  background-color: #21172f;
  border-top: 4px solid var(--hazelip-gold);
  border-bottom: 4px solid var(--hazelip-gold);
}

.hazelip-hero-inner {
  width: min(1050px, calc(100% - 48px));
  margin: 0 auto;
  text-align: center;
  padding: 82px 0;
}

.hazelip-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
  font-weight: 900;
  text-wrap: balance;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.42);
}

/* =========================================================
   Intro
   ========================================================= */

.hazelip-intro {
  text-align: center;
  padding: 90px 0 36px;
  background: #fff;
}

.hazelip-intro-inner {
  width: min(1120px, calc(100% - 60px));
  margin: 0 auto;
}

.hazelip-intro h2,
.hazelip-section-title {
  color: var(--hazelip-purple-dark);
  font-size: clamp(2.2rem, 4vw, 3.25rem);
  line-height: 1.1;
  margin: 0 0 24px;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.hazelip-intro p {
  max-width: 1080px;
  margin: 0 auto 20px;
  color: var(--hazelip-text);
  font-size: clamp(1.12rem, 1.75vw, 1.45rem);
  line-height: 1.28;
  font-family: Georgia, "Times New Roman", serif;
}

/* =========================================================
   Native Canvas Catalog Course Listing Integration
   ========================================================= */

body.hazelip-storefront-active main,
body.hazelip-storefront-active 
[role="main"],
body.hazelip-storefront-active .main-content,
body.hazelip-storefront-active #main,
body.hazelip-storefront-active .content {
  display: block !important;
}

/* Optional styling for the native course area */
body.hazelip-storefront-active main,
body.hazelip-storefront-active 
[role="main"] {
  width: min(var(--hazelip-max), calc(100% - 60px));
  margin: 0 auto;
  padding: 54px 0 72px;
}

/* If the native Catalog course cards have common classes */
body.hazelip-storefront-active main .course,
body.hazelip-storefront-active main .catalog-listing,
body.hazelip-storefront-active main .listing,
body.hazelip-storefront-active 
[role="main"] .course,
body.hazelip-storefront-active 
[role="main"] .catalog-listing,
body.hazelip-storefront-active 
[role="main"] .listing {
  margin-bottom: 24px;
}

/* =========================================================
   Non-Degree Courses Section
   ========================================================= */

.hazelip-nondegree-courses {
  padding: 42px 0 110px;
  background: #fff;
}

.hazelip-section-intro {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 52px;
}

.hazelip-section-intro h2 {
  color: var(--hazelip-purple-dark);
  font-size: clamp(2.2rem, 4vw, 3.25rem);
  line-height: 1.1;
  margin: 0 0 16px;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.hazelip-section-intro p {
  margin: 0;
  color: var(--hazelip-text);
  font-size: clamp(1.08rem, 1.5vw, 1.35rem);
  line-height: 1.35;
  font-family: Georgia, "Times New Roman", serif;
}

.hazelip-course-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(22px, 2.2vw, 34px);
}

.hazelip-course-card {
  display: flex;
  flex-direction: column;
}

.hazelip-course-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.hazelip-course-card img {
  width: 100%;
  aspect-ratio: 1.35 / 1;
  object-fit: cover;
  margin-bottom: 22px;
}

.hazelip-course-card h3 {
  color: var(--hazelip-purple-dark);
  margin: 0 0 12px;
  font-size: clamp(1.35rem, 1.9vw, 1.85rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 900;
}

.hazelip-course-card p {
  margin: 0 0 24px;
  color: var(--hazelip-text);
  font-size: clamp(0.98rem, 1.1vw, 1.08rem);
  line-height: 1.3;
  font-family: Georgia, "Times New Roman", serif;
}

.hazelip-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--hazelip-text);
  font-weight: 900;
  font-size: 1rem;
  margin-top: auto;
}

.hazelip-cta::before {
  content: "";
  width: 28px;
  height: 28px;
  background: var(--hazelip-gold);
  border-radius: 50%;
  flex: 0 0 auto;
}

.hazelip-cta span {
  padding-bottom: 6px;
  border-bottom: 3px solid var(--hazelip-gold);
}

/* =========================================================
   Bottom Bible / Hazelip CTA
   ========================================================= */

.hazelip-connect {
  background: var(--hazelip-cream);
  padding: 92px 0;
}

.hazelip-connect-card {
  width: min(1040px, calc(100% - 60px));
  margin: 0 auto;
  background:
    linear-gradient(
      90deg,
      rgba(37, 0, 79, 0.94) 0%,
      rgba(37, 0, 79, 0.84) 55%,
      rgba(37, 0, 79, 0.72) 100%
    ),
    url("https://images.unsplash.com/photo-1490730141103-6cac27aaab94?auto=format&fit=crop&w=1600&q=80");
  background-position: center center;
  background-size: cover;
  color: #fff;
  border-top: 5px solid var(--hazelip-gold);
  padding: clamp(42px, 6vw, 72px);
  text-align: center;
}

.hazelip-connect-card h2 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.12;
  margin: 0 0 20px;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.hazelip-connect-card p {
  max-width: 820px;
  margin: 0 auto 34px;
  color: #fff;
  font-size: clamp(1.15rem, 1.7vw, 1.5rem);
  line-height: 1.35;
  font-family: Georgia, "Times New Roman", serif;
}

.hazelip-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 30px;
  background: var(--hazelip-gold);
  color: var(--hazelip-purple-dark) !important;
  font-weight: 900;
  border: 2px solid var(--hazelip-gold);
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.hazelip-button:hover,
.hazelip-button:focus {
  transform: translateY(-2px);
  background: #fff;
  color: var(--hazelip-purple-dark) !important;
}

/* =========================================================
   Responsive
   ========================================================= */

@media screen and (max-width: 1200px) {
  .hazelip-course-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media screen and (max-width: 900px) {
  .hazelip-course-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 760px) {
  .hazelip-container,
  .hazelip-intro-inner,
  body.hazelip-storefront-active main,
  body.hazelip-storefront-active 
[role="main"] {
    width: min(100% - 36px, var(--hazelip-max));
  }

  .hazelip-hero {
    min-height: 350px;
  }

  .hazelip-hero-inner {
    padding: 64px 0;
  }

  .hazelip-hero h1 {
    font-size: clamp(2rem, 10vw, 3.2rem);
  }

  .hazelip-intro {
    padding: 64px 0 32px;
  }

  body.hazelip-storefront-active main,
  body.hazelip-storefront-active 
[role="main"] {
    padding: 42px 0 58px;
  }

  .hazelip-nondegree-courses {
    padding: 64px 0 82px;
  }

  .hazelip-connect {
    padding: 64px 0;
  }

  .hazelip-connect-card {
    width: calc(100% - 36px);
    padding: 38px 26px;
  }
}

@media screen and (max-width: 560px) {
  .hazelip-course-grid {
    grid-template-columns: 1fr;
  }

  .hazelip-course-card img {
    aspect-ratio: 1.3 / 1;
  }

  .hazelip-button {
    width: 100%;
  }
}