about, bootcamps, certificate, course page, interview
This commit is contained in:
@@ -0,0 +1,625 @@
|
||||
/* ==========================================================================
|
||||
COURSE DETAILS
|
||||
Used by course-details.php. Every rule is scoped to .course-details.
|
||||
========================================================================== */
|
||||
|
||||
.course-details {
|
||||
background-color: #0D0D0D;
|
||||
}
|
||||
|
||||
.course-details .section {
|
||||
padding-block: 64px;
|
||||
}
|
||||
|
||||
.course-details .section__head {
|
||||
max-width: none;
|
||||
margin-bottom: 32px;
|
||||
}
|
||||
|
||||
.course-details .eyebrow {
|
||||
gap: 8px;
|
||||
margin-bottom: 0;
|
||||
color: var(--white);
|
||||
font-family: 'Roboto', sans-serif;
|
||||
font-size: 10px;
|
||||
font-weight: 500;
|
||||
line-height: 1.4;
|
||||
letter-spacing: 0.15em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.course-details .eyebrow::before {
|
||||
width: 14px;
|
||||
height: 2px;
|
||||
border-radius: 0;
|
||||
background: var(--white);
|
||||
}
|
||||
|
||||
.course-details .section__title {
|
||||
margin: 14px 0 0;
|
||||
color: var(--white);
|
||||
font-family: 'Roboto', sans-serif;
|
||||
font-size: clamp(28px, 3.6vw, 38px);
|
||||
font-weight: 700;
|
||||
line-height: 1.15;
|
||||
letter-spacing: -0.01em;
|
||||
}
|
||||
|
||||
/* --------------------------------------------------------------------------
|
||||
Banner
|
||||
-------------------------------------------------------------------------- */
|
||||
|
||||
.course-details .details-hero {
|
||||
padding: calc(var(--header-h) + 54px) 0 44px;
|
||||
border-bottom: 1px solid rgba(255, 255, 255, 0.06);
|
||||
background-color: #0D0D0D;
|
||||
}
|
||||
|
||||
.course-details .details-hero__content {
|
||||
max-width: 900px;
|
||||
}
|
||||
|
||||
.course-details .details-hero__tag {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
padding: 6px 12px;
|
||||
border-radius: 999px;
|
||||
background-color: var(--red);
|
||||
color: var(--white);
|
||||
font-size: 10px;
|
||||
font-weight: 500;
|
||||
line-height: 1.4;
|
||||
letter-spacing: 0.12em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.course-details .details-hero__title {
|
||||
margin: 16px 0 0;
|
||||
color: var(--white);
|
||||
font-family: 'Roboto', sans-serif;
|
||||
font-size: clamp(32px, 4.4vw, 48px);
|
||||
font-weight: 700;
|
||||
line-height: 1.1;
|
||||
letter-spacing: -0.015em;
|
||||
}
|
||||
|
||||
/* --------------------------------------------------------------------------
|
||||
Breadcrumb
|
||||
-------------------------------------------------------------------------- */
|
||||
|
||||
.course-details .breadcrumb {
|
||||
margin-top: 22px;
|
||||
}
|
||||
|
||||
.course-details .breadcrumb__list {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
color: rgba(255, 255, 255, 0.6);
|
||||
font-family: 'Roboto', sans-serif;
|
||||
font-size: 12px;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.course-details .breadcrumb__item {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.course-details .breadcrumb__item + .breadcrumb__item::before {
|
||||
content: "/";
|
||||
color: rgba(255, 255, 255, 0.28);
|
||||
}
|
||||
|
||||
.course-details .breadcrumb__item a {
|
||||
color: rgba(255, 255, 255, 0.72);
|
||||
transition: color 0.3s ease;
|
||||
}
|
||||
|
||||
.course-details .breadcrumb__item a:hover {
|
||||
color: var(--white);
|
||||
}
|
||||
|
||||
.course-details .breadcrumb__item[aria-current="page"] {
|
||||
color: var(--white);
|
||||
}
|
||||
|
||||
/* --------------------------------------------------------------------------
|
||||
About
|
||||
-------------------------------------------------------------------------- */
|
||||
|
||||
.course-details .details-about {
|
||||
background-color: #0D0D0D;
|
||||
}
|
||||
|
||||
.course-details .details-grid {
|
||||
display: grid;
|
||||
grid-template-columns: 1.05fr 1fr;
|
||||
align-items: start;
|
||||
gap: 48px;
|
||||
}
|
||||
|
||||
.course-details .details-media {
|
||||
overflow: hidden;
|
||||
border-radius: 20px;
|
||||
box-shadow: 0 22px 48px rgba(0, 0, 0, 0.48);
|
||||
}
|
||||
|
||||
.course-details .details-media img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
aspect-ratio: 4 / 3;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.course-details .details-about__content {
|
||||
padding-top: 6px;
|
||||
}
|
||||
|
||||
.course-details .details-about__title {
|
||||
margin: 12px 0 14px;
|
||||
font-size: clamp(26px, 3vw, 34px);
|
||||
}
|
||||
|
||||
.course-details .details-about__text {
|
||||
margin: 0;
|
||||
color: var(--text-muted);
|
||||
font-family: 'Roboto', sans-serif;
|
||||
font-size: 15px;
|
||||
font-weight: 400;
|
||||
line-height: 1.75;
|
||||
}
|
||||
|
||||
.course-details .details-meta {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
gap: 12px;
|
||||
margin-top: 26px;
|
||||
}
|
||||
|
||||
.course-details .details-meta__item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
padding: 12px 14px;
|
||||
border: 1px solid rgba(255, 255, 255, 0.08);
|
||||
border-radius: 12px;
|
||||
background-color: rgba(255, 255, 255, 0.04);
|
||||
color: var(--white);
|
||||
font-family: 'Roboto', sans-serif;
|
||||
font-size: 12px;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.course-details .details-meta__icon {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
flex: none;
|
||||
border-radius: 8px;
|
||||
background-color: var(--float-icon-bg);
|
||||
color: var(--red);
|
||||
}
|
||||
|
||||
.course-details .details-meta__icon .icon {
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
}
|
||||
|
||||
.course-details .details-meta__item strong {
|
||||
display: block;
|
||||
color: var(--white);
|
||||
font-size: 11px;
|
||||
font-weight: 500;
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
.course-details .details-actions {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 12px;
|
||||
margin-top: 28px;
|
||||
}
|
||||
|
||||
.course-details .btn--primary {
|
||||
background-color: var(--red);
|
||||
box-shadow: 0 10px 26px rgba(189, 37, 42, 0.28);
|
||||
}
|
||||
|
||||
.course-details .btn--primary:hover {
|
||||
background-color: #9F1F24;
|
||||
box-shadow: 0 14px 30px rgba(189, 37, 42, 0.36);
|
||||
}
|
||||
|
||||
/* --------------------------------------------------------------------------
|
||||
What you will learn
|
||||
-------------------------------------------------------------------------- */
|
||||
|
||||
.course-details .details-learn {
|
||||
background-color: var(--bg-section);
|
||||
}
|
||||
|
||||
.course-details .details-learn__list {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
gap: 14px;
|
||||
}
|
||||
|
||||
.course-details .details-learn__item {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: 12px;
|
||||
padding: 14px 16px;
|
||||
border: 1px solid rgba(255, 255, 255, 0.08);
|
||||
border-radius: 14px;
|
||||
background-color: rgba(255, 255, 255, 0.04);
|
||||
color: var(--white);
|
||||
font-family: 'Roboto', sans-serif;
|
||||
font-size: 14px;
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
.course-details .details-learn__icon {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
flex: none;
|
||||
border-radius: 50%;
|
||||
background-color: var(--red);
|
||||
color: var(--white);
|
||||
}
|
||||
|
||||
.course-details .details-learn__icon .icon {
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
}
|
||||
|
||||
.course-details .details-learn__item.reveal {
|
||||
opacity: 0;
|
||||
transform: translateY(20px);
|
||||
transition: opacity 0.55s ease, transform 0.55s ease;
|
||||
transition-delay: calc(var(--i, 0) * 0.06s);
|
||||
}
|
||||
|
||||
.course-details .details-learn__item.reveal.is-visible {
|
||||
opacity: 1;
|
||||
transform: none;
|
||||
}
|
||||
|
||||
/* --------------------------------------------------------------------------
|
||||
Who is this for
|
||||
-------------------------------------------------------------------------- */
|
||||
|
||||
.course-details .details-audience {
|
||||
background-color: #0D0D0D;
|
||||
}
|
||||
|
||||
.course-details .details-audience__grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
gap: 18px;
|
||||
}
|
||||
|
||||
.course-details .details-audience__card {
|
||||
padding: 24px 22px;
|
||||
border: 0;
|
||||
border-radius: 18px;
|
||||
background: linear-gradient(180deg, var(--card-top) 0%, var(--card-bottom) 100%);
|
||||
box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
|
||||
transition: transform 0.3s ease, box-shadow 0.3s ease;
|
||||
}
|
||||
|
||||
.course-details .details-audience__card:hover {
|
||||
transform: translateY(-4px);
|
||||
box-shadow: 0 18px 38px rgba(0, 0, 0, 0.55);
|
||||
}
|
||||
|
||||
.course-details .details-audience__icon {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
margin-bottom: 16px;
|
||||
border-radius: 9px;
|
||||
background-color: var(--float-icon-bg);
|
||||
color: var(--red);
|
||||
}
|
||||
|
||||
.course-details .details-audience__icon .icon {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
}
|
||||
|
||||
.course-details .details-audience__title {
|
||||
margin: 0 0 8px;
|
||||
color: var(--white);
|
||||
font-family: 'Roboto', sans-serif;
|
||||
font-size: 16px;
|
||||
font-weight: 500;
|
||||
line-height: 1.3;
|
||||
}
|
||||
|
||||
.course-details .details-audience__text {
|
||||
margin: 0;
|
||||
color: rgba(255, 255, 255, 0.82);
|
||||
font-family: 'Roboto', sans-serif;
|
||||
font-size: 12.5px;
|
||||
line-height: 1.65;
|
||||
}
|
||||
|
||||
.course-details .details-audience__card.reveal {
|
||||
opacity: 0;
|
||||
transform: translateY(22px);
|
||||
transition: opacity 0.55s ease, transform 0.55s ease, box-shadow 0.3s ease;
|
||||
transition-delay: calc(var(--i, 0) * 0.08s);
|
||||
}
|
||||
|
||||
.course-details .details-audience__card.reveal.is-visible {
|
||||
opacity: 1;
|
||||
transform: none;
|
||||
}
|
||||
|
||||
.course-details .details-audience__card.reveal.is-visible:hover {
|
||||
transform: translateY(-4px);
|
||||
transition-delay: 0s;
|
||||
}
|
||||
|
||||
/* --------------------------------------------------------------------------
|
||||
Related courses
|
||||
-------------------------------------------------------------------------- */
|
||||
|
||||
.course-details .details-related {
|
||||
background-color: var(--bg-section);
|
||||
}
|
||||
|
||||
.course-details .course-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
gap: 18px;
|
||||
}
|
||||
|
||||
.course-details .course-card {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow: hidden;
|
||||
border: 0;
|
||||
border-radius: 18px;
|
||||
background-color: transparent;
|
||||
background-image: none;
|
||||
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
|
||||
transition: transform 0.3s ease,
|
||||
box-shadow 0.3s ease,
|
||||
opacity 0.3s ease;
|
||||
}
|
||||
|
||||
.course-details .course-card:hover,
|
||||
.course-details .course-card:focus-within {
|
||||
border: 0;
|
||||
transform: translateY(-6px);
|
||||
box-shadow: 0 18px 38px rgba(0, 0, 0, 0.65);
|
||||
}
|
||||
|
||||
.course-details .course-card__media {
|
||||
flex: none;
|
||||
aspect-ratio: 4 / 2.8;
|
||||
overflow: hidden;
|
||||
background-color: #222;
|
||||
}
|
||||
|
||||
.course-details .course-card__media img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
transition: transform 0.5s ease;
|
||||
}
|
||||
|
||||
.course-details .course-card:hover .course-card__media img,
|
||||
.course-details .course-card:focus-within .course-card__media img {
|
||||
transform: scale(1.06);
|
||||
}
|
||||
|
||||
.course-details .course-card__body {
|
||||
display: flex;
|
||||
flex: 1;
|
||||
flex-direction: column;
|
||||
padding: 14px 16px 16px;
|
||||
background: linear-gradient(180deg, var(--card-top) 0%, var(--card-bottom) 100%);
|
||||
}
|
||||
|
||||
.course-details .course-card__tag {
|
||||
margin-bottom: 8px;
|
||||
color: var(--red);
|
||||
font-family: 'Roboto', sans-serif;
|
||||
font-size: 10px;
|
||||
font-weight: 800;
|
||||
line-height: 1.4;
|
||||
letter-spacing: 0.1em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.course-details .course-card__title {
|
||||
flex: 0 1 auto;
|
||||
margin: 0 0 auto;
|
||||
color: var(--white);
|
||||
font-family: 'Roboto', sans-serif;
|
||||
font-size: 13px;
|
||||
font-weight: 500;
|
||||
line-height: 1.4;
|
||||
letter-spacing: 0;
|
||||
}
|
||||
|
||||
.course-details .course-card__link {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
align-self: flex-end;
|
||||
gap: 4px;
|
||||
margin-top: 14px;
|
||||
color: var(--white);
|
||||
font-family: 'Roboto', sans-serif;
|
||||
font-size: 12px;
|
||||
font-weight: 800;
|
||||
line-height: 1.4;
|
||||
text-decoration: none;
|
||||
transition: color 0.3s ease;
|
||||
}
|
||||
|
||||
.course-details .course-card__link .icon {
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
transition: transform 0.3s ease;
|
||||
}
|
||||
|
||||
.course-details .course-card__link:hover {
|
||||
color: var(--red);
|
||||
}
|
||||
|
||||
.course-details .course-card__link:hover .icon {
|
||||
transform: translateX(4px);
|
||||
}
|
||||
|
||||
.course-details .course-card:focus-within {
|
||||
outline: 2px solid var(--white);
|
||||
outline-offset: 3px;
|
||||
}
|
||||
|
||||
.course-details .course-card.reveal {
|
||||
opacity: 0;
|
||||
transform: translateY(24px);
|
||||
transition: opacity 0.6s ease,
|
||||
transform 0.6s ease,
|
||||
box-shadow 0.3s ease;
|
||||
transition-delay: calc(var(--i, 0) * 0.08s);
|
||||
}
|
||||
|
||||
.course-details .course-card.reveal.is-visible {
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
}
|
||||
|
||||
.course-details .course-card.reveal.is-visible:hover,
|
||||
.course-details .course-card.reveal.is-visible:focus-within {
|
||||
transform: translateY(-6px);
|
||||
transition-delay: 0s;
|
||||
}
|
||||
|
||||
.course-details .details-related__empty {
|
||||
padding: 28px;
|
||||
border: 1px dashed rgba(255, 255, 255, 0.18);
|
||||
border-radius: 16px;
|
||||
background-color: rgba(255, 255, 255, 0.03);
|
||||
color: var(--text-muted);
|
||||
font-size: 14px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.course-details .details-related__empty .btn {
|
||||
margin-top: 18px;
|
||||
}
|
||||
|
||||
/* --------------------------------------------------------------------------
|
||||
404
|
||||
-------------------------------------------------------------------------- */
|
||||
|
||||
.course-details .details-missing {
|
||||
padding: calc(var(--header-h) + 80px) 0 100px;
|
||||
background-color: #0D0D0D;
|
||||
}
|
||||
|
||||
.course-details .details-missing__inner {
|
||||
max-width: 620px;
|
||||
margin: 0 auto;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.course-details .details-missing__inner .eyebrow::before {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.course-details .details-missing__title {
|
||||
margin: 14px 0 16px;
|
||||
font-size: clamp(28px, 4vw, 40px);
|
||||
}
|
||||
|
||||
.course-details .details-missing__inner .section__lead {
|
||||
max-width: 520px;
|
||||
margin: 0 auto 26px;
|
||||
color: var(--text-muted);
|
||||
font-size: 15px;
|
||||
line-height: 1.7;
|
||||
}
|
||||
|
||||
/* --------------------------------------------------------------------------
|
||||
Responsive
|
||||
-------------------------------------------------------------------------- */
|
||||
|
||||
@media (max-width: 992px) {
|
||||
.course-details .details-grid {
|
||||
grid-template-columns: 1fr;
|
||||
gap: 32px;
|
||||
}
|
||||
|
||||
.course-details .details-audience__grid {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.course-details .course-grid {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.course-details .details-meta {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.course-details .details-learn__list {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.course-details .details-audience__grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 576px) {
|
||||
.course-details .course-grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
|
||||
/* --------------------------------------------------------------------------
|
||||
Reduced motion
|
||||
-------------------------------------------------------------------------- */
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.course-details *,
|
||||
.course-details *::before,
|
||||
.course-details *::after {
|
||||
animation: none !important;
|
||||
transition: none !important;
|
||||
}
|
||||
|
||||
.course-details .course-card,
|
||||
.course-details .course-card.reveal,
|
||||
.course-details .course-card.reveal.is-visible,
|
||||
.course-details .details-learn__item.reveal,
|
||||
.course-details .details-audience__card.reveal {
|
||||
opacity: 1 !important;
|
||||
transform: none !important;
|
||||
}
|
||||
|
||||
.course-details .course-card:hover,
|
||||
.course-details .course-card.reveal.is-visible:hover,
|
||||
.course-details .course-card__media img,
|
||||
.course-details .details-audience__card:hover,
|
||||
.course-details .details-audience__card.reveal.is-visible:hover {
|
||||
transform: none !important;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,421 @@
|
||||
/* ==========================================================================
|
||||
COURSES — SHARED LISTING PAGES
|
||||
Used by courses.php and the three category pages.
|
||||
Every rule is scoped to .courses-page so the homepage is unaffected.
|
||||
========================================================================== */
|
||||
|
||||
.courses-page {
|
||||
background-color: var(--bg-section);
|
||||
}
|
||||
|
||||
/* --------------------------------------------------------------------------
|
||||
Banner
|
||||
-------------------------------------------------------------------------- */
|
||||
|
||||
.courses-page .courses-hero {
|
||||
padding: calc(var(--header-h) - 35px) 0 46px;
|
||||
border-bottom: 1px solid rgba(255, 255, 255, 0.06);
|
||||
background-color: #0D0D0D;
|
||||
}
|
||||
|
||||
.courses-page .courses-hero__content {
|
||||
max-width: 780px;
|
||||
}
|
||||
|
||||
.courses-page .eyebrow {
|
||||
gap: 8px;
|
||||
margin-bottom: 0;
|
||||
color: var(--white);
|
||||
font-family: 'Roboto', sans-serif;
|
||||
font-size: 10px;
|
||||
font-weight: 500;
|
||||
line-height: 1.4;
|
||||
letter-spacing: 0.15em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.courses-page .eyebrow::before {
|
||||
width: 14px;
|
||||
height: 2px;
|
||||
border-radius: 0;
|
||||
background: var(--white);
|
||||
}
|
||||
|
||||
.courses-page .courses-hero__title {
|
||||
margin: 14px 0 12px;
|
||||
color: var(--white);
|
||||
font-family: 'Roboto', sans-serif;
|
||||
font-size: clamp(30px, 4vw, 42px);
|
||||
font-weight: 700;
|
||||
line-height: 1.12;
|
||||
letter-spacing: -0.01em;
|
||||
}
|
||||
|
||||
.courses-page .courses-hero .section__lead {
|
||||
max-width: 620px;
|
||||
margin: 0;
|
||||
color: var(--text-muted);
|
||||
font-family: 'Roboto', sans-serif;
|
||||
font-size: 15px;
|
||||
font-weight: 400;
|
||||
line-height: 1.7;
|
||||
}
|
||||
|
||||
/* --------------------------------------------------------------------------
|
||||
Breadcrumb
|
||||
-------------------------------------------------------------------------- */
|
||||
|
||||
.courses-page .breadcrumb {
|
||||
margin-top: 22px;
|
||||
}
|
||||
|
||||
.courses-page .breadcrumb__list {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
color: rgba(255, 255, 255, 0.6);
|
||||
font-family: 'Roboto', sans-serif;
|
||||
font-size: 12px;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.courses-page .breadcrumb__item {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.courses-page .breadcrumb__item + .breadcrumb__item::before {
|
||||
content: "/";
|
||||
color: rgba(255, 255, 255, 0.28);
|
||||
}
|
||||
|
||||
.courses-page .breadcrumb__item a {
|
||||
color: rgba(255, 255, 255, 0.72);
|
||||
transition: color 0.3s ease;
|
||||
}
|
||||
|
||||
.courses-page .breadcrumb__item a:hover {
|
||||
color: var(--white);
|
||||
}
|
||||
|
||||
.courses-page .breadcrumb__item[aria-current="page"] {
|
||||
color: var(--white);
|
||||
}
|
||||
|
||||
/* --------------------------------------------------------------------------
|
||||
Filters and grid
|
||||
-------------------------------------------------------------------------- */
|
||||
|
||||
.courses-page .courses-body {
|
||||
padding: 48px 0 72px;
|
||||
background-color: var(--bg-section);
|
||||
}
|
||||
|
||||
.courses-page .course-filters {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: center;
|
||||
gap: 12px;
|
||||
margin: 0 0 36px;
|
||||
}
|
||||
|
||||
.courses-page .filter-pill {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 8px 18px;
|
||||
border: 0;
|
||||
border-radius: 999px;
|
||||
background-color: var(--pill-bg);
|
||||
color: var(--pill-text);
|
||||
font-family: 'Roboto', sans-serif;
|
||||
font-size: 10px;
|
||||
font-weight: 500;
|
||||
line-height: 1.4;
|
||||
letter-spacing: 0.02em;
|
||||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
|
||||
transition: transform 0.3s ease,
|
||||
background-color 0.3s ease,
|
||||
color 0.3s ease,
|
||||
box-shadow 0.3s ease;
|
||||
}
|
||||
|
||||
.courses-page .filter-pill:hover {
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
|
||||
.courses-page .filter-pill.is-active {
|
||||
background-color: var(--red);
|
||||
color: var(--white);
|
||||
box-shadow: 0 6px 16px rgba(189, 37, 42, 0.4);
|
||||
}
|
||||
|
||||
.courses-page .filter-pill:focus-visible {
|
||||
outline: 2px solid var(--white);
|
||||
outline-offset: 3px;
|
||||
}
|
||||
|
||||
.courses-page .course-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(4, minmax(0, 1fr));
|
||||
gap: 18px;
|
||||
}
|
||||
|
||||
.courses-page .course-card {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow: hidden;
|
||||
border: 0;
|
||||
border-radius: 18px;
|
||||
background-color: transparent;
|
||||
background-image: none;
|
||||
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
|
||||
transition: transform 0.3s ease,
|
||||
box-shadow 0.3s ease,
|
||||
opacity 0.3s ease;
|
||||
}
|
||||
|
||||
.courses-page .course-card:hover,
|
||||
.courses-page .course-card:focus-within {
|
||||
border: 0;
|
||||
transform: translateY(-6px);
|
||||
box-shadow: 0 18px 38px rgba(0, 0, 0, 0.65);
|
||||
}
|
||||
|
||||
.courses-page .course-card__media {
|
||||
flex: none;
|
||||
aspect-ratio: 4 / 2.8;
|
||||
overflow: hidden;
|
||||
background-color: #222;
|
||||
}
|
||||
|
||||
.courses-page .course-card__media img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
transition: transform 0.5s ease;
|
||||
}
|
||||
|
||||
.courses-page .course-card:hover .course-card__media img,
|
||||
.courses-page .course-card:focus-within .course-card__media img {
|
||||
transform: scale(1.06);
|
||||
}
|
||||
|
||||
.courses-page .course-card__body {
|
||||
display: flex;
|
||||
flex: 1;
|
||||
flex-direction: column;
|
||||
padding: 14px 16px 16px;
|
||||
background: linear-gradient(180deg, var(--card-top) 0%, var(--card-bottom) 100%);
|
||||
}
|
||||
|
||||
.courses-page .course-card__tag {
|
||||
margin-bottom: 8px;
|
||||
color: var(--red);
|
||||
font-family: 'Roboto', sans-serif;
|
||||
font-size: 10px;
|
||||
font-weight: 800;
|
||||
line-height: 1.4;
|
||||
letter-spacing: 0.1em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.courses-page .course-card__title {
|
||||
flex: 0 1 auto;
|
||||
margin: 0 0 auto;
|
||||
color: var(--white);
|
||||
font-family: 'Roboto', sans-serif;
|
||||
font-size: 13px;
|
||||
font-weight: 500;
|
||||
line-height: 1.4;
|
||||
letter-spacing: 0;
|
||||
}
|
||||
|
||||
.courses-page .course-card__link {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
align-self: flex-end;
|
||||
gap: 4px;
|
||||
margin-top: 14px;
|
||||
color: var(--white);
|
||||
font-family: 'Roboto', sans-serif;
|
||||
font-size: 12px;
|
||||
font-weight: 800;
|
||||
line-height: 1.4;
|
||||
text-decoration: none;
|
||||
transition: color 0.3s ease;
|
||||
}
|
||||
|
||||
.courses-page .course-card__link .icon {
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
transition: transform 0.3s ease;
|
||||
}
|
||||
|
||||
.courses-page .course-card__link:hover {
|
||||
color: var(--red);
|
||||
}
|
||||
|
||||
.courses-page .course-card__link:hover .icon {
|
||||
transform: translateX(4px);
|
||||
}
|
||||
|
||||
.courses-page .course-card:focus-within {
|
||||
outline: 2px solid var(--white);
|
||||
outline-offset: 3px;
|
||||
}
|
||||
|
||||
/* Staggered reveal reusing the .reveal observer from main.js */
|
||||
.courses-page .course-card.reveal {
|
||||
opacity: 0;
|
||||
transform: translateY(24px);
|
||||
transition: opacity 0.6s ease,
|
||||
transform 0.6s ease,
|
||||
box-shadow 0.3s ease;
|
||||
transition-delay: calc(var(--i, 0) * 0.08s);
|
||||
}
|
||||
|
||||
.courses-page .course-card.reveal.is-visible {
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
}
|
||||
|
||||
.courses-page .course-card.reveal.is-visible:hover,
|
||||
.courses-page .course-card.reveal.is-visible:focus-within {
|
||||
transform: translateY(-6px);
|
||||
transition-delay: 0s;
|
||||
}
|
||||
|
||||
/* --------------------------------------------------------------------------
|
||||
Empty state
|
||||
-------------------------------------------------------------------------- */
|
||||
|
||||
.courses-page .courses-empty {
|
||||
max-width: 540px;
|
||||
margin: 0 auto;
|
||||
padding: 42px 28px;
|
||||
border: 1px dashed rgba(255, 255, 255, 0.18);
|
||||
border-radius: 20px;
|
||||
background-color: rgba(255, 255, 255, 0.03);
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.courses-page .courses-empty__title {
|
||||
margin: 0 0 10px;
|
||||
color: var(--white);
|
||||
font-size: 24px;
|
||||
font-weight: 700;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
.courses-page .courses-empty__text {
|
||||
margin: 0 0 22px;
|
||||
color: var(--text-muted);
|
||||
font-size: 14px;
|
||||
line-height: 1.7;
|
||||
}
|
||||
|
||||
.courses-page .btn--primary {
|
||||
background-color: var(--red);
|
||||
box-shadow: 0 10px 26px rgba(189, 37, 42, 0.28);
|
||||
}
|
||||
|
||||
.courses-page .btn--primary:hover {
|
||||
background-color: #9F1F24;
|
||||
box-shadow: 0 14px 30px rgba(189, 37, 42, 0.36);
|
||||
}
|
||||
|
||||
/* --------------------------------------------------------------------------
|
||||
CTA strip
|
||||
-------------------------------------------------------------------------- */
|
||||
|
||||
.courses-page .courses-cta {
|
||||
padding: 56px 0;
|
||||
background-image: linear-gradient(125deg, #0D0D0D 0%, var(--red) 100%);
|
||||
}
|
||||
|
||||
.courses-page .courses-cta__inner {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 32px;
|
||||
}
|
||||
|
||||
.courses-page .courses-cta__title {
|
||||
color: var(--white);
|
||||
font-family: 'Roboto', sans-serif;
|
||||
font-size: clamp(24px, 3vw, 34px);
|
||||
font-weight: 700;
|
||||
line-height: 1.15;
|
||||
letter-spacing: -0.01em;
|
||||
}
|
||||
|
||||
.courses-page .courses-cta__text {
|
||||
margin-top: 8px;
|
||||
color: rgba(255, 255, 255, 0.82);
|
||||
font-size: 14px;
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
.courses-page .courses-cta__actions {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
flex: none;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.courses-page .courses-cta .btn:focus-visible {
|
||||
outline-color: var(--white);
|
||||
}
|
||||
|
||||
/* --------------------------------------------------------------------------
|
||||
Responsive
|
||||
-------------------------------------------------------------------------- */
|
||||
|
||||
@media (max-width: 992px) {
|
||||
.courses-page .course-grid {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.courses-page .courses-cta__inner {
|
||||
align-items: flex-start;
|
||||
flex-direction: column;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 576px) {
|
||||
.courses-page .course-grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
|
||||
/* --------------------------------------------------------------------------
|
||||
Reduced motion
|
||||
-------------------------------------------------------------------------- */
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.courses-page *,
|
||||
.courses-page *::before,
|
||||
.courses-page *::after {
|
||||
animation: none !important;
|
||||
transition: none !important;
|
||||
}
|
||||
|
||||
.courses-page .course-card,
|
||||
.courses-page .course-card.reveal,
|
||||
.courses-page .course-card.reveal.is-visible {
|
||||
opacity: 1 !important;
|
||||
transform: none !important;
|
||||
}
|
||||
|
||||
.courses-page .course-card:hover,
|
||||
.courses-page .course-card.reveal.is-visible:hover,
|
||||
.courses-page .course-card__media img,
|
||||
.courses-page .filter-pill:hover {
|
||||
transform: none !important;
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
Binary file not shown.
|
After Width: | Height: | Size: 73 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 42 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 52 KiB |
@@ -1023,3 +1023,302 @@
|
||||
initPathways();
|
||||
}
|
||||
})();
|
||||
|
||||
// ===== CERTIFICATION PAGE =====
|
||||
|
||||
(function () {
|
||||
'use strict';
|
||||
|
||||
function initCertPage() {
|
||||
var page = document.querySelector('.cert-page');
|
||||
|
||||
if (!page) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (page.getAttribute('data-cert-init') === 'true') {
|
||||
return;
|
||||
}
|
||||
|
||||
page.setAttribute('data-cert-init', 'true');
|
||||
|
||||
var reduceMotion = window.matchMedia(
|
||||
'(prefers-reduced-motion: reduce)'
|
||||
).matches;
|
||||
var isTouch = window.matchMedia(
|
||||
'(hover: none), (pointer: coarse)'
|
||||
).matches;
|
||||
|
||||
/* Pathway line fills in as the section scrolls into view. */
|
||||
var path = page.querySelector('.cert-path');
|
||||
|
||||
if (path) {
|
||||
if (reduceMotion || !('IntersectionObserver' in window)) {
|
||||
path.classList.add('is-lit');
|
||||
} else {
|
||||
var pathObserver = new IntersectionObserver(
|
||||
function (entries) {
|
||||
entries.forEach(function (entry) {
|
||||
if (entry.isIntersecting) {
|
||||
entry.target.classList.add('is-lit');
|
||||
pathObserver.unobserve(entry.target);
|
||||
}
|
||||
});
|
||||
},
|
||||
{ threshold: 0.35 }
|
||||
);
|
||||
|
||||
pathObserver.observe(path);
|
||||
}
|
||||
}
|
||||
|
||||
/* Subtle 3D tilt on the certificate preview card. */
|
||||
var tiltCard = page.querySelector('[data-cert-tilt]');
|
||||
|
||||
if (tiltCard && !reduceMotion && !isTouch) {
|
||||
var MAX_TILT = 6;
|
||||
|
||||
tiltCard.addEventListener('mousemove', function (event) {
|
||||
var rect = tiltCard.getBoundingClientRect();
|
||||
var px = (event.clientX - rect.left) / rect.width - 0.5;
|
||||
var py = (event.clientY - rect.top) / rect.height - 0.5;
|
||||
|
||||
tiltCard.style.setProperty(
|
||||
'--cert-rx',
|
||||
(-py * MAX_TILT * 2).toFixed(2) + 'deg'
|
||||
);
|
||||
tiltCard.style.setProperty(
|
||||
'--cert-ry',
|
||||
(px * MAX_TILT * 2).toFixed(2) + 'deg'
|
||||
);
|
||||
});
|
||||
|
||||
tiltCard.addEventListener('mouseleave', function () {
|
||||
tiltCard.style.setProperty('--cert-rx', '0deg');
|
||||
tiltCard.style.setProperty('--cert-ry', '0deg');
|
||||
});
|
||||
}
|
||||
|
||||
/* Certificate FAQ accordion (one item open at a time). */
|
||||
var faqItems = Array.prototype.slice.call(
|
||||
page.querySelectorAll('.cert-faq__item')
|
||||
);
|
||||
|
||||
faqItems.forEach(function (item) {
|
||||
var trigger = item.querySelector('.cert-faq__trigger');
|
||||
var panel = item.querySelector('.cert-faq__panel');
|
||||
|
||||
if (!trigger) {
|
||||
return;
|
||||
}
|
||||
|
||||
trigger.addEventListener('click', function () {
|
||||
var wasOpen = item.classList.contains('is-open');
|
||||
|
||||
faqItems.forEach(function (other) {
|
||||
other.classList.remove('is-open');
|
||||
|
||||
var otherTrigger = other.querySelector('.cert-faq__trigger');
|
||||
var otherPanel = other.querySelector('.cert-faq__panel');
|
||||
|
||||
if (otherTrigger) {
|
||||
otherTrigger.setAttribute('aria-expanded', 'false');
|
||||
}
|
||||
if (otherPanel) {
|
||||
otherPanel.setAttribute('aria-hidden', 'true');
|
||||
}
|
||||
});
|
||||
|
||||
if (!wasOpen) {
|
||||
item.classList.add('is-open');
|
||||
trigger.setAttribute('aria-expanded', 'true');
|
||||
|
||||
if (panel) {
|
||||
panel.setAttribute('aria-hidden', 'false');
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
if (document.readyState === 'loading') {
|
||||
document.addEventListener('DOMContentLoaded', initCertPage);
|
||||
} else {
|
||||
initCertPage();
|
||||
}
|
||||
})();
|
||||
|
||||
// ===== ABOUT PAGE =====
|
||||
|
||||
(function () {
|
||||
'use strict';
|
||||
|
||||
function initAboutPage() {
|
||||
var page = document.querySelector('.about-page');
|
||||
|
||||
if (!page) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (page.getAttribute('data-about-init') === 'true') {
|
||||
return;
|
||||
}
|
||||
|
||||
page.setAttribute('data-about-init', 'true');
|
||||
|
||||
var reduceMotion = window.matchMedia(
|
||||
'(prefers-reduced-motion: reduce)'
|
||||
).matches;
|
||||
|
||||
/* Missing image fallbacks. */
|
||||
var images = Array.prototype.slice.call(page.querySelectorAll('img'));
|
||||
|
||||
images.forEach(function (img) {
|
||||
function markMissing() {
|
||||
var wrapper = img.parentElement;
|
||||
|
||||
if (wrapper) {
|
||||
wrapper.classList.add('is-missing');
|
||||
}
|
||||
}
|
||||
|
||||
img.addEventListener('error', markMissing);
|
||||
|
||||
if (img.complete && img.naturalWidth === 0) {
|
||||
markMissing();
|
||||
}
|
||||
});
|
||||
|
||||
/* Practical approach image: clip-path wipe + slow zoom. */
|
||||
var media = page.querySelector('.about-approach__media');
|
||||
|
||||
if (media) {
|
||||
if (reduceMotion || !('IntersectionObserver' in window)) {
|
||||
media.classList.add('about-inview');
|
||||
} else {
|
||||
var mediaObserver = new IntersectionObserver(
|
||||
function (entries) {
|
||||
entries.forEach(function (entry) {
|
||||
if (entry.isIntersecting) {
|
||||
entry.target.classList.add('about-inview');
|
||||
mediaObserver.unobserve(entry.target);
|
||||
}
|
||||
});
|
||||
},
|
||||
{ threshold: 0.25 }
|
||||
);
|
||||
|
||||
mediaObserver.observe(media);
|
||||
}
|
||||
}
|
||||
|
||||
/* Learning journey: connector line + badge sequence. */
|
||||
var journey = page.querySelector('.about-journey');
|
||||
|
||||
if (journey) {
|
||||
if (reduceMotion || !('IntersectionObserver' in window)) {
|
||||
journey.classList.add('about-lit');
|
||||
} else {
|
||||
var journeyObserver = new IntersectionObserver(
|
||||
function (entries) {
|
||||
entries.forEach(function (entry) {
|
||||
if (entry.isIntersecting) {
|
||||
entry.target.classList.add('about-lit');
|
||||
journeyObserver.unobserve(entry.target);
|
||||
}
|
||||
});
|
||||
},
|
||||
{ threshold: 0.3 }
|
||||
);
|
||||
|
||||
journeyObserver.observe(journey);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (document.readyState === 'loading') {
|
||||
document.addEventListener('DOMContentLoaded', initAboutPage);
|
||||
} else {
|
||||
initAboutPage();
|
||||
}
|
||||
})();
|
||||
|
||||
// ===== ABOUT FACULTY UPDATE =====
|
||||
(function () {
|
||||
'use strict';
|
||||
|
||||
function initFacultyTilt() {
|
||||
var grid = document.querySelector('.about-faculty-grid');
|
||||
var cards = document.querySelectorAll('.about-faculty-card');
|
||||
|
||||
if (!grid || !cards.length) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (grid.getAttribute('data-about-faculty-tilt') === 'true') {
|
||||
return;
|
||||
}
|
||||
|
||||
grid.setAttribute('data-about-faculty-tilt', 'true');
|
||||
|
||||
var reduceMotion = window.matchMedia('(prefers-reduced-motion: reduce)').matches;
|
||||
var isTouch = window.matchMedia('(hover: none), (pointer: coarse)').matches;
|
||||
|
||||
if (reduceMotion || isTouch) {
|
||||
return;
|
||||
}
|
||||
|
||||
Array.prototype.forEach.call(cards, function (card) {
|
||||
card.addEventListener('mousemove', function (event) {
|
||||
var rect = card.getBoundingClientRect();
|
||||
var px = (event.clientX - rect.left) / rect.width - 0.5;
|
||||
var py = (event.clientY - rect.top) / rect.height - 0.5;
|
||||
|
||||
card.style.setProperty('--rx', (-py * 8).toFixed(2) + 'deg');
|
||||
card.style.setProperty('--ry', (px * 8).toFixed(2) + 'deg');
|
||||
});
|
||||
|
||||
card.addEventListener('mouseleave', function () {
|
||||
card.style.setProperty('--rx', '0deg');
|
||||
card.style.setProperty('--ry', '0deg');
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
if (document.readyState === 'loading') {
|
||||
document.addEventListener('DOMContentLoaded', initFacultyTilt);
|
||||
} else {
|
||||
initFacultyTilt();
|
||||
}
|
||||
})();
|
||||
|
||||
// ===== ABOUT APPROACH: reveal =====
|
||||
(function () {
|
||||
'use strict';
|
||||
|
||||
var media = document.querySelector('.about-approach__media');
|
||||
var content = document.querySelector('.about-approach__content');
|
||||
if (!media || !content) return;
|
||||
|
||||
function show() {
|
||||
media.classList.add('about-inview');
|
||||
content.classList.add('is-visible');
|
||||
}
|
||||
|
||||
if (!('IntersectionObserver' in window)) {
|
||||
show();
|
||||
return;
|
||||
}
|
||||
|
||||
var io = new IntersectionObserver(function (entries) {
|
||||
entries.forEach(function (entry) {
|
||||
if (entry.isIntersecting) {
|
||||
show();
|
||||
io.disconnect();
|
||||
}
|
||||
});
|
||||
}, { threshold: 0.15 });
|
||||
|
||||
io.observe(media);
|
||||
io.observe(content);
|
||||
})();
|
||||
|
||||
Reference in New Issue
Block a user