/* =========================================================
   HIJABIAN - MAIN WEBSITE STYLESHEET
   Brand: Learn. Earn. Empower.
   Theme: Premium | Elegant | Feminine | Professional
========================================================= */


/* =========================================================
   1. BRAND VARIABLES & RESET
========================================================= */

:root {
  --navy: #172b43;
  --navy-light: #263e59;
  --navy-dark: #102033;

  --rose: #b77c82;
  --rose-dark: #a56870;
  --rose-light: #f4e8e8;

  --cream: #f9f7f2;
  --white: #ffffff;
  --off-white: #fdfcf9;

  --text: #394653;
  --text-light: #71808d;
  --border: #e9e5df;

  --success: #16865b;
  --shadow: 0 12px 35px rgba(23, 43, 67, 0.08);
  --shadow-hover: 0 18px 45px rgba(23, 43, 67, 0.14);

  --font-main: "DM Sans", Arial, sans-serif;
  --font-heading: "Playfair Display", Georgia, serif;

  --container: 1180px;
  --header-height: 82px;

  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  font-family: var(--font-main);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;

  /* Space for the fixed contact bar */
  padding-bottom: 76px;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

ul {
  list-style: none;
}

.container,
.header-container,
.footer-container,
.prefooter-container {
  width: min(92%, var(--container));
  margin-inline: auto;
}

section {
  position: relative;
}

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


/* =========================================================
   2. TYPOGRAPHY & COMMON ELEMENTS
========================================================= */

h1,
h2,
h3,
h4 {
  color: var(--navy);
  line-height: 1.25;
  font-weight: 600;
}

h1,
h2 {
  font-family: var(--font-heading);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
}

h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
}

h3 {
  font-size: 1.35rem;
}

p {
  margin-bottom: 15px;
}

.section-heading {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 48px;
}

.section-heading h2 {
  margin-bottom: 15px;
}

.section-heading p {
  color: var(--text-light);
  font-size: 1.05rem;
}

.section-eyebrow,
.eyebrow,
.hero-eyebrow {
  display: inline-block;
  color: var(--rose-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 15px;
}

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

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

.btn,
.primary-btn,
.secondary-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 14px 27px;
  border-radius: 5px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid transparent;
}

.primary-btn {
  background: var(--rose);
  color: var(--white);
}

.primary-btn:hover {
  background: var(--rose-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.secondary-btn {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}

.secondary-btn:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-3px);
}


/* =========================================================
   3. HEADER & NAVIGATION
========================================================= */

.site-header {
  width: 100%;
  min-height: var(--header-height);
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 3px 18px rgba(23, 43, 67, 0.04);
  backdrop-filter: blur(12px);
}

.header-container {
  min-height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-image {
  width: 155px;
  max-height: 65px;
  object-fit: contain;
}

.main-navigation {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
}

.nav-link {
  color: var(--navy);
  font-size: 0.87rem;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--rose-dark);
}

.nav-cta {
  background: var(--rose);
  color: var(--white);
  padding: 11px 19px;
  border-radius: 4px;
  font-size: 0.87rem;
  font-weight: 600;
  white-space: nowrap;
  transition: var(--transition);
}

.nav-cta:hover {
  background: var(--navy);
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  width: 43px;
  height: 43px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 5px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 21px;
  height: 2px;
  background: var(--navy);
  margin: 5px auto;
  transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* =========================================================
   4. HERO SECTION
========================================================= */

.hero-section {
  min-height: 620px;
  display: flex;
  align-items: center;
  position: relative;
  background:
    linear-gradient(
      90deg,
      rgba(16, 32, 51, 0.88) 0%,
      rgba(16, 32, 51, 0.66) 48%,
      rgba(16, 32, 51, 0.12) 100%
    ),
    url("images/Banner-Image.webp") center / cover no-repeat;
  padding: 90px 0;
}

.hero-content {
  width: min(92%, var(--container));
  margin: auto;
  position: relative;
  z-index: 2;
}

.hero-text {
  max-width: 650px;
  color: var(--white);
}

.hero-section h1,
.hero-section h2 {
  color: var(--white);
}

.hero-section h1 {
  margin-bottom: 22px;
}

.hero-section p {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.12rem;
  margin-bottom: 30px;
}

.hero-eyebrow {
  color: #f0c9ca;
}

.hero-buttons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-section .secondary-btn {
  border-color: rgba(255, 255, 255, 0.8);
  color: var(--white);
}

.hero-section .secondary-btn:hover {
  background: var(--white);
  color: var(--navy);
}


/* =========================================================
   5. INTRODUCTION SECTION
========================================================= */

.intro-section {
  padding: 90px 0;
  background: var(--white);
}

.intro-container {
  width: min(92%, var(--container));
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 65px;
}

.intro-image img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.intro-content h2 {
  margin-bottom: 22px;
}

.intro-content p {
  color: var(--text-light);
  margin-bottom: 18px;
}


/* =========================================================
   6. COURSE CATEGORIES
========================================================= */

.categories-section,
.category-section {
  padding: 90px 0;
  background: var(--cream);
}

.categories-grid,
.category-grid {
  width: min(92%, var(--container));
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.category-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid rgba(23, 43, 67, 0.04);
}

.category-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-hover);
}

.category-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.category-card:hover img {
  transform: scale(1.04);
}

.category-card-content {
  padding: 24px;
}

.category-card h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.category-card p {
  color: var(--text-light);
  font-size: 0.93rem;
}

.category-card a {
  color: var(--rose-dark);
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-block;
  margin-top: 8px;
}

.category-card a:hover {
  color: var(--navy);
}


/* =========================================================
   7. LEARN / WORK / EARN PILLARS
========================================================= */

.pillars-section {
  padding: 90px 0;
  background: var(--white);
}

.pillars-grid {
  width: min(92%, var(--container));
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.pillar-card {
  padding: 38px 30px;
  text-align: center;
  background: var(--cream);
  border-radius: 8px;
  border-bottom: 4px solid var(--rose);
  transition: var(--transition);
}

.pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.pillar-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--rose-light);
  color: var(--rose-dark);
  font-size: 1.8rem;
}

.pillar-card h3 {
  margin-bottom: 12px;
}

.pillar-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}


/* =========================================================
   8. WHY HIJABIAN
========================================================= */

.why-section {
  padding: 90px 0;
  background: var(--navy);
  color: var(--white);
}

.why-section h2,
.why-section h3 {
  color: var(--white);
}

