/*-----------------------------------------------------------------------------------

  Zovencia Pvt. Ltd. — Courses Page
  Loaded after zovencia-motion.css, on courses.html only. Every selector in
  this file is scoped to that page's own classes, so nothing here can affect
  any other page.

  Reused from the shared layers rather than reinvented:
    - --z-* colour tokens and gradients (zovencia-brand.css)
    - --z-ease / --z-dur timing tokens (zovencia-motion.css)
    - .rr-btn (style.css + brand + motion) for every button on this page
    - .page-title-area (style.css) as the hero's outer shell, so it inherits
      the same aurora glow (::after) and top spacing as every other page
    - .z-reveal / .z-reveal-scale / .z-in scroll-reveal system
      (zovencia-motion.js) for the card grids — see the two new entries added
      to REVEAL_GROUPS there for .course-card and .benefit-card

  Equal-card contract
    Course and benefit cards never resize with their content. Icon size,
    title space and description space are all reserved with min-height, and
    the CTA is pinned to the bottom of the card via margin-top:auto, so every
    card in a row shares the same height regardless of copy length.

------------------------------------------------------------------------------------

/************ TABLE OF CONTENTS ***************
01. hero
02. courses grid
03. course card
04. why zovencia grid
05. benefit card
06. enrollment section
07. enrollment form
08. reduced motion
**********************************************/


/*----------------------------------------*/
/* 01. hero */
/*----------------------------------------*/


/* .page-title-area is the shared page-opening shell (spacing + the aurora
   ::after glow already defined in zovencia-motion.css). .courses-hero-area is
   an additive modifier scoped to this page only — it does not change how
   .page-title-area behaves anywhere else. */

.courses-hero-area {
    text-align: center;
    overflow: hidden;
}

.courses-hero-area .page-title-wrapper {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.courses-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 100px;
    border: 1px solid var(--z-green-dark-soft);
    background: var(--z-green-soft);
    color: var(--z-green-readable);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.courses-hero-eyebrow i {
    color: var(--z-green);
    font-size: 12px;
}

.courses-hero-title {
    font-size: 84px;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin: 0;
    max-width: 100%;
    overflow-wrap: break-word;
}

@media only screen and (max-width: 1919px) {
    .courses-hero-title {
        font-size: 68px;
    }
}

@media only screen and (max-width: 1399px) {
    .courses-hero-title {
        font-size: 52px;
    }
}

@media only screen and (max-width: 991px) {
    .courses-hero-title {
        font-size: 40px;
    }
}

@media only screen and (max-width: 575px) {
    .courses-hero-title {
        font-size: 30px;
    }
}

@media only screen and (max-width: 400px) {
    .courses-hero-title {
        font-size: 26px;
    }
}

.courses-hero-subtitle {
    font-size: 19px;
    line-height: 1.65;
    color: var(--secondary);
    max-width: 700px;
    margin: 28px auto 0;
}

@media only screen and (max-width: 767px) {
    .courses-hero-subtitle {
        font-size: 16px;
        margin-top: 18px;
    }
}

.courses-hero-cta {
    margin-top: 44px;
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

.courses-hero-cta .rr-btn i {
    margin-inline-start: 10px;
    transition: transform 0.4s var(--z-ease);
}

.courses-hero-cta .rr-btn:hover i {
    transform: translate3d(4px, 3px, 0);
}

.courses-hero-stats {
    margin-top: 56px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 48px;
    flex-wrap: wrap;
    max-width: 100%;
}

.courses-hero-stats .stat {
    text-align: center;
}

.courses-hero-stats .stat strong {
    display: block;
    font-size: 34px;
    font-weight: 700;
    background-image: var(--z-grad-heading);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.courses-hero-stats .stat span {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

@media only screen and (max-width: 575px) {
    .courses-hero-stats {
        gap: 24px 30px;
    }
}

/* below this, three side-by-side stats can't fit without crowding --
   stack them so nothing ever has to squeeze against the viewport edge */
@media only screen and (max-width: 430px) {
    .courses-hero-stats {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
}


/* a second, quieter glow layer behind the hero content, on top of the shared
   .page-title-area::after aurora, so the hero reads richer without touching
   the shared rule other pages rely on */

.courses-hero-area::before {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
    left: 50%;
    top: 30%;
    width: 46vw;
    height: 46vw;
    max-width: 560px;
    max-height: 560px;
    transform: translate(-50%, -50%);
    background: radial-gradient(closest-side,
            rgba(10, 234, 10, 0.08) 0%,
            rgba(2, 53, 6, 0.03) 60%,
            rgba(10, 234, 10, 0) 100%);
    border-radius: 50%;
}


/*----------------------------------------*/
/* 02. courses grid */
/*----------------------------------------*/

.courses-area {
    position: relative;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 34px;
    margin-top: 64px;
}

@media only screen and (max-width: 1399px) {
    .courses-grid {
        gap: 28px;
    }
}

@media only screen and (max-width: 991px) {
    .courses-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
        margin-top: 44px;
    }
}

@media only screen and (max-width: 575px) {
    .courses-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
    }
}


/*----------------------------------------*/
/* 03. course card */
/*----------------------------------------*/

.course-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
    padding: 40px 32px 32px;
    background: var(--z-white);
    border: 1px solid var(--z-green-dark-soft);
    border-radius: 20px;
    box-shadow: 0 4px 18px -10px rgba(2, 53, 6, 0.16);
    overflow: hidden;
    transition:
        transform var(--z-dur-slow) var(--z-ease),
        box-shadow var(--z-dur-slow) var(--z-ease),
        border-color var(--z-dur) var(--z-ease);
}

@media only screen and (max-width: 575px) {
    .course-card {
        padding: 32px 26px 26px;
    }
}

/* soft shine sweep, purely decorative, sits above the card surface */

.course-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(115deg,
            rgba(255, 255, 255, 0) 40%,
            rgba(10, 234, 10, 0.10) 50%,
            rgba(255, 255, 255, 0) 60%);
    background-size: 240% 240%;
    background-position: 120% 0%;
    opacity: 0;
    transition: opacity 0.4s var(--z-ease), background-position 0.9s var(--z-ease);
}

.course-card:hover,
.course-card:focus-within {
    transform: translate3d(0, -8px, 0);
    border-color: var(--z-green);
    box-shadow:
        0 26px 54px -24px rgba(2, 53, 6, 0.38),
        0 0 0 1px rgba(10, 234, 10, 0.14),
        0 0 46px -14px var(--z-green-glow);
}

.course-card:hover::after,
.course-card:focus-within::after {
    opacity: 1;
    background-position: -20% 0%;
}

.course-card__icon {
    width: 64px;
    height: 64px;
    min-height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: var(--z-grad-accent);
    color: var(--z-black);
    font-size: 26px;
    margin-bottom: 24px;
    transition: transform var(--z-dur) var(--z-ease);
}

.course-card:hover .course-card__icon {
    transform: scale(1.08) rotate(-4deg);
}

.course-card__title {
    font-size: 22px;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--z-black);
    margin: 0 0 12px;
    min-height: 2.6em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-card__desc {
    font-size: 15px;
    line-height: 1.65;
    color: var(--secondary);
    margin: 0 0 26px;
    /* reserved for the longest of the nine descriptions so every card's
       description block occupies the same space -- verified against actual
       rendered copy, not guessed */
    min-height: 6.6em;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-card__meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding: 18px 0;
    margin-top: auto;
    border-top: 1px solid var(--z-green-dark-soft);
    border-bottom: 1px solid var(--z-green-dark-soft);
}

.course-card__meta div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.course-card__meta .label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--z-green-readable);
}