.why-section .section-heading p {
  color: rgba(255, 255, 255, 0.75);
}

.why-grid {
  width: min(92%, var(--container));
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.why-card {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 7px;
  transition: var(--transition);
}

.why-card:hover {
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-5px);
}

.why-card p {
  color: rgba(255, 255, 255, 0.76);
  margin-top: 10px;
}

.why-icon {
  color: #e7b9bd;
  font-size: 1.8rem;
  margin-bottom: 15px;
}


/* =========================================================
   9. INSTRUCTOR SECTION
========================================================= */

.instructor-section {
  padding: 90px 0;
  background: var(--cream);
}

.instructor-container {
  width: min(92%, var(--container));
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.instructor-image img {
  width: 100%;
  height: 430px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.instructor-content h2 {
  margin-bottom: 20px;
}

.instructor-content p {
  color: var(--text-light);
}


/* =========================================================
   10. AFFILIATE SECTION
========================================================= */

.affiliate-section {
  padding: 90px 0;
  background: var(--rose-light);
}

.affiliate-container {
  width: min(92%, 950px);
  margin: auto;
  text-align: center;
}

.affiliate-container h2 {
  margin-bottom: 18px;
}

.affiliate-container p {
  color: var(--text);
}

.affiliate-highlight {
  background: var(--white);
  border-radius: 8px;
  padding: 28px;
  margin: 30px 0;
  box-shadow: var(--shadow);
}

.affiliate-percentage {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: var(--rose-dark);
  font-weight: 700;
  line-height: 1.2;
}

.affiliate-note {
  font-size: 0.87rem;
  color: var(--text-light);
  margin-top: 12px;
}


/* =========================================================
   11. MISSION SECTION
========================================================= */

.mission-section {
  padding: 90px 0;
  background: var(--white);
  text-align: center;
}

.mission-content {
  width: min(92%, 850px);
  margin: auto;
}

.mission-content h2 {
  margin-bottom: 20px;
}

.mission-content p {
  color: var(--text-light);
  font-size: 1.05rem;
}


/* =========================================================
   12. FINAL CTA SECTION
========================================================= */

.final-cta-section,
.final-cta {
  padding: 85px 20px;
  background:
    linear-gradient(
      rgba(23, 43, 67, 0.92),
      rgba(23, 43, 67, 0.92)
    ),
    url("images/Banner-Image.webp") center / cover no-repeat;
  text-align: center;
}

.final-cta-section h2,
.final-cta h2 {
  color: var(--white);
  margin-bottom: 15px;
}

.final-cta-section p,
.final-cta p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 650px;
  margin: 0 auto 25px;
}


/* =========================================================
   13. PRE-FOOTER
========================================================= */

.site-prefooter {
  background: var(--cream);
  padding: 65px 0 55px;
  border-top: 1px solid var(--border);
}

.prefooter-container {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: 50px;
}

.prefooter-brand h2 {
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.prefooter-brand h2 span {
  color: var(--rose-dark);
}

.prefooter-brand p,
.prefooter-social p {
  color: var(--text-light);
  font-size: 0.94rem;
}

.prefooter-website {
  display: inline-block;
  margin-top: 8px;
  color: var(--rose-dark);
  font-weight: 700;
}

.prefooter-website:hover {
  color: var(--navy);
}

.prefooter-policies h3,
.prefooter-social h3 {
  margin-bottom: 18px;
  font-size: 1.1rem;
}

.prefooter-policies a {
  display: block;
  color: var(--text-light);
  font-size: 0.92rem;
  margin-bottom: 12px;
  transition: var(--transition);
}

.prefooter-policies a:hover {
  color: var(--rose-dark);
  padding-left: 4px;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 13px;
  border: 1px solid #ded8d1;
  border-radius: 4px;
  background: var(--white);
  color: var(--navy);
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}


/* =========================================================
   14. MAIN FOOTER
========================================================= */

.site-footer {
  background: var(--navy-dark);
  color: var(--white);
  padding: 60px 0 0;
}

.site-footer h3 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 18px;
}

.site-footer p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.footer-container {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 45px;
}

.footer-logo {
  width: 155px;
  max-height: 70px;
  object-fit: contain;
  margin-bottom: 18px;
}

.footer-brand p {
  max-width: 300px;
}

.footer-tagline {
  color: #e7b9bd;
  font-weight: 700;
  letter-spacing: 1px;
  font-size: 0.9rem;
}

.footer-links a,
.footer-contact a {
  display: block;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  margin-bottom: 12px;
  transition: var(--transition);
  overflow-wrap: anywhere;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: #e7b9bd;
  padding-left: 4px;
}

.footer-bottom {
  width: min(92%, var(--container));
  margin: auto;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.82rem;
}


/* =========================================================
   15. FIXED WHATSAPP & CALL BAR
========================================================= */

.sticky-contact-bar {
  position: fixed;
  z-index: 1200;
  bottom: 0;
  left: 0;
  width: 100%;
  min-height: 70px;
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 2px;
  padding: 9px 12px;
  background: var(--white);
  box-shadow: 0 -5px 22px rgba(23, 43, 67, 0.13);
  border-top: 1px solid var(--border);
}

.sticky-contact-bar a {
  flex: 1;
  max-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 5px;
  transition: var(--transition);
}

.sticky-whatsapp-button {
  background: #16865b;
}

.sticky-whatsapp-button:hover {
  background: #116c49;
}

.sticky-call-button {
  background: var(--navy);
}

.sticky-call-button:hover {
  background: var(--navy-light);
}

.contact-button-icon {
  font-size: 1.2rem;
}


/* =========================================================
   16. FLOATING CTA BANNER
========================================================= */

.floating-cta {
  position: fixed;
  z-index: 1100;
  right: 25px;
  bottom: 94px;
  width: min(430px, calc(100% - 35px));
  padding: 23px 45px 23px 25px;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 5px solid var(--rose);
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(23, 43, 67, 0.18);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.floating-cta-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.floating-cta-label {
  display: block;
  color: var(--rose-dark);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 6px;
}

.floating-cta-text h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  margin-bottom: 5px;
}

.floating-cta-text p {
  color: var(--text-light);
  font-size: 0.87rem;
  margin: 0;
}

.floating-cta-button {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 9px;
  padding: 10px 17px;
  background: var(--rose);
  color: var(--white);
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.88rem;
  transition: var(--transition);
}

.floating-cta-button:hover {
  background: var(--navy);
  transform: translateY(-2px);
}

.floating-cta-close {
  position: absolute;
  top: 9px;
  right: 12px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: var(--cream);
  color: var(--navy);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.floating-cta-close:hover {
  background: var(--rose-light);
}

.floating-cta.cta-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(15px);
}


/* =========================================================
   17. POLICY PAGES
========================================================= */

.policy-page {
  background: var(--cream);
  padding: 75px 0 100px;
}

.policy-container {
  width: min(92%, 900px);
  margin: auto;
  background: var(--white);
  padding: clamp(25px, 5vw, 55px);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.policy-container h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 15px;
}

.policy-container h2 {
  font-family: var(--font-main);
  font-size: 1.35rem;
  margin: 32px 0 12px;
}

.policy-container p,
.policy-container li {
  color: var(--text-light);
  font-size: 0.96rem;
}

.policy-container ul,
.policy-container ol {
  padding-left: 23px;
  margin: 12px 0 20px;
}

.policy-container li {
  margin-bottom: 8px;
}

.policy-updated {
  color: var(--rose-dark);
  font-size: 0.85rem;
  margin-bottom: 30px;
}


/* =========================================================
   18. GENERAL FORMS & INPUTS
========================================================= */

input,
textarea,
select {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--white);
  color: var(--text);
  font-family: var(--font-main);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(183, 124, 130, 0.12);
}

textarea {
  resize: vertical;
  min-height: 130px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(183, 124, 130, 0.55);
  outline-offset: 3px;
}


/* =========================================================
   19. RESPONSIVE TABLET STYLES
========================================================= */

@media (max-width: 1050px) {

  .main-navigation {
    gap: 13px;
  }

  .nav-link,
  .nav-cta {
    font-size: 0.8rem;
  }

  .logo-image {
    width: 130px;
  }

  .prefooter-container {
    gap: 30px;
  }

  .footer-container {
    gap: 25px;
  }

}


/* =========================================================
   20. RESPONSIVE MOBILE NAVIGATION
========================================================= */

@media (max-width: 850px) {

  :root {
    --header-height: 72px;
  }

  .header-container {
    position: relative;
  }

  .logo-image {
    width: 135px;
    max-height: 58px;
  }

  .menu-toggle {
    display: block;
    flex-shrink: 0;
  }

  .main-navigation {
    display: none;
    position: absolute;
    top: 100%;
    left: -4.35%;
    width: 108.7%;
    padding: 18px 5% 25px;
    background: var(--white);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 15px 25px rgba(23, 43, 67, 0.1);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
  }

  .main-navigation.active {
    display: flex;
  }

  .nav-link {
    padding: 13px 5px;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
  }

  .nav-cta {
    text-align: center;
    margin-top: 15px;
    padding: 13px;
    font-size: 0.95rem;
  }

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

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

  .prefooter-container {
    grid-template-columns: 1fr 1fr;
  }

  .prefooter-brand {
    grid-column: 1 / -1;
  }

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

  .intro-container,
  .instructor-container {
    gap: 35px;
  }

}


/* =========================================================
   21. RESPONSIVE SMALL MOBILE STYLES
========================================================= */

@media (max-width: 600px) {

  body {
    padding-bottom: 68px;
  }

  .section-padding,
  .intro-section,
  .categories-section,
  .category-section,
  .pillars-section,
  .why-section,
  .instructor-section,
  .affiliate-section,
  .mission-section {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .hero-section {
    min-height: 540px;
    padding: 70px 0;
    background-position: 60% center;
  }

  .hero-section h1 {
    font-size: clamp(2.35rem, 11vw, 3.2rem);
  }

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

  .hero-buttons {
    align-items: stretch;
    flex-direction: column;
    max-width: 280px;
  }

  .hero-buttons a {
    width: 100%;
  }

  .section-heading {
    margin-bottom: 32px;
  }

  .intro-container,
  .instructor-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .intro-image img,
  .instructor-image img {
    height: 290px;
  }

  .categories-grid,
  .category-grid,
  .pillars-grid,
  .why-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .category-card img {
    height: 230px;
  }

  .pillar-card {
    padding: 30px 22px;
  }

  .prefooter-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .prefooter-brand {
    grid-column: auto;
  }

  .site-prefooter {
    padding: 50px 0 40px;
  }

  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 30px 20px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    padding: 20px 0;
  }

  .sticky-contact-bar {
    min-height: 64px;
    padding: 7px 9px;
  }

  .sticky-contact-bar a {
    font-size: 0.88rem;
    gap: 7px;
  }

  .floating-cta {
    right: 12px;
    bottom: 78px;
    width: calc(100% - 24px);
    padding: 18px 40px 18px 18px;
  }

  .floating-cta-text h3 {
    font-size: 1.2rem;
  }

  .floating-cta-text p {
    font-size: 0.82rem;
  }

  .policy-page {
    padding: 40px 0 60px;
  }

  .policy-container {
    padding: 25px 20px;
  }

}


/* =========================================================
   22. EXTRA SMALL SCREENS
========================================================= */

@media (max-width: 360px) {

  .logo-image {
    width: 115px;
  }

  .sticky-contact-bar a {
    font-size: 0.8rem;
  }

  .contact-button-icon {
    font-size: 1rem;
  }

  .footer-container {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: auto;
  }

}


/* =========================================================
   23. ACCESSIBILITY & REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

}

/* =========================================================
   HIJABIAN BRAND UPDATE
   Theme: Royal Purple + Confident Blue
   Learn. Earn. Empower.
========================================================= */

/* 1. NEW BRAND COLOURS */

:root {
  --navy: #5426A8;
  --navy-light: #7046C5;
  --navy-dark: #2B155A;

  --rose: #5426A8;
  --rose-dark: #45208F;
  --rose-light: #F0EAFE;

  --cream: #F5F2FC;
  --white: #FFFFFF;
  --off-white: #FBFAFF;

  --text: #302B3D;
  --text-light: #777186;
  --border: #E8E1F3;

  --blue: #3478E5;
  --lavender: #8056D9;

  --success: #16865B;

  --shadow: 0 12px 35px rgba(84, 38, 168, 0.09);
  --shadow-hover: 0 18px 45px rgba(84, 38, 168, 0.16);
}


/* 2. SIGNATURE GRADIENT */