.course-card__meta .value {
    font-size: 16px;
    font-weight: 600;
    color: var(--z-black);
}

.course-card__cta {
    margin-top: 22px;
    width: 100%;
    justify-content: center;
    text-transform: uppercase;
    font-size: 15px;
    letter-spacing: 0.03em;
    padding-top: 20px;
    padding-bottom: 20px;
}


/*----------------------------------------*/
/* 04. why zovencia grid */
/*----------------------------------------*/

.why-zovencia-area {
    position: relative;
    background-color: #FAFCFA;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    margin-top: 56px;
}

@media only screen and (max-width: 991px) {
    .benefits-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 40px;
    }
}

@media only screen and (max-width: 575px) {
    .benefits-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}


/*----------------------------------------*/
/* 05. benefit card */
/*----------------------------------------*/

.benefit-card {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    height: 100%;
    min-width: 0;
    padding: 28px;
    background: var(--z-white);
    border: 1px solid var(--z-green-dark-soft);
    border-radius: 16px;
    transition:
        transform var(--z-dur-slow) var(--z-ease),
        box-shadow var(--z-dur-slow) var(--z-ease),
        border-color var(--z-dur) var(--z-ease);
}

.benefit-card:hover,
.benefit-card:focus-within {
    transform: translate3d(0, -5px, 0);
    border-color: var(--z-green);
    box-shadow: 0 18px 40px -22px rgba(2, 53, 6, 0.32), 0 0 32px -14px var(--z-green-glow);
}

.benefit-card__icon {
    flex: none;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--z-green-dark-soft);
    color: var(--z-green-readable);
    font-size: 18px;
    transition:
        background-color var(--z-dur) var(--z-ease),
        color var(--z-dur) var(--z-ease),
        border-color var(--z-dur) var(--z-ease),
        transform var(--z-dur) var(--z-ease);
}

.benefit-card:hover .benefit-card__icon {
    background: var(--z-green);
    border-color: var(--z-green);
    color: var(--z-black);
    transform: scale(1.08);
}

.benefit-card__body {
    min-width: 0;
}

.benefit-card__title {
    font-size: 17px;
    font-weight: 600;
    color: var(--z-black);
    margin: 0 0 6px;
}

.benefit-card__text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--secondary);
    margin: 0;
}


/*----------------------------------------*/
/* 06. enrollment section */
/*----------------------------------------*/

.enroll-area {
    position: relative;
    overflow: hidden;
}