.primary-btn,
.nav-cta,
.floating-cta-button {
  background: linear-gradient(110deg, #5426A8, #3478E5);
  color: #FFFFFF;
  border: none;
}

.primary-btn:hover,
.nav-cta:hover,
.floating-cta-button:hover {
  background: linear-gradient(110deg, #45208F, #2864C5);
  color: #FFFFFF;
  box-shadow: 0 8px 24px rgba(84, 38, 168, 0.22);
}

.secondary-btn {
  border-color: #5426A8;
  color: #5426A8;
}

.secondary-btn:hover {
  background: linear-gradient(110deg, #5426A8, #3478E5);
  border-color: transparent;
  color: #FFFFFF;
}


/* 3. HEADER & NAVIGATION */

.site-header {
  background: rgba(255, 255, 255, 0.97);
  border-bottom-color: #E8E1F3;
  box-shadow: 0 3px 18px rgba(84, 38, 168, 0.06);
}

.nav-link {
  color: #30234D;
}

.nav-link:hover {
  color: #3478E5;
}

.menu-toggle {
  border-color: #E1D7F2;
}

.menu-toggle span {
  background: #5426A8;
}


/* 4. HERO SECTION */

.hero-section {
  background:
    linear-gradient(
      90deg,
      rgba(43, 21, 90, 0.91) 0%,
      rgba(84, 38, 168, 0.72) 48%,
      rgba(52, 120, 229, 0.16) 100%
    ),
    url("images/Banner-Image.webp") center / cover no-repeat;
}

.hero-eyebrow {
  color: #D9C8FF;
}

.hero-section .secondary-btn {
  border-color: rgba(255, 255, 255, 0.85);
  color: #FFFFFF;
}


/* 5. SECTION BACKGROUNDS */

.categories-section,
.category-section,
.instructor-section,
.policy-page {
  background: #F5F2FC;
}

.pillars-section {
  background: #FFFFFF;
}

.pillar-card {
  background: #F8F5FF;
  border-bottom-color: #8056D9;
}

.pillar-icon {
  background: #EEE7FC;
  color: #5426A8;
}


/* 6. COURSE CARDS */

.category-card {
  border-color: #EAE3F5;
  box-shadow: 0 8px 28px rgba(84, 38, 168, 0.07);
}

.category-card:hover {
  box-shadow: 0 18px 40px rgba(84, 38, 168, 0.14);
}

.category-card a,
.text-link {
  color: #5426A8;
}

.category-card a:hover,
.text-link:hover {
  color: #3478E5;
}


/* 7. WHY HIJABIAN */

.why-section {
  background: linear-gradient(125deg, #2B155A, #5426A8 58%, #3478E5);
}

.why-icon {
  color: #D9C8FF;
}

.why-card {
  border-color: rgba(255, 255, 255, 0.2);
}


/* 8. AFFILIATE SECTION */

.affiliate-section {
  background: #F0EAFE;
}

.affiliate-highlight {
  border: 1px solid #E5D9FA;
}

.affiliate-percentage {
  color: #5426A8;
}


/* 9. FINAL CALL TO ACTION */

.final-cta-section,
.final-cta {
  background:
    linear-gradient(
      120deg,
      rgba(43, 21, 90, 0.96),
      rgba(84, 38, 168, 0.94),
      rgba(52, 120, 229, 0.90)
    ),
    url("images/Banner-Image.webp") center / cover no-repeat;
}


/* 10. PRE-FOOTER & FOOTER */

.site-prefooter {
  background: #F5F2FC;
  border-top-color: #E8E1F3;
}

.prefooter-brand h2 span,
.prefooter-website {
  color: #5426A8;
}

.prefooter-policies a:hover {
  color: #3478E5;
}

.social-links a {
  border-color: #E1D7F2;
  color: #5426A8;
}

.social-links a:hover {
  background: linear-gradient(110deg, #5426A8, #3478E5);
  border-color: transparent;
  color: #FFFFFF;
}

.site-footer {
  background: #2B155A;
}

.footer-tagline,
.footer-links a:hover,
.footer-contact a:hover {
  color: #CBB8FF;
}


/* 11. FLOATING CTA */

.floating-cta {
  border-color: #E8E1F3;
  border-left-color: #8056D9;
}

.floating-cta-label {
  color: #5426A8;
}

.floating-cta-close {
  background: #F0EAFE;
  color: #5426A8;
}

.floating-cta-close:hover {
  background: #E3D7FC;
}


/* 12. CONTACT BUTTONS */

.sticky-call-button {
  background: linear-gradient(110deg, #5426A8, #3478E5);
}

.sticky-call-button:hover {
  background: linear-gradient(110deg, #45208F, #2864C5);
}

/* Keep WhatsApp's familiar green colour */


/* 13. FORMS & ACCESSIBILITY */

input:focus,
textarea:focus,
select:focus {
  border-color: #8056D9;
  box-shadow: 0 0 0 3px rgba(128, 86, 217, 0.13);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(128, 86, 217, 0.6);
  outline-offset: 3px;
}


/* 14. SMOOTH BRAND TRANSITIONS */

.primary-btn,
.secondary-btn,
.nav-cta,
.nav-link,
.category-card,
.pillar-card,
.social-links a {
  transition: all 0.3s ease;
}
/* =========================================================
   HIJABIAN - CART & CHECKOUT
========================================================= */

.cart-hero {
  background: var(--cream);
  padding: 60px 0 40px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.cart-hero h1 {
  margin-bottom: 8px;
}

.cart-hero p {
  color: var(--text-light);
  max-width: 520px;
  margin: 0 auto;
}

.cart-layout {
  width: min(92%, var(--container));
  margin: 40px auto 80px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 36px;
  align-items: start;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.cart-item {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 18px;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  align-items: center;
}

.cart-item-image {
  width: 100px;
  height: 100px;
  border-radius: 8px;
  object-fit: cover;
}

.cart-item-info h3 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.cart-item-type {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--rose-dark);
  margin-bottom: 6px;
}

.cart-item-meta {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 8px;
}

.cart-item-price {
  font-weight: 600;
  color: var(--navy);
  font-size: 0.95rem;
}

.cart-item-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.qty-controls button {
  width: 34px;
  height: 34px;
  border: none;
  background: var(--cream);
  color: var(--navy);
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.qty-controls button:hover {
  background: var(--rose-light);
}

.qty-controls span {
  min-width: 36px;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
}

.cart-item-remove {
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 0.82rem;
  cursor: pointer;
  text-decoration: underline;
  font-family: inherit;
  padding: 0;
}

.cart-item-remove:hover {
  color: var(--rose-dark);
}

.cart-item-line-total {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--navy);
  font-weight: 600;
}

.cart-item.unavailable {
  opacity: 0.65;
  border-color: #e0a0a0;
}

.cart-item-warning {
  font-size: 0.8rem;
  color: #b33;
  margin-top: 4px;
}

.cart-summary {
  background: var(--cream);
  border-radius: 12px;
  padding: 28px 24px;
  position: sticky;
  top: 100px;
  border: 1px solid var(--border);
}

.cart-summary h2 {
  font-size: 1.3rem;
  margin-bottom: 20px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.summary-row.total {
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin-top: 8px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
}

.cart-summary .primary-btn {
  width: 100%;
  justify-content: center;
  margin-top: 18px;
}

.cart-summary .secondary-btn {
  width: 100%;
  justify-content: center;
  margin-top: 10px;
}

.cart-empty {
  width: min(92%, 560px);
  margin: 60px auto 100px;
  text-align: center;
  padding: 50px 24px;
  background: var(--cream);
  border-radius: 12px;
}

.cart-empty h2 {
  margin-bottom: 12px;
}

.cart-empty p {
  color: var(--text-light);
  margin-bottom: 24px;
}

/* Checkout form */
.checkout-section {
  width: min(92%, 640px);
  margin: 0 auto 80px;
}

.checkout-section h2 {
  margin-bottom: 8px;
}

.checkout-note {
  background: #fff8e6;
  border: 1px solid #f0d78c;
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 0.9rem;
  color: #6b5a20;
  margin-bottom: 24px;
}

.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--white);
  color: var(--text);
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #8056D9;
  box-shadow: 0 0 0 3px rgba(128, 86, 217, 0.13);
}
.form-group textarea {
  min-height: 90px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.checkout-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.checkout-actions .primary-btn {
  justify-content: center;
  width: 100%;
}

.checkout-actions .secondary-btn {
  justify-content: center;
  width: 100%;
}

/* Header cart badge */
.nav-cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--navy);
  font-size: 0.87rem;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
}

.nav-cart:hover {
  color: var(--rose-dark);
}

.cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: var(--rose);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 50px;
  line-height: 1;
}

.cart-badge:empty,
.cart-badge[data-count="0"] {
  display: none;
}

@media (max-width: 860px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }

  .cart-summary {
    position: static;
  }

  .cart-item {
    grid-template-columns: 80px 1fr;
  }

  .cart-item-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .cart-item {
    grid-template-columns: 1fr;
  }

  .cart-item-image {
    width: 100%;
    height: 160px;
  }
}
/* =========================================================
   HIJABIAN - CATALOGUE PAGES (Courses & Products)
========================================================= */

.catalogue-hero {
  background: var(--cream);
  padding: 70px 0 50px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.catalogue-hero h1 {
  margin-bottom: 12px;
}

.catalogue-hero p {
  color: var(--text-light);
  max-width: 640px;
  margin: 0 auto 20px;
  font-size: 1.05rem;
}

.live-notice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--rose-light);
  color: var(--rose-dark);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
}

.catalogue-controls {
  width: min(92%, var(--container));
  margin: 40px auto 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.search-box {
  flex: 1;
  min-width: 220px;
  max-width: 380px;
  position: relative;
}

.search-box input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--white);
  color: var(--text);
  transition: var(--transition);
}

.search-box input:focus {
  outline: none;
  border-color: #8056D9;
  box-shadow: 0 0 0 3px rgba(128, 86, 217, 0.13);
}
.search-box::before {
  content: "⌕";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 1.1rem;
  pointer-events: none;
}

.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 50px;
  background: var(--white);
  color: var(--navy);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.catalogue-grid {
  width: min(92%, var(--container));
  margin: 0 auto 60px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.catalogue-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(23, 43, 67, 0.04);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.catalogue-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.catalogue-card-image {
  position: relative;
  height: 210px;
  overflow: hidden;
}

.catalogue-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.catalogue-card:hover .catalogue-card-image img {
  transform: scale(1.05);
}

.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--navy);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 5px 10px;
  border-radius: 4px;
  text-transform: uppercase;
}

.card-badge.live {
  background: var(--rose-dark);
}

.catalogue-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.catalogue-card-body .card-category {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--rose-dark);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
}

.catalogue-card-body h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  line-height: 1.35;
}

.catalogue-card-body .card-desc {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 14px;
  flex: 1;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-bottom: 16px;
  font-size: 0.85rem;
  color: var(--text-light);
}

.card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.card-price {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--navy);
  font-weight: 600;
  margin-bottom: 16px;
}

.card-price.dual,
.modal-price.dual {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.price-current {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--navy);
  font-weight: 700;
}

.price-original {
  font-size: 0.95rem;
  color: var(--text-light);
  text-decoration: line-through;
  font-weight: 500;
}

.modal-price .price-current {
  font-size: 1.5rem;
}

.card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.card-actions .primary-btn,
.card-actions .secondary-btn {
  padding: 11px 18px;
  font-size: 0.88rem;
  flex: 1;
  min-width: 120px;
  text-align: center;
  justify-content: center;
}

.empty-state {
  width: min(92%, var(--container));
  margin: 40px auto 80px;
  text-align: center;
  padding: 50px 20px;
  background: var(--cream);
  border-radius: 10px;
}

.empty-state h3 {
  margin-bottom: 10px;
}

.empty-state p {
  color: var(--text-light);
}

/* Modal */
.catalogue-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(16, 32, 51, 0.55);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.catalogue-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.catalogue-modal {
  background: var(--white);
  border-radius: 12px;
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.25s ease;
  box-shadow: 0 25px 60px rgba(16, 32, 51, 0.25);
}

.catalogue-modal-overlay.active .catalogue-modal {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: none;
  background: var(--cream);
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--rose-light);
  color: var(--rose-dark);
}

.modal-image {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
}

.modal-body {
  padding: 28px 30px 32px;
}

.modal-body .card-category {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--rose-dark);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
}

.modal-body h2 {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.modal-price {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--navy);
  margin-bottom: 16px;
}

.modal-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
  margin-bottom: 20px;
  padding: 16px;
  background: var(--cream);
  border-radius: 8px;
  font-size: 0.9rem;
}