.enroll-area::before {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
    left: 50%;
    bottom: -10%;
    width: 60vw;
    height: 60vw;
    max-width: 760px;
    max-height: 760px;
    transform: translateX(-50%);
    background: radial-gradient(closest-side,
            rgba(10, 234, 10, 0.09) 0%,
            rgba(2, 53, 6, 0.035) 60%,
            rgba(10, 234, 10, 0) 100%);
    border-radius: 50%;
}

.enroll-card {
    position: relative;
    max-width: 900px;
    margin: 56px auto 0;
    padding: 56px;
    border-radius: 28px;
    border: 1px solid rgba(10, 234, 10, 0.22);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.78) 0%, rgba(240, 250, 241, 0.62) 100%);
    -webkit-backdrop-filter: blur(22px) saturate(140%);
    backdrop-filter: blur(22px) saturate(140%);
    box-shadow:
        0 40px 90px -40px rgba(2, 53, 6, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.4) inset;
}

@media only screen and (max-width: 767px) {
    .enroll-card {
        padding: 34px 24px;
        border-radius: 22px;
        margin-top: 40px;
    }
}


/*----------------------------------------*/
/* 07. enrollment form */
/*----------------------------------------*/

.enroll-form__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px 24px;
}

@media only screen and (max-width: 575px) {
    .enroll-form__grid {
        grid-template-columns: 1fr;
    }
}

.enroll-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.enroll-field.full {
    grid-column: 1 / -1;
}

.enroll-field label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--z-black);
}

.enroll-field label .req {
    color: var(--z-green-readable);
    margin-inline-start: 2px;
}

.enroll-field input[type="text"],
.enroll-field input[type="email"],
.enroll-field input[type="tel"],
.enroll-field select,
.enroll-field textarea {
    width: 100%;
    padding: 15px 18px;
    font-size: 15px;
    font-family: inherit;
    color: var(--z-black);
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid var(--z-green-dark-soft);
    border-radius: 12px;
    outline: none;
    transition:
        border-color 0.32s var(--z-ease),
        box-shadow 0.32s var(--z-ease),
        background-color 0.32s var(--z-ease);
}

.enroll-field textarea {
    resize: vertical;
    min-height: 110px;
}

.enroll-field input::placeholder,
.enroll-field textarea::placeholder {
    color: rgba(2, 53, 6, 0.4);
}

.enroll-field input:focus,
.enroll-field select:focus,
.enroll-field textarea:focus {
    border-color: var(--z-green);
    background-color: var(--z-white);
    box-shadow: 0 0 0 4px var(--z-green-soft);
}

.enroll-field select {
    appearance: none;
    -webkit-appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--z-green-readable) 50%),
        linear-gradient(135deg, var(--z-green-readable) 50%, transparent 50%);
    background-position: calc(100% - 22px) center, calc(100% - 17px) center;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    cursor: pointer;
}

.enroll-field select.js-selected {
    border-color: var(--z-green);
    box-shadow: 0 0 0 4px var(--z-green-soft);
}


/* preferred learning mode -- pill toggle built on plain radios */

.enroll-mode {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.enroll-mode input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.enroll-mode label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 100px;
    border: 1px solid var(--z-green-dark-soft);
    background: rgba(255, 255, 255, 0.6);
    color: var(--z-black);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition:
        border-color 0.3s var(--z-ease),
        background-color 0.3s var(--z-ease),
        color 0.3s var(--z-ease),
        box-shadow 0.3s var(--z-ease);
}

.enroll-mode label i {
    font-size: 12px;
    color: var(--z-green-readable);
    transition: color 0.3s var(--z-ease);
}

.enroll-mode input[type="radio"]:checked+label {
    border-color: var(--z-green);
    background: var(--z-green);
    color: var(--z-black);
    box-shadow: 0 8px 20px -10px var(--z-green-glow);
}

.enroll-mode input[type="radio"]:checked+label i {
    color: var(--z-black);
}

.enroll-mode input[type="radio"]:focus-visible+label {
    outline: 2px solid var(--z-green);
    outline-offset: 2px;
}

.enroll-form__submit {
    margin-top: 32px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.enroll-form__submit .rr-btn {
    padding-left: 48px;
    padding-right: 48px;
}

.enroll-form__note {
    font-size: 13px;
    color: var(--secondary);
}

.enroll-response {
    margin-top: 20px;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 14px;
    display: none;
}

.enroll-response.is-success {
    display: block;
    background: var(--z-green-soft);
    border: 1px solid rgba(10, 234, 10, 0.35);
    color: var(--z-green-readable);
}

.enroll-response.is-error {
    display: block;
    background: rgba(220, 38, 38, 0.08);
    border: 1px solid rgba(220, 38, 38, 0.28);
    color: #b91c1c;
}


/*----------------------------------------*/
/* 08. reduced motion */
/*----------------------------------------*/

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

    .course-card,
    .benefit-card,
    .course-card__icon,
    .benefit-card__icon,
    .course-card::after {
        transition-duration: 0.01ms;
    }

    .course-card:hover,
    .course-card:focus-within,
    .benefit-card:hover,
    .benefit-card:focus-within {
        transform: none;
    }

    .course-card:hover .course-card__icon,
    .benefit-card:hover .benefit-card__icon {
        transform: none;
    }
}