.modal-meta strong {
  color: var(--navy);
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.modal-description {
  color: var(--text);
  margin-bottom: 20px;
  white-space: pre-line;
}

.modal-section-title {
  font-size: 1rem;
  color: var(--navy);
  margin: 18px 0 8px;
}

.modal-list {
  padding-left: 18px;
  margin-bottom: 12px;
  color: var(--text-light);
  font-size: 0.92rem;
}

.modal-list li {
  margin-bottom: 6px;
  list-style: disc;
}

.variant-selector {
  margin: 16px 0;
}

.variant-selector label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.variant-selector select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--white);
}

.modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.modal-actions .primary-btn {
  flex: 1;
  min-width: 160px;
  justify-content: center;
}

.toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--navy);
  color: var(--white);
  padding: 14px 24px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  z-index: 3000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(16, 32, 51, 0.3);
}

.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.loading-state {
  width: min(92%, var(--container));
  margin: 60px auto;
  text-align: center;
  color: var(--text-light);
}

/* Responsive */
@media (max-width: 980px) {
  .catalogue-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .modal-meta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .catalogue-grid {
    grid-template-columns: 1fr;
  }

  .catalogue-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .search-box {
    max-width: none;
  }

  .catalogue-hero {
    padding: 50px 0 35px;
  }

  .modal-body {
    padding: 22px 18px 26px;
  }

  .modal-image {
    height: 200px;
  }
}

/* =========================================================
   HIJABIAN - WORK WITH US PAGE
   Responsive layout and application form styling
   ========================================================= */

/* Page safety and layout */
.work-with-us-page {
  overflow-x: hidden;
}

.work-with-us-page *,
.work-with-us-page *::before,
.work-with-us-page *::after {
  box-sizing: border-box;
}

.work-with-us-page img {
  max-width: 100%;
  display: block;
}

.work-with-us-page .section-padding {
  padding: 70px 0;
}

.work-with-us-page .section-heading {
  width: min(92%, 760px);
  margin: 0 auto 38px;
  text-align: center;
}

.work-with-us-page .section-heading h2 {
  margin-bottom: 14px;
}

.work-with-us-page .section-heading p {
  color: var(--text-light, #626b75);
  line-height: 1.7;
}

/* =========================================================
   HERO
   ========================================================= */

.work-with-us-page .work-hero {
  background: var(--cream, #f8f4ef);
  padding: 75px 20px 70px;
  text-align: center;
  border-bottom: 1px solid var(--border, #e8e1dc);
}

.work-with-us-page .work-hero .container {
  max-width: 850px;
  margin: 0 auto;
}

.work-with-us-page .work-hero h1 {
  margin-bottom: 12px;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.15;
}

.work-with-us-page .work-hero-sub {
  font-family: var(--font-heading, Georgia, serif);
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  color: var(--rose-dark, #9c626d);
  margin-bottom: 22px;
  font-weight: 600;
}

.work-with-us-page .work-hero-lead {
  max-width: 740px;
  margin: 0 auto 15px;
  color: var(--text-light, #626b75);
  font-size: 1rem;
  line-height: 1.8;
}

.work-with-us-page .work-hero .primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
}

/* =========================================================
   OPPORTUNITY CARDS
   Desktop: image left, text right
   Mobile: image above text
   ========================================================= */

.work-with-us-page .opportunity-grid {
  width: min(94%, var(--container, 1150px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.work-with-us-page .opportunity-card {
  display: grid;
  grid-template-columns: minmax(220px, 30%) minmax(0, 1fr);
  align-items: stretch;
  background: var(--white, #fff);
  border: 1px solid var(--border, #e8e1dc);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow, 0 4px 18px rgba(0,0,0,.06));
  transition: transform .25s ease, box-shadow .25s ease;
}

.work-with-us-page .opportunity-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover, 0 10px 28px rgba(0,0,0,.10));
}

.work-with-us-page .opportunity-card-image {
  min-width: 0;
  min-height: 100%;
  overflow: hidden;
  background: var(--cream, #f8f4ef);
}

.work-with-us-page .opportunity-card-image img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  max-height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .4s ease;
}

.work-with-us-page .opportunity-card:hover .opportunity-card-image img {
  transform: scale(1.035);
}

.work-with-us-page .opportunity-card-body {
  min-width: 0;
  padding: 27px 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.work-with-us-page .opportunity-card-body h3 {
  color: var(--navy, #172b43);
  font-size: 1.35rem;
  line-height: 1.35;
  margin: 0 0 13px;
}

.work-with-us-page .opportunity-card-body p {
  color: var(--text-light, #626b75);
  font-size: .96rem;
  line-height: 1.7;
  margin: 0 0 12px;
}

.work-with-us-page .opportunity-card-body .opp-label {
  font-weight: 700;
  color: var(--navy, #172b43);
  margin: 7px 0 6px;
}

.work-with-us-page .opportunity-card-body ul {
  margin: 0 0 14px 20px;
  padding: 0;
  list-style: disc;
  color: var(--text-light, #626b75);
  font-size: .94rem;
  line-height: 1.65;
}

.work-with-us-page .opportunity-card-body ul li {
  margin-bottom: 3px;
  padding-left: 2px;
}

.work-with-us-page .opportunity-card-body .opp-closing {
  color: var(--text, #333);
  font-size: .92rem;
  line-height: 1.65;
  margin-top: auto;
  margin-bottom: 18px;
}

.work-with-us-page .opportunity-card-body .primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  margin-top: 5px;
  max-width: 100%;
  white-space: normal;
  text-align: center;
}

/* =========================================================
   WHO CAN APPLY
   ========================================================= */

.work-with-us-page .work-who {
  background: var(--cream, #f8f4ef);
}

.work-with-us-page .who-grid {
  width: min(92%, var(--container, 1150px));
  margin: 0 auto 28px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.work-with-us-page .who-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  padding: 18px;
  background: var(--white, #fff);
  border-radius: 9px;
  border: 1px solid var(--border, #e8e1dc);
  text-align: center;
  font-weight: 600;
  color: var(--navy, #172b43);
  font-size: .94rem;
  line-height: 1.5;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.work-with-us-page .who-item:hover {
  border-color: var(--rose, #c18b91);
  box-shadow: var(--shadow, 0 4px 18px rgba(0,0,0,.06));
}

.work-with-us-page .who-closing {
  max-width: 720px;
  width: 92%;
  margin: 0 auto;
  text-align: center;
  color: var(--text-light, #626b75);
  line-height: 1.7;
}

/* =========================================================
   HOW IT WORKS
   ========================================================= */

.work-with-us-page .process-grid {
  width: min(94%, var(--container, 1150px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.work-with-us-page .process-step {
  min-width: 0;
  text-align: center;
  padding: 28px 20px;
  background: var(--cream, #f8f4ef);
  border-radius: 11px;
  border-bottom: 4px solid var(--rose, #c18b91);
}

.work-with-us-page .process-number {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  background: var(--rose, #c18b91);
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 14px;
}

.work-with-us-page .process-step h3 {
  font-size: 1.08rem;
  line-height: 1.4;
  margin: 0 0 10px;
  color: var(--navy, #172b43);
}

.work-with-us-page .process-step p {
  color: var(--text-light, #626b75);
  font-size: .93rem;
  line-height: 1.65;
  margin: 0;
}

/* =========================================================
   APPLICATION FORM INTRO
   ========================================================= */

.work-with-us-page .work-form-section {
  background: var(--white, #fff);
  scroll-margin-top: 30px;
}

.work-with-us-page .form-disclaimer {
  font-size: .92rem;
  color: var(--rose-dark, #9c626d);
  font-weight: 600;
  line-height: 1.6;
  max-width: 680px;
  margin: 12px auto 0;
}

/* =========================================================
   APPLICATION FORM CONTAINER
   ========================================================= */

.work-with-us-page .application-form {
  width: min(94%, 920px);
  margin: 35px auto 0;
  padding: 34px;
  background: var(--cream, #f8f4ef);
  border: 1px solid var(--border, #e8e1dc);
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(23, 43, 67, .06);
}

.work-with-us-page .form-section {
  min-width: 0;
  border: 1px solid var(--border, #e8e1dc);
  border-radius: 10px;
  background: var(--white, #fff);
  margin: 0 0 22px;
  padding: 22px;
}

.work-with-us-page .form-section legend {
  float: none;
  width: auto;
  max-width: 100%;
  padding: 0 9px;
  margin-left: 5px;
  font-family: var(--font-heading, Georgia, serif);
  font-size: 1.2rem;
  line-height: 1.4;
  color: var(--navy, #172b43);
  font-weight: 600;
}

.work-with-us-page .application-field {
  min-width: 0;
  margin-bottom: 17px;
}

.work-with-us-page .application-field:last-child {
  margin-bottom: 0;
}

.work-with-us-page .application-field label {
  display: block;
  font-size: .91rem;
  line-height: 1.5;
  font-weight: 600;
  color: var(--navy, #172b43);
  margin-bottom: 7px;
}

.work-with-us-page .application-field .required {
  color: #b04454;
  font-weight: 700;
}

.work-with-us-page .application-field .optional {
  font-weight: 400;
  color: var(--text-light, #626b75);
  font-size: .84rem;
}

.work-with-us-page .application-field input,
.work-with-us-page .application-field select,
.work-with-us-page .application-field textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid #d9d5d2;
  border-radius: 7px;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.5;
  background: #fff;
  color: var(--text, #333);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.work-with-us-page .application-field input:focus,
.work-with-us-page .application-field select:focus,
.work-with-us-page .application-field textarea:focus {
  outline: none;
  border-color: var(--rose, #c18b91);
box-shadow: 0 0 0 3px rgba(128, 86, 217, .13);
}

.work-with-us-page .application-field input::placeholder,
.work-with-us-page .application-field textarea::placeholder {
  color: #969696;
  opacity: 1;
}

.work-with-us-page .application-field textarea {
  resize: vertical;
  min-height: 105px;
}

.work-with-us-page .application-field select {
  cursor: pointer;
}

.work-with-us-page .form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.work-with-us-page .form-row .application-field {
  min-width: 0;
}

/* =========================================================
   OPPORTUNITY CHECKBOXES
   ========================================================= */

.work-with-us-page .checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.work-with-us-page .checkbox-grid .check-label {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 52px;
  padding: 12px 14px;
  gap: 11px;
  background: var(--cream, #f8f4ef);
  border: 1px solid var(--border, #e8e1dc);
  border-radius: 8px;
  font-size: .93rem;
  line-height: 1.45;
  color: var(--text, #333);
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}

.work-with-us-page .checkbox-grid .check-label:hover {
  border-color: var(--rose, #c18b91);
}

.work-with-us-page .checkbox-grid .check-label:has(input:checked) {
  background: #F0EAFE;
  border-color: #8056D9;
}

.work-with-us-page .check-label input {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--rose, #c18b91);
  cursor: pointer;
}

.work-with-us-page .field-hint {
  font-size: .88rem;
  color: var(--text-light, #626b75);
  line-height: 1.6;
  margin: 0 0 13px;
}

.work-with-us-page .field-error {
  color: #b42318;
  font-size: .88rem;
  line-height: 1.5;
  margin: 8px 0 0;
}

.work-with-us-page .hp-field {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  height: 0 !important;
  width: 0 !important;
  pointer-events: none !important;
}

/* Conditional form areas */
.work-with-us-page .conditional-fields {
  min-width: 0;
}

.work-with-us-page .conditional-block {
  border-left: 4px solid var(--rose, #c18b91);
  background: #fff;
}

.work-with-us-page .conditional-block[hidden] {
  display: none !important;
}

/* Consent */
.work-with-us-page .consent-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--cream, #f8f4ef);
  padding: 17px;
  border-radius: 8px;
  border: 1px solid var(--border, #e8e1dc);
  font-size: .91rem;
  line-height: 1.7;
  color: var(--text, #333);
  cursor: pointer;
}

.work-with-us-page .consent-label input {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin: 4px 0 0;
  accent-color: var(--rose, #c18b91);
}

.work-with-us-page .consent-label a {
  color: var(--rose-dark, #9c626d);
  font-weight: 700;
  text-decoration: underline;
}

/* Form buttons */
.work-with-us-page .form-actions {
  display: flex;
  justify-content: center;
  margin-top: 25px;
}

.work-with-us-page .form-actions .primary-btn {
  min-width: 230px;
  min-height: 48px;
  cursor: pointer;
}

.work-with-us-page .form-actions .primary-btn:disabled {
  opacity: .65;
  cursor: wait;
}

/* Form status messages */
.work-with-us-page .form-status {
  margin: 18px 0;
  padding: 15px 18px;
  border-radius: 8px;
  font-size: .95rem;
  line-height: 1.6;
  font-weight: 600;
}

.work-with-us-page .form-status.success {
  background: #e8f6ef;
  color: #17643a;
  border: 1px solid #b8e0c8;
}

.work-with-us-page .form-status.error {
  background: #fdecea;
  color: #b42318;
  border: 1px solid #f5c2c0;
}

.work-with-us-page .form-status.loading {
  background: #F0EAFE;
  color: #5426A8;
  border: 1px solid #E8E1F3;
}
/* =========================================================
   FAQ
   ========================================================= */

.work-with-us-page .work-faq {
  background: var(--cream, #f8f4ef);
}

.work-with-us-page .faq-list {
  width: min(94%, 800px);
  margin: 0 auto;
}

.work-with-us-page .faq-item {
  background: var(--white, #fff);
  border: 1px solid var(--border, #e8e1dc);
  border-radius: 9px;
  margin-bottom: 12px;
  overflow: hidden;
}

.work-with-us-page .faq-item summary {
  padding: 17px 48px 17px 20px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--navy, #172b43);
  cursor: pointer;
  list-style: none;
  position: relative;
}

.work-with-us-page .faq-item summary::-webkit-details-marker {
  display: none;
}

.work-with-us-page .faq-item summary::after {
  content: "+";
  position: absolute;
  right: 19px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--rose-dark, #9c626d);
  font-weight: 400;
}

.work-with-us-page .faq-item[open] summary::after {
  content: "−";
}

.work-with-us-page .faq-answer {
  padding: 0 20px 18px;
  color: var(--text-light, #626b75);
  font-size: .95rem;
  line-height: 1.7;
}

/* =========================================================
   FINAL CTA
   ========================================================= */

.work-with-us-page .work-final-cta {
  padding: 75px 20px;
  background:
    linear-gradient(
      120deg,
      rgba(43, 21, 90, .96),
      rgba(84, 38, 168, .94),
      rgba(52, 120, 229, .90)
    ),
    url("images/Banner-Image.webp") center / cover no-repeat;
  text-align: center;
  color: #fff;
}

.work-with-us-page .work-final-cta .container {
  max-width: 780px;
  margin: 0 auto;
}

.work-with-us-page .work-final-cta h2 {
  color: #fff;
  margin-bottom: 14px;
}

.work-with-us-page .work-final-cta p {
  color: rgba(255, 255, 255, .88);
  max-width: 650px;
  margin: 0 auto 12px;
  line-height: 1.7;
}

.work-with-us-page .work-final-cta .primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 950px) {
  .work-with-us-page .who-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .work-with-us-page .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .work-with-us-page .opportunity-card {
    grid-template-columns: minmax(190px, 29%) minmax(0, 1fr);
  }

  .work-with-us-page .opportunity-card-body {
    padding: 23px;
  }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 650px) {
  .work-with-us-page .section-padding {
    padding: 48px 0;
  }

  .work-with-us-page .section-heading {
    margin-bottom: 27px;
  }

  .work-with-us-page .work-hero {
    padding: 52px 18px 48px;
  }

  .work-with-us-page .work-hero h1 {
    font-size: 2.2rem;
  }

  .work-with-us-page .work-hero-lead {
    font-size: .96rem;
    line-height: 1.7;
  }

  /* Cards become image above text */
  .work-with-us-page .opportunity-grid {
    width: min(92%, 500px);
    gap: 20px;
  }

  .work-with-us-page .opportunity-card {
    display: flex;
    flex-direction: column;
  }

  .work-with-us-page .opportunity-card-image {
    width: 100%;
    height: 190px;
    min-height: 0;
  }

  .work-with-us-page .opportunity-card-image img {
    width: 100%;
    height: 190px;
    min-height: 0;
    object-fit: cover;
  }

  .work-with-us-page .opportunity-card-body {
    padding: 22px 20px 24px;
  }

  .work-with-us-page .opportunity-card-body h3 {
    font-size: 1.2rem;
  }

  .work-with-us-page .opportunity-card-body .primary-btn {
    width: 100%;
    justify-content: center;
  }

  .work-with-us-page .who-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .work-with-us-page .who-item {
    min-height: 82px;
    padding: 13px 10px;
    font-size: .87rem;
  }

  .work-with-us-page .process-grid {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .work-with-us-page .process-step {
    padding: 22px 18px;
  }

  /* Form mobile layout */
  .work-with-us-page .application-form {
    width: 94%;
    margin-top: 25px;
    padding: 16px 12px 22px;
    border-radius: 10px;
  }

  .work-with-us-page .form-section {
    padding: 17px 13px;
    margin-bottom: 15px;
  }

  .work-with-us-page .form-section legend {
    font-size: 1.08rem;
  }

  .work-with-us-page .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .work-with-us-page .checkbox-grid {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .work-with-us-page .checkbox-grid .check-label {
    min-height: 48px;
    padding: 11px 12px;
  }

  .work-with-us-page .application-field {
    margin-bottom: 15px;
  }

  .work-with-us-page .application-field input,
  .work-with-us-page .application-field select,
  .work-with-us-page .application-field textarea {
    font-size: 16px;
    padding: 12px;
  }

  .work-with-us-page .application-field textarea {
    min-height: 95px;
  }

  .work-with-us-page .consent-label {
    padding: 13px;
    font-size: .87rem;
  }

  .work-with-us-page .form-actions .primary-btn {
    width: 100%;
    min-width: 0;
  }

  .work-with-us-page .faq-list {
    width: 92%;
  }

  .work-with-us-page .faq-item summary {
    padding: 15px 42px 15px 15px;
    font-size: .94rem;
  }

  .work-with-us-page .faq-answer {
    padding: 0 15px 15px;
    font-size: .91rem;
  }

  .work-with-us-page .work-final-cta {
    padding: 52px 18px;
  }

  .work-with-us-page .work-final-cta h2 {
    font-size: 1.8rem;
  }

  .work-with-us-page .work-final-cta .primary-btn {
    width: 100%;
  }
}

/* Very small phones */
@media (max-width: 380px) {
  .work-with-us-page .who-grid {
    grid-template-columns: 1fr;
  }

  .work-with-us-page .application-form {
    width: 96%;
    padding: 12px 9px 18px;
  }

  .work-with-us-page .form-section {
    padding: 15px 10px;
  }

  .work-with-us-page .opportunity-card-body {
    padding: 19px 16px;
  }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .work-with-us-page *,
  .work-with-us-page *::before,
  .work-with-us-page *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
